@beterdichtbij/component-library 0.65.2 → 0.65.3

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.
@@ -1693,7 +1693,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1693
1693
  }
1694
1694
  `,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`}}),cy={name:`BaseFileUpload`,extends:kp,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:sy,provide:function(){return{$pcFileUpload:this,$parentInstance:this}}},ly={name:`FileContent`,hostName:`FileUpload`,extends:kp,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:Gm,Badge:om,TimesIcon:yv}},uy=[`alt`,`src`,`width`];function dy(e,n,r,i,a,o){var s=(0,t.resolveComponent)(`Badge`),c=(0,t.resolveComponent)(`TimesIcon`),l=(0,t.resolveComponent)(`Button`);return(0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.files,function(n,i){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:n.name+n.type+n.size,class:e.cx(`file`)},{ref_for:!0},e.ptm(`file`)),[(0,t.createElementVNode)(`img`,(0,t.mergeProps)({role:`presentation`,class:e.cx(`fileThumbnail`),alt:n.name,src:n.objectURL,width:r.previewWidth},{ref_for:!0},e.ptm(`fileThumbnail`)),null,16,uy),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`fileInfo`)},{ref_for:!0},e.ptm(`fileInfo`)),[(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`fileName`)},{ref_for:!0},e.ptm(`fileName`)),(0,t.toDisplayString)(n.name),17),(0,t.createElementVNode)(`span`,(0,t.mergeProps)({class:e.cx(`fileSize`)},{ref_for:!0},e.ptm(`fileSize`)),(0,t.toDisplayString)(o.formatSize(n.size)),17)],16),(0,t.createVNode)(s,{value:r.badgeValue,class:(0,t.normalizeClass)(e.cx(`pcFileBadge`)),severity:r.badgeSeverity,unstyled:e.unstyled,pt:e.ptm(`pcFileBadge`)},null,8,[`value`,`class`,`severity`,`unstyled`,`pt`]),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`fileActions`)},{ref_for:!0},e.ptm(`fileActions`)),[(0,t.createVNode)(l,{onClick:function(t){return e.$emit(`remove`,i)},text:``,rounded:``,severity:`danger`,class:(0,t.normalizeClass)(e.cx(`pcFileRemoveButton`)),unstyled:e.unstyled,pt:e.ptm(`pcFileRemoveButton`)},{icon:(0,t.withCtx)(function(a){return[r.templates.fileremoveicon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r.templates.fileremoveicon),{key:0,class:(0,t.normalizeClass)(a.class),file:n,index:i},null,8,[`class`,`file`,`index`])):((0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)({key:1,class:a.class,"aria-hidden":`true`},{ref_for:!0},e.ptm(`pcFileRemoveButton`).icon),null,16,[`class`]))]}),_:2},1032,[`onClick`,`class`,`unstyled`,`pt`])],16)],16)}),128)}ly.render=dy;function fy(e){return hy(e)||my(e)||_y(e)||py()}function py(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1695
1695
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function my(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function hy(e){if(Array.isArray(e))return vy(e)}function gy(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=_y(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.
1696
- 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 _y(e,t){if(e){if(typeof e==`string`)return vy(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)?vy(e,t):void 0}}function vy(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 yy={name:`FileUpload`,extends:cy,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=gy(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=gy(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,fy(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=gy(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=gy(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&&wd(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&&Td(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&&Td(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=fy(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=fy(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:Gm,ProgressBar:ty,Message:Vv,FileContent:ly,PlusIcon:dv,UploadIcon:Dv,TimesIcon:yv},directives:{ripple:Nm}},by=[`multiple`,`accept`,`disabled`],xy=[`accept`,`disabled`,`multiple`];function Sy(e,n,r,i,a,o){var s=(0,t.resolveComponent)(`Button`),c=(0,t.resolveComponent)(`ProgressBar`),l=(0,t.resolveComponent)(`Message`),u=(0,t.resolveComponent)(`FileContent`);return o.isAdvanced?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,class:e.cx(`root`)},e.ptmi(`root`)),[(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`fileInput`,type:`file`,onChange:n[0]||=function(){return o.onFileSelect&&o.onFileSelect.apply(o,arguments)},multiple:e.multiple,accept:e.accept,disabled:o.chooseDisabled},e.ptm(`input`)),null,16,by),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`header`)},e.ptm(`header`)),[(0,t.renderSlot)(e.$slots,`header`,{files:a.files,uploadedFiles:a.uploadedFiles,chooseCallback:o.choose,uploadCallback:o.uploader,clearCallback:o.clear},function(){return[(0,t.createVNode)(s,(0,t.mergeProps)({label:o.chooseButtonLabel,class:o.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onClick:o.choose,onKeydown:(0,t.withKeys)(o.choose,[`enter`]),onFocus:o.onFocus,onBlur:o.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,t.mergeProps)({class:[n.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,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:0,class:e.cx(`pcUploadButton`),label:o.uploadButtonLabel,onClick:o.uploader,disabled:o.uploadDisabled,unstyled:e.unstyled},e.uploadButtonProps,{pt:e.ptm(`pcUploadButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`uploadicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.uploadIcon?`span`:`UploadIcon`),(0,t.mergeProps)({class:[n.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,t.createCommentVNode)(``,!0),e.showCancelButton?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:1,class:e.cx(`pcCancelButton`),label:o.cancelButtonLabel,onClick:o.clear,disabled:o.cancelDisabled,unstyled:e.unstyled},e.cancelButtonProps,{pt:e.ptm(`pcCancelButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`cancelicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.cancelIcon?`span`:`TimesIcon`),(0,t.mergeProps)({class:[n.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,t.createCommentVNode)(``,!0)]})],16),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({ref:`content`,class:e.cx(`content`),onDragenter:n[1]||=function(){return o.onDragEnter&&o.onDragEnter.apply(o,arguments)},onDragover:n[2]||=function(){return o.onDragOver&&o.onDragOver.apply(o,arguments)},onDragleave:n[3]||=function(){return o.onDragLeave&&o.onDragLeave.apply(o,arguments)},onDrop:n[4]||=function(){return o.onDrop&&o.onDrop.apply(o,arguments)}},e.ptm(`content`),{"data-p-highlight":!1}),[(0,t.renderSlot)(e.$slots,`content`,{files:a.files,uploadedFiles:a.uploadedFiles,removeUploadedFileCallback:o.removeUploadedFile,removeFileCallback:o.remove,progress:a.progress,messages:a.messages},function(){return[o.hasFiles?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,value:a.progress,showValue:!1,unstyled:e.unstyled,pt:e.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.messages,function(n){return(0,t.openBlock)(),(0,t.createBlock)(l,{key:n,severity:`error`,onClose:o.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,t.withCtx)(function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(n),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),o.hasFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)(e.cx(`fileList`))},[(0,t.createVNode)(u,{files:a.files,onRemove:o.remove,badgeValue:o.pendingLabel,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,t.createCommentVNode)(``,!0),o.hasUploadedFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:(0,t.normalizeClass)(e.cx(`fileList`))},[(0,t.createVNode)(u,{files:a.uploadedFiles,onRemove:o.removeUploadedFile,badgeValue:o.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,t.createCommentVNode)(``,!0)]}),e.$slots.empty&&!o.hasFiles&&!o.hasUploadedFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.ptm(`empty`))),[(0,t.renderSlot)(e.$slots,`empty`)],16)):(0,t.createCommentVNode)(``,!0)],16)],16)):o.isBasic?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:1,class:e.cx(`root`)},e.ptmi(`root`)),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.messages,function(n){return(0,t.openBlock)(),(0,t.createBlock)(l,{key:n,severity:`error`,onClose:o.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,t.withCtx)(function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(n),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`basicContent`)},e.ptm(`basicContent`)),[(0,t.createVNode)(s,(0,t.mergeProps)({label:o.chooseButtonLabel,class:o.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onMouseup:o.onBasicUploaderClick,onKeydown:(0,t.withKeys)(o.choose,[`enter`]),onFocus:o.onFocus,onBlur:o.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,t.mergeProps)({class:[n.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,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`filelabel`,{key:0,class:(0,t.normalizeClass)(e.cx(`filelabel`)),files:a.files},function(){return[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)(e.cx(`filelabel`))},(0,t.toDisplayString)(o.basicFileChosenLabel),3)]}),(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`fileInput`,type:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:n[5]||=function(){return o.onFileSelect&&o.onFileSelect.apply(o,arguments)},onFocus:n[6]||=function(){return o.onFocus&&o.onFocus.apply(o,arguments)},onBlur:n[7]||=function(){return o.onBlur&&o.onBlur.apply(o,arguments)}},e.ptm(`input`)),null,16,xy)],16)],16)):(0,t.createCommentVNode)(``,!0)}yy.render=Sy;var Cy={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`}},wy={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.`}},Ty=qu({legacy:!1,locale:`nl`,messages:{en:{...Cy},nl:{...wy}}}),Ey=`bottom`,Dy=`right`,Oy=`left`,ky=`auto`,Ay=[`top`,Ey,Dy,Oy],jy=`start`,My=`clippingParents`,Ny=`viewport`,Py=`popper`,Fy=`reference`,Iy=Ay.reduce(function(e,t){return e.concat([t+`-`+jy,t+`-end`])},[]),Ly=[].concat(Ay,[ky]).reduce(function(e,t){return e.concat([t,t+`-`+jy,t+`-end`])},[]),Ry=`beforeRead`,zy=`read`,By=`afterRead`,Vy=`beforeMain`,Hy=`main`,Uy=`afterMain`,Wy=`beforeWrite`,Gy=`write`,Ky=`afterWrite`,qy=[Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky];function Jy(e){return e?(e.nodeName||``).toLowerCase():null}function Yy(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xy(e){return e instanceof Yy(e).Element||e instanceof Element}function Zy(e){return e instanceof Yy(e).HTMLElement||e instanceof HTMLElement}function Qy(e){return typeof ShadowRoot>`u`?!1:e instanceof Yy(e).ShadowRoot||e instanceof ShadowRoot}function $y(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];!Zy(i)||!Jy(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 eb(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},{});!Zy(r)||!Jy(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var tb={name:`applyStyles`,enabled:!0,phase:`write`,fn:$y,effect:eb,requires:[`computeStyles`]};function nb(e){return e.split(`-`)[0]}var rb=Math.max,ib=Math.min,ab=Math.round;function ob(){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 sb(){return!/^((?!chrome|android).)*safari/i.test(ob())}function cb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Zy(e)&&(i=e.offsetWidth>0&&ab(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ab(r.height)/e.offsetHeight||1);var o=(Xy(e)?Yy(e):window).visualViewport,s=!sb()&&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 lb(e){var t=cb(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 ub(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function db(e){return Yy(e).getComputedStyle(e)}function fb(e){return[`table`,`td`,`th`].indexOf(Jy(e))>=0}function pb(e){return((Xy(e)?e.ownerDocument:e.document)||window.document).documentElement}function mb(e){return Jy(e)===`html`?e:e.assignedSlot||e.parentNode||(Qy(e)?e.host:null)||pb(e)}function hb(e){return!Zy(e)||db(e).position===`fixed`?null:e.offsetParent}function gb(e){var t=/firefox/i.test(ob());if(/Trident/i.test(ob())&&Zy(e)&&db(e).position===`fixed`)return null;var n=mb(e);for(Qy(n)&&(n=n.host);Zy(n)&&[`html`,`body`].indexOf(Jy(n))<0;){var r=db(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 _b(e){for(var t=Yy(e),n=hb(e);n&&fb(n)&&db(n).position===`static`;)n=hb(n);return n&&(Jy(n)===`html`||Jy(n)===`body`&&db(n).position===`static`)?t:n||gb(e)||t}function vb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function yb(e,t,n){return rb(e,ib(t,n))}function bb(e,t,n){var r=yb(e,t,n);return r>n?n:r}function xb(){return{top:0,right:0,bottom:0,left:0}}function Sb(e){return Object.assign({},xb(),e)}function Cb(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var wb=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Sb(typeof e==`number`?Cb(e,Ay):e)};function Tb(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=nb(n.placement),c=vb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=wb(i.padding,n),d=lb(a),f=c===`y`?`top`:Oy,p=c===`y`?Ey:Dy,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=_b(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=yb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Eb(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)||ub(t.elements.popper,r)&&(t.elements.arrow=r))}var Db={name:`arrow`,enabled:!0,phase:`main`,fn:Tb,effect:Eb,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Ob(e){return e.split(`-`)[1]}var kb={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Ab(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ab(n*i)/i||0,y:ab(r*i)/i||0}}function jb(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=Oy,b=`top`,x=window;if(l){var S=_b(n),C=`clientHeight`,w=`clientWidth`;if(S===Yy(n)&&(S=pb(n),db(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Ey;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=Dy;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&&kb),O=u===!0?Ab({x:p,y:h},Yy(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 Mb(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:nb(t.placement),variation:Ob(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,jb(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,jb(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 Nb={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Mb,data:{}},Pb={passive:!0};function Fb(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=Yy(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Pb)}),s&&c.addEventListener(`resize`,n.update,Pb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Pb)}),s&&c.removeEventListener(`resize`,n.update,Pb)}}var Ib={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Fb,data:{}},Lb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Rb(e){return e.replace(/left|right|bottom|top/g,function(e){return Lb[e]})}var zb={start:`end`,end:`start`};function Bb(e){return e.replace(/start|end/g,function(e){return zb[e]})}function Vb(e){var t=Yy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Hb(e){return cb(pb(e)).left+Vb(e).scrollLeft}function Ub(e,t){var n=Yy(e),r=pb(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=sb();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Hb(e),y:c}}function Wb(e){var t=pb(e),n=Vb(e),r=e.ownerDocument?.body,i=rb(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=rb(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Hb(e),s=-n.scrollTop;return db(r||t).direction===`rtl`&&(o+=rb(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Gb(e){var t=db(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Kb(e){return[`html`,`body`,`#document`].indexOf(Jy(e))>=0?e.ownerDocument.body:Zy(e)&&Gb(e)?e:Kb(mb(e))}function qb(e,t){t===void 0&&(t=[]);var n=Kb(e),r=n===e.ownerDocument?.body,i=Yy(n),a=r?[i].concat(i.visualViewport||[],Gb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(qb(mb(a)))}function Jb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yb(e,t){var n=cb(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 Xb(e,t,n){return t===`viewport`?Jb(Ub(e,n)):Xy(t)?Yb(t,n):Jb(Wb(pb(e)))}function Zb(e){var t=qb(mb(e)),n=[`absolute`,`fixed`].indexOf(db(e).position)>=0&&Zy(e)?_b(e):e;return Xy(n)?t.filter(function(e){return Xy(e)&&ub(e,n)&&Jy(e)!==`body`}):[]}function Qb(e,t,n,r){var i=t===`clippingParents`?Zb(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Xb(e,n,r);return t.top=rb(i.top,t.top),t.right=ib(i.right,t.right),t.bottom=ib(i.bottom,t.bottom),t.left=rb(i.left,t.left),t},Xb(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 $b(e){var t=e.reference,n=e.element,r=e.placement,i=r?nb(r):null,a=r?Ob(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 Ey:c={x:o,y:t.y+t.height};break;case Dy:c={x:t.x+t.width,y:s};break;case Oy:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?vb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case jy: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 ex(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?My:s,l=n.rootBoundary,u=l===void 0?Ny:l,d=n.elementContext,f=d===void 0?Py:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Sb(typeof g==`number`?Cb(g,Ay):g),v=f===`popper`?Fy:Py,y=e.rects.popper,b=e.elements[m?v:f],x=Qb(Xy(b)?b:b.contextElement||pb(e.elements.popper),c,u,o),S=cb(e.elements.reference),C=$b({reference:S,element:y,strategy:`absolute`,placement:i}),w=Jb(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 tx(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?Ly:c,u=Ob(r),d=u?s?Iy:Iy.filter(function(e){return Ob(e)===u}):Ay,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]=ex(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[nb(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function nx(e){if(nb(e)===`auto`)return[];var t=Rb(e);return[Bb(e),t,Bb(t)]}function rx(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,_=nb(g)===g,v=c||(_||!m?[Rb(g)]:nx(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(nb(n)===`auto`?tx(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=nb(E),O=Ob(E)===jy,ee=[`top`,Ey].indexOf(D)>=0,te=ee?`width`:`height`,ne=ex(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),re=ee?O?Dy:Oy:O?Ey:`top`;b[te]>x[te]&&(re=Rb(re));var ie=Rb(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 ix={name:`flip`,enabled:!0,phase:`main`,fn:rx,requiresIfExists:[`offset`],data:{_skip:!1}};function ax(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 ox(e){return[`top`,Dy,Ey,Oy].some(function(t){return e[t]>=0})}function sx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ex(t,{elementContext:`reference`}),s=ex(t,{altBoundary:!0}),c=ax(o,r),l=ax(s,i,a),u=ox(c),d=ox(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 cx={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:sx};function lx(e,t,n){var r=nb(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 ux(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Ly.reduce(function(e,n){return e[n]=lx(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 dx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:ux};function fx(e){var t=e.state,n=e.name;t.modifiersData[n]=$b({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var px={name:`popperOffsets`,enabled:!0,phase:`read`,fn:fx,data:{}};function mx(e){return e===`x`?`y`:`x`}function hx(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=ex(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=nb(t.placement),v=Ob(t.placement),y=!v,b=vb(_),x=mx(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`:Oy,te=b===`y`?Ey:Dy,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?lb(le):{width:0,height:0},de=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:xb(),fe=de[ee],pe=de[te],me=yb(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&&_b(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=yb(p?ib(ie,be):ie,re,p?rb(ae,xe):ae);S[b]=Se,O[b]=Se-re}if(s){var Ce=b===`x`?`top`:Oy,we=b===`x`?Ey:Dy,Te=S[x],Ee=x===`y`?`height`:`width`,De=Te+g[Ce],Oe=Te-g[we],ke=[`top`,Oy].indexOf(_)!==-1,Ae=D?.[x]??0,je=ke?De:Te-C[Ee]-w[Ee]-Ae+E.altAxis,Me=ke?Te+C[Ee]+w[Ee]-Ae-E.altAxis:Oe,Ne=p&&ke?bb(je,Te,Me):yb(p?je:De,Te,p?Me:Oe);S[x]=Ne,O[x]=Ne-Te}t.modifiersData[r]=O}}var gx={name:`preventOverflow`,enabled:!0,phase:`main`,fn:hx,requiresIfExists:[`offset`]};function _x(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vx(e){return e===Yy(e)||!Zy(e)?Vb(e):_x(e)}function yx(e){var t=e.getBoundingClientRect(),n=ab(t.width)/e.offsetWidth||1,r=ab(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bx(e,t,n){n===void 0&&(n=!1);var r=Zy(t),i=Zy(t)&&yx(t),a=pb(t),o=cb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Jy(t)!==`body`||Gb(a))&&(s=vx(t)),Zy(t)?(c=cb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Hb(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function xx(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 Sx(e){var t=xx(e);return qy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Cx(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function wx(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 Tx={placement:`bottom`,modifiers:[],strategy:`absolute`};function Ex(){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 Dx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Tx:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Tx,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:Xy(e)?qb(e):e.contextElement?qb(e.contextElement):[],popper:qb(t)};var s=Sx(wx([].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(Ex(t,n)){i.rects={reference:bx(t,_b(n),i.options.strategy===`fixed`),popper:lb(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:Cx(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Ex(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 Ox=Dx(),kx=Dx({defaultModifiers:[Ib,px,Nb,tb]}),Ax=Dx({defaultModifiers:[Ib,px,Nb,tb,dx,ix,gx,Db,cx]}),jx=u({afterMain:()=>Uy,afterRead:()=>By,afterWrite:()=>Ky,applyStyles:()=>tb,arrow:()=>Db,auto:()=>ky,basePlacements:()=>Ay,beforeMain:()=>Vy,beforeRead:()=>Ry,beforeWrite:()=>Wy,bottom:()=>Ey,clippingParents:()=>My,computeStyles:()=>Nb,createPopper:()=>Ax,createPopperBase:()=>Ox,createPopperLite:()=>kx,detectOverflow:()=>ex,end:()=>`end`,eventListeners:()=>Ib,flip:()=>ix,hide:()=>cx,left:()=>Oy,main:()=>Hy,modifierPhases:()=>qy,offset:()=>dx,placements:()=>Ly,popper:()=>Py,popperGenerator:()=>Dx,popperOffsets:()=>px,preventOverflow:()=>gx,read:()=>zy,reference:()=>Fy,right:()=>Dy,start:()=>jy,top:()=>`top`,variationPlacements:()=>Iy,viewport:()=>Ny,write:()=>Gy}),Mx=new Map,Nx={set(e,t,n){Mx.has(e)||Mx.set(e,new Map);let r=Mx.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 Mx.has(e)&&Mx.get(e).get(t)||null},remove(e,t){if(!Mx.has(e))return;let n=Mx.get(e);n.delete(t),n.size===0&&Mx.delete(e)}},Px=1e6,Fx=1e3,Ix=`transitionend`,Lx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Rx=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),zx=e=>{do e+=Math.floor(Math.random()*Px);while(document.getElementById(e));return e},Bx=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))*Fx)},Vx=e=>{e.dispatchEvent(new Event(Ix))},Hx=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Ux=e=>Hx(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Lx(e)):null,Wx=e=>{if(!Hx(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},Gx=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,Kx=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?Kx(e.parentNode):null},qx=()=>{},Jx=e=>{e.offsetHeight},Yx=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,Xx=[],Zx=e=>{document.readyState===`loading`?(Xx.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of Xx)e()}),Xx.push(e)):e()},Qx=()=>document.documentElement.dir===`rtl`,$x=e=>{Zx(()=>{let t=Yx();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)}})},eS=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,tS=(e,t,n=!0)=>{if(!n){eS(e);return}let r=Bx(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Ix,a),eS(e))};t.addEventListener(Ix,a),setTimeout(()=>{i||Vx(t)},r)},nS=(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))])},rS=/[^.]*(?=\..*)\.|.*/,iS=/\..*/,aS=/::\d+$/,oS={},sS=1,cS={mouseenter:`mouseover`,mouseleave:`mouseout`},lS=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 uS(e,t){return t&&`${t}::${sS++}`||e.uidEvent||sS++}function dS(e){let t=uS(e);return e.uidEvent=t,oS[t]=oS[t]||{},oS[t]}function fS(e,t){return function n(r){return bS(r,{delegateTarget:e}),n.oneOff&&H.off(e,r.type,t),t.apply(e,[r])}}function pS(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 bS(i,{delegateTarget:o}),r.oneOff&&H.off(e,i.type,t,n),n.apply(o,[i])}}function mS(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function hS(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=yS(e);return lS.has(a)||(a=e),[r,i,a]}function gS(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=hS(t,n,r);t in cS&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=dS(e),l=c[s]||(c[s]={}),u=mS(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=uS(o,t.replace(rS,``)),f=a?pS(e,n,o):fS(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 _S(e,t,n,r,i){let a=mS(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function vS(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&_S(e,t,n,o.callable,o.delegationSelector)}function yS(e){return e=e.replace(iS,``),cS[e]||e}var H={on(e,t,n,r){gS(e,t,n,r,!1)},one(e,t,n,r){gS(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=hS(t,n,r),s=o!==t,c=dS(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;_S(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))vS(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(aS,``);(!s||t.includes(i))&&_S(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=Yx(),i=t!==yS(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=bS(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function bS(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 xS(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 SS(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var CS={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${SS(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${SS(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]=xS(e.dataset[r])}return t},getDataAttribute(e,t){return xS(e.getAttribute(`data-bs-${SS(t)}`))}},wS=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=Hx(t)?CS.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Hx(t)?CS.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=Hx(t)?`element`:Rx(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},TS=`5.3.8`,ES=class extends wS{constructor(e,t){super(),e=Ux(e),e&&(this._element=e,this._config=this._getConfig(t),Nx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Nx.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){tS(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Nx.get(Ux(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return TS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},DS=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=>Lx(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=>!Gx(e)&&Wx(e))},getSelectorFromElement(e){let t=DS(e);return t&&U.findOne(t)?t:null},getElementFromSelector(e){let t=DS(e);return t?U.findOne(t):null},getMultipleElementsFromSelector(e){let t=DS(e);return t?U.find(t):[]}},OS=(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(),Gx(this))return;let i=U.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},kS=`alert`,AS=`.bs.alert`,jS=`close${AS}`,MS=`closed${AS}`,NS=`fade`,PS=`show`,FS=class e extends ES{static get NAME(){return kS}close(){if(H.trigger(this._element,jS).defaultPrevented)return;this._element.classList.remove(PS);let e=this._element.classList.contains(NS);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,MS),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)}})}};OS(FS,`close`),$x(FS);var IS=`button`,LS=`.bs.button`,RS=`.data-api`,zS=`active`,BS=`[data-bs-toggle="button"]`,VS=`click${LS}${RS}`,HS=class e extends ES{static get NAME(){return IS}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(zS))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};H.on(document,VS,BS,e=>{e.preventDefault();let t=e.target.closest(BS);HS.getOrCreateInstance(t).toggle()}),$x(HS);var US=`swipe`,WS=`.bs.swipe`,GS=`touchstart${WS}`,KS=`touchmove${WS}`,qS=`touchend${WS}`,JS=`pointerdown${WS}`,YS=`pointerup${WS}`,XS=`touch`,ZS=`pen`,QS=`pointer-event`,$S=40,eC={endCallback:null,leftCallback:null,rightCallback:null},tC={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},nC=class e extends wS{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 eC}static get DefaultType(){return tC}static get NAME(){return US}dispose(){H.off(this._element,WS)}_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(),eS(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<=$S)return;let t=e/this._deltaX;this._deltaX=0,t&&eS(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,JS,e=>this._start(e)),H.on(this._element,YS,e=>this._end(e)),this._element.classList.add(QS)):(H.on(this._element,GS,e=>this._start(e)),H.on(this._element,KS,e=>this._move(e)),H.on(this._element,qS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===ZS||e.pointerType===XS)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},rC=`carousel`,iC=`.bs.carousel`,aC=`.data-api`,oC=`ArrowLeft`,sC=`ArrowRight`,cC=500,lC=`next`,uC=`prev`,dC=`left`,fC=`right`,pC=`slide${iC}`,mC=`slid${iC}`,hC=`keydown${iC}`,gC=`mouseenter${iC}`,_C=`mouseleave${iC}`,vC=`dragstart${iC}`,yC=`load${iC}${aC}`,bC=`click${iC}${aC}`,xC=`carousel`,SC=`active`,CC=`slide`,wC=`carousel-item-end`,TC=`carousel-item-start`,EC=`carousel-item-next`,DC=`carousel-item-prev`,OC=`.active`,kC=`.carousel-item`,AC=`.active.carousel-item`,jC=`.carousel-item img`,MC=`.carousel-indicators`,NC=`[data-bs-slide], [data-bs-slide-to]`,PC=`[data-bs-ride="carousel"]`,FC={[oC]:fC,[sC]:dC},IC={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},LC={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},RC=class e extends ES{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(MC,this._element),this._addEventListeners(),this._config.ride===xC&&this.cycle()}static get Default(){return IC}static get DefaultType(){return LC}static get NAME(){return rC}next(){this._slide(lC)}nextWhenVisible(){!document.hidden&&Wx(this._element)&&this.next()}prev(){this._slide(uC)}pause(){this._isSliding&&Vx(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,mC,()=>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,mC,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?lC:uC;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,hC,e=>this._keydown(e)),this._config.pause===`hover`&&(H.on(this._element,gC,()=>this.pause()),H.on(this._element,_C,()=>this._maybeEnableCycle())),this._config.touch&&nC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of U.find(jC,this._element))H.on(e,vC,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(dC)),rightCallback:()=>this._slide(this._directionToOrder(fC)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),cC+this._config.interval))}};this._swipeHelper=new nC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=FC[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(OC,this._indicatorsElement);t.classList.remove(SC),t.removeAttribute(`aria-current`);let n=U.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(SC),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===lC,i=t||nS(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(pC).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?TC:wC,l=r?EC:DC;i.classList.add(l),Jx(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(SC),n.classList.remove(SC,l,c),this._isSliding=!1,o(mC)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(CC)}_getActive(){return U.findOne(AC,this._element)}_getItems(){return U.find(kC,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return Qx()?e===dC?uC:lC:e===dC?lC:uC}_orderToDirection(e){return Qx()?e===uC?dC:fC:e===uC?fC:dC}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,bC,NC,function(e){let t=U.getElementFromSelector(this);if(!t||!t.classList.contains(xC))return;e.preventDefault();let n=RC.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(CS.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),H.on(window,yC,()=>{let e=U.find(PC);for(let t of e)RC.getOrCreateInstance(t)}),$x(RC);var zC=`collapse`,BC=`.bs.collapse`,VC=`.data-api`,HC=`show${BC}`,UC=`shown${BC}`,WC=`hide${BC}`,GC=`hidden${BC}`,KC=`click${BC}${VC}`,qC=`show`,JC=`collapse`,YC=`collapsing`,XC=`collapsed`,ZC=`:scope .${JC} .${JC}`,QC=`collapse-horizontal`,$C=`width`,ew=`height`,tw=`.collapse.show, .collapse.collapsing`,nw=`[data-bs-toggle="collapse"]`,rw={parent:null,toggle:!0},iw={parent:`(null|element)`,toggle:`boolean`},aw=class e extends ES{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=U.find(nw);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 rw}static get DefaultType(){return iw}static get NAME(){return zC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(tw).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||H.trigger(this._element,HC).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(JC),this._element.classList.add(YC),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(YC),this._element.classList.add(JC,qC),this._element.style[n]=``,H.trigger(this._element,UC)},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,WC).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Jx(this._element),this._element.classList.add(YC),this._element.classList.remove(JC,qC);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(YC),this._element.classList.add(JC),H.trigger(this._element,GC)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(qC)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Ux(e.parent),e}_getDimension(){return this._element.classList.contains(QC)?$C:ew}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(nw);for(let t of e){let e=U.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=U.find(ZC,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(XC,!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,KC,nw,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of U.getMultipleElementsFromSelector(this))aw.getOrCreateInstance(e,{toggle:!1}).toggle()}),$x(aw);var ow=`dropdown`,sw=`.bs.dropdown`,cw=`.data-api`,lw=`Escape`,uw=`Tab`,dw=`ArrowUp`,fw=`ArrowDown`,pw=2,mw=`hide${sw}`,hw=`hidden${sw}`,gw=`show${sw}`,_w=`shown${sw}`,vw=`click${sw}${cw}`,yw=`keydown${sw}${cw}`,bw=`keyup${sw}${cw}`,xw=`show`,Sw=`dropup`,Cw=`dropend`,ww=`dropstart`,Tw=`dropup-center`,Ew=`dropdown-center`,Dw=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,Ow=`${Dw}.${xw}`,kw=`.dropdown-menu`,Aw=`.navbar`,jw=`.navbar-nav`,Mw=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Nw=Qx()?`top-end`:`top-start`,Pw=Qx()?`top-start`:`top-end`,Fw=Qx()?`bottom-end`:`bottom-start`,Iw=Qx()?`bottom-start`:`bottom-end`,Lw=Qx()?`left-start`:`right-start`,Rw=Qx()?`right-start`:`left-start`,zw=`top`,Bw=`bottom`,Vw={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Hw={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Uw=class e extends ES{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,kw)[0]||U.prev(this._element,kw)[0]||U.findOne(kw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Vw}static get DefaultType(){return Hw}static get NAME(){return ow}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Gx(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!H.trigger(this._element,gw,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(jw))for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,qx);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(xw),this._element.classList.add(xw),H.trigger(this._element,_w,e)}}hide(){if(Gx(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,mw,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,qx);this._popper&&this._popper.destroy(),this._menu.classList.remove(xw),this._element.classList.remove(xw),this._element.setAttribute(`aria-expanded`,`false`),CS.removeDataAttribute(this._menu,`popper`),H.trigger(this._element,hw,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Hx(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${ow.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(jx===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:Hx(this._config.reference)?e=Ux(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Ax(e,this._menu,t)}_isShown(){return this._menu.classList.contains(xw)}_getPlacement(){let e=this._parent;if(e.classList.contains(Cw))return Lw;if(e.classList.contains(ww))return Rw;if(e.classList.contains(Tw))return zw;if(e.classList.contains(Ew))return Bw;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(Sw)?t?Pw:Nw:t?Iw:Fw}_detectNavbar(){return this._element.closest(Aw)!==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`)&&(CS.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...eS(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=U.find(Mw,this._menu).filter(e=>Wx(e));n.length&&nS(n,t,e===fw,!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===pw||t.type===`keyup`&&t.key!==uw)return;let n=U.find(Ow);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===uw||/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===lw,i=[dw,fw].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(Dw)?this:U.prev(this,Dw)[0]||U.next(this,Dw)[0]||U.findOne(Dw,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,yw,Dw,Uw.dataApiKeydownHandler),H.on(document,yw,kw,Uw.dataApiKeydownHandler),H.on(document,vw,Uw.clearMenus),H.on(document,bw,Uw.clearMenus),H.on(document,vw,Dw,function(e){e.preventDefault(),Uw.getOrCreateInstance(this).toggle()}),$x(Uw);var Ww=`backdrop`,Gw=`fade`,Kw=`show`,qw=`mousedown.bs.${Ww}`,Jw={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},Yw={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},Xw=class extends wS{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Jw}static get DefaultType(){return Yw}static get NAME(){return Ww}show(e){if(!this._config.isVisible){eS(e);return}this._append();let t=this._getElement();this._config.isAnimated&&Jx(t),t.classList.add(Kw),this._emulateAnimation(()=>{eS(e)})}hide(e){if(!this._config.isVisible){eS(e);return}this._getElement().classList.remove(Kw),this._emulateAnimation(()=>{this.dispose(),eS(e)})}dispose(){this._isAppended&&=(H.off(this._element,qw),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Gw),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ux(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),H.on(e,qw,()=>{eS(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){tS(e,this._getElement(),this._config.isAnimated)}},Zw=`focustrap`,Qw=`.bs.focustrap`,$w=`focusin${Qw}`,eT=`keydown.tab${Qw}`,tT=`Tab`,nT=`forward`,rT=`backward`,iT={autofocus:!0,trapElement:null},aT={autofocus:`boolean`,trapElement:`element`},oT=class extends wS{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return iT}static get DefaultType(){return aT}static get NAME(){return Zw}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,Qw),H.on(document,$w,e=>this._handleFocusin(e)),H.on(document,eT,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,Qw))}_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===rT?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===tT&&(this._lastTabNavDirection=e.shiftKey?rT:nT)}},sT=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,cT=`.sticky-top`,lT=`padding-right`,uT=`margin-right`,dT=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,lT,t=>t+e),this._setElementAttributes(sT,lT,t=>t+e),this._setElementAttributes(cT,uT,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,lT),this._resetElementAttributes(sT,lT),this._resetElementAttributes(cT,uT)}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&&CS.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=CS.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}CS.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Hx(e)){t(e);return}for(let n of U.find(e,this._element))t(n)}},fT=`modal`,pT=`.bs.modal`,mT=`.data-api`,hT=`Escape`,gT=`hide${pT}`,_T=`hidePrevented${pT}`,vT=`hidden${pT}`,yT=`show${pT}`,bT=`shown${pT}`,xT=`resize${pT}`,ST=`click.dismiss${pT}`,CT=`mousedown.dismiss${pT}`,wT=`keydown.dismiss${pT}`,TT=`click${pT}${mT}`,ET=`modal-open`,DT=`fade`,OT=`show`,kT=`modal-static`,AT=`.modal.show`,jT=`.modal-dialog`,MT=`.modal-body`,NT=`[data-bs-toggle="modal"]`,PT={backdrop:!0,focus:!0,keyboard:!0},FT={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},IT=class e extends ES{constructor(e,t){super(e,t),this._dialog=U.findOne(jT,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new dT,this._addEventListeners()}static get Default(){return PT}static get DefaultType(){return FT}static get NAME(){return fT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||H.trigger(this._element,yT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ET),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||H.trigger(this._element,gT).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(OT),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,pT),H.off(this._dialog,pT),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xw({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new oT({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(MT,this._dialog);t&&(t.scrollTop=0),Jx(this._element),this._element.classList.add(OT),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,bT,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,wT,e=>{if(e.key===hT){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,xT,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,CT,e=>{H.one(this._element,ST,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(ET),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,vT)})}_isAnimated(){return this._element.classList.contains(DT)}_triggerBackdropTransition(){if(H.trigger(this._element,_T).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(kT)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(kT),this._queueCallback(()=>{this._element.classList.remove(kT),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=Qx()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=Qx()?`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,TT,NT,function(e){let t=U.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),H.one(t,yT,e=>{e.defaultPrevented||H.one(t,vT,()=>{Wx(this)&&this.focus()})});let n=U.findOne(AT);n&&IT.getInstance(n).hide(),IT.getOrCreateInstance(t).toggle(this)}),OS(IT),$x(IT);var LT=`offcanvas`,RT=`.bs.offcanvas`,zT=`.data-api`,BT=`load${RT}${zT}`,VT=`Escape`,HT=`show`,UT=`showing`,WT=`hiding`,GT=`offcanvas-backdrop`,KT=`.offcanvas.show`,qT=`show${RT}`,JT=`shown${RT}`,YT=`hide${RT}`,XT=`hidePrevented${RT}`,ZT=`hidden${RT}`,QT=`resize${RT}`,$T=`click${RT}${zT}`,eE=`keydown.dismiss${RT}`,tE=`[data-bs-toggle="offcanvas"]`,nE={backdrop:!0,keyboard:!0,scroll:!1},rE={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},iE=class e extends ES{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return nE}static get DefaultType(){return rE}static get NAME(){return LT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||H.trigger(this._element,qT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new dT().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(UT),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(HT),this._element.classList.remove(UT),H.trigger(this._element,JT,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||H.trigger(this._element,YT).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(WT),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(HT,WT),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new dT().reset(),H.trigger(this._element,ZT)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){H.trigger(this._element,XT);return}this.hide()},t=!!this._config.backdrop;return new Xw({className:GT,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new oT({trapElement:this._element})}_addEventListeners(){H.on(this._element,eE,e=>{if(e.key===VT){if(this._config.keyboard){this.hide();return}H.trigger(this._element,XT)}})}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,$T,tE,function(e){let t=U.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Gx(this))return;H.one(t,ZT,()=>{Wx(this)&&this.focus()});let n=U.findOne(KT);n&&n!==t&&iE.getInstance(n).hide(),iE.getOrCreateInstance(t).toggle(this)}),H.on(window,BT,()=>{for(let e of U.find(KT))iE.getOrCreateInstance(e).show()}),H.on(window,QT,()=>{for(let e of U.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&iE.getOrCreateInstance(e).hide()}),OS(iE),$x(iE);var aE={"*":[`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:[]},oE=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),sE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,cE=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?oE.has(n)?!!sE.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function lE(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)cE(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var uE=`TemplateFactory`,dE={allowList:aE,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},fE={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},pE={entry:`(string|element|function|null)`,selector:`(string|element)`},mE=class extends wS{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return dE}static get DefaultType(){return fE}static get NAME(){return uE}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},pE)}_setContent(e,t,n){let r=U.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Hx(t)){this._putElementInTemplate(Ux(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?lE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return eS(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},hE=`tooltip`,gE=new Set([`sanitize`,`allowList`,`sanitizeFn`]),_E=`fade`,vE=`modal`,yE=`show`,bE=`.tooltip-inner`,xE=`.${vE}`,SE=`hide.bs.modal`,CE=`hover`,wE=`focus`,TE=`click`,EE=`manual`,DE=`hide`,OE=`hidden`,kE=`show`,AE=`shown`,jE=`inserted`,ME=`click`,NE=`focusin`,PE=`focusout`,FE=`mouseenter`,IE=`mouseleave`,LE={AUTO:`auto`,TOP:`top`,RIGHT:Qx()?`left`:`right`,BOTTOM:`bottom`,LEFT:Qx()?`right`:`left`},RE={allowList:aE,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`},zE={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`},BE=class e extends ES{constructor(e,t){if(jx===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 RE}static get DefaultType(){return zE}static get NAME(){return hE}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(xE),SE,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(kE)),t=(Kx(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(jE))),this._popper=this._createPopper(n),n.classList.add(yE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,qx);this._queueCallback(()=>{H.trigger(this._element,this.constructor.eventName(AE)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||H.trigger(this._element,this.constructor.eventName(DE)).defaultPrevented)){if(this._getTipElement().classList.remove(yE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,qx);this._activeTrigger[TE]=!1,this._activeTrigger[wE]=!1,this._activeTrigger[CE]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),H.trigger(this._element,this.constructor.eventName(OE)))},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(_E,yE),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=zx(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(_E),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new mE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[bE]: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(_E)}_isShown(){return this.tip&&this.tip.classList.contains(yE)}_createPopper(e){let t=LE[eS(this._config.placement,[this,e,this._element]).toUpperCase()];return Ax(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 eS(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,...eS(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(ME),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[TE]=!(t._isShown()&&t._activeTrigger[TE]),t.toggle()});else if(t!==EE){let e=t===CE?this.constructor.eventName(FE):this.constructor.eventName(NE),n=t===CE?this.constructor.eventName(IE):this.constructor.eventName(PE);H.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?wE:CE]=!0,t._enter()}),H.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?wE:CE]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(xE),SE,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=CS.getDataAttributes(this._element);for(let e of Object.keys(t))gE.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:Ux(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]()}})}};$x(BE);var VE=`popover`,HE=`.popover-header`,UE=`.popover-body`,WE={...BE.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`},GE={...BE.DefaultType,content:`(null|string|element|function)`},KE=class e extends BE{static get Default(){return WE}static get DefaultType(){return GE}static get NAME(){return VE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[HE]:this._getTitle(),[UE]: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]()}})}};$x(KE);var qE=`scrollspy`,JE=`.bs.scrollspy`,YE=`.data-api`,XE=`activate${JE}`,ZE=`click${JE}`,QE=`load${JE}${YE}`,$E=`dropdown-item`,eD=`active`,tD=`[data-bs-spy="scroll"]`,nD=`[href]`,rD=`.nav, .list-group`,iD=`.nav-link`,aD=`${iD}, .nav-item > ${iD}, .list-group-item`,oD=`.dropdown`,sD=`.dropdown-toggle`,cD={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},lD={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},uD=class e extends ES{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 cD}static get DefaultType(){return lD}static get NAME(){return qE}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=Ux(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,ZE),H.on(this._config.target,ZE,nD,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(nD,this._config.target);for(let t of e){if(!t.hash||Gx(t))continue;let e=U.findOne(decodeURI(t.hash),this._element);Wx(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(eD),this._activateParents(e),H.trigger(this._element,XE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains($E)){U.findOne(sD,e.closest(oD)).classList.add(eD);return}for(let t of U.parents(e,rD))for(let e of U.prev(t,aD))e.classList.add(eD)}_clearActiveClass(e){e.classList.remove(eD);let t=U.find(`${nD}.${eD}`,e);for(let e of t)e.classList.remove(eD)}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,QE,()=>{for(let e of U.find(tD))uD.getOrCreateInstance(e)}),$x(uD);var dD=`tab`,fD=`.bs.tab`,pD=`hide${fD}`,mD=`hidden${fD}`,hD=`show${fD}`,gD=`shown${fD}`,_D=`click${fD}`,vD=`keydown${fD}`,yD=`load${fD}`,bD=`ArrowLeft`,xD=`ArrowRight`,SD=`ArrowUp`,CD=`ArrowDown`,wD=`Home`,TD=`End`,ED=`active`,DD=`fade`,OD=`show`,kD=`dropdown`,AD=`.dropdown-toggle`,jD=`.dropdown-menu`,MD=`:not(${AD})`,ND=`.list-group, .nav, [role="tablist"]`,PD=`.nav-item, .list-group-item`,FD=`.nav-link${MD}, .list-group-item${MD}, [role="tab"]${MD}`,ID=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,LD=`${FD}, ${ID}`,RD=`.${ED}[data-bs-toggle="tab"], .${ED}[data-bs-toggle="pill"], .${ED}[data-bs-toggle="list"]`,zD=class e extends ES{constructor(e){super(e),this._parent=this._element.closest(ND),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,vD,e=>this._keydown(e)))}static get NAME(){return dD}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?H.trigger(t,pD,{relatedTarget:e}):null;H.trigger(e,hD,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(ED),this._activate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(OD);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),H.trigger(e,gD,{relatedTarget:t})},e,e.classList.contains(DD)))}_deactivate(e,t){e&&(e.classList.remove(ED),e.blur(),this._deactivate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(OD);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),H.trigger(e,mD,{relatedTarget:t})},e,e.classList.contains(DD)))}_keydown(t){if(![bD,xD,SD,CD,wD,TD].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Gx(e)),r;if([wD,TD].includes(t.key))r=n[t.key===wD?0:n.length-1];else{let e=[xD,CD].includes(t.key);r=nS(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return U.find(LD,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(kD))return;let r=(e,r)=>{let i=U.findOne(e,n);i&&i.classList.toggle(r,t)};r(AD,ED),r(jD,OD),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(ED)}_getInnerElement(e){return e.matches(LD)?e:U.findOne(LD,e)}_getOuterElement(e){return e.closest(PD)||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,_D,ID,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Gx(this)&&zD.getOrCreateInstance(this).show()}),H.on(window,yD,()=>{for(let e of U.find(RD))zD.getOrCreateInstance(e)}),$x(zD);var BD=`toast`,VD=`.bs.toast`,HD=`mouseover${VD}`,UD=`mouseout${VD}`,WD=`focusin${VD}`,GD=`focusout${VD}`,KD=`hide${VD}`,qD=`hidden${VD}`,JD=`show${VD}`,YD=`shown${VD}`,XD=`fade`,ZD=`hide`,QD=`show`,$D=`showing`,eO={animation:`boolean`,autohide:`boolean`,delay:`number`},tO={animation:!0,autohide:!0,delay:5e3},nO=class e extends ES{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return tO}static get DefaultType(){return eO}static get NAME(){return BD}show(){H.trigger(this._element,JD).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(XD),this._element.classList.remove(ZD),Jx(this._element),this._element.classList.add(QD,$D),this._queueCallback(()=>{this._element.classList.remove($D),H.trigger(this._element,YD),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||H.trigger(this._element,KD).defaultPrevented||(this._element.classList.add($D),this._queueCallback(()=>{this._element.classList.add(ZD),this._element.classList.remove($D,QD),H.trigger(this._element,qD)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(QD),super.dispose()}isShown(){return this._element.classList.contains(QD)}_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,HD,e=>this._onInteraction(e,!0)),H.on(this._element,UD,e=>this._onInteraction(e,!1)),H.on(this._element,WD,e=>this._onInteraction(e,!0)),H.on(this._element,GD,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)}})}};OS(nO),$x(nO);function rO(e=void 0){let n=e=>o(`Succesvol`,e,h_.SUCCESS),r=e=>o(`Waarschuwing`,e,h_.WARNING),i=e=>o(`Informatie`,e,h_.INFO),a=e=>o(`Mislukt`,e,h_.DANGER);function o(n,r,i){let a=`toast-${La()}`,o={id:a,variant:i,title:n,text:r},c=document.querySelector(`.toast-container`);if(!c){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let l=(0,t.h)(y_,o),u=(0,t.createApp)({render:()=>l}).mount(document.createElement(`div`));c.appendChild(u.$el);let d=document.querySelector(`#${a}`);d&&(nO.getOrCreateInstance(d,e).show(),s(d))}function s(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:n,showInformationToast:i,showWarningToast:r,showDangerToast:a}}var iO={class:`bd-file-upload`},aO={class:`flex align-items-center justify-content-between gap-2`},oO={key:0,class:`preview-container`},sO=(0,t.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:n}){let{showDangerToast:r}=rO(),{t:i}=Ty.global,a=e,o=n,s=(0,t.ref)(null),c=(0,t.ref)([]);(0,t.watch)(()=>a.modelValue,e=>{s.value&&(s.value.files=s.value.files.filter(t=>e.files.some(e=>e.Naam===t.name)))},{deep:!0});let l=(0,t.computed)(()=>({variant:Sa.PRIMARY,size:ja.SM})),u=hg(a,`modelValue`,o),d=async e=>{let t=Array.isArray(e.files)?e.files:[e.files];c.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:a.token},body:t};f(e,await(await fetch(a.url,n)).json())}catch{r(a.errorMessage||i(`fileUpload.errorMessage`))}}c.value=[]},f=(e,t)=>{let n=c.value.findIndex(t=>t.name==e.name);n!==-1&&c.value.splice(n,1),u.value.files.push({previewUrl:e.objectURL,UUID:e.name,CorrelationId:t.CorrelationId,name:t.Naam,Naam:t.Naam})},p=e=>{let t=u.value.files.indexOf(e);t!==-1&&u.value.files.splice(t,1),t=c.value.indexOf(e),t!==-1&&c.value.splice(t,1)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,iO,[(0,t.createVNode)((0,t.unref)(yy),{ref_key:`fileUploadRef`,ref:s,multiple:a.multiple,"max-file-size":10485760,accept:a.acceptedFiles,auto:!0,"max-files":a.multiple?10:1,"custom-upload":!0,name:`file`,onUploader:d},{header:(0,t.withCtx)(({chooseCallback:e})=>[(0,t.createElementVNode)(`div`,aO,[(0,t.createVNode)(k,(0,t.mergeProps)(l.value,{onClick:e}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(re)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(a.buttonText),1)]),_:1},16,[`onClick`])])]),content:(0,t.withCtx)(()=>[c.value||(0,t.unref)(u)&&(0,t.unref)(u).files&&(0,t.unref)(u).files.length!==0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,oO,[(0,t.unref)(u)&&(0,t.unref)(u).files?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)((0,t.unref)(u).files,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(uv,{key:n,file:e,"is-pending":!1,onRemove:p},null,8,[`file`]))),128)):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(c.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(uv,{key:n,file:e,"is-pending":!0,onRemove:p},null,8,[`file`]))),128)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`multiple`,`accept`,`max-files`])]))}}),cO=[`id`,`value`,`disabled`],lO=[`for`],uO={class:`invalid-feedback`},dO={__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:n}){let r=e,i=n,{t:a}=Ju(),o=(0,t.ref)(r.modelValue),s=(0,t.computed)(()=>r.selectAllText?r.selectAllText:a(`form.multipleCheckbox.defaultButton`)),c=(0,t.computed)(()=>{let e=`bd-form-multiple-checkbox`;return r.state||(e+=` is-invalid`),r.overflow&&(e+=` overflow-form-control`),e}),l=(0,t.computed)(()=>r.errorMessage?r.errorMessage:a(`form.multipleCheckbox.defaultErrorMessage`));(0,t.watch)(()=>r.modelValue,e=>{o.value=e}),(0,t.watch)(o,e=>{i(`update:modelValue`,e),i(`on-input`,e),i(`change-department`,e)});function u(){o.value=r.options.map(e=>e.value),d()}function d(){i(`on-input`,o.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(c.value)},[(0,t.createVNode)(k,{variant:`outline-primary`,size:`sm`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,disabled:e.disabled},null,8,cO),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,lO)]))),128))],2),(0,t.createElementVNode)(`div`,uO,[(0,t.createVNode)(Yt),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}};function fO(e){this.content=e}fO.prototype={constructor:fO,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 fO(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 fO(n)},addToStart:function(e,t){return new fO([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new fO(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 fO(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=fO.from(e),e.size?new fO(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=fO.from(e),e.size?new fO(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=fO.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}},fO.from=function(e){if(e instanceof fO)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new fO(t)};function pO(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&&gO(e.charCodeAt(r-1))&&hO(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=pO(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function mO(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&&gO(e.charCodeAt(i-1))&&hO(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=mO(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function hO(e){return e>=56320&&e<57344}function gO(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 pO(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return mO(this,e,t,n)}findIndex(e){if(e==0)return vO(0,e);if(e==this.size)return vO(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?vO(t+1,i):vO(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 _O={index:0,offset:0};function vO(e,t){return _O.index=e,_O.offset=t,_O}function yO(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(!yO(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!yO(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&&yO(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 bO=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=SO(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(xO(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 xO(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(xO(a.content,t-i-1,n-i-1)))}function SO(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=SO(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 CO(e,t,n){if(n.openStart>e.depth)throw new bO(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new bO(`Inconsistent open depths`);return wO(e,t,n,0)}function wO(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=wO(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return kO(a,jO(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return kO(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=MO(n,e);return kO(a,AO(e,i,o,t,r))}}function TO(e,t){if(!t.type.compatibleContent(e.type))throw new bO(`Cannot join `+t.type.name+` onto `+e.type.name)}function EO(e,t,n){let r=e.node(n);return TO(r,t.node(n)),r}function DO(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 OO(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&&(DO(e.nodeAfter,r),a++));for(let e=a;e<o;e++)DO(i.child(e),r);t&&t.depth==n&&t.textOffset&&DO(t.nodeBefore,r)}function kO(e,t){if(!e.type.validContent(t))throw new bO(`Invalid content for node `+e.type.name);return e.copy(t)}function AO(e,t,n,r,i){let a=e.depth>i&&EO(e,t,i+1),o=r.depth>i&&EO(n,r,i+1),s=[];return OO(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(TO(a,o),DO(kO(a,AO(e,t,n,r,i+1)),s)):(a&&DO(kO(a,jO(e,t,i+1)),s),OO(t,n,i,s),o&&DO(kO(o,jO(n,r,i+1)),s)),OO(r,null,i,s),new W(s)}function jO(e,t,n){let r=[];return OO(null,e,n,r),e.depth>n&&DO(kO(EO(e,t,n+1),jO(e,t,n+1)),r),OO(t,null,n,r),new W(r)}function MO(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 NO=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 LO(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=IO.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 IO.set(t,r=new PO);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%FO,i}},PO=class{constructor(){this.elts=[],this.i=0}},FO=12,IO=new WeakMap,LO=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)}},RO=Object.create(null),zO=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&&yO(this.attrs,t||e.defaultAttrs||RO)&&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 CO(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 NO.resolveCached(this,e)}resolveNoCache(e){return NO.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()+`)`),VO(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}};zO.prototype.text=void 0;var BO=class e extends zO{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):VO(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 VO(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var HO=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new UO(t,n);if(r.next==null)return e.empty;let i=WO(r);r.next&&r.err(`Unexpected trailing text`);let a=ek(ZO(i));return tk(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
+ 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 _y(e,t){if(e){if(typeof e==`string`)return vy(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)?vy(e,t):void 0}}function vy(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 yy={name:`FileUpload`,extends:cy,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=gy(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=gy(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,fy(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=gy(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=gy(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&&wd(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&&Td(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&&Td(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=fy(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=fy(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:Gm,ProgressBar:ty,Message:Vv,FileContent:ly,PlusIcon:dv,UploadIcon:Dv,TimesIcon:yv},directives:{ripple:Nm}},by=[`multiple`,`accept`,`disabled`],xy=[`accept`,`disabled`,`multiple`];function Sy(e,n,r,i,a,o){var s=(0,t.resolveComponent)(`Button`),c=(0,t.resolveComponent)(`ProgressBar`),l=(0,t.resolveComponent)(`Message`),u=(0,t.resolveComponent)(`FileContent`);return o.isAdvanced?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,class:e.cx(`root`)},e.ptmi(`root`)),[(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`fileInput`,type:`file`,onChange:n[0]||=function(){return o.onFileSelect&&o.onFileSelect.apply(o,arguments)},multiple:e.multiple,accept:e.accept,disabled:o.chooseDisabled},e.ptm(`input`)),null,16,by),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`header`)},e.ptm(`header`)),[(0,t.renderSlot)(e.$slots,`header`,{files:a.files,uploadedFiles:a.uploadedFiles,chooseCallback:o.choose,uploadCallback:o.uploader,clearCallback:o.clear},function(){return[(0,t.createVNode)(s,(0,t.mergeProps)({label:o.chooseButtonLabel,class:o.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onClick:o.choose,onKeydown:(0,t.withKeys)(o.choose,[`enter`]),onFocus:o.onFocus,onBlur:o.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,t.mergeProps)({class:[n.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,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:0,class:e.cx(`pcUploadButton`),label:o.uploadButtonLabel,onClick:o.uploader,disabled:o.uploadDisabled,unstyled:e.unstyled},e.uploadButtonProps,{pt:e.ptm(`pcUploadButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`uploadicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.uploadIcon?`span`:`UploadIcon`),(0,t.mergeProps)({class:[n.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,t.createCommentVNode)(``,!0),e.showCancelButton?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:1,class:e.cx(`pcCancelButton`),label:o.cancelButtonLabel,onClick:o.clear,disabled:o.cancelDisabled,unstyled:e.unstyled},e.cancelButtonProps,{pt:e.ptm(`pcCancelButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`cancelicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.cancelIcon?`span`:`TimesIcon`),(0,t.mergeProps)({class:[n.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,t.createCommentVNode)(``,!0)]})],16),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({ref:`content`,class:e.cx(`content`),onDragenter:n[1]||=function(){return o.onDragEnter&&o.onDragEnter.apply(o,arguments)},onDragover:n[2]||=function(){return o.onDragOver&&o.onDragOver.apply(o,arguments)},onDragleave:n[3]||=function(){return o.onDragLeave&&o.onDragLeave.apply(o,arguments)},onDrop:n[4]||=function(){return o.onDrop&&o.onDrop.apply(o,arguments)}},e.ptm(`content`),{"data-p-highlight":!1}),[(0,t.renderSlot)(e.$slots,`content`,{files:a.files,uploadedFiles:a.uploadedFiles,removeUploadedFileCallback:o.removeUploadedFile,removeFileCallback:o.remove,progress:a.progress,messages:a.messages},function(){return[o.hasFiles?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,value:a.progress,showValue:!1,unstyled:e.unstyled,pt:e.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.messages,function(n){return(0,t.openBlock)(),(0,t.createBlock)(l,{key:n,severity:`error`,onClose:o.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,t.withCtx)(function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(n),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),o.hasFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)(e.cx(`fileList`))},[(0,t.createVNode)(u,{files:a.files,onRemove:o.remove,badgeValue:o.pendingLabel,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,t.createCommentVNode)(``,!0),o.hasUploadedFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:(0,t.normalizeClass)(e.cx(`fileList`))},[(0,t.createVNode)(u,{files:a.uploadedFiles,onRemove:o.removeUploadedFile,badgeValue:o.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,t.createCommentVNode)(``,!0)]}),e.$slots.empty&&!o.hasFiles&&!o.hasUploadedFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.ptm(`empty`))),[(0,t.renderSlot)(e.$slots,`empty`)],16)):(0,t.createCommentVNode)(``,!0)],16)],16)):o.isBasic?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:1,class:e.cx(`root`)},e.ptmi(`root`)),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.messages,function(n){return(0,t.openBlock)(),(0,t.createBlock)(l,{key:n,severity:`error`,onClose:o.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,t.withCtx)(function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(n),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`basicContent`)},e.ptm(`basicContent`)),[(0,t.createVNode)(s,(0,t.mergeProps)({label:o.chooseButtonLabel,class:o.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onMouseup:o.onBasicUploaderClick,onKeydown:(0,t.withKeys)(o.choose,[`enter`]),onFocus:o.onFocus,onBlur:o.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,t.mergeProps)({class:[n.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,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`filelabel`,{key:0,class:(0,t.normalizeClass)(e.cx(`filelabel`)),files:a.files},function(){return[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)(e.cx(`filelabel`))},(0,t.toDisplayString)(o.basicFileChosenLabel),3)]}),(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`fileInput`,type:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:n[5]||=function(){return o.onFileSelect&&o.onFileSelect.apply(o,arguments)},onFocus:n[6]||=function(){return o.onFocus&&o.onFocus.apply(o,arguments)},onBlur:n[7]||=function(){return o.onBlur&&o.onBlur.apply(o,arguments)}},e.ptm(`input`)),null,16,xy)],16)],16)):(0,t.createCommentVNode)(``,!0)}yy.render=Sy;var Cy={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`}},wy={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.`}},Ty=qu({legacy:!1,locale:`nl`,messages:{en:{...Cy},nl:{...wy}}}),Ey=`bottom`,Dy=`right`,Oy=`left`,ky=`auto`,Ay=[`top`,Ey,Dy,Oy],jy=`start`,My=`clippingParents`,Ny=`viewport`,Py=`popper`,Fy=`reference`,Iy=Ay.reduce(function(e,t){return e.concat([t+`-`+jy,t+`-end`])},[]),Ly=[].concat(Ay,[ky]).reduce(function(e,t){return e.concat([t,t+`-`+jy,t+`-end`])},[]),Ry=`beforeRead`,zy=`read`,By=`afterRead`,Vy=`beforeMain`,Hy=`main`,Uy=`afterMain`,Wy=`beforeWrite`,Gy=`write`,Ky=`afterWrite`,qy=[Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky];function Jy(e){return e?(e.nodeName||``).toLowerCase():null}function Yy(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xy(e){return e instanceof Yy(e).Element||e instanceof Element}function Zy(e){return e instanceof Yy(e).HTMLElement||e instanceof HTMLElement}function Qy(e){return typeof ShadowRoot>`u`?!1:e instanceof Yy(e).ShadowRoot||e instanceof ShadowRoot}function $y(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];!Zy(i)||!Jy(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 eb(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},{});!Zy(r)||!Jy(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var tb={name:`applyStyles`,enabled:!0,phase:`write`,fn:$y,effect:eb,requires:[`computeStyles`]};function nb(e){return e.split(`-`)[0]}var rb=Math.max,ib=Math.min,ab=Math.round;function ob(){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 sb(){return!/^((?!chrome|android).)*safari/i.test(ob())}function cb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Zy(e)&&(i=e.offsetWidth>0&&ab(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ab(r.height)/e.offsetHeight||1);var o=(Xy(e)?Yy(e):window).visualViewport,s=!sb()&&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 lb(e){var t=cb(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 ub(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function db(e){return Yy(e).getComputedStyle(e)}function fb(e){return[`table`,`td`,`th`].indexOf(Jy(e))>=0}function pb(e){return((Xy(e)?e.ownerDocument:e.document)||window.document).documentElement}function mb(e){return Jy(e)===`html`?e:e.assignedSlot||e.parentNode||(Qy(e)?e.host:null)||pb(e)}function hb(e){return!Zy(e)||db(e).position===`fixed`?null:e.offsetParent}function gb(e){var t=/firefox/i.test(ob());if(/Trident/i.test(ob())&&Zy(e)&&db(e).position===`fixed`)return null;var n=mb(e);for(Qy(n)&&(n=n.host);Zy(n)&&[`html`,`body`].indexOf(Jy(n))<0;){var r=db(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 _b(e){for(var t=Yy(e),n=hb(e);n&&fb(n)&&db(n).position===`static`;)n=hb(n);return n&&(Jy(n)===`html`||Jy(n)===`body`&&db(n).position===`static`)?t:n||gb(e)||t}function vb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function yb(e,t,n){return rb(e,ib(t,n))}function bb(e,t,n){var r=yb(e,t,n);return r>n?n:r}function xb(){return{top:0,right:0,bottom:0,left:0}}function Sb(e){return Object.assign({},xb(),e)}function Cb(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var wb=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Sb(typeof e==`number`?Cb(e,Ay):e)};function Tb(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=nb(n.placement),c=vb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=wb(i.padding,n),d=lb(a),f=c===`y`?`top`:Oy,p=c===`y`?Ey:Dy,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=_b(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=yb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Eb(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)||ub(t.elements.popper,r)&&(t.elements.arrow=r))}var Db={name:`arrow`,enabled:!0,phase:`main`,fn:Tb,effect:Eb,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Ob(e){return e.split(`-`)[1]}var kb={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Ab(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ab(n*i)/i||0,y:ab(r*i)/i||0}}function jb(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=Oy,b=`top`,x=window;if(l){var S=_b(n),C=`clientHeight`,w=`clientWidth`;if(S===Yy(n)&&(S=pb(n),db(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Ey;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=Dy;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&&kb),O=u===!0?Ab({x:p,y:h},Yy(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 Mb(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:nb(t.placement),variation:Ob(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,jb(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,jb(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 Nb={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Mb,data:{}},Pb={passive:!0};function Fb(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=Yy(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Pb)}),s&&c.addEventListener(`resize`,n.update,Pb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Pb)}),s&&c.removeEventListener(`resize`,n.update,Pb)}}var Ib={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Fb,data:{}},Lb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Rb(e){return e.replace(/left|right|bottom|top/g,function(e){return Lb[e]})}var zb={start:`end`,end:`start`};function Bb(e){return e.replace(/start|end/g,function(e){return zb[e]})}function Vb(e){var t=Yy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Hb(e){return cb(pb(e)).left+Vb(e).scrollLeft}function Ub(e,t){var n=Yy(e),r=pb(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=sb();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Hb(e),y:c}}function Wb(e){var t=pb(e),n=Vb(e),r=e.ownerDocument?.body,i=rb(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=rb(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Hb(e),s=-n.scrollTop;return db(r||t).direction===`rtl`&&(o+=rb(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Gb(e){var t=db(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Kb(e){return[`html`,`body`,`#document`].indexOf(Jy(e))>=0?e.ownerDocument.body:Zy(e)&&Gb(e)?e:Kb(mb(e))}function qb(e,t){t===void 0&&(t=[]);var n=Kb(e),r=n===e.ownerDocument?.body,i=Yy(n),a=r?[i].concat(i.visualViewport||[],Gb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(qb(mb(a)))}function Jb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yb(e,t){var n=cb(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 Xb(e,t,n){return t===`viewport`?Jb(Ub(e,n)):Xy(t)?Yb(t,n):Jb(Wb(pb(e)))}function Zb(e){var t=qb(mb(e)),n=[`absolute`,`fixed`].indexOf(db(e).position)>=0&&Zy(e)?_b(e):e;return Xy(n)?t.filter(function(e){return Xy(e)&&ub(e,n)&&Jy(e)!==`body`}):[]}function Qb(e,t,n,r){var i=t===`clippingParents`?Zb(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Xb(e,n,r);return t.top=rb(i.top,t.top),t.right=ib(i.right,t.right),t.bottom=ib(i.bottom,t.bottom),t.left=rb(i.left,t.left),t},Xb(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 $b(e){var t=e.reference,n=e.element,r=e.placement,i=r?nb(r):null,a=r?Ob(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 Ey:c={x:o,y:t.y+t.height};break;case Dy:c={x:t.x+t.width,y:s};break;case Oy:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?vb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case jy: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 ex(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?My:s,l=n.rootBoundary,u=l===void 0?Ny:l,d=n.elementContext,f=d===void 0?Py:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Sb(typeof g==`number`?Cb(g,Ay):g),v=f===`popper`?Fy:Py,y=e.rects.popper,b=e.elements[m?v:f],x=Qb(Xy(b)?b:b.contextElement||pb(e.elements.popper),c,u,o),S=cb(e.elements.reference),C=$b({reference:S,element:y,strategy:`absolute`,placement:i}),w=Jb(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 tx(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?Ly:c,u=Ob(r),d=u?s?Iy:Iy.filter(function(e){return Ob(e)===u}):Ay,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]=ex(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[nb(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function nx(e){if(nb(e)===`auto`)return[];var t=Rb(e);return[Bb(e),t,Bb(t)]}function rx(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,_=nb(g)===g,v=c||(_||!m?[Rb(g)]:nx(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(nb(n)===`auto`?tx(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=nb(E),O=Ob(E)===jy,ee=[`top`,Ey].indexOf(D)>=0,te=ee?`width`:`height`,ne=ex(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),re=ee?O?Dy:Oy:O?Ey:`top`;b[te]>x[te]&&(re=Rb(re));var ie=Rb(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 ix={name:`flip`,enabled:!0,phase:`main`,fn:rx,requiresIfExists:[`offset`],data:{_skip:!1}};function ax(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 ox(e){return[`top`,Dy,Ey,Oy].some(function(t){return e[t]>=0})}function sx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ex(t,{elementContext:`reference`}),s=ex(t,{altBoundary:!0}),c=ax(o,r),l=ax(s,i,a),u=ox(c),d=ox(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 cx={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:sx};function lx(e,t,n){var r=nb(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 ux(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Ly.reduce(function(e,n){return e[n]=lx(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 dx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:ux};function fx(e){var t=e.state,n=e.name;t.modifiersData[n]=$b({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var px={name:`popperOffsets`,enabled:!0,phase:`read`,fn:fx,data:{}};function mx(e){return e===`x`?`y`:`x`}function hx(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=ex(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=nb(t.placement),v=Ob(t.placement),y=!v,b=vb(_),x=mx(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`:Oy,te=b===`y`?Ey:Dy,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?lb(le):{width:0,height:0},de=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:xb(),fe=de[ee],pe=de[te],me=yb(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&&_b(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=yb(p?ib(ie,be):ie,re,p?rb(ae,xe):ae);S[b]=Se,O[b]=Se-re}if(s){var Ce=b===`x`?`top`:Oy,we=b===`x`?Ey:Dy,Te=S[x],Ee=x===`y`?`height`:`width`,De=Te+g[Ce],Oe=Te-g[we],ke=[`top`,Oy].indexOf(_)!==-1,Ae=D?.[x]??0,je=ke?De:Te-C[Ee]-w[Ee]-Ae+E.altAxis,Me=ke?Te+C[Ee]+w[Ee]-Ae-E.altAxis:Oe,Ne=p&&ke?bb(je,Te,Me):yb(p?je:De,Te,p?Me:Oe);S[x]=Ne,O[x]=Ne-Te}t.modifiersData[r]=O}}var gx={name:`preventOverflow`,enabled:!0,phase:`main`,fn:hx,requiresIfExists:[`offset`]};function _x(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vx(e){return e===Yy(e)||!Zy(e)?Vb(e):_x(e)}function yx(e){var t=e.getBoundingClientRect(),n=ab(t.width)/e.offsetWidth||1,r=ab(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bx(e,t,n){n===void 0&&(n=!1);var r=Zy(t),i=Zy(t)&&yx(t),a=pb(t),o=cb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Jy(t)!==`body`||Gb(a))&&(s=vx(t)),Zy(t)?(c=cb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Hb(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function xx(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 Sx(e){var t=xx(e);return qy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Cx(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function wx(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 Tx={placement:`bottom`,modifiers:[],strategy:`absolute`};function Ex(){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 Dx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Tx:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Tx,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:Xy(e)?qb(e):e.contextElement?qb(e.contextElement):[],popper:qb(t)};var s=Sx(wx([].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(Ex(t,n)){i.rects={reference:bx(t,_b(n),i.options.strategy===`fixed`),popper:lb(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:Cx(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Ex(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 Ox=Dx(),kx=Dx({defaultModifiers:[Ib,px,Nb,tb]}),Ax=Dx({defaultModifiers:[Ib,px,Nb,tb,dx,ix,gx,Db,cx]}),jx=u({afterMain:()=>Uy,afterRead:()=>By,afterWrite:()=>Ky,applyStyles:()=>tb,arrow:()=>Db,auto:()=>ky,basePlacements:()=>Ay,beforeMain:()=>Vy,beforeRead:()=>Ry,beforeWrite:()=>Wy,bottom:()=>Ey,clippingParents:()=>My,computeStyles:()=>Nb,createPopper:()=>Ax,createPopperBase:()=>Ox,createPopperLite:()=>kx,detectOverflow:()=>ex,end:()=>`end`,eventListeners:()=>Ib,flip:()=>ix,hide:()=>cx,left:()=>Oy,main:()=>Hy,modifierPhases:()=>qy,offset:()=>dx,placements:()=>Ly,popper:()=>Py,popperGenerator:()=>Dx,popperOffsets:()=>px,preventOverflow:()=>gx,read:()=>zy,reference:()=>Fy,right:()=>Dy,start:()=>jy,top:()=>`top`,variationPlacements:()=>Iy,viewport:()=>Ny,write:()=>Gy}),Mx=new Map,Nx={set(e,t,n){Mx.has(e)||Mx.set(e,new Map);let r=Mx.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 Mx.has(e)&&Mx.get(e).get(t)||null},remove(e,t){if(!Mx.has(e))return;let n=Mx.get(e);n.delete(t),n.size===0&&Mx.delete(e)}},Px=1e6,Fx=1e3,Ix=`transitionend`,Lx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Rx=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),zx=e=>{do e+=Math.floor(Math.random()*Px);while(document.getElementById(e));return e},Bx=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))*Fx)},Vx=e=>{e.dispatchEvent(new Event(Ix))},Hx=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Ux=e=>Hx(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Lx(e)):null,Wx=e=>{if(!Hx(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},Gx=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,Kx=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?Kx(e.parentNode):null},qx=()=>{},Jx=e=>{e.offsetHeight},Yx=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,Xx=[],Zx=e=>{document.readyState===`loading`?(Xx.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of Xx)e()}),Xx.push(e)):e()},Qx=()=>document.documentElement.dir===`rtl`,$x=e=>{Zx(()=>{let t=Yx();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)}})},eS=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,tS=(e,t,n=!0)=>{if(!n){eS(e);return}let r=Bx(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Ix,a),eS(e))};t.addEventListener(Ix,a),setTimeout(()=>{i||Vx(t)},r)},nS=(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))])},rS=/[^.]*(?=\..*)\.|.*/,iS=/\..*/,aS=/::\d+$/,oS={},sS=1,cS={mouseenter:`mouseover`,mouseleave:`mouseout`},lS=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 uS(e,t){return t&&`${t}::${sS++}`||e.uidEvent||sS++}function dS(e){let t=uS(e);return e.uidEvent=t,oS[t]=oS[t]||{},oS[t]}function fS(e,t){return function n(r){return bS(r,{delegateTarget:e}),n.oneOff&&H.off(e,r.type,t),t.apply(e,[r])}}function pS(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 bS(i,{delegateTarget:o}),r.oneOff&&H.off(e,i.type,t,n),n.apply(o,[i])}}function mS(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function hS(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=yS(e);return lS.has(a)||(a=e),[r,i,a]}function gS(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=hS(t,n,r);t in cS&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=dS(e),l=c[s]||(c[s]={}),u=mS(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=uS(o,t.replace(rS,``)),f=a?pS(e,n,o):fS(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 _S(e,t,n,r,i){let a=mS(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function vS(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&_S(e,t,n,o.callable,o.delegationSelector)}function yS(e){return e=e.replace(iS,``),cS[e]||e}var H={on(e,t,n,r){gS(e,t,n,r,!1)},one(e,t,n,r){gS(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=hS(t,n,r),s=o!==t,c=dS(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;_S(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))vS(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(aS,``);(!s||t.includes(i))&&_S(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=Yx(),i=t!==yS(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=bS(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function bS(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 xS(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 SS(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var CS={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${SS(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${SS(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]=xS(e.dataset[r])}return t},getDataAttribute(e,t){return xS(e.getAttribute(`data-bs-${SS(t)}`))}},wS=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=Hx(t)?CS.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Hx(t)?CS.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=Hx(t)?`element`:Rx(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},TS=`5.3.8`,ES=class extends wS{constructor(e,t){super(),e=Ux(e),e&&(this._element=e,this._config=this._getConfig(t),Nx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Nx.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){tS(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Nx.get(Ux(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return TS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},DS=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=>Lx(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=>!Gx(e)&&Wx(e))},getSelectorFromElement(e){let t=DS(e);return t&&U.findOne(t)?t:null},getElementFromSelector(e){let t=DS(e);return t?U.findOne(t):null},getMultipleElementsFromSelector(e){let t=DS(e);return t?U.find(t):[]}},OS=(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(),Gx(this))return;let i=U.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},kS=`alert`,AS=`.bs.alert`,jS=`close${AS}`,MS=`closed${AS}`,NS=`fade`,PS=`show`,FS=class e extends ES{static get NAME(){return kS}close(){if(H.trigger(this._element,jS).defaultPrevented)return;this._element.classList.remove(PS);let e=this._element.classList.contains(NS);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,MS),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)}})}};OS(FS,`close`),$x(FS);var IS=`button`,LS=`.bs.button`,RS=`.data-api`,zS=`active`,BS=`[data-bs-toggle="button"]`,VS=`click${LS}${RS}`,HS=class e extends ES{static get NAME(){return IS}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(zS))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};H.on(document,VS,BS,e=>{e.preventDefault();let t=e.target.closest(BS);HS.getOrCreateInstance(t).toggle()}),$x(HS);var US=`swipe`,WS=`.bs.swipe`,GS=`touchstart${WS}`,KS=`touchmove${WS}`,qS=`touchend${WS}`,JS=`pointerdown${WS}`,YS=`pointerup${WS}`,XS=`touch`,ZS=`pen`,QS=`pointer-event`,$S=40,eC={endCallback:null,leftCallback:null,rightCallback:null},tC={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},nC=class e extends wS{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 eC}static get DefaultType(){return tC}static get NAME(){return US}dispose(){H.off(this._element,WS)}_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(),eS(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<=$S)return;let t=e/this._deltaX;this._deltaX=0,t&&eS(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,JS,e=>this._start(e)),H.on(this._element,YS,e=>this._end(e)),this._element.classList.add(QS)):(H.on(this._element,GS,e=>this._start(e)),H.on(this._element,KS,e=>this._move(e)),H.on(this._element,qS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===ZS||e.pointerType===XS)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},rC=`carousel`,iC=`.bs.carousel`,aC=`.data-api`,oC=`ArrowLeft`,sC=`ArrowRight`,cC=500,lC=`next`,uC=`prev`,dC=`left`,fC=`right`,pC=`slide${iC}`,mC=`slid${iC}`,hC=`keydown${iC}`,gC=`mouseenter${iC}`,_C=`mouseleave${iC}`,vC=`dragstart${iC}`,yC=`load${iC}${aC}`,bC=`click${iC}${aC}`,xC=`carousel`,SC=`active`,CC=`slide`,wC=`carousel-item-end`,TC=`carousel-item-start`,EC=`carousel-item-next`,DC=`carousel-item-prev`,OC=`.active`,kC=`.carousel-item`,AC=`.active.carousel-item`,jC=`.carousel-item img`,MC=`.carousel-indicators`,NC=`[data-bs-slide], [data-bs-slide-to]`,PC=`[data-bs-ride="carousel"]`,FC={[oC]:fC,[sC]:dC},IC={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},LC={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},RC=class e extends ES{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(MC,this._element),this._addEventListeners(),this._config.ride===xC&&this.cycle()}static get Default(){return IC}static get DefaultType(){return LC}static get NAME(){return rC}next(){this._slide(lC)}nextWhenVisible(){!document.hidden&&Wx(this._element)&&this.next()}prev(){this._slide(uC)}pause(){this._isSliding&&Vx(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,mC,()=>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,mC,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?lC:uC;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,hC,e=>this._keydown(e)),this._config.pause===`hover`&&(H.on(this._element,gC,()=>this.pause()),H.on(this._element,_C,()=>this._maybeEnableCycle())),this._config.touch&&nC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of U.find(jC,this._element))H.on(e,vC,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(dC)),rightCallback:()=>this._slide(this._directionToOrder(fC)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),cC+this._config.interval))}};this._swipeHelper=new nC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=FC[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(OC,this._indicatorsElement);t.classList.remove(SC),t.removeAttribute(`aria-current`);let n=U.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(SC),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===lC,i=t||nS(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(pC).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?TC:wC,l=r?EC:DC;i.classList.add(l),Jx(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(SC),n.classList.remove(SC,l,c),this._isSliding=!1,o(mC)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(CC)}_getActive(){return U.findOne(AC,this._element)}_getItems(){return U.find(kC,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return Qx()?e===dC?uC:lC:e===dC?lC:uC}_orderToDirection(e){return Qx()?e===uC?dC:fC:e===uC?fC:dC}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,bC,NC,function(e){let t=U.getElementFromSelector(this);if(!t||!t.classList.contains(xC))return;e.preventDefault();let n=RC.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(CS.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),H.on(window,yC,()=>{let e=U.find(PC);for(let t of e)RC.getOrCreateInstance(t)}),$x(RC);var zC=`collapse`,BC=`.bs.collapse`,VC=`.data-api`,HC=`show${BC}`,UC=`shown${BC}`,WC=`hide${BC}`,GC=`hidden${BC}`,KC=`click${BC}${VC}`,qC=`show`,JC=`collapse`,YC=`collapsing`,XC=`collapsed`,ZC=`:scope .${JC} .${JC}`,QC=`collapse-horizontal`,$C=`width`,ew=`height`,tw=`.collapse.show, .collapse.collapsing`,nw=`[data-bs-toggle="collapse"]`,rw={parent:null,toggle:!0},iw={parent:`(null|element)`,toggle:`boolean`},aw=class e extends ES{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=U.find(nw);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 rw}static get DefaultType(){return iw}static get NAME(){return zC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(tw).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||H.trigger(this._element,HC).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(JC),this._element.classList.add(YC),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(YC),this._element.classList.add(JC,qC),this._element.style[n]=``,H.trigger(this._element,UC)},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,WC).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Jx(this._element),this._element.classList.add(YC),this._element.classList.remove(JC,qC);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(YC),this._element.classList.add(JC),H.trigger(this._element,GC)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(qC)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Ux(e.parent),e}_getDimension(){return this._element.classList.contains(QC)?$C:ew}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(nw);for(let t of e){let e=U.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=U.find(ZC,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(XC,!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,KC,nw,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of U.getMultipleElementsFromSelector(this))aw.getOrCreateInstance(e,{toggle:!1}).toggle()}),$x(aw);var ow=`dropdown`,sw=`.bs.dropdown`,cw=`.data-api`,lw=`Escape`,uw=`Tab`,dw=`ArrowUp`,fw=`ArrowDown`,pw=2,mw=`hide${sw}`,hw=`hidden${sw}`,gw=`show${sw}`,_w=`shown${sw}`,vw=`click${sw}${cw}`,yw=`keydown${sw}${cw}`,bw=`keyup${sw}${cw}`,xw=`show`,Sw=`dropup`,Cw=`dropend`,ww=`dropstart`,Tw=`dropup-center`,Ew=`dropdown-center`,Dw=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,Ow=`${Dw}.${xw}`,kw=`.dropdown-menu`,Aw=`.navbar`,jw=`.navbar-nav`,Mw=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Nw=Qx()?`top-end`:`top-start`,Pw=Qx()?`top-start`:`top-end`,Fw=Qx()?`bottom-end`:`bottom-start`,Iw=Qx()?`bottom-start`:`bottom-end`,Lw=Qx()?`left-start`:`right-start`,Rw=Qx()?`right-start`:`left-start`,zw=`top`,Bw=`bottom`,Vw={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Hw={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Uw=class e extends ES{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,kw)[0]||U.prev(this._element,kw)[0]||U.findOne(kw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Vw}static get DefaultType(){return Hw}static get NAME(){return ow}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Gx(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!H.trigger(this._element,gw,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(jw))for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,qx);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(xw),this._element.classList.add(xw),H.trigger(this._element,_w,e)}}hide(){if(Gx(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,mw,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,qx);this._popper&&this._popper.destroy(),this._menu.classList.remove(xw),this._element.classList.remove(xw),this._element.setAttribute(`aria-expanded`,`false`),CS.removeDataAttribute(this._menu,`popper`),H.trigger(this._element,hw,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Hx(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${ow.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(jx===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:Hx(this._config.reference)?e=Ux(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Ax(e,this._menu,t)}_isShown(){return this._menu.classList.contains(xw)}_getPlacement(){let e=this._parent;if(e.classList.contains(Cw))return Lw;if(e.classList.contains(ww))return Rw;if(e.classList.contains(Tw))return zw;if(e.classList.contains(Ew))return Bw;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(Sw)?t?Pw:Nw:t?Iw:Fw}_detectNavbar(){return this._element.closest(Aw)!==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`)&&(CS.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...eS(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=U.find(Mw,this._menu).filter(e=>Wx(e));n.length&&nS(n,t,e===fw,!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===pw||t.type===`keyup`&&t.key!==uw)return;let n=U.find(Ow);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===uw||/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===lw,i=[dw,fw].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(Dw)?this:U.prev(this,Dw)[0]||U.next(this,Dw)[0]||U.findOne(Dw,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,yw,Dw,Uw.dataApiKeydownHandler),H.on(document,yw,kw,Uw.dataApiKeydownHandler),H.on(document,vw,Uw.clearMenus),H.on(document,bw,Uw.clearMenus),H.on(document,vw,Dw,function(e){e.preventDefault(),Uw.getOrCreateInstance(this).toggle()}),$x(Uw);var Ww=`backdrop`,Gw=`fade`,Kw=`show`,qw=`mousedown.bs.${Ww}`,Jw={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},Yw={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},Xw=class extends wS{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Jw}static get DefaultType(){return Yw}static get NAME(){return Ww}show(e){if(!this._config.isVisible){eS(e);return}this._append();let t=this._getElement();this._config.isAnimated&&Jx(t),t.classList.add(Kw),this._emulateAnimation(()=>{eS(e)})}hide(e){if(!this._config.isVisible){eS(e);return}this._getElement().classList.remove(Kw),this._emulateAnimation(()=>{this.dispose(),eS(e)})}dispose(){this._isAppended&&=(H.off(this._element,qw),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Gw),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ux(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),H.on(e,qw,()=>{eS(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){tS(e,this._getElement(),this._config.isAnimated)}},Zw=`focustrap`,Qw=`.bs.focustrap`,$w=`focusin${Qw}`,eT=`keydown.tab${Qw}`,tT=`Tab`,nT=`forward`,rT=`backward`,iT={autofocus:!0,trapElement:null},aT={autofocus:`boolean`,trapElement:`element`},oT=class extends wS{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return iT}static get DefaultType(){return aT}static get NAME(){return Zw}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,Qw),H.on(document,$w,e=>this._handleFocusin(e)),H.on(document,eT,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,Qw))}_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===rT?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===tT&&(this._lastTabNavDirection=e.shiftKey?rT:nT)}},sT=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,cT=`.sticky-top`,lT=`padding-right`,uT=`margin-right`,dT=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,lT,t=>t+e),this._setElementAttributes(sT,lT,t=>t+e),this._setElementAttributes(cT,uT,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,lT),this._resetElementAttributes(sT,lT),this._resetElementAttributes(cT,uT)}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&&CS.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=CS.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}CS.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Hx(e)){t(e);return}for(let n of U.find(e,this._element))t(n)}},fT=`modal`,pT=`.bs.modal`,mT=`.data-api`,hT=`Escape`,gT=`hide${pT}`,_T=`hidePrevented${pT}`,vT=`hidden${pT}`,yT=`show${pT}`,bT=`shown${pT}`,xT=`resize${pT}`,ST=`click.dismiss${pT}`,CT=`mousedown.dismiss${pT}`,wT=`keydown.dismiss${pT}`,TT=`click${pT}${mT}`,ET=`modal-open`,DT=`fade`,OT=`show`,kT=`modal-static`,AT=`.modal.show`,jT=`.modal-dialog`,MT=`.modal-body`,NT=`[data-bs-toggle="modal"]`,PT={backdrop:!0,focus:!0,keyboard:!0},FT={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},IT=class e extends ES{constructor(e,t){super(e,t),this._dialog=U.findOne(jT,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new dT,this._addEventListeners()}static get Default(){return PT}static get DefaultType(){return FT}static get NAME(){return fT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||H.trigger(this._element,yT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ET),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||H.trigger(this._element,gT).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(OT),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,pT),H.off(this._dialog,pT),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xw({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new oT({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(MT,this._dialog);t&&(t.scrollTop=0),Jx(this._element),this._element.classList.add(OT),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,bT,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,wT,e=>{if(e.key===hT){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,xT,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,CT,e=>{H.one(this._element,ST,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(ET),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,vT)})}_isAnimated(){return this._element.classList.contains(DT)}_triggerBackdropTransition(){if(H.trigger(this._element,_T).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(kT)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(kT),this._queueCallback(()=>{this._element.classList.remove(kT),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=Qx()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=Qx()?`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,TT,NT,function(e){let t=U.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),H.one(t,yT,e=>{e.defaultPrevented||H.one(t,vT,()=>{Wx(this)&&this.focus()})});let n=U.findOne(AT);n&&IT.getInstance(n).hide(),IT.getOrCreateInstance(t).toggle(this)}),OS(IT),$x(IT);var LT=`offcanvas`,RT=`.bs.offcanvas`,zT=`.data-api`,BT=`load${RT}${zT}`,VT=`Escape`,HT=`show`,UT=`showing`,WT=`hiding`,GT=`offcanvas-backdrop`,KT=`.offcanvas.show`,qT=`show${RT}`,JT=`shown${RT}`,YT=`hide${RT}`,XT=`hidePrevented${RT}`,ZT=`hidden${RT}`,QT=`resize${RT}`,$T=`click${RT}${zT}`,eE=`keydown.dismiss${RT}`,tE=`[data-bs-toggle="offcanvas"]`,nE={backdrop:!0,keyboard:!0,scroll:!1},rE={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},iE=class e extends ES{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return nE}static get DefaultType(){return rE}static get NAME(){return LT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||H.trigger(this._element,qT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new dT().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(UT),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(HT),this._element.classList.remove(UT),H.trigger(this._element,JT,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||H.trigger(this._element,YT).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(WT),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(HT,WT),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new dT().reset(),H.trigger(this._element,ZT)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){H.trigger(this._element,XT);return}this.hide()},t=!!this._config.backdrop;return new Xw({className:GT,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new oT({trapElement:this._element})}_addEventListeners(){H.on(this._element,eE,e=>{if(e.key===VT){if(this._config.keyboard){this.hide();return}H.trigger(this._element,XT)}})}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,$T,tE,function(e){let t=U.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Gx(this))return;H.one(t,ZT,()=>{Wx(this)&&this.focus()});let n=U.findOne(KT);n&&n!==t&&iE.getInstance(n).hide(),iE.getOrCreateInstance(t).toggle(this)}),H.on(window,BT,()=>{for(let e of U.find(KT))iE.getOrCreateInstance(e).show()}),H.on(window,QT,()=>{for(let e of U.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&iE.getOrCreateInstance(e).hide()}),OS(iE),$x(iE);var aE={"*":[`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:[]},oE=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),sE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,cE=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?oE.has(n)?!!sE.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function lE(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)cE(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var uE=`TemplateFactory`,dE={allowList:aE,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},fE={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},pE={entry:`(string|element|function|null)`,selector:`(string|element)`},mE=class extends wS{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return dE}static get DefaultType(){return fE}static get NAME(){return uE}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},pE)}_setContent(e,t,n){let r=U.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Hx(t)){this._putElementInTemplate(Ux(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?lE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return eS(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},hE=`tooltip`,gE=new Set([`sanitize`,`allowList`,`sanitizeFn`]),_E=`fade`,vE=`modal`,yE=`show`,bE=`.tooltip-inner`,xE=`.${vE}`,SE=`hide.bs.modal`,CE=`hover`,wE=`focus`,TE=`click`,EE=`manual`,DE=`hide`,OE=`hidden`,kE=`show`,AE=`shown`,jE=`inserted`,ME=`click`,NE=`focusin`,PE=`focusout`,FE=`mouseenter`,IE=`mouseleave`,LE={AUTO:`auto`,TOP:`top`,RIGHT:Qx()?`left`:`right`,BOTTOM:`bottom`,LEFT:Qx()?`right`:`left`},RE={allowList:aE,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`},zE={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`},BE=class e extends ES{constructor(e,t){if(jx===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 RE}static get DefaultType(){return zE}static get NAME(){return hE}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(xE),SE,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(kE)),t=(Kx(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(jE))),this._popper=this._createPopper(n),n.classList.add(yE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,qx);this._queueCallback(()=>{H.trigger(this._element,this.constructor.eventName(AE)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||H.trigger(this._element,this.constructor.eventName(DE)).defaultPrevented)){if(this._getTipElement().classList.remove(yE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,qx);this._activeTrigger[TE]=!1,this._activeTrigger[wE]=!1,this._activeTrigger[CE]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),H.trigger(this._element,this.constructor.eventName(OE)))},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(_E,yE),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=zx(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(_E),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new mE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[bE]: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(_E)}_isShown(){return this.tip&&this.tip.classList.contains(yE)}_createPopper(e){let t=LE[eS(this._config.placement,[this,e,this._element]).toUpperCase()];return Ax(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 eS(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,...eS(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(ME),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[TE]=!(t._isShown()&&t._activeTrigger[TE]),t.toggle()});else if(t!==EE){let e=t===CE?this.constructor.eventName(FE):this.constructor.eventName(NE),n=t===CE?this.constructor.eventName(IE):this.constructor.eventName(PE);H.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?wE:CE]=!0,t._enter()}),H.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?wE:CE]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(xE),SE,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=CS.getDataAttributes(this._element);for(let e of Object.keys(t))gE.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:Ux(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]()}})}};$x(BE);var VE=`popover`,HE=`.popover-header`,UE=`.popover-body`,WE={...BE.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`},GE={...BE.DefaultType,content:`(null|string|element|function)`},KE=class e extends BE{static get Default(){return WE}static get DefaultType(){return GE}static get NAME(){return VE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[HE]:this._getTitle(),[UE]: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]()}})}};$x(KE);var qE=`scrollspy`,JE=`.bs.scrollspy`,YE=`.data-api`,XE=`activate${JE}`,ZE=`click${JE}`,QE=`load${JE}${YE}`,$E=`dropdown-item`,eD=`active`,tD=`[data-bs-spy="scroll"]`,nD=`[href]`,rD=`.nav, .list-group`,iD=`.nav-link`,aD=`${iD}, .nav-item > ${iD}, .list-group-item`,oD=`.dropdown`,sD=`.dropdown-toggle`,cD={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},lD={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},uD=class e extends ES{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 cD}static get DefaultType(){return lD}static get NAME(){return qE}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=Ux(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,ZE),H.on(this._config.target,ZE,nD,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(nD,this._config.target);for(let t of e){if(!t.hash||Gx(t))continue;let e=U.findOne(decodeURI(t.hash),this._element);Wx(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(eD),this._activateParents(e),H.trigger(this._element,XE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains($E)){U.findOne(sD,e.closest(oD)).classList.add(eD);return}for(let t of U.parents(e,rD))for(let e of U.prev(t,aD))e.classList.add(eD)}_clearActiveClass(e){e.classList.remove(eD);let t=U.find(`${nD}.${eD}`,e);for(let e of t)e.classList.remove(eD)}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,QE,()=>{for(let e of U.find(tD))uD.getOrCreateInstance(e)}),$x(uD);var dD=`tab`,fD=`.bs.tab`,pD=`hide${fD}`,mD=`hidden${fD}`,hD=`show${fD}`,gD=`shown${fD}`,_D=`click${fD}`,vD=`keydown${fD}`,yD=`load${fD}`,bD=`ArrowLeft`,xD=`ArrowRight`,SD=`ArrowUp`,CD=`ArrowDown`,wD=`Home`,TD=`End`,ED=`active`,DD=`fade`,OD=`show`,kD=`dropdown`,AD=`.dropdown-toggle`,jD=`.dropdown-menu`,MD=`:not(${AD})`,ND=`.list-group, .nav, [role="tablist"]`,PD=`.nav-item, .list-group-item`,FD=`.nav-link${MD}, .list-group-item${MD}, [role="tab"]${MD}`,ID=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,LD=`${FD}, ${ID}`,RD=`.${ED}[data-bs-toggle="tab"], .${ED}[data-bs-toggle="pill"], .${ED}[data-bs-toggle="list"]`,zD=class e extends ES{constructor(e){super(e),this._parent=this._element.closest(ND),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,vD,e=>this._keydown(e)))}static get NAME(){return dD}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?H.trigger(t,pD,{relatedTarget:e}):null;H.trigger(e,hD,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(ED),this._activate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(OD);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),H.trigger(e,gD,{relatedTarget:t})},e,e.classList.contains(DD)))}_deactivate(e,t){e&&(e.classList.remove(ED),e.blur(),this._deactivate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(OD);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),H.trigger(e,mD,{relatedTarget:t})},e,e.classList.contains(DD)))}_keydown(t){if(![bD,xD,SD,CD,wD,TD].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Gx(e)),r;if([wD,TD].includes(t.key))r=n[t.key===wD?0:n.length-1];else{let e=[xD,CD].includes(t.key);r=nS(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return U.find(LD,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(kD))return;let r=(e,r)=>{let i=U.findOne(e,n);i&&i.classList.toggle(r,t)};r(AD,ED),r(jD,OD),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(ED)}_getInnerElement(e){return e.matches(LD)?e:U.findOne(LD,e)}_getOuterElement(e){return e.closest(PD)||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,_D,ID,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Gx(this)&&zD.getOrCreateInstance(this).show()}),H.on(window,yD,()=>{for(let e of U.find(RD))zD.getOrCreateInstance(e)}),$x(zD);var BD=`toast`,VD=`.bs.toast`,HD=`mouseover${VD}`,UD=`mouseout${VD}`,WD=`focusin${VD}`,GD=`focusout${VD}`,KD=`hide${VD}`,qD=`hidden${VD}`,JD=`show${VD}`,YD=`shown${VD}`,XD=`fade`,ZD=`hide`,QD=`show`,$D=`showing`,eO={animation:`boolean`,autohide:`boolean`,delay:`number`},tO={animation:!0,autohide:!0,delay:5e3},nO=class e extends ES{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return tO}static get DefaultType(){return eO}static get NAME(){return BD}show(){H.trigger(this._element,JD).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(XD),this._element.classList.remove(ZD),Jx(this._element),this._element.classList.add(QD,$D),this._queueCallback(()=>{this._element.classList.remove($D),H.trigger(this._element,YD),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||H.trigger(this._element,KD).defaultPrevented||(this._element.classList.add($D),this._queueCallback(()=>{this._element.classList.add(ZD),this._element.classList.remove($D,QD),H.trigger(this._element,qD)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(QD),super.dispose()}isShown(){return this._element.classList.contains(QD)}_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,HD,e=>this._onInteraction(e,!0)),H.on(this._element,UD,e=>this._onInteraction(e,!1)),H.on(this._element,WD,e=>this._onInteraction(e,!0)),H.on(this._element,GD,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)}})}};OS(nO),$x(nO);function rO(e=void 0){let n=e=>o(`Succesvol`,e,h_.SUCCESS),r=e=>o(`Waarschuwing`,e,h_.WARNING),i=e=>o(`Informatie`,e,h_.INFO),a=e=>o(`Mislukt`,e,h_.DANGER);function o(n,r,i){let a=`toast-${La()}`,o={id:a,variant:i,title:n,text:r},c=document.querySelector(`.toast-container`);if(!c){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let l=(0,t.h)(y_,o),u=(0,t.createApp)({render:()=>l}).mount(document.createElement(`div`));c.appendChild(u.$el);let d=document.querySelector(`#${a}`);d&&(nO.getOrCreateInstance(d,e).show(),s(d))}function s(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:n,showInformationToast:i,showWarningToast:r,showDangerToast:a}}var iO={class:`bd-file-upload`},aO={class:`flex align-items-center justify-content-between gap-2`},oO={key:0,class:`preview-container`},sO=(0,t.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:n}){let{showDangerToast:r}=rO(),{t:i}=Ty.global,a=e,o=n,s=(0,t.ref)(null),c=(0,t.ref)([]);(0,t.watch)(()=>a.modelValue,e=>{s.value&&(s.value.files=s.value.files.filter(t=>e.files.some(e=>e.Naam===t.name)))},{deep:!0});let l=(0,t.computed)(()=>({variant:Sa.PRIMARY,size:ja.SM})),u=hg(a,`modelValue`,o),d=async e=>{let t=Array.isArray(e.files)?e.files:[e.files];c.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:a.token},body:t};f(e,await(await fetch(a.url,n)).json())}catch{r(a.errorMessage||i(`fileUpload.errorMessage`))}}c.value=[],s.value&&s.value.clear()},f=(e,t)=>{let n=c.value.findIndex(t=>t.name==e.name);n!==-1&&c.value.splice(n,1),u.value.files.push({previewUrl:e.objectURL,UUID:e.name,CorrelationId:t.CorrelationId,name:t.Naam,Naam:t.Naam})},p=e=>{let t=u.value.files.indexOf(e);t!==-1&&u.value.files.splice(t,1),t=c.value.indexOf(e),t!==-1&&c.value.splice(t,1)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,iO,[(0,t.createVNode)((0,t.unref)(yy),{ref_key:`fileUploadRef`,ref:s,multiple:a.multiple,"max-file-size":10485760,accept:a.acceptedFiles,auto:!0,"max-files":a.multiple?10:1,"custom-upload":!0,name:`file`,onUploader:d},{header:(0,t.withCtx)(({chooseCallback:e})=>[(0,t.createElementVNode)(`div`,aO,[(0,t.createVNode)(k,(0,t.mergeProps)(l.value,{onClick:e}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(re)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(a.buttonText),1)]),_:1},16,[`onClick`])])]),content:(0,t.withCtx)(()=>[c.value||(0,t.unref)(u)&&(0,t.unref)(u).files&&(0,t.unref)(u).files.length!==0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,oO,[(0,t.unref)(u)&&(0,t.unref)(u).files?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)((0,t.unref)(u).files,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(uv,{key:n,file:e,"is-pending":!1,onRemove:p},null,8,[`file`]))),128)):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(c.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(uv,{key:n,file:e,"is-pending":!0,onRemove:p},null,8,[`file`]))),128)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`multiple`,`accept`,`max-files`])]))}}),cO=[`id`,`value`,`disabled`],lO=[`for`],uO={class:`invalid-feedback`},dO={__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:n}){let r=e,i=n,{t:a}=Ju(),o=(0,t.ref)(r.modelValue),s=(0,t.computed)(()=>r.selectAllText?r.selectAllText:a(`form.multipleCheckbox.defaultButton`)),c=(0,t.computed)(()=>{let e=`bd-form-multiple-checkbox`;return r.state||(e+=` is-invalid`),r.overflow&&(e+=` overflow-form-control`),e}),l=(0,t.computed)(()=>r.errorMessage?r.errorMessage:a(`form.multipleCheckbox.defaultErrorMessage`));(0,t.watch)(()=>r.modelValue,e=>{o.value=e}),(0,t.watch)(o,e=>{i(`update:modelValue`,e),i(`on-input`,e),i(`change-department`,e)});function u(){o.value=r.options.map(e=>e.value),d()}function d(){i(`on-input`,o.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(c.value)},[(0,t.createVNode)(k,{variant:`outline-primary`,size:`sm`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,disabled:e.disabled},null,8,cO),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,lO)]))),128))],2),(0,t.createElementVNode)(`div`,uO,[(0,t.createVNode)(Yt),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}};function fO(e){this.content=e}fO.prototype={constructor:fO,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 fO(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 fO(n)},addToStart:function(e,t){return new fO([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new fO(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 fO(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=fO.from(e),e.size?new fO(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=fO.from(e),e.size?new fO(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=fO.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}},fO.from=function(e){if(e instanceof fO)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new fO(t)};function pO(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&&gO(e.charCodeAt(r-1))&&hO(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=pO(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function mO(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&&gO(e.charCodeAt(i-1))&&hO(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=mO(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function hO(e){return e>=56320&&e<57344}function gO(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 pO(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return mO(this,e,t,n)}findIndex(e){if(e==0)return vO(0,e);if(e==this.size)return vO(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?vO(t+1,i):vO(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 _O={index:0,offset:0};function vO(e,t){return _O.index=e,_O.offset=t,_O}function yO(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(!yO(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!yO(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&&yO(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 bO=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=SO(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(xO(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 xO(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(xO(a.content,t-i-1,n-i-1)))}function SO(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=SO(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 CO(e,t,n){if(n.openStart>e.depth)throw new bO(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new bO(`Inconsistent open depths`);return wO(e,t,n,0)}function wO(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=wO(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return kO(a,jO(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return kO(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=MO(n,e);return kO(a,AO(e,i,o,t,r))}}function TO(e,t){if(!t.type.compatibleContent(e.type))throw new bO(`Cannot join `+t.type.name+` onto `+e.type.name)}function EO(e,t,n){let r=e.node(n);return TO(r,t.node(n)),r}function DO(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 OO(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&&(DO(e.nodeAfter,r),a++));for(let e=a;e<o;e++)DO(i.child(e),r);t&&t.depth==n&&t.textOffset&&DO(t.nodeBefore,r)}function kO(e,t){if(!e.type.validContent(t))throw new bO(`Invalid content for node `+e.type.name);return e.copy(t)}function AO(e,t,n,r,i){let a=e.depth>i&&EO(e,t,i+1),o=r.depth>i&&EO(n,r,i+1),s=[];return OO(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(TO(a,o),DO(kO(a,AO(e,t,n,r,i+1)),s)):(a&&DO(kO(a,jO(e,t,i+1)),s),OO(t,n,i,s),o&&DO(kO(o,jO(n,r,i+1)),s)),OO(r,null,i,s),new W(s)}function jO(e,t,n){let r=[];return OO(null,e,n,r),e.depth>n&&DO(kO(EO(e,t,n+1),jO(e,t,n+1)),r),OO(t,null,n,r),new W(r)}function MO(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 NO=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 LO(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=IO.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 IO.set(t,r=new PO);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%FO,i}},PO=class{constructor(){this.elts=[],this.i=0}},FO=12,IO=new WeakMap,LO=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)}},RO=Object.create(null),zO=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&&yO(this.attrs,t||e.defaultAttrs||RO)&&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 CO(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 NO.resolveCached(this,e)}resolveNoCache(e){return NO.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()+`)`),VO(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}};zO.prototype.text=void 0;var BO=class e extends zO{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):VO(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 VO(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var HO=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new UO(t,n);if(r.next==null)return e.empty;let i=WO(r);r.next&&r.err(`Unexpected trailing text`);let a=ek(ZO(i));return tk(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(`
1697
1697
  `)}};HO.empty=new HO(!0);var UO=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 WO(e){let t=[];do t.push(GO(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function GO(e){let t=[];do t.push(KO(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function KO(e){let t=XO(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=JO(e,t);else break;return t}function qO(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function JO(e,t){let n=qO(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:qO(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function YO(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 XO(e){if(e.eat(`(`)){let t=WO(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=YO(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 ZO(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 QO(e,t){return t-e}function $O(e,t){let n=[];return r(t),n.sort(QO);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 ek(e){let t=Object.create(null);return n($O(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]);$O(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new HO(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(QO);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function tk(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 nk(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 rk(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 ik(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 ak(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new ck(e,r,t[r]);return n}var ok=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=ak(e,n.attrs),this.defaultAttrs=nk(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==HO.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:rk(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new zO(this,this.computeAttrs(e),W.from(t),G.setFrom(n))}createChecked(e=null,t,n){return t=W.from(t),this.checkContent(t),new zO(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 zO(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){ik(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 sk(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 ck=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?sk(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},lk=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=ak(e,r.attrs),this.excluded=null;let i=nk(this.attrs);this.instance=i?new G(this,i):null}create(e=null){return!e&&this.instance?this.instance:new G(this,rk(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){ik(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},uk=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=fO.from(e.nodes),t.marks=fO.from(e.marks||{}),this.nodes=ok.compile(this.spec.nodes,this),this.marks=lk.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]=HO.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?dk(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==``?[]:dk(this,n.split(` `))}this.nodeFromJSON=e=>zO.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 ok))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 BO(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 dk(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 fk(e){return e.tag!=null}function pk(e){return e.style!=null}var mk=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(fk(e))this.tags.push(e);else if(pk(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 Ck(this,t,!1);return n.addAll(e,G.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Ck(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(Tk(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=Ek(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=Ek(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)))}},hk={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},gk={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},_k={ol:!0,ul:!0},vk=1,yk=2,bk=4;function xk(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?vk:0)|(t===`full`?yk:0)}var Sk=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&bk?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&vk)){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&&!hk.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},Ck=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=xk(null,t.preserveWhitespace,0)|(n?bk:0);i=r?new Sk(r.type,r.attrs,G.none,!0,t.topMatch||r.type.contentMatch,a):n?new Sk(null,null,G.none,!0,null,a):new Sk(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&yk?`full`:this.localPreserveWS||(r.options&vk)>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,`
1698
1698
  `);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;_k.hasOwnProperty(a)&&this.parser.normalizeLists&&wk(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:gk.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(hk.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(`
1699
1699
  `),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):Dk(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=xk(e,i,a.options);a.options&bk&&a.content.length==0&&(o|=bk);let s=G.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):Dk(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new Sk(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|=vk);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 wk(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&_k.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Tk(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Ek(e){let t={};for(let n in e)t[n]=e[n];return t}function Dk(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 Ok=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=Ak(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 Ak(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Pk(Ak(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&&Pk(Ak(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Pk(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=kk(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return kk(e.marks)}};function kk(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Ak(e){return e.document||window.document}var jk=new WeakMap;function Mk(e){let t=jk.get(e);return t===void 0&&jk.set(e,t=Nk(e)),t}function Nk(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 Pk(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=Mk(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}=Pk(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Fk=65535,Ik=2**16;function Lk(e,t){return e+t*Ik}function Rk(e){return e&Fk}function zk(e){return(e-(e&Fk))/Ik}var Bk=1,Vk=2,Hk=4,Uk=8,Wk=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Uk)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Hk)>0}},Gk=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=Rk(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+zk(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:Lk(o/3,e-s),f=e==s?Vk:e==u?Bk:Hk;return(t<0?e!=s:e!=u)&&(f|=Uk),new Wk(a,f,d)}r+=l-c}return n?e+r:new Wk(e+r,0,null)}touches(e,t){let n=0,r=Rk(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])}};Gk.empty=new Gk([]);var Kk=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 Wk(e,r,null)}},qk=Object.create(null),Jk=class{getMap(){return Gk.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=qk[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in qk)throw RangeError(`Duplicate use of step JSON ID `+e);return qk[e]=t,t.prototype.jsonID=e,t}},Yk=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 bO)return e.fail(t.message);throw t}}};function Xk(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Xk(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return W.fromArray(r)}var Zk=class e extends Jk{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(Xk(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 Yk.fromReplace(e,this.from,this.to,i)}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:`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))}};Jk.jsonID(`addMark`,Zk);var Qk=class e extends Jk{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(Xk(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Yk.fromReplace(e,this.from,this.to,n)}invert(){return new Zk(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))}};Jk.jsonID(`removeMark`,Qk);var $k=class e extends Jk{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Yk.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Yk.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 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:`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))}};Jk.jsonID(`addNodeMark`,$k);var eA=class e extends Jk{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Yk.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Yk.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 $k(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))}};Jk.jsonID(`removeNodeMark`,eA);var tA=class e extends Jk{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&rA(e,this.from,this.to)?Yk.fail(`Structure replace would overwrite content`):Yk.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Gk([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)}};tA.MAP_BIAS=1,Jk.jsonID(`replace`,tA);var nA=class e extends Jk{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&&(rA(e,this.from,this.gapFrom)||rA(e,this.gapTo,this.to)))return Yk.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Yk.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Yk.fromReplace(e,this.from,this.to,n):Yk.fail(`Content does not fit in gap`)}getMap(){return new Gk([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)}};Jk.jsonID(`replaceAround`,nA);function rA(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 iA(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 Qk(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new Zk(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function aA(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 lk){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 Qk(t.from,t.to,t.style)))}function oA(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 tA(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 Qk(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 tA(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 sA(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function cA(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||!sA(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function lA(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 nA(c,l,o,s,new K(u.append(f),d,p),u.size-d,!0))}function uA(e,t,n=null,r=e){let i=fA(e,t),a=i&&pA(r,t);return a?i.map(dA).concat({type:t,attrs:n}).concat(a.map(dA)):null}function dA(e){return{type:e,attrs:null}}function fA(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 pA(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 mA(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 nA(i,a,i,a,new K(r,0,0),n.length,!0))}function hA(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)&&vA(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&&_A(e,t,n,a),oA(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 nA(c,l,c+1,l-1,new K(W.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&gA(e,t,n,a),!1}})}function gA(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 _A(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(`