1/*! For license information please see app.js.LICENSE.txt */ 2(()=>{var e,t,n={804(){!function(){var e=document.querySelector(".kb-js--animated-button"),t=Math.min(window.screen.width,window.screen.height)<768||navigator.userAgent.indexOf("Mobi")>-1,n="kb-hero-general__animated-button-container--retracted";if(!e)return!1;console.log("scrolling",document.documentElement.scrollTop),t?e.addEventListener("click",function(){e.classList.contains(n)?e.classList.remove(n):e.classList.contains(n)||e.classList.add(n)}):(e.addEventListener("mouseover",function(){return e.classList.remove(n)}),e.addEventListener("mouseleave",function(){return e.classList.add(n)}))}()},917(){function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}document.querySelectorAll(".FormFileUpload").forEach(function(t){t.ariaLive="polite",t.querySelector(".FormFileUpload__Input").addEventListener("change",function(n){var o=function(t,n){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.target.files,1)[0],r=o.name,a=(o.size/1e3).toFixed(2),i="".concat(r," - ").concat(a,"KB");t.querySelector(".FormFileUpload__PostedFile").textContent=i;var l=t.querySelector(".FormFileUpload__RemovePostedFile");if(n.target.files.length>0&&!l){var s=function(){var e=document.createElement("button");return e.classList.add("FormFileUpload__RemovePostedFile"),e.innerText="Fjern",e}();t.appendChild(s),function(e){e.querySelector(".FormFileUpload__RemovePostedFile").addEventListener("click",function(t){e.querySelector(".FormFileUpload__Input").value="",e.querySelector(".FormFileUpload__PostedFile").textContent="",e.querySelector(".FormFileUpload__RemovePostedFile").remove()})}(t)}else n.target.length>0&&l.remove()})})},384(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>p});var o=n(354),r=n.n(o),a=n(314),i=n.n(a),l=n(417),s=n.n(l),c=new URL(n(645),n.b),u=i()(r()),d=s()(c);
2u.push([e.id,`.tox {\n box-shadow: none;\n box-sizing: content-box;\n color: #222f3e;\n cursor: auto;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: normal;\n line-height: normal;\n -webkit-tap-highlight-color: transparent;\n -webkit-text-decoration: none;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n vertical-align: initial;\n white-space: normal;\n}\n.tox *:not(svg):not(rect) {\n box-sizing: inherit;\n color: inherit;\n cursor: inherit;\n direction: inherit;\n font-family: inherit;\n font-size: inherit;\n font-style: inherit;\n font-weight: inherit;\n line-height: inherit;\n -webkit-tap-highlight-color: inherit;\n text-align: inherit;\n text-decoration: inherit;\n text-shadow: inherit;\n text-transform: inherit;\n vertical-align: inherit;\n white-space: inherit;\n}\n.tox *:not(svg):not(rect) {\n /* stylelint-disable-line no-duplicate-selectors */\n background: transparent;\n border: 0;\n box-shadow: none;\n float: none;\n height: auto;\n margin: 0;\n max-width: none;\n outline: 0;\n padding: 0;\n position: static;\n width: auto;\n}\n.tox:not([dir=rtl]) {\n direction: ltr;\n text-align: left;\n}\n.tox[dir=rtl] {\n direction: rtl;\n text-align: right;\n}\n.tox-tinymce {\n border: 2px solid #eeeeee;\n border-radius: 10px;\n box-shadow: none;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n overflow: hidden;\n position: relative;\n visibility: inherit !important;\n}\n.tox.tox-tinymce-inline {\n border: none;\n box-shadow: none;\n overflow: initial;\n}\n.tox.tox-tinymce-inline .tox-editor-container {\n overflow: initial;\n}\n.tox.tox-tinymce-inline .tox-editor-header {\n background-color: #fff;\n border: 2px solid #eeeeee;\n border-radius: 10px;\n box-shadow: none;\n overflow: hidden;\n}\n.tox-tinymce-aux {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n z-index: 1300;\n}\n.tox-tinymce *:focus,\n.tox-tinymce-aux *:focus {\n outline: none;\n}\nbutton::-moz-focus-inner {\n border: 0;\n}\n.tox[dir=rtl] .tox-icon--flip svg {\n transform: rotateY(180deg);\n}\n@keyframes tox-rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tox .accessibility-issue__header {\n align-items: center;\n display: flex;\n margin-bottom: 4px;\n}\n.tox #accessibility-issue__subheader {\n font-size: 16px;\n color: #222f3e;\n}\n.tox .accessbility-sr-only {\n position: absolute;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(0 0 99.9% 99.9%);\n overflow: hidden;\n height: 1px;\n width: 1px;\n padding: 0;\n border: 0;\n}\n.tox .accessibility-issue__description {\n align-items: stretch;\n border-radius: 6px;\n justify-content: space-between;\n}\n.tox .accessibility-issue__description > div {\n padding-bottom: 4px;\n}\n.tox .accessibility-issue__description > div > div {\n align-items: center;\n display: flex;\n margin-bottom: 4px;\n}\n.tox .accessibility-issue__description > div > div .tox-icon svg {\n display: block;\n}\n.tox #accessibility-issue__contentID {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.tox #accessibility-issue__contentID span:first-child {\n font-weight: bold;\n}\n.tox #accessibility-issue__document {\n padding-bottom: 8px;\n}\n.tox .accessibility-issue__repair {\n margin-top: 8px;\n}\n.tox .accessibility-issue__repair .tox-form__group .tox-form__group--error {\n color: #c00;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description {\n background-color: #e6f0fd;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2 {\n font-size: 14px;\n color: #006ce7;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon.accessibility-issue__icon svg {\n fill: #006ce7;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon {\n background-color: #006ce7;\n color: #fff;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,\n.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus {\n background-color: #0060ce;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active {\n background-color: #0054b4;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description {\n background-color: #fffae6;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2 {\n font-size: 14px;\n color: #7a6e25;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon.accessibility-issue__icon svg {\n fill: #7a6e25;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon {\n background-color: #FFE89D;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,\n.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus {\n background-color: #F2D574;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active {\n background-color: #E8C657;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description {\n background-color: #fae6e6;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2 {\n font-size: 14px;\n color: #c00;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon.accessibility-issue__icon svg {\n fill: #c00;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon {\n background-color: #F2BFBF;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,\n.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus {\n background-color: #E9A4A4;
2\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active {\n background-color: #EE9494;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description {\n background-color: rgba(120, 171, 70, 0.1);\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description > *:last-child {\n display: none;\n}\n.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2 {\n color: #527530;\n}\n.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon.accessibility-issue__icon svg {\n fill: #527530;\n}\n.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,\n.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2 {\n margin-top: 0;\n}\n.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button {\n margin-left: 4px;\n}\n.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header > *:nth-last-child(2) {\n margin-left: auto;\n}\n.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description {\n padding: 8px;\n}\n.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button {\n margin-right: 4px;\n}\n.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header > *:nth-last-child(2) {\n margin-right: auto;\n}\n.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description {\n padding: 4px 8px 4px 4px;\n}\n.tox .mce-codemirror {\n background: #fff;\n bottom: 0;\n font-size: 13px;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n}\n.tox .mce-codemirror.tox-inline-codemirror {\n margin: 8px;\n position: absolute;\n}\n.tox .tox-advtemplate .tox-form__grid {\n flex: 1;\n}\n.tox .tox-advtemplate .tox-form__grid > div:first-child {\n display: flex;\n flex-direction: column;\n width: 30%;\n}\n.tox .tox-advtemplate .tox-form__grid > div:first-child > div:nth-child(2) {\n flex-basis: 0;\n flex-grow: 1;\n overflow: auto;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid > div:first-child {\n width: 100%;\n }\n}\n.tox .tox-advtemplate iframe {\n border-color: #eeeeee;\n border-radius: 10px;\n border-style: solid;\n border-width: 1px;\n margin: 0 10px;\n}\n.tox .tox-anchorbar {\n display: flex;\n flex: 0 0 auto;\n}\n.tox .tox-bottom-anchorbar {\n display: flex;\n flex: 0 0 auto;\n}\n.tox .tox-bar {\n display: flex;\n flex: 0 0 auto;\n}\n.tox .tox-button {\n background-color: #006ce7;\n background-image: none;\n background-position: 0 0;\n background-repeat: repeat;\n border-color: #006ce7;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n color: #fff;\n cursor: pointer;\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: bold;\n letter-spacing: normal;\n line-height: 24px;\n margin: 0;\n outline: none;\n padding: 4px 16px;\n position: relative;\n text-align: center;\n -webkit-text-decoration: none;\n text-decoration: none;\n text-transform: none;\n white-space: nowrap;\n}\n.tox .tox-button::before {\n border-radius: 6px;\n bottom: -1px;\n box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #006ce7;\n content: '';\n left: -1px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n right: -1px;\n top: -1px;\n}\n.tox .tox-button[disabled] {\n background-color: #006ce7;\n background-image: none;\n border-color: #006ce7;\n box-shadow: none;\n color: rgba(255, 255, 255, 0.5);\n cursor: not-allowed;\n}\n.tox .tox-button:focus:not(:disabled) {\n background-color: #0060ce;\n background-image: none;\n border-color: #0060ce;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button:focus:not(:disabled)::before {\n opacity: 1;\n}\n.tox .tox-button:hover:not(:disabled) {\n background-color: #0060ce;\n background-image: none;\n border-color: #0060ce;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button:active:not(:disabled) {\n background-color: #0054b4;\n background-image: none;\n border-color: #0054b4;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button.tox-button--enabled {\n background-color: #0054b4;\n background-image: none;\n border-color: #0054b4;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button.tox-button--enabled[disabled] {\n background-color: #0054b4;\n background-image: none;\n border-color: #0054b4;\n box-shadow: none;\n color: rgba(255, 255, 255, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-button.tox-button--enabled:focus:not(:disabled) {\n background-color: #00489b;\n background-image: none;\n border-color: #00489b;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button.tox-button--enabled:hover:not(:disabled) {\n background-color: #00489b;\n background-image: none;\n border-color: #00489b;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button.tox-button--enabled:active:not(:disabled) {\n background-color: #003c81;\n background-image: none;\n border-color: #003c81;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button--icon-and-text,\n.tox .tox-button.tox-button--icon-and-text,\n.tox .tox-button.tox-button--secondary.tox-button--icon-and-text {\n display: flex;\n padding: 5px 4px;\n}\n.tox .tox-button--icon-and-text .tox-icon svg,\n.tox .tox-button.tox-button--icon-and-text .tox-icon svg,\n.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg {\n display: block;\n fill: currentColor;\n}\n.tox .tox-button--secondary {\n background-color: #f0f0f0;\n background-image: none;\n background-position: 0 0;\n background-repeat: repeat;\n border-color: #f0f0f0;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n color: #222f3e;\n font-size: 14px;\n font-style: normal;\n font-weight: bold;\n letter-spacing: normal;\n outline: none;\n padding: 4px 16px;\n -webkit-text-decoration: none;\n text-decoration: none;\n text-transform: none;\n}\n.tox .tox-button--secondary[disabled] {\n background-color: #f0f0f0;\n background-image: none;\n border-color: #f0f0f0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-button--secondary:focus:not(:disabled) {\n background-color: #e3e3e3;\n background-image: none;\n border-color: #e3e3e3;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary:hover:not(:disabled) {\n background-color: #e3e3e3;\n background-image: none;\n border-color: #e3e3e3;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary:active:not(:disabled) {\n background-color: #d6d6d6;\n background-image: none;\n border-color: #d6d6d6;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary.tox-button--enabled {\n background-color: #a8c8ed;\n background-image: none;\n border-color: #a8c8ed;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary.tox-button--enabled[disabled] {\n background-color: #a8c8ed;\n background-image: none;\n border-color: #a8c8ed;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled) {\n background-color: #93bbe9;\n background-image: none;\n border-color: #93bbe9;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled) {\n background-color: #93bbe9;\n background-image: none;\n border-color: #93bbe9;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled) {\n background-color: #7daee4;\n background-image: none;\n border-color: #7daee4;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--icon,\n.tox .tox-button.tox-button--icon,\n.tox .tox-button.tox-button--secondary.tox-button--icon {\n padding: 4px;\n}\n.tox .tox-button--icon .tox-icon svg,\n.tox .tox-button.tox-button--icon .tox-icon svg,\n.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg {\n display: block;\n fill: currentColor;\n}\n.tox-context-form__group .tox-button--icon,\n.tox-context-form__group .tox-button.tox-button--icon {\n margin: 6px 1px 5px 0;\n padding: 0;\n}\n.tox .tox-button-link {\n background: 0;\n border: none;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 16px;\n font-weight: normal;\n line-height: 1.3;\n margin: 0;\n padding: 0;\n white-space: nowrap;\n}\n.tox .tox-button-link--sm {\n font-size: 14px;\n}\n.tox .tox-button--naked {\n background-color: transparent;\n border-color: transparent;\n box-shadow: unset;\n color: #222f3e;\n}\n.tox .tox-button--naked[disabled] {\n background-color: rgba(34, 47, 62, 0.12);\n border-color: transparent;\n box-shadow: unset;\n color: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-button--naked:hover:not(:disabled) {\n background-color: rgba(34, 47, 62, 0.12);\n border-color: transparent;\n box-shadow: unset;\n color: #222f3e;\n}\n.tox .tox-button--naked:focus:not(:disabled) {\n background-color: rgba(34, 47, 62, 0.12);\n border-color: transparent;\n box-shadow: unset;\n color: #222f3e;\n}\n.tox .tox-button--naked:active:not(:disabled) {\n background-color: rgba(34, 47, 62, 0.18);\n border-color: transparent;\n box-shadow: unset;\n color: #222f3e;\n}\n.tox .tox-button--naked .tox-icon svg {\n fill: currentColor;\n}\n.tox .tox-button--naked.tox-button--icon:hover:not(:disabled) {\n color: #222f3e;\n}\n.tox .tox-checkbox {\n align-items: center;\n border-radius: 6px;\n cursor: pointer;\n display: flex;\n height: 36px;\n min-width: 36px;\n}\n.tox .tox-checkbox__input {\n /* Hide from view but visible to screen readers */\n height: 1px;\n overflow: hidden;\n position: absolute;\n top: auto;\n width: 1px;\n}\n.tox .tox-checkbox__icons {\n align-items: center;\n border-radius: 6px;\n box-shadow: 0 0 0 2px transparent;\n box-sizing: content-box;\n display: flex;\n height: 24px;\n justify-content: center;\n padding: calc(4px - 1px);\n width: 24px;\n}\n.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n display: block;\n fill: rgba(34, 47, 62, 0.3);\n}\n@media (forced-colors: active) {\n .tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n fill: currentColor !important;\n }\n}\n.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg {\n display: none;\n fill: #006ce7;\n}\n.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg {\n display: none;\n fill: #006ce7;\n}\n.tox .tox-checkbox--disabled {\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox input.tox-checkbox__input:checked + .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n display: none;\n}\n.tox input.tox-checkbox__input:checked + .tox-checkbox__icons .tox-checkbox-icon__checked svg {\n display: block;\n}\n.tox input.tox-checkbox__input:indeterminate + .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n display: none;\n}\n.tox input.tox-checkbox__input:indeterminate + .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg {\n display: block;\n}\n.tox input.tox-checkbox__input:focus + .tox-checkbox__icons {\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px #006ce7;\n padding: calc(4px - 1px);\n}\n.tox:not([dir=rtl]) .tox-checkbox__label {\n margin-left: 4px;\n}\n.tox:not([dir=rtl]) .tox-checkbox__input {\n left: -10000px;\n}\n.tox:not([dir=rtl]) .tox-bar .tox-checkbox {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-checkbox__label {\n margin-right: 4px;\n}\n.tox[dir=rtl] .tox-checkbox__input {\n right: -10000px;\n}\n.tox[dir=rtl] .tox-bar .tox-checkbox {\n margin-right: 4px;\n}\n.tox .tox-collection--toolbar .tox-collection__group {\n display: flex;\n padding: 0;\n}\n.tox .tox-collection--grid .tox-collection__group {\n display: flex;\n flex-wrap: wrap;\n max-height: 208px;\n overflow-x: hidden;\n overflow-y: auto;\n padding: 0;\n}\n.tox .tox-collection--list .tox-collection__group {\n border-bottom-width: 0;\n border-color: #e3e3e3;\n border-left-width: 0;\n border-right-width: 0;\n border-style: solid;\n border-top-width: 1px;\n padding: 4px 0;\n}\n.tox .tox-collection--list .tox-collection__group:first-child {\n border-top-width: 0;\n}\n.tox .tox-collection__group-heading {\n background-color: #fcfcfc;\n color: rgba(34, 47, 62, 0.7);\n cursor: default;\n font-size: 12px;\n font-style: normal;\n font-weight: normal;\n margin-bottom: 4px;\n margin-top: -4px;\n padding: 4px 8px;\n text-transform: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n}\n.tox .tox-collection__item {\n align-items: center;\n border-radius: 3px;\n color: #222f3e;\n display: flex;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n}\n.tox .tox-image-selector-menu .tox-collection__item-image-selector,\n.tox .tox-image-selector-menu .tox-collection__item {\n flex-direction: column;\n}\n.tox .tox-image-selector-menu .tox-collection__item-image-selector .tox-collection__item-icon,\n.tox .tox-image-selector-menu .tox-collection__item .tox-collection__item-icon,\n.tox .tox-image-selector-menu .tox-collection__item-image-selector .tox-collection__item-image,\n.tox .tox-image-selector-menu .tox-collection__item .tox-collection__item-image,\n.tox .tox-image-selector-menu .tox-collection__item-image-selector .tox-collection__item-checkmark,\n.tox .tox-image-selector-menu .tox-collection__item .tox-collection__item-checkmark {\n flex-grow: 1;\n}\n.tox .tox-image-selector-menu .tox-collection__item-image-selector label,\n.tox .tox-image-selector-menu .tox-collection__item label {\n width: 48px;\n white-space: nowrap;\n overflow: hidden;\n font-size: 12px;\n color: #222f3e;\n text-align: center;\n align-self: flex-end;\n}\n.tox .tox-image-selector-menu .tox-collection__item-checkmark {\n height: 24px;\n width: 24px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.tox .tox-image-selector-menu .tox-collection__item-checkmark svg path {\n fill: #006ce7;\n stroke: #006ce7;\n}\n.tox .tox-image-selector-menu .tox-image-selector__row .tox-collection__item-image-selector.tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n background-color: #fff;\n}\n.tox .tox-image-selector-menu .tox-image-selector__row .tox-collection__item-image-selector.tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n z-index: 2;\n background-color: #fff;\n opacity: 0.8;\n background-clip: content-box;\n}\n.tox .tox-collection--list .tox-collection__item {\n padding: 4px 8px;\n}\n.tox .tox-collection--toolbar .tox-collection__item {\n border-radius: 3px;\n padding: 4px;\n}\n.tox .tox-collection--grid .tox-collection__item {\n border-radius: 3px;\n padding: 4px;\n}\n.tox .tox-collection--list .tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n background-color: #fff;
2\n color: #222f3e;\n}\n.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n background-color: #006ce7;\n color: #fff;\n}\n@media (forced-colors: active) {\n .tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n border: solid 1px;\n }\n}\n.tox .tox-collection--grid .tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n background-color: #a6ccf7;\n color: #222f3e;\n}\n.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n background-color: #f0f0f0;\n color: #222f3e;\n position: relative;\n z-index: 1;\n}\n.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 inset;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-collection--toolbar .tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n background-color: #a6ccf7;\n color: #222f3e;\n}\n@media (forced-colors: active) {\n .tox .tox-collection--toolbar .tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n border-radius: 3px;\n outline: solid 1px;\n }\n}\n.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n color: #222f3e;\n background-color: #fff;\n position: relative;\n}\n.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover {\n background-color: #f0f0f0;\n color: #222f3e;\n}\n.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus {\n background-color: #f0f0f0;\n color: #222f3e;\n}\n.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus::after {\n border: 2px solid highlight;\n }\n}\n@media (forced-colors: active) {\n .tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover {\n border-radius: 3px;\n outline: solid 1px;\n }\n}\n.tox .tox-collection__item-image {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-bottom: 4px;\n position: relative;\n}\n.tox .tox-collection__item-icon,\n.tox .tox-collection__item-checkmark {\n align-items: center;\n display: flex;\n height: 24px;\n justify-content: center;\n width: 24px;\n}\n.tox .tox-collection__item-icon svg,\n.tox .tox-collection__item-checkmark svg {\n fill: currentColor;\n}\n.tox .tox-collection--toolbar-lg .tox-collection__item-icon {\n height: 48px;\n width: 48px;\n}\n.tox .tox-collection__item-label {\n color: currentColor;\n display: inline-block;\n flex: 1;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n line-height: 24px;\n max-width: 100%;\n text-transform: none;\n word-break: break-all;\n}\n.tox .tox-collection__item-accessory {\n color: currentColor;\n display: inline-block;\n font-size: 14px;\n height: 24px;\n line-height: 24px;\n text-transform: none;\n}\n.tox .tox-collection__item-caret {\n align-items: center;\n display: flex;\n min-height: 24px;\n}\n.tox .tox-collection__item-caret::after {\n content: '';\n font-size: 0;\n min-height: inherit;\n}\n.tox .tox-collection__item-caret svg {\n fill: currentColor;\n}\n.tox .tox-collection__item--state-disabled {\n background-color: transparent;\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg {\n display: none;\n}\n.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory + .tox-collection__item-checkmark {\n display: none;\n}\n.tox .tox-collection--horizontal {\n background-color: #fff;\n border: 1px solid #e3e3e3;\n border-radius: 6px;\n box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15);\n display: flex;\n flex: 0 0 auto;\n flex-shrink: 0;\n flex-wrap: nowrap;\n margin-bottom: 0;\n overflow-x: auto;\n padding: 0;\n}\n.tox .tox-collection--horizontal .tox-collection__group {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin: 0;\n padding: 0 4px;\n}\n.tox .tox-collection--horizontal .tox-collection__item {\n height: 28px;\n margin: 6px 1px 5px 0;\n padding: 0 4px;\n}\n.tox .tox-collection--horizontal .tox-collection__item-label {\n white-space: nowrap;\n}\n.tox .tox-collection--horizontal .tox-collection__item-caret {\n margin-left: 4px;\n}\n.tox .tox-collection__item-container {\n display: flex;\n}\n.tox .tox-collection__item-container--row {\n align-items: center;\n flex: 1 1 auto;\n flex-direction: row;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--align-left {\n margin-right: auto;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--align-right {\n justify-content: flex-end;\n margin-left: auto;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top {\n align-items: flex-start;\n margin-bottom: auto;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle {\n align-items: center;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom {\n align-items: flex-end;\n margin-top: auto;\n}\n.tox .tox-collection__item-container--column {\n align-self: center;\n flex: 1 1 auto;\n flex-direction: column;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--align-left {\n align-items: flex-start;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--align-right {\n align-items: flex-end;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top {\n align-self: flex-start;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle {\n align-self: center;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom {\n align-self: flex-end;\n}\n.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type) {\n border-right: 1px solid transparent;\n}\n.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > *:not(:first-child) {\n margin-left: 8px;\n}\n.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child {\n margin-left: 4px;\n}\n.tox:not([dir=rtl]) .tox-collection__item-accessory {\n margin-left: 16px;\n text-align: right;\n}\n.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret {\n margin-left: 16px;\n}\n.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type) {\n border-left: 1px solid transparent;\n}\n.tox[dir=rtl] .tox-collection--list .tox-collection__item > *:not(:first-child) {\n margin-right: 8px;\n}\n.tox[dir=rtl] .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child {\n margin-right: 4px;\n}\n.tox[dir=rtl] .tox-collection__item-accessory {\n margin-right: 16px;\n text-align: left;\n}\n.tox[dir=rtl] .tox-collection .tox-collection__item-caret {\n margin-right: 16px;\n transform: rotateY(180deg);\n}\n.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret {\n margin-right: 4px;\n}\n@media (forced-colors: active) {\n .tox .tox-hue-slider,\n .tox .tox-rgb-form .tox-rgba-preview {\n background-color: currentColor !important;\n border: 1px solid highlight !important;\n forced-color-adjust: none;\n }\n}\n.tox .tox-color-picker-container {\n display: flex;\n flex-direction: row;\n height: 225px;\n margin: 0;\n}\n.tox .tox-sv-palette {\n box-sizing: border-box;\n display: flex;\n height: 100%;\n}\n.tox .tox-sv-palette-spectrum {\n height: 100%;\n}\n.tox .tox-sv-palette,\n.tox .tox-sv-palette-spectrum {\n width: 225px;\n}\n.tox .tox-sv-palette-thumb {\n background: none;\n border: 1px solid black;\n border-radius: 50%;\n box-sizing: content-box;\n height: 12px;\n position: absolute;\n width: 12px;\n}\n.tox .tox-sv-palette-inner-thumb {\n border: 1px solid white;\n border-radius: 50%;\n height: 10px;\n position: absolute;\n width: 10px;\n}\n.tox .tox-hue-slider {\n box-sizing: border-box;\n height: 100%;\n width: 25px;\n}\n.tox .tox-hue-slider-spectrum {\n background: linear-gradient(to bottom, #f00, #ff0080, #f0f, #8000ff, #00f, #0080ff, #0ff, #00ff80, #0f0, #80ff00, #ff0, #ff8000, #f00);\n height: 100%;\n width: 100%;\n}\n.tox .tox-hue-slider,\n.tox .tox-hue-slider-spectrum {\n width: 20p
2x;\n}\n.tox .tox-hue-slider-spectrum:focus,\n.tox .tox-sv-palette-spectrum:focus {\n outline: #08f solid;\n}\n.tox .tox-hue-slider-thumb {\n background: white;\n border: 1px solid black;\n box-sizing: content-box;\n height: 4px;\n width: 100%;\n}\n.tox .tox-rgb-form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.tox .tox-rgb-form div {\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n width: inherit;\n}\n.tox .tox-rgb-form input {\n min-width: 6em;\n}\n.tox .tox-rgb-form input.tox-invalid {\n /* Need !important to override Chrome's focus styling unfortunately */\n border: 1px solid #f00 !important;\n box-shadow: 0 0 0 1px #f00;\n}\n.tox .tox-rgb-container {\n position: relative;\n}\n.tox .tox-rgb-form .tox-invalid-icon {\n align-content: center;\n align-items: center;\n display: none;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n.tox .tox-rgb-form .tox-invalid-icon .tox-control-wrap__status-icon-invalid {\n margin: 0;\n}\n.tox .tox-rgb-warning-note {\n background-color: #f5cccc;\n border: 1px solid #f0b3b3;\n border-radius: 3px;\n color: #77181f;\n padding: 3px;\n}\n.tox input.tox-invalid + .tox-invalid-icon {\n display: flex;\n}\n.tox .tox-rgb-form .tox-rgba-preview {\n border: 1px solid black;\n flex-grow: 2;\n margin-bottom: 0;\n}\n.tox:not([dir=rtl]) .tox-sv-palette {\n margin-right: 15px;\n}\n.tox:not([dir=rtl]) .tox-hue-slider {\n margin-right: 15px;\n}\n.tox:not([dir=rtl]) .tox-hue-slider-thumb {\n margin-left: -1px;\n}\n.tox:not([dir=rtl]) .tox-rgb-form label {\n margin-right: 0.5em;\n}\n.tox[dir=rtl] .tox-sv-palette {\n margin-left: 15px;\n}\n.tox[dir=rtl] .tox-hue-slider {\n margin-left: 15px;\n}\n.tox[dir=rtl] .tox-hue-slider-thumb {\n margin-right: -1px;\n}\n.tox[dir=rtl] .tox-rgb-form label {\n margin-left: 0.5em;\n}\n.tox .tox-toolbar .tox-swatches,\n.tox .tox-toolbar__primary .tox-swatches,\n.tox .tox-toolbar__overflow .tox-swatches {\n margin: 5px 0 6px 11px;\n}\n.tox .tox-collection--list .tox-collection__group .tox-swatches-menu {\n border: 0;\n margin: -4px -4px;\n}\n.tox .tox-swatches__row {\n display: flex;\n}\n@media (forced-colors: active) {\n .tox .tox-swatches__row {\n forced-color-adjust: none;\n }\n}\n.tox .tox-swatch {\n height: 30px;\n transition: transform 0.15s, box-shadow 0.15s;\n width: 30px;\n}\n.tox .tox-swatch:hover,\n.tox .tox-swatch:focus {\n box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.3) inset;\n transform: scale(0.8);\n}\n.tox .tox-swatch--remove {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.tox .tox-swatch--remove svg path {\n stroke: #e74c3c;\n}\n.tox .tox-swatches__picker-btn {\n align-items: center;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n display: flex;\n height: 30px;\n justify-content: center;\n outline: none;\n padding: 0;\n width: 30px;\n}\n.tox .tox-swatches__picker-btn svg {\n fill: #222f3e;\n height: 24px;\n width: 24px;\n}\n.tox .tox-swatches__picker-btn:hover {\n background: #f0f0f0;\n}\n.tox div.tox-swatch:not(.tox-swatch--remove) svg {\n display: none;\n fill: #222f3e;\n height: 24px;\n margin: calc((30px - 24px) / 2) calc((30px - 24px) / 2);\n width: 24px;\n}\n.tox div.tox-swatch:not(.tox-swatch--remove) svg path {\n fill: #fff;\n paint-order: stroke;\n stroke: #222f3e;\n stroke-width: 2px;\n}\n.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg {\n display: block;\n}\n.tox:not([dir=rtl]) .tox-swatches__picker-btn {\n margin-left: auto;\n}\n.tox[dir=rtl] .tox-swatches__picker-btn {\n margin-right: auto;\n}\n.tox {\n /* Animation for deleting a comment */\n /* A comment fades to 0 when it is being deleted, then is removed */\n}\n.tox .tox-conversations {\n display: flex;\n flex-direction: column;\n position: relative;\n height: 100%;\n /* This is to give the sidebar a consistent width. Need a solution for this */\n min-width: 300px;\n max-width: 300px;\n width: 300px;\n}\n.tox .tox-conversations__header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n padding: 8px 12px;\n background: #fff;\n z-index: 1;\n}\n.tox .tox-conversations__title {\n font-size: 20px;\n font-weight: 400;\n padding: 8px 0 8px 0;\n color: #222f3e;\n line-height: 28px;\n}\n.tox .tox-comment {\n background: #fff;\n border: 1px solid #fff;\n border-radius: 6px;\n padding: 8px;\n padding-bottom: 16px;\n position: relative;\n}\n.tox .tox-comment:hover {\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n}\n.tox .tox-comment.tox-comment--selected {\n background-color: #fff2c9;\n border: 1px solid #ffcf30;\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n}\n.tox .tox-comment.tox-comment--selected:focus {\n border: 2px solid #006ce7;\n margin: -1px;\n}\n.tox .tox-comment.tox-comment--selected:focus:not(:first-child) {\n margin-top: 7px;\n}\n.tox .tox-comment.tox-comment--selected .tox-comment__single {\n margin-bottom: 12px;\n}\n.tox .tox-comment.tox-comment--selected .tox-comment__single:focus {\n position: relative;\n}\n.tox .tox-comment.tox-comment--selected .tox-comment__single:focus::after {\n top: -9px;\n pointer-events: none;\n position: absolute;\n content: "";\n display: block;\n bottom: -9px;\n left: -9px;\n right: -9px;\n border-radius: 6px;\n border: 2px solid #006ce7;\n}\n.tox .tox-comment.tox-comment--selected .tox-comment__single:focus:last-of-type:has(textarea):after {\n bottom: calc((12px + 16px + 1px) * -1);\n}\n.tox .tox-comment__header {\n align-items: center;
2\n color: #222f3e;\n display: flex;\n justify-content: space-between;\n}\n.tox .tox-comment__date {\n color: #222f3e;\n font-size: 12px;\n line-height: 18px;\n}\n.tox .tox-comment__body {\n color: #222f3e;\n font-size: 16px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.3;\n margin-top: 8px;\n position: relative;\n text-transform: initial;\n transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);\n white-space: pre-wrap;\n /* We remove the transitions when wanting to measure and jump straight to collapsed or expanded */\n}\n.tox .tox-comment__body.tox-comment__body--expanded {\n max-height: 100em;\n transition: max-height 1s ease-in-out;\n}\n.tox .tox-comment__body.tox-comment__body--pending {\n transition: max-height 0s;\n}\n.tox .tox-comment__body p {\n margin: 0;\n}\n.tox .tox-comment__body textarea {\n resize: none;\n white-space: normal;\n width: 100%;\n font-size: 16px;\n}\n.tox .tox-comment__loading-text {\n align-items: center;\n color: #222f3e;\n display: flex;\n flex-direction: column;\n position: relative;\n}\n.tox .tox-comment__loading-text > div {\n padding-bottom: 16px;\n}\n.tox .tox-comment__overlaytext {\n bottom: 0;\n flex-direction: column;\n font-size: 14px;\n left: 0;\n padding: 1em;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n.tox .tox-comment__overlaytext p {\n background-color: #fff;\n box-shadow: 0 0 8px 8px #fff;\n color: #222f3e;\n text-align: center;\n}\n.tox .tox-comment__overlaytext div:nth-of-type(2) {\n font-size: 0.8em;\n}\n.tox .tox-comment__expander {\n padding-top: 8px;\n}\n.tox .tox-comment__expander p {\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n font-style: normal;\n /* Need a focus highlight on the show more/less button */\n}\n.tox .tox-comment__expander p:focus {\n font-weight: bold;\n}\n.tox .tox-comment__buttonspacing {\n padding-top: 16px;\n text-align: center;\n}\n.tox .tox-tbtn.tox-comment__mention-btn {\n display: flex;\n width: 34px;\n height: 34px;\n padding: 5px;\n justify-content: center;\n align-items: center;\n margin: 0;\n background-color: transparent;\n}\n.tox .tox-comment-thread {\n background: #fff;\n position: relative;\n border-radius: 6px;\n background-color: transparent;\n}\n.tox .tox-comment-thread > *:not(:first-child) {\n margin-top: 8px;\n}\n.tox .tox-comment-thread__overlay::after {\n background: #fff;\n bottom: 0;\n content: "";\n display: flex;\n left: 0;\n opacity: 0.9;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 5;\n}\n.tox .tox-comment__reply {\n display: flex;\n flex-shrink: 0;\n flex-wrap: wrap;\n justify-content: flex-end;\n margin-top: 8px;\n}\n.tox .tox-comment__reply > *:first-child {\n margin-bottom: 8px;\n width: 100%;\n}\n.tox .tox-comment__edit {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n margin-top: 8px;\n}\n.tox .tox-comment__gradient::after {\n background: linear-gradient(rgba(255, 255, 255, 0), #fff);\n bottom: 0;\n content: "";\n display: block;\n height: 5em;\n margin-top: -40px;\n position: absolute;\n width: 100%;\n}\n.tox .tox-comment__overlay {\n background: #fff;\n bottom: 0;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n left: 0;\n opacity: 0.9;\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n z-index: 5;\n}\n.tox .tox-comment__busy-spinner {\n align-items: center;\n background-color: #fff;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 20;\n}\n.tox .tox-comment__scroll {\n display: flex;\n flex-direction: column;\n flex-shrink: 1;\n overflow: auto;\n padding: 12px;\n scroll-behavior: smooth;\n}\n.tox .tox-comment__scroll:has(textarea:focus) {\n scroll-behavior: auto;\n}\n.tox .tox-comment--disappearing {\n transition: opacity 0.5s ease;\n}\n.tox .tox-comment[data-transitioning-destination="deleting"] {\n opacity: 0;\n}\n.tox .tox-skeleton .tox-skeleton__line {\n height: 16px;\n width: 100%;\n background: linear-gradient(to right, rgba(240, 240, 240, 0.5) 8%, rgba(240, 240, 240, 0.7) 18%, rgba(240, 240, 240, 0.5) 33%);
2\n animation: wave 2s infinite ease-out;\n}\n.tox .tox-skeleton .tox-skeleton__circle {\n height: 36px;\n width: 36px;\n margin-right: 8px;\n border-radius: 100%;\n background: linear-gradient(to right, rgba(240, 240, 240, 0.5) 8%, rgba(240, 240, 240, 0.7) 18%, rgba(240, 240, 240, 0.5) 33%);\n animation: wave 2s infinite ease-out;\n}\n@keyframes wave {\n 0% {\n background-position: -268px 0;\n }\n 100% {\n background-position: 268px 0;\n }\n}\n.tox .tox-ring-loader {\n width: 10px;\n height: 10px;\n border: 1px solid #FFF;\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: tox-rotation 1s linear infinite;\n}\n.tox:not([dir=rtl]) .tox-comment__edit {\n margin-left: 8px;\n}\n.tox:not([dir=rtl]) .tox-comment__buttonspacing > *:last-child,\n.tox:not([dir=rtl]) .tox-comment__edit > *:last-child,\n.tox:not([dir=rtl]) .tox-comment__reply > *:last-child {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-comment__edit {\n margin-right: 8px;\n}\n.tox[dir=rtl] .tox-comment__buttonspacing > *:last-child,\n.tox[dir=rtl] .tox-comment__edit > *:last-child,\n.tox[dir=rtl] .tox-comment__reply > *:last-child {\n margin-right: 8px;\n}\n.tox .tox-user {\n align-items: center;\n display: flex;\n}\n.tox .tox-user__avatar svg {\n fill: rgba(34, 47, 62, 0.7);\n}\n.tox .tox-user__avatar img {\n border-radius: 50%;\n height: 36px;\n object-fit: cover;\n vertical-align: middle;\n width: 36px;\n}\n.tox .tox-user__name {\n color: #222f3e;\n font-size: 14px;\n font-style: normal;\n font-weight: bold;\n line-height: 18px;\n text-transform: none;\n}\n.tox:not([dir=rtl]) .tox-user__avatar svg,\n.tox:not([dir=rtl]) .tox-user__avatar img {\n margin-right: 8px;\n}\n.tox:not([dir=rtl]) .tox-user__avatar + .tox-user__name {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-user__avatar svg,\n.tox[dir=rtl] .tox-user__avatar img {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-user__avatar + .tox-user__name {\n margin-right: 8px;\n}\n.tox {\n /* .tox-dialog-blocker-wrap {\n //\n } */\n}\n.tox .tox-dialog-wrap {\n align-items: center;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1100;\n}\n.tox .tox-dialog-wrap__backdrop {\n background-color: rgba(255, 255, 255, 0.75);\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n}\n.tox .tox-dialog-wrap__backdrop--opaque {\n background-color: #fff;\n}\n.tox .tox-dialog {\n background-color: #fff;\n border-color: #eeeeee;\n border-radius: 10px;\n border-style: solid;\n border-width: 0;\n box-shadow: 0 16px 16px -10px rgba(34, 47, 62, 0.15), 0 0 40px 1px rgba(34, 47, 62, 0.15);\n display: flex;\n flex-direction: column;\n max-height: 100%;\n max-width: 480px;\n overflow: hidden;\n position: relative;\n width: 95vw;\n z-index: 2;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox .tox-dialog {\n align-self: flex-start;\n margin: 8px auto;\n max-height: calc(100vh - 8px * 2);\n width: calc(100vw - 16px);\n }\n}\n.tox .tox-dialog-inline {\n z-index: 1100;\n}\n.tox .tox-dialog__header {\n align-items: center;\n background-color: #fff;\n border-bottom: none;\n color: #222f3e;\n display: flex;\n font-size: 16px;\n justify-content: space-between;\n padding: 8px 16px 0 16px;\n position: relative;\n}\n.tox .tox-dialog__header .tox-button {\n z-index: 1;\n}\n.tox .tox-dialog__draghandle {\n cursor: grab;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.tox .tox-dialog__draghandle:active {\n cursor: grabbing;\n}\n.tox .tox-dialog__dismiss {\n margin-left: auto;\n}\n.tox .tox-dialog__title {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 20px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.3;\n margin: 0;\n text-transform: none;\n}\n.tox .tox-dialog__body {\n color: #222f3e;\n display: flex;\n flex: 1;\n font-size: 16px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.3;\n min-width: 0;\n text-align: left;\n text-transform: none;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox .tox-dialog__body {\n flex-direction: column;\n }\n}\n.tox .tox-dialog__body-nav {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n padding: 16px 16px;\n}\n@media only screen and (min-width: 768px ) {\n .tox .tox-dialog__body-nav {\n max-width: 11em;\n }\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox .tox-dialog__body-nav {\n flex-direction: row;\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n padding-bottom: 0;\n }\n}\n.tox .tox-dialog__body-nav-item {\n border-bottom: 2px solid transparent;\n color: rgba(34, 47, 62, 0.7);\n display: inline-block;\n flex-shrink: 0;\n font-size: 14px;\n line-height: 1.3;\n margin-bottom: 8px;\n max-width: 13em;\n -webkit-text-decoration: none;\n text-decoration: none;\n}\n.tox .tox-dialog__body-nav-item:focus {\n background-color: rgba(0, 108, 231, 0.1);\n}\n.tox .tox-dialog__body-nav-item--active {\n border-bottom: 2px solid #144782;\n color: #144782;\n}\n@media (forced-colors: active) {\n .tox .tox-dialog__body-nav-item--active {\n border-bottom: 2px solid highlight;\n color: highlight;\n }\n}\n.tox .tox-dialog__body-content {\n box-sizing: border-box;\n display: flex;\n flex: 1;\n flex-direction: column;\n max-height: min(650px, calc(100vh - 110px));\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n padding: 16px 16px;\n}\n.tox .tox-dialog__body-content > * {\n margin-bottom: 0;\n margin-top: 16px;\n}\n.tox .tox-dialog__body-content > *:first-child {\n margin-top: 0;\n}\n.tox .tox-dialog__body-content > *:last-child {\n margin-bottom: 0;\n}\n.tox .tox-dialog__body-content > *:only-child {\n margin-bottom: 0;\n margin-top: 0;\n}\n.tox .tox-dialog__body-content a {\n color: #144782;\n cursor: pointer;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-dialog__body-content a:hover,\n.tox .tox-dialog__body-content a:focus {\n color: #071729;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-dialog__body-content a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #144782;\n outline-offset: 2px;\n}\n.tox .tox-dialog__body-content a:active {\n color: #000000;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-dialog__body-content svg {\n fill: #222f3e;\n}\n.tox .tox-dialog__body-content strong {\n font-weight: bold;\n}\n.tox .tox-dialog__body-content ul {\n list-style-type: disc;\n}\n.tox .tox-dialog__body-content ul,\n.tox .tox-dialog__body-content ol,\n.tox .tox-dialog__body-content dd {\
2n padding-inline-start: 2.5rem;\n}\n.tox .tox-dialog__body-content ul,\n.tox .tox-dialog__body-content ol,\n.tox .tox-dialog__body-content dl {\n margin-bottom: 16px;\n}\n.tox .tox-dialog__body-content ul,\n.tox .tox-dialog__body-content ol,\n.tox .tox-dialog__body-content dl,\n.tox .tox-dialog__body-content dd,\n.tox .tox-dialog__body-content dt {\n display: block;\n margin-inline-end: 0;\n margin-inline-start: 0;\n}\n.tox .tox-dialog__body-content .tox-form__group h1 {\n color: #222f3e;\n font-size: 20px;\n font-style: normal;\n font-weight: bold;\n letter-spacing: normal;\n margin-bottom: 16px;\n margin-top: 2rem;\n text-transform: none;\n}\n.tox .tox-dialog__body-content .tox-form__group h2 {\n color: #222f3e;\n font-size: 16px;\n font-style: normal;\n font-weight: bold;\n letter-spacing: normal;\n margin-bottom: 16px;\n margin-top: 2rem;\n text-transform: none;\n}\n.tox .tox-dialog__body-content .tox-form__group p {\n margin-bottom: 16px;\n}\n.tox .tox-dialog__body-content .tox-form__group h1:first-child,\n.tox .tox-dialog__body-content .tox-form__group h2:first-child,\n.tox .tox-dialog__body-content .tox-form__group p:first-child {\n margin-top: 0;\n}\n.tox .tox-dialog__body-content .tox-form__group h1:last-child,\n.tox .tox-dialog__body-content .tox-form__group h2:last-child,\n.tox .tox-dialog__body-content .tox-form__group p:last-child {\n margin-bottom: 0;\n}\n.tox .tox-dialog__body-content .tox-form__group h1:only-child,\n.tox .tox-dialog__body-content .tox-form__group h2:only-child,\n.tox .tox-dialog__body-content .tox-form__group p:only-child {\n margin-bottom: 0;\n margin-top: 0;\n}\n.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center {\n text-align: center;\n}\n.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end {\n text-align: end;\n}\n.tox .tox-dialog--width-lg {\n height: 650px;\n max-width: 1200px;\n}\n.tox .tox-dialog--fullscreen {\n height: 100%;\n max-width: 100%;\n}\n.tox .tox-dialog--fullscreen .tox-dialog__body-content {\n max-height: 100%;\n}\n.tox .tox-dialog--width-md {\n max-width: 800px;\n}\n.tox .tox-dialog--width-md .tox-dialog__body-content {\n overflow: auto;\n}\n.tox .tox-dialog__body-content--centered {\n text-align: center;\n}\n.tox .tox-dialog__footer {\n align-items: center;\n background-color: #fff;\n border-top: none;\n display: flex;\n justify-content: space-between;\n padding: 8px 16px;\n}\n.tox .tox-dialog__footer-start,\n.tox .tox-dialog__footer-end {\n display: flex;\n}\n.tox .tox-dialog__busy-spinner {\n align-items: center;\n background-color: rgba(255, 255, 255, 0.75);\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 3;\n}\n.tox .tox-dialog__table {\n border-collapse: collapse;\n width: 100%;\n}\n.tox .tox-dialog__table thead th {\n font-weight: bold;\n padding-bottom: 8px;\n}\n.tox .tox-dialog__table thead th:first-child {\n padding-right: 8px;\n}\n.tox .tox-dialog__table tbody tr {\n border-bottom: 1px solid #626262;\n}\n.tox .tox-dialog__table tbody tr:last-child {\n border-bottom: none;\n}\n.tox .tox-dialog__table td {\n padding-bottom: 8px;\n padding-top: 8px;\n}\n.tox .tox-dialog__table td:first-child {\n padding-right: 8px;\n}\n.tox .tox-dialog__iframe {\n min-height: 200px;\n}\n.tox .tox-dialog__iframe.tox-dialog__iframe--opaque {\n background: #fff;\n}\n.tox .tox-navobj-bordered {\n position: relative;\n}\n.tox .tox-navobj-bordered::before {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n content: '';\n inset: 0;\n opacity: 1;\n pointer-events: none;\n position: absolute;\n z-index: 1;\n}\n.tox .tox-navobj-bordered iframe {\n border-radius: 6px;\n}\n.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before {\n border-color: #006ce7;\n box-shadow: 0 0 0 1px #006ce7;\n outline: none;\n}\n.tox .tox-dialog__popups {\n position: absolute;\n width: 100%;\n z-index: 1100;\n}\n.tox .tox-dialog__body-iframe {\n display: flex;\n flex: 1;\n flex-direction: column;\n}\n.tox .tox-dialog__body-iframe .tox-navobj {\n display: flex;\n flex: 1;\n}\n.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2) {\n flex: 1;\n height: 100%;\n}\n.tox .tox-dialog-dock-fadeout {\n opacity: 0;\n visibility: hidden;\n}\n.tox .tox-dialog-dock-fadein {\n opacity: 1;\n visibility: visible;\n}\n.tox .tox-dialog-dock-transition {\n transition: visibility 0s linear 0.3s, opacity 0.3s ease;\n}\n.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein {\n transition-delay: 0s;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav {\n margin-right: 0;\n }\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child) {\n margin-left: 8px;\n }\n}\n.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start > *,\n.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end > * {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-dialog__body {\n text-align: right;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav {\n margin-left: 0;\n }\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child) {\n margin-right: 8px;\n }\n}\n.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start > *,\n.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end > * {\n margin-right: 8px;\n}\nbody.tox-dialog__disable-scroll {\n overflow: hidden;\n}\n.tox .tox-dropzone-container {\n display: flex;\n flex: 1;\n}\n.tox .tox-dropzone {\n align-items: center;\n background: #fff;\n border: 2px dashed #eeeeee;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n justify-content: center;\n min-height: 100px;\n padding: 10px;\n}\n.tox .tox-dropzone p {\n color: rgba(34, 47, 62, 0.7);\n margin: 0 0 16px 0;\n}\n.tox .tox-edit-area {\n display: flex;\n flex: 1;\n overflow: hidden;\n position: relative;\n}\n.tox .tox-edit-area::before {\n border: 2px solid #006ce7;\n border-radius: 4px;\n content: '';\n inset: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n transition: opacity 0.15s;\n z-index: 1;\n}\n@media (forced-colors: active) {\n .tox .tox-edit-area::before {\n border: 2px solid highlight;\n }\n}\n.tox .tox-edit-area__iframe {\n background-color: #fff;\n border: 0;\n box-sizing: border-box;\n flex: 1;\n height: 100%;\n position: absolute;\n width: 100%;\n}\n.tox.tox-edit-focus .tox-edit-area::before {\n opacity: 1;\n}\n.tox.tox-inline-edit-area {\n border: 1px dotted #eeeeee;\n}\n.tox .tox-editor-container {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n overflow: hidden;\n}\n.tox .tox-editor-header {\n display: grid;\n grid-template-columns: 1fr min-content;\n z-index: 2;\n}\n.tox:not(.tox-tinymce-inline) .tox-editor-header {\n background-color: #fff;\n border-bottom: none;\n box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.1), 0 8px 8px -4px rgba(34, 47, 62, 0.07);\n padding: 4px 0;\n}\n.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition) {\n transition: box-shadow 0.5s;\n}\n.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header {\n border-top: 1px solid #e3e3e3;\n box-shadow: none;\n}\n.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header {\n background-color: #fff;\n box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.2), 0 8px 8px -4px rgba(34, 47, 62, 0.15);\n padding: 4px 0;\n}\n.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header {\n box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.2), 0 8px 8px -4px rgba(34, 47, 62, 0.15);\n}\n.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty {\
2n background: none;\n border: none;\n box-shadow: none;\n padding: 0;\n}\n.tox-editor-dock-fadeout {\n opacity: 0;\n visibility: hidden;\n}\n.tox-editor-dock-fadein {\n opacity: 1;\n visibility: visible;\n}\n.tox-editor-dock-transition {\n transition: visibility 0s linear 0.25s, opacity 0.25s ease;\n}\n.tox-editor-dock-transition.tox-editor-dock-fadein {\n transition-delay: 0s;\n}\n.tox .tox-control-wrap {\n flex: 1;\n position: relative;\n}\n.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,\n.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,\n.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid {\n display: none;\n}\n.tox .tox-control-wrap svg {\n display: block;\n}\n.tox .tox-control-wrap__status-icon-wrap {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n.tox .tox-control-wrap__status-icon-invalid svg {\n fill: #c00;\n}\n.tox .tox-control-wrap__status-icon-unknown svg {\n fill: orange;\n}\n.tox .tox-control-wrap__status-icon-valid svg {\n fill: green;\n}\n.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,\n.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,\n.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield {\n padding-right: 32px;\n}\n.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap {\n right: 4px;\n}\n.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,\n.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,\n.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield {\n padding-left: 32px;\n}\n.tox[dir=rtl] .tox-control-wrap__status-icon-wrap {\n left: 4px;\n}\n.tox .tox-custom-preview {\n border-color: #eeeeee;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n flex: 1;\n padding: 8px;\n}\n.tox .tox-autocompleter {\n max-width: 25em;\n}\n.tox .tox-autocompleter .tox-menu {\n box-sizing: border-box;\n max-width: 25em;\n}\n.tox .tox-autocompleter .tox-autocompleter-highlight {\n font-weight: bold;\n}\n.tox .tox-color-input {\n display: flex;\n position: relative;\n z-index: 1;\n}\n.tox .tox-color-input .tox-textfield {\n z-index: -1;\n}\n.tox .tox-color-input span {\n border-color: rgba(34 47 3.1%);\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n height: 24px;\n position: absolute;\n top: 6px;\n width: 24px;\n}\n@media (forced-colors: active) {\n .tox .tox-color-input span {\n border-color: currentColor;\n border-width: 2px !important;\n forced-color-adjust: none;\n }\n}\n.tox .tox-color-input span:hover:not([aria-disabled=true]),\n.tox .tox-color-input span:focus:not([aria-disabled=true]) {\n border-color: #006ce7;\n cursor: pointer;\n}\n.tox .tox-color-input span::before {\n background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%), linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%);\n background-position: 0 0, 0 6px, 6px -6px, -6px 0;\n background-size: 12px 12px;\n border: 1px solid #fff;\n border-radius: 6px;\n box-sizing: border-box;\n content: '';\n height: 24px;\n left: -1px;\n position: absolute;\n top: -1px;\n width: 24px;\n z-index: -1;\n}\n@media (forced-colors: active) {\n .tox .tox-color-input span::before {\n border: none;\n }\n}\n.tox .tox-color-input span[aria-disabled=true] {\n cursor: not-allowed;\n}\n.tox:not([dir=rtl]) .tox-color-input .tox-textfield {\n padding-left: 36px;\n}\n.tox:not([dir=rtl]) .tox-color-input span {\n left: 6px;\n}\n.tox[dir="rtl"] .tox-color-input .tox-textfield {\n padding-right: 36px;\n}\n.tox[dir="rtl"] .tox-color-input span {\n right: 6px;\n}\n.tox .tox-label,\n.tox .tox-toolbar-label {\n color: rgba(34, 47, 62, 0.7);\n display: block;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.3;\n padding: 0 8px 0 0;\n text-transform: none;\n white-space: nowrap;\n}\n.tox .tox-toolbar-label {\n padding: 0 8px;\n}\n.tox[dir=rtl] .tox-label {\n padding: 0 0 0 8px;\n}\n.tox .tox-form {\n display: flex;\n flex: 1;\n flex-direction: column;\n}\n.tox .tox-form__group {\n box-sizing: border-box;\n margin-bottom: 4px;\n}\n.tox .tox-form-group--maximize {\n flex: 1;\n}\n.tox .tox-form__group--error {\n color: #c00;\n}\n.tox .tox-form__group--collection {\n display: flex;\n}\n.tox .tox-form__grid {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.tox .tox-form__grid--2col > .tox-form__group {\n width: calc(50% - (8px / 2));\n}\n.tox .tox-form__grid--3col > .tox-form__group {\n width: calc(100% / 3 - (8px / 2));\n}\n.tox .tox-form__grid--4col > .tox-form__group {\n width: calc(25% - (8px / 2));\n}\n.tox .tox-form__controls-h-stack {\n align-items: center;\n display: flex;\n}\n.tox .tox-form__group--inline {\n align-items: center;\n display: flex;\n}\n.tox .tox-form__group--stretched {\n display: flex;\n flex: 1;\n flex-direction: column;\n}\n.tox .tox-form__group--stretched .tox-textarea {\n flex: 1;\n}\n.tox .tox-form__group--stretched .tox-navobj {\n display: flex;\n flex: 1;\n}\n.tox .tox-form__group--stretched .tox-navobj :nth-child(2) {\n flex: 1;\n height: 100%;\n}\n.tox:not([dir=rtl]) .tox-form__controls-h-stack > *:not(:first-child) {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-form__controls-h-stack > *:not(:first-child) {\n margin-right: 4px;\n}\n.tox .tox-lock.tox-locked .tox-lock-icon__unlock,\n.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock {\n display: none;\n}\n.tox .tox-context-form__group .tox-button--icon.tox-lock-context-form-size-input {\n margin-left: 8px;\n margin-right: 8px;\n}\n.tox .tox-textfield,\n.tox .tox-toolbar-textfield,\n.tox .tox-listboxfield .tox-listbox--select,\n.tox .tox-textarea,\n.tox .tox-textarea-wrap .tox-textarea:focus {\n appearance: none;\n background-color: #fff;\n border-color: #eeeeee;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n color: #222f3e;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 16px;\n line-height: 24px;\n margin: 0;\n min-height: 34px;\n outline: none;\n padding: 5px 5.5px;\n resize: none;\n width: 100%;\n}\n.tox .tox-textfield[disabled],\n.tox .tox-toolbar-textfield[disabled],\n.tox .tox-textarea[disabled] {\n background-color: #f2f2f2;\n color: rgba(34, 47, 62, 0.85);
2\n cursor: not-allowed;\n}\n.tox .tox-textfield:focus,\n.tox .tox-toolbar-textfield:focus,\n.tox .tox-listboxfield .tox-listbox--select:focus,\n.tox .tox-textarea-wrap:focus-within,\n.tox .tox-textarea:focus,\n.tox .tox-focusable-wrapper:focus,\n.tox .tox-custom-editor:focus-within {\n background-color: #fff;\n border-color: #006ce7;\n box-shadow: 0 0 0 1px #006ce7;\n outline: none;\n}\n.tox .tox-toolbar-textfield {\n max-width: 250px;\n min-height: unset;\n height: 28px;\n margin: 5px 0 6px 0;\n}\n.tox .tox-naked-btn {\n background-color: transparent;\n border: 0;\n border-color: transparent;\n box-shadow: unset;\n color: #006ce7;\n cursor: pointer;\n display: block;\n margin: 0;\n padding: 0;\n}\n.tox .tox-naked-btn svg {\n display: block;\n fill: #222f3e;\n}\n.tox .tox-textfield-size {\n width: 80px;\n}\n.tox:not([dir=rtl]) .tox-toolbar-textfield + * {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-toolbar-textfield + * {\n margin-right: 4px;\n}\n.tox .tox-listboxfield {\n cursor: pointer;\n position: relative;\n}\n.tox .tox-listboxfield .tox-listbox--select[disabled] {\n background-color: #f2f2f2;\n color: rgba(34, 47, 62, 0.85);\n cursor: not-allowed;\n}\n.tox .tox-listbox__select-label {\n cursor: default;\n flex: 1;\n margin: 0 4px;\n}\n.tox .tox-listbox__select-chevron {\n align-items: center;\n display: flex;\n justify-content: center;\n width: 16px;\n}\n.tox .tox-listbox__select-chevron svg {\n fill: #222f3e;\n}\n@media (forced-colors: active) {\n .tox .tox-listbox__select-chevron svg {\n fill: currentColor !important;\n }\n}\n.tox .tox-listboxfield .tox-listbox--select {\n align-items: center;\n display: flex;\n}\n.tox:not([dir=rtl]) .tox-listboxfield svg {\n right: 8px;\n}\n.tox[dir=rtl] .tox-listboxfield svg {\n left: 8px;\n}\n.tox .tox-selectfield {\n cursor: pointer;\n position: relative;\n}\n.tox .tox-selectfield select {\n appearance: none;\n background-color: #fff;\n border-color: #eeeeee;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n color: #222f3e;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 16px;\n line-height: 24px;\n margin: 0;\n min-height: 34px;\n outline: none;\n padding: 5px 5.5px;\n resize: none;\n width: 100%;\n}\n.tox .tox-selectfield select[disabled] {\n background-color: #f2f2f2;\n color: rgba(34, 47, 62, 0.85);\n cursor: not-allowed;\n}\n.tox .tox-selectfield select::-ms-expand {\n display: none;\n}\n.tox .tox-selectfield select:focus {\n background-color: #fff;\n border-color: #006ce7;\n box-shadow: 0 0 0 1px #006ce7;\n outline: none;\n}\n.tox .tox-selectfield svg {\n pointer-events: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n.tox .tox-selectfield select option:checked {\n background-color: revert;\n color: revert;\n}\n.tox:not([dir=rtl]) .tox-selectfield select[size="0"],\n.tox:not([dir=rtl]) .tox-selectfield select[size="1"] {\n padding-right: 24px;\n}\n.tox:not([dir=rtl]) .tox-selectfield svg {\n right: 8px;\n}\n.tox[dir=rtl] .tox-selectfield select[size="0"],\n.tox[dir=rtl] .tox-selectfield select[size="1"] {\n padding-left: 24px;\n}\n.tox[dir=rtl] .tox-selectfield svg {\n left: 8px;\n}\n.tox .tox-textarea-wrap {\n border-color: #eeeeee;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n display: flex;\n flex: 1;\n overflow: hidden;\n}\n.tox .tox-textarea {\n appearance: textarea;\n white-space: pre-wrap;\n}\n.tox .tox-textarea-wrap .tox-textarea {\n border: none;\n}\n.tox .tox-textarea-wrap .tox-textarea:focus {\n border: none;\n}\n.tox-fullscreen {\n border: 0;\n height: 100%;\n margin: 0;\n overflow: hidden;
2\n overscroll-behavior: none;\n padding: 0;\n touch-action: pinch-zoom;\n width: 100%;\n}\n.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle {\n display: none;\n}\n.tox.tox-tinymce.tox-fullscreen,\n.tox-shadowhost.tox-fullscreen {\n left: 0;\n position: fixed;\n top: 0;\n z-index: 1200;\n}\n.tox.tox-tinymce.tox-fullscreen {\n background-color: transparent;\n}\n.tox-fullscreen .tox.tox-tinymce-aux,\n.tox-fullscreen ~ .tox.tox-tinymce-aux {\n z-index: 1201;\n}\n.tox .tox-help__more-link {\n list-style: none;\n margin-top: 1em;\n}\n.tox .tox-imagepreview {\n background-color: #666;\n height: 380px;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n.tox .tox-imagepreview.tox-imagepreview__loaded {\n overflow: auto;\n}\n.tox .tox-imagepreview__container {\n display: flex;\n left: 100vw;\n position: absolute;\n top: 100vw;\n}\n.tox .tox-imagepreview__image {\n background: url(${d});\n}\n.tox .tox-image-tools .tox-spacer {\n flex: 1;\n}\n.tox .tox-image-tools .tox-bar {\n align-items: center;\n display: flex;\n height: 60px;\n justify-content: center;\n}\n.tox .tox-image-tools .tox-imagepreview,\n.tox .tox-image-tools .tox-imagepreview + .tox-bar {\n margin-top: 8px;\n}\n.tox .tox-image-tools .tox-croprect-block {\n background: black;\n filter: alpha(opacity=50);\n opacity: 0.5;\n position: absolute;\n zoom: 1;\n}\n.tox .tox-image-tools .tox-croprect-handle {\n border: 2px solid white;\n height: 20px;\n left: 0;\n position: absolute;\n top: 0;\n width: 20px;\n}\n.tox .tox-image-tools .tox-croprect-handle-move {\n border: 0;\n cursor: move;\n position: absolute;\n}\n.tox .tox-image-tools .tox-croprect-handle-nw {\n border-width: 2px 0 0 2px;\n cursor: nw-resize;\n left: 100px;\n margin: -2px 0 0 -2px;\n top: 100px;\n}\n.tox .tox-image-tools .tox-croprect-handle-ne {\n border-width: 2px 2px 0 0;\n cursor: ne-resize;\n left: 200px;\n margin: -2px 0 0 -20px;\n top: 100px;\n}\n.tox .tox-image-tools .tox-croprect-handle-sw {\n border-width: 0 0 2px 2px;\n cursor: sw-resize;\n left: 100px;\n margin: -20px 2px 0 -2px;\n top: 200px;\n}\n.tox .tox-image-tools .tox-croprect-handle-se {\n border-width: 0 2px 2px 0;\n cursor: se-resize;\n left: 200px;\n margin: -20px 0 0 -20px;\n top: 200px;\n}\n.tox .tox-image-selector-loading-spinner-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.tox .tox-image-selector-loading-spinner {\n position: absolute;\n width: min(24px, 30%);\n aspect-ratio: 1;\n border-radius: 50%;\n border: 3px solid #006ce7;\n border-bottom-color: transparent;\n animation: tox-rotation 1s linear infinite;\n}\n.tox .tox-toolbar .tox-image-selector,\n.tox .tox-toolbar__primary .tox-image-selector,\n.tox .tox-toolbar__overflow .tox-image-selector {\n margin: 5px 0 6px 11px;\n}\n.tox .tox-image-selector-menu {\n border: 0;\n border-radius: 3px;\n margin: -4px -4px;\n padding: 4px;\n}\n.tox .tox-image-selector-menu .tox-collection--list .tox-collection__group {\n border: 0;\n padding: 0;\n margin: -4px -4px;\n}\n.tox .tox-image-selector-menu .tox-collection__item {\n max-width: 48px;\n}\n.tox .tox-image-selector-menu .tox-collection__item-icon {\n border: 1px solid #eeeeee;\n border-radius: 3px;\n margin-bottom: 4px;\n width: 100%;\n}\n.tox .tox-image-selector-menu .tox-collection__item-icon svg path {\n stroke: #c00;\n}\n.tox .tox-image-selector__row {\n display: flex;\n}\n.tox .tox-image-selector--remove {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.tox .tox-image-selector--remove svg path {\n stroke: #c00;\n}\n.tox .tox-image-selector-image-wrapper {\n width: 46px;\n height: 46px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.tox .tox-image-selector-image-img {\n max-width: 100%;\n max-height: 100%;\n}\n.tox .tox-image-selector__picker-btn {\n align-items: center;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n display: flex;\n height: 30px;\n justify-content: center;\n outline: none;\n padding: 0;\n width: 30px;\n}\n.tox .tox-image-selector__picker-btn svg {\n fill: #222f3e;\n height: 24px;\n width: 24px;\n}\n.tox .tox-image-selector__picker-btn:hover {\n background: #f0f0f0;\n}\n.tox .tox-insert-table-picker {\n background-color: #fff;\n display: flex;\n flex-wrap: wrap;\n width: 170px;\n}\n.tox .tox-insert-table-picker > div {\n border-color: #eeeeee;\n border-style: solid;\n border-width: 0 1px 1px 0;\n box-sizing: border-box;\n height: 17px;\n width: 17px;\n}\n.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker {\n margin: -4px -4px;\n}\n.tox .tox-insert-table-picker .tox-insert-table-picker__selected {\n background-color: #006ce7;\n border-color: #eeeeee;\n}\n@media (forced-colors: active) {\n .tox .tox-insert-table-picker .tox-insert-table-picker__selected {\n border-color: Highlight;\n filter: contrast(50%);\n }\n}\n.tox .tox-insert-table-picker__label {\n color: rgba(34, 47, 62, 0.7);\n display: block;\n font-size: 14px;\n padding: 4px;\n text-align: center;\n width: 100%;\n}\n.tox:not([dir=rtl]) .tox-insert-table-picker > div:nth-child(10n) {\n border-right: 0;\n}\n.tox[dir=rtl] .tox-insert-table-picker > div:nth-child(10n+1) {\n border-right: 0;\n}\n.tox-mentions__card-common {\n z-index: 1200;\n}\n.tox.tox-mentions__card {\n background: #fff;\n border: 1px solid #eeeeee;\n display: flex;\n padding: 4px 8px;\n}\n.tox.tox-mentions__card .tox-mentions__container {\n display: flex;\n flex-direction: column;\n align-self: center;\n margin: 0 4px;\n}\n.tox .tox-mentions__avatar {\n width: 42px;\n height: 42px;\n border-radius: 50%;\n margin-right: 4px;\n}\n.tox .tox-mentions__username {\n font-size: 14px;\n line-height: 21px;\n}\n.tox .tox-mentions__description {\n font-size: 12px;\n line-height: 21px;\n color: rgba(34, 47, 62, 0.7);\n}\n.tox .tox-collection__item--active .tox-mentions__description {\n color: inherit;\n}
2\n.tox {\n /* stylelint-disable */\n /* stylelint-enable */\n}\n.tox .tox-menu {\n background-color: #fff;\n border: 1px solid transparent;\n border-radius: 6px;\n box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15);\n display: inline-block;\n overflow: hidden;\n vertical-align: top;\n z-index: 1150;\n}\n.tox .tox-menu.tox-collection.tox-collection--list {\n padding: 0 4px;\n}\n.tox .tox-menu.tox-collection.tox-collection--toolbar {\n padding: 8px;\n}\n.tox .tox-menu.tox-collection.tox-collection--grid {\n padding: 8px;\n}\n@media only screen and (min-width: 768px ) {\n .tox .tox-menu .tox-collection__item-label {\n overflow-wrap: break-word;\n word-break: normal;\n }\n .tox .tox-dialog__popups .tox-menu .tox-collection__item-label {\n word-break: break-all;\n }\n}\n.tox .tox-menu__label h1,\n.tox .tox-menu__label h2,\n.tox .tox-menu__label h3,\n.tox .tox-menu__label h4,\n.tox .tox-menu__label h5,\n.tox .tox-menu__label h6,\n.tox .tox-menu__label p,\n.tox .tox-menu__label blockquote,\n.tox .tox-menu__label code {\n margin: 0;\n}\n.tox .tox-menubar {\n background: repeating-linear-gradient(transparent 0 1px, transparent 1px 39px) center top 39px / 100% calc(100% - 39px) no-repeat;\n background-color: #fff;\n display: flex;\n flex: 0 0 auto;\n flex-shrink: 0;\n flex-wrap: wrap;\n grid-column: 1 / -1;\n grid-row: 1;\n padding: 0 11px 0 12px;\n}\n.tox .tox-promotion + .tox-menubar {\n grid-column: 1;\n}\n.tox .tox-promotion {\n background: repeating-linear-gradient(transparent 0 1px, transparent 1px 39px) center top 39px / 100% calc(100% - 39px) no-repeat;\n background-color: #fff;\n grid-column: 2;\n grid-row: 1;\n padding-inline-end: 8px;\n padding-inline-start: 4px;\n padding-top: 5px;\n}\n.tox .tox-promotion-link {\n align-items: unsafe center;\n background-color: #E8F1F8;\n border-radius: 5px;\n color: #086BE6;\n cursor: pointer;\n display: flex;\n font-size: 14px;\n height: 26.6px;\n padding: 4px 8px;\n white-space: nowrap;\n}\n.tox .tox-promotion-link:hover {\n background-color: #B4D7FF;\n}\n.tox .tox-promotion-link:focus {\n background-color: #D9EDF7;\n}\n/* Deprecated. Remove in next major release */\n.tox .tox-mbtn {\n align-items: center;\n background: #fff;\n border: 0;\n border-radius: 3px;\n box-shadow: none;\n color: #222f3e;\n display: flex;\n flex: 0 0 auto;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n height: 28px;\n justify-content: center;\n margin: 5px 1px 6px 0;\n outline: none;\n padding: 0 4px;\n text-transform: none;\n width: auto;\n}\n.tox .tox-mbtn[disabled] {\n background-color: #fff;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n cursor: not-allowed;\n}\n.tox .tox-mbtn:focus:not(:disabled) {\n background: #fff;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n position: relative;\n z-index: 1;\n}\n.tox .tox-mbtn:focus:not(:disabled)::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-mbtn:focus:not(:disabled)::after {\n border: 2px solid highlight;\n }\n}
2\n.tox .tox-mbtn--active,\n.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active) {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-mbtn__select-label {\n cursor: default;\n font-weight: normal;\n margin: 0 4px;\n}\n.tox .tox-mbtn[disabled] .tox-mbtn__select-label {\n cursor: not-allowed;\n}\n.tox .tox-mbtn__select-chevron {\n align-items: center;\n display: flex;\n justify-content: center;\n width: 16px;\n display: none;\n}\n.tox .tox-notification {\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n display: grid;\n font-size: 14px;\n font-weight: normal;\n grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);\n margin-left: auto;\n margin-right: auto;\n margin-top: 4px;\n opacity: 0;\n padding: 4px;\n transition: transform 100ms ease-in, opacity 150ms ease-in;\n width: max-content;\n}\n.tox .tox-notification a {\n cursor: pointer;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification p {\n font-size: 14px;\n font-weight: normal;\n}\n.tox .tox-notification:focus {\n border-color: #006ce7;\n box-shadow: 0 0 0 1px #006ce7;\n}\n.tox .tox-notification--in {\n opacity: 1;\n}\n.tox .tox-notification--success {\n background-color: #e4eeda;\n border-color: #d7e6c8;\n color: #222f3e;\n}\n.tox .tox-notification--success p {\n color: #222f3e;\n}\n.tox .tox-notification--success a {\n color: #517342;\n}\n.tox .tox-notification--success a:hover,\n.tox .tox-notification--success a:focus {\n color: #24321d;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--success a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #517342;\n outline-offset: 2px;\n}\n.tox .tox-notification--success a:active {\n color: #0d120a;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--success svg {\n fill: #222f3e;\n}\n.tox .tox-notification--error {\n background-color: #f5cccc;\n border-color: #f0b3b3;\n color: #222f3e;\n}\n.tox .tox-notification--error p {\n color: #222f3e;\n}\n.tox .tox-notification--error a {\n color: #77181f;\n}\n.tox .tox-notification--error a:hover,\n.tox .tox-notification--error a:focus {\n color: #220709;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--error a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #77181f;\n outline-offset: 2px;\n}\n.tox .tox-notification--error a:active {\n color: #000000;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--error svg {\n fill: #222f3e;\n}\n.tox .tox-notification--warn,\n.tox .tox-notification--warning {\n background-color: #fff5cc;\n border-color: #fff0b3;\n color: #222f3e;\n}\n.tox .tox-notification--warn p,\n.tox .tox-notification--warning p {\n color: #222f3e;\n}\n.tox .tox-notification--warn a,\n.tox .tox-notification--warning a {\n color: #7a6e25;\n}\n.tox .tox-notification--warn a:hover,\n.tox .tox-notification--warning a:hover,\n.tox .tox-notification--warn a:focus,\n.tox .tox-notification--warning a:focus {\n color: #2c280d;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--warn a:focus-visible,\n.tox .tox-notification--warning a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #7a6e25;\n outline-offset: 2px;\n}\n.tox .tox-notification--warn a:active,\n.tox .tox-notification--warning a:active {\n color: #050502;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--warn svg,\n.tox .tox-notification--warning svg {\n fill: #222f3e;\n}\n.tox .tox-notification--info {\n background-color: #d6e7fb;\n border-color: #c1dbf9;\n color: #222f3e;\n}\n.tox .tox-notification--info p {\n color: #222f3e;\n}\n.tox .tox-notification--info a {\n color: #2a64a6;\n}\n.tox .tox-notification--info a:hover,\n.tox .tox-notification--info a:focus {\n color: #163355;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--info a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #2a64a6;\n outline-offset: 2px;\n}\n.tox .tox-notification--info a:active {\n color: #0b1a2c;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--info svg {\n fill: #222f3e;\n}\n.tox .tox-notification__body {\n align-self: center;
2\n color: #222f3e;\n font-size: 14px;\n grid-column-end: 3;\n grid-column-start: 2;\n grid-row-end: 2;\n grid-row-start: 1;\n text-align: center;\n white-space: normal;\n word-break: break-all;\n word-break: break-word;\n}\n.tox .tox-notification__body > * {\n margin: 0;\n}\n.tox .tox-notification__body > * + * {\n margin-top: 1rem;\n}\n.tox .tox-notification__icon {\n align-self: center;\n grid-column-end: 2;\n grid-column-start: 1;\n grid-row-end: 2;\n grid-row-start: 1;\n justify-self: end;\n}\n.tox .tox-notification__icon svg {\n display: block;\n}\n.tox .tox-notification__dismiss {\n align-self: start;\n grid-column-end: 4;\n grid-column-start: 3;\n grid-row-end: 2;\n grid-row-start: 1;\n justify-self: end;\n}\n.tox .tox-notification .tox-progress-bar {\n grid-column-end: 4;\n grid-column-start: 1;\n grid-row-end: 3;\n grid-row-start: 2;\n justify-self: center;\n}\n.tox .tox-notification-container-dock-fadeout {\n opacity: 0;\n visibility: hidden;\n}\n.tox .tox-notification-container-dock-fadein {\n opacity: 1;\n visibility: visible;\n}\n.tox .tox-notification-container-dock-transition {\n transition: visibility 0s linear 0.3s, opacity 0.3s ease;\n}\n.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein {\n transition-delay: 0s;\n}\n.tox .tox-onboarding-overlay {\n height: 100%;\n background-color: #f0f0f0;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n overflow: auto;\n display: grid;\n justify-content: center;\n align-items: center;\n}\n.tox .tox-onboarding-dialog {\n max-width: 512px;\n background-color: #fff;\n display: flex;\n flex-direction: column;\n box-shadow: 0 16px 16px -10px rgba(34, 47, 62, 0.15), 0 0 40px 1px rgba(34, 47, 62, 0.15);\n border-radius: 12px;\n margin: 8px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-header {\n color: #222f3e;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 20px;\n margin: 24px 0 8px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step {\n display: grid;\n grid-template-columns: min-content 1fr min-content;\n align-items: center;\n margin: 0 24px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step:not(:last-child) {\n border-bottom: 1px solid #e3e3e3;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--number {\n width: 24px;\n aspect-ratio: 1;\n border-radius: 50%;\n border: 1px solid #00AD0E;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 12px;\n font-weight: bold;\n color: #00AD0E;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--body {\n padding: 24px 0 24px 16px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--body-header {\n color: #222f3e;\n font-size: 14px;\n font-weight: bold;\n margin-bottom: 4px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--body-details {\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--action {\n padding-left: 24px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-footer {\n background-color: #f0f0f0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom-left-radius: 12px;\n border-bottom-right-radius: 12px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-footer p {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n font-size: 14px;\n color: rgba(34, 47, 62, 0.7);\n}\n.tox .tox-onboarding-dialog svg {\n width: 24px;\n fill: rgba(34, 47, 62, 0.7);\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin {\n display: grid;\n align-items: center;\n grid-template-columns: min-content 1fr min-content;\n border-bottom: 1px solid #e3e3e3;\n padding: 24px 0;\n margin: 0 16px;\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin--body {\n margin: 0 16px;\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin--body .tox-promotion-dialog-plugin-header {\n color: #222f3e;\n font-size: 14px;\n font-weight: bold;\n margin-bottom: 4px;\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin--body .tox-promotion-dialog-plugin-detail
2s {\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin--icon {\n display: grid;\n place-content: center;\n width: 56px;\n height: 56px;\n line-height: 24px;\n font-size: 24px;\n border-radius: 12px;\n background: linear-gradient(180deg, #fff 24%, #f0f0f0 100%);\n box-shadow: 0px 1px 1px 0px #222f3e12, 0px 3px 6px 0px #222f3e06;\n color: #006ce7;\n}\n.tox .tox-promotion-dialog--subtitle {\n margin: 16px;\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n}\n.tox .tox-promotion-dialog--explore {\n text-align: center;\n margin: 16px;\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n}\n.tox .tox-promotion-dialog--explore a {\n color: #006ce7;\n}\n.tox .tox-promotion-dialog--footer {\n background-color: #f0f0f0;\n color: rgba(34, 47, 62, 0.7);\n font-size: 12px;\n text-align: center;\n padding: 16px;\n}\n.tox .tox-promotion-button {\n display: flex;\n align-items: center;\n height: 26.6px;\n line-height: 26.6px;\n font-size: 14px;\n font-weight: bold;\n background-color: #F1EBF9;
2\n color: #851AFF;\n padding: 8px 16px;\n cursor: pointer;\n white-space: nowrap;\n border-radius: 5px;\n}\n.tox .tox-promotion-button:focus {\n outline: 1px solid #851AFF;\n}\n.tox .tox-onboarding-dialog a,\n.tox .tox-promotion-dialog--footer a {\n color: rgba(34, 47, 62, 0.7);\n cursor: pointer;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-onboarding-dialog a:hover,\n.tox .tox-promotion-dialog--footer a:hover,\n.tox .tox-onboarding-dialog a:focus,\n.tox .tox-promotion-dialog--footer a:focus {\n color: #071729;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-onboarding-dialog a:focus-visible,\n.tox .tox-promotion-dialog--footer a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #144782;\n outline-offset: 2px;\n}\n.tox .tox-onboarding-dialog a:active,\n.tox .tox-promotion-dialog--footer a:active {\n color: #000000;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-pop {\n display: inline-block;\n position: relative;\n}\n.tox .tox-pop--resizing {\n transition: width 0.1s ease;\n}\n.tox .tox-pop--resizing .tox-toolbar,\n.tox .tox-pop--resizing .tox-toolbar__group {\n flex-wrap: nowrap;\n}\n.tox .tox-pop--transition {\n transition: 0.15s ease;\n transition-property: left, right, top, bottom;\n}\n.tox .tox-pop--transition::before,\n.tox .tox-pop--transition::after {\n transition: all 0.15s, visibility 0s, opacity 0.075s ease 0.075s;\n}\n.tox .tox-pop__dialog {\n background-color: #fff;\n border: 1px solid #eeeeee;\n border-radius: 6px;\n box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15);\n min-width: 0;\n overflow: hidden;\n}\n.tox .tox-pop__dialog > *:not(.tox-toolbar) {\n margin: 4px 4px 4px 8px;\n}\n.tox .tox-pop__dialog .tox-toolbar {\n background-color: transparent;\n margin-bottom: -1px;\n}\n.tox .tox-pop::before,\n.tox .tox-pop::after {\n border-style: solid;\n content: '';\n display: block;\n height: 0;\n opacity: 1;\n position: absolute;\n width: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-pop::before,\n .tox .tox-pop::after {\n content: none;\n }\n}\n.tox .tox-pop.tox-pop--inset::before,\n.tox .tox-pop.tox-pop--inset::after {\n opacity: 0;\n transition: all 0s 0.15s, visibility 0s, opacity 0.075s ease;\n}\n.tox .tox-pop.tox-pop--bottom::before,\n.tox .tox-pop.tox-pop--bottom::after {\n left: 50%;\n top: 100%;\n}\n.tox .tox-pop.tox-pop--bottom::after {\n border-color: #fff transparent transparent transparent;\n border-width: 8px;\n margin-left: -8px;\n margin-top: -1px;\n}\n.tox .tox-pop.tox-pop--bottom::before {\n border-color: #eeeeee transparent transparent transparent;\n border-width: 9px;\n margin-left: -9px;\n}\n.tox .tox-pop.tox-pop--top::before,\n.tox .tox-pop.tox-pop--top::after {\n left: 50%;\n top: 0;\n transform: translateY(-100%);\n}\n.tox .tox-pop.tox-pop--top::after {\n border-color: transparent transparent #fff transparent;\n border-width: 8px;\n margin-left: -8px;
2\n margin-top: 1px;\n}\n.tox .tox-pop.tox-pop--top::before {\n border-color: transparent transparent #eeeeee transparent;\n border-width: 9px;\n margin-left: -9px;\n}\n.tox .tox-pop.tox-pop--left::before,\n.tox .tox-pop.tox-pop--left::after {\n left: 0;\n top: calc(50% - 1px);\n transform: translateY(-50%);\n}\n.tox .tox-pop.tox-pop--left::after {\n border-color: transparent #fff transparent transparent;\n border-width: 8px;\n margin-left: -15px;\n}\n.tox .tox-pop.tox-pop--left::before {\n border-color: transparent #eeeeee transparent transparent;\n border-width: 10px;\n margin-left: -19px;\n}\n.tox .tox-pop.tox-pop--right::before,\n.tox .tox-pop.tox-pop--right::after {\n left: 100%;\n top: calc(50% + 1px);\n transform: translateY(-50%);\n}\n.tox .tox-pop.tox-pop--right::after {\n border-color: transparent transparent transparent #fff;\n border-width: 8px;\n margin-left: -1px;\n}\n.tox .tox-pop.tox-pop--right::before {\n border-color: transparent transparent transparent #eeeeee;\n border-width: 10px;\n margin-left: -1px;\n}\n.tox .tox-pop.tox-pop--align-left::before,\n.tox .tox-pop.tox-pop--align-left::after {\n left: 20px;\n}\n.tox .tox-pop.tox-pop--align-right::before,\n.tox .tox-pop.tox-pop--align-right::after {\n left: calc(100% - 20px);\n}\n.tox .tox-sidebar-wrap {\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n min-height: 0;\n}\n.tox .tox-sidebar {\n background-color: #f0f0f0;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n}\n.tox .tox-sidebar__slider {\n display: flex;\n overflow: hidden;\n}\n.tox .tox-sidebar__pane-container {\n display: flex;\n}\n.tox .tox-sidebar__pane {\n display: flex;\n}\n.tox .tox-sidebar--sliding-closed {\n opacity: 0;\n}\n.tox .tox-sidebar--sliding-open {\n opacity: 1;\n}\n.tox .tox-sidebar--sliding-growing,\n.tox .tox-sidebar--sliding-shrinking {\n transition: width 0.5s ease, opacity 0.5s ease;\n}\n.tox .tox-selector {\n background-color: #4099ff;\n border-color: #4099ff;\n border-style: solid;\n border-width: 1px;\n box-sizing: border-box;\n display: inline-block;\n height: 10px;\n position: absolute;\n width: 10px;\n}\n.tox.tox-platform-touch .tox-selector {\n height: 12px;\n width: 12px;\n}\n.tox .tox-slider {\n align-items: center;\n display: flex;\n flex: 1;\n height: 24px;\n justify-content: center;\n position: relative;\n}\n.tox .tox-slider__rail {\n background-color: transparent;\n border: 1px solid #eeeeee;\n border-radius: 6px;\n height: 10px;\n min-width: 120px;\n width: 100%;\n}\n.tox .tox-slider__handle {\n background-color: #006ce7;\n border: 2px solid #0054b4;\n border-radius: 6px;\n box-shadow: none;\n height: 24px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n width: 14px;\n}\n.tox .tox-form__controls-h-stack > .tox-slider:not(:first-of-type) {\n margin-inline-start: 8px;\n}\n.tox .tox-form__controls-h-stack > .tox-form__group + .tox-slider {\n margin-inline-start: 32px;\n}\n.tox .tox-form__controls-h-stack > .tox-slider + .tox-form__group {\n margin-inline-start: 32px;\n}\n.tox .tox-toolbar-slider {\n align-items: center;\n display: inline-flex;\n height: 16px;\n}\n.tox .tox-toolbar-slider__input {\n appearance: none;\n background: #eeeeee;\n border-radius: 16px;\n width: 130px;\n height: 2px;\n}\n.tox .tox-toolbar-slider__input::-webkit-slider-runnable-track {\n background-color: transparent;\n height: 16px;\n}\n.tox .tox-toolbar-slider__input::-moz-range-track {\n background-color: transparent;\n height: 16px;\n}\n.tox .tox-toolbar-slider__input::-webkit-slider-thumb {\n -webkit-appearance: none;\n background-color: #006ce7;\n border-radius: 16px;\n border: none;\n height: 16px;\n width: 16px;\n}\n.tox .tox-toolbar-slider__input::-moz-range-thumb {\n appearance: none;\n background-color: #006ce7;\n border-radius: 16px;\n border: none;\n height: 16px;\n width: 16px;\n}\n.tox .tox-toolbar-slider__input:focus-visible {\n outline: none;\n}\n.tox .tox-toolbar-slider__input:focus::-webkit-slider-thumb {\n background-color: #0060ce;\n box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #006ce7;\n}
2\n.tox .tox-toolbar-slider__input:focus::-moz-range-thumb {\n background-color: #0060ce;\n box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #006ce7;\n}\n.tox .tox-toolbar-slider__input:hover::-webkit-slider-thumb {\n background-color: #0060ce;\n}\n.tox .tox-toolbar-slider__input:hover::-moz-range-thumb {\n background-color: #0060ce;\n}\n.tox .tox-toolbar-slider__input:active::-webkit-slider-thumb {\n background-color: #0054b4;\n}\n.tox .tox-toolbar-slider__input:active::-moz-range-thumb {\n background-color: #0054b4;\n}\n.tox .tox-toolbar-slider__input[disabled]::-webkit-slider-thumb {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.tox .tox-toolbar-slider__input[disabled]::-moz-range-thumb {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.tox .tox-source-code {\n overflow: auto;\n}\n.tox .tox-spinner {\n display: flex;\n}\n.tox .tox-spinner > div {\n animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both;\n background-color: rgba(34, 47, 62, 0.7);\n border-radius: 100%;\n height: 8px;\n width: 8px;\n}\n.tox .tox-spinner > div:nth-child(1) {\n animation-delay: -0.32s;\n}\n.tox .tox-spinner > div:nth-child(2) {\n animation-delay: -0.16s;\n}\n@keyframes tam-bouncing-dots {\n 0%,\n 80%,\n 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1);\n }\n}\n.tox:not([dir=rtl]) .tox-spinner > div:not(:first-child) {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-spinner > div:not(:first-child) {\n margin-right: 4px;\n}\n.tox .tox-statusbar {\n align-items: center;\n background-color: #fff;\n border-top: 1px solid #e3e3e3;\n color: rgba(34, 47, 62, 0.7);\n display: flex;\n flex: 0 0 auto;\n font-size: 14px;\n font-weight: normal;\n height: 25px;\n overflow: hidden;\n padding: 0 8px;\n position: relative;\n text-transform: none;\n}\n.tox .tox-statusbar__path {\n display: flex;\n flex: 1 1 auto;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tox .tox-statusbar__right-container {\n display: flex;\n justify-content: flex-end;\n white-space: nowrap;\n}\n.tox .tox-statusbar__help-text {\n text-align: center;\n}\n.tox .tox-statusbar__text-container {\n align-items: flex-start;\n display: flex;\n flex: 1 1 auto;\n height: 16px;\n justify-content: space-between;\n}\n@media only screen and (min-width: 768px ) {\n .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__help-text,\n .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__right-container,\n .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__path {\n flex: 0 0 calc(100% / 3);\n }\n}\n.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end {\n justify-content: flex-end;\n}\n.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start {\n justify-content: flex-start;\n}\n.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around {\n justify-content: space-around;\n}\n.tox .tox-statusbar__path > * {\n display: inline;\n white-space: nowrap;\n}\n.tox .tox-statusbar__wordcount {\n flex: 0 0 auto;\n margin-left: 1ch;\n}\n@media only screen and (max-width: 767px ) {\n .tox .tox-statusbar__text-container .tox-statusbar__help-text {\n display: none;\n }\n .tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child {\n display: block;\n }\n}\n.tox .tox-statusbar a,\n.tox .tox-statusbar__path-item,\n.tox .tox-statusbar__wordcount {\n color: rgba(34, 47, 62, 0.7);\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n}\n.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]) {\n color: #222f3e;\n cursor: pointer;\n}\n.tox .tox-statusbar a:focus-visible::after,\n.tox .tox-statusbar__path-item:focus-visible::after,\n.tox .tox-statusbar__wordcount:focus-visible::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-statusbar a:focus-visible::after,\n .tox .tox-statusbar__path-item:focus-visible::after,\n .tox .tox-statusbar__wordcount:focus-visible::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-statusbar__branding svg {\n fill: rgba(34, 47, 62, 0.8);\n height: 1em;\n margin-left: 0.3em;\n width: auto;\n}\n@media (forced-colors: active) {\n .tox .tox-statusbar__branding svg {\n fill: currentColor;\n }\n}\n.tox .tox-statusbar__branding a {\n align-items: center;\n display: inline-flex;\n}\n.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,\n.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg {\n fill: #222f3e;\n}\n.tox .tox-statusbar__resize-cursor-default {\n cursor: ns-resize;\n}\n.tox .tox-statusbar__resize-cursor-both {\n cursor: nwse-resize;\n}\n.tox .tox-statusbar__resize-handle {\n align-items: flex-end;\n align-self: stretch;\n display: flex;\n flex: 0 0 auto;\n justify-content: flex-end;\n margin-bottom: 3px;\n margin-left: 4px;\n margin-right: calc(3px - 8px);\n margin-top: 3px;\n padding-bottom: 0;\n padding-left: 0;\n padding-right: 0;\n position: relative;\n}\n.tox .tox-statusbar__resize-handle svg {\n display: block;\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-statusbar__resize-handle:hover svg,\n.tox .tox-statusbar__resize-handle:focus svg {\n fill: #222f3e;\n}\n.tox .tox-statusbar__resize-handle:focus-visible {\n background-color: transparent;\n border-radius: 1px 1px 5px 1px;\n box-shadow: 0 0 0 2px transparent;\n}\n.tox .tox-statusbar__resize-handle:focus-visible::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-statusbar__resize-handle:focus-visible::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-statusbar__resize-handle:only-child {\n margin-left: auto;\n}\n.tox:not([dir=rtl]) .tox-statusbar__path > * {\n margin-right: 4px;\n}\n.tox:not([dir=rtl]) .tox-statusbar__branding {\n margin-left: 2ch;\n}\n.tox[dir=rtl] .tox-statusbar {\n flex-direction: row-reverse;\n}\n.tox[dir=rtl] .tox-statusbar__path > * {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-statusbar__branding svg {\n margin-left: 0;\n margin-right: 0.3em;\n}\n.tox .tox-throbber {\n z-index: 1299;\n}\n.tox .tox-throbber__busy-spinner {\n align-items: center;\n background-color: rgba(255, 255, 255, 0.6);\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n.tox .tox-tbtn {\n align-items: center;\n background: #fff;\n border: 0;\n border-radius: 3px;\n box-shadow: none;\n color: #222f3e;\n display: flex;\n flex: 0 0 auto;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n height: 28px;\n justify-content: center;\n margin: 6px 1px 5px 0;\n outline: none;\n padding: 0;\n text-transform: none;\n width: 34px;\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn:hover,\n .tox .tox-tbtn.tox-tbtn:hover {\n outline: 1px dashed currentColor;\n }\n .tox .tox-tbtn.tox-tbtn--active,\n .tox .tox-tbtn.tox-tbtn--enabled,\n .tox .tox-tbtn.tox-tbtn--enabled:hover,\n .tox .tox-tbtn.tox-tbtn--enabled:focus,\n .tox .tox-tbtn:focus:not(.tox-tbtn--disabled) {\n outline: 1px solid currentColor;\n position: relative;\n }\n}\n.tox .tox-tbtn svg {\n display: block;\n fill: #222f3e;\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn svg {\n fill: currentColor !important;\n }\n .tox .tox-tbtn svg.tox-tbtn--enabled,\n .tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled) {\n fill: currentColor !important;\n }\n .tox .tox-tbtn svg.tox-tbtn--disabled,\n .tox .tox-tbtn svg.tox-tbtn--disabled:hover,\n .tox .tox-tbtn svg .tox-tbtn:disabled,\n .tox .tox-tbtn svg .tox-tbtn:disabled:hover {\n filter: contrast(0%);\n }\n}\n.tox .tox-tbtn.tox-tbtn-more {\n padding-left: 5px;\n padding-right: 5px;\n width: inherit;\n}\n.tox .tox-tbtn:focus {\n background: #fff;\n border: 0;\n box-shadow: none;\n position: relative;\n z-index: 1;\n}\n.tox .tox-tbtn:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-tbtn:hover {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tbtn:hover svg {\n fill: #222f3e;\n}\n.tox .tox-tbtn:active {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tbtn:active svg {\n fill: #222f3e;\n}\n.tox .tox-tbtn--disabled .tox-tbtn--enabled svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-tbtn--disabled,\n.tox .tox-tbtn--disabled:hover,\n.tox .tox-tbtn:disabled,\n.tox .tox-tbtn:disabled:hover {\n background: #fff;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-tbtn--disabled svg,\n.tox .tox-tbtn--disabled:hover svg,\n.tox .tox-tbtn:disabled svg,\n.tox .tox-tbtn:disabled:hover svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-tbtn--active,\n.tox .tox-tbtn--enabled,\n.tox .tox-tbtn--enabled:hover,\n.tox .tox-tbtn--enabled:focus {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n position: relative;\n}\n.tox .tox-tbtn--active > *,\n.tox .tox-tbtn--enabled > *,\n.tox .tox-tbtn--enabled:hover > *,\n.tox .tox-tbtn--enabled:focus > * {\n transform: none;\n}\n.tox .tox-tbtn--active svg,\n.tox .tox-tbtn--enabled svg,\n.tox .tox-tbtn--enabled:hover svg,\n.tox .tox-tbtn--enabled:focus svg {\n fill: #222f3e;\n}\n.tox .tox-tbtn--active.tox-tbtn--disabled svg,\n.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,\n.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,\n.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-tbtn--enabled:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn--enabled:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) {\n color: #222f3e;\n}\n.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg {\n fill: #222f3e;\n}\n.tox .tox-tbtn:active > * {\n transform: none;\n}\n.tox .tox-tbtn--md {\n height: 42px;\n width: 51px;\n}\n.tox .tox-tbtn--lg {\n flex-direction: column;\n height: 56px;\n width: 68px;\n}\n.tox .tox-tbtn--return {\n align-self: stretch;\n height: unset;\n width: 16px;\n}\n.tox .tox-tbtn--labeled {\n padding: 0 4px;\n width: unset;\n}\n.tox .tox-tbtn__vlabel {\n display: block;\n font-size: 10px;\n font-weight: normal;\n letter-spacing: -0.025em;\n margin-bottom: 4px;\n white-space: nowrap;\n}\n.tox .tox-label--context-toolbar {\n margin: 6px 1px 5px 0;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n}\n.tox .tox-number-input {\n background: #f7f7f7;\n border-radius: 3px;\n display: flex;\n margin: 6px 1px 5px 0;\n position: relative;\n width: auto;\n}\n.tox .tox-number-input:focus {\n background: #f7f7f7;\n}\n.tox .tox-number-input:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-number-input .tox-input-wrapper {\n display: flex;\n pointer-events: none;\n position: relative;\n text-align: center;\n}\n.tox .tox-number-input .tox-input-wrapper:focus {\n background-color: #f7f7f7;\n z-index: 1;\n}\n.tox .tox-number-input .tox-input-wrapper:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input .tox-input-wrapper:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-number-input .tox-input-wrapper:has(input:focus)::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input .tox-input-wrapper:has(input:focus)::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-number-input input {\n border-radius: 3px;\n color: #222f3e;\n font-size: 14px;\n margin: 2px 0;\n pointer-events: all;\n position: relative;\n width: 60px;\n}\n.tox .tox-number-input input:hover {\n background: #f0f0f0;\n color: #222f3e;\n}\n.tox .tox-number-input input:focus {\n background-color: #f7f7f7;\n}\n.tox .tox-number-input input:disabled {\n background: #fff;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n cursor: not-allowed;\n}\n.tox .tox-number-input button {\n color: #222f3e;\n height: 28px;\n position: relative;\n text-align: center;\n width: 24px;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input button:hover,\n .tox .tox-number-input button:focus,\n .tox .tox-number-input button:active {\n outline: 1px solid currentColor !important;\n }\n}\n.tox .tox-number-input button svg {\n display: block;\n fill: #222f3e;\n margin: 0 auto;\n transform: scale(0.67);\n}\n@media (forced-colors: active) {\n .tox .tox-number-input button svg,\n .tox .tox-number-input button svg:active,\n .tox .tox-number-input button svg:hover {\n fill: currentColor !important;\n }\n .tox .tox-number-input button svg:disabled {\n filter: contrast(0);\n }\n}\n.tox .tox-number-input button:focus {\n background: #f7f7f7;\n z-index: 1;\n}\n.tox .tox-number-input button:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input button:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-number-input button:hover {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-number-input button:hover svg {\n fill: #222f3e;\n}\n.tox .tox-number-input button:active {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-number-input button:active svg {\n fill: #222f3e;\n}\n.tox .tox-number-input button:disabled {\n background: #fff;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-number-input button:disabled svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-number-input button.minus {\n border-radius: 3px 0 0 3px;\n}\n.tox .tox-number-input button.plus {\n border-radius: 0 3px 3px 0;\n}\n.tox .tox-number-input:focus:not(:active) > button,\n.tox .tox-number-input:focus:not(:active) > .tox-input-wrapper {\n background: #f7f7f7;\n}\n.tox .tox-tbtn--select {\n margin: 6px 1px 5px 0;\n padding: 0 4px;\n width: auto;\n}\n.tox .tox-tbtn--bordered,\n.tox .tox-tbtn--bordered:focus,\n.tox .tox-tbtn--bordered:hover {\n border: 1px solid #eeeeee;\n}\n.tox .tox-tbtn__select-label {\n cursor: default;\n font-weight: normal;\n height: initial;\n margin: 0 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tox .tox-tbtn__select-chevron {\n align-items: center;\n display: flex;\n justify-content: center;\n width: 16px;\n}\n.tox .tox-tbtn__select-chevron svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn__select-chevron svg {\n fill: currentColor;\n }\n}\n.tox .tox-tbtn--bespoke {\n background: #f7f7f7;\n}\n.tox .tox-tbtn--bespoke:focus {\n background: #f7f7f7;\n}\n.tox .tox-tbtn--bespoke + .tox-tbtn--bespoke {\n margin-inline-start: 4px;\n}\n.tox .tox-tbtn--bespoke .tox-tbtn__select-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 7em;
2\n}\n.tox .tox-tbtn--disabled .tox-tbtn__select-label,\n.tox .tox-tbtn--select:disabled .tox-tbtn__select-label {\n cursor: not-allowed;\n}\n.tox .tox-split-button {\n border: 0;\n border-radius: 3px;\n box-sizing: border-box;\n display: flex;\n margin: 6px 1px 5px 0;\n}\n.tox .tox-split-button:hover {\n box-shadow: 0 0 0 1px #f0f0f0 inset;\n}\n.tox .tox-split-button:focus {\n background: #fff;\n box-shadow: none;\n color: #222f3e;\n position: relative;\n z-index: 1;\n}\n.tox .tox-split-button:focus::after {\n pointer-events: none;\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-split-button:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-split-button > * {\n border-radius: 0;\n}\n.tox .tox-split-button > *:nth-child(1) {\n border-bottom-left-radius: 3px;\n border-top-left-radius: 3px;\n}\n.tox .tox-split-button > *:nth-child(2) {\n border-bottom-right-radius: 3px;\n border-top-right-radius: 3px;\n}\n.tox .tox-split-button__chevron {\n width: 16px;\n}\n.tox .tox-split-button__chevron svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n@media (forced-colors: active) {\n .tox .tox-split-button__chevron svg {\n fill: currentColor;\n }\n}\n.tox .tox-split-button .tox-tbtn {\n margin: 0;\n}\n.tox .tox-split-button:focus .tox-tbtn {\n background-color: transparent;\n}\n.tox .tox-split-button.tox-tbtn--disabled:hover,\n.tox .tox-split-button.tox-tbtn--disabled:focus,\n.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,\n.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus {\n background: #fff;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n}\n.tox.tox-platform-touch .tox-split-button .tox-tbtn--select {\n padding: 0 0px;\n}\n.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child {\n width: 30px;\n}\n.tox.tox-platform-touch .tox-split-button__chevron {\n width: 20px;\n}\n.tox .tox-split-button.tox-tbtn--disabled svg .tox-icon-text-color__color,\n.tox .tox-split-button.tox-tbtn--disabled svg .tox-icon-highlight-bg-color__color {\n opacity: 0.3;\n}\n.tox .tox-toolbar-overlord {\n background-color: #fff;\n}\n.tox .tox-toolbar,\n.tox .tox-toolbar__primary,\n.tox .tox-toolbar__overflow {\n background-attachment: local;\n background-color: #fff;\n background-image: repeating-linear-gradient(#e3e3e3 0 1px, transparent 1px 39px);\n background-position: center top 40px;\n background-repeat: no-repeat;\n background-size: calc(100% - 11px * 2) calc(100% - 41px);\n display: flex;\n flex: 0 0 auto;\n flex-shrink: 0;\n flex-wrap: wrap;\n padding: 0 0px;\n transform: perspective(1px);\n}\n.tox .tox-toolbar-overlord > .tox-toolbar,\n.tox .tox-toolbar-overlord > .tox-toolbar__primary,\n.tox .tox-toolbar-overlord > .tox-toolbar__overflow {\n background-position: center top 0px;\n background-size: calc(100% - 11px * 2) calc(100% - 0px);\n}\n.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed {\n height: 0;\n opacity: 0;\n padding-bottom: 0;\n padding-top: 0;\n visibility: hidden;\n}\n.tox .tox-toolbar__overflow--growing {\n transition: height 0.3s ease, opacity 0.2s linear 0.1s;\n}\n.tox .tox-toolbar__overflow--shrinking {\n transition: opacity 0.3s ease, height 0.2s linear 0.1s, visibility 0s linear 0.3s;\n}\n.tox .tox-toolbar-overlord,\n.tox .tox-anchorbar {\n grid-column: 1 / -1;\n}\n.tox .tox-menubar + .tox-toolbar,\n.tox .tox-menubar + .tox-toolbar-overlord {\n border-top: 1px solid transparent;\n margin-top: -1px;\n padding-bottom: 1px;\n padding-top: 1px;\n}\n@media (forced-colors: active) {\n .tox .tox-menubar + .tox-toolbar,\n .tox .tox-menubar + .tox-toolbar-overlord {\n outline: 1px solid currentColor;\n }\n}\n.tox .tox-toolbar--scrolling {\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.tox .tox-pop .tox-toolbar {\n border-width: 0;\n}\n.tox .tox-toolbar--no-divider {\n background-image: none;\n}\n.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,\n.tox .tox-toolbar-overlord .tox-toolbar__primary {\n background-position: center top 39px;\n}\n.tox .tox-editor-header > .tox-toolbar--scrolling,\n.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child {\n background-image: none;\n}\n.tox .tox-focusable-wrapper {\n border: 1px solid transparent;\n margin-right: 2px;\n pointer-events: none;\n}\n.tox .tox-focusable-wrapper .tox-textfield-size {\n pointer-events: all;\n}\n.tox .tox-focusable-wrapper:focus {\n background-color: #f7f7f7;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n}\n.tox.tox-tinymce-aux .tox-toolbar__overflow {\n background-color: #fff;\n background-position: center top 43px;\n background-size: calc(100% - 8px * 2) calc(100% - 51px);\n border: none;\n border-radius: 6px;\n box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15);
2\n overscroll-behavior: none;\n padding: 4px 0;\n}\n@media (forced-colors: active) {\n .tox.tox-tinymce-aux .tox-toolbar__overflow {\n border: solid;\n }\n}\n.tox-pop .tox-pop__dialog .tox-toolbar {\n background-position: center top 43px;\n background-size: calc(100% - 11px * 2) calc(100% - 51px);\n padding: 4px 0;\n}\n.tox-context-form__group {\n display: flex;\n align-items: center;\n}\n.tox .tox-toolbar__group {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n margin: 0 0;\n padding: 0 11px 0 12px;\n}\n.tox .tox-toolbar__group--pull-right {\n margin-left: auto;\n}\n.tox .tox-toolbar--scrolling .tox-toolbar__group {\n flex-shrink: 0;\n flex-wrap: nowrap;\n}\n.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type) {\n border-right: 1px solid transparent;\n}\n.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type) {\n border-left: 1px solid transparent;\n}\n.tox .tox-tooltip {\n display: inline-block;\n max-width: 15em;\n padding: 8px;\n /*\n * The pointer-events: none is designed to make mouse events bleed through the tooltip\n * to the underlying items. For example, a mouse hovering over a tooltip that hovers over\n * another item should trigger the hover of the item obscured by the tooltip, even though\n * the tooltip is on top\n */\n pointer-events: none;\n position: relative;\n width: max-content;\n z-index: 1150;\n}\n.tox .tox-tooltip__body {\n background-color: #222f3e;\n border-radius: 6px;\n box-shadow: none;\n color: #fff;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n overflow-wrap: break-word;\n padding: 4px 6px;\n text-transform: none;\n}\n@media (forced-colors: active) {\n .tox .tox-tooltip__body {\n outline: outset 1px;\n }\n}\n.tox .tox-tooltip__arrow {\n position: absolute;\n}\n.tox .tox-tooltip--down .tox-tooltip__arrow {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-top: 8px solid #222f3e;\n bottom: 0;\n left: 50%;\n position: absolute;\n transform: translateX(-50%);\n}\n.tox .tox-tooltip--up .tox-tooltip__arrow {\n border-bottom: 8px solid #222f3e;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n left: 50%;\n position: absolute;\n top: 0;\n transform: translateX(-50%);\n}\n.tox .tox-tooltip--right .tox-tooltip__arrow {\n border-bottom: 8px solid transparent;\n border-left: 8px solid #222f3e;\n border-top: 8px solid transparent;\n position: absolute;\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n}\n.tox .tox-tooltip--left .tox-tooltip__arrow {\n border-bottom: 8px solid transparent;\n border-right: 8px solid #222f3e;\n border-top: 8px solid transparent;\n left: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n.tox .tox-tree {\n display: flex;\n flex-direction: column;\n}\n.tox .tox-tree .tox-trbtn {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 4px;\n box-shadow: none;\n color: #222f3e;\n display: flex;\n flex: 0 0 auto;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n height: 28px;\n margin-bottom: 4px;\n margin-top: 4px;\n outline: none;\n overflow: hidden;\n padding: 0;\n padding-left: 8px;\n text-transform: none;\n}\n.tox .tox-tree .tox-trbtn .tox-tree__label {\n cursor: default;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tox .tox-tree .tox-trbtn svg {\n display: block;\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:focus {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n}\n.tox .tox-tree .tox-trbtn:hover {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:hover svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:active {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:active svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn--disabled,\n.tox .tox-tree .tox-trbtn--disabled:hover,\n.tox .tox-tree .tox-trbtn:disabled,\n.tox .tox-tree .tox-trbtn:disabled:hover {\n background: transparent;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-tree .tox-trbtn--disabled svg,\n.tox .tox-tree .tox-trbtn--disabled:hover svg,\n.tox .tox-tree .tox-trbtn:disabled svg,\n.tox .tox-tree .tox-trbtn:disabled:hover svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-tree .tox-trbtn--enabled,\n.tox .tox-tree .tox-trbtn--enabled:hover {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tree .tox-trbtn--enabled > *,\n.tox .tox-tree .tox-trbtn--enabled:hover > * {\n transform: none;\n}\n.tox .tox-tree .tox-trbtn--enabled svg,\n.tox .tox-tree .tox-trbtn--enabled:hover svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) {\n color: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:active > * {\n transform: none;\n}\n.tox .tox-tree .tox-trbtn--return {\n align-self: stretch;\n height: unset;\n width: 16px;\n}\n.tox .tox-tree .tox-trbtn--labeled {\n padding: 0 4px;\n width: unset;\n}\n.tox .tox-tree .tox-trbtn__vlabel {\n display: block;\n font-size: 10px;\n font-weight: normal;\n letter-spacing: -0.025em;\n margin-bottom: 4px;\n white-space: nowrap;\n}\n.tox .tox-tree .tox-tree--directory {\n display: flex;\n flex-direction: column;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label {\n font-weight: bold;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn {\n margin-left: auto;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg {\n fill: transparent;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) {\n background-color: transparent;\n color: #222f3e;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron {\n margin-right: 6px;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron,\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--shrinking) .tox-chevron {\n transition: transform 0.5s ease-in-out;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron,\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--open) .tox-chevron {\n transform: rotate(90deg);\n}\n.tox .tox-tree .tox-tree--leaf__label {\n font-weight: normal;\n}\n.tox .tox-tree .tox-tree--leaf__label .tox-mbtn {\n margin-left: auto;\n}\n.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg {\n fill: transparent;\n}\n.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,\n.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) {\n background-color: transparent;\n color: #222f3e;\n}\n.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-icon-custom-state {\n flex-grow: 1;\n display: flex;\n justify-content: flex-end;\n}\n.tox .tox-tree .tox-tree--directory__children {\n overflow: hidden;\n padding-left: 16px;\n}\n.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,\n.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking {\n transition: height 0.5s ease-in-out;\n}\n.tox .tox-tree .tox-trbtn.tox-tree--leaf__label {\n display: flex;\n justify-content: space-between;\n}\n.tox .tox-revisionhistory__pane {\n padding: 0 !important;\n /* Override the default padding of tox-view__pane */\n}\n.tox .tox-revisionhistory__container {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.tox .tox-revisionhistory {\n background-color: #fff;
2\n border-top: 1px solid #f0f0f0;\n display: flex;\n flex: 1;\n height: 100%;\n margin-top: 8px;\n overflow-x: auto;\n overflow-y: hidden;\n position: relative;\n width: 100%;\n}\n.tox .tox-revisionhistory--align-right {\n margin-left: auto;\n}\n.tox .tox-revisionhistory__iframe {\n flex: 1;\n}\n.tox .tox-revisionhistory__sidebar {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-width: 248px;\n width: 316px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title {\n background-color: #fff;\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n color: #222f3e;\n font-size: 20px;\n font-weight: 400;\n line-height: 28px;\n padding: 12px;\n z-index: 1;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions {\n background-color: #f0f0f0;\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 12px;\n overflow-y: auto;\n padding: 10px 12px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus {\n height: 100%;\n position: relative;\n z-index: 1;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n border-radius: 6px;\n bottom: 1px;\n left: 1px;\n right: 1px;\n top: 1px;\n}\n@media (forced-colors: active) {\n .tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card {\n background-color: #fff;\n border: 1px solid #f0f0f0;\n border-radius: 6px;\n color: #222f3e;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n font-size: 14px;\n gap: 12px;\n padding: 12px;\n width: 100%;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover {\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus {\n position: relative;\n z-index: 1;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 #006ce7;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n border-radius: 6px;\n box-shadow: 0 0 0 2px #006ce7;\n box-shadow: 0 0 0 2px #006ce7 !important;\n}\n@media (forced-colors: active) {\n .tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected {\n background-color: #fff5cc;\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n position: relative;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 #e3b82a;\n content: '';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n border-radius: 6px;\n box-shadow: 0 0 0 2px #e3b82a;\n}\n@media (forced-colors: active) {\n .tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date {\n display: flex;\n gap: 12px;\n justify-content: space-between;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date-label {\n font-size: 16px;\n line-height: 24px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-label {\n font-size: 12px;\n font-weight: 600;\n line-height: 24px;\n padding: 0;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author {\n align-items: center;\n display: flex;\n flex: 1 0 0;\n gap: 8px;\n height: 36px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n font-weight: 700;\n line-height: 18px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__avatar {\n border-radius: 50%;\n height: 36px;\n object-fit: cover;\n vertical-align: middle;\n width: 36px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision {\n color: rgba(34, 47, 62, 0.7);\n font-size: 16px;\n line-height: 24px;\n padding: 5px 5.5px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-check-icon {\n color: #222f3e;\n height: 24px;\n}\n[data-mce-name="uploadcare-enhance-filter"] .color-swatch-remove-color path {\n fill: #c00;\n stroke: #c00;\n}\n.tox .tox-view-wrap,\n.tox .tox-view-wrap__slot-container {\n background-color: #fff;\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n}\n.tox .tox-view {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n overflow: hidden;\n}\n.tox .tox-view__header {\n align-items: center;\n display: flex;\n font-size: 16px;\n justify-content: space-between;\n padding: 10px 10px 2px 10px;\n position: relative;\n}\n.tox .tox-view__label {\n color: #222f3e;\n font-weight: bold;\n line-height: 24px;\n padding: 4px 16px;\n text-align: center;\n white-space: nowrap;\n}\n.tox .tox-view__label--normal {\n font-size: 16px;\n}\n.tox .tox-view__label--large {\n font-size: 20px;\n}\n.tox .tox-view--mobile.tox-view__header,\n.tox .tox-view--mobile.tox-view__toolbar {\n padding: 8px;\n}\n.tox .tox-view--scrolling {\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.tox .tox-view__toolbar {\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: space-between;\n overflow-x: auto;\n padding: 10px 10px 2px 10px;\n}\n.tox .tox-view__toolbar__group {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n.tox .tox-view__header-start,\n.tox .tox-view__header-end {\n display: flex;\n}\n.tox .tox-view__pane {\n height: 100%;\n padding: 8px;\n position: relative;\n width: 100%;\n}\n.tox .tox-view__pane_panel {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n}\n.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start > *,\n.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end > * {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-view__header .tox-view__header-start > *,\n.tox[dir=rtl] .tox-view__header .tox-view__header-end > * {\n margin-right: 8px;\n}\n.tox .tox-well {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n padding: 8px;\n width: 100%;\n}\n.tox .tox-well > *:first-child {\n margin-top: 0;\n}\n.tox .tox-well > *:last-child {\n margin-bottom: 0;\n}\n.tox .tox-well > *:only-child {\n margin: 0;\n}\n.tox .tox-custom-editor {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n display: flex;\n flex: 1;\n overflow: hidden;\n position: relative;\n}
2\n/* stylelint-disable */\n.tox {\n /* stylelint-enable */\n}\n.tox .tox-dialog-loading::before {\n background-color: rgba(0, 0, 0, 0.5);\n content: "";\n height: 100%;\n position: absolute;\n width: 100%;\n z-index: 1000;\n}\n.tox .tox-tab {\n cursor: pointer;\n}\n.tox .tox-dialog__content-js {\n display: flex;\n flex: 1;\n}\n.tox .tox-dialog__body-content .tox-collection {\n display: flex;\n flex: 1;\n}\n`,"",{version:3,sources:["webpack://./node_modules/tinymce/skins/ui/oxide/skin.css"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,cAAc;EACd,YAAY;EACZ,gIAAgI;EAChI,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,mBAAmB;EACnB,wCAAwC;EACxC,6BAA6B;EAC7B,qBAAqB;EACrB,iBAAiB;EACjB,oBAAoB;EACpB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,oBAAoB;EACpB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,oCAAoC;EACpC,mBAAmB;EACnB,wBAAwB;EACxB,oBAAoB;EACpB,uBAAuB;EACvB,uBAAuB;EACvB,oBAAoB;AACtB;AACA;EACE,kDAAkD;EAClD,uBAAuB;EACvB,SAAS;EACT,gBAAgB;EAChB,WAAW;EACX,YAAY;EACZ,SAAS;EACT,eAAe;EACf,UAAU;EACV,UAAU;EACV,gBAAgB;EAChB,WAAW;AACb;AACA;EACE,cAAc;EACd,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,mBAAmB;EACnB,gBAAgB;EAChB,sBAAsB;EACtB,aAAa;EACb,sBAAsB;EACtB,gIAAgI;EAChI,gBAAgB;EAChB,kBAAkB;EAClB,8BAA8B;AAChC;AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,mBAAmB;EACnB,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,gIAAgI;EAChI,aAAa;AACf;AACA;;EAEE,aAAa;AACf;AACA;EACE,SAAS;AACX;AACA;EACE,0BAA0B;AAC5B;AACA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,8BAA8B;EAC9B,iCAAiC;EACjC,gBAAgB;EAChB,WAAW;EACX,UAAU;EACV,UAAU;EACV,SAAS;AACX;AACA;EACE,oBAAoB;EACpB,kBAAkB;EAClB,8BAA8B;AAChC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,eAAe;EACf,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,WAAW;AACb;AACA;;EAEE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,eAAe;EACf,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;;EAEE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,eAAe;EACf,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;;EAEE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,yCAAyC;EACzC,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;;EAEE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,eAAe;EACf,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,OAAO;AACT;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,UAAU;AACZ;AACA;EACE,aAAa;EACb,YAAY;EACZ,cAAc;AAChB;AACA;EACE;IACE,WAAW;EACb;AACF;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,aAAa;EACb,cAAc;AAChB;AACA;EACE,aAAa;EACb,cAAc;AAChB;AACA;EACE,aAAa;EACb,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,wBAAwB;EACxB,yBAAyB;EACzB,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,gBAAgB;EAChB,sBAAsB;EACtB,WAAW;EACX,eAAe;EACf,qBAAqB;EACrB,gIAAgI;EAChI,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,sBAAsB;EACtB,iBAAiB;EACjB,SAAS;EACT,aAAa;EACb,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;EAClB,6BAA6B;EAC7B,qBAAqB;EACrB,oBAAoB;EACpB,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,mDAAmD;EACnD,WAAW;EACX,UAAU;EACV,UAAU;EACV,oBAAoB;EACpB,kBAAkB;EAClB,WAAW;EACX,SAAS;AACX;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;AACb;
2AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;AACb;AACA;;;EAGE,aAAa;EACb,gBAAgB;AAClB;AACA;;;EAGE,cAAc;EACd,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,wBAAwB;EACxB,yBAAyB;EACzB,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,gBAAgB;EAChB,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,sBAAsB;EACtB,aAAa;EACb,iBAAiB;EACjB,6BAA6B;EAC7B,qBAAqB;EACrB,oBAAoB;AACtB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,4BAA4B;AAC9B;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,4BAA4B;AAC9B;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,cAAc;AAChB;AACA;;;EAGE,YAAY;AACd;AACA;;;EAGE,cAAc;EACd,kBAAkB;AACpB;AACA;;EAEE,qBAAqB;EACrB,UAAU;AACZ;AACA;EACE,aAAa;EACb,YAAY;EACZ,sBAAsB;EACtB,eAAe;EACf,qBAAqB;EACrB,gIAAgI;EAChI,eAAe;EACf,mBAAmB;EACnB,gBAAgB;EAChB,SAAS;EACT,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;AACA;EACE,6BAA6B;EAC7B,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,wCAAwC;EACxC,yBAAyB;EACzB,iBAAiB;EACjB,4BAA4B;AAC9B;AACA;EACE,wCAAwC;EACxC,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,wCAAwC;EACxC,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,wCAAwC;EACxC,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,eAAe;EACf,aAAa;EACb,YAAY;EACZ,eAAe;AACjB;AACA;EACE,iDAAiD;EACjD,WAAW;EACX,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;EACT,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,iCAAiC;EACjC,uBAAuB;EACvB,aAAa;EACb,YAAY;EACZ,uBAAuB;EACvB,wBAAwB;EACxB,WAAW;AACb;AACA;EACE,cAAc;EACd,2BAA2B;AAC7B;AACA;EACE;IACE,6BAA6B;EAC/B;AACF;AACA;EACE,aAAa;EACb,aAAa;AACf;AACA;EACE,aAAa;EACb,aAAa;AACf;AACA;EACE,4BAA4B;EAC5B,mBAAmB;AACrB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,mCAAmC;EACnC,wBAAwB;AAC1B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,UAAU;AACZ;AACA;EACE,aAAa;EACb,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;EAChB,UAAU;AACZ;AACA;EACE,sBAAsB;EACtB,qBAAqB;EACrB,oBAAoB;EACpB,qBAAqB;EACrB,mBAAmB;EACnB,qBAAqB;EACrB,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,4BAA4B;EAC5B,eAAe;EACf,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;EAChB,gBAAgB;EAChB,oBAAoB;EACpB,2BAA2B;EAC3B,yBAAyB;UACjB,iBAAiB;AAC3B;AACA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,cAAc;EACd,aAAa;EACb,2BAA2B;EAC3B,yBAAyB;UACjB,iBAAiB;AAC3B;AACA;;EAEE,sBAAsB;AACxB;AACA;;;;;;EAME,YAAY;AACd;AACA;;EAEE,WAAW;EACX,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,gCAAgC;AAClC;AACA;EACE,aAAa;EACb,eAAe;AACjB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,UAAU;EACV,sBAAsB;EACtB,YAAY;EACZ,4BAA4B;AAC9B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,WAAW;AACb;AACA;EACE;IACE,iBAAiB;EACnB;AACF;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,cAAc;EACd,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,mCAAmC;EACnC,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE;IACE,kBAAkB;IAClB,kBAAkB;EACpB;AACF;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE;IACE,kBAAkB;IAClB,kBAAkB;EACpB;AACF;AACA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,kBAAkB;EAClB,kBAAkB;AACpB;AACA;;EAEE,mBAAmB;EACnB,aAAa;EACb,YAAY;EACZ,uBAAuB;EACvB,WAAW;AACb;
2AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,qBAAqB;EACrB,OAAO;EACP,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,eAAe;EACf,oBAAoB;EACpB,qBAAqB;AACvB;AACA;EACE,mBAAmB;EACnB,qBAAqB;EACrB,eAAe;EACf,YAAY;EACZ,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,6BAA6B;EAC7B,4BAA4B;EAC5B,mBAAmB;AACrB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,+EAA+E;EAC/E,aAAa;EACb,cAAc;EACd,cAAc;EACd,iBAAiB;EACjB,gBAAgB;EAChB,gBAAgB;EAChB,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,iBAAiB;EACjB,SAAS;EACT,cAAc;AAChB;AACA;EACE,YAAY;EACZ,qBAAqB;EACrB,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,iBAAiB;AACnB;AACA;EACE,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,sBAAsB;AACxB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mCAAmC;AACrC;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kCAAkC;AACpC;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,0BAA0B;AAC5B;AACA;EACE,iBAAiB;AACnB;AACA;EACE;;IAEE,yCAAyC;IACzC,sCAAsC;IACtC,yBAAyB;EAC3B;AACF;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,aAAa;EACb,SAAS;AACX;AACA;EACE,sBAAsB;EACtB,aAAa;EACb,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;;EAEE,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,kBAAkB;EAClB,uBAAuB;EACvB,YAAY;EACZ,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,uBAAuB;EACvB,kBAAkB;EAClB,YAAY;EACZ,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,sBAAsB;EACtB,YAAY;EACZ,WAAW;AACb;AACA;EACE,sIAAsI;EACtI,YAAY;EACZ,WAAW;AACb;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,iBAAiB;EACjB,uBAAuB;EACvB,uBAAuB;EACvB,WAAW;EACX,WAAW;AACb;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,8BAA8B;AAChC;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,8BAA8B;EAC9B,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,qEAAqE;EACrE,iCAAiC;EACjC,0BAA0B;AAC5B;AACA;EACE,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,aAAa;EACb,YAAY;EACZ,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE,SAAS;AACX;AACA;EACE,yBAAyB;EACzB,yBAAyB;EACzB,kBAAkB;EAClB,cAAc;EACd,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,uBAAuB;EACvB,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;;;EAGE,sBAAsB;AACxB;AACA;EACE,SAAS;EACT,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE;IACE,yBAAyB;EAC3B;AACF;AACA;EACE,YAAY;EACZ,6CAA6C;EAC7C,WAAW;AACb;AACA;;EAEE,oDAAoD;EACpD,qBAAqB;AACvB;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,eAAe;AACjB;AACA;EACE,mBAAmB;EACnB,6BAA6B;EAC7B,SAAS;EACT,eAAe;EACf,aAAa;EACb,YAAY;EACZ,uBAAuB;EACvB,aAAa;EACb,UAAU;EACV,WAAW;AACb;AACA;EACE,aAAa;EACb,YAAY;EACZ,WAAW;AACb;AACA;EACE,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,aAAa;EACb,YAAY;EACZ,uDAAuD;EACvD,WAAW;AACb;AACA;EACE,UAAU;EACV,mBAAmB;EACnB,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,qCAAqC;EACrC,mEAAmE;AACrE;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,kBAAkB;EAClB,YAAY;EACZ,6EAA6E;EAC7E,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,8BAA8B;EAC9B,6CAA6C;EAC7C,iBAAiB;EACjB,gBAAgB;EAChB,UAAU;AACZ;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,oBAAoB;EACpB,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,sBAAsB;EACtB,kBAAkB;EAClB,YAAY;EACZ,oBAAoB;EACpB,kBAAkB;AACpB;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,yBAAyB;EACzB,yBAAyB;EACzB,6CAA6C;AAC/C;AACA;EACE,yBAAyB;EACzB,YAAY;AACd;AACA;EACE,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,kBAAkB;EAClB,WAAW;EACX,cAAc;EACd,YAAY;EACZ,UAAU;EACV,WAAW;EACX,kBAAkB;EAClB,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,mBAAmB;EACnB,cAAc;EACd,aAAa;EACb,8BAA8B;AAChC;AACA;EACE,cAAc;EACd,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,uBAAuB;EACvB,oDAAoD;EACpD,qBAAqB;EACrB,iGAAiG;AACnG;AACA;EACE,iBAAiB;EACjB,qCAAqC;AACvC;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,YAAY;EACZ,mBAAmB;EACnB,WAAW;EACX,eAAe;AACjB;AACA;EACE,mBAAmB;EACnB,cAAc;EACd,aAAa;EACb,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,SAAS;EACT,sBAAsB;EACtB,eAAe;EACf,OAAO;EACP,YAAY;EACZ,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,WAAW;AACb;
2AACA;EACE,sBAAsB;EACtB,4BAA4B;EAC5B,cAAc;EACd,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,4BAA4B;EAC5B,eAAe;EACf,kBAAkB;EAClB,wDAAwD;AAC1D;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,WAAW;EACX,YAAY;EACZ,YAAY;EACZ,uBAAuB;EACvB,mBAAmB;EACnB,SAAS;EACT,6BAA6B;AAC/B;AACA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,kBAAkB;EAClB,6BAA6B;AAC/B;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,WAAW;EACX,aAAa;EACb,OAAO;EACP,YAAY;EACZ,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,UAAU;AACZ;AACA;EACE,aAAa;EACb,cAAc;EACd,eAAe;EACf,yBAAyB;EACzB,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,aAAa;EACb,eAAe;EACf,yBAAyB;EACzB,eAAe;AACjB;AACA;EACE,yDAAyD;EACzD,SAAS;EACT,WAAW;EACX,cAAc;EACd,WAAW;EACX,iBAAiB;EACjB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,aAAa;EACb,sBAAsB;EACtB,YAAY;EACZ,OAAO;EACP,YAAY;EACZ,kBAAkB;EAClB,QAAQ;EACR,kBAAkB;EAClB,MAAM;EACN,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,SAAS;EACT,aAAa;EACb,uBAAuB;EACvB,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,WAAW;AACb;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,cAAc;EACd,cAAc;EACd,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,UAAU;AACZ;AACA;EACE,YAAY;EACZ,WAAW;EACX,8HAA8H;EAC9H,oCAAoC;AACtC;AACA;EACE,YAAY;EACZ,WAAW;EACX,iBAAiB;EACjB,mBAAmB;EACnB,8HAA8H;EAC9H,oCAAoC;AACtC;AACA;EACE;IACE,6BAA6B;EAC/B;EACA;IACE,4BAA4B;EAC9B;AACF;AACA;EACE,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,gCAAgC;EAChC,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,0CAA0C;AAC5C;AACA;EACE,gBAAgB;AAClB;AACA;;;EAGE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;;;EAGE,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,aAAa;AACf;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;EACtB,WAAW;AACb;AACA;EACE,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,iBAAiB;EACjB,oBAAoB;AACtB;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE;;KAEG;AACL;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,aAAa;EACb,uBAAuB;EACvB,OAAO;EACP,eAAe;EACf,QAAQ;EACR,MAAM;EACN,aAAa;AACf;AACA;EACE,2CAA2C;EAC3C,SAAS;EACT,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,UAAU;AACZ;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;EACtB,qBAAqB;EACrB,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,yFAAyF;EACzF,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,kBAAkB;EAClB,WAAW;EACX,UAAU;AACZ;AACA;EACE;IACE,sBAAsB;IACtB,gBAAgB;IAChB,iCAAiC;IACjC,yBAAyB;EAC3B;AACF;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,mBAAmB;EACnB,cAAc;EACd,aAAa;EACb,eAAe;EACf,8BAA8B;EAC9B,wBAAwB;EACxB,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,YAAY;EACZ,YAAY;EACZ,OAAO;EACP,kBAAkB;EAClB,MAAM;EACN,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gIAAgI;EAChI,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,gBAAgB;EAChB,SAAS;EACT,oBAAoB;AACtB;AACA;EACE,cAAc;EACd,aAAa;EACb,OAAO;EACP,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,gBAAgB;EAChB,YAAY;EACZ,gBAAgB;EAChB,oBAAoB;AACtB;AACA;EACE;IACE,sBAAsB;EACxB;AACF;AACA;EACE,uBAAuB;EACvB,aAAa;EACb,sBAAsB;EACtB,cAAc;EACd,kBAAkB;AACpB;AACA;EACE;IACE,eAAe;EACjB;AACF;AACA;EACE;IACE,mBAAmB;IACnB,iCAAiC;IACjC,gBAAgB;IAChB,iBAAiB;EACnB;AACF;AACA;EACE,oCAAoC;EACpC,4BAA4B;EAC5B,qBAAqB;EACrB,cAAc;EACd,eAAe;EACf,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;EACf,6BAA6B;EAC7B,qBAAqB;AACvB;AACA;EACE,wCAAwC;AAC1C;AACA;EACE,gCAAgC;EAChC,cAAc;AAChB;AACA;EACE;IACE,kCAAkC;IAClC,gBAAgB;EAClB;AACF;AACA;EACE,sBAAsB;EACtB,aAAa;EACb,OAAO;EACP,sBAAsB;EACtB,2CAA2C;EAC3C,cAAc;EACd,iCAAiC;EACjC,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,cAAc;EACd,eAAe;EACf,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;;EAEE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;AACnB;AACA;EACE,qBAAqB;AACvB;AACA;;;EAGE,4BAA4B;AAC9B;AACA;;;EAGE,mBAAmB;AACrB;AACA;;;;;EAKE,cAAc;EACd,oBAAoB;EACpB,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;AACA;EACE,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;;;EAGE,aAAa;AACf;AACA;;;EAGE,gBAAgB;AAClB;AACA;;;EAGE,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;EACb,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,gBAAgB;EAChB,aAAa;EACb,8BAA8B;EAC9B,iBAAiB;AACnB;AACA;;EAEE,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,2CAA2C;EAC3C,SAAS;EACT,aAAa;EACb,uBAAuB;EACvB,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,UAAU;AACZ;AACA;EACE,yBAAyB;EACzB,WAAW;AACb;
2AACA;EACE,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,WAAW;EACX,QAAQ;EACR,UAAU;EACV,oBAAoB;EACpB,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,6BAA6B;EAC7B,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,aAAa;AACf;AACA;EACE,aAAa;EACb,OAAO;EACP,sBAAsB;AACxB;AACA;EACE,aAAa;EACb,OAAO;AACT;AACA;EACE,OAAO;EACP,YAAY;AACd;AACA;EACE,UAAU;EACV,kBAAkB;AACpB;AACA;EACE,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,wDAAwD;AAC1D;AACA;EACE,oBAAoB;AACtB;AACA;EACE;IACE,eAAe;EACjB;AACF;AACA;EACE;IACE,gBAAgB;EAClB;AACF;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE;IACE,cAAc;EAChB;AACF;AACA;EACE;IACE,iBAAiB;EACnB;AACF;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,OAAO;AACT;AACA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,0BAA0B;EAC1B,sBAAsB;EACtB,aAAa;EACb,sBAAsB;EACtB,YAAY;EACZ,uBAAuB;EACvB,iBAAiB;EACjB,aAAa;AACf;AACA;EACE,4BAA4B;EAC5B,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,OAAO;EACP,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,WAAW;EACX,QAAQ;EACR,UAAU;EACV,oBAAoB;EACpB,kBAAkB;EAClB,yBAAyB;EACzB,UAAU;AACZ;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,aAAa;EACb,cAAc;EACd,sBAAsB;EACtB,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,sCAAsC;EACtC,UAAU;AACZ;AACA;EACE,sBAAsB;EACtB,mBAAmB;EACnB,uFAAuF;EACvF,cAAc;AAChB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,6BAA6B;EAC7B,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,uFAAuF;EACvF,cAAc;AAChB;AACA;EACE,uFAAuF;AACzF;AACA;EACE,gBAAgB;EAChB,YAAY;EACZ,gBAAgB;EAChB,UAAU;AACZ;AACA;EACE,UAAU;EACV,kBAAkB;AACpB;AACA;EACE,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,0DAA0D;AAC5D;AACA;EACE,oBAAoB;AACtB;AACA;EACE,OAAO;EACP,kBAAkB;AACpB;AACA;;;EAGE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,2BAA2B;AAC7B;AACA;EACE,UAAU;AACZ;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;AACb;AACA;;;EAGE,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;AACA;;;EAGE,kBAAkB;AACpB;AACA;EACE,SAAS;AACX;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,OAAO;EACP,YAAY;AACd;AACA;EACE,eAAe;AACjB;AACA;EACE,sBAAsB;EACtB,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,8BAA8B;EAC9B,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,gBAAgB;EAChB,sBAAsB;EACtB,YAAY;EACZ,kBAAkB;EAClB,QAAQ;EACR,WAAW;AACb;AACA;EACE;IACE,0BAA0B;IAC1B,4BAA4B;IAC5B,yBAAyB;EAC3B;AACF;AACA;;EAEE,qBAAqB;EACrB,eAAe;AACjB;AACA;EACE,0RAA0R;EAC1R,iDAAiD;EACjD,0BAA0B;EAC1B,sBAAsB;EACtB,kBAAkB;EAClB,sBAAsB;EACtB,WAAW;EACX,YAAY;EACZ,UAAU;EACV,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,WAAW;AACb;AACA;EACE;IACE,YAAY;EACd;AACF;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,SAAS;AACX;AACA;EACE,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;AACA;;EAEE,4BAA4B;EAC5B,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,gBAAgB;EAChB,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,OAAO;EACP,sBAAsB;AACxB;AACA;EACE,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,OAAO;AACT;AACA;EACE,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,eAAe;EACf,8BAA8B;AAChC;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,iCAAiC;AACnC;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,mBAAmB;EACnB,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,aAAa;AACf;AACA;EACE,aAAa;EACb,OAAO;EACP,sBAAsB;AACxB;AACA;EACE,OAAO;AACT;AACA;EACE,aAAa;EACb,OAAO;AACT;AACA;EACE,OAAO;EACP,YAAY;AACd;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;;;;;EAKE,gBAAgB;EAChB,sBAAsB;EACtB,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,gBAAgB;EAChB,sBAAsB;EACtB,cAAc;EACd,gIAAgI;EAChI,eAAe;EACf,iBAAiB;EACjB,SAAS;EACT,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;AACA;;;EAGE,yBAAyB;EACzB,6BAA6B;EAC7B,mBAAmB;AACrB;AACA;;;;;;;EAOE,sBAAsB;EACtB,qBAAqB;EACrB,6BAA6B;EAC7B,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,6BAA6B;EAC7B,SAAS;EACT,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;EACd,eAAe;EACf,cAAc;EACd,SAAS;EACT,UAAU;AACZ;AACA;EACE,cAAc;EACd,aAAa;AACf;AACA;EACE,WAAW;AACb;
2AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,6BAA6B;EAC7B,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,OAAO;EACP,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;EACE;IACE,6BAA6B;EAC/B;AACF;AACA;EACE,mBAAmB;EACnB,aAAa;AACf;AACA;EACE,UAAU;AACZ;AACA;EACE,SAAS;AACX;AACA;EACE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,sBAAsB;EACtB,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,gBAAgB;EAChB,sBAAsB;EACtB,cAAc;EACd,gIAAgI;EAChI,eAAe;EACf,iBAAiB;EACjB,SAAS;EACT,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,6BAA6B;EAC7B,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,sBAAsB;EACtB,qBAAqB;EACrB,6BAA6B;EAC7B,aAAa;AACf;AACA;EACE,oBAAoB;EACpB,kBAAkB;EAClB,QAAQ;EACR,2BAA2B;AAC7B;AACA;EACE,wBAAwB;EACxB,aAAa;AACf;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,SAAS;AACX;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,aAAa;EACb,OAAO;EACP,gBAAgB;AAClB;AACA;EACE,oBAAoB;EACpB,qBAAqB;AACvB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,SAAS;EACT,YAAY;EACZ,SAAS;EACT,gBAAgB;EAChB,yBAAyB;EACzB,UAAU;EACV,wBAAwB;EACxB,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;;EAEE,OAAO;EACP,eAAe;EACf,MAAM;EACN,aAAa;AACf;AACA;EACE,6BAA6B;AAC/B;AACA;;EAEE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,sBAAsB;EACtB,aAAa;EACb,gBAAgB;EAChB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;EACb,WAAW;EACX,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,mDAAmH;AACrH;AACA;EACE,OAAO;AACT;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,YAAY;EACZ,uBAAuB;AACzB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,iBAAiB;EACjB,yBAAyB;EACzB,YAAY;EACZ,kBAAkB;EAClB,OAAO;AACT;AACA;EACE,uBAAuB;EACvB,YAAY;EACZ,OAAO;EACP,kBAAkB;EAClB,MAAM;EACN,WAAW;AACb;AACA;EACE,SAAS;EACT,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,iBAAiB;EACjB,WAAW;EACX,qBAAqB;EACrB,UAAU;AACZ;AACA;EACE,yBAAyB;EACzB,iBAAiB;EACjB,WAAW;EACX,sBAAsB;EACtB,UAAU;AACZ;AACA;EACE,yBAAyB;EACzB,iBAAiB;EACjB,WAAW;EACX,wBAAwB;EACxB,UAAU;AACZ;AACA;EACE,yBAAyB;EACzB,iBAAiB;EACjB,WAAW;EACX,uBAAuB;EACvB,UAAU;AACZ;AACA;EACE,aAAa;EACb,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,eAAe;EACf,kBAAkB;EAClB,yBAAyB;EACzB,gCAAgC;EAChC,0CAA0C;AAC5C;AACA;;;EAGE,sBAAsB;AACxB;AACA;EACE,SAAS;EACT,kBAAkB;EAClB,iBAAiB;EACjB,YAAY;AACd;AACA;EACE,SAAS;EACT,UAAU;EACV,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,mBAAmB;EACnB,6BAA6B;EAC7B,SAAS;EACT,eAAe;EACf,aAAa;EACb,YAAY;EACZ,uBAAuB;EACvB,aAAa;EACb,UAAU;EACV,WAAW;AACb;AACA;EACE,aAAa;EACb,YAAY;EACZ,WAAW;AACb;AACA;EACE,mBAAmB;AACrB;AACA;EACE,sBAAsB;EACtB,aAAa;EACb,eAAe;EACf,YAAY;AACd;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,yBAAyB;EACzB,sBAAsB;EACtB,YAAY;EACZ,WAAW;AACb;AACA;EACE,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;EACE;IACE,uBAAuB;IACvB,qBAAqB;EACvB;AACF;AACA;EACE,4BAA4B;EAC5B,cAAc;EACd,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,kBAAkB;EAClB,aAAa;AACf;AACA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,4BAA4B;AAC9B;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,sBAAsB;EACtB,6BAA6B;EAC7B,kBAAkB;EAClB,+EAA+E;EAC/E,qBAAqB;EACrB,gBAAgB;EAChB,mBAAmB;EACnB,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE;IACE,yBAAyB;IACzB,kBAAkB;EACpB;EACA;IACE,qBAAqB;EACvB;AACF;AACA;;;;;;;;;EASE,SAAS;AACX;AACA;EACE,iIAAiI;EACjI,sBAAsB;EACtB,aAAa;EACb,cAAc;EACd,cAAc;EACd,eAAe;EACf,mBAAmB;EACnB,WAAW;EACX,sBAAsB;AACxB;AACA;EACE,cAAc;AAChB;AACA;EACE,iIAAiI;EACjI,sBAAsB;EACtB,cAAc;EACd,WAAW;EACX,uBAAuB;EACvB,yBAAyB;EACzB,gBAAgB;AAClB;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,aAAa;EACb,eAAe;EACf,cAAc;EACd,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA,6CAA6C;AAC7C;EACE,mBAAmB;EACnB,gBAAgB;EAChB,SAAS;EACT,kBAAkB;EAClB,gBAAgB;EAChB,cAAc;EACd,aAAa;EACb,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,YAAY;EACZ,uBAAuB;EACvB,qBAAqB;EACrB,aAAa;EACb,cAAc;EACd,oBAAoB;EACpB,WAAW;AACb;
2AACA;EACE,sBAAsB;EACtB,SAAS;EACT,gBAAgB;EAChB,4BAA4B;EAC5B,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,gBAAgB;EAChB,cAAc;EACd,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;;EAEE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,eAAe;EACf,mBAAmB;EACnB,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,uBAAuB;EACvB,WAAW;EACX,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,gBAAgB;EAChB,sBAAsB;EACtB,aAAa;EACb,eAAe;EACf,mBAAmB;EACnB,+DAA+D;EAC/D,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;EACf,UAAU;EACV,YAAY;EACZ,0DAA0D;EAC1D,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,6BAA6B;AAC/B;AACA;EACE,UAAU;AACZ;AACA;EACE,yBAAyB;EACzB,qBAAqB;EACrB,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,qBAAqB;EACrB,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;;EAEE,yBAAyB;EACzB,qBAAqB;EACrB,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;;;;EAIE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;;EAEE,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;EAEE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;;EAEE,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,qBAAqB;EACrB,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,oBAAoB;EACpB,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,SAAS;AACX;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,oBAAoB;EACpB,eAAe;EACf,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,oBAAoB;EACpB,eAAe;EACf,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,eAAe;EACf,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,UAAU;EACV,kBAAkB;AACpB;AACA;EACE,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,wDAAwD;AAC1D;AACA;EACE,oBAAoB;AACtB;AACA;EACE,YAAY;EACZ,yBAAyB;EACzB,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;EACR,UAAU;EACV,cAAc;EACd,aAAa;EACb,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,sBAAsB;EACtB,aAAa;EACb,sBAAsB;EACtB,yFAAyF;EACzF,mBAAmB;EACnB,WAAW;AACb;AACA;EACE,cAAc;EACd,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,kDAAkD;EAClD,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,WAAW;EACX,eAAe;EACf,kBAAkB;EAClB,yBAAyB;EACzB,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,4BAA4B;EAC5B,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;EACnB,kBAAkB;EAClB,+BAA+B;EAC/B,gCAAgC;AAClC;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,QAAQ;EACR,eAAe;EACf,4BAA4B;AAC9B;AACA;EACE,WAAW;EACX,2BAA2B;AAC7B;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,kDAAkD;EAClD,gCAAgC;EAChC,eAAe;EACf,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,4BAA4B;EAC5B,eAAe;AACjB;AACA;EACE,aAAa;EACb,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,mBAAmB;EACnB,2DAA2D;EAC3D,gEAAgE;EAChE,cAAc;AAChB;AACA;EACE,YAAY;EACZ,4BAA4B;EAC5B,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,4BAA4B;EAC5B,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,4BAA4B;EAC5B,eAAe;EACf,kBAAkB;EAClB,aAAa;AACf;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,cAAc;EACd,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,yBAAyB;EACzB,cAAc;EACd,iBAAiB;EACjB,eAAe;EACf,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,0BAA0B;AAC5B;AACA;;EAEE,4BAA4B;EAC5B,eAAe;EACf,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;;;;EAIE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;;EAEE,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;EAEE,cAAc;EACd,kCAAkC;EAClC,0BAA0B;AAC5B;AACA;EACE,qBAAqB;EACrB,kBAAkB;AACpB;AACA;EACE,2BAA2B;AAC7B;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,6CAA6C;AAC/C;AACA;;EAEE,gEAAgE;AAClE;AACA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,+EAA+E;EAC/E,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,6BAA6B;EAC7B,mBAAmB;AACrB;AACA;;EAEE,mBAAmB;EACnB,WAAW;EACX,cAAc;EACd,SAAS;EACT,UAAU;EACV,kBAAkB;EAClB,QAAQ;AACV;AACA;EACE;;IAEE,aAAa;EACf;AACF;AACA;;EAEE,UAAU;EACV,4DAA4D;AAC9D;AACA;;EAEE,SAAS;EACT,SAAS;AACX;AACA;EACE,sDAAsD;EACtD,iBAAiB;EACjB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;EACE,yDAAyD;EACzD,iBAAiB;EACjB,iBAAiB;AACnB;AACA;;EAEE,SAAS;EACT,MAAM;EACN,4BAA4B;AAC9B;AACA;EACE,sDAAsD;EACtD,iBAAiB;EACjB,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,yDAAyD;EACzD,iBAAiB;EACjB,iBAAiB;AACnB;AACA;;EAEE,OAAO;EACP,oBAAoB;EACpB,2BAA2B;AAC7B;AACA;EACE,sDAAsD;EACtD,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,yDAAyD;EACzD,kBAAkB;EAClB,kBAAkB;AACpB;AACA;;EAEE,UAAU;EACV,oBAAoB;EACpB,2BAA2B;AAC7B;AACA;EACE,sDAAsD;EACtD,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,yDAAyD;EACzD,kBAAkB;EAClB,iBAAiB;AACnB;AACA;;EAEE,UAAU;AACZ;AACA;;EAEE,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,aAAa;EACb,mBAAmB;EACnB,yBAAyB;AAC3B;AACA;EACE,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;;EAEE,8CAA8C;AAChD;AACA;EACE,yBAAyB;EACzB,qBAAqB;EACrB,mBAAmB;EACnB,iBAAiB;EACjB,sBAAsB;EACtB,qBAAqB;EACrB,YAAY;EACZ,kBAAkB;EAClB,WAAW;AACb;
2AACA;EACE,YAAY;EACZ,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,OAAO;EACP,YAAY;EACZ,uBAAuB;EACvB,kBAAkB;AACpB;AACA;EACE,6BAA6B;EAC7B,yBAAyB;EACzB,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;EAChB,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,YAAY;EACZ,SAAS;EACT,kBAAkB;EAClB,QAAQ;EACR,4CAA4C;EAC5C,WAAW;AACb;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,mBAAmB;EACnB,oBAAoB;EACpB,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,WAAW;AACb;AACA;EACE,6BAA6B;EAC7B,YAAY;AACd;AACA;EACE,6BAA6B;EAC7B,YAAY;AACd;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,mDAAmD;AACrD;AACA;EACE,yBAAyB;EACzB,mDAAmD;AACrD;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,8DAA8D;EAC9D,uCAAuC;EACvC,mBAAmB;EACnB,WAAW;EACX,UAAU;AACZ;AACA;EACE,uBAAuB;AACzB;AACA;EACE,uBAAuB;AACzB;AACA;EACE;;;IAGE,mBAAmB;EACrB;EACA;IACE,mBAAmB;EACrB;AACF;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,6BAA6B;EAC7B,4BAA4B;EAC5B,aAAa;EACb,cAAc;EACd,eAAe;EACf,mBAAmB;EACnB,YAAY;EACZ,gBAAgB;EAChB,cAAc;EACd,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,aAAa;EACb,cAAc;EACd,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,yBAAyB;EACzB,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,uBAAuB;EACvB,aAAa;EACb,cAAc;EACd,YAAY;EACZ,8BAA8B;AAChC;AACA;EACE;;;IAGE,wBAAwB;EAC1B;AACF;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,gBAAgB;AAClB;AACA;EACE;IACE,aAAa;EACf;EACA;IACE,cAAc;EAChB;AACF;AACA;;;EAGE,4BAA4B;EAC5B,kBAAkB;EAClB,6BAA6B;EAC7B,qBAAqB;AACvB;AACA;;;;;;EAME,cAAc;EACd,eAAe;AACjB;AACA;;;EAGE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;;;IAGE,2BAA2B;EAC7B;AACF;AACA;EACE,2BAA2B;EAC3B,WAAW;EACX,kBAAkB;EAClB,WAAW;AACb;AACA;EACE;IACE,kBAAkB;EACpB;AACF;AACA;EACE,mBAAmB;EACnB,oBAAoB;AACtB;AACA;;EAEE,aAAa;AACf;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,aAAa;EACb,cAAc;EACd,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,2BAA2B;AAC7B;AACA;;EAEE,aAAa;AACf;AACA;EACE,6BAA6B;EAC7B,8BAA8B;EAC9B,iCAAiC;AACnC;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,0CAA0C;EAC1C,SAAS;EACT,aAAa;EACb,uBAAuB;EACvB,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,SAAS;EACT,kBAAkB;EAClB,gBAAgB;EAChB,cAAc;EACd,aAAa;EACb,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,YAAY;EACZ,uBAAuB;EACvB,qBAAqB;EACrB,aAAa;EACb,UAAU;EACV,oBAAoB;EACpB,WAAW;AACb;AACA;EACE;;IAEE,gCAAgC;EAClC;EACA;;;;;IAKE,+BAA+B;IAC/B,kBAAkB;EACpB;AACF;AACA;EACE,cAAc;EACd,aAAa;AACf;AACA;EACE;IACE,6BAA6B;EAC/B;EACA;;IAEE,6BAA6B;EAC/B;EACA;;;;IAIE,oBAAoB;EACtB;AACF;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,gBAAgB;EAChB,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,2BAA2B;AAC7B;AACA;;;;EAIE,gBAAgB;EAChB,SAAS;EACT,gBAAgB;EAChB,4BAA4B;EAC5B,mBAAmB;AACrB;AACA;;;;EAIE,2BAA2B;AAC7B;AACA;;;;EAIE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;EACd,kBAAkB;AACpB;AACA;;;;EAIE,eAAe;AACjB;AACA;;;;EAIE,aAAa;AACf;AACA;;;;EAIE,2BAA2B;AAC7B;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,YAAY;EACZ,WAAW;AACb;
2AACA;EACE,sBAAsB;EACtB,YAAY;EACZ,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,WAAW;AACb;AACA;EACE,cAAc;EACd,YAAY;AACd;AACA;EACE,cAAc;EACd,eAAe;EACf,mBAAmB;EACnB,wBAAwB;EACxB,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,2BAA2B;EAC3B,yBAAyB;EACzB,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,aAAa;EACb,qBAAqB;EACrB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,aAAa;EACb,oBAAoB;EACpB,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,gBAAgB;EAChB,4BAA4B;EAC5B,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,YAAY;EACZ,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE;;;IAGE,0CAA0C;EAC5C;AACF;AACA;EACE,cAAc;EACd,aAAa;EACb,cAAc;EACd,sBAAsB;AACxB;AACA;EACE;;;IAGE,6BAA6B;EAC/B;EACA;IACE,mBAAmB;EACrB;AACF;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,gBAAgB;EAChB,4BAA4B;EAC5B,mBAAmB;AACrB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,WAAW;AACb;AACA;;;EAGE,yBAAyB;AAC3B;AACA;EACE,eAAe;EACf,mBAAmB;EACnB,eAAe;EACf,aAAa;EACb,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,2BAA2B;AAC7B;AACA;EACE;IACE,kBAAkB;EACpB;AACF;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;EACnB,UAAU;AACZ;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,SAAS;EACT,kBAAkB;EAClB,sBAAsB;EACtB,aAAa;EACb,qBAAqB;AACvB;AACA;EACE,mCAAmC;AACrC;AACA;EACE,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,oBAAoB;EACpB,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,gBAAgB;AAClB;AACA;EACE,8BAA8B;EAC9B,2BAA2B;AAC7B;AACA;EACE,+BAA+B;EAC/B,4BAA4B;AAC9B;AACA;EACE,WAAW;AACb;AACA;EACE,2BAA2B;AAC7B;AACA;EACE;IACE,kBAAkB;EACpB;AACF;AACA;EACE,SAAS;AACX;AACA;EACE,6BAA6B;AAC/B;AACA;;;;EAIE,gBAAgB;EAChB,gBAAgB;EAChB,4BAA4B;AAC9B;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;AACb;AACA;;EAEE,YAAY;AACd;AACA;EACE,sBAAsB;AACxB;AACA;;;EAGE,4BAA4B;EAC5B,sBAAsB;EACtB,gFAAgF;EAChF,oCAAoC;EACpC,4BAA4B;EAC5B,wDAAwD;EACxD,aAAa;EACb,cAAc;EACd,cAAc;EACd,eAAe;EACf,cAAc;EACd,2BAA2B;AAC7B;AACA;;;EAGE,mCAAmC;EACnC,uDAAuD;AACzD;AACA;EACE,SAAS;EACT,UAAU;EACV,iBAAiB;EACjB,cAAc;EACd,kBAAkB;AACpB;AACA;EACE,sDAAsD;AACxD;AACA;EACE,iFAAiF;AACnF;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,iCAAiC;EACjC,gBAAgB;EAChB,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE;;IAEE,+BAA+B;EACjC;AACF;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;AACA;EACE,eAAe;AACjB;AACA;EACE,sBAAsB;AACxB;AACA;;EAEE,oCAAoC;AACtC;AACA;;EAEE,sBAAsB;AACxB;AACA;EACE,6BAA6B;EAC7B,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,oCAAoC;EACpC,uDAAuD;EACvD,YAAY;EACZ,kBAAkB;EAClB,+EAA+E;EAC/E,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE;IACE,aAAa;EACf;AACF;AACA;EACE,oCAAoC;EACpC,wDAAwD;EACxD,cAAc;AAChB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,eAAe;EACf,WAAW;EACX,sBAAsB;AACxB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,mCAAmC;AACrC;AACA;EACE,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,eAAe;EACf,YAAY;EACZ;;;;;MAKI;EACJ,oBAAoB;EACpB,kBAAkB;EAClB,kBAAkB;EAClB,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,WAAW;EACX,eAAe;EACf,kBAAkB;EAClB,gBAAgB;EAChB,yBAAyB;EACzB,gBAAgB;EAChB,oBAAoB;AACtB;AACA;EACE;IACE,mBAAmB;EACrB;AACF;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kCAAkC;EAClC,mCAAmC;EACnC,6BAA6B;EAC7B,SAAS;EACT,SAAS;EACT,kBAAkB;EAClB,2BAA2B;AAC7B;AACA;EACE,gCAAgC;EAChC,kCAAkC;EAClC,mCAAmC;EACnC,SAAS;EACT,kBAAkB;EAClB,MAAM;EACN,2BAA2B;AAC7B;AACA;EACE,oCAAoC;EACpC,8BAA8B;EAC9B,iCAAiC;EACjC,kBAAkB;EAClB,QAAQ;EACR,QAAQ;EACR,2BAA2B;AAC7B;AACA;EACE,oCAAoC;EACpC,+BAA+B;EAC/B,iCAAiC;EACjC,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,2BAA2B;AAC7B;AACA;EACE,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,mBAAmB;EACnB,uBAAuB;EACvB,SAAS;EACT,kBAAkB;EAClB,gBAAgB;EAChB,cAAc;EACd,aAAa;EACb,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,YAAY;EACZ,kBAAkB;EAClB,eAAe;EACf,aAAa;EACb,gBAAgB;EAChB,UAAU;EACV,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;AAClB;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;;;;EAIE,uBAAuB;EACvB,SAAS;EACT,gBAAgB;EAChB,4BAA4B;EAC5B,mBAAmB;AACrB;AACA;;;;EAIE,2BAA2B;AAC7B;AACA;;EAEE,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,cAAc;AAChB;AACA;;EAEE,eAAe;AACjB;AACA;;EAEE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,WAAW;AACb;
2AACA;EACE,cAAc;EACd,YAAY;AACd;AACA;EACE,cAAc;EACd,eAAe;EACf,mBAAmB;EACnB,wBAAwB;EACxB,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,aAAa;AACf;AACA;;EAEE,aAAa;AACf;AACA;EACE,6BAA6B;EAC7B,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,sCAAsC;AACxC;AACA;;EAEE,wBAAwB;AAC1B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,6BAA6B;EAC7B,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,YAAY;EACZ,aAAa;EACb,yBAAyB;AAC3B;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;;EAEE,mCAAmC;AACrC;AACA;EACE,aAAa;EACb,8BAA8B;AAChC;AACA;EACE,qBAAqB;EACrB,mDAAmD;AACrD;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,6BAA6B;EAC7B,aAAa;EACb,OAAO;EACP,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,iBAAiB;AACnB;AACA;EACE,OAAO;AACT;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,YAAY;EACZ,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,6CAA6C;EAC7C,cAAc;EACd,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,UAAU;AACZ;AACA;EACE,yBAAyB;EACzB,aAAa;EACb,OAAO;EACP,sBAAsB;EACtB,SAAS;EACT,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,8BAA8B;EAC9B,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,kBAAkB;EAClB,WAAW;EACX,SAAS;EACT,UAAU;EACV,QAAQ;AACV;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,aAAa;EACb,sBAAsB;EACtB,eAAe;EACf,SAAS;EACT,aAAa;EACb,WAAW;AACb;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,qCAAqC;EACrC,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,kBAAkB;EAClB,6BAA6B;EAC7B,wCAAwC;AAC1C;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,yBAAyB;EACzB,6CAA6C;EAC7C,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,qCAAqC;EACrC,WAAW;EACX,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,kBAAkB;EAClB,6BAA6B;AAC/B;AACA;EACE;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,aAAa;EACb,SAAS;EACT,8BAA8B;AAChC;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,WAAW;EACX,QAAQ;EACR,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;EACtB,WAAW;AACb;AACA;EACE,4BAA4B;EAC5B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,YAAY;AACd;AACA;EACE,UAAU;EACV,YAAY;AACd;AACA;;EAEE,sBAAsB;EACtB,aAAa;EACb,OAAO;EACP,sBAAsB;EACtB,YAAY;AACd;AACA;EACE,aAAa;EACb,cAAc;EACd,sBAAsB;EACtB,gBAAgB;AAClB;AACA;EACE,mBAAmB;EACnB,aAAa;EACb,eAAe;EACf,8BAA8B;EAC9B,2BAA2B;EAC3B,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;;EAEE,YAAY;AACd;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,QAAQ;EACR,8BAA8B;EAC9B,gBAAgB;EAChB,2BAA2B;AAC7B;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX;AACA;;EAEE,aAAa;AACf;AACA;EACE,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,kBAAkB;AACpB;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,SAAS;AACX;AACA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,aAAa;EACb,OAAO;EACP,gBAAgB;EAChB,kBAAkB;AACpB;AACA,sBAAsB;AACtB;EACE,qBAAqB;AACvB;AACA;EACE,oCAAoC;EACpC,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,WAAW;EACX,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;EACb,OAAO;AACT;AACA;EACE,aAAa;EACb,OAAO;AACT",sourcesContent:['.tox {\n box-shadow: none;\n box-sizing: content-box;\n color: #222f3e;\n cursor: auto;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: normal;\n line-height: normal;\n -webkit-tap-highlight-color: transparent;\n -webkit-text-decoration: none;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n vertical-align: initial;\n white-space: normal;\n}\n.tox *:not(svg):not(rect) {\n box-sizing: inherit;\n color: inherit;\n cursor: inherit;\n direction: inherit;\n font-family: inherit;\n font-size: inherit;\n font-style: inherit;\n font-weight: inherit;\n line-height: inherit;\n -webkit-tap-highlight-color: inherit;\n text-align: inherit;\n text-decoration: inherit;\n text-shadow: inherit;\n text-transform: inherit;\n vertical-align: inherit;\n white-space: inherit;\n}\n.tox *:not(svg):not(rect) {\n /* stylelint-disable-line no-duplicate-selectors */\n background: transparent;\n border: 0;\n box-shadow: none;\n float: none;\n height: auto;\n margin: 0;\n max-width: none;\n outline: 0;\n padding: 0;\n position: static;\n width: auto;\n}\n.tox:not([dir=rtl]) {\n direction: ltr;\n text-align: left;\n}\n.tox[dir=rtl] {\n direction: rtl;\n text-align: right;\n}\n.tox-tinymce {\n border: 2px solid #eeeeee;\n border-radius: 10px;\n box-shadow: none;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n overflow: hidden;\n position: relative;\n visibility: inherit !important;\n}\n.tox.tox-tinymce-inline {\n border: none;\n box-shadow: none;\n overflow: initial;\n}\n.tox.tox-tinymce-inline .tox-editor-container {\n overflow: initial;\n}\n.tox.tox-tinymce-inline .tox-editor-header {\n background-color: #fff;\n border: 2px solid #eeeeee;\n border-radius: 10px;\n box-shadow: none;\n overflow: hidden;\n}\n.tox-tinymce-aux {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n z-index: 1300;\n}\n.tox-tinymce *:focus,\n.tox-tinymce-aux *:focus {\n outline: none;\n}\nbutton::-moz-focus-inner {\n border: 0;\n}\n.tox[dir=rtl] .tox-icon--flip svg {\n transform: rotateY(180deg);\n}\n@keyframes tox-rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tox .accessibility-issue__header {\n align-items: center;\n display: flex;\n margin-bottom: 4px;\n}\n.tox #accessibility-issue__subheader {\n font-size: 16px;\n color: #222f3e;\n}\n.tox .accessbility-sr-only {\n position: absolute;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(0 0 99.9% 99.9%);\n overflow: hidden;\n height: 1px;\n width: 1px;\n padding: 0;\n border: 0;\n}\n.tox .accessibility-issue__description {\n align-items: stretch;\n border-radius: 6px;\n justify-content: space-between;\n}\n.tox .accessibility-issue__description > div {\n padding-bottom: 4px;\n}\n.tox .accessibility-issue__description > div > div {\n align-items: center;\n display: flex;\n margin-bottom: 4px;\n}\n.tox .accessibility-issue__description > div > div .tox-icon svg {\n display: block;\n}\n.tox #accessibility-issue__contentID {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.tox #accessibility-issue__contentID span:first-child {\n font-weight: bold;\n}\n.tox #accessibility-issue__document {\n padding-bottom: 8px;\n}\n.tox .accessibility-issue__repair {\n margin-top: 8px;\n}\n.tox .accessibility-issue__repair .tox-form__group .tox-form__group--error {\n color: #c00;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description {\n background-color: #e6f0fd;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2 {\n font-size: 14px;\n color: #006ce7;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon.accessibility-issue__icon svg {\n fill: #006ce7;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon {\n background-color: #006ce7;\n color: #fff;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,\n.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus {\n background-color: #0060ce;\n}\n.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active {\n background-color: #0054b4;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description {\n background-color: #fffae6;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2 {\n font-size: 14px;\n color: #7a6e25;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon.accessibility-issue__icon svg {\n fill: #7a6e25;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon {\n background-color: #FFE89D;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,\n.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus {\n background-color: #F2D574;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active {\n background-color: #E8C657;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description {\n background-color: #fae6e6;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2 {\n font-size: 14px;\n color: #c00;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon.accessibility-issue__icon svg {\n fill: #c00;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon {\n background-color: #F2BFBF;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,\n.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus {\n background-color: #E9A4A4;
2\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active {\n background-color: #EE9494;\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description {\n background-color: rgba(120, 171, 70, 0.1);\n color: #222f3e;\n}\n.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description > *:last-child {\n display: none;\n}\n.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2 {\n color: #527530;\n}\n.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon.accessibility-issue__icon svg {\n fill: #527530;\n}\n.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,\n.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2 {\n margin-top: 0;\n}\n.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button {\n margin-left: 4px;\n}\n.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header > *:nth-last-child(2) {\n margin-left: auto;\n}\n.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description {\n padding: 8px;\n}\n.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button {\n margin-right: 4px;\n}\n.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header > *:nth-last-child(2) {\n margin-right: auto;\n}\n.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description {\n padding: 4px 8px 4px 4px;\n}\n.tox .mce-codemirror {\n background: #fff;\n bottom: 0;\n font-size: 13px;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n}\n.tox .mce-codemirror.tox-inline-codemirror {\n margin: 8px;\n position: absolute;\n}\n.tox .tox-advtemplate .tox-form__grid {\n flex: 1;\n}\n.tox .tox-advtemplate .tox-form__grid > div:first-child {\n display: flex;\n flex-direction: column;\n width: 30%;\n}\n.tox .tox-advtemplate .tox-form__grid > div:first-child > div:nth-child(2) {\n flex-basis: 0;\n flex-grow: 1;\n overflow: auto;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid > div:first-child {\n width: 100%;\n }\n}\n.tox .tox-advtemplate iframe {\n border-color: #eeeeee;\n border-radius: 10px;\n border-style: solid;\n border-width: 1px;\n margin: 0 10px;\n}\n.tox .tox-anchorbar {\n display: flex;\n flex: 0 0 auto;\n}\n.tox .tox-bottom-anchorbar {\n display: flex;\n flex: 0 0 auto;\n}\n.tox .tox-bar {\n display: flex;\n flex: 0 0 auto;\n}\n.tox .tox-button {\n background-color: #006ce7;\n background-image: none;\n background-position: 0 0;\n background-repeat: repeat;\n border-color: #006ce7;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n color: #fff;\n cursor: pointer;\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: bold;\n letter-spacing: normal;\n line-height: 24px;\n margin: 0;\n outline: none;\n padding: 4px 16px;\n position: relative;\n text-align: center;\n -webkit-text-decoration: none;\n text-decoration: none;\n text-transform: none;\n white-space: nowrap;\n}\n.tox .tox-button::before {\n border-radius: 6px;\n bottom: -1px;\n box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #006ce7;\n content: \'\';\n left: -1px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n right: -1px;\n top: -1px;\n}\n.tox .tox-button[disabled] {\n background-color: #006ce7;\n background-image: none;\n border-color: #006ce7;\n box-shadow: none;\n color: rgba(255, 255, 255, 0.5);\n cursor: not-allowed;\n}\n.tox .tox-button:focus:not(:disabled) {\n background-color: #0060ce;\n background-image: none;\n border-color: #0060ce;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button:focus:not(:disabled)::before {\n opacity: 1;\n}\n.tox .tox-button:hover:not(:disabled) {\n background-color: #0060ce;\n background-image: none;\n border-color: #0060ce;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button:active:not(:disabled) {\n background-color: #0054b4;\n background-image: none;\n border-color: #0054b4;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button.tox-button--enabled {\n background-color: #0054b4;\n background-image: none;\n border-color: #0054b4;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button.tox-button--enabled[disabled] {\n background-color: #0054b4;\n background-image: none;\n border-color: #0054b4;\n box-shadow: none;\n color: rgba(255, 255, 255, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-button.tox-button--enabled:focus:not(:disabled) {\n background-color: #00489b;\n background-image: none;\n border-color: #00489b;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button.tox-button--enabled:hover:not(:disabled) {\n background-color: #00489b;\n background-image: none;\n border-color: #00489b;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button.tox-button--enabled:active:not(:disabled) {\n background-color: #003c81;\n background-image: none;\n border-color: #003c81;\n box-shadow: none;\n color: #fff;\n}\n.tox .tox-button--icon-and-text,\n.tox .tox-button.tox-button--icon-and-text,\n.tox .tox-button.tox-button--secondary.tox-button--icon-and-text {\n display: flex;\n padding: 5px 4px;\n}\n.tox .tox-button--icon-and-text .tox-icon svg,\n.tox .tox-button.tox-button--icon-and-text .tox-icon svg,\n.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg {\n display: block;\n fill: currentColor;\n}\n.tox .tox-button--secondary {\n background-color: #f0f0f0;\n background-image: none;\n background-position: 0 0;\n background-repeat: repeat;\n border-color: #f0f0f0;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n color: #222f3e;\n font-size: 14px;\n font-style: normal;\n font-weight: bold;\n letter-spacing: normal;\n outline: none;\n padding: 4px 16px;\n -webkit-text-decoration: none;\n text-decoration: none;\n text-transform: none;\n}\n.tox .tox-button--secondary[disabled] {\n background-color: #f0f0f0;\n background-image: none;\n border-color: #f0f0f0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-button--secondary:focus:not(:disabled) {\n background-color: #e3e3e3;\n background-image: none;\n border-color: #e3e3e3;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary:hover:not(:disabled) {\n background-color: #e3e3e3;\n background-image: none;\n border-color: #e3e3e3;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary:active:not(:disabled) {\n background-color: #d6d6d6;\n background-image: none;\n border-color: #d6d6d6;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary.tox-button--enabled {\n background-color: #a8c8ed;\n background-image: none;\n border-color: #a8c8ed;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary.tox-button--enabled[disabled] {\n background-color: #a8c8ed;\n background-image: none;\n border-color: #a8c8ed;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled) {\n background-color: #93bbe9;\n background-image: none;\n border-color: #93bbe9;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled) {\n background-color: #93bbe9;\n background-image: none;\n border-color: #93bbe9;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled) {\n background-color: #7daee4;\n background-image: none;\n border-color: #7daee4;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-button--icon,\n.tox .tox-button.tox-button--icon,\n.tox .tox-button.tox-button--secondary.tox-button--icon {\n padding: 4px;\n}\n.tox .tox-button--icon .tox-icon svg,\n.tox .tox-button.tox-button--icon .tox-icon svg,\n.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg {\n display: block;\n fill: currentColor;\n}\n.tox-context-form__group .tox-button--icon,\n.tox-context-form__group .tox-button.tox-button--icon {\n margin: 6px 1px 5px 0;\n padding: 0;\n}\n.tox .tox-button-link {\n background: 0;\n border: none;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 16px;\n font-weight: normal;\n line-height: 1.3;\n margin: 0;\n padding: 0;\n white-space: nowrap;\n}\n.tox .tox-button-link--sm {\n font-size: 14px;\n}\n.tox .tox-button--naked {\n background-color: transparent;\n border-color: transparent;\n box-shadow: unset;\n color: #222f3e;\n}\n.tox .tox-button--naked[disabled] {\n background-color: rgba(34, 47, 62, 0.12);\n border-color: transparent;\n box-shadow: unset;\n color: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-button--naked:hover:not(:disabled) {\n background-color: rgba(34, 47, 62, 0.12);\n border-color: transparent;\n box-shadow: unset;\n color: #222f3e;\n}\n.tox .tox-button--naked:focus:not(:disabled) {\n background-color: rgba(34, 47, 62, 0.12);\n border-color: transparent;\n box-shadow: unset;\n color: #222f3e;\n}\n.tox .tox-button--naked:active:not(:disabled) {\n background-color: rgba(34, 47, 62, 0.18);\n border-color: transparent;\n box-shadow: unset;\n color: #222f3e;\n}\n.tox .tox-button--naked .tox-icon svg {\n fill: currentColor;\n}\n.tox .tox-button--naked.tox-button--icon:hover:not(:disabled) {\n color: #222f3e;\n}\n.tox .tox-checkbox {\n align-items: center;\n border-radius: 6px;\n cursor: pointer;\n display: flex;\n height: 36px;\n min-width: 36px;\n}\n.tox .tox-checkbox__input {\n /* Hide from view but visible to screen readers */\n height: 1px;\n overflow: hidden;\n position: absolute;\n top: auto;\n width: 1px;\n}\n.tox .tox-checkbox__icons {\n align-items: center;\n border-radius: 6px;\n box-shadow: 0 0 0 2px transparent;\n box-sizing: content-box;\n display: flex;\n height: 24px;\n justify-content: center;\n padding: calc(4px - 1px);\n width: 24px;\n}\n.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n display: block;\n fill: rgba(34, 47, 62, 0.3);\n}\n@media (forced-colors: active) {\n .tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n fill: currentColor !important;\n }\n}\n.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg {\n display: none;\n fill: #006ce7;\n}\n.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg {\n display: none;\n fill: #006ce7;\n}\n.tox .tox-checkbox--disabled {\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox input.tox-checkbox__input:checked + .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n display: none;\n}\n.tox input.tox-checkbox__input:checked + .tox-checkbox__icons .tox-checkbox-icon__checked svg {\n display: block;\n}\n.tox input.tox-checkbox__input:indeterminate + .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {\n display: none;\n}\n.tox input.tox-checkbox__input:indeterminate + .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg {\n display: block;\n}\n.tox input.tox-checkbox__input:focus + .tox-checkbox__icons {\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px #006ce7;\n padding: calc(4px - 1px);\n}\n.tox:not([dir=rtl]) .tox-checkbox__label {\n margin-left: 4px;\n}\n.tox:not([dir=rtl]) .tox-checkbox__input {\n left: -10000px;\n}\n.tox:not([dir=rtl]) .tox-bar .tox-checkbox {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-checkbox__label {\n margin-right: 4px;\n}\n.tox[dir=rtl] .tox-checkbox__input {\n right: -10000px;\n}\n.tox[dir=rtl] .tox-bar .tox-checkbox {\n margin-right: 4px;\n}\n.tox .tox-collection--toolbar .tox-collection__group {\n display: flex;\n padding: 0;\n}\n.tox .tox-collection--grid .tox-collection__group {\n display: flex;\n flex-wrap: wrap;\n max-height: 208px;\n overflow-x: hidden;\n overflow-y: auto;\n padding: 0;\n}\n.tox .tox-collection--list .tox-collection__group {\n border-bottom-width: 0;\n border-color: #e3e3e3;\n border-left-width: 0;\n border-right-width: 0;\n border-style: solid;\n border-top-width: 1px;\n padding: 4px 0;\n}\n.tox .tox-collection--list .tox-collection__group:first-child {\n border-top-width: 0;\n}\n.tox .tox-collection__group-heading {\n background-color: #fcfcfc;\n color: rgba(34, 47, 62, 0.7);\n cursor: default;\n font-size: 12px;\n font-style: normal;\n font-weight: normal;\n margin-bottom: 4px;\n margin-top: -4px;\n padding: 4px 8px;\n text-transform: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n}\n.tox .tox-collection__item {\n align-items: center;\n border-radius: 3px;\n color: #222f3e;\n display: flex;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n}\n.tox .tox-image-selector-menu .tox-collection__item-image-selector,\n.tox .tox-image-selector-menu .tox-collection__item {\n flex-direction: column;\n}\n.tox .tox-image-selector-menu .tox-collection__item-image-selector .tox-collection__item-icon,\n.tox .tox-image-selector-menu .tox-collection__item .tox-collection__item-icon,\n.tox .tox-image-selector-menu .tox-collection__item-image-selector .tox-collection__item-image,\n.tox .tox-image-selector-menu .tox-collection__item .tox-collection__item-image,\n.tox .tox-image-selector-menu .tox-collection__item-image-selector .tox-collection__item-checkmark,\n.tox .tox-image-selector-menu .tox-collection__item .tox-collection__item-checkmark {\n flex-grow: 1;\n}\n.tox .tox-image-selector-menu .tox-collection__item-image-selector label,\n.tox .tox-image-selector-menu .tox-collection__item label {\n width: 48px;\n white-space: nowrap;\n overflow: hidden;\n font-size: 12px;\n color: #222f3e;\n text-align: center;\n align-self: flex-end;\n}\n.tox .tox-image-selector-menu .tox-collection__item-checkmark {\n height: 24px;\n width: 24px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.tox .tox-image-selector-menu .tox-collection__item-checkmark svg path {\n fill: #006ce7;\n stroke: #006ce7;\n}\n.tox .tox-image-selector-menu .tox-image-selector__row .tox-collection__item-image-selector.tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n background-color: #fff;\n}\n.tox .tox-image-selector-menu .tox-image-selector__row .tox-collection__item-image-selector.tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n z-index: 2;\n background-color: #fff;\n opacity: 0.8;\n background-clip: content-box;\n}\n.tox .tox-collection--list .tox-collection__item {\n padding: 4px 8px;\n}\n.tox .tox-collection--toolbar .tox-collection__item {\n border-radius: 3px;\n padding: 4px;\n}\n.tox .tox-collection--grid .tox-collection__item {\n border-radius: 3px;\n padding: 4px;\n}\n.tox .tox-collection--list .tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n background-color: #fff;
2\n color: #222f3e;\n}\n.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n background-color: #006ce7;\n color: #fff;\n}\n@media (forced-colors: active) {\n .tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n border: solid 1px;\n }\n}\n.tox .tox-collection--grid .tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n background-color: #a6ccf7;\n color: #222f3e;\n}\n.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n background-color: #f0f0f0;\n color: #222f3e;\n position: relative;\n z-index: 1;\n}\n.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 inset;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-collection--toolbar .tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n background-color: #a6ccf7;\n color: #222f3e;\n}\n@media (forced-colors: active) {\n .tox .tox-collection--toolbar .tox-collection__item--enabled:not(.tox-collection__item--state-disabled) {\n border-radius: 3px;\n outline: solid 1px;\n }\n}\n.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled) {\n color: #222f3e;\n background-color: #fff;\n position: relative;\n}\n.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover {\n background-color: #f0f0f0;\n color: #222f3e;\n}\n.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus {\n background-color: #f0f0f0;\n color: #222f3e;\n}\n.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus::after {\n border: 2px solid highlight;\n }\n}\n@media (forced-colors: active) {\n .tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover {\n border-radius: 3px;\n outline: solid 1px;\n }\n}\n.tox .tox-collection__item-image {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-bottom: 4px;\n position: relative;\n}\n.tox .tox-collection__item-icon,\n.tox .tox-collection__item-checkmark {\n align-items: center;\n display: flex;\n height: 24px;\n justify-content: center;\n width: 24px;\n}\n.tox .tox-collection__item-icon svg,\n.tox .tox-collection__item-checkmark svg {\n fill: currentColor;\n}\n.tox .tox-collection--toolbar-lg .tox-collection__item-icon {\n height: 48px;\n width: 48px;\n}\n.tox .tox-collection__item-label {\n color: currentColor;\n display: inline-block;\n flex: 1;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n line-height: 24px;\n max-width: 100%;\n text-transform: none;\n word-break: break-all;\n}\n.tox .tox-collection__item-accessory {\n color: currentColor;\n display: inline-block;\n font-size: 14px;\n height: 24px;\n line-height: 24px;\n text-transform: none;\n}\n.tox .tox-collection__item-caret {\n align-items: center;\n display: flex;\n min-height: 24px;\n}\n.tox .tox-collection__item-caret::after {\n content: \'\';\n font-size: 0;\n min-height: inherit;\n}\n.tox .tox-collection__item-caret svg {\n fill: currentColor;\n}\n.tox .tox-collection__item--state-disabled {\n background-color: transparent;\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg {\n display: none;\n}\n.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory + .tox-collection__item-checkmark {\n display: none;\n}\n.tox .tox-collection--horizontal {\n background-color: #fff;\n border: 1px solid #e3e3e3;\n border-radius: 6px;\n box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15);\n display: flex;\n flex: 0 0 auto;\n flex-shrink: 0;\n flex-wrap: nowrap;\n margin-bottom: 0;\n overflow-x: auto;\n padding: 0;\n}\n.tox .tox-collection--horizontal .tox-collection__group {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin: 0;\n padding: 0 4px;\n}\n.tox .tox-collection--horizontal .tox-collection__item {\n height: 28px;\n margin: 6px 1px 5px 0;\n padding: 0 4px;\n}\n.tox .tox-collection--horizontal .tox-collection__item-label {\n white-space: nowrap;\n}\n.tox .tox-collection--horizontal .tox-collection__item-caret {\n margin-left: 4px;\n}\n.tox .tox-collection__item-container {\n display: flex;\n}\n.tox .tox-collection__item-container--row {\n align-items: center;\n flex: 1 1 auto;\n flex-direction: row;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--align-left {\n margin-right: auto;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--align-right {\n justify-content: flex-end;\n margin-left: auto;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top {\n align-items: flex-start;\n margin-bottom: auto;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle {\n align-items: center;\n}\n.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom {\n align-items: flex-end;\n margin-top: auto;\n}\n.tox .tox-collection__item-container--column {\n align-self: center;\n flex: 1 1 auto;\n flex-direction: column;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--align-left {\n align-items: flex-start;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--align-right {\n align-items: flex-end;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top {\n align-self: flex-start;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle {\n align-self: center;\n}\n.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom {\n align-self: flex-end;\n}\n.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type) {\n border-right: 1px solid transparent;\n}\n.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > *:not(:first-child) {\n margin-left: 8px;\n}\n.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child {\n margin-left: 4px;\n}\n.tox:not([dir=rtl]) .tox-collection__item-accessory {\n margin-left: 16px;\n text-align: right;\n}\n.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret {\n margin-left: 16px;\n}\n.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type) {\n border-left: 1px solid transparent;\n}\n.tox[dir=rtl] .tox-collection--list .tox-collection__item > *:not(:first-child) {\n margin-right: 8px;\n}\n.tox[dir=rtl] .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child {\n margin-right: 4px;\n}\n.tox[dir=rtl] .tox-collection__item-accessory {\n margin-right: 16px;\n text-align: left;\n}\n.tox[dir=rtl] .tox-collection .tox-collection__item-caret {\n margin-right: 16px;\n transform: rotateY(180deg);\n}\n.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret {\n margin-right: 4px;\n}\n@media (forced-colors: active) {\n .tox .tox-hue-slider,\n .tox .tox-rgb-form .tox-rgba-preview {\n background-color: currentColor !important;\n border: 1px solid highlight !important;\n forced-color-adjust: none;\n }\n}\n.tox .tox-color-picker-container {\n display: flex;\n flex-direction: row;\n height: 225px;\n margin: 0;\n}\n.tox .tox-sv-palette {\n box-sizing: border-box;\n display: flex;\n height: 100%;\n}\n.tox .tox-sv-palette-spectrum {\n height: 100%;\n}\n.tox .tox-sv-palette,\n.tox .tox-sv-palette-spectrum {\n width: 225px;\n}\n.tox .tox-sv-palette-thumb {\n background: none;\n border: 1px solid black;\n border-radius: 50%;\n box-sizing: content-box;\n height: 12px;\n position: absolute;\n width: 12px;\n}\n.tox .tox-sv-palette-inner-thumb {\n border: 1px solid white;\n border-radius: 50%;\n height: 10px;\n position: absolute;\n width: 10px;\n}\n.tox .tox-hue-slider {\n box-sizing: border-box;\n height: 100%;\n width: 25px;\n}\n.tox .tox-hue-slider-spectrum {\n background: linear-gradient(to bottom, #f00, #ff0080, #f0f, #8000ff, #00f, #0080ff, #0ff, #00ff80, #0f0, #80ff00, #ff0, #ff8000, #f00);\n height: 100%;\n width: 100%;\n}\n.tox .tox-hue-slider,\n.tox .tox-hue-slider-spectrum {\n width: 20p
2x;\n}\n.tox .tox-hue-slider-spectrum:focus,\n.tox .tox-sv-palette-spectrum:focus {\n outline: #08f solid;\n}\n.tox .tox-hue-slider-thumb {\n background: white;\n border: 1px solid black;\n box-sizing: content-box;\n height: 4px;\n width: 100%;\n}\n.tox .tox-rgb-form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.tox .tox-rgb-form div {\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n width: inherit;\n}\n.tox .tox-rgb-form input {\n min-width: 6em;\n}\n.tox .tox-rgb-form input.tox-invalid {\n /* Need !important to override Chrome\'s focus styling unfortunately */\n border: 1px solid #f00 !important;\n box-shadow: 0 0 0 1px #f00;\n}\n.tox .tox-rgb-container {\n position: relative;\n}\n.tox .tox-rgb-form .tox-invalid-icon {\n align-content: center;\n align-items: center;\n display: none;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n.tox .tox-rgb-form .tox-invalid-icon .tox-control-wrap__status-icon-invalid {\n margin: 0;\n}\n.tox .tox-rgb-warning-note {\n background-color: #f5cccc;\n border: 1px solid #f0b3b3;\n border-radius: 3px;\n color: #77181f;\n padding: 3px;\n}\n.tox input.tox-invalid + .tox-invalid-icon {\n display: flex;\n}\n.tox .tox-rgb-form .tox-rgba-preview {\n border: 1px solid black;\n flex-grow: 2;\n margin-bottom: 0;\n}\n.tox:not([dir=rtl]) .tox-sv-palette {\n margin-right: 15px;\n}\n.tox:not([dir=rtl]) .tox-hue-slider {\n margin-right: 15px;\n}\n.tox:not([dir=rtl]) .tox-hue-slider-thumb {\n margin-left: -1px;\n}\n.tox:not([dir=rtl]) .tox-rgb-form label {\n margin-right: 0.5em;\n}\n.tox[dir=rtl] .tox-sv-palette {\n margin-left: 15px;\n}\n.tox[dir=rtl] .tox-hue-slider {\n margin-left: 15px;\n}\n.tox[dir=rtl] .tox-hue-slider-thumb {\n margin-right: -1px;\n}\n.tox[dir=rtl] .tox-rgb-form label {\n margin-left: 0.5em;\n}\n.tox .tox-toolbar .tox-swatches,\n.tox .tox-toolbar__primary .tox-swatches,\n.tox .tox-toolbar__overflow .tox-swatches {\n margin: 5px 0 6px 11px;\n}\n.tox .tox-collection--list .tox-collection__group .tox-swatches-menu {\n border: 0;\n margin: -4px -4px;\n}\n.tox .tox-swatches__row {\n display: flex;\n}\n@media (forced-colors: active) {\n .tox .tox-swatches__row {\n forced-color-adjust: none;\n }\n}\n.tox .tox-swatch {\n height: 30px;\n transition: transform 0.15s, box-shadow 0.15s;\n width: 30px;\n}\n.tox .tox-swatch:hover,\n.tox .tox-swatch:focus {\n box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.3) inset;\n transform: scale(0.8);\n}\n.tox .tox-swatch--remove {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.tox .tox-swatch--remove svg path {\n stroke: #e74c3c;\n}\n.tox .tox-swatches__picker-btn {\n align-items: center;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n display: flex;\n height: 30px;\n justify-content: center;\n outline: none;\n padding: 0;\n width: 30px;\n}\n.tox .tox-swatches__picker-btn svg {\n fill: #222f3e;\n height: 24px;\n width: 24px;\n}\n.tox .tox-swatches__picker-btn:hover {\n background: #f0f0f0;\n}\n.tox div.tox-swatch:not(.tox-swatch--remove) svg {\n display: none;\n fill: #222f3e;\n height: 24px;\n margin: calc((30px - 24px) / 2) calc((30px - 24px) / 2);\n width: 24px;\n}\n.tox div.tox-swatch:not(.tox-swatch--remove) svg path {\n fill: #fff;\n paint-order: stroke;\n stroke: #222f3e;\n stroke-width: 2px;\n}\n.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg {\n display: block;\n}\n.tox:not([dir=rtl]) .tox-swatches__picker-btn {\n margin-left: auto;\n}\n.tox[dir=rtl] .tox-swatches__picker-btn {\n margin-right: auto;\n}\n.tox {\n /* Animation for deleting a comment */\n /* A comment fades to 0 when it is being deleted, then is removed */\n}\n.tox .tox-conversations {\n display: flex;\n flex-direction: column;\n position: relative;\n height: 100%;\n /* This is to give the sidebar a consistent width. Need a solution for this */\n min-width: 300px;\n max-width: 300px;\n width: 300px;\n}\n.tox .tox-conversations__header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n padding: 8px 12px;\n background: #fff;\n z-index: 1;\n}\n.tox .tox-conversations__title {\n font-size: 20px;\n font-weight: 400;\n padding: 8px 0 8px 0;\n color: #222f3e;\n line-height: 28px;\n}\n.tox .tox-comment {\n background: #fff;\n border: 1px solid #fff;\n border-radius: 6px;\n padding: 8px;\n padding-bottom: 16px;\n position: relative;\n}\n.tox .tox-comment:hover {\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n}\n.tox .tox-comment.tox-comment--selected {\n background-color: #fff2c9;\n border: 1px solid #ffcf30;\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n}\n.tox .tox-comment.tox-comment--selected:focus {\n border: 2px solid #006ce7;\n margin: -1px;\n}\n.tox .tox-comment.tox-comment--selected:focus:not(:first-child) {\n margin-top: 7px;\n}\n.tox .tox-comment.tox-comment--selected .tox-comment__single {\n margin-bottom: 12px;\n}\n.tox .tox-comment.tox-comment--selected .tox-comment__single:focus {\n position: relative;\n}\n.tox .tox-comment.tox-comment--selected .tox-comment__single:focus::after {\n top: -9px;\n pointer-events: none;\n position: absolute;\n content: "";\n display: block;\n bottom: -9px;\n left: -9px;\n right: -9px;\n border-radius: 6px;\n border: 2px solid #006ce7;\n}\n.tox .tox-comment.tox-comment--selected .tox-comment__single:focus:last-of-type:has(textarea):after {\n bottom: calc((12px + 16px + 1px) * -1);\n}\n.tox .tox-comment__header {\n align-items: center;
2\n color: #222f3e;\n display: flex;\n justify-content: space-between;\n}\n.tox .tox-comment__date {\n color: #222f3e;\n font-size: 12px;\n line-height: 18px;\n}\n.tox .tox-comment__body {\n color: #222f3e;\n font-size: 16px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.3;\n margin-top: 8px;\n position: relative;\n text-transform: initial;\n transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);\n white-space: pre-wrap;\n /* We remove the transitions when wanting to measure and jump straight to collapsed or expanded */\n}\n.tox .tox-comment__body.tox-comment__body--expanded {\n max-height: 100em;\n transition: max-height 1s ease-in-out;\n}\n.tox .tox-comment__body.tox-comment__body--pending {\n transition: max-height 0s;\n}\n.tox .tox-comment__body p {\n margin: 0;\n}\n.tox .tox-comment__body textarea {\n resize: none;\n white-space: normal;\n width: 100%;\n font-size: 16px;\n}\n.tox .tox-comment__loading-text {\n align-items: center;\n color: #222f3e;\n display: flex;\n flex-direction: column;\n position: relative;\n}\n.tox .tox-comment__loading-text > div {\n padding-bottom: 16px;\n}\n.tox .tox-comment__overlaytext {\n bottom: 0;\n flex-direction: column;\n font-size: 14px;\n left: 0;\n padding: 1em;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n.tox .tox-comment__overlaytext p {\n background-color: #fff;\n box-shadow: 0 0 8px 8px #fff;\n color: #222f3e;\n text-align: center;\n}\n.tox .tox-comment__overlaytext div:nth-of-type(2) {\n font-size: 0.8em;\n}\n.tox .tox-comment__expander {\n padding-top: 8px;\n}\n.tox .tox-comment__expander p {\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n font-style: normal;\n /* Need a focus highlight on the show more/less button */\n}\n.tox .tox-comment__expander p:focus {\n font-weight: bold;\n}\n.tox .tox-comment__buttonspacing {\n padding-top: 16px;\n text-align: center;\n}\n.tox .tox-tbtn.tox-comment__mention-btn {\n display: flex;\n width: 34px;\n height: 34px;\n padding: 5px;\n justify-content: center;\n align-items: center;\n margin: 0;\n background-color: transparent;\n}\n.tox .tox-comment-thread {\n background: #fff;\n position: relative;\n border-radius: 6px;\n background-color: transparent;\n}\n.tox .tox-comment-thread > *:not(:first-child) {\n margin-top: 8px;\n}\n.tox .tox-comment-thread__overlay::after {\n background: #fff;\n bottom: 0;\n content: "";\n display: flex;\n left: 0;\n opacity: 0.9;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 5;\n}\n.tox .tox-comment__reply {\n display: flex;\n flex-shrink: 0;\n flex-wrap: wrap;\n justify-content: flex-end;\n margin-top: 8px;\n}\n.tox .tox-comment__reply > *:first-child {\n margin-bottom: 8px;\n width: 100%;\n}\n.tox .tox-comment__edit {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n margin-top: 8px;\n}\n.tox .tox-comment__gradient::after {\n background: linear-gradient(rgba(255, 255, 255, 0), #fff);\n bottom: 0;\n content: "";\n display: block;\n height: 5em;\n margin-top: -40px;\n position: absolute;\n width: 100%;\n}\n.tox .tox-comment__overlay {\n background: #fff;\n bottom: 0;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n left: 0;\n opacity: 0.9;\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n z-index: 5;\n}\n.tox .tox-comment__busy-spinner {\n align-items: center;\n background-color: #fff;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 20;\n}\n.tox .tox-comment__scroll {\n display: flex;\n flex-direction: column;\n flex-shrink: 1;\n overflow: auto;\n padding: 12px;\n scroll-behavior: smooth;\n}\n.tox .tox-comment__scroll:has(textarea:focus) {\n scroll-behavior: auto;\n}\n.tox .tox-comment--disappearing {\n transition: opacity 0.5s ease;\n}\n.tox .tox-comment[data-transitioning-destination="deleting"] {\n opacity: 0;\n}\n.tox .tox-skeleton .tox-skeleton__line {\n height: 16px;\n width: 100%;\n background: linear-gradient(to right, rgba(240, 240, 240, 0.5) 8%, rgba(240, 240, 240, 0.7) 18%, rgba(240, 240, 240, 0.5) 33%);
2\n animation: wave 2s infinite ease-out;\n}\n.tox .tox-skeleton .tox-skeleton__circle {\n height: 36px;\n width: 36px;\n margin-right: 8px;\n border-radius: 100%;\n background: linear-gradient(to right, rgba(240, 240, 240, 0.5) 8%, rgba(240, 240, 240, 0.7) 18%, rgba(240, 240, 240, 0.5) 33%);\n animation: wave 2s infinite ease-out;\n}\n@keyframes wave {\n 0% {\n background-position: -268px 0;\n }\n 100% {\n background-position: 268px 0;\n }\n}\n.tox .tox-ring-loader {\n width: 10px;\n height: 10px;\n border: 1px solid #FFF;\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: tox-rotation 1s linear infinite;\n}\n.tox:not([dir=rtl]) .tox-comment__edit {\n margin-left: 8px;\n}\n.tox:not([dir=rtl]) .tox-comment__buttonspacing > *:last-child,\n.tox:not([dir=rtl]) .tox-comment__edit > *:last-child,\n.tox:not([dir=rtl]) .tox-comment__reply > *:last-child {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-comment__edit {\n margin-right: 8px;\n}\n.tox[dir=rtl] .tox-comment__buttonspacing > *:last-child,\n.tox[dir=rtl] .tox-comment__edit > *:last-child,\n.tox[dir=rtl] .tox-comment__reply > *:last-child {\n margin-right: 8px;\n}\n.tox .tox-user {\n align-items: center;\n display: flex;\n}\n.tox .tox-user__avatar svg {\n fill: rgba(34, 47, 62, 0.7);\n}\n.tox .tox-user__avatar img {\n border-radius: 50%;\n height: 36px;\n object-fit: cover;\n vertical-align: middle;\n width: 36px;\n}\n.tox .tox-user__name {\n color: #222f3e;\n font-size: 14px;\n font-style: normal;\n font-weight: bold;\n line-height: 18px;\n text-transform: none;\n}\n.tox:not([dir=rtl]) .tox-user__avatar svg,\n.tox:not([dir=rtl]) .tox-user__avatar img {\n margin-right: 8px;\n}\n.tox:not([dir=rtl]) .tox-user__avatar + .tox-user__name {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-user__avatar svg,\n.tox[dir=rtl] .tox-user__avatar img {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-user__avatar + .tox-user__name {\n margin-right: 8px;\n}\n.tox {\n /* .tox-dialog-blocker-wrap {\n //\n } */\n}\n.tox .tox-dialog-wrap {\n align-items: center;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1100;\n}\n.tox .tox-dialog-wrap__backdrop {\n background-color: rgba(255, 255, 255, 0.75);\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n}\n.tox .tox-dialog-wrap__backdrop--opaque {\n background-color: #fff;\n}\n.tox .tox-dialog {\n background-color: #fff;\n border-color: #eeeeee;\n border-radius: 10px;\n border-style: solid;\n border-width: 0;\n box-shadow: 0 16px 16px -10px rgba(34, 47, 62, 0.15), 0 0 40px 1px rgba(34, 47, 62, 0.15);\n display: flex;\n flex-direction: column;\n max-height: 100%;\n max-width: 480px;\n overflow: hidden;\n position: relative;\n width: 95vw;\n z-index: 2;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox .tox-dialog {\n align-self: flex-start;\n margin: 8px auto;\n max-height: calc(100vh - 8px * 2);\n width: calc(100vw - 16px);\n }\n}\n.tox .tox-dialog-inline {\n z-index: 1100;\n}\n.tox .tox-dialog__header {\n align-items: center;\n background-color: #fff;\n border-bottom: none;\n color: #222f3e;\n display: flex;\n font-size: 16px;\n justify-content: space-between;\n padding: 8px 16px 0 16px;\n position: relative;\n}\n.tox .tox-dialog__header .tox-button {\n z-index: 1;\n}\n.tox .tox-dialog__draghandle {\n cursor: grab;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.tox .tox-dialog__draghandle:active {\n cursor: grabbing;\n}\n.tox .tox-dialog__dismiss {\n margin-left: auto;\n}\n.tox .tox-dialog__title {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 20px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.3;\n margin: 0;\n text-transform: none;\n}\n.tox .tox-dialog__body {\n color: #222f3e;\n display: flex;\n flex: 1;\n font-size: 16px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.3;\n min-width: 0;\n text-align: left;\n text-transform: none;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox .tox-dialog__body {\n flex-direction: column;\n }\n}\n.tox .tox-dialog__body-nav {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n padding: 16px 16px;\n}\n@media only screen and (min-width: 768px ) {\n .tox .tox-dialog__body-nav {\n max-width: 11em;\n }\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox .tox-dialog__body-nav {\n flex-direction: row;\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n padding-bottom: 0;\n }\n}\n.tox .tox-dialog__body-nav-item {\n border-bottom: 2px solid transparent;\n color: rgba(34, 47, 62, 0.7);\n display: inline-block;\n flex-shrink: 0;\n font-size: 14px;\n line-height: 1.3;\n margin-bottom: 8px;\n max-width: 13em;\n -webkit-text-decoration: none;\n text-decoration: none;\n}\n.tox .tox-dialog__body-nav-item:focus {\n background-color: rgba(0, 108, 231, 0.1);\n}\n.tox .tox-dialog__body-nav-item--active {\n border-bottom: 2px solid #144782;\n color: #144782;\n}\n@media (forced-colors: active) {\n .tox .tox-dialog__body-nav-item--active {\n border-bottom: 2px solid highlight;\n color: highlight;\n }\n}\n.tox .tox-dialog__body-content {\n box-sizing: border-box;\n display: flex;\n flex: 1;\n flex-direction: column;\n max-height: min(650px, calc(100vh - 110px));\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n padding: 16px 16px;\n}\n.tox .tox-dialog__body-content > * {\n margin-bottom: 0;\n margin-top: 16px;\n}\n.tox .tox-dialog__body-content > *:first-child {\n margin-top: 0;\n}\n.tox .tox-dialog__body-content > *:last-child {\n margin-bottom: 0;\n}\n.tox .tox-dialog__body-content > *:only-child {\n margin-bottom: 0;\n margin-top: 0;\n}\n.tox .tox-dialog__body-content a {\n color: #144782;\n cursor: pointer;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-dialog__body-content a:hover,\n.tox .tox-dialog__body-content a:focus {\n color: #071729;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-dialog__body-content a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #144782;\n outline-offset: 2px;\n}\n.tox .tox-dialog__body-content a:active {\n color: #000000;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-dialog__body-content svg {\n fill: #222f3e;\n}\n.tox .tox-dialog__body-content strong {\n font-weight: bold;\n}\n.tox .tox-dialog__body-content ul {\n list-style-type: disc;\n}\n.tox .tox-dialog__body-content ul,\n.tox .tox-dialog__body-content ol,\n.tox .tox-dialog__body-content dd {\
2n padding-inline-start: 2.5rem;\n}\n.tox .tox-dialog__body-content ul,\n.tox .tox-dialog__body-content ol,\n.tox .tox-dialog__body-content dl {\n margin-bottom: 16px;\n}\n.tox .tox-dialog__body-content ul,\n.tox .tox-dialog__body-content ol,\n.tox .tox-dialog__body-content dl,\n.tox .tox-dialog__body-content dd,\n.tox .tox-dialog__body-content dt {\n display: block;\n margin-inline-end: 0;\n margin-inline-start: 0;\n}\n.tox .tox-dialog__body-content .tox-form__group h1 {\n color: #222f3e;\n font-size: 20px;\n font-style: normal;\n font-weight: bold;\n letter-spacing: normal;\n margin-bottom: 16px;\n margin-top: 2rem;\n text-transform: none;\n}\n.tox .tox-dialog__body-content .tox-form__group h2 {\n color: #222f3e;\n font-size: 16px;\n font-style: normal;\n font-weight: bold;\n letter-spacing: normal;\n margin-bottom: 16px;\n margin-top: 2rem;\n text-transform: none;\n}\n.tox .tox-dialog__body-content .tox-form__group p {\n margin-bottom: 16px;\n}\n.tox .tox-dialog__body-content .tox-form__group h1:first-child,\n.tox .tox-dialog__body-content .tox-form__group h2:first-child,\n.tox .tox-dialog__body-content .tox-form__group p:first-child {\n margin-top: 0;\n}\n.tox .tox-dialog__body-content .tox-form__group h1:last-child,\n.tox .tox-dialog__body-content .tox-form__group h2:last-child,\n.tox .tox-dialog__body-content .tox-form__group p:last-child {\n margin-bottom: 0;\n}\n.tox .tox-dialog__body-content .tox-form__group h1:only-child,\n.tox .tox-dialog__body-content .tox-form__group h2:only-child,\n.tox .tox-dialog__body-content .tox-form__group p:only-child {\n margin-bottom: 0;\n margin-top: 0;\n}\n.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center {\n text-align: center;\n}\n.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end {\n text-align: end;\n}\n.tox .tox-dialog--width-lg {\n height: 650px;\n max-width: 1200px;\n}\n.tox .tox-dialog--fullscreen {\n height: 100%;\n max-width: 100%;\n}\n.tox .tox-dialog--fullscreen .tox-dialog__body-content {\n max-height: 100%;\n}\n.tox .tox-dialog--width-md {\n max-width: 800px;\n}\n.tox .tox-dialog--width-md .tox-dialog__body-content {\n overflow: auto;\n}\n.tox .tox-dialog__body-content--centered {\n text-align: center;\n}\n.tox .tox-dialog__footer {\n align-items: center;\n background-color: #fff;\n border-top: none;\n display: flex;\n justify-content: space-between;\n padding: 8px 16px;\n}\n.tox .tox-dialog__footer-start,\n.tox .tox-dialog__footer-end {\n display: flex;\n}\n.tox .tox-dialog__busy-spinner {\n align-items: center;\n background-color: rgba(255, 255, 255, 0.75);\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 3;\n}\n.tox .tox-dialog__table {\n border-collapse: collapse;\n width: 100%;\n}\n.tox .tox-dialog__table thead th {\n font-weight: bold;\n padding-bottom: 8px;\n}\n.tox .tox-dialog__table thead th:first-child {\n padding-right: 8px;\n}\n.tox .tox-dialog__table tbody tr {\n border-bottom: 1px solid #626262;\n}\n.tox .tox-dialog__table tbody tr:last-child {\n border-bottom: none;\n}\n.tox .tox-dialog__table td {\n padding-bottom: 8px;\n padding-top: 8px;\n}\n.tox .tox-dialog__table td:first-child {\n padding-right: 8px;\n}\n.tox .tox-dialog__iframe {\n min-height: 200px;\n}\n.tox .tox-dialog__iframe.tox-dialog__iframe--opaque {\n background: #fff;\n}\n.tox .tox-navobj-bordered {\n position: relative;\n}\n.tox .tox-navobj-bordered::before {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n content: \'\';\n inset: 0;\n opacity: 1;\n pointer-events: none;\n position: absolute;\n z-index: 1;\n}\n.tox .tox-navobj-bordered iframe {\n border-radius: 6px;\n}\n.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before {\n border-color: #006ce7;\n box-shadow: 0 0 0 1px #006ce7;\n outline: none;\n}\n.tox .tox-dialog__popups {\n position: absolute;\n width: 100%;\n z-index: 1100;\n}\n.tox .tox-dialog__body-iframe {\n display: flex;\n flex: 1;\n flex-direction: column;\n}\n.tox .tox-dialog__body-iframe .tox-navobj {\n display: flex;\n flex: 1;\n}\n.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2) {\n flex: 1;\n height: 100%;\n}\n.tox .tox-dialog-dock-fadeout {\n opacity: 0;\n visibility: hidden;\n}\n.tox .tox-dialog-dock-fadein {\n opacity: 1;\n visibility: visible;\n}\n.tox .tox-dialog-dock-transition {\n transition: visibility 0s linear 0.3s, opacity 0.3s ease;\n}\n.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein {\n transition-delay: 0s;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav {\n margin-right: 0;\n }\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child) {\n margin-left: 8px;\n }\n}\n.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start > *,\n.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end > * {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-dialog__body {\n text-align: right;\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav {\n margin-left: 0;\n }\n}\n@media only screen and (max-width: 767px ) {\n body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child) {\n margin-right: 8px;\n }\n}\n.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start > *,\n.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end > * {\n margin-right: 8px;\n}\nbody.tox-dialog__disable-scroll {\n overflow: hidden;\n}\n.tox .tox-dropzone-container {\n display: flex;\n flex: 1;\n}\n.tox .tox-dropzone {\n align-items: center;\n background: #fff;\n border: 2px dashed #eeeeee;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n justify-content: center;\n min-height: 100px;\n padding: 10px;\n}\n.tox .tox-dropzone p {\n color: rgba(34, 47, 62, 0.7);\n margin: 0 0 16px 0;\n}\n.tox .tox-edit-area {\n display: flex;\n flex: 1;\n overflow: hidden;\n position: relative;\n}\n.tox .tox-edit-area::before {\n border: 2px solid #006ce7;\n border-radius: 4px;\n content: \'\';\n inset: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n transition: opacity 0.15s;\n z-index: 1;\n}\n@media (forced-colors: active) {\n .tox .tox-edit-area::before {\n border: 2px solid highlight;\n }\n}\n.tox .tox-edit-area__iframe {\n background-color: #fff;\n border: 0;\n box-sizing: border-box;\n flex: 1;\n height: 100%;\n position: absolute;\n width: 100%;\n}\n.tox.tox-edit-focus .tox-edit-area::before {\n opacity: 1;\n}\n.tox.tox-inline-edit-area {\n border: 1px dotted #eeeeee;\n}\n.tox .tox-editor-container {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n overflow: hidden;\n}\n.tox .tox-editor-header {\n display: grid;\n grid-template-columns: 1fr min-content;\n z-index: 2;\n}\n.tox:not(.tox-tinymce-inline) .tox-editor-header {\n background-color: #fff;\n border-bottom: none;\n box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.1), 0 8px 8px -4px rgba(34, 47, 62, 0.07);\n padding: 4px 0;\n}\n.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition) {\n transition: box-shadow 0.5s;\n}\n.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header {\n border-top: 1px solid #e3e3e3;\n box-shadow: none;\n}\n.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header {\n background-color: #fff;\n box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.2), 0 8px 8px -4px rgba(34, 47, 62, 0.15);\n padding: 4px 0;\n}\n.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header {\n box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.2), 0 8px 8px -4px rgba(34, 47, 62, 0.15);\n}\n.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty {\
2n background: none;\n border: none;\n box-shadow: none;\n padding: 0;\n}\n.tox-editor-dock-fadeout {\n opacity: 0;\n visibility: hidden;\n}\n.tox-editor-dock-fadein {\n opacity: 1;\n visibility: visible;\n}\n.tox-editor-dock-transition {\n transition: visibility 0s linear 0.25s, opacity 0.25s ease;\n}\n.tox-editor-dock-transition.tox-editor-dock-fadein {\n transition-delay: 0s;\n}\n.tox .tox-control-wrap {\n flex: 1;\n position: relative;\n}\n.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,\n.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,\n.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid {\n display: none;\n}\n.tox .tox-control-wrap svg {\n display: block;\n}\n.tox .tox-control-wrap__status-icon-wrap {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n.tox .tox-control-wrap__status-icon-invalid svg {\n fill: #c00;\n}\n.tox .tox-control-wrap__status-icon-unknown svg {\n fill: orange;\n}\n.tox .tox-control-wrap__status-icon-valid svg {\n fill: green;\n}\n.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,\n.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,\n.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield {\n padding-right: 32px;\n}\n.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap {\n right: 4px;\n}\n.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,\n.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,\n.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield {\n padding-left: 32px;\n}\n.tox[dir=rtl] .tox-control-wrap__status-icon-wrap {\n left: 4px;\n}\n.tox .tox-custom-preview {\n border-color: #eeeeee;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n flex: 1;\n padding: 8px;\n}\n.tox .tox-autocompleter {\n max-width: 25em;\n}\n.tox .tox-autocompleter .tox-menu {\n box-sizing: border-box;\n max-width: 25em;\n}\n.tox .tox-autocompleter .tox-autocompleter-highlight {\n font-weight: bold;\n}\n.tox .tox-color-input {\n display: flex;\n position: relative;\n z-index: 1;\n}\n.tox .tox-color-input .tox-textfield {\n z-index: -1;\n}\n.tox .tox-color-input span {\n border-color: rgba(34 47 3.1%);\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n height: 24px;\n position: absolute;\n top: 6px;\n width: 24px;\n}\n@media (forced-colors: active) {\n .tox .tox-color-input span {\n border-color: currentColor;\n border-width: 2px !important;\n forced-color-adjust: none;\n }\n}\n.tox .tox-color-input span:hover:not([aria-disabled=true]),\n.tox .tox-color-input span:focus:not([aria-disabled=true]) {\n border-color: #006ce7;\n cursor: pointer;\n}\n.tox .tox-color-input span::before {\n background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%), linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%);\n background-position: 0 0, 0 6px, 6px -6px, -6px 0;\n background-size: 12px 12px;\n border: 1px solid #fff;\n border-radius: 6px;\n box-sizing: border-box;\n content: \'\';\n height: 24px;\n left: -1px;\n position: absolute;\n top: -1px;\n width: 24px;\n z-index: -1;\n}\n@media (forced-colors: active) {\n .tox .tox-color-input span::before {\n border: none;\n }\n}\n.tox .tox-color-input span[aria-disabled=true] {\n cursor: not-allowed;\n}\n.tox:not([dir=rtl]) .tox-color-input .tox-textfield {\n padding-left: 36px;\n}\n.tox:not([dir=rtl]) .tox-color-input span {\n left: 6px;\n}\n.tox[dir="rtl"] .tox-color-input .tox-textfield {\n padding-right: 36px;\n}\n.tox[dir="rtl"] .tox-color-input span {\n right: 6px;\n}\n.tox .tox-label,\n.tox .tox-toolbar-label {\n color: rgba(34, 47, 62, 0.7);\n display: block;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n line-height: 1.3;\n padding: 0 8px 0 0;\n text-transform: none;\n white-space: nowrap;\n}\n.tox .tox-toolbar-label {\n padding: 0 8px;\n}\n.tox[dir=rtl] .tox-label {\n padding: 0 0 0 8px;\n}\n.tox .tox-form {\n display: flex;\n flex: 1;\n flex-direction: column;\n}\n.tox .tox-form__group {\n box-sizing: border-box;\n margin-bottom: 4px;\n}\n.tox .tox-form-group--maximize {\n flex: 1;\n}\n.tox .tox-form__group--error {\n color: #c00;\n}\n.tox .tox-form__group--collection {\n display: flex;\n}\n.tox .tox-form__grid {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.tox .tox-form__grid--2col > .tox-form__group {\n width: calc(50% - (8px / 2));\n}\n.tox .tox-form__grid--3col > .tox-form__group {\n width: calc(100% / 3 - (8px / 2));\n}\n.tox .tox-form__grid--4col > .tox-form__group {\n width: calc(25% - (8px / 2));\n}\n.tox .tox-form__controls-h-stack {\n align-items: center;\n display: flex;\n}\n.tox .tox-form__group--inline {\n align-items: center;\n display: flex;\n}\n.tox .tox-form__group--stretched {\n display: flex;\n flex: 1;\n flex-direction: column;\n}\n.tox .tox-form__group--stretched .tox-textarea {\n flex: 1;\n}\n.tox .tox-form__group--stretched .tox-navobj {\n display: flex;\n flex: 1;\n}\n.tox .tox-form__group--stretched .tox-navobj :nth-child(2) {\n flex: 1;\n height: 100%;\n}\n.tox:not([dir=rtl]) .tox-form__controls-h-stack > *:not(:first-child) {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-form__controls-h-stack > *:not(:first-child) {\n margin-right: 4px;\n}\n.tox .tox-lock.tox-locked .tox-lock-icon__unlock,\n.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock {\n display: none;\n}\n.tox .tox-context-form__group .tox-button--icon.tox-lock-context-form-size-input {\n margin-left: 8px;\n margin-right: 8px;\n}\n.tox .tox-textfield,\n.tox .tox-toolbar-textfield,\n.tox .tox-listboxfield .tox-listbox--select,\n.tox .tox-textarea,\n.tox .tox-textarea-wrap .tox-textarea:focus {\n appearance: none;\n background-color: #fff;\n border-color: #eeeeee;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n color: #222f3e;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 16px;\n line-height: 24px;\n margin: 0;\n min-height: 34px;\n outline: none;\n padding: 5px 5.5px;\n resize: none;\n width: 100%;\n}\n.tox .tox-textfield[disabled],\n.tox .tox-toolbar-textfield[disabled],\n.tox .tox-textarea[disabled] {\n background-color: #f2f2f2;\n color: rgba(34, 47, 62, 0.85);
2\n cursor: not-allowed;\n}\n.tox .tox-textfield:focus,\n.tox .tox-toolbar-textfield:focus,\n.tox .tox-listboxfield .tox-listbox--select:focus,\n.tox .tox-textarea-wrap:focus-within,\n.tox .tox-textarea:focus,\n.tox .tox-focusable-wrapper:focus,\n.tox .tox-custom-editor:focus-within {\n background-color: #fff;\n border-color: #006ce7;\n box-shadow: 0 0 0 1px #006ce7;\n outline: none;\n}\n.tox .tox-toolbar-textfield {\n max-width: 250px;\n min-height: unset;\n height: 28px;\n margin: 5px 0 6px 0;\n}\n.tox .tox-naked-btn {\n background-color: transparent;\n border: 0;\n border-color: transparent;\n box-shadow: unset;\n color: #006ce7;\n cursor: pointer;\n display: block;\n margin: 0;\n padding: 0;\n}\n.tox .tox-naked-btn svg {\n display: block;\n fill: #222f3e;\n}\n.tox .tox-textfield-size {\n width: 80px;\n}\n.tox:not([dir=rtl]) .tox-toolbar-textfield + * {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-toolbar-textfield + * {\n margin-right: 4px;\n}\n.tox .tox-listboxfield {\n cursor: pointer;\n position: relative;\n}\n.tox .tox-listboxfield .tox-listbox--select[disabled] {\n background-color: #f2f2f2;\n color: rgba(34, 47, 62, 0.85);\n cursor: not-allowed;\n}\n.tox .tox-listbox__select-label {\n cursor: default;\n flex: 1;\n margin: 0 4px;\n}\n.tox .tox-listbox__select-chevron {\n align-items: center;\n display: flex;\n justify-content: center;\n width: 16px;\n}\n.tox .tox-listbox__select-chevron svg {\n fill: #222f3e;\n}\n@media (forced-colors: active) {\n .tox .tox-listbox__select-chevron svg {\n fill: currentColor !important;\n }\n}\n.tox .tox-listboxfield .tox-listbox--select {\n align-items: center;\n display: flex;\n}\n.tox:not([dir=rtl]) .tox-listboxfield svg {\n right: 8px;\n}\n.tox[dir=rtl] .tox-listboxfield svg {\n left: 8px;\n}\n.tox .tox-selectfield {\n cursor: pointer;\n position: relative;\n}\n.tox .tox-selectfield select {\n appearance: none;\n background-color: #fff;\n border-color: #eeeeee;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n color: #222f3e;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-size: 16px;\n line-height: 24px;\n margin: 0;\n min-height: 34px;\n outline: none;\n padding: 5px 5.5px;\n resize: none;\n width: 100%;\n}\n.tox .tox-selectfield select[disabled] {\n background-color: #f2f2f2;\n color: rgba(34, 47, 62, 0.85);\n cursor: not-allowed;\n}\n.tox .tox-selectfield select::-ms-expand {\n display: none;\n}\n.tox .tox-selectfield select:focus {\n background-color: #fff;\n border-color: #006ce7;\n box-shadow: 0 0 0 1px #006ce7;\n outline: none;\n}\n.tox .tox-selectfield svg {\n pointer-events: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n.tox .tox-selectfield select option:checked {\n background-color: revert;\n color: revert;\n}\n.tox:not([dir=rtl]) .tox-selectfield select[size="0"],\n.tox:not([dir=rtl]) .tox-selectfield select[size="1"] {\n padding-right: 24px;\n}\n.tox:not([dir=rtl]) .tox-selectfield svg {\n right: 8px;\n}\n.tox[dir=rtl] .tox-selectfield select[size="0"],\n.tox[dir=rtl] .tox-selectfield select[size="1"] {\n padding-left: 24px;\n}\n.tox[dir=rtl] .tox-selectfield svg {\n left: 8px;\n}\n.tox .tox-textarea-wrap {\n border-color: #eeeeee;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n display: flex;\n flex: 1;\n overflow: hidden;\n}\n.tox .tox-textarea {\n appearance: textarea;\n white-space: pre-wrap;\n}\n.tox .tox-textarea-wrap .tox-textarea {\n border: none;\n}\n.tox .tox-textarea-wrap .tox-textarea:focus {\n border: none;\n}\n.tox-fullscreen {\n border: 0;\n height: 100%;\n margin: 0;\n overflow: hidden;
2\n overscroll-behavior: none;\n padding: 0;\n touch-action: pinch-zoom;\n width: 100%;\n}\n.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle {\n display: none;\n}\n.tox.tox-tinymce.tox-fullscreen,\n.tox-shadowhost.tox-fullscreen {\n left: 0;\n position: fixed;\n top: 0;\n z-index: 1200;\n}\n.tox.tox-tinymce.tox-fullscreen {\n background-color: transparent;\n}\n.tox-fullscreen .tox.tox-tinymce-aux,\n.tox-fullscreen ~ .tox.tox-tinymce-aux {\n z-index: 1201;\n}\n.tox .tox-help__more-link {\n list-style: none;\n margin-top: 1em;\n}\n.tox .tox-imagepreview {\n background-color: #666;\n height: 380px;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n.tox .tox-imagepreview.tox-imagepreview__loaded {\n overflow: auto;\n}\n.tox .tox-imagepreview__container {\n display: flex;\n left: 100vw;\n position: absolute;\n top: 100vw;\n}\n.tox .tox-imagepreview__image {\n background: url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==);\n}\n.tox .tox-image-tools .tox-spacer {\n flex: 1;\n}\n.tox .tox-image-tools .tox-bar {\n align-items: center;\n display: flex;\n height: 60px;\n justify-content: center;\n}\n.tox .tox-image-tools .tox-imagepreview,\n.tox .tox-image-tools .tox-imagepreview + .tox-bar {\n margin-top: 8px;\n}\n.tox .tox-image-tools .tox-croprect-block {\n background: black;\n filter: alpha(opacity=50);\n opacity: 0.5;\n position: absolute;\n zoom: 1;\n}\n.tox .tox-image-tools .tox-croprect-handle {\n border: 2px solid white;\n height: 20px;\n left: 0;\n position: absolute;\n top: 0;\n width: 20px;\n}\n.tox .tox-image-tools .tox-croprect-handle-move {\n border: 0;\n cursor: move;\n position: absolute;\n}\n.tox .tox-image-tools .tox-croprect-handle-nw {\n border-width: 2px 0 0 2px;\n cursor: nw-resize;\n left: 100px;\n margin: -2px 0 0 -2px;\n top: 100px;\n}\n.tox .tox-image-tools .tox-croprect-handle-ne {\n border-width: 2px 2px 0 0;\n cursor: ne-resize;\n left: 200px;\n margin: -2px 0 0 -20px;\n top: 100px;\n}\n.tox .tox-image-tools .tox-croprect-handle-sw {\n border-width: 0 0 2px 2px;\n cursor: sw-resize;\n left: 100px;\n margin: -20px 2px 0 -2px;\n top: 200px;\n}\n.tox .tox-image-tools .tox-croprect-handle-se {\n border-width: 0 2px 2px 0;\n cursor: se-resize;\n left: 200px;\n margin: -20px 0 0 -20px;\n top: 200px;\n}\n.tox .tox-image-selector-loading-spinner-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.tox .tox-image-selector-loading-spinner {\n position: absolute;\n width: min(24px, 30%);\n aspect-ratio: 1;\n border-radius: 50%;\n border: 3px solid #006ce7;\n border-bottom-color: transparent;\n animation: tox-rotation 1s linear infinite;\n}\n.tox .tox-toolbar .tox-image-selector,\n.tox .tox-toolbar__primary .tox-image-selector,\n.tox .tox-toolbar__overflow .tox-image-selector {\n margin: 5px 0 6px 11px;\n}\n.tox .tox-image-selector-menu {\n border: 0;\n border-radius: 3px;\n margin: -4px -4px;\n padding: 4px;\n}\n.tox .tox-image-selector-menu .tox-collection--list .tox-collection__group {\n border: 0;\n padding: 0;\n margin: -4px -4px;\n}\n.tox .tox-image-selector-menu .tox-collection__item {\n max-width: 48px;\n}\n.tox .tox-image-selector-menu .tox-collection__item-icon {\n border: 1px solid #eeeeee;\n border-radius: 3px;\n margin-bottom: 4px;\n width: 100%;\n}\n.tox .tox-image-selector-menu .tox-collection__item-icon svg path {\n stroke: #c00;\n}\n.tox .tox-image-selector__row {\n display: flex;\n}\n.tox .tox-image-selector--remove {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.tox .tox-image-selector--remove svg path {\n stroke: #c00;\n}\n.tox .tox-image-selector-image-wrapper {\n width: 46px;\n height: 46px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.tox .tox-image-selector-image-img {\n max-width: 100%;\n max-height: 100%;\n}\n.tox .tox-image-selector__picker-btn {\n align-items: center;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n display: flex;\n height: 30px;\n justify-content: center;\n outline: none;\n padding: 0;\n width: 30px;\n}\n.tox .tox-image-selector__picker-btn svg {\n fill: #222f3e;\n height: 24px;\n width: 24px;\n}\n.tox .tox-image-selector__picker-btn:hover {\n background: #f0f0f0;\n}\n.tox .tox-insert-table-picker {\n background-color: #fff;\n display: flex;\n flex-wrap: wrap;\n width: 170px;\n}\n.tox .tox-insert-table-picker > div {\n border-color: #eeeeee;\n border-style: solid;\n border-width: 0 1px 1px 0;\n box-sizing: border-box;\n height: 17px;\n width: 17px;\n}\n.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker {\n margin: -4px -4px;\n}\n.tox .tox-insert-table-picker .tox-insert-table-picker__selected {\n background-color: #006ce7;\n border-color: #eeeeee;\n}\n@media (forced-colors: active) {\n .tox .tox-insert-table-picker .tox-insert-table-picker__selected {\n border-color: Highlight;\n filter: contrast(50%);\n }\n}\n.tox .tox-insert-table-picker__label {\n color: rgba(34, 47, 62, 0.7);\n display: block;\n font-size: 14px;\n padding: 4px;\n text-align: center;\n width: 100%;\n}\n.tox:not([dir=rtl]) .tox-insert-table-picker > div:nth-child(10n) {\n border-right: 0;\n}\n.tox[dir=rtl] .tox-insert-table-picker > div:nth-child(10n+1) {\n border-right: 0;\n}\n.tox-mentions__card-common {\n z-index: 1200;\n}\n.tox.tox-mentions__card {\n background: #fff;\n border: 1px solid #eeeeee;\n display: flex;\n padding: 4px 8px;\n}\n.tox.tox-mentions__card .tox-mentions__container {\n display: flex;\n flex-direction: column;\n align-self: center;\n margin: 0 4px;\n}\n.tox .tox-mentions__avatar {\n width: 42px;\n height: 42px;\n border-radius: 50%;\n margin-right: 4px;\n}\n.tox .tox-mentions__username {\n font-size: 14px;\n line-height: 21px;\n}\n.tox .tox-mentions__description {\n font-size: 12px;\n line-height: 21px;\n color: rgba(34, 47, 62, 0.7);\n}\n.tox .tox-collection__item--active .tox-mentions__description {\n color: inherit;\n}
2\n.tox {\n /* stylelint-disable */\n /* stylelint-enable */\n}\n.tox .tox-menu {\n background-color: #fff;\n border: 1px solid transparent;\n border-radius: 6px;\n box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15);\n display: inline-block;\n overflow: hidden;\n vertical-align: top;\n z-index: 1150;\n}\n.tox .tox-menu.tox-collection.tox-collection--list {\n padding: 0 4px;\n}\n.tox .tox-menu.tox-collection.tox-collection--toolbar {\n padding: 8px;\n}\n.tox .tox-menu.tox-collection.tox-collection--grid {\n padding: 8px;\n}\n@media only screen and (min-width: 768px ) {\n .tox .tox-menu .tox-collection__item-label {\n overflow-wrap: break-word;\n word-break: normal;\n }\n .tox .tox-dialog__popups .tox-menu .tox-collection__item-label {\n word-break: break-all;\n }\n}\n.tox .tox-menu__label h1,\n.tox .tox-menu__label h2,\n.tox .tox-menu__label h3,\n.tox .tox-menu__label h4,\n.tox .tox-menu__label h5,\n.tox .tox-menu__label h6,\n.tox .tox-menu__label p,\n.tox .tox-menu__label blockquote,\n.tox .tox-menu__label code {\n margin: 0;\n}\n.tox .tox-menubar {\n background: repeating-linear-gradient(transparent 0 1px, transparent 1px 39px) center top 39px / 100% calc(100% - 39px) no-repeat;\n background-color: #fff;\n display: flex;\n flex: 0 0 auto;\n flex-shrink: 0;\n flex-wrap: wrap;\n grid-column: 1 / -1;\n grid-row: 1;\n padding: 0 11px 0 12px;\n}\n.tox .tox-promotion + .tox-menubar {\n grid-column: 1;\n}\n.tox .tox-promotion {\n background: repeating-linear-gradient(transparent 0 1px, transparent 1px 39px) center top 39px / 100% calc(100% - 39px) no-repeat;\n background-color: #fff;\n grid-column: 2;\n grid-row: 1;\n padding-inline-end: 8px;\n padding-inline-start: 4px;\n padding-top: 5px;\n}\n.tox .tox-promotion-link {\n align-items: unsafe center;\n background-color: #E8F1F8;\n border-radius: 5px;\n color: #086BE6;\n cursor: pointer;\n display: flex;\n font-size: 14px;\n height: 26.6px;\n padding: 4px 8px;\n white-space: nowrap;\n}\n.tox .tox-promotion-link:hover {\n background-color: #B4D7FF;\n}\n.tox .tox-promotion-link:focus {\n background-color: #D9EDF7;\n}\n/* Deprecated. Remove in next major release */\n.tox .tox-mbtn {\n align-items: center;\n background: #fff;\n border: 0;\n border-radius: 3px;\n box-shadow: none;\n color: #222f3e;\n display: flex;\n flex: 0 0 auto;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n height: 28px;\n justify-content: center;\n margin: 5px 1px 6px 0;\n outline: none;\n padding: 0 4px;\n text-transform: none;\n width: auto;\n}\n.tox .tox-mbtn[disabled] {\n background-color: #fff;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n cursor: not-allowed;\n}\n.tox .tox-mbtn:focus:not(:disabled) {\n background: #fff;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n position: relative;\n z-index: 1;\n}\n.tox .tox-mbtn:focus:not(:disabled)::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-mbtn:focus:not(:disabled)::after {\n border: 2px solid highlight;\n }\n}
2\n.tox .tox-mbtn--active,\n.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active) {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-mbtn__select-label {\n cursor: default;\n font-weight: normal;\n margin: 0 4px;\n}\n.tox .tox-mbtn[disabled] .tox-mbtn__select-label {\n cursor: not-allowed;\n}\n.tox .tox-mbtn__select-chevron {\n align-items: center;\n display: flex;\n justify-content: center;\n width: 16px;\n display: none;\n}\n.tox .tox-notification {\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n box-shadow: none;\n box-sizing: border-box;\n display: grid;\n font-size: 14px;\n font-weight: normal;\n grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);\n margin-left: auto;\n margin-right: auto;\n margin-top: 4px;\n opacity: 0;\n padding: 4px;\n transition: transform 100ms ease-in, opacity 150ms ease-in;\n width: max-content;\n}\n.tox .tox-notification a {\n cursor: pointer;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification p {\n font-size: 14px;\n font-weight: normal;\n}\n.tox .tox-notification:focus {\n border-color: #006ce7;\n box-shadow: 0 0 0 1px #006ce7;\n}\n.tox .tox-notification--in {\n opacity: 1;\n}\n.tox .tox-notification--success {\n background-color: #e4eeda;\n border-color: #d7e6c8;\n color: #222f3e;\n}\n.tox .tox-notification--success p {\n color: #222f3e;\n}\n.tox .tox-notification--success a {\n color: #517342;\n}\n.tox .tox-notification--success a:hover,\n.tox .tox-notification--success a:focus {\n color: #24321d;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--success a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #517342;\n outline-offset: 2px;\n}\n.tox .tox-notification--success a:active {\n color: #0d120a;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--success svg {\n fill: #222f3e;\n}\n.tox .tox-notification--error {\n background-color: #f5cccc;\n border-color: #f0b3b3;\n color: #222f3e;\n}\n.tox .tox-notification--error p {\n color: #222f3e;\n}\n.tox .tox-notification--error a {\n color: #77181f;\n}\n.tox .tox-notification--error a:hover,\n.tox .tox-notification--error a:focus {\n color: #220709;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--error a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #77181f;\n outline-offset: 2px;\n}\n.tox .tox-notification--error a:active {\n color: #000000;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--error svg {\n fill: #222f3e;\n}\n.tox .tox-notification--warn,\n.tox .tox-notification--warning {\n background-color: #fff5cc;\n border-color: #fff0b3;\n color: #222f3e;\n}\n.tox .tox-notification--warn p,\n.tox .tox-notification--warning p {\n color: #222f3e;\n}\n.tox .tox-notification--warn a,\n.tox .tox-notification--warning a {\n color: #7a6e25;\n}\n.tox .tox-notification--warn a:hover,\n.tox .tox-notification--warning a:hover,\n.tox .tox-notification--warn a:focus,\n.tox .tox-notification--warning a:focus {\n color: #2c280d;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--warn a:focus-visible,\n.tox .tox-notification--warning a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #7a6e25;\n outline-offset: 2px;\n}\n.tox .tox-notification--warn a:active,\n.tox .tox-notification--warning a:active {\n color: #050502;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--warn svg,\n.tox .tox-notification--warning svg {\n fill: #222f3e;\n}\n.tox .tox-notification--info {\n background-color: #d6e7fb;\n border-color: #c1dbf9;\n color: #222f3e;\n}\n.tox .tox-notification--info p {\n color: #222f3e;\n}\n.tox .tox-notification--info a {\n color: #2a64a6;\n}\n.tox .tox-notification--info a:hover,\n.tox .tox-notification--info a:focus {\n color: #163355;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--info a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #2a64a6;\n outline-offset: 2px;\n}\n.tox .tox-notification--info a:active {\n color: #0b1a2c;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-notification--info svg {\n fill: #222f3e;\n}\n.tox .tox-notification__body {\n align-self: center;
2\n color: #222f3e;\n font-size: 14px;\n grid-column-end: 3;\n grid-column-start: 2;\n grid-row-end: 2;\n grid-row-start: 1;\n text-align: center;\n white-space: normal;\n word-break: break-all;\n word-break: break-word;\n}\n.tox .tox-notification__body > * {\n margin: 0;\n}\n.tox .tox-notification__body > * + * {\n margin-top: 1rem;\n}\n.tox .tox-notification__icon {\n align-self: center;\n grid-column-end: 2;\n grid-column-start: 1;\n grid-row-end: 2;\n grid-row-start: 1;\n justify-self: end;\n}\n.tox .tox-notification__icon svg {\n display: block;\n}\n.tox .tox-notification__dismiss {\n align-self: start;\n grid-column-end: 4;\n grid-column-start: 3;\n grid-row-end: 2;\n grid-row-start: 1;\n justify-self: end;\n}\n.tox .tox-notification .tox-progress-bar {\n grid-column-end: 4;\n grid-column-start: 1;\n grid-row-end: 3;\n grid-row-start: 2;\n justify-self: center;\n}\n.tox .tox-notification-container-dock-fadeout {\n opacity: 0;\n visibility: hidden;\n}\n.tox .tox-notification-container-dock-fadein {\n opacity: 1;\n visibility: visible;\n}\n.tox .tox-notification-container-dock-transition {\n transition: visibility 0s linear 0.3s, opacity 0.3s ease;\n}\n.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein {\n transition-delay: 0s;\n}\n.tox .tox-onboarding-overlay {\n height: 100%;\n background-color: #f0f0f0;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n overflow: auto;\n display: grid;\n justify-content: center;\n align-items: center;\n}\n.tox .tox-onboarding-dialog {\n max-width: 512px;\n background-color: #fff;\n display: flex;\n flex-direction: column;\n box-shadow: 0 16px 16px -10px rgba(34, 47, 62, 0.15), 0 0 40px 1px rgba(34, 47, 62, 0.15);\n border-radius: 12px;\n margin: 8px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-header {\n color: #222f3e;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 20px;\n margin: 24px 0 8px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step {\n display: grid;\n grid-template-columns: min-content 1fr min-content;\n align-items: center;\n margin: 0 24px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step:not(:last-child) {\n border-bottom: 1px solid #e3e3e3;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--number {\n width: 24px;\n aspect-ratio: 1;\n border-radius: 50%;\n border: 1px solid #00AD0E;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 12px;\n font-weight: bold;\n color: #00AD0E;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--body {\n padding: 24px 0 24px 16px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--body-header {\n color: #222f3e;\n font-size: 14px;\n font-weight: bold;\n margin-bottom: 4px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--body-details {\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-step--action {\n padding-left: 24px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-footer {\n background-color: #f0f0f0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom-left-radius: 12px;\n border-bottom-right-radius: 12px;\n}\n.tox .tox-onboarding-dialog .tox-onboarding-footer p {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n font-size: 14px;\n color: rgba(34, 47, 62, 0.7);\n}\n.tox .tox-onboarding-dialog svg {\n width: 24px;\n fill: rgba(34, 47, 62, 0.7);\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin {\n display: grid;\n align-items: center;\n grid-template-columns: min-content 1fr min-content;\n border-bottom: 1px solid #e3e3e3;\n padding: 24px 0;\n margin: 0 16px;\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin--body {\n margin: 0 16px;\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin--body .tox-promotion-dialog-plugin-header {\n color: #222f3e;\n font-size: 14px;\n font-weight: bold;\n margin-bottom: 4px;\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin--body .tox-promotion-dialog-plugin-detail
2s {\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n}\n.tox .tox-promotion-dialog .tox-promotion-dialog-plugin--icon {\n display: grid;\n place-content: center;\n width: 56px;\n height: 56px;\n line-height: 24px;\n font-size: 24px;\n border-radius: 12px;\n background: linear-gradient(180deg, #fff 24%, #f0f0f0 100%);\n box-shadow: 0px 1px 1px 0px #222f3e12, 0px 3px 6px 0px #222f3e06;\n color: #006ce7;\n}\n.tox .tox-promotion-dialog--subtitle {\n margin: 16px;\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n}\n.tox .tox-promotion-dialog--explore {\n text-align: center;\n margin: 16px;\n color: rgba(34, 47, 62, 0.7);\n font-size: 14px;\n}\n.tox .tox-promotion-dialog--explore a {\n color: #006ce7;\n}\n.tox .tox-promotion-dialog--footer {\n background-color: #f0f0f0;\n color: rgba(34, 47, 62, 0.7);\n font-size: 12px;\n text-align: center;\n padding: 16px;\n}\n.tox .tox-promotion-button {\n display: flex;\n align-items: center;\n height: 26.6px;\n line-height: 26.6px;\n font-size: 14px;\n font-weight: bold;\n background-color: #F1EBF9;
2\n color: #851AFF;\n padding: 8px 16px;\n cursor: pointer;\n white-space: nowrap;\n border-radius: 5px;\n}\n.tox .tox-promotion-button:focus {\n outline: 1px solid #851AFF;\n}\n.tox .tox-onboarding-dialog a,\n.tox .tox-promotion-dialog--footer a {\n color: rgba(34, 47, 62, 0.7);\n cursor: pointer;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-onboarding-dialog a:hover,\n.tox .tox-promotion-dialog--footer a:hover,\n.tox .tox-onboarding-dialog a:focus,\n.tox .tox-promotion-dialog--footer a:focus {\n color: #071729;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-onboarding-dialog a:focus-visible,\n.tox .tox-promotion-dialog--footer a:focus-visible {\n border-radius: 1px;\n outline: 2px solid #144782;\n outline-offset: 2px;\n}\n.tox .tox-onboarding-dialog a:active,\n.tox .tox-promotion-dialog--footer a:active {\n color: #000000;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n.tox .tox-pop {\n display: inline-block;\n position: relative;\n}\n.tox .tox-pop--resizing {\n transition: width 0.1s ease;\n}\n.tox .tox-pop--resizing .tox-toolbar,\n.tox .tox-pop--resizing .tox-toolbar__group {\n flex-wrap: nowrap;\n}\n.tox .tox-pop--transition {\n transition: 0.15s ease;\n transition-property: left, right, top, bottom;\n}\n.tox .tox-pop--transition::before,\n.tox .tox-pop--transition::after {\n transition: all 0.15s, visibility 0s, opacity 0.075s ease 0.075s;\n}\n.tox .tox-pop__dialog {\n background-color: #fff;\n border: 1px solid #eeeeee;\n border-radius: 6px;\n box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15);\n min-width: 0;\n overflow: hidden;\n}\n.tox .tox-pop__dialog > *:not(.tox-toolbar) {\n margin: 4px 4px 4px 8px;\n}\n.tox .tox-pop__dialog .tox-toolbar {\n background-color: transparent;\n margin-bottom: -1px;\n}\n.tox .tox-pop::before,\n.tox .tox-pop::after {\n border-style: solid;\n content: \'\';\n display: block;\n height: 0;\n opacity: 1;\n position: absolute;\n width: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-pop::before,\n .tox .tox-pop::after {\n content: none;\n }\n}\n.tox .tox-pop.tox-pop--inset::before,\n.tox .tox-pop.tox-pop--inset::after {\n opacity: 0;\n transition: all 0s 0.15s, visibility 0s, opacity 0.075s ease;\n}\n.tox .tox-pop.tox-pop--bottom::before,\n.tox .tox-pop.tox-pop--bottom::after {\n left: 50%;\n top: 100%;\n}\n.tox .tox-pop.tox-pop--bottom::after {\n border-color: #fff transparent transparent transparent;\n border-width: 8px;\n margin-left: -8px;\n margin-top: -1px;\n}\n.tox .tox-pop.tox-pop--bottom::before {\n border-color: #eeeeee transparent transparent transparent;\n border-width: 9px;\n margin-left: -9px;\n}\n.tox .tox-pop.tox-pop--top::before,\n.tox .tox-pop.tox-pop--top::after {\n left: 50%;\n top: 0;\n transform: translateY(-100%);\n}\n.tox .tox-pop.tox-pop--top::after {\n border-color: transparent transparent #fff transparent;\n border-width: 8px;\n margin-left: -8px;
2\n margin-top: 1px;\n}\n.tox .tox-pop.tox-pop--top::before {\n border-color: transparent transparent #eeeeee transparent;\n border-width: 9px;\n margin-left: -9px;\n}\n.tox .tox-pop.tox-pop--left::before,\n.tox .tox-pop.tox-pop--left::after {\n left: 0;\n top: calc(50% - 1px);\n transform: translateY(-50%);\n}\n.tox .tox-pop.tox-pop--left::after {\n border-color: transparent #fff transparent transparent;\n border-width: 8px;\n margin-left: -15px;\n}\n.tox .tox-pop.tox-pop--left::before {\n border-color: transparent #eeeeee transparent transparent;\n border-width: 10px;\n margin-left: -19px;\n}\n.tox .tox-pop.tox-pop--right::before,\n.tox .tox-pop.tox-pop--right::after {\n left: 100%;\n top: calc(50% + 1px);\n transform: translateY(-50%);\n}\n.tox .tox-pop.tox-pop--right::after {\n border-color: transparent transparent transparent #fff;\n border-width: 8px;\n margin-left: -1px;\n}\n.tox .tox-pop.tox-pop--right::before {\n border-color: transparent transparent transparent #eeeeee;\n border-width: 10px;\n margin-left: -1px;\n}\n.tox .tox-pop.tox-pop--align-left::before,\n.tox .tox-pop.tox-pop--align-left::after {\n left: 20px;\n}\n.tox .tox-pop.tox-pop--align-right::before,\n.tox .tox-pop.tox-pop--align-right::after {\n left: calc(100% - 20px);\n}\n.tox .tox-sidebar-wrap {\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n min-height: 0;\n}\n.tox .tox-sidebar {\n background-color: #f0f0f0;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n}\n.tox .tox-sidebar__slider {\n display: flex;\n overflow: hidden;\n}\n.tox .tox-sidebar__pane-container {\n display: flex;\n}\n.tox .tox-sidebar__pane {\n display: flex;\n}\n.tox .tox-sidebar--sliding-closed {\n opacity: 0;\n}\n.tox .tox-sidebar--sliding-open {\n opacity: 1;\n}\n.tox .tox-sidebar--sliding-growing,\n.tox .tox-sidebar--sliding-shrinking {\n transition: width 0.5s ease, opacity 0.5s ease;\n}\n.tox .tox-selector {\n background-color: #4099ff;\n border-color: #4099ff;\n border-style: solid;\n border-width: 1px;\n box-sizing: border-box;\n display: inline-block;\n height: 10px;\n position: absolute;\n width: 10px;\n}\n.tox.tox-platform-touch .tox-selector {\n height: 12px;\n width: 12px;\n}\n.tox .tox-slider {\n align-items: center;\n display: flex;\n flex: 1;\n height: 24px;\n justify-content: center;\n position: relative;\n}\n.tox .tox-slider__rail {\n background-color: transparent;\n border: 1px solid #eeeeee;\n border-radius: 6px;\n height: 10px;\n min-width: 120px;\n width: 100%;\n}\n.tox .tox-slider__handle {\n background-color: #006ce7;\n border: 2px solid #0054b4;\n border-radius: 6px;\n box-shadow: none;\n height: 24px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n width: 14px;\n}\n.tox .tox-form__controls-h-stack > .tox-slider:not(:first-of-type) {\n margin-inline-start: 8px;\n}\n.tox .tox-form__controls-h-stack > .tox-form__group + .tox-slider {\n margin-inline-start: 32px;\n}\n.tox .tox-form__controls-h-stack > .tox-slider + .tox-form__group {\n margin-inline-start: 32px;\n}\n.tox .tox-toolbar-slider {\n align-items: center;\n display: inline-flex;\n height: 16px;\n}\n.tox .tox-toolbar-slider__input {\n appearance: none;\n background: #eeeeee;\n border-radius: 16px;\n width: 130px;\n height: 2px;\n}\n.tox .tox-toolbar-slider__input::-webkit-slider-runnable-track {\n background-color: transparent;\n height: 16px;\n}\n.tox .tox-toolbar-slider__input::-moz-range-track {\n background-color: transparent;\n height: 16px;\n}\n.tox .tox-toolbar-slider__input::-webkit-slider-thumb {\n -webkit-appearance: none;\n background-color: #006ce7;\n border-radius: 16px;\n border: none;\n height: 16px;\n width: 16px;\n}\n.tox .tox-toolbar-slider__input::-moz-range-thumb {\n appearance: none;\n background-color: #006ce7;\n border-radius: 16px;\n border: none;\n height: 16px;\n width: 16px;\n}\n.tox .tox-toolbar-slider__input:focus-visible {\n outline: none;\n}\n.tox .tox-toolbar-slider__input:focus::-webkit-slider-thumb {\n background-color: #0060ce;\n box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #006ce7;\n}
2\n.tox .tox-toolbar-slider__input:focus::-moz-range-thumb {\n background-color: #0060ce;\n box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #006ce7;\n}\n.tox .tox-toolbar-slider__input:hover::-webkit-slider-thumb {\n background-color: #0060ce;\n}\n.tox .tox-toolbar-slider__input:hover::-moz-range-thumb {\n background-color: #0060ce;\n}\n.tox .tox-toolbar-slider__input:active::-webkit-slider-thumb {\n background-color: #0054b4;\n}\n.tox .tox-toolbar-slider__input:active::-moz-range-thumb {\n background-color: #0054b4;\n}\n.tox .tox-toolbar-slider__input[disabled]::-webkit-slider-thumb {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.tox .tox-toolbar-slider__input[disabled]::-moz-range-thumb {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.tox .tox-source-code {\n overflow: auto;\n}\n.tox .tox-spinner {\n display: flex;\n}\n.tox .tox-spinner > div {\n animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both;\n background-color: rgba(34, 47, 62, 0.7);\n border-radius: 100%;\n height: 8px;\n width: 8px;\n}\n.tox .tox-spinner > div:nth-child(1) {\n animation-delay: -0.32s;\n}\n.tox .tox-spinner > div:nth-child(2) {\n animation-delay: -0.16s;\n}\n@keyframes tam-bouncing-dots {\n 0%,\n 80%,\n 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1);\n }\n}\n.tox:not([dir=rtl]) .tox-spinner > div:not(:first-child) {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-spinner > div:not(:first-child) {\n margin-right: 4px;\n}\n.tox .tox-statusbar {\n align-items: center;\n background-color: #fff;\n border-top: 1px solid #e3e3e3;\n color: rgba(34, 47, 62, 0.7);\n display: flex;\n flex: 0 0 auto;\n font-size: 14px;\n font-weight: normal;\n height: 25px;\n overflow: hidden;\n padding: 0 8px;\n position: relative;\n text-transform: none;\n}\n.tox .tox-statusbar__path {\n display: flex;\n flex: 1 1 auto;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tox .tox-statusbar__right-container {\n display: flex;\n justify-content: flex-end;\n white-space: nowrap;\n}\n.tox .tox-statusbar__help-text {\n text-align: center;\n}\n.tox .tox-statusbar__text-container {\n align-items: flex-start;\n display: flex;\n flex: 1 1 auto;\n height: 16px;\n justify-content: space-between;\n}\n@media only screen and (min-width: 768px ) {\n .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__help-text,\n .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__right-container,\n .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__path {\n flex: 0 0 calc(100% / 3);\n }\n}\n.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end {\n justify-content: flex-end;\n}\n.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start {\n justify-content: flex-start;\n}\n.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around {\n justify-content: space-around;\n}\n.tox .tox-statusbar__path > * {\n display: inline;\n white-space: nowrap;\n}\n.tox .tox-statusbar__wordcount {\n flex: 0 0 auto;\n margin-left: 1ch;\n}\n@media only screen and (max-width: 767px ) {\n .tox .tox-statusbar__text-container .tox-statusbar__help-text {\n display: none;\n }\n .tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child {\n display: block;\n }\n}\n.tox .tox-statusbar a,\n.tox .tox-statusbar__path-item,\n.tox .tox-statusbar__wordcount {\n color: rgba(34, 47, 62, 0.7);\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n}\n.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),\n.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]) {\n color: #222f3e;\n cursor: pointer;\n}\n.tox .tox-statusbar a:focus-visible::after,\n.tox .tox-statusbar__path-item:focus-visible::after,\n.tox .tox-statusbar__wordcount:focus-visible::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-statusbar a:focus-visible::after,\n .tox .tox-statusbar__path-item:focus-visible::after,\n .tox .tox-statusbar__wordcount:focus-visible::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-statusbar__branding svg {\n fill: rgba(34, 47, 62, 0.8);\n height: 1em;\n margin-left: 0.3em;\n width: auto;\n}\n@media (forced-colors: active) {\n .tox .tox-statusbar__branding svg {\n fill: currentColor;\n }\n}\n.tox .tox-statusbar__branding a {\n align-items: center;\n display: inline-flex;\n}\n.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,\n.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg {\n fill: #222f3e;\n}\n.tox .tox-statusbar__resize-cursor-default {\n cursor: ns-resize;\n}\n.tox .tox-statusbar__resize-cursor-both {\n cursor: nwse-resize;\n}\n.tox .tox-statusbar__resize-handle {\n align-items: flex-end;\n align-self: stretch;\n display: flex;\n flex: 0 0 auto;\n justify-content: flex-end;\n margin-bottom: 3px;\n margin-left: 4px;\n margin-right: calc(3px - 8px);\n margin-top: 3px;\n padding-bottom: 0;\n padding-left: 0;\n padding-right: 0;\n position: relative;\n}\n.tox .tox-statusbar__resize-handle svg {\n display: block;\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-statusbar__resize-handle:hover svg,\n.tox .tox-statusbar__resize-handle:focus svg {\n fill: #222f3e;\n}\n.tox .tox-statusbar__resize-handle:focus-visible {\n background-color: transparent;\n border-radius: 1px 1px 5px 1px;\n box-shadow: 0 0 0 2px transparent;\n}\n.tox .tox-statusbar__resize-handle:focus-visible::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-statusbar__resize-handle:focus-visible::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-statusbar__resize-handle:only-child {\n margin-left: auto;\n}\n.tox:not([dir=rtl]) .tox-statusbar__path > * {\n margin-right: 4px;\n}\n.tox:not([dir=rtl]) .tox-statusbar__branding {\n margin-left: 2ch;\n}\n.tox[dir=rtl] .tox-statusbar {\n flex-direction: row-reverse;\n}\n.tox[dir=rtl] .tox-statusbar__path > * {\n margin-left: 4px;\n}\n.tox[dir=rtl] .tox-statusbar__branding svg {\n margin-left: 0;\n margin-right: 0.3em;\n}\n.tox .tox-throbber {\n z-index: 1299;\n}\n.tox .tox-throbber__busy-spinner {\n align-items: center;\n background-color: rgba(255, 255, 255, 0.6);\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n.tox .tox-tbtn {\n align-items: center;\n background: #fff;\n border: 0;\n border-radius: 3px;\n box-shadow: none;\n color: #222f3e;\n display: flex;\n flex: 0 0 auto;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n height: 28px;\n justify-content: center;\n margin: 6px 1px 5px 0;\n outline: none;\n padding: 0;\n text-transform: none;\n width: 34px;\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn:hover,\n .tox .tox-tbtn.tox-tbtn:hover {\n outline: 1px dashed currentColor;\n }\n .tox .tox-tbtn.tox-tbtn--active,\n .tox .tox-tbtn.tox-tbtn--enabled,\n .tox .tox-tbtn.tox-tbtn--enabled:hover,\n .tox .tox-tbtn.tox-tbtn--enabled:focus,\n .tox .tox-tbtn:focus:not(.tox-tbtn--disabled) {\n outline: 1px solid currentColor;\n position: relative;\n }\n}\n.tox .tox-tbtn svg {\n display: block;\n fill: #222f3e;\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn svg {\n fill: currentColor !important;\n }\n .tox .tox-tbtn svg.tox-tbtn--enabled,\n .tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled) {\n fill: currentColor !important;\n }\n .tox .tox-tbtn svg.tox-tbtn--disabled,\n .tox .tox-tbtn svg.tox-tbtn--disabled:hover,\n .tox .tox-tbtn svg .tox-tbtn:disabled,\n .tox .tox-tbtn svg .tox-tbtn:disabled:hover {\n filter: contrast(0%);\n }\n}\n.tox .tox-tbtn.tox-tbtn-more {\n padding-left: 5px;\n padding-right: 5px;\n width: inherit;\n}\n.tox .tox-tbtn:focus {\n background: #fff;\n border: 0;\n box-shadow: none;\n position: relative;\n z-index: 1;\n}\n.tox .tox-tbtn:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-tbtn:hover {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tbtn:hover svg {\n fill: #222f3e;\n}\n.tox .tox-tbtn:active {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tbtn:active svg {\n fill: #222f3e;\n}\n.tox .tox-tbtn--disabled .tox-tbtn--enabled svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-tbtn--disabled,\n.tox .tox-tbtn--disabled:hover,\n.tox .tox-tbtn:disabled,\n.tox .tox-tbtn:disabled:hover {\n background: #fff;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-tbtn--disabled svg,\n.tox .tox-tbtn--disabled:hover svg,\n.tox .tox-tbtn:disabled svg,\n.tox .tox-tbtn:disabled:hover svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-tbtn--active,\n.tox .tox-tbtn--enabled,\n.tox .tox-tbtn--enabled:hover,\n.tox .tox-tbtn--enabled:focus {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n position: relative;\n}\n.tox .tox-tbtn--active > *,\n.tox .tox-tbtn--enabled > *,\n.tox .tox-tbtn--enabled:hover > *,\n.tox .tox-tbtn--enabled:focus > * {\n transform: none;\n}\n.tox .tox-tbtn--active svg,\n.tox .tox-tbtn--enabled svg,\n.tox .tox-tbtn--enabled:hover svg,\n.tox .tox-tbtn--enabled:focus svg {\n fill: #222f3e;\n}\n.tox .tox-tbtn--active.tox-tbtn--disabled svg,\n.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,\n.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,\n.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-tbtn--enabled:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn--enabled:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) {\n color: #222f3e;\n}\n.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg {\n fill: #222f3e;\n}\n.tox .tox-tbtn:active > * {\n transform: none;\n}\n.tox .tox-tbtn--md {\n height: 42px;\n width: 51px;\n}\n.tox .tox-tbtn--lg {\n flex-direction: column;\n height: 56px;\n width: 68px;\n}\n.tox .tox-tbtn--return {\n align-self: stretch;\n height: unset;\n width: 16px;\n}\n.tox .tox-tbtn--labeled {\n padding: 0 4px;\n width: unset;\n}\n.tox .tox-tbtn__vlabel {\n display: block;\n font-size: 10px;\n font-weight: normal;\n letter-spacing: -0.025em;\n margin-bottom: 4px;\n white-space: nowrap;\n}\n.tox .tox-label--context-toolbar {\n margin: 6px 1px 5px 0;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n}\n.tox .tox-number-input {\n background: #f7f7f7;\n border-radius: 3px;\n display: flex;\n margin: 6px 1px 5px 0;\n position: relative;\n width: auto;\n}\n.tox .tox-number-input:focus {\n background: #f7f7f7;\n}\n.tox .tox-number-input:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-number-input .tox-input-wrapper {\n display: flex;\n pointer-events: none;\n position: relative;\n text-align: center;\n}\n.tox .tox-number-input .tox-input-wrapper:focus {\n background-color: #f7f7f7;\n z-index: 1;\n}\n.tox .tox-number-input .tox-input-wrapper:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input .tox-input-wrapper:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-number-input .tox-input-wrapper:has(input:focus)::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input .tox-input-wrapper:has(input:focus)::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-number-input input {\n border-radius: 3px;\n color: #222f3e;\n font-size: 14px;\n margin: 2px 0;\n pointer-events: all;\n position: relative;\n width: 60px;\n}\n.tox .tox-number-input input:hover {\n background: #f0f0f0;\n color: #222f3e;\n}\n.tox .tox-number-input input:focus {\n background-color: #f7f7f7;\n}\n.tox .tox-number-input input:disabled {\n background: #fff;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n cursor: not-allowed;\n}\n.tox .tox-number-input button {\n color: #222f3e;\n height: 28px;\n position: relative;\n text-align: center;\n width: 24px;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input button:hover,\n .tox .tox-number-input button:focus,\n .tox .tox-number-input button:active {\n outline: 1px solid currentColor !important;\n }\n}\n.tox .tox-number-input button svg {\n display: block;\n fill: #222f3e;\n margin: 0 auto;\n transform: scale(0.67);\n}\n@media (forced-colors: active) {\n .tox .tox-number-input button svg,\n .tox .tox-number-input button svg:active,\n .tox .tox-number-input button svg:hover {\n fill: currentColor !important;\n }\n .tox .tox-number-input button svg:disabled {\n filter: contrast(0);\n }\n}\n.tox .tox-number-input button:focus {\n background: #f7f7f7;\n z-index: 1;\n}\n.tox .tox-number-input button:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-number-input button:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-number-input button:hover {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-number-input button:hover svg {\n fill: #222f3e;\n}\n.tox .tox-number-input button:active {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-number-input button:active svg {\n fill: #222f3e;\n}\n.tox .tox-number-input button:disabled {\n background: #fff;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-number-input button:disabled svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-number-input button.minus {\n border-radius: 3px 0 0 3px;\n}\n.tox .tox-number-input button.plus {\n border-radius: 0 3px 3px 0;\n}\n.tox .tox-number-input:focus:not(:active) > button,\n.tox .tox-number-input:focus:not(:active) > .tox-input-wrapper {\n background: #f7f7f7;\n}\n.tox .tox-tbtn--select {\n margin: 6px 1px 5px 0;\n padding: 0 4px;\n width: auto;\n}\n.tox .tox-tbtn--bordered,\n.tox .tox-tbtn--bordered:focus,\n.tox .tox-tbtn--bordered:hover {\n border: 1px solid #eeeeee;\n}\n.tox .tox-tbtn__select-label {\n cursor: default;\n font-weight: normal;\n height: initial;\n margin: 0 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tox .tox-tbtn__select-chevron {\n align-items: center;\n display: flex;\n justify-content: center;\n width: 16px;\n}\n.tox .tox-tbtn__select-chevron svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n@media (forced-colors: active) {\n .tox .tox-tbtn__select-chevron svg {\n fill: currentColor;\n }\n}\n.tox .tox-tbtn--bespoke {\n background: #f7f7f7;\n}\n.tox .tox-tbtn--bespoke:focus {\n background: #f7f7f7;\n}\n.tox .tox-tbtn--bespoke + .tox-tbtn--bespoke {\n margin-inline-start: 4px;\n}\n.tox .tox-tbtn--bespoke .tox-tbtn__select-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 7em;
2\n}\n.tox .tox-tbtn--disabled .tox-tbtn__select-label,\n.tox .tox-tbtn--select:disabled .tox-tbtn__select-label {\n cursor: not-allowed;\n}\n.tox .tox-split-button {\n border: 0;\n border-radius: 3px;\n box-sizing: border-box;\n display: flex;\n margin: 6px 1px 5px 0;\n}\n.tox .tox-split-button:hover {\n box-shadow: 0 0 0 1px #f0f0f0 inset;\n}\n.tox .tox-split-button:focus {\n background: #fff;\n box-shadow: none;\n color: #222f3e;\n position: relative;\n z-index: 1;\n}\n.tox .tox-split-button:focus::after {\n pointer-events: none;\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n@media (forced-colors: active) {\n .tox .tox-split-button:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-split-button > * {\n border-radius: 0;\n}\n.tox .tox-split-button > *:nth-child(1) {\n border-bottom-left-radius: 3px;\n border-top-left-radius: 3px;\n}\n.tox .tox-split-button > *:nth-child(2) {\n border-bottom-right-radius: 3px;\n border-top-right-radius: 3px;\n}\n.tox .tox-split-button__chevron {\n width: 16px;\n}\n.tox .tox-split-button__chevron svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n@media (forced-colors: active) {\n .tox .tox-split-button__chevron svg {\n fill: currentColor;\n }\n}\n.tox .tox-split-button .tox-tbtn {\n margin: 0;\n}\n.tox .tox-split-button:focus .tox-tbtn {\n background-color: transparent;\n}\n.tox .tox-split-button.tox-tbtn--disabled:hover,\n.tox .tox-split-button.tox-tbtn--disabled:focus,\n.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,\n.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus {\n background: #fff;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);\n}\n.tox.tox-platform-touch .tox-split-button .tox-tbtn--select {\n padding: 0 0px;\n}\n.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child {\n width: 30px;\n}\n.tox.tox-platform-touch .tox-split-button__chevron {\n width: 20px;\n}\n.tox .tox-split-button.tox-tbtn--disabled svg .tox-icon-text-color__color,\n.tox .tox-split-button.tox-tbtn--disabled svg .tox-icon-highlight-bg-color__color {\n opacity: 0.3;\n}\n.tox .tox-toolbar-overlord {\n background-color: #fff;\n}\n.tox .tox-toolbar,\n.tox .tox-toolbar__primary,\n.tox .tox-toolbar__overflow {\n background-attachment: local;\n background-color: #fff;\n background-image: repeating-linear-gradient(#e3e3e3 0 1px, transparent 1px 39px);\n background-position: center top 40px;\n background-repeat: no-repeat;\n background-size: calc(100% - 11px * 2) calc(100% - 41px);\n display: flex;\n flex: 0 0 auto;\n flex-shrink: 0;\n flex-wrap: wrap;\n padding: 0 0px;\n transform: perspective(1px);\n}\n.tox .tox-toolbar-overlord > .tox-toolbar,\n.tox .tox-toolbar-overlord > .tox-toolbar__primary,\n.tox .tox-toolbar-overlord > .tox-toolbar__overflow {\n background-position: center top 0px;\n background-size: calc(100% - 11px * 2) calc(100% - 0px);\n}\n.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed {\n height: 0;\n opacity: 0;\n padding-bottom: 0;\n padding-top: 0;\n visibility: hidden;\n}\n.tox .tox-toolbar__overflow--growing {\n transition: height 0.3s ease, opacity 0.2s linear 0.1s;\n}\n.tox .tox-toolbar__overflow--shrinking {\n transition: opacity 0.3s ease, height 0.2s linear 0.1s, visibility 0s linear 0.3s;\n}\n.tox .tox-toolbar-overlord,\n.tox .tox-anchorbar {\n grid-column: 1 / -1;\n}\n.tox .tox-menubar + .tox-toolbar,\n.tox .tox-menubar + .tox-toolbar-overlord {\n border-top: 1px solid transparent;\n margin-top: -1px;\n padding-bottom: 1px;\n padding-top: 1px;\n}\n@media (forced-colors: active) {\n .tox .tox-menubar + .tox-toolbar,\n .tox .tox-menubar + .tox-toolbar-overlord {\n outline: 1px solid currentColor;\n }\n}\n.tox .tox-toolbar--scrolling {\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.tox .tox-pop .tox-toolbar {\n border-width: 0;\n}\n.tox .tox-toolbar--no-divider {\n background-image: none;\n}\n.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,\n.tox .tox-toolbar-overlord .tox-toolbar__primary {\n background-position: center top 39px;\n}\n.tox .tox-editor-header > .tox-toolbar--scrolling,\n.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child {\n background-image: none;\n}\n.tox .tox-focusable-wrapper {\n border: 1px solid transparent;\n margin-right: 2px;\n pointer-events: none;\n}\n.tox .tox-focusable-wrapper .tox-textfield-size {\n pointer-events: all;\n}\n.tox .tox-focusable-wrapper:focus {\n background-color: #f7f7f7;\n border-radius: 6px;\n border-style: solid;\n border-width: 1px;\n}\n.tox.tox-tinymce-aux .tox-toolbar__overflow {\n background-color: #fff;\n background-position: center top 43px;\n background-size: calc(100% - 8px * 2) calc(100% - 51px);\n border: none;\n border-radius: 6px;\n box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15);
2\n overscroll-behavior: none;\n padding: 4px 0;\n}\n@media (forced-colors: active) {\n .tox.tox-tinymce-aux .tox-toolbar__overflow {\n border: solid;\n }\n}\n.tox-pop .tox-pop__dialog .tox-toolbar {\n background-position: center top 43px;\n background-size: calc(100% - 11px * 2) calc(100% - 51px);\n padding: 4px 0;\n}\n.tox-context-form__group {\n display: flex;\n align-items: center;\n}\n.tox .tox-toolbar__group {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n margin: 0 0;\n padding: 0 11px 0 12px;\n}\n.tox .tox-toolbar__group--pull-right {\n margin-left: auto;\n}\n.tox .tox-toolbar--scrolling .tox-toolbar__group {\n flex-shrink: 0;\n flex-wrap: nowrap;\n}\n.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type) {\n border-right: 1px solid transparent;\n}\n.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type) {\n border-left: 1px solid transparent;\n}\n.tox .tox-tooltip {\n display: inline-block;\n max-width: 15em;\n padding: 8px;\n /*\n * The pointer-events: none is designed to make mouse events bleed through the tooltip\n * to the underlying items. For example, a mouse hovering over a tooltip that hovers over\n * another item should trigger the hover of the item obscured by the tooltip, even though\n * the tooltip is on top\n */\n pointer-events: none;\n position: relative;\n width: max-content;\n z-index: 1150;\n}\n.tox .tox-tooltip__body {\n background-color: #222f3e;\n border-radius: 6px;\n box-shadow: none;\n color: #fff;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n overflow-wrap: break-word;\n padding: 4px 6px;\n text-transform: none;\n}\n@media (forced-colors: active) {\n .tox .tox-tooltip__body {\n outline: outset 1px;\n }\n}\n.tox .tox-tooltip__arrow {\n position: absolute;\n}\n.tox .tox-tooltip--down .tox-tooltip__arrow {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-top: 8px solid #222f3e;\n bottom: 0;\n left: 50%;\n position: absolute;\n transform: translateX(-50%);\n}\n.tox .tox-tooltip--up .tox-tooltip__arrow {\n border-bottom: 8px solid #222f3e;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n left: 50%;\n position: absolute;\n top: 0;\n transform: translateX(-50%);\n}\n.tox .tox-tooltip--right .tox-tooltip__arrow {\n border-bottom: 8px solid transparent;\n border-left: 8px solid #222f3e;\n border-top: 8px solid transparent;\n position: absolute;\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n}\n.tox .tox-tooltip--left .tox-tooltip__arrow {\n border-bottom: 8px solid transparent;\n border-right: 8px solid #222f3e;\n border-top: 8px solid transparent;\n left: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n.tox .tox-tree {\n display: flex;\n flex-direction: column;\n}\n.tox .tox-tree .tox-trbtn {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 4px;\n box-shadow: none;\n color: #222f3e;\n display: flex;\n flex: 0 0 auto;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n height: 28px;\n margin-bottom: 4px;\n margin-top: 4px;\n outline: none;\n overflow: hidden;\n padding: 0;\n padding-left: 8px;\n text-transform: none;\n}\n.tox .tox-tree .tox-trbtn .tox-tree__label {\n cursor: default;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tox .tox-tree .tox-trbtn svg {\n display: block;\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:focus {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n}\n.tox .tox-tree .tox-trbtn:hover {\n background: #f0f0f0;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:hover svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:active {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:active svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn--disabled,\n.tox .tox-tree .tox-trbtn--disabled:hover,\n.tox .tox-tree .tox-trbtn:disabled,\n.tox .tox-tree .tox-trbtn:disabled:hover {\n background: transparent;\n border: 0;\n box-shadow: none;\n color: rgba(34, 47, 62, 0.5);
2\n cursor: not-allowed;\n}\n.tox .tox-tree .tox-trbtn--disabled svg,\n.tox .tox-tree .tox-trbtn--disabled:hover svg,\n.tox .tox-tree .tox-trbtn:disabled svg,\n.tox .tox-tree .tox-trbtn:disabled:hover svg {\n fill: rgba(34, 47, 62, 0.5);\n}\n.tox .tox-tree .tox-trbtn--enabled,\n.tox .tox-tree .tox-trbtn--enabled:hover {\n background: #a6ccf7;\n border: 0;\n box-shadow: none;\n color: #222f3e;\n}\n.tox .tox-tree .tox-trbtn--enabled > *,\n.tox .tox-tree .tox-trbtn--enabled:hover > * {\n transform: none;\n}\n.tox .tox-tree .tox-trbtn--enabled svg,\n.tox .tox-tree .tox-trbtn--enabled:hover svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) {\n color: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-trbtn:active > * {\n transform: none;\n}\n.tox .tox-tree .tox-trbtn--return {\n align-self: stretch;\n height: unset;\n width: 16px;\n}\n.tox .tox-tree .tox-trbtn--labeled {\n padding: 0 4px;\n width: unset;\n}\n.tox .tox-tree .tox-trbtn__vlabel {\n display: block;\n font-size: 10px;\n font-weight: normal;\n letter-spacing: -0.025em;\n margin-bottom: 4px;\n white-space: nowrap;\n}\n.tox .tox-tree .tox-tree--directory {\n display: flex;\n flex-direction: column;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label {\n font-weight: bold;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn {\n margin-left: auto;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg {\n fill: transparent;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) {\n background-color: transparent;\n color: #222f3e;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron {\n margin-right: 6px;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron,\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--shrinking) .tox-chevron {\n transition: transform 0.5s ease-in-out;\n}\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron,\n.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--open) .tox-chevron {\n transform: rotate(90deg);\n}\n.tox .tox-tree .tox-tree--leaf__label {\n font-weight: normal;\n}\n.tox .tox-tree .tox-tree--leaf__label .tox-mbtn {\n margin-left: auto;\n}\n.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg {\n fill: transparent;\n}\n.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,\n.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) {\n background-color: transparent;\n color: #222f3e;\n}\n.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg {\n fill: #222f3e;\n}\n.tox .tox-tree .tox-icon-custom-state {\n flex-grow: 1;\n display: flex;\n justify-content: flex-end;\n}\n.tox .tox-tree .tox-tree--directory__children {\n overflow: hidden;\n padding-left: 16px;\n}\n.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,\n.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking {\n transition: height 0.5s ease-in-out;\n}\n.tox .tox-tree .tox-trbtn.tox-tree--leaf__label {\n display: flex;\n justify-content: space-between;\n}\n.tox .tox-revisionhistory__pane {\n padding: 0 !important;\n /* Override the default padding of tox-view__pane */\n}\n.tox .tox-revisionhistory__container {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.tox .tox-revisionhistory {\n background-color: #fff;
2\n border-top: 1px solid #f0f0f0;\n display: flex;\n flex: 1;\n height: 100%;\n margin-top: 8px;\n overflow-x: auto;\n overflow-y: hidden;\n position: relative;\n width: 100%;\n}\n.tox .tox-revisionhistory--align-right {\n margin-left: auto;\n}\n.tox .tox-revisionhistory__iframe {\n flex: 1;\n}\n.tox .tox-revisionhistory__sidebar {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-width: 248px;\n width: 316px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title {\n background-color: #fff;\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n color: #222f3e;\n font-size: 20px;\n font-weight: 400;\n line-height: 28px;\n padding: 12px;\n z-index: 1;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions {\n background-color: #f0f0f0;\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 12px;\n overflow-y: auto;\n padding: 10px 12px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus {\n height: 100%;\n position: relative;\n z-index: 1;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 ;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n border-radius: 6px;\n bottom: 1px;\n left: 1px;\n right: 1px;\n top: 1px;\n}\n@media (forced-colors: active) {\n .tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card {\n background-color: #fff;\n border: 1px solid #f0f0f0;\n border-radius: 6px;\n color: #222f3e;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n font-size: 14px;\n gap: 12px;\n padding: 12px;\n width: 100%;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover {\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus {\n position: relative;\n z-index: 1;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 #006ce7;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n border-radius: 6px;\n box-shadow: 0 0 0 2px #006ce7;\n box-shadow: 0 0 0 2px #006ce7 !important;\n}\n@media (forced-colors: active) {\n .tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected {\n background-color: #fff5cc;\n box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1);\n position: relative;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected::after {\n border-radius: 3px;\n bottom: 0;\n box-shadow: 0 0 0 2px #006ce7 #e3b82a;\n content: \'\';\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n border-radius: 6px;\n box-shadow: 0 0 0 2px #e3b82a;\n}\n@media (forced-colors: active) {\n .tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected::after {\n border: 2px solid highlight;\n }\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date {\n display: flex;\n gap: 12px;\n justify-content: space-between;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date-label {\n font-size: 16px;\n line-height: 24px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-label {\n font-size: 12px;\n font-weight: 600;\n line-height: 24px;\n padding: 0;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author {\n align-items: center;\n display: flex;\n flex: 1 0 0;\n gap: 8px;\n height: 36px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n font-weight: 700;\n line-height: 18px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__avatar {\n border-radius: 50%;\n height: 36px;\n object-fit: cover;\n vertical-align: middle;\n width: 36px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision {\n color: rgba(34, 47, 62, 0.7);\n font-size: 16px;\n line-height: 24px;\n padding: 5px 5.5px;\n}\n.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-check-icon {\n color: #222f3e;\n height: 24px;\n}\n[data-mce-name="uploadcare-enhance-filter"] .color-swatch-remove-color path {\n fill: #c00;\n stroke: #c00;\n}\n.tox .tox-view-wrap,\n.tox .tox-view-wrap__slot-container {\n background-color: #fff;\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n}\n.tox .tox-view {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n overflow: hidden;\n}\n.tox .tox-view__header {\n align-items: center;\n display: flex;\n font-size: 16px;\n justify-content: space-between;\n padding: 10px 10px 2px 10px;\n position: relative;\n}\n.tox .tox-view__label {\n color: #222f3e;\n font-weight: bold;\n line-height: 24px;\n padding: 4px 16px;\n text-align: center;\n white-space: nowrap;\n}\n.tox .tox-view__label--normal {\n font-size: 16px;\n}\n.tox .tox-view__label--large {\n font-size: 20px;\n}\n.tox .tox-view--mobile.tox-view__header,\n.tox .tox-view--mobile.tox-view__toolbar {\n padding: 8px;\n}\n.tox .tox-view--scrolling {\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.tox .tox-view__toolbar {\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: space-between;\n overflow-x: auto;\n padding: 10px 10px 2px 10px;\n}\n.tox .tox-view__toolbar__group {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n.tox .tox-view__header-start,\n.tox .tox-view__header-end {\n display: flex;\n}\n.tox .tox-view__pane {\n height: 100%;\n padding: 8px;\n position: relative;\n width: 100%;\n}\n.tox .tox-view__pane_panel {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n}\n.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start > *,\n.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end > * {\n margin-left: 8px;\n}\n.tox[dir=rtl] .tox-view__header .tox-view__header-start > *,\n.tox[dir=rtl] .tox-view__header .tox-view__header-end > * {\n margin-right: 8px;\n}\n.tox .tox-well {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n padding: 8px;\n width: 100%;\n}\n.tox .tox-well > *:first-child {\n margin-top: 0;\n}\n.tox .tox-well > *:last-child {\n margin-bottom: 0;\n}\n.tox .tox-well > *:only-child {\n margin: 0;\n}\n.tox .tox-custom-editor {\n border: 1px solid #eeeeee;\n border-radius: 6px;\n display: flex;\n flex: 1;\n overflow: hidden;\n position: relative;\n}
2\n/* stylelint-disable */\n.tox {\n /* stylelint-enable */\n}\n.tox .tox-dialog-loading::before {\n background-color: rgba(0, 0, 0, 0.5);\n content: "";\n height: 100%;\n position: absolute;\n width: 100%;\n z-index: 1000;\n}\n.tox .tox-tab {\n cursor: pointer;\n}\n.tox .tox-dialog__content-js {\n display: flex;\n flex: 1;\n}\n.tox .tox-dialog__body-content .tox-collection {\n display: flex;\n flex: 1;\n}\n'],sourceRoot:""}]);const p=u},314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},417(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},354(e){"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),a="/*# ".concat(r," */");return[t].concat([a]).join("\n")}return[t].join("\n")}},689(e){e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=o,this.exclude=r,this.iframesTimeout=a}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(function(t){var n=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||n||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=void 0;try{var r=e.contentWindow;if(o=r.document,!r||!o)throw new Error("iframe inaccessible")}catch(e){n()}o&&t(o)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var o=this,r=!1,a=null,i=function i(){if(!r){r=!0,clearTimeout(a);try{o.isIframeBlank(e)||(e.removeEventListener("load",i),o.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",i),a=setTimeout(i,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n
vendor: 10,047 bytes, line 2
2):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,o=0;this.forEachIframe(e,function(){return!0},function(e){o++,n.waitForIframes(e.querySelector("html"),function(){--o||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,n,o){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=t.querySelectorAll("iframe"),l=i.length,s=0;i=Array.prototype.slice.call(i);var c=function(){--l<=0&&a(s)};l||c(),i.forEach(function(t){e.matches(t,r.exclude)?c():r.onIframeReady(t,function(e){n(t)&&(s++,o(e)),c()},c)})}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:(null===t||e.nextNode())&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,n,o){var r=!1,a=!1;return o.forEach(function(e,t){e.val===n&&(r=t,a=e.handled)}),this.compareNodeIframe(e,t,n)?(!1!==r||a?!1===r||a||(o[r].handled=!0):o.push({val:n,handled:!0}),!0):(!1===r&&o.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,o){var r=this;e.forEach(function(e){e.handled||r.getIframeContents(e.val,function(e){r.createInstanceOnIframe(e).forEachNode(t,n,o)})})}},{key:"iterateThroughNodes",value:function(e,t,n,o,r){for(var a=this,i=this.createIterator(t,e,o),l=[],s=[],c=void 0,u=void 0,d=function(){var e=a.getIteratorNode(i);return u=e.prevNode,c=e.node};d();)this.iframes&&this.forEachIframe(t,function(e){return a.checkIframeFilter(c,u,e,l)},function(t){a.createInstanceOnIframe(t).forEachNode(e,function(e){return s.push(e)},o)}),s.push(c);s.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(l,e,n,o),r()}},{key:"forEachNode",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=this.getContexts(),i=a.length;i||r(),a.forEach(function(a){var l=function(){o.iterateThroughNodes(e,a,t,n,function(){--i<=0&&r()})};o.iframes?o.waitForIframes(a,l):l()})}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,o=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(o){var r=!1;return n.every(function(t){return!o.call(e,t)||(r=!0,!1)}),r}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(a,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",o=this.opt.log;this.opt.debug&&"object"===(void 0===o?"undefined":e(o))&&"function"==typeof o[n]&&o[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",o=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var r in t)if(t.hasOwnProperty(r)){var a=t[r],i="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),l="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(a):this.escapeStr(a);""!==i&&""!==l&&(e=e.replace(new RegExp("("+this.escapeStr(i)+"|"+this.escapeStr(l)+")","gm"+n),o+"("+this.processSynomyms(i)+"|"+this.processSynomyms(l)+")"+o))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":"�"})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":"�"})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var o=n.charAt(t+1);return/[(|)\\]/.test(o)||""===o?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aà áảãạÄằắẳẵặâầấẩẫáºÃ¤Ã¥ÄÄ
","AÃÃẢÃẠÄẰẮẲẴẶÃẦẤẨẪẬÃÃ
ÄÄ","cçÄÄ","CÃÄÄ","dÄÄ","DÄÄ","eèéẻẽẹêá»áº¿á»á»
á»Ã«ÄÄÄ","EÃÃẺẼẸÃá»áº¾á»á»á»ÃÄÄÄ","iìÃá»Ä©á»Ã®Ã¯Ä«","IÃÃá»Ä¨á»ÃÃĪ","lÅ","LÅ","nñÅÅ","NÃÅÅ","oòóá»Ãµá»Ã´á»á»á»á»á»Æ¡á»á»¡á»á»á»£Ã¶Ã¸Å","OÃÃá»Ãá»Ãá»á»á»á»á»Æ á»á» á»á»á»¢ÃÃÅ","rÅ","RÅ","sÅ¡ÅÈÅ","SÅ ÅÈÅ","tÅ¥ÈÅ£","TŤÈÅ¢","uùúủũụưừứá»á»¯á»±Ã»Ã¼Å¯Å«","UÃÃỦŨỤƯỪỨỬỮỰÃÃŮŪ","yýỳỷỹỵÿ","YÃỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aà áảãạÄằắẳẵặâầấẩẫáºÃ¤Ã¥ÄÄ
AÃÃẢÃẠÄẰẮẲẴẶÃẦẤẨẪẬÃÃ
ÄÄ","cçÄÄCÃÄÄ","dÄÄDÄÄ","eèéẻẽẹêá»áº¿á»á»
á»Ã«ÄÄÄEÃÃẺẼẸÃá»áº¾á»á»á»ÃÄÄÄ","iìÃá»Ä©á»Ã®Ã¯Ä«IÃÃá»Ä¨á»ÃÃĪ","lÅLÅ","nñÅÅNÃÅÅ","oòóá»Ãµá»Ã´á»á»á»á»á»Æ¡á»á»¡á»á»á»£Ã¶Ã¸ÅOÃÃá»Ãá»Ãá»á»á»á»á»Æ á»á» á»á»á»¢ÃÃÅ","rÅRÅ","sÅ¡ÅÈÅSÅ ÅÈÅ","tÅ¥ÈÅ£TŤÈÅ¢","uùúủũụưừứá»á»¯á»±Ã»Ã¼Å¯Å«UÃÃỦŨỤƯỪỨỬỮỰÃÃŮŪ","yýỳỷỹỵÿYÃỲỶỸỴŸ","zžżźZŽŻŹ"],o=[];return e.split("").forEach(function(r){n.every(function(n){if(-1!==n.indexOf(r)){if(o.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),o.push(n)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,o="string"==typeof n?n:n.value,r="string"==typeof n?[]:n.limiters,a="";switch(r.forEach(function(e){a+="|"+t.escapeStr(e)}),o){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(a="\\s"+(a||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+a+"]*)";case"exactly":return"(^|\\s"+a+")("+e+")(?=$|\\s"+a+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)}):e.trim()&&-1===n.indexOf(e)&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],o=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var r=t.callNoMatchOnInvalidRanges(e,o),a=r.start,i=r.end;r.valid&&(e.start=a,e.length=i-a,n.push(e),o=i)}),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,o=void 0,r=!1;return e&&void 0!==e.start?(o=(n=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&o-t>0&&o-n>0?r=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:o,valid:r}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var o=void 0,r=!0,a=n.length,i=t-a,l=parseInt(e.start,10)-i;return(o=(l=l>a?a:l)+parseInt(e.length,10))>a&&(o=a,this.log("End range automatically set to the max value of "+a)),l<0||o-l<0||l>a||o>a?(r=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(l,o).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:o,valid:r}}},{key:"getTextNodes",value:function(e){var t=this,n="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){o.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:o})})}},{key:"matchesExclude",value:function(e){return r.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var o=this.opt.element?this.opt.element:"mark",r=e.splitText(t),a=r.splitText(n-t),i=document.createElement(o);return i.setAttribute("data-markjs","true"),this.opt.className&&i.setAttribute("class",this.opt.className),i.textContent=r.textContent,r.parentNode.replaceChild(i,r),a}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,o,r){var a=this;e.nodes.every(function(i,l){var s=e.nodes[l+1];if(void 0===s||s.start>t){if(!o(i.node))return!1;var c=t-i.start,u=(n>i.end?i.end:n)-i.start,d=e.value.substr(0,i.start),p=e.value.substr(u+i.start);if(i.node=a.wrapRangeInTextNode(i.node,c,u),e.value=d+p,e.nodes.forEac
vendor: 4,286 bytes, line 2
2h(function(t,n){n>=l&&(e.nodes[n].start>0&&n!==l&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,r(i.node.previousSibling,i.start),!(n>i.end))return!1;t=i.end}return!0})}},{key:"wrapMatches",value:function(e,t,n,o,r){var a=this,i=0===t?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var r=void 0;null!==(r=e.exec(t.textContent))&&""!==r[i];)if(n(r[i],t)){var l=r.index;if(0!==i)for(var s=1;s<i;s++)l+=r[s].length;t=a.wrapRangeInTextNode(t,l,l+r[i].length),o(t.previousSibling),e.lastIndex=0}}),r()})}},{key:"wrapMatchesAcrossElements",value:function(e,t,n,o,r){var a=this,i=0===t?0:t+1;this.getTextNodes(function(t){for(var l=void 0;null!==(l=e.exec(t.value))&&""!==l[i];){var s=l.index;if(0!==i)for(var c=1;c<i;c++)s+=l[c].length;var u=s+l[i].length;a.wrapRangeInMappedTextNode(t,s,u,function(e){return n(l[i],e)},function(t,n){e.lastIndex=n,o(t)})}r()})}},{key:"wrapRangeFromIndex",value:function(e,t,n,o){var r=this;this.getTextNodes(function(a){var i=a.value.length;e.forEach(function(e,o){var l=r.checkWhitespaceRanges(e,i,a.value),s=l.start,c=l.end;l.valid&&r.wrapRangeInMappedTextNode(a,s,c,function(n){return t(n,e,a.value.substring(s,c),o)},function(t){n(t,e)})}),o()})}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var n=this;this.opt=t,this.log('Searching with expression "'+e+'"');var o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,function(e,t){return n.opt.filter(t,e,o)},function(e){o++,n.opt.each(e)},function(){0===o&&n.opt.noMatch(e),n.opt.done(o)})}},{key:"mark",value:function(e,t){var n=this;this.opt=t;var o=0,r="wrapMatches",a=this.getSeparatedKeywords("string"==typeof e?[e]:e),i=a.keywords,l=a.length,s=this.opt.caseSensitive?"":"i";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===l?this.opt.done(o):function e(t){var a=new RegExp(n.createRegExp(t),"gm"+s),c=0;n.log('Searching with expression "'+a+'"'),n[r](a,1,function(e,r){return n.opt.filter(r,t,o,c)},function(e){c++,o++,n.opt.each(e)},function(){0===c&&n.opt.noMatch(t),i[l-1]===t?n.opt.done(o):e(i[i.indexOf(t)+1])})}(i[0])}},{key:"markRanges",value:function(e,t){var n=this;this.opt=t;var o=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,function(e,t,o,r){return n.opt.filter(e,t,o,r)},function(e,t){o++,n.opt.each(e,t)},function(){n.opt.done(o)})):this.opt.done(o)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(e){t.unwrapMatches(e)},function(e){var o=r.matches(e,n),a=t.matchesExclude(e);return!o||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=o({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new r(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),a}();return function(e){var t=this,n=new a(e);return this.mark=function(e,o){return n.mark(e,o),t},this.markRegExp=function(e,o){return n.markRegExp(e,o),t},this.markRanges=function(e,o){return n.markRanges(e,o),t},this.unmark=function(e){return n.unmark(e),t},this}}()},983(){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24">
2<path d="M12 2a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1.1.9-2 2-2Zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5c0-.6-.4-1-1-1a1 1 0 0 0-1 1v5c0 .6-.4 1-1 1a1 1 0 0 1-1-1V9H4a1 1 0 1 1 0-2h16c.6 0 1 .4 1 1s-.4 1-1 1Z" fill-rule="nonzero"/></svg>',"accordion-toggle":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 15c0-.6.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1h-6a1 1 0 0 1-1-1Z"/><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M4 15c0-.6.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1-1-1Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 19c0-.6.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1h-6a1 1 0 0 1-1-1Z"/><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M4 19c0-.6.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1-1-1Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.3 7.3a1 1 0 0 1 1.4 0L16 9.6l2.3-2.3a1 1 0 1 1 1.4 1.4L16 12.4l-3.7-3.7a1 1 0 0 1 0-1.4ZM4.3 11.7a1 1 0 0 1 0-1.4L6.6 8 4.3 5.7a1 1 0 0 1 1.4-1.4L9.4 8l-3.7 3.7a1 1 0 0 1-1.4 0Z"/></svg>',accordion:'<svg width="24" height="24"><rect x="12" y="7" width="10" height="2" rx="1"/><rect x="12" y="11" width="10" height="2" rx="1"/><rect x="12" y="15" width="6" height="2" rx="1"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.3 7.3a1 1 0 0 1 1.4 0L6 9.6l2.3-2.3a1 1 0 0 1 1.4 1.4L6 12.4 2.3 8.7a1 1 0 0 1 0-1.4Z"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 0 0-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 1 0-1.4-1.4L12 13.6 5.7 7.3Z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 0 0 1.4-1.4L12 6.6l-7.7 7.7a1 1 0 0 0 1.4 1.4L12 9.4l6.3 6.3Z"/></svg>',addtag:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 5a2 2 0 0 1 1.6.8L21 12l-4.4 6.2a2 2 0 0 1-1.6.8h-3v-2h3l3.5-5L15 7H5v3H3V7c0-1.1.9-2 2-2h10Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6 12a1 1 0 0 0-1 1v2H3a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2H7v-2c0-.6-.4-1-1-1Z"/></svg>',"ai-prompt":'<svg width="24" height="24"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 6.7a1 1 0 0 0-1.4 0l-9.9 10a1 1 0 0 0 0 1.3l2.1 2.1c.4.4 1 .4 1.4 0l10-9.9c.3-.3.3-1 0-1.4l-2.2-2Zm1.4 2.8-2-2-3 2.7 2.2 2.2 2.8-2.9Z"/><path d="m18.5 7.3-.7-1.5-1.5-.8 1.5-.7.7-1.5.7 1.5 1.5.7-1.5.8-.7 1.5ZM18.5 16.5l-.7-1.6-1.5-.7 1.5-.7.7-1.6.7 1.6 1.5.7-1.5.7-.7 1.6ZM9.7 7.3 9 5.8 7.5 5 9 4.3l.7-1.5.7 1.5L12 5l-1.5.8-.7 1.5Z"/></g><defs><clipPath id="a"><path d="M0 0h24v24H0z"/></clipPath></defs></svg>',ai:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H5Zm6.8 11.5.5 1.2a68.3 68.3 0 0 0 .7 1.1l.4.1c.3 0 .5 0 .7-.3.2-.1.3-.3.3-.6l-.3-1-2.6-6.2a20.4 20.4 0 0 0-.5-1.3l-.5-.4-.7-.2c-.2 0-.5 0-.6.2-.2 0-.4.2-.5.4l-.3.6-.3.7L5.7 15l-.2.6-.1.4c0 .3 0 .5.3.7l.6.2c.3 0 .5 0 .7-.2l.4-1 .5-1.2h3.9ZM9.8 9l1.5 4h-3l1.5-4Zm5.6-.9v7.6c0 .4 0 .7.2 1l.7.2c.3 0 .6 0 .8-.3l.2-.9V8.1c0-.4 0-.7-.2-.9a1 1 0 0 0-.8-.3c-.2 0-.5.1-.7.3l-.2 1Z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5 13 7H5a1 1 0 1 1 0-2h9.2Zm4 0h.8a1 1 0 0 1 0 2h-2l1.2-2Zm-6.4 4-1.2 2H5a1 1 0 0 1 0-2h6.8Zm4 0H19a1 1 0 0 1 0 2h-4.4l1.2-2Zm-6.4 4-1.2 2H5a1 1 0 0 1 0-2h4.4Zm4 0H19a1 1 0 0 1 0 2h-6.8l1.2-2ZM7 17l-1.2 2H5a1 1 0 0 1 0-2h2Zm4 0h8a1 1 0 0 1 0 2H9.8l1.2-2Zm5.2-13.5 1.3.7-9.7 16.3-1.3-.7 9.7-16.3Z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24">
2<path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="m5.6 13 12 6a1 1 0 0 0 1.4-1V6a1 1 0 0 0-1.4-.9l-12 6a1 1 0 0 0 0 1.8Z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="m18.5 13-12 6A1 1 0 0 1 5 18V6a1 1 0 0 1 1.4-.9l12 6a1 1 0 0 1 0 1.8Z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 0 1-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8Zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4Zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4Z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 0 0-1 1Z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12.7 18.3a1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v1a1 1 0 0 0 .3.7 1 1 0 0 0 .7.3 1 1 0 0 0 .7-.3 1 1 0 0 0 .3-.7v-1a1 1 0 0 0-.3-.7ZM11.3 5.7a1 1 0 0 0 .7.3 1 1 0 0 0 .7-.3A1 1 0 0 0 13 5V4a1 1 0 0 0-.3-.7A1 1 0 0 0 12 3a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v1a1 1 0 0 0 .3.7Zm9.4 5.6a1 1 0 0 0-.7-.3h-1a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7 1 1 0 0 0 .3.7 1 1 0 0 0 .7.3h1a1 1 0 0 0 .7-.3 1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7Zm-15 1.4A1 1 0 0 0 6 12a1 1 0 0 0-.3-.7A1 1 0 0 0 5 11H4a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7 1 1 0 0 0 .3.7 1 1 0 0 0 .7.3h1a1 1 0 0 0 .7-.3Zm13 4.6-.7-.8a1 1 0 0 0-.8-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7 1 1 0 0 0 .3.8l.7.7a1 1 0 0 0 .7.3 1 1 0 0 0 .8-.3 1 1 0 0 0 .3-.8 1 1 0 0 0-.3-.7ZM5.3 6.7l.7.8a1 1 0 0 0 .8.3 1 1 0 0 0 .7-.3 1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.8l-.7-.7A1 1 0 0 0 6 5a1 1 0 0 0-.8.3 1 1 0 0 0-.3.8 1 1 0 0 0 .3.6Zm12 1a1 1 0 0 0 .7-.2l.7-.7A1 1 0 0 0 19 6a1 1 0 0 0-.3-.8 1 1 0 0 0-.8-.3 1 1 0 0 0-.7.3l-.7.7a1 1 0 0 0-.3.8 1 1 0 0 0 .3.7 1 1 0 0 0 .7.2ZM6.7 16.4a1 1 0 0 0-.8.2l-.7.7a1 1 0 0 0-.3.7 1 1 0 0 0 .3.8 1 1 0 0 0 .8.3 1 1 0 0 0 .7-.3l.7-.7a1 1 0 0 0 .3-.8 1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3Z"/><path fill-rule="evenodd" d="M13.6 8.3A4 4 0 0 0 12 8a4 4 0 0 0-1.6.3A4 4 0 0 0 9 9.5a4 4 0 0 0-.6 1A4 4 0 0 0 8 12c0 .6.1 1 .3 1.6a4 4 0 0 0 2.1 2 4 4 0 0 0 1.6.4 4 4 0 0 0 1.6-.3 4 4 0 0 0 2-2.1A4 4 0 0 0 16 12a4 4 0 0 0-.3-1.6 4 4 0 0 0-2.1-2ZM14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-8 9.4-2.3 2.3a1 1 0 1 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L13 13.4V20a1 1 0 0 1-2 0v-6.6Z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 1 1 0 14.8 7.4 7.4 0 0 1 0-14.8ZM12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7Z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="m15.7 2 1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 0 1-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2ZM18 12l-4.5-4L9 12h9ZM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16Z"/></svg>
2',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 0 1-2-2v-5h2zm8-7V4h6a2 2 0 0 1 2 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="m13 11-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="m18.4 8 1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 0 1-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8Zm1.6 7-3-3-3 3h6Z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 0 1-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 0 1-1 .7h-.2a.7.7 0 0 1-.7-1l4-12a1 1 0 0 1 2 0l4 12a.7.7 0 0 1-.8 1h-.2a1 1 0 0 1-1-.7l-.8-2.6zm-.3-1.5-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1Zm4.8-6.8V10H7.7V5.8h-1v-1h2ZM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1Zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1ZM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2V18.7l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 0 1-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 0 0-.5-.1 1 1 0 0 0-.4 0l-.3.4h-1Zm2.3.8h-.2l-.2.1-.4.1a1 1 0 0 0-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6Zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4Zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 0 0 1.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 0 0-.6-.3l-.6.3-.2.8Zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 0 0-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 0 1-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 0 1-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1Z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2ZM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8Zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8Zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8Z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 0 1 0-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8Z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3 4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 0 1 0-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1Z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 0 1 0-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 0 1 0-1.1L6 5 2.2 1.3Z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8 5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 0 1 0-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0Z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24">
2<path d="M17.3 8.2 13.4 12l3.9 3.8a1 1 0 0 1-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 0 1-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 0 1 1.5-1.5l3.8 3.9 3.8-3.9a1 1 0 0 1 1.5 1.5Z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 0 1-.8 2 2.8 2.8 0 0 1 .8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11Zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 0 1-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 0 1 .8-2 2.8 2.8 0 0 1-.8-2Zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2ZM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 0 1-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 0 1-.5-.5V17a3 3 0 0 0 1-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5Z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0 1 18 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 0 1-3.7 3 5.7 5.7 0 0 1-3.2 0A5.9 5.9 0 0 1 7.6 18a6.2 6.2 0 0 1-1.4-2.6 6.7 6.7 0 0 1 0-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 0 1 2.3-4A20 20 0 0 1 12 4a26.4 26.4 0 0 1 3.2 3.4 18.2 18.2 0 0 1 2.3 4Zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 0 0-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 0 1-1.3 3 5.3 5.3 0 0 1-2.3 1.5 4.9 4.9 0 0 1-2 .1 4.3 4.3 0 0 0 2.4.8 4 4 0 0 0 2-.6 4 4 0 0 0 1.5-1.5Z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 0 0 0 18 1.5 1.5 0 0 0 1.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8Zm-5.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm3-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm3 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24" class="color-swatch-remove-color"><path stroke="#000" stroke-width="2" d="M21 3 3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="m9 19 3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2Zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23Z"/><path d="M13 10h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V8a1 1 0 0 1 2 0v2Z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="m9 19 3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2Zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23Z"/></svg>',contrast:'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 0 1 19.4 9c.4 1 .6 2 .6 3.1s-.2 2.1-.6 3.1a8 8 0 0 1-1.7 2.6 8 8 0 0 1-2.6 1.7 7.8 7.8 0 0 1-3.1.6 7.8 7.8 0 0 1-3.1-.6 8 8 0 0 1-2.6-1.7A8 8 0 0 1 4.6 15 7.8 7.8 0 0 1 4 12c0-1.1.2-2.1.6-3.1a8 8 0 0 1 1.7-2.6A8 8 0 0 1 9 4.6 7.8 7.8 0 0 1 12 4Zm-6 8a6 6 0 0 0 1.8 4.2 6 6 0 0 0 1.9 1.3 5.8 5.8 0 0 0 2.3.5V6c-.8 0-1.6.2-2.3.5a6 6 0 0 0-2 1.3 6 6 0 0 0-1.2 1.9A5.8 5.8 0 0 0 6 12Z"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 0 0-2 2v11h2V5h10V3Zm1 4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7Zm0 12V9h-7v10h7Z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-2H7V9H5a1 1 0 1 1 0-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3ZM9 9v5l5-5H9Zm1 6h5v-5l-5 5Z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0 1 10.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 0 1 2 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 0 1 7 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7Zm12.3 5h-3v10h3v-10ZM8 13.8h-.3l-.4.2a2.8 2.8 0 0 0-.7.4v.1a2.8 2.8 0 0 0-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 0 0 .8-.3 2.4 2.4 0 0 0 .7-.7 2.5 2.5 0 0 0 .3-.8 1.5 1.5 0 0 0 0-.8 1 1 0 0 0-.2-.4 1 1 0 0 0-.5-.2H8Zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4ZM7 5.8h-.4a1 1 0 0 0-.5.3 1 1 0 0 0-.2.5v.7a2.5 2.5 0 0 0 .3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 0 0 0-.8 2.6 2.6 0 0 0-.3-.8A2.5 2.5 0 0 0 7.7 6l-.4-.1H7Z"/></svg>',"cut-row":'<svg width="24" height="24">
2<path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 0 1-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l2 2V3h14ZM8.5 15.3h-.3a2.6 2.6 0 0 0-.8.4 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3L9 18V18l.4-.4.2-.4.1-.4v-.7a1 1 0 0 0-.2-.5 1 1 0 0 0-.4-.2h-.5Zm7 0H15a1 1 0 0 0-.4.3 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4a2.8 2.8 0 0 0 .5.7h.1a2.8 2.8 0 0 0 .8.6l.4.1h.7l.5-.2.2-.5v-.7a2.6 2.6 0 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3h-.3ZM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4Zm8.5-7.1h-11v2h11v-2Z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 0 1-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 0 1 0 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8Zm-8.5 2.2.1-.4v-.7a1 1 0 0 0-.2-.5 1 1 0 0 0-.4-.2 1.6 1.6 0 0 0-.8 0 2.6 2.6 0 0 0-.8.3 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3 2.8 2.8 0 0 0 1-1Zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4Zm5.4 4 .2-.5v-.7a2.6 2.6 0 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3 1.5 1.5 0 0 0-.8 0 1 1 0 0 0-.4.2 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4l.3.4.3.4a2.8 2.8 0 0 0 .8.5l.4.1h.7l.5-.2Z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3ZM17 19H7V5h6v4h4v10Z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5Zm0 4h2v2h-2V9ZM9 9h2v2H9V9Zm4 4h2v2h-2v-2Zm-4 0h2v2H9v-2Zm0 4h2v2H9v-2Zm4 0h2v2h-2v-2ZM9 5h2v2H9V5Z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7Zm-2 2h-3v12h3V8Zm-2-6v2H8v15H6V2h7Z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16Zm-2 2H8v3h12v-3Zm-1-6v2H4v5H2V7h17Z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10Zm3 8h-2V9h-7v10h9a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7a2 2 0 0 1 2 2v2Z"/><path d="M17 14h1a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1Z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="m19.8 8.8-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5Zm-2-.2 1-.9v-.3l-2.2-2.2a.3.3 0 0 0-.3 0l-1 1L18 8.5Zm-1 1-2.5-2.4-6 6 2.5 2.5 6-6Zm-7 7.1-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5Z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 0 0-2-2H7v2h11v9ZM6 17h15a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1H6a2 2 0 0 1-2-2V7H3a1 1 0 1 1 0-2h1V4a1 1 0 1 1 2 0v13Zm3-5.3 1.3 2 3-4.7 3.7 6H7l2-3.3Z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0 1 19 6Zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4Zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6Zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3Zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 0 0 8 19h3ZM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 0 0-4 4.5h2.2Zm-3.4 0a12 12 0 0 1 2.8-4 12 12 0 0 0-5 4h2.2Z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm1 2v14h14V5H5Zm4.8 2.6 5.6 4a.5.5 0 0 1 0 .8l-5.6 4A.5.5 0 0 1 9 16V8a.5.5 0 0 1 .8-.4Z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1Zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1Zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13Z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero">
2<path d="M14.4 3 18 7v1h-5V5H7v14h9a1 1 0 0 1 2 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5Z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3Z"/><path d="M16.4 9.2a1 1 0 0 1 1.4.2l2.4 3.6-2.4 3.6a1 1 0 0 1-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 0 1 .2-1.4Z"/></g></svg>',fill:'<svg width="24" height="26"><path d="m16.6 12-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 0 0 2.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2ZM5.2 13 10 8.2l4.8 4.8H5.2ZM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.3-2-3.5-2-3.5Z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2Zm4-8h2V9h-2v2ZM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 0 0-2 2Zm14-2v2h2a2 2 0 0 0-2-2Zm-7 16h2V3h-2v18Zm7-6h2v-2h-2v2Zm-4-8h2V5h-2v2Zm4 12a2 2 0 0 0 2-2h-2v2Z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5Zm8 4v2h2v-2h-2Zm4-14H7a2 2 0 0 0-2 2v3h2V6h10v3h2V6a2 2 0 0 0-2-2Zm2 14h-2v2a2 2 0 0 0 2-2ZM3 11v2h18v-2H3Zm6 7v2h2v-2H9Zm8-4v2h2v-2h-2ZM5 18c0 1.1.9 2 2 2v-2H5Z" fill-rule="nonzero"/></svg>',footnote:'<svg width="24" height="24"><path d="M19 13c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2h14Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19 4v6h-1V5h-1.5V4h2.6Z"/><path d="M12 18c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2h7ZM14 8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2h9Z"/></svg>',"format-code":'<svg width="24" height="24"><path d="m10 22 2-7H6l9-13h2l-2 8h7L12 22h-2ZM6 2h7l-1.4 2H6V2Zm4.2 4H4v2h4.8l1.4-2Zm-2.7 4H2v2h4l1.5-2Z"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 0 0-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3Z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 0 1 0 2h-4v11a1 1 0 0 1-2 0V7H7a1 1 0 1 1 0-2h10Z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="m15.3 10-1.2-1.3 2.9-3h-2.3a.9.9 0 1 1 0-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 1 1-1.8 0V7l-2.9 3Zm0 4 3 3v-2.3a.9.9 0 1 1 1.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 1 1 0-1.8H17l-3-2.9 1.3-1.2ZM10 15.4l-2.9 3h2.3a.9.9 0 1 1 0 1.7H5a.9.9 0 0 1-.9-.9v-4.4a.9.9 0 1 1 1.8 0V17l2.9-3 1.2 1.3ZM8.7 10 5.7 7v2.3a.9.9 0 0 1-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 0 1 0 1.8H7l3 2.9-1.3 1.2Z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="m5 15.7 2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7ZM5 18V19h3l1.8-1.9-2-2L5 17.9Zm14-3-2.5-2.4-6.4 6.5H19v-4ZM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V7c0-.6.4-1 1-1Zm6 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4ZM4.5 4h15a.5.5 0 1 1 0 1h-15a.5.5 0 0 1 0-1Zm2-2h11a.5.5 0 1 1 0 1h-11a.5.5 0 0 1 0-1Z"/></svg>',gamma:'<svg height="24" width="24"><path d="M11.5 16.3a.7.7 0 1 0 1.4 0V14l2.7-6a.7.7 0 1 0-1.2-.6l-2.2 5-2.3-4.9C9.6 7 8.7 7 8 7.2v1.1c.8-.2.9 0 1.2 1l2.3 4.7z"/><path d="M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2h14v14H5z" fill-rule="evenodd"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 0 0-6 9 6.3 6.3 0 0 0 1.4 2l1 1a6.3 6.3 0 0 0 3.6 1 6.5 6.5 0 0 0 6-9 6.3 6.3 0 0 0-1.4-2l-1-1a6.3 6.3 0 0 0-3.6-1ZM12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4Z"/><path d="M9.6 9.7a.7.7 0 0 1-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 0 0-.8.8.8.8 0 0 1-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8Z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path class="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24">
2<path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="m5 15.7 3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7ZM5 18V19h3l2.8-2.9-2-2L5 17.9Zm14-3-2.5-2.4-6.4 6.5H19v-4ZM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2Zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2Zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2Zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2Zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6Z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4Zm-1 3v2h2V7h-2Zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4Z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 0 0 1.8-2.9 6.3 6.3 0 0 0-.1-4.1 5.8 5.8 0 0 0-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 0 0-3.9 1.8 6.3 6.3 0 0 0-1.3 6 6.2 6.2 0 0 0 1.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 0 1 4 11c0-1 .2-1.9.6-2.7A7 7 0 0 1 6.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 0 1 5.7 2 7 7 0 0 1 1.7 2.3 6 6 0 0 1 .2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 0 1-3.6 2.5v.5Z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm0 2a9 9 0 1 1 0-18 9 9 0 0 1 0 18Z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 0 0-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1Z"/></g></svg>',invert:'<svg height="24" width="24"><path d="M5 4 3.6 5.4l3.9 4C6.6 10.7 6 12.3 6 14a6 6 0 0 0 10.3 4.2l1.9 1.8 1.4-1.4z" fill-rule="evenodd"/><path d="M13.4 8.4c.9 1 1.6 2.1 2 3.2l2.6 2.6V14c0-5-6-10-6-10s-1 .8-2.1 2l1.4 1.5.7-.7 1.4 1.6z"/></svg>',italic:'<svg width="24" height="24"><path d="m16.7 4.7-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8Z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 0 0 3.2-2.1l-.2-.2a6 6 0 0 0-1-.6Zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 0 1-2-2.8Zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7Zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3Zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 0 1-.3-2Zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1Zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6Zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3Zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1Zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3Zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1Zm3-1.4-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 0 0-1.3-3.5Zm-9 0 2 .2V5.5a9 9 0 0 0-2 2.2Zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 0 0-2-2.3Zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 0 1 1.9-2.5Zm4.4 0 .1.1a10 10 0 0 1 1.8 2.4l1.1-.7a7.5 7.5 0 0 0-3-1.8Z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zM7 3.6l3.7 3.7a1 1 0 0 1-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 0 1 1.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 0 1 1.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 0 1-1.3 0h-.1a1 1 0 0 1 0-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="m15 9-8 8H4v-3l8-8 3 3Zm1-1-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1ZM4 18h16v2H4v-2Z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2Zm11.6-.6a1 1 0 0 1-1.4-1.4l2-2a2 2 0 1 0-2.6-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2Z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg height="48" width="48"><path d="M8 14a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm5 0a2 2 0 1 1-4 0 2 2
20 0 1 4 0zM8 24a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zM8 34a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z" fill-rule="evenodd"/><path d="M18 12h22v4H18zm0 10h22v4H18zm0 10h22v4H18z" opacity=".2"/></svg>',"list-bull-default":'<svg height="48" width="48"><path d="M14 14a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M12 24a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z" fill-rule="evenodd"/><path d="M16 31h6v6h-6z"/><path d="M16 31h6v6h-6z"/><path d="M18 12h22v4H18zm4 10h18v4H22zm4 10h14v4H26z" opacity=".2"/></svg>',"list-bull-disc":'<svg height="48" width="48"><path d="M14 14a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm0 10a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm0 10a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M18 12h22v4H18zm0 10h22v4H18zm0 10h22v4H18z" opacity=".2"/></svg>',"list-bull-square":'<svg height="48" width="48"><path d="M8 21h6v6H8zm0 10h6v6H8zm0-20h6v6H8z"/><path d="M18 12h22v4H18zm0 10h22v4H18zm0 10h22v4H18z" opacity=".2"/></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8h-.1l-1.5 1v-1.1l1.6-1.1h1.2v6zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2Zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7Zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5Zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7ZM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7Zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7Z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7Zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6ZM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7ZM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4Zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3ZM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6Zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7Zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4Zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3Zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7Zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8Zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4ZM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7ZM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22Zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3ZM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7ZM37.1 34.6 34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2Zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1ZM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4Zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8Zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7Zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3ZM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22Zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7Zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2Zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1Zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33Zm0 10v-1.2h-1.3V26H33Zm0 10v-1.2h-1.3V36H33Z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15Zm0 10v-1.2h1.3V26H15Zm0 10v-1.2h1.3V36H15Z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="m39.3 17-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3Zm-1.6-4.7-.7 2.3h1.6l-.8-2.3ZM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7Zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7Zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1Zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26ZM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2Zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="m12.6 17-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3ZM11 12.3l-.7 2.3h1.6l-.8-2.3Zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7ZM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7ZM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1Zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26Zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2Zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3Zm0 10v-1.2H33V27h-1.3Zm0 10v-1.2H33V37h-1.3Z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15Zm0 10v-1.2h1.3V27H15Zm0 10v-1.2h1.3V37H15Z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24">
2<path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3ZM10 8v3h4V8a1 1 0 0 0-.3-.7A1 1 0 0 0 13 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7Z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 7.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L11 5ZM4.4 16.2 6.2 15l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6Z" fill-rule="evenodd"/></svg>',"math-equation":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 4.8c.1-.5.5-.8 1-.8h10a1 1 0 1 1 0 2h-9.2L8.3 19.2a1 1 0 0 1-1.7.4l-3.4-4.2a1 1 0 0 1 1.6-1.2l2 2.5L9 4.8Zm9.7 5.5c.4.4.4 1 0 1.4L17 13.5l1.8 1.8a1 1 0 1 1-1.4 1.4L15.5 15l-1.8 1.8a1 1 0 0 1-1.4-1.4l1.8-1.8-1.8-1.8a1 1 0 0 1 1.4-1.4l1.8 1.8 1.8-1.8a1 1 0 0 1 1.4 0Z"/></svg>',mentions:'<svg height="24" width="24"><path d="M12 21a8.8 8.8 0 0 1-3.5-.7 9 9 0 0 1-2.9-2 9 9 0 0 1-1.9-2.8A8.8 8.8 0 0 1 3 12c0-1.3.2-2.4.7-3.5a9 9 0 0 1 4.8-4.8A8.8 8.8 0 0 1 12 3c1.3 0 2.4.2 3.5.7a9.1 9.1 0 0 1 4.8 4.8A8.7 8.7 0 0 1 21 12v1.4a3 3 0 0 1-.9 2.2 3 3 0 0 1-2.2.9c-.5 0-1-.1-1.5-.4a3.8 3.8 0 0 1-1.1-1 4.8 4.8 0 0 1-1.5 1 4.3 4.3 0 0 1-1.8.4c-1.2 0-2.3-.4-3.2-1.3-.9-.9-1.3-2-1.3-3.2s.4-2.3 1.3-3.2c.9-.9 2-1.3 3.2-1.3s2.3.4 3.2 1.3c.9.9 1.3 2 1.3 3.2v1.4c0 .4.1.7.4 1 .3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1V12c0-2-.7-3.8-2.1-5.2S14 4.7 12 4.7s-3.8.7-5.2 2.1S4.7 10 4.7 12s.7 3.8 2.1 5.2 3.2 2.1 5.2 2.1h4.5V21zm0-6.2c.8 0 1.4-.3 2-.8a2.7 2.7 0 0 0 .8-2c0-.8-.3-1.4-.8-2a2.7 2.7 0 0 0-2-.8c-.8 0-1.4.3-2 .8a2.7 2.7 0 0 0-.8 2c0 .8.3 1.4.8 2a2.7 2.7 0 0 0 2 .8z"/></svg>',minus:'<svg width="24" height="24"><path d="M19 11a1 1 0 0 1 .1 2H5a1 1 0 0 1-.1-2H19Z"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3ZM17 19H7V5h6v4h4v10Z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="m15 13 2-2v8H5V7h8l-2 2H7v8h8v-4Zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19Z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 1 1 0-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-3Zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1Z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M15.5 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7ZM13 17v-2h-2v2h2Zm0-4V7h-2v6h2Z" fill-rule="evenodd" clip-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2Zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2Zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2Zm13-1v3.5a.5.5 0 1 1-1 0V5h-.5a.5.5 0 1 1 0-1H19Zm-1 8.8.2.2h1.3a.5.5 0 1 1 0 1h-1.6a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2h-1.3a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3Zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 0 1 0-1h1.2a.3.3 0 1 0 0-.6h-1.3a.4.4 0 1 1 0-.8h1.3a.3.3 0 0 0 0-.6h-1.2a.5.5 0 1 1 0-1H19c.6 0 1 .4 1 1Z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 1 1 0-2ZM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.5V5h-.5a.5.5 0 0 1 0-1H6Zm-1 8.8.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2H4.5a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3ZM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 0 1 0-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 1 1 0-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 1 1 0-1H6c.6 0 1 .4 1 1Z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24">
2<path d="M7.3 6.4 1 13l6.4 6.5 6.5-6.5-6.5-6.5ZM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7ZM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 0 1 0-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 1 1-4.3 16.9l1.5-1.5A7 7 0 1 0 13 6h-1Z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2Zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2Zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2Zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2Zm1.6-3.8a1 1 0 0 1-1.2 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 0 1 1.2 1.6L6.8 12l1.8 1.2Z" fill-rule="evenodd"/></svg>',"export-pdf":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3h7.4L19 7.6V17h-2V9h-4V5H7v3H5V5c0-1.1.9-2 2-2Z"/><path d="M2.6 15.2v-1.9h1c.6 0 1-.2 1.4-.5.3-.3.5-.7.5-1.2s-.2-.9-.5-1.2a2 2 0 0 0-1.3-.4H1v5.2h1.6Zm.4-3h-.4v-1.1h.5l.6.1.2.5c0 .1 0 .3-.2.4l-.7.1Zm5.7 3 1-.1c.3 0 .5-.2.7-.4l.5-.8c.2-.3.2-.7.2-1.3v-1l-.5-.8c-.2-.3-.4-.5-.7-.6L8.7 10H6.3v5.2h2.4Zm-.4-1.1H8v-3h.4c.5 0 .8.2 1 .4l.2 1.1-.1 1-.3.3-.8.2Zm5.3 1.2V13h2v-1h-2v-1H16V10h-4v5.2h1.6Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15 17a1 1 0 1 0-2 0v3.1l-1.4-1a1 1 0 1 0-1.2 1.7l3.6 2.4 3.6-2.4a1 1 0 0 0-1.2-1.6l-1.4 1V17Z"/></svg>',"export-word":'<svg width="24" height="24"><path d="M9.5 7A1.5 1.5 0 0 1 11 8.4v7.1A1.5 1.5 0 0 1 9.6 17H2.5A1.5 1.5 0 0 1 1 15.6V8.5A1.5 1.5 0 0 1 2.4 7h7.1Zm-1 2.8-1 2.6-1-2.5v-.1a.6.6 0 0 0-1 0l-.1.1-.9 2.5-1-2.5v-.1a.6.6 0 0 0-1 .4v.1l1.5 4v.1a.6.6 0 0 0 1 0v-.1l1-2.5.9 2.5v.1a.6.6 0 0 0 1 0H8l1.6-4v-.2a.6.6 0 0 0-1.1-.4Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3h7.4L19 7.6V17h-2V9h-4V5H5c0-1.1.9-2 2-2ZM15 17a1 1 0 1 0-2 0v3.1l-1.4-1a1 1 0 1 0-1.2 1.7l3.6 2.4 3.6-2.4a1 1 0 0 0-1.2-1.6l-1.4 1V17Z"/></svg>',"import-word":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3h7.4L19 7.6V15h-2V9h-4V5H5c0-1.1.9-2 2-2Z"/><path d="M9.5 7A1.5 1.5 0 0 1 11 8.4v7.1A1.5 1.5 0 0 1 9.6 17H2.5A1.5 1.5 0 0 1 1 15.6V8.5A1.5 1.5 0 0 1 2.4 7h7.1Zm-1 2.8-1 2.6-1-2.5v-.1a.6.6 0 0 0-1 0l-.1.1-.9 2.5-1-2.5v-.1a.6.6 0 0 0-1 .4v.1l1.5 4v.1a.6.6 0 0 0 1 0v-.1l1-2.5.9 2.5v.1a.6.6 0 0 0 1 0H8l1.6-4v-.2a.6.6 0 0 0-1.1-.4Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.4 18.2a1 1 0 0 0 1.2 1.6l1.4-1V22a1 1 0 1 0 2 0v-3.1l1.4 1a1 1 0 0 0 1.2-1.7L15 15.8l-3.6 2.4Z"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2Zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2Zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 0 1 0-2Zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2ZM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1ZM6 22a1 1 0 0 1-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5H7v5c0 .6-.4 1-1 1Z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5Z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 0 1 2.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0 1 12 1Zm8 7v12h-6V8h6Zm-1.5 1.5h-3v9h3v-9ZM12 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 0 1 2.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0 1 12 1Zm-2 7v12H4V8h6ZM8.5 9.5h-3v9h3v-9ZM12 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 0 1 2.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0 1 12 1Zm10 11v5H8v-5h14Zm-1.5 1.5h-11v2h11v-2ZM12 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 0 1 2.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h12v-4h2v4c0 1-.8 2
2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0 1 12 1Zm10 7v5H8V8h14Zm-1.5 1.5h-11v2h11v-2ZM12 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9ZM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1Zm1.5-9.5v9h9v-9h-9ZM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1Zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2Z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9ZM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1Zm1.5-9.5v9h9v-9h-9ZM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1Z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5 8 20H3v-3l3.5-3.5a2 2 0 0 1 0-3L14 3l1 1-7.3 7.3a1 1 0 0 0 0 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 0 1-2.8 0l-.1-.1Z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 0 1 .1 2H13v6a1 1 0 0 1-2 .1V13H5a1 1 0 0 1-.1-2H11V5c0-.6.4-1 1-1Z"/></svg>',preferences:'<svg width="24" height="24"><path d="m20.1 13.5-1.9.2a5.8 5.8 0 0 1-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 0 1-1.4 0l-1.5-1.2a6.2 6.2 0 0 1-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 0 1-1-.9l-.2-1.9a5.8 5.8 0 0 1-1.5-.6l-1.5 1.2a1 1 0 0 1-1.4 0l-.7-.7a1 1 0 0 1 0-1.4l1.2-1.5a6.2 6.2 0 0 1-.6-1.5l-1.9-.2a1 1 0 0 1-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 0 1 .6-1.5L5.2 7.3a1 1 0 0 1 0-1.4l.7-.7a1 1 0 0 1 1.4 0l1.5 1.2a6.2 6.2 0 0 1 1.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 0 1 1.5.6l1.5-1.2a1 1 0 0 1 1.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 0 1 .6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 0 0 2.1-2.8 15.7 15.7 0 0 0-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 0 0-6.7 3.2A16.2 16.2 0 0 0 3.2 12c0 .2.2.3.3.5Zm-2.4-1 .7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 0 1 2.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 0 1-2.8-3.7 1 1 0 0 1 0-1Zm12-3.3a2 2 0 1 0 2.7 2.6 4 4 0 1 1-2.6-2.6Z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 0 0-3 3v6h2v3h14v-3h2v-6a3 3 0 0 0-3-3Zm-1 10H7v-4h10v4Zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5Zm.5-8H6v2h12V5Z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3Zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3Z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 1 1-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 1 1 1.4-1.4l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4l3.3-3.3Z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="m5 22.1-1.2-4.7v-.2a1 1 0 0 1 1-1l5 .4a1 1 0 1 1-.2 2l-2.2-.2a7.8 7.8 0 0 0 8.4.2 7.5 7.5 0 0 0 3.5-6.4 1 1 0 1 1 2 0 9.5 9.5 0 0 1-4.5 8 9.9 9.9 0 0 1-10.2 0l.4 1.4a1 1 0 1 1-2 .5ZM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 0 0-9.5-1 7.5 7.5 0 0 0-3.6 7 1 1 0 0 1-2 0 9.5 9.5 0 0 1 4.5-8.6 10 10 0 0 1 10.9.3l-.3-1a1 1 0 0 1 2-.5l1.1 4.8a1 1 0 0 1-1 1.2l-5-.4a1 1 0 0 1-.9-1Z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 0 1 0 .2l-2.6 10a1 1 0 0 1-1 .8h-.2a.8.8 0 0 1-.8-1l2.6-10H8a1 1 0 1 1 0-2h9a1 1 0 0 1 0 2h-3.8ZM5 18h7a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Zm13 1.5L16.5 18 15 19.5a.7.7 0 0 1-1-1l1.5-1.5-1.5-1.5a.7.7 0 0 1 1-1l1.5 1.5 1.5-1.5a.7.7 0 0 1 1 1L17.5 17l1.5 1.5a.7.7 0 0 1-1 1Z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 0 1 0 2h-1v9a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9H5a1 1 0 1 1 0-2h3V6a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1Zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 0 0-1 1v1h4Zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9Zm-7 3a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4Zm4 0a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4Z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 1 1 9 2l-7 7A.5.5 0 1 1 1 8l7-7ZM8.1 5.1A.5.5 0 1 1 9 6l-3 3A.5.5 0 1 1 5 8l3-3Z"/></g></svg>',resize:'<svg width="24" height="24">
2<path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-6a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3A1 1 0 0 1 4 11V5Z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1Z"/><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10Z" fill-rule="nonzero"/></g></svg>',"revision-history":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1Z"/><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10Z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10Z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 0 1 2 0v6c0 .6-.4 1-1 1h-6a1 1 0 0 1 0-2h4.3L16 7A7.2 7.2 0 0 0 7.7 6a7 7 0 0 0 3 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 0 1 1.4 1.5A9.2 9.2 0 0 1 2.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8Z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 4.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L8 5Zm12 11.2a1 1 0 1 1-1 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 1 1 1 1.6L18.4 15l1.8 1.2Z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2Zm0 2v2h14v-2H5Zm10 0h2v2h-2v-2Zm-4-6.4L8.7 9.3a1 1 0 1 0-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 1 0-1.4-1.4L13 11.6V4a1 1 0 0 0-2 0v7.6Z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3Zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 0 0-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2a2 2 0 0 0-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8a2 2 0 0 0 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2Zm3.6 10.9L7 12.3a.7.7 0 0 0-1 1L9.6 17 18 8.6a.7.7 0 0 0 0-1 .7.7 0 0 0-1 0l-7.4 7.3Z"/></svg>',send:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="m13.3 22 7-18.3-18.3 7L9 15l4.3 7ZM18 6.8l-.7-.7L9.4 14l.7.7L18 6.8Z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V8H5a1 1 0 1 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6ZM8 8h2V6H8v2Zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V13H5a1 1 0 0 1 0-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6ZM14 13h2v-2h-2v2Zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V18H5a1 1 0 0 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6ZM8 18h2v-2H8v2Z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path fill-rule="evenodd" d="m16 6 4 4-8 9-8-9 4-4h8Zm-4 10.2 5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2Z"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 0 1 0-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7ZM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 0 0-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7Z"/></g></svg>',"spell-check":'<svg width="24" height="24">
2<path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6Zm0-3v2h2V5H6Zm13 0h-3v5h3v1h-3a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1Zm-5 1.5-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5ZM13 10V8h-2v2h2Zm0-3V5h-2v2h2Zm3 5 1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12Z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 0 1 7 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1Z"/><path d="M5 11h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="m10.4 10 4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10ZM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 0 0-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 0 1-1.3 1.3l-.6.6h2.6V19Z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4 10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4Zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11Z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h14ZM5 15v3h6v-3H5Zm14 0h-6v3h6v-3Zm0-5h-6v3h6v-3ZM5 13h6v-3H5v3Z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8Zm-2 2H5v5h6V6Z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 0 1 2 2v7h-8v-2h6V6h-6V4Z" opacity=".2"/><path d="m18 20-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3.1.2-2.4 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3Z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-8 9H5v5h6v-5Zm8 0h-6v5h6v-5Zm-8-7H5v5h6V6Z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm0 2H5v12h14V6Z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2Z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm0 2H5v12h14V6Z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2Z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v7h-8v7H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-8 9H5v5h6v-5Zm8-7h-6v5h6V6Zm-8 0H5v5h6V6Z"/><path d="m18 20-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3.1.2-2.4 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2Zm.3.5 1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5Z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6Zm-4.7 1.8 1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3Z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM5 6v12h14V6H5Z"/><path d="m14.4 8.6 1.1 1-2.4 2.4 2.4 2.4-1.1 1.1-2.4-2.4-2.4 2.4-1-1.1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24">
2<path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 0 1-2 0V6h-8v12h8v-1a1 1 0 0 1 2 0v2c0 .5-.4 1-.9 1H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h15ZM9 13H5v5h4v-5Zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 0 1 .1 2H17v2a1 1 0 0 1-2 .1V13h-2a1 1 0 0 1-.1-2H15V9c0-.6.4-1 1-1ZM9 6H5v5h4V6Z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 2 0v1h8V6H5v1a1 1 0 1 1-2 0V5c0-.6.4-1 1-1h15Zm0 9h-4v5h4v-5ZM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 0 1 .1 2H9v2a1 1 0 0 1-2 .1V13H5a1 1 0 0 1-.1-2H7V9c0-.6.4-1 1-1Zm11-2h-4v5h4V6Z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 1 1 0 2H5v6h14V6h-1a1 1 0 0 1 0-2h2c.6 0 1 .4 1 1v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5c0-.6.4-1 1-1h2Zm5 10H5v4h6v-4Zm8 0h-6v4h6v-4ZM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 .1V8H9a1 1 0 0 1 0-2h2V4c0-.6.4-1 1-1Z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 0 1 .1 2H13v2a1 1 0 0 1-2 .1V18H9a1 1 0 0 1-.1-2H11v-2c0-.6.4-1 1-1Zm6 7a1 1 0 0 1 0-2h1v-6H5v6h1a1 1 0 0 1 0 2H4a1 1 0 0 1-1-1V6c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v13c0 .5-.4 1-.9 1H18ZM11 6H5v4h6V6Zm8 0h-6v4h6V6Z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm0 9h-4v5h4v-5Zm-6 0H9v5h4v-5Zm0-7H9v5h4V6Zm6 0h-4v5h4V6Z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM5 15.5V18h3v-2.5H5Zm14-5h-9V18h9v-7.5ZM19 6h-4v2.5h4V6ZM8 6H5v2.5h3V6Zm5 0h-3v2.5h3V6Zm-8 7.5h3v-3H5v3Z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Zm0 12h8v3H6v-3Zm11 0c.6 0 1 .4 1 1v1a1 1 0 0 1-2 0v-1c0-.6.4-1 1-1ZM6 11h8v3H6v-3Zm11 0c.6 0 1 .4 1 1v1a1 1 0 0 1-2 0v-1c0-.6.4-1 1-1ZM6 6h8v3H6V6Zm11 0c.6 0 1 .4 1 1v1a1 1 0 1 1-2 0V7c0-.6.4-1 1-1Z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h12Zm0 12h-8v3h8v-3ZM7 16a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-1c0-.6-.4-1-1-1Zm11-5h-8v3h8v-3ZM7 11a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-1c0-.6-.4-1-1-1Zm11-5h-8v3h8V6ZM7 6a1 1 0 0 0-1 1v1a1 1 0 1 0 2 0V7c0-.6-.4-1-1-1Z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM5 15v3h6v-3H5Zm14 0h-6v3h6v-3Zm0-9h-6v3h6V6ZM5 9h6V6H5v3Z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM8 15.5H5V18h3v-2.5Zm11-5h-9V18h9v-7.5Zm-2.5 1 1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2Zm-8.5-1H5v3h3v-3ZM19 6h-4v2.5h4V6ZM8 6H5v2.5h3V6Zm5 0h-3v2.5h3V6Z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-8 11H5v3h6v-3Zm8 0h-6v3h6v-3Zm0-5h-6v3h6v-3ZM5 13h6v-3H5v3Z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM5 14v4h6v-4H5Zm14 0h-6v4h6v-4Zm0-6h-6v4h6V8ZM5 12h6V8H5v4Z"/></svg>',"template-add":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 12v4H5a2 2 0 0 0-2 2v3h9.3a6 6 0 0 1-.3-2H5v-1h7a6 6 0 0 1 .8-2H11v-5l-.8-.6a3 3 0 1 1 3.6 0l-.8.6v4.7a6 6 0 0 1 2-1.9V12a5 5 0 1 0-6 0Z"/><path d="M18 15c.5 0 1 .4 1 .9V18h2a1 1 0 0 1 .1 2H19v2a1 1 0 0 1-2 .1V20h-2a1 1 0 0 1-.1-2H17v-2c0-.6.4-1 1-1Z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14ZM9 16v-4a5 5 0 1 1 6 0v4h4a2 2 0 0 1 2 2v3H3v-3c0-1.1.9-2 2-2h4Zm4 0v-5l.8-.6a3 3 0 1 0-3.6 0l.8.6v5h2Z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 1 1 1 0V6H15v1.6a8 8 0 1 1-6 0Zm-2.6 5.3a.5.5 0 0 0 .3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 0 1 3.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 0 0-4.1 3.7Z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>
2',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path class="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4Zm2.6-7.6-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4Z"/></g></svg>',"text-size-decrease":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14 5a1 1 0 1 1 0 2h-4v11a1 1 0 1 1-2 0V7H4a1 1 0 0 1 0-2h10ZM14 12a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-6Z"/></svg>',"text-size-increase":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14 5a1 1 0 1 1 0 2h-4v11a1 1 0 1 1-2 0V7H4a1 1 0 0 1 0-2h10ZM17 9a1 1 0 0 0-1 1v2h-2a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2h-2v-2c0-.6-.4-1-1-1Z"/></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2Zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2Zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2Zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2Zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2Zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="m12.7 14.3-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 0 1 0-1l3.1-3A12.4 12.4 0 0 1 6.7 9H8a10.1 10.1 0 0 0 1.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 1 1 0-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 0 1-1 2.4 13.5 13.5 0 0 1-1.7 2.3l1.9 1.8Zm4.3-3 2.7 7.3a.5.5 0 0 1-.4.7 1 1 0 0 1-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 0 1-1 .7.5.5 0 0 1-.4-.7l2.7-7.4a1 1 0 0 1 2 0Zm-2.2 4.4h2.4L16 12.5l-1.2 3.2Z" fill-rule="evenodd"/></svg>',typography:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M17 5a1 1 0 1 1 0 2h-4v11a1 1 0 1 1-2 0V7H7a1 1 0 0 1 0-2h10Z"/><path d="m17.5 14 .8-1.7 1.7-.8-1.7-.8-.8-1.7-.8 1.7-1.7.8 1.7.8.8 1.7ZM7 14l1 2 2 1-2 1-1 2-1-2-2-1 2-1 1-2Z"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 0 1-.4 1.8l-1 1.4a5.3 5.3 0 0 1-5.5 1 5 5 0 0 1-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 0 1-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 0 0 2.2.8 3.4 3.4 0 0 0 2.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1ZM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 0 1-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 1 1-1.4 1.4l-5-5a1 1 0 0 1 0-1.4l5-5a1 1 0 0 1 1.4 1.4L6.4 8Z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2Zm11.6-.6a1 1 0 0 1-1.4-1.4l2.1-2a2 2 0 1 0-2.7-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2ZM7.6 6.3a.8.8 0 0 1-1 1.1L3.3 4.2a.7.7 0 1 1 1-1l3.2 3.1ZM5.1 8.6a.8.8 0 0 1 0 1.5H3a.8.8 0 0 1 0-1.5H5Zm5-3.5a.8.8 0 0 1-1.5 0V3a.8.8 0 0 1 1.5 0V5Zm6 11.8a.8.8 0 0 1 1-1l3.2 3.2a.8.8 0 0 1-1 1L16 17Zm-2.2 2a.8.8 0 0 1 1.5 0V21a.8.8 0 0 1-1.5 0V19Zm5-3.5a.7.7 0 1 1 0-1.5H21a.8.8 0 0 1 0 1.5H19Z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 0 0-.3-.7A1 1 0 0 0 16 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2Z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2ZM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4
2-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2Zm0 1a1 1 0 0 0-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6Z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 0 1 2 0v3c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 2 0v2h12ZM11 6.4 8.7 8.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.4L13 6.4V16a1 1 0 0 1-2 0V6.4Z" fill-rule="nonzero"/></svg>',"add-file":'<svg height="24" width="24"><path d="M2 7h2V4h3V2H4a2 2 0 0 0-2 2zm20 0h-2V4h-3V2h3a2 2 0 0 1 2 2zm0 2h-2v6h2zm0 8h-2v3h-3v2h3a2 2 0 0 0 2-2zM2 9h2v6H2zm0 8h2v3h3v2H4a2 2 0 0 1-2-2zm7 5v-2h6v2zm6-20v2H9V2zM6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M2 7h2V4h3V2H4a2 2 0 0 0-2 2zm20 0h-2V4h-3V2h3a2 2 0 0 1 2 2zm0 2h-2v6h2zm0 8h-2v3h-3v2h3a2 2 0 0 0 2-2zM2 9h2v6H2zm0 8h2v3h3v2H4a2 2 0 0 1-2-2zm7 5v-2h6v2zm6-20v2H9V2zM6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M6 17h12l-4-5-3 3.8-2-2.6z"/></svg>',adjustments:'<svg width="24" height="24"><path d="M16 11a3 3 0 1 1 2.8-4H21v2h-2.2a3 3 0 0 1-2.8 2Zm0-2a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM3 9h8V7H3v2Zm5 10a3 3 0 1 0-2.8-4H3v2h2.2A3 3 0 0 0 8 19Zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm13 0h-8v-2h8v2Z"/></svg>',"alt-text":'<svg width="24" height="24"><path d="M3 20a2 2 0 0 1-1.4-.6A2 2 0 0 1 1 18V6c0-.6.2-1 .6-1.4A2 2 0 0 1 3 4h18c.6 0 1 .2 1.4.6.4.4.6.9.6 1.4v12c0 .6-.2 1-.6 1.4a2 2 0 0 1-1.4.6H3Zm0-2h18V6H3v12Zm1.5-3H6v-1.5h1.5V15H9v-5a1 1 0 0 0-.3-.7A1 1 0 0 0 8 9H5.5a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v5ZM6 12v-1.5h1.5V12H6Z"/><path d="M11 15V9h1.3v4.5h2V15H11Zm5.8-4.5V15h1.4v-4.5h1.3V9h-4v1.5h1.3Z"/></svg>',"auto-image-enhancement":'<svg width="24" height="24"><path d="M7.7 10.6a5.8 5.8 0 0 0 5.7 5.7A5.8 5.8 0 0 0 7.7 22 5.8 5.8 0 0 0 2 16.3a5.8 5.8 0 0 0 5.7-5.7ZM15.5 2c.3 3 3.3 6 6.5 6.4-3.2.5-6.2 3.4-6.5 6.5-.3-3.4-3-6-6.4-6.5 3.3-.5 6.1-3 6.4-6.4Z"/></svg>',blur:'<svg width="24" height="24"><path d="M19.3 9.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3a1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7A1 1 0 0 0 20 9a1 1 0 0 0-.7.3Zm-16 0a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3A1 1 0 0 0 5 10a1 1 0 0 0-.3-.7A1 1 0 0 0 4 9a1 1 0 0 0-.7.3Zm16 6a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3a1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3Zm-16 0a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3A1 1 0 0 0 5 16a1 1 0 0 0-.3-.7A1 1 0 0 0 4 15a1 1 0 0 0-.7.3Zm5-11A1 1 0 0 0 8 5a1 1 0 0 0 1 1c.3 0 .5-.1.7-.3A1 1 0 0 0 10 5a1 1 0 0 0-.3-.7A1 1 0 0 0 9 4a1 1 0 0 0-.7.3Zm6 0a1 1 0 0 0-.3.7 1 1 0 0 0 1 1c.3 0 .5-.1.7-.3A1 1 0 0 0 16 5a1 1 0 0 0-.3-.7A1 1 0 0 0 15 4a1 1 0 0 0-.7.3Zm-6 16a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3a1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7A1 1 0 0 0 9 20a1 1 0 0 0-.7.3Zm6 0a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3a1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3ZM7.6 8.6A2 2 0 0 0 7 10c0 .6.2 1 .6 1.4.4.4.8.6 1.4.6s1-.2 1.4-.6c.4-.4.6-.8.6-1.4s-.2-1-.6-1.4A2 2 0 0 0 9 8a2 2 0 0 0-1.4.6Zm0 6A2 2 0 0 0 7 16c0 .6.2 1 .6 1.4.4.4.8.6 1.4.6s1-.2 1.4-.6c.4-.4.6-.8.6-1.4s-.2-1-.6-1.4A2 2 0 0 0 9 14a2 2 0 0 0-1.4.6Zm6-6A2 2 0 0 0 13 10c0 .6.2 1 .6 1.4.4.4.8.6 1.4.6s1-.2 1.4-.6c.4-.4.6-.8.6-1.4s-.2-1-.6-1.4A2 2 0 0 0 15 8a2 2 0 0 0-1.4.6Zm0 6A2 2 0 0 0 13 16c0 .6.2 1 .6 1.4.4.4.8.6 1.4.6s1-.2 1.4-.6c.4-.4.6-.8.6-1.4s-.2-1-.6-1.4A2 2 0 0 0 15 14a2 2 0 0 0-1.4.6Z"/></svg>',box:'<svg width="24" height="24"><path d="M3.8 7a1 1 0 0 0-.7.6l-.1 3V13.8a3.5 3.5 0 0 0 4 2.7c.8-.2 1.4-.5 2-1l.3-.3.3.2c.7.7 1.4 1 2.4 1.1 1.2 0 2.4-.6 3-1.6.9-1.2.8-2.8 0-4a3.7 3.7 0 0 0-2-1.2c-.4-.1-1.2-.1-1.6 0a3.4 3.4 0 0 0-1.7 1l-.3.2-.2-.1c-.4-.5-1.2-1-2-1.1-.6-.2-1.5 0-2 .2H5V9c0-1.3 0-1.3-.3-1.6a1 1 0 0 0-1-.3Zm12 2.6c-.3.2-.5.4-.6.8v.6l.9 1 .7 1v.1l-.8 1-.7 1a1 1 0 0 0 0 .7 1 1 0 0 0 1.3.6c.2 0 .3-.2 1-1l.5-.7.6.8.7.8c.4.3 1 .3 1.3 0l.2-.3a1 1 0 0 0 0-.8l-.8-1.2-.7-1a26 26 0 0 0 1.5-2 .8.8 0 0 0 .1-.4c0-.4-.1-.7-.5-.9H20c-.4 0-.5 0-1.2.8l-.7.8-.6-.7-.7-.9a1 1 0 0 0-1 0Zm-9 2 .4.1c.3.1.6.5.7.8l.1.6v.6c-.6 1-2 1.2-2.7.3-.3-.3-.3-.5-.3-1v-.5c.3-.5.7-.8 1.1-1a1.5 1.5 0 0 1 .7 0Zm5.7 0c.4 0 .8.4 1 .8l.2.6-.1.7c-.5.9-1.6 1.1-2.4.6a1.4 1.4 0 0 1-.6-1.1 1.4 1.4 0 0 1 .5-1.2 1.5 1.5 0 0 1 1.4-.4Z"/></svg>',camera:'<svg height="24" width="24"><g clip-rule="evenodd" fill-rule="evenodd"><path d="M10 5.4a1 1 0 0 1 .8-.4h4.4a1 1 0 0 1 .8.4l1.2 1.8h2.3A2.5 2.5 0 0 1 22 9.6v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 4 17.6v-8a2.5 2.5 0 0 1 2.5-2.4h2.3zM11.4 7l-1.2 1.7a1 1 0 0 1-.8.5h-3a.5.5 0 0 0-.4.4v8a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.4h-2.9a1 1 0 0 1-.8-.5L14.6 7z"/><path d="M13 11.4a2 2 0 1 0 0 3.8 2 2 0 0 0 0-3.8zm-4 1.9a4 4 0 1 1 8 0 4 4 0 0 1-8 0z"/></g></svg>',caption:'<svg height="24" width="24"><path d="M6 16h8v-2H6zm10 0h2v-2h-2zM4 20a2 2 0 0 1-1.5-.6A2 2 0 0 1 2 18V6c0-.6.2-1 .6-1.4A2 2 0 0 1 4 4h16c.6 0 1 .2 1.4.6.4.4.6.9.6 1.4v12c0 .6-.2 1-.
26 1.4a2 2 0 0 1-1.4.6zm0-2h16V6H4z"/></svg>',dropbox:'<svg height="24" width="24"><path clip-rule="evenodd" d="m6.4 9.3-3-2a1 1 0 0 1 0-1.6l4-2.5a1 1 0 0 1 1 0L12 5.5l3.6-2.3a1 1 0 0 1 1 0l4 2.5a1 1 0 0 1 0 1.7l-3 1.9 3 1.9a1 1 0 0 1 0 1.6l-2.9 1.9V16c0 .3-.1.6-.4.8l-4.5 3a1 1 0 0 1-1.2 0l-4.4-3a1 1 0 0 1-.5-.9v-1l-3.2-2.2a1 1 0 0 1 0-1.6zm3 0L12 7.5l2.6 1.8L12 11zM8.9 15v.4l3.3 2.3 3.4-2.3v-.2L12 13l-3.1 2zm-1-10-2 1.4 2 1.3 2-1.3zm8.2 0-2 1.4 2 1.3 2-1.3zm-2 6.9 2-1.3 2 1.3-2 1.3-2-1.3zm-8.3 0 2-1.3L10 12l-2 1.3-2-1.3z" fill-rule="evenodd"/></svg>',evernote:'<svg width="24" height="24"><path fill-rule="evenodd" d="m9.5 3-.3.1-2.6 2.6C3.8 8.5 4 8.2 4 8.7c0 1.3.3 3 .6 4.3.5 2 1.1 3.2 2 3.7l1.2.3c1 .2 1.5.2 2.2.2 1.3 0 1.7 0 2.2-.4.3-.2.3-.4.4-1a38.4 38.4 0 0 1 .3-.4l.3.1 1.8.1h1.6v-1.8H14l-.1-.2a6.8 6.8 0 0 1-.5-1c-.2-.4-.3-.6-.5-.7a.8.8 0 0 0-.5-.1.9.9 0 0 0-.8.5l-.4 1.6-.3 1.5H9.4l-2-.3a1 1 0 0 1-.1-.2A10.1 10.1 0 0 1 6 9.7v-.2h4l.5-.5V5H12c.4.2.7.7.8 1.1a1 1 0 0 0 .2.6c.2.2.3.2 1 .3 1.2 0 2 .2 2.5.6.4.2.8.7 1 1.2.3 1.2.5 4 .3 6.4 0 1.8-.4 3.4-.8 4h-.7a8 8 0 0 1-.8 0c-.2 0-.3-.3-.2-.5a.5.5 0 0 1 .4-.3h.9v-1.8H16c-.7 0-.9 0-1.2.2-.9.4-1.4 1.2-1.4 2.1l.1.4.1.2a1 1 0 0 1 .1.2c.3.7.8 1.2 1.4 1.3l1.2.1h1.2a2 2 0 0 0 1-.8 9 9 0 0 0 1.1-4.3c.2-3 0-6.3-.4-7.7A4.3 4.3 0 0 0 16 5.3a7 7 0 0 0-1.3-.2 7.2 7.2 0 0 1-.4 0 5.5 5.5 0 0 1 0-.3c-.2-.5-.6-1-1.2-1.4a3 3 0 0 0-.5-.2c-.4-.2-.5-.2-1.8-.2a26.5 26.5 0 0 0-1.3 0Zm-.8 4v.7H7.2l.7-.8.8-.7v.7Zm7 3.5c-.4 0-.7.5-.9 1v.7h.3c.7 0 1.1.2 1.5.6l.3.2.3-.6V11a1 1 0 0 0-.6-.4 2 2 0 0 0-.8 0Z" clip-rule="evenodd"/></svg>',exposure:'<svg width="24" height="24"><path d="M5 21a2 2 0 0 1-1.4-.6A2 2 0 0 1 3 19V5c0-.6.2-1 .6-1.4A2 2 0 0 1 5 3h14c.6 0 1 .2 1.4.6.4.4.6.8.6 1.4v14c0 .6-.2 1-.6 1.4a2 2 0 0 1-1.4.6H5Zm0-2h14V5L5 19Zm9.5-1v-2h-2v-1.5h2v-2H16v2h2V16h-2v2h-1.5ZM6 8.5h5V7H6v1.5Z"/></svg>',fb:'<svg width="24" height="24"><path fill-rule="evenodd" d="M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-11 6.7V14H8.1v-2.5h2v-1C10 8.2 11.5 7 12.8 7H16v2.5h-2.4c-.8 0-1 .7-1 1.3v.7h3.2l-1 2.5h-2v5a7 7 0 1 0-2.8-.2Z" clip-rule="evenodd"/></svg>',flickr:'<svg width="24" height="24"><path d="M8.2 15.3c1.7 0 3.1-1.4 3.1-3.1A3.2 3.2 0 0 0 8.1 9 3.2 3.2 0 0 0 5 12.2c0 1.7 1.4 3 3.2 3Zm7.6 0c1.7 0 3.2-1.4 3.2-3.1a3.2 3.2 0 0 0-6.3 0c0 1.7 1.4 3 3.1 3Z"/></svg>',folder:'<svg width="24" height="24"><path fill-rule="evenodd" d="M5.6 6a.6.6 0 0 0-.6.6v11.2a.6.6 0 0 0 .6.6h12.8a.6.6 0 0 0 .6-.6V9a.6.6 0 0 0-.6-.6h-7.2a1 1 0 0 1-.8-.4L9 6H5.6ZM3.8 4.8A2.6 2.6 0 0 1 5.6 4h4a1 1 0 0 1 .8.4l1.3 2h6.7A2.6 2.6 0 0 1 21 9v8.8a2.6 2.6 0 0 1-2.6 2.6H5.6A2.6 2.6 0 0 1 3 17.8V6.6c0-.7.3-1.4.8-1.8Z" clip-rule="evenodd"/></svg>',"google-drive":'<svg height="24" width="24"><path clip-rule="evenodd" d="M8.7 4.5a1 1 0 0 1 .9-.5h4.8a1 1 0 0 1 .9.5l5.6 9.7a1 1 0 0 1 0 1l-2.4 4.2a1 1 0 0 1-.9.5H6.4a1 1 0 0 1-.9-.5l-2.4-4.2a1 1 0 0 1 0-1zM10.2 6l-4.5 7.7h2.5L12.7 6h-2.5zm4.2 1 4.4 7.7-1.2 2.2-4.4-7.7zM12 11.2l-1.5 2.5h3zm2.6 4.5H5.7L7 17.9h8.9l-1.3-2.2z" fill-rule="evenodd"/></svg>',"google-photos":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12.4 3c-.8 0-1.4.7-1.4 1.4v3.2a5 5 0 0 0-8 4c0 .8.6 1.4 1.4 1.4h3.2a5 5 0 0 0-1 3 5 5 0 0 0 5 5c.8 0 1.4-.6 1.4-1.4v-3.2a5 5 0 0 0 8-4c0-.8-.7-1.4-1.4-1.4h-3.2a5 5 0 0 0-4-8Zm.6 8V5a3 3 0 0 1 2.4 3 3 3 0 0 1-2.4 3Zm-2 0H5a3 3 0 0 1 3-2.4 3 3 0 0 1 3 2.4Zm2 2a3 3 0 0 0 3 2.4 3 3 0 0 0 3-2.4h-6Zm-4.4 3a3 3 0 0 1 2.4-3v6a3 3 0 0 1-2.4-3Z" clip-rule="evenodd"/></svg>',grayscale:'<svg height="24" width="24"><path d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm12.4 0H19v3.6zm-2.8 0h-2.2l8.6 8.6v-2.2zm-5 0H5l14 14v-2.6z" fill-rule="evenodd"/></svg>',huddle:'<svg height="24" width="24"><path d="M10.3 5.6V8h.8v-2l3.5 2 4.3-2.5L14.6 3l-4.3 2.6zM14.6 8v5.2l4.3-2.6V5.6L14.6 8zM6 13.3v2.5h.9v-2l3.4 2 4.3-2.5-4.3-2.6zm4.3 2.6V21l4.3-2.6v-5.1l-4.3 2.6z"/></svg>',"image-decorative":'<svg width="24" height="24"><path d="M12 10c.3 0 .5-.1.7-.3A1 1 0 0 0 13 9a1 1 0 0 0-.3-.7A1 1 0 0 0 12 8a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7 1 1 0 0 0 1 1Zm0 6a3 3 0 0 1-1.8-.5A3 3 0 0 1 9.1 14a2 2 0 0 0-.2 0 3 3 0 0 1-2.5-1 3 3 0 0 1-.9-2.2A3 3 0 0 1 6.2 9a3.4 3.4 0 0 1-.5-1 3 3 0 0 1-.2-1 3 3 0 0 1 1-2.2A3 3 0 0 1 8.8 4H9a3 3 0 0 1 1.1-1.4A3 3 0 0 1 12 2a3 3 0 0 1 1.8.5c.5.4.9.9 1.1 1.5h.2a3 3 0 0 1 2.5.8 3 3 0 0 1 .9 2.3c0 .3 0 .7-.2 1a2.8 2.8 0 0 1-.5.9l.5 1 .2 1a3 3 0 0 1-1 2.2 3 3 0 0 1-2.4.9 1.8 1.8 0 0 0-.2 0 3 3 0 0 1-1.1 1.4 3 3 0 0 1-1.8.5Zm0 7a8.7 8.7 0 0 1 .7-3.5 9.2 9.2 0 0 1 2-2.8 9.2 9.2 0 0 1 2.8-2A8.6 8.6 0 0 1 21 14a8.6 8.6 0 0 1-.7 3.5 9.2 9.2 0 0 1-2 2.8 9.2 9.2 0 0 1-2.8 2 8.6 8.6 0 0 1-3.5.7Zm2.5-2.5a6.8 6.8 0 0 0 2.4-1.5 6.8 6.8 0 0 0 1.7-2.6c-1 .4-1.8 1-2.6 1.7a6.8 6.8 0 0 0-1.5 2.4ZM12 23a8.6 8.6 0 0 0-.7-3.5 9.2 9.2 0 0 0-2-2.9 9.2 9.2 0 0 0-2.8-1.9A8.6 8.6 0 0 0 3 14a8.7 8.7 0 0 0 .7 3.5 9.2 9.2 0 0 0 2 2.9 9.2 9.2 0 0 0 2.8 1.9 8.6 8.6 0 0 0 3.5.7Zm-2.5-2.5A6.8 6.8 0 0 1 7.2 19a6.8 6.8 0 0 1-1.6-2.6c.9.4 1.7 1 2.5 1.7a6.8 6.8 0 0 1 1.6 2.4Zm5.9-8.4c.3 0 .5-.1.8-.4.2-.2.3-.5.3-.8 0-.2 0-.4-.2-.6a1.3 1.3 0 0 0-.5-.4l-.8-.4a3 3 0 0 1-.2.5 3.8 3.8 0 0 1-.2.5 2.5 2.5 0 0 1-.3.4 4 4 0 0 1-.4.4l.8.6a.8.8 0 0 0 .3.1h.4ZM15 8.5l.8-.4.5-.4.2-.6a1.1 1.1 0 0 0-.3-.8 1 1 0 0 0-.8-.4 1.1 1.1 0 0 0-.7.2l-.8.6.4.4.3.4a3.9 3.9 0 0 1 .4 1Zm-4-2.3a2.7 2.7 0 0 1 1-.2 2.7 2.7 0 0 1 1 .2l.2-1.1c0-.3-.1-.6-.4-.8A1.2
21.2 0 0 0 12 4c-.3 0-.6.1-.8.3-.3.2-.4.5-.3.8v1.1Zm1 7.8c.3 0 .6-.1.8-.3.3-.2.4-.5.3-.8v-1.1a2.7 2.7 0 0 1-1.1.2 2.7 2.7 0 0 1-1-.2l-.2 1.1c0 .3.1.6.4.8.2.2.5.3.8.3ZM9 8.5a3 3 0 0 1 .4-1l.3-.4.4-.4-.8-.6A.9.9 0 0 0 9 6a1.2 1.2 0 0 0-.3 0c-.4 0-.6 0-.9.3a1.1 1.1 0 0 0-.3.8c0 .2 0 .4.2.6l.5.4.9.4Zm-.3 3.6H9l.3-.2.8-.6a5.5 5.5 0 0 1-.4-.4 2.1 2.1 0 0 1-.3-.4 3.8 3.8 0 0 1-.2-.5 3 3 0 0 1-.1-.5l-1 .4-.4.4a1.1 1.1 0 0 0-.2.6c0 .3.2.6.4.8.2.2.4.4.7.4Z"/></svg>',"image-enhancements":'<svg height="24" width="24"><path d="M5.3 21a2 2 0 0 1-1.5-.6 2 2 0 0 1-.6-1.4V5c0-.6.2-1 .6-1.4A2 2 0 0 1 5.2 3H13v2H5.2v14h14v-8h2v8c0 .6-.1 1-.5 1.4a2 2 0 0 1-1.4.6z"/><path d="M11 9a4 4 0 0 0 4 4 4 4 0 0 0-4 4 4 4 0 0 0-4-4 4 4 0 0 0 4-4zm5.5-6c.2 2.1 2.2 4.1 4.5 4.5-2.3.4-4.3 2.4-4.5 4.5A5.2 5.2 0 0 0 12 7.5 5.2 5.2 0 0 0 16.5 3z"/></svg>',instagram:'<svg height="24" width="24"><path clip-rule="evenodd" d="M10.1 9a4 4 0 1 1 4.4 6.6A4 4 0 0 1 10.1 9zm2.2 1.3a2 2 0 1 0 0 4 2 2 0 0 0 0-4z" fill-rule="evenodd"/><path d="M16 9.3a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6z"/><path clip-rule="evenodd" d="M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z" fill-rule="evenodd"/></svg>',onedrive:'<svg height="24" width="24"><path d="M4 13.7h1zm16 .7h-1zm-11.7-4A4.4 4.4 0 0 1 12.1 8V6a6.4 6.4 0 0 0-5.6 3.4l1.8 1zM12.1 8c2 0 3.6 1.4 4 2.8l2-.5A6.3 6.3 0 0 0 12 6v2zm8.1 6.8-9.8-5.5-1 1.8 9.8 5.5 1-1.8zm-9.8-5.5A5 5 0 0 0 3 13.7h2A3 3 0 0 1 9.5 11l1-1.8zM3 13.7a5 5 0 0 0 1 2.8l1.5-1.1a3 3 0 0 1-.5-1.7zm15.8 1.6a2.3 2.3 0 0 1-2 1.4v2a4.3 4.3 0 0 0 3.9-2.6zm-2 1.4H8v2h8.7zm-8.8 0a3 3 0 0 1-2.5-1.3L4 16.5a5 5 0 0 0 4 2.2v-2zm12.7-.6c.2-.6.3-1.1.3-1.7h-2c0 .3 0 .6-.2.9zm.3-1.7c0-3-3.1-5.1-6-4l.8 1.9a2.3 2.3 0 0 1 3.2 2h2zm-6-4L4.4 15l.8 1.9 10.7-4.6-.7-1.8z"/></svg>',"photo-filter":'<svg height="24" width="24"><path d="M4.4 21c-.3 0-.6-.2-.9-.5-.3-.3-.4-.6-.5-.9L19.6 3c.3 0 .6.3.9.5l.5.9zM3 14.7v-2.8L11.9 3h2.8zM3 7V5c0-.6.2-1 .6-1.4A2 2 0 0 1 5 3h2zm14 14 4-4v2c0 .6-.2 1-.6 1.4a2 2 0 0 1-1.4.6zm-7.7 0L21 9.3v2.8L12 21z"/></svg>',"revert-changes":'<svg height="24" width="24"><path d="m8.9 18.8.4 3.2H13v-2h-2v-2.6a4.6 4.6 0 0 1-1.6-.6 5.9 5.9 0 0 1-1.3-1l-2.5 1-1-1.7 2.2-1.6a4 4 0 0 1-.2-.7 5.9 5.9 0 0 1 0-.8v-.8l.2-.8-2.2-1.6 1-1.7 2.5 1a6 6 0 0 1 1.2-.9l1.4-.6.4-2.6h2l.3 2.6A5.6 5.6 0 0 1 16 8.2l2.5-1 1 1.6-2.2 1.7.2.7v.8a5 5 0 0 1 0 1h2a2.6 2.6 0 0 0 0-.5V11.3l2.6-2-2.8-4.7-3 1.3a8.2 8.2 0 0 0-.5-.4 3.8 3.8 0 0 0-.6-.3L14.8 2H9.3l-.4 3.2a5 5 0 0 0-1.2.7l-3-1.3L2 9.4l2.6 2V12.6l-2.6 2 2.7 4.7 3-1.3a8 8 0 0 0 1.2.7z"/><path d="m14.5 20.3 2.1-2-2.1-2.2 1.4-1.4 2.1 2.1 2.1-2 1.4 1.3-2 2.1 2 2.1-1.4 1.4-2.1-2-2.1 2zM12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></svg>',saturation:'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 20.5a6 6 0 1 1-5.9-10.2 6 6 0 1 1 11.8 0A6 6 0 1 1 12 20.5Zm-1.1-7.7a6 6 0 0 0-.2.3 4.3 4.3 0 0 1-2-1.3c.9.1 1.6.5 2.2 1Zm2.4.3a6 6 0 0 0-.2-.3 4.3 4.3 0 0 1 2.2-1 4.3 4.3 0 0 1-2 1.3ZM12.2 15a6.3 6.3 0 0 1-.4 0 4.3 4.3 0 0 0 .2 2.5 4.3 4.3 0 0 0 .2-2.5Zm.9 4.2a6 6 0 0 0 .8-4.5 6 6 0 0 0 3.4-2.8 4.3 4.3 0 0 1-1.3 8.4 4.3 4.3 0 0 1-2.9-1.1Zm-2.2 0a4.3 4.3 0 1 1-4.2-7.3 6 6 0 0 0 3.4 2.8 6 6 0 0 0 .8 4.5Zm-3-9.2a4.3 4.3 0 1 1 8.3 0 6 6 0 0 0-4.2 1.5A6 6 0 0 0 7.8 10Z"/></svg>',"transform-image":'<svg height="24" width="24"><path d="M3 21v-6h2V9H3V3h6v2h6V3h6v6h-2v6h2v6h-6v-2H9v2zm6-4h6v-2h2V9h-2V7H9v2H7v6h2zM5 7h2V5H5zm12 0h2V5h-2zm0 12h2v-2h-2zM5 19h2v-2H5z"/></svg>',vibrance:'<svg height="24" width="24"><path d="M12 20 22 4H2zm2.6-8 1.3-2H8l1.3 2h5.2zm-1.2 2h-2.8l1.4 2.2zm5-8L17 8H7L5.6 6h12.8z" fill-rule="evenodd"/></svg>',vk:'<svg width="24" height="24"><path fill-rule="evenodd" d="M14.8 17.4a2 2 0 0 1-1.3.7 8 8 0 0 1-7.7-3.6c-1.4-2-2.2-4.4-2.6-5.7L3 8.6A2 2 0 0 1 5 6h2.5c.4 0 .8.1 1.2.4A2 2 0 0 1 9.8 6h3.5a2 2 0 0 1 1.4.6 2 2 0 0 1 1.5-.6h2.4a2 2 0 0 1 2 2.5c-.5 1.5-1.2 2.6-1.8 3.6a12.5 12.5 0 0 1 2 3.2A2 2 0 0 1 19 18h-2.6a2 2 0 0 1-1.3-.5 6.9 6.9 0 0 1-.3-.2Zm.5-2.5-1.2-1a3 3 0 0 0-.8-.2v2.4h-1.7a5.6 5.6 0 0 1-.3 0c-3-.7-4.7-3.7-5.6-6.1A38.1 38.1 0 0 1 5 8.1V8h2.5a80.5 80.5 0 0 1 1.2 2.5c.6 1.2 1.2 2 2 2.1V9l-.9-1h3.5v4.1a5 5 0 0 0 .4-.3c.7-.7 1.2-1.4 1.6-2.2l.2-.3.7-1.3h2.4a8.5 8.5 0 0 1-.8 2l-1.3 2-.3.3a10.5 10.5 0 0 1 2.8 3.8h-2.6l-.8-.9a20.6 20.6 0 0 0-.3-.3Z" clip-rule="evenodd"/></svg>',warmth:'<svg height="24" width="24"><path d="M12 21.1c-1.4 0-2.6-.5-3.6-1.5s-1.5-2.1-1.5-3.5c0-.8.2-1.6.6-2.2A5 5 0 0 1 8.9 12v-6c0-.8.3-1.5 1-2.1a2.9 2.9 0 0 1 2-.9c.9 0 1.6.3 2.2.9.5.6.8 1.3.8 2.1v6a5 5 0 0 1 1.5 1.8A4.9 4.9 0 0 1 17 16c0 1.4-.5 2.6-1.4 3.5s-2.2 1.5-3.6 1.5zm-3-5h6c0-.5-.2-1-.4-1.4a3 3 0 0 0-.9-1l-.8-.6v-7a1 1 0 0 0-.3-.7A1 1 0 0 0 12 5a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v7l-.8.6a2.9 2.9 0 0 0-.9 1 3 3 0 0 0-.3 1.4z"/></svg>',user:'<svg width="24" height="24">
2<path d="M12 24a12 12 0 1 1 0-24 12 12 0 0 1 0 24Zm-8.7-5.3a11 11 0 0 0 17.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7ZM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13Z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 0 1 1.2 1.5l-.1.1-4.1 3-4-3a1 1 0 0 1 1-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8 4 2.9a1 1 0 0 1-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 0 1-1-1v-4l-2 1.3a1 1 0 0 1-1.2-.1l-.1-.1a1 1 0 0 1 .1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2Zm-4 0v2a2 2 0 0 1-2-2h2Zm8 0v2h-2v-2h2Zm8 0a2 2 0 0 1-2 2v-2h2Zm-4 0v2h-2v-2h2ZM15 7a1 1 0 0 1 0 2v7a1 1 0 0 1-2 0V9h-1v7a1 1 0 0 1-2 0v-4a2.5 2.5 0 0 1-.2-5H15ZM5 15v2H3v-2h2Zm16 0v2h-2v-2h2ZM5 11v2H3v-2h2Zm16 0v2h-2v-2h2ZM5 7v2H3V7h2Zm16 0v2h-2V7h2ZM5 3v2H3c0-1.1.9-2 2-2Zm8 0v2h-2V3h2Zm6 0a2 2 0 0 1 2 2h-2V3ZM9 3v2H7V3h2Zm8 0v2h-2V3h2Z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5Z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6ZM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3Zm.7-3 .3-4a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7l.3 4h1.4Z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3Zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm-1-9a1 1 0 0 1 2 0v6a1 1 0 0 1-2 0V8Zm-2 4a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8Z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3Zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm-3-5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8Z" fill-rule="nonzero"/></svg>'}})},741(e,t,n){n(983)},595(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.ModelManager");const t=e=>t=>(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(a=o.constructor)||void 0===a?void 0:a.name)===r.name)?"string":t;var n,o,r,a})(t)===e,n=e=>t=>typeof t===e,o=e=>t=>e===t,r=t("string"),a=t("object"),i=t("array"),l=o(null),s=n("boolean"),c=o(void 0),u=e=>!(e=>null==e)(e),d=n("function"),p=n("number"),f=()=>{},m=e=>()=>e,g=e=>e,h=(e,t)=>e===t;function b(e,...t){return(...n)=>{const o=t.concat(n);return e.apply(null,o)}}const v=e=>t=>!e(t),y=e=>e(),_=m(!1),A=m(!0);class k{constructor(e,t){this.tag=e,this.value=t}static some(e){return new k(!0,e)}static none(){return k.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?k.some(e(this.value)):k.none()}bind(e){return this.tag?e(this.value):k.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:k.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return u(e)?k.some(e):k.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}k.singletonNone=new k(!1);const x=Array.prototype.slice,w=Array.prototype.indexOf,C=Array.prototype.push,E=(e,t)=>{return n=e,o=t,w.call(n,o)>-1;var n,o},S=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},T=(e,t)=>{const n=[];for(let o=0;o<e;o++)n.push(t(o));return n},I=(e,t)=>{const n=e.length,o=new Array(n);for(let r=0;r<n;r++){const n=e[r];o[r]=t(n,r)}return o},B=(e,t)=>{for(let n=0,o=e.length;n<o;n++)t(e[n],n)},O=(e,t)=>{const n=[],o=[];for(let r=0,a=e.length;r<a;r++){const a=e[r];(t(a,r)?n:o).push(a)}return{pass:n,fail:o}},L=(e,t)=>{const n=[];for(let o=0,r=e.length;o<r;o++){const r=e[o];t(r,o)&&n.push(r)}return n},D=(e,t,n)=>(((e,t)=>{for(let n=e.length-1;n>=0;n--)t(e[n],n)})(e,(e,o)=>{n=t(n,e,o)}),n),M=(e,t,n)=>(B(e,(e,o)=>{n=t(n,e,o)}),n),N=(e,t)=>((e,t,n)=>{for(let o=0,r=e.length;o<r;o++){const r=e[o];if(t(r,o))return k.some(r);if(n(r,o))break}return k.none()})(e,t,_),P=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return k.some(n);return k.none()},R=e=>{const t=[];for(let n=0,o=e.length;n<o;++n){if(!i(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input
2: "+e);C.apply(t,e[n])}return t},F=(e,t)=>R(I(e,t)),V=(e,t)=>{for(let n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0},z=(e,t)=>{const n={};for(let o=0,r=e.length;o<r;o++){const r=e[o];n[String(r)]=t(r,o)}return n},U=(e,t)=>t>=0&&t<e.length?k.some(e[t]):k.none(),j=e=>U(e,0),H=e=>U(e,e.length-1),q=(e,t)=>{for(let n=0;n<e.length;n++){const o=t(e[n],n);if(o.isSome())return o}return k.none()},G=Object.keys,K=Object.hasOwnProperty,Z=(e,t)=>{const n=G(e);for(let o=0,r=n.length;o<r;o++){const r=n[o];t(e[r],r)}},W=(e,t)=>$(e,(e,n)=>({k:n,v:t(e,n)})),$=(e,t)=>{const n={};return Z(e,(e,o)=>{const r=t(e,o);n[r.k]=r.v}),n},Y=(e,t)=>{const n=[];return Z(e,(e,o)=>{n.push(t(e,o))}),n},J=e=>Y(e,g),X=(e,t)=>K.call(e,t),Q=e=>{if(!i(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");const t=[],n={};return B(e,(o,r)=>{const a=G(o);if(1!==a.length)throw new Error("one and only one name per case");const l=a[0],s=o[l];if(void 0!==n[l])throw new Error("duplicate key detected:"+l);if("cata"===l)throw new Error("cannot have a case named cata (sorry)");if(!i(s))throw new Error("case arguments must be an array");t.push(l),n[l]=(...n)=>{const o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+l+". Expected "+s.length+" ("+s+"), got "+o);return{fold:(...t)=>{if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[r].apply(null,n)},match:e=>{const o=G(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!V(t,e=>E(o,e)))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[l].apply(null,n)},log:e=>{console.log(e,{constructors:t,constructor:l,params:n})}}}}),n},ee=e=>{let t=e;return{get:()=>t,set:e=>{t=e}}},te=e=>e.slice(0).sort(),ne=(e,t)=>{const n=L(t,t=>!E(e,t));n.length>0&&(e=>{throw new Error("Unsupported keys for object: "+te(e).join(", "))})(n)},oe=e=>((e,t)=>((e,t,n)=>{if(0===t.length)throw new Error("You must specify at least one required field.");return((e,t)=>{if(!i(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");B(t,t=>{if(!r(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")})})("required",t),(e=>{const t=te(e);N(t,(e,n)=>n<t.length-1&&e===t[n+1]).each(e=>{throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")})})(t),o=>{const r=G(o);V(t,e=>E(r,e))||((e,t)=>{throw new Error("All required keys ("+te(e).join(", ")+") were not specified. Specified keys were: "+te(t).join(", ")+".")})(t,r),e(t,r);const a=L(t,e=>!n.validate(o[e],e));return a.length>0&&((e,t)=>{throw new Error("All values need to be of type: "+t+". Keys ("+te(e).join(", ")+") were not.")})(a,n.label),o}})(e,t,{validate:d,label:"function"}))(ne,e),re=e=>{const t=t=>t(e),n=m(e),o=()=>r,r={tag:!0,inner:e,fold:(t,n)=>n(e),isValue:A,isError:_,map:t=>ie.value(t(e)),mapError:o,bind:t,exists:t,forall:t,getOr:n,or:o,getOrThunk:n,orThunk:o,getOrDie:n,each:t=>{t(e)},toOptional:()=>k.some(e)};return r},ae=e=>{const t=()=>n,n={tag:!1,inner:e,fold:(t,n)=>t(e),isValue:_,isError:A,map:t,mapError:t=>ie.error(t(e)),bind:t,exists:_,forall:A,getOr:g,or:g,getOrThunk:y,orThunk:y,getOrDie:(o=String(e),()=>{throw new Error(o)}),each:f,toOptional:k.none};var o;return n},ie={value:re,error:ae,fromOption:(e,t)=>e.fold(()=>ae(t),re)},le="undefined"!=typeof window?window:Function("return this;")(),se=e=>{const t=e.replace(/\./g,"-");return{resolve:e=>t+"-"+e}},ce=(e,t,n=h)=>e.exists(e=>n(e,t)),ue=e=>{const t=[],n=e=>{t.push(e)};for(let t=0;t<e.length;t++)e[t].each(n);return t},de=(e,t)=>e?k.some(t):k.none(),pe=(e,t)=>((e,t)=>{let n=null!=t?t:le;for(let t=0;t<e.length&&null!=n;++t)n=n[e[t]];return n})(e.split("."),t),fe=()=>{const e=(e=>{const t=ee(k.none()),n=()=>t.get().each(e);return{clear:()=>{n(),t.set(k.none())},isSet:()=>t.get().isSome(),get:()=>t.get(),set:e=>{n(),t.set(k.some(e))}}})(f);return{...e,on:t=>e.get().each(t)}}
vendor: 10,743 bytes, line 2
2,me=(e,t,n)=>""===t||e.length>=t.length&&e.substr(n,n+t.length)===t,ge=(e,t,n=0,o)=>{const r=e.indexOf(t,n);return-1!==r&&(!!c(o)||r+t.length<=o)},he=(e,t)=>me(e,t,0),be=(e,t)=>me(e,t,e.length-t.length),ve=(e=>t=>t.replace(e,""))(/^\s+|\s+$/g),ye=e=>e.length>0,_e=e=>{let t,n=!1;return(...o)=>(n||(n=!0,t=e.apply(null,o)),t)},Ae=["tfoot","thead","tbody","colgroup"],ke=(e,t,n)=>({element:e,rowspan:t,colspan:n}),xe=(e,t,n)=>({element:e,cells:t,section:n}),we=(e,t,n)=>({element:e,isNew:t,isLocked:n}),Ce=(e,t,n,o)=>({element:e,cells:t,section:n,isNew:o}),Ee=(e,t,n)=>{const o=e.cells,r=o.slice(0,t),a=o.slice(t),i=r.concat(n).concat(a);return Ie(e,i)},Se=(e,t,n)=>Ee(e,t,[n]),Te=(e,t,n)=>{e.cells[t]=n},Ie=(e,t)=>Ce(e.element,t,e.section,e.isNew),Be=(e,t)=>e.cells[t],Oe=(e,t)=>Be(e,t).element,Le=e=>e.cells.length,De=e=>{const t=O(e,e=>"colgroup"===e.section);return{rows:t.fail,cols:t.pass}},Me=(e,t,n)=>{const o=I(e.cells,n);return Ce(t(e.element),o,e.section,!0)},Ne=e=>{if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},Pe={fromHtml:(e,t)=>{const n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return Ne(n.childNodes[0])},fromTag:(e,t)=>{const n=(t||document).createElement(e);return Ne(n)},fromText:(e,t)=>{const n=(t||document).createTextNode(e);return Ne(n)},fromDom:Ne,fromPoint:(e,t,n)=>k.from(e.dom.elementFromPoint(t,n)).map(Ne)},Re=(e,t)=>{const n=e.document.createRange();return n.selectNode(t.dom),n},Fe=(e,t)=>{const n=e.document.createRange();return Ve(n,t),n},Ve=(e,t)=>e.selectNodeContents(t.dom),ze=(e,t,n)=>{const o=e.document.createRange();var r;return r=o,t.fold(e=>{r.setStartBefore(e.dom)},(e,t)=>{r.setStart(e.dom,t)},e=>{r.setStartAfter(e.dom)}),((e,t)=>{t.fold(t=>{e.setEndBefore(t.dom)},(t,n)=>{e.setEnd(t.dom,n)},t=>{e.setEndAfter(t.dom)})})(o,n),o},Ue=(e,t,n,o,r)=>{const a=e.document.createRange();return a.setStart(t.dom,n),a.setEnd(o.dom,r),a},je=e=>({left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}),He=Q([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),qe=(e,t,n)=>t(Pe.fromDom(n.startContainer),n.startOffset,Pe.fromDom(n.endContainer),n.endOffset),Ge=(e,t)=>{const n=((e,t)=>t.match({domRange:e=>({ltr:m(e),rtl:k.none}),relative:(t,n)=>({ltr:_e(()=>ze(e,t,n)),rtl:_e(()=>k.some(ze(e,n,t)))}),exact:(t,n,o,r)=>({ltr:_e(()=>Ue(e,t,n,o,r)),rtl:_e(()=>k.some(Ue(e,o,r,t,n)))})}))(e,t);return((e,t)=>{const n=t.ltr();return n.collapsed?t.rtl().filter(e=>!1===e.collapsed).map(e=>He.rtl(Pe.fromDom(e.endContainer),e.endOffset,Pe.fromDom(e.startContainer),e.startOffset)).getOrThunk(()=>qe(0,He.ltr,n)):qe(0,He.ltr,n)})(0,n)},Ke=(e,t)=>Ge(e,t).match({ltr:(t,n,o,r)=>{const a=e.document.createRange();return a.setStart(t.dom,n),a.setEnd(o.dom,r),a},rtl:(t,n,o,r)=>{const a=e.document.createRange();return a.setStart(o.dom,r),a.setEnd(t.dom,n),a}});He.ltr,He.rtl;const Ze=(e,t)=>{const n=e.dom;if(1!==n.nodeType)return!1;{const e=n;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},We=e=>1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount,$e=(e,t)=>{const n=void 0===t?document:t.dom;return We(n)?k.none():k.from(n.querySelector(e)).map(Pe.fromDom)},Ye=(e,t)=>e.dom===t.dom,Je=(e,t)=>{const n=e.dom,o=t.dom;return n!==o&&n.contains(o)},Xe=Ze,Qe=()=>et(0,0),et=(e,t)=>({major:e,minor:t}),tt={nu:et,detect:(e,t)=>{const n=String(t).toLowerCase();return 0===e.length?Qe():((e,t)=>{const n=((e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];if(o.test(t))return o}})(e,t);if(!n)return{major:0,minor:0};const o=e=>Number(t.replace(n,"$"+e));return et(o(1),o(2))})(e,n)},unknown:Qe},nt=(e,t)=>{const n=String(t).toLowerCase();return N(e,e=>e.search(n))},ot=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,rt=e=>t=>ge(t,e),at=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>ge(e,"edge/")&&ge(e,"chrome")&&ge(e,"safari")&&ge(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ot],search:e=>ge(e,"chrome")&&!ge(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>ge(e,"msie")||ge(e,"trident")},{name:"Opera",versionRegexes:[ot,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:rt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:rt("firefox")},{name:"Safari",versionRegexes:[ot,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(ge(e,"safari")||ge(e,"mobile/"))&&ge(e,"applewebkit")}],it=[{name:"Windows",search:rt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>ge(e,"iphone")||ge(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:rt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:rt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:rt("linux"),versionRegexes:[]},{name:"Solaris",search:rt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:rt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:rt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],lt={browsers:m(at),oses:m(it)},st="Edge",ct="Chromium",ut="Opera",dt="Firefox",pt="Safari",ft=e=>{const t=e.current,n=e.version,o=e=>()=>t===e;return{current:t,version:n,isEdge:o(st),isChromium:o(ct),isIE:o("IE"),isOpera:o(ut),isFirefox:o(dt),isSafari:o(pt)}},mt=()=>ft({current:void 0,version:tt.unknown()}),gt=ft,ht=(m(st),m(ct),m("IE"),m(ut),m(dt),m(pt),"Windows"),bt="Android",vt="Linux",yt="macOS",_t="Solaris",At="FreeBSD",kt="ChromeOS",xt=e=>{const t=e.current,n=e.version,o=e=>()=>t===e;return{current:t,version:n,isWindows:o(ht),isiOS:o("iOS"),isAndroid:o(bt),isMacOS:o(yt),isLinux:o(vt),isSolaris:o(_t),isFreeBSD:o(At),isChromeOS:o(kt)}},wt=()=>xt({current:void 0,version:tt.unknown()}),Ct=xt,Et=(m(ht),m("iOS"),m(bt),m(vt),m(yt),m(_t),m(At),m(kt),e=>window.matchMedia(e).matches);let St=_e(()=>((e,t,n)=>{const o=lt.browsers(),r=lt.oses(),a=t.bind(e=>((e,t)=>q(t.brands,t=>{const n=t.brand.toLowerCase();return N(e,e=>{var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())}).map(e=>({current:e.name,version:tt.nu(parseInt(t.version,10),0)}))}))(o,e)).orThunk(()=>((e,t)=>nt(e,t).map(e=>{const n=tt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))(o,e)).fold(mt,gt),i=((e,t)=>nt(e,t).map(e=>{const n=tt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))(r,e).fold(wt,Ct),l=((e,t,n,o)=>{const r=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!r,i=e.isiOS()||e.isAndroid(),l=i||o("(pointer:coarse)"),s=r||!a&&i&&o("(min-device-width:768px)"),c=a||i&&!s,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!s&&!u;return{isiPad:m(r),isiPhone:m(a),isTablet:m(s),isPhone:m(c),isTouch:m(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:m(u),isDesktop:m(d)}})(i,a,e,n);return{browser:a,os:i,deviceType:l}})(window.navigator.userAgent,k.from(window.navigator.userAgentData),Et));const Tt=()=>St(),It=Object.getPrototypeOf,Bt=e=>{const t=pe("ownerDocument.defaultView",e);return a(e)&&((e=>((e,t)=>{const n=((e,t)=>pe(e,t))(e,t);if(null==n)throw new Error(e+" not available on this browser");return n})("HTMLElement",e))(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(It(e).constructor.name))},Ot=e=>e.dom.nodeName.toLowerCase(),Lt=e=>e.dom.nodeType,Dt=e=>t=>Lt(t)===e,Mt=e=>8===Lt(e)||"#comment"===Ot(e),Nt=e=>Pt(e)&&Bt(e.dom),Pt=Dt(1),Rt=Dt(3),Ft=Dt(9),Vt=Dt(11),zt=e=>t=>Pt(t)&&Ot(t)===e,Ut=e=>Pe.fromDom(e.dom.ownerDocument),jt=e=>Ft(e)?e:Ut(e),Ht=e=>k.from(e.dom.parentNode).map(Pe.fromDom),qt=e=>k.from(e.dom.parentElement).map(Pe.fromDom),Gt=(e,t)=>{const n=d(t)?t:_;let o=e.dom;const r=[];for(;null!==o.parentNode&&void 0!==o.parentNode;){const e=o.parentNode,t=Pe.fromDom(e);if(r.push(t),!0===n(t))break;o=e}return r},Kt=e=>k.from(e.dom.previousSibling).map(Pe.fromDom),Zt=e=>k.from(e.dom.nextSibling).map(Pe.fromDom),Wt=e=>I(e.dom.childNodes,Pe.fromDom),$t=(e,t)=>{const n=e.dom.childNodes;return k.from(n[t]).map(Pe.fromDom)},Yt=e=>Vt(e)&&u(e.dom.host),Jt=e=>Pe.fromDom(e.dom.getRootNode()),Xt=e=>Pe.fromDom(e.dom.host),Qt=e=>{const t=Pe.fromDom((e=>{if(u(e.target)){const t=Pe.fromDom(e.target);if(Pt(t)&&u(t.dom.shadowRoot)&&e.composed&&e.composedPath){const t=e.composedPath();if(t)return j(t)}}return k.from(e.target)})(e).getOr(e.target)),n=()=>e.stopPropagation(),o=()=>e.preventDefault(),r=(a=o,i=n,(...e)=>a(i.apply(null,e)));var a,i;return((e,t,n,o,r,a,i)=>({target:e,x:t,y:n,stop:o,prevent:r,kill:a,raw:i}))(t,e.clientX,e.clientY,n,o,r,e)},en=(e,t,n,o)=>{e.dom.removeEventListener(t,n,o)},tn=A,nn=(e,t,n)=>((e,t,n,o)=>((e,t,n,o,r)=>{const a=((e,t)=>n=>{e(n)&&t(Qt(n))})(n,o);return e.dom.addEventListener(t,a,r),{unbind:b(en,e,t,a,r)}})(e,t,n,o,!1))(e,t,tn,n),on=Qt,rn=(e,t)=>{Ht(e).each(n=>{n.dom.insertBefore(t.dom,e.dom)})},an=(e,t)=>{Zt(e).fold(()=>{Ht(e).each(e=>{sn(e,t)})},e=>{rn(e,t)})},ln=(e,t)=>{const n=(e=>$t(e,0))(e);n.fold(()=>{sn(e,t)},n=>{e.dom.insertBefore(t.dom,n.dom)})},sn=(e,t)=>{e.dom.appendChild(t.dom)},cn=(e,t)=>{rn(e,t),sn(t,e)},un=(e,t)=>{B(t,(n,o)=>{const r=0===o?e:t[o-1];an(r,n)})},dn=(e,t)=>{B(t,t=>{sn(e,t)})},pn=(e,t,n)=>{if(!(r(n)||s(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},fn=(e,t,n)=>{pn(e.dom,t,n)},mn=(e,t)=>{const n=e.dom;Z(t,(e,t)=>{pn(n,t,e)})},gn=(e,t)=>{const n=e.dom.getAttribute(t);return null===n?void 0:n},hn=(e,t)=>k.from(gn(e,t)),bn=(e,t)=>{e.dom.removeAttribute(t)},vn=e=>M(e.dom.attributes,(e,t)=>(e[t.name]=t.value,e),{}),yn=e=>{e.dom.textContent="",B(Wt(e),e=>{_n(e)})},_n=e=>{const t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},An=e=>{const t=Wt(e);t.length>0&&un(e,t),_n(e)},kn=(e,t)=>Pe.fromDom(e.dom.cloneNode(t)),xn=e=>kn(e,!1),wn=e=>kn(e,!0),Cn=(e,t)=>{const n=Pe.fromTag(t),o=vn(e);return mn(n,o),n},En=e=>void 0!==e.style&&d(e.style.getPropertyValue),Sn=e=>{const t=Rt(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;const n=t.ownerDocument;return(e=>{const t=Jt(e);return Yt(t)?k.some(t):k.none()})(Pe.fromDom(t)).fold(()=>n.body.contains(t),(o=Sn,r=Xt,e=>o(r(e))));var o,r},Tn=(e,t,n)=>{if(!r(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,"::
2Element ",e),new Error("CSS value must be a string: "+n);En(e)&&e.style.setProperty(t,n)},In=(e,t,n)=>{const o=e.dom;Tn(o,t,n)},Bn=(e,t)=>{const n=e.dom;Z(t,(e,t)=>{Tn(n,t,e)})},On=(e,t)=>{const n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||Sn(e)?o:Ln(n,t)},Ln=(e,t)=>En(e)?e.style.getPropertyValue(t):"",Dn=(e,t)=>{const n=e.dom,o=Ln(n,t);return k.from(o).filter(e=>e.length>0)},Mn=(e,t)=>{((e,t)=>{En(e)&&e.style.removeProperty(t)})(e.dom,t),ce(hn(e,"style").map(ve),"")&&bn(e,"style")},Nn=(e,t)=>{const n=n=>{const o=t(n);if(o<=0||null===o){const t=On(n,e);return parseFloat(t)||0}return o},o=(e,t)=>M(t,(t,n)=>{const o=On(e,n),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r},0);return{set:(t,n)=>{if(!p(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);const o=t.dom;En(o)&&(o.style[e]=n+"px")},get:n,getOuter:n,aggregate:o,max:(e,t,n)=>{const r=o(e,n);return t>r?t-r:0}}},Pn=(e,t,n)=>((e,t)=>(e=>{const t=parseFloat(e);return isNaN(t)?k.none():k.some(t)})(e).getOr(t))(On(e,t),n),Rn=Nn("height",e=>{const t=e.dom;return Sn(e)?t.getBoundingClientRect().height:t.offsetHeight}),Fn=e=>Rn.get(e),Vn=e=>Rn.getOuter(e),zn=Nn("width",e=>e.dom.offsetWidth);Nn("width",e=>{const t=e.dom;return Sn(e)?t.getBoundingClientRect().width:t.offsetWidth});const Un=e=>zn.get(e),jn=e=>zn.getOuter(e),Hn=e=>((e,t)=>{const n=e.dom,o=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?o:((e,t,n,o)=>t-Pn(e,`padding-${n}`,0)-Pn(e,`padding-${o}`,0)-Pn(e,`border-${n}-width`,0)-Pn(e,`border-${o}-width`,0))(e,o,"left","right")})(e,"content-box"),qn=(e,t)=>({left:e,top:t,translate:(n,o)=>qn(e+n,t+o)}),Gn=qn,Kn=(e,t)=>void 0!==e?e:void 0!==t?t:0,Zn=e=>{const t=e.dom.ownerDocument,n=t.body,o=t.defaultView,r=t.documentElement;if(n===e.dom)return Gn(n.offsetLeft,n.offsetTop);const a=Kn(null==o?void 0:o.pageYOffset,r.scrollTop),i=Kn(null==o?void 0:o.pageXOffset,r.scrollLeft),l=Kn(r.clientTop,n.clientTop),s=Kn(r.clientLeft,n.clientLeft);return Wn(e).translate(i-s,a-l)},Wn=e=>{const t=e.dom,n=t.ownerDocument.body;return n===t?Gn(n.offsetLeft,n.offsetTop):Sn(e)?(e=>{const t=e.getBoundingClientRect();return Gn(t.left,t.top)})(t):Gn(0,0)},$n=(e=>{const t=t=>e(t)?k.from(t.dom.nodeValue):k.none();return{get:n=>{if(!e(n))throw new Error("Can only get text value of a text node");return t(n).getOr("")},getOption:t,set:(t,n)=>{if(!e(t))throw new Error("Can only set raw text value of a text node");t.dom.nodeValue=n}}})(Rt),Yn=e=>$n.get(e),Jn=e=>$n.getOption(e),Xn=(e,t)=>$n.set(e,t),Qn=(e,t)=>n=>"rtl"===eo(n)?t:e,eo=e=>"rtl"===On(e,"direction")?"rtl":"ltr";var to=(e,t,n,o,r)=>e(n,o)?k.some(n):d(r)&&r(n)?k.none():t(n,o,r);const no=(e,t,n)=>{let o=e.dom;const r=d(n)?n:_;for(;o.parentNode;){o=o.parentNode;const e=Pe.fromDom(o);if(t(e))return k.some(e);if(r(e))break}return k.none()},oo=(e,t,n)=>to((e,t)=>t(e),no,e,t,n),ro=(e,t,n)=>no(e,e=>Ze(e,t),n),ao=(e,t)=>(e=>N(e.dom.childNodes,e=>{return n=Pe.fromDom(e),Ze(n,t);var n}).map(Pe.fromDom))(e),io=(e,t)=>$e(t,e),lo=(e,t,n)=>to((e,t)=>Ze(e,t),ro,e,t,n),so=e=>void 0!==e.dom.classList,co=(e,t)=>((e,t,n)=>{const o=((e,t)=>{const n=gn(e,t);return void 0===n||""===n?[]:n.split(" ")})(e,t).concat([n]);return fn(e,t,o.join(" ")),!0})(e,"class",t),uo=(e,t)=>{so(e)?e.dom.classList.add(t):co(e,t)},po=(e,t)=>so(e)&&e.dom.classList.contains(t),fo=e=>lo(e,"[contenteditable]"),mo=(e,t=!1)=>Sn(e)?e.dom.isContentEditable:fo(e).fold(m(t),e=>"true"===go(e)),go=e=>e.dom.contentEditable,ho=(e,t)=>{let n=[];return B(Wt(e),e=>{t(e)&&(n=n.concat([e])),n=n.concat(ho(e,t))}),n},bo=(e,t,n)=>((e,n,o)=>L(Gt(e,o),e=>Ze(e,t)))(e,0,n),vo=(e,t)=>(e=>L(Wt(e),e=>Ze(e,t)))(e),yo=(e,t)=>((e,t)=>{const n=void 0===t?document:t.dom;return We(n)?[]:I(n.querySelectorAll(e),Pe.fromDom)})(t,e),_o=e=>"img"===Ot(e)?1:Jn(e).fold(()=>Wt(e).length,e=>e.length),Ao=["img","br"],ko=e=>Jn(e).filter(e=>0!==e.trim().length||e.indexOf("Â ")>-1).isSome()||E(Ao,Ot(e))||(e=>Nt(e)&&"false"===gn(e,"contenteditable"))(e),xo=e=>((e,t)=>{const n=e=>{for(let o=0;o<e.childNodes.length;o++){const r=Pe.fromDom(e.childNodes[o]);if(t(r))return k.some(r);const a=n(e.childNodes[o]);if(a.isSome())return a}return k.none()};return n(e.dom)})(e,ko),wo=e=>Co(e,ko),Co=(e,t)=>{const n=e=>{const o=Wt(e);for(let e=o.length-1;e>=0;e--){const r=o[e];if(t(r))return k.some(r);const a=n(r);if(a.isSome())return a}return k.none()};return n(e)},Eo=(e,t,n,o)=>({start:e,soffset:t,finish:n,foffset:o}),So=Q([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),To={before:So.before,on:So.on,after:So.after,cata:(e,t,n,o)=>e.fold(t,n,o),getStart:e=>e.fold(g,g,g)},Io=Q([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Bo={domRange:Io.domRange,relative:Io.relative,exact:Io.exact,exactFromRange:e=>Io.exact(e.start,e.soffset,e.finish,e.foffset),getWin:e=>{const t=(e=>e.match({domRange:e=>Pe.fromDom(e.startContainer),relative:(e,t)=>
vendor: 9,071 bytes, line 2
2To.getStart(e),exact:(e,t,n,o)=>e}))(e);return Pe.fromDom(jt(t).dom.defaultView)},range:Eo},Oo=(e,t)=>{const n=Ot(e);return"input"===n?To.after(e):E(["br","img"],n)?0===t?To.before(e):To.after(e):To.on(e,t)},Lo=e=>k.from(e.getSelection()),Do=(e,t)=>{Lo(e).each(e=>{e.removeAllRanges(),e.addRange(t)})},Mo=(e,t,n,o,r)=>{const a=Ue(e,t,n,o,r);Do(e,a)},No=(e,t)=>Ge(e,t).match({ltr:(t,n,o,r)=>{Mo(e,t,n,o,r)},rtl:(t,n,o,r)=>{Lo(e).each(a=>{if(a.setBaseAndExtent)a.setBaseAndExtent(t.dom,n,o.dom,r);else if(a.extend)try{((e,t,n,o,r,a)=>{t.collapse(n.dom,o),t.extend(r.dom,a)})(0,a,t,n,o,r)}catch(a){Mo(e,o,r,t,n)}else Mo(e,o,r,t,n)})}}),Po=(e,t,n,o,r)=>{const a=((e,t,n,o)=>{const r=Oo(e,t),a=Oo(n,o);return Bo.relative(r,a)})(t,n,o,r);No(e,a)},Ro=(e,t,n)=>{const o=((e,t)=>{const n=e.fold(To.before,Oo,To.after),o=t.fold(To.before,Oo,To.after);return Bo.relative(n,o)})(t,n);No(e,o)},Fo=e=>{if(e.rangeCount>0){const t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return k.some(Eo(Pe.fromDom(t.startContainer),t.startOffset,Pe.fromDom(n.endContainer),n.endOffset))}return k.none()},Vo=e=>{if(null===e.anchorNode||null===e.focusNode)return Fo(e);{const t=Pe.fromDom(e.anchorNode),n=Pe.fromDom(e.focusNode);return((e,t,n,o)=>{const r=((e,t,n,o)=>{const r=Ut(e).dom.createRange();return r.setStart(e.dom,t),r.setEnd(n.dom,o),r})(e,t,n,o),a=Ye(e,n)&&t===o;return r.collapsed&&!a})(t,e.anchorOffset,n,e.focusOffset)?k.some(Eo(t,e.anchorOffset,n,e.focusOffset)):Fo(e)}},zo=(e,t,n=!0)=>{const o=(n?Fe:Re)(e,t);Do(e,o)},Uo=e=>(e=>Lo(e).filter(e=>e.rangeCount>0).bind(Vo))(e).map(e=>Bo.exact(e.start,e.soffset,e.finish,e.foffset)),jo=(e,t,n)=>((e,t,n)=>((e,t,n)=>e.caretPositionFromPoint?((e,t,n)=>{var o;return k.from(null===(o=e.caretPositionFromPoint)||void 0===o?void 0:o.call(e,t,n)).bind(t=>{if(null===t.offsetNode)return k.none();const n=e.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),k.some(n)})})(e,t,n):e.caretRangeFromPoint?((e,t,n)=>{var o;return k.from(null===(o=e.caretRangeFromPoint)||void 0===o?void 0:o.call(e,t,n))})(e,t,n):k.none())(e.document,t,n).map(e=>Eo(Pe.fromDom(e.startContainer),e.startOffset,Pe.fromDom(e.endContainer),e.endOffset)))(e,t,n),Ho={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},qo=(()=>{const e="[0-9]+",t="[eE][+-]?"+e,n=e=>`(?:${e})?`,o=["Infinity",e+"\\."+n(e)+n(t),"\\."+e+n(t),e+n(t)].join("|");return new RegExp(`^([+-]?(?:${o}))(.*)$`)})(),Go=e=>I(e,m(0)),Ko=(e,t,n,o,r)=>r(e.slice(0,t)).concat(o).concat(r(e.slice(n))),Zo=e=>(t,n,o,r)=>{if(e(o)){const e=Math.max(r,t[n]-Math.abs(o)),a=Math.abs(e-t[n]);return o>=0?a:-a}return o},Wo=Zo(e=>e<0),$o=Zo(A),Yo=()=>{const e=(e,t,n,o)=>{const r=(100+n)/100,a=Math.max(o,(e[t]+n)/r);return I(e,(e,n)=>(n===t?a:e/r)-e)},t=(t,n,o,r,a,i)=>i?e(t,n,r,a):((e,t,n,o,r)=>{const a=Wo(e,t,o,r);return Ko(e,t,n+1,[a,0],Go)})(t,n,o,r,a);return{resizeTable:(e,t)=>e(t),clampTableDelta:Wo,calcLeftEdgeDeltas:t,calcMiddleDeltas:(e,n,o,r,a,i,l)=>t(e,o,r,a,i,l),calcRightEdgeDeltas:(t,n,o,r,a,i)=>{if(i)return e(t,o,r,a);{const e=Wo(t,o,r,a);return Go(t.slice(0,o)).concat([e])}},calcRedestributedWidths:(e,t,n,o)=>{if(o){const o=(t+n)/t,r=I(e,e=>e/o);return{delta:100*o-100,newSizes:r}}return{delta:n,newSizes:e}}}},Jo=()=>{const e=(e,t,n,o,r)=>{const a=$o(e,o>=0?n:t,o,r);return Ko(e,t,n+1,[a,-a],Go)};return{resizeTable:(e,t,n)=>{n&&e(t)},clampTableDelta:(e,t,n,o,r)=>{if(r){if(n>=0)return n;{const t=M(e,(e,t)=>e+t-o,0);return Math.max(-t,n)}}return Wo(e,t,n,o)},calcLeftEdgeDeltas:e,calcMiddleDeltas:(t,n,o,r,a,i)=>e(t,o,r,a,i),calcRightEdgeDeltas:(e,t,n,o,r,a)=>{if(a)return Go(e);{const t=o/e.length;return I(e,m(t))}},calcRedestributedWidths:(e,t,n,o)=>({delta:0,newSizes:e})}},Xo=(e,t,n=0)=>hn(e,t).map(e=>parseInt(e,10)).getOr(n),Qo=(e,t)=>Xo(e,t,1),er=e=>zt("col")(e)?Xo(e,"span",1)>1:Qo(e,"colspan")>1,tr=(e,t)=>parseInt(On(e,t),10),nr=m(10),or=m(10),rr=(e,t)=>ar(e,t,A),ar=(e,t,n)=>F(Wt(e),e=>Ze(e,t)?n(e)?[e]:[]:ar(e,t,n)),ir=(e,t)=>((e,t,n=_)=>n(t)?k.none():E(e,Ot(t))?k.some(t):ro(t,e.join(","),e=>Ze(e,"table")||n(e)))(["td","th"],e,t),lr=e=>rr(e,"th,td"),sr=e=>Ze(e,"colgroup")?vo(e,"col"):F(dr(e),e=>vo(e,"col")),cr=(e,t)=>lo(e,"table",t),ur=e=>rr(e,"tr"),dr=e=>cr(e).fold(m([]),e=>vo(e,"colgroup")),pr=zt("th"),fr=e=>V(e,e=>pr(e.element)),mr=(e,t)=>e&&t?"sectionCells":e?"section":"cells",gr=e=>{const t="thead"===e.section,n=ce(hr(e.cells),"th");return"tfoot"===e.section?{type:"footer"}:t||n?{type:"header",subType:mr(t,n)}:{type:"body"}},hr=e=>{const t=L(e,e=>pr(e.element));return 0===t.length?k.some("td"):t.length===e.length?k.some("th"):k.none()},br=(e,t)=>I(e,e=>{if("colgroup"===Ot(e)){const t=I(sr(e),e=>{const t=Xo(e,"span",1);return ke(e,1,t)});return xe(e,t,"colgroup")}{const n=I(lr(e),e=>{const t=Xo(e,"rowspan",1),n=Xo(e,"colspan",1);return ke(e,t,n)});return xe(e,n,t(e))}}),vr=e=>Ht(e).map(e=>{const t=Ot(e);return(e=>E(Ae,e))(t)?t:"tbody"}).getOr("tbody"),yr=e=>{const t=ur(e),n=[...dr(e),...t];return br(n,vr)},_r="data-snooker-locked-cols",Ar=e=>hn(e,_r).bind(e=>k.from(e.match(/\d+/g))).map(e=>z(e,A)),kr=e=>{const t=M(De(e).rows,(e,t)=>(B(t.cells,(t,n)=>{t.isLocked&&(e[n]=!0)}),e),{}),n=Y(t,(e,t)=>parseInt(t,10));return(e=>{const t=x.call(e,0);return t.sort(void 0),t})(n)},xr=(e,t)=>e+","+t,wr=(e,t)=>{const n=F(e.all,e=>e.cells);return L(n,t)},Cr=e=>{const t={},n=[],o=j(e).map(e=>e.element).bind(cr).bind(Ar).getOr({});let r=0,a=0,i=0;const{pass:l,fail:s}=O(e,e=>"colgroup"===e.section);B(s,e=>{const l=[];B(e.cells,e=>{let n=0;for(;void 0!==t[xr(i,n)];)n++;const r=((e,t)=>X(e,t)&&void 0!==e[t]&&null!==e[t])(o,n.toString()),s=((e,t,n,o,r,a)=>({element:e,rowspan:t,colspan:n,row:o,column:r,isLocked:a}))(e.element,e.rowspan,e.colspan,i,n,r);for(let o=0;o<e.colspan;o++)for(let r=0;r<e.rowspan;r++){const e=n+o,l=xr(i+r,e);t[l]=s,a=Math.max(a,e+1)}l.push(s)}),r++,n.push(xe(e.element,l,e.section)),i++});const{columns:c,colgroups:u}=H(l).map(e=>{const t=(e=>{const t={};let n=0;return B(e.cells,e=>{const o=e.colspan;T(o,r=>{const a=n+r;t[a]=((e,t,n)=>({element:e,colspan:t,column:n}))(e.element,o,a)}),n+=o}),t})(e),n=((e,t)=>({element:e,columns:t}))(e.element,J(t));return{colgroups:[n],columns:t}}).getOrThunk(()=>({colgroups:[],columns:{}})),d=((e,t)=>({rows:e,columns:t}))(r,a);return{grid:d,access:t,all:n,columns:c,colgroups:u}},Er=e=>{const t=yr(e);return Cr(t)},Sr=Cr,Tr=(e,t,n)=>k.from(e.access[xr(t,n)]),Ir=(e,t,n)=>{const o=wr(e,e=>n(t,e.element));return o.length>0?k.some(o[0]):k.none()},Br=wr,Or=e=>F(e.all,e=>e.cells),Lr=e=>J(e.columns),Dr=e=>G(e.columns).length>0,Mr=(e,t)=>k.from(e.columns[t]),Nr=(e,t,n)=>we(n(e.element,t),!0,e.isLocked),Pr=(e,t)=>e.section!==t?Ce(e.element,e.cells,t,e.isNew):e,Rr=()=>({transformRow:Pr,transformCell:(e,t,n)=>{const o=n(e.element,t),r="td"!==Ot(o)?(e=>{const t=Cn(e,"td");an(e,t);const n=Wt(e);return dn(t,n),_n(e),t})(o):o;return we(r,e.isNew,e.isLocked)}}),Fr=()=>({transformRow:Pr,transformCell:Nr}),Vr=()=>({transformRow:(e,t)=>Pr(e,"thead"===t?"tbody":t),transformCell:Nr}),zr=Rr,Ur=Fr,jr=Vr,Hr=()=>({transformRow:g,transformCell:Nr}),qr=(e,t=A)=>{const n=e.grid,o=T(n.columns,g),r=T(n.rows,g);return I(o,n=>Gr(()=>F(r,t=>Tr(e,t,n).filter(e=>e.column===n).toArray()),e=>1===e.colspan&&t(e.element),()=>Tr(e,0,n)))},Gr=(e,t,n)=>{const o=e();return N(o,t).orThunk(()=>k.from(o[0]).orThunk(n)).map(e=>e.element)},Kr=e=>{const t=e.grid,n=T(t.rows,g),o=T(t.columns,g);return I(n,t=>Gr(()=>F(o,n=>Tr(e,t,n).filter(e=>e.row===t).fold(m([]),e=>[e])),e=>1===e.rowspan,()=>Tr(e,t,0)))},Zr=(e,t)=>({row:e,y:t}),Wr=(e,t)=>({col:e,x:t}),$r=e=>Zn(e).left+jn(e),Yr=e=>Zn(e).left,Jr=(e,t)=>Wr(e,Yr(t)),Xr=(e,t)=>Wr(e,$r(t)),Qr=e=>Zn(e).top,ea=(e,t)=>Zr(e,Qr(t)),ta=(e,t)=>Zr(e,Qr(t)+Vn(t)),na=(e,t,n)=>{if(0===n.length)return[];const o=I(n.slice(1),(t,n)=>t.map(t=>e(n,t))),r=n[n.length-1].map(e=>t(n.length-1,e));return o.concat([r])},oa={delta:g,positions:e=>na(ea,ta,e),edge:Qr},ra=Qn({delta:g,edge:Yr,positions:e=>na(Jr,Xr,e)},{delta:e=>-e,edge:$r,positions:e=>na(Xr,Jr,e)}),aa={delta:(e,t)=>ra(t).delta(e,t),positions:(e,t)=>ra(t).positions(e,t),edge:e=>ra(e).edge(e)},ia=/(\d+(\.\d+)?)%/,la=/(\d+(\.\d+)?)px|em/,sa=zt("col"),ca=zt("tr"),ua=(e,t,n)=>{const o=qt(e).getOrThunk(()=>(e=>{const t=e.dom.body;if(null==t)throw new Error("Body is not available yet");return Pe.fromDom(t)})(Ut(e)));return t(e)/n(o)*100},da=(e,t)=>{In(e,"width",t+"px")},pa=(e,t)=>{In(e,"width",t+"%")},fa=(e,t)=>{In(e,"height",t+"px")},ma=e=>{const t=(e=>{return Pn(t=e,"height",t.dom.offsetHeight)+"px";var t})(e);return t?((e,t,n,o)=>{const r=parseFloat(e);return be(e,"%")&&"table"!==Ot(t)?((e,t,n,o)=>{const r=cr(e).map(e=>{const o=n(e);return Math.floor(t/100*o)}).getOr(t);return o(e,r),r})(t,r,n,o):r})(t,e,Fn,fa):Fn(e)},ga=(e,t)=>Dn(e,t).orThunk(()=>hn(e,t).map(e=>e+"px")),ha=e=>ga(e,"width"),ba=e=>ua(e,Un,Hn),va=e=>{return sa(e)?Un(e):Pn(t=e,"width",t.dom.offsetWidth);var t},ya=e=>ca(e)?Fn(e):((e,t,n)=>n(e)/Qo(e,"rowspan"))(e,0,ma),_a=(e,t,n)=>{In(e,"width",t+n)},Aa=e=>
vendor: 4,976 bytes, line 2
2ua(e,Un,Hn)+"%",ka=m(ia),xa=zt("col"),wa=e=>ha(e).getOrThunk(()=>va(e)+"px"),Ca=e=>{return(t=e,ga(t,"height")).getOrThunk(()=>ya(e)+"px");var t},Ea=(e,t,n,o,r,a)=>e.filter(o).fold(()=>a(((e,t)=>{if(t<0||t>=e.length-1)return k.none();const n=e[t].fold(()=>{const n=(e=>{const t=x.call(e,0);return t.reverse(),t})(e.slice(0,t));return q(n,(e,t)=>e.map(e=>({value:e,delta:t+1})))},e=>k.some({value:e,delta:0})),o=e[t+1].fold(()=>{const n=e.slice(t+1);return q(n,(e,t)=>e.map(e=>({value:e,delta:t+1})))},e=>k.some({value:e,delta:1}));return n.bind(e=>o.map(t=>{const n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))})(n,t)),e=>r(e)),Sa=(e,t,n,o)=>{const r=qr(e),a=Dr(e)?(e=>I(Lr(e),e=>k.from(e.element)))(e):r,i=[k.some(aa.edge(t))].concat(I(aa.positions(r,t),e=>e.map(e=>e.x))),l=v(er);return I(a,(e,t)=>Ea(e,t,i,l,e=>{if((e=>{const t=Tt().browser,n=t.isChromium()||t.isFirefox();return!xa(e)||n})(e))return n(e);{const e=null!=(a=r[t])?g(a):k.none();return Ea(e,t,i,l,e=>o(k.some(Un(e))),o)}var a},o))},Ta=e=>e.map(e=>e+"px").getOr(""),Ia=(e,t,n)=>Sa(e,t,va,e=>e.getOrThunk(n.minCellWidth)),Ba=(e,t,n,o)=>{const r=Kr(e),a=I(e.all,e=>k.some(e.element)),i=[k.some(oa.edge(t))].concat(I(oa.positions(r,t),e=>e.map(e=>e.y)));return I(a,(e,t)=>Ea(e,t,i,A,n,o))},Oa=(e,t)=>()=>Sn(e)?t(e):parseFloat(Dn(e,"width").getOr("0")),La=e=>{const t=Oa(e,e=>parseFloat(Aa(e))),n=Oa(e,Un);return{width:t,pixelWidth:n,getWidths:(t,n)=>((e,t,n)=>Sa(e,t,ba,e=>e.fold(()=>n.minCellWidth(),e=>e/n.pixelWidth()*100)))(t,e,n),getCellDelta:e=>e/n()*100,singleColumnWidth:(e,t)=>[100-e],minCellWidth:()=>nr()/n()*100,setElementWidth:pa,adjustTableWidth:n=>{const o=t();pa(e,o+n/100*o)},isRelative:!0,label:"percent"}},Da=e=>{const t=Oa(e,Un);return{width:t,pixelWidth:t,getWidths:(t,n)=>Ia(t,e,n),getCellDelta:g,singleColumnWidth:(e,t)=>[Math.max(nr(),e+t)-e],minCellWidth:nr,setElementWidth:da,adjustTableWidth:n=>{const o=t()+n;da(e,o)},isRelative:!1,label:"pixel"}},Ma=e=>ha(e).fold(()=>(e=>{const t=Oa(e,Un),n=m(0);return{width:t,pixelWidth:t,getWidths:(t,n)=>Ia(t,e,n),getCellDelta:n,singleColumnWidth:m([0]),minCellWidth:n,setElementWidth:f,adjustTableWidth:f,isRelative:!0,label:"none"}})(e),t=>((e,t)=>null!==ka().exec(t)?La(e):Da(e))(e,t)),Na=Da,Pa=La,Ra=(e,t,n,o)=>{n===o?bn(e,t):fn(e,t,n)},Fa=(e,t,n)=>{H(vo(e,t)).fold(()=>ln(e,n),e=>an(e,n))},Va=(e,t)=>{const n=[],o=[],r=e=>I(e,e=>{e.isNew&&n.push(e.element);const t=e.element;return yn(t),B(e.cells,e=>{e.isNew&&o.push(e.element),Ra(e.element,"colspan",e.colspan,1),Ra(e.element,"rowspan",e.rowspan,1),sn(t,e.element)}),t}),a=e=>F(e,e=>I(e.cells,e=>(Ra(e.element,"span",e.colspan,1),e.element))),i=(t,n)=>{const o=((e,t)=>{const n=ao(e,t).getOrThunk(()=>{const n=Pe.fromTag(t,Ut(e).dom);return"thead"===t?Fa(e,"caption,colgroup",n):"colgroup"===t?Fa(e,"caption",n):sn(e,n),n});return yn(n),n})(e,n),i=("colgroup"===n?a:r)(t);dn(o,i)},l=(t,n)=>{t.length>0?i(t,n):(t=>{ao(e,t).each(_n)})(n)},s=[],c=[],u=[],d=[];return B(t,e=>{switch(e.section){case"thead":s.push(e);break;case"tbody":c.push(e);break;case"tfoot":u.push(e);break;case"colgroup":d.push(e)}}),l(d,"colgroup"),l(s,"thead"),l(c,"tbody"),l(u,"tfoot"),{newRows:n,newCells:o}},za=(e,t)=>{if(0===e.length)return 0;const n=e[0];return P(e,e=>!t(n.element,e.element)).getOr(e.length)},Ua=(e,t)=>{const n=I(e,e=>I(e.cells,_));return I(e,(o,r)=>{const a=F(o.cells,(o,a)=>{if(!1===n[r][a]){const u=((e,t,n,o)=>{const r=((e,t)=>e[t])(e,t),a="colgroup"===r.section,i=za(r.cells.slice(n),o),l=a?1:za(((e,t)=>I(e,e=>Be(e,t)))(e.slice(t),n),o);return{colspan:i,rowspan:l}})(e,r,a,t);return((e,t,o,r)=>{for(let a=e;a<e+o;a++)for(let e=t;e<t+r;e++)n[a][e]=!0})(r,a,u.rowspan,u.colspan),[(i=o.element,l=u.rowspan,s=u.colspan,c=o.isNew,{element:i,rowspan:l,colspan:s,isNew:c})]}return[];var i,l,s,c});return((e,t,n,o)=>({element:e,cells:t,section:n,isNew:o}))(o.element,a,o.section,o.isNew)})},ja=(e,t,n)=>{const o=[];B(e.colgroups,r=>{const a=[];for(let o=0;o<e.grid.columns;o++){const r=Mr(e,o).map(e=>we(e.element,n,!1)).getOrThunk(()=>we(t.colGap(),!0,!1));a.push(r)}o.push(Ce(r.element,a,"colgroup",n))});for(let r=0;r<e.grid.rows;r++){const a=[];for(let o=0;o<e.grid.columns;o++){const i=Tr(e,r,o).map(e=>we(e.element,n,e.isLocked)).getOrThunk(()=>we(t.gap(),!0,!1));a.push(i)}const i=e.all[r],l=Ce(i.element,a,i.section,n);o.push(l)}return o},Ha=e=>Ua(e,Ye),qa=(e,t)=>q(e.all,e=>N(e.cells,e=>Ye(t,e.element))),Ga=(e,t,n)=>{const o=I(t.selection,t=>ir(t).bind(t=>qa(e,t)).filter(n)),r=ue(o);return de(r.length>0,r)},Ka=(e,t,n,o,r,a,i,l,s)=>{const c=Er(a),u=k.from(null==s?void 0:s.section).getOrThunk(Hr);return t(c,i).map(t=>{const n=((e,t)=>ja(e,t,!1))(c,l),o=e(n,t,Ye,r(l),u),a=kr(o.grid);return{info:t,grid:Ha(o.grid),cursor:o.cursor,lockedColumns:a}}).bind(e=>{const t=Va(a,e.grid),r=k.from(null==s?void 0:s.sizing).getOrThunk(()=>Ma(a)),i=k.from(null==s?void 0:s.resize).getOrThunk(Jo);return n(a,e.grid,e.info,{sizing:r,resize:i,section:u}),o(a),bn(a,_r),e.lockedColumns.length>
vendor: 26,622 bytes, line 2
20&&fn(a,_r,e.lockedColumns.join(",")),k.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})})},Za=(e,t)=>ir(t.element).bind(n=>qa(e,n).map(e=>({...e,generators:t.generators,clipboard:t.clipboard}))),Wa=(e,t)=>Ga(e,t,A).map(e=>({cells:e,generators:t.generators,clipboard:t.clipboard})),$a=(e,t)=>Ga(e,t,A),Ya=(e,t)=>Ga(e,t,e=>!e.isLocked),Ja=(e,t)=>V(t,t=>((e,t)=>qa(e,t).exists(e=>!e.isLocked))(e,t)),Xa=(e,t)=>((e,t)=>t.mergable)(0,t).filter(t=>Ja(e,t.cells)),Qa=(e,t)=>((e,t)=>t.unmergable)(0,t).filter(t=>Ja(e,t)),ei={...Q([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},ti=(e,t,n)=>{const o=((e,t)=>Dr(e)?((e,t)=>{const n=Lr(e);return I(n,(e,n)=>({element:e.element,width:t[n],colspan:e.colspan}))})(e,t):((e,t)=>{const n=Or(e);return I(n,e=>{const n=((e,t,n)=>{let o=0;for(let r=e;r<t;r++)o+=void 0!==n[r]?n[r]:0;return o})(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}})})(e,t))(e,t);B(o,e=>{n.setElementWidth(e.element,e.width)})},ni=(e,t,n,o,r)=>{const a=Er(e),i=r.getCellDelta(t),l=r.getWidths(a,r),s=n===a.grid.columns-1,c=o.clampTableDelta(l,n,i,r.minCellWidth(),s),u=((e,t,n,o,r)=>{const a=e.slice(0),i=((e,t)=>0===e.length?ei.none():1===e.length?ei.only(0):0===t?ei.left(0,1):t===e.length-1?ei.right(t-1,t):t>0&&t<e.length-1?ei.middle(t-1,t,t+1):ei.none())(e,t),l=m(I(a,m(0)));return i.fold(l,e=>o.singleColumnWidth(a[e],n),(e,t)=>r.calcLeftEdgeDeltas(a,e,t,n,o.minCellWidth(),o.isRelative),(e,t,i)=>r.calcMiddleDeltas(a,e,t,i,n,o.minCellWidth(),o.isRelative),(e,t)=>r.calcRightEdgeDeltas(a,e,t,n,o.minCellWidth(),o.isRelative))})(l,n,c,r,o),d=I(u,(e,t)=>e+l[t]);ti(a,d,r),o.resizeTable(r.adjustTableWidth,c,s)},oi=(e,t,n)=>{const o=Er(e),r=((e,t)=>Ba(e,t,ya,e=>e.getOrThunk(or)))(o,e),a=I(r,(e,o)=>n===o?Math.max(t+e,or()):e),i=((e,t)=>I(e.all,(e,n)=>({element:e.element,height:t[n]})))(o,a);B(i,e=>{fa(e.element,e.height)}),B(Or(o),e=>{(e=>{Mn(e,"height")})(e.element)});const l=D(a,(e,t)=>e+t,0);fa(e,l)},ri=(e,t)=>{if(!er(e)){const n=(e=>ha(e).bind(e=>{return t=e,n=["fixed","relative","empty"],k.from(qo.exec(t)).bind(e=>{const t=Number(e[1]),o=e[2];return((e,t)=>S(t,t=>S(Ho[t],t=>e===t)))(o,n)?k.some({value:t,unit:o}):k.none()});var t,n}))(e);n.each(n=>{const o=n.value/2;_a(e,o,n.unit),_a(t,o,n.unit)})}},ai=(e,t,n)=>{const o=Xo(e,t,1);1===n||o<=1?bn(e,t):fn(e,t,Math.min(n,o))},ii=(e,t)=>n=>{const o=n.column+n.colspan-1,r=n.column;return o>=e&&r<t},li=(e,t,n)=>{const o=e[n].element,r=Pe.fromTag("td");sn(r,Pe.fromTag("br")),(t?sn:ln)(o,r)},si=zt("col"),ci=zt("colgroup"),ui=e=>"tr"===Ot(e)||ci(e),di=e=>({element:e,colspan:Xo(e,"colspan",1),rowspan:Xo(e,"rowspan",1)}),pi=e=>hn(e,"scope").map(e=>e.substr(0,3)),fi=(e,t=di)=>{const n=n=>{if(ui(n))return ci((r={element:n}).element)?e.colgroup(r):e.row(r);{const r=n,a=(t=>si(t.element)?e.col(t):e.cell(t))(t(r));return o=k.some({item:r,replacement:a}),a}var r};let o=k.none();return{getOrInit:(e,t)=>o.fold(()=>n(e),o=>t(e,o.item)?o.replacement:n(e))}},mi=e=>t=>{const n=[],o=o=>{const r="td"===e?{scope:null}:{},a=t.replace(o,e,r);return n.push({item:o,sub:a}),a};return{replaceOrInit:(e,t)=>{if(ui(e)||si(e))return e;{const r=e;return((e,t)=>N(n,n=>t(n.item,e)))(r,t).fold(()=>o(r),n=>t(e,n.item)?n.sub:o(r))}}}},gi=e=>({unmerge:t=>{const n=pi(t);return n.each(e=>fn(t,"scope",e)),()=>{const o=e.cell({element:t,colspan:1,rowspan:1});return Mn(o,"width"),Mn(t,"width"),n.each(e=>fn(o,"scope",e)),o}},merge:e=>(Mn(e[0],"width"),(()=>{const t=ue(I(e,pi));if(0===t.length)return k.none();{const e=t[0],n=["row","col"];return S(t,t=>t!==e&&E(n,t))?k.none():k.from(e)}})().fold(()=>bn(e[0],"scope"),t=>fn(e[0],"scope",t+"group")),m(e[0]))}),hi=Q([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),bi=(e,t,n)=>{const o=n.substring(0,n.length-e.length),r=parseFloat(o);return o===r.toString()?t(r):hi.invalid(n)},vi={...hi,from:e=>be(e,"%")?bi("%",hi.percent,e):be(e,"px")?bi("px",hi.pixels,e):hi.invalid(e)},yi=(e,t,n)=>{const o=vi.from(n),r=V(e,e=>"0px"===e)?((e,t)=>{const n=e.fold(()=>m(""),e=>m(e/t+"px"),()=>m(100/t+"%"));return T(t,n)})(o,e.length):((e,t,n)=>e.fold(()=>t,e=>((e,t,n)=>{const o=n/t;return I(e,e=>vi.from(e).fold(()=>e,e=>e*o+"px",e=>e/100*n+"px"))})(t,n,e),e=>((e,t)=>I(e,e=>vi.from(e).fold(()=>e,e=>e/t*100+"%",e=>e+"%")))(t,n)))(o,e,t);return ki(r)},_i=(e,t)=>0===e.length?t:D(e,(e,t)=>vi.from(t).fold(m(0),g,g)+e,0),Ai=(e,t)=>vi.from(e).fold(m(e),e=>e+t+"px",e=>e+t+"%"),ki=e=>{if(0===e.length)return e;const t=D(e,(e,t)=>{const n=vi.from(t).fold(()=>({value:t,remainder:0}),e=>(e=>{const t=Math.floor(e);return{value:t+"px",remainder:e-t}})(e),e=>({value:e+"%",remainder:0}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}},{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([Ai(n[n.length-1],Math.round(t.remainder))])},xi=vi.from,wi=(e,t,n)=>{const o=Er(e),r=o.all,a=Or(o),i=Lr(o);t.each(t=>{const n=xi(t).fold(m("px"),m("px"),m("%")),r=Un(e),l=((e,t)=>Sa(e,t,wa,Ta))(o,e),s=yi(l,r,t);Dr(o)?((e,t,n)=>{B(t,(t,o)=>{const r=_i([e[o]],nr());In(t.element,"width",r+n)})})(s,i,n):((e,t,n)=>{B(t,t=>{const o=e.slice(t.column,t.colspan+t.column),r=_i(o,nr());In(t.element,"width",r+n)})})(s,a,n),In(e,"width",t)}),n.each(t=>{const n=Fn(e),i=((e,t)=>Ba(e,t,Ca,Ta))(o,e);((e,t,n)=>{B(n,e=>{Mn(e.element,"height")}),B(t,(t,n)=>{In(t.element,"height",e[n])})})(yi(i,n,t),r,a),In(e,"height",t)})},Ci=e=>ha(e).exists(e=>ia.test(e)),Ei=e=>ha(e).exists(e=>la.test(e)),Si=e=>ha(e).isNone();var Ti=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Ii=()=>({up:m({selector:ro,closest:lo,predicate:no,all:Gt}),down:m({selector:yo,predicate:ho}),styles:m({get:On,getRaw:Dn,set:In,remove:Mn}),attrs:m({get:gn,set:fn,remove:bn,copyTo:(e,t)=>{const n=vn(e);mn(t,n)}}),insert:m({before:rn,after:an,afterAll:un,append:sn,appendAll:dn,prepend:ln,wrap:cn}),remove:m({unwrap:An,remove:_n}),create:m({nu:Pe.fromTag,clone:e=>Pe.fromDom(e.dom.cloneNode(!1)),text:Pe.fromText}),query:m({comparePosition:(e,t)=>e.dom.compareDocumentPosition(t.dom),prevSibling:Kt,nextSibling:Zt}),property:m({children:Wt,name:Ot,parent:Ht,document:e=>jt(e).dom,isText:Rt,isComment:Mt,isElement:Pt,isSpecial:e=>{const t=Ot(e);return E(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},getLanguage:e=>Pt(e)?hn(e,"lang"):k.none(),getText:Yn,setText:Xn,isBoundary:e=>!!Pt(e)&&("body"===Ot(e)||E(Ti,Ot(e))),isEmptyTag:e=>!!Pt(e)&&E(["br","img","hr","input"],Ot(e)),isNonEditable:e=>Pt(e)&&"false"===gn(e,"contenteditable")}),eq:Ye,is:Xe});const Bi=(e,t)=>({item:e,mode:t}),Oi=(e,t,n,o=Li)=>e.property().parent(t).map(e=>Bi(e,o)),Li=(e,t,n,o=Di)=>n.sibling(e,t).map(e=>Bi(e,o)),Di=(e,t,n,o=Di)=>{const r=e.property().children(t);return n.first(r).map(e=>Bi(e,o))},Mi=[{current:Oi,next:Li,fallback:k.none()},{current:Li,next:Di,fallback:k.some(Oi)},{current:Di,next:Di,fallback:k.some(Li)}],Ni=(e,t,n,o,r=Mi)=>N(r,e=>e.current===n).bind(n=>n.current(e,t,o,n.next).orThunk(()=>n.fallback.bind(n=>Ni(e,t,n,o)))),Pi=(e,t,n,o,r,a)=>Ni(e,t,o,r).bind(t=>a(t.item)?k.none():n(t.item)?k.some(t.item):Pi(e,t.item,n,t.mode,r,a)),Ri=(e,t)=>({element:e,offset:t}),Fi=(e,t,n)=>e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind(t=>Fi(e,t,n).orThunk(()=>k.some(t))):k.none(),Vi=(e,t)=>e.property().isText(t)?e.property().getText(t).length:e.property().children(t).length,zi=(e,t)=>{const n=Fi(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return Ri(n,Vi(e,n));const o=e.property().children(n);return o.length>0?zi(e,o[o.length-1]):Ri(n,Vi(e,n))},Ui=zi,ji=Ii(),Hi=e=>t=>0===e.property().children(t).length,qi=(e,t,n,o)=>Pi(e,t,n,Li,{sibling:(e,t)=>e.query().prevSibling(t),first:e=>e.length>0?k.some(e[e.length-1]):k.none()},o),Gi=(e,t,n,o)=>Pi(e,t,n,Li,{sibling:(e,t)=>e.query().nextSibling(t),first:e=>e.length>0?k.some(e[0]):k.none()},o),Ki=Ii(),Zi=(e,t)=>((e,t,n)=>qi(e,t,Hi(e),n))(Ki,e,t),Wi=(e,t)=>((e,t,n)=>Gi(e,t,Hi(e),n))(Ki,e,t),$i=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Yi=(e,t,n,o)=>{const r=t(e,n);return D(o,(n,o)=>{const r=t(e,o);return Ji(e,n,r)},r)},Ji=(e,t,n)=>t.bind(t=>n.filter(b(e.eq,t))),Xi=Ii(),Qi=(e,t)=>((e,t,n)=>n.length>0?((e,t,n,o)=>o(e,t,n[0],n.slice(1)))(e,t,n,Yi):k.none())(Xi,(t,n)=>e(n),t),el=Ii(),tl=e=>((e,t)=>{const n=e.property().name(t);return E($i,n)})(el,e),nl=e=>((e,t)=>{const n=e.property().name(t);return E(["ol","ul"],n)})(el,e),ol=e=>{const t=zt("br"),n=e=>wo(e).bind(n=>{const o=Zt(n).map(e=>!!tl(e)||!!((e,t)=>E(["br","img","hr","input"],e.property().name(t)))(el,e)&&"img"!==Ot(e)).getOr(!1);return Ht(n).map(r=>{return!0===o||("li"===Ot(a=r)||no(a,nl).isSome())||t(n)||tl(r)&&!Ye(e,r)?[]:[Pe.fromTag("br")];var a})}).getOr([]),o=(()=>{const o=F(e,e=>{const o=Wt(e);return(e=>V(e,e=>t(e)||Rt(e)&&0===Yn(e).trim().length))(o)?[]:o.concat(n(e))});return 0===o.length?[Pe.fromTag("br")]:o})();yn(e[0]),dn(e[0],o)},rl=e=>{bn(e,"width"),bn(e,"height")},al=e=>{const t=Aa(e);wi(e,k.some(t),k.none()),rl(e)},il=e=>{const t=(e=>Un(e)+"px")(e);wi(e,k.some(t),k.none()),rl(e)},ll=e=>{Mn(e,"width");const t=sr(e),n=t.length>0?t:lr(e);B(n,e=>{Mn(e,"width"),rl(e)}),rl(e)},sl={scope:["row","col"]},cl=e=>()=>{const t=Pe.fromTag("td",e.dom);return sn(t,Pe.fromTag("br",e.dom)),t},ul=e=>()=>Pe.fromTag("col",e.dom),dl=e=>()=>Pe.fromTag("colgroup",e.dom),pl=e=>()=>Pe.fromTag("tr",e.dom),fl=(e,t,n)=>{const o=((e,t)=>{const n=Cn(e,t),o=Wt(wn(e));return dn(n,o),n})(e,t);return Z(n,(e,t)=>{null===e?bn(o,t):fn(o,t,e)}),o},ml=e=>e,gl=(e,t,n)=>{const o=(e,t)=>{((e,t)=>{const n=e.dom,o=t.dom;En(n)&&En(o)&&(o.style.cssText=n.style.cssText)})(e.element,t),Mn(t,"height"),1!==e.colspan&&Mn(t,"width")};return{col:n=>{const r=Pe.fromTag(Ot(n.element),t.dom);return o(n,r),e(n.element,r),r},colgroup:dl(t),row:pl(t),cell:r=>{const a=Pe.fromTag(Ot(r.element),t.dom),i=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),l=i.length>0?((e,t,n)=>xo(e).map(o=>{const r=n.join(","),a=bo(o,r,t=>Ye(t,e));return D(a,(e,t)=>{const n=xn(t);return sn(e,n),n},t)}).getOr(t))(r.element,a,i):a;return sn(l,Pe.fromTag("br")),o(r,a),((e,t)=>{Z(sl,(n,o)=>hn(e,o).filter(e=>E(n,e)).each(e=>fn(t,o,e)))})(r.element,a),e(r.element,a),a},replace:fl,colGap:ul(t),gap:cl(t)}},hl=e=>({col:ul(e),colgroup:dl(e),row:pl(e),cell:cl(e),replace:ml,colGap:ul(e),gap:cl(e)}),bl=e=>Er(e).grid,vl=(e,t,n,o)=>{const r=De(e).rows;let a=!0;for(let e=0;e<r.length;e++)for(let i=0;i<Le(r[0]);i++){const l=r[e],s=Be(l,i),c=n(s.element,t);c&&!a?Te(l,i,we(o(),!0,s.isLocked)):c&&(a=!1)}return e},yl=(e,t)=>({rowDelta:0,colDelta:Le(e[0])-Le(t[0])}),_l=(e,t)=>({rowDelta:e.length-t.length,colDelta:0}),Al=(e,t,n,o)=>{const r="colgroup"===t.section?n.col:n.cell;return T(e,e=>we(r(),!0,o(e)))},kl=(e,t,n,o)=>{const r=e[e.length-1];return e.concat(T(t,()=>{const e="colgroup"===r.section?n.colgroup:n.row,t=Me(r,e,g),a=Al(t.cells.length,t,n,e=>X(o,e.toString()));return Ie(t,a)}))},xl=(e,t,n,o)=>I(e,e=>{const r=Al(t,e,n,_);return Ee(e,o,r)}),wl=(e,t,n)=>{const o=t.colDelta<0?xl:g,r=t.rowDelta<0?kl:g,a=kr(e),i=Le(e[0]),l=S(a,e=>e===i-1),s=o(e,Math.abs(t.colDelta),n,l?i-1:i),c=kr(s);return r(s,Math.abs(t.rowDelta),n,z(c,A))},Cl=(e,t,n,o)=>{const r=b(o,Be(e[t],n).element),a=e[t];return e.length>1&&Le(a)>1&&(n>0&&r(Oe(a,n-1))||n<a.cells.length-1&&r(Oe(a,n+1))||t>0&&r(Oe(e[t-1],n))||t<e.length-1&&r(Oe(e[t+1],n)))},El=(e,t,n)=>L(n,n=>n>=e.column&&n<=Le(t[0])+e.column),Sl=(e,t,n,o,r)=>{((e,t,n,o)=>{t>0&&t<e[0].cells.length&&B(e,e=>{const r=e.cells[t-1];let a=0;const i=o();for(;e.cells.length>t+a&&n(r.element,e.cells[t+a].element);)Te(e,t+a,we(i,!0,e.cells[t+a].isLocked)),a++})})(t,e,r,o.cell);const a=_l(n,t),i=wl(n,a,o),l=_l(t,i),s=wl(t,l,o);return I(s,(t,n)=>Ee(t,e,i[n].cells))},Tl=(e,t,n,o,r)=>{((e,t,n,o)=>{const r=De(e).rows;if(t>0&&t<r.length){const e=((e,t)=>M(e,(e,n)=>S(e,e=>t(e.element,n.element))?e:e.concat([n]),[]))(r[t-1].cells,n);B(e,e=>{let a=k.none();for(let i=t;i<r.length;i++)for(let t=0;t<Le(r[0]);t++){const l=r[i],s=Be(l,t);n(s.element,e.element)&&(a.isNone()&&(a=k.some(o())),a.each(e=>{Te(l,t,we(e,!0,s.isLocked))}))}})}})(t,e,r,o.cell);const a=kr(t),i=yl(t,n),l={...i,colDelta:i.colDelta-a.length},s=wl(t,l,o),{cols:c,rows:u}=De(s),d=kr(s),p=yl(n,t),f={...p,colDelta:p.colDelta+d.length},m=(h=o,b=d,I(n,e=>M(b,(t,n)=>{const o=Al(1,e,h,A)[0];return Se(t,n,o)},e))),g=wl(m,f,o);var h,b;return[...c,...u.slice(0,e),...g,...u.slice(e,u.length)]},Il=(e,t,n,o,r)=>{const{rows:a,cols:i}=De(e),l=a.slice(0,t),s=a.slice(t);return[...i,...l,((e,t,n,o)=>Me(e,e=>o(e,n),t))(a[n],(e,n)=>t>0&&t<a.length&&o(Oe(a[t-1],n),Oe(a[t],n))?Be(a[t],n):we(r(e.element,o),!0,e.isLocked),o,r),...s]},Bl=(e,t,n,o,r)=>I(e,e=>{const a=t>0&&t<Le(e)&&o(Oe(e,t-1),Oe(e,t)),i=((e,t,n,o,r,a,i)=>{if("colgroup"!==n&&o)return Be(e,t);{const t=Be(e,r);return we(i(t.element,a),!0,!1)}})(e,t,e.section,a,n,o,r);return Se(e,t,i)}),Ol=(e,t,n,o)=>((e,t,n,o)=>void 0!==Oe(e[t],n)&&t>0&&o(Oe(e[t-1],n),Oe(e[t],n)))(e,t,n,o)||((e,t,n)=>t>0&&n(Oe(e,t-1),Oe(e,t)))(e[t],n,o),Ll=(e,t,n,o)=>{const r=e=>(e=>"row"===e?(e=>Qo(e,"rowspan")>1)(t):er(t))(e)?`${e}group`:e;return e?pr(t)?r(n):null:o&&pr(t)?r("row"===n?"col":"row"):null},Dl=(e,t,n)=>we(n(e.element,t),!0,e.isLocked),Ml=(e,t,n,o,r,a,i)=>I(e,(e,l)=>(e=>{const s=e.cells,c=I(s,(e,s)=>{if((e=>S(t,t=>n(e.element,t.element)))(e)){const t=i(e,l,s)?r(e,n,o):e;return a(t,l,s).each(e=>{var n,o;n=t.element,o={scope:k.from(e)},Z(o,(e,t)=>{e.fold(()=>{bn(n,t)},e=>{pn(n.dom,t,e)})})}),t}return e});return Ce(e.element,c,e.section,e.isNew)})(e)),Nl=(e,t,n)=>F(e,(o,r)=>Ol(e,r,t,n)?[]:[Be(o,t)]),Pl=(e,t,n,o,r)=>{const a=De(e).rows,i=F(t,e=>Nl(a,e,o)),l=I(a,e=>fr(e.cells)),s=((e,t)=>V(t,g)&&fr(e)?A:(e,n,o)=>!("th"===Ot(e.element)&&t[n]))(i,l),c=((e,t)=>(n,o)=>k.some(Ll(e,n.element,"row",t[o])))(n,l);return Ml(e,i,o,r,Dl,c,s)},Rl=(e,t,n,o)=>{const r=De(e).rows,a=I(t,e=>Be(r[e.row],e.column));return Ml(e,a,n,o,Dl,k.none,A)},Fl=e=>M(e,(e,t)=>S(e,e=>e.column===t.column)?e:e.concat([t]),[]).sort((e,t)=>e.column-t.column),Vl=e=>mo(e,!0),zl=e=>{0===lr(e).length&&_n(e)},Ul=(e,t)=>({grid:e,cursor:t}),jl=(e,t,n)=>{const o=((e,t,n)=>{var o,r;const a=De(e).rows;return k.from(null===(r=null===(o=a[t])||void 0===o?void 0:o.cells[n])||void 0===r?void 0:r.element).filter(Vl).orThunk(()=>(e=>q(e,e=>q(e.cells,e=>{const t=e.element;return de(Vl(t),t)})))(a))})(e,t,n);return Ul(e,o)},Hl=e=>M(e,(e,t)=>S(e,e=>e.row===t.row)?e:e.concat([t]),[]).sort((e,t)=>e.row-t.row),ql=(e,t,n,o)=>{const r=t[0].row,a=Hl(t),i=D(a,(e,t)=>({grid:Il(e.grid,r,t.row+e.delta,n,o.getOrInit),delta:e.delta+1}),{grid:e,delta:0}).grid;return jl(i,r,t[0].column)},Gl=(e,t,n,o)=>{const r=Hl(t),a=r[r.length-1],i=a.row+a.rowspan,l=D(r,(e,t)=>Il(e,i,t.row,n,o.getOrInit),e);return jl(l,i,t[0].column)},Kl=(e,t,n,o)=>{const r=t.details,a=Fl(r),i=a[0].column,l=D(a,(e,t)=>({grid:Bl(e.grid,i,t.column+e.delta,n,o.getOrInit),delta:e.delta+1}),{grid:e,delta:0}).grid;return jl(l,r[0].row,i)},Zl=(e,t,n,o)=>{const r=t.details,a=r[r.length-1],i=a.column+a.colspan,l=Fl(r),s=D(l,(e,t)=>Bl(e,i,t.column,n,o.getOrInit),e);return jl(s,r[0].row,i)},Wl=(e,t,n,o)=>{const r=Fl(t),a=I(r,e=>e.column),i=Pl(e,a,!0,n,o.replaceOrInit);return jl(i,t[0].row,t[0].column)},$l=(e,t,n,o)=>{const r=Rl(e,t,n,o.replaceOrInit);return jl(r,t[0].row,t[0].column)},Yl=(e,t,n,o)=>{const r=Fl(t),a=I(r,e=>e.column),i=Pl(e,a,!1,n,o.replaceOrInit);return jl(i,t[0].row,t[0].column)},Jl=(e,t,n,o)=>{const r=Rl(e,t,n,o.replaceOrInit);return jl(r,t[0].row,t[0].column)},Xl=(e,t)=>(n,o,r,a,i)=>{const l=Hl(o),s=I(l,e=>e.row),c=((e,t,n,o,r,a,i)=>{const{cols:l,rows:s}=De(e),c=s[t[0]],u=F(t,e=>((e,t,n)=>{const o=e[t];return F(o.cells,(o,r)=>Ol(e,t,r,n)?[]:[o])})(s,e,r)),d=I(c.cells,(e,t)=>fr(Nl(s,t,r))),p=[...s];B(t,e=>{p[e]=i.transformRow(s[e],n)});const f=[...l,...p],m=((e,t)=>V(t,g)&&fr(e.cells)?A:(e,n,o)=>!("th"===Ot(e.element)&&t[o]))(c,d),h=((e,t)=>(n,o,r)=>k.some(Ll(e,n.element,"col",t[r])))(o,d);return Ml(f,u,r,a,i.transformCell,h,m)})(n,s,e,t,r,a.replaceOrInit,i);return jl(c,o[0].row,o[0].column)},Ql=Xl("thead",!0),es=Xl("tbody",!1),ts=Xl("tfoot",!1),ns=(e,t,n,o)=>{const r=Fl(t.details),a=((e,t)=>F(e,e=>{const n=e.cells,o=D(t,(e,t)=>t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e,n);return o.length>0?[Ce(e.element,o,e.section,e.isNew)]:[]}))(e,I(r,e=>e.column)),i=a.length>0?a[0].cells.length-1:0;return jl(a,r[0].row,Math.min(r[0].column,i))},os=(e,t,n,o)=>{const r=Hl(t),a=((e,t,n)=>{const{rows:o,cols:r}=De(e);return[...r,...o.slice(0,t),...o.slice(n+1)]})(e,r[0].row,r[r.length-1].row),i=Math.max(De(a).rows.length-1,0);return jl(a,Math.min(t[0].row,i),t[0].column)},rs=(e,t,n,o)=>{const r=t.cells;ol(r);const a=((e,t,n,o)=>{const r=De(e).rows;if(0===r.length)return e;for(let e=t.startRow;e<=t.finishRow;e++)for(let n=t.startCol;n<=t.finishCol;n++){const t=r[e],a=Be(t,n).isLocked;Te(t,n,we(o(),!1,a))}return e})(e,t.bounds,0,o.merge(r));return Ul(a,k.from(r[0]))},as=(e,t,n,o)=>{const r=D(t,(e,t)=>vl(e,t,n,o.unmerge(t)),e);return Ul(r,k.from(t[0]))},is=(e,t,n,o)=>{const r=((e,t)=>{const n=Er(e);return ja(n,t,!0)})(t.clipboard,t.generators);var a,i;return((e,t,n,o,r)=>{const a=kr(t),i=((e,t,n)=>{const o=Le(t[0]),r=De(t).cols.length+e.row,a=T(o-e.column,t=>t+e.column);return{row:r,column:N(a,e=>V(n,t=>t!==e)).getOr(o-1)}})(e,t,a),l=De(n).rows,s=El(i,l,a),c=((e,t,n)=>{if(e.row>=t.length||e.column>Le(t[0]))return ie.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);const o=t.slice(e.row),r=o[0].cells.slice(e.column),a=Le(n[0]),i=n.length;return ie.value({rowDelta:o.length-i,colDelta:r.length-a})})(i,t,l);return c.map(e=>{const n={...e,colDelta:e.colDelta-s.length},a=wl(t,n,o),c=kr(a),u=El(i,l,c);return((e,t,n,o,r,a)=>{const i=e.row,l=e.column,s=i+n.length,c=l+Le(n[0])+a.length,u=z(a,A);for(let e=i;e<s;e++){let a=0;for(let s=l;s<c;s++){if(u[s]){a++;continue}Cl(t,e,s,r)&&vl(t,Oe(t[e],s),r,o.cell);const c=s-l-a,d=Be(n[e-i],c),p=d.element,f=o.replace(p);Te(t[e],s,we(f,!0,d.isLocked))}}return t})(i,a,l,o,r,u)})})((a=t.row,i=t.column,{row:a,column:i}),e,r,t.generators,n).fold(()=>Ul(e,k.some(t.element)),e=>jl(e,t.row,t.column))},ls=(e,t,n)=>{const o=((e,t)=>br(e,()=>t))(e,n.section),r=Sr(o);return ja(r,t,!0)},ss=(e,t,n,o)=>{const r=De(e).rows,a=t.cells[0].column,i=r[t.cells[0].row],l=ls(t.clipboard,t.generators,i),s=Sl(a,e,l,t.generators,n);return jl(s,t.cells[0].row,t.cells[0].column)},cs=(e,t,n,o)=>{const r=De(e).rows,a=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,i=r[t.cells[0].row],l=ls(t.clipboard,t.generators,i),s=Sl(a,e,l,t.generators,n);return jl(s,t.cells[0].row,a)},us=(e,t,n,o)=>{const r=De(e).rows,a=t.cells[0].row,i=r[a],l=ls(t.clipboard,t.generators,i),s=Tl(a,e,l,t.generators,n);return jl(s,t.cells[0].row,t.cells[0].column)},ds=(e,t,n,o)=>{const r=De(e).rows,a=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,i=r[t.cells[0].row],l=ls(t.clipboard,t.generators,i),s=Tl(a,e,l,t.generators,n);return jl(s,a,t.cells[0].column)},ps=(e,t,n,o)=>((e,t,n,o)=>{const r=Sr(t),a=o.getWidths(r,o);ti(r,a,o)})(0,t,0,o.sizing),fs=(e,t,n,o)=>((e,t,n,o,r)=>{const a=Sr(t),i=o.getWidths(a,o),l=o.pixelWidth(),{newSizes:s,delta:c}=r.calcRedestributedWidths(i,l,n.pixelDelta,o.isRelative);ti(a,s,o),o.adjustTableWidth(c)})(0,t,n,o.sizing,o.resize),ms=(e,t)=>S(t,e=>0===e.column&&e.isLocked),gs=(e,t)=>S(t,t=>t.column+t.colspan>=e.grid.columns&&t.isLocked),hs=(e,t)=>{const n=qr(e),o=Fl(t);return M(o,(e,t)=>e+n[t.column].map(jn).getOr(0),0)},bs=e=>(t,n)=>$a(t,n).filter(n=>!(e?ms:gs)(t,n)).map(e=>({details:e,pixelDelta:hs(t,e)})),vs=(e,t)=>Ya(e,t).map(t=>({details:t,pixelDelta:-hs(e,t)})),ys=e=>(t,n)=>Wa(t,n).filter(n=>!(e?ms:gs)(t,n.cells)),_s=mi("th"),As=mi("td"),ks=(e,t,n,o)=>Ka(ql,$a,f,f,fi,e,t,n,o),xs=(e,t,n,o)=>Ka(Gl,$a,f,f,fi,e,t,n,o),ws=(e,t,n,o)=>Ka(Kl,bs(!0),fs,f,fi,e,t,n,o),Cs=(e,t,n,o)=>Ka(Zl,bs(!1),fs,f,fi,e,t,n,o),Es=(e,t,n,o)=>Ka(ns,vs,fs,zl,fi,e,t,n,o),Ss=(e,t,n,o)=>Ka(os,$a,f,zl,fi,e,t,n,o),Ts=(e,t,n,o)=>Ka(Wl,Ya,f,f,_s,e,t,n,o),Is=(e,t,n,o)=>Ka(Yl,Ya,f,f,As,e,t,n,o),Bs=(e,t,n,o)=>Ka(Ql,$a,f,f,_s,e,t,n,o),Os=(e,t,n,o)=>Ka(es,$a,f,f,As,e,t,n,o),Ls=(e,t,n,o)=>Ka(ts,$a,f,f,As,e,t,n,o),Ds=(e,t,n,o)=>Ka($l,Ya,f,f,_s,e,t,n,o),Ms=(e,t,n,o)=>Ka(Jl,Ya,f,f,As,e,t,n,o),Ns=(e,t,n,o)=>Ka(rs,Xa,ps,f,gi,e,t,n,o),Ps=(e,t,n,o)=>Ka(as,Qa,ps,f,gi,e,t,n,o),Rs=(e,t,n,o)=>Ka(is,Za,ps,f,fi,e,t,n,o),Fs=(e,t,n,o)=>Ka(ss,ys(!0),f,f,fi,e,t,n,o),Vs=(e,t,n,o)=>Ka(cs,ys(!1),f,f,fi,e,t,n,o),zs=(e,t,n,o)=>Ka(us,Wa,f,f,fi,e,t,n,o),Us=(e,t,n,o)=>Ka(ds,Wa,f,f,fi,e,t,n,o),js=(e,t)=>{const n=Er(e);return $a(n,t).bind(e=>{const t=e[e.length-1],o=e[0].column,r=t.column+t.colspan,a=R(I(n.all,e=>L(e.cells,e=>e.column>=o&&e.column<r)));return hr(a)}).getOr("")},Hs=(e,t)=>{const n=Er(e);return $a(n,t).bind(hr).getOr("")},qs=(e,t)=>{const n=Er(e);return $a(n,t).bind(e=>{const t=e[e.length-1],o=e[0].row,r=t.row+t.rowspan;return(e=>{const t=I(e,e=>gr(e).type),n=E(t,"header"),o=E(t,"footer");if(n||o){const e=E(t,"body");return!n||e||o?n||e||!o?k.none():k.some("footer"):k.some("header")}return k.some("body")})(n.all.slice(o,r))}).getOr("")},Gs=(e,t)=>{const n=t.column,o=t.column+t.colspan-1,r=t.row,a=t.row+t.rowspan-1;return n<=e.finishCol&&o>=e.startCol&&r<=e.finishRow&&a>=e.startRow},Ks=(e,t)=>t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow,Zs=(e,t,n)=>{const o=Ir(e,t,Ye),r=Ir(e,n,Ye);return o.bind(e=>r.map(t=>{return n=e,o=t,{startRow:Math.min(n.row,o.row),startCol:Math.min(n.column,o.column),finishRow:Math.max(n.row+n.rowspan-1,o.row+o.rowspan-1),finishCol:Math.max(n.column+n.colspan-1,o.column+o.colspan-1)};var n,o}))},Ws=(e,t,n)=>Zs(e,t,n).map(t=>{const n=Br(e,b(Gs,t));return I(n,e=>e.element)}),$s=(e,t)=>Ir(e,t,(e,t)=>Je(t,e)).map(e=>e.element),Ys=(e,t,n)=>{const o=Xs(e);return Ws(o,t,n)},Js=(e,t,n,o,r)=>{const a=Xs(e),i=Ye(e,n)?k.some(t):$s(a,t),l=Ye(e,r)?k.some(o):$s(a,o);return i.bind(e=>l.bind(t=>Ws(a,e,t)))},Xs=Er,Qs={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},ec=()=>Pe.fromTag("th"),tc=()=>Pe.fromTag("td"),nc=(e,t,n,o)=>T(e,e=>((e,t,n,o)=>{const r=Pe.fromTag("tr");for(let a=0;a<e;a++){const e=o<t||a<n?ec():tc();a<n&&fn(e,"scope","row"),o<t&&fn(e,"scope","col"),sn(e,Pe.fromTag("br")),sn(r,e)}return r})(t,n,o,e)),oc=e=>{let t=[];return{bind:e=>{if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},unbind:e=>{t=L(t,t=>t!==e)},trigger:(...n)=>{const o={};B(e,(e,t)=>{o[e]=n[t]}),B(t,e=>{e(o)})}}},rc=e=>({registry:W(e,e=>({bind:e.bind,unbind:e.unbind})),trigger:W(e,e=>e.trigger)}),ac=oe(["compare","extract","mutate","sink"]),ic=oe(["element","start","stop","destroy"]),lc=oe(["forceDrop","drop","move","delayDrop"]),sc=()=>{const e=(()=>{const e=rc({move:oc(["info"])});return{onEvent:f,reset:f,events:e.registry}})(),t=(()=>{let e=k.none();const t=rc({move:oc(["info"])});return{onEvent:(n,o)=>{o.extract(n).each(n=>{const r=((t,n)=>{const o=e.map(e=>t.compare(e,n));return e=k.some(n),o})(o,n);r.each(e=>{t.trigger.move(e)})})},reset:()=>{e=k.none()},events:t.registry}})();let n=e;return{on:()=>{n.reset(),n=t},off:()=>{n.reset(),n=e},isOn:()=>n===t,onEvent:(e,t)=>{n.onEvent(e,t)},events:t.events}},cc=se("ephox-dragster").resolve;var uc=ac({compare:(e,t)=>Gn(t.left-e.left,t.top-e.top),extract:e=>k.some(Gn(e.x,e.y)),sink:(e,t)=>{const n=(e=>{const t={layerClass:cc("blocker"),...e},n=Pe.fromTag("div");return fn(n,"role","presentation"),Bn(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),uo(n,cc("blocker")),uo(n,t.layerClass),{element:m(n),destroy:()=>{_n(n)}}})(t),o=nn(n.element(),"mousedown",e.forceDrop),r=nn(n.element(),"mouseup",e.drop),a=nn(n.element(),"mousemove",e.move),i=nn(n.element(),"mouseout",e.delayDrop);return ic({element:n.element,start:e=>{sn(e,n.element())},stop:()=>{_n(n.element())},destroy:()=>{n.destroy(),r.unbind(),a.unbind(),i.unbind(),o.unbind()}})},mutate:(e,t)=>{e.mutate(t.left,t.top)}});const dc=se("ephox-snooker").resolve,pc=dc("resizer-bar"),fc=dc("resizer-rows"),mc=dc("resizer-cols"),gc=e=>{const t=yo(e.parent(),"."+pc);B(t,_n)},hc=(e,t,n)=>{const o=e.origin();B(t,t=>{t.each(t=>{const r=n(o,t);uo(r,pc),sn(e.parent(),r)})})},bc=(e,t,n,o,r)=>{const a=Zn(n),i=t.isResizable,l=o.length>0?oa.positions(o,n):[],s=l.length>0?((e,t)=>F(e.all,(e,n)=>t(e.element)?[n]:[]))(e,i):[];((e,t,n,o)=>{hc(e,t,(e,t)=>{const r=((e,t,n,o)=>{const r=Pe.fromTag("div");return Bn(r,{position:"absolute",left:t+"px",top:n-3.5+"px",height:"7px",width:o+"px"}),mn(r,{"data-mce-bogus":"all","data-row":e,role:"presentation"}),r})(t.row,n.left-e.left,t.y-e.top,o);return uo(r,fc),r})})(t,L(l,(e,t)=>S(s,e=>t===e)),a,jn(n));const c=r.length>0?aa.positions(r,n):[],u=c.length>0?((e,t)=>{const n=[];return T(e.grid.columns,o=>{Mr(e,o).map(e=>e.element).forall(t)&&n.push(o)}),L(n,n=>{const o=Br(e,e=>e.column===n);return V(o,e=>t(e.element))})})(e,i):[];((e,t,n,o)=>{hc(e,t,(e,t)=>{const r=((e,t,n,o,r)=>{const a=Pe.fromTag("div");return Bn(a,{position:"absolute",left:t-3.5+"px",top:n+"px",height:r+"px",width:"7px"}),mn(a,{"data-mce-bogus":"all","data-column":e,role:"presentation"}),a})(t.col,t.x-e.left,n.top-e.top,0,o);return uo(r,mc),r})})(t,L(c,(e,t)=>S(u,e=>t===e)),a,Vn(n))},vc=(e,t)=>{if(gc(e),e.isResizable(t)){const n=Er(t),o=Kr(n),r=qr(n);bc(n,e,t,o,r)}},yc=(e,t)=>{const n=yo(e.parent(),"."+pc);B(n,t)},_c=e=>{yc(e,e=>{In(e,"display","none")})},Ac=e=>{yc(e,e=>{In(e,"display","block")})},kc=dc("resizer-bar-dragging"),xc=e=>{const t=(()=>{const e=rc({drag:oc(["xDelta","yDelta","target"])});let t=k.none();const n=(()=>{const e=rc({drag:oc(["xDelta","yDelta"])});return{mutate:(t,n)=>{e.trigger.drag(t,n)},events:e.registry}})();return n.events.drag.bind(n=>{t.each(t=>{e.trigger.drag(n.xDelta,n.yDelta,t)})}),{assign:e=>{t=k.some(e)},get:()=>t,mutate:n.mutate,events:e.registry}})(),n=((e,t={})=>{var n;return((e,t,n)=>{let o=!1;const r=rc({start:oc([]),stop:oc([])}),a=sc(),i=()=>{u.stop(),a.isOn()&&(a.off(),r.trigger.stop())},s=(e=>{let t=null;const n=()=>{l(t)||(clearTimeout(t),t=null)};return{cancel:n,throttle:(...o)=>{n(),t=setTimeout(()=>{t=null,e.apply(null,o)},200)}}})(i);a.events.move.bind(n=>{t.mutate(e,n.info)});const c=e=>(...t)=>
vendor: 4,529 bytes, line 2
2{o&&e.apply(null,t)},u=t.sink(lc({forceDrop:i,drop:c(i),move:c(e=>{s.cancel(),a.onEvent(e,t)}),delayDrop:c(s.throttle)}),n);return{element:u.element,go:e=>{u.start(e),a.on(),r.trigger.start()},on:()=>{o=!0},off:()=>{o=!1},isActive:()=>o,destroy:()=>{u.destroy()},events:r.registry}})(e,null!==(n=t.mode)&&void 0!==n?n:uc,t)})(t,{});let o=k.none();const r=(e,t)=>k.from(gn(e,t));t.events.drag.bind(e=>{r(e.target,"data-row").each(t=>{const n=tr(e.target,"top");In(e.target,"top",n+e.yDelta+"px")}),r(e.target,"data-column").each(t=>{const n=tr(e.target,"left");In(e.target,"left",n+e.xDelta+"px")})});const a=(e,t)=>tr(e,t)-Xo(e,"data-initial-"+t,0);n.events.stop.bind(()=>{t.get().each(t=>{o.each(n=>{r(t,"data-row").each(e=>{const o=a(t,"top");bn(t,"data-initial-top"),d.trigger.adjustHeight(n,o,parseInt(e,10))}),r(t,"data-column").each(e=>{const o=a(t,"left");bn(t,"data-initial-left"),d.trigger.adjustWidth(n,o,parseInt(e,10))}),vc(e,n)})})});const i=(o,r)=>{d.trigger.startAdjust(),t.assign(o),fn(o,"data-initial-"+r,tr(o,r)),uo(o,kc),In(o,"opacity","0.2"),n.go(e.dragContainer())},s=nn(e.parent(),"mousedown",e=>{var t;t=e.target,po(t,fc)&&i(e.target,"top"),(e=>po(e,mc))(e.target)&&i(e.target,"left")}),c=t=>Ye(t,e.view()),u=nn(e.view(),"mouseover",t=>{var r;(r=t.target,lo(r,"table",c).filter(mo)).fold(()=>{Sn(t.target)&&!(e=>po(e,"ephox-snooker-resizer-bar")||po(e,"ephox-dragster-blocker"))(t.target)&&gc(e)},t=>{n.isActive()&&(o=k.some(t),vc(e,t))})}),d=rc({adjustHeight:oc(["table","delta","row"]),adjustWidth:oc(["table","delta","column"]),startAdjust:oc([])});return{destroy:()=>{s.unbind(),u.unbind(),n.destroy(),gc(e)},refresh:t=>{vc(e,t)},on:n.on,off:n.off,hideBars:b(_c,e),showBars:b(Ac,e),events:d.registry}},wc=e=>t=>t.options.get(e),Cc="100%",Ec=e=>{var t;const n=e.dom,o=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody();return Hn(Pe.fromDom(o))+"px"},Sc=e=>k.from(e.options.get("table_clone_elements")),Tc=wc("table_header_type"),Ic=wc("table_column_resizing"),Bc=e=>"preservetable"===Ic(e),Oc=e=>"resizetable"===Ic(e),Lc=wc("table_sizing_mode"),Dc=e=>"relative"===Lc(e),Mc=e=>"fixed"===Lc(e),Nc=e=>"responsive"===Lc(e),Pc=wc("table_resize_bars"),Rc=wc("table_style_by_css"),Fc=wc("table_merge_content_on_paste"),Vc=e=>{const t=e.options,n=t.get("table_default_attributes");return t.isSet("table_default_attributes")?n:((e,t)=>Nc(e)||Rc(e)?t:Mc(e)?{...t,width:Ec(e)}:{...t,width:Cc})(e,n)},zc=wc("table_use_colgroups"),Uc=e=>Pe.fromDom(e.getBody()),jc=e=>t=>Ye(t,Uc(e)),Hc=e=>{bn(e,"data-mce-style");const t=e=>bn(e,"data-mce-style");B(lr(e),t),B(sr(e),t),B(ur(e),t)},qc=e=>Pe.fromDom(e.selection.getStart()),Gc=e=>e.getBoundingClientRect().width,Kc=e=>e.getBoundingClientRect().height,Zc=e=>(t,n)=>{const o=t.dom.getStyle(n,e)||t.dom.getAttrib(n,e);return k.from(o).filter(ye)},Wc=Zc("width"),$c=Zc("height"),Yc=e=>oo(e,zt("table")).exists(mo),Jc=e=>ro(e,"table"),Xc=(e,t,n)=>{const o=e=>t=>void 0!==n&&n(t)||Ye(t,e);return Ye(e,t)?k.some({boxes:k.some([e]),start:e,finish:t}):Jc(e).bind(r=>Jc(t).bind(a=>{if(Ye(r,a))return k.some({boxes:Ys(r,e,t),start:e,finish:t});if(Je(r,a)){const n=bo(t,"td,th",o(r)),i=n.length>0?n[n.length-1]:t;return k.some({boxes:Js(r,e,r,t,a),start:e,finish:i})}if(Je(a,r)){const n=bo(e,"td,th",o(a)),i=n.length>0?n[n.length-1]:e;return k.some({boxes:Js(a,e,r,t,a),start:e,finish:i})}return((e,t)=>((e,t,n,o=_)=>{const r=[t].concat(e.up().all(t)),a=[n].concat(e.up().all(n)),i=e=>P(e,o).fold(()=>e,t=>e.slice(0,t+1)),l=i(r),s=i(a),c=N(l,t=>S(s,((e,t)=>b(e.eq,t))(e,t)));return{firstpath:l,secondpath:s,shared:c}})(Xi,e,t,void 0))(e,t).shared.bind(i=>lo(i,"table",n).bind(n=>{const i=bo(t,"td,th",o(n)),l=i.length>0?i[i.length-1]:t,s=bo(e,"td,th",o(n)),c=s.length>0?s[s.length-1]:e;return k.some({boxes:Js(n,e,r,t,a),start:c,finish:l})}))}))},Qc=(e,t)=>{const n=yo(e,t);return n.length>0?k.some(n):k.none()},eu=(e,t,n)=>io(e,t).bind(t=>io(e,n).bind(e=>Qi(Jc,[t,e]).map(n=>({first:t,last:e,table:n})))),tu=(e,t,n,o,r)=>((e,t)=>N(e,e=>Ze(e,t)))(e,r).bind(e=>((e,t,n)=>cr(e).bind(o=>((e,t,n,o)=>Ir(e,t,Ye).bind(t=>{const r=n>0?t.row+t.rowspan-1:t.row,a=o>0?t.column+t.colspan-1:t.column;return Tr(e,r+n,a+o).map(e=>e.element)}))(Xs(o),e,t,n)))(e,t,n).bind(e=>((e,t)=>ro(e,"table").bind(n=>io(n,t).bind(t=>Xc(t,e).bind(e=>e.boxes.map(t=>({boxes:t,start:e.start,finish:e.finish}))))))(e,o))),nu=(e,t)=>Qc(e,t),ou=(e,t,n)=>eu(e,t,n).bind(t=>{const n=t=>Ye(e,t),o="thead,tfoot,tbody,table",r=ro(t.first,o,n),a=ro(t.last,o,n);return r.bind(e=>a.bind(n=>
vendor: 13,529 bytes, line 2
2Ye(e,n)?((e,t,n)=>((e,t,n)=>Zs(e,t,n).bind(t=>((e,t)=>{let n=!0;const o=b(Ks,t);for(let r=t.startRow;r<=t.finishRow;r++)for(let a=t.startCol;a<=t.finishCol;a++)n=n&&Tr(e,r,a).exists(o);return n?k.some(t):k.none()})(e,t)))(Xs(e),t,n))(t.table,t.first,t.last):k.none()))}),ru=g,au=e=>{const t=(e,t)=>hn(e,t).exists(e=>parseInt(e,10)>1);return e.length>0&&V(e,e=>t(e,"rowspan")||t(e,"colspan"))?k.some(e):k.none()},iu=(e,t,n)=>t.length<=1?k.none():ou(e,n.firstSelectedSelector,n.lastSelectedSelector).map(e=>({bounds:e,cells:t})),lu=(e,t)=>({selection:e,kill:t}),su=()=>({tag:"none"}),cu=e=>({tag:"multiple",elements:e}),uu=e=>({tag:"single",element:e}),du=(e,t,n,o)=>({start:To.on(e,t),finish:To.on(n,o)}),pu=(e,t)=>{const n=Ke(e,t);return Eo(Pe.fromDom(n.startContainer),n.startOffset,Pe.fromDom(n.endContainer),n.endOffset)},fu=du,mu=(e,t,n,o,r)=>Ye(n,o)?k.none():Xc(n,o,t).bind(t=>{const o=t.boxes.getOr([]);return o.length>1?(r(e,o,t.start,t.finish),k.some(lu(k.some(fu(n,0,n,_o(n))),!0))):k.none()}),gu=Q([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),hu=e=>lo(e,"tr"),bu={...gu,verify:(e,t,n,o,r,a,i)=>lo(o,"td,th",i).bind(n=>lo(t,"td,th",i).map(t=>Ye(n,t)?Ye(o,n)&&_o(n)===r?a(t):gu.none("in same cell"):Qi(hu,[n,t]).fold(()=>((e,t,n)=>{const o=e.getRect(t),r=e.getRect(n);return r.right>o.left&&r.left<o.right})(e,t,n)?gu.success():a(t),e=>a(t)))).getOr(gu.none("default")),cata:(e,t,n,o,r)=>e.fold(t,n,o,r)},vu=zt("br"),yu=(e,t,n)=>t(e,n).bind(e=>Rt(e)&&0===Yn(e).trim().length?yu(e,t,n):k.some(e)),_u=(e,t,n,o)=>((e,t)=>$t(e,t).filter(vu).orThunk(()=>$t(e,t-1).filter(vu)))(t,n).bind(t=>o.traverse(t).fold(()=>yu(t,o.gather,e).map(o.relative),e=>(e=>Ht(e).bind(t=>{const n=Wt(t);return((e,t)=>P(e,b(Ye,t)))(n,e).map(o=>((e,t,n,o)=>({parent:e,children:t,element:n,index:o}))(t,n,e,o))}))(e).map(e=>To.on(e.parent,e.index)))),Au=(e,t)=>({left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}),ku=(e,t)=>({left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}),xu=(e,t,n)=>({left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}),wu=e=>({left:e.left,top:e.top,right:e.right,bottom:e.bottom}),Cu=(e,t)=>k.some(e.getRect(t)),Eu=(e,t,n)=>Pt(t)?Cu(e,t).map(wu):Rt(t)?((e,t,n)=>n>=0&&n<_o(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):k.none())(e,t,n).map(wu):k.none(),Su=(e,t)=>Pt(t)?Cu(e,t).map(wu):Rt(t)?e.getRangedRect(t,0,t,_o(t)).map(wu):k.none(),Tu=Q([{none:[]},{retry:["caret"]}]),Iu=(e,t,n)=>oo(t,tl).fold(_,t=>Su(e,t).exists(e=>((e,t)=>e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right)(n,e))),Bu={point:e=>e.bottom,adjuster:(e,t,n,o,r)=>{const a=Au(r,5);return Math.abs(n.bottom-o.bottom)<1||n.top>r.bottom?Tu.retry(a):n.top===r.bottom?Tu.retry(Au(r,1)):Iu(e,t,r)?Tu.retry(xu(a,5,0)):Tu.none()},move:Au,gather:Wi},Ou=(e,t,n,o,r)=>0===r?k.some(o):((e,t,n)=>e.elementFromPoint(t,n).filter(e=>"table"===Ot(e)).isSome())(e,o.left,t.point(o))?((e,t,n,o,r)=>Ou(e,t,n,t.move(o,5),r))(e,t,n,o,r-1):e.situsFromPoint(o.left,t.point(o)).bind(a=>a.start.fold(k.none,a=>Su(e,a).bind(i=>t.adjuster(e,a,i,n,o).fold(k.none,o=>Ou(e,t,n,o,r-1))).orThunk(()=>k.some(o)),k.none)),Lu=(e,t,n)=>{const o=e.move(n,5),r=Ou(t,e,n,o,100).getOr(o);return((e,t,n)=>e.point(t)>n.getInnerHeight()?k.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?k.some(-e.point(t)):k.none())(e,r,t).fold(()=>t.situsFromPoint(r.left,e.point(r)),n=>(t.scrollBy(0,n),t.situsFromPoint(r.left,e.point(r)-n)))},Du={tryUp:b(Lu,{point:e=>e.top,adjuster:(e,t,n,o,r)=>{const a=ku(r,5);return Math.abs(n.top-o.top)<1||n.bottom<r.top?Tu.retry(a):n.bottom===r.top?Tu.retry(ku(r,1)):Iu(e,t,r)?Tu.retry(xu(a,5,0)):Tu.none()},move:ku,gather:Zi}),tryDown:b(Lu,Bu),getJumpSize:m(5)},Mu=(e,t,n)=>e.getSelection().bind(o=>((e,t,n,o)=>{const r=vu(t)?((e,t,n)=>n.traverse(t).orThunk(()=>yu(t,n.gather,e)).map(n.relative))(e,t,o):_u(e,t,n,o);return r.map(e=>({start:e,finish:e}))})(t,o.finish,o.foffset,n).fold(()=>k.some(Ri(o.finish,o.foffset)),r=>{const a=e.fromSitus(r);return i=bu.verify(e,o.finish,o.foffset,a.finish,a.foffset,n.failure,t),bu.cata(i,e=>k.none(),()=>k.none(),e=>k.some(Ri(e,0)),e=>k.some(Ri(e,_o(e))));var i})),Nu=(e,t,n,o,r,a)=>0===a?k.none():Fu(e,t,n,o,r).bind(i=>{const l=e.fromSitus(i),s=bu.verify(e,n,o,l.finish,l.foffset,r.failure,t);return bu.cata(s,()=>k.none(),()=>k.some(i),i=>Ye(n,i)&&0===o?Pu(e,n,o,ku,r):Nu(e,t,i,0,r,a-1),i=>Ye(n,i)&&o===_o(i)?Pu(e,n,o,Au,r):Nu(e,t,i,_o(i),r,a-1))}),Pu=(e,t,n,o,r)=>Eu(e,t,n).bind(t=>Ru(e,r,o(t,Du.getJumpSize()))),Ru=(e,t,n)=>{const o=Tt().browser;return o.isChromium()||o.isSafari()||o.isFirefox()?t.retry(e,n):k.none()},Fu=(e,t,n,o,r)=>Eu(e,n,o).bind(t=>Ru(e,r,t)),Vu=(e,t,n,o,r)=>lo(o,"td,th",t).bind(o=>lo(o,"table",t).bind(a=>((e,t)=>no(e,e=>Ht(e).exists(e=>Ye(e,t)),void 0).isSome())(r,a)?((e,t,n)=>Mu(e,t,n).bind(o=>Nu(e,t,o.element,o.offset,n,20).map(e.fromSitus)))(e,t,n).bind(e=>lo(e.finish,"td,th",t).map(t=>({start:o,finish:t,range:e}))):k.none())),zu=(e,t,n,o,r,a)=>a(o,t).orThunk(()=>Vu(e,t,n,o,r).map(e=>{const t=e.range;return lu(k.some(fu(t.start,t.soffset,t.finish,t.foffset)),!0)})),Uu=(e,t)=>lo(e,"tr",t).bind(e=>lo(e,"table",t).bind(n=>{const o=yo(n,"tr");return Ye(e,o[0])?((e,t,n)=>qi(Ki,e,e=>wo(e).isSome(),n))(n,0,t).map(e=>{const t=_o(e);return lu(k.some(fu(e,t,e,t)),!0)}):k.none()})),ju=(e,t)=>lo(e,"tr",t).bind(e=>lo(e,"table",t).bind(n=>{const o=yo(n,"tr");return Ye(e,o[o.length-1])?((e,t,n)=>Gi(Ki,e,e=>xo(e).isSome(),n))(n,0,t).map(e=>lu(k.some(fu(e,0,e,0)),!0)):k.none()})),Hu=(e,t,n,o,r,a,i)=>Vu(e,n,o,r,a).bind(e=>mu(t,n,e.start,e.finish,i)),qu=(e,t)=>lo(e,"td,th",t),Gu=e=>qt(e).exists(mo),Ku={traverse:Zt,gather:Wi,relative:To.before,retry:Du.tryDown,failure:bu.failedDown},Zu={traverse:Kt,gather:Zi,relative:To.before,retry:Du.tryUp,failure:bu.failedUp},Wu=e=>t=>t===e,$u=Wu(38),Yu=Wu(40),Ju=e=>e>=37&&e<=40,Xu={isBackward:Wu(37),isForward:Wu(39)},Qu={isBackward:Wu(39),isForward:Wu(37)},ed=e=>({elementFromPoint:(t,n)=>Pe.fromPoint(Pe.fromDom(e.document),t,n),getRect:e=>e.dom.getBoundingClientRect(),getRangedRect:(t,n,o,r)=>{const a=Bo.exact(t,n,o,r);return((e,t)=>(e=>{const t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?k.some(n).map(je):k.none()})(Ke(e,t)))(e,a)},getSelection:()=>Uo(e).map(t=>pu(e,t)),fromSitus:t=>{const n=Bo.relative(t.start,t.finish);return pu(e,n)},situsFromPoint:(t,n)=>jo(e,t,n).map(e=>du(e.start,e.soffset,e.finish,e.foffset)),clearSelection:()=>{(e=>{Lo(e).each(e=>e.removeAllRanges())})(e)},collapseSelection:(t=!1)=>{Uo(e).each(n=>n.fold(e=>e.collapse(t),(n,o)=>{const r=t?n:o;Ro(e,r,r)},(n,o,r,a)=>{const i=t?n:r,l=t?o:a;Po(e,i,l,i,l)}))},setSelection:t=>{Po(e,t.start,t.soffset,t.finish,t.foffset)},setRelativeSelection:(t,n)=>{Ro(e,t,n)},selectNode:t=>{zo(e,t,!1)},selectContents:t=>{zo(e,t)},getInnerHeight:()=>e.innerHeight,getScrollY:()=>(e=>{const t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,o=t.body.scrollTop||t.documentElement.scrollTop;return Gn(n,o)})(Pe.fromDom(e.document)).top,scrollBy:(t,n)=>{((e,t,n)=>{const o=(void 0!==n?n.dom:document).defaultView;o&&o.scrollBy(e,t)})(t,n,Pe.fromDom(e.document))}}),td=(e,t)=>({rows:e,cols:t}),nd=e=>oo(e,Nt).exists(mo),od=(e,t)=>nd(e)||nd(t),rd="data-mce-selected",ad="data-mce-first-selected",id="data-mce-last-selected",ld="["+rd+"]",sd={selected:rd,selectedSelector:"td["+rd+"],th["+rd+"]",firstSelected:ad,firstSelectedSelector:"td["+ad+"],th["+ad+"]",lastSelected:id,lastSelectedSelector:"td["+id+"],th["+id+"]"},cd=(e,t,n)=>({element:n,mergable:iu(t,e,sd),unmergable:au(e),selection:ru(e)}),ud=e=>(t,n)=>{const o=Ot(t),r="col"===o||"colgroup"===o?cr(a=t).bind(e=>nu(e,sd.firstSelectedSelector)).fold(m(a),e=>e[0]):t;var a;return lo(r,e,n)},dd=ud("th,td,caption"),pd=ud("th,td"),fd=e=>{return t=e.model.table.getSelectedCells(),I(t,Pe.fromDom);var t},md=(e,t)=>{e.on("BeforeGetContent",t=>{const n=n=>{t.preventDefault(),(e=>cr(e[0]).map(e=>{const t=((e,t)=>{const n=e=>Ze(e.element,t),o=wn(e),r=yr(o),a=Ma(e),i=Sr(r),l=((e,t)=>{const n=e.grid.columns;let o=e.grid.rows,r=n,a=0,i=0;const l=[],s=[];return Z(e.access,e=>{if(l.push(e),t(e)){s.push(e);const t=e.row,n=t+e.rowspan-1,l=e.column,c=l+e.colspan-1;t<o?o=t:n>a&&(a=n),l<r?r=l:c>i&&(i=c)}}),((e,t,n,o,r,a)=>({minRow:e,minCol:t,maxRow:n,maxCol:o,allCells:r,selectedCells:a}))(o,r,a,i,l,s)})(i,n),s="th:not("+t+"),td:not("+t+")",c=ar(o,"th,td",e=>Ze(e,s));B(c,_n),((e,t,n,o)=>{const r=L(e,e=>"colgroup"!==e.section),a=t.grid.columns,i=t.grid.rows;for(let e=0;e<i;e++){let i=!1;for(let l=0;l<a;l++)e<n.minRow||e>n.maxRow||l<n.minCol||l>n.maxCol||(Tr(t,e,l).filter(o).isNone()?li(r,i,e):i=!0)}})(r,i,l,n);const u=((e,t,n,o)=>{if(0===o.minCol&&t.grid.columns===o.maxCol+1)return 0;const r=Ia(t,e,n),a=M(r,(e,t)=>e+t,0),i=M(r.slice(o.minCol,o.maxCol+1),(e,t)=>e+t,0),l=i/a*n.pixelWidth()-n.pixelWidth();return n.getCellDelta(l)})(e,Er(e),a,l);return((e,t,n,o)=>{Z(n.columns,e=>{(e.column<t.minCol||e.column>t.maxCol)&&_n(e.element)});const r=L(rr(e,"tr"),e=>0===e.dom.childElementCount);B(r,_n),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||B(rr(e,"th,td"),e=>{bn(e,"rowspan"),bn(e,"colspan")}),bn(e,_r),bn(e,"data-snooker-col-series"),Ma(e).adjustTableWidth(o)})(o,l,i,u),o})(e,ld);return Hc(t),[t]}))(n).each(n=>{const o="text"===t.format?((e,t)=>{const n=e.getDoc(),o=Jt(Pe.fromDom(e.getBody())),r=Pe.fromTag("div",n);fn(r,"data-mce-bogus","all"),Bn(r,{position:"fixed",left:"-9999999px",top:"0",overflow:"hidden",opacity:"0"});const a=(e=>Yt(e)?e:Pe.fromDom(jt(e).dom.body))(o);dn(r,t),sn(a,r);const i=r.dom.innerText;return _n(r),i})(e,n):((e,t)=>I(t,t=>e.selection.serializer.serialize(t.dom,{})).join(""))(e,n);t.content=o})};if(!0===t.selection){const t=(e=>L(fd(e),e=>Ze(e,sd.selectedSelector)))(e);t.length>=1&&n(t)}}),e.on("BeforeSetContent",n=>{if(!0===n.selection&&!0===n.paste){const o=fd(e);j(o).each(o=>{cr(o).each(r=>{const a=L((e=>{const t=document.createElement("div");return t.innerHTML=e,Wt(Pe.fromDom(t))})(n.content),e=>"meta"!==Ot(e)),i=zt("table");if(Fc(e)&&1===a.length&&i(a[0])){n.preventDefault();const i=Pe.fromDom(e.getDoc()),l=hl(i),s=((e,t,n)=>({element:e,clipboard:t,generators:n}))(o,a[0],l);t.pasteCells(r,s).each(()=>{e.focus()})}})})}})},gd=(e,t)=>e.dispatch("NewRow",{node:t}),hd=(e,t)=>e.dispatch("NewCell",{node:t}),bd=(e,t,n)=>{e.dispatch("TableModified",{...n,table:t})},vd={structure:!1,style:!0},yd={structure:!0,style:!1},_d={structure:!0,style:!0},Ad=(e,t)=>Dc(e)?Pa(t):Mc(e)?Na(t):Ma(t),kd=(e,t,n)=>{const o=e=>"table"===Ot(Uc(e)),r=Sc(e),a=Oc(e)?f:ri,i=t=>{switch(Tc(e)){case"section":return zr();case"sectionCells":return Ur();case"cells":return jr();default:return((e,t)=>{var n;switch((n=Er(e),q(n.all,e=>{const t=gr(e);return"header"===t.type?k.from(t.subType):k.none()})).getOr(t)){case"section":return Rr();case"sectionCells":return Fr();case"cells":return Vr()}})(t,"section")}},l=(o,a,l,s)=>(c,u,d=!1)=>{Hc(c);const p=Pe.fromDom(e.getDoc()),f=gl(l,p,r),m={sizing:Ad(e,c),resize:Oc(e)?Yo():Jo(),section:i(c)};return a(c)?o(c,u,f,m).bind(o=>{t.refresh(c.dom),B(o.newRows,t=>{gd(e,t.dom)}),B(o.newCells,t=>{hd(e,t.dom)});const r=((t,o)=>o.cursor.fold(()=>{const o=lr(t);return j(o).filter(Sn).map(o=>{n.clearSelectedCells(t.dom);const r=e.dom.createRng();return r.selectNode(o.dom),e.selection.setRng(r),fn(o,"data-mce-selected","1"),r})},o=>{const r=Ui(ji,o),a=e.dom.createRng();return a.setStart(r.element.dom,r.offset),a.setEnd(r.element.dom,r.offset),e.selection.setRng(a),n.clearSelectedCells(t.dom),k.some(a)}))(c,o);return Sn(c)&&(Hc(c),d||bd(e,c.dom,s)),r.map(e=>({rng:e,effect:s}))}):k.none()},s=l(Ss,t=>!o(e)||bl(t).rows>1,f,yd),c=l(Es,t=>!o(e)||bl(t).columns>1,f,yd);return{deleteRow:s,deleteColumn:c,insertRowsBefore:l(ks,A,f,yd),insertRowsAfter:l(xs,A,f,yd),insertColumnsBefore:l(ws,A,a,yd),insertColumnsAfter:l(Cs,A,a,yd),mergeCells:l(Ns,A,f,yd),unmergeCells:l(Ps,A,f,yd),pasteColsBefore:l(Fs,A,f,yd),pasteColsAfter:l(Vs,A,f,yd),pasteRowsBefore:l(zs,A,f,yd),pasteRowsAfter:l(Us,A,f,yd),pasteCells:l(Rs,A,f,_d),makeCellsHeader:l(Ds,A,f,yd),unmakeCellsHeader:l(Ms,A,f,yd),makeColumnsHeader:l(Ts,A,f,yd),unmakeColumnsHeader:l(Is,A,f,yd),makeRowsHeader:l(Bs,A,f,yd),makeRowsBody:l(Os,A,f,yd),makeRowsFooter:l(Ls,A,f,yd),getTableRowType:qs,getTableCellType:Hs,getTableColType:js}},xd=(e,t)=>{e.selection.select(t.dom,!0),e.selection.collapse(!0)},wd=(e,t,n,o,a)=>{const i=(e=>{const t=e.options,n=t.get("table_default_styles");return t.isSet("table_default_styles")?n:((e,t)=>Nc(e)||!Rc(e)?t:Mc(e)?{...t,width:Ec(e)}:{...t,width:Cc})(e,n)})(e),l={styles:i,attributes:Vc(e),colGroups:zc(e)};return e.undoManager.ignore(()=>{const r=((e,t,n,o,r,a=Qs)=>{const i=Pe.fromTag("table"),l="cells"!==r;Bn(i,a.styles),mn(i,a.attributes),a.colGroups&&sn(i,(e=>{const t=Pe.fromTag("colgroup");return T(e,()=>sn(t,Pe.fromTag("col"))),t})(t));const s=Math.min(e,n);if(l&&n>0){const e=Pe.fromTag("thead");sn(i,e);const a=nc(n,t,"sectionCells"===r?s:0,o);dn(e,a)}const c=Pe.fromTag("tbody");sn(i,c);const u=nc(l?e-s:e,t,l?0:n,o);return dn(c,u),i})(n,t,a,o,Tc(e),l);fn(r,"data-mce-id","__mce");const i=(e=>{const t=Pe.fromTag("div"),n=Pe.fromDom(e.dom.cloneNode(!0));return sn(t,n),(e=>e.dom.innerHTML)(t)})(r);e.insertContent(i),e.addVisual()}),io(Uc(e),'table[data-mce-id="__mce"]').map(t=>(Mc(e)?il(t):Nc(e)?ll(t):(Dc(e)||(e=>r(e)&&-1!==e.indexOf("%"))(i.width))&&al(t),Hc(t),bn(t,"data-mce-id"),((e,t)=>{B(yo(t,"tr"),t=>{gd(e,t.dom),B(yo(t,"th,td"),t=>{hd(e,t.dom)})})})(e,t),((e,t)=>{io(t,"td,th").each(b(xd,e))})(e,t),t.dom)).getOrNull()};
vendor: 6,412 bytes, line 2
2var Cd=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Ed="x-tinymce/dom-table-",Sd=Ed+"rows",Td=Ed+"columns",Id=e=>{const t=Cd.FakeClipboardItem(e);Cd.write([t])},Bd=e=>{var t;const n=null!==(t=Cd.read())&&void 0!==t?t:[];return q(n,t=>k.from(t.getType(e)))},Od=e=>{Bd(e).isSome()&&Cd.clear()},Ld=e=>{e.fold(Md,e=>Id({[Sd]:e}))},Dd=()=>Bd(Sd),Md=()=>Od(Sd),Nd=e=>{e.fold(Rd,e=>Id({[Td]:e}))},Pd=()=>Bd(Td),Rd=()=>Od(Td),Fd=e=>dd(qc(e),jc(e)).filter(Yc),Vd=(e,t)=>{const n=jc(e),o=e=>cr(e,n),i=t=>(e=>pd(qc(e),jc(e)).filter(Yc))(e).bind(e=>o(e).map(n=>t(n,e))),l=t=>{e.focus()},s=(t,n=!1)=>i((o,r)=>{const a=cd(fd(e),o,r);t(o,a,n).each(l)}),c=()=>i((t,n)=>((e,t,n)=>{const o=Er(e);return $a(o,t).bind(e=>{const t=ja(o,n,!1),r=De(t).rows.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=F(r,e=>{const t=L(e.cells,e=>!e.isLocked);return t.length>0?[{...e,cells:t}]:[]}),i=Ha(a);return de(i.length>0,i)}).map(e=>I(e,e=>{const t=xn(e.element);return B(e.cells,e=>{const n=wn(e.element);Ra(n,"colspan",e.colspan,1),Ra(n,"rowspan",e.rowspan,1),sn(t,n)}),t}))})(t,cd(fd(e),t,n),gl(f,Pe.fromDom(e.getDoc()),k.none()))),u=()=>i((t,n)=>((e,t)=>{const n=Er(e);return Ya(n,t).map(e=>{const t=e[e.length-1],o=e[0].column,r=t.column+t.colspan,a=((e,t,n)=>{if(Dr(e)){const o=L(Lr(e),ii(t,n)),r=I(o,e=>{const o=wn(e.element);return ai(o,"span",n-t),o}),a=Pe.fromTag("colgroup");return dn(a,r),[a]}return[]})(n,o,r),i=((e,t,n)=>I(e.all,e=>{const o=L(e.cells,ii(t,n)),r=I(o,e=>{const o=wn(e.element);return ai(o,"colspan",n-t),o}),a=Pe.fromTag("tr");return dn(a,r),a}))(n,o,r);return[...a,...i]})})(t,cd(fd(e),t,n))),d=(t,n)=>n().each(n=>{const o=I(n,e=>wn(e));i((n,r)=>{const a=hl(Pe.fromDom(e.getDoc())),i=((e,t,n,o)=>({selection:ru(e),clipboard:n,generators:o}))(fd(e),0,o,a);t(n,i).each(l)})}),m=e=>(t,n)=>((e,t)=>X(e,t)?k.from(e[t]):k.none())(n,"type").each(t=>{s(e(t),n.no_events)});Z({mceTableSplitCells:()=>s(t.unmergeCells),mceTableMergeCells:()=>s(t.mergeCells),mceTableInsertRowBefore:()=>s(t.insertRowsBefore),mceTableInsertRowAfter:()=>s(t.insertRowsAfter),mceTableInsertColBefore:()=>s(t.insertColumnsBefore),mceTableInsertColAfter:()=>s(t.insertColumnsAfter),mceTableDeleteCol:()=>s(t.deleteColumn),mceTableDeleteRow:()=>s(t.deleteRow),mceTableCutCol:()=>u().each(e=>{Nd(e),s(t.deleteColumn)}),mceTableCutRow:()=>c().each(e=>{Ld(e),s(t.deleteRow)}),mceTableCopyCol:()=>u().each(e=>Nd(e)),mceTableCopyRow:()=>c().each(e=>Ld(e)),mceTablePasteColBefore:()=>d(t.pasteColsBefore,Pd),mceTablePasteColAfter:()=>d(t.pasteColsAfter,Pd),mceTablePasteRowBefore:()=>d(t.pasteRowsBefore,Dd),mceTablePasteRowAfter:()=>d(t.pasteRowsAfter,Dd),mceTableDelete:()=>Fd(e).each(t=>{cr(t,n).filter(v(n)).each(t=>{const n=Pe.fromText("");if(an(t,n),_n(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{const t=e.dom.createRng();t.setStart(n.dom,0),t.setEnd(n.dom,0),e.selection.setRng(t),e.nodeChanged()}})}),mceTableCellToggleClass:(t,n)=>{i(t=>{const o=fd(e),r=V(o,t=>e.formatter.match("tablecellclass",{value:n},t.dom)),a=r?e.formatter.remove:e.formatter.apply;B(o,e=>a("tablecellclass",{value:n},e.dom)),bd(e,t.dom,vd)})},mceTableToggleClass:(t,n)=>{i(t=>{e.formatter.toggle("tableclass",{value:n},t.dom),bd(e,t.dom,vd)})},mceTableToggleCaption:()=>{Fd(e).each(t=>{cr(t,n).each(n=>{ao(n,"caption").fold(()=>{const t=Pe.fromTag("caption");sn(t,Pe.fromText("Caption")),((e,t)=>{$t(e,0).fold(()=>{sn(e,t)},e=>{rn(e,t)})})(n,t),e.selection.setCursorLocation(t.dom,0)},o=>{zt("caption")(t)&&$e("td",n).each(t=>e.selection.setCursorLocation(t.dom,0)),_n(o)}),bd(e,n.dom,yd)})})},mceTableSizingMode:(t,o)=>(t=>Fd(e).each(o=>{Nc(e)||Mc(e)||Dc(e)||cr(o,n).each(n=>{"relative"!==t||Ci(n)?"fixed"!==t||Ei(n)?"responsive"!==t||Si(n)||ll(n):il(n):al(n),Hc(n),bd(e,n.dom,yd)})}))(o),mceTableCellType:m(e=>"th"===e?t.makeCellsHeader:t.unmakeCellsHeader),mceTableColType:m(e=>"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader),mceTableRowType:m(e=>{switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}})},(t,n)=>e.addCommand(n,t)),e.addCommand("mceInsertTable",(t,n)=>{((e,t,n,o={})=>{const r=e=>p(e)&&e>0;if(r(t)&&r(n)){const r=o.headerRows||0,a=o.headerColumns||0;return wd(e,n,t,a,r)}console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table.")})(e,n.rows,n.columns,n.options)}),e.addCommand("mceTableApplyCellStyle",(t,n)=>{const i=e=>"tablecell"+e.toLowerCase().replace("-","");if(!a(n))return;const l=L(fd(e),Yc);if(0===l.length)return;const s=((e,t)=>{const n={};return((e,t,n,o)=>{Z(e,(e,r)=>{(t(e,r)?n:o)(e,r)})})(e,t,(e=>(t,n)=>{e[n]=t})(n),f),n})(n,(t,n)=>e.formatter.has(i(n))&&r(t));(e=>{for(const t in e)if(K.call(e,t))return!1;return!0})(s)||(Z(s,(t,n)=>{const o=i(n);B(l,n=>{""===t?e.formatter.remove(o,{value:null},n.dom,!0):e.formatter.apply(o,{value:t},n.dom)})}),o(l[0]).each(t=>bd(e,t.dom,vd)))})},zd=e=>!po(Pe.fromDom(e.target),"ephox-snooker-resizer-bar"),Ud=(e,t)=>{const n=(r=sd.selectedSelector,{get:()=>nu(Pe.fromDom(e.getBody()),r).fold(()=>pd(qc(e),jc(e)).fold(su,uu),cu)}),o=((e,t,n)=>{const o=t=>{bn(t,e.selected),bn(t,e.firstSelected),bn(t,e.lastSelected)},r=t=>{fn(t,e.selected,"1")},a=e=>{i(e),n()},i=t=>{const n=yo(t,`${e.selectedSelector},${e.firstSelectedSelector},${e.lastSelectedSelector}`);B(n,o)};return{clearBeforeUpdate:i,clear:a,selectRange:(n,o,i,l)=>{a(n),B(o,r),fn(i,e.firstSelected,"1"),fn(l,e.lastSelected,"1"),t(o,i,l)},selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}})(sd,(t,n,o)=>{cr(n).each(r=>{const a=I(t,e=>e.dom),i=Sc(e),l=gl(f,Pe.fromDom(e.getDoc()),i),s=((e,t,n)=>{const o=Er(e);return $a(o,t).map(e=>{const t=ja(o,n,!1),{rows:r}=De(t),a=((e,t)=>{const n=e.slice(0,t[t.length-1].row+1),o=Ha(n);return F(o,e=>{const n=e.cells.slice(0,t[t.length-1].column+1);return I(n,e=>e.element)})})(r,e),i=((e,t)=>{const n=e.slice(t[0].row+t[0].rowspan-1,e.length),o=Ha(n);return F(o,e=>{const n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return I(n,e=>e.element)})})(r,e);return{upOrLeftCells:a,downOrRightCells:i}})})(r,{selection:fd(e)},l).map(e=>W(e,e=>I(e,e=>e.dom))).getOrUndefined();((e,t,n,o,r)=>{e.dispatch("TableSelectionChange",{cells:t,start:n,finish:o,otherCells:r})})(e,a,n.dom,o.dom,s)})},()=>(e=>{e.dispatch("TableSelectionClear")}
vendor: 5,027 bytes, line 2
2)(e));var r;return e.on("init",n=>{const r=e.getWin(),a=Uc(e),i=jc(e),l=((e,t,n,o)=>{const r=((e,t,n,o)=>{const r=fe(),a=r.clear,i=a=>{r.on(r=>{o.clearBeforeUpdate(t),qu(a.target,n).each(i=>{Xc(r,i,n).each(n=>{const r=n.boxes.getOr([]);if(1===r.length){const e=r[0],n="false"===go(e),i=ce(fo(a.target),e,Ye);n&&i&&o.selectRange(t,r,e,e)}else r.length>1&&(o.selectRange(t,r,n.start,n.finish),e.selectContents(i))})})})};return{clearstate:a,mousedown:e=>{o.clear(t),qu(e.target,n).filter(Gu).each(r.set)},mouseover:e=>{i(e)},mouseup:e=>{i(e),a()}}})(ed(e),t,n,o);return{clearstate:r.clearstate,mousedown:r.mousedown,mouseover:r.mouseover,mouseup:r.mouseup}})(r,a,i,o),s=((e,t,n,o)=>{const r=ed(e),a=()=>(o.clear(t),k.none());return{keydown:(e,i,l,s,c,u)=>{const d=e.raw,p=d.which,f=!0===d.shiftKey,m=Qc(t,o.selectedSelector).fold(()=>(Ju(p)&&!f&&o.clearBeforeUpdate(t),Ju(p)&&f&&!od(i,s)?k.none:Yu(p)&&f?b(Hu,r,t,n,Ku,s,i,o.selectRange):$u(p)&&f?b(Hu,r,t,n,Zu,s,i,o.selectRange):Yu(p)?b(zu,r,n,Ku,s,i,ju):$u(p)?b(zu,r,n,Zu,s,i,Uu):k.none),e=>{const n=n=>()=>{const a=q(n,n=>((e,t,n,o,r)=>tu(o,e,t,r.firstSelectedSelector,r.lastSelectedSelector).map(e=>(r.clearBeforeUpdate(n),r.selectRange(n,e.boxes,e.start,e.finish),e.boxes)))(n.rows,n.cols,t,e,o));return a.fold(()=>eu(t,o.firstSelectedSelector,o.lastSelectedSelector).map(e=>{const n=Yu(p)||u.isForward(p)?To.after:To.before;return r.setRelativeSelection(To.on(e.first,0),n(e.table)),o.clear(t),lu(k.none(),!0)}),e=>k.some(lu(k.none(),!0)))};return Ju(p)&&f&&!od(i,s)?k.none:Yu(p)&&f?n([td(1,0)]):$u(p)&&f?n([td(-1,0)]):u.isBackward(p)&&f?n([td(0,-1),td(-1,0)]):u.isForward(p)&&f?n([td(0,1),td(1,0)]):Ju(p)&&!f?a:k.none});return m()},keyup:(e,r,a,i,l)=>Qc(t,o.selectedSelector).fold(()=>{const s=e.raw,c=s.which;return!0===s.shiftKey&&Ju(c)&&od(r,i)?((e,t,n,o,r,a,i)=>Ye(n,r)&&o===a?k.none():lo(n,"td,th",t).bind(n=>lo(r,"td,th",t).bind(o=>mu(e,t,n,o,i))))(t,n,r,a,i,l,o.selectRange):k.none()},k.none)}})(r,a,i,o),c=((e,t,n,o)=>{const r=ed(e);return(e,a)=>{o.clearBeforeUpdate(t),Xc(e,a,n).each(e=>{const n=e.boxes.getOr([]);o.selectRange(t,n,e.start,e.finish),r.selectContents(a),r.collapseSelection()})}})(r,a,i,o);e.on("TableSelectorChange",e=>c(e.start,e.finish));const u=(t,n)=>{(e=>!0===e.raw.shiftKey)(t)&&(n.kill&&t.kill(),n.selection.each(t=>{const n=Bo.relative(t.start,t.finish),o=Ke(r,n);e.selection.setRng(o)}))},d=e=>0===e.button,p=(()=>{const e=ee(Pe.fromDom(a)),t=ee(0);return{touchEnd:n=>{const o=Pe.fromDom(n.target);if(zt("td")(o)||zt("th")(o)){const r=e.get(),a=t.get();Ye(r,o)&&n.timeStamp-a<300&&(n.preventDefault(),c(o,o))}e.set(o),t.set(n.timeStamp)}}})();e.on("dragstart",e=>{l.clearstate()}),e.on("mousedown",e=>{d(e)&&zd(e)&&l.mousedown(on(e))}),e.on("mouseover",e=>{var t;(void 0===(t=e).buttons||1&t.buttons)&&zd(e)&&l.mouseover(on(e))}),e.on("mouseup",e=>{d(e)&&zd(e)&&l.mouseup(on(e))}),e.on("touchend",p.touchEnd),e.on("keyup",t=>{const n=on(t);if(n.raw.shiftKey&&Ju(n.raw.which)){const t=e.selection.getRng(),o=Pe.fromDom(t.startContainer),r=Pe.fromDom(t.endContainer);s.keyup(n,o,t.startOffset,r,t.endOffset).each(e=>{u(n,e)})}}),e.on("keydown",n=>{const o=on(n);t.hide();const r=e.selection.getRng(),a=Pe.fromDom(r.startContainer),i=Pe.fromDom(r.endContainer),l=Qn(Xu,Qu)(Pe.fromDom(e.selection.getStart()));s.keydown(o,a,r.startOffset,i,r.endOffset,l).each(e=>{u(o,e)}),t.show()}),e.on("NodeChange",()=>{const t=e.selection,n=Pe.fromDom(t.getStart()),r=Pe.fromDom(t.getEnd());Qi(cr,[n,r]).fold(()=>o.clear(a),f)})}),e.on("PreInit",()=>{e.serializer.addTempAttr(sd.firstSelected),e.serializer.addTempAttr(sd.lastSelected)}),{getSelectedCells:()=>((e,t)=>{switch(e.tag){case"none":return t();case"single":return(e=>[e.dom])(e.element);case"multiple":return(e=>I(e,e=>e.dom))(e.elements)}})(n.get(),m([])),clearSelectedCells:e=>o.clear(Pe.fromDom(e))}},jd=e=>u(e)&&"TABLE"===e.nodeName,Hd="bar-",qd=e=>"false"!==gn(e,"data-mce-resize"),Gd=e=>{const t=fe(),n=fe(),o=fe();let r,a,i,l;const s=t=>Ad(e,t),c=()=>Bc(e)?Jo():Yo(),u=(t,n,o,u)=>{const d=(e=>{return he(t=e,"corner-")?(e=>e.substring(7))(t):t;var t})(n),p=be(d,"e"),f=he(d,"n");if(""===a&&al(t),""===l&&(e=>{const t=(e=>Fn(e)+"px")(e);wi(e,k.none(),k.some(t)),rl(e)})(t),o!==r&&""!==a){In(t,"width",a);const n=c(),i=s(t),l=Bc(e)||p?(e=>bl(e).columns)(t)-1:0;ni(t,o-r,l,n,i)}else if((e=>/^(\d+(\.\d+)?)%$/.test(e))(a)){const e=parseFloat(a.replace("%",""));In(t,"width",o*e/r+"%")}if((e=>/^(\d+(\.\d+)?)px$/.test(e))(a)&&(e=>{const t=Er(e);Dr(t)||B(lr(e),e=>{const t=On(e,"width");In(e,"width",t),bn(e,"width")})})(t),u!==i&&""!==l){In(t,"height",l);const e=f?0:(e=>bl(e).rows)(t)-1;oi(t,u-i,e)}};e.on("init",()=>{const r=((e,t)=>((e,t)=>({parent:m(e),view:m(e),dragContainer:m(e),origin:()=>Zn(e),isResizable:t}))(Pe.fromDom(e.getBody()),t))(e,qd);if(o.set(r),(e=>{const t=e.options.get("object_resizing");return E(t.split(","),"table")})(e)&&Pc(e)){const o=((e,t,n)=>{const o=oa,r=aa,a=xc(e),i=rc({beforeResize:oc(["table","type"]),afterResize:oc(["table","type"]),startDrag:oc([])});
2return a.events.adjustHeight.bind(e=>{const t=e.table;i.trigger.beforeResize(t,"row");const n=o.delta(e.delta,t);oi(t,n,e.row),i.trigger.afterResize(t,"row")}),a.events.startAdjust.bind(e=>{i.trigger.startDrag()}),a.events.adjustWidth.bind(e=>{const o=e.table;i.trigger.beforeResize(o,"col");const a=r.delta(e.delta,o),l=n(o);ni(o,a,e.column,t,l),i.trigger.afterResize(o,"col")}),{on:a.on,off:a.off,refreshBars:a.refresh,hideBars:a.hideBars,showBars:a.showBars,destroy:a.destroy,events:i.registry}})(r,c(),s);e.mode.isReadOnly()||o.on(),o.events.startDrag.bind(n=>{t.set(e.selection.getRng())}),o.events.beforeResize.bind(t=>{const n=t.table.dom;((e,t,n,o,r)=>{e.dispatch("ObjectResizeStart",{target:t,width:n,height:o,origin:r})})(e,n,Gc(n),Kc(n),Hd+t.type)}),o.events.afterResize.bind(n=>{const o=n.table,r=o.dom;Hc(o),t.on(t=>{e.selection.setRng(t),e.focus()}),((e,t,n,o,r)=>{e.dispatch("ObjectResized",{target:t,width:n,height:o,origin:r})})(e,r,Gc(r),Kc(r),Hd+n.type),e.undoManager.add()}),n.set(o)}}),e.on("ObjectResizeStart",t=>{const n=t.target;if(jd(n)&&!e.mode.isReadOnly()){const o=Pe.fromDom(n);B(e.dom.select(".mce-clonedresizable"),t=>{e.dom.addClass(t,"mce-"+Ic(e)+"-columns")}),!Ei(o)&&Mc(e)?il(o):!Ci(o)&&Dc(e)&&al(o),Si(o)&&he(t.origin,Hd)&&al(o),r=t.width,a=Nc(e)?"":Wc(e,n).getOr(""),i=t.height,l=$c(e,n).getOr("")}}),e.on("ObjectResized",t=>{const n=t.target;if(jd(n)){const o=Pe.fromDom(n),r=t.origin;(e=>he(e,"corner-"))(r)&&u(o,r,t.width,t.height),Hc(o),bd(e,o.dom,vd)}});const d=()=>{n.on(e=>{e.on(),e.showBars()})},p=()=>{n.on(e=>{e.off(),e.hideBars()})};return e.on("DisabledStateChange",e=>{e.state?p():d()}),e.on("SwitchMode",()=>{e.mode.isReadOnly()?p():d()}),e.on("dragstart dragend",e=>{"dragstart"===e.type?p():d()}),e.on("remove",()=>{n.on(e=>{e.destroy()})}),{refresh:e=>{n.on(t=>t.refreshBars(Pe.fromDom(e)))},hide:()=>{n.on(e=>e.hideBars())},show:()=>{n.on(e=>e.showBars())}}},Kd=e=>{(e=>{const t=e.options.register;t("table_clone_elements",{processor:"string[]"}),t("table_use_colgroups",{processor:"boolean",default:!0}),t("table_header_type",{processor:e=>{const t=E(["section","cells","sectionCells","auto"],e);return t?{value:e,valid:t}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),t("table_sizing_mode",{processor:"string",default:"auto"}),t("table_default_attributes",{processor:"object",default:{border:"1"}}),t("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),t("table_column_resizing",{processor:e=>{const t=E(["preservetable","resizetable"],e);return t?{value:e,valid:t}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),t("table_resize_bars",{processor:"boolean",default:!0}),t("table_style_by_css",{processor:"boolean",default:!0}),t("table_merge_content_on_paste",{processor:"boolean",default:!0})})(e);const t=Gd(e),n=Ud(e,t),o=kd(e,t,n);return Vd(e,o),((e,t)=>{const n=jc(e),o=t=>pd(qc(e)).bind(o=>cr(o,n).map(n=>{const r=cd(fd(e),n,o);return t(n,r)})).getOr("");Z({mceTableRowType:()=>o(t.getTableRowType),mceTableCellType:()=>o(t.getTableCellType),mceTableColType:()=>o(t.getTableColType)},(t,n)=>e.addQueryValueHandler(n,t))})(e,o),md(e,o),{getSelectedCells:n.getSelectedCells,clearSelectedCells:n.clearSelectedCells}};e.add("dom",e=>({table:Kd(e)}))}()},205(e,t,n){n(914)},914(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(a=o.constructor)||void 0===a?void 0:a.name)===r.name)?"string":t;var n,o,r,a})(e);const n=e=>void 0===e;const o=e=>!(e=>null==e)(e),r=Object.hasOwnProperty,a=e=>"\ufeff"===e,i=e=>t=>t.options.get(e),l=i("autolink_pattern"),s=i("link_default_target"),c=i("link_default_protocol"),u=i("allow_unsafe_link_target");var d=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const p=e=>3===e.nodeType,f=e=>1===e.nodeType,m=e=>/^[(\[{ \u00a0]$/.test(e),g=(e,t,n)=>{for(let o=t-1;o>=0;o--){const t=e.charAt(o);if(!a(t)&&n(t))return o}return-1},h=(e,t)=>{var o;const a=e.schema.getVoidElements(),i=l(e),{dom:s,selection:u}=e;if(null!==s.getParent(u.getNode(),"a[href]")||e.mode.isReadOnly())return null;const h=u.getRng(),b=d(s,e=>{return s.isBlock(e)||(t=a,n=e.nodeName.toLowerCase(),r.call(t,n))||"false"===s.getContentEditable(e)||null!==s.getParent(e,"a[href]");var t,n}),{container:v,offset:y}=((e,t)=>{let n=e,o=t;for(;f(n)&&n.childNodes[o];)n=n.childNodes[o],o=p(n)?n.data.length:n.childNodes.length;return{container:n,offset:o}})(h.endContainer,h.endOffset),_=null!==(o=s.getParent(v,s.isBlock))&&void 0!==o?o:s.getRoot(),A=b.backwards(v,y+t,(e,t)=>{const n=e.data,o=g(n,t,(r=m,e=>!r(e)));var r,a;return-1===o||(a=n[o],/[?!,.;:]/.test(a))?o:o+1},_);if(!A)return null;let k=A.container;const x=b.backwards(A.container,A.offset,(e,t)=>{k=e;const n=g(e.data,t,m);return-1===n?n:n+1},_),w=s.createRng();x?w.setStart(x.container,x.offset):w.setStart(k,0),w.setEnd(A.container,A.offset);const C=w.toString().replace(/\uFEFF/g,"").match(i);if(C){let t=C[0];return S="www.",(E=t).length>=4&&E.substr(0,4)===S?t=c(e)+"://"+t:((e,t,o=0,r)=>{const a=e.indexOf(t,o);return-1!==a&&(!!n(r)||a+t.length<=r)})(t,"@")&&!(e=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(e))(t)&&(t="mailto:"+t),{rng:w,url:t}}var E,S;return null},b=(e,n)=>{const{dom:o,selection:r}=e,{rng:a,url:i}=n,l=r.getBookmark();r.setRng(a);const c="createlink",d={command:c,ui:!1,value:i};if(!e.dispatch("BeforeExecCommand",d).isDefaultPrevented()){e.getDoc().execCommand(c,!1,i),e.dispatch("ExecCommand",d);const n=s(e);if(t(n)){const t=r.getNode();o.setAttrib(t,"target",n),"_blank"!==n||u(e)||o.setAttrib(t,"rel","noopener")}}r.moveToBookmark(l),e.nodeChanged()},v=e=>
2{const t=h(e,-1);o(t)&&b(e,t)},y=v;e.add("autolink",e=>{(e=>{const t=e.options.register;t("autolink_pattern",{processor:"regexp",default:new RegExp("^"+/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g.source+"$","i")}),t("link_default_target",{processor:"string"}),t("link_default_protocol",{processor:"string",default:"https"})})(e),(e=>{e.on("keydown",t=>{13!==t.keyCode||t.isDefaultPrevented()||(e=>{const t=h(e,0);o(t)&&b(e,t)})(e)}),e.on("keyup",t=>{32===t.keyCode?v(e):(48===t.keyCode&&t.shiftKey||221===t.keyCode)&&y(e)})})(e)})}()},669(e,t,n){n(82)},82(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env");const n=e=>t=>t.options.get(e),o=n("min_height"),r=n("max_height"),a=n("autoresize_overflow_padding"),i=n("autoresize_bottom_margin"),l=(e,t)=>{const n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))},s=(e,t,n,o)=>{var r;const a=parseInt(null!==(r=e.getStyle(t,n,o))&&void 0!==r?r:"",10);return isNaN(a)?0:a},c=(e,n,i,u)=>{var d;const p=e.dom,f=e.getDoc();if(!f)return;if((e=>e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen())(e))return void l(e,!0);const m=f.documentElement,g=u?u():a(e),h=null!==(d=o(e))&&void 0!==d?d:e.getElement().offsetHeight;let b=h;const v=s(p,m,"margin-top",!0),y=s(p,m,"margin-bottom",!0);let _=m.offsetHeight+v+y+g;_<0&&(_=0);const A=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;_+A>h&&(b=_+A);const k=r(e);k&&b>k?(b=k,l(e,!0)):l(e,!1);const x=n.get();if(x.set&&(e.dom.setStyles(e.getDoc().documentElement,{"min-height":0}),e.dom.setStyles(e.getBody(),{"min-height":"inherit"})),b!==x.totalHeight&&(_-g!==x.contentHeight||!x.set)){const o=b-x.totalHeight;if(p.setStyle(e.getContainer(),"height",b+"px"),n.set({totalHeight:b,contentHeight:_,set:!0}),(e=>{e.dispatch("ResizeEditor")})(e),t.browser.isSafari()&&(t.os.isMacOS()||t.os.isiOS())){const t=e.getWin();t.scrollTo(t.pageXOffset,t.pageYOffset)}e.hasFocus()&&(e=>{if("setcontent"===(null==e?void 0:e.type.toLowerCase())){const t=e;return!0===t.selection||!0===t.paste}return!1})(i)&&e.selection.scrollIntoView(),(t.browser.isSafari()||t.browser.isChromium())&&o<0&&c(e,n,i,u)}};e.add("autoresize",e=>{if((e=>{const t=e.options.register;t("autoresize_overflow_padding",{processor:"number",default:1}),t("autoresize_bottom_margin",{processor:"number",default:50})})(e),e.options.isSet("resize")||e.options.set("resize",!1),!e.inline){const n=(()=>{let e={totalHeight:0,contentHeight:0,set:!1};return{get:()=>e,set:t=>{e=t}}})();((e,t)=>{e.addCommand("mceAutoResize",()=>{c(e,t)})})(e,n),((e,n)=>{const o=()=>i(e);e.on("init",r=>{const i=a(e),l=e.dom;l.setStyles(e.getDoc().documentElement,{height:"auto"}),t.browser.isEdge()||t.browser.isIE()?l.setStyles(e.getBody(),{paddingLeft:i,paddingRight:i,"min-height":0}):l.setStyles(e.getBody(),{paddingLeft:i,paddingRight:i}),c(e,n,r,o)}),e.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",t=>{c(e,n,t,o)})})(e,n)}})}()},203(e,t,n){n(168)},36(){window.tinymce.Resource.add("tinymce.plugins.emoticons",{grinning:{keywords:["face","smile","happy","joy",":D","grin"],char:"ð",fitzpatrick_scale:!1,category:"people"},grimacing:{keywords:["face","grimace","teeth"],char:"ð¬",fitzpatrick_scale:!1,category:"people"},grin:{keywords:["face","happy","smile","joy","kawaii"],char:"ð",fitzpatrick_scale:!1,category:"people"},joy:{keywords:["face","cry","tears","weep","happy","happytears","haha"],char:"ð",fitzpatrick_scale:!1,category:"people"},rofl:{keywords:["face","rolling","floor","laughing","lol","haha"],char:"ð¤£",fitzpatrick_scale:!1,category:"people"},partying:{keywords:["face","celebration","woohoo"],char:"ð¥³",fitzpatrick_scale:!1,category:"people"},smiley:{keywords:["face","happy","joy","haha",":D",":)","smile","funny"],char:"ð",fitzpatrick_scale:!1,category:"people"},smile:{keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],char:"ð",fitzpatrick_scale:!1,category:"people"},sweat_smile:{keywords:["face","hot","happy","laugh","sweat","smile","relief"],char:"ð
",fitzpatrick_scale:!1,category:"people"},laughing:{keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],char:"ð",fitzpatrick_scale:!1,category:"people"},innocent:{keywords:["face","angel","heaven","halo"],char:"ð",fitzpatrick_scale:!1,category:"people"},wink:{keywords:["face","happy","mischievous","secret",";)","smile","eye"],char:"ð",fitzpatrick_scale:!1,category:"people"},blush:{keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],char:"ð",fitzpatrick_scale:!1,category:"people"},slightly_smiling_face:{keywords:["face","smile"],char:"ð",fitzpatrick_scale:!1,category:"people"},upside_down_face:{keywords:["face","flipped","silly","smile"],char:"ð",fitzpatrick_scale:!1,category:"people"},relaxed:{keywords:["face","blush","massage","happiness"],char:"âºï¸",fitzpatrick_scale:!1,category:"people"},yum:{keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],char:"ð",fitzpatrick_scale:!1,category:"people"},relieved:{keywords:["face","relaxed","phew","massage","happiness"],char:"ð",fitzpatrick_scale:!1,category:"people"},heart_eyes:{keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],char:"ð",fitzpatrick_scale:!1,category:"people"},smiling_face_with_three_hearts:{keywords:["face","love","like","affection","valentines","infatuation","crush","hearts","adore"],char:"ð¥°",fitzpatrick_scale:!1,category:"people"},kissing_heart:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"ð",fitzpatrick_scale:!1,category:"people"},kissing:{keywords:["love","like","face","3","valentines","infatuation","kiss"],char:"ð",fitzpatrick_scale:!1,category:"people"},kissing_smiling_eyes:{keywords:["face","affection","valentines","infatuation","kiss"],char:"ð",fitzpatrick_scale:!1,category:"people"},kissing_closed_eyes:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"ð",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_winking_eye:{keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],char:"ð",fitzpatrick_scale:!1,category:"people"},zany:{keywords:["face","goofy","crazy"],char:"ð¤ª",fitzpatrick_scale:!1,category:"people"},raised_eyebrow:{keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],char:"ð¤¨",fitzpatrick_scale:!1,category:"people"},monocle:{keywords:["face","stuffy","wealthy"],char:"ð§",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_closed_eyes:{keywords:["face","prank","playful","mischievous","smile","tongue"],char:"ð",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue:{keywords:["face","prank","childish","playful","mischievous","smile","tongue"],char:"ð",fitzpatrick_scale:!1,category:"people"}
2,money_mouth_face:{keywords:["face","rich","dollar","money"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},nerd_face:{keywords:["face","nerdy","geek","dork"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},sunglasses:{keywords:["face","cool","smile","summer","beach","sunglass"],char:"ð",fitzpatrick_scale:!1,category:"people"},star_struck:{keywords:["face","smile","starry","eyes","grinning"],char:"ð¤©",fitzpatrick_scale:!1,category:"people"},clown_face:{keywords:["face"],char:"ð¤¡",fitzpatrick_scale:!1,category:"people"},cowboy_hat_face:{keywords:["face","cowgirl","hat"],char:"ð¤ ",fitzpatrick_scale:!1,category:"people"},hugs:{keywords:["face","smile","hug"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},smirk:{keywords:["face","smile","mean","prank","smug","sarcasm"],char:"ð",fitzpatrick_scale:!1,category:"people"},no_mouth:{keywords:["face","hellokitty"],char:"ð¶",fitzpatrick_scale:!1,category:"people"},neutral_face:{keywords:["indifference","meh",":|","neutral"],char:"ð",fitzpatrick_scale:!1,category:"people"},expressionless:{keywords:["face","indifferent","-_-","meh","deadpan"],char:"ð",fitzpatrick_scale:!1,category:"people"},unamused:{keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],char:"ð",fitzpatrick_scale:!1,category:"people"},roll_eyes:{keywords:["face","eyeroll","frustrated"],char:"ð",fitzpatrick_scale:!1,category:"people"},thinking:{keywords:["face","hmmm","think","consider"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},lying_face:{keywords:["face","lie","pinocchio"],char:"ð¤¥",fitzpatrick_scale:!1,category:"people"},hand_over_mouth:{keywords:["face","whoops","shock","surprise"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},shushing:{keywords:["face","quiet","shhh"],char:"ð¤«",fitzpatrick_scale:!1,category:"people"},symbols_over_mouth:{keywords:["face","swearing","cursing","cussing","profanity","expletive"],char:"ð¤¬",fitzpatrick_scale:!1,category:"people"},exploding_head:{keywords:["face","shocked","mind","blown"],char:"ð¤¯",fitzpatrick_scale:!1,category:"people"},flushed:{keywords:["face","blush","shy","flattered"],char:"ð³",fitzpatrick_scale:!1,category:"people"},disappointed:{keywords:["face","sad","upset","depressed",":("],char:"ð",fitzpatrick_scale:!1,category:"people"},worried:{keywords:["face","concern","nervous",":("],char:"ð",fitzpatrick_scale:!1,category:"people"},angry:{keywords:["mad","face","annoyed","frustrated"],char:"ð ",fitzpatrick_scale:!1,category:"people"},rage:{keywords:["angry","mad","hate","despise"],char:"ð¡",fitzpatrick_scale:!1,category:"people"},pensive:{keywords:["face","sad","depressed","upset"],char:"ð",fitzpatrick_scale:!1,category:"people"},confused:{keywords:["face","indifference","huh","weird","hmmm",":/"],char:"ð",fitzpatrick_scale:!1,category:"people"},slightly_frowning_face:{keywords:["face","frowning","disappointed","sad","upset"],char:"ð",fitzpatrick_scale:!1,category:"people"},frowning_face:{keywords:["face","sad","upset","frown"],char:"â¹",fitzpatrick_scale:!1,category:"people"},persevere:{keywords:["face","sick","no","upset","oops"],char:"ð£",fitzpatrick_scale:!1,category:"people"},confounded:{keywords:["face","confused","sick","unwell","oops",":S"],char:"ð",fitzpatrick_scale:!1,category:"people"},tired_face:{keywords:["sick","whine","upset","frustrated"],char:"ð«",fitzpatrick_scale:!1,category:"people"},weary:{keywords:["face","tired","sleepy","sad","frustrated","upset"],char:"ð©",fitzpatrick_scale:!1,category:"people"},pleading:{keywords:["face","begging","mercy"],char:"ð¥º",fitzpatrick_scale:!1,category:"people"},triumph:{keywords:["face","gas","phew","proud","pride"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},open_mouth:{keywords:["face","surprise","impressed","wow","whoa",":O"],char:"ð®",fitzpatrick_scale:!1,category:"people"},scream:{keywords:["face","munch","scared","omg"],char:"ð±",fitzpatrick_scale:!1,category:"people"},fearful:{keywords:["face","scared","terrified","nervous","oops","huh"],char:"ð¨",fitzpatrick_scale:!1,category:"people"},cold_sweat:{keywords:["face","nervous","sweat"],char:"ð°",fitzpatrick_scale:!1,category:"people"},hushed:{keywords:["face","woo","shh"],char:"ð¯",fitzpatrick_scale:!1,category:"people"},frowning:{keywords:["face","aw","what"],char:"ð¦",fitzpatrick_scale:!1,category:"people"},anguished:{keywords:["face","stunned","nervous"],char:"ð§",fitzpatrick_scale:!1,category:"people"},cry:{keywords:["face","tears","sad","depressed","upset",":'("],char:"ð¢",fitzpatrick_scale:!1,category:"people"},disappointed_relieved:{keywords:["face","phew","sweat","nervous"],char:"ð¥",fitzpatrick_scale:!1,category:"people"},drooling_face:{keywords:["face"],char:"ð¤¤",fitzpatrick_scale:!1,category:"people"},sleepy:{keywords:["face","tired","rest","nap"],char:"ðª",fitzpatrick_scale:!1,category:"people"},sweat:{keywords:["face","hot","sad","tired","exercise"],char:"ð",fitzpatrick_scale:!1,category:"people"},hot:{keywords:["face","feverish","heat","red","sweating"],char:"ð¥µ",fitzpatrick_scale:!1,category:"people"},cold:{keywords:["face","blue","freezing","frozen","frostbite","icicles"],char:"ð¥¶",fitzpatrick_scale:!1,category:"people"},sob:{keywords:["face","cry","tears","sad","upset","depressed"],char:"ð",fitzpatrick_scale:!1,category:"people"},dizzy_face:{keywords:["spent","unconscious","xox","dizzy"],char:"ðµ",fitzpatrick_scale:!1,category:"people"},astonished:{keywords:["face","xox","surprised","poisoned"],char:"ð²",fitzpatrick_scale:!1,category:"people"},zipper_mouth_face:{keywords:["face","sealed","zipper","secret"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},nauseated_face:{keywords:["face","vomit","gross","green","sick","throw up","ill"],char:"ð¤¢",fitzpatrick_scale:!1,category:"people"},sneezing_face:{keywords:["face","gesundheit","sneeze","sick","allergy"],char:"ð¤§",fitzpatrick_scale:!1,category:"people"}
2,vomiting:{keywords:["face","sick"],char:"ð¤®",fitzpatrick_scale:!1,category:"people"},mask:{keywords:["face","sick","ill","disease"],char:"ð·",fitzpatrick_scale:!1,category:"people"},face_with_thermometer:{keywords:["sick","temperature","thermometer","cold","fever"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},face_with_head_bandage:{keywords:["injured","clumsy","bandage","hurt"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},woozy:{keywords:["face","dizzy","intoxicated","tipsy","wavy"],char:"ð¥´",fitzpatrick_scale:!1,category:"people"},sleeping:{keywords:["face","tired","sleepy","night","zzz"],char:"ð´",fitzpatrick_scale:!1,category:"people"},zzz:{keywords:["sleepy","tired","dream"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},poop:{keywords:["hankey","shitface","fail","turd","shit"],char:"ð©",fitzpatrick_scale:!1,category:"people"},smiling_imp:{keywords:["devil","horns"],char:"ð",fitzpatrick_scale:!1,category:"people"},imp:{keywords:["devil","angry","horns"],char:"ð¿",fitzpatrick_scale:!1,category:"people"},japanese_ogre:{keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],char:"ð¹",fitzpatrick_scale:!1,category:"people"},japanese_goblin:{keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],char:"ðº",fitzpatrick_scale:!1,category:"people"},skull:{keywords:["dead","skeleton","creepy","death"],char:"ð",fitzpatrick_scale:!1,category:"people"},ghost:{keywords:["halloween","spooky","scary"],char:"ð»",fitzpatrick_scale:!1,category:"people"},alien:{keywords:["UFO","paul","weird","outer_space"],char:"ð½",fitzpatrick_scale:!1,category:"people"},robot:{keywords:["computer","machine","bot"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},smiley_cat:{keywords:["animal","cats","happy","smile"],char:"ðº",fitzpatrick_scale:!1,category:"people"},smile_cat:{keywords:["animal","cats","smile"],char:"ð¸",fitzpatrick_scale:!1,category:"people"},joy_cat:{keywords:["animal","cats","haha","happy","tears"],char:"ð¹",fitzpatrick_scale:!1,category:"people"},heart_eyes_cat:{keywords:["animal","love","like","affection","cats","valentines","heart"],char:"ð»",fitzpatrick_scale:!1,category:"people"},smirk_cat:{keywords:["animal","cats","smirk"],char:"ð¼",fitzpatrick_scale:!1,category:"people"},kissing_cat:{keywords:["animal","cats","kiss"],char:"ð½",fitzpatrick_scale:!1,category:"people"},scream_cat:{keywords:["animal","cats","munch","scared","scream"],char:"ð",fitzpatrick_scale:!1,category:"people"},crying_cat_face:{keywords:["animal","tears","weep","sad","cats","upset","cry"],char:"ð¿",fitzpatrick_scale:!1,category:"people"},pouting_cat:{keywords:["animal","cats"],char:"ð¾",fitzpatrick_scale:!1,category:"people"},palms_up:{keywords:["hands","gesture","cupped","prayer"],char:"ð¤²",fitzpatrick_scale:!0,category:"people"},raised_hands:{keywords:["gesture","hooray","yea","celebration","hands"],char:"ð",fitzpatrick_scale:!0,category:"people"},clap:{keywords:["hands","praise","applause","congrats","yay"],char:"ð",fitzpatrick_scale:!0,category:"people"},wave:{keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],char:"ð",fitzpatrick_scale:!0,category:"people"},call_me_hand:{keywords:["hands","gesture"],char:"ð¤",fitzpatrick_scale:!0,category:"people"},"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],char:"ð",fitzpatrick_scale:!0,category:"people"},"-1":{keywords:["thumbsdown","no","dislike","hand"],char:"ð",fitzpatrick_scale:!0,category:"people"},facepunch:{keywords:["angry","violence","fist","hit","attack","hand"],char:"ð",fitzpatrick_scale:!0,category:"people"},fist:{keywords:["fingers","hand","grasp"],char:"â",fitzpatrick_scale:!0,category:"people"},fist_left:{keywords:["hand","fistbump"],char:"ð¤",fitzpatrick_scale:!0,category:"people"},fist_right:{keywords:["hand","fistbump"],char:"ð¤",fitzpatrick_scale:!0,category:"people"},v:{keywords:["fingers","ohyeah","hand","peace","victory","two"],char:"â",fitzpatrick_scale:!0,category:"people"},ok_hand:{keywords:["fingers","limbs","perfect","ok","okay"],char:"ð",fitzpatrick_scale:!0,category:"people"},raised_hand:{keywords:["fingers","stop","highfive","palm","ban"],char:"â",fitzpatrick_scale:!0,category:"people"},raised_back_of_hand:{keywords:["fingers","raised","backhand"],char:"ð¤",fitzpatrick_scale:!0,category:"people"},open_hands:{keywords:["fingers","butterfly","hands","open"],char:"ð",fitzpatrick_scale:!0,category:"people"},muscle:{keywords:["arm","flex","hand","summer","strong","biceps"],char:"ðª",fitzpatrick_scale:!0,category:"people"}
2,pray:{keywords:["please","hope","wish","namaste","highfive"],char:"ð",fitzpatrick_scale:!0,category:"people"},foot:{keywords:["kick","stomp"],char:"ð¦¶",fitzpatrick_scale:!0,category:"people"},leg:{keywords:["kick","limb"],char:"ð¦µ",fitzpatrick_scale:!0,category:"people"},handshake:{keywords:["agreement","shake"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},point_up:{keywords:["hand","fingers","direction","up"],char:"â",fitzpatrick_scale:!0,category:"people"},point_up_2:{keywords:["fingers","hand","direction","up"],char:"ð",fitzpatrick_scale:!0,category:"people"},point_down:{keywords:["fingers","hand","direction","down"],char:"ð",fitzpatrick_scale:!0,category:"people"},point_left:{keywords:["direction","fingers","hand","left"],char:"ð",fitzpatrick_scale:!0,category:"people"},point_right:{keywords:["fingers","hand","direction","right"],char:"ð",fitzpatrick_scale:!0,category:"people"},fu:{keywords:["hand","fingers","rude","middle","flipping"],char:"ð",fitzpatrick_scale:!0,category:"people"},raised_hand_with_fingers_splayed:{keywords:["hand","fingers","palm"],char:"ð",fitzpatrick_scale:!0,category:"people"},love_you:{keywords:["hand","fingers","gesture"],char:"ð¤",fitzpatrick_scale:!0,category:"people"},metal:{keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],char:"ð¤",fitzpatrick_scale:!0,category:"people"},crossed_fingers:{keywords:["good","lucky"],char:"ð¤",fitzpatrick_scale:!0,category:"people"},vulcan_salute:{keywords:["hand","fingers","spock","star trek"],char:"ð",fitzpatrick_scale:!0,category:"people"},writing_hand:{keywords:["lower_left_ballpoint_pen","stationery","write","compose"],char:"â",fitzpatrick_scale:!0,category:"people"},selfie:{keywords:["camera","phone"],char:"ð¤³",fitzpatrick_scale:!0,category:"people"},nail_care:{keywords:["beauty","manicure","finger","fashion","nail"],char:"ð
",fitzpatrick_scale:!0,category:"people"},lips:{keywords:["mouth","kiss"],char:"ð",fitzpatrick_scale:!1,category:"people"},tooth:{keywords:["teeth","dentist"],char:"ð¦·",fitzpatrick_scale:!1,category:"people"},tongue:{keywords:["mouth","playful"],char:"ð
",fitzpatrick_scale:!1,category:"people"},ear:{keywords:["face","hear","sound","listen"],char:"ð",fitzpatrick_scale:!0,category:"people"},nose:{keywords:["smell","sniff"],char:"ð",fitzpatrick_scale:!0,category:"people"},eye:{keywords:["face","look","see","watch","stare"],char:"ð",fitzpatrick_scale:!1,category:"people"},eyes:{keywords:["look","watch","stalk","peek","see"],char:"ð",fitzpatrick_scale:!1,category:"people"},brain:{keywords:["smart","intelligent"],char:"ð§ ",fitzpatrick_scale:!1,category:"people"},bust_in_silhouette:{keywords:["user","person","human"],char:"ð¤",fitzpatrick_scale:!1,category:"people"},busts_in_silhouette:{keywords:["user","person","human","group","team"],char:"ð¥",fitzpatrick_scale:!1,category:"people"},speaking_head:{keywords:["user","person","human","sing","say","talk"],char:"ð£",fitzpatrick_scale:!1,category:"people"},baby:{keywords:["child","boy","girl","toddler"],char:"ð¶",fitzpatrick_scale:!0,category:"people"},child:{keywords:["gender-neutral","young"],char:"ð§",fitzpatrick_scale:!0,category:"people"},boy:{keywords:["man","male","guy","teenager"],char:"ð¦",fitzpatrick_scale:!0,category:"people"},girl:{keywords:["female","woman","teenager"],char:"ð§",fitzpatrick_scale:!0,category:"people"},adult:{keywords:["gender-neutral","person"],char:"ð§",fitzpatrick_scale:!0,category:"people"},man:{keywords:["mustache","father","dad","guy","classy","sir","moustache"],char:"ð¨",fitzpatrick_scale:!0,category:"people"},woman:{keywords:["female","girls","lady"],char:"ð©",fitzpatrick_scale:!0,category:"people"},blonde_woman:{keywords:["woman","female","girl","blonde","person"],char:"ð±ââï¸",fitzpatrick_scale:!0,category:"people"},blonde_man:{keywords:["man","male","boy","blonde","guy","person"],char:"ð±",fitzpatrick_scale:!0,category:"people"},bearded_person:{keywords:["person","bewhiskered"],char:"ð§",fitzpatrick_scale:!0,category:"people"},older_adult:{keywords:["human","elder","senior","gender-neutral"],char:"ð§",fitzpatrick_scale:!0,category:"people"},older_man:{keywords:["human","male","men","old","elder","senior"],char:"ð´",fitzpatrick_scale:!0,category:"people"}
2,older_woman:{keywords:["human","female","women","lady","old","elder","senior"],char:"ðµ",fitzpatrick_scale:!0,category:"people"},man_with_gua_pi_mao:{keywords:["male","boy","chinese"],char:"ð²",fitzpatrick_scale:!0,category:"people"},woman_with_headscarf:{keywords:["female","hijab","mantilla","tichel"],char:"ð§",fitzpatrick_scale:!0,category:"people"},woman_with_turban:{keywords:["female","indian","hinduism","arabs","woman"],char:"ð³ââï¸",fitzpatrick_scale:!0,category:"people"},man_with_turban:{keywords:["male","indian","hinduism","arabs"],char:"ð³",fitzpatrick_scale:!0,category:"people"},policewoman:{keywords:["woman","police","law","legal","enforcement","arrest","911","female"],char:"ð®ââï¸",fitzpatrick_scale:!0,category:"people"},policeman:{keywords:["man","police","law","legal","enforcement","arrest","911"],char:"ð®",fitzpatrick_scale:!0,category:"people"},construction_worker_woman:{keywords:["female","human","wip","build","construction","worker","labor","woman"],char:"ð·ââï¸",fitzpatrick_scale:!0,category:"people"},construction_worker_man:{keywords:["male","human","wip","guy","build","construction","worker","labor"],char:"ð·",fitzpatrick_scale:!0,category:"people"},guardswoman:{keywords:["uk","gb","british","female","royal","woman"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},guardsman:{keywords:["uk","gb","british","male","guy","royal"],char:"ð",fitzpatrick_scale:!0,category:"people"},female_detective:{keywords:["human","spy","detective","female","woman"],char:"ðµï¸ââï¸",fitzpatrick_scale:!0,category:"people"},male_detective:{keywords:["human","spy","detective"],char:"ðµ",fitzpatrick_scale:!0,category:"people"},woman_health_worker:{keywords:["doctor","nurse","therapist","healthcare","woman","human"],char:"ð©ââï¸",fitzpatrick_scale:!0,category:"people"},man_health_worker:{keywords:["doctor","nurse","therapist","healthcare","man","human"],char:"ð¨ââï¸",fitzpatrick_scale:!0,category:"people"},woman_farmer:{keywords:["rancher","gardener","woman","human"],char:"ð©âð¾",fitzpatrick_scale:!0,category:"people"},man_farmer:{keywords:["rancher","gardener","man","human"],char:"ð¨âð¾",fitzpatrick_scale:!0,category:"people"},woman_cook:{keywords:["chef","woman","human"],char:"ð©âð³",fitzpatrick_scale:!0,category:"people"},man_cook:{keywords:["chef","man","human"],char:"ð¨âð³",fitzpatrick_scale:!0,category:"people"},woman_student:{keywords:["graduate","woman","human"],char:"ð©âð",fitzpatrick_scale:!0,category:"people"},man_student:{keywords:["graduate","man","human"],char:"ð¨âð",fitzpatrick_scale:!0,category:"people"},woman_singer:{keywords:["rockstar","entertainer","woman","human"],char:"ð©âð¤",fitzpatrick_scale:!0,category:"people"},man_singer:{keywords:["rockstar","entertainer","man","human"],char:"ð¨âð¤",fitzpatrick_scale:!0,category:"people"},woman_teacher:{keywords:["instructor","professor","woman","human"],char:"ð©âð«",fitzpatrick_scale:!0,category:"people"},man_teacher:{keywords:["instructor","professor","man","human"],char:"ð¨âð«",fitzpatrick_scale:!0,category:"people"},woman_factory_worker:{keywords:["assembly","industrial","woman","human"],char:"ð©âð",fitzpatrick_scale:!0,category:"people"},man_factory_worker:{keywords:["assembly","industrial","man","human"],char:"ð¨âð",fitzpatrick_scale:!0,category:"people"},woman_technologist:{keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],char:"ð©âð»",fitzpatrick_scale:!0,category:"people"},man_technologist:{keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],char:"ð¨âð»",fitzpatrick_scale:!0,category:"people"},woman_office_worker:{keywords:["business","manager","woman","human"],char:"ð©âð¼",fitzpatrick_scale:!0,category:"people"},man_office_worker:{keywords:["business","manager","man","human"],char:"ð¨âð¼",fitzpatrick_scale:!0,category:"people"},woman_mechanic:{keywords:["plumber","woman","human","wrench"],char:"ð©âð§",fitzpatrick_scale:!0,category:"people"},man_mechanic:{keywords:["plumber","man","human","wrench"],char:"ð¨âð§",fitzpatrick_scale:!0,category:"people"},woman_scientist:{keywords:["biologist","chemist","engineer","physicist","
2woman","human"],char:"ð©âð¬",fitzpatrick_scale:!0,category:"people"},man_scientist:{keywords:["biologist","chemist","engineer","physicist","man","human"],char:"ð¨âð¬",fitzpatrick_scale:!0,category:"people"},woman_artist:{keywords:["painter","woman","human"],char:"ð©âð¨",fitzpatrick_scale:!0,category:"people"},man_artist:{keywords:["painter","man","human"],char:"ð¨âð¨",fitzpatrick_scale:!0,category:"people"},woman_firefighter:{keywords:["fireman","woman","human"],char:"ð©âð",fitzpatrick_scale:!0,category:"people"},man_firefighter:{keywords:["fireman","man","human"],char:"ð¨âð",fitzpatrick_scale:!0,category:"people"},woman_pilot:{keywords:["aviator","plane","woman","human"],char:"ð©ââï¸",fitzpatrick_scale:!0,category:"people"},man_pilot:{keywords:["aviator","plane","man","human"],char:"ð¨ââï¸",fitzpatrick_scale:!0,category:"people"},woman_astronaut:{keywords:["space","rocket","woman","human"],char:"ð©âð",fitzpatrick_scale:!0,category:"people"},man_astronaut:{keywords:["space","rocket","man","human"],char:"ð¨âð",fitzpatrick_scale:!0,category:"people"},woman_judge:{keywords:["justice","court","woman","human"],char:"ð©ââï¸",fitzpatrick_scale:!0,category:"people"},man_judge:{keywords:["justice","court","man","human"],char:"ð¨ââï¸",fitzpatrick_scale:!0,category:"people"},woman_superhero:{keywords:["woman","female","good","heroine","superpowers"],char:"ð¦¸ââï¸",fitzpatrick_scale:!0,category:"people"},man_superhero:{keywords:["man","male","good","hero","superpowers"],char:"ð¦¸ââï¸",fitzpatrick_scale:!0,category:"people"},woman_supervillain:{keywords:["woman","female","evil","bad","criminal","heroine","superpowers"],char:"ð¦¹ââï¸",fitzpatrick_scale:!0,category:"people"},man_supervillain:{keywords:["man","male","evil","bad","criminal","hero","superpowers"],char:"ð¦¹ââï¸",fitzpatrick_scale:!0,category:"people"},mrs_claus:{keywords:["woman","female","xmas","mother christmas"],char:"ð¤¶",fitzpatrick_scale:!0,category:"people"},santa:{keywords:["festival","man","male","xmas","father christmas"],char:"ð
",fitzpatrick_scale:!0,category:"people"},sorceress:{keywords:["woman","female","mage","witch"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},wizard:{keywords:["man","male","mage","sorcerer"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},woman_elf:{keywords:["woman","female"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},man_elf:{keywords:["man","male"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},woman_vampire:{keywords:["woman","female"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},man_vampire:{keywords:["man","male","dracula"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},woman_zombie:{keywords:["woman","female","undead","walking dead"],char:"ð§ââï¸",fitzpatrick_scale:!1,category:"people"},man_zombie:{keywords:["man","male","dracula","undead","walking dead"],char:"ð§ââï¸",fitzpatrick_scale:!1,category:"people"},woman_genie:{keywords:["woman","female"],char:"ð§ââï¸",fitzpatrick_scale:!1,category:"people"},man_genie:{keywords:["man","male"],char:"ð§ââï¸",fitzpatrick_scale:!1,category:"people"},mermaid:{keywords:["woman","female","merwoman","ariel"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},merman:{keywords:["man","male","triton"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},woman_fairy:{keywords:["woman","female"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},man_fairy:{keywords:["man","male"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},angel:{keywords:["heaven","wings","halo"],char:"ð¼",fitzpatrick_scale:!0,category:"people"},pregnant_woman:{keywords:["baby"],char:"ð¤°",fitzpatrick_scale:!0,category:"people"},breastfeeding:{keywords:["nursing","baby"],char:"ð¤±",fitzpatrick_scale:!0,category:"people"},princess:{keywords:["girl","woman","female","blond","crown","royal","queen"],char:"ð¸",fitzpatrick_scale:!0,category:"people"},prince:{keywords:["boy","man","male","crown","royal","king"],char:"ð¤´",fitzpatrick_scale:!0,category:"people"},bride_with_veil:{keywords:["couple","marriage","wedding","woman","bride"],char:"ð°",fitzpatrick_scale:!0,category:"people"},man_in_tuxedo:{keywords:["couple","marriage","wedding","groom"],char:"ð¤µ",fitzpatrick_scale:!0,category:"people"}
2,running_woman:{keywords:["woman","walking","exercise","race","running","female"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},running_man:{keywords:["man","walking","exercise","race","running"],char:"ð",fitzpatrick_scale:!0,category:"people"},walking_woman:{keywords:["human","feet","steps","woman","female"],char:"ð¶ââï¸",fitzpatrick_scale:!0,category:"people"},walking_man:{keywords:["human","feet","steps"],char:"ð¶",fitzpatrick_scale:!0,category:"people"},dancer:{keywords:["female","girl","woman","fun"],char:"ð",fitzpatrick_scale:!0,category:"people"},man_dancing:{keywords:["male","boy","fun","dancer"],char:"ðº",fitzpatrick_scale:!0,category:"people"},dancing_women:{keywords:["female","bunny","women","girls"],char:"ð¯",fitzpatrick_scale:!1,category:"people"},dancing_men:{keywords:["male","bunny","men","boys"],char:"ð¯ââï¸",fitzpatrick_scale:!1,category:"people"},couple:{keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],char:"ð«",fitzpatrick_scale:!1,category:"people"},two_men_holding_hands:{keywords:["pair","couple","love","like","bromance","friendship","people","human"],char:"ð¬",fitzpatrick_scale:!1,category:"people"},two_women_holding_hands:{keywords:["pair","friendship","couple","love","like","female","people","human"],char:"ð",fitzpatrick_scale:!1,category:"people"},bowing_woman:{keywords:["woman","female","girl"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},bowing_man:{keywords:["man","male","boy"],char:"ð",fitzpatrick_scale:!0,category:"people"},man_facepalming:{keywords:["man","male","boy","disbelief"],char:"ð¤¦ââï¸",fitzpatrick_scale:!0,category:"people"},woman_facepalming:{keywords:["woman","female","girl","disbelief"],char:"ð¤¦ââï¸",fitzpatrick_scale:!0,category:"people"},woman_shrugging:{keywords:["woman","female","girl","confused","indifferent","doubt"],char:"ð¤·",fitzpatrick_scale:!0,category:"people"},man_shrugging:{keywords:["man","male","boy","confused","indifferent","doubt"],char:"ð¤·ââï¸",fitzpatrick_scale:!0,category:"people"},tipping_hand_woman:{keywords:["female","girl","woman","human","information"],char:"ð",fitzpatrick_scale:!0,category:"people"},tipping_hand_man:{keywords:["male","boy","man","human","information"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},no_good_woman:{keywords:["female","girl","woman","nope"],char:"ð
",fitzpatrick_scale:!0,category:"people"},no_good_man:{keywords:["male","boy","man","nope"],char:"ð
ââï¸",fitzpatrick_scale:!0,category:"people"},ok_woman:{keywords:["women","girl","female","pink","human","woman"],char:"ð",fitzpatrick_scale:!0,category:"people"},ok_man:{keywords:["men","boy","male","blue","human","man"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},raising_hand_woman:{keywords:["female","girl","woman"],char:"ð",fitzpatrick_scale:!0,category:"people"},raising_hand_man:{keywords:["male","boy","man"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},pouting_woman:{keywords:["female","girl","woman"],char:"ð",fitzpatrick_scale:!0,category:"people"},pouting_man:{keywords:["male","boy","man"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},frowning_woman:{keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],char:"ð",fitzpatrick_scale:!0,category:"people"},frowning_man:{keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},haircut_woman:{keywords:["female","girl","woman"],char:"ð",fitzpatrick_scale:!0,category:"people"},haircut_man:{keywords:["male","boy","man"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},massage_woman:{keywords:["female","girl","woman","head"],char:"ð",fitzpatrick_scale:!0,category:"people"},massage_man:{keywords:["male","boy","man","head"],char:"ðââï¸",fitzpatrick_scale:!0,category:"people"},woman_in_steamy_room:{keywords:["female","woman","spa","steamroom","sauna"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},man_in_steamy_room:{keywords:["male","man","spa","steamroom","sauna"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"people"},couple_with_heart_woman_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"ð",fitzpatrick_scale:!1,category:"people"}
2,couple_with_heart_woman_woman:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"ð©ââ¤ï¸âð©",fitzpatrick_scale:!1,category:"people"},couple_with_heart_man_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"ð¨ââ¤ï¸âð¨",fitzpatrick_scale:!1,category:"people"},couplekiss_man_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"ð",fitzpatrick_scale:!1,category:"people"},couplekiss_woman_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"ð©ââ¤ï¸âðâð©",fitzpatrick_scale:!1,category:"people"},couplekiss_man_man:{keywords:["pair","valentines","love","like","dating","marriage"],char:"ð¨ââ¤ï¸âðâð¨",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy:{keywords:["home","parents","child","mom","dad","father","mother","people","human"],char:"ðª",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl:{keywords:["home","parents","people","human","child"],char:"ð¨âð©âð§",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"ð¨âð©âð§âð¦",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"ð¨âð©âð¦âð¦",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"ð¨âð©âð§âð§",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy:{keywords:["home","parents","people","human","children"],char:"ð©âð©âð¦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl:{keywords:["home","parents","people","human","children"],char:"ð©âð©âð§",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"ð©âð©âð§âð¦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"ð©âð©âð¦âð¦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"ð©âð©âð§âð§",fitzpatrick_scale:!1,category:"people"},family_man_man_boy:{keywords:["home","parents","people","human","children"],char:"ð¨âð¨âð¦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl:{keywords:["home","parents","people","human","children"],char:"ð¨âð¨âð§",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_boy:{keywords:["home","parents","people","human","children"],char:"ð¨âð¨âð§âð¦",fitzpatrick_scale:!1,category:"people"},family_man_man_boy_boy:{keywords:["home","parents","people","human","children"],char:"ð¨âð¨âð¦âð¦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_girl:{keywords:["home","parents","people","human","children"],char:"ð¨âð¨âð§âð§",fitzpatrick_scale:!1,category:"people"},family_woman_boy:{keywords:["home","parent","people","human","child"],char:"ð©âð¦",fitzpatrick_scale:!1,category:"people"},family_woman_girl:{keywords:["home","parent","people","human","child"],char:"ð©âð§",fitzpatrick_scale:!1,category:"people"},family_woman_girl_boy:{keywords:["home","parent","people","human","children"],char:"ð©âð§âð¦",fitzpatrick_scale:!1,category:"people"},family_woman_boy_boy:{keywords:["home","parent","people","human","children"],char:"ð©âð¦âð¦",fitzpatrick_scale:!1,category:"people"},family_woman_girl_girl:{keywords:["home","parent","people","human","children"],char:"ð©âð§âð§",fitzpatrick_scale:!1,category:"people"},family_man_boy:{keywords:["home","parent","people","human","child"],char:"ð¨âð¦",fitzpatrick_scale:!1,category:"people"},family_man_girl:{keywords:["home","parent","people","human","child"],char:"ð¨âð§",fitzpatrick_scale:!1,category:"people"},family_man_girl_boy:{keywords:["home","parent","people","human","children"],char:"ð¨âð§âð¦",fitzpatrick_scale:!1,category:"people"},family_man_boy_boy:{keywords:["home","parent","people","human","children"],char:"ð¨âð¦âð¦",fitzpatrick_scale:!1,category:"people"},family_man_girl_girl:{keywords:["home","parent","people","human","children"],char:"ð¨âð§âð§",fitzpatrick_scale:!1,category:"people"},yarn:{keywords:["ball","crochet","knit"],char:"ð§¶",fitzpatrick_scale:!1,category:"people"},thread:{keywords:["needle","sewing","spool","string"],char:"ð§µ",fitzpatrick_scale:!1,category:"people"},coat:{keywords:["jacket"],char:"ð§¥",fitzpatrick_scale:!1,category:"people"},labcoat:{keywords:["doctor","experiment","scientist","chemist"],char:"ð¥¼",fitzpatrick_scale:!1,category:"people"},womans_clothes:{keywords:["fashion","shopping_bags","female"],char:"ð",fitzpatrick_scale:!1,category:"people"},tshirt:{keywords:["fashion","cloth","casual","shirt","tee"],char:"ð",f
2itzpatrick_scale:!1,category:"people"},jeans:{keywords:["fashion","shopping"],char:"ð",fitzpatrick_scale:!1,category:"people"},necktie:{keywords:["shirt","suitup","formal","fashion","cloth","business"],char:"ð",fitzpatrick_scale:!1,category:"people"},dress:{keywords:["clothes","fashion","shopping"],char:"ð",fitzpatrick_scale:!1,category:"people"},bikini:{keywords:["swimming","female","woman","girl","fashion","beach","summer"],char:"ð",fitzpatrick_scale:!1,category:"people"},kimono:{keywords:["dress","fashion","women","female","japanese"],char:"ð",fitzpatrick_scale:!1,category:"people"},lipstick:{keywords:["female","girl","fashion","woman"],char:"ð",fitzpatrick_scale:!1,category:"people"},kiss:{keywords:["face","lips","love","like","affection","valentines"],char:"ð",fitzpatrick_scale:!1,category:"people"},footprints:{keywords:["feet","tracking","walking","beach"],char:"ð£",fitzpatrick_scale:!1,category:"people"},flat_shoe:{keywords:["ballet","slip-on","slipper"],char:"ð¥¿",fitzpatrick_scale:!1,category:"people"},high_heel:{keywords:["fashion","shoes","female","pumps","stiletto"],char:"ð ",fitzpatrick_scale:!1,category:"people"},sandal:{keywords:["shoes","fashion","flip flops"],char:"ð¡",fitzpatrick_scale:!1,category:"people"},boot:{keywords:["shoes","fashion"],char:"ð¢",fitzpatrick_scale:!1,category:"people"},mans_shoe:{keywords:["fashion","male"],char:"ð",fitzpatrick_scale:!1,category:"people"},athletic_shoe:{keywords:["shoes","sports","sneakers"],char:"ð",fitzpatrick_scale:!1,category:"people"},hiking_boot:{keywords:["backpacking","camping","hiking"],char:"ð¥¾",fitzpatrick_scale:!1,category:"people"},socks:{keywords:["stockings","clothes"],char:"ð§¦",fitzpatrick_scale:!1,category:"people"},gloves:{keywords:["hands","winter","clothes"],char:"ð§¤",fitzpatrick_scale:!1,category:"people"},scarf:{keywords:["neck","winter","clothes"],char:"ð§£",fitzpatrick_scale:!1,category:"people"},womans_hat:{keywords:["fashion","accessories","female","lady","spring"],char:"ð",fitzpatrick_scale:!1,category:"people"},tophat:{keywords:["magic","gentleman","classy","circus"],char:"ð©",fitzpatrick_scale:!1,category:"people"},billed_hat:{keywords:["cap","baseball"],char:"ð§¢",fitzpatrick_scale:!1,category:"people"},rescue_worker_helmet:{keywords:["construction","build"],char:"â",fitzpatrick_scale:!1,category:"people"},mortar_board:{keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],char:"ð",fitzpatrick_scale:!1,category:"people"},crown:{keywords:["king","kod","leader","royalty","lord"],char:"ð",fitzpatrick_scale:!1,category:"people"},school_satchel:{keywords:["student","education","bag","backpack"],char:"ð",fitzpatrick_scale:!1,category:"people"},luggage:{keywords:["packing","travel"],char:"ð§³",fitzpatrick_scale:!1,category:"people"},pouch:{keywords:["bag","accessories","shopping"],char:"ð",fitzpatrick_scale:!1,category:"people"},purse:{keywords:["fashion","accessories","money","sales","shopping"],char:"ð",fitzpatrick_scale:!1,category:"people"},handbag:{keywords:["fashion","accessory","accessories","shopping"],char:"ð",fitzpatrick_scale:!1,category:"people"},briefcase:{keywords:["business","documents","work","law","legal","job","career"],char:"ð¼",fitzpatrick_scale:!1,category:"people"},eyeglasses:{keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],char:"ð",fitzpatrick_scale:!1,category:"people"},dark_sunglasses:{keywords:["face","cool","accessories"],char:"ð¶",fitzpatrick_scale:!1,category:"people"},goggles:{keywords:["eyes","protection","safety"],char:"ð¥½",fitzpatrick_scale:!1,category:"people"},ring:{keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],char:"ð",fitzpatrick_scale:!1,category:"people"},closed_umbrella:{keywords:["weather","rain","drizzle"],char:"ð",fitzpatrick_scale:!1,category:"people"},dog:{keywords:["animal","friend","nature","woof","puppy","pet","faithful"],char:"ð¶",fitzpatrick_scale:!1,category:"animals_and_nature"},cat:{keywords:["animal","meow","nature","pet","kitten"],char:"ð±",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse:{keywords:["animal","nature","cheese_wedge","rodent"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},hamster:{keywords:["animal","nature"],char:"ð¹",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit:{keywords:["animal","nature","pet","spring","magic","bunny"],char:"ð°",fitzpatrick_scale:!1,category:"animals_and_nature"},fox_face:{keywords:["animal","nature","face"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},bear:{keywords:["animal","nature","wild"],char:"ð»",fitzpatrick_scale:!1,category:"animals_and_nature"},panda_face:{keywords:["animal","nature","panda"],char:"ð¼",fitzpatrick_scale:!1,category:"animals_and_nature"},koala:{keywords:["animal","nature"],char:"ð¨",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger:{keywords:["animal","cat","danger","wild","nature","roar"],char:"ð¯",fitzpatrick_scale:!1,category:"animals_and_nature"},lion:{keywords:["animal","nature"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},cow:{keywords:["beef","ox","animal","nature","moo","milk"],char:"ð®",fitzpatrick_scale:!1,category:"animals_and_nature"},pig:{keywords:["animal","oink","nature"],char:"ð·",fitzpatrick_scale:!1,category:"animals_and_nature"},pig_nose:{keywords:["animal","oink"],char:"ð½",fitzpatrick_scale:!1,category:"animals_and_nature"},frog:{keywords:["animal","nature","croak","toad"],char:"ð¸",fitzpatrick_scale:!1,category:"animals_and_nature"},squid:{keywords:["animal","nature","ocean","sea"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},octopus:{keywords:["animal","creature","ocean","sea","nature","beach"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"}
2,shrimp:{keywords:["animal","ocean","nature","seafood"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey_face:{keywords:["animal","nature","circus"],char:"ðµ",fitzpatrick_scale:!1,category:"animals_and_nature"},gorilla:{keywords:["animal","nature","circus"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},see_no_evil:{keywords:["monkey","animal","nature","haha"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},hear_no_evil:{keywords:["animal","monkey","nature"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},speak_no_evil:{keywords:["monkey","animal","nature","omg"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey:{keywords:["animal","nature","banana","circus"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},chicken:{keywords:["animal","cluck","nature","bird"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},penguin:{keywords:["animal","nature"],char:"ð§",fitzpatrick_scale:!1,category:"animals_and_nature"},bird:{keywords:["animal","nature","fly","tweet","spring"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},baby_chick:{keywords:["animal","chicken","bird"],char:"ð¤",fitzpatrick_scale:!1,category:"animals_and_nature"},hatching_chick:{keywords:["animal","chicken","egg","born","baby","bird"],char:"ð£",fitzpatrick_scale:!1,category:"animals_and_nature"},hatched_chick:{keywords:["animal","chicken","baby","bird"],char:"ð¥",fitzpatrick_scale:!1,category:"animals_and_nature"},duck:{keywords:["animal","nature","bird","mallard"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},eagle:{keywords:["animal","nature","bird"],char:"ð¦
",fitzpatrick_scale:!1,category:"animals_and_nature"},owl:{keywords:["animal","nature","bird","hoot"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},bat:{keywords:["animal","nature","blind","vampire"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},wolf:{keywords:["animal","nature","wild"],char:"ðº",fitzpatrick_scale:!1,category:"animals_and_nature"},boar:{keywords:["animal","nature"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},horse:{keywords:["animal","brown","nature"],char:"ð´",fitzpatrick_scale:!1,category:"animals_and_nature"},unicorn:{keywords:["animal","nature","mystical"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},honeybee:{keywords:["animal","insect","nature","bug","spring","honey"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},bug:{keywords:["animal","insect","nature","worm"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},butterfly:{keywords:["animal","insect","nature","caterpillar"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},snail:{keywords:["slow","animal","shell"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},beetle:{keywords:["animal","insect","nature","ladybug"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},ant:{keywords:["animal","insect","nature","bug"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},grasshopper:{keywords:["animal","cricket","chirp"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},spider:{keywords:["animal","arachnid"],char:"ð·",fitzpatrick_scale:!1,category:"animals_and_nature"},scorpion:{keywords:["animal","arachnid"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},crab:{keywords:["animal","crustacean"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},snake:{keywords:["animal","evil","nature","hiss","python"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},lizard:{keywords:["animal","nature","reptile"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},sauropod:{keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"}
2,turtle:{keywords:["animal","slow","nature","tortoise"],char:"ð¢",fitzpatrick_scale:!1,category:"animals_and_nature"},tropical_fish:{keywords:["animal","swim","ocean","beach","nemo"],char:"ð ",fitzpatrick_scale:!1,category:"animals_and_nature"},fish:{keywords:["animal","food","nature"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},blowfish:{keywords:["animal","nature","food","sea","ocean"],char:"ð¡",fitzpatrick_scale:!1,category:"animals_and_nature"},dolphin:{keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],char:"ð¬",fitzpatrick_scale:!1,category:"animals_and_nature"},shark:{keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},whale:{keywords:["animal","nature","sea","ocean"],char:"ð³",fitzpatrick_scale:!1,category:"animals_and_nature"},whale2:{keywords:["animal","nature","sea","ocean"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},crocodile:{keywords:["animal","nature","reptile","lizard","alligator"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},leopard:{keywords:["animal","nature"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},zebra:{keywords:["animal","nature","stripes","safari"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger2:{keywords:["animal","nature","roar"],char:"ð
",fitzpatrick_scale:!1,category:"animals_and_nature"},water_buffalo:{keywords:["animal","nature","ox","cow"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},ox:{keywords:["animal","cow","beef"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},cow2:{keywords:["beef","ox","animal","nature","moo","milk"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},deer:{keywords:["animal","nature","horns","venison"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},dromedary_camel:{keywords:["animal","hot","desert","hump"],char:"ðª",fitzpatrick_scale:!1,category:"animals_and_nature"},camel:{keywords:["animal","nature","hot","desert","hump"],char:"ð«",fitzpatrick_scale:!1,category:"animals_and_nature"},giraffe:{keywords:["animal","nature","spots","safari"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},elephant:{keywords:["animal","nature","nose","th","circus"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},rhinoceros:{keywords:["animal","nature","horn"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},goat:{keywords:["animal","nature"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},ram:{keywords:["animal","sheep","nature"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},sheep:{keywords:["animal","nature","wool","shipit"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},racehorse:{keywords:["animal","gamble","luck"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},pig2:{keywords:["animal","nature"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},rat:{keywords:["animal","mouse","rodent"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse2:{keywords:["animal","nature","rodent"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},rooster:{keywords:["animal","nature","chicken"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},turkey:{keywords:["animal","bird"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},dove:{keywords:["animal","bird"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},dog2:{keywords:["animal","nature","friend","doge","pet","faithful"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},poodle:{keywords:["dog","animal","101","nature","pet"],char:"ð©",fitzpatrick_scale:!1,category:"animals_and_nature"},cat2:{keywords:["animal","meow","pet","cats"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit2:{keywords:["animal","nature","pet","magic","spring"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},chipmunk:{keywords:["animal","nature","rodent","squirrel"],char:"ð¿",fitzpatrick_scale:!1,category:"animals_and_nature"},hedgehog:{keywords:["animal","nature","spiny"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},raccoon:{keywords:["animal","nature"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"}
2,llama:{keywords:["animal","nature","alpaca"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},hippopotamus:{keywords:["animal","nature"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},kangaroo:{keywords:["animal","nature","australia","joey","hop","marsupial"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},badger:{keywords:["animal","nature","honey"],char:"ð¦¡",fitzpatrick_scale:!1,category:"animals_and_nature"},swan:{keywords:["animal","nature","bird"],char:"ð¦¢",fitzpatrick_scale:!1,category:"animals_and_nature"},peacock:{keywords:["animal","nature","peahen","bird"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},parrot:{keywords:["animal","nature","bird","pirate","talk"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},lobster:{keywords:["animal","nature","bisque","claws","seafood"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},mosquito:{keywords:["animal","nature","insect","malaria"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},paw_prints:{keywords:["animal","tracking","footprints","dog","cat","pet","feet"],char:"ð¾",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon:{keywords:["animal","myth","nature","chinese","green"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon_face:{keywords:["animal","myth","nature","chinese","green"],char:"ð²",fitzpatrick_scale:!1,category:"animals_and_nature"},cactus:{keywords:["vegetable","plant","nature"],char:"ðµ",fitzpatrick_scale:!1,category:"animals_and_nature"},christmas_tree:{keywords:["festival","vacation","december","xmas","celebration"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},evergreen_tree:{keywords:["plant","nature"],char:"ð²",fitzpatrick_scale:!1,category:"animals_and_nature"},deciduous_tree:{keywords:["plant","nature"],char:"ð³",fitzpatrick_scale:!1,category:"animals_and_nature"},palm_tree:{keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],char:"ð´",fitzpatrick_scale:!1,category:"animals_and_nature"},seedling:{keywords:["plant","nature","grass","lawn","spring"],char:"ð±",fitzpatrick_scale:!1,category:"animals_and_nature"},herb:{keywords:["vegetable","plant","medicine","weed","grass","lawn"],char:"ð¿",fitzpatrick_scale:!1,category:"animals_and_nature"},shamrock:{keywords:["vegetable","plant","nature","irish","clover"],char:"â",fitzpatrick_scale:!1,category:"animals_and_nature"},four_leaf_clover:{keywords:["vegetable","plant","nature","lucky","irish"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},bamboo:{keywords:["plant","nature","vegetable","panda","pine_decoration"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},tanabata_tree:{keywords:["plant","nature","branch","summer"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},leaves:{keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},fallen_leaf:{keywords:["nature","plant","vegetable","leaves"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},maple_leaf:{keywords:["nature","plant","vegetable","ca","fall"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},ear_of_rice:{keywords:["nature","plant"],char:"ð¾",fitzpatrick_scale:!1,category:"animals_and_nature"},hibiscus:{keywords:["plant","vegetable","flowers","beach"],char:"ðº",fitzpatrick_scale:!1,category:"animals_and_nature"},sunflower:{keywords:["nature","plant","fall"],char:"ð»",fitzpatrick_scale:!1,category:"animals_and_nature"},rose:{keywords:["flowers","valentines","love","spring"],char:"ð¹",fitzpatrick_scale:!1,category:"animals_and_nature"},wilted_flower:{keywords:["plant","nature","flower"],char:"ð¥",fitzpatrick_scale:!1,category:"animals_and_nature"},tulip:{keywords:["flowers","plant","nature","summer","spring"],char:"ð·",fitzpatrick_scale:!1,category:"animals_and_nature"},blossom:{keywords:["nature","flowers","yellow"],char:"ð¼",fitzpatrick_scale:!1,category:"animals_and_nature"},cherry_blossom:{keywords:["nature","plant","spring","flower"],char:"ð¸",fitzpatrick_scale:!1,category:"animals_and_nature"},bouquet:{keywords:["flowers","nature","spring"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},mushroom:{keywords:["plant","vegetable"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},chestnut:{keywords:["food","squirrel"],char:"ð°",fitzpatrick_scale:!1,category:"animals_and_nature"},jack_o_lantern:{keywords:["halloween","light","pumpkin","creepy","fall"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},shell:{keywords:["nature","sea","beach"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},spider_web:{keywords:["animal","insect","arachnid","silk"],char:"ð¸",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_americas:{keywords:["globe","world","USA","international"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_africa:{keywords:["globe","world","international"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_asia:{keywords:["globe","world","east","international"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon:{keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_gibbous_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_gibbous_moon:{keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"}
2,new_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_with_face:{keywords:["nature","morning","sky"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},crescent_moon:{keywords:["night","sleep","sky","evening","magic"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},star:{keywords:["night","yellow"],char:"â",fitzpatrick_scale:!1,category:"animals_and_nature"},star2:{keywords:["night","sparkle","awesome","good","magic"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},dizzy:{keywords:["star","sparkle","shoot","magic"],char:"ð«",fitzpatrick_scale:!1,category:"animals_and_nature"},sparkles:{keywords:["stars","shine","shiny","cool","awesome","good","magic"],char:"â¨",fitzpatrick_scale:!1,category:"animals_and_nature"},comet:{keywords:["space"],char:"â",fitzpatrick_scale:!1,category:"animals_and_nature"}
2,sunny:{keywords:["weather","nature","brightness","summer","beach","spring"],char:"âï¸",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_small_cloud:{keywords:["weather"],char:"ð¤",fitzpatrick_scale:!1,category:"animals_and_nature"},partly_sunny:{keywords:["weather","nature","cloudy","morning","fall","spring"],char:"â
",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_large_cloud:{keywords:["weather"],char:"ð¥",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_rain_cloud:{keywords:["weather"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud:{keywords:["weather","sky"],char:"âï¸",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_rain:{keywords:["weather"],char:"ð§",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning_and_rain:{keywords:["weather","lightning"],char:"â",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning:{keywords:["weather","thunder"],char:"ð©",fitzpatrick_scale:!1,category:"animals_and_nature"},zap:{keywords:["thunder","weather","lightning bolt","fast"],char:"â¡",fitzpatrick_scale:!1,category:"animals_and_nature"},fire:{keywords:["hot","cook","flame"],char:"ð¥",fitzpatrick_scale:!1,category:"animals_and_nature"},boom:{keywords:["bomb","explode","explosion","collision","blown"],char:"ð¥",fitzpatrick_scale:!1,category:"animals_and_nature"},snowflake:{keywords:["winter","season","cold","weather","christmas","xmas"],char:"âï¸",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_snow:{keywords:["weather"],char:"ð¨",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman:{keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],char:"â",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman_with_snow:{keywords:["winter","season","cold","weather","christmas","xmas","frozen"],char:"â",fitzpatrick_scale:!1,category:"animals_and_nature"},wind_face:{keywords:["gust","air"],char:"ð¬",fitzpatrick_scale:!1,category:"animals_and_nature"},dash:{keywords:["wind","air","fast","shoo","fart","smoke","puff"],char:"ð¨",fitzpatrick_scale:!1,category:"animals_and_nature"},tornado:{keywords:["weather","cyclone","twister"],char:"ðª",fitzpatrick_scale:!1,category:"animals_and_nature"},fog:{keywords:["weather"],char:"ð«",fitzpatrick_scale:!1,category:"animals_and_nature"},open_umbrella:{keywords:["weather","spring"],char:"â",fitzpatrick_scale:!1,category:"animals_and_nature"},umbrella:{keywords:["rainy","weather","spring"],char:"â",fitzpatrick_scale:!1,category:"animals_and_nature"},droplet:{keywords:["water","drip","faucet","spring"],char:"ð§",fitzpatrick_scale:!1,category:"animals_and_nature"},sweat_drops:{keywords:["water","drip","oops"],char:"ð¦",fitzpatrick_scale:!1,category:"animals_and_nature"},ocean:{keywords:["sea","water","wave","nature","tsunami","disaster"],char:"ð",fitzpatrick_scale:!1,category:"animals_and_nature"},green_apple:{keywords:["fruit","nature"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},apple:{keywords:["fruit","mac","school"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},pear:{keywords:["fruit","nature","food"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},tangerine:{keywords:["food","fruit","nature","orange"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},lemon:{keywords:["fruit","nature"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},banana:{keywords:["fruit","food","monkey"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},watermelon:{keywords:["fruit","food","picnic","summer"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},grapes:{keywords:["fruit","food","wine"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},strawberry:{keywords:["fruit","food","nature"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},melon:{keywords:["fruit","nature","food"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},cherries:{keywords:["food","fruit"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},peach:{keywords:["fruit","nature","food"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},pineapple:{keywords:["fruit","nature","food"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},coconut:{keywords:["fruit","nature","food","palm"],char:"ð¥¥",fitzpatrick_scale:!1,category:"food_and_drink"},kiwi_fruit:{keywords:["fruit","food"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},mango:{keywords:["fruit","food","tropical"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},avocado:{keywords:["fruit","food"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},broccoli:{keywords:["fruit","food","vegetable"],char:"ð¥¦",fitzpatrick_scale:!1,category:"food_and_drink"},tomato:{keywords:["fruit","vegetable","nature","food"],char:"ð
",fitzpatrick_scale:!1,category:"food_and_drink"},eggplant:{keywords:["vegetable","nature","food","aubergine"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},cucumber:{keywords:["fruit","food","pickle"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},carrot:{keywords:["vegetable","food","orange"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},hot_pepper:{keywords:["food","spicy","chilli","chili"],char:"ð¶",fitzpatrick_scale:!1,category:"food_and_drink"},potato:{keywords:["food","tuber","vegatable","starch"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},corn:{keywords:["food","vegetable","plant"],char:"ð½",fitzpatrick_scale:!1,category:"food_and_drink"},leafy_greens:{keywords:["food","vegetable","plant","bok choy","cabbage","kale","lettuce"],char:"ð¥¬",fitzpatrick_scale:!1,category:"food_and_drink"},sweet_potato:{keywords:["food","nature"],char:"ð ",fitzpatrick_scale:!1,category:"food_and_drink"},peanuts:{keywords:["food","nut"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},honey_pot:{keywords:["bees","sweet","kitchen"],char:"ð¯",fitzpatrick_scale:!1,category:"food_and_drink"},croissant:{keywords:["food","bread","french"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},bread:{keywords:["food","wheat","breakfast","toast"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},baguette_bread:{keywords:["food","bread","french"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},bagel:{keywords:["food","bread","bakery","schmear"],char:"ð¥¯",fitzpatrick_scale:!1,category:"food_and_drink"},pretzel:{keywords:["food","bread","twisted"],char:"ð¥¨",fitzpatrick_scale:!1,category:"food_and_drink"},cheese:{keywords:["food","chadder"],char:"ð§",fitzpatrick_scale:!1,category:"food_and_drink"},egg:{keywords:["food","chicken","breakfast"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},bacon:{keywords:["food","breakfast","pork","pig","meat"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},steak:{keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],char:"ð¥©",fitzpatrick_scale:!1,category:"food_and_drink"},pancakes:{keywords:["food","breakfast","flapjacks","hotcakes"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},poultry_leg:{keywords:["food","meat","drumstick","bird","chicken","turkey"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},meat_on_bone:{keywords:["good","food","drumstick"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},bone:{keywords:["skeleton"],char:"ð¦´",fitzpatrick_scale:!1,category:"food_and_drink"},fried_shrimp:{keywords:["food","animal","appetizer","summer"],char:"ð¤",fitzpatrick_scale:!1,category:"food_and_drink"},fried_egg:{keywords:["food","breakfast","kitchen","egg"],char:"ð³",fitzpatrick_scale:!1,category:"food_and_drink"},hamburger:{keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},fries:{keywords:["chips","snack","fast food"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},stuffed_flatbread:{keywords:["food","flatbread","stuffed","gyro"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},hotdog:{keywords:["food","frankfurter"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},pizza:{keywords:["food","party"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},sandwich:{keywords:["food","lunch","bread"],char:"ð¥ª",fitzpatrick_scale:!1,category:"food_and_drink"},canned_food:{keywords:["food","soup"],char:"ð¥«",fitzpatrick_scale:!1,category:"food_and_drink"},spaghetti:{keywords:["food","italian","noodle"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},taco:{keywords:["food","mexican"],char:"ð®",fitzpatrick_scale:!1,category:"food_and_drink"},burrito:{keywords:["food","mexican"],char:"ð¯",fitzpatrick_scale:!1,category:"food_and_drink"},green_salad:{keywords:["food","healthy","lettuce"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},shallow_pan_of_food:{keywords:["food","cooking","casserole","paella"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},ramen:{keywords:["food","japanese","noodle","chopsticks"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},stew:{keywords:["food","meat","soup"],char:"ð²",fitzpatrick_scale:!1,category:"food_and_drink"},fish_cake:{keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"}
2,fortune_cookie:{keywords:["food","prophecy"],char:"ð¥ ",fitzpatrick_scale:!1,category:"food_and_drink"},sushi:{keywords:["food","fish","japanese","rice"],char:"ð£",fitzpatrick_scale:!1,category:"food_and_drink"},bento:{keywords:["food","japanese","box"],char:"ð±",fitzpatrick_scale:!1,category:"food_and_drink"},curry:{keywords:["food","spicy","hot","indian"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},rice_ball:{keywords:["food","japanese"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},rice:{keywords:["food","china","asian"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},rice_cracker:{keywords:["food","japanese"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},oden:{keywords:["food","japanese"],char:"ð¢",fitzpatrick_scale:!1,category:"food_and_drink"},dango:{keywords:["food","dessert","sweet","japanese","barbecue","meat"],char:"ð¡",fitzpatrick_scale:!1,category:"food_and_drink"},shaved_ice:{keywords:["hot","dessert","summer"],char:"ð§",fitzpatrick_scale:!1,category:"food_and_drink"},ice_cream:{keywords:["food","hot","dessert"],char:"ð¨",fitzpatrick_scale:!1,category:"food_and_drink"},icecream:{keywords:["food","hot","dessert","summer"],char:"ð¦",fitzpatrick_scale:!1,category:"food_and_drink"},pie:{keywords:["food","dessert","pastry"],char:"ð¥§",fitzpatrick_scale:!1,category:"food_and_drink"},cake:{keywords:["food","dessert"],char:"ð°",fitzpatrick_scale:!1,category:"food_and_drink"},cupcake:{keywords:["food","dessert","bakery","sweet"],char:"ð§",fitzpatrick_scale:!1,category:"food_and_drink"},moon_cake:{keywords:["food","autumn"],char:"ð¥®",fitzpatrick_scale:!1,category:"food_and_drink"},birthday:{keywords:["food","dessert","cake"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},custard:{keywords:["dessert","food"],char:"ð®",fitzpatrick_scale:!1,category:"food_and_drink"},candy:{keywords:["snack","dessert","sweet","lolly"],char:"ð¬",fitzpatrick_scale:!1,category:"food_and_drink"},lollipop:{keywords:["food","snack","candy","sweet"],char:"ð",fitzpatrick_scale:!1,category:"food_and_drink"},chocolate_bar:{keywords:["food","snack","dessert","sweet"],char:"ð«",fitzpatrick_scale:!1,category:"food_and_drink"},popcorn:{keywords:["food","movie theater","films","snack"],char:"ð¿",fitzpatrick_scale:!1,category:"food_and_drink"},dumpling:{keywords:["food","empanada","pierogi","potsticker"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},doughnut:{keywords:["food","dessert","snack","sweet","donut"],char:"ð©",fitzpatrick_scale:!1,category:"food_and_drink"},cookie:{keywords:["food","snack","oreo","chocolate","sweet","dessert"],char:"ðª",fitzpatrick_scale:!1,category:"food_and_drink"},milk_glass:{keywords:["beverage","drink","cow"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},beer:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"ðº",fitzpatrick_scale:!1,category:"food_and_drink"},beers:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"ð»",fitzpatrick_scale:!1,category:"food_and_drink"},clinking_glasses:{keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},wine_glass:{keywords:["drink","beverage","drunk","alcohol","booze"],char:"ð·",fitzpatrick_scale:!1,category:"food_and_drink"},tumbler_glass:{keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},cocktail:{keywords:["drink","drunk","alcohol","beverage","booze","mojito"],char:"ð¸",fitzpatrick_scale:!1,category:"food_and_drink"},tropical_drink:{keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],char:"ð¹",fitzpatrick_scale:!1,category:"food_and_drink"},champagne:{keywords:["drink","wine","bottle","celebration"],char:"ð¾",fitzpatrick_scale:!1,category:"food_and_drink"},sake:{keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],char:"ð¶",fitzpatrick_scale:!1,category:"food_and_drink"},tea:{keywords:["drink","bowl","breakfast","green","british"],char:"ðµ",fitzpatrick_scale:!1,category:"food_and_drink"}
2,cup_with_straw:{keywords:["drink","soda"],char:"ð¥¤",fitzpatrick_scale:!1,category:"food_and_drink"},coffee:{keywords:["beverage","caffeine","latte","espresso"],char:"â",fitzpatrick_scale:!1,category:"food_and_drink"},baby_bottle:{keywords:["food","container","milk"],char:"ð¼",fitzpatrick_scale:!1,category:"food_and_drink"},salt:{keywords:["condiment","shaker"],char:"ð§",fitzpatrick_scale:!1,category:"food_and_drink"},spoon:{keywords:["cutlery","kitchen","tableware"],char:"ð¥",fitzpatrick_scale:!1,category:"food_and_drink"},fork_and_knife:{keywords:["cutlery","kitchen"],char:"ð´",fitzpatrick_scale:!1,category:"food_and_drink"},plate_with_cutlery:{keywords:["food","eat","meal","lunch","dinner","restaurant"],char:"ð½",fitzpatrick_scale:!1,category:"food_and_drink"},bowl_with_spoon:{keywords:["food","breakfast","cereal","oatmeal","porridge"],char:"ð¥£",fitzpatrick_scale:!1,category:"food_and_drink"},takeout_box:{keywords:["food","leftovers"],char:"ð¥¡",fitzpatrick_scale:!1,category:"food_and_drink"},chopsticks:{keywords:["food"],char:"ð¥¢",fitzpatrick_scale:!1,category:"food_and_drink"},soccer:{keywords:["sports","football"],char:"â½",fitzpatrick_scale:!1,category:"activity"},basketball:{keywords:["sports","balls","NBA"],char:"ð",fitzpatrick_scale:!1,category:"activity"},football:{keywords:["sports","balls","NFL"],char:"ð",fitzpatrick_scale:!1,category:"activity"},baseball:{keywords:["sports","balls"],char:"â¾",fitzpatrick_scale:!1,category:"activity"},softball:{keywords:["sports","balls"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},tennis:{keywords:["sports","balls","green"],char:"ð¾",fitzpatrick_scale:!1,category:"activity"},volleyball:{keywords:["sports","balls"],char:"ð",fitzpatrick_scale:!1,category:"activity"},rugby_football:{keywords:["sports","team"],char:"ð",fitzpatrick_scale:!1,category:"activity"},flying_disc:{keywords:["sports","frisbee","ultimate"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},"8ball":{keywords:["pool","hobby","game","luck","magic"],char:"ð±",fitzpatrick_scale:!1,category:"activity"},golf:{keywords:["sports","business","flag","hole","summer"],char:"â³",fitzpatrick_scale:!1,category:"activity"},golfing_woman:{keywords:["sports","business","woman","female"],char:"ðï¸ââï¸",fitzpatrick_scale:!1,category:"activity"},golfing_man:{keywords:["sports","business"],char:"ð",fitzpatrick_scale:!0,category:"activity"},ping_pong:{keywords:["sports","pingpong"],char:"ð",fitzpatrick_scale:!1,category:"activity"},badminton:{keywords:["sports"],char:"ð¸",fitzpatrick_scale:!1,category:"activity"},goal_net:{keywords:["sports"],char:"ð¥
",fitzpatrick_scale:!1,category:"activity"},ice_hockey:{keywords:["sports"],char:"ð",fitzpatrick_scale:!1,category:"activity"},field_hockey:{keywords:["sports"],char:"ð",fitzpatrick_scale:!1,category:"activity"},lacrosse:{keywords:["sports","ball","stick"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},cricket:{keywords:["sports"],char:"ð",fitzpatrick_scale:!1,category:"activity"},ski:{keywords:["sports","winter","cold","snow"],char:"ð¿",fitzpatrick_scale:!1,category:"activity"},skier:{keywords:["sports","winter","snow"],char:"â·",fitzpatrick_scale:!1,category:"activity"},snowboarder:{keywords:["sports","winter"],char:"ð",fitzpatrick_scale:!0,category:"activity"},person_fencing:{keywords:["sports","fencing","sword"],char:"ð¤º",fitzpatrick_scale:!1,category:"activity"},women_wrestling:{keywords:["sports","wrestlers"],char:"ð¤¼ââï¸",fitzpatrick_scale:!1,category:"activity"},men_wrestling:{keywords:["sports","wrestlers"],char:"ð¤¼ââï¸",fitzpatrick_scale:!1,category:"activity"},woman_cartwheeling:{keywords:["gymnastics"],char:"ð¤¸ââï¸",fitzpatrick_scale:!0,category:"activity"},man_cartwheeling:{keywords:["gymnastics"],char:"ð¤¸ââï¸",fitzpatrick_scale:!0,category:"activity"},woman_playing_handball:{keywords:["sports"],char:"ð¤¾ââï¸",fitzpatrick_scale:!0,category:"activity"},man_playing_handball:{keywords:["sports"],char:"ð¤¾ââï¸",fitzpatrick_scale:!0,category:"activity"},ice_skate:{keywords:["sports"],char:"â¸",fitzpatrick_scale:!1,category:"activity"},curling_stone:{keywords:["sports"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},skateboard:{keywords:["board"],char:"ð¹",fitzpatrick_scale:!1,category:"activity"},sled:{keywords:["sleigh","luge","toboggan"],char:"ð·",fitzpatrick_scale:!1,category:"activity"}
2,bow_and_arrow:{keywords:["sports"],char:"ð¹",fitzpatrick_scale:!1,category:"activity"},fishing_pole_and_fish:{keywords:["food","hobby","summer"],char:"ð£",fitzpatrick_scale:!1,category:"activity"},boxing_glove:{keywords:["sports","fighting"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},martial_arts_uniform:{keywords:["judo","karate","taekwondo"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},rowing_woman:{keywords:["sports","hobby","water","ship","woman","female"],char:"ð£ââï¸",fitzpatrick_scale:!0,category:"activity"},rowing_man:{keywords:["sports","hobby","water","ship"],char:"ð£",fitzpatrick_scale:!0,category:"activity"},climbing_woman:{keywords:["sports","hobby","woman","female","rock"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"activity"},climbing_man:{keywords:["sports","hobby","man","male","rock"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"activity"},swimming_woman:{keywords:["sports","exercise","human","athlete","water","summer","woman","female"],char:"ðââï¸",fitzpatrick_scale:!0,category:"activity"},swimming_man:{keywords:["sports","exercise","human","athlete","water","summer"],char:"ð",fitzpatrick_scale:!0,category:"activity"},woman_playing_water_polo:{keywords:["sports","pool"],char:"ð¤½ââï¸",fitzpatrick_scale:!0,category:"activity"},man_playing_water_polo:{keywords:["sports","pool"],char:"ð¤½ââï¸",fitzpatrick_scale:!0,category:"activity"},woman_in_lotus_position:{keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"activity"},man_in_lotus_position:{keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],char:"ð§ââï¸",fitzpatrick_scale:!0,category:"activity"},surfing_woman:{keywords:["sports","ocean","sea","summer","beach","woman","female"],char:"ðââï¸",fitzpatrick_scale:!0,category:"activity"},surfing_man:{keywords:["sports","ocean","sea","summer","beach"],char:"ð",fitzpatrick_scale:!0,category:"activity"},bath:{keywords:["clean","shower","bathroom"],char:"ð",fitzpatrick_scale:!0,category:"activity"},basketball_woman:{keywords:["sports","human","woman","female"],char:"â¹ï¸ââï¸",fitzpatrick_scale:!0,category:"activity"},basketball_man:{keywords:["sports","human"],char:"â¹",fitzpatrick_scale:!0,category:"activity"},weight_lifting_woman:{keywords:["sports","training","exercise","woman","female"],char:"ðï¸ââï¸",fitzpatrick_scale:!0,category:"activity"},weight_lifting_man:{keywords:["sports","training","exercise"],char:"ð",fitzpatrick_scale:!0,category:"activity"},biking_woman:{keywords:["sports","bike","exercise","hipster","woman","female"],char:"ð´ââï¸",fitzpatrick_scale:!0,category:"activity"},biking_man:{keywords:["sports","bike","exercise","hipster"],char:"ð´",fitzpatrick_scale:!0,category:"activity"},mountain_biking_woman:{keywords:["transportation","sports","human","race","bike","woman","female"],char:"ðµââï¸",fitzpatrick_scale:!0,category:"activity"},mountain_biking_man:{keywords:["transportation","sports","human","race","bike"],char:"ðµ",fitzpatrick_scale:!0,category:"activity"},horse_racing:{keywords:["animal","betting","competition","gambling","luck"],char:"ð",fitzpatrick_scale:!0,category:"activity"},business_suit_levitating:{keywords:["suit","business","levitate","hover","jump"],char:"ð´",fitzpatrick_scale:!0,category:"activity"},trophy:{keywords:["win","award","contest","place","ftw","ceremony"],char:"ð",fitzpatrick_scale:!1,category:"activity"},running_shirt_with_sash:{keywords:["play","pageant"],char:"ð½",fitzpatrick_scale:!1,category:"activity"},medal_sports:{keywords:["award","winning"],char:"ð
",fitzpatrick_scale:!1,category:"activity"},medal_military:{keywords:["award","winning","army"],char:"ð",fitzpatrick_scale:!1,category:"activity"},"1st_place_medal":{keywords:["award","winning","first"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},"2nd_place_medal":{keywords:["award","second"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},"3rd_place_medal":{keywords:["award","third"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"}
2,reminder_ribbon:{keywords:["sports","cause","support","awareness"],char:"ð",fitzpatrick_scale:!1,category:"activity"},rosette:{keywords:["flower","decoration","military"],char:"ðµ",fitzpatrick_scale:!1,category:"activity"},ticket:{keywords:["event","concert","pass"],char:"ð«",fitzpatrick_scale:!1,category:"activity"},tickets:{keywords:["sports","concert","entrance"],char:"ð",fitzpatrick_scale:!1,category:"activity"},performing_arts:{keywords:["acting","theater","drama"],char:"ð",fitzpatrick_scale:!1,category:"activity"},art:{keywords:["design","paint","draw","colors"],char:"ð¨",fitzpatrick_scale:!1,category:"activity"},circus_tent:{keywords:["festival","carnival","party"],char:"ðª",fitzpatrick_scale:!1,category:"activity"},woman_juggling:{keywords:["juggle","balance","skill","multitask"],char:"ð¤¹ââï¸",fitzpatrick_scale:!0,category:"activity"},man_juggling:{keywords:["juggle","balance","skill","multitask"],char:"ð¤¹ââï¸",fitzpatrick_scale:!0,category:"activity"},microphone:{keywords:["sound","music","PA","sing","talkshow"],char:"ð¤",fitzpatrick_scale:!1,category:"activity"},headphones:{keywords:["music","score","gadgets"],char:"ð§",fitzpatrick_scale:!1,category:"activity"},musical_score:{keywords:["treble","clef","compose"],char:"ð¼",fitzpatrick_scale:!1,category:"activity"},musical_keyboard:{keywords:["piano","instrument","compose"],char:"ð¹",fitzpatrick_scale:!1,category:"activity"},drum:{keywords:["music","instrument","drumsticks","snare"],char:"ð¥",fitzpatrick_scale:!1,category:"activity"},saxophone:{keywords:["music","instrument","jazz","blues"],char:"ð·",fitzpatrick_scale:!1,category:"activity"},trumpet:{keywords:["music","brass"],char:"ðº",fitzpatrick_scale:!1,category:"activity"}
2,guitar:{keywords:["music","instrument"],char:"ð¸",fitzpatrick_scale:!1,category:"activity"},violin:{keywords:["music","instrument","orchestra","symphony"],char:"ð»",fitzpatrick_scale:!1,category:"activity"},clapper:{keywords:["movie","film","record"],char:"ð¬",fitzpatrick_scale:!1,category:"activity"},video_game:{keywords:["play","console","PS4","controller"],char:"ð®",fitzpatrick_scale:!1,category:"activity"},space_invader:{keywords:["game","arcade","play"],char:"ð¾",fitzpatrick_scale:!1,category:"activity"},dart:{keywords:["game","play","bar","target","bullseye"],char:"ð¯",fitzpatrick_scale:!1,category:"activity"},game_die:{keywords:["dice","random","tabletop","play","luck"],char:"ð²",fitzpatrick_scale:!1,category:"activity"},chess_pawn:{keywords:["expendable"],char:"â",fitzpatrick_scale:!1,category:"activity"},slot_machine:{keywords:["bet","gamble","vegas","fruit machine","luck","casino"],char:"ð°",fitzpatrick_scale:!1,category:"activity"},jigsaw:{keywords:["interlocking","puzzle","piece"],char:"ð§©",fitzpatrick_scale:!1,category:"activity"},bowling:{keywords:["sports","fun","play"],char:"ð³",fitzpatrick_scale:!1,category:"activity"},red_car:{keywords:["red","transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},taxi:{keywords:["uber","vehicle","cars","transportation"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},blue_car:{keywords:["transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},bus:{keywords:["car","vehicle","transportation"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},trolleybus:{keywords:["bart","transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},racing_car:{keywords:["sports","race","fast","formula","f1"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},police_car:{keywords:["vehicle","cars","transportation","law","legal","enforcement"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},ambulance:{keywords:["health","911","hospital"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},fire_engine:{keywords:["transportation","cars","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},minibus:{keywords:["vehicle","car","transportation"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},truck:{keywords:["cars","transportation"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},articulated_lorry:{keywords:["vehicle","cars","transportation","express"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},tractor:{keywords:["vehicle","car","farming","agriculture"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},kick_scooter:{keywords:["vehicle","kick","razor"],char:"ð´",fitzpatrick_scale:!1,category:"travel_and_places"},motorcycle:{keywords:["race","sports","fast"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},bike:{keywords:["sports","bicycle","exercise","hipster"],char:"ð²",fitzpatrick_scale:!1,category:"travel_and_places"},motor_scooter:{keywords:["vehicle","vespa","sasha"],char:"ðµ",fitzpatrick_scale:!1,category:"travel_and_places"},rotating_light:{keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],char:"ð¨",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_police_car:{keywords:["vehicle","law","legal","enforcement","911"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_bus:{keywords:["vehicle","transportation"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_automobile:{keywords:["car","vehicle","transportation"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_taxi:{keywords:["vehicle","cars","uber"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},aerial_tramway:{keywords:["transportation","vehicle","ski"],char:"ð¡",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_cableway:{keywords:["transportation","vehicle","ski"],char:"ð ",fitzpatrick_scale:!1,category:"travel_and_places"},suspension_railway:{keywords:["vehicle","transportation"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},railway_car:{keywords:["transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},train:{keywords:["transportation","vehicle","carriage","public","travel"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},monorail:{keywords:["transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_side:{keywords:["transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_front:{keywords:["transportation","vehicle","speed","fast","public","travel"],char:"ð
",fitzpatrick_scale:!1,category:"travel_and_places"},light_rail:{keywords:["transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_railway:{keywords:["transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},steam_locomotive:{keywords:["transportation","vehicle","train"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},train2:{keywords:["transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},metro:{keywords:["transportation","blue-square","mrt","underground","tube"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},tram:{keywords:["transportation","vehicle"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},station:{keywords:["transportation","vehicle","public"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},flying_saucer:{keywords:["transportation","vehicle","ufo"],char:"ð¸",fitzpatrick_scale:!1,category:"travel_and_places"},helicopter:{keywords:["transportation","vehicle","fly"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},small_airplane:{keywords:["flight","transportation","fly","vehicle"],char:"ð©",f
2itzpatrick_scale:!1,category:"travel_and_places"},airplane:{keywords:["vehicle","transportation","flight","fly"],char:"âï¸",fitzpatrick_scale:!1,category:"travel_and_places"},flight_departure:{keywords:["airport","flight","landing"],char:"ð«",fitzpatrick_scale:!1,category:"travel_and_places"},flight_arrival:{keywords:["airport","flight","boarding"],char:"ð¬",fitzpatrick_scale:!1,category:"travel_and_places"},sailboat:{keywords:["ship","summer","transportation","water","sailing"],char:"âµ",fitzpatrick_scale:!1,category:"travel_and_places"},motor_boat:{keywords:["ship"],char:"ð¥",fitzpatrick_scale:!1,category:"travel_and_places"},speedboat:{keywords:["ship","transportation","vehicle","summer"],char:"ð¤",fitzpatrick_scale:!1,category:"travel_and_places"},ferry:{keywords:["boat","ship","yacht"],char:"â´",fitzpatrick_scale:!1,category:"travel_and_places"},passenger_ship:{keywords:["yacht","cruise","ferry"],char:"ð³",fitzpatrick_scale:!1,category:"travel_and_places"},rocket:{keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},artificial_satellite:{keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],char:"ð°",fitzpatrick_scale:!1,category:"travel_and_places"},seat:{keywords:["sit","airplane","transport","bus","flight","fly"],char:"ðº",fitzpatrick_scale:!1,category:"travel_and_places"},canoe:{keywords:["boat","paddle","water","ship"],char:"ð¶",fitzpatrick_scale:!1,category:"travel_and_places"},anchor:{keywords:["ship","ferry","sea","boat"],char:"â",fitzpatrick_scale:!1,category:"travel_and_places"},construction:{keywords:["wip","progress","caution","warning"],char:"ð§",fitzpatrick_scale:!1,category:"travel_and_places"},fuelpump:{keywords:["gas station","petroleum"],char:"â½",fitzpatrick_scale:!1,category:"travel_and_places"},busstop:{keywords:["transportation","wait"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},vertical_traffic_light:{keywords:["transportation","driving"],char:"ð¦",fitzpatrick_scale:!1,category:"travel_and_places"},traffic_light:{keywords:["transportation","signal"],char:"ð¥",f
2itzpatrick_scale:!1,category:"travel_and_places"},checkered_flag:{keywords:["contest","finishline","race","gokart"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},ship:{keywords:["transportation","titanic","deploy"],char:"ð¢",fitzpatrick_scale:!1,category:"travel_and_places"},ferris_wheel:{keywords:["photo","carnival","londoneye"],char:"ð¡",fitzpatrick_scale:!1,category:"travel_and_places"},roller_coaster:{keywords:["carnival","playground","photo","fun"],char:"ð¢",fitzpatrick_scale:!1,category:"travel_and_places"},carousel_horse:{keywords:["photo","carnival"],char:"ð ",fitzpatrick_scale:!1,category:"travel_and_places"},building_construction:{keywords:["wip","working","progress"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},foggy:{keywords:["photo","mountain"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},tokyo_tower:{keywords:["photo","japanese"],char:"ð¼",fitzpatrick_scale:!1,category:"travel_and_places"},factory:{keywords:["building","industry","pollution","smoke"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},fountain:{keywords:["photo","summer","water","fresh"],char:"â²",fitzpatrick_scale:!1,category:"travel_and_places"},rice_scene:{keywords:["photo","japan","asia","tsukimi"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},mountain:{keywords:["photo","nature","environment"],char:"â°",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_snow:{keywords:["photo","nature","environment","winter","cold"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},mount_fuji:{keywords:["photo","mountain","nature","japanese"],char:"ð»",fitzpatrick_scale:!1,category:"travel_and_places"},volcano:{keywords:["photo","nature","disaster"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},japan:{keywords:["nation","country","japanese","asia"],char:"ð¾",fitzpatrick_scale:!1,category:"travel_and_places"},camping:{keywords:["photo","outdoors","tent"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},tent:{keywords:["photo","camping","outdoors"],char:"âº",fitzpatrick_scale:!1,category:"travel_and_places"},national_park:{keywords:["photo","environment","nature"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},motorway:{keywords:["road","cupertino","interstate","highway"],char:"ð£",fitzpatrick_scale:!1,category:"travel_and_places"},railway_track:{keywords:["train","transportation"],char:"ð¤",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise:{keywords:["morning","view","vacation","photo"],char:"ð
",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise_over_mountains:{keywords:["view","vacation","photo"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},desert:{keywords:["photo","warm","saharah"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},beach_umbrella:{keywords:["weather","summer","sunny","sand","mojito"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},desert_island:{keywords:["photo","tropical","mojito"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunrise:{keywords:["photo","good morning","dawn"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunset:{keywords:["photo","evening","sky","buildings"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},cityscape:{keywords:["photo","night life","urban"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},night_with_stars:{keywords:["evening","city","downtown"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},bridge_at_night:{keywords:["photo","sanfrancisco"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},milky_way:{keywords:["photo","space","stars"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},stars:{keywords:["night","photo"],char:"ð ",fitzpatrick_scale:!1,category:"travel_and_places"},sparkler:{keywords:["stars","night","shine"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},fireworks:{keywords:["photo","festival","carnival","congratulations"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"}
2,rainbow:{keywords:["nature","happy","unicorn_face","photo","sky","spring"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},houses:{keywords:["buildings","photo"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},european_castle:{keywords:["building","royalty","history"],char:"ð°",fitzpatrick_scale:!1,category:"travel_and_places"},japanese_castle:{keywords:["photo","building"],char:"ð¯",fitzpatrick_scale:!1,category:"travel_and_places"},stadium:{keywords:["photo","place","sports","concert","venue"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},statue_of_liberty:{keywords:["american","newyork"],char:"ð½",fitzpatrick_scale:!1,category:"travel_and_places"},house:{keywords:["building","home"],char:"ð ",fitzpatrick_scale:!1,category:"travel_and_places"},house_with_garden:{keywords:["home","plant","nature"],char:"ð¡",fitzpatrick_scale:!1,category:"travel_and_places"},derelict_house:{keywords:["abandon","evict","broken","building"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},office:{keywords:["building","bureau","work"],char:"ð¢",fitzpatrick_scale:!1,category:"travel_and_places"},department_store:{keywords:["building","shopping","mall"],char:"ð¬",fitzpatrick_scale:!1,category:"travel_and_places"},post_office:{keywords:["building","envelope","communication"],char:"ð£",fitzpatrick_scale:!1,category:"travel_and_places"},european_post_office:{keywords:["building","email"],char:"ð¤",fitzpatrick_scale:!1,category:"travel_and_places"},hospital:{keywords:["building","health","surgery","doctor"],char:"ð¥",fitzpatrick_scale:!1,category:"travel_and_places"},bank:{keywords:["building","money","sales","cash","business","enterprise"],char:"ð¦",fitzpatrick_scale:!1,category:"travel_and_places"},hotel:{keywords:["building","accomodation","checkin"],char:"ð¨",fitzpatrick_scale:!1,category:"travel_and_places"},convenience_store:{keywords:["building","shopping","groceries"],char:"ðª",fitzpatrick_scale:!1,category:"travel_and_places"},school:{keywords:["building","student","education","learn","teach"],char:"ð«",fitzpatrick_scale:!1,category:"travel_and_places"},love_hotel:{keywords:["like","affection","dating"],char:"ð©",fitzpatrick_scale:!1,category:"travel_and_places"},wedding:{keywords:["love","like","affection","couple","marriage","bride","groom"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},classical_building:{keywords:["art","culture","history"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},church:{keywords:["building","religion","christ"],char:"âª",fitzpatrick_scale:!1,category:"travel_and_places"},mosque:{keywords:["islam","worship","minaret"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},synagogue:{keywords:["judaism","worship","temple","jewish"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},kaaba:{keywords:["mecca","mosque","islam"],char:"ð",fitzpatrick_scale:!1,category:"travel_and_places"},shinto_shrine:{keywords:["temple","japan","kyoto"],char:"â©",fitzpatrick_scale:!1,category:"travel_and_places"},watch:{keywords:["time","accessories"],char:"â",fitzpatrick_scale:!1,category:"objects"},iphone:{keywords:["technology","apple","gadgets","dial"],char:"ð±",fitzpatrick_scale:!1,category:"objects"},calling:{keywords:["iphone","incoming"],char:"ð²",fitzpatrick_scale:!1,category:"objects"},computer:{keywords:["technology","laptop","screen","display","monitor"],char:"ð»",fitzpatrick_scale:!1,category:"objects"},keyboard:{keywords:["technology","computer","type","input","text"],char:"â¨",fitzpatrick_scale:!1,category:"objects"},desktop_computer:{keywords:["technology","computing","screen"],char:"ð¥",fitzpatrick_scale:!1,category:"objects"},printer:{keywords:["paper","ink"],char:"ð¨",fitzpatrick_scale:!1,category:"objects"},computer_mouse:{keywords:["click"],char:"ð±",fitzpatrick_scale:!1,category:"objects"},trackball:{keywords:["technology","trackpad"],char:"ð²",fitzpatrick_scale:!1,category:"objects"},joystick:{keywords:["game","play"],char:"ð¹",fitzpatrick_scale:!1,category:"objects"},clamp:{keywords:["tool"],char:"ð",fitzpatrick_scale:!1,category:"objects"},minidisc:{keywords:["technology","record","data","disk","90s"],char:"ð½",fitzpatrick_scale:!1,category:"objects"},floppy_disk:{keywords:["oldschool","technology","save","90s","80s"],char:"ð¾",fitzpatrick_scale:!1,category:"objects"}
2,cd:{keywords:["technology","dvd","disk","disc","90s"],char:"ð¿",fitzpatrick_scale:!1,category:"objects"},dvd:{keywords:["cd","disk","disc"],char:"ð",fitzpatrick_scale:!1,category:"objects"},vhs:{keywords:["record","video","oldschool","90s","80s"],char:"ð¼",fitzpatrick_scale:!1,category:"objects"},camera:{keywords:["gadgets","photography"],char:"ð·",fitzpatrick_scale:!1,category:"objects"},camera_flash:{keywords:["photography","gadgets"],char:"ð¸",fitzpatrick_scale:!1,category:"objects"},video_camera:{keywords:["film","record"],char:"ð¹",fitzpatrick_scale:!1,category:"objects"},movie_camera:{keywords:["film","record"],char:"ð¥",fitzpatrick_scale:!1,category:"objects"},film_projector:{keywords:["video","tape","record","movie"],char:"ð½",fitzpatrick_scale:!1,category:"objects"},film_strip:{keywords:["movie"],char:"ð",fitzpatrick_scale:!1,category:"objects"},telephone_receiver:{keywords:["technology","communication","dial"],char:"ð",fitzpatrick_scale:!1,category:"objects"},phone:{keywords:["technology","communication","dial","telephone"],char:"âï¸",fitzpatrick_scale:!1,category:"objects"},pager:{keywords:["bbcall","oldschool","90s"],char:"ð",fitzpatrick_scale:!1,category:"objects"},fax:{keywords:["communication","technology"],char:"ð ",fitzpatrick_scale:!1,category:"objects"},tv:{keywords:["technology","program","oldschool","show","television"],char:"ðº",fitzpatrick_scale:!1,category:"objects"},radio:{keywords:["communication","music","podcast","program"],char:"ð»",fitzpatrick_scale:!1,category:"objects"},studio_microphone:{keywords:["sing","recording","artist","talkshow"],char:"ð",fitzpatrick_scale:!1,category:"objects"},level_slider:{keywords:["scale"],char:"ð",fitzpatrick_scale:!1,category:"objects"},control_knobs:{keywords:["dial"],char:"ð",fitzpatrick_scale:!1,category:"objects"},compass:{keywords:["magnetic","navigation","orienteering"],char:"ð§",fitzpatrick_scale:!1,category:"objects"},stopwatch:{keywords:["time","deadline"],char:"â±",fitzpatrick_scale:!1,category:"objects"},timer_clock:{keywords:["alarm"],char:"â²",fitzpatrick_scale:!1,category:"objects"},alarm_clock:{keywords:["time","wake"],char:"â°",fitzpatrick_scale:!1,category:"objects"},mantelpiece_clock:{keywords:["time"],char:"ð°",fitzpatrick_scale:!1,category:"objects"},hourglass_flowing_sand:{keywords:["oldschool","time","countdown"],char:"â³",fitzpatrick_scale:!1,category:"objects"},hourglass:{keywords:["time","clock","oldschool","limit","exam","quiz","test"],char:"â",fitzpatrick_scale:!1,category:"objects"},satellite:{keywords:["communication","future","radio","space"],char:"ð¡",fitzpatrick_scale:!1,category:"objects"},battery:{keywords:["power","energy","sustain"],char:"ð",fitzpatrick_scale:!1,category:"objects"},electric_plug:{keywords:["charger","power"],char:"ð",fitzpatrick_scale:!1,category:"objects"},bulb:{keywords:["light","electricity","idea"],char:"ð¡",fitzpatrick_scale:!1,category:"objects"},flashlight:{keywords:["dark","camping","sight","night"],char:"ð¦",fitzpatrick_scale:!1,category:"objects"},candle:{keywords:["fire","wax"],char:"ð¯",fitzpatrick_scale:!1,category:"objects"},fire_extinguisher:{keywords:["quench"],char:"ð§¯",fitzpatrick_scale:!1,category:"objects"},wastebasket:{keywords:["bin","trash","rubbish","garbage","toss"],char:"ð",fitzpatrick_scale:!1,category:"objects"},oil_drum:{keywords:["barrell"],char:"ð¢",fitzpatrick_scale:!1,category:"objects"},money_with_wings:{keywords:["dollar","bills","payment","sale"],char:"ð¸",fitzpatrick_scale:!1,category:"objects"},dollar:{keywords:["money","sales","bill","currency"],char:"ðµ",fitzpatrick_scale:!1,category:"objects"},yen:{keywords:["money","sales","japanese","dollar","currency"],char:"ð´",fitzpatrick_scale:!1,category:"objects"},euro:{keywords:["money","sales","dollar","currency"],char:"ð¶",fitzpatrick_scale:!1,category:"objects"},pound:{keywords:["british","sterling","money","sales","bills","uk","england","currency"],char:"ð·",fitzpatrick_scale:!1,category:"objects"},moneybag:{keywords:["dollar","payment","coins","sale"],char:"ð°",fitzpatrick_scale:!1,category:"objects"},credit_card:{keywords:["money","sales","dollar","bill","payment","shopping"],char:"ð³",fitzpatrick_scale:!1,category:"objects"},gem:{keywords:["blue","ruby","diamond","jewelry"],char:"ð",fitzpatrick_scale:!1,category:"objects"},balance_scale:{keywords:["law","fairness","weight"],char:"â",fitzpatrick_scale:!1,category:"objects"},toolbox:{keywords:["tools","diy","fix","maintainer","mechanic"],char:"ð§°",fitzpatrick_scale:!1,category:"objects"},wrench:{keywords:["tools","diy","ikea","fix","maintainer"],char:"ð§",fitzpatrick_scale:!1,category:"objects"},hammer:{keywords:["tools","build","create"],char:"ð¨",fitzpatrick_scale:!1,category:"objects"},hammer_and_pick:{keywords:["tools","build","create"],char:"â",fitzpatrick_scale:!1,category:"objects"},hammer_and_wrench:{keywords:["tools","build","create"],char:"ð ",fitzpatrick_scale:!1,category:"objects"},pick:{keywords:["tools","dig"],char:"â",fitzpatrick_scale:!1,category:"objects"},nut_and_bolt:{keywords:["handy","tools","fix"],char:"ð©",fitzpatrick_scale:!1,category:"objects"},gear:{keywords:["cog"],char:"â",fitzpatrick_scale:!1,category:"objects"},brick:{keywords:["bricks"],char:"ð§±",fitzpatrick_scale:!1,category:"objects"}
2,chains:{keywords:["lock","arrest"],char:"â",fitzpatrick_scale:!1,category:"objects"},magnet:{keywords:["attraction","magnetic"],char:"ð§²",fitzpatrick_scale:!1,category:"objects"},gun:{keywords:["violence","weapon","pistol","revolver"],char:"ð«",fitzpatrick_scale:!1,category:"objects"},bomb:{keywords:["boom","explode","explosion","terrorism"],char:"ð£",fitzpatrick_scale:!1,category:"objects"},firecracker:{keywords:["dynamite","boom","explode","explosion","explosive"],char:"ð§¨",fitzpatrick_scale:!1,category:"objects"},hocho:{keywords:["knife","blade","cutlery","kitchen","weapon"],char:"ðª",fitzpatrick_scale:!1,category:"objects"},dagger:{keywords:["weapon"],char:"ð¡",fitzpatrick_scale:!1,category:"objects"},crossed_swords:{keywords:["weapon"],char:"â",fitzpatrick_scale:!1,category:"objects"},shield:{keywords:["protection","security"],char:"ð¡",fitzpatrick_scale:!1,category:"objects"},smoking:{keywords:["kills","tobacco","cigarette","joint","smoke"],char:"ð¬",fitzpatrick_scale:!1,category:"objects"},skull_and_crossbones:{keywords:["poison","danger","deadly","scary","death","pirate","evil"],char:"â ",fitzpatrick_scale:!1,category:"objects"},coffin:{keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],char:"â°",fitzpatrick_scale:!1,category:"objects"},funeral_urn:{keywords:["dead","die","death","rip","ashes"],char:"â±",fitzpatrick_scale:!1,category:"objects"},amphora:{keywords:["vase","jar"],char:"ðº",fitzpatrick_scale:!1,category:"objects"},crystal_ball:{keywords:["disco","party","magic","circus","fortune_teller"],char:"ð®",fitzpatrick_scale:!1,category:"objects"},prayer_beads:{keywords:["dhikr","religious"],char:"ð¿",fitzpatrick_scale:!1,category:"objects"},nazar_amulet:{keywords:["bead","charm"],char:"ð§¿",fitzpatrick_scale:!1,category:"objects"},barber:{keywords:["hair","salon","style"],char:"ð",fitzpatrick_scale:!1,category:"objects"},alembic:{keywords:["distilling","science","experiment","chemistry"],char:"â",fitzpatrick_scale:!1,category:"objects"},telescope:{keywords:["stars","space","zoom","science","astronomy"],char:"ð",fitzpatrick_scale:!1,category:"objects"},microscope:{keywords:["laboratory","experiment","zoomin","science","study"],char:"ð¬",fitzpatrick_scale:!1,category:"objects"},hole:{keywords:["embarrassing"],char:"ð³",fitzpatrick_scale:!1,category:"objects"},pill:{keywords:["health","medicine","doctor","pharmacy","drug"],char:"ð",fitzpatrick_scale:!1,category:"objects"},syringe:{keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],char:"ð",fitzpatrick_scale:!1,category:"objects"},dna:{keywords:["biologist","genetics","life"],char:"ð§¬",fitzpatrick_scale:!1,category:"objects"},microbe:{keywords:["amoeba","bacteria","germs"],char:"ð¦ ",fitzpatrick_scale:!1,category:"objects"},petri_dish:{keywords:["bacteria","biology","culture","lab"],char:"ð§«",fitzpatrick_scale:!1,category:"objects"},test_tube:{keywords:["chemistry","experiment","lab","science"],char:"ð§ª",fitzpatrick_scale:!1,category:"objects"},thermometer:{keywords:["weather","temperature","hot","cold"],char:"ð¡",fitzpatrick_scale:!1,category:"objects"},broom:{keywords:["cleaning","sweeping","witch"],char:"ð§¹",fitzpatrick_scale:!1,category:"objects"},basket:{keywords:["laundry"],char:"ð§º",fitzpatrick_scale:!1,category:"objects"},toilet_paper:{keywords:["roll"],char:"ð§»",fitzpatrick_scale:!1,category:"objects"},label:{keywords:["sale","tag"],char:"ð·",fitzpatrick_scale:!1,category:"objects"},bookmark:{keywords:["favorite","label","save"],char:"ð",fitzpatrick_scale:!1,category:"objects"},toilet:{keywords:["restroom","wc","washroom","bathroom","potty"],char:"ð½",fitzpatrick_scale:!1,category:"objects"},shower:{keywords:["clean","water","bathroom"],char:"ð¿",fitzpatrick_scale:!1,category:"objects"},bathtub:{keywords:["clean","shower","bathroom"],char:"ð",fitzpatrick_scale:!1,category:"objects"},soap:{keywords:["bar","bathing","cleaning","lather"],char:"ð§¼",fitzpatrick_scale:!1,category:"objects"},sponge:{keywords:["absorbing","cleaning","porous"],char:"ð§½",fitzpatrick_scale:!1,category:"objects"},lotion_bottle:{keywords:["moisturizer","sunscreen"],char:"ð§´",fitzpatrick_scale:!1,category:"objects"},key:{keywords:["lock","door","password"],char:"ð",fitzpatrick_scale:!1,category:"objects"},old_key:{keywords:["lock","door","password"],char:"ð",fitzpatrick_scale:!1,category:"objects"},couch_and_lamp:{keywords:["read","chill"],char:"ð",fitzpatrick_scale:!1,category:"objects"},sleeping_bed:{keywords:["bed","rest"],char:"ð",fitzpatrick_scale:!0,category:"objects"},bed:{keywords:["sleep","rest"],char:"ð",fitzpatrick_scale:!1,category:"objects"},door:{keywords:["house","entry","exit"],char:"ðª",fitzpatrick_scale:!1,category:"objects"},bellhop_bell:{keywords:["service"],char:"ð",fitzpatrick_scale:!1,category:"objects"},teddy_bear:{keywords:["plush","stuffed"],char:"ð§¸",fitzpatrick_scale:!1,category:"objects"},framed_picture:{keywords:["photography"],char:"ð¼",fitzpatrick_scale:!1,category:"objects"},world_map:{keywords:["location","direction"],char:"ðº",fitzpatrick_scale:!1,category:"objects"},parasol_on_ground:{keywords:["weather","summer"],char:"â±",fitzpatrick_scale:!1,category:"objects"},moyai:{keywords:["rock","easter island","moai"],char:"ð¿",fitzpatrick_scale:!1,category:"objects"},shopping:{keywords:["mall","buy","purchase"],char:"ð",fitzpatrick_scale:!1,category:"objects"},shopping_cart:{keywords:["trolley"],char:"ð",fitzpatrick_scale:!1,category:"objects"},balloon:{keywords:["party","celebration","birthday","circus"],char:"ð",fitzpatrick_scale:!1,category:"objects"},flags:{keywords:["fish","japanese","koinobori","carp","banner"],char:"ð",fitzpatrick_scale:!1,category:"objects"}
2,ribbon:{keywords:["decoration","pink","girl","bowtie"],char:"ð",fitzpatrick_scale:!1,category:"objects"},gift:{keywords:["present","birthday","christmas","xmas"],char:"ð",fitzpatrick_scale:!1,category:"objects"},confetti_ball:{keywords:["festival","party","birthday","circus"],char:"ð",fitzpatrick_scale:!1,category:"objects"},tada:{keywords:["party","congratulations","birthday","magic","circus","celebration"],char:"ð",fitzpatrick_scale:!1,category:"objects"},dolls:{keywords:["japanese","toy","kimono"],char:"ð",fitzpatrick_scale:!1,category:"objects"},wind_chime:{keywords:["nature","ding","spring","bell"],char:"ð",fitzpatrick_scale:!1,category:"objects"},crossed_flags:{keywords:["japanese","nation","country","border"],char:"ð",fitzpatrick_scale:!1,category:"objects"},izakaya_lantern:{keywords:["light","paper","halloween","spooky"],char:"ð®",fitzpatrick_scale:!1,category:"objects"},red_envelope:{keywords:["gift"],char:"ð§§",fitzpatrick_scale:!1,category:"objects"},email:{keywords:["letter","postal","inbox","communication"],char:"âï¸",fitzpatrick_scale:!1,category:"objects"},envelope_with_arrow:{keywords:["email","communication"],char:"ð©",fitzpatrick_scale:!1,category:"objects"},incoming_envelope:{keywords:["email","inbox"],char:"ð¨",fitzpatrick_scale:!1,category:"objects"},"e-mail":{keywords:["communication","inbox"],char:"ð§",fitzpatrick_scale:!1,category:"objects"},love_letter:{keywords:["email","like","affection","envelope","valentines"],char:"ð",fitzpatrick_scale:!1,category:"objects"},postbox:{keywords:["email","letter","envelope"],char:"ð®",fitzpatrick_scale:!1,category:"objects"},mailbox_closed:{keywords:["email","communication","inbox"],char:"ðª",fitzpatrick_scale:!1,category:"objects"},mailbox:{keywords:["email","inbox","communication"],char:"ð«",fitzpatrick_scale:!1,category:"objects"},mailbox_with_mail:{keywords:["email","inbox","communication"],char:"ð¬",fitzpatrick_scale:!1,category:"objects"},mailbox_with_no_mail:{keywords:["email","inbox"],char:"ð",fitzpatrick_scale:!1,category:"objects"},package:{keywords:["mail","gift","cardboard","box","moving"],char:"ð¦",fitzpatrick_scale:!1,category:"objects"},postal_horn:{keywords:["instrument","music"],char:"ð¯",fitzpatrick_scale:!1,category:"objects"},inbox_tray:{keywords:["email","documents"],char:"ð¥",fitzpatrick_scale:!1,category:"objects"},outbox_tray:{keywords:["inbox","email"],char:"ð¤",fitzpatrick_scale:!1,category:"objects"},scroll:{keywords:["documents","ancient","history","paper"],char:"ð",fitzpatrick_scale:!1,category:"objects"},page_with_curl:{keywords:["documents","office","paper"],char:"ð",fitzpatrick_scale:!1,category:"objects"},bookmark_tabs:{keywords:["favorite","save","order","tidy"],char:"ð",fitzpatrick_scale:!1,category:"objects"},receipt:{keywords:["accounting","expenses"],char:"ð§¾",fitzpatrick_scale:!1,category:"objects"},bar_chart:{keywords:["graph","presentation","stats"],char:"ð",fitzpatrick_scale:!1,category:"objects"},chart_with_upwards_trend:{keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],char:"ð",fitzpatrick_scale:!1,category:"objects"},chart_with_downwards_trend:{keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],char:"ð",fitzpatrick_scale:!1,category:"objects"},page_facing_up:{keywords:["documents","office","paper","information"],char:"ð",fitzpatrick_scale:!1,category:"objects"},date:{keywords:["calendar","schedule"],char:"ð
",fitzpatrick_scale:!1,category:"objects"},calendar:{keywords:["schedule","date","planning"],char:"ð",fitzpatrick_scale:!1,category:"objects"},spiral_calendar:{keywords:["date","schedule","planning"],char:"ð",fitzpatrick_scale:!1,category:"objects"},card_index:{keywords:["business","stationery"],char:"ð",fitzpatrick_scale:!1,category:"objects"},card_file_box:{keywords:["business","stationery"],char:"ð",fitzpatrick_scale:!1,category:"objects"},ballot_box:{keywords:["election","vote"],char:"ð³",fitzpatrick_scale:!1,category:"objects"},file_cabinet:{keywords:["filing","organizing"],char:"ð",fitzpatrick_scale:!1,category:"objects"},clipboard:{keywords:["stationery","documents"],char:"ð",fitzpatrick_scale:!1,category:"objects"},spiral_notepad:{keywords:["memo","stationery"],char:"ð",fitzpatrick_scale:!1,category:"objects"},file_folder:{keywords:["documents","business","office"],char:"ð",fitzpatrick_scale:!1,category:"objects"},open_file_folder:{keywords:["documents","load"],char:"ð",fitzpatrick_scale:!1,category:"objects"},card_index_dividers:{keywords:["organizing","business","stationery"],char:"ð",fitzpatrick_scale:!1,category:"objects"}
2,newspaper_roll:{keywords:["press","headline"],char:"ð",fitzpatrick_scale:!1,category:"objects"},newspaper:{keywords:["press","headline"],char:"ð°",fitzpatrick_scale:!1,category:"objects"},notebook:{keywords:["stationery","record","notes","paper","study"],char:"ð",fitzpatrick_scale:!1,category:"objects"},closed_book:{keywords:["read","library","knowledge","textbook","learn"],char:"ð",fitzpatrick_scale:!1,category:"objects"},green_book:{keywords:["read","library","knowledge","study"],char:"ð",fitzpatrick_scale:!1,category:"objects"},blue_book:{keywords:["read","library","knowledge","learn","study"],char:"ð",fitzpatrick_scale:!1,category:"objects"},orange_book:{keywords:["read","library","knowledge","textbook","study"],char:"ð",fitzpatrick_scale:!1,category:"objects"},notebook_with_decorative_cover:{keywords:["classroom","notes","record","paper","study"],char:"ð",fitzpatrick_scale:!1,category:"objects"},ledger:{keywords:["notes","paper"],char:"ð",fitzpatrick_scale:!1,category:"objects"},books:{keywords:["literature","library","study"],char:"ð",fitzpatrick_scale:!1,category:"objects"},open_book:{keywords:["book","read","library","knowledge","literature","learn","study"],char:"ð",fitzpatrick_scale:!1,category:"objects"},safety_pin:{keywords:["diaper"],char:"ð§·",fitzpatrick_scale:!1,category:"objects"},link:{keywords:["rings","url"],char:"ð",fitzpatrick_scale:!1,category:"objects"},paperclip:{keywords:["documents","stationery"],char:"ð",fitzpatrick_scale:!1,category:"objects"},paperclips:{keywords:["documents","stationery"],char:"ð",fitzpatrick_scale:!1,category:"objects"},scissors:{keywords:["stationery","cut"],char:"âï¸",fitzpatrick_scale:!1,category:"objects"},triangular_ruler:{keywords:["stationery","math","architect","sketch"],char:"ð",fitzpatrick_scale:!1,category:"objects"},straight_ruler:{keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],char:"ð",fitzpatrick_scale:!1,category:"objects"},abacus:{keywords:["calculation"],char:"ð§®",fitzpatrick_scale:!1,category:"objects"},pushpin:{keywords:["stationery","mark","here"],char:"ð",fitzpatrick_scale:!1,category:"objects"},round_pushpin:{keywords:["stationery","location","map","here"],char:"ð",fitzpatrick_scale:!1,category:"objects"},triangular_flag_on_post:{keywords:["mark","milestone","place"],char:"ð©",fitzpatrick_scale:!1,category:"objects"},white_flag:{keywords:["losing","loser","lost","surrender","give up","fail"],char:"ð³",fitzpatrick_scale:!1,category:"objects"},black_flag:{keywords:["pirate"],char:"ð´",fitzpatrick_scale:!1,category:"objects"},rainbow_flag:{keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],char:"ð³ï¸âð",fitzpatrick_scale:!1,category:"objects"},closed_lock_with_key:{keywords:["security","privacy"],char:"ð",fitzpatrick_scale:!1,category:"objects"},lock:{keywords:["security","password","padlock"],char:"ð",fitzpatrick_scale:!1,category:"objects"},unlock:{keywords:["privacy","security"],char:"ð",fitzpatrick_scale:!1,category:"objects"},lock_with_ink_pen:{keywords:["security","secret"],char:"ð",fitzpatrick_scale:!1,category:"objects"},pen:{keywords:["stationery","writing","write"],char:"ð",fitzpatrick_scale:!1,category:"objects"},fountain_pen:{keywords:["stationery","writing","write"],char:"ð",fitzpatrick_scale:!1,category:"objects"},black_nib:{keywords:["pen","stationery","writing","write"],char:"âï¸",fitzpatrick_scale:!1,category:"objects"},memo:{keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],char:"ð",fitzpatrick_scale:!1,category:"objects"},pencil2:{keywords:["stationery","write","paper","writing","school","study"],char:"âï¸",fitzpatrick_scale:!1,category:"objects"},crayon:{keywords:["drawing","creativity"],char:"ð",fitzpatrick_scale:!1,category:"objects"},paintbrush:{keywords:["drawing","creativity","art"],char:"ð",fitzpatrick_scale:!1,category:"objects"},mag:{keywords:["search","zoom","find","detective"],char:"ð",fitzpatrick_scale:!1,category:"objects"},mag_right:{keywords:["search","zoom","find","detective"],char:"ð",fitzpatrick_scale:!1,category:"objects"},heart:{keywords:["love","like","valentines"],char:"â¤ï¸",fitzpatrick_scale:!1,category:"symbols"},orange_heart:{keywords:["love","like","affection","valentines"],char:"ð§¡",fitzpatrick_scale:!1,category:"symbols"},yellow_heart:{keywords:["love","like","affection","valentines"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},green_heart:{keywords:["love","like","affection","valentines"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},blue_heart:{keywords:["love","like","affection","valentines"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},purple_heart:{keywords:["love","like","affection","valentines"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},black_heart:{keywords:["evil"],char:"ð¤",fitzpatrick_scale:!1,category:"symbols"},broken_heart:{keywords:["sad","sorry","break","heart","heartbreak"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},heavy_heart_exclamation:{keywords:["decoration","love"],char:"â£",fitzpatrick_scale:!1,category:"symbols"},two_hearts:{keywords:["love","like","affection","valentines","heart"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},revolving_hearts:{keywords:["love","like","affection","valentines"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},heartbeat:{keywords:["love","like","affection","valentines","pink","heart"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},heartpulse:{keywords:["like","love","affection","valentines","pink"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},sparkling_heart:{keywords:["love","like","affection","valentines"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},cupid:{keywords:["love","like","heart","affection","valentines"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},gift_heart:{keywords:["love","valentines"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},heart_decoration:{keywords:["purple-square","love","like"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},peace_symbol:{keywords:["hippie"],char:"â®",fitzpatrick_scale:!1,category:"symbols"}
2,latin_cross:{keywords:["christianity"],char:"â",fitzpatrick_scale:!1,category:"symbols"},star_and_crescent:{keywords:["islam"],char:"âª",fitzpatrick_scale:!1,category:"symbols"},om:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},wheel_of_dharma:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"â¸",fitzpatrick_scale:!1,category:"symbols"},star_of_david:{keywords:["judaism"],char:"â¡",fitzpatrick_scale:!1,category:"symbols"},six_pointed_star:{keywords:["purple-square","religion","jewish","hexagram"],char:"ð¯",fitzpatrick_scale:!1,category:"symbols"},menorah:{keywords:["hanukkah","candles","jewish"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},yin_yang:{keywords:["balance"],char:"â¯",fitzpatrick_scale:!1,category:"symbols"},orthodox_cross:{keywords:["suppedaneum","religion"],char:"â¦",fitzpatrick_scale:!1,category:"symbols"},place_of_worship:{keywords:["religion","church","temple","prayer"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},ophiuchus:{keywords:["sign","purple-square","constellation","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},aries:{keywords:["sign","purple-square","zodiac","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},taurus:{keywords:["purple-square","sign","zodiac","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},gemini:{keywords:["sign","zodiac","purple-square","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},cancer:{keywords:["sign","zodiac","purple-square","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},leo:{keywords:["sign","purple-square","zodiac","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},virgo:{keywords:["sign","zodiac","purple-square","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},libra:{keywords:["sign","purple-square","zodiac","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},scorpius:{keywords:["sign","zodiac","purple-square","astrology","scorpio"],char:"â",fitzpatrick_scale:!1,category:"symbols"},sagittarius:{keywords:["sign","zodiac","purple-square","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},capricorn:{keywords:["sign","zodiac","purple-square","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},aquarius:{keywords:["sign","purple-square","zodiac","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},pisces:{keywords:["purple-square","sign","zodiac","astrology"],char:"â",fitzpatrick_scale:!1,category:"symbols"},id:{keywords:["purple-square","words"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},atom_symbol:{keywords:["science","physics","chemistry"],char:"â",fitzpatrick_scale:!1,category:"symbols"},u7a7a:{keywords:["kanji","japanese","chinese","empty","sky","blue-square"],char:"ð³",fitzpatrick_scale:!1,category:"symbols"},u5272:{keywords:["cut","divide","chinese","kanji","pink-square"],char:"ð¹",fitzpatrick_scale:!1,category:"symbols"},radioactive:{keywords:["nuclear","danger"],char:"â¢",fitzpatrick_scale:!1,category:"symbols"},biohazard:{keywords:["danger"],char:"â£",fitzpatrick_scale:!1,category:"symbols"},mobile_phone_off:{keywords:["mute","orange-square","silence","quiet"],char:"ð´",fitzpatrick_scale:!1,category:"symbols"},vibration_mode:{keywords:["orange-square","phone"],char:"ð³",fitzpatrick_scale:!1,category:"symbols"},u6709:{keywords:["orange-square","chinese","have","kanji"],char:"ð¶",fitzpatrick_scale:!1,category:"symbols"},u7121:{keywords:["nothing","chinese","kanji","japanese","orange-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},u7533:{keywords:["chinese","japanese","kanji","orange-square"],char:"ð¸",fitzpatrick_scale:!1,category:"symbols"}
2,u55b6:{keywords:["japanese","opening hours","orange-square"],char:"ðº",fitzpatrick_scale:!1,category:"symbols"},u6708:{keywords:["chinese","month","moon","japanese","orange-square","kanji"],char:"ð·ï¸",fitzpatrick_scale:!1,category:"symbols"},eight_pointed_black_star:{keywords:["orange-square","shape","polygon"],char:"â´ï¸",fitzpatrick_scale:!1,category:"symbols"},vs:{keywords:["words","orange-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},accept:{keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},white_flower:{keywords:["japanese","spring"],char:"ð®",fitzpatrick_scale:!1,category:"symbols"},ideograph_advantage:{keywords:["chinese","kanji","obtain","get","circle"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},secret:{keywords:["privacy","chinese","sshh","kanji","red-circle"],char:"ãï¸",fitzpatrick_scale:!1,category:"symbols"},congratulations:{keywords:["chinese","kanji","japanese","red-circle"],char:"ãï¸",fitzpatrick_scale:!1,category:"symbols"},u5408:{keywords:["japanese","chinese","join","kanji","red-square"],char:"ð´",fitzpatrick_scale:!1,category:"symbols"},u6e80:{keywords:["full","chinese","japanese","red-square","kanji"],char:"ðµ",fitzpatrick_scale:!1,category:"symbols"},u7981:{keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],char:"ð²",fitzpatrick_scale:!1,category:"symbols"},a:{keywords:["red-square","alphabet","letter"],char:"ð
°ï¸",fitzpatrick_scale:!1,category:"symbols"},b:{keywords:["red-square","alphabet","letter"],char:"ð
±ï¸",fitzpatrick_scale:!1,category:"symbols"},ab:{keywords:["red-square","alphabet"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},cl:{keywords:["alphabet","words","red-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},o2:{keywords:["alphabet","red-square","letter"],char:"ð
¾ï¸",fitzpatrick_scale:!1,category:"symbols"},sos:{keywords:["help","red-square","words","emergency","911"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},no_entry:{keywords:["limit","security","privacy","bad","denied","stop","circle"],char:"â",fitzpatrick_scale:!1,category:"symbols"},name_badge:{keywords:["fire","forbid"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},no_entry_sign:{keywords:["forbid","stop","limit","denied","disallow","circle"],char:"ð«",fitzpatrick_scale:!1,category:"symbols"},x:{keywords:["no","delete","remove","cancel","red"],char:"â",fitzpatrick_scale:!1,category:"symbols"},o:{keywords:["circle","round"],char:"â",fitzpatrick_scale:!1,category:"symbols"},stop_sign:{keywords:["stop"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},anger:{keywords:["angry","mad"],char:"ð¢",fitzpatrick_scale:!1,category:"symbols"},hotsprings:{keywords:["bath","warm","relax"],char:"â¨ï¸",fitzpatrick_scale:!1,category:"symbols"},no_pedestrians:{keywords:["rules","crossing","walking","circle"],char:"ð·",fitzpatrick_scale:!1,category:"symbols"},do_not_litter:{keywords:["trash","bin","garbage","circle"],char:"ð¯",fitzpatrick_scale:!1,category:"symbols"},no_bicycles:{keywords:["cyclist","prohibited","circle"],char:"ð³",fitzpatrick_scale:!1,category:"symbols"},"non-potable_water":{keywords:["drink","faucet","tap","circle"],char:"ð±",fitzpatrick_scale:!1,category:"symbols"},underage:{keywords:["18","drink","pub","night","minor","circle"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},no_mobile_phones:{keywords:["iphone","mute","circle"],char:"ðµ",fitzpatrick_scale:!1,category:"symbols"},exclamation:{keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],char:"â",fitzpatrick_scale:!1,category:"symbols"},grey_exclamation:{keywords:["surprise","punctuation","gray","wow","warning"],char:"â",fitzpatrick_scale:!1,category:"symbols"},question:{keywords:["doubt","confused"],char:"â",fitzpatrick_scale:!1,category:"symbols"},grey_question:{keywords:["doubts","gray","huh","confused"],char:"â",fitzpatrick_scale:!1,category:"symbols"},bangbang:{keywords:["exclamation","surprise"],char:"â¼ï¸",fitzpatrick_scale:!1,category:"symbols"}
2,interrobang:{keywords:["wat","punctuation","surprise"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],char:"ð¯",fitzpatrick_scale:!1,category:"symbols"},low_brightness:{keywords:["sun","afternoon","warm","summer"],char:"ð
",fitzpatrick_scale:!1,category:"symbols"},high_brightness:{keywords:["sun","light"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},trident:{keywords:["weapon","spear"],char:"ð±",fitzpatrick_scale:!1,category:"symbols"},fleur_de_lis:{keywords:["decorative","scout"],char:"â",fitzpatrick_scale:!1,category:"symbols"},part_alternation_mark:{keywords:["graph","presentation","stats","business","economics","bad"],char:"ã½ï¸",fitzpatrick_scale:!1,category:"symbols"},warning:{keywords:["exclamation","wip","alert","error","problem","issue"],char:"â ï¸",fitzpatrick_scale:!1,category:"symbols"},children_crossing:{keywords:["school","warning","danger","sign","driving","yellow-diamond"],char:"ð¸",fitzpatrick_scale:!1,category:"symbols"},beginner:{keywords:["badge","shield"],char:"ð°",fitzpatrick_scale:!1,category:"symbols"},recycle:{keywords:["arrow","environment","garbage","trash"],char:"â»ï¸",fitzpatrick_scale:!1,category:"symbols"},u6307:{keywords:["chinese","point","green-square","kanji"],char:"ð¯",fitzpatrick_scale:!1,category:"symbols"},chart:{keywords:["green-square","graph","presentation","stats"],char:"ð¹",fitzpatrick_scale:!1,category:"symbols"},sparkle:{keywords:["stars","green-square","awesome","good","fireworks"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},eight_spoked_asterisk:{keywords:["star","sparkle","green-square"],char:"â³ï¸",fitzpatrick_scale:!1,category:"symbols"},negative_squared_cross_mark:{keywords:["x","green-square","no","deny"],char:"â",fitzpatrick_scale:!1,category:"symbols"},white_check_mark:{keywords:["green-square","ok","agree","vote","election","answer","tick"],char:"â
",fitzpatrick_scale:!1,category:"symbols"},diamond_shape_with_a_dot_inside:{keywords:["jewel","blue","gem","crystal","fancy"],char:"ð ",fitzpatrick_scale:!1,category:"symbols"},cyclone:{keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},loop:{keywords:["tape","cassette"],char:"â¿",fitzpatrick_scale:!1,category:"symbols"},globe_with_meridians:{keywords:["earth","international","world","internet","interweb","i18n"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},m:{keywords:["alphabet","blue-circle","letter"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},atm:{keywords:["money","sales","cash","blue-square","payment","bank"],char:"ð§",fitzpatrick_scale:!1,category:"symbols"},sa:{keywords:["japanese","blue-square","katakana"],char:"ðï¸",fitzpatrick_scale:!1,category:"symbols"},passport_control:{keywords:["custom","blue-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},customs:{keywords:["passport","border","blue-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},baggage_claim:{keywords:["blue-square","airport","transport"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},left_luggage:{keywords:["blue-square","travel"],char:"ð
",fitzpatrick_scale:!1,category:"symbols"},wheelchair:{keywords:["blue-square","disabled","a11y","accessibility"],char:"â¿",fitzpatrick_scale:!1,category:"symbols"},no_smoking:{keywords:["cigarette","blue-square","smell","smoke"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},wc:{keywords:["toilet","restroom","blue-square"],char:"ð¾",fitzpatrick_scale:!1,category:"symbols"},parking:{keywords:["cars","blue-square","alphabet","letter"],char:"ð
¿ï¸",fitzpatrick_scale:!1,category:"symbols"},potable_water:{keywords:["blue-square","liquid","restroom","cleaning","faucet"],char:"ð°",fitzpatrick_scale:!1,category:"symbols"},mens:{keywords:["toilet","restroom","wc","blue-square","gender","male"],char:"ð¹",fitzpatrick_scale:!1,category:"symbols"},womens:{keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],char:"ðº",fitzpatrick_scale:!1,category:"symbols"}
2,baby_symbol:{keywords:["orange-square","child"],char:"ð¼",fitzpatrick_scale:!1,category:"symbols"},restroom:{keywords:["blue-square","toilet","refresh","wc","gender"],char:"ð»",fitzpatrick_scale:!1,category:"symbols"},put_litter_in_its_place:{keywords:["blue-square","sign","human","info"],char:"ð®",fitzpatrick_scale:!1,category:"symbols"},cinema:{keywords:["blue-square","record","film","movie","curtain","stage","theater"],char:"ð¦",fitzpatrick_scale:!1,category:"symbols"},signal_strength:{keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],char:"ð¶",fitzpatrick_scale:!1,category:"symbols"},koko:{keywords:["blue-square","here","katakana","japanese","destination"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},ng:{keywords:["blue-square","words","shape","icon"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},ok:{keywords:["good","agree","yes","blue-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},up:{keywords:["blue-square","above","high"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},cool:{keywords:["words","blue-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},new:{keywords:["blue-square","words","start"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},free:{keywords:["blue-square","words"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},zero:{keywords:["0","numbers","blue-square","null"],char:"0ï¸â£",fitzpatrick_scale:!1,category:"symbols"},one:{keywords:["blue-square","numbers","1"],char:"1ï¸â£",fitzpatrick_scale:!1,category:"symbols"},two:{keywords:["numbers","2","prime","blue-square"],char:"2ï¸â£",fitzpatrick_scale:!1,category:"symbols"},three:{keywords:["3","numbers","prime","blue-square"],char:"3ï¸â£",fitzpatrick_scale:!1,category:"symbols"},four:{keywords:["4","numbers","blue-square"],char:"4ï¸â£",fitzpatrick_scale:!1,category:"symbols"},five:{keywords:["5","numbers","blue-square","prime"],char:"5ï¸â£",fitzpatrick_scale:!1,category:"symbols"},six:{keywords:["6","numbers","blue-square"],char:"6ï¸â£",fitzpatrick_scale:!1,category:"symbols"},seven:{keywords:["7","numbers","blue-square","prime"],char:"7ï¸â£",fitzpatrick_scale:!1,category:"symbols"},eight:{keywords:["8","blue-square","numbers"],char:"8ï¸â£",fitzpatrick_scale:!1,category:"symbols"},nine:{keywords:["blue-square","numbers","9"],char:"9ï¸â£",fitzpatrick_scale:!1,category:"symbols"},keycap_ten:{keywords:["numbers","10","blue-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},asterisk:{keywords:["star","keycap"],char:"*â£",fitzpatrick_scale:!1,category:"symbols"},1234:{keywords:["numbers","blue-square"],char:"ð¢",fitzpatrick_scale:!1,category:"symbols"},eject_button:{keywords:["blue-square"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_forward:{keywords:["blue-square","right","direction","play"],char:"â¶ï¸",fitzpatrick_scale:!1,category:"symbols"},pause_button:{keywords:["pause","blue-square"],char:"â¸",fitzpatrick_scale:!1,category:"symbols"},next_track_button:{keywords:["forward","next","blue-square"],char:"â",fitzpatrick_scale:!1,category:"symbols"},stop_button:{keywords:["blue-square"],char:"â¹",fitzpatrick_scale:!1,category:"symbols"},record_button:{keywords:["blue-square"],char:"âº",fitzpatrick_scale:!1,category:"symbols"},play_or_pause_button:{keywords:["blue-square","play","pause"],char:"â¯",fitzpatrick_scale:!1,category:"symbols"},previous_track_button:{keywords:["backward"],char:"â®",fitzpatrick_scale:!1,category:"symbols"},fast_forward:{keywords:["blue-square","play","speed","continue"],char:"â©",fitzpatrick_scale:!1,category:"symbols"},rewind:{keywords:["play","blue-square"],char:"âª",fitzpatrick_scale:!1,category:"symbols"},twisted_rightwards_arrows:{keywords:["blue-square","shuffle","music","random"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},repeat:{keywords:["loop","record"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},repeat_one:{keywords:["blue-square","loop"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},arrow_backward:{keywords:["blue-square","left","direction"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_up_small:{keywords:["blue-square","triangle","direction","point","forward","top"],char:"ð¼",fitzpatrick_scale:!1,category:"symbols"},arrow_down_small:{keywords:["blue-square","direction","bottom"],char:"ð½",fitzpatrick_scale:!1,category:"symbols"}
2,arrow_double_up:{keywords:["blue-square","direction","top"],char:"â«",fitzpatrick_scale:!1,category:"symbols"},arrow_double_down:{keywords:["blue-square","direction","bottom"],char:"â¬",fitzpatrick_scale:!1,category:"symbols"},arrow_right:{keywords:["blue-square","next"],char:"â¡ï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_left:{keywords:["blue-square","previous","back"],char:"â¬
ï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_up:{keywords:["blue-square","continue","top","direction"],char:"â¬ï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_down:{keywords:["blue-square","direction","bottom"],char:"â¬ï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_right:{keywords:["blue-square","point","direction","diagonal","northeast"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_right:{keywords:["blue-square","direction","diagonal","southeast"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_left:{keywords:["blue-square","direction","diagonal","southwest"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_left:{keywords:["blue-square","point","direction","diagonal","northwest"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_up_down:{keywords:["blue-square","direction","way","vertical"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},left_right_arrow:{keywords:["shape","direction","horizontal","sideways"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},arrows_counterclockwise:{keywords:["blue-square","sync","cycle"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},arrow_right_hook:{keywords:["blue-square","return","rotate","direction"],char:"âªï¸",fitzpatrick_scale:!1,category:"symbols"},leftwards_arrow_with_hook:{keywords:["back","return","blue-square","undo","enter"],char:"â©ï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_up:{keywords:["blue-square","direction","top"],char:"⤴ï¸",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_down:{keywords:["blue-square","direction","bottom"],char:"⤵ï¸",fitzpatrick_scale:!1,category:"symbols"},hash:{keywords:["symbol","blue-square","twitter"],char:"#ï¸â£",fitzpatrick_scale:!1,category:"symbols"},information_source:{keywords:["blue-square","alphabet","letter"],char:"â¹ï¸",fitzpatrick_scale:!1,category:"symbols"},abc:{keywords:["blue-square","alphabet"],char:"ð¤",fitzpatrick_scale:!1,category:"symbols"},abcd:{keywords:["blue-square","alphabet"],char:"ð¡",fitzpatrick_scale:!1,category:"symbols"},capital_abcd:{keywords:["alphabet","words","blue-square"],char:"ð ",fitzpatrick_scale:!1,category:"symbols"},symbols:{keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],char:"ð£",fitzpatrick_scale:!1,category:"symbols"},musical_note:{keywords:["score","tone","sound"],char:"ðµ",fitzpatrick_scale:!1,category:"symbols"},notes:{keywords:["music","score"],char:"ð¶",fitzpatrick_scale:!1,category:"symbols"},wavy_dash:{keywords:["draw","line","moustache","mustache","squiggle","scribble"],char:"ã°ï¸",fitzpatrick_scale:!1,category:"symbols"},curly_loop:{keywords:["scribble","draw","shape","squiggle"],char:"â°",fitzpatrick_scale:!1,category:"symbols"},heavy_check_mark:{keywords:["ok","nike","answer","yes","tick"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},arrows_clockwise:{keywords:["sync","cycle","round","repeat"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},heavy_plus_sign:{keywords:["math","calculation","addition","more","increase"],char:"â",fitzpatrick_scale:!1,category:"symbols"},heavy_minus_sign:{keywords:["math","calculation","subtract","less"],char:"â",fitzpatrick_scale:!1,category:"symbols"},heavy_division_sign:{keywords:["divide","math","calculation"],char:"â",fitzpatrick_scale:!1,category:"symbols"},heavy_multiplication_x:{keywords:["math","calculation"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},infinity:{keywords:["forever"],char:"â¾",fitzpatrick_scale:!1,category:"symbols"},heavy_dollar_sign:{keywords:["money","sales","payment","currency","buck"],char:"ð²",fitzpatrick_scale:!1,category:"symbols"},currency_exchange:{keywords:["money","sales","dollar","travel"],char:"ð±",fitzpatrick_scale:!1,category:"symbols"},copyright:{keywords:["ip","license","circle","law","legal"],char:"©ï¸",fitzpatrick_scale:!1,category:"symbols"},registered:{keywords:["alphabet","circle"],char:"®ï¸",fitzpatrick_scale:!1,category:"symbols"},tm:{keywords:["trademark","brand","law","legal"],char:"â¢ï¸",fitzpatrick_scale:!1,category:"symbols"},end:{keywords:["words","arrow"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},back:{keywords:["arrow","words","return"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},on:{keywords:["arrow","words"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},top:{keywords:["words","blue-square"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},soon:{keywords:["arrow","words"],char:"ð",fitzpatrick_scale:!1,category:"symbols"}
2,ballot_box_with_check:{keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],char:"âï¸",fitzpatrick_scale:!1,category:"symbols"},radio_button:{keywords:["input","old","music","circle"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},white_circle:{keywords:["shape","round"],char:"âª",fitzpatrick_scale:!1,category:"symbols"},black_circle:{keywords:["shape","button","round"],char:"â«",fitzpatrick_scale:!1,category:"symbols"},red_circle:{keywords:["shape","error","danger"],char:"ð´",fitzpatrick_scale:!1,category:"symbols"},large_blue_circle:{keywords:["shape","icon","button"],char:"ðµ",fitzpatrick_scale:!1,category:"symbols"},small_orange_diamond:{keywords:["shape","jewel","gem"],char:"ð¸",fitzpatrick_scale:!1,category:"symbols"},small_blue_diamond:{keywords:["shape","jewel","gem"],char:"ð¹",fitzpatrick_scale:!1,category:"symbols"},large_orange_diamond:{keywords:["shape","jewel","gem"],char:"ð¶",fitzpatrick_scale:!1,category:"symbols"},large_blue_diamond:{keywords:["shape","jewel","gem"],char:"ð·",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle:{keywords:["shape","direction","up","top"],char:"ðº",fitzpatrick_scale:!1,category:"symbols"},black_small_square:{keywords:["shape","icon"],char:"âªï¸",fitzpatrick_scale:!1,category:"symbols"},white_small_square:{keywords:["shape","icon"],char:"â«ï¸",fitzpatrick_scale:!1,category:"symbols"},black_large_square:{keywords:["shape","icon","button"],char:"â¬",fitzpatrick_scale:!1,category:"symbols"},white_large_square:{keywords:["shape","icon","stone","button"],char:"â¬",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle_down:{keywords:["shape","direction","bottom"],char:"ð»",fitzpatrick_scale:!1,category:"symbols"},black_medium_square:{keywords:["shape","button","icon"],char:"â¼ï¸",fitzpatrick_scale:!1,category:"symbols"},white_medium_square:{keywords:["shape","stone","icon"],char:"â»ï¸",fitzpatrick_scale:!1,category:"symbols"},black_medium_small_square:{keywords:["icon","shape","button"],char:"â¾",fitzpatrick_scale:!1,category:"symbols"},white_medium_small_square:{keywords:["shape","stone","icon","button"],char:"â½",fitzpatrick_scale:!1,category:"symbols"},black_square_button:{keywords:["shape","input","frame"],char:"ð²",fitzpatrick_scale:!1,category:"symbols"},white_square_button:{keywords:["shape","input"],char:"ð³",fitzpatrick_scale:!1,category:"symbols"},speaker:{keywords:["sound","volume","silence","broadcast"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},sound:{keywords:["volume","speaker","broadcast"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},loud_sound:{keywords:["volume","noise","noisy","speaker","broadcast"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},mute:{keywords:["sound","volume","silence","quiet"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},mega:{keywords:["sound","speaker","volume"],char:"ð£",fitzpatrick_scale:!1,category:"symbols"},loudspeaker:{keywords:["volume","sound"],char:"ð¢",fitzpatrick_scale:!1,category:"symbols"},bell:{keywords:["sound","notification","christmas","xmas","chime"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},no_bell:{keywords:["sound","volume","mute","quiet","silent"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},black_joker:{keywords:["poker","cards","game","play","magic"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},mahjong:{keywords:["game","play","chinese","kanji"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},spades:{keywords:["poker","cards","suits","magic"],char:"â ï¸",fitzpatrick_scale:!1,category:"symbols"},clubs:{keywords:["poker","cards","magic","suits"],char:"â£ï¸",fitzpatrick_scale:!1,category:"symbols"},hearts:{keywords:["poker","cards","magic","suits"],char:"â¥ï¸",fitzpatrick_scale:!1,category:"symbols"},diamonds:{keywords:["poker","cards","magic","suits"],char:"â¦ï¸",fitzpatrick_scale:!1,category:"symbols"},flower_playing_cards:{keywords:["game","sunset","red"],char:"ð´",fitzpatrick_scale:!1,category:"symbols"},thought_balloon:{keywords:["bubble","cloud","speech","thinking","dream"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},right_anger_bubble:{keywords:["caption","speech","thinking","mad"],char:"ð¯",fitzpatrick_scale:!1,category:"symbols"}
2,speech_balloon:{keywords:["bubble","words","message","talk","chatting"],char:"ð¬",fitzpatrick_scale:!1,category:"symbols"},left_speech_bubble:{keywords:["words","message","talk","chatting"],char:"ð¨",fitzpatrick_scale:!1,category:"symbols"},clock1:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock2:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock3:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock4:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock5:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock6:{keywords:["time","late","early","schedule","dawn","dusk"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock7:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock8:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock9:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock10:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock11:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock12:{keywords:["time","noon","midnight","midday","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock130:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock230:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock330:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock430:{keywords:["time","late","early","schedule"],char:"ð",fitzpatrick_scale:!1,category:"symbols"},clock530:{keywords:["time","late","early","schedule"],char:"ð ",fitzpatrick_scale:!1,category:"symbols"},clock630:{keywords:["time","late","early","schedule"],char:"ð¡",fitzpatrick_scale:!1,category:"symbols"},clock730:{keywords:["time","late","early","schedule"],char:"ð¢",fitzpatrick_scale:!1,category:"symbols"},clock830:{keywords:["time","late","early","schedule"],char:"ð£",fitzpatrick_scale:!1,category:"symbols"},clock930:{keywords:["time","late","early","schedule"],char:"ð¤",fitzpatrick_scale:!1,category:"symbols"},clock1030:{keywords:["time","late","early","schedule"],char:"ð¥",fitzpatrick_scale:!1,category:"symbols"},clock1130:{keywords:["time","late","early","schedule"],char:"ð¦",fitzpatrick_scale:!1,category:"symbols"},clock1230:{keywords:["time","late","early","schedule"],char:"ð§",fitzpatrick_scale:!1,category:"symbols"},afghanistan:{keywords:["af","flag","nation","country","banner"],char:"ð¦ð«",fitzpatrick_scale:!1,category:"flags"},aland_islands:{keywords:["Ã
land","islands","flag","nation","country","banner"],char:"ð¦ð½",fitzpatrick_scale:!1,category:"flags"},albania:{keywords:["al","flag","nation","country","banner"],char:"ð¦ð±",fitzpatrick_scale:!1,category:"flags"},algeria:{keywords:["dz","flag","nation","country","banner"],char:"ð©ð¿",fitzpatrick_scale:!1,category:"flags"}
2,american_samoa:{keywords:["american","ws","flag","nation","country","banner"],char:"ð¦ð¸",fitzpatrick_scale:!1,category:"flags"},andorra:{keywords:["ad","flag","nation","country","banner"],char:"ð¦ð©",fitzpatrick_scale:!1,category:"flags"},angola:{keywords:["ao","flag","nation","country","banner"],char:"ð¦ð´",fitzpatrick_scale:!1,category:"flags"},anguilla:{keywords:["ai","flag","nation","country","banner"],char:"ð¦ð®",fitzpatrick_scale:!1,category:"flags"},antarctica:{keywords:["aq","flag","nation","country","banner"],char:"ð¦ð¶",fitzpatrick_scale:!1,category:"flags"},antigua_barbuda:{keywords:["antigua","barbuda","flag","nation","country","banner"],char:"ð¦ð¬",fitzpatrick_scale:!1,category:"flags"},argentina:{keywords:["ar","flag","nation","country","banner"],char:"ð¦ð·",fitzpatrick_scale:!1,category:"flags"},armenia:{keywords:["am","flag","nation","country","banner"],char:"ð¦ð²",fitzpatrick_scale:!1,category:"flags"},aruba:{keywords:["aw","flag","nation","country","banner"],char:"ð¦ð¼",fitzpatrick_scale:!1,category:"flags"},australia:{keywords:["au","flag","nation","country","banner"],char:"ð¦ðº",fitzpatrick_scale:!1,category:"flags"},austria:{keywords:["at","flag","nation","country","banner"],char:"ð¦ð¹",fitzpatrick_scale:!1,category:"flags"},azerbaijan:{keywords:["az","flag","nation","country","banner"],char:"ð¦ð¿",fitzpatrick_scale:!1,category:"flags"},bahamas:{keywords:["bs","flag","nation","country","banner"],char:"ð§ð¸",fitzpatrick_scale:!1,category:"flags"},bahrain:{keywords:["bh","flag","nation","country","banner"],char:"ð§ð",fitzpatrick_scale:!1,category:"flags"},bangladesh:{keywords:["bd","flag","nation","country","banner"],char:"ð§ð©",fitzpatrick_scale:!1,category:"flags"},barbados:{keywords:["bb","flag","nation","country","banner"],char:"ð§ð§",fitzpatrick_scale:!1,category:"flags"},belarus:{keywords:["by","flag","nation","country","banner"],char:"ð§ð¾",fitzpatrick_scale:!1,category:"flags"},belgium:{keywords:["be","flag","nation","country","banner"],char:"ð§ðª",fitzpatrick_scale:!1,category:"flags"},belize:{keywords:["bz","flag","nation","country","banner"],char:"ð§ð¿",fitzpatrick_scale:!1,category:"flags"},benin:{keywords:["bj","flag","nation","country","banner"],char:"ð§ð¯",fitzpatrick_scale:!1,category:"flags"},bermuda:{keywords:["bm","flag","nation","country","banner"],char:"ð§ð²",fitzpatrick_scale:!1,category:"flags"},bhutan:{keywords:["bt","flag","nation","country","banner"],char:"ð§ð¹",fitzpatrick_scale:!1,category:"flags"},bolivia:{keywords:["bo","flag","nation","country","banner"],char:"ð§ð´",fitzpatrick_scale:!1,category:"flags"},caribbean_netherlands:{keywords:["bonaire","flag","nation","country","banner"],char:"ð§ð¶",fitzpatrick_scale:!1,category:"flags"},bosnia_herzegovina:{keywords:["bosnia","herzegovina","flag","nation","country","banner"],char:"ð§ð¦",fitzpatrick_scale:!1,category:"flags"},botswana:{keywords:["bw","flag","nation","country","banner"],char:"ð§ð¼",fitzpatrick_scale:!1,category:"flags"},brazil:{keywords:["br","flag","nation","country","banner"],char:"ð§ð·",fitzpatrick_scale:!1,category:"flags"},british_indian_ocean_territory:{keywords:["british","indian","ocean","territory","flag","nation","country","banner"],char:"ð®ð´",fitzpatrick_scale:!1,category:"flags"},british_virgin_islands:{keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],char:"ð»ð¬",fitzpatrick_scale:!1,category:"flags"},brunei:{keywords:["bn","darussalam","flag","nation","country","banner"],char:"ð§ð³",fitzpatrick_scale:!1,category:"flags"},bulgaria:{keywords:["bg","flag","nation","country","banner"],char:"ð§ð¬",fitzpatrick_scale:!1,category:"flags"},burkina_faso:{keywords:["burkina","faso","flag","nation","country","banner"],char:"ð§ð«",fitzpatrick_scale:!1,category:"flags"},burundi:{keywords:["bi","flag","nation","country","banner"],char:"ð§ð®",fitzpatrick_scale:!1,category:"flags"},cape_verde:{keywords:["cabo","verde","flag","nation","country","banner"],char:"ð¨ð»",fitzpatrick_scale:!1,category:"flags"},cambodia:{keywords:["kh","flag","nation","country","banner"],char:"ð°ð",fitzpatrick_scale:!1,category:"flags"},cameroon:{keywords:["cm","flag","nation","country","banner"],char:"ð¨ð²",fitzpatrick_scale:!1,category:"flags"},canada:{keywords:["ca","flag","nation","country","banner"],char:"ð¨ð¦",fitzpatrick_scale:!1,category:"flags"},canary_islands:{keywords:["canary","islands","flag","nation","country","banner"],char:"ð®ð¨",fitzpatrick_scale:!1,category:"flags"},cayman_islands:{keywords:["cayman","islands","flag","nation","country","banner"],char:"ð°ð¾",fitzpatrick_scale:!1,category:"flags"},central_african_republic:{keywords:["central","african","republic","flag","nation","country","banner"],char:"ð¨ð«",fitzpatrick_scale:!1,category:"flags"},chad:{keywords:["td","flag","nation","country","banner"],char:"ð¹ð©",fitzpatrick_scale:!1,category:"flags"},chile:{keywords:["flag","nation","country","banner"],char:"ð¨ð±",fitzpatrick_scale:!1,category:"flags"},cn:{keywords:["china","chinese","prc","flag","country","nation","banner"],char:"ð¨ð³",fitzpatrick_scale:!1,category:"flags"},christmas_island:{keywords:["christmas","island","flag","nation","country","banner"],char:"ð¨ð½",fitzpatrick_scale:!1,category:"flags"},cocos_islands:{keywords:["cocos","keeling","islands","flag","nation","country","banner"],char:"ð¨ð¨",fitzpatrick_scale:!1,category:"flags"},colombia:{keywords:["co","flag","nation","country","banner"],char:"ð¨ð´",fitzpatrick_scale:!1,category:"flags"},comoros:{keywords:["km","flag","nation","country","banner"],char:"ð°ð²",fitzpatrick_scale:!1,category:"flags"},congo_brazzaville:{keywords:["congo","flag","nation","country","banner"],char:"ð¨ð¬",f
2itzpatrick_scale:!1,category:"flags"},congo_kinshasa:{keywords:["congo","democratic","republic","flag","nation","country","banner"],char:"ð¨ð©",fitzpatrick_scale:!1,category:"flags"},cook_islands:{keywords:["cook","islands","flag","nation","country","banner"],char:"ð¨ð°",fitzpatrick_scale:!1,category:"flags"},costa_rica:{keywords:["costa","rica","flag","nation","country","banner"],char:"ð¨ð·",fitzpatrick_scale:!1,category:"flags"},croatia:{keywords:["hr","flag","nation","country","banner"],char:"ðð·",fitzpatrick_scale:!1,category:"flags"},cuba:{keywords:["cu","flag","nation","country","banner"],char:"ð¨ðº",fitzpatrick_scale:!1,category:"flags"},curacao:{keywords:["curaçao","flag","nation","country","banner"],char:"ð¨ð¼",fitzpatrick_scale:!1,category:"flags"},cyprus:{keywords:["cy","flag","nation","country","banner"],char:"ð¨ð¾",fitzpatrick_scale:!1,category:"flags"},czech_republic:{keywords:["cz","flag","nation","country","banner"],char:"ð¨ð¿",fitzpatrick_scale:!1,category:"flags"},denmark:{keywords:["dk","flag","nation","country","banner"],char:"ð©ð°",fitzpatrick_scale:!1,category:"flags"},djibouti:{keywords:["dj","flag","nation","country","banner"],char:"ð©ð¯",fitzpatrick_scale:!1,category:"flags"},dominica:{keywords:["dm","flag","nation","country","banner"],char:"ð©ð²",fitzpatrick_scale:!1,category:"flags"},dominican_republic:{keywords:["dominican","republic","flag","nation","country","banner"],char:"ð©ð´",fitzpatrick_scale:!1,category:"flags"},ecuador:{keywords:["ec","flag","nation","country","banner"],char:"ðªð¨",fitzpatrick_scale:!1,category:"flags"},egypt:{keywords:["eg","flag","nation","country","banner"],char:"ðªð¬",fitzpatrick_scale:!1,category:"flags"},el_salvador:{keywords:["el","salvador","flag","nation","country","banner"],char:"ð¸ð»",fitzpatrick_scale:!1,category:"flags"},equatorial_guinea:{keywords:["equatorial","gn","flag","nation","country","banner"],char:"ð¬ð¶",fitzpatrick_scale:!1,category:"flags"},eritrea:{keywords:["er","flag","nation","country","banner"],char:"ðªð·",fitzpatrick_scale:!1,category:"flags"},estonia:{keywords:["ee","flag","nation","country","banner"],char:"ðªðª",fitzpatrick_scale:!1,category:"flags"},ethiopia:{keywords:["et","flag","nation","country","banner"],char:"ðªð¹",fitzpatrick_scale:!1,category:"flags"},eu:{keywords:["european","union","flag","banner"],char:"ðªðº",fitzpatrick_scale:!1,category:"flags"},falkland_islands:{keywords:["falkland","islands","malvinas","flag","nation","country","banner"],char:"ð«ð°",fitzpatrick_scale:!1,category:"flags"},faroe_islands:{keywords:["faroe","islands","flag","nation","country","banner"],char:"ð«ð´",fitzpatrick_scale:!1,category:"flags"},fiji:{keywords:["fj","flag","nation","country","banner"],char:"ð«ð¯",fitzpatrick_scale:!1,category:"flags"},finland:{keywords:["fi","flag","nation","country","banner"],char:"ð«ð®",fitzpatrick_scale:!1,category:"flags"},fr:{keywords:["banner","flag","nation","france","french","country"],char:"ð«ð·",fitzpatrick_scale:!1,category:"flags"},french_guiana:{keywords:["french","guiana","flag","nation","country","banner"],char:"ð¬ð«",fitzpatrick_scale:!1,category:"flags"},french_polynesia:{keywords:["french","polynesia","flag","nation","country","banner"],char:"ðµð«",fitzpatrick_scale:!1,category:"flags"},french_southern_territories:{keywords:["french","southern","territories","flag","nation","country","banner"],char:"ð¹ð«",fitzpatrick_scale:!1,category:"flags"},gabon:{keywords:["ga","flag","nation","country","banner"],char:"ð¬ð¦",fitzpatrick_scale:!1,category:"flags"},gambia:{keywords:["gm","flag","nation","country","banner"],char:"ð¬ð²",fitzpatrick_scale:!1,category:"flags"},georgia:{keywords:["ge","flag","nation","country","banner"],char:"ð¬ðª",fitzpatrick_scale:!1,category:"flags"},de:{keywords:["german","nation","flag","country","banner"],char:"ð©ðª",fitzpatrick_scale:!1,category:"flags"},ghana:{keywords:["gh","flag","nation","country","banner"],char:"ð¬ð",fitzpatrick_scale:!1,category:"flags"},gibraltar:{keywords:["gi","flag","nation","country","banner"],char:"ð¬ð®",fitzpatrick_scale:!1,category:"flags"},greece:{keywords:["gr","flag","nation","country","banner"],char:"ð¬ð·",fitzpatrick_scale:!1,category:"flags"},greenland:{keywords:["gl","flag","nation","country","banner"],char:"ð¬ð±",fitzpatrick_scale:!1,category:"flags"},grenada:{keywords:["gd","flag","nation","country","banner"],char:"ð¬ð©",fitzpatrick_scale:!1,category:"flags"},guadeloupe:{keywords:["gp","flag","nation","country","banner"],char:"ð¬ðµ",fitzpatrick_scale:!1,category:"flags"},guam:{keywords:["gu","flag","nation","country","banner"],char:"ð¬ðº",fitzpatrick_scale:!1,category:"flags"},guatemala:{keywords:["gt","flag","nation","country","banner"],char:"ð¬ð¹",fitzpatrick_scale:!1,category:"flags"},guernsey:{keywords:["gg","flag","nation","country","banner"],char:"ð¬ð¬",fitzpatrick_scale:!1,category:"flags"},guinea:{keywords:["gn","flag","nation","country","banner"],char:"ð¬ð³",fitzpatrick_scale:!1,category:"flags"},guinea_bissau:{keywords:["gw","bissau","flag","nation","country","banner"],char:"ð¬ð¼",fitzpatrick_scale:!1,category:"flags"},guyana:{keywords:["gy","flag","nation","country","banner"],char:"ð¬ð¾",fitzpatrick_scale:!1,category:"flags"},haiti:{keywords:["ht","flag","nation","country","banner"],char:"ðð¹",fitzpatrick_scale:!1,category:"flags"}
2,honduras:{keywords:["hn","flag","nation","country","banner"],char:"ðð³",fitzpatrick_scale:!1,category:"flags"},hong_kong:{keywords:["hong","kong","flag","nation","country","banner"],char:"ðð°",fitzpatrick_scale:!1,category:"flags"},hungary:{keywords:["hu","flag","nation","country","banner"],char:"ððº",fitzpatrick_scale:!1,category:"flags"},iceland:{keywords:["is","flag","nation","country","banner"],char:"ð®ð¸",fitzpatrick_scale:!1,category:"flags"},india:{keywords:["in","flag","nation","country","banner"],char:"ð®ð³",fitzpatrick_scale:!1,category:"flags"},indonesia:{keywords:["flag","nation","country","banner"],char:"ð®ð©",fitzpatrick_scale:!1,category:"flags"},iran:{keywords:["iran,","islamic","republic","flag","nation","country","banner"],char:"ð®ð·",fitzpatrick_scale:!1,category:"flags"},iraq:{keywords:["iq","flag","nation","country","banner"],char:"ð®ð¶",fitzpatrick_scale:!1,category:"flags"},ireland:{keywords:["ie","flag","nation","country","banner"],char:"ð®ðª",fitzpatrick_scale:!1,category:"flags"},isle_of_man:{keywords:["isle","man","flag","nation","country","banner"],char:"ð®ð²",fitzpatrick_scale:!1,category:"flags"},israel:{keywords:["il","flag","nation","country","banner"],char:"ð®ð±",fitzpatrick_scale:!1,category:"flags"},it:{keywords:["italy","flag","nation","country","banner"],char:"ð®ð¹",fitzpatrick_scale:!1,category:"flags"},cote_divoire:{keywords:["ivory","coast","flag","nation","country","banner"],char:"ð¨ð®",fitzpatrick_scale:!1,category:"flags"},jamaica:{keywords:["jm","flag","nation","country","banner"],char:"ð¯ð²",fitzpatrick_scale:!1,category:"flags"},jp:{keywords:["japanese","nation","flag","country","banner"],char:"ð¯ðµ",fitzpatrick_scale:!1,category:"flags"},jersey:{keywords:["je","flag","nation","country","banner"],char:"ð¯ðª",fitzpatrick_scale:!1,category:"flags"},jordan:{keywords:["jo","flag","nation","country","banner"],char:"ð¯ð´",fitzpatrick_scale:!1,category:"flags"},kazakhstan:{keywords:["kz","flag","nation","country","banner"],char:"ð°ð¿",fitzpatrick_scale:!1,category:"flags"},kenya:{keywords:["ke","flag","nation","country","banner"],char:"ð°ðª",fitzpatrick_scale:!1,category:"flags"},kiribati:{keywords:["ki","flag","nation","country","banner"],char:"ð°ð®",fitzpatrick_scale:!1,category:"flags"},kosovo:{keywords:["xk","flag","nation","country","banner"],char:"ð½ð°",fitzpatrick_scale:!1,category:"flags"},kuwait:{keywords:["kw","flag","nation","country","banner"],char:"ð°ð¼",fitzpatrick_scale:!1,category:"flags"},kyrgyzstan:{keywords:["kg","flag","nation","country","banner"],char:"ð°ð¬",fitzpatrick_scale:!1,category:"flags"},laos:{keywords:["lao","democratic","republic","flag","nation","country","banner"],char:"ð±ð¦",fitzpatrick_scale:!1,category:"flags"},latvia:{keywords:["lv","flag","nation","country","banner"],char:"ð±ð»",fitzpatrick_scale:!1,category:"flags"},lebanon:{keywords:["lb","flag","nation","country","banner"],char:"ð±ð§",fitzpatrick_scale:!1,category:"flags"},lesotho:{keywords:["ls","flag","nation","country","banner"],char:"ð±ð¸",fitzpatrick_scale:!1,category:"flags"},liberia:{keywords:["lr","flag","nation","country","banner"],char:"ð±ð·",fitzpatrick_scale:!1,category:"flags"},libya:{keywords:["ly","flag","nation","country","banner"],char:"ð±ð¾",fitzpatrick_scale:!1,category:"flags"},liechtenstein:{keywords:["li","flag","nation","country","banner"],char:"ð±ð®",fitzpatrick_scale:!1,category:"flags"},lithuania:{keywords:["lt","flag","nation","country","banner"],char:"ð±ð¹",fitzpatrick_scale:!1,category:"flags"},luxembourg:{keywords:["lu","flag","nation","country","banner"],char:"ð±ðº",fitzpatrick_scale:!1,category:"flags"},macau:{keywords:["macao","flag","nation","country","banner"],char:"ð²ð´",fitzpatrick_scale:!1,category:"flags"},macedonia:{keywords:["macedonia,","flag","nation","country","banner"],char:"ð²ð°",fitzpatrick_scale:!1,category:"flags"},madagascar:{keywords:["mg","flag","nation","country","banner"],char:"ð²ð¬",fitzpatrick_scale:!1,category:"flags"}
2,malawi:{keywords:["mw","flag","nation","country","banner"],char:"ð²ð¼",fitzpatrick_scale:!1,category:"flags"},malaysia:{keywords:["my","flag","nation","country","banner"],char:"ð²ð¾",fitzpatrick_scale:!1,category:"flags"},maldives:{keywords:["mv","flag","nation","country","banner"],char:"ð²ð»",fitzpatrick_scale:!1,category:"flags"},mali:{keywords:["ml","flag","nation","country","banner"],char:"ð²ð±",fitzpatrick_scale:!1,category:"flags"},malta:{keywords:["mt","flag","nation","country","banner"],char:"ð²ð¹",fitzpatrick_scale:!1,category:"flags"},marshall_islands:{keywords:["marshall","islands","flag","nation","country","banner"],char:"ð²ð",fitzpatrick_scale:!1,category:"flags"},martinique:{keywords:["mq","flag","nation","country","banner"],char:"ð²ð¶",fitzpatrick_scale:!1,category:"flags"},mauritania:{keywords:["mr","flag","nation","country","banner"],char:"ð²ð·",fitzpatrick_scale:!1,category:"flags"},mauritius:{keywords:["mu","flag","nation","country","banner"],char:"ð²ðº",fitzpatrick_scale:!1,category:"flags"},mayotte:{keywords:["yt","flag","nation","country","banner"],char:"ð¾ð¹",fitzpatrick_scale:!1,category:"flags"},mexico:{keywords:["mx","flag","nation","country","banner"],char:"ð²ð½",fitzpatrick_scale:!1,category:"flags"},micronesia:{keywords:["micronesia,","federated","states","flag","nation","country","banner"],char:"ð«ð²",fitzpatrick_scale:!1,category:"flags"},moldova:{keywords:["moldova,","republic","flag","nation","country","banner"],char:"ð²ð©",fitzpatrick_scale:!1,category:"flags"},monaco:{keywords:["mc","flag","nation","country","banner"],char:"ð²ð¨",fitzpatrick_scale:!1,category:"flags"},mongolia:{keywords:["mn","flag","nation","country","banner"],char:"ð²ð³",fitzpatrick_scale:!1,category:"flags"},montenegro:{keywords:["me","flag","nation","country","banner"],char:"ð²ðª",fitzpatrick_scale:!1,category:"flags"},montserrat:{keywords:["ms","flag","nation","country","banner"],char:"ð²ð¸",fitzpatrick_scale:!1,category:"flags"},morocco:{keywords:["ma","flag","nation","country","banner"],char:"ð²ð¦",fitzpatrick_scale:!1,category:"flags"},mozambique:{keywords:["mz","flag","nation","country","banner"],char:"ð²ð¿",fitzpatrick_scale:!1,category:"flags"},myanmar:{keywords:["mm","flag","nation","country","banner"],char:"ð²ð²",fitzpatrick_scale:!1,category:"flags"},namibia:{keywords:["na","flag","nation","country","banner"],char:"ð³ð¦",fitzpatrick_scale:!1,category:"flags"},nauru:{keywords:["nr","flag","nation","country","banner"],char:"ð³ð·",fitzpatrick_scale:!1,category:"flags"},nepal:{keywords:["np","flag","nation","country","banner"],char:"ð³ðµ",fitzpatrick_scale:!1,category:"flags"},netherlands:{keywords:["nl","flag","nation","country","banner"],char:"ð³ð±",fitzpatrick_scale:!1,category:"flags"},new_caledonia:{keywords:["new","caledonia","flag","nation","country","banner"],char:"ð³ð¨",fitzpatrick_scale:!1,category:"flags"},new_zealand:{keywords:["new","zealand","flag","nation","country","banner"],char:"ð³ð¿",fitzpatrick_scale:!1,category:"flags"},nicaragua:{keywords:["ni","flag","nation","country","banner"],char:"ð³ð®",fitzpatrick_scale:!1,category:"flags"},niger:{keywords:["ne","flag","nation","country","banner"],char:"ð³ðª",fitzpatrick_scale:!1,category:"flags"},nigeria:{keywords:["flag","nation","country","banner"],char:"ð³ð¬",fitzpatrick_scale:!1,category:"flags"},niue:{keywords:["nu","flag","nation","country","banner"],char:"ð³ðº",fitzpatrick_scale:!1,category:"flags"},norfolk_island:{keywords:["norfolk","island","flag","nation","country","banner"],char:"ð³ð«",fitzpatrick_scale:!1,category:"flags"},northern_mariana_islands:{keywords:["northern","mariana","islands","flag","nation","country","banner"],char:"ð²ðµ",fitzpatrick_scale:!1,category:"flags"},north_korea:{keywords:["north","korea","nation","flag","country","banner"],char:"ð°ðµ",fitzpatrick_scale:!1,category:"flags"},norway:{keywords:["no","flag","nation","country","banner"],char:"ð³ð´",fitzpatrick_scale:!1,category:"flags"},oman:{keywords:["om_symbol","flag","nation","country","banner"],char:"ð´ð²",fitzpatrick_scale:!1,category:"flags"},pakistan:{keywords:["pk","flag","nation","country","banner"],char:"ðµð°",fitzpatrick_scale:!1,category:"flags"},palau:{keywords:["pw","flag","nation","country","banner"],char:"ðµð¼",fitzpatrick_scale:!1,category:"flags"},palestinian_territories:{keywords:["palestine","palestinian","territories","flag","nation","country","banner"],char:"ðµð¸",fitzpatrick_scale:!1,category:"flags"},panama:{keywords:["pa","flag","nation","country","banner"],char:"ðµð¦",fitzpatrick_scale:!1,category:"flags"},papua_new_guinea:{keywords:["papua","new","guinea","flag","nation","country","banner"],char:"ðµð¬",fitzpatrick_scale:!1,category:"flags"},paraguay:{keywords:["py","flag","nation","country","banner"],char:"ðµð¾",fitzpatrick_scale:!1,category:"flags"},peru:{keywords:["pe","flag","nation","country","banner"],char:"ðµðª",fitzpatrick_scale:!1,category:"flags"},philippines:{keywords:["ph","flag","nation","country","banner"],char:"ðµð",fitzpatrick_scale:!1,category:"flags"},pitcairn_islands:{keywords:["pitcairn","flag","nation","country","banner"],char:"ðµð³",fitzpatrick_scale:!1,category:"flags"},poland:{keywords:["pl","flag","nation","country","banner"],char:"ðµð±",fitzpatrick_scale:!1,category:"flags"},portugal:{keywords:["pt","flag","nation","country","banner"],char:"ðµð¹",fitzpatrick_scale:!1,category:"flags"},puerto_rico:{keywords:["puerto","rico","flag","nation","country","banner"],char:"ðµð·",fitzpatrick_scale:!1,category:"flags"},qatar:{keywords:["qa","flag","nation","country","banner"],char:"ð¶ð¦",fitzpatrick_scale:!1,category:"flags"},reunion:{keywords:["réunion","flag","nation","country","banner"],char:"ð·ðª",fitzpatrick_scale:!1,category:"flags"},romania:{keywords:["ro","flag","nation","country","banner"],char:"ð·ð´",fitzpatrick_scale:!1,category:"flags"},ru:{keywords:["russian","federation","flag","nation","country","banner"],char:"ð·ðº",fitzpatrick_scale:!1,category:"flags"},rwanda:{keywords:["rw","flag","nation","country","banner"],char:"ð·ð¼",fitzpatrick_scale:!1,category:"flags"},st_barthelemy:{keywords:["saint","barthélemy","flag","nation","country","banner"],char:"ð§ð±",fitzpatrick_scale:!1,category:"flags"},st_helena:{keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],char:"ð¸ð",fitzpatrick_scale:!1,category:"flags"},st_kitts_nevis:{keywords:["saint","kitts","nevis","flag","nation","country","banner"],char:"ð°ð³",fitzpatrick_scale:!1,category:"flags"},st_lucia:{keywords:["saint","lucia","flag","nation","country","banner"],char:"ð±ð¨",fitzpatrick_scale:!1,category:"flags"},st_pierre_miquelon:{keywords:["saint","pierre","miquelon","flag","nation","country","banner"],char:"ðµð²",fitzpatrick_scale:!1,category:"flags"},st_vincent_grenadines:{keywords:["saint","vincent","grenadines","flag","nation","country","banner"],char:"ð»ð¨",fitzpatrick_scale:!1,category:"flags"},samoa:{keywords:["ws","flag","nation","country","banner"],char:"ð¼ð¸",fitzpatrick_scale:!1,category:"flags"},san_marino:{keywords:["san","marino","flag","nation","country","banner"],char:"ð¸ð²",fitzpatrick_scale:!1,category:"flags"},sao_tome_principe:{keywords:["sao","tome","principe","flag","nation","country","banner"],char:"ð¸ð¹",fitzpatrick_scale:!1,category:"flags"},saudi_arabia:{keywords:["flag","nation","country","banner"],char:"ð¸ð¦",fitzpatrick_scale:!1,category:"flags"},senegal:{keywords:["sn","flag","nation","country","banner"],char:"ð¸ð³",fitzpatrick_scale:!1,category:"flags"},serbia:{keywords:["rs","flag","nation","country","banner"],char:"ð·ð¸",fitzpatrick_scale:!1,category:"flags"},seychelles:{keywords:["sc","flag","nation","country","banner"],char:"ð¸ð¨",fitzpatrick_scale:!1,category:"flags"},sierra_leone:{keywords:["sierra","leone","flag","nation","country","banner"],char:"ð¸ð±",fitzpatrick_scale:!1,category:"flags"},singapore:{keywords:["sg","flag","nation","country","banner"],char:"ð¸ð¬",f
2itzpatrick_scale:!1,category:"flags"},sint_maarten:{keywords:["sint","maarten","dutch","flag","nation","country","banner"],char:"ð¸ð½",fitzpatrick_scale:!1,category:"flags"},slovakia:{keywords:["sk","flag","nation","country","banner"],char:"ð¸ð°",fitzpatrick_scale:!1,category:"flags"},slovenia:{keywords:["si","flag","nation","country","banner"],char:"ð¸ð®",fitzpatrick_scale:!1,category:"flags"},solomon_islands:{keywords:["solomon","islands","flag","nation","country","banner"],char:"ð¸ð§",fitzpatrick_scale:!1,category:"flags"},somalia:{keywords:["so","flag","nation","country","banner"],char:"ð¸ð´",fitzpatrick_scale:!1,category:"flags"},south_africa:{keywords:["south","africa","flag","nation","country","banner"],char:"ð¿ð¦",fitzpatrick_scale:!1,category:"flags"},south_georgia_south_sandwich_islands:{keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],char:"ð¬ð¸",fitzpatrick_scale:!1,category:"flags"},kr:{keywords:["south","korea","nation","flag","country","banner"],char:"ð°ð·",fitzpatrick_scale:!1,category:"flags"},south_sudan:{keywords:["south","sd","flag","nation","country","banner"],char:"ð¸ð¸",fitzpatrick_scale:!1,category:"flags"},es:{keywords:["spain","flag","nation","country","banner"],char:"ðªð¸",fitzpatrick_scale:!1,category:"flags"},sri_lanka:{keywords:["sri","lanka","flag","nation","country","banner"],char:"ð±ð°",fitzpatrick_scale:!1,category:"flags"},sudan:{keywords:["sd","flag","nation","country","banner"],char:"ð¸ð©",fitzpatrick_scale:!1,category:"flags"},suriname:{keywords:["sr","flag","nation","country","banner"],char:"ð¸ð·",fitzpatrick_scale:!1,category:"flags"},swaziland:{keywords:["sz","flag","nation","country","banner"],char:"ð¸ð¿",fitzpatrick_scale:!1,category:"flags"},sweden:{keywords:["se","flag","nation","country","banner"],char:"ð¸ðª",fitzpatrick_scale:!1,category:"flags"},switzerland:{keywords:["ch","flag","nation","country","banner"],char:"ð¨ð",fitzpatrick_scale:!1,category:"flags"},syria:{keywords:["syrian","arab","republic","flag","nation","country","banner"],char:"ð¸ð¾",fitzpatrick_scale:!1,category:"flags"},taiwan:{keywords:["tw","flag","nation","country","banner"],char:"ð¹ð¼",fitzpatrick_scale:!1,category:"flags"},tajikistan:{keywords:["tj","flag","nation","country","banner"],char:"ð¹ð¯",fitzpatrick_scale:!1,category:"flags"},tanzania:{keywords:["tanzania,","united","republic","flag","nation","country","banner"],char:"ð¹ð¿",fitzpatrick_scale:!1,category:"flags"},thailand:{keywords:["th","flag","nation","country","banner"],char:"ð¹ð",fitzpatrick_scale:!1,category:"flags"},timor_leste:{keywords:["timor","leste","flag","nation","country","banner"],char:"ð¹ð±",fitzpatrick_scale:!1,category:"flags"},togo:{keywords:["tg","flag","nation","country","banner"],char:"ð¹ð¬",fitzpatrick_scale:!1,category:"flags"},tokelau:{keywords:["tk","flag","nation","country","banner"],char:"ð¹ð°",fitzpatrick_scale:!1,category:"flags"},tonga:{keywords:["to","flag","nation","country","banner"],char:"ð¹ð´",fitzpatrick_scale:!1,category:"flags"},trinidad_tobago:{keywords:["trinidad","tobago","flag","nation","country","banner"],char:"ð¹ð¹",fitzpatrick_scale:!1,category:"flags"},tunisia:{keywords:["tn","flag","nation","country","banner"],char:"ð¹ð³",fitzpatrick_scale:!1,category:"flags"},tr:{keywords:["turkey","flag","nation","country","banner"],char:"ð¹ð·",fitzpatrick_scale:!1,category:"flags"},turkmenistan:{keywords:["flag","nation","country","banner"],char:"ð¹ð²",fitzpatrick_scale:!1,category:"flags"},turks_caicos_islands:{keywords:["turks","caicos","islands","flag","nation","country","banner"],char:"ð¹ð¨",fitzpatrick_scale:!1,category:"flags"},tuvalu:{keywords:["flag","nation","country","banner"],char:"ð¹ð»",fitzpatrick_scale:!1,category:"flags"},uganda:{keywords:["ug","flag","nation","country","banner"],char:"ðºð¬",fitzpatrick_scale:!1,category:"flags"},ukraine:{keywords:["ua","flag","nation","country","banner"],char:"ðºð¦",fitzpatrick_scale:!1,category:"flags"},united_arab_emirates:{keywords:["united","arab","emirates","flag","nation","country","banner"],char:"ð¦ðª",fitzpatrick_scale:!1,category:"flags"}
vendor: 5,159 bytes, line 2
2,uk:{keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],char:"ð¬ð§",fitzpatrick_scale:!1,category:"flags"},england:{keywords:["flag","english"],char:"ð´ó §ó ¢ó ¥ó ®ó §ó ¿",fitzpatrick_scale:!1,category:"flags"},scotland:{keywords:["flag","scottish"],char:"ð´ó §ó ¢ó ³ó £ó ´ó ¿",fitzpatrick_scale:!1,category:"flags"},wales:{keywords:["flag","welsh"],char:"ð´ó §ó ¢ó ·ó ¬ó ³ó ¿",fitzpatrick_scale:!1,category:"flags"},us:{keywords:["united","states","america","flag","nation","country","banner"],char:"ðºð¸",fitzpatrick_scale:!1,category:"flags"},us_virgin_islands:{keywords:["virgin","islands","us","flag","nation","country","banner"],char:"ð»ð®",fitzpatrick_scale:!1,category:"flags"},uruguay:{keywords:["uy","flag","nation","country","banner"],char:"ðºð¾",fitzpatrick_scale:!1,category:"flags"},uzbekistan:{keywords:["uz","flag","nation","country","banner"],char:"ðºð¿",fitzpatrick_scale:!1,category:"flags"},vanuatu:{keywords:["vu","flag","nation","country","banner"],char:"ð»ðº",fitzpatrick_scale:!1,category:"flags"},vatican_city:{keywords:["vatican","city","flag","nation","country","banner"],char:"ð»ð¦",fitzpatrick_scale:!1,category:"flags"},venezuela:{keywords:["ve","bolivarian","republic","flag","nation","country","banner"],char:"ð»ðª",fitzpatrick_scale:!1,category:"flags"},vietnam:{keywords:["viet","nam","flag","nation","country","banner"],char:"ð»ð³",fitzpatrick_scale:!1,category:"flags"},wallis_futuna:{keywords:["wallis","futuna","flag","nation","country","banner"],char:"ð¼ð«",fitzpatrick_scale:!1,category:"flags"},western_sahara:{keywords:["western","sahara","flag","nation","country","banner"],char:"ðªð",fitzpatrick_scale:!1,category:"flags"},yemen:{keywords:["ye","flag","nation","country","banner"],char:"ð¾ðª",fitzpatrick_scale:!1,category:"flags"},zambia:{keywords:["zm","flag","nation","country","banner"],char:"ð¿ð²",fitzpatrick_scale:!1,category:"flags"},zimbabwe:{keywords:["zw","flag","nation","country","banner"],char:"ð¿ð¼",fitzpatrick_scale:!1,category:"flags"},united_nations:{keywords:["un","flag","banner"],char:"ðºð³",fitzpatrick_scale:!1,category:"flags"},pirate_flag:{keywords:["skull","crossbones","flag","banner"],char:"ð´ââ ï¸",fitzpatrick_scale:!1,category:"flags"}})},168(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>t=>e===t,n=t(null),o=t(void 0),r=e=>"function"==typeof e;const a=()=>{},i=()=>!1;class l{constructor(e,t){this.tag=e,this.value=t}static some(e){return new l(!0,e)}static none(){return l.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?l.some(e(this.value)):l.none()}bind(e){return this.tag?e(this.value):l.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:l.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return null==e?l.none():l.some(e)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}l.singletonNone=new l(!1),Array.prototype.slice;const s=(e,t)=>{const n=e.length,o=new Array(n);for(let r=0;r<n;r++){const n=e[r];o[r]=t(n,r)}return o};r(Array.from)&&Array.from;const c=Object.keys,u=Object.hasOwnProperty,d=(e,t)=>{const n=c(e);for(let o=0,r=n.length;o<r;o++){const r=n[o];t(e[r],r)}},p=(e,t)=>u.call(e,t),f=e=>{let t=e;return{get:()=>t,set:e=>{t=e}}},m=(g=(e,t)=>t,(...e)=>{if(0===e.length)throw new Error("Can't merge zero objects");const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)p(o,e)&&(t[e]=g(t[e],o[e]))}return t});var g;const h=()=>{const e=(e=>{const t=f(l.none()),n=()=>t.get().each(e);return{clear:()=>{n(),t.set(l.none())},isSet:()=>t.get().isSome(),get:()=>t.get(),set:e=>{n(),t.set(l.some(e))}}})(a);return{...e,on:t=>e.get().each(t)}},b=(e,t,n=0,r)=>{const a=e.indexOf(t,n);return-1!==a&&(!!o(r)||a+t.length<=r)};var v=tinymce.util.Tools.resolve("tinymce.Resource");const y=e=>t=>t.options.get(e),_=y("emoticons_database"),A=y("emoticons_database_url"),k=y("emoticons_database_id"),x=y("emoticons_append"),w=y("emoticons_images_url"),C="All",E={symbols:"Symbols",people:"People",animals_and_nature:"Animals and Nature",food_and_drink:"Food and Drink",activity:"Activity",travel_and_places:"Travel and Places",objects:"Objects",flags:"Flags",user:"User Defined"},S=(e,t)=>p(e,t)?e[t]:t,T=e=>{const t=x(e);return n=e=>({keywords:[],category:"user",...e}),((e,t)=>{const n={};return d(e,(e,o)=>{const r=t(e,o);n[r.k]=r.v}),n})(t,(e,t)=>({k:t,v:n(e)}));var n},I=(e,t)=>b(e.title.toLowerCase(),t)||((e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n]))return!0;return!1}
2)(e.keywords,e=>b(e.toLowerCase(),t)),B=(e,t,n)=>{const o=[],r=t.toLowerCase(),a=n.fold(()=>i,e=>t=>t>=e);for(let n=0;n<e.length&&(0!==t.length&&!I(e[n],r)||(o.push({value:e[n].char,text:e[n].title,icon:e[n].char}),!a(o.length)));n++);return o},O="pattern",L=(e,t)=>{const o={pattern:"",results:B(t.listAll(),"",l.some(300))},r=f(C),a=(e=>{let t=null;const o=()=>{n(t)||(clearTimeout(t),t=null)};return{cancel:o,throttle:(...n)=>{o(),t=setTimeout(()=>{t=null,e.apply(null,n)},200)}}})(e=>{(e=>{const n=e.getData(),o=r.get(),a=t.listCategory(o),i=B(a,n[O],o===C?l.some(300):l.none());e.setData({results:i})})(e)}),i={label:"Search",type:"input",name:O},c={type:"collection",name:"results"},u=()=>({title:"Emojis",size:"normal",body:{type:"tabpanel",tabs:s(t.listCategories(),e=>({title:e,name:e,items:[i,c]}))},initialData:o,onTabChange:(e,t)=>{r.set(t.newTabName),a.throttle(e)},onChange:a.throttle,onAction:(t,n)=>{"results"===n.name&&(((e,t)=>{e.insertContent(t)})(e,n.value),t.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}),d=e.windowManager.open(u());d.focus(O),t.hasLoaded()||(d.block("Loading emojis..."),t.waitForLoad().then(()=>{d.redial(u()),a.throttle(d),d.focus(O),d.unblock()}).catch(e=>{d.redial({title:"Emojis",body:{type:"panel",items:[{type:"alertbanner",level:"error",icon:"warning",text:"Could not load emojis"}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),d.focus(O),d.unblock()}))},D=e=>t=>{const n=()=>{t.setEnabled(e.selection.isEditable())};return e.on("NodeChange",n),n(),()=>{e.off("NodeChange",n)}};e.add("emoticons",(e,t)=>{((e,t)=>{const n=e.options.register;n("emoticons_database",{processor:"string",default:"emojis"}),n("emoticons_database_url",{processor:"string",default:`${t}/js/${_(e)}${e.suffix}.js`}),n("emoticons_database_id",{processor:"string",default:"tinymce.plugins.emoticons"}),n("emoticons_append",{processor:"object",default:{}}),n("emoticons_images_url",{processor:"string",default:"https://cdnjs.cloudflare.com/ajax/libs/twemoji/15.1.0/72x72/"})})(e,t);const n=((e,t,n)=>{const o=h(),r=h(),a=w(e),i=e=>{return n="<img",(t=e.char).length>=4&&t.substr(0,4)===n?e.char.replace(/src="([^"]+)"/,(e,t)=>`src="${a}${t}"`):e.char;var t,n};e.on("init",()=>{v.load(n,t).then(t=>{const n=T(e);(e=>{const t={},n=[];d(e,(e,o)=>{const r={title:o,keywords:e.keywords,char:i(e),category:S(E,e.category)},a=void 0!==t[r.category]?t[r.category]:[];t[r.category]=a.concat([r]),n.push(r)}),o.set(t),r.set(n)})(m(t,n))},e=>{console.log(`Failed to load emojis: ${e}`),o.set({}),r.set([])})});const s=()=>r.get().getOr([]),u=()=>o.isSet()&&r.isSet();return{listCategories:()=>[C].concat(c(o.get().getOr({}))),hasLoaded:u,waitForLoad:()=>u()?Promise.resolve(!0):new Promise((e,n)=>{let o=15;const r=setInterval(()=>{u()?(clearInterval(r),e(!0)):(o--,o<0&&(console.log("Could not load emojis from url: "+t),clearInterval(r),n(!1)))},100)}),listAll:s,listCategory:e=>e===C?s():o.get().bind(t=>l.from(t[e])).getOr([])}})(e,A(e),k(e));return((e,t)=>{e.addCommand("mceEmoticons",()=>L(e,t))})(e,n),(e=>{const t=()=>e.execCommand("mceEmoticons");e.ui.registry.addButton("emoticons",{tooltip:"Emojis",icon:"emoji",onAction:t,onSetup:D(e)}),e.ui.registry.addMenuItem("emoticons",{text:"Emojis...",icon:"emoji",onAction:t,onSetup:D(e)})})(e),((e,t)=>{e.ui.registry.addAutocompleter("emoticons",{trigger:":",columns:"auto",minChars:2,fetch:(e,n)=>t.waitForLoad().then(()=>{const o=t.listAll();return B(o,e,l.some(n))}),onAction:(t,n,o)=>{e.selection.setRng(n),e.insertContent(o),t.hide()}})})(e,n),(e=>{e.on("PreInit",()=>{e.parser.addAttributeFilter("data-emoticon",e=>{((e,t)=>{for(let n=0,o=e.length;n<o;n++)t(e[n])})(e,e=>{e.attr("data-mce-resize","false"),e.attr("data-mce-placeholder","1")})})})})(e),{getAllEmojis:()=>n.waitForLoad().then(()=>n.listAll())}})}()},775(e,t,n){n(524)},524(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>t=>(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(a=o.constructor)||void 0===a?void 0:a.name)===r.name)?"string":t;var n,o,r,a})(t)===e,n=e=>t=>typeof t===e,o=t("string"),r=t("object"),a=t("array"),i=n("boolean"),l=e=>!(e=>null==e)(e),s=n("function"),c=n("number"),u=()=>{},d=e=>()=>e,p=(e,t)=>e===t,f=e=>t=>!e(t),m=d(!1);class g{constructor(e,t){this.tag=e,this.value=t}static some(e){return new g(!0,e)}static none(){return g.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?g.some(e(this.value)):g.none()}bind(e){return this.tag?e(this.value):g.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:g.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return l(e)?g.some(e):g.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}
vendor: 2,796 bytes, line 2
2g.singletonNone=new g(!1);const h=Array.prototype.slice,b=Array.prototype.indexOf,v=Array.prototype.push,y=(e,t)=>{return n=e,o=t,b.call(n,o)>-1;var n,o},_=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},A=(e,t)=>{const n=e.length,o=new Array(n);for(let r=0;r<n;r++){const n=e[r];o[r]=t(n,r)}return o},k=(e,t)=>{for(let n=0,o=e.length;n<o;n++)t(e[n],n)},x=(e,t)=>{const n=[];for(let o=0,r=e.length;o<r;o++){const r=e[o];t(r,o)&&n.push(r)}return n},w=(e,t,n)=>(k(e,(e,o)=>{n=t(n,e,o)}),n),C=(e,t,n)=>{for(let o=0,r=e.length;o<r;o++){const r=e[o];if(t(r,o))return g.some(r);if(n(r,o))break}return g.none()},E=(e,t)=>C(e,t,m),S=(e,t)=>(e=>{const t=[];for(let n=0,o=e.length;n<o;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);v.apply(t,e[n])}return t})(A(e,t)),T=e=>{const t=h.call(e,0);return t.reverse(),t},I=(e,t)=>t>=0&&t<e.length?g.some(e[t]):g.none(),B=e=>I(e,0),O=e=>I(e,e.length-1),L=(e,t)=>{const n=[],o=s(t)?e=>_(n,n=>t(n,e)):e=>y(n,e);for(let t=0,r=e.length;t<r;t++){const r=e[t];o(r)||n.push(r)}return n},D=Object.keys,M=(e,t)=>{const n=D(e);for(let o=0,r=n.length;o<r;o++){const r=n[o];t(e[r],r)}},N="undefined"!=typeof window?window:Function("return this;")(),P=(e,t,n=p)=>e.exists(e=>n(e,t)),R=(e,t,n)=>e.isSome()&&t.isSome()?g.some(n(e.getOrDie(),t.getOrDie())):g.none(),F=(e,t)=>((e,t)=>{let n=null!=t?t:N;for(let t=0;t<e.length&&null!=n;++t)n=n[e[t]];return n})(e.split("."),t),V=(z=/^\s+|\s+$/g,e=>e.replace(z,""));var z;const U=e=>"\ufeff"===e,j=e=>{if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},H=(e,t)=>{const n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return j(n.childNodes[0])},q=(e,t)=>{const n=(t||document).createElement(e);return j(n)},G=j,K=(e,t)=>{const n=e.dom;if(1!==n.nodeType)return!1;{const e=n;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},Z=(e,t)=>e.dom===t.dom,W=K,$=Object.getPrototypeOf,Y=e=>{const t=F("ownerDocument.defaultView",e);return r(e)&&((e=>((e,t)=>{const n=((e,t)=>F(e,t))(e,t);if(null==n)throw new Error(e+" not available on this browser");return n})("HTMLElement",e))(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test($(e).constructor.name))},J=e=>e.dom.nodeName.toLowerCase(),X=e=>e.dom.nodeType,Q=e=>t=>X(t)===e,ee=e=>te(e)&&Y(e.dom),te=Q(1),ne=Q(3),oe=Q(11),re=e=>t=>te(t)&&J(t)===e,ae=e=>g.from(e.dom.parentNode).map(G),ie=e=>A(e.dom.childNodes,G),le=(e,t)=>
2{const n=e.dom.childNodes;return g.from(n[t]).map(G)},se=e=>le(e,0),ce=e=>le(e,e.dom.childNodes.length-1),ue=e=>G(e.dom.host),de=(e,t)=>{ae(e).each(n=>{n.dom.insertBefore(t.dom,e.dom)})},pe=(e,t)=>{e.dom.appendChild(t.dom)},fe=(e,t)=>{k(t,t=>{pe(e,t)})},me=(e,t)=>{const n=e.dom;M(t,(e,t)=>{((e,t,n)=>{if(!(o(n)||i(n)||c(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")})(n,t,e)})},ge=e=>w(e.dom.attributes,(e,t)=>(e[t.name]=t.value,e),{}),he=e=>{e.dom.textContent="",k(ie(e),e=>{be(e)})},be=e=>{const t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},ve=e=>(e=>G(e.dom.cloneNode(!0)))(e),ye=(e,t)=>{const n=((e,t)=>{const n=q(t),o=ge(e);return me(n,o),n})(e,t);var o,r;r=n,(e=>g.from(e.dom.nextSibling).map(G))(o=e).fold(()=>{ae(o).each(e=>{pe(e,r)})},e=>{de(e,r)});const a=ie(e);return fe(n,a),be(e),n},_e=e=>A(e,G),Ae=e=>{const t=ne(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;const n=t.ownerDocument;return(e=>{const t=(e=>G(e.dom.getRootNode()))(e);return oe(n=t)&&l(n.dom.host)?g.some(t):g.none();var n})(G(t)).fold(()=>n.body.contains(t),(o=Ae,r=ue,e=>o(r(e))));var o,r},ke=(e,t,n)=>{((e,t,n)=>{if(!o(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);(e=>void 0!==e.style&&s(e.style.getPropertyValue))(e)&&e.style.setProperty(t,n)})(e.dom,t,n)},xe=(e,t)=>{const n=(t||document).createDocumentFragment();return k(e,e=>{n.appendChild(e.dom)}),G(n)};var we=(e,t,n,o,r)=>e(n,o)?g.some(n):s(r)&&r(n)?g.none():t(n,o,r);const Ce=(e,t,n)=>{let o=e.dom;const r=s(n)?n:m;for(;o.parentNode;){o=o.parentNode;const e=G(o);if(t(e))return g.some(e);if(r(e))break}return g.none()},Ee=(e,t,n)=>we((e,t)=>t(e),Ce,e,t,n),Se=(e,t,n)=>Ce(e,e=>K(e,t),n);var Te=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ie=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Be=tinymce.util.Tools.resolve("tinymce.util.VK"),Oe=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Le=tinymce.util.Tools.resolve("tinymce.util.Tools");const De=e=>t=>l(t)&&t.nodeName.toLowerCase()===e,Me=e=>t=>l(t)&&e.test(t.nodeName),Ne=e=>
2l(e)&&3===e.nodeType,Pe=e=>l(e)&&1===e.nodeType,Re=Me(/^(OL|UL|DL)$/),Fe=Me(/^(OL|UL)$/),Ve=De("ol"),ze=Me(/^(LI|DT|DD)$/),Ue=Me(/^(DT|DD)$/),je=Me(/^(TH|TD)$/),He=De("br"),qe=(e,t)=>l(t)&&t.nodeName in e.schema.getTextBlockElements(),Ge=(e,t)=>l(e)&&e.nodeName in t,Ke=(e,t)=>l(t)&&t.nodeName in e.schema.getVoidElements(),Ze=(e,t,n)=>{const o=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&o},We=(e,t)=>e.isChildOf(t,e.getRoot()),$e=e=>t=>t.options.get(e),Ye=$e("lists_indent_on_tab"),Je=$e("forced_root_block"),Xe=$e("forced_root_block_attrs"),Qe=(e,t,n={})=>{const o=e.dom,r=e.schema.getBlockElements(),a=o.createFragment(),i=Je(e),l=Xe(e);let s,c,u=!1;for(c=o.create(i,{...l,...n.style?{style:n.style}:{}}),Ge(t.firstChild,r)||a.appendChild(c);s=t.firstChild;){const e=s.nodeName;u||"SPAN"===e&&"bookmark"===s.getAttribute("data-mce-type")||(u=!0),Ge(s,r)?(a.appendChild(s),c=null):(c||(c=o.create(i,l),a.appendChild(c)),c.appendChild(s))}return!u&&c&&c.appendChild(o.create("br",{"data-mce-bogus":"1"})),a},et=Oe.DOM,tt=re("dd"),nt=re("dt"),ot=(e,t)=>{var n;tt(t)?ye(t,"dt"):nt(t)&&(n=t,g.from(n.dom.parentElement).map(G)).each(n=>((e,t,n)=>{const o=et.select('span[data-mce-type="bookmark"]',t),r=Qe(e,n),a=et.createRng();a.setStartAfter(n),a.setEndAfter(t);const i=a.extractContents();for(let t=i.firstChild;t;t=t.firstChild)if("LI"===t.nodeName&&e.dom.isEmpty(t)){et.remove(t);break}e.dom.isEmpty(i)||et.insertAfter(i,t),et.insertAfter(r,t);const l=n.parentElement;l&&Ze(e.dom,l)&&(e=>{const t=e.parentNode;t&&Le.each(o,e=>{t.insertBefore(e,n.parentNode)}),et.remove(e)})(l),et.remove(n),Ze(e.dom,t)&&et.remove(t)})(e,n.dom,t.dom))},rt=e=>{nt(e)&&ye(e,"dd")},at=(e,t)=>{if(Ne(e))return{container:e,offset:t};const n=Te.getNode(e,t);return Ne(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&Ne(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Ne(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},it=e=>{const t=e.cloneRange(),n=at(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);const o=at(e.endContainer,e.endOffset);return t.setEnd(o.container,o.offset),t},lt=["OL","UL","DL"],st=lt.join(","),ct=(e,t)=>{const n=t||e.selection.getStart(!0);return e.dom.getParent(n,st,pt(e,n))},ut=e=>{const t=e.selection.getSelectedBlocks();return x(((e,t)=>{const n=Le.map(t,t=>e.dom.getParent(t,"li,dd,dt",pt(e,t))||t);return L(n)})(e,t),ze)},dt=(e,t)=>{const n=e.dom.getParents(t,"TD,TH");return n.length>0?n[0]:e.getBody()},pt=(e,t)=>{const n=e.dom.getParents(t,e.dom.isBlock),o=E(n,t=>{return(t=>t.nodeName.toLowerCase()!==Je(e))(t)&&(n=e.schema,!Re(o=t)&&!ze(o)&&_(lt,e=>n.isValidChild(o.nodeName,e)));var n,o});return o.getOr(e.getBody())}
vendor: 14,022 bytes, line 2
2,ft=(e,t)=>{const n=e.dom.getParents(t,"ol,ul",pt(e,t));return O(n)},mt=(e,t)=>{const n=A(t,t=>ft(e,t).getOr(t));return L(n)},gt=e=>/\btox\-/.test(e.className),ht=(e,t)=>C(e,Re,je).exists(e=>e.nodeName===t&&!gt(e)),bt=(e,t)=>null!==t&&!e.dom.isEditable(t),vt=(e,t)=>{const n=e.dom.getParent(t,"ol,ul,dl");return bt(e,n)||!e.selection.isEditable()},yt=(e,t)=>{const n=e.selection.getNode();return t({parents:e.dom.getParents(n),element:n}),e.on("NodeChange",t),()=>e.off("NodeChange",t)},_t=(e,t,n)=>e.dispatch("ListMutation",{action:t,element:n}),At=e=>W(e,"OL,UL"),kt=e=>se(e).exists(At),xt=e=>"listAttributes"in e,wt=e=>"isComment"in e,Ct=e=>e.depth>0,Et=e=>e.isSelected,St=e=>{const t=ie(e),n=ce(e).exists(At)?t.slice(0,-1):t;return A(n,ve)},Tt=(e,t)=>{pe(e.item,t.list)},It=(e,t)=>{const n={list:q(t,e),item:q("li",e)};return pe(n.list,n.item),n},Bt=(e,t,n)=>{const o=t.slice(0,n.depth);return O(o).each(t=>{if(xt(n)){const o=((e,t,n)=>{const o=q("li",e);return me(o,t),fe(o,n),o})(e,n.itemAttributes,n.content);((e,t)=>{pe(e.list,t),e.item=t})(t,o),((e,t)=>{J(e.list)!==t.listType&&(e.list=ye(e.list,t.listType)),me(e.list,t.listAttributes)})(t,n)}else if((e=>"isFragment"in e)(n))fe(t.item,n.content);else{const e=H(`\x3c!--${n.content}--\x3e`);pe(t.list,e)}}),o},Ot=(e,t)=>{let n=g.none();const o=w(t,(t,o,r)=>wt(o)?0===r?(n=g.some(o),t):Bt(e,t,o):o.depth>t.length?((e,t,n)=>{const o=((e,t,n)=>{const o=[];for(let r=0;r<n;r++)o.push(It(e,xt(t)?t.listType:t.parentListType));return o})(e,n,n.depth-t.length);var r;return(e=>{for(let t=1;t<e.length;t++)Tt(e[t-1],e[t])})(o),((e,t)=>{for(let t=0;t<e.length-1;t++)ke(e[t].item,"list-style-type","none");O(e).each(e=>{xt(t)&&(me(e.list,t.listAttributes),me(e.item,t.itemAttributes)),fe(e.item,t.content)})})(o,n),r=o,R(O(t),B(r),Tt),t.concat(o)})(e,t,o):Bt(e,t,o),[]);return n.each(e=>{const t=H(`\x3c!--${e.content}--\x3e`);B(o).each(e=>{((e,t)=>{se(e).fold(()=>{pe(e,t)},n=>{e.dom.insertBefore(t.dom,n.dom)})})(e.list,t)})}),B(o).map(e=>e.list)},Lt=e=>(k(e,(t,n)=>{((e,t)=>{const n=e[t].depth,o=e=>e.depth===n&&!e.dirty,r=e=>e.depth<n;return C(T(e.slice(0,t)),o,r).orThunk(()=>C(e.slice(t+1),o,r))})(e,n).fold(()=>{t.dirty&&xt(t)&&(e=>{e.listAttributes=((e,t)=>{const n={};var o;return((e,t,n,o)=>{M(e,(e,r)=>{(t(e,r)?n:o)(e,r)})})(e,t,(o=n,(e,t)=>{o[t]=e}),u),n})(e.listAttributes,(e,t)=>"start"!==t)})(t)},e=>{return o=e,void(xt(n=t)&&xt(o)&&(n.listType=o.listType,n.listAttributes={...o.listAttributes}));var n,o})}),e),Dt=(e,t,n,o)=>{var r,a;if(8===X(a=o)||"#comment"===J(a))return[{depth:e+1,content:null!==(r=o.dom.nodeValue)&&void 0!==r?r:"",dirty:!1,isSelected:!1,isComment:!0}];t.each(e=>{Z(e.start,o)&&n.set(!0)});const i=((e,t,n)=>ae(e).filter(te).map(o=>({depth:t,dirty:!1,isSelected:n,content:St(e),itemAttributes:ge(e),listAttributes:ge(o),listType:J(o),isInPreviousLi:!1})))(o,e,n.get());t.each(e=>{Z(e.end,o)&&n.set(!1)});const l=ce(o).filter(At).map(o=>Nt(e,t,n,o)).getOr([]);return i.toArray().concat(l)},Mt=(e,t,n,o)=>se(o).filter(At).fold(()=>Dt(e,t,n,o),r=>{const a=w(ie(o),(o,a,i)=>{if(0===i)return o;if(W(a,"LI"))return o.concat(Dt(e,t,n,a));{const t={isFragment:!0,depth:e,content:[a],isSelected:!1,dirty:!1,parentListType:J(r)};return o.concat(t)}},[]);return Nt(e,t,n,r).concat(a)}),Nt=(e,t,n,o)=>S(ie(o),o=>(At(o)?Nt:Mt)(e+1,t,n,o)),Pt=(e,t,n)=>{const o=((e,t)=>{const n=(()=>{let e=!1;return{get:()=>e,set:t=>{e=t}}})();return A(e,e=>({sourceList:e,entries:Nt(0,t,n,e)}))})(t,(e=>{const t=A(ut(e),G);return R(E(t,f(kt)),E(T(t),f(kt)),(e,t)=>({start:e,end:t}))})(e));k(o,t=>{((e,t)=>{k(x(e,Et),e=>((e,t)=>{switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}t.dirty=!0})(t,e))})(t.entries,n);const o=((e,t)=>S(((e,t)=>{if(0===e.length)return[];{let n=t(e[0]);const o=[];let r=[];for(let a=0,i=e.length;a<i;a++){const i=e[a],l=t(i);l!==n&&(o.push(r),r=[]),n=l,r.push(i)}return 0!==r.length&&o.push(r),o}})(t,Ct),t=>B(t).exists(Ct)?((e,t)=>{const n=Lt(t);return Ot(e.contentDocument,n).toArray()})(e,t):((e,t)=>{const n=Lt(t);return A(n,t=>{const n=wt(t)?xe([H(`\x3c!--${t.content}--\x3e`)]):xe(t.content),o=xt(t)?t.itemAttributes:{};return G(Qe(e,n.dom,o))})})(e,t)))(e,t.entries);var r;k(o,t=>{_t(e,"Indent"===n?"IndentList":"OutdentList",t.dom)}),r=t.sourceList,k(o,e=>{de(r,e)}),be(t.sourceList)})},Rt=(e,t)=>{const n=_e((e=>{const t=(e=>{const t=ft(e,e.selection.getStart()),n=x(e.selection.getSelectedBlocks(),Fe);return t.toArray().concat(n)})(e),n=(e=>{const t=e.selection.getStart();return e.dom.getParents(t,"ol,ul",pt(e,t))})(e);return E(n,e=>{return t=G(e),ae(t).exists(e=>ze(e.dom)&&se(e).exists(e=>!Re(e.dom))&&ce(e).exists(e=>!Re(e.dom)));var t}).fold(()=>mt(e,t),e=>[e])})(e)),o=_e((e=>x(ut(e),Ue))(e));let r=!1;if(n.length||o.length){const a=e.selection.getBookmark();Pt(e,n,t),((e,t,n)=>{k(n,"Indent"===t?rt:t=>ot(e,t))})(e,t,o),e.selection.moveToBookmark(a),e.selection.setRng(it(e.selection.getRng())),e.nodeChanged(),r=!0}return r},Ft=(e,t)=>!(e=>{const t=ct(e);return bt(e,t)||!e.selection.isEditable()})(e)&&Rt(e,t),Vt=e=>Ft(e,"Indent"),zt=e=>Ft(e,"Outdent"),Ut=e=>Ft(e,"Flatten");var jt=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");const Ht=Oe.DOM,qt=e=>{const t={},n=n=>{let o=e[n?"startContainer":"endContainer"],r=e[n?"startOffset":"endOffset"];if(Pe(o)){const e=Ht.create("span",{"data-mce-type":"bookmark"});o.hasChildNodes()?(r=Math.min(r,o.childNodes.length-1),n?o.insertBefore(e,o.childNodes[r]):Ht.insertAfter(e,o.childNodes[r])):o.appendChild(e),o=e,r=0}t[n?"startContainer":"endContainer"]=o,t[n?"startOffset":"endOffset"]=r};return n(!0),e.collapsed||n(),t},Gt=e=>{const t=t=>{let n=e[t?"startContainer":"endContainer"],o=e[t?"startOffset":"endOffset"];if(n){if(Pe(n)&&n.parentNode){const e=n;o=(e=>{var t;let n=null===(t=e.parentNode)||void 0===t?void 0:t.firstChild,o=0;for(;n;){if(n===e)return o;Pe(n)&&"bookmark"===n.getAttribute("data-mce-type")||o++,n=n.nextSibling}return-1})(n),n=n.parentNode,Ht.remove(e),!n.hasChildNodes()&&Ht.isBlock(n)&&n.appendChild(Ht.create("br"))}e[t?"startContainer":"endContainer"]=n,e[t?"startOffset":"endOffset"]=o}};t(!0),t();const n=Ht.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),it(n)},Kt=e=>{switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},Zt=(e,t)=>{Le.each(t,(t,n)=>{e.setAttribute(n,t)})},Wt=(e,t,n)=>{((e,t,n)=>{const o=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",o)})(e,t,n),((e,t,n)=>{Zt(t,n["list-attributes"]),Le.each(e.select("li",t),e=>{Zt(e,n["list-item-attributes"])})})(e,t,n)},$t=(e,t)=>l(t)&&!Ge(t,e.schema.getBlockElements()),Yt=(e,t,n,o)=>{let r=t[n?"startContainer":"endContainer"];const a=t[n?"startOffset":"endOffset"];Pe(r)&&(r=r.childNodes[Math.min(a,r.childNodes.length-1)]||r),!n&&He(r.nextSibling)&&(r=r.nextSibling);const i=(t,n)=>{var r;const a=new Ie(t,(t=>{for(;!e.dom.isBlock(t)&&t.parentNode&&o!==t;)t=t.parentNode;return t})(t)),i=n?"next":"prev";let l;for(;l=a[i]();)if(!Ke(e,l)&&!U(l.textContent)&&0!==(null===(r=l.textContent)||void 0===r?void 0:r.length))return g.some(l);return g.none()};if(n&&Ne(r))if(U(r.textContent))r=i(r,!1).getOr(r);else for(null!==r.parentNode&&$t(e,r.parentNode)&&(r=r.parentNode);null!==r.previousSibling&&($t(e,r.previousSibling)||Ne(r.previousSibling));)r=r.previousSibling;if(!n&&Ne(r))if(U(r.textContent))r=i(r,!0).getOr(r);else for(null!==r.parentNode&&$t(e,r.parentNode)&&(r=r.parentNode);null!==r.nextSibling&&($t(e,r.nextSibling)||Ne(r.nextSibling));)r=r.nextSibling;for(;r.parentNode!==o;){const t=r.parentNode;if(qe(e,r))return r;if(/^(TD|TH)$/.test(t.nodeName))return r;r=t}return r},Jt=(e,t,n)=>{const o=e.selection.getRng();let r="LI";const a=pt(e,((e,t)=>{const n=e.selection.getStart(!0),o=Yt(e,t,!0,e.getBody());return r=G(o),a=G(t.commonAncestorContainer),i=r,l=function(e,...t){return(...n)=>{const o=t.concat(n);return e.apply(null,o)}}(Z,a),Ce(i,l,void 0).isSome()?t.commonAncestorContainer:n;var r,a,i,l})(e,o)),i=e.dom;if("false"===i.getContentEditable(e.selection.getNode()))return;"DL"===(t=t.toUpperCase())&&(r="DT");const l=qt(o),s=x(((e,t,n)=>{const o=[],r=e.dom,a=Yt(e,t,!0,n),i=Yt(e,t,!1,n);let l;const s=[];for(let e=a;e&&(s.push(e),e!==i);e=e.nextSibling);return Le.each(s,t=>{var a;if(qe(e,t))return o.push(t),void(l=null);if(r.isBlock(t)||He(t))return He(t)&&r.remove(t),void(l=null);const i=t.nextSibling;jt.isBookmarkNode(t)&&(Re(i)||qe(e,i)||!i&&t.parentNode===n)?l=null:(l||(l=r.create("p"),null===(a=t.parentNode)||void 0===a||a.insertBefore(l,t),o.push(l)),l.appendChild(t))}),o})(e,o,a),e.dom.isEditable);Le.each(s,o=>{let a;const l=o.previousSibling,s=o.parentNode;ze(s)||(l&&Re(l)&&l.nodeName===t&&((e,t,n)=>{const o=e.getStyle(t,"list-style-type");let r=n?n["list-style-type"]:"";return r=null===r?"":r,o===r})(i,l,n)?(a=l,o=i.rename(o,r),l.appendChild(o)):(a=i.create(t),s.insertBefore(a,o),a.appendChild(o),o=i.rename(o,r)),((e,t)=>{Le.each(["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"],n=>e.setStyle(t,n,""))})(i,o),Wt(i,a,n),Qt(e.dom,a))}),e.selection.setRng(Gt(l))},Xt=(e,t,n)=>{return((e,t)=>Re(e)&&e.nodeName===(null==t?void 0:t.nodeName))(t,n)&&((e,t,n)=>e.getStyle(t,"list-style-type",!0)===e.getStyle(n,"list-style-type",!0))(e,t,n)&&(o=n,t.className===o.className);var o},Qt=(e,t)=>{let n,o=t.nextSibling;if(Xt(e,t,o)){const r=o;for(;n=r.firstChild;)t.appendChild(n);e.remove(r)}if(o=t.previousSibling,Xt(e,t,o)){const r=o;for(;n=r.lastChild;)t.insertBefore(n,t.firstChild);e.remove(r)}},en=(e,t,n,o)=>{if(t.nodeName!==n){const r=e.dom.rename(t,n);Wt(e.dom,r,o),_t(e,Kt(n),r)}else Wt(e.dom,t,o),_t(e,Kt(n),t)},tn=(e,t,n,o)=>{if(t.classList.forEach((e,n,o)=>{e.startsWith("tox-")&&(o.remove(e),0===o.length&&t.removeAttribute("class"))}),t.nodeName!==n){const r=e.dom.rename(t,n);Wt(e.dom,r,o),_t(e,Kt(n),r)}else Wt(e.dom,t,o),_t(e,Kt(n),t)},nn=e=>"list-style-type"in e,on=(e,t,n)=>{const o=ct(e);if(vt(e,o))return;const a=(e=>{const t=ct(e),n=e.selection.getSelectedBlocks();return((e,t)=>l(e)&&1===t.length&&t[0]===e)(t,n)?(e=>x(e.querySelectorAll(st),Re))(t):x(n,e=>Re(e)&&t!==e)})(e),i=r(n)?n:{};a.length>0?((e,t,n,o,r)=>{const a=Re(t);if(!a||t.nodeName!==o||nn(r)||gt(t)){Jt(e,o,r);const i=qt(e.selection.getRng()),l=a?[t,...n]:n,s=a&>(t)?tn:en;Le.each(l,t=>{s(e,t,o,r)}),e.selection.setRng(Gt(i))}else Ut(e)})(e,o,a,t,i):((e,t,n,o)=>{if(t!==e.getBody())if(t)if(t.nodeName!==n||nn(o)||gt(t)){const r=qt(e.selection.getRng());gt(t)&&t.classList.forEach((e,n,o)=>{e.startsWith("tox-")&&(o.remove(e),0===o.length&&t.removeAttribute("class"))}),Wt(e.dom,t,o);const a=e.dom.rename(t,n);Qt(e.dom,a),e.selection.setRng(Gt(r)),Jt(e,n,o),_t(e,Kt(n),a)}else Ut(e);else Jt(e,n,o),_t(e,Kt(n),t)})(e,o,t,i)},rn=Oe.DOM,an=(e,t)=>{const n=Le.grep(e.select("ol,ul",t));Le.each(n,t=>{((e,t)=>{const n=t.parentElement;if(n&&"LI"===n.nodeName&&n.firstChild===t){const o=n.previousSibling;o&&"LI"===o.nodeName?(o.appendChild(t),Ze(e,n)&&rn.remove(n)):rn.setStyle(n,"listStyleType","none")}if(Re(n)){const e=n.previousSibling;e&&"LI"===e.nodeName&&e.appendChild(t)}})(e,t)})},ln=(e,t,n,o)=>{let r=t.startContainer;const a=t.startOffset;if(Ne(r)&&(n?a<r.data.length:a>0))return r;const i=e.schema.getNonEmptyElements();Pe(r)&&(r=Te.getNode(r,a));const l=new Ie(r,o);n&&((e,t)=>!!He(t)&&e.isBlock(t.nextSibling)&&!He(t.previousSibling))(e.dom,r)&&l.next();const s=n?l.next.bind(l):l.prev2.bind(l);for(;r=s();){if("LI"===r.nodeName&&!r.hasChildNodes())return r;if(i[r.nodeName])return r;if(Ne(r)&&r.data.length>0)return r}return null},sn=(e,t)=>{const n=t.childNodes;return 1===n.length&&!Re(n[0])&&e.isBlock(n[0])},cn=e=>g.from(e).map(G).filter(ee).exists(e=>((e,t=!1)=>{return Ae(e)?e.dom.isContentEditable:(n=e,we((e,t)=>K(e,t),Se,n,"[contenteditable]",void 0)).fold(d(t),e=>"true"===(e=>e.dom.contentEditable)(e));var n})(e)&&!y(["details"],J(e))),un=(e,t,n)=>{let o;const r=sn(e,n)?n.firstChild:n;if(((e,t)=>{sn(e,t)&&cn(t.firstChild)&&e.remove(t.firstChild,!0)})(e,t),!Ze(e,t,!0))for(;o=t.firstChild;)r.appendChild(o)},dn=(e,t,n)=>{let o;const r=t.parentNode;if(!We(e,t)||!We(e,n))return;Re(n.lastChild)&&(o=n.lastChild),r===n.lastChild&&He(r.previousSibling)&&e.remove(r.previousSibling);const a=n.lastChild;a&&He(a)&&t.hasChildNodes()&&e.remove(a),Ze(e,n,!0)&&he(G(n)),un(e,t,n),o&&n.appendChild(o);const i=((e,t)=>{const n=e.dom,o=t.dom;return n!==o&&n.contains(o)})(G(n),G(t))?e.getParents(t,Re,n):[];e.remove(t),k(i,t=>{Ze(e,t)&&t!==e.getRoot()&&e.remove(t)})},pn=(e,t)=>{const n=e.dom,o=e.selection,r=o.getStart(),a=dt(e,r),i=n.getParent(o.getStart(),"LI",a);if(i){const r=i.parentElement;if(r===e.getBody()&&Ze(n,r))return!0;const l=it(o.getRng()),s=n.getParent(ln(e,l,t,a),"LI",a),c=s&&(t?n.isChildOf(i,s):n.isChildOf(s,i));if(s&&s!==i&&!c)return e.undoManager.transact(()=>{var n,o;t?((e,t,n,o)=>{const r=e.dom;if(r.isEmpty(o))((e,t,n)=>{he(G(n)),dn(e.dom,t,n),e.selection.setCursorLocation(n,0)})(e,n,o);else{const a=qt(t);dn(r,n,o),e.selection.setRng(Gt(a))}})(e,l,s,i):(null===(o=(n=i).parentNode)||void 0===o?void 0:o.firstChild)===n?zt(e):((e,t,n,o)=>{const r=qt(t);dn(e.dom,n,o);const a=Gt(r);e.selection.setRng(a)})(e,l,i,s)}),!0;if(c&&!t&&s!==i){const t=l.commonAncestorContainer.parentElement;return!(!t||n.isChildOf(s,t)||(e.undoManager.transact(()=>{const o=qt(l);un(n,t,s),t.remove();const r=Gt(o);e.selection.setRng(r)}),0))}if(!s&&!t&&0===l.startOffset&&0===l.endOffset)return e.undoManager.transact(()=>{Ut(e)}),!0}return!1},fn=e=>{const t=e.selection.getStart(),n=dt(e,t);return e.dom.getParent(t,"LI,DT,DD",n)||ut(e).length>0},mn=(e,t)=>{const n=e.selection;return!vt(e,n.getNode())&&(n.isCollapsed()?((e,t)=>pn(e,t)||((e,t)=>{const n=e.dom,o=e.selection.getStart(),r=dt(e,o),a=n.getParent(o,n.isBlock,r);if(a&&n.isEmpty(a,void 0,{checkRootAsContent:!0})){const o=it(e.selection.getRng()),i=ln(e,o,t,r),l=n.getParent(i,"LI",r);
2if(i&&l){const s=e=>y(["td","th","caption"],J(e)),c=e=>e.dom===r;return!!((e,t,n=p)=>R(e,t,n).getOr(e.isNone()&&t.isNone()))(Ee(G(l),s,c),Ee(G(o.startContainer),s,c),Z)&&(e.undoManager.transact(()=>{const o=l.parentNode;((e,t,n)=>{const o=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),o&&e.isEmpty(o)&&e.remove(o)})(n,a,r),Qt(n,o),e.selection.select(i,!0),e.selection.collapse(t)}),!0)}}return!1})(e,t))(e,t):(e=>!!fn(e)&&(e.undoManager.transact(()=>{let t=!0;const n=()=>t=!1;e.on("input",n),e.execCommand("Delete"),e.off("input",n),t&&e.dispatch("input"),an(e.dom,e.getBody())}),!0))(e))},gn=e=>{const t=T(V(e).split("")),n=A(t,(e,t)=>{const n=e.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,t)*n});return w(n,(e,t)=>e+t,0)},hn=e=>{if(--e<0)return"";{const t=e%26,n=Math.floor(e/26);return hn(n)+String.fromCharCode("A".charCodeAt(0)+t)}},bn=e=>{const t=parseInt(e.start,10);return P(e.listStyleType,"upper-alpha")?hn(t):P(e.listStyleType,"lower-alpha")?hn(t).toLowerCase():e.start},vn=(e,t)=>()=>{const n=ct(e);return l(n)&&n.nodeName===t},yn=e=>{e.addCommand("mceListProps",()=>{(e=>{const t=ct(e);Ve(t)&&!vt(e,t)&&e.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:bn({start:e.dom.getAttrib(t,"start","1"),listStyleType:g.from(e.dom.getStyle(t,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:t=>{(e=>{switch((e=>/^[0-9]+$/.test(e)?2:/^[A-Z]+$/.test(e)?0:/^[a-z]+$/.test(e)?1:e.length>0?4:3)(e)){case 2:return g.some({listStyleType:g.none(),start:e});case 0:return g.some({listStyleType:g.some("upper-alpha"),start:gn(e).toString()});case 1:return g.some({listStyleType:g.some("lower-alpha"),start:gn(e).toString()});case 3:return g.some({listStyleType:g.none(),start:""});case 4:return g.none()}})(t.getData().start).each(t=>{e.execCommand("mceListUpdate",!1,{attrs:{start:"1"===t.start?"":t.start},styles:{"list-style-type":t.listStyleType.getOr("")}})}),t.close()}})})(e)})};var _n=tinymce.util.Tools.resolve("tinymce.html.Node");const An=e=>3===e.type,kn=e=>0===e.length,xn=e=>{const t=(t,n)=>{const o=_n.create("li");k(t,e=>o.append(e)),n?e.insert(o,n,!0):e.append(o)},n=w(e.children(),(e,n)=>An(n)?[...e,n]:kn(e)||An(n)?e:(t(e,n),[]),[]);kn(n)||t(n)},wn=(e,t)=>n=>(n.setEnabled(e.selection.isEditable()),yt(e,o=>{n.setActive(ht(o.parents,t)),n.setEnabled(!vt(e,o.element)&&e.selection.isEditable())})),Cn=(e,t)=>n=>yt(e,o=>n.setEnabled(ht(o.parents,t)&&!vt(e,o.element)));e.add("lists",e=>((e=>{(0,e.options.register)("lists_indent_on_tab",{processor:"boolean",default:!0})})(e),(e=>{e.on("PreInit",()=>{const{parser:t}=e;t.addNodeFilter("ul,ol",e=>k(e,xn))})})(e),e.hasPlugin("rtc",!0)?yn(e):((e=>{Ye(e)&&(e=>{e.on("keydown",t=>{t.keyCode!==Be.TAB||Be.metaKeyPressed(t)||e.undoManager.transact(()=>{(t.shiftKey?zt(e):Vt(e))&&t.preventDefault()})})})(e),(e=>{e.on("ExecCommand",t=>{const n=t.command.toLowerCase();"delete"!==n&&"forwarddelete"!==n||!fn(e)||an(e.dom,e.getBody())}),e.on("keydown",t=>{t.keyCode===Be.BACKSPACE?mn(e,!1)&&t.preventDefault():t.keyCode===Be.DELETE&&mn(e,!0)&&t.preventDefault()})})(e)})(e),(e=>{e.on("BeforeExecCommand",t=>{const n=t.command.toLowerCase();"indent"===n?Vt(e):"outdent"===n&&zt(e)}),e.addCommand("InsertUnorderedList",(t,n)=>{on(e,"UL",n)}),e.addCommand("InsertOrderedList",(t,n)=>{on(e,"OL",n)}),e.addCommand("InsertDefinitionList",(t,n)=>{on(e,"DL",n)}),e.addCommand("RemoveList",()=>{Ut(e)}),yn(e),e.addCommand("mceListUpdate",(t,n)=>{r(n)&&((e,t)=>{const n=ct(e);null===n||vt(e,n)||e.undoManager.transact(()=>{r(t.styles)&&e.dom.setStyles(n,t.styles),r(t.attrs)&&M(t.attrs,(t,o)=>e.dom.setAttrib(n,o,t))})})(e,n)}),e.addQueryStateHandler("InsertUnorderedList",vn(e,"UL")),e.addQueryStateHandler("InsertOrderedList",vn(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",vn(e,"DL"))})(e)),(e=>{const t=t=>()=>e.execCommand(t);e.hasPlugin("advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:t("InsertOrderedList"),onSetup:wn(e,"OL")}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:t("InsertUnorderedList"),onSetup:wn(e,"UL")}))})(e),(e=>{const t={text:"List properties...",icon:"ordered-list",onAction:()=>e.execCommand("mceListProps"),onSetup:Cn(e,"OL")};e.ui.registry.addMenuItem("listprops",t),e.ui.registry.addContextMenu("lists",{update:t=>{const n=ct(e,t);return Ve(n)?["listprops"]:[]}})})(e),(e=>({backspaceDelete:t=>{mn(e,t)}}))(e)))}()},75(e,t,n){n(934)},934(){!function(){"use strict";const e=Object.getPrototypeOf,t=(e,t,n)=>{var o;return!!n(e,t.prototype)||(null===(o=e.constructor)||void 0===o?void 0:o.name)===t.name},n=e=>n=>(e=>{const n=typeof e;return null===e?"null":"object"===n&&Array.isArray(e)?"array":"object"===n&&t(e,String,(e,t)=>t.isPrototypeOf(e))?"string":n})(n)===e,o=e=>t=>typeof t===e,r=e=>t=>e===t,a=n("string"),i=n("object"),l=n=>((n,o)=>i(n)&&t(n,o,(t,n)=>e(t)===n))(n,Object),s=n("array"),c=r(null),u=o("boolean"),d=r(void 0),p=e=>null==e,f=e=>!p(e),m=o("function"),g=o("number"),h=(e,t)=>{if(s(e)){for(let n=0,o=e.length;n<o;
vendor: 3,658 bytes, line 2
2++n)if(!t(e[n]))return!1;return!0}return!1},b=()=>{},v=e=>()=>e(),y=(e,t)=>(...n)=>e(t.apply(null,n)),_=e=>()=>e,A=e=>e,k=(e,t)=>e===t;function x(e,...t){return(...n)=>{const o=t.concat(n);return e.apply(null,o)}}const w=e=>t=>!e(t),C=e=>()=>{throw new Error(e)},E=e=>e(),S=_(!1),T=_(!0);class I{constructor(e,t){this.tag=e,this.value=t}static some(e){return new I(!0,e)}static none(){return I.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?I.some(e(this.value)):I.none()}bind(e){return this.tag?e(this.value):I.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:I.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return f(e)?I.some(e):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const B=Array.prototype.slice,O=Array.prototype.indexOf,L=Array.prototype.push,D=(e,t)=>O.call(e,t),M=(e,t)=>D(e,t)>-1,N=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},P=(e,t)=>{const n=[];for(let o=0;o<e;o++)n.push(t(o));return n},R=(e,t)=>{const n=[];for(let o=0;o<e.length;o+=t){const r=B.call(e,o,o+t);n.push(r)}return n},F=(e,t)=>{const n=e.length,o=new Array(n);for(let r=0;r<n;r++){const n=e[r];o[r]=t(n,r)}return o},V=(e,t)=>{for(let n=0,o=e.length;n<o;n++)t(e[n],n)},z=(e,t)=>{const n=[],o=[];for(let r=0,a=e.length;r<a;r++){const a=e[r];(t(a,r)?n:o).push(a)}return{pass:n,fail:o}},U=(e,t)=>{const n=[];for(let o=0,r=e.length;o<r;o++){const r=e[o];t(r,o)&&n.push(r)}return n},j=(e,t,n)=>(((e,t)=>{for(let n=e.length-1;n>=0;n--)t(e[n],n)})(e,(e,o)=>{n=t(n,e,o)}),n),H=(e,t,n)=>(V(e,(e,o)=>{n=t(n,e,o)}),n),q=(e,t)=>((e,t,n)=>{for(let o=0,r=e.length;o<r;o++){const r=e[o];if(t(r,o))return I.some(r);if(n(r,o))break}return I.none()})(e,t,S),G=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return I.some(n);return I.none()},K=e=>{const t=[];for(let n=0,o=e.length;n<o;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);L.apply(t,e[n])}return t},Z=(e,t)=>K(F(e,t)),W=(e,t)=>{for(let n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0},$=e=>{const t=B.call(e,0);return t.reverse(),t},Y=(e,t)=>U(e,e=>!M(t,e)),J=(e,t)=>{const n={};for(let o=0,r=e.length;o<r;o++){const r=e[o];n[String(r)]=t(r,o)}return n},X=e=>[e],Q=(e,t)=>{const n=B.call(e,0);return n.sort(t),n},ee=(e,t)=>t>=0&&t<e.length?I.some(e[t]):I.none(),te=e=>ee(e,0),ne=e=>ee(e,e.length-1),oe=m(Array.from)?Array.from:e=>B.call(e),re=(e,t)=>{for(let n=0;n<e.length;n++){const o=t(e[n],n);if(o.isSome())return o}return I.none()},ae=Object.keys,ie=Object.hasOwnProperty,le=(e,t)=>{const n=ae(e);for(let o=0,r=n.length;o<r;o++){const r=n[o];t(e[r],r)}},se=(e,t)=>ce(e,(e,n)=>({k:n,v:t(e,n)})),ce=(e,t)=>{const n={};return le(e,(e,o)=>{const r=t(e,o);n[r.k]=r.v}),n},ue=e=>(t,n)=>{e[n]=t},de=(e,t,n,o)=>{le(e,(e,r)=>{(t(e,r)?n:o)(e,r)})},pe=(e,t)=>{const n={};return de(e,t,ue(n),b),n},fe=(e,t)=>{const n=[];return le(e,(e,o)=>{n.push(t(e,o))}),n},me=(e,t)=>{const n=ae(e);for(let o=0,r=n.length;o<r;o++){const r=n[o],a=e[r];if(t(a,r,e))return I.some(a)}return I.none()},ge=e=>fe(e,A),he=(e,t)=>be(e,t)?I.from(e[t]):I.none(),be=(e,t)=>ie.call(e,t),ve=(e,t)=>
vendor: 13,233 bytes, line 2
2be(e,t)&&void 0!==e[t]&&null!==e[t],ye=e=>{if(!s(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");const t=[],n={};return V(e,(o,r)=>{const a=ae(o);if(1!==a.length)throw new Error("one and only one name per case");const i=a[0],l=o[i];if(void 0!==n[i])throw new Error("duplicate key detected:"+i);if("cata"===i)throw new Error("cannot have a case named cata (sorry)");if(!s(l))throw new Error("case arguments must be an array");t.push(i),n[i]=(...n)=>{const o=n.length;if(o!==l.length)throw new Error("Wrong number of arguments to case "+i+". Expected "+l.length+" ("+l+"), got "+o);return{fold:(...t)=>{if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[r].apply(null,n)},match:e=>{const o=ae(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!W(t,e=>M(o,e)))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[i].apply(null,n)},log:e=>{console.log(e,{constructors:t,constructor:i,params:n})}}}}),n},_e=e=>{let t=e;return{get:()=>t,set:e=>{t=e}}},Ae=e=>{let t=I.none(),n=[];const o=e=>{r()?a(e):n.push(e)},r=()=>t.isSome(),a=e=>{t.each(t=>{setTimeout(()=>{e(t)},0)})};return e(e=>{r()||(t=I.some(e),V(n,a),n=[])}),{get:o,map:e=>Ae(t=>{o(n=>{t(e(n))})}),isReady:r}},ke={nu:Ae,pure:e=>Ae(t=>{t(e)})},xe=e=>{setTimeout(()=>{throw e},0)},we=e=>{const t=t=>{e().then(t,xe)};return{map:t=>we(()=>e().then(t)),bind:t=>we(()=>e().then(e=>t(e).toPromise())),anonBind:t=>we(()=>e().then(()=>t.toPromise())),toLazy:()=>ke.nu(t),toCached:()=>{let t=null;return we(()=>(null===t&&(t=e()),t))},toPromise:e,get:t}},Ce=e=>we(()=>new Promise(e)),Ee=e=>we(()=>Promise.resolve(e)),Se=e=>{const t=t=>t(e),n=_(e),o=()=>r,r={tag:!0,inner:e,fold:(t,n)=>n(e),isValue:T,isError:S,map:t=>Ie.value(t(e)),mapError:o,bind:t,exists:t,forall:t,getOr:n,or:o,getOrThunk:n,orThunk:o,getOrDie:n,each:t=>{t(e)},toOptional:()=>I.some(e)};return r},Te=e=>{const t=()=>n,n={tag:!1,inner:e,fold:(t,n)=>t(e),isValue:S,isError:T,map:t,mapError:t=>Ie.error(t(e)),bind:t,exists:S,forall:T,getOr:A,or:A,getOrThunk:E,orThunk:E,getOrDie:C(String(e)),each:b,toOptional:I.none};return n},Ie={value:Se,error:Te,fromOption:(e,t)=>e.fold(()=>Te(t),Se)},Be=e=>({...e,toCached:()=>Be(e.toCached()),bindFuture:t=>Be(e.bind(e=>e.fold(e=>Ee(Ie.error(e)),e=>t(e)))),bindResult:t=>Be(e.map(e=>e.bind(t))),mapResult:t=>Be(e.map(e=>e.map(t))),mapError:t=>Be(e.map(e=>e.mapError(t))),foldResult:(t,n)=>e.map(e=>e.fold(t,n)),withTimeout:(t,n)=>Be(Ce(o=>{let r=!1;const a=setTimeout(()=>{r=!0,o(Ie.error(n()))},t);e.get(e=>{r||(clearTimeout(a),o(e))})}))}),Oe=e=>Be(Ce(e)),Le="undefined"!=typeof window?window:Function("return this;")(),De=(e,t,n,o)=>{const r=e+t;return r>o?n:r<n?o:r},Me=(e,t,n)=>Math.min(Math.max(e,t),n);let Ne=0;const Pe=e=>{const t=(new Date).getTime(),n=Math.floor(window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295*1e9);return Ne++,e+"_"+n+Ne+String(t)},Re=e=>(...t)=>{if(0===t.length)throw new Error("Can't merge zero objects");const n={};for(let o=0;o<t.length;o++){const r=t[o];for(const t in r)be(r,t)&&(n[t]=e(n[t],r[t]))}return n},Fe=Re((e,t)=>l(e)&&l(t)?Fe(e,t):t),Ve=Re((e,t)=>t),ze=(e,t,n=k)=>e.exists(e=>n(e,t)),Ue=e=>{const t=[],n=e=>{t.push(e)};for(let t=0;t<e.length;t++)e[t].each(n);return t},je=(e,t,n)=>e.isSome()&&t.isSome()?I.some(n(e.getOrDie(),t.getOrDie())):I.none(),He=(e,t)=>null!=e?I.some(t(e)):I.none(),qe=(e,t)=>e?I.some(t):I.none(),Ge=(e,t)=>((e,t)=>{let n=null!=t?t:Le;for(let t=0;t<e.length&&null!=n;++t)n=n[e[t]];return n})(e.split("."),t);ye([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Ke=e=>{const t=_e(I.none()),n=()=>t.get().each(e);return{clear:()=>{n(),t.set(I.none())},isSet:()=>t.get().isSome(),get:()=>t.get(),set:e=>{n(),t.set(I.some(e))}}},Ze=()=>Ke(e=>e.unbind()),We=()=>{const e=Ke(b);return{...e,on:t=>e.get().each(t)}},$e=(e,t,n)=>""===t||e.length>=t.length&&e.substr(n,n+t.length)===t,Ye=(e,t)=>Xe(e,t)?((e,t)=>e.substring(t))(e,t.length):e,Je=(e,t,n=0,o)=>{const r=e.indexOf(t,n);return-1!==r&&(!!d(o)||r+t.length<=o)},Xe=(e,t)=>$e(e,t,0),Qe=(e,t)=>$e(e,t,e.length-t.length),et=(ht=/^\s+|\s+$/g,e=>e.replace(ht,"")),tt=e=>e.length>0,nt=e=>!tt(e),ot=(e,t)=>{let n=null;const o=()=>{c(n)||(clearTimeout(n),n=null)};return{cancel:o,throttle:(...r)=>{o(),n=setTimeout(()=>{n=null,e.apply(null,r)},t)}}},rt=e=>{let t,n=!1;return(...o)=>(n||(n=!0,t=e.apply(null,o)),t)},at=e=>{if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},it=(e,t)=>{const n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return at(n.childNodes[0])},lt=(e,t)=>{const n=(t||document).createElement(e);return at(n)},st=(e,t)=>{const n=(t||document).createTextNode(e);return at(n)},ct=at,ut=(e,t,n)=>{const o=e.document.createRange();var r;return r=o,t.fold(e=>{r.setStartBefore(e.dom)},(e,t)=>{r.setStart(e.dom,t)},e=>{r.setStartAfter(e.dom)}),((e,t)=>{t.fold(t=>{e.setEndBefore(t.dom)},(t,n)=>{e.setEnd(t.dom,n)},t=>{e.setEndAfter(t.dom)})})(o,n),o},dt=(e,t,n,o,r)=>{const a=e.document.createRange();return a.setStart(t.dom,n),a.setEnd(o.dom,r),a},pt=e=>({left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}),ft=ye([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),mt=(e,t,n)=>t(ct(n.startContainer),n.startOffset,ct(n.endContainer),n.endOffset),gt=(e,t)=>((e,t)=>{const n=((e,t)=>t.match({domRange:e=>({ltr:_(e),rtl:I.none}),relative:(t,n)=>({ltr:rt(()=>ut(e,t,n)),rtl:rt(()=>I.some(ut(e,n,t)))}),exact:(t,n,o,r)=>({ltr:rt(()=>dt(e,t,n,o,r)),rtl:rt(()=>I.some(dt(e,o,r,t,n)))})}))(e,t);return((e,t)=>{const n=t.ltr();return n.collapsed?t.rtl().filter(e=>!1===e.collapsed).map(e=>ft.rtl(ct(e.endContainer),e.endOffset,ct(e.startContainer),e.startOffset)).getOrThunk(()=>mt(0,ft.ltr,n)):mt(0,ft.ltr,n)})(0,n)})(e,t).match({ltr:(t,n,o,r)=>{const a=e.document.createRange();return a.setStart(t.dom,n),a.setEnd(o.dom,r),a},rtl:(t,n,o,r)=>{const a=e.document.createRange();return a.setStart(o.dom,r),a.setEnd(t.dom,n),a}});var ht;ft.ltr,ft.rtl;const bt=(e,t)=>{const n=e.dom;if(1!==n.nodeType)return!1;{const e=n;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},vt=e=>1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount,yt=(e,t)=>{const n=void 0===t?document:t.dom;return vt(n)?I.none():I.from(n.querySelector(e)).map(ct)},_t=(e,t)=>e.dom===t.dom,At=(e,t)=>{const n=e.dom,o=t.dom;return n!==o&&n.contains(o)},kt=()=>xt(0,0),xt=(e,t)=>({major:e,minor:t}),wt={nu:xt,detect:(e,t)=>{const n=String(t).toLowerCase();return 0===e.length?kt():((e,t)=>{const n=((e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];if(o.test(t))return o}})(e,t);if(!n)return{major:0,minor:0};const o=e=>Number(t.replace(n,"$"+e));return xt(o(1),o(2))})(e,n)},unknown:kt},Ct=(e,t)=>{const n=String(t).toLowerCase();return q(e,e=>e.search(n))},Et=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,St=e=>t=>Je(t,e),Tt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>Je(e,"edge/")&&Je(e,"chrome")&&Je(e,"safari")&&Je(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Et],search:e=>Je(e,"chrome")&&!Je(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>Je(e,"msie")||Je(e,"trident")},{name:"Opera",versionRegexes:[Et,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:St("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:St("firefox")},{name:"Safari",versionRegexes:[Et,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(Je(e,"safari")||Je(e,"mobile/"))&&Je(e,"applewebkit")}],It=[{name:"Windows",search:St("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>Je(e,"iphone")||Je(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:St("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:St("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:St("linux"),versionRegexes:[]},{name:"Solaris",search:St("sunos"),versionRegexes:[]},{name:"FreeBSD",search:St("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:St("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Bt={browsers:_(Tt),oses:_(It)},Ot="Edge",Lt="Chromium",Dt="Opera",Mt="Firefox",Nt="Safari",Pt=e=>{const t=e.current,n=e.version,o=e=>()=>t===e;return{current:t,version:n,isEdge:o(Ot),isChromium:o(Lt),isIE:o("IE"),isOpera:o(Dt),isFirefox:o(Mt),isSafari:o(Nt)}},Rt=()=>Pt({current:void 0,version:wt.unknown()}),Ft=Pt,Vt=(_(Ot),_(Lt),_("IE"),_(Dt),_(Mt),_(Nt),"Windows"),zt="Android",Ut="Linux",jt="macOS",Ht="Solaris",qt="FreeBSD",Gt="ChromeOS",Kt=e=>{const t=e.current,n=e.version,o=e=>()=>t===e;return{current:t,version:n,isWindows:o(Vt),isiOS:o("iOS"),isAndroid:o(zt),isMacOS:o(jt),isLinux:o(Ut),isSolaris:o(Ht),isFreeBSD:o(qt),isChromeOS:o(Gt)}},Zt=()=>Kt({current:void 0,version:wt.unknown()}),Wt=Kt,$t=(_(Vt),_("iOS"),_(zt),_(Ut),_(jt),_(Ht),_(qt),_(Gt),e=>window.matchMedia(e).matches);let Yt=rt(()=>((e,t,n)=>{const o=Bt.browsers(),r=Bt.oses(),a=t.bind(e=>((e,t)=>re(t.brands,t=>{const n=t.brand.toLowerCase();return q(e,e=>{var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())}).map(e=>({current:e.name,version:wt.nu(parseInt(t.version,10),0)}))}))(o,e)).orThunk(()=>((e,t)=>Ct(e,t).map(e=>{const n=wt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))(o,e)).fold(Rt,Ft),i=((e,t)=>Ct(e,t).map(e=>{const n=wt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))(r,e).fold(Zt,Wt),l=((e,t,n,o)=>{const r=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!r,i=e.isiOS()||e.isAndroid(),l=i||o("(pointer:coarse)"),s=r||!a&&i&&o("(min-device-width:768px)"),c=a||i&&!s,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!s&&!u;return{isiPad:_(r),isiPhone:_(a),isTablet:_(s),isPhone:_(c),isTouch:_(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:_(u),isDesktop:_(d)}})(i,a,e,n);return{browser:a,os:i,deviceType:l}})(window.navigator.userAgent,I.from(window.navigator.userAgentData),$t));const Jt=()=>Yt(),Xt=Object.getPrototypeOf,Qt=e=>{const t=Ge("ownerDocument.defaultView",e);return i(e)&&((e=>((e,t)=>{const n=((e,t)=>Ge(e,t))(e,t);if(null==n)throw new Error(e+" not available on this browser");return n})("HTMLElement",e))(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(Xt(e).constructor.name))},en=e=>e.dom.nodeName.toLowerCase(),tn=e=>t=>(e=>e.dom.nodeType)(t)===e,nn=e=>on(e)&&Qt(e.dom),on=tn(1),rn=tn(3),an=tn(9),ln=tn(11),sn=e=>t=>on(t)&&en(t)===e,cn=e=>ct(e.dom.ownerDocument),un=e=>an(e)?e:cn(e),dn=e=>ct(un(e).dom.documentElement),pn=e=>ct(un(e).dom.defaultView),fn=e=>I.from(e.dom.parentNode).map(ct),mn=e=>I.from(e.dom.parentElement).map(ct),gn=e=>I.from(e.dom.offsetParent).map(ct),hn=e=>F(e.dom.childNodes,ct),bn=(e,t)=>{const n=e.dom.childNodes;return I.from(n[t]).map(ct)},vn=e=>bn(e,0),yn=(e,t)=>({element:e,offset:t}),_n=(e,t)=>{const n=hn(e);return n.length>0&&t<n.length?yn(n[t],0):yn(e,t)},An=e=>ln(e)&&f(e.dom.host),kn=e=>ct(e.dom.getRootNode()),xn=e=>An(e)?e:ct(un(e).dom.body),wn=e=>{const t=kn(e);return An(t)?I.some(t):I.none()},Cn=e=>ct(e.dom.host),En=e=>{const t=ct((e=>{if(f(e.target)){const t=ct(e.target);if(on(t)&&(e=>f(e.dom.shadowRoot))(t)&&e.composed&&e.composedPath){const t=e.composedPath();if(t)return te(t)}}return I.from(e.target)})(e).getOr(e.target)),n=()=>e.stopPropagation(),o=()=>e.preventDefault(),r=y(o,n);return((e,t,n,o,r,a,i)=>({target:e,x:t,y:n,stop:o,prevent:r,kill:a,raw:i}))(t,e.clientX,e.clientY,n,o,r,e)},Sn=(e,t,n,o,r)=>{const a=((e,t)=>n=>{e(n)&&t(En(n))})(n,o);return e.dom.addEventListener(t,a,r),{unbind:x(Tn,e,t,a,r)}},Tn=(e,t,n,o)=>{e.dom.removeEventListener(t,n,o)},In=T,Bn=(e,t,n)=>((e,t,n,o)=>Sn(e,t,n,o,!1))(e,t,In,n),On=(e,t,n)=>((e,t,n,o)=>Sn(e,t,n,o,!0))(e,t,In,n),Ln=En,Dn=()=>ct(document),Mn=(e,t=!1)=>e.dom.focus({preventScroll:t}),Nn=e=>e.dom.blur(),Pn=e=>{const t=kn(e).dom;return e.dom===t.activeElement},Rn=(e=Dn())=>I.from(e.dom.activeElement).map(ct),Fn=e=>Rn(kn(e)).filter(t=>e.dom.contains(t.dom)),Vn=(e,t)=>{fn(e).each(n=>{n.dom.insertBefore(t.dom,e.dom)})},zn=(e,t)=>{const n=(e=>I.from(e.dom.nextSibling).map(ct))(e);n.fold(()=>{fn(e).each(e=>{jn(e,t)})},e=>{Vn(e,t)})},Un=(e,t)=>{vn(e).fold(()=>{jn(e,t)},n=>{e.dom.insertBefore(t.dom,n.dom)})},jn=(e,t)=>{e.dom.appendChild(t.dom)},Hn=(e,t)=>{V(t,t=>{jn(e,t)})},qn=(e,t,n)=>{if(!(a(n)||u(n)||g(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,"::
2Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Gn=(e,t,n)=>{qn(e.dom,t,n)},Kn=(e,t)=>{const n=e.dom;le(t,(e,t)=>{qn(n,t,e)})},Zn=(e,t)=>{const n=e.dom.getAttribute(t);return null===n?void 0:n},Wn=(e,t)=>I.from(Zn(e,t)),$n=(e,t)=>{const n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},Yn=(e,t)=>{e.dom.removeAttribute(t)},Jn=e=>{e.dom.textContent="",V(hn(e),e=>{Xn(e)})},Xn=e=>{const t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Qn=(e,t)=>ct(e.dom.cloneNode(t)),eo=e=>e.dom.innerHTML,to=(e,t)=>{const n=cn(e).dom,o=ct(n.createDocumentFragment()),r=((e,t)=>{const n=(t||document).createElement("div");return n.innerHTML=e,hn(ct(n))})(t,n);Hn(o,r),Jn(e),jn(e,o)},no=e=>new Promise((t,n)=>{const o=()=>{a(),t(e)},r=[Bn(e,"load",o),Bn(e,"error",()=>{a(),n("Unable to load data from image: "+e.dom.src)})],a=()=>V(r,e=>e.unbind());e.dom.complete&&o()}),oo=e=>void 0!==e.style&&m(e.style.getPropertyValue),ro=e=>{const t=rn(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;const n=t.ownerDocument;return wn(ct(t)).fold(()=>n.body.contains(t),(o=ro,r=Cn,e=>o(r(e))));var o,r},ao=()=>io(ct(document)),io=e=>{const t=e.dom.body;if(null==t)throw new Error("Body is not available yet");return ct(t)},lo=(e,t,n)=>{if(!a(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);oo(e)&&e.style.setProperty(t,n)},so=(e,t)=>{oo(e)&&e.style.removeProperty(t)},co=(e,t,n)=>{const o=e.dom;lo(o,t,n)},uo=(e,t)=>{const n=e.dom;le(t,(e,t)=>{lo(n,t,e)})},po=(e,t)=>{const n=e.dom;le(t,(e,t)=>{e.fold(()=>{so(n,t)},e=>{lo(n,t,e)})})},fo=(e,t)=>{const n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||ro(e)?o:mo(n,t)},mo=(e,t)=>oo(e)?e.style.getPropertyValue(t):"",go=(e,t)=>{const n=e.dom,o=mo(n,t);return I.from(o).filter(e=>e.length>0)},ho=e=>{const t={},n=e.dom;if(oo(n))for(let e=0;e<n.style.length;e++){const o=n.style.item(e);t[o]=n.style[o]}return t},bo=(e,t,n)=>{const o=lt(e);return co(o,t,n),go(o,t).isSome()},vo=(e,t)=>{const n=e.dom;so(n,t),ze(Wn(e,"style").map(et),"")&&Yn(e,"style")},yo=e=>e.dom.offsetWidth,_o=(e,t)=>{const n=n=>{const o=t(n);if(o<=0||null===o){const t=fo(n,e);return parseFloat(t)||0}return o},o=(e,t)=>H(t,(t,n)=>{const o=fo(e,n),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r},0);return{set:(t,n)=>{if(!g(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);const o=t.dom;oo(o)&&(o.style[e]=n+"px")},get:n,getOuter:n,aggregate:o,max:(e,t,n)=>{const r=o(e,n);return t>r?t-r:0}}},Ao=_o("height",e=>{const t=e.dom;return ro(e)?t.getBoundingClientRect().height:t.offsetHeight}),ko=e=>Ao.get(e),xo=e=>Ao.getOuter(e),wo=e=>!(e=>e.offsetWidth<=0&&e.offsetHeight<=0)(e.dom),Co=_o("width",e=>e.dom.offsetWidth),Eo=_o("width",e=>{const t=e.dom;return ro(e)?t.getBoundingClientRect().width:t.offsetWidth}),So=e=>Co.get(e),To=e=>Co.getOuter(e),Io=e=>Eo.getOuter(e),Bo=(e,t)=>({left:e,top:t,translate:(n,o)=>Bo(e+n,t+o)}),Oo=Bo,Lo=(e,t)=>void 0!==e?e:void 0!==t?t:0,Do=e=>{const t=e.dom.ownerDocument,n=t.body,o=t.defaultView,r=t.documentElement;if(n===e.dom)return Oo(n.offsetLeft,n.offsetTop);const a=Lo(null==o?void 0:o.pageYOffset,r.scrollTop),i=Lo(null==o?void 0:o.pageXOffset,r.scrollLeft),l=Lo(r.clientTop,n.clientTop),s=Lo(r.clientLeft,n.clientLeft);return Mo(e).translate(i-s,a-l)},Mo=e=>{const t=e.dom,n=t.ownerDocument.body;return n===t?Oo(n.offsetLeft,n.offsetTop):ro(e)?(e=>{const t=e.getBoundingClientRect();return Oo(t.left,t.top)})(t):Oo(0,0)},No=e=>{const t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,o=t.body.scrollTop||t.documentElement.scrollTop;return Oo(n,o)},Po=(e,t,n)=>{const o=(void 0!==n?n.dom:document).defaultView;o&&o.scrollTo(e,t)},Ro=(e=>{const t=t=>e(t)?I.from(t.dom.nodeValue):I.none();return{get:n=>{if(!e(n))throw new Error("Can only get text value of a text node");return t(n).getOr("")},getOption:t,set:(t,n)=>{if(!e(t))throw new Error("Can only set raw text value of a text node");t.dom.nodeValue=n}}})(rn),Fo=(e,t)=>n=>"rtl"===Vo(n)?t:e,Vo=e=>"rtl"===fo(e,"direction")?"rtl":"ltr",zo=(e,t)=>{const n=Zn(e,t);return void 0===n||""===n?[]:n.split(" ")};var Uo=(e,t,n,o,r)=>e(n,o)?I.some(n):m(r)&&r(n)?I.none():t(n,o,r);const jo=(e,t,n)=>{let o=e.dom;const r=m(n)?n:S;for(;o.parentNode;){o=o.parentNode;const e=ct(o);if(t(e))return I.some(e);
vendor: 26,459 bytes, line 2
2if(r(e))break}return I.none()},Ho=(e,t,n)=>Uo((e,t)=>t(e),jo,e,t,n),qo=(e,t)=>q(e.dom.childNodes,e=>t(ct(e))).map(ct),Go=(e,t,n)=>jo(e,e=>bt(e,t),n),Ko=(e,t)=>(e=>{const n=e.dom;return n.parentNode?qo(ct(n.parentNode),n=>!_t(e,n)&&bt(n,t)):I.none()})(e),Zo=(e,t)=>qo(e,e=>bt(e,t)),Wo=(e,t)=>yt(t,e),$o=(e,t,n)=>Uo((e,t)=>bt(e,t),Go,e,t,n),Yo=(e,t)=>{e.dom.checked=t},Jo=e=>e.dom.checked,Xo=e=>void 0!==e.dom.classList,Qo=e=>zo(e,"class"),er=(e,t)=>((e,t,n)=>{const o=zo(e,t).concat([n]);return Gn(e,t,o.join(" ")),!0})(e,"class",t),tr=(e,t)=>((e,t,n)=>{const o=U(zo(e,t),e=>e!==n);return o.length>0?Gn(e,t,o.join(" ")):Yn(e,t),!1})(e,"class",t),nr=(e,t)=>{Xo(e)?e.dom.classList.add(t):er(e,t)},or=e=>{0===(Xo(e)?e.dom.classList:Qo(e)).length&&Yn(e,"class")},rr=(e,t)=>{Xo(e)?e.dom.classList.remove(t):tr(e,t),or(e)},ar=(e,t)=>Xo(e)&&e.dom.classList.contains(t),ir=(e,t)=>{V(t,t=>{nr(e,t)})},lr=(e,t)=>{V(t,t=>{rr(e,t)})},sr=e=>Xo(e)?(e=>{const t=e.dom.classList,n=new Array(t.length);for(let e=0;e<t.length;e++){const o=t.item(e);null!==o&&(n[e]=o)}return n})(e):Qo(e),cr=e=>e.dom.value,ur=(e,t)=>{if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},dr=(e,t,n)=>U(((e,t)=>{const n=m(t)?t:S;let o=e.dom;const r=[];for(;null!==o.parentNode&&void 0!==o.parentNode;){const e=o.parentNode,t=ct(e);if(r.push(t),!0===n(t))break;o=e}return r})(e,n),t),pr=(e,t)=>((e,t)=>{const n=void 0===t?document:t.dom;return vt(n)?[]:F(n.querySelectorAll(e),ct)})(t,e),fr=(e,t,n)=>Ho(e,t,n).isSome(),mr=(e,t,n)=>$o(e,t,n).isSome(),gr=e=>m(e)?e:S,hr=(e,t,n)=>{let o=e.dom;const r=gr(n);for(;o.parentNode;){o=o.parentNode;const e=ct(o),n=t(e);if(n.isSome())return n;if(r(e))break}return I.none()},br=(e,t,n)=>{const o=t(e),r=gr(n);return o.orThunk(()=>r(e)?I.none():hr(e,t,r))},vr=(e,t,n,o)=>({start:e,soffset:t,finish:n,foffset:o}),yr=ye([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),_r=(yr.before,yr.on,yr.after,e=>e.fold(A,A,A)),Ar=ye([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),kr={domRange:Ar.domRange,relative:Ar.relative,exact:Ar.exact,exactFromRange:e=>Ar.exact(e.start,e.soffset,e.finish,e.foffset),getWin:e=>{const t=(e=>e.match({domRange:e=>ct(e.startContainer),relative:(e,t)=>_r(e),exact:(e,t,n,o)=>e}))(e);return pn(t)},range:vr},xr=e=>{if(e.rangeCount>0){const t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return I.some(vr(ct(t.startContainer),t.startOffset,ct(n.endContainer),n.endOffset))}return I.none()},wr=e=>{if(null===e.anchorNode||null===e.focusNode)return xr(e);{const t=ct(e.anchorNode),n=ct(e.focusNode);return((e,t,n,o)=>{const r=((e,t,n,o)=>{const r=cn(e).dom.createRange();return r.setStart(e.dom,t),r.setEnd(n.dom,o),r})(e,t,n,o),a=_t(e,n)&&t===o;return r.collapsed&&!a})(t,e.anchorOffset,n,e.focusOffset)?I.some(vr(t,e.anchorOffset,n,e.focusOffset)):xr(e)}},Cr=(e,t)=>(e=>{const t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?I.some(n).map(pt):I.none()})(gt(e,t)),Er={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Sr=(()=>{const e="[0-9]+",t="[eE][+-]?"+e,n=e=>`(?:${e})?`,o=["Infinity",e+"\\."+n(e)+n(t),"\\."+e+n(t),e+n(t)].join("|");return new RegExp(`^([+-]?(?:${o}))(.*)$`)})(),Tr=(e,t)=>I.from(Sr.exec(e)).bind(e=>{const n=Number(e[1]),o=e[2];return((e,t)=>N(t,t=>N(Er[t],t=>e===t)))(o,t)?I.some({value:n,unit:o}):I.none()}),Ir=(e,t,n,o)=>({x:e,y:t,width:n,height:o,right:e+n,bottom:t+o}),Br=e=>{const t=void 0===e?window:e,n=t.document,o=No(ct(n));return(e=>{const t=void 0===e?window:e;return Jt().browser.isFirefox()?I.none():I.from(t.visualViewport)})(t).fold(()=>{const e=t.document.documentElement,n=e.clientWidth,r=e.clientHeight;return Ir(o.left,o.top,n,r)},e=>Ir(Math.max(e.pageLeft,o.left),Math.max(e.pageTop,o.top),e.width,e.height))},Or=(e,t)=>e.view(t).fold(_([]),t=>{const n=e.owner(t),o=Or(e,n);return[t].concat(o)});var Lr=Object.freeze({__proto__:null,view:e=>{var t;return(e.dom===document?I.none():I.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(ct)},owner:e=>cn(e)});const Dr=e=>{const t=Dn(),n=No(t),o=((e,t)=>{const n=t.owner(e),o=Or(t,n);return I.some(o)})(e,Lr);return o.fold(x(Do,e),t=>{const o=Mo(e),r=j(t,(e,t)=>{const n=Mo(t);return{left:e.left+n.left,top:e.top+n.top}},{left:0,top:0});return Oo(r.left+o.left+n.left,r.top+o.top+n.top)})},Mr=(e,t,n,o)=>({x:e,y:t,width:n,height:o,right:e+n,bottom:t+o}),Nr=e=>{const t=Do(e),n=To(e),o=xo(e);return Mr(t.left,t.top,n,o)},Pr=e=>{const t=Dr(e),n=To(e),o=xo(e);return Mr(t.left,t.top,n,o)},Rr=(e,t)=>{const n=Math.max(e.x,t.x),o=Math.max(e.y,t.y),r=Math.min(e.right,t.right),a=Math.min(e.bottom,t.bottom);return Mr(n,o,r-n,a-o)},Fr=()=>Br(window),Vr=(e,t)=>_t(e.element,t.event.target),zr=e=>(ze(go(e,"position"),"fixed")?I.none():gn(e)).orThunk(()=>{const t=lt("span");return fn(e).bind(e=>{jn(e,t);const n=gn(t);return Xn(t),n})}),Ur=e=>zr(e).map(Do).getOrThunk(()=>Oo(0,0));var jr;!function(e){e[e.Error=0]="Error",e[e.Value=1]="Value"}(jr||(jr={}));const Hr=(e,t,n)=>e.stype===jr.Error?t(e.serror):n(e.svalue),qr=e=>({stype:jr.Value,svalue:e}),Gr=e=>({stype:jr.Error,serror:e}),Kr=qr,Zr=Gr,Wr=Hr,$r=e=>i(e)&&ae(e).length>100?" removed due to size":JSON.stringify(e,null,2),Yr=(e,t)=>Zr([{path:e,getErrorInfo:t}]),Jr=e=>({extract:(t,n)=>((e,t)=>e.stype===jr.Error?t(e.serror):e)(e(n),e=>((e,t)=>Yr(e,_(t)))(t,e)),toString:_("val")}),Xr=Jr(Kr),Qr=_(Xr),ea=(e,t)=>Jr(n=>{const o=typeof n;return e(n)?Kr(n):Zr(`Expected type: ${t} but got: ${o}`)}),ta=ea(g,"number"),na=ea(a,"string"),oa=ea(u,"boolean"),ra=ea(m,"function"),aa=e=>{if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every(t=>aa(e[t]));default:return!1}},ia=Jr(e=>aa(e)?Kr(e):Zr("Expected value to be acceptable for sending via postMessage")),la=e=>({tag:"defaultedThunk",process:e}),sa=e=>la(_(e)),ca=e=>({tag:"mergeWithThunk",process:e}),ua=(e,t,n,o)=>({tag:"field",key:e,newKey:t,presence:n,prop:o}),da=(e,t,n)=>{switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}},pa=e=>{const t=(e=>{const t=[],n=[];return V(e,e=>{Hr(e,e=>n.push(e),e=>t.push(e))}),{values:t,errors:n}})(e);return t.errors.length>0?(n=t.errors,y(Zr,K)(n)):Kr(t.values);var n},fa=(e,t,n,o)=>o(he(e,t).getOrThunk(()=>n(e))),ma=(e,t,n,o,r)=>{const a=e=>r.extract(t.concat([o]),e),i=e=>e.fold(()=>Kr(I.none()),e=>((e,t)=>e.stype===jr.Value?{stype:jr.Value,svalue:t(e.svalue)}:e)(r.extract(t.concat([o]),e),I.some));switch(e.tag){case"required":return((e,t,n,o)=>he(t,n).fold(()=>((e,t,n)=>Yr(e,()=>'Could not find valid *required* value for "'+t+'" in '+$r(n)))(e,n,t),o))(t,n,o,a);case"defaultedThunk":return fa(n,o,e.process,a);case"option":return((e,t,n)=>n(he(e,t)))(n,o,i);case"defaultedOptionThunk":return((e,t,n,o)=>o(he(e,t).map(t=>!0===t?n(e):t)))(n,o,e.process,i);case"mergeWithThunk":return fa(n,o,_({}),t=>{const o=Fe(e.process(n),t);return a(o)})}},ga=e=>({extract:(t,n)=>e().extract(t,n),toString:()=>e().toString()}),ha=e=>ae(pe(e,f)),ba=e=>{const t=va(e),n=j(e,(e,t)=>da(t,t=>Fe(e,{[t]:!0}),_(e)),{});return{extract:(e,o)=>{const r=u(o)?[]:ha(o),a=U(r,e=>!ve(n,e));return 0===a.length?t.extract(e,o):((e,t)=>Yr(e,()=>"There are unsupported fields: ["+t.join(", ")+"] specified"))(e,a)},toString:t.toString}},va=e=>({extract:(t,n)=>((e,t,n)=>{const o={},r=[];for(const a of n)da(a,(n,a,i,l)=>{const s=ma(i,e,t,n,l);Wr(s,e=>{r.push(...e)},e=>{o[a]=e})},(e,n)=>{o[e]=n(t)});return r.length>0?Zr(r):Kr(o)})(t,n,e),toString:()=>{const t=F(e,e=>da(e,(e,t,n,o)=>e+" -> "+o.toString(),(e,t)=>"state("+e+")"));return"obj{\n"+t.join("\n")+"}"}}),ya=e=>({extract:(t,n)=>{const o=F(n,(n,o)=>e.extract(t.concat(["["+o+"]"]),n));return pa(o)},toString:()=>"array("+e.toString()+")"}),_a=(e,t)=>{const n=void 0!==t?t:A;return{extract:(t,o)=>{const r=[];for(const a of e){const e=a.extract(t,o);if(e.stype===jr.Value)return{stype:jr.Value,svalue:n(e.svalue)};r.push(e)}return pa(r)},toString:()=>"oneOf("+F(e,e=>e.toString()).join(", ")+")"}},Aa=(e,t)=>({extract:(n,o)=>{const r=ae(o),a=((t,n)=>ya(Jr(e)).extract(t,n))(n,r);return((e,t)=>e.stype===jr.Value?t(e.svalue):e)(a,e=>{const r=F(e,e=>ua(e,e,{tag:"required",process:{}},t));return va(r).extract(n,o)})},toString:()=>"setOf("+t.toString()+")"}),ka=y(ya,va),xa=(e,t)=>({extract:(n,o)=>he(o,e).fold(()=>((e,t)=>Yr(e,()=>'Choice schema did not contain choice key: "'+t+'"'))(n,e),e=>((e,t,n,o)=>he(n,o).fold(()=>((e,t,n)=>Yr(e,()=>'The chosen schema: "'+n+'" did not exist in branches: '+$r(t)))(e,n,o),n=>n.extract(e.concat(["branch: "+o]),t)))(n,o,t,e)),toString:()=>"chooseOn("+e+"). Possible values: "+ae(t)}),wa=e=>Jr(t=>e(t).fold(Zr,Kr)),Ca=(e,t)=>Aa(t=>e(t).fold(Gr,qr),t),Ea=(e,t,n)=>{return o=((e,t,n)=>((e,t)=>e.stype===jr.Error?{stype:jr.Error,serror:t(e.serror)}:e)(t.extract([e],n),e=>({input:n,errors:e})))(e,t,n),Hr(o,Ie.error,Ie.value);var o},Sa=e=>e.fold(e=>{throw new Error(Ia(e))},A),Ta=(e,t,n)=>Sa(Ea(e,t,n)),Ia=e=>"Errors: \n"+(e=>{const t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:_("... (only showing first ten failures)")}]):e;return F(t,e=>"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo())})(e.errors).join("\n")+"\n\nInput object: "+$r(e.input),Ba=(e,t)=>xa(e,se(t,va)),Oa=(e,t)=>((e,t)=>{const n=rt(t);return{extract:(e,t)=>n().extract(e,t),toString:()=>n().toString()}})(0,t),La=ua,Da=(e,t)=>({tag:"custom",newKey:e,instantiator:t}),Ma=e=>wa(t=>M(e,t)?Ie.value(t):Ie.error(`Unsupported value: "${t}", choose one of "${e.join(", ")}".`)),Na=e=>La(e,e,{tag:"required",process:{}},Qr()),Pa=(e,t)=>La(e,e,{tag:"required",process:{}},t),Ra=e=>Pa(e,ta),Fa=e=>Pa(e,na),Va=(e,t)=>La(e,e,{tag:"required",process:{}},Ma(t)),za=e=>Pa(e,ra),Ua=(e,t)=>La(e,e,{tag:"required",process:{}},va(t)),ja=(e,t)=>La(e,e,{tag:"required",process:{}},ka(t)),Ha=(e,t)=>La(e,e,{tag:"required",process:{}},ya(t)),qa=e=>La(e,e,{tag:"option",process:{}},Qr()),Ga=(e,t)=>La(e,e,{tag:"option",process:{}},t),Ka=e=>Ga(e,ta),Za=e=>Ga(e,na),Wa=(e,t)=>Ga(e,Ma(t)),$a=e=>Ga(e,ra),Ya=(e,t)=>Ga(e,ya(t)),Ja=(e,t)=>Ga(e,va(t)),Xa=(e,t)=>La(e,e,sa(t),Qr()),Qa=(e,t,n)=>La(e,e,sa(t),n),ei=(e,t)=>Qa(e,t,ta),ti=(e,t)=>Qa(e,t,na),ni=(e,t,n)=>Qa(e,t,Ma(n)),oi=(e,t)=>Qa(e,t,oa),ri=(e,t)=>Qa(e,t,ra),ai=(e,t,n)=>Qa(e,t,ya(n)),ii=(e,t,n)=>Qa(e,t,va(n)),li=(e,t)=>((e,t)=>({[e]:t}))(e,t),si=e=>(e=>{const t={};return V(e,e=>{t[e.key]=e.value}),t})(e),ci=_,ui=ci("touchstart"),di=ci("touchmove"),pi=ci("touchend"),fi=ci("touchcancel"),mi=ci("mousedown"),gi=ci("mousemove"),hi=ci("mouseout"),bi=ci("mouseup"),vi=ci("mouseover"),yi=ci("focusin"),_i=ci("focusout"),Ai=ci("keydown"),ki=ci("keyup"),xi=ci("input"),wi=ci("change"),Ci=ci("click"),Ei=ci("transitioncancel"),Si=ci("transitionend"),Ti=ci("transitionstart"),Ii=ci("selectstart"),Bi=e=>_("alloy."+e),Oi={tap:Bi("tap")},Li=Bi("focus"),Di=Bi("blur.post"),Mi=Bi("paste.post"),Ni=Bi("receive"),Pi=Bi("execute"),Ri=Bi("focus.item"),Fi=Oi.tap,Vi=Bi("longpress"),zi=Bi("sandbox.close"),Ui=Bi("typeahead.cancel"),ji=Bi("system.init"),Hi=Bi("system.touchmove"),qi=Bi("system.touchend"),Gi=Bi("system.scroll"),Ki=Bi("system.resize"),Zi=Bi("system.attached"),Wi=Bi("system.detached"),$i=Bi("system.dismissRequested"),Yi=Bi("system.repositionRequested"),Ji=Bi("focusmanager.shifted"),Xi=Bi("slotcontainer.visibility"),Qi=Bi("system.external.element.scroll"),el=Bi("change.tab"),tl=Bi("dismiss.tab"),nl=Bi("highlight"),ol=Bi("dehighlight"),rl=e=>(e=>{if(An(e))return"#shadow-root";{const t=(e=>Qn(e,!1))(e);return(e=>{const t=lt("div"),n=ct(e.dom.cloneNode(!0));return jn(t,n),eo(t)})(t)}})(e);var al;!function(e){e[e.STOP=0]="STOP",e[e.NORMAL=1]="NORMAL",e[e.LOGGING=2]="LOGGING"}(al||(al={}));const il=_e({}),ll=["alloy/data/Fields","alloy/debugging/Debugging"],sl=(e,t,n)=>((e,t,n)=>{switch(he(il.get(),e).orThunk(()=>{const t=ae(il.get());return re(t,t=>e.indexOf(t)>-1?I.some(il.get()[t]):I.none())}).getOr(al.NORMAL)){case al.NORMAL:return n(cl());case al.LOGGING:{const o=((e,t)=>{const n=[],o=(new Date).getTime();return{logEventCut:(e,t,o)=>{n.push({outcome:"cut",target:t,purpose:o})},logEventStopped:(e,t,o)=>{n.push({outcome:"stopped",target:t,purpose:o})},logNoParent:(e,t,o)=>{n.push({outcome:"no-parent",target:t,purpose:o})},logEventNoHandlers:(e,t)=>{n.push({outcome:"no-handlers-left",target:t})},logEventResponse:(e,t,o)=>{n.push({outcome:"response",purpose:o,target:t})},write:()=>{const r=(new Date).getTime();M(["mousemove","mouseover","mouseout",ji()],e)||console.log(e,{event:e,time:r-o,target:t.dom,sequence:F(n,e=>M(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+rl(e.target)+")":e.outcome)})}}})(e,t),r=n(o);return o.write(),r}case al.STOP:return!0}})(e,t,n),cl=_({logEventCut:b,logEventStopped:b,logNoParent:b,logEventNoHandlers:b,logEventResponse:b,write:b}),ul=_([Na("menu"),Na("selectedMenu")]),dl=_([Na("item"),Na("selectedItem")]);_(va(dl().concat(ul())));const pl=_(va(dl())),fl=Ua("initSize",[Na("numColumns"),Na("numRows")]),ml=()=>Ua("markers",[Na("backgroundMenu")].concat(ul()).concat(dl())),gl=e=>Ua("markers",F(e,Na)),hl=(e,t,n)=>((()=>{const e=new Error;if(void 0!==e.stack){const t=e.stack.split("\n");q(t,e=>e.indexOf("alloy")>0&&!N(ll,t=>e.indexOf(t)>-1)).getOr("unknown")}})(),La(t,t,n,wa(e=>Ie.value((...t)=>e.apply(void 0,t))))),bl=e=>hl(0,e,sa(b)),vl=e=>hl(0,e,sa(I.none)),yl=e=>hl(0,e,{tag:"required",process:{}}),_l=e=>hl(0,e,{tag:"required",process:{}}),Al=(e,t)=>Da(e,_(t)),kl=e=>Da(e,A),xl=_(fl),wl=e=>F(e,e=>Qe(e,"/*")?e.substring(0,e.length-2):e),Cl=(e,t)=>{const n=e.toString(),o=n.indexOf(")")+1,r=n.indexOf("("),a=n.substring(r+1,o-1).split(/,\s*/);return e.toFunctionAnnotation=()=>({name:t,parameters:wl(a)}),e},El=(e,t)=>{let n=null;return{cancel:()=>{null!==n&&(clearTimeout(n),n=null)},schedule:(...o)=>{n=setTimeout(()=>{e.apply(null,o),n=null},t)}}},Sl=e=>{const t=e.raw;return void 0===t.touches||1!==t.touches.length?I.none():I.some(t.touches[0])};var Tl;!function(e){e.OnFocusMode="onFocus",e.OnEnterOrSpaceMode="onEnterOrSpace",e.OnApiMode="onApi"}(Tl||(Tl={}));const Il="placeholder",Bl=ye([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Ol=e=>be(e,"uiType"),Ll=(e,t,n,o)=>((e,t,n,o)=>Ol(n)&&n.uiType===Il?((e,t,n,o)=>e.exists(e=>e!==n.owner)?Bl.single(!0,_(n)):he(o,n.name).fold(()=>{throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+ae(o)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))},e=>e.replace()))(e,0,n,o):Bl.single(!1,_(n)))(e,0,n,o).fold((r,a)=>{const i=Ol(n)?a(t,n.config,n.validated):a(t),l=he(i,"components").getOr([]),s=Z(l,n=>Ll(e,t,n,o));return[{...i,components:s}]},(e,o)=>{if(Ol(n)){const e=o(t,n.config,n.validated);return n.validated.preprocess.getOr(A)(e)}return o(t)}),Dl=Bl.single,Ml=Bl.multiple,Nl=_(Il),Pl=ye([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Rl=Xa("factory",{sketch:A}),Fl=Xa("schema",[]),Vl=Na("name"),zl=La("pname","pname",la(e=>"<alloy."+Pe(e.name)+">"),Qr()),Ul=Da("schema",()=>[qa("preprocess")]),jl=Xa("defaults",_({})),Hl=Xa("overrides",_({})),ql=va([Rl,Fl,Vl,zl,jl,Hl]),Gl=va([Rl,Fl,Vl,jl,Hl]),Kl=va([Rl,Fl,Vl,zl,jl,Hl]),Zl=va([Rl,Ul,Vl,Na("unit"),zl,jl,Hl]),Wl=e=>e.fold(I.some,I.none,I.some,I.some),$l=e=>{const t=e=>e.name;return e.fold(t,t,t,t)},Yl=(e,t)=>n=>{const o=Ta("Converting part type",t,n);return e(o)},Jl=Yl(Pl.required,ql),Xl=Yl(Pl.external,Gl),Ql=Yl(Pl.optional,Kl),es=Yl(Pl.group,Zl),ts=_("entirety");var ns=Object.freeze({__proto__:null,required:Jl,external:Xl,optional:Ql,group:es,asNamedPart:Wl,name:$l,asCommon:e=>e.fold(A,A,A,A),original:ts});const os=(e,t,n,o)=>Fe(t.defaults(e,n,o),n,{uid:e.partUids[t.name]},t.overrides(e,n,o)),rs=(e,t)=>{const n={};return V(t,t=>{Wl(t).each(t=>{const o=as(e,t.pname);n[t.name]=n=>{const r=Ta("Part: "+t.name+" in "+e,va(t.schema),n);return{...o,config:n,validated:r}}})}),n},as=(e,t)=>({uiType:Nl(),owner:e,name:t}),is=(e,t,n)=>({uiType:Nl(),owner:e,name:t,config:n,validated:{}}),ls=e=>Z(e,e=>e.fold(I.none,I.some,I.none,I.none).map(e=>Ua(e.name,e.schema.concat([kl(ts())]))).toArray()),ss=e=>F(e,$l),cs=(e,t,n)=>((e,t,n)=>{const o={},r={};return V(n,e=>{e.fold(e=>{o[e.pname]=Dl(!0,(t,n,o)=>e.factory.sketch(os(t,e,n,o)))},e=>{const n=t.parts[e.name];r[e.name]=_(e.factory.sketch(os(t,e,n[ts()]),n))},e=>{o[e.pname]=Dl(!1,(t,n,o)=>e.factory.sketch(os(t,e,n,o)))},e=>{o[e.pname]=Ml(!0,(t,n,o)=>{const r=t[e.name];return F(r,n=>e.factory.sketch(Fe(e.defaults(t,n,o),n,e.overrides(t,n))))})})}),{internals:_(o),externals:_(r)}})(0,t,n),us=(e,t,n)=>((e,t,n,o)=>{const r=se(o,(e,t)=>((e,t)=>{let n=!1;return{name:_(e),required:()=>t.fold((e,t)=>e,(e,t)=>e),used:()=>n,replace:()=>{if(n)throw new Error("Trying to use the same placeholder more than once: "+e);return n=!0,t}}})(t,e)),a=((e,t,n,o)=>Z(n,n=>Ll(e,t,n,o)))(e,t,n,r);return le(r,n=>{if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))}),a})(I.some(e),t,t.components,n),ds=(e,t,n)=>{const o=t.partUids[n];return e.getSystem().getByUid(o).toOptional()},ps=(e,t,n)=>ds(e,t,n).getOrDie("Could not find part: "+n),fs=(e,t,n)=>{const o={},r=t.partUids,a=e.getSystem();return V(n,e=>{o[e]=_(a.getByUid(r[e]))}),o},ms=(e,t)=>{const n=e.getSystem();return se(t.partUids,(e,t)=>_(n.getByUid(e)))},gs=e=>ae(e.partUids),hs=(e,t,n)=>{const o={},r=t.partUids,a=e.getSystem();return V(n,e=>{o[e]=_(a.getByUid(r[e]).getOrDie())}),o},bs=(e,t)=>{const n=ss(t);return si(F(n,t=>({key:t,value:e+"-"+t})))},vs=e=>La("partUids","partUids",ca(t=>bs(t.uid,e)),Qr());var ys=Object.freeze({__proto__:null,generate:rs,generateOne:is,schemas:ls,names:ss,substitutes:cs,components:us,defaultUids:bs,defaultUidsSchema:vs,getAllParts:ms,getAllPartNames:gs,getPart:ds,getPartOrDie:ps,getParts:fs,getPartsOrDie:hs});const _s=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],As=(e,t,n,o=1)=>{const r=e*o,a=t*o,i=e=>he(n,e).getOr([]),l=(e,t,n)=>{const o=Y(_s,n);return{offset:Oo(e,t),classesOn:Z(n,i),classesOff:Z(o,i)}};return{southeast:()=>l(-e,t,["top","alignLeft"]),southwest:()=>l(e,t,["top","alignRight"]),south:()=>l(-e/2,t,["top","alignCentre"]),northeast:()=>l(-e,-t,["bottom","alignLeft"]),northwest:()=>l(e,-t,["bottom","alignRight"]),north:()=>l(-e/2,-t,["bottom","alignCentre"]),east:()=>l(e,-t/2,["valignCentre","left"]),west:()=>l(-e,-t/2,["valignCentre","right"]),insetNortheast:()=>l(r,a,["top","alignLeft","inset"]),insetNorthwest:()=>l(-r,a,["top","alignRight","inset"]),insetNorth:()=>l(-r/2,a,["top","alignCentre","inset"]),insetSoutheast:()=>l(r,-a,["bottom","alignLeft","inset"]),insetSouthwest:()=>l(-r,-a,["bottom","alignRight","inset"]),insetSouth:()=>l(-r/2,-a,["bottom","alignCentre","inset"]),insetEast:()=>l(-r,-a/2,["valignCentre","right","inset"]),insetWest:()=>l(r,-a/2,["valignCentre","left","inset"])}},ks=()=>As(0,0,{}),xs=(e,t,n,o,r,a,i,l=!1)=>({x:e,y:t,bubble:n,direction:o,placement:r,restriction:a,label:`${i}-${r}`,alwaysFit:l}),ws=ye([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Cs=ws.southeast,Es=ws.southwest,Ss=ws.northeast,Ts=ws.northwest,Is=ws.south,Bs=ws.north,Os=ws.east,Ls=ws.west,Ds=(e,t)=>J(["left","right","top","bottom"],n=>he(t,n).map(t=>((e,t)=>{switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}})(e,t))),Ms="layout",Ns=e=>e.x,Ps=(e,t)=>e.x+e.width/2-t.width/2,Rs=(e,t)=>e.x+e.width-t.width,Fs=(e,t)=>e.y-t.height,Vs=e=>e.y+e.height,zs=(e,t)=>e.y+e.height/2-t.height/2,Us=(e,t,n)=>xs(Ns(e),Vs(e),n.southeast(),Cs(),"southeast",Ds(e,{left:1,top:3}),Ms),js=(e,t,n)=>xs(Rs(e,t),Vs(e),n.southwest(),Es(),"southwest",Ds(e,{right:0,top:3}),Ms),Hs=(e,t,n)=>xs(Ns(e),Fs(e,t),n.northeast(),Ss(),"northeast",Ds(e,{left:1,bottom:2}),Ms),qs=(e,t,n)=>xs(Rs(e,t),Fs(e,t),n.northwest(),Ts(),"northwest",Ds(e,{right:0,bottom:2}),Ms),Gs=(e,t,n)=>xs(Ps(e,t),Fs(e,t),n.north(),Bs(),"north",Ds(e,{bottom:2}),Ms),Ks=(e,t,n)=>xs(Ps(e,t),Vs(e),n.south(),Is(),"south",Ds(e,{top:3}),Ms),Zs=(e,t,n)=>xs((e=>e.x+e.width)(e),zs(e,t),n.east(),Os(),"east",Ds(e,{left:0}),Ms),Ws=(e,t,n)=>xs(((e,t)=>e.x-t.width)(e,t),zs(e,t),n.west(),Ls(),"west",Ds(e,{right:1}),Ms),$s=()=>[Us,js,Hs,qs,Ks,Gs,Zs,Ws],Ys=()=>[js,Us,qs,Hs,Ks,Gs,Zs,Ws],Js=()=>[Hs,qs,Us,js,Gs,Ks],Xs=()=>[qs,Hs,js,Us,Gs,Ks],Qs=()=>[Us,js,Hs,qs,Ks,Gs],ec=()=>[js,Us,qs,Hs,Ks,Gs],tc="data-alloy-placement",nc=e=>Wn(e,tc),oc="layout-inset",rc=e=>e.x,ac=(e,t)=>e.x+e.width/2-t.width/2,ic=(e,t)=>e.x+e.width-t.width,lc=e=>e.y,sc=(e,t)=>e.y+e.height-t.height,cc=(e,t)=>e.y+e.height/2-t.height/2,uc=(e,t,n)=>xs(ic(e,t),sc(e,t),n.insetSouthwest(),Ts(),"southwest",Ds(e,{right:0,bottom:3}),oc),dc=(e,t,n)=>xs(rc(e),sc(e,t),n.insetSoutheast(),Ss(),"southeast",Ds(e,{left:1,bottom:3}),oc),pc=(e,t,n)=>xs(ic(e,t),lc(e),n.insetNorthwest(),Es(),"northwest",Ds(e,{right:0,top:2}),oc),fc=(e,t,n)=>xs(rc(e),lc(e),n.insetNortheast(),Cs(),"northeast",Ds(e,{left:1,top:2}),oc),mc=(e,t,n)=>xs(ac(e,t),lc(e),n.insetNorth(),Is(),"north",Ds(e,{top:2}),oc),gc=(e,t,n)=>xs(ac(e,t),sc(e,t),n.insetSouth(),Bs(),"south",Ds(e,{bottom:3}),oc),hc=(e,t,n)=>xs(ic(e,t),cc(e,t),n.insetEast(),Ls(),"east",Ds(e,{right:0}),oc),bc=(e,t,n)=>xs(rc(e),cc(e,t),n.insetWest(),Os(),"west",Ds(e,{left:1}),oc),vc=e=>{switch(e){case"north":return mc;case"northeast":return fc;case"northwest":return pc;case"south":return gc;case"southeast":return dc;case"southwest":return uc;case"east":return hc;case"west":return bc}},yc=(e,t,n,o,r)=>nc(o).map(vc).getOr(mc)(e,t,n,o,r),_c=e=>{switch(e){case"north":return gc;case"northeast":return dc;case"northwest":return uc;case"south":return mc;case"southeast":return fc;case"southwest":return pc;case"east":return bc;case"west":return hc}},Ac=(e,t,n,o,r)=>nc(o).map(_c).getOr(mc)(e,t,n,o,r),kc=(e,t)=>{((e,t)=>{const n=Ao.max(e,t,["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"]);co(e,"max-height",n+"px")})(e,Math.floor(t))},xc=_((e,t)=>{kc(e,t),uo(e,{"overflow-x":"hidden","overflow-y":"auto"})}),wc=_((e,t)=>{kc(e,t)}),Cc=_((e,t)=>{((e,t)=>{const n=Co.max(e,t,["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"]);co(e,"max-width",n+"px")})(e,Math.floor(t))});var Ec;!function(e){e.TopToBottom="toptobottom",e.BottomToTop="bottomtotop"}(Ec||(Ec={}));const Sc="data-alloy-vertical-dir",Tc=e=>fr(e,e=>on(e)&&Zn(e,"data-alloy-vertical-dir")===Ec.BottomToTop);var Ic;!function(e){e[e.HighlightMenuAndItem=0]="HighlightMenuAndItem",e[e.HighlightJustMenu=1]="HighlightJustMenu",e[e.HighlightNone=2]="HighlightNone"}(Ic||(Ic={}));const Bc={init:()=>Oc({readState:_("No State required")})},Oc=e=>e,Lc={can:T,abort:S,run:b},Dc=e=>{if(!ve(e,"can")&&!ve(e,"abort")&&!ve(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return{...Lc,...e}},Mc=(e,t)=>{Fc(e,e.element,t,{})},Nc=(e,t,n)=>{Fc(e,e.element,t,n)},Pc=e=>{Mc(e,Pi())},Rc=(e,t,n)=>{Fc(e,t,n,{})},Fc=(e,t,n,o)=>{const r={target:t,...o};e.getSystem().triggerEvent(n,t,r)},Vc=(e,t,n,o)=>{e.getSystem().triggerEvent(n,t,o.event)},zc=e=>si(e),Uc=(e,t)=>({key:e,value:Dc({abort:t})}),jc=e=>({key:e,value:Dc({run:(e,t)=>{t.event.prevent()}})}),Hc=(e,t)=>({key:e,value:Dc({run:t})}),qc=(e,t,n)=>({key:e,value:Dc({run:(e,o)=>{t.apply(void 0,[e,o].concat(n))}})}),Gc=e=>t=>({key:e,value:Dc({run:(e,n)=>{Vr(e,n)&&t(e,n)}})}),Kc=(e,t,n)=>((e,t)=>Hc(e,(n,o)=>{n.getSystem().getByUid(t).each(t=>{Vc(t,t.element,e,o)})}))(e,t.partUids[n]),Zc=(e,t)=>Hc(e,(e,n)=>{const o=n.event,r=e.getSystem().getByDom(o.target).getOrThunk(()=>br(o.target,t=>e.getSystem().getByDom(t).toOptional(),S).getOr(e));t(e,r,n)}),Wc=e=>Hc(e,(e,t)=>{t.cut()}),$c=e=>Hc(e,(e,t)=>{t.stop()}),Yc=(e,t)=>Gc(e)(t),Jc=Gc(Zi()),Xc=Gc(Wi()),Qc=Gc(ji()),eu=(e=>t=>Hc(e,t))(Pi()),tu=e=>({classes:d(e.classes)?[]:e.classes,attributes:d(e.attributes)?{}:e.attributes,styles:d(e.styles)?{}:e.styles}),nu=(e,t,n)=>Qc((o,r)=>{n(o,e,t)}),ou=e=>({key:e,value:void 0}),ru=(e,t,n,o,r,a,i)=>{const l=e=>ve(e,n)?e[n]():I.none(),s=se(r,(e,t)=>((e,t,n)=>((e,t,n)=>{const o=n.toString(),r=o.indexOf(")")+1,a=o.indexOf("("),i=o.substring(a+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=()=>({name:t,parameters:wl(i.slice(0,1).concat(i.slice(3)))}),e})((o,...r)=>{const a=[o].concat(r);return o.config({name:_(e)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+n)},e=>{const n=Array.prototype.slice.call(a,1);return t.apply(void 0,[o,e.config,e.state].concat(n))})},n,t))(n,e,t)),c={...se(a,(e,t)=>Cl(e,t)),...s,revoke:x(ou,n),config:t=>{const o=Ta(n+"-config",e,t);return{key:n,value:{config:o,me:c,configAsRaw:rt(()=>Ta(n+"-config",e,t)),initialConfig:t,state:i}}},schema:_(t),exhibit:(e,t)=>je(l(e),he(o,"exhibit"),(e,n)=>n(t,e.config,e.state)).getOrThunk(()=>tu({})),name:_(n),handlers:e=>l(e).map(e=>he(o,"events").getOr(()=>({}))(e.config,e.state)).getOr({})};return c},au=e=>si(e),iu=ba([Na("fields"),Na("name"),Xa("active",{}),Xa("apis",{}),Xa("state",Bc),Xa("extra",{})]),lu=e=>{const t=Ta("Creating behaviour: "+e.name,iu,e);return((e,t,n,o,r,a)=>{const i=ba(e),l=Ja(t,[(s=e,Ga("config",ba(s)))]);var s;return ru(i,l,t,n,o,r,a)})(t.fields,t.name,t.active,t.apis,t.extra,t.state)},su=ba([Na("branchKey"),Na("branches"),Na("name"),Xa("active",{}),Xa("apis",{}),Xa("state",Bc),Xa("extra",{})]),cu=e=>{const t=Ta("Creating behaviour: "+e.name,su,e);return((e,t,n,o,r,a)=>{const i=e,l=Ja(t,[Ga("config",e)]);return ru(i,l,t,n,o,r,a)})(Ba(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},uu=_(void 0),du=(e,t)=>{const n=((e,t)=>{const n=zc(t);return lu({fields:[Na("enabled")],name:e,active:{events:_(n)}})})(e,t);return{key:e,value:{config:{},me:n,configAsRaw:_({}),initialConfig:{},state:Bc}}},pu=(e,t)=>{t.ignore||(Mn(e.element),t.onFocus(e))};var fu=Object.freeze({__proto__:null,focus:pu,blur:(e,t)=>{t.ignore||Nn(e.element)},isFocused:e=>Pn(e.element)}),mu=Object.freeze({__proto__:null,exhibit:(e,t)=>
vendor: 1,838 bytes, line 2
2{const n=t.ignore?{}:{attributes:{tabindex:"-1"}};return tu(n)},events:e=>zc([Hc(Li(),(t,n)=>{pu(t,e),n.stop()})].concat(e.stopMousedown?[Hc(mi(),(e,t)=>{t.event.prevent()})]:[]))}),gu=[bl("onFocus"),Xa("stopMousedown",!1),Xa("ignore",!1)];const hu=lu({fields:gu,name:"focusing",active:mu,apis:fu}),bu=[8],vu=[9],yu=[13],_u=[27],Au=[32],ku=[37],xu=[38],wu=[39],Cu=[40],Eu=(e,t,n)=>{const o=$(e.slice(0,t)),r=$(e.slice(t+1));return q(o.concat(r),n)},Su=(e,t,n)=>{const o=$(e.slice(0,t));return q(o,n)},Tu=(e,t,n)=>{const o=e.slice(0,t),r=e.slice(t+1);return q(r.concat(o),n)},Iu=(e,t,n)=>{const o=e.slice(t+1);return q(o,n)},Bu=e=>t=>{const n=t.raw;return M(e,n.which)},Ou=e=>t=>W(e,e=>e(t)),Lu=e=>!0===e.raw.shiftKey,Du=e=>!0===e.raw.ctrlKey,Mu=w(Lu),Nu=(e,t)=>({matches:e,classification:t}),Pu=(e,t,n,o)=>{const r=pr(e.element,"."+t.highlightClass);V(r,n=>{N(o,e=>_t(e.element,n))||(rr(n,t.highlightClass),e.getSystem().getByDom(n).each(n=>{t.onDehighlight(e,n),Mc(n,ol())}))})},Ru=(e,t,n,o)=>{Pu(e,t,0,[o]),Fu(e,t,n,o)||(nr(o.element,t.highlightClass),t.onHighlight(e,o),Mc(o,nl()))},Fu=(e,t,n,o)=>ar(o.element,t.highlightClass),Vu=(e,t,n)=>Wo(e.element,"."+t.itemClass).bind(t=>e.getSystem().getByDom(t).toOptional()),zu=(e,t,n)=>{const o=pr(e.element,"."+t.itemClass);return(o.length>0?I.some(o[o.length-1]):I.none()).bind(t=>e.getSystem().getByDom(t).toOptional())},Uu=(e,t,n,o)=>{const r=pr(e.element,"."+t.itemClass);return G(r,e=>ar(e,t.highlightClass)).bind(t=>{const n=De(t,o,0,r.length-1);return e.getSystem().getByDom(r[n]).toOptional()})},ju=(e,t,n)=>{const o=pr(e.element,"."+t.itemClass);return Ue(F(o,t=>e.getSystem().getByDom(t).toOptional()))};var Hu=Object.freeze({__proto__:null,dehighlightAll:(e,t,n)=>Pu(e,t,0,[]),dehighlight:(e,t,n,o)=>{Fu(e,t,n,o)&&(rr(o.element,t.highlightClass),t.onDehighlight(e,o),Mc(o,ol()))}
vendor: 7,311 bytes, line 2
2,highlight:Ru,highlightFirst:(e,t,n)=>{Vu(e,t).each(o=>{Ru(e,t,n,o)})},highlightLast:(e,t,n)=>{zu(e,t).each(o=>{Ru(e,t,n,o)})},highlightAt:(e,t,n,o)=>{((e,t,n,o)=>{const r=pr(e.element,"."+t.itemClass);return I.from(r[o]).fold(()=>Ie.error(new Error("No element found with index "+o)),e.getSystem().getByDom)})(e,t,0,o).fold(e=>{throw e},o=>{Ru(e,t,n,o)})},highlightBy:(e,t,n,o)=>{const r=ju(e,t);q(r,o).each(o=>{Ru(e,t,n,o)})},isHighlighted:Fu,getHighlighted:(e,t,n)=>Wo(e.element,"."+t.highlightClass).bind(t=>e.getSystem().getByDom(t).toOptional()),getFirst:Vu,getLast:zu,getPrevious:(e,t,n)=>Uu(e,t,0,-1),getNext:(e,t,n)=>Uu(e,t,0,1),getCandidates:ju}),qu=[Na("highlightClass"),Na("itemClass"),bl("onHighlight"),bl("onDehighlight")];const Gu=lu({fields:qu,name:"highlighting",apis:Hu}),Ku=(e,t,n)=>{t.exists(e=>n.exists(t=>_t(t,e)))||Nc(e,Ji(),{prevFocus:t,newFocus:n})},Zu=()=>{const e=e=>Fn(e.element);return{get:e,set:(t,n)=>{const o=e(t);t.getSystem().triggerFocus(n,t.element);const r=e(t);Ku(t,o,r)}}},Wu=()=>{const e=e=>Gu.getHighlighted(e).map(e=>e.element);return{get:e,set:(t,n)=>{const o=e(t);t.getSystem().getByDom(n).fold(b,e=>{Gu.highlight(t,e)});const r=e(t);Ku(t,o,r)}}},$u=(e,t,n,o,r)=>{const a=(e,t,n,o,r)=>{return(a=n(e,t,o,r),i=t.event,q(a,e=>e.matches(i)).map(e=>e.classification)).bind(n=>n(e,t,o,r));var a,i},i={schema:()=>e.concat([Xa("focusManager",Zu()),Qa("focusInside","onFocus",wa(e=>M(["onFocus","onEnterOrSpace","onApi"],e)?Ie.value(e):Ie.error("Invalid value for focusInside"))),Al("handler",i),Al("state",t),Al("sendFocusIn",r)]),processKey:a,toEvents:(e,t)=>{const i=e.focusInside!==Tl.OnFocusMode?I.none():r(e).map(n=>Hc(Li(),(o,r)=>{n(o,e,t),r.stop()})),l=[Hc(Ai(),(o,i)=>{a(o,i,n,e,t).fold(()=>{((n,o)=>{const a=Bu(Au.concat(yu))(o.event);e.focusInside===Tl.OnEnterOrSpaceMode&&a&&Vr(n,o)&&r(e).each(r=>{r(n,e,t),o.stop()})})(o,i)},e=>{i.stop()})}),Hc(ki(),(n,r)=>{a(n,r,o,e,t).each(e=>{r.stop()})})];return zc(i.toArray().concat(l))}};return i},Yu=e=>{const t=[qa("onEscape"),qa("onEnter"),Xa("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Xa("firstTabstop",0),Xa("useTabstopAt",T),qa("visibilitySelector")].concat([e]),n=(e,t)=>{const n=e.visibilitySelector.bind(e=>$o(t,e)).getOr(t);return ko(n)>0},o=(e,t)=>t.focusManager.get(e).bind(e=>$o(e,t.selector)),r=(e,t,o)=>{((e,t)=>{const o=pr(e.element,t.selector),r=U(o,e=>n(t,e));return I.from(r[t.firstTabstop])})(e,t).each(n=>{t.focusManager.set(e,n)})},a=(e,t,r,a)=>{const i=U(pr(e.element,r.selector),e=>n(r,e));return o(e,r).bind(t=>G(i,x(_t,t)).bind(t=>((e,t,o,r,a)=>a(t,o,e=>((e,t)=>n(e,t)&&e.useTabstopAt(t))(r,e)).fold(()=>r.cyclic?I.some(!0):I.none(),t=>(r.focusManager.set(e,t),I.some(!0))))(e,i,t,r,a)))},i=(e,t,n)=>{const o=n.cyclic?Eu:Su;return a(e,0,n,o)},l=(e,t,n)=>{const o=n.cyclic?Tu:Iu;return a(e,0,n,o)},s=_([Nu(Ou([Lu,Bu(vu)]),i),Nu(Bu(vu),l),Nu(Ou([Mu,Bu(yu)]),(e,t,n)=>n.onEnter.bind(n=>n(e,t)))]),c=_([Nu(Bu(_u),(e,t,n)=>n.onEscape.bind(n=>n(e,t))),Nu(Bu(vu),(e,t,n)=>o(e,n).filter(e=>!n.useTabstopAt(e)).bind(o=>((e=>(e=>fn(e))(e).bind(vn).exists(t=>_t(t,e)))(o)?i:l)(e,t,n)))]);return $u(t,Bc.init,s,c,()=>I.some(r))};var Ju=Yu(Da("cyclic",S)),Xu=Yu(Da("cyclic",T));const Qu=e=>sn("input")(e)&&"radio"!==Zn(e,"type")||sn("textarea")(e),ed=(e,t,n)=>Qu(n)&&Bu(Au)(t.event)?I.none():((e,t,n)=>(Rc(e,n,Pi()),I.some(!0)))(e,0,n),td=(e,t)=>I.some(!0),nd=[Xa("execute",ed),Xa("useSpace",!1),Xa("useEnter",!0),Xa("useControlEnter",!1),Xa("useDown",!1)],od=(e,t,n)=>n.execute(e,t,e.element);var rd=$u(nd,Bc.init,(e,t,n,o)=>{const r=n.useSpace&&!Qu(e.element)?Au:[],a=n.useEnter?yu:[],i=n.useDown?Cu:[],l=r.concat(a).concat(i);return[Nu(Bu(l),od)].concat(n.useControlEnter?[Nu(Ou([Du,Bu(yu)]),od)]:[])},(e,t,n,o)=>n.useSpace&&!Qu(e.element)?[Nu(Bu(Au),td)]:[],()=>I.none());const ad=()=>{const e=We();return Oc({readState:()=>e.get().map(e=>({numRows:String(e.numRows),numColumns:String(e.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(t,n)=>{e.set({numRows:t,numColumns:n})},getNumRows:()=>e.get().map(e=>e.numRows),getNumColumns:()=>e.get().map(e=>e.numColumns)})};var id=Object.freeze({__proto__:null,flatgrid:ad,init:e=>e.state(e)});const ld=e=>(t,n,o,r)=>{const a=e(t.element);return dd(a,t,n,o,r)},sd=(e,t)=>{const n=Fo(e,t);return ld(n)},cd=(e,t)=>{const n=Fo(t,e);return ld(n)},ud=e=>(t,n,o,r)=>dd(e,t,n,o,r),dd=(e,t,n,o,r)=>o.focusManager.get(t).bind(n=>e(t.element,n,o,r)).map(e=>(o.focusManager.set(t,e),!0)),pd=ud,fd=ud,md=ud,gd=(e,t,n)=>{const o=pr(e,n);return(e=>G(e,e=>_t(e,t)).map(t=>({index:t,candidates:e})))(U(o,wo))},hd=(e,t)=>G(e,e=>_t(t,e)),bd=(e,t,n,o)=>o(Math.floor(t/n),t%n).bind(t=>{const o=t.row*n+t.column;return o>=0&&o<e.length?I.some(e[o]):I.none()}),vd=(e,t,n,o,r)=>bd(e,t,o,(t,a)=>{const i=t===n-1?e.length-t*o:o,l=De(a,r,0,i-1);return I.some({row:t,column:l})}),yd=(e,t,n,o,r)=>bd(e,t,o,(t,a)=>{const i=De(t,r,0,n-1),l=i===n-1?e.length-i*o:o,s=Me(a,0,l-1);return I.some({row:i,column:s})}),_d=[Na("selector"),Xa("execute",ed),vl("onEscape"),Xa("captureTab",!1),xl()],Ad=(e,t,n)=>{Wo(e.element,t.selector).each(n=>{t.focusManager.set(e,n)})},kd=e=>(t,n,o,r)=>gd(t,n,o.selector).bind(t=>e(t.candidates,t.index,r.getNumRows().getOr(o.initSize.numRows),r.getNumColumns().getOr(o.initSize.numColumns))),xd=(e,t,n)=>n.captureTab?I.some(!0):I.none(),wd=kd((e,t,n,o)=>vd(e,t,n,o,-1)),Cd=kd((e,t,n,o)=>vd(e,t,n,o,1)),Ed=kd((e,t,n,o)=>yd(e,t,n,o,-1)),Sd=kd((e,t,n,o)=>yd(e,t,n,o,1)),Td=_([Nu(Bu(ku),sd(wd,Cd)),Nu(Bu(wu),cd(wd,Cd)),Nu(Bu(xu),pd(Ed)),Nu(Bu(Cu),fd(Sd)),Nu(Ou([Lu,Bu(vu)]),xd),Nu(Ou([Mu,Bu(vu)]),xd),Nu(Bu(Au.concat(yu)),(e,t,n,o)=>((e,t)=>t.focusManager.get(e).bind(e=>$o(e,t.selector)))(e,n).bind(o=>n.execute(e,t,o)))]),Id=_([Nu(Bu(_u),(e,t,n)=>n.onEscape(e,t)),Nu(Bu(Au),td)]);var Bd=$u(_d,ad,Td,Id,()=>I.some(Ad));const Od=(e,t,n,o,r)=>{const a=(e,t,n)=>r(e,t,o,0,n.length-1,n[t],t=>{return o=n[t],"button"===en(o)&&"disabled"===Zn(o,"disabled")?a(e,t,n):I.from(n[t]);var o});return gd(e,n,t).bind(e=>{const t=e.index,n=e.candidates;return a(t,t,n)})},Ld=(e,t,n,o)=>Od(e,t,n,o,(e,t,n,o,r,a,i)=>{const l=Me(t+n,o,r);return l===e?I.from(a):i(l)}),Dd=(e,t,n,o)=>Od(e,t,n,o,(e,t,n,o,r,a,i)=>{const l=De(t,n,o,r);return l===e?I.none():i(l)}),Md=[Na("selector"),Xa("getInitial",I.none),Xa("execute",ed),vl("onEscape"),Xa("executeOnMove",!1),Xa("allowVertical",!0),Xa("allowHorizontal",!0),Xa("cycles",!0)],Nd=(e,t,n)=>((e,t)=>t.focusManager.get(e).bind(e=>$o(e,t.selector)))(e,n).bind(o=>n.execute(e,t,o)),Pd=(e,t,n)=>{t.getInitial(e).orThunk(()=>Wo(e.element,t.selector)).each(n=>{t.focusManager.set(e,n)})},Rd=(e,t,n)=>(n.cycles?Dd:Ld)(e,n.selector,t,-1),Fd=(e,t,n)=>(n.cycles?Dd:Ld)(e,n.selector,t,1),Vd=e=>(t,n,o,r)=>e(t,n,o,r).bind(()=>o.executeOnMove?Nd(t,n,o):I.some(!0)),zd=_([Nu(Bu(Au),td),Nu(Bu(_u),(e,t,n)=>n.onEscape(e,t))]);var Ud=$u(Md,Bc.init,(e,t,n,o)=>{const r=[...n.allowHorizontal?ku:[]].concat(n.allowVertical?xu:[]),a=[...n.allowHorizontal?wu:[]].concat(n.allowVertical?Cu:[]);return[Nu(Bu(r),Vd(sd(Rd,Fd))),Nu(Bu(a),Vd(cd(Rd,Fd))),Nu(Bu(yu),Nd),Nu(Bu(Au),Nd)]},zd,()=>I.some(Pd));const jd=(e,t,n)=>I.from(e[t]).bind(e=>I.from(e[n]).map(e=>({rowIndex:t,columnIndex:n,cell:e}))),Hd=(e,t,n,o)=>{const r=e[t].length,a=De(n,o,0,r-1);return jd(e,t,a)},qd=(e,t,n,o)=>{const r=De(n,o,0,e.length-1),a=e[r].length,i=Me(t,0,a-1);
vendor: 4,725 bytes, line 2
2return jd(e,r,i)},Gd=(e,t,n,o)=>{const r=e[t].length,a=Me(n+o,0,r-1);return jd(e,t,a)},Kd=(e,t,n,o)=>{const r=Me(n+o,0,e.length-1),a=e[r].length,i=Me(t,0,a-1);return jd(e,r,i)},Zd=[Ua("selectors",[Na("row"),Na("cell")]),Xa("cycles",!0),Xa("previousSelector",I.none),Xa("execute",ed)],Wd=(e,t,n)=>{t.previousSelector(e).orThunk(()=>{const n=t.selectors;return Wo(e.element,n.cell)}).each(n=>{t.focusManager.set(e,n)})},$d=(e,t)=>(n,o,r)=>{const a=r.cycles?e:t;return $o(o,r.selectors.row).bind(e=>{const t=pr(e,r.selectors.cell);return hd(t,o).bind(t=>{const o=pr(n,r.selectors.row);return hd(o,e).bind(e=>{const n=((e,t)=>F(e,e=>pr(e,t.selectors.cell)))(o,r);return a(n,e,t).map(e=>e.cell)})})})},Yd=$d((e,t,n)=>Hd(e,t,n,-1),(e,t,n)=>Gd(e,t,n,-1)),Jd=$d((e,t,n)=>Hd(e,t,n,1),(e,t,n)=>Gd(e,t,n,1)),Xd=$d((e,t,n)=>qd(e,n,t,-1),(e,t,n)=>Kd(e,n,t,-1)),Qd=$d((e,t,n)=>qd(e,n,t,1),(e,t,n)=>Kd(e,n,t,1)),ep=_([Nu(Bu(ku),sd(Yd,Jd)),Nu(Bu(wu),cd(Yd,Jd)),Nu(Bu(xu),pd(Xd)),Nu(Bu(Cu),fd(Qd)),Nu(Bu(Au.concat(yu)),(e,t,n)=>Fn(e.element).bind(o=>n.execute(e,t,o)))]),tp=_([Nu(Bu(Au),td)]);var np=$u(Zd,Bc.init,ep,tp,()=>I.some(Wd));const op=[Na("selector"),Xa("execute",ed),Xa("moveOnTab",!1)],rp=(e,t,n)=>n.focusManager.get(e).bind(o=>n.execute(e,t,o)),ap=(e,t,n)=>{Wo(e.element,t.selector).each(n=>{t.focusManager.set(e,n)})},ip=(e,t,n)=>Dd(e,n.selector,t,-1),lp=(e,t,n)=>Dd(e,n.selector,t,1),sp=_([Nu(Bu(xu),md(ip)),Nu(Bu(Cu),md(lp)),Nu(Ou([Lu,Bu(vu)]),(e,t,n,o)=>n.moveOnTab?md(ip)(e,t,n,o):I.none()),Nu(Ou([Mu,Bu(vu)]),(e,t,n,o)=>n.moveOnTab?md(lp)(e,t,n,o):I.none()),Nu(Bu(yu),rp),Nu(Bu(Au),rp)]),cp=_([Nu(Bu(Au),td)]);var up=$u(op,Bc.init,sp,cp,()=>I.some(ap));const dp=[vl("onSpace"),vl("onEnter"),vl("onShiftEnter"),vl("onLeft"),vl("onRight"),vl("onTab"),vl("onShiftTab"),vl("onUp"),vl("onDown"),vl("onEscape"),Xa("stopSpaceKeyup",!1),qa("focusIn")];var pp=$u(dp,Bc.init,(e,t,n)=>[Nu(Bu(Au),n.onSpace),Nu(Ou([Mu,Bu(yu)]),n.onEnter),Nu(Ou([Lu,Bu(yu)]),n.onShiftEnter),Nu(Ou([Lu,Bu(vu)]),n.onShiftTab),Nu(Ou([Mu,Bu(vu)]),n.onTab),Nu(Bu(xu),n.onUp),Nu(Bu(Cu),n.onDown),Nu(Bu(ku),n.onLeft),Nu(Bu(wu),n.onRight),Nu(Bu(Au),n.onSpace)],(e,t,n)=>[...n.stopSpaceKeyup?[Nu(Bu(Au),td)]:[],Nu(Bu(_u),n.onEscape)],e=>e.focusIn);const fp=Ju.schema(),mp=Xu.schema(),gp=Ud.schema(),hp=Bd.schema(),bp=np.schema(),vp=rd.schema(),yp=up.schema(),_p=pp.schema(),Ap=cu({branchKey:"mode",branches:Object.freeze({__proto__:null,acyclic:fp,cyclic:mp,flow:gp,flatgrid:hp,matrix:bp,execution:vp,menu:yp,special:_p}),name:"keying",active:{events:(e,t)=>e.handler.toEvents(e,t)},apis:{focusIn:(e,t,n)=>{t.sendFocusIn(t).fold(()=>{e.getSystem().triggerFocus(e.element,e.element)},o=>{o(e,t,n)})},setGridSize:(e,t,n,o,r)=>{(e=>ve(e,"setGridSize"))(n)?n.setGridSize(o,r):console.error("Layout does not support setGridSize")}},state:id}),kp=Pe("alloy-premade"),xp=e=>(Object.defineProperty(e.element.dom,kp,{value:e.uid,writable:!0}),li(kp,e)),wp=e=>he(e,kp),Cp=e=>((e,t)=>{const n=t.toString(),o=n.indexOf(")")+1,r=n.indexOf("("),a=n.substring(r+1,o-1).split(/,\s*/);return e.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:wl(a.slice(1))}),e})((t,...n)=>e(t.getApis(),t,...n),e),Ep=e=>e.getSystem().isConnected(),Sp=e=>{Mc(e,Wi());const t=e.components();V(t,Sp)},Tp=e=>{const t=e.components();V(t,Tp),Mc(e,Zi())},Ip=(e,t)=>{e.getSystem().addToWorld(t),ro(e.element)&&Tp(t)},Bp=e=>{Sp(e),e.getSystem().removeFromWorld(e)},Op=(e,t)=>{jn(e.element,t.element)},Lp=(e,t)=>{Dp(e,t,jn)},Dp=(e,t,n)=>{e.getSystem().addToWorld(t),n(e.element,t.element),ro(e.element)&&Tp(t),e.syncComponents()},Mp=e=>{Sp(e),Xn(e.element),e.getSystem().removeFromWorld(e)},Np=e=>{const t=fn(e.element).bind(t=>e.getSystem().getByDom(t).toOptional());Mp(e),t.each(e=>{e.syncComponents()})},Pp=e=>{const t=e.components();V(t,Mp),Jn(e.element),e.syncComponents()},Rp=(e,t)=>{Vp(e,t,jn)},Fp=(e,t)=>{Vp(e,t,zn)},Vp=(e,t,n)=>{n(e,t.element);const o=hn(t.element);V(o,e=>{t.getByDom(e).each(Tp)})},zp=e=>{const t=hn(e.element);V(t,t=>{e.getByDom(t).each(Sp)}),Xn(e.element)},Up=(e,t,n)=>{n.fold(()=>jn(e,t),e=>{_t(e,t)||(Vn(e,t),Xn(e))})},jp=(e,t,n)=>{const o=F(t,n),r=hn(e);return V(r.slice(o.length),Xn),o},Hp=(e,t,n,o)=>{const r=bn(e,t),a=o(n,r),i=((e,t,n)=>bn(e,t).map(e=>{if(n.exists(t=>!_t(t,e))){const t=n.map(en).getOr("span"),o=lt(t);return Vn(e,o),o}return e}))(e,t,r);return Up(e,a.element,i),a},qp=(e,t)=>{const n=kn(t),o=Rn(n).bind(e=>{const n=t=>_t(e,t);return n(t)?I.some(t):((e,t)=>{const n=e=>{for(let o=0;o<e.childNodes.length;o++){const r=ct(e.childNodes[o]);if(t(r))return I.some(r);const a=n(e.childNodes[o]);if(a.isSome())return a}return I.none()};return n(e.dom)})(t,n)}),r=e(t);return o.each(e=>{Rn(n).filter(t=>_t(t,e)).fold(()=>{Mn(e)},b)}),r},Gp=(e,t)=>{qp(()=>
vendor: 4,581 bytes, line 2
2{((e,t,n)=>{const o=e.components();(e=>{V(e.components(),e=>Xn(e.element)),Jn(e.element),e.syncComponents()})(e);const r=n(t),a=Y(o,r);V(a,t=>{Sp(t),e.getSystem().removeFromWorld(t)}),V(r,t=>{Ep(t)?Op(e,t):(e.getSystem().addToWorld(t),Op(e,t),ro(e.element)&&Tp(t))}),e.syncComponents()})(e,t,()=>F(t,e.getSystem().build))},e.element)},Kp=(e,t)=>{qp(()=>{((n,o)=>{const r=n.components(),a=Z(o,e=>wp(e).toArray());V(r,e=>{M(a,e)||Bp(e)});const i=((e,t,n)=>jp(e,t,(t,o)=>Hp(e,o,t,n)))(e.element,t,e.getSystem().buildOrPatch),l=Y(r,i);V(l,e=>{Ep(e)&&Bp(e)}),V(i,e=>{Ep(e)||Ip(n,e)}),n.syncComponents()})(e,t)},e.element)},Zp=(e,t,n,o)=>{Bp(t);const r=Hp(e.element,n,o,e.getSystem().buildOrPatch);Ip(e,r),e.syncComponents()},Wp=(e,t,n)=>{const o=e.getSystem().build(n);Dp(e,o,t)},$p=(e,t,n,o)=>{Np(t),Wp(e,(e,t)=>((e,t,n)=>{bn(e,n).fold(()=>{jn(e,t)},e=>{Vn(e,t)})})(e,t,n),o)},Yp=(e,t)=>e.components(),Jp=(e,t,n,o,r)=>{const a=Yp(e);return I.from(a[o]).map(n=>(r.fold(()=>Np(n),r=>{(t.reuseDom?Zp:$p)(e,n,o,r)}),n))};var Xp=Object.freeze({__proto__:null,append:(e,t,n,o)=>{Wp(e,jn,o)},prepend:(e,t,n,o)=>{Wp(e,Un,o)},remove:(e,t,n,o)=>{const r=Yp(e),a=q(r,e=>_t(o.element,e.element));a.each(Np)},replaceAt:Jp,replaceBy:(e,t,n,o,r)=>{const a=Yp(e);return G(a,o).bind(n=>Jp(e,t,0,n,r))},set:(e,t,n,o)=>(t.reuseDom?Kp:Gp)(e,o),contents:Yp});const Qp=lu({fields:[oi("reuseDom",!0)],name:"replacing",apis:Xp}),ef=zc([(e=>({key:e,value:Dc({can:(e,t)=>{const n=t.event,o=n.originator,r=n.target;return!((e,t,n)=>_t(t,e.element)&&!_t(t,n))(e,o,r)||(console.warn(Li()+" did not get interpreted by the desired target. \nOriginator: "+rl(o)+"\nTarget: "+rl(r)+"\nCheck the "+Li()+" event handlers"),!1)}})}))(Li())]);var tf=Object.freeze({__proto__:null,events:ef});const nf=_("alloy-id-"),of=_("data-alloy-id"),rf=nf(),af=of(),lf=(e,t)=>{Object.defineProperty(e.dom,af,{value:t,writable:!0})},sf=e=>{const t=on(e)?e.dom[af]:null;return I.from(t)},cf=e=>Pe(e),uf=A,df=e=>{const t=t=>`The component must be in a context to execute: ${t}`+(e?"\n"+rl(e().element)+" is not in context.":""),n=e=>()=>{throw new Error(t(e))},o=e=>()=>{console.warn(t(e))};return{debugInfo:_("fake"),triggerEvent:o("triggerEvent"),triggerFocus:o("triggerFocus"),triggerEscape:o("triggerEscape"),broadcast:o("broadcast"),broadcastOn:o("broadcastOn"),broadcastEvent:o("broadcastEvent"),build:n("build"),buildOrPatch:n("buildOrPatch"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:S}},pf=df(),ff=(e,t)=>{const n={};return le(e,(e,o)=>{le(e,(e,r)=>{const a=he(n,r).getOr([]);n[r]=a.concat([t(o,e)])})}),n},mf=e=>e.cHandler,gf=(e,t)=>({name:e,handler:t}),hf=(e,t)=>{const n={};return V(e,e=>{n[e.name()]=e.handlers(t)}),n},bf=(e,t,n)=>{const o=t[n];return o?((e,t,n,o)=>{try{const r=Q(n,(n,r)=>{const a=n[t],i=r[t],l=o.indexOf(a),s=o.indexOf(i);if(-1===l)throw new Error("The ordering for "+e+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(o,null,2));if(-1===s)throw new Error("The ordering for "+e+" does not have an entry for "+i+".\nOrder specified: "+JSON.stringify(o,null,2));return l<s?-1:s<l?1:0});return Ie.value(r)}catch(e){return Ie.error([e])}})("Event: "+n,"name",e,o).map(e=>(e=>{const t=(e=>(...t)=>H(e,(e,n)=>e&&(e=>e.can)(n).apply(void 0,t),!0))(e),n=(e=>(...t)=>H(e,(e,n)=>e||(e=>e.abort)(n).apply(void 0,t),!1))(e);return{can:t,abort:n,run:(...t)=>{V(e,e=>{e.run.apply(void 0,t)})}}})(F(e,e=>e.handler))):((e,t)=>Ie.error(["The event ("+e+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(F(t,e=>e.name),null,2)]))(n,e)},vf=(e,t)=>((e,t)=>{const n=(e=>{const t=[],n=[];return V(e,e=>{e.fold(e=>{t.push(e)},e=>{n.push(e)})}),{errors:t,values:n}})(e);return n.errors.length>0?(o=n.errors,Ie.error(K(o))):((e,t)=>0===e.length?Ie.value(t):Ie.value(Fe(t,Ve.apply(void 0,e))))(n.values,t);var o})(fe(e,(e,n)=>(1===e.length?Ie.value(e[0].handler):bf(e,t,n)).map(o=>{const r=(e=>{const t=(e=>m(e)?{can:T,abort:S,run:e}:e)(e);return(e,n,...o)=>{const r=[e,n].concat(o);t.abort.apply(void 0,r)?n.stop():t.can.apply(void 0,r)&&t.run.apply(void 0,r)}})(o),a=e.length>1?U(t[n],t=>N(e,e=>e.name===t)).join(" > "):e[0].name;return li(n,((e,t)=>({handler:e,purpose:t}))(r,a))})),{}),yf="alloy.base.behaviour",_f=va([La("dom","dom",{tag:"required",process:{}},va([Na("tag"),Xa("styles",{}
vendor: 8,994 bytes, line 2
2),Xa("classes",[]),Xa("attributes",{}),qa("value"),qa("innerHtml")])),Na("components"),Na("uid"),Xa("events",{}),Xa("apis",{}),La("eventOrder","eventOrder",(Lf={[Pi()]:["disabling",yf,"toggling","typeaheadevents"],[Li()]:[yf,"focusing","keying"],[ji()]:[yf,"disabling","toggling","representing","tooltipping"],[xi()]:[yf,"representing","streaming","invalidating"],[Wi()]:[yf,"representing","item-events","toolbar-button-events","tooltipping"],[mi()]:["focusing",yf,"item-type-events"],[ui()]:["focusing",yf,"item-type-events"],[vi()]:["item-type-events","tooltipping"],[Ni()]:["receiving","reflecting","tooltipping"]},ca(_(Lf))),Qr()),qa("domModification")]),Af=e=>e.events,kf=(e,t)=>{const n=ae(e),o=ae(t),r=Y(o,n),a=(e=>{const n={},o={};return de(e,(e,n)=>!be(t,n)||e!==t[n],ue(n),ue(o)),{t:n,f:o}})(e).t;return{toRemove:r,toSet:a}},xf=(e,t)=>{const n=t.filter(t=>en(t)===e.tag&&!(e=>e.innerHtml.isSome()&&e.domChildren.length>0)(e)&&!(e=>be(e.dom,kp))(t)).bind(t=>((e,t)=>{try{const n=((e,t)=>{const{class:n,style:o,...r}=(e=>H(e.dom.attributes,(e,t)=>(e[t.name]=t.value,e),{}))(t),{toSet:a,toRemove:i}=kf(e.attributes,r),l=ho(t),{toSet:s,toRemove:c}=kf(e.styles,l),u=sr(t),d=Y(u,e.classes),p=Y(e.classes,u);return V(i,e=>Yn(t,e)),Kn(t,a),ir(t,p),lr(t,d),V(c,e=>vo(t,e)),uo(t,s),e.innerHtml.fold(()=>{const n=e.domChildren;((e,t)=>{jp(e,t,(t,n)=>{const o=bn(e,n);return Up(e,t,o),t})})(t,n)},e=>{to(t,e)}),(()=>{const n=t,o=e.value.getOrUndefined();o!==cr(n)&&ur(n,null!=o?o:"")})(),t})(e,t);return I.some(n)}catch(e){return I.none()}})(e,t)).getOrThunk(()=>(e=>{const t=lt(e.tag);Kn(t,e.attributes),ir(t,e.classes),uo(t,e.styles),e.innerHtml.each(e=>to(t,e));const n=e.domChildren;return Hn(t,n),e.value.each(e=>{ur(t,e)}),t})(e));return lf(n,e.uid),n},wf=e=>{const t=(e=>{const t=he(e,"behaviours").getOr({});return Z(ae(t),e=>{const n=t[e];return f(n)?[n.me]:[]})})(e);return((e,t)=>((e,t)=>{const n=F(t,e=>Ja(e.name(),[Na("config"),Xa("state",Bc)])),o=Ea("component.behaviours",va(n),e.behaviours).fold(t=>{throw new Error(Ia(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))},A);return{list:t,data:se(o,e=>{const t=e.map(e=>({config:e.config,state:e.state.init(e.config)}));return _(t)})}})(e,t))(e,t)},Cf=(e,t)=>{const n=()=>p,o=_e(pf),r=Sa((e=>Ea("custom.definition",_f,e))(e)),a=wf(e),i=(e=>e.list)(a),l=(e=>e.data)(a),s=((e,t,n)=>{const o={...(r=e).dom,uid:r.uid,domChildren:F(r.components,e=>e.element)};var r;const a=(e=>e.domModification.fold(()=>tu({}),tu))(e),i={"alloy.base.modification":a},l=t.length>0?((e,t,n,o)=>{const r={...t};V(n,t=>{r[t.name()]=t.exhibit(e,o)});const a=ff(r,(e,t)=>({name:e,modification:t})),i=e=>j(e,(e,t)=>({...t.modification,...e}),{}),l=j(a.classes,(e,t)=>t.modification.concat(e),[]),s=i(a.attributes),c=i(a.styles);return tu({classes:l,attributes:s,styles:c})})(n,i,t,o):a;return s=o,c=l,{...s,attributes:{...s.attributes,...c.attributes},styles:{...s.styles,...c.styles},classes:s.classes.concat(c.classes)};var s,c})(r,i,l),c=xf(s,t),u=((e,t,n)=>{const o={"alloy.base.behaviour":Af(e)};return((e,t,n,o)=>{const r=((e,t,n)=>{const o={...n,...hf(t,e)};return ff(o,gf)})(e,n,o);return vf(r,t)})(n,e.eventOrder,t,o).getOrDie()})(r,i,l),d=_e(r.components),p={uid:e.uid,getSystem:o.get,config:t=>{const n=l;return(m(n[t.name()])?n[t.name()]:()=>{throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))})()},hasConfigured:e=>m(l[e.name()]),spec:e,readState:e=>l[e]().map(e=>e.state.readState()).getOr("not enabled"),getApis:()=>r.apis,connect:e=>{o.set(e)},disconnect:()=>{o.set(df(n))},element:c,syncComponents:()=>{const e=hn(c),t=Z(e,e=>o.get().getByDom(e).fold(()=>[],X));d.set(t)},components:d.get,events:u};return p},Ef=e=>{const t=st(e);return Sf({element:t})},Sf=e=>{const t=Ta("external.component",ba([Na("element"),qa("uid")]),e),n=_e(df()),o=t.uid.getOrThunk(()=>cf("external"));lf(t.element,o);const r={uid:o,getSystem:n.get,config:I.none,hasConfigured:S,connect:e=>{n.set(e)},disconnect:()=>{n.set(df(()=>r))},getApis:()=>({}),element:t.element,spec:e,readState:_("No state"),syncComponents:b,components:_([]),events:{}};return xp(r)},Tf=cf,If=(e,t)=>wp(e).getOrThunk(()=>((e,t)=>{const{events:n,...o}=uf(e),r=((e,t)=>{const n=he(e,"components").getOr([]);return t.fold(()=>F(n,Bf),e=>F(n,(t,n)=>If(t,bn(e,n))))})(o,t),a={...o,events:{...tf,...n},components:r};return Ie.value(Cf(a,t))})((e=>be(e,"uid"))(e)?e:{uid:Tf(""),...e},t).getOrDie()),Bf=e=>If(e,I.none()),Of=xp;var Lf,Df=Object.freeze({__proto__:null,block:(e,t,n,o)=>{Gn(e.element,"aria-busy",!0);const r=t.getRoot(e).getOr(e),a=au([Ap.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),hu.config({})]),i=o(r,a),l=r.getSystem().build(i);Qp.append(r,Of(l)),l.hasConfigured(Ap)&&t.focus&&Ap.focusIn(l),n.isBlocked()||t.onBlock(e),n.blockWith(()=>Qp.remove(r,l))},unblock:(e,t,n)=>{Yn(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()},isBlocked:(e,t,n)=>n.isBlocked()}),Mf=[ri("getRoot",I.none),oi("focus",!0),bl("onBlock"),bl("onUnblock")];const Nf=lu({fields:Mf,name:"blocking",apis:Df,state:Object.freeze({__proto__:null,init:()=>{const e=Ke(e=>e.destroy());return Oc({readState:e.isSet,blockWith:t=>{e.set({destroy:t})},clear:e.clear,isBlocked:e.isSet})}})});var Pf=Object.freeze({__proto__:null,getCurrent:(e,t,n)=>t.find(e)});const Rf=[Na("find")],Ff=lu({fields:Rf,name:"composing",apis:Pf});var Vf=Object.freeze({__proto__:null,getCoupled:(e,t,n,o)=>n.getOrCreate(e,t,o),getExistingCoupled:(e,t,n,o)=>n.getExisting(e,t,o)}),zf=[Pa("others",Ca(Ie.value,Qr()))],Uf=Object.freeze({__proto__:null,init:()=>{const e={},t=(t,n)=>{if(0===ae(t.others).length)throw new Error("Cannot find any known coupled components");return he(e,n)},n=_({});return Oc({readState:n,getExisting:(e,n,o)=>t(n,o).orThunk(()=>(he(n.others,o).getOrDie("No information found for coupled component: "+o),I.none())),getOrCreate:(n,o,r)=>t(o,r).getOrThunk(()=>{const t=he(o.others,r).getOrDie("No information found for coupled component: "+r)(n),a=n.getSystem().build(t);return e[r]=a,a})})}});const jf=lu({fields:zf,name:"coupling",apis:Vf,state:Uf}),Hf=["input","button","textarea","select"],qf=(e,t,n)=>{(t.disabled()?Yf:Jf)(e,t)},Gf=(e,t)=>!0===t.useNative&&M(Hf,en(e.element)),Kf=e=>{Gn(e.element,"disabled","disabled")},Zf=e=>{Yn(e.element,"disabled")},Wf=e=>{Gn(e.element,"aria-disabled","true")},$f=e=>{Gn(e.element,"aria-disabled","false")},Yf=(e,t,n)=>{t.disableClass.each(t=>{nr(e.element,t)}),(Gf(e,t)?Kf:Wf)(e),t.onDisabled(e)},Jf=(e,t,n)=>{t.disableClass.each(t=>{rr(e.element,t)}),(Gf(e,t)?Zf:$f)(e),t.onEnabled(e)},Xf=(e,t)=>Gf(e,t)?(e=>$n(e.element,"disabled"))(e):(e=>"true"===Zn(e.element,"aria-disabled"))(e);var Qf=Object.freeze({__proto__:null,enable:Jf,disable:Yf,isDisabled:Xf,onLoad:qf,set:(e,t,n,o)=>{(o?Yf:Jf)(e,t)}}),em=Object.freeze({__proto__:null,exhibit:(e,t)=>tu({classes:t.disabled()?t.disableClass.toArray():[]}),events:(e,t)=>zc([Uc(Pi(),(t,n)=>Xf(t,e)),nu(e,t,qf)])}),tm=[ri("disabled",S),Xa("useNative",!0),qa("disableClass"),bl("onDisabled"),bl("onEnabled")];const nm=lu({fields:tm,name:"disabling",active:em,apis:Qf}),om=(e,t,n,o,r)=>{const a=e=>e+"px";return{position:e,left:t.map(a),top:n.map(a),right:o.map(a),bottom:r.map(a)}},rm=(e,t)=>{po(e,(e=>({...e,position:I.some(e.position)}))(t))},am=(e,t)=>{const n=e.element;nr(n,t.transitionClass),rr(n,t.fadeOutClass),nr(n,t.fadeInClass),t.onShow(e)},im=(e,t)=>{const n=e.element;nr(n,t.transitionClass),rr(n,t.fadeInClass),nr(n,t.fadeOutClass),t.onHide(e)},lm=(e,t)=>e.y>=t.y,sm=(e,t)=>e.bottom<=t.bottom,cm=(e,t,n)=>({location:"top",leftX:t,topY:n.bounds.y-e.y}),um=(e,t,n)=>({location:"bottom",leftX:t,bottomY:e.bottom-n.bounds.bottom}),dm=e=>e.box.x-e.win.x,pm=(e,t,n)=>n.getInitialPos().map(n=>{const o=((e,t)=>{const n=t.optScrollEnv.fold(_(e.bounds.y),t=>t.scrollElmTop+(e.bounds.y-t.currentScrollTop));return Oo(e.bounds.x,n)})(n,t);return{box:Mr(o.left,o.top,So(e),ko(e)),location:n.location}}),fm=(e,t,n,o,r)=>{const a=((e,t)=>{const n=t.optScrollEnv.fold(_(e.y),t=>e.y+t.currentScrollTop-t.scrollElmTop);return Oo(e.x,n)})(t,n),i=Mr(a.left,a.top,t.width,t.height);o.setInitialPos({style:ho(e),position:fo(e,"position")||"static",bounds:i,location:r.location})},mm=(e,t,n)=>n.getInitialPos().bind(o=>{var r;switch(n.clearInitialPos(),o.position){case"static":return I.some({morph:"static"});case"absolute":const n=zr(e).getOr(ao()),a=Nr(n),i=null!==(r=n.dom.scrollTop)&&void 0!==r?r:0;return I.some({morph:"absolute",positionCss:om("absolute",he(o.style,"left").map(e=>t.x-a.x),he(o.style,"top").map(e=>t.y-a.y+i),he(o.style,"right").map(e=>a.right-t.right),he(o.style,"bottom").map(e=>a.bottom-t.bottom))});default:return I.none()}}),gm=e=>{switch(e.location){case"top":return I.some({morph:"fixed",positionCss:om("fixed",I.some(e.leftX),I.some(e.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:om("fixed",I.some(e.leftX),I.none(),I.none(),I.some(e.bottomY))});default:return I.none()}},hm=(e,t,n)=>{const o=e.element;
vendor: 7,654 bytes, line 2
2return ze(go(o,"position"),"fixed")?((e,t,n)=>((e,t,n)=>pm(e,t,n).filter(({box:e})=>((e,t,n)=>W(e,e=>{switch(e){case"bottom":return sm(t,n.bounds);case"top":return lm(t,n.bounds)}}))(n.getModes(),e,t)).bind(({box:t})=>mm(e,t,n)))(e,t,n).orThunk(()=>t.optScrollEnv.bind(o=>pm(e,t,n)).bind(({box:e,location:n})=>{const o=Fr(),r=dm({win:o,box:e}),a="top"===n?cm(o,r,t):um(o,r,t);return gm(a)})))(o,t,n):((e,t,n)=>{const o=Nr(e),r=Fr(),a=((e,t,n)=>{const o=t.win,r=t.box,a=dm(t);return re(e,e=>{switch(e){case"bottom":return sm(r,n.bounds)?I.none():I.some(um(o,a,n));case"top":return lm(r,n.bounds)?I.none():I.some(cm(o,a,n));default:return I.none()}}).getOr({location:"no-dock"})})(n.getModes(),{win:r,box:o},t);return"top"===a.location||"bottom"===a.location?(fm(e,o,t,n,a),gm(a)):I.none()})(o,t,n)},bm=(e,t,n)=>{n.setDocked(!1),V(["left","right","top","bottom","position"],t=>vo(e.element,t)),t.onUndocked(e)},vm=(e,t,n,o)=>{const r="fixed"===o.position;n.setDocked(r),rm(e.element,o),(r?t.onDocked:t.onUndocked)(e)},ym=(e,t,n,o,r=!1)=>{t.contextual.each(t=>{t.lazyContext(e).each(a=>{const i=((e,t)=>e.y<t.bottom&&e.bottom>t.y)(a,o.bounds);i!==n.isVisible()&&(n.setVisible(i),r&&!i?(ir(e.element,[t.fadeOutClass]),t.onHide(e)):(i?am:im)(e,t))})})},_m=(e,t,n,o,r)=>{ym(e,t,n,o,!0),vm(e,t,n,r.positionCss)},Am=(e,t,n)=>{e.getSystem().isConnected()&&((e,t,n)=>{const o=t.lazyViewport(e);ym(e,t,n,o),hm(e,o,n).each(r=>{((e,t,n,o,r)=>{switch(r.morph){case"static":return bm(e,t,n);case"absolute":return vm(e,t,n,r.positionCss);case"fixed":_m(e,t,n,o,r)}})(e,t,n,o,r)})})(e,t,n)},km=(e,t,n)=>{n.isDocked()&&((e,t,n)=>{const o=e.element;n.setDocked(!1);const r=t.lazyViewport(e);((e,t,n)=>{const o=e.element;return pm(o,t,n).bind(({box:e})=>mm(o,e,n))})(e,r,n).each(o=>{switch(o.morph){case"static":bm(e,t,n);break;case"absolute":vm(e,t,n,o.positionCss)}}),n.setVisible(!0),t.contextual.each(t=>{lr(o,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)}),Am(e,t,n)})(e,t,n)},xm=e=>(t,n,o)=>{const r=n.lazyViewport(t);((e,t,n,o)=>{const r=Nr(e),a=Fr(),i=o(a,dm({win:a,box:r}),t);return"bottom"===i.location||"top"===i.location?(((e,t,n,o,r)=>{o.getInitialPos().fold(()=>fm(e,t,n,o,r),()=>b)})(e,r,t,n,i),gm(i)):I.none()})(t.element,r,o,e).each(e=>{_m(t,n,o,r,e)})},wm=xm(cm),Cm=xm(um);var Em=Object.freeze({__proto__:null,refresh:Am,reset:km,isDocked:(e,t,n)=>n.isDocked(),getModes:(e,t,n)=>n.getModes(),setModes:(e,t,n,o)=>n.setModes(o),forceDockToTop:wm,forceDockToBottom:Cm}),Sm=Object.freeze({__proto__:null,events:(e,t)=>zc([Yc(Si(),(n,o)=>{e.contextual.each(e=>{ar(n.element,e.transitionClass)&&(lr(n.element,[e.transitionClass,e.fadeInClass]),(t.isVisible()?e.onShown:e.onHidden)(n)),o.stop()})}),Hc(Gi(),(n,o)=>{Am(n,e,t)}),Hc(Qi(),(n,o)=>{Am(n,e,t)}),Hc(Ki(),(n,o)=>{km(n,e,t)})])}),Tm=[Ja("contextual",[Fa("fadeInClass"),Fa("fadeOutClass"),Fa("transitionClass"),za("lazyContext"),bl("onShow"),bl("onShown"),bl("onHide"),bl("onHidden")]),ri("lazyViewport",()=>({bounds:Fr(),optScrollEnv:I.none()})),ai("modes",["top","bottom"],na),bl("onDocked"),bl("onUndocked")];const Im=lu({fields:Tm,name:"docking",active:Sm,apis:Em,state:Object.freeze({__proto__:null,init:e=>{const t=_e(!1),n=_e(!0),o=We(),r=_e(e.modes);return Oc({isDocked:t.get,setDocked:t.set,getInitialPos:o.get,setInitialPos:o.set,clearInitialPos:o.clear,isVisible:n.get,setVisible:n.set,getModes:r.get,setModes:r.set,readState:()=>`docked: ${t.get()}, visible: ${n.get()}, modes: ${r.get().join(",")}`})}})}),Bm=ye([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),Om=e=>t=>t.translate(-e.left,-e.top),Lm=e=>t=>t.translate(e.left,e.top),Dm=e=>(t,n)=>H(e,(e,t)=>t(e),Oo(t,n)),Mm=(e,t,n)=>e.fold(Dm([Lm(n),Om(t)]),Dm([Om(t)]),Dm([])),Nm=(e,t,n)=>e.fold(Dm([Lm(n)]),Dm([]),Dm([Lm(t)])),Pm=(e,t,n)=>e.fold(Dm([]),Dm([Om(n)]),Dm([Lm(t),Om(n)])),Rm=(e,t,n)=>{const o=e.fold((e,t)=>({position:I.some("absolute"),left:I.some(e+"px"),top:I.some(t+"px")}),(e,t)=>({position:I.some("absolute"),left:I.some(e-n.left+"px"),top:I.some(t-n.top+"px")}),(e,t)=>({position:I.some("fixed"),left:I.some(e+"px"),top:I.some(t+"px")}));return{right:I.none(),bottom:I.none(),...o}},Fm=(e,t,n,o)=>{const r=(e,r)=>(a,i)=>{const l=e(t,n,o);return r(a.getOr(l.left),i.getOr(l.top))};return e.fold(r(Pm,Vm),r(Nm,zm),r(Mm,Um))},Vm=Bm.offset,zm=Bm.absolute,Um=Bm.fixed,jm=(e,t)=>{const n=Zn(e,t);return d(n)?NaN:parseInt(n,10)},Hm=(e,t,n,o,r,a)=>{const i=((e,t,n,o)=>((e,t)=>{const n=e.element,o=jm(n,t.leftAttr),r=jm(n,t.topAttr);return isNaN(o)||isNaN(r)?I.none():I.some(Oo(o,r))})(e,t).fold(()=>n,e=>Um(e.left+o.left,e.top+o.top)))(e,t,n,o),l=t.mustSnap?Gm(e,t,i,r,a):Km(e,t,i,r,a),s=Mm(i,r,a);return((e,t,n)=>{const o=e.element;Gn(o,t.leftAttr,n.left+"px"),Gn(o,t.topAttr,n.top+"px")})(e,t,s),l.fold(()=>({coord:Um(s.left,s.top),extra:I.none()}),e=>({coord:e.output,extra:e.extra}))},qm=(e,t,n,o)=>re(e,e=>{const r=e.sensor,a=((e,t,n,o,r,a)=>{const i=Nm(e,r,a),l=Nm(t,r,a);return Math.abs(i.left-l.left)<=n&&Math.abs(i.top-l.top)<=o})(t,r,e.range.left,e.range.top,n,o);return a?I.some({output:Fm(e.output,t,n,o),extra:e.extra}):I.none()}),Gm=(e,t,n,o,r)=>{const a=t.getSnapPoints(e);return qm(a,n,o,r).orThunk(()=>{const e=H(a,(e,t)=>{const a=t.sensor,i=((e,t,n,o,r,a)=>{const i=Nm(e,r,a),l=Nm(t,r,a),s=Math.abs(i.left-l.left),c=Math.abs(i.top-l.top);return Oo(s,c)})(n,a,t.range.left,t.range.top,o,r);return e.deltas.fold(()=>({deltas:I.some(i),snap:I.some(t)}),n=>(i.left+i.top)/2<=(n.left+n.top)/2?{deltas:I.some(i),snap:I.some(t)}:e)},{deltas:I.none(),snap:I.none()});return e.snap.map(e=>({output:Fm(e.output,n,o,r),extra:e.extra}))})},Km=(e,t,n,o,r)=>{const a=t.getSnapPoints(e);return qm(a,n,o,r)};var Zm=Object.freeze({__proto__:null,snapTo:(e,t,n,o)=>{const r=t.getTarget(e.element);if(t.repositionTarget){const t=cn(e.element),n=No(t),a=Ur(r),i=((e,t,n)=>({coord:Fm(e.output,e.output,t,n),extra:e.extra}))(o,n,a),l=Rm(i.coord,0,a);po(r,l)}}});const Wm=(e,t)=>ii(e,{},F(t,t=>{return n=t.name(),o="Cannot configure "+t.name()+" for "+e,La(n,n,{tag:"option",process:{}},Jr(e=>Zr("The field: "+n+" is forbidden. "+o)));var n,o}).concat([Da("dump",A)])),$m=e=>e.dump,Ym=(e,t)=>({...au(t),...e.dump}),Jm=Wm,Xm=Ym,Qm=(e,t,n,o,r)=>{const a=((e,t)=>(e.length>0?[Ua("parts",e)]:[]).concat([Na("uid"),Xa("dom",{}),Xa("components",[]),kl("originalSpec"),Xa("debug.sketcher",{})]).concat(t))(o,r);return Ta(e+" [SpecSchema]",ba(a.concat(t)),n)},eg=(e,t,n,o,r)=>{const a=tg(r),i=ls(n),l=vs(n),s=Qm(e,t,a,i,[l]),c=cs(0,s,n);return o(s,us(e,s,c.internals()),a,c.externals())},tg=e=>(e=>be(e,"uid"))(e)?e:{...e,uid:cf("uid")},ng=ba([Na("name"),Na("factory"),Na("configFields"),Xa("apis",{}),Xa("extraApis",{})]),og=ba([Na("name"),Na("factory"),Na("configFields"),Na("partFields"),Xa("apis",{}),Xa("extraApis",{})]),rg=e=>{const t=Ta("Sketcher for "+e.name,ng,e),n=se(t.apis,Cp),o=se(t.extraApis,(e,t)=>Cl(e,t));return{name:t.name,configFields:t.configFields,sketch:e=>((e,t,n,o)=>{const r=tg(o);return n(Qm(e,t,r,[],[]),r)})(t.name,t.configFields,t.factory,e),...n,...o}},ag=e=>{const t=Ta("Sketcher for "+e.name,og,e),n=rs(t.name,t.partFields),o=se(t.apis,Cp),r=se(t.extraApis,(e,t)=>Cl(e,t));return{name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:e=>eg(t.name,t.configFields,t.partFields,t.factory,e),parts:n,...o,...r}},ig=rg({name:"Container",factory:e=>{const{attributes:t,...n}=e.dom;return{uid:e.uid,dom:{tag:"div",attributes:{role:"presentation",...t},...n},components:e.components,behaviours:$m(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},configFields:[Xa("components",[]),Wm("containerBehaviours",[]),Xa("events",{}
vendor: 4,593 bytes, line 2
2),Xa("domModification",{}),Xa("eventOrder",{})]}),lg="data-initial-z-index",sg=(e,t)=>{e.getSystem().addToGui(t),(e=>{fn(e.element).filter(on).each(t=>{go(t,"z-index").each(e=>{Gn(t,lg,e)}),co(t,"z-index",fo(e.element,"z-index"))})})(t)},cg=e=>{(e=>{fn(e.element).filter(on).each(e=>{Wn(e,lg).fold(()=>vo(e,"z-index"),t=>co(e,"z-index",t)),Yn(e,lg)})})(e),e.getSystem().removeFromGui(e)},ug=(e,t,n)=>e.getSystem().build(ig.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}));var dg=Ja("snaps",[Na("getSnapPoints"),bl("onSensor"),Na("leftAttr"),Na("topAttr"),Xa("lazyViewport",Fr),Xa("mustSnap",!1)]);const pg=[Xa("useFixed",S),Na("blockerClass"),Xa("getTarget",A),Xa("onDrag",b),Xa("repositionTarget",!0),Xa("onDrop",b),ri("getBounds",Fr),dg],fg=e=>{return(t=go(e,"left"),n=go(e,"top"),o=go(e,"position"),t.isSome()&&n.isSome()&&o.isSome()?I.some(((e,t,n)=>("fixed"===n?Um:Vm)(parseInt(e,10),parseInt(t,10)))(t.getOrDie(),n.getOrDie(),o.getOrDie())):I.none()).getOrThunk(()=>{const t=Do(e);return zm(t.left,t.top)});var t,n,o},mg=(e,t)=>({bounds:e.getBounds(),height:xo(t.element),width:To(t.element)}),gg=(e,t,n,o,r)=>{const a=n.update(o,r),i=n.getStartData().getOrThunk(()=>mg(t,e));a.each(n=>{((e,t,n,o)=>{const r=t.getTarget(e.element);if(t.repositionTarget){const a=cn(e.element),i=No(a),l=Ur(r),s=fg(r),c=((e,t,n,o,r,a,i)=>((e,t,n,o,r)=>{const a=r.bounds,i=Nm(t,n,o),l=Me(i.left,a.x,a.x+a.width-r.width),s=Me(i.top,a.y,a.y+a.height-r.height),c=zm(l,s);return t.fold(()=>{const e=Pm(c,n,o);return Vm(e.left,e.top)},_(c),()=>{const e=Mm(c,n,o);return Um(e.left,e.top)})})(0,t.fold(()=>{const e=(t=n,i=a.left,l=a.top,t.fold((e,t)=>Vm(e+i,t+l),(e,t)=>zm(e+i,t+l),(e,t)=>Um(e+i,t+l)));var t,i,l;const s=Mm(e,o,r);return Um(s.left,s.top)},t=>{const i=Hm(e,t,n,a,o,r);return i.extra.each(n=>{t.onSensor(e,n)}),i.coord}),o,r,i))(e,t.snaps,s,i,l,o,n),u=Rm(c,0,l);po(r,u)}t.onDrag(e,r,o)})(e,t,i,n)})},hg=(e,t,n,o)=>{t.each(cg),n.snaps.each(t=>{((e,t)=>{((e,t)=>{const n=e.element;Yn(n,t.leftAttr),Yn(n,t.topAttr)})(e,t)})(e,t)});const r=n.getTarget(e.element);o.reset(),n.onDrop(e,r)},bg=e=>(t,n)=>{const o=e=>{n.setStartData(mg(t,e))};return zc([Hc(Gi(),e=>{n.getStartData().each(()=>o(e))}),...e(t,n,o)])};var vg=Object.freeze({__proto__:null,getData:e=>I.from(Oo(e.x,e.y)),getDelta:(e,t)=>Oo(t.left-e.left,t.top-e.top)});const yg=(e,t,n)=>[Hc(mi(),(o,r)=>{if(0!==r.event.raw.button)return;r.stop();const a=()=>hg(o,I.some(s),e,t),i=El(a,200),l={drop:a,delayDrop:i.schedule,forceDrop:a,move:n=>{i.cancel(),gg(o,e,t,vg,n)}},s=ug(o,e.blockerClass,(e=>zc([Hc(mi(),e.forceDrop),Hc(bi(),e.drop),Hc(gi(),(t,n)=>{e.move(n.event)}),Hc(hi(),e.delayDrop)]))(l));n(o),sg(o,s)})],_g=[...pg,Al("dragger",{handlers:bg(yg)})];var Ag=Object.freeze({__proto__:null,getData:e=>{const t=e.raw.touches;return 1===t.length?(e=>{const t=e[0];return I.some(Oo(t.clientX,t.clientY))})(t):I.none()},getDelta:(e,t)=>Oo(t.left-e.left,t.top-e.top)});const kg=(e,t,n)=>{const o=We(),r=n=>{hg(n,o.get(),e,t),o.clear()};return[Hc(ui(),(a,i)=>{i.stop();const l=()=>r(a),s={drop:l,delayDrop:b,forceDrop:l,move:n=>{gg(a,e,t,Ag,n)}},c=ug(a,e.blockerClass,(e=>zc([Hc(ui(),e.forceDrop),Hc(pi(),e.drop),Hc(fi(),e.drop),Hc(di(),(t,n)=>{e.move(n.event)})]))(s));o.set(c),n(a),sg(a,c)}),Hc(di(),(n,o)=>{o.stop(),gg(n,e,t,Ag,o.event)}),Hc(pi(),(e,t)=>{t.stop(),r(e)}),Hc(fi(),r)]},xg=_g,wg=[...pg,Al("dragger",{handlers:bg(kg)})],Cg=[...pg,Al("dragger",{handlers:bg((e,t,n)=>[...yg(e,t,n),...kg(e,t,n)])})];var Eg=Object.freeze({__proto__:null,mouse:xg,touch:wg,mouseOrTouch:Cg}),Sg=Object.freeze({__proto__:null,init:()=>{let e=I.none(),t=I.none();const n=_({});return Oc({readState:n,reset:()=>{e=I.none(),t=I.none()},update:(t,n)=>t.getData(n).bind(n=>((t,n)=>{const o=e.map(e=>t.getDelta(e,n));return e=I.some(n),o})(t,n)),getStartData:()=>t,setStartData:e=>{t=I.some(e)}})}});const Tg=cu({branchKey:"mode",branches:Eg,name:"dragging",active:{events:(e,t)=>e.dragger.handlers(e,t)},extra:{snap:e=>({sensor:e.sensor,range:e.range,output:e.output,extra:I.from(e.extra)})},state:Sg,apis:Zm}),Ig=["input","textarea"],Bg=e=>{const t=en(e);return M(Ig,t)},Og=(e,t)=>{const n=t.getRoot(e).getOr(e.element);rr(n,t.invalidClass),t.notify.each(t=>{Bg(e.element)&&Gn(e.element,"aria-invalid",!1),t.getContainer(e).each(e=>{to(e,t.validHtml)}),t.onValid(e)})},Lg=(e,t,n,o)=>{const r=t.getRoot(e).getOr(e.element);nr(r,t.invalidClass),t.notify.each(t=>{Bg(e.element)&&Gn(e.element,"aria-invalid",!0),t.getContainer(e).each(e=>{to(e,o)}),t.onInvalid(e,o)})}
vendor: 4,490 bytes, line 2
2,Dg=(e,t,n)=>t.validator.fold(()=>Ee(Ie.value(!0)),t=>t.validate(e)),Mg=(e,t,n)=>(t.notify.each(t=>{t.onValidate(e)}),Dg(e,t).map(n=>e.getSystem().isConnected()?n.fold(n=>(Lg(e,t,0,n),Ie.error(n)),n=>(Og(e,t),Ie.value(n))):Ie.error("No longer in system")));var Ng=Object.freeze({__proto__:null,markValid:Og,markInvalid:Lg,query:Dg,run:Mg,isInvalid:(e,t)=>{const n=t.getRoot(e).getOr(e.element);return ar(n,t.invalidClass)}}),Pg=Object.freeze({__proto__:null,events:(e,t)=>e.validator.map(t=>zc([Hc(t.onEvent,t=>{Mg(t,e).get(A)})].concat(t.validateOnLoad?[Jc(t=>{Mg(t,e).get(b)})]:[]))).getOr({})}),Rg=[Na("invalidClass"),Xa("getRoot",I.none),Ja("notify",[Xa("aria","alert"),Xa("getContainer",I.none),Xa("validHtml",""),bl("onValid"),bl("onInvalid"),bl("onValidate")]),Ja("validator",[Na("validate"),Xa("onEvent","input"),Xa("validateOnLoad",!0)])];const Fg=(e,t,n)=>{t.store.manager.onLoad(e,t,n)},Vg=(e,t,n)=>{t.store.manager.onUnload(e,t,n)};var zg=Object.freeze({__proto__:null,onLoad:Fg,onUnload:Vg,setValue:(e,t,n,o)=>{t.store.manager.setValue(e,t,n,o)},getValue:(e,t,n)=>t.store.manager.getValue(e,t,n),getState:(e,t,n)=>n}),Ug=Object.freeze({__proto__:null,events:(e,t)=>{const n=e.resetOnDom?[Jc((n,o)=>{Fg(n,e,t)}),Xc((n,o)=>{Vg(n,e,t)})]:[nu(e,t,Fg)];return zc(n)}});const jg=()=>{const e=_e(null);return Oc({set:e.set,get:e.get,isNotSet:()=>null===e.get(),clear:()=>{e.set(null)},readState:()=>({mode:"memory",value:e.get()})})},Hg=()=>{const e=_e({}),t=_e({});return Oc({readState:()=>({mode:"dataset",dataByValue:e.get(),dataByText:t.get()}),lookup:n=>he(e.get(),n).orThunk(()=>he(t.get(),n)),update:n=>{const o=e.get(),r=t.get(),a={},i={};V(n,e=>{a[e.value]=e,he(e,"meta").each(t=>{he(t,"text").each(t=>{i[t]=e})})}),e.set({...o,...a}),t.set({...r,...i})},clear:()=>{e.set({}),t.set({})}})};var qg=Object.freeze({__proto__:null,memory:jg,dataset:Hg,manual:()=>Oc({readState:b}),init:e=>e.store.manager.state(e)});const Gg=(e,t,n,o)=>{const r=t.store;n.update([o]),r.setValue(e,o),t.onSetValue(e,o)};var Kg=[qa("initialValue"),Na("getFallbackEntry"),Na("getDataKey"),Na("setValue"),Al("manager",{setValue:Gg,getValue:(e,t,n)=>{const o=t.store,r=o.getDataKey(e);return n.lookup(r).getOrThunk(()=>o.getFallbackEntry(r))},onLoad:(e,t,n)=>{t.store.initialValue.each(o=>{Gg(e,t,n,o)})},onUnload:(e,t,n)=>{n.clear()},state:Hg})],Zg=[Na("getValue"),Xa("setValue",b),qa("initialValue"),Al("manager",{setValue:(e,t,n,o)=>{t.store.setValue(e,o),t.onSetValue(e,o)},getValue:(e,t,n)=>t.store.getValue(e),onLoad:(e,t,n)=>{t.store.initialValue.each(n=>{t.store.setValue(e,n)})},onUnload:b,state:Bc.init})],Wg=[qa("initialValue"),Al("manager",{setValue:(e,t,n,o)=>{n.set(o),t.onSetValue(e,o)},getValue:(e,t,n)=>n.get(),onLoad:(e,t,n)=>{t.store.initialValue.each(e=>{n.isNotSet()&&n.set(e)})},onUnload:(e,t,n)=>{n.clear()},state:jg})],$g=[Qa("store",{mode:"memory"},Ba("mode",{memory:Wg,manual:Zg,dataset:Kg})),bl("onSetValue"),Xa("resetOnDom",!1)];const Yg=lu({fields:$g,name:"representing",active:Ug,apis:zg,extra:{setValueFrom:(e,t)=>{const n=Yg.getValue(t);Yg.setValue(e,n)}},state:qg}),Jg=lu({fields:Rg,name:"invalidating",active:Pg,apis:Ng,extra:{validation:e=>t=>{const n=Yg.getValue(t);return Ee(e(n))}}});var Xg=Object.freeze({__proto__:null,exhibit:(e,t)=>tu({classes:[],styles:t.useFixed()?{}:{position:"relative"}})});const Qg=ye([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),eh=(e,t,n,o,r,a)=>{const i=t.rect,l=i.x-n,s=i.y-o,c=r-(l+i.width),u=a-(s+i.height),d=I.some(l),p=I.some(s),f=I.some(c),m=I.some(u),g=I.none();return t.direction.fold(()=>om(e,d,p,g,g),()=>om(e,g,p,f,g),()=>om(e,d,g,g,m),()=>om(e,g,g,f,m),()=>om(e,d,p,g,g),()=>om(e,d,g,g,m),()=>om(e,d,p,g,g),()=>om(e,g,p,f,g))},th=(e,t)=>e.fold(()=>{const e=t.rect;return om("absolute",I.some(e.x),I.some(e.y),I.none(),I.none())},(e,n,o,r)=>eh("absolute",t,e,n,o,r),(e,n,o,r)=>eh("fixed",t,e,n,o,r)),nh=(e,t)=>{const n=x(Dr,t),o=e.fold(n,n,()=>{const e=No();return Dr(t).translate(-e.left,-e.top)}),r=To(t),a=xo(t);return Mr(o.left,o.top,r,a)},oh=(e,t)=>t.fold(()=>e.fold(Fr,Fr,Mr),t=>e.fold(_(t),_(t),()=>{const n=rh(e,t.x,t.y);return Mr(n.left,n.top,t.width,t.height)})),rh=(e,t,n)=>{const o=Oo(t,n);return e.fold(_(o),_(o),()=>{const e=No();return o.translate(-e.left,-e.top)})};Qg.none;const ah=Qg.relative,ih=Qg.fixed,lh=ye([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),sh=(e,t,n,o)=>{const r=e.bubble,a=r.offset,i=((e,t,n)=>{const o=(o,r)=>
vendor: 6,951 bytes, line 2
2t[o].map(t=>{const a="top"===o||"bottom"===o,i=a?n.top:n.left,l=("left"===o||"top"===o?Math.max:Math.min)(t,r)+i;return a?Me(l,e.y,e.bottom):Me(l,e.x,e.right)}).getOr(r),r=o("left",e.x),a=o("top",e.y),i=o("right",e.right),l=o("bottom",e.bottom);return Mr(r,a,i-r,l-a)})(o,e.restriction,a),l=e.x+a.left,s=e.y+a.top,c=Mr(l,s,t,n),{originInBounds:u,sizeInBounds:d,visibleW:p,visibleH:f}=((e,t)=>{const{x:n,y:o,right:r,bottom:a}=t,{x:i,y:l,right:s,bottom:c,width:u,height:d}=e;return{originInBounds:i>=n&&i<=r&&l>=o&&l<=a,sizeInBounds:s<=r&&s>=n&&c<=a&&c>=o,visibleW:Math.min(u,i>=n?r-i:s-n),visibleH:Math.min(d,l>=o?a-l:c-o)}})(c,i),m=u&&d,g=m?c:((e,t)=>{const{x:n,y:o,right:r,bottom:a}=t,{x:i,y:l,width:s,height:c}=e,u=Math.max(n,r-s),d=Math.max(o,a-c),p=Me(i,n,u),f=Me(l,o,d),m=Math.min(p+s,r)-p,g=Math.min(f+c,a)-f;return Mr(p,f,m,g)})(c,i),h=g.width>0&&g.height>0,{maxWidth:b,maxHeight:v}=((e,t,n)=>{const o=_(t.bottom-n.y),r=_(n.bottom-t.y),a=((e,t,n,o)=>e.fold(t,t,o,o,t,o,n,n))(e,r,r,o),i=_(t.right-n.x),l=_(n.right-t.x),s=((e,t,n,o)=>e.fold(t,o,t,o,n,n,t,o))(e,l,l,i);return{maxWidth:s,maxHeight:a}})(e.direction,g,o),y={rect:g,maxHeight:v,maxWidth:b,direction:e.direction,placement:e.placement,classes:{on:r.classesOn,off:r.classesOff},layout:e.label,testY:s};return m||e.alwaysFit?lh.fit(y):lh.nofit(y,p,f,h)},ch=["top","bottom","right","left"],uh="data-alloy-transition-timer",dh=(e,t,n,o,r,i)=>{const l=((e,t,n)=>n.exists(n=>{const o=e.mode;return"all"===o||n[o]!==t[o]}))(o,r,i);if(l||((e,t)=>((e,t)=>W(t,t=>ar(e,t)))(e,t.classes))(e,o)){co(e,"position",n.position);const i=nh(t,e),s=th(t,{...r,rect:i}),c=J(ch,e=>s[e]);((e,t)=>{const n=e=>parseFloat(e).toFixed(3);return me(t,(t,o)=>!((e,t,n=k)=>je(e,t,n).getOr(e.isNone()&&t.isNone()))(e[o].map(n),t.map(n))).isSome()})(n,c)&&(po(e,c),l&&((e,t)=>{ir(e,t.classes),Wn(e,uh).each(t=>{clearTimeout(parseInt(t,10)),Yn(e,uh)}),((e,t)=>{const n=Ze(),o=Ze();let r;const i=t=>{var n;const o=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return _t(t.target,e)&&nt(o)&&M(ch,t.raw.propertyName)},l=a=>{if(p(a)||i(a)){n.clear(),o.clear();const i=null==a?void 0:a.raw.type;(p(i)||i===Si())&&(clearTimeout(r),Yn(e,uh),lr(e,t.classes))}},s=Bn(e,Ti(),t=>{i(t)&&(s.unbind(),n.set(Bn(e,Si(),l)),o.set(Bn(e,Ei(),l)))}),c=(e=>{const t=t=>{const n=fo(e,t).split(/\s*,\s*/);return U(n,tt)},n=e=>{if(a(e)&&/^[\d.]+/.test(e)){const t=parseFloat(e);return Qe(e,"ms")?t:1e3*t}return 0},o=t("transition-delay"),r=t("transition-duration");return H(r,(e,t,r)=>{const a=n(o[r])+n(t);return Math.max(e,a)},0)})(e);requestAnimationFrame(()=>{r=setTimeout(l,c+17),Gn(e,uh,r)})})(e,t)})(e,o),yo(e))}else lr(e,o.classes)},ph=(e,t,n)=>void 0===e[t]?n:e[t],fh=(e,t,n,o)=>{const r=((e,t,n,o)=>{vo(t,"max-height"),vo(t,"max-width");const r=(a=t,{width:Math.ceil(Io(a)),height:xo(a)});var a;return((e,t,n,o,r,a)=>{const i=o.width,l=o.height,s=(t,s,c,u,d)=>{const p=t(n,o,r,e,a),f=sh(p,i,l,a);return f.fold(_(f),(e,t,n,o)=>(d===o?n>u||t>c:!d&&o)?f:lh.nofit(s,c,u,d))};return H(t,(e,t)=>{const n=x(s,t);return e.fold(_(e),n)},lh.nofit({rect:n,maxHeight:o.height,maxWidth:o.width,direction:Cs(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1)).fold(A,A)})(t,o.preference,e,r,n,o.bounds)})(e,t,n,o);return((e,t,n)=>{const o=th(n.origin,t);n.transition.each(r=>{dh(e,n.origin,o,r,t,n.lastPlacement)}),rm(e,o)})(t,r,o),((e,t)=>{((e,t)=>{Gn(e,tc,t)})(e,t.placement)})(t,r),((e,t)=>{const n=t.classes;lr(e,n.off),ir(e,n.on)})(t,r),((e,t,n)=>{(0,n.maxHeightFunction)(e,t.maxHeight)})(t,r,o),((e,t,n)=>{(0,n.maxWidthFunction)(e,t.maxWidth)})(t,r,o),{layout:r.layout,placement:r.placement}},mh=A,gh=()=>Ja("layouts",[Na("onLtr"),Na("onRtl"),qa("onBottomLtr"),qa("onBottomRtl")]),hh=(e,t,n,o,r,a,i)=>{const l=i.map(Tc).getOr(!1),s=t.layouts.map(t=>t.onLtr(e)),c=t.layouts.map(t=>t.onRtl(e)),u=l?t.layouts.bind(t=>t.onBottomLtr.map(t=>t(e))).or(s).getOr(r):s.getOr(n),d=l?t.layouts.bind(t=>t.onBottomRtl.map(t=>t(e))).or(c).getOr(a):c.getOr(o);return Fo(u,d)(e)};var bh=[Na("hotspot"),qa("bubble"),Xa("overrides",{}),gh(),Al("placement",(e,t,n)=>{const o=t.hotspot,r=nh(n,o.element),a=hh(e.element,t,Qs(),ec(),Js(),Xs(),I.some(t.hotspot.element));return I.some(mh({anchorBox:r,bubble:t.bubble.getOr(ks()),overrides:t.overrides,layouts:a}))})],vh=[Na("x"),Na("y"),Xa("height",0),Xa("width",0),Xa("bubble",ks()),Xa("overrides",{}),gh(),Al("placement",(e,t,n)=>{const o=rh(n,t.x,t.y),r=Mr(o.left,o.top,t.width,t.height),a=hh(e.element,t,$s(),Ys(),$s(),Ys(),I.none());return I.some(mh({anchorBox:r,bubble:t.bubble,overrides:t.overrides,layouts:a}))})];const yh=ye([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),_h=e=>e.fold(A,(e,t,n)=>e.translate(-t,-n)),Ah=e=>e.fold(A,A),kh=e=>H(e,(e,t)=>e.translate(t.left,t.top),Oo(0,0)),xh=e=>{const t=F(e,Ah);return kh(t)},wh=yh.screen,Ch=yh.absolute,Eh=(e,t,n)=>{const o=cn(e.element),r=No(o),a=((e,t,n)=>{const o=pn(n.root).dom;return I.from(o.frameElement).map(ct).filter(t=>{const n=cn(t),o=cn(e.element);return _t(n,o)}).map(Do)})(e,0,n).getOr(r);return Ch(a,r.left,r.top)},Sh=(e,t,n,o)=>{const r=wh(Oo(e,t));return I.some(((e,t,n)=>({point:e,width:t,height:n}))(r,n,o))},Th=(e,t,n,o,r)=>e.map(e=>{const a=[t,e.point],i=(l=()=>xh(a),s=()=>xh(a),c=()=>(e=>{const t=F(e,_h);return kh(t)})(a),o.fold(l,s,c));var l,s,c;const u=(m=i.left,g=i.top,h=e.width,b=e.height,{x:m,y:g,width:h,height:b}),d=n.showAbove?Js():Qs(),p=n.showAbove?Xs():ec(),f=hh(r,n,d,p,d,p,I.none());var m,g,h,b;return mh({anchorBox:u,bubble:n.bubble.getOr(ks()),overrides:n.overrides,layouts:f})});var Ih=[Na("node"),Na("root"),qa("bubble"),gh(),Xa("overrides",{}),Xa("showAbove",!1),Al("placement",(e,t,n)=>{const o=Eh(e,0,t);return t.node.filter(ro).bind(r=>{const a=r.dom.getBoundingClientRect(),i=Sh(a.left,a.top,a.width,a.height),l=t.node.getOr(e.element);return Th(i,o,t,n,l)})})];const Bh=(e,t)=>({element:e,offset:t}),Oh=(e,t)=>rn(e)?Bh(e,t):((e,t)=>{const n=hn(e);if(0===n.length)return Bh(e,t);if(t<n.length)return Bh(n[t],0);{const e=n[n.length-1],t=rn(e)?(e=>Ro.get(e))(e).length:hn(e).length;return Bh(e,t)}})(e,t),Lh=e=>void 0!==e.foffset,Dh=(e,t)=>t.getSelection.getOrThunk(()=>()=>(e=>(e=>I.from(e.getSelection()))(e).filter(e=>e.rangeCount>0).bind(wr))(e))().map(e=>{if(Lh(e)){const t=Oh(e.start,e.soffset),n=Oh(e.finish,e.foffset);return kr.range(t.element,t.offset,n.element,n.offset)}return e});var Mh=[qa("getSelection"),Na("root"),qa("bubble"),gh(),Xa("overrides",{}),Xa("showAbove",!1),Al("placement",(e,t,n)=>{const o=pn(t.root).dom,r=Eh(e,0,t),a=Dh(o,t).bind(e=>{if(Lh(e)){const t=((e,t)=>(e=>{const t=e.getBoundingClientRect();return t.width>0||t.height>0?I.some(t).map(pt):I.none()})(gt(e,t)))(o,kr.exactFromRange(e)).orThunk(()=>{const t=st("\ufeff");Vn(e.start,t);const n=Cr(o,kr.exact(t,0,t,1));return Xn(t),n});return t.bind(e=>Sh(e.left,e.top,e.width,e.height))}{const t=se(e,e=>e.dom.getBoundingClientRect()),n={left:Math.min(t.firstCell.left,t.last
vendor: 40,185 bytes, line 2
2Cell.left),right:Math.max(t.firstCell.right,t.lastCell.right),top:Math.min(t.firstCell.top,t.lastCell.top),bottom:Math.max(t.firstCell.bottom,t.lastCell.bottom)};return Sh(n.left,n.top,n.right-n.left,n.bottom-n.top)}}),i=Dh(o,t).bind(e=>Lh(e)?on(e.start)?I.some(e.start):mn(e.start):I.some(e.firstCell)).getOr(e.element);return Th(a,r,t,n,i)})];const Nh="link-layout",Ph=e=>e.x+e.width,Rh=(e,t)=>e.x-t.width,Fh=(e,t)=>e.y-t.height+e.height,Vh=e=>e.y,zh=(e,t,n)=>xs(Ph(e),Vh(e),n.southeast(),Cs(),"southeast",Ds(e,{left:0,top:2}),Nh),Uh=(e,t,n)=>xs(Rh(e,t),Vh(e),n.southwest(),Es(),"southwest",Ds(e,{right:1,top:2}),Nh),jh=(e,t,n)=>xs(Ph(e),Fh(e,t),n.northeast(),Ss(),"northeast",Ds(e,{left:0,bottom:3}),Nh),Hh=(e,t,n)=>xs(Rh(e,t),Fh(e,t),n.northwest(),Ts(),"northwest",Ds(e,{right:1,bottom:3}),Nh),qh=()=>[zh,Uh,jh,Hh],Gh=()=>[Uh,zh,Hh,jh];var Kh=[Na("item"),gh(),Xa("overrides",{}),Al("placement",(e,t,n)=>{const o=nh(n,t.item.element),r=hh(e.element,t,qh(),Gh(),qh(),Gh(),I.none());return I.some(mh({anchorBox:o,bubble:ks(),overrides:t.overrides,layouts:r}))})],Zh=Ba("type",{selection:Mh,node:Ih,hotspot:bh,submenu:Kh,makeshift:vh});const Wh=[Ha("classes",na),ni("mode","all",["all","layout","placement"])],$h=[Xa("useFixed",S),qa("getBounds")],Yh=[Pa("anchor",Zh),Ja("transition",Wh)],Jh=(e,t,n,o,r,a)=>{const i=Ta("placement.info",va(Yh),r),l=i.anchor,s=o.element,c=n.get(o.uid);qp(()=>{co(s,"position","fixed");const r=go(s,"visibility");co(s,"visibility","hidden");const u=t.useFixed()?(()=>{const e=document.documentElement;return ih(0,0,e.clientWidth,e.clientHeight)})():(e=>{const t=Do(e.element),n=e.element.dom.getBoundingClientRect();return ah(t.left,t.top,n.width,n.height)})(e);l.placement(e,l,u).each(e=>{const r=a.orThunk(()=>t.getBounds.map(E)),l=((e,t,n,o,r,a)=>((e,t,n,o,r,a,i,l)=>{const s=ph(i,"maxHeightFunction",xc()),c=ph(i,"maxWidthFunction",b),u=e.anchorBox,d=e.origin,p={bounds:oh(d,a),origin:d,preference:o,maxHeightFunction:s,maxWidthFunction:c,lastPlacement:r,transition:l};return fh(u,t,n,p)})(((e,t)=>((e,t)=>({anchorBox:e,origin:t}))(e,t))(t.anchorBox,e),o.element,t.bubble,t.layouts,r,n,t.overrides,a))(u,e,r,o,c,i.transition);n.set(o.uid,l)}),r.fold(()=>{vo(s,"visibility")},e=>{co(s,"visibility",e)}),go(s,"left").isNone()&&go(s,"top").isNone()&&go(s,"right").isNone()&&go(s,"bottom").isNone()&&ze(go(s,"position"),"fixed")&&vo(s,"position")},s)};var Xh=Object.freeze({__proto__:null,position:(e,t,n,o,r)=>{const a=I.none();Jh(e,t,n,o,r,a)},positionWithinBounds:Jh,getMode:(e,t,n)=>t.useFixed()?"fixed":"absolute",reset:(e,t,n,o)=>{const r=o.element;V(["position","left","right","top","bottom"],e=>vo(r,e)),(e=>{Yn(e,tc)})(r),n.clear(o.uid)}});const Qh=lu({fields:$h,name:"positioning",active:Xg,apis:Xh,state:Object.freeze({__proto__:null,init:()=>{let e={};return Oc({readState:()=>e,clear:t=>{f(t)?delete e[t]:e={}},set:(t,n)=>{e[t]=n},get:t=>he(e,t)})}})});var eb=Object.freeze({__proto__:null,events:e=>zc([Hc(Ni(),(t,n)=>{const o=e.channels,r=ae(o),a=n,i=((e,t)=>t.universal?e:U(e,e=>M(t.channels,e)))(r,a);V(i,e=>{const n=o[e],r=n.schema,i=Ta("channel["+e+"] data\nReceiver: "+rl(t.element),r,a.data);n.onReceive(t,i)})})])}),tb=[Pa("channels",Ca(Ie.value,ba([yl("onReceive"),Xa("schema",Qr())])))];const nb=lu({fields:tb,name:"receiving",active:eb});var ob=Object.freeze({__proto__:null,events:(e,t)=>{const n=(n,o)=>{e.updateState.each(e=>{const r=e(n,o);t.set(r)}),e.renderComponents.each(r=>{const a=r(o,t.get());(e.reuseDom?Kp:Gp)(n,a)})};return zc([Hc(Ni(),(t,o)=>{const r=o;if(!r.universal){const o=e.channel;M(r.channels,o)&&n(t,r.data)}}),Jc((t,o)=>{e.initialData.each(e=>{n(t,e)})})])}}),rb=Object.freeze({__proto__:null,getState:(e,t,n)=>n}),ab=[Na("channel"),qa("renderComponents"),qa("updateState"),qa("initialData"),oi("reuseDom",!0)];const ib=lu({fields:ab,name:"reflecting",active:ob,apis:rb,state:Object.freeze({__proto__:null,init:()=>{const e=_e(I.none());return{readState:()=>e.get().getOr("none"),get:e.get,set:e.set,clear:()=>e.set(I.none())}}})}),lb=(e,t,n,o)=>{n.get().each(t=>{Pp(e)});const r=t.getAttachPoint(e);Lp(r,e);const a=e.getSystem().build(o);return Lp(e,a),n.set(a),a},sb=(e,t,n,o)=>{const r=lb(e,t,n,o);return t.onOpen(e,r),r},cb=(e,t,n)=>{n.get().each(o=>{Pp(e),Np(e),t.onClose(e,o),n.clear()})},ub=(e,t,n)=>n.isOpen(),db=(e,t,n)=>{const o=t.getAttachPoint(e);co(e.element,"position",Qh.getMode(o)),((e,t,n)=>{go(e.element,t).fold(()=>{Yn(e.element,n)},t=>{Gn(e.element,n,t)}),co(e.element,t,"hidden")})(e,"visibility",t.cloakVisibilityAttr)},pb=(e,t,n)=>{(e=>N(["top","left","right","bottom"],t=>go(e,t).isSome()))(e.element)||vo(e.element,"position"),((e,t,n)=>{Wn(e.element,n).fold(()=>vo(e.element,t),n=>co(e.element,t,n))})(e,"visibility",t.cloakVisibilityAttr)};var fb=Object.freeze({__proto__:null,cloak:db,decloak:pb,open:sb,openWhileCloaked:(e,t,n,o,r)=>{db(e,t),sb(e,t,n,o),r(),pb(e,t)},close:cb,isOpen:ub,isPartOf:(e,t,n,o)=>ub(0,0,n)&&n.get().exists(n=>t.isPartOf(e,n,o)),getState:(e,t,n)=>n.get(),setContent:(e,t,n,o)=>n.get().map(()=>lb(e,t,n,o))}),mb=Object.freeze({__proto__:null,events:(e,t)=>zc([Hc(zi(),(n,o)=>{cb(n,e,t)})])}),gb=[bl("onOpen"),bl("onClose"),Na("isPartOf"),Na("getAttachPoint"),Xa("cloakVisibilityAttr","data-precloak-visibility")],hb=Object.freeze({__proto__:null,init:()=>{const e=We(),t=_("not-implemented");return Oc({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})}});const bb=lu({fields:gb,name:"sandboxing",active:mb,apis:fb,state:hb}),vb=(e,t)=>t.getAnimationRoot.fold(()=>e.element,t=>t(e)),yb=e=>e.dimension.property,_b=(e,t)=>e.dimension.getDimension(t),Ab=(e,t)=>{const n=vb(e,t);lr(n,[t.shrinkingClass,t.growingClass])},kb=(e,t)=>{rr(e.element,t.openClass),nr(e.element,t.closedClass),co(e.element,yb(t),"0px"),yo(e.element)},xb=(e,t)=>{rr(e.element,t.closedClass),nr(e.element,t.openClass),vo(e.element,yb(t))},wb=(e,t,n,o)=>{n.setCollapsed(),co(e.element,yb(t),_b(t,e.element)),Ab(e,t),kb(e,t),t.onStartShrink(e),t.onShrunk(e)},Cb=(e,t,n,o)=>{const r=o.getOrThunk(()=>_b(t,e.element));n.setCollapsed(),co(e.element,yb(t),r),yo(e.element);const a=vb(e,t);rr(a,t.growingClass),nr(a,t.shrinkingClass),kb(e,t),t.onStartShrink(e)},Eb=(e,t,n)=>{const o=_b(t,e.element);("0px"===o?wb:Cb)(e,t,n,I.some(o))},Sb=(e,t,n)=>{const o=vb(e,t),r=ar(o,t.shrinkingClass),a=_b(t,e.element);xb(e,t);const i=_b(t,e.element);(r?()=>{co(e.element,yb(t),a),yo(e.element)}:()=>{kb(e,t)})(),rr(o,t.shrinkingClass),nr(o,t.growingClass),xb(e,t),co(e.element,yb(t),i),n.setExpanded(),t.onStartGrow(e)},Tb=(e,t,n)=>{const o=vb(e,t);return!0===ar(o,t.growingClass)},Ib=(e,t,n)=>{const o=vb(e,t);return!0===ar(o,t.shrinkingClass)};var Bb=Object.freeze({__proto__:null,refresh:(e,t,n)=>{if(n.isExpanded()){vo(e.element,yb(t));const n=_b(t,e.element);co(e.element,yb(t),n)}},grow:(e,t,n)=>{n.isExpanded()||Sb(e,t,n)},shrink:(e,t,n)=>{n.isExpanded()&&Eb(e,t,n)},immediateShrink:(e,t,n)=>{n.isExpanded()&&wb(e,t,n)},hasGrown:(e,t,n)=>n.isExpanded(),hasShrunk:(e,t,n)=>n.isCollapsed(),isGrowing:Tb,isShrinking:Ib,isTransitioning:(e,t,n)=>Tb(e,t)||Ib(e,t),toggleGrow:(e,t,n)=>{(n.isExpanded()?Eb:Sb)(e,t,n)},disableTransitions:Ab,immediateGrow:(e,t,n)=>{n.isExpanded()||(xb(e,t),co(e.element,yb(t),_b(t,e.element)),Ab(e,t),n.setExpanded(),t.onStartGrow(e),t.onGrown(e))}}),Ob=Object.freeze({__proto__:null,exhibit:(e,t,n)=>{const o=t.expanded;return tu(o?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:li(t.dimension.property,"0px")})},events:(e,t)=>zc([Yc(Si(),(n,o)=>{o.event.raw.propertyName===e.dimension.property&&(Ab(n,e),t.isExpanded()&&vo(n.element,e.dimension.property),(t.isExpanded()?e.onGrown:e.onShrunk)(n))})])}),Lb=[Na("closedClass"),Na("openClass"),Na("shrinkingClass"),Na("growingClass"),qa("getAnimationRoot"),bl("onShrunk"),bl("onStartShrink"),bl("onGrown"),bl("onStartGrow"),Xa("expanded",!1),Pa("dimension",Ba("property",{width:[Al("property","width"),Al("getDimension",e=>So(e)+"px")],height:[Al("property","height"),Al("getDimension",e=>ko(e)+"px")]}))];const Db=lu({fields:Lb,name:"sliding",active:Ob,apis:Bb,state:Object.freeze({__proto__:null,init:e=>{const t=_e(e.expanded);return Oc({isExpanded:()=>!0===t.get(),isCollapsed:()=>!1===t.get(),setCollapsed:x(t.set,!1),setExpanded:x(t.set,!0),readState:()=>"expanded: "+t.get()})}})});var Mb=Object.freeze({__proto__:null,events:(e,t)=>{const n=e.stream.streams.setup(e,t);return zc([Hc(e.event,n),Xc(()=>t.cancel())].concat(e.cancelEvent.map(e=>[Hc(e,()=>t.cancel())]).getOr([])))}});const Nb=e=>{const t=_e(null);return Oc({readState:()=>({timer:null!==t.get()?"set":"unset"}),setTimer:e=>{t.set(e)},cancel:()=>{const e=t.get();null!==e&&e.cancel()}})};var Pb=Object.freeze({__proto__:null,throttle:Nb,init:e=>e.stream.streams.state(e)}),Rb=[Pa("stream",Ba("mode",{throttle:[Na("delay"),Xa("stopEvent",!0),Al("streams",{setup:(e,t)=>{const n=e.stream,o=ot(e.onStream,n.delay);return t.setTimer(o),(e,t)=>{o.throttle(e,t),n.stopEvent&&t.stop()}},state:Nb})]})),Xa("event","input"),qa("cancelEvent"),yl("onStream")];const Fb=lu({fields:Rb,name:"streaming",active:Mb,state:Pb});var Vb=Object.freeze({__proto__:null,exhibit:(e,t)=>tu({attributes:si([{key:t.tabAttr,value:"true"}])})}),zb=[Xa("tabAttr","data-alloy-tabstop")];const Ub=lu({fields:zb,name:"tabstopping",active:Vb}),jb=(e,t,n,o)=>{const r=n.get();n.set(o),((e,t,n)=>{t.toggleClass.each(t=>{n.get()?nr(e.element,t):rr(e.element,t)})})(e,t,n),((e,t,n)=>{const o=t.aria;o.update(e,o,n.get())})(e,t,n),r!==o&&t.onToggled(e,o)},Hb=(e,t,n)=>{jb(e,t,n,!n.get())},qb=(e,t,n)=>{jb(e,t,n,t.selected)};var Gb=Object.freeze({__proto__:null,onLoad:qb,toggle:Hb,isOn:(e,t,n)=>n.get(),on:(e,t,n)=>{jb(e,t,n,!0)},off:(e,t,n)=>{jb(e,t,n,!1)},set:jb}),Kb=Object.freeze({__proto__:null,exhibit:()=>tu({}),events:(e,t)=>{const n=(o=e,r=t,a=Hb,eu(e=>{a(e,o,r)}));var o,r,a;const i=nu(e,t,qb);return zc(K([e.toggleOnExecute?[n]:[],[i]]))}});const Zb=(e,t,n)=>{Gn(e.element,"aria-expanded",n)};var Wb=[Xa("selected",!1),qa("toggleClass"),Xa("toggleOnExecute",!0),bl("onToggled"),Qa("aria",{mode:"none"},Ba("mode",{pressed:[Xa("syncWithExpanded",!1),Al("update",(e,t,n)=>{Gn(e.element,"aria-pressed",n),t.syncWithExpanded&&Zb(e,0,n)})],checked:[Al("update",(e,t,n)=>{Gn(e.element,"aria-checked",n)})],expanded:[Al("update",Zb)],selected:[Al("update",(e,t,n)=>{Gn(e.element,"aria-selected",n)})],none:[Al("update",b)]}))];const $b=lu({fields:Wb,name:"toggling",active:Kb,apis:Gb,state:(Yb=!1,{init:()=>{const e=_e(Yb);return{get:()=>e.get(),set:t=>e.set(t),clear:()=>e.set(Yb),readState:()=>e.get()}}})});var Yb;const Jb=Pe("tooltip.exclusive"),Xb=Pe("tooltip.show"),Qb=Pe("tooltip.hide"),ev=Pe("tooltip.immediateHide"),tv=Pe("tooltip.immediateShow"),nv=(e,t,n)=>{e.getSystem().broadcastOn([Jb],{})};var ov=Object.freeze({__proto__:null,hideAllExclusive:nv,immediateOpenClose:(e,t,n,o)=>Mc(e,o?tv:ev),isEnabled:(e,t,n)=>n.isEnabled(),setComponents:(e,t,n,o)=>{n.getTooltip().each(e=>{e.getSystem().isConnected()&&Qp.set(e,o)})},setEnabled:(e,t,n,o)=>n.setEnabled(o)}),rv=Object.freeze({__proto__:null,events:(e,t)=>{const n=n=>{t.getTooltip().each(o=>{o.getSystem().isConnected()&&(Np(o),e.onHide(n,o),t.clearTooltip())}),t.clearTimer()},o=n=>{if(!t.isShowing()&&t.isEnabled()){nv(n);const o=e.lazySink(n).getOrDie(),r=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:zc("normal"===e.mode?[Hc(vi(),e=>{Mc(n,Xb)}),Hc(hi(),e=>{Mc(n,Qb)})]:[]),behaviours:au([Qp.config({})])});t.setTooltip(r),Lp(o,r),e.onShow(n,r),Qh.position(o,r,{anchor:e.anchor(n)})}},r=n=>{t.getTooltip().each(t=>{const o=e.lazySink(n).getOrDie();Qh.position(o,t,{anchor:e.anchor(n)})})};return zc(K([[Qc(t=>{e.onSetup(t)}),Hc(Xb,n=>{t.resetTimer(()=>{o(n)},e.delayForShow())}),Hc(Qb,o=>{t.resetTimer(()=>{n(o)},e.delayForHide())}),Hc(tv,e=>{t.resetTimer(()=>{o(e)},0)}),Hc(ev,e=>{t.resetTimer(()=>{n(e)},0)}),Hc(Ni(),(e,t)=>{const o=t;o.universal||M(o.channels,Jb)&&n(e)}),Xc(e=>{n(e)})],(()=>{switch(e.mode){case"normal":return[Hc(yi(),e=>{Mc(e,tv)}),Hc(Di(),e=>{Mc(e,ev)}),Hc(vi(),e=>{Mc(e,Xb)}),Hc(hi(),e=>{Mc(e,Qb)})];case"follow-highlight":return[Hc(nl(),(e,t)=>{Mc(e,Xb)}),Hc(ol(),e=>{Mc(e,Qb)})];case"children-normal":return[Hc(yi(),(n,o)=>{Fn(n.element).each(a=>{bt(o.event.target,"[data-mce-tooltip]")&&t.getTooltip().fold(()=>{Mc(n,tv)},o=>{t.isShowing()&&(e.onShow(n,o),r(n))})})}),Hc(Di(),e=>{Fn(e.element).fold(()=>{Mc(e,ev)},b)}),Hc(vi(),n=>{Wo(n.element,"[data-mce-tooltip]:hover").each(o=>{t.getTooltip().fold(()=>{Mc(n,Xb)},o=>{t.isShowing()&&(e.onShow(n,o),r(n))})})}),Hc(hi(),e=>{Wo(e.element,"[data-mce-tooltip]:hover").fold(()=>{Mc(e,Qb)},b)})];default:return[Hc(yi(),(n,o)=>{Fn(n.element).each(a=>{bt(o.event.target,"[data-mce-tooltip]")&&t.getTooltip().fold(()=>{Mc(n,tv)},o=>{t.isShowing()&&(e.onShow(n,o),r(n))})})}),Hc(Di(),e=>{Fn(e.element).fold(()=>{Mc(e,ev)},b)})]}})()]))}}),av=[Na("lazySink"),Na("tooltipDom"),Xa("exclusive",!0),Xa("tooltipComponents",[]),ri("delayForShow",_(300)),ri("delayForHide",_(100)),ri("onSetup",b),ni("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),Xa("anchor",e=>({type:"hotspot",hotspot:e,layouts:{onLtr:_([Ks,Gs,Us,Hs,js,qs]),onRtl:_([Ks,Gs,Us,Hs,js,qs])},bubble:As(0,-2,{})})),bl("onHide"),bl("onShow")],iv=Object.freeze({__proto__:null,init:()=>{const e=_e(!0),t=We(),n=We(),o=()=>{t.on(clearTimeout)},r=_("not-implemented");return Oc({getTooltip:n.get,isShowing:n.isSet,setTooltip:n.set,clearTooltip:n.clear,clearTimer:o,resetTimer:(e,n)=>{o(),t.set(setTimeout(e,n))},readState:r,isEnabled:()=>e.get(),setEnabled:t=>e.set(t)})}});const lv=lu({fields:av,name:"tooltipping",active:rv,state:iv,apis:ov}),sv=lu({fields:[],name:"unselecting",active:Object.freeze({__proto__:null,events:()=>zc([Uc(Ii(),T)]),exhibit:()=>tu({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})})}),cv=e=>{const t=it(e),n=hn(t),o=(e=>{const t=void 0!==e.dom.attributes?e.dom.attributes:[];return H(t,(e,t)=>"class"===t.name?e:{...e,[t.name]:t.value},{})})(t),r=(e=>Array.prototype.slice.call(e.dom.classList,0))(t),a=0===n.length?{}:{innerHtml:eo(t)};return{tag:en(t),classes:r,attributes:o,...a}},uv=e=>{const t=(e=>void 0!==e.uid)(e)&&ve(e,"uid")?e.uid:cf("memento");return{get:e=>e.getSystem().getByUid(t).getOrDie(),getOpt:e=>e.getSystem().getByUid(t).toOptional(),asSpec:()=>({...e,uid:t})}},dv=ys,pv=ns,fv=_("dismiss.popups"),mv=_("reposition.popups"),gv=_("mouse.released"),hv=(e,t)=>{const n={stopBackspace:!0,...t},o=(e=>{const t=We(),n=_e(!1),o=El(t=>{e.triggerEvent(Vi(),t),n.set(!0)},400),r=si([{key:ui(),value:e=>(Sl(e).each(r=>{o.cancel();const a={x:r.clientX,y:r.clientY,target:e.target};o.schedule(e),n.set(!1),t.set(a)}),I.none())},{key:di(),value:e=>(o.cancel(),Sl(e).each(e=>{t.on(n=>{((e,t)=>{const n=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y);return n>5||o>5})(e,n)&&t.clear()})}),I.none())},{key:pi(),value:r=>(o.cancel(),t.get().filter(e=>_t(e.target,r.target)).map(t=>n.get()?(r.prevent(),!1):e.triggerEvent(Fi(),r)))}]);return{fireIfReady:(e,t)=>he(r,t).bind(t=>t(e))}})(n),r=F(["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"].concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),t=>Bn(e,t,e=>{o.fireIfReady(e,t).each(t=>{t&&e.kill()}),n.triggerEvent(t,e)&&e.kill()})),a=We(),i=Bn(e,"paste",e=>{o.fireIfReady(e,"paste").each(t=>{t&&e.kill()}),n.triggerEvent("paste",e)&&e.kill(),a.set(setTimeout(()=>{n.triggerEvent(Mi(),e)},0))}),l=Bn(e,"keydown",e=>{n.triggerEvent("keydown",e)?e.kill():n.stopBackspace&&(e=>e.raw.which===bu[0]&&!M(["input","textarea"],en(e.target))&&!mr(e.target,'[contenteditable="true"]'))(e)&&e.prevent()}),s=Bn(e,"focusin",e=>{n.triggerEvent("focusin",e)&&e.kill()}),c=We(),u=Bn(e,"focusout",e=>{n.triggerEvent("focusout",e)&&e.kill(),c.set(setTimeout(()=>{n.triggerEvent(Di(),e)},0))});return{unbind:()=>{V(r,e=>{e.unbind()}),l.unbind(),s.unbind(),u.unbind(),i.unbind(),a.on(clearTimeout),c.on(clearTimeout)}}},bv=(e,t)=>{const n=he(e,"target").getOr(t);return _e(n)},vv=ye([{stopped:[]},{resume:["element"]},{complete:[]}]),yv=(e,t,n,o,r,a)=>{const i=e(t,o),l=((e,t)=>{const n=_e(!1),o=_e(!1);return{stop:()=>{n.set(!0)},cut:()=>{o.set(!0)},isStopped:n.get,isCut:o.get,event:e,setSource:t.set,getSource:t.get}})(n,r);return i.fold(()=>(a.logEventNoHandlers(t,o),vv.complete()),e=>{const n=e.descHandler;return mf(n)(l),l.isStopped()?(a.logEventStopped(t,e.element,n.purpose),vv.stopped()):l.isCut()?(a.logEventCut(t,e.element,n.purpose),vv.complete()):fn(e.element).fold(()=>(a.logNoParent(t,e.element,n.purpose),vv.complete()),o=>(a.logEventResponse(t,e.element,n.purpose),vv.resume(o)))})},_v=(e,t,n,o,r,a)=>yv(e,t,n,o,r,a).fold(T,o=>_v(e,t,n,o,r,a),S),Av=(e,t,n,o,r)=>{const a=bv(n,o);return _v(e,t,n,o,a,r)},kv=()=>{const e=(()=>{const e={};return{registerId:(t,n,o)=>{le(o,(o,r)=>{const a=void 0!==e[r]?e[r]:{};a[n]=((e,t)=>({cHandler:x.apply(void 0,[e.handler].concat(t)),purpose:e.purpose}))(o,t),e[r]=a})},unregisterId:t=>{le(e,(e,n)=>{be(e,t)&&delete e[t]})},filterByType:t=>he(e,t).map(e=>fe(e,(e,t)=>((e,t)=>({id:e,descHandler:t}))(t,e))).getOr([]),find:(t,n,o)=>he(e,n).bind(e=>br(o,t=>((e,t)=>sf(t).bind(t=>he(e,t)).map(e=>((e,t)=>({element:e,descHandler:t}))(t,e)))(e,t),t))}})(),t={},n=n=>{sf(n.element).each(n=>{delete t[n],e.unregisterId(n)})};return{find:(t,n,o)=>e.find(t,n,o),filter:t=>e.filterByType(t),register:o=>{const r=(e=>{const t=e.element;return sf(t).getOrThunk(()=>((e,t)=>{const n=Pe(rf+"uid-");return lf(t,n),n})(0,e.element))})(o);ve(t,r)&&((e,o)=>{const r=t[o];if(r!==e)throw new Error('The tagId "'+o+'" is already used by: '+rl(r.element)+"\nCannot use it for: "+rl(e.element)+"\nThe conflicting element is"+(ro(r.element)?" ":" not ")+"already in the DOM");n(e)})(o,r);const a=[o];e.registerId(a,r,o.events),t[r]=o},unregister:n,getById:e=>he(t,e)}},xv=e=>{const t=t=>fn(e.element).fold(T,e=>_t(t,e)),n=kv(),o=(e,o)=>n.find(t,e,o),r=hv(e.element,{triggerEvent:(e,t)=>sl(e,t.target,n=>((e,t,n,o)=>Av(e,t,n,n.target,o))(o,e,t,n))}),a={debugInfo:_("real"),triggerEvent:(e,t,n)=>{sl(e,t,r=>Av(o,e,n,t,r))},triggerFocus:(e,t)=>{sf(e).fold(()=>{Mn(e)},n=>{sl(Li(),e,n=>(((e,t,n,o,r)=>{const a=bv(n,o);yv(e,t,n,o,a,r)})(o,Li(),{originator:t,kill:b,prevent:b,target:e},e,n),!1))})},triggerEscape:(e,t)=>{a.triggerEvent("keydown",e.element,t.event)},getByUid:e=>m(e),getByDom:e=>g(e),build:Bf,buildOrPatch:If,addToGui:e=>{s(e)},removeFromGui:e=>{c(e)},addToWorld:e=>{i(e)},removeFromWorld:e=>{l(e)},broadcast:e=>{d(e)},broadcastOn:(e,t)=>{p(e,t)},broadcastEvent:(e,t)=>{f(e,t)},isConnected:T},i=e=>{e.connect(a),rn(e.element)||(n.register(e),V(e.components(),i),a.triggerEvent(ji(),e.element,{target:e.element}))},l=e=>{rn(e.element)||(V(e.components(),l),n.unregister(e)),e.disconnect()},s=t=>{Lp(e,t)},c=e=>{Np(e)},u=e=>{const t=n.filter(Ni());V(t,t=>{const n=t.descHandler;mf(n)(e)})},d=e=>{u({universal:!0,data:e})},p=(e,t)=>{u({universal:!1,channels:e,data:t})},f=(e,t)=>((e,t)=>{const n=(e=>{const t=_e(!1);return{stop:()=>{t.set(!0)},cut:b,isStopped:t.get,isCut:S,event:e,setSource:C("Cannot set source of a broadcasted event"),getSource:C("Cannot get source of a broadcasted event")}})(t);return V(e,e=>{const t=e.descHandler;mf(t)(n)}),n.isStopped()})(n.filter(e),t),m=e=>n.getById(e).fold(()=>Ie.error(new Error('Could not find component with uid: "'+e+'" in system.')),Ie.value),g=e=>{const t=sf(e).getOr("not found");return m(t)};return i(e),{root:e,element:e.element,destroy:()=>{r.unbind(),Xn(e.element)},add:s,remove:c,getByUid:m,getByDom:g,addToWorld:i,removeFromWorld:l,broadcast:d,broadcastOn:p,broadcastEvent:f}},wv=()=>{const e=(e,t)=>{t.stop(),Pc(e)};return[Hc(Ci(),e),Hc(Fi(),e),Wc(ui()),Wc(mi())]},Cv=e=>zc(K([e.map(e=>eu((t,n)=>{e(t),n.stop()})).toArray(),wv()])),Ev=rg({name:"Button",factory:e=>{const t=Cv(e.action),n=e.dom.tag,o=t=>he(e.dom,"attributes").bind(e=>he(e,t));return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:Xm(e.buttonBehaviours,[hu.config({}),Ap.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:"button"===n?{type:o("type").getOr("button"),...o("role").map(e=>({role:e})).getOr({})}:{role:e.role.getOr(o("role").getOr("button"))}},eventOrder:e.eventOrder}},configFields:[Xa("uid",void 0),Na("dom"),Xa("components",[]),Jm("buttonBehaviours",[hu,Ap]),qa("action"),qa("role"),Xa("eventOrder",{})]}),Sv=_([Xa("shell",!1),Na("makeItem"),Xa("setupItem",b),Jm("listBehaviours",[Qp])]),Tv=Ql({name:"items",overrides:()=>({behaviours:au([Qp.config({})])})}),Iv=_([Tv]),Bv=ag({name:_("CustomList")(),configFields:Sv(),partFields:Iv(),factory:(e,t,n,o)=>{const r=e.shell?{behaviours:[Qp.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:r.components,behaviours:Ym(e.listBehaviours,r.behaviours),apis:{setItems:(t,n)=>{var o;(o=t,e.shell?I.some(o):ds(o,e,"items")).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},o=>{const r=Qp.contents(o),a=n.length,i=a-r.length,l=i>0?P(i,()=>e.makeItem()):[],s=r.slice(a);V(s,e=>Qp.remove(o,e)),V(l,e=>Qp.append(o,e));const c=Qp.contents(o);V(c,(o,r)=>{e.setupItem(t,o,n[r],r)})})}}}},apis:{setItems:(e,t,n)=>{e.setItems(t,n)}}}),Ov="aria-controls",Lv=()=>{const e=Pe(Ov);return{id:e,link:t=>{Gn(t,Ov,e)},unlink:e=>{Yn(e,Ov)}}},Dv=(e,t)=>fr(t,t=>_t(t,e.element),S)||((e,t)=>(e=>Ho(e,e=>{if(!on(e))return!1;const t=Zn(e,"id");return void 0!==t&&t.indexOf(Ov)>-1}).bind(e=>{const t=Zn(e,"id"),n=kn(e);return Wo(n,`[${Ov}="${t}"]`)}))(t).exists(t=>Dv(e,t)))(e,t),Mv="alloy.item-hover",Nv="alloy.item-focus",Pv="alloy.item-toggled",Rv=e=>{(Fn(e.element).isNone()||hu.isFocused(e))&&(hu.isFocused(e)||hu.focus(e),Nc(e,Mv,{item:e}))},Fv=e=>{Nc(e,Nv,{item:e})},Vv=_(Mv),zv=_(Nv),Uv=_(Pv),jv=e=>e.role.fold(()=>e.toggling.map(e=>e.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),A);var Hv=[Na("data"),Na("components"),Na("dom"),Xa("hasSubmenu",!1),qa("toggling"),qa("role"),Jm("itemBehaviours",[$b,hu,Ap,Yg]),Xa("ignoreFocus",!1),Xa("domModification",{}),Al("builder",e=>({dom:e.dom,domModification:{...e.domModification,attributes:{role:jv(e),...e.domModification.attributes,"aria-haspopup":e.hasSubmenu,...e.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Xm(e.itemBehaviours,[e.toggling.fold($b.revoke,t=>$b.config(((e,t)=>({aria:{mode:t?"selected":"checked"},...pe(e,(e,t)=>"exclusive"!==t),onToggled:(t,n)=>{m(e.onToggled)&&e.onToggled(t,n),((e,t)=>{Nc(e,Pv,{item:e,state:t})})(t,n)}}))(t,e.role.exists(e=>"option"===e)))),hu.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:e=>{Fv(e)}}),Ap.config({mode:"execution"}),Yg.config({store:{mode:"memory",initialValue:e.data}}),du("item-type-events",[...wv(),Hc(vi(),Rv),Hc(Ri(),hu.focus)])]),components:e.components,eventOrder:e.eventOrder})),Xa("eventOrder",{})],qv=[Na("dom"),Na("components"),Al("builder",e=>({dom:e.dom,components:e.components,events:zc([$c(Ri())])}))];const Gv=_("item-widget"),Kv=_([Jl({name:"widget",overrides:e=>({behaviours:au([Yg.config({store:{mode:"manual",getValue:t=>e.data,setValue:b}})])})})]),Zv=[Na("uid"),Na("data"),Na("components"),Na("dom"),Xa("autofocus",!1),Xa("ignoreFocus",!1),Jm("widgetBehaviours",[Yg,hu,Ap]),Xa("domModification",{}),vs(Kv()),Al("builder",e=>{const t=cs(Gv(),e,Kv()),n=us(Gv(),e,t.internals()),o=t=>ds(t,e,"widget").map(e=>(Ap.focusIn(e),e)),r=(t,n)=>Qu(n.event.target)?I.none():e.autofocus?(n.setSource(t.element),I.none()):I.none();return{dom:e.dom,components:n,domModification:e.domModification,events:zc([eu((e,t)=>{o(e).each(e=>{t.stop()})}),Hc(vi(),Rv),Hc(Ri(),(t,n)=>{e.autofocus?o(t):hu.focus(t)})]),behaviours:Xm(e.widgetBehaviours,[Yg.config({store:{mode:"memory",initialValue:e.data}}),hu.config({ignore:e.ignoreFocus,onFocus:e=>{Fv(e)}}),Ap.config({mode:"special",focusIn:e.autofocus?e=>{o(e)}:uu(),onLeft:r,onRight:r,onEscape:(t,n)=>hu.isFocused(t)||e.autofocus?e.autofocus?(n.setSource(t.element),I.none()):I.none():(hu.focus(t),I.some(!0))})])}})],Wv=Ba("type",{widget:Zv,item:Hv,separator:qv}),$v=_([es({factory:{sketch:e=>{const t=Ta("menu.spec item",Wv,e);return t.builder(t)}},name:"items",unit:"item",defaults:(e,t)=>be(t,"uid")?t:{...t,uid:cf("item")},overrides:(e,t)=>({type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}})})]),Yv=_([Za("role"),Na("value"),Na("items"),Na("dom"),Na("components"),Xa("eventOrder",{}),Wm("menuBehaviours",[Gu,Yg,Ff,Ap]),Qa("movement",{mode:"menu",moveOnTab:!0},Ba("mode",{grid:[xl(),Al("config",(e,t)=>({mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}))],matrix:[Al("config",(e,t)=>({mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},previousSelector:t.previousSelector,focusManager:e.focusManager})),Na("rowSelector"),Xa("previousSelector",I.none)],menu:[Xa("moveOnTab",!0),Al("config",(e,t)=>({mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}))]})),Pa("markers",pl()),Xa("fakeFocus",!1),Xa("focusManager",Zu()),bl("onHighlight"),bl("onDehighlight"),Xa("showMenuRole",!0)]),Jv=_("alloy.menu-focus"),Xv=ag({name:"Menu",configFields:Yv(),partFields:$v(),factory:(e,t,n,o)=>({uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Ym(e.menuBehaviours,[Gu.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight,onDehighlight:e.onDehighlight}),Yg.config({store:{mode:"memory",initialValue:e.value}}),Ff.config({find:I.some}),Ap.config(e.movement.config(e,e.movement))]),events:zc([Hc(zv(),(e,t)=>{const n=t.event;e.getSystem().getByDom(n.target).each(n=>{Gu.highlight(e,n),t.stop(),Nc(e,Jv(),{menu:e,item:n})})}),Hc(Vv(),(e,t)=>{const n=t.event.item;Gu.highlight(e,n)}),Hc(Uv(),(e,t)=>{const{item:n,state:o}=t.event;o&&"menuitemradio"===Zn(n.element,"role")&&((e,t)=>{const n=pr(e.element,'[role="menuitemradio"][aria-checked="true"]');V(n,n=>{_t(n,t.element)||e.getSystem().getByDom(n).each(e=>{$b.off(e)})})})(e,n)})]),components:t,eventOrder:e.eventOrder,...e.showMenuRole?{domModification:{attributes:{role:e.role.getOr("menu")}}}:{}})}),Qv=(e,t,n,o)=>he(n,o).bind(o=>he(e,o).bind(o=>{const r=Qv(e,t,n,o);return I.some([o].concat(r))})).getOr([]),ey=e=>"prepared"===e.type?I.some(e.menu):I.none(),ty=()=>{const e=_e({}),t=_e({}),n=_e({}),o=We(),r=_e({}),a=e=>i(e).bind(ey),i=e=>he(t.get(),e),l=t=>he(e.get(),t);return{setMenuBuilt:(e,n)=>{t.set({...t.get(),[e]:{type:"prepared",menu:n}})},setContents:(a,i,l,s)=>{o.set(a),e.set(l),t.set(i),r.set(s);const c=((e,t)=>{const n={};le(e,(e,t)=>{V(e,e=>{n[e]=t})});const o=t,r=ce(t,(e,t)=>({k:e,v:t})),a=se(r,(e,t)=>[t].concat(Qv(n,o,r,t)));return se(n,e=>he(a,e).getOr([e]))})(s,l);n.set(c)},expand:t=>he(e.get(),t).map(e=>{const o=he(n.get(),t).getOr([]);return[e].concat(o)}),refresh:e=>he(n.get(),e),collapse:e=>he(n.get(),e).bind(e=>e.length>1?I.some(e.slice(1)):I.none()),lookupMenu:i,lookupItem:l,otherMenus:e=>{const t=r.get();return Y(ae(t),e)},getPrimary:()=>o.get().bind(a),getMenus:()=>t.get(),clear:()=>{e.set({}),t.set({}),n.set({}),o.clear()},isClear:()=>o.get().isNone(),getTriggeringPath:(t,r)=>{const i=U(l(t).toArray(),e=>a(e).isSome());return he(n.get(),t).bind(t=>{const n=$(i.concat(t));return(e=>{const t=[];for(let n=0;n<e.length;n++){const o=e[n];if(!o.isSome())return I.none();t.push(o.getOrDie())}return I.some(t)})(Z(n,(t,i)=>((t,n,o)=>a(t).bind(r=>(t=>me(e.get(),(e,n)=>e===t))(t).bind(e=>n(e).map(e=>({triggeredMenu:r,triggeringItem:e,triggeringPath:o})))))(t,r,n.slice(0,i+1)).fold(()=>ze(o.get(),t)?[]:[I.none()],e=>[I.some(e)])))})}}},ny=ey,oy=Pe("tiered-menu-item-highlight"),ry=Pe("tiered-menu-item-dehighlight"),ay=_("collapse-item"),iy=rg({name:"TieredMenu",configFields:[_l("onExecute"),_l("onEscape"),yl("onOpenMenu"),yl("onOpenSubmenu"),bl("onRepositionMenu"),bl("onCollapseMenu"),Xa("highlightOnOpen",Ic.HighlightMenuAndItem),Ua("data",[Na("primary"),Na("menus"),Na("expansions")]),Xa("fakeFocus",!1),bl("onHighlightItem"),bl("onDehighlightItem"),bl("onHover"),ml(),Na("dom"),Xa("navigateOnHover",!0),Xa("stayInDom",!1),Wm("tmenuBehaviours",[Ap,Gu,Ff,Qp]),Xa("eventOrder",{})],apis:{collapseMenu:(e,t)=>{e.collapseMenu(t)},highlightPrimary:(e,t)=>{e.highlightPrimary(t)},repositionMenus:(e,t)=>{e.repositionMenus(t)}},factory:(e,t)=>{const n=We(),o=ty(),r=e=>Yg.getValue(e).value,a=t=>se(e.data.menus,(e,t)=>Z(e.items,e=>"separator"===e.type?[]:[e.data.value])),i=Gu.highlight,l=(t,n)=>{i(t,n),Gu.getHighlighted(n).orThunk(()=>Gu.getFirst(n)).each(o=>{e.fakeFocus?Gu.highlight(n,o):Rc(t,o.element,Ri())})},s=(e,t)=>Ue(F(t,t=>e.lookupMenu(t).bind(e=>"prepared"===e.type?I.some(e.menu):I.none()))),c=(t,n,o)=>{const r=s(n,n.otherMenus(o));V(r,n=>{lr(n.element,[e.markers.backgroundMenu]),e.stayInDom||Qp.remove(t,n)})},u=(t,o)=>{const a=(t=>n.get().getOrThunk(()=>{const o={},a=pr(t.element,`.${e.markers.item}`),i=U(a,e=>"true"===Zn(e,"aria-haspopup"));return V(i,e=>{t.getSystem().getByDom(e).each(e=>{const t=r(e);o[t]=e})}),n.set(o),o}))(t);le(a,(e,t)=>{const n=M(o,t);Gn(e.element,"aria-expanded",n)})},d=(t,n,o)=>I.from(o[0]).bind(r=>n.lookupMenu(r).bind(r=>{if("notbuilt"===r.type)return I.none();{const a=r.menu,i=s(n,o.slice(1));return V(i,t=>{nr(t.element,e.markers.backgroundMenu)}),ro(a.element)||Qp.append(t,Of(a)),lr(a.element,[e.markers.backgroundMenu]),l(t,a),c(t,n,o),I.some(a)}}));let p;!function(e){e[e.HighlightSubmenu=0]="HighlightSubmenu",e[e.HighlightParent=1]="HighlightParent"}(p||(p={}));const f=(t,n,a=p.HighlightSubmenu)=>{if(n.hasConfigured(nm)&&nm.isDisabled(n))return I.some(n);{const i=r(n);return o.expand(i).bind(r=>(u(t,r),I.from(r[0]).bind(i=>o.lookupMenu(i).bind(l=>{const s=((e,t,n)=>{if("notbuilt"===n.type){const r=e.getSystem().build(n.nbMenu());return o.setMenuBuilt(t,r),r}return n.menu})(t,i,l);return ro(s.element)||Qp.append(t,Of(s)),e.onOpenSubmenu(t,n,s,$(r)),a===p.HighlightSubmenu?(Gu.highlightFirst(s),d(t,o,r)):(Gu.dehighlightAll(s),I.some(n))}))))}},m=(t,n)=>{const a=r(n);return o.collapse(a).bind(r=>(u(t,r),d(t,o,r).map(o=>(e.onCollapseMenu(t,n,o),o))))},g=t=>(n,o)=>$o(o.getSource(),`.${e.markers.item}`).bind(e=>n.getSystem().getByDom(e).toOptional().bind(e=>t(n,e).map(T))),h=zc([Hc(Jv(),(e,t)=>{const n=t.event.item;o.lookupItem(r(n)).each(()=>{const n=t.event.menu;Gu.highlight(e,n);const a=r(t.event.item);o.refresh(a).each(t=>c(e,o,t))})}),eu((t,n)=>{const o=n.event.target;t.getSystem().getByDom(o).each(n=>{0===r(n).indexOf("collapse-item")&&m(t,n),f(t,n,p.HighlightSubmenu).fold(()=>{e.onExecute(t,n)},b)})}),Jc((t,n)=>{(t=>{const n=((t,n,o)=>se(o,(o,r)=>{const a=()=>Xv.sketch({...o,value:r,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:(e,t)=>{Nc(e,oy,{menuComp:e,itemComp:t})},onDehighlight:(e,t)=>{Nc(e,ry,{menuComp:e,itemComp:t})},focusManager:e.fakeFocus?Wu():Zu()});return r===n?{type:"prepared",menu:t.getSystem().build(a())}:{type:"notbuilt",nbMenu:a}}))(t,e.data.primary,e.data.menus),r=a();return o.setContents(e.data.primary,n,e.data.expansions,r),o.getPrimary()})(t).each(n=>{Qp.append(t,Of(n)),e.onOpenMenu(t,n),e.highlightOnOpen===Ic.HighlightMenuAndItem?l(t,n):e.highlightOnOpen===Ic.HighlightJustMenu&&i(t,n)})}),Hc(oy,(t,n)=>{e.onHighlightItem(t,n.event.menuComp,n.event.itemComp)}),Hc(ry,(t,n)=>{e.onDehighlightItem(t,n.event.menuComp,n.event.itemComp)}),...e.navigateOnHover?[Hc(Vv(),(t,n)=>{const a=n.event.item;((e,t)=>{const n=r(t);o.refresh(n).bind(t=>(u(e,t),d(e,o,t)))})(t,a),f(t,a,p.HighlightParent),e.onHover(t,a)})]:[]]),v=e=>Gu.getHighlighted(e).bind(Gu.getHighlighted),y={collapseMenu:e=>{v(e).each(t=>{m(e,t)})},highlightPrimary:e=>{o.getPrimary().each(t=>{l(e,t)})},repositionMenus:t=>{const n=o.getPrimary().bind(e=>v(t).bind(e=>{const t=r(e),n=ge(o.getMenus()),a=Ue(F(n,ny));return o.getTriggeringPath(t,e=>((e,t,n)=>re(t,e=>{if(!e.getSystem().isConnected())return I.none();const t=Gu.getCandidates(e);return q(t,e=>r(e)===n)}))(0,a,e))}).map(t=>({primary:e,triggeringPath:t})));n.fold(()=>{(e=>I.from(e.components()[0]).filter(e=>"menu"===Zn(e.element,"role")))(t).each(n=>{e.onRepositionMenu(t,n,[])})},({primary:n,triggeringPath:o})=>{e.onRepositionMenu(t,n,o)})}};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Ym(e.tmenuBehaviours,[Ap.config({mode:"special",onRight:g((e,t)=>Qu(t.element)?I.none():f(e,t,p.HighlightSubmenu)),onLeft:g((e,t)=>Qu(t.element)?I.none():m(e,t)),onEscape:g((t,n)=>m(t,n).orThunk(()=>e.onEscape(t,n).map(()=>t))),focusIn:(e,t)=>{o.getPrimary().each(t=>{Rc(e,t.element,Ri())})}}),Gu.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),Ff.config({find:e=>Gu.getHighlighted(e)}),Qp.config({})]),eventOrder:e.eventOrder,apis:y,events:h}},extraApis:{tieredData:(e,t,n)=>({primary:e,menus:t,expansions:n}),singleData:(e,t)=>({primary:e,menus:li(e,t),expansions:{}}),collapseItem:e=>({value:Pe(ay()),meta:{text:e}})}}),ly=_("sink"),sy=_(Ql({name:ly(),overrides:_({dom:{tag:"div"},behaviours:au([Qh.config({useFixed:T})]),events:zc([Wc(Ai()),Wc(mi()),Wc(Ci())])})})),cy=ba([Xa("isExtraPart",S),Ja("fireEventInstead",[Xa("event",$i())])]),uy=e=>{const t=Ta("Dismissal",cy,e);return{[fv()]:{schema:ba([Na("target")]),onReceive:(e,n)=>{bb.isOpen(e)&&(bb.isPartOf(e,n.target)||t.isExtraPart(e,n.target)||t.fireEventInstead.fold(()=>bb.close(e),t=>Mc(e,t.event)))}}}},dy=ba([Ja("fireEventInstead",[Xa("event",Yi())]),za("doReposition")]),py=e=>{const t=Ta("Reposition",dy,e);return{[mv()]:{onReceive:e=>{bb.isOpen(e)&&t.fireEventInstead.fold(()=>t.doReposition(e),t=>Mc(e,t.event))}}}},fy=(e,t)=>{const n=e.getHotspot(t).getOr(t),o="hotspot",r=e.getAnchorOverrides();return e.layouts.fold(()=>({type:o,hotspot:n,overrides:r}),e=>({type:o,hotspot:n,overrides:r,layouts:e}))},my=(e,t,n,o,r,a,i)=>{const l=((e,t,n,o,r,a,i)=>{const l=((e,t,n)=>(0,e.fetch)(n).map(t))(e,t,o),s=by(o,e);return l.map(t=>t.bind(t=>{const l=t.menus[t.primary];return I.from(l).each(t=>{e.listRole.each(e=>{t.role=e})}),I.from(iy.sketch({...a.menu(),uid:cf(""),data:t,highlightOnOpen:i,onOpenMenu:(e,t)=>{const o=s().getOrDie();Qh.position(o,t,{anchor:n}),bb.decloak(r)},onOpenSubmenu:(e,t,n)=>{const o=s().getOrDie();Qh.position(o,n,{anchor:{type:"submenu",item:t}}),bb.decloak(r)},onRepositionMenu:(e,t,o)=>{const r=s().getOrDie();Qh.position(r,t,{anchor:n}),V(o,e=>{Qh.position(r,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})})},onEscape:()=>(hu.focus(o),bb.close(r),I.some(!0))}))}))})(e,t,fy(e,n),n,o,r,i);return l.map(e=>(e.fold(()=>{bb.isOpen(o)&&bb.close(o)},e=>{bb.cloak(o),bb.open(o,e),a(o)}),o))},gy=(e,t,n,o,r,a,i)=>(bb.close(o),Ee(o)),hy=(e,t,n,o,r,a)=>{const i=jf.getCoupled(n,"sandbox");return(bb.isOpen(i)?gy:my)(e,t,n,i,o,r,a)},by=(e,t)=>e.getSystem().getByUid(t.uid+"-"+ly()).map(e=>()=>Ie.value(e)).getOrThunk(()=>t.lazySink.fold(()=>()=>Ie.error(new Error("No internal sink is specified, nor could an external sink be found")),t=>()=>t(e))),vy=e=>{bb.getState(e).each(e=>{iy.repositionMenus(e)})},yy=(e,t,n)=>{const o=Lv(),r=by(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:o.id}},behaviours:Xm(e.sandboxBehaviours,[Yg.config({store:{mode:"memory",initialValue:t}}),bb.config({onOpen:(r,a)=>{const i=fy(e,t);o.link(t.element),e.matchWidth&&((e,t,n)=>{const o=Ff.getCurrent(t).getOr(t),r=So(e.element);n?co(o.element,"min-width",r+"px"):((e,t)=>{Co.set(e,t)})(o.element,r)})(i.hotspot,a,e.useMinWidth),e.onOpen(i,r,a),void 0!==n&&void 0!==n.onOpen&&n.onOpen(r,a)},onClose:(e,a)=>{o.unlink(t.element),r().getOr(a).element.dom.dispatchEvent(new window.FocusEvent("focusout")),void 0!==n&&void 0!==n.onClose&&n.onClose(e,a)},isPartOf:(e,n,o)=>Dv(n,o)||Dv(t,o),getAttachPoint:()=>r().getOrDie()}),Ff.config({find:e=>bb.getState(e).bind(e=>Ff.getCurrent(e))}),nb.config({channels:{...uy({isExtraPart:S}),...py({doReposition:vy})}})])}},_y=e=>{const t=jf.getCoupled(e,"sandbox");vy(t)},Ay=()=>[Xa("sandboxClasses",[]),Jm("sandboxBehaviours",[Ff,nb,bb,Yg])],ky=_([Na("dom"),Na("fetch"),bl("onOpen"),vl("onExecute"),Xa("getHotspot",I.some),Xa("getAnchorOverrides",_({})),gh(),Wm("dropdownBehaviours",[$b,jf,Ap,hu]),Na("toggleClass"),Xa("eventOrder",{}),qa("lazySink"),Xa("matchWidth",!1),Xa("useMinWidth",!1),qa("role"),qa("listRole")].concat(Ay())),xy=_([Xl({schema:[ml(),Xa("fakeFocus",!1)],name:"menu",defaults:e=>({onExecute:e.onExecute})}),sy()]),wy=ag({name:"Dropdown",configFields:ky(),partFields:xy(),factory:(e,t,n,o)=>{const r=e=>{bb.getState(e).each(e=>{iy.highlightPrimary(e)})},a=(t,n,r)=>hy(e,A,t,o,n,r),i={expand:e=>{$b.isOn(e)||a(e,b,Ic.HighlightNone).get(b)},open:e=>{$b.isOn(e)||a(e,b,Ic.HighlightMenuAndItem).get(b)},refetch:t=>jf.getExistingCoupled(t,"sandbox").fold(()=>a(t,b,Ic.HighlightMenuAndItem).map(b),n=>my(e,A,t,n,o,b,Ic.HighlightMenuAndItem).map(b)),isOpen:$b.isOn,close:e=>{$b.isOn(e)&&a(e,b,Ic.HighlightMenuAndItem).get(b)},repositionMenus:e=>{$b.isOn(e)&&_y(e)}},l=(e,t)=>(Pc(e),I.some(!0));return{uid:e.uid,dom:e.dom,components:t,behaviours:Ym(e.dropdownBehaviours,[$b.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),jf.config({others:{sandbox:t=>yy(e,t,{onOpen:()=>$b.on(t),onClose:()=>$b.off(t)})}}),Ap.config({mode:"special",onSpace:l,onEnter:l,onDown:(e,t)=>{if(wy.isOpen(e)){const t=jf.getCoupled(e,"sandbox");r(t)}else wy.open(e);return I.some(!0)},onEscape:(e,t)=>wy.isOpen(e)?(wy.close(e),I.some(!0)):I.none()}),hu.config({})]),events:Cv(I.some(e=>{a(e,r,Ic.HighlightMenuAndItem).get(b)})),eventOrder:{...e.eventOrder,[Pi()]:["disabling","toggling","alloy.base.behaviour"]},apis:i,domModification:{attributes:{"aria-haspopup":e.listRole.getOr("true"),...e.role.fold(()=>({}),e=>({role:e})),..."button"===e.dom.tag?{type:he(e.dom,"attributes").bind(e=>he(e,"type")).getOr("button")}:{}}}}},apis:{open:(e,t)=>e.open(t),refetch:(e,t)=>e.refetch(t),expand:(e,t)=>e.expand(t),close:(e,t)=>e.close(t),isOpen:(e,t)=>e.isOpen(t),repositionMenus:(e,t)=>e.repositionMenus(t)}}),Cy="form",Ey=[Wm("formBehaviours",[Yg])],Sy=e=>"<alloy.field."+e+">",Ty=(e,t)=>({uid:e.uid,dom:e.dom,components:t,behaviours:Ym(e.formBehaviours,[Yg.config({store:{mode:"manual",getValue:t=>{const n=ms(t,e);return se(n,(e,t)=>e().bind(e=>{return n=Ff.getCurrent(e),o=new Error(`Cannot find a current component to extract the value from for form part '${t}': `+rl(e.element)),n.fold(()=>Ie.error(o),Ie.value);var n,o}).map(Yg.getValue))},setValue:(t,n)=>{le(n,(n,o)=>{ds(t,e,o).each(e=>{Ff.getCurrent(e).each(e=>{Yg.setValue(e,n)})})})}}})]),apis:{getField:(t,n)=>ds(t,e,n).bind(Ff.getCurrent)}}),Iy={getField:Cp((e,t,n)=>e.getField(t,n)),sketch:e=>{const t=(()=>{const e=[];return{field:(t,n)=>(e.push(t),is(Cy,Sy(t),n)),record:_(e)}})(),n=e(t),o=t.record(),r=F(o,e=>Jl({name:e,pname:Sy(e)}));return eg(Cy,Ey,r,Ty,n)}},By=_([Na("dom"),Xa("shell",!0),Wm("toolbarBehaviours",[Qp])]),Oy=_([Ql({name:"groups",overrides:()=>({behaviours:au([Qp.config({})])})})]),Ly=ag({name:"Toolbar",configFields:By(),partFields:Oy(),factory:(e,t,n,o)=>{const r=e.shell?{behaviours:[Qp.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:r.components,behaviours:Ym(e.toolbarBehaviours,r.behaviours),apis:{setGroups:(t,n)=>{var o;(o=t,e.shell?I.some(o):ds(o,e,"groups")).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},e=>{Qp.set(e,n)})},refresh:b},domModification:{attributes:{role:"group"}}}},apis:{setGroups:(e,t,n)=>{e.setGroups(t,n)}}}),Dy=_([gl(["toggledClass"]),Na("lazySink"),za("fetch"),$a("getBounds"),Ja("fireDismissalEventInstead",[Xa("event",$i())]),gh(),bl("onToggled")]),My=_([Xl({name:"button",overrides:e=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:au([$b.config({toggleClass:e.markers.toggledClass,aria:{mode:"exp
2anded"},toggleOnExecute:!1,onToggled:e.onToggled})])})}),Xl({factory:Ly,schema:By(),name:"toolbar",overrides:e=>({toolbarBehaviours:au([Ap.config({mode:"cyclic",onEscape:t=>(ds(t,e,"button").each(hu.focus),I.none())})])})})]),Ny=We(),Py=(e,t)=>{const n=jf.getCoupled(e,"toolbarSandbox");bb.isOpen(n)?bb.close(n):bb.open(n,t.toolbar())},Ry=(e,t,n,o)=>{const r=n.getBounds.map(e=>e()),a=n.lazySink(e).getOrDie();Qh.positionWithinBounds(a,t,{anchor:{type:"hotspot",hotspot:e,layouts:o,overrides:{maxWidthFunction:Cc()}}},r)},Fy=(e,t,n,o,r)=>{Ly.setGroups(t,r),Ry(e,t,n,o),$b.on(e)},Vy=ag({name:"FloatingToolbarButton",factory:(e,t,n,o)=>({...Ev.sketch({...o.button(),action:e=>{Py(e,o)},buttonBehaviours:Xm({dump:o.button().buttonBehaviours},[jf.config({others:{toolbarSandbox:t=>((e,t,n)=>{const o=Lv();return{dom:{tag:"div",attributes:{id:o.id}},behaviours:au([Ap.config({mode:"special",onEscape:e=>(bb.close(e),I.some(!0))}),bb.config({onOpen:(r,a)=>{const i=Ny.get().getOr(!1);n.fetch().get(r=>{Fy(e,a,n,t.layouts,r),o.link(e.element),i||Ap.focusIn(a)})},onClose:()=>{$b.off(e),Ny.get().getOr(!1)||hu.focus(e),o.unlink(e.element)},isPartOf:(t,n,o)=>Dv(n,o)||Dv(e,o),getAttachPoint:()=>n.lazySink(e).getOrDie()}),nb.config({channels:{...uy({isExtraPart:S,...n.fireDismissalEventInstead.map(e=>({fireEventInstead:{event:e.event}})).getOr({})}),...py({doReposition:()=>{bb.getState(jf.getCoupled(e,"toolbarSandbox")).each(o=>{Ry(e,o,n,t.layouts)})}})}})])}})(t,n,e)}})])}),apis:{setGroups:(t,o)=>{bb.getState(jf.getCoupled(t,"toolbarSandbox")).each(r=>{Fy(t,r,e,n.layouts,o)})},reposition:t=>{bb.getState(jf.getCoupled(t,"toolbarSandbox")).each(o=>{Ry(t,o,e,n.layouts)})},toggle:e=>{Py(e,o)},toggleWithoutFocusing:e=>{((e,t)=>{Ny.set(!0),Py(e,t),Ny.clear()})(e,o)},getToolbar:e=>bb.getState(jf.getCoupled(e,"toolbarSandbox")),isOpen:e=>bb.isOpen(jf.getCoupled(e,"toolbarSandbox"))}}),configFields:Dy(),partFields:My(),apis:{setGroups:(e,t,n)=>{e.setGroups(t,n)},reposition:(e,t)=>{e.reposition(t)},toggle:(e,t)=>{e.toggle(t)},toggleWithoutFocusing:(e,t)=>
vendor: 17,172 bytes, line 2
2{e.toggleWithoutFocusing(t)},getToolbar:(e,t)=>e.getToolbar(t),isOpen:(e,t)=>e.isOpen(t)}}),zy=_([Xa("prefix","form-field"),Wm("fieldBehaviours",[Ff,Yg])]),Uy=_([Ql({schema:[Na("dom")],name:"label"}),Ql({factory:{sketch:e=>({uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}})},schema:[Na("text")],name:"aria-descriptor"}),Jl({factory:{sketch:e=>{const t=((e,t)=>{const n={};return le(e,(e,o)=>{M(t,o)||(n[o]=e)}),n})(e,["factory"]);return e.factory.sketch(t)}},schema:[Na("factory")],name:"field"})]),jy=ag({name:"FormField",configFields:zy(),partFields:Uy(),factory:(e,t,n,o)=>{const r=Ym(e.fieldBehaviours,[Ff.config({find:t=>ds(t,e,"field")}),Yg.config({store:{mode:"manual",getValue:e=>Ff.getCurrent(e).bind(Yg.getValue),setValue:(e,t)=>{Ff.getCurrent(e).each(e=>{Yg.setValue(e,t)})}}})]),a=zc([Jc((t,n)=>{const o=fs(t,e,["label","field","aria-descriptor"]);o.field().each(t=>{const n=Pe(e.prefix);o.label().each(e=>{Gn(e.element,"for",n),Gn(t.element,"id",n)}),o["aria-descriptor"]().each(n=>{const o=Pe(e.prefix);Gn(n.element,"id",o),Gn(t.element,"aria-describedby",o)})})})]),i={getField:t=>ds(t,e,"field"),getLabel:t=>ds(t,e,"label")};return{uid:e.uid,dom:e.dom,components:t,behaviours:r,events:a,apis:i}},apis:{getField:(e,t)=>e.getField(t),getLabel:(e,t)=>e.getLabel(t)}}),Hy=_([Xa("field1Name","field1"),Xa("field2Name","field2"),yl("onLockedChange"),gl(["lockClass"]),Xa("locked",!1),Jm("coupledFieldBehaviours",[Ff,Yg]),ri("onInput",b)]),qy=(e,t)=>Jl({factory:jy,name:e,overrides:e=>({fieldBehaviours:au([du("coupled-input-behaviour",[Hc(xi(),n=>{((e,t,n)=>ds(e,t,n).bind(Ff.getCurrent))(n,e,t).each(t=>{ds(n,e,"lock").each(o=>{$b.isOn(o)&&e.onLockedChange(n,t,o),e.onInput(n)})})})])])})}),Gy=_([qy("field1","field2"),qy("field2","field1"),Jl({factory:Ev,schema:[Na("dom")],name:"lock",overrides:e=>({buttonBehaviours:au([$b.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])})})]),Ky=ag({name:"FormCoupledInputs",configFields:Hy(),partFields:Gy(),factory:(e,t,n,o)=>({uid:e.uid,dom:e.dom,components:t,behaviours:Xm(e.coupledFieldBehaviours,[Ff.config({find:I.some}),Yg.config({store:{mode:"manual",getValue:t=>{const n=hs(t,e,["field1","field2"]);return{[e.field1Name]:Yg.getValue(n.field1()),[e.field2Name]:Yg.getValue(n.field2())}},setValue:(t,n)=>{const o=hs(t,e,["field1","field2"]);ve(n,e.field1Name)&&Yg.setValue(o.field1(),n[e.field1Name]),ve(n,e.field2Name)&&Yg.setValue(o.field2(),n[e.field2Name])}}})]),apis:{getField1:t=>ds(t,e,"field1"),getField2:t=>ds(t,e,"field2"),getLock:t=>ds(t,e,"lock")}}),apis:{getField1:(e,t)=>e.getField1(t),getField2:(e,t)=>e.getField2(t),getLock:(e,t)=>e.getLock(t)}}),Zy=rg({name:"HtmlSelect",configFields:[Na("options"),Wm("selectBehaviours",[hu,Yg]),Xa("selectClasses",[]),Xa("selectAttributes",{}),qa("data")],factory:(e,t)=>{const n=F(e.options,e=>({dom:{tag:"option",value:e.value,innerHtml:e.text}})),o=e.data.map(e=>li("initialValue",e)).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:Ym(e.selectBehaviours,[hu.config({}),Yg.config({store:{mode:"manual",getValue:e=>cr(e.element),setValue:(t,n)=>{const o=te(e.options);q(e.options,e=>e.value===n).isSome()?ur(t.element,n):-1===t.element.dom.selectedIndex&&""===n&&o.each(e=>ur(t.element,e.value))},...o}})])}}}),Wy=rg({name:"InlineView",configFields:[Na("lazySink"),bl("onShow"),bl("onHide"),$a("onEscape"),Wm("inlineBehaviours",[bb,Yg,nb]),Ja("fireDismissalEventInstead",[Xa("event",$i())]),Ja("fireRepositionEventInstead",[Xa("event",Yi())]),Xa("getRelated",I.none),Xa("isExtraPart",S),Xa("eventOrder",I.none)],factory:(e,t)=>{const n=(t,n,o,r)=>{const a=e.lazySink(t).getOrDie();bb.openWhileCloaked(t,n,()=>Qh.positionWithinBounds(a,t,o,r())),Yg.setValue(t,I.some({mode:"position",config:o,getBounds:r}))},o=(t,n,o,r)=>{const a=((e,t,n,o,r)=>{const a=()=>e.lazySink(t),i="horizontal"===o.type?{layouts:{onLtr:()=>Qs(),onRtl:()=>ec()}}:{},l=e=>(e=>2===e.length)(e)?i:{};return iy.sketch({dom:{tag:"div"},data:o.data,markers:o.menu.markers,highlightOnOpen:o.menu.highlightOnOpen,fakeFocus:o.menu.fakeFocus,onEscape:()=>(bb.close(t),e.onEscape.map(e=>e(t)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(e,t)=>{Qh.positionWithinBounds(a().getOrDie(),t,n,r())},onOpenSubmenu:(e,t,n,o)=>{const r=a().getOrDie();Qh.position(r,n,{anchor:{type:"submenu",item:t,...l(o)}})},onRepositionMenu:(e,t,o)=>{const i=a().getOrDie();Qh.positionWithinBounds(i,t,n,r()),V(o,e=>{const t=l(e.triggeringPath);Qh.position(i,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem,...t}})})}})})(e,t,n,o,r);bb.open(t,a),Yg.setValue(t,I.some({mode:"menu",menu:a}))},r=t=>{bb.isOpen(t)&&Yg.getValue(t).each(n=>{switch(n.mode){case"menu":bb.getState(t).each(iy.repositionMenus);break;case"position":const o=e.lazySink(t).getOrDie();Qh.positionWithinBounds(o,t,n.config,n.getBounds())}})},a={setContent:(e,t)=>{bb.setContent(e,t)},showAt:(e,t,o)=>{const r=I.none;n(e,t,o,r)},showWithinBounds:n,showMenuAt:(e,t,n)=>{o(e,t,n,I.none)},showMenuWithinBounds:o,hide:e=>{bb.isOpen(e)&&(Yg.setValue(e,I.none()),bb.close(e))},getContent:e=>bb.getState(e),reposition:r,isOpen:bb.isOpen};return{uid:e.uid,dom:e.dom,behaviours:Ym(e.inlineBehaviours,[bb.config({isPartOf:(t,n,o)=>Dv(n,o)||((t,n)=>e.getRelated(t).exists(e=>Dv(e,n)))(t,o),getAttachPoint:t=>e.lazySink(t).getOrDie(),onOpen:t=>{e.onShow(t)},onClose:t=>{e.onHide(t)}}),Yg.config({store:{mode:"memory",initialValue:I.none()}}),nb.config({channels:{...uy({isExtraPart:t.isExtraPart,...e.fireDismissalEventInstead.map(e=>({fireEventInstead:{event:e.event}})).getOr({})}),...py({...e.fireRepositionEventInstead.map(e=>({fireEventInstead:{event:e.event}})).getOr({}),doReposition:r})}})]),eventOrder:e.eventOrder,apis:a}},apis:{showAt:(e,t,n,o)=>{e.showAt(t,n,o)},showWithinBounds:(e,t,n,o,r)=>{e.showWithinBounds(t,n,o,r)},showMenuAt:(e,t,n,o)=>{e.showMenuAt(t,n,o)},showMenuWithinBounds:(e,t,n,o,r)=>{e.showMenuWithinBounds(t,n,o,r)},hide:(e,t)=>{e.hide(t)},isOpen:(e,t)=>e.isOpen(t),getContent:(e,t)=>e.getContent(t),setContent:(e,t,n)=>{e.setContent(t,n)},reposition:(e,t)=>{e.reposition(t)}}}),$y=_([ti("type","text"),qa("data"),Xa("inputAttributes",{}),Xa("inputStyles",{}),Xa("tag","input"),Xa("inputClasses",[]),bl("onSetValue"),ri("fromInputValue",A),ri("toInputValue",A),Xa("styles",{}),Xa("eventOrder",{}),Wm("inputBehaviours",[Yg,hu]),Xa("selectOnFocus",!0)]),Yy=e=>au([hu.config({onFocus:e.selectOnFocus?t=>{const n=t.element,o=cr(n);"range"!==e.type&&n.dom.setSelectionRange(0,o.length)}:b})]),Jy=e=>({...Yy(e),...Ym(e.inputBehaviours,[Yg.config({store:{mode:"manual",...e.data.map(e=>({initialValue:e})).getOr({}),getValue:t=>e.fromInputValue(cr(t.element)),setValue:(t,n)=>{cr(t.element)!==n&&ur(t.element,e.toInputValue(n))}},onSetValue:e.onSetValue})])}),Xy=e=>({tag:e.tag,attributes:{type:e.type,...e.inputAttributes},styles:e.inputStyles,classes:e.inputClasses}),Qy=rg({name:"Input",configFields:$y(),factory:(e,t)=>({uid:e.uid,dom:Xy(e),components:[],behaviours:Jy(e),eventOrder:e.eventOrder})}),e_=rs(Gv(),Kv()),t_=_([Na("lazySink"),qa("dragBlockClass"),ri("getBounds",Fr),Xa("useTabstopAt",T),Xa("firstTabstop",0),Xa("eventOrder",{}),Wm("modalBehaviours",[Ap]),vl("onExecute"),_l("onEscape")]),n_={sketch:A},o_=_([Ql({name:"draghandle",overrides:(e,t)=>({behaviours:au([Tg.config({mode:"mouse",getTarget:e=>Go(e,'[role="dialog"]').getOr(e),blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])})}),Jl({schema:[Na("dom")],name:"title"}),Jl({factory:n_,schema:[Na("dom")],name:"close"}),Jl({factory:n_,schema:[Na("dom")],name:"body"}),Ql({factory:n_,schema:[Na("dom")],name:"footer"}),Xl({factory:{sketch:(e,t)=>({...e,dom:t.dom,components:t.components})},schema:[Xa("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Xa("components",[])],name:"blocker"})]),r_=ag({name:"ModalDialog",configFields:t_(),partFields:o_(),factory:(e,t,n,o)=>{const r=We(),a=Pe("modal-events"),i={...e.eventOrder,[Zi()]:[a].concat(e.eventOrder["alloy.system.attached"]||[])},l=Jt();return{uid:e.uid,dom:e.dom,components:t,apis:{show:t=>{r.set(t);const n=e.lazySink(t).getOrDie(),a=o.blocker(),i=n.getSystem().build({...a,components:a.components.concat([Of(t)]),behaviours:au([hu.config({}),du("dialog-blocker-events",[Yc(yi(),()=>{Nf.isBlocked(t)||Ap.focusIn(t)})])])});Lp(n,i),Ap.focusIn(t)},hide:e=>{r.clear(),fn(e.element).each(t=>{e.getSystem().getByDom(t).each(e=>{Np(e)})})},getBody:t=>ps(t,e,"body"),getFooter:t=>ds(t,e,"footer"),setIdle:e=>{Nf.unblock(e)},setBusy:(e,t)=>{Nf.block(e,t)}},eventOrder:i,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Ym(e.modalBehaviours,[Qp.config({}),Ap.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt,firstTabstop:e.firstTabstop}),Nf.config({getRoot:r.get}),du(a,[Jc(t=>{const n=ps(t,e,"title").element,o=(e=>e.dom.textContent)(n);l.os.isMacOS()&&f(o)?Gn(t.element,"aria-label",o):((e,t)=>{const n=Wn(e,"id").fold(()=>{const e=Pe("dialog-label");return Gn(t,"id",e),e},A);Gn(e,"aria-labelledby",n)})(t.element,n)})])])}},apis:{show:(e,t)=>{e.show(t)},hide:(e,t)=>{e.hide(t)},getBody:(e,t)=>e.getBody(t),getFooter:(e,t)=>e.getFooter(t),setBusy:(e,t,n)=>{e.setBusy(t,n)},setIdle:(e,t)=>{e.setIdle(t)}}}),a_=Ql({schema:[Na("dom")],name:"label"}),i_=e=>Ql({name:e+"-edge",overrides:t=>t.model.manager.edgeActions[e].fold(()=>({}),e=>({events:zc([qc(ui(),(t,n,o)=>e(t,o),[t]),qc(mi(),(t,n,o)=>e(t,o),[t]),qc(gi(),(t,n,o)=>{o.mouseIsDown.get()&&e(t,o)},[t])])}))}),l_=i_("top-left"),s_=i_("top"),c_=i_("top-right"),u_=i_("right"),d_=i_("bottom-right"),p_=i_("bottom"),f_=i_("bottom-left"),m_=i_("left"),g_=Jl({name:"thumb",defaults:_({dom:{styles:{position:"absolute"}}}),overrides:e=>({events:zc([Kc(ui(),e,"spectrum"),Kc(di(),e,"spectrum"),Kc(pi(),e,"spectrum"),Kc(mi(),e,"spectrum"),Kc(gi(),e,"spectrum"),Kc(bi(),e,"spectrum")])})}),h_=e=>Lu(e.event),b_=Jl({schema:[Da("mouseIsDown",()=>_e(!1))],name:"spectrum",overrides:e=>{const t=e.model.manager,n=(n,o)=>t.getValueFromEvent(o).map(o=>t.setValueFrom(n,e,o));return{behaviours:au([Ap.config({mode:"special",onLeft:(n,o)=>t.onLeft(n,e,h_(o)),onRight:(n,o)=>t.onRight(n,e,h_(o)),onUp:(n,o)=>t.onUp(n,e,h_(o)),onDown:(n,o)=>t.onDown(n,e,h_(o))}),Ub.config({}),hu.config({})]),events:zc([Hc(ui(),n),Hc(di(),n),Hc(mi(),n),Hc(gi(),(t,o)=>{e.mouseIsDown.get()&&n(t,o)})])}}});var v_=[a_,m_,u_,s_,p_,l_,c_,f_,d_,g_,b_];const y_=_("slider.change.value"),__=e=>{const t=e.event.raw;if((e=>-1!==e.type.indexOf("touch"))(t)){const e=t;return void 0!==e.touches&&1===e.touches.length?I.some(e.touches[0]).map(e=>Oo(e.clientX,e.clientY)):I.none()}{const e=t;return void 0!==e.clientX?I.some(e).map(e=>Oo(e.clientX,e.clientY)):I.none()}},A_=e=>e.model.minX,k_=e=>e.model.minY,x_=e=>e.model.minX-1,w_=e=>e.model.minY-1,C_=e=>e.model.maxX,E_=e=>e.model.maxY,S_=e=>e.model.maxX+1,T_=e=>e.model.maxY+1,I_=(e,t,n)=>t(e)-n(e),B_=e=>I_(e,C_,A_),O_=e=>I_(e,E_,k_),L_=e=>B_(e)/2,D_=e=>O_(e)/2,M_=(e,t)=>t?e.stepSize*e.speedMultiplier:e.stepSize,N_=e=>e.snapToGrid,P_=e=>e.snapStart,R_=e=>e.rounded,F_=(e,t)=>void 0!==e[t+"-edge"],V_=e=>F_(e,"left"),z_=e=>F_(e,"right"),U_=e=>F_(e,"top"),j_=e=>F_(e,"bottom"),H_=e=>e.model.value.get(),q_=(e,t)=>({x:e,y:t}),G_=(e,t)=>{Nc(e,y_(),{value:t})},K_=(e,t,n,o)=>e<t?e:e>n?n:e===t?t-1:Math.max(t,e-o),Z_=(e,t,n,o)=>e>n?e:e<t?t:e===n?n+1:Math.min(n,e+o),W_=(e,t,n)=>Math.max(t,Math.min(n,e)),$_=e=>{const{min:t,max:n,range:o,value:r,step:a,snap:i,snapStart:l,rounded:s,hasMinEdge:c,hasMaxEdge:u,minBound:d,maxBound:p,screenRange:f}=e,m=c?t-1:t,g=u?n+1:n;if(r<d)return m;if(r>p)return g;{const e=((e,t,n)=>Math.min(n,Math.max(e,t))-t)(r,d,p),c=W_(e/f*o+t,m,g);return i&&c>=t&&c<=n?((e,t,n,o,r)=>r.fold(()=>{const r=e-t,a=Math.round(r/o)*o;return W_(t+a,t-1,n+1)},t=>{const r=(e-t)%o,a=Math.round(r/o),i=Math.floor((e-t)/o),l=Math.floor((n-t)/o),s=t+Math.min(l,i+a)*o;return Math.max(t,s)}))(c,t,n,a,l):s?Math.round(c):c}},Y_=e=>{const{min:t,max:n,range:o,value:r,hasMinEdge:a,hasMaxEdge:i,maxBound:l,maxOffset:s,centerMinEdge:c,centerMaxEdge:u}=e;return r<t?a?0:c:r>n?i?l:u:(r-t)/o*s},J_="top",X_="right",Q_="bottom",eA="left",tA=e=>e.element.dom.getBoundingClientRect(),nA=(e,t)=>e[t],oA=e=>{const t=tA(e);return nA(t,eA)},rA=e=>{const t=tA(e);return nA(t,X_)},aA=e=>{const t=tA(e);return nA(t,J_)},iA=e=>{const t=tA(e);return nA(t,Q_)},lA=e=>{const t=tA(e);return nA(t,"width")},sA=e=>{const t=tA(e);return nA(t,"height")},cA=(e,t,n)=>(e+t)/2-n,uA=(e,t)=>{const n=tA(e),o=tA(t),r=nA(n,eA),a=nA(n,X_),i=nA(o,eA);return cA(r,a,i)},dA=(e,t)=>{const n=tA(e),o=tA(t),r=nA(n,J_),a=nA(n,Q_),i=nA(o,J_);return cA(r,a,i)},pA=(e,t)=>{Nc(e,y_(),{value:t})},fA=(e,t,n)=>{const o={min:A_(t),max:C_(t),range:B_(t),value:n,step:M_(t),snap:N_(t),snapStart:P_(t),rounded:R_(t),hasMinEdge:V_(t),hasMaxEdge:z_(t),minBound:oA(e),maxBound:rA(e),screenRange:lA(e)};return $_(o)},mA=e=>(t,n,o)=>((e,t,n,o)=>{const r=(e>0?Z_:K_)(H_(n),A_(n),C_(n),M_(n,o));return pA(t,r),I.some(r)})(e,t,n,o).map(T),gA=(e,t,n,o,r,a)=>{const i=((e,t,n,o,r)=>{const a=lA(e),i=o.bind(t=>I.some(uA(t,e))).getOr(0),l=r.bind(t=>I.some(uA(t,e))).getOr(a),s={min:A_(t),max:C_(t),range:B_(t),value:n,hasMinEdge:V_(t),hasMaxEdge:z_(t),minBound:oA(e),minOffset:0,maxBound:rA(e),maxOffset:a,centerMinEdge:i,centerMaxEdge:l};return Y_(s)})(t,a,n,o,r);return oA(t)-oA(e)+i},hA=mA(-1),bA=mA(1),vA=I.none,yA=I.none,_A={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some((e,t)=>{G_(e,S_(t))}),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some((e,t)=>{G_(e,x_(t))})};var AA=Object.freeze({__proto__:null,setValueFrom:(e,t,n)=>{const o=fA(e,t,n);return pA(e,o),o},setToMin:(e,t)=>{const n=A_(t);pA(e,n)},setToMax:(e,t)=>{const n=C_(t);pA(e,n)},findValueOfOffset:fA,getValueFromEvent:e=>__(e).map(e=>e.left),findPositionOfValue:gA,setPositionFromValue:(e,t,n,o)=>{const r=H_(n),a=gA(e,o.getSpectrum(e),r,o.getLeftEdge(e),o.getRightEdge(e),n),i=So(t.element)/2;co(t.element,"left",a-i+"px")},onLeft:hA,onRight:bA,onUp:vA,onDown:yA,edgeActions:_A});const kA=(e,t)=>{Nc(e,y_(),{value:t})},xA=(e,t,n)=>{const o={min:k_(t),max:E_(t),range:O_(t),value:n,step:M_(t),snap:N_(t),snapStart:P_(t),rounded:R_(t),hasMinEdge:U_(t),hasMaxEdge:j_(t),minBound:aA(e),maxBound:iA(e),screenRange:sA(e)};return $_(o)},wA=e=>(t,n,o)=>((e,t,n,o)=>{const r=(e>0?Z_:K_)(H_(n),k_(n),E_(n),M_(n,o));return kA(t,r),I.some(r)})(e,t,n,o).map(T),CA=(e,t,n,o,r,a)=>{const i=((e,t,n,o,r)=>{const a=sA(e),i=o.bind(t=>I.some(dA(t,e))).getOr(0),l=r.bind(t=>I.some(dA(t,e))).getOr(a),s={min:k_(t),max:E_(t),range:O_(t),value:n,hasMinEdge:U_(t),hasMaxEdge:j_(t),minBound:aA(e),minOffset:0,maxBound:iA(e),maxOffset:a,centerMinEdge:i,centerMaxEdge:l};return Y_(s)})(t,a,n,o,r);return aA(t)-aA(e)+i},EA=I.none,SA=I.none,TA=wA(-1),IA=wA(1),BA={"top-left":I.none(),top:I.some((e,t)=>{G_(e,w_(t))}),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some((e,t)=>{G_(e,T_(t))}),"bottom-left":I.none(),left:I.none()};var OA=Object.freeze({__proto__:null,setValueFrom:(e,t,n)=>{const o=xA(e,t,n);return kA(e,o),o},setToMin:(e,t)=>{const n=k_(t);kA(e,n)},setToMax:(e,t)=>{const n=E_(t);kA(e,n)},findValueOfOffset:xA,getValueFromEvent:e=>__(e).map(e=>e.top),findPositionOfValue:CA,setPositionFromValue:(e,t,n,o)=>{const r=H_(n),a=CA(e,o.getSpectrum(e),r,o.getTopEdge(e),o.getBottomEdge(e),n),i=ko(t.element)/2;co(t.element,"top",a-i+"px")},onLeft:EA,onRight:SA,onUp:TA,onDown:IA,edgeActions:BA});const LA=(e,t)=>{Nc(e,y_(),{value:t})},DA=(e,t)=>({x:e,y:t}),MA=(e,t)=>(n,o,r)=>((e,t,n,o,r)=>{const a=e>0?Z_:K_,i=t?H_(o).x:a(H_(o).x,A_(o),C_(o),M_(o,r)),l=t?a(H_(o).y,k_(o),E_(o),M_(o,r)):H_(o).y;return LA(n,DA(i,l)),I.some(i)})(e,t,n,o,r).map(T),NA=MA(-1,!1),PA=MA(1,!1),RA=MA(-1,!0),FA=MA(1,!0),VA={"top-left":I.some((e,t)=>{G_(e,q_(x_(t),w_(t)))}),top:I.some((e,t)=>{G_(e,q_(L_(t),w_(t)))}),"top-right":I.some((e,t)=>{G_(e,q_(S_(t),w_(t)))}),right:I.some((e,t)=>{G_(e,q_(S_(t),D_(t)))}),"bottom-right":I.some((e,t)=>{G_(e,q_(S_(t),T_(t)))}),bottom:I.some((e,t)=>{G_(e,q_(L_(t),T_(t)))}),"bottom-left":I.some((e,t)=>{G_(e,q_(x_(t),T_(t)))}),left:I.some((e,t)=>{G_(e,q_(x_(t),D_(t)))})};var zA=Object.freeze({__proto__:null,setValueFrom:(e,t,n)=>{const o=fA(e,t,n.left),r=xA(e,t,n.top),a=DA(o,r);return LA(e,a),a},setToMin:(e,t)=>{const n=A_(t),o=k_(t);LA(e,DA(n,o))},setToMax:(e,t)=>{const n=C_(t),o=E_(t);LA(e,DA(n,o))},getValueFromEvent:e=>__(e),setPositionFromValue:(e,t,n,o)=>{const r=H_(n),a=gA(e,o.getSpectrum(e),r.x,o.getLeftEdge(e),o.getRightEdge(e),n),i=CA(e,o.getSpectrum(e),r.y,o.getTopEdge(e),o.getBottomEdge(e),n),l=So(t.element)/2,s=ko(t.element)/2;co(t.element,"left",a-l+"px"),co(t.element,"top",i-s+"px")},onLeft:NA,onRight:PA,onUp:RA,onDown:FA,edgeActions:VA});const UA=ag({name:"Slider",configFields:[Xa("stepSize",1),Xa("speedMultiplier",10),Xa("onChange",b),Xa("onChoose",b),Xa("onInit",b),Xa("onDragStart",b),Xa("onDragEnd",b),Xa("snapToGri
2d",!1),Xa("rounded",!0),qa("snapStart"),Pa("model",Ba("mode",{x:[Xa("minX",0),Xa("maxX",100),Da("value",e=>_e(e.mode.minX)),Na("getInitialValue"),Al("manager",AA)],y:[Xa("minY",0),Xa("maxY",100),Da("value",e=>_e(e.mode.minY)),Na("getInitialValue"),Al("manager",OA)],xy:[Xa("minX",0),Xa("maxX",100),Xa("minY",0),Xa("maxY",100),Da("value",e=>_e({x:e.mode.minX,y:e.mode.minY})),Na("getInitialValue"),Al("manager",zA)]})),Wm("sliderBehaviours",[Ap,Yg]),Da("mouseIsDown",()=>_e(!1))],partFields:v_,factory:(e,t,n,o)=>{const r=t=>ps(t,e,"thumb"),a=t=>ps(t,e,"spectrum"),i=t=>ds(t,e,"left-edge"),l=t=>ds(t,e,"right-edge"),s=t=>ds(t,e,"top-edge"),c=t=>ds(t,e,"bottom-edge"),u=e.model,d=u.manager,p=(t,n)=>{d.setPositionFromValue(t,n,e,{getLeftEdge:i,getRightEdge:l,getTopEdge:s,getBottomEdge:c,getSpectrum:a})},f=(e,t)=>{u.value.set(t);const n=r(e);p(e,n)},m=t=>{const n=e.mouseIsDown.get();e.mouseIsDown.set(!1),n&&ds(t,e,"thumb").each(n=>{const o=u.value.get();e.onChoose(t,n,o)})},g=(t,n)=>{n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,r(t))},h=(t,n)=>{n.stop(),e.onDragEnd(t,r(t)),m(t)},b=t=>{ds(t,e,"spectrum").map(Ap.focusIn)};return{uid:e.uid,dom:e.dom,components:t,behaviours:Ym(e.sliderBehaviours,[Ap.config({mode:"special",focusIn:b}),Yg.config({store:{mode:"manual",getValue:e=>u.value.get(),setValue:f}}),nb.config({channels:{[gv()]:{onReceive:m}}})]),events:zc([Hc(y_(),(t,n)=>{((t,n)=>{f(t,n);const o=r(t);e.onChange(t,o,n),I.some(!0)})(t,n.event.value)}),Jc((t,n)=>{const o=u.getInitialValue();u.value.set(o);const i=r(t);p(t,i);const l=a(t);e.onInit(t,i,l,u.value.get())}),Hc(ui(),g),Hc(pi(),h),Hc(mi(),(e,t)=>{b(e),g(e,t)}),Hc(bi(),h)]),apis:{resetToMin:t=>{d.setToMin(t,e)},resetToMax:t=>{d.setToMax(t,e)},setValue:f,refresh:p},domModification:{styles:{position:"relative"}}}},apis:{setValue:(e,t,n)=>{e.setValue(t,n)},resetToMin:(e,t)=>{e.resetToMin(t)},resetToMax:(e,t)=>{e.resetToMax(t)},refresh:(e,t)=>{e.refresh(t)}}}),jA="container",HA=[Wm("slotBehaviours",[])],qA=e=>"<alloy.field."+e+">",GA=(e,t)=>{const n=t=>gs(e),o=(t,n)=>(o,r)=>ds(o,e,r).map(e=>t(e,r)).getOr(n),r=(e,t)=>"true"!==Zn(e.element,"aria-hidden"),a=o(r,!1),i=o((e,t)=>{if(r(e)){const n=e.element;co(n,"display","none"),Gn(n,"aria-hidden","true"),Nc(e,Xi(),{name:t,visible:!1})}}),l=(e=>(t,n)=>{V(n,n=>e(t,n))})(i),s=o((e,t)=>{if(!r(e)){const n=e.element;vo(n,"display"),Yn(n,"aria-hidden"),Nc(e,Xi(),{name:t,visible:!0})}}),c={getSlotNames:n,getSlot:(t,n)=>ds(t,e,n),isShowing:a,hideSlot:i,hideAllSlots:e=>l(e,n()),showSlot:s};return{uid:e.uid,dom:e.dom,components:t,behaviours:$m(e.slotBehaviours),apis:c}},KA=se({getSlotNames:(e,t)=>e.getSlotNames(t),getSlot:(e,t,n)=>e.getSlot(t,n),isShowing:(e,t,n)=>e.isShowing(t,n),hideSlot:(e,t,n)=>e.hideSlot(t,n),hideAllSlots:(e,t)=>e.hideAllSlots(t),showSlot:(e,t,n)=>e.showSlot(t,n)},e=>Cp(e)),ZA={...KA,sketch:e=>{const t=(()=>{const e=[];return{slot:(t,n)=>(e.push(t),is(jA,qA(t),n)),record:_(e)}})(),n=e(t),o=t.record(),r=F(o,e=>Jl({name:e,pname:qA(e)}));return eg(jA,HA,r,GA,n)}},WA=_([Na("toggleClass"),Na("fetch"),yl("onExecute"),Xa("getHotspot",I.some),Xa("getAnchorOverrides",_({})),gh(),yl("onItemExecute"),qa("lazySink"),Na("dom"),bl("onOpen"),Wm("splitDropdownBehaviours",[jf,Ap,hu]),Xa("matchWidth",!1),Xa("useMinWidth",!1),Xa("eventOrder",{}),qa("role"),qa("listRole")].concat(Ay())),$A=Jl({factory:Ev,schema:[Na("dom")],name:"arrow",defaults:()=>({buttonBehaviours:au([hu.revoke()])}),overrides:e=>({dom:{tag:"span",attributes:{role:"presentation"}},action:t=>{t.getSystem().getByUid(e.uid).each(Pc)},buttonBehaviours:au([$b.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])})}),YA=Jl({factory:Ev,schema:[Na("dom")],name:"button",defaults:()=>({buttonBehaviours:au([hu.revoke()])}),overrides:e=>({dom:{tag:"span",attributes:{role:"presentation"}},action:t=>{t.getSystem().getByUid(e.uid).each(n=>{e.onExecute(n,t)})}})}),JA=_([$A,YA,Ql({factory:{sketch:e=>({uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}})},schema:[Na("text")],name:"aria-descriptor"}),Xl({schema:[ml()],name:"menu",defaults:e=>({onExecute:(t,n)=>{t.getSystem().getByUid(e.uid).each(o=>{e.onItemExecute(o,t,n)})}})}),sy()]),XA=ag({name:"SplitDropdown",configFields:WA(),partFields:JA(),factory:(e,t,n,o)=>{const r=e=>{Ff.getCurrent(e).each(e=>{Gu.highlightFirst(e),Ap.focusIn(e)})},a=t=>{hy(e,A,t,o,r,Ic.HighlightMenuAndItem).get(b)},i=t=>{const n=ps(t,e,"button");return Pc(n),I.some(!0)},l={...zc([Jc((t,n)=>{ds(t,e,"aria-descriptor").each(e=>{const n=Pe("aria");Gn(e.element,"id",n),Gn(t.element,"aria-describedby",n)})})]),...Cv(I.some(a))},s={repositionMenus:e=>{$b.isOn(e)&&_y(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:s,eventOrder:{...e.eventOrder,[Pi()]:["disabling","toggling","alloy.base.behaviour"]},events:l,behaviours:Ym(e.splitDropdownBehaviours,[jf.config({others:{sandbox:t=>{const n=ps(t,e,"arrow");return yy(e,t,{onOpen:()=>{$b.on(n),$b.on(t)},onClose:()=>{$b.off(n),$b.off(t)}})}}}),Ap.config({mode:"special",onSpace:i,onEnter:i,onDown:e=>(a(e),I.some(!0))}),hu.config({}
vendor: 3,611 bytes, line 2
2),$b.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},apis:{repositionMenus:(e,t)=>e.repositionMenus(t)}}),QA=(e,t,n)=>({within:e,extra:t,withinWidth:n}),ek=(e,t,n)=>{const o=H(e,(e,t)=>((e,t)=>{const o=n(e);return I.some({element:e,start:t,finish:t+o,width:o})})(t,e.len).fold(_(e),t=>({len:t.finish,list:e.list.concat([t])})),{len:0,list:[]}).list,r=U(o,e=>e.finish<=t),a=j(r,(e,t)=>e+t.width,0);return{within:r,extra:o.slice(r.length),withinWidth:a}},tk=e=>F(e,e=>e.element),nk=(e,t)=>{const n=F(t,e=>Of(e));Ly.setGroups(e,n)},ok=(e,t,n)=>{const o=t.builtGroups.get();if(0===o.length)return;const r=ps(e,t,"primary"),a=jf.getCoupled(e,"overflowGroup");co(r.element,"visibility","hidden");const i=o.concat([a]),l=re(i,e=>Fn(e.element).bind(t=>e.getSystem().getByDom(t).toOptional()));n([]),nk(r,i);const s=((e,t,n,o)=>{const r=((e,t,n)=>{const o=ek(t,e,n);return 0===o.extra.length?I.some(o):I.none()})(e,t,n).getOrThunk(()=>ek(t,e-n(o),n)),a=r.within,i=r.extra,l=r.withinWidth;return 1===i.length&&i[0].width<=n(o)?((e,t,n)=>{const o=tk(e.concat(t));return QA(o,[],n)})(a,i,l):i.length>=1?((e,t,n,o)=>{const r=tk(e).concat([n]);return QA(r,tk(t),o)})(a,i,o,l):((e,t,n)=>QA(tk(e),[],n))(a,0,l)})(So(r.element),t.builtGroups.get(),e=>Math.ceil(e.element.dom.getBoundingClientRect().width),a);0===s.extra.length?(Qp.remove(r,a),n([])):(nk(r,s.within),n(s.extra)),vo(r.element,"visibility"),yo(r.element),l.each(hu.focus)},rk=_([Wm("splitToolbarBehaviours",[jf]),Da("builtGroups",()=>_e([]))]),ak=_([gl(["overflowToggledClass"]),$a("getOverflowBounds"),Na("lazySink"),Da("overflowGroups",()=>_e([])),bl("onOpened"),bl("onClosed")].concat(rk())),ik=_([Jl({factory:Ly,schema:By(),name:"primary"}),Xl({schema:By(),name:"overflow"}),Xl({name:"overflow-button"}),Xl({name:"overflow-group"})]),lk=_([Na("items"),gl(["itemSelector"]),Wm("tgroupBehaviours",[Ap])]),sk=_([es({name:"items",unit:"item"})]),ck=ag({name:"ToolbarGroup",configFields:lk(),partFields:sk(),factory:(e,t,n,o)=>({uid:e.uid,dom:e.dom,components:t,behaviours:Ym(e.tgroupBehaviours,[Ap.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}})}),uk=e=>F(e,e=>Of(e)),dk=(e,t,n)=>{ok(e,n,o=>{n.overflowGroups.set(o),t.getOpt(e).each(e=>{Vy.setGroups(e,uk(o))})})},pk=ag({name:"SplitFloatingToolbar",configFields:ak(),partFields:ik(),factory:(e,t,n,o)=>{const r=uv(Vy.sketch({fetch:()=>Ce(t=>{t(uk(e.overflowGroups.get()))}),layouts:{onLtr:()=>[js,Us],onRtl:()=>[Us,js],onBottomLtr:()=>[qs,Hs],onBottomRtl:()=>[Hs,qs]},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:o["overflow-button"](),toolbar:o.overflow()},onToggled:(t,n)=>e[n?"onOpened":"onClosed"](t)}));return{uid:e.uid,dom:e.dom,components:t,behaviours:Ym(e.splitToolbarBehaviours,[jf.config({others:{overflowGroup:()=>ck.sketch({...o["overflow-group"](),items:[r.asSpec()]})}})]),apis:{setGroups:(t,n)=>{e.builtGroups.set(F(n,t.getSystem().build)),dk(t,r,e)},refresh:t=>dk(t,r,e),toggle:e=>{r.getOpt(e).each(e=>{Vy.toggle(e)})},toggleWithoutFocusing:e=>{r.getOpt(e).each(Vy.toggleWithoutFocusing)},isOpen:e=>r.getOpt(e).map(Vy.isOpen).getOr(!1),reposition:e=>{r.getOpt(e).each(e=>{Vy.reposition(e)})},getOverflow:e=>r.getOpt(e).bind(Vy.getToolbar)},domModification:{attributes:{role:"group"}}}},apis:{setGroups:(e,t,n)=>{e.setGroups(t,n)},refresh:(e,t)=>{e.refresh(t)},reposition:(e,t)=>{e.reposition(t)},toggle:(e,t)=>{e.toggle(t)},toggleWithoutFocusing:(e,t)=>
vendor: 4,991 bytes, line 2
2{e.toggle(t)},isOpen:(e,t)=>e.isOpen(t),getOverflow:(e,t)=>e.getOverflow(t)}}),fk=_([gl(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),bl("onOpened"),bl("onClosed")].concat(rk())),mk=_([Jl({factory:Ly,schema:By(),name:"primary"}),Jl({factory:Ly,schema:By(),name:"overflow",overrides:e=>({toolbarBehaviours:au([Db.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:t=>{ds(t,e,"overflow-button").each(e=>{$b.off(e)}),e.onClosed(t)},onGrown:t=>{e.onOpened(t)},onStartGrow:t=>{ds(t,e,"overflow-button").each($b.on)}}),Ap.config({mode:"acyclic",onEscape:t=>(ds(t,e,"overflow-button").each(hu.focus),I.some(!0))})])})}),Xl({name:"overflow-button",overrides:e=>({buttonBehaviours:au([$b.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Xl({name:"overflow-group"})]),gk=(e,t,n)=>{ds(e,t,"overflow-button").each(o=>{ds(e,t,"overflow").each(r=>{if(hk(e,t),Db.hasShrunk(r)){const e=t.onOpened;t.onOpened=o=>{n||Ap.focusIn(r),e(o),t.onOpened=e}}else{const e=t.onClosed;t.onClosed=r=>{n||hu.focus(o),e(r),t.onClosed=e}}Db.toggleGrow(r)})})},hk=(e,t)=>{ds(e,t,"overflow").each(n=>{ok(e,t,e=>{const t=F(e,e=>Of(e));Ly.setGroups(n,t)}),ds(e,t,"overflow-button").each(e=>{Db.hasGrown(n)&&$b.on(e)}),Db.refresh(n)})},bk=ag({name:"SplitSlidingToolbar",configFields:fk(),partFields:mk(),factory:(e,t,n,o)=>{const r="alloy.toolbar.toggle";return{uid:e.uid,dom:e.dom,components:t,behaviours:Ym(e.splitToolbarBehaviours,[jf.config({others:{overflowGroup:e=>ck.sketch({...o["overflow-group"](),items:[Ev.sketch({...o["overflow-button"](),action:t=>{Mc(e,r)}})]})}}),du("toolbar-toggle-events",[Hc(r,t=>{gk(t,e,!1)})])]),apis:{setGroups:(t,n)=>{((t,n)=>{const o=F(n,t.getSystem().build);e.builtGroups.set(o)})(t,n),hk(t,e)},refresh:t=>hk(t,e),toggle:t=>{gk(t,e,!1)},toggleWithoutFocusing:t=>{gk(t,e,!0)},isOpen:t=>((e,t)=>ds(e,t,"overflow").map(Db.hasGrown).getOr(!1))(t,e)},domModification:{attributes:{role:"group"}}}},apis:{setGroups:(e,t,n)=>{e.setGroups(t,n)},refresh:(e,t)=>{e.refresh(t)},toggle:(e,t)=>{e.toggle(t)},isOpen:(e,t)=>e.isOpen(t)}}),vk=rg({name:"TabButton",configFields:[Xa("uid",void 0),Na("value"),La("dom","dom",ca(()=>({attributes:{role:"tab",id:Pe("aria"),"aria-selected":"false"}})),Qr()),qa("action"),Xa("domModification",{}),Wm("tabButtonBehaviours",[hu,Ap,Yg]),Na("view")],factory:(e,t)=>({uid:e.uid,dom:e.dom,components:e.components,events:Cv(e.action),behaviours:Ym(e.tabButtonBehaviours,[hu.config({}),Ap.config({mode:"execution",useSpace:!0,useEnter:!0}),Yg.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification})}),yk=_([Na("tabs"),Na("dom"),Xa("clickToDismiss",!1),Wm("tabbarBehaviours",[Gu,Ap]),gl(["tabClass","selectedClass"])]),_k=es({factory:vk,name:"tabs",unit:"tab",overrides:e=>{const t=(e,t)=>{Gu.dehighlight(e,t),Nc(e,tl(),{tabbar:e,button:t})},n=(e,t)=>{Gu.highlight(e,t),Nc(e,el(),{tabbar:e,button:t})};return{action:o=>{const r=o.getSystem().getByUid(e.uid).getOrDie(),a=Gu.isHighlighted(r,o);(a&&e.clickToDismiss?t:a?b:n)(r,o)},domModification:{classes:[e.markers.tabClass]}}}}),Ak=_([_k]),kk=ag({name:"Tabbar",configFields:yk(),partFields:Ak(),factory:(e,t,n,o)=>({uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Ym(e.tabbarBehaviours,[Gu.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:(e,t)=>{Gn(t.element,"aria-selected","true")},onDehighlight:(e,t)=>{Gn(t.element,"aria-selected","false")}}),Ap.config({mode:"flow",getInitial:e=>Gu.getHighlighted(e).map(e=>e.element),selector:"."+e.markers.tabClass,executeOnMove:!0})])})}),xk=rg({name:"Tabview",configFields:[Wm("tabviewBehaviours",[Qp])],factory:(e,t)=>({uid:e.uid,dom:e.dom,behaviours:Ym(e.tabviewBehaviours,[Qp.config({})]),domModification:{attributes:{role:"tabpanel"}}})}),wk=_([Xa("selectFirst",!0),bl("onChangeTab"),bl("onDismissTab"),Xa("tabs",[]),Wm("tabSectionBehaviours",[])]),Ck=Jl({factory:kk,schema:[Na("dom"),Ua("markers",[Na("tabClass"),Na("selectedClass")])],name:"tabbar",defaults:e=>({tabs:e.tabs})}),Ek=Jl({factory:xk,name:"tabview"}),Sk=_([Ck,Ek]),Tk=ag({name:"TabSection",configFields:wk(),partFields:Sk(),factory:(e,t,n,o)=>{const r=(t,n)=>{ds(t,e,"tabbar").each(e=>{n(e).each(Pc)})};return{uid:e.uid,dom:e.dom,components:t,behaviours:$m(e.tabSectionBehaviours),events:zc(K([e.selectFirst?[Jc((e,t)=>{r(e,Gu.getFirst)})]:[],[Hc(el(),(t,n)=>{(t=>{const n=Yg.getValue(t);ds(t,e,"tabview").each(o=>{q(e.tabs,e=>e.value===n).each(n=>{const r=n.view();Wn(t.element,"id").each(e=>{Gn(o.element,"aria-labelledby",e)}),Qp.set(o,r),e.onChangeTab(o,t,r)})})})(n.event.button)}),Hc(tl(),(t,n)=>{const o=n.event.button;e.onDismissTab(t,o)})]])),apis:{getViewItems:t=>ds(t,e,"tabview").map(e=>Qp.contents(e)).getOr([]),showTab:(e,t)=>
vendor: 9,314 bytes, line 2
2{r(e,e=>{const n=Gu.getCandidates(e);return q(n,e=>Yg.getValue(e)===t).filter(t=>!Gu.isHighlighted(e,t))})}}}},apis:{getViewItems:(e,t)=>e.getViewItems(t),showTab:(e,t,n)=>{e.showTab(t,n)}}}),Ik=(e,t,n)=>{const o=Yg.getValue(n);Yg.setValue(t,o),Ok(t)},Bk=(e,t)=>{const n=e.element,o=cr(n),r=n.dom;"number"!==Zn(n,"type")&&t(r,o)},Ok=e=>{Bk(e,(e,t)=>e.setSelectionRange(t.length,t.length))},Lk=_("alloy.typeahead.itemexecute"),Dk=_([qa("lazySink"),Na("fetch"),Xa("minChars",5),Xa("responseTime",1e3),bl("onOpen"),Xa("getHotspot",I.some),Xa("getAnchorOverrides",_({})),Xa("layouts",I.none()),Xa("eventOrder",{}),ii("model",{},[Xa("getDisplayText",e=>void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value),Xa("selectsOver",!0),Xa("populateFromBrowse",!0)]),bl("onSetValue"),vl("onExecute"),bl("onItemExecute"),Xa("inputClasses",[]),Xa("inputAttributes",{}),Xa("inputStyles",{}),Xa("matchWidth",!0),Xa("useMinWidth",!1),Xa("dismissOnBlur",!0),gl(["openClass"]),qa("initialData"),qa("listRole"),Wm("typeaheadBehaviours",[hu,Yg,Fb,Ap,$b,jf]),Da("lazyTypeaheadComp",()=>_e(I.none)),Da("previewing",()=>_e(!0))].concat($y()).concat(Ay())),Mk=_([Xl({schema:[ml()],name:"menu",overrides:e=>({fakeFocus:!0,onHighlightItem:(t,n,o)=>{e.previewing.get()?e.lazyTypeaheadComp.get().each(t=>{((e,t,n)=>{if(e.selectsOver){const o=Yg.getValue(t),r=e.getDisplayText(o),a=Yg.getValue(n);return 0===e.getDisplayText(a).indexOf(r)?I.some(()=>{Ik(0,t,n),((e,t)=>{Bk(e,(e,n)=>e.setSelectionRange(t,n.length))})(t,r.length)}):I.none()}return I.none()})(e.model,t,o).fold(()=>{e.model.selectsOver?(Gu.dehighlight(n,o),e.previewing.set(!0)):e.previewing.set(!1)},t=>{t(),e.previewing.set(!1)})}):e.lazyTypeaheadComp.get().each(t=>{e.model.populateFromBrowse&&Ik(e.model,t,o),Wn(o.element,"id").each(e=>Gn(t.element,"aria-activedescendant",e))})},onExecute:(t,n)=>e.lazyTypeaheadComp.get().map(e=>(Nc(e,Lk(),{item:n}),!0)),onHover:(t,n)=>{e.previewing.set(!1),e.lazyTypeaheadComp.get().each(t=>{e.model.populateFromBrowse&&Ik(e.model,t,n)})}})})]),Nk=ag({name:"Typeahead",configFields:Dk(),partFields:Mk(),factory:(e,t,n,o)=>{const r=(t,n,r)=>{e.previewing.set(!1);const a=jf.getCoupled(t,"sandbox");if(bb.isOpen(a))Ff.getCurrent(a).each(e=>{Gu.getHighlighted(e).fold(()=>{r(e)},()=>{Vc(a,e.element,"keydown",n)})});else{const n=e=>{Ff.getCurrent(e).each(r)};my(e,i(t),t,a,o,n,Ic.HighlightMenuAndItem).get(b)}},a=Yy(e),i=e=>t=>t.map(t=>{const n=ge(t.menus),o=Z(n,e=>U(e.items,e=>"item"===e.type));return Yg.getState(e).update(F(o,e=>e.data)),t}),l=e=>Ff.getCurrent(e),s="typeaheadevents",c=[hu.config({}),Yg.config({onSetValue:e.onSetValue,store:{mode:"dataset",getDataKey:e=>cr(e.element),getFallbackEntry:e=>({value:e,meta:{}}),setValue:(t,n)=>{ur(t.element,e.model.getDisplayText(n))},...e.initialData.map(e=>li("initialValue",e)).getOr({})}}),Fb.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:(t,n)=>{const r=jf.getCoupled(t,"sandbox");if(hu.isFocused(t)&&cr(t.element).length>=e.minChars){const n=l(r).bind(e=>Gu.getHighlighted(e).map(Yg.getValue));e.previewing.set(!0);const a=t=>{l(r).each(t=>{n.fold(()=>{e.model.selectsOver&&Gu.highlightFirst(t)},e=>{Gu.highlightBy(t,t=>Yg.getValue(t).value===e.value),Gu.getHighlighted(t).orThunk(()=>(Gu.highlightFirst(t),I.none()))})})};my(e,i(t),t,r,o,a,Ic.HighlightJustMenu).get(b)}},cancelEvent:Ui()}),Ap.config({mode:"special",onDown:(e,t)=>(r(e,t,Gu.highlightFirst),I.some(!0)),onEscape:e=>{const t=jf.getCoupled(e,"sandbox");return bb.isOpen(t)?(bb.close(t),I.some(!0)):I.none()},onUp:(e,t)=>(r(e,t,Gu.highlightLast),I.some(!0)),onEnter:t=>{const n=jf.getCoupled(t,"sandbox"),o=bb.isOpen(n);if(o&&!e.previewing.get())return l(n).bind(e=>Gu.getHighlighted(e)).map(e=>(Nc(t,Lk(),{item:e}),!0));{const r=Yg.getValue(t);return Mc(t,Ui()),e.onExecute(n,t,r),o&&bb.close(n),I.some(!0)}}}),$b.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),jf.config({others:{sandbox:t=>yy(e,t,{onOpen:()=>$b.on(t),onClose:()=>{e.lazyTypeaheadComp.get().each(e=>Yn(e.element,"aria-activedescendant")),$b.off(t)}})}}),du(s,[Jc(t=>{e.lazyTypeaheadComp.set(I.some(t))}),Xc(t=>{e.lazyTypeaheadComp.set(I.none())}),eu(t=>{const n=b;hy(e,i(t),t,o,n,Ic.HighlightMenuAndItem).get(b)}),Hc(Lk(),(t,n)=>{const o=jf.getCoupled(t,"sandbox");Ik(e.model,t,n.event.item),Mc(t,Ui()),e.onItemExecute(t,o,n.event.item,Yg.getValue(t)),bb.close(o),Ok(t)})].concat(e.dismissOnBlur?[Hc(Di(),e=>{const t=jf.getCoupled(e,"sandbox");Fn(t.element).isNone()&&bb.close(t)})]:[]))],u={[Wi()]:[Yg.name(),Fb.name(),s],...e.eventOrder};return{uid:e.uid,dom:Xy(Fe(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...a,...Ym(e.typeaheadBehaviours,c)},eventOrder:u}}});var Pk,Rk,Fk=tinymce.util.Tools.resolve("tinymce.ThemeManager"),Vk=tinymce.util.Tools.resolve("tinymce.util.Delay"),zk=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Uk=tinymce.util.Tools.resolve("tinymce.EditorManager"),jk=tinymce.util.Tools.resolve("tinymce.Env");!function(e){e.default="wrap",e.floating="floating",e.sliding="sliding",e.scrolling="scrolling"}(Pk||(Pk={})),function(e){e.auto="auto",e.top="top",e.bottom="bottom"}(Rk||(Rk={}));const Hk=e=>t=>t.options.get(e),qk=e=>t=>I.from(e(t)),Gk=e=>{const t=jk.deviceType.isPhone(),n=jk.deviceType.isTablet()||t,o=e.options.register,r=e=>a(e)||!1===e,i=e=>a(e)||g(e);o("skin",{processor:e=>a(e)||!1===e,default:"oxide"}),o("skin_url",{processor:"string"}),o("height",{processor:i,default:Math.max(e.getElement().offsetHeight,400)}),o("width",{processor:i,default:zk.DOM.getStyle(e.getElement(),"width")}),o("min_height",{processor:"number",default:100}),o("min_width",{processor:"number"}),o("max_height",{processor:"number"}),o("max_width",{processor:"number"}),o("style_formats",{processor:"object[]"}),o("style_formats_merge",{processor:"boolean",default:!1}),o("style_formats_autohide",{processor:"boolean",default:!1}),o("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),o("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),o("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),o("font_size_input_default_unit",{processor:"string",default:"pt"}),o("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),o("content_langs",{processor:"object[]"}),o("removed_menuitems",{processor:"string",default:""}),o("menubar",{processor:e=>a(e)||u(e),default:!t}),o("menu",{processor:"object",default:{}}),o("toolbar",{processor:e=>u(e)||a(e)||s(e)?{value:e,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),P(9,e=>{o("toolbar"+(e+1),{processor:"string"})}),o("toolbar_mode",{processor:"string",default:n?"scrolling":"floating"}),o("toolbar_groups",{processor:"object",default:{}}),o("toolbar_location",{processor:"string",default:Rk.auto}),o("toolbar_persist",{processor:"boolean",default:!1}),o("toolbar_sticky",{processor:"boolean",default:e.inline}),o("toolbar_sticky_offset",{processor:"number",default:0}),o("fixed_toolbar_container",{processor:"string",default:""}),o("fixed_toolbar_container_target",{processor:"object"}),o("ui_mode",{processor:"string",default:"combined"}),o("file_picker_callback",{processor:"function"}),o("file_picker_validator_handler",{processor:"function"}),o("file_picker_types",{processor:"string"}),o("typeahead_urls",{processor:"boolean",default:!0}),o("anchor_top",{processor:r,default:"#top"}),o("anchor_bottom",{processor:r,default:"#bottom"}),o("draggable_modal",{processor:"boolean",default:!1}),o("statusbar",{processor:"boolean",default:!0}),o("elementpath",{processor:"boolean",default:!0}),o("branding",{processor:"boolean",default:!0}),o("promotion",{processor:"boolean",default:!0}),o("resize",{processor:e=>"both"===e||u(e),default:!jk.deviceType.isTouch()}),o("sidebar_show",{processor:"string"}),o("help_accessibility",{processor:"boolean",default:e.hasPlugin("help")}),o("default_font_stack",{processor:"string[]",default:[]})},Kk=Hk("readonly"),Zk=Hk("disabled"),Wk=Hk("height"),$k=Hk("width"),Yk=qk(Hk("min_width")),Jk=qk(Hk("min_height")),Xk=qk(Hk("max_width")),Qk=qk(Hk("max_height")),ex=qk(Hk("style_formats")),tx=Hk("style_formats_merge"),nx=Hk("style_formats_autohide"),ox=Hk("content_langs"),rx=Hk("removed_menuitems"),ax=Hk("toolbar_mode"),ix=Hk("toolbar_groups"),lx=Hk("toolbar_location"),sx=Hk("fixed_toolbar_container"),cx=Hk("fixed_toolbar_container_target"),ux=Hk("toolbar_persist"),dx=Hk("toolbar_sticky_offset"),px=Hk("menubar"),fx=Hk("toolbar"),mx=Hk("file_picker_callback"),gx=Hk("file_picker_validator_handler"),hx=Hk("font_size_input_default_unit"),bx=Hk("file_picker_types"),vx=
2Hk("typeahead_urls"),yx=Hk("anchor_top"),_x=Hk("anchor_bottom"),Ax=Hk("draggable_modal"),kx=Hk("statusbar"),xx=Hk("elementpath"),wx=Hk("branding"),Cx=Hk("resize"),Ex=Hk("paste_as_text"),Sx=Hk("sidebar_show"),Tx=Hk("promotion"),Ix=Hk("help_accessibility"),Bx=Hk("default_font_stack"),Ox=Hk("skin"),Lx=e=>!1===e.options.get("skin"),Dx=e=>!1!==e.options.get("menubar"),Mx=e=>{const t=e.options.get("skin_url");if(Lx(e))return t;if(t)return e.documentBaseURI.toAbsolute(t);{const t=e.options.get("skin");return Uk.baseURL+"/skins/ui/"+t}},Nx=e=>e.options.get("line_height_formats").split(" "),Px=e=>{const t=fx(e),n=a(t),o=s(t)&&t.length>0;return!Fx(e)&&(o||n||!0===t)},Rx=e=>{const t=P(9,t=>e.options.get("toolbar"+(t+1))),n=U(t,a);return qe(n.length>0,n)},Fx=e=>Rx(e).fold(()=>{const t=fx(e);return h(t,a)&&t.length>0},T),Vx=e=>lx(e)===Rk.bottom,zx=e=>{var t;if(!e.inline)return I.none();const n=null!==(t=sx(e))&&void 0!==t?t:"";if(n.length>0)return Wo(ao(),n);const o=cx(e);return f(o)?I.some(ct(o)):I.none()},Ux=e=>e.inline&&zx(e).isSome(),jx=e=>zx(e).getOrThunk(()=>xn(kn(ct(e.getElement())))),Hx=e=>e.inline&&!Dx(e)&&!Px(e)&&!Fx(e),qx=e=>(e.options.get("toolbar_sticky")||e.inline)&&!Ux(e)&&!Hx(e),Gx=e=>!Ux(e)&&"split"===e.options.get("ui_mode"),Kx=e=>{const t=e.options.get("menu");return se(t,e=>({...e,items:e.items}))};var Zx=Object.freeze({__proto__:null,get ToolbarMode(){return Pk},get ToolbarLocation(){return Rk},register:Gk,getSkinUrl:Mx,getSkinUrlOption:e=>I.from(e.options.get("skin_url")),isReadOnly:Kk,isDisabled:Zk,getSkin:Ox,isSkinDisabled:Lx,getHeightOption:Wk,getWidthOption:$k,getMinWidthOption:Yk,getMinHeightOption:Jk,getMaxWidthOption:Xk,getMaxHeightOption:Qk,getUserStyleFormats:ex,shouldMergeStyleFormats:tx,shouldAutoHideStyleFormats:nx,getLineHeightFormats:Nx,getContentLanguages:ox,getRemovedMenuItems:rx,isMenubarEnabled:Dx,isMultipleToolbars:Fx,isToolbarEnabled:Px,isToolbarPersist:ux,getMultipleToolbarsOption:Rx,getUiContainer:jx,useFixedContainer:Ux,isSplitUiMode:Gx,getToolbarMode:ax,isDraggableModal:Ax,isDistractionFree:Hx,isStickyToolbar:qx,getStickyToolbarOffset:dx,getToolbarLocation:lx,isToolbarLocationBottom:Vx,getToolbarGroups:ix,getMenus:Kx,getMenubar:px,getToolbar:fx,getFilePickerCallback:mx,getFilePickerTypes:bx,useTypeaheadUrls:vx,getAnchorTop:yx,getAnchorBottom:_x,getFilePickerValidatorHandler:gx,getFontSizeInputDefaultUnit:hx,useStatusBar:kx,useElementPath:xx,promotionEnabled:Tx,useBranding:wx,getResize:Cx,getPasteAsText:Ex,getSidebarShow:Sx,useHelpAccessibility:Ix,getDefaultFontStack:Bx});const Wx=["visible","hidden","clip"],$x=e=>et(e).length>0&&!M(Wx,e),Yx=e=>{if(nn(e)){const t=fo(e,"overflow-x"),n=fo(e,"overflow-y");return $x(t)||$x(n)}return!1},Jx=e=>e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen(),Xx=(e,t)=>Gx(e)?((e,t)=>{const n=dr(t,Yx),o=0===n.length?wn(t).map(Cn).map(e=>dr(e,Yx)).getOr([]):n;return te(o).map(t=>({element:t,others:o.slice(1),isFullscreen:()=>Jx(e)}))})(e,t):I.none(),Qx=e=>{const t=[...F(e.others,Nr),Fr()];return e.isFullscreen()?Fr():((e,t)=>H(t,(e,t)=>Rr(e,t),e))(Nr(e.element),t)},{entries:ew,setPrototypeOf:tw,isFrozen:nw,getPrototypeOf:ow,getOwnPropertyDescriptor:rw}=Object;let{freeze:aw,seal:iw,create:lw}=Object,{apply:sw,construct:cw}="undefined"!=typeof Reflect&&Reflect;aw||(aw=function(e){return e}),iw||(iw=function(e){return e}),sw||(sw=function(e,t,n){return e.apply(t,n)}),cw||(cw=function(e,t){return new e(...t)});const uw=Cw(Array.prototype.forEach),dw=Cw(Array.prototype.lastIndexOf),pw=Cw(Array.prototype.pop),fw=Cw(Array.prototype.push),mw=Cw(Array.prototype.splice),gw=Cw(String.prototype.toLowerCase),hw=Cw(String.prototype.toString),bw=Cw(String.prototype.match),vw=Cw(String.prototype.replace),yw=Cw(String.prototype.indexOf),_w=Cw(String.prototype.trim),Aw=Cw(Object.prototype.hasOwnProperty),kw=Cw(RegExp.prototype.test),xw=(ww=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return cw(ww,t)});var ww;function Cw(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return sw(e,t,o)}}function Ew(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gw;tw&&tw(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(nw(t)||(t[o]=e),r=e)}e[r]=!0}return e}function Sw(e){for(let t=0;t<e.length;t++)Aw(e,t)||(e[t]=null);return e}function Tw(e){const t=lw(null);for(const[n,o]of ew(e))Aw(e,n)&&(Array.isArray(o)?t[n]=Sw(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=Tw(o):t[n]=o);return t}function Iw(e,t){for(;null!==e;){const n=rw(e,t);if(n){if(n.get)return Cw(n.get);if("function"==typeof n.value)return Cw(n.value)}e=ow(e)}return function(){return null}}const Bw=aw(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ow=aw(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Lw=aw(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Dw=aw(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mw=aw(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Nw=aw(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pw=aw(["#text"]),Rw=aw(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Fw=aw(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vw=aw(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zw=aw(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Uw=iw(/\{\{[\w\W]*|[\w\W]*\}\}/gm),jw=iw(/<%[\w\W]*|[\w\W]*%>/gm),Hw=iw(/\$\{[\w\W]*/gm),qw=iw(/^data-[\-\w.\u00B7-\uFFFF]+$/),Gw=iw(/^aria-[\-\w]+$/),Kw=iw(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zw=iw(/^(?:\w+script|data):/i),Ww=iw(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$w=iw(/^html$/i),Yw=iw(/^[a-z][.\w]*(-[.\w]+)+$/i);var Jw=Object.freeze({__proto__:null,ARIA_ATTR:Gw,ATTR_WHITESPACE:Ww,CUSTOM_ELEMENT:Yw,DATA_ATTR:qw,DOCTYPE_NAME:$w,ERB_EXPR:jw,IS_ALLOWED_URI:Kw,IS_SCRIPT_OR_DATA:Zw,MUSTACHE_EXPR:Uw,TMPLIT_EXPR:Hw});const Xw=function(){return"undefined"==typeof window?null:window};var Qw=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xw();const n=t=>e(t);if(n.version="3.2.4",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,g=c.prototype,h=Iw(g,"cloneNode"),b=Iw(g,"remove"),v=Iw(g,"nextSibling"),y=Iw(g,"childNodes"),_=Iw(g,"parentNode");if("function"==typeof l){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let A,k="";const{implementation:x,createNodeIterator:w,createDocumentFragment:C,getElementsByTagName:E}=o,{importNode:S}=r;let T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof ew&&"function"==typeof _&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:I,ERB_EXPR:B,TMPLIT_EXPR:O,DATA_ATTR:L,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:P}=Jw;let{IS_ALLOWED_URI:R}=Jw,F=null;const V=Ew({},[...Bw,...Ow,...Lw,...Mw,...Pw]);let z=null;const U=Ew({},[...Rw,...Fw,...Vw,...zw]);
vendor: 4,473 bytes, line 2
2let j=Object.seal(lw(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,q=null,G=!0,K=!0,Z=!1,W=!0,$=!1,Y=!0,J=!1,X=!1,Q=!1,ee=!1,te=!1,ne=!1,oe=!0,re=!1,ae=!0,ie=!1,le={},se=null;const ce=Ew({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=Ew({},["audio","video","img","source","image","track"]);let pe=null;const fe=Ew({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xhtml";let be=he,ve=!1,ye=null;const _e=Ew({},[me,ge,he],hw);let Ae=Ew({},["mi","mo","mn","ms","mtext"]),ke=Ew({},["annotation-xml"]);const xe=Ew({},["title","style","font","a","script"]);let we=null;const Ce=["application/xhtml+xml","text/html"];let Ee=null,Se=null;const Te=o.createElement("form"),Ie=function(e){return e instanceof RegExp||e instanceof Function},Be=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Se||Se!==e){if(e&&"object"==typeof e||(e={}),e=Tw(e),we=-1===Ce.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===we?hw:gw,F=Aw(e,"ALLOWED_TAGS")?Ew({},e.ALLOWED_TAGS,Ee):V,z=Aw(e,"ALLOWED_ATTR")?Ew({},e.ALLOWED_ATTR,Ee):U,ye=Aw(e,"ALLOWED_NAMESPACES")?Ew({},e.ALLOWED_NAMESPACES,hw):_e,pe=Aw(e,"ADD_URI_SAFE_ATTR")?Ew(Tw(fe),e.ADD_URI_SAFE_ATTR,Ee):fe,ue=Aw(e,"ADD_DATA_URI_TAGS")?Ew(Tw(de),e.ADD_DATA_URI_TAGS,Ee):de,se=Aw(e,"FORBID_CONTENTS")?Ew({},e.FORBID_CONTENTS,Ee):ce,H=Aw(e,"FORBID_TAGS")?Ew({},e.FORBID_TAGS,Ee):{},q=Aw(e,"FORBID_ATTR")?Ew({},e.FORBID_ATTR,Ee):{},le=!!Aw(e,"USE_PROFILES")&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,Z=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,$=e.SAFE_FOR_TEMPLATES||!1,Y=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||Kw,be=e.NAMESPACE||he,Ae=e.MATHML_TEXT_INTEGRATION_POINTS||Ae,ke=e.HTML_INTEGRATION_POINTS||ke,j=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ie(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ie(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$&&(K=!1),te&&(ee=!0),le&&(F=Ew({},Pw),z=[],!0===le.html&&(Ew(F,Bw),Ew(z,Rw)),!0===le.svg&&(Ew(F,Ow),Ew(z,Fw),Ew(z,zw)),!0===le.svgFilters&&(Ew(F,Lw),Ew(z,Fw),Ew(z,zw)),!0===le.mathMl&&(Ew(F,Mw),Ew(z,Vw),Ew(z,zw))),e.ADD_TAGS&&(F===V&&(F=Tw(F)),Ew(F,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(z===U&&(z=Tw(z)),Ew(z,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&Ew(pe,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(se===ce&&(se=Tw(se)),Ew(se,e.FORBID_CONTENTS,Ee)),ae&&(F["#text"]=!0),J&&Ew(F,["html","head","body"]),F.table&&(Ew(F,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw xw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw xw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=e.TRUSTED_TYPES_POLICY,k=A.createHTML("")}else void 0===A&&(A=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(m,a)),null!==A&&"string"==typeof k&&(k=A.createHTML(""));aw&&aw(e),Se=e}},Oe=Ew({},[...Ow,...Lw,...Dw]),Le=Ew({},[...Mw,...Nw]),De=function(e){fw(n.removed,{element:e});
vendor: 6,848 bytes, line 2
2try{_(e).removeChild(e)}catch(t){b(e)}},Me=function(e,t){try{fw(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){fw(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{De(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=bw(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===we&&be===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=A?A.createHTML(e):e;if(be===he)try{t=(new f).parseFromString(r,we)}catch(e){}if(!t||!t.documentElement){t=x.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?k:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),be===he?E.call(t,J?"html":"body")[0]:J?t.documentElement:a},Pe=function(e){return w.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Fe=function(e){return"function"==typeof s&&e instanceof s};function Ve(e,t,o){uw(e,e=>{e.call(n,t,o,Se)})}const ze=function(e){let t=null;if(Ve(T.beforeSanitizeElements,e,null),Re(e))return De(e),!0;const o=Ee(e.nodeName);if(Ve(T.uponSanitizeElement,e,{tagName:o,allowedTags:F}),e.hasChildNodes()&&!Fe(e.firstElementChild)&&kw(/<[/\w]/g,e.innerHTML)&&kw(/<[/\w]/g,e.textContent))return De(e),!0;if(7===e.nodeType)return De(e),!0;if(Y&&8===e.nodeType&&kw(/<[/\w]/g,e.data))return De(e),!0;if(!F[o]||H[o]){if(!H[o]&&je(o)){if(j.tagNameCheck instanceof RegExp&&kw(j.tagNameCheck,o))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(o))return!1}if(ae&&!se[o]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=h(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,v(e))}}return De(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const n=gw(e.tagName),o=gw(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===he?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===o||Ae[o]):Boolean(Oe[n]):e.namespaceURI===me?t.namespaceURI===he?"math"===n:t.namespaceURI===ge?"math"===n&&ke[o]:Boolean(Le[n]):e.namespaceURI===he?!(t.namespaceURI===ge&&!ke[o])&&!(t.namespaceURI===me&&!Ae[o])&&!Le[n]&&(xe[n]||!Oe[n]):!("application/xhtml+xml"!==we||!ye[e.namespaceURI]))}(e)?(De(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!kw(/<\/no(script|embed|frames)/i,e.innerHTML)?($&&3===e.nodeType&&(t=e.textContent,uw([I,B,O],e=>{t=vw(t,e," ")}),e.textContent!==t&&(fw(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ve(T.afterSanitizeElements,e,null),!1):(De(e),!0)},Ue=function(e,t,n){if(oe&&("id"===t||"name"===t)&&(n in o||n in Te))return!1;if(K&&!q[t]&&kw(L,t));else if(G&&kw(D,t));else if(!z[t]||q[t]){if(!(je(e)&&(j.tagNameCheck instanceof RegExp&&kw(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&kw(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&kw(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(pe[t]);else if(kw(R,vw(n,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==yw(n,"data:")||!ue[e])if(Z&&!kw(M,vw(n,N,"")));else if(n)return!1;return!0},je=function(e){return"annotation-xml"!==e&&bw(e,P)},He=function(e){Ve(T.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let r=t.length;for(;r--;){const a=t[r],{name:i,namespaceURI:l,value:s}=a,c=Ee(i);let u="value"===i?s:_w(s);const d=u;if(o.attrName=c,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,Ve(T.uponSanitizeAttribute,e,o),u=o.attrValue,!re||"id"!==c&&"name"!==c||(Me(i,e),u="user-content-"+u),Y&&kw(/((--!?|])>)|<\/(style|title)/i,u)){Me(i,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){Me(i,e);continue}if(!W&&kw(/\/>/i,u)){Me(i,e);continue}$&&uw([I,B,O],e=>{u=vw(u,e," ")});const p=Ee(e.nodeName);if(Ue(p,c,u)){if(A&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,c)){case"TrustedHTML":u=A.createHTML(u);break;case"TrustedScriptURL":u=A.createScriptURL(u)}if(u!==d)try{l?e.setAttributeNS(l,i,u):e.setAttribute(i,u),Re(e)?De(e):pw(n.removed)}catch(e){}}else Me(i,e)}Ve(T.afterSanitizeAttributes,e,null)},qe=function e(t){let n=null;const o=Pe(t);for(Ve(T.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Ve(T.uponSanitizeShadowNode,n,null),ze(n),He(n),n.content instanceof i&&e(n.content);Ve(T.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,l=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Fe(e)){if("function"!=typeof e.toString)throw xw("toString is not a function");if("string"!=typeof(e=e.toString()))throw xw("dirty is not a string, aborting")}if(!n.isSupported)return e;if(X||Be(t),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){const t=Ee(e.nodeName);if(!F[t]||H[t])throw xw("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)o=Ne("\x3c!----\x3e"),a=o.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!ee&&!$&&!J&&-1===e.indexOf("<"))return A&&ne?A.createHTML(e):e;if(o=Ne(e),!o)return ee?null:ne?k:""}o&&Q&&De(o.firstChild);const u=Pe(ie?e:o);for(;l=u.nextNode();)ze(l),He(l),l.content instanceof i&&qe(l.content);if(ie)return e;if(ee){if(te)for(c=C.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(z.shadowroot||z.shadowrootmode)&&(c=S.call(r,c,!0)),c}let d=J?o.outerHTML:o.innerHTML;return J&&F["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&kw($w,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),$&&uw([I,B,O],e=>{d=vw(d,e," ")}),A&&ne?A.createHTML(d):d},n.setConfig=function(){Be(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),X=!0},n.clearConfig=function(){Se=null,X=!1},n.isValidAttribute=function(e,t,n){Se||Be({});const o=Ee(e),r=Ee(t);return Ue(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&fw(T[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=dw(T[e],t);
vendor: 2,228 bytes, line 2
2return-1===n?void 0:mw(T[e],n,1)[0]}return pw(T[e])},n.removeHooks=function(e){T[e]=[]},n.removeAllHooks=function(){T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const eC=e=>Qw().sanitize(e);var tC=tinymce.util.Tools.resolve("tinymce.util.I18n");const nC={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-disc":!0,"list-bull-default":!0,"list-bull-square":!0},oC="temporary-placeholder",rC=e=>()=>he(e,oC).getOr("!not found!"),aC=(e,t)=>{const n=e.toLowerCase();if(tC.isRtl()){const e=((e,t)=>Qe(e,t)?e:((e,t)=>e+t)(e,t))(n,"-rtl");return be(t,e)?e:n}return n},iC=(e,t)=>he(t,aC(e,t)),lC=(e,t)=>{const n=t();return iC(e,n).getOrThunk(rC(n))},sC=()=>du("add-focusable",[Jc(e=>{Zo(e.element,"svg").each(e=>Gn(e,"focusable","false"))})]),cC=(e,t,n,o)=>{var r,a;const i=(e=>!!tC.isRtl()&&be(nC,e))(t)?["tox-icon--flip"]:[],l=he(n,aC(t,n)).or(o).getOrThunk(rC(n));return{dom:{tag:e.tag,attributes:null!==(r=e.attributes)&&void 0!==r?r:{},classes:e.classes.concat(i),innerHtml:l},behaviours:au([...null!==(a=e.behaviours)&&void 0!==a?a:[],sC()])}},uC=(e,t,n,o=I.none())=>cC(t,e,n(),o),dC={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},pC=rg({name:"Notification",factory:e=>{const t=Pe("notification-text"),n=uv({dom:cv(`<p id=${t}>${eC(e.backstageProvider.translate(e.text))}</p>`),behaviours:au([Qp.config({})])}),o=e=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${e}%`}}}),r=e=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${e}%`}}),a=uv({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[o(0)]},r(0)],behaviours:au([Qp.config({})])}),i={updateProgress:(e,t)=>{e.getSystem().isConnected()&&a.getOpt(e).each(e=>{Qp.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[o(t)]},r(t)])})},updateText:(e,t)=>
vendor: 5,130 bytes, line 2
2{if(e.getSystem().isConnected()){const o=n.get(e);Qp.set(o,[Ef(t)])}}},l=K([e.icon.toArray(),[e.level],I.from(dC[e.level]).toArray()]),s=uv(Ev.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":e.backstageProvider.translate("Close")}},components:[uC("close",{tag:"span",classes:["tox-icon"]},e.iconProvider)],buttonBehaviours:au([Ub.config({}),lv.config({...e.backstageProvider.tooltips.getConfig({tooltipText:e.backstageProvider.translate("Close")})})]),action:t=>{e.onAction(t)}})),c=((e,t,n)=>{const o=n(),r=q(e,e=>be(o,aC(e,o)));return cC({tag:"div",classes:["tox-notification__icon"]},r.getOr(oC),o,I.none())})(l,0,e.iconProvider),u=[c,{dom:{tag:"div",classes:["tox-notification__body"]},components:[n.asSpec()],behaviours:au([Qp.config({})])}];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":t},classes:["tox-notification","tox-notification--in",`tox-notification--${e.level}`]},behaviours:au([Ub.config({}),hu.config({}),Ap.config({mode:"special",onEscape:t=>(e.onAction(t),I.some(!0))})]),components:u.concat(e.progress?[a.asSpec()]:[]).concat([s.asSpec()]),apis:i}},configFields:[ni("level","info",["success","error","warning","warn","info"]),Na("progress"),qa("icon"),Na("onAction"),Na("text"),Na("iconProvider"),Na("backstageProvider")],apis:{updateProgress:(e,t,n)=>{e.updateProgress(t,n)},updateText:(e,t,n)=>{e.updateText(t,n)}}});var fC=(e,t,n,o)=>{const r=t.backstage.shared,a=()=>ct(""===e.queryCommandValue("ToggleView")?e.getContentAreaContainer():e.getContainer()),i=()=>{const e=Nr(a());return I.some(e)},l=e=>{i().each(t=>{V(e,e=>{vo(e.element,"width"),So(e.element)>t.width&&co(e.element,"width",t.width+"px")})})};return{open:(t,s,c)=>{const u=()=>{o.on(t=>{s();const n=c();(e=>{Qp.remove(e,d),p()})(t),((t,n)=>{0===hn(t.element).length?((t,n)=>{Wy.hide(t),o.clear(),n&&e.focus()})(t,n):((e,t)=>{t&&Ap.focusIn(e)})(t,n)})(t,n)})},d=Bf(pC.sketch({text:t.text,level:M(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:t.icon,onAction:u,iconProvider:r.providers.icons,backstageProvider:r.providers}));if(o.isSet()){const e=Of(d);o.on(t=>{Qp.append(t,e),Wy.reposition(t),d.hasConfigured(Im)&&Im.refresh(t),l(t.components())})}else{const t=Bf(Wy.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:r.getSink,fireDismissalEventInstead:{},...r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:au([Ap.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),Qp.config({}),...qx(e)&&r.header.isPositionedAtTop()?[]:[Im.config({contextual:{lazyContext:()=>I.some(Nr(a())),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:t=>Xx(e,t.element).map(e=>({bounds:Qx(e),optScrollEnv:I.some({currentScrollTop:e.element.dom.scrollTop,scrollElmTop:Do(e.element).top})})).getOrThunk(()=>({bounds:Fr(),optScrollEnv:I.none()}))})]])})),l=Of(d),s={maxHeightFunction:wc()},c={...r.anchors.banner(),overrides:s};o.set(t),n.add(t),Wy.showWithinBounds(t,l,{anchor:c},i)}g(t.timeout)&&t.timeout>0&&Vk.setEditorTimeout(e,()=>{u()},t.timeout);const p=()=>{o.on(e=>{Wy.reposition(e),e.hasConfigured(Im)&&Im.refresh(e),l(e.components())})};return{close:u,reposition:p,text:e=>{pC.updateText(d,e)},settings:t,getEl:()=>d.element.dom,progressBar:{value:e=>{pC.updateProgress(d,e)}}}},close:e=>{e.close()},getArgs:e=>e.settings}};var mC;!function(e){e[e.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",e[e.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"}(mC||(mC={}));var gC=mC;const hC="tox-menu-nav__js",bC="tox-collection__item",vC="tox-swatch",yC={normal:hC,color:vC},_C="tox-collection__item--enabled",AC="tox-collection__item-icon",kC="tox-collection__item-label",xC="tox-collection__item-caret",wC="tox-collection__item--active",CC="tox-collection__item-container",EC="tox-collection__item-container--row",SC=e=>he(yC,e).getOr(hC),TC=e=>"color"===e?"tox-swatches":"tox-menu",IC=e=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:TC(e),tieredMenu:"tox-tiered-menu"}),BC=e=>{const t=IC(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:SC(e)}},OC=(e,t,n)=>{const o=IC(n);return{tag:"div",classes:K([[o.menu,`tox-menu-${t}-column`],e?[o.hasIcons]:[]])}},LC=[Xv.parts.items({})],DC=(e,t,n)=>{const o=IC(n);return{dom:{tag:"div",classes:K([[o.tieredMenu]])},markers:BC(n)}},MC=Pe("refetch-trigger-event"),NC=Pe("redirect-menu-item-interaction"),PC="tox-menu__searcher",RC=e=>Wo(e.element,`.${PC}`).bind(t=>e.getSystem().getByDom(t).toOptional()),FC=RC,VC=e=>({fetchPattern:Yg.getValue(e),selectionStart:e.element.dom.selectionStart,selectionEnd:e.element.dom.selectionEnd}),zC=e=>{const t=(e,t)=>(t.cut(),I.none()),n=(e,t)=>
vendor: 4,582 bytes, line 2
2{const n={interactionEvent:t.event,eventType:t.event.raw.type};return Nc(e,NC,n),I.some(!0)},o="searcher-events";return{dom:{tag:"div",classes:[bC]},components:[Qy.sketch({inputClasses:[PC,"tox-textfield"],inputAttributes:{...e.placeholder.map(t=>({placeholder:e.i18n(t)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:au([du(o,[Hc(xi(),e=>{Mc(e,MC)}),Hc(Ai(),(e,t)=>{"Escape"===t.event.raw.key&&t.stop()})]),Ap.config({mode:"special",onLeft:t,onRight:t,onSpace:t,onEnter:n,onEscape:n,onUp:n,onDown:n})]),eventOrder:{keydown:[o,Ap.name()]}})]}},UC="tox-collection--results__js",jC=e=>{var t;return e.dom?{...e,dom:{...e.dom,attributes:{...null!==(t=e.dom.attributes)&&void 0!==t?t:{},id:Pe("aria-item-search-result-id"),"aria-selected":"false"}}}:e},HC=(e,t)=>n=>{const o=R(n,t);return F(o,t=>({dom:e,components:t}))},qC=(e,t)=>{const n=[];let o=[];return V(e,(e,r)=>{t(e,r)?(o.length>0&&n.push(o),o=[],(be(e.dom,"innerHtml")||e.components&&e.components.length>0)&&o.push(e)):o.push(e)}),o.length>0&&n.push(o),F(n,e=>({dom:{tag:"div",classes:["tox-collection__group"]},components:e}))},GC=(e,t,n)=>Xv.parts.items({preprocess:o=>{const r=F(o,n);return"auto"!==e&&e>1?HC({tag:"div",classes:["tox-collection__group"]},e)(r):qC(r,(e,n)=>"separator"===t[n].type)}}),KC=(e,t,n=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[GC(e,t,A)]}),ZC=e=>N(e,e=>"icon"in e&&void 0!==e.icon),WC=e=>(console.error(Ia(e)),console.log(e),I.none()),$C=(e,t,n,o,r)=>{const a=(i=n,{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Xv.parts.items({preprocess:e=>qC(e,(e,t)=>"separator"===i[t].type)})]});var i;return{value:e,dom:a.dom,components:a.components,items:n}},YC=(e,t,n,o,r)=>{if("color"===r.menuType){const t=(e=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Xv.parts.items({preprocess:"auto"!==e?HC({tag:"div",classes:["tox-swatches__row"]},e):A})]}]}))(o);return{value:e,dom:t.dom,components:t.components,items:n}}if("imageselector"===r.menuType&&"auto"!==o){const t=(e=>({dom:{tag:"div",classes:["tox-menu","tox-image-selector-menu"]},components:[{dom:{tag:"div",classes:["tox-image-selector"]},components:[Xv.parts.items({preprocess:"auto"!==e?HC({tag:"div",classes:["tox-image-selector__row"]},e):A})]}]}))(o);return{value:e,dom:t.dom,components:t.components,items:n}}if("normal"===r.menuType&&"auto"===o){const t=KC(o,n);return{value:e,dom:t.dom,components:t.components,items:n}}if("normal"===r.menuType||"searchable"===r.menuType){const t="searchable"!==r.menuType?KC(o,n):"search-with-field"===r.searchMode.searchMode?((e,t,n)=>{const o=Pe("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[zC({i18n:tC.translate,placeholder:n.placeholder}),{dom:{tag:"div",classes:[...1===e?["tox-collection--list"]:["tox-collection--grid"],UC],attributes:{id:o}},components:[GC(e,t,jC)]}]}})(o,n,r.searchMode):((e,t)=>{const n=Pe("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",UC].concat(1===e?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:n}},components:[GC(e,t,jC)]}})(o,n);return{value:e,dom:t.dom,components:t.components,items:n}}if("listpreview"===r.menuType&&"auto"!==o){const t=(e=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Xv.parts.items({preprocess:HC({tag:"div",classes:["tox-collection__group"]},e)})]}))(o);return{value:e,dom:t.dom,components:t.components,items:n}}return{value:e,dom:OC(t,o,r.menuType),components:LC,items:n}},JC=Fa("type"),XC=Fa("name"),QC=Fa("label"),eE=Fa("text"),tE=Fa("title"),nE=Fa("icon"),oE=Fa("url"),rE=Fa("value"),aE=za("fetch"),iE=za("getSubmenuItems"),lE=za("onAction"),sE=za("onItemAction"),cE=ri("onSetup",()=>b),uE=Za("name"),dE=Za("text"),pE=Za("role"),fE=Za("icon"),mE=Za("tooltip"),gE=Za("label"),hE=Za("shortcut"),bE=$a("select"),vE=oi("active",!1),yE=oi("borderless",!1),_E=oi("enabled",!0),AE=oi("primary",!1),kE=e=>Xa("columns",e),xE=Xa("meta",{}),wE=ri("onAction",b),CE=e=>ti("type",e),EE=e=>La("name","name",la(()=>Pe(`${e}-name`)),na),SE=[JC,eE,Va("level",["info","warn","error","success"]),nE,Xa("url","")],TE=va(SE),IE=[JC,eE,_E,EE("button"),fE,yE,Wa("buttonType",["primary","secondary","toolbar"]),AE,ti("context","mode:design")],BE=va(IE),OE=[JC,XC],LE=OE.c
vendor: 62,989 bytes, line 2
2oncat([gE]),DE=OE.concat([QC,_E,ti("context","mode:design")]),ME=va(DE),NE=oa,PE=LE.concat([kE("auto"),ti("context","mode:design")]),RE=va(PE),FE=ka([rE,eE,nE]),VE=LE.concat([ti("storageKey","default"),ti("context","mode:design")]),zE=va(VE),UE=na,jE=va(LE),HE=na,qE=OE.concat([ti("tag","textarea"),Fa("scriptId"),Fa("scriptUrl"),$a("onFocus"),Qa("settings",void 0,ia)]),GE=OE.concat([ti("tag","textarea"),za("init")]),KE=wa(e=>Ea("customeditor.old",ba(GE),e).orThunk(()=>Ea("customeditor.new",ba(qE),e))),ZE=na,WE=[_E,dE,pE,hE,La("value","value",la(()=>Pe("menuitem-value")),Qr()),xE,ti("context","mode:design")];const $E=va([JC,XC].concat(WE)),YE=oa,JE=[EE("button"),fE,ni("align","end",["start","end"]),AE,_E,Wa("buttonType",["primary","secondary"]),ti("context","mode:design")],XE=[...JE,eE],QE=[Va("type",["submit","cancel","custom"]),...XE],eS=[Va("type",["menu"]),dE,mE,fE,Ha("items",$E),...JE],tS=[...JE,Va("type",["togglebutton"]),mE,fE,dE,oi("active",!1)],nS=Ba("type",{submit:QE,cancel:QE,custom:QE,menu:eS,togglebutton:tS}),oS=LE.concat([ti("context","mode:design")]),rS=va(oS),aS=ya(Xr),iS=e=>[JC,Ra("columns"),e],lS=[JC,Fa("html"),ni("presets","presentation",["presentation","document"]),ri("onInit",b),oi("stretched",!1)],sS=va(lS),cS=LE.concat([oi("border",!1),oi("sandboxed",!0),oi("streamContent",!1),oi("transparent",!0)]),uS=va(cS),dS=na,pS=va(OE.concat([Za("height")])),fS=va([Fa("url"),Ka("zoom"),Ka("cachedWidth"),Ka("cachedHeight")]),mS=LE.concat([Za("inputMode"),Za("placeholder"),oi("maximized",!1),_E,ti("context","mode:design")]),gS=va(mS),hS=na,bS=e=>[JC,QC,e,ni("align","start",["start","center","end"]),Za("for")],vS=[eE,rE],yS=[eE,Ha("items",Oa(0,()=>_S))],_S=_a([va(vS),va(yS)]),AS=LE.concat([Ha("items",_S),_E,ti("context","mode:design")]),kS=va(AS),xS=na,wS=LE.concat([ja("items",[eE,rE]),ei("size",1),_E,ti("context","mode:design")]),CS=va(wS),ES=na,SS=LE.concat([oi("constrain",!0),_E,ti("context","mode:design")]),TS=va(SS),IS=va([Fa("width"),Fa("height")]),BS=OE.concat([QC,ei("min",0),ei("max",0)]),OS=va(BS),LS=ta,DS=[JC,Ha("header",na),Ha("cells",ya(na))],MS=va(DS),NS=LE.concat([Za("placeholder"),oi("maximized",!1),_E,ti("context","mode:design")]),PS=va(NS),RS=na,FS=[ti("buttonType","default"),Za("text"),Za("tooltip"),Za("icon"),Qa("search",!1,_a([oa,va([Za("placeholder")])],e=>u(e)?e?I.some({placeholder:I.none()}):I.none():I.some(e))),za("fetch"),ri("onSetup",()=>b),ti("context","mode:design")],VS=va([JC,...FS]),zS=e=>Ea("menubutton",VS,e),US=[Va("type",["directory","leaf"]),tE,Fa("id"),Ga("menu",VS),Za("customStateIcon"),Za("customStateIconTooltip")],jS=va(US),HS=US.concat([Ha("children",Oa(0,()=>xa("type",{directory:qS,leaf:jS})))]),qS=va(HS),GS=xa("type",{directory:qS,leaf:jS}),KS=[JC,Ha("items",GS),$a("onLeafAction"),$a("onToggleExpand"),ai("defaultExpandedIds",[],na),Za("defaultSelectedId")],ZS=va(KS),WS=LE.concat([ni("filetype","file",["image","media","file"]),_E,Za("picker_text"),ti("context","mode:design")]),$S=va(WS),YS=va([rE,xE]),JS=e=>La("items","items",{tag:"required",process:{}},ya(wa(t=>Ea(`Checking item of ${e}`,XS,t).fold(e=>Ie.error(Ia(e)),e=>Ie.value(e))))),XS=ga(()=>{return xa("type",{alertbanner:TE,bar:va((e=JS("bar"),[JC,e])),button:BE,checkbox:ME,colorinput:zE,colorpicker:jE,dropzone:rS,grid:va(iS(JS("grid"))),iframe:uS,input:gS,listbox:kS,selectbox:CS,sizeinput:TS,slider:OS,textarea:PS,urlinput:$S,customeditor:KE,htmlpanel:sS,imagepreview:pS,collection:RE,label:va(bS(JS("label"))),table:MS,tree:ZS,panel:eT});var e}),QS=[JC,Xa("classes",[]),Ha("items",XS)],eT=va(QS),tT=[EE("tab"),tE,Ha("items",XS)],nT=[JC,ja("tabs",tT)],oT=va(nT),rT=XE,aT=nS,iT=va([Fa("title"),Pa("body",xa("type",{panel:eT,tabpanel:oT})),ti("size","normal"),ai("buttons",[],aT),Xa("initialData",{}),ri("onAction",b),ri("onChange",b),ri("onSubmit",b),ri("onClose",b),ri("onCancel",b),ri("onTabChange",b)]),lT=va([Va("type",["cancel","custom"]),...rT]),sT=va([Fa("title"),Fa("url"),Ka("height"),Ka("width"),Ya("buttons",lT),ri("onAction",b),ri("onCancel",b),ri("onClose",b),ri("onMessage",b)]),cT=e=>i(e)?[e].concat(Z(ge(e),cT)):s(e)?Z(e,cT):[],uT=e=>a(e.type)&&a(e.name),dT={checkbox:NE,colorinput:UE,colorpicker:HE,dropzone:aS,input:hS,iframe:dS,imagepreview:fS,selectbox:ES,sizeinput:IS,slider:LS,listbox:xS,size:IS,textarea:RS,urlinput:YS,customeditor:ZE,collection:FE,togglemenuitem:YE},pT=e=>{const t=(e=>U(cT(e),uT))(e),n=Z(t,e=>(e=>I.from(dT[e.type]))(e).fold(()=>[],t=>[Pa(e.name,t)]));return va(n)},fT=e=>{var t;return{internalDialog:Sa(Ea("dialog",iT,e)),dataValidator:pT(e),initialData:null!==(t=e.initialData)&&void 0!==t?t:{}}},mT={open:(e,t)=>{const n=fT(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:(e,t)=>e(Sa(Ea("dialog",sT,t))),redial:e=>fT(e)},gT=va([JC,dE]),hT=va([CE("autocompleteitem"),vE,_E,xE,rE,dE,fE]);va([JC,Fa("trigger"),ei("minChars",1),kE(1),ei("maxResults",10),$a("matches"),aE,lE,ai("highlightOn",[],na)]);const bT=[_E,mE,fE,dE,cE,ti("context","mode:design")],vT=va([JC,lE,hE].concat(bT)),yT=e=>Ea("toolbarbutton",vT,e),_T=[vE].concat(bT),AT=va(_T.concat([JC,lE,hE])),kT=e=>Ea("ToggleButton",AT,e),xT=[ri("predicate",S),ni("scope","node",["node","editor"]),ni("position","selection",["node","selection","line"])],wT=bT.concat([CE("contextformbutton"),ti("align","end"),AE,lE,Da("original",A)]),CT=_T.concat([CE("contextformbutton"),ti("align","end"),AE,lE,Da("original",A)]),ET=bT.concat([CE("contextformbutton")]),ST=_T.concat([CE("contextformtogglebutton")]),TT=[gE,Ha("commands",Ba("type",{contextformbutton:wT,contextformtogglebutton:CT})),Ga("launch",Ba("type",{contextformbutton:ET,contextformtogglebutton:ST})),ri("onInput",b),ri("onSetup",b)],IT=[...xT,...TT,Va("type",["contextform"]),ri("initValue",_("")),Za("placeholder")],BT=[...xT,...TT,Va("type",["contextsliderform"]),ri("initValue",_(0)),ri("min",_(0)),ri("max",_(100))],OT=[...xT,...TT,Va("type",["contextsizeinputform"]),ri("initValue",_({width:"",height:""}))],LT=Ba("type",{contextform:IT,contextsliderform:BT,contextsizeinputform:OT}),DT=bT.concat([CE("contexttoolbarbutton")]),MT=va([CE("contexttoolbar"),Ja("launch",DT),Pa("items",_a([na,ka([Za("name"),Za("label"),Ha("items",na)])]))].concat(xT)),NT=e=>({name:e.name.getOrUndefined(),label:e.label.getOrUndefined(),items:e.items}),PT=[JC,Fa("src"),Za("alt"),ai("classes",[],na)],RT=va(PT),FT=[JC,eE,uE,ai("classes",["tox-collection__item-label"],na)],VT=va(FT),zT=ga(()=>xa("type",{cardimage:RT,cardtext:VT,cardcontainer:UT})),UT=va([JC,ti("direction","horizontal"),ti("align","left"),ti("valign","middle"),Ha("items",zT)]),jT=va([JC,gE,Ha("items",zT),cE,wE].concat(WE)),HT=va([JC,vE,fE,gE].concat(WE)),qT=[JC,Fa("fancytype"),wE],GT=[Xa("initData",{})].concat(qT),KT=[$a("select"),ii("initData",{},[oi("allowCustomColors",!0),ti("storageKey","default"),Ya("colors",Qr())])].concat(qT),ZT=[$a("select"),Ua("initData",[Ra("columns"),ai("items",[],Qr())])].concat(qT),WT=Ba("fancytype",{inserttable:GT,colorswatch:KT,imageselect:ZT}),$T=va([JC,vE,oE,gE,mE].concat(WE)),YT=va([JC,vE,nE,QC,mE,rE].concat(WE)),JT=va([JC,cE,wE,fE].concat(WE)),XT=va([JC,iE,cE,fE].concat(WE)),QT=va([JC,fE,vE,cE,lE].concat(WE)),eI=va([fE,mE,ri("onShow",b),ri("onHide",b),cE]),tI=va([JC,Pa("items",_a([ka([XC,Ha("items",na)]),na]))].concat(bT)),nI=va([JC,mE,fE,dE,bE,aE,cE,ni("presets","normal",["normal","color","listpreview"]),kE(1),lE,sE,ti("context","mode:design")]),oI=[dE,fE,Za("tooltip"),ni("buttonType","secondary",["primary","secondary"]),oi("borderless",!1),za("onAction"),ti("context","mode:design")],rI={button:[...oI,eE,Va("type",["button"])],togglebutton:[...oI,oi("active",!1),Va("type",["togglebutton"])]},aI=[Va("type",["group"]),ai("buttons",[],Ba("type",rI))],iI=Ba("type",{...rI,group:aI}),lI=va([ai("buttons",[],iI),za("onShow"),za("onHide")]),sI=(e,t,n)=>{const o=pr(e.element,"."+n);if(o.length>0){const e=G(o,e=>{const n=e.dom.getBoundingClientRect().top,r=o[0].dom.getBoundingClientRect().top;return Math.abs(n-r)>t}).getOr(o.length);return I.some({numColumns:e,numRows:Math.ceil(o.length/e)})}return I.none()},cI=e=>((e,t)=>au([du(e,t)]))(Pe("unnamed-events"),e),uI=e=>nm.config({disabled:e,disableClass:"tox-collection__item--state-disabled"}),dI=e=>nm.config({disabled:e}),pI=e=>nm.config({disabled:e,disableClass:"tox-tbtn--disabled"}),fI=e=>nm.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1}),mI=(e,t)=>{const n=e.getApi(t);return e=>{e(n)}},gI=(e,t)=>Jc(n=>{m(e.onBeforeSetup)&&e.onBeforeSetup(n),mI(e,n)(n=>{const o=e.onSetup(n);m(o)&&t.set(o)})}),hI=(e,t)=>Xc(n=>mI(e,n)(t.get())),bI=(e,t,n)=>Xc(o=>(n.set(Yg.getValue(o)),mI(e,o)(t.get()))),vI="silver.uistate",yI="setDisabled",_I="init",AI=["switchmode",_I],kI=(e,t)=>{const n=e.mainUi.outerContainer,o=[e.mainUi.mothership,...e.uiMotherships];t===yI&&V(o,e=>{e.broadcastOn([fv()],{target:n.element})}),V(o,e=>{e.broadcastOn([vI],t)})},xI=(e,t)=>{e.on("init SwitchMode",e=>{kI(t,e.type)}),e.on("DisabledStateChange",n=>{if(!n.isDefaultPrevented()){const o=n.state?yI:_I;kI(t,o),n.state||e.nodeChanged()}}),e.on("NodeChange",n=>{const o=e.ui.isEnabled()?n.type:yI;kI(t,o)}),Kk(e)&&e.mode.set("readonly")},wI=e=>nb.config({channels:{[vI]:{onReceive:(t,n)=>{if(n===yI||"setEnabled"===n)return void nm.set(t,n===yI);const{contextType:o,shouldDisable:r}=e();("mode"!==o||M(AI,n))&&nm.set(t,r)}}}}),CI=(e,t)=>eu((n,o)=>{mI(e,n)(e.onAction),e.triggersSubmenu||t!==gC.CLOSE_ON_EXECUTE||(n.getSystem().isConnected()&&Mc(n,zi()),o.stop())}),EI={[Pi()]:["disabling","alloy.base.behaviour","toggling","item-events"]},SI=Ue,TI=(e,t,n,o)=>{const r=_e(b);return{type:"item",dom:t.dom,components:SI(t.optComponents),data:e.data,eventOrder:EI,hasSubmenu:e.triggersSubmenu,itemBehaviours:au([du("item-events",[CI(e,n),gI(e,r),hI(e,r)]),uI(()=>!e.enabled||o.checkUiComponentContext(e.context).shouldDisable),wI(()=>o.checkUiComponentContext(e.context)),Qp.config({})].concat(e.itemBehaviours))}},II=e=>({value:e.value,meta:{text:e.text.getOr(""),...e.meta}}),BI=(e,t)=>{var n,o;const r=lt("div");return nr(r,"tox-image-selector-loading-spinner"),{dom:{tag:e.tag,attributes:null!==(n=e.attributes)&&void 0!==n?n:{},classes:e.classes},components:[{dom:{tag:"div",classes:["tox-image-selector-image-wrapper"]},components:[{dom:{tag:"img",attributes:{src:t},classes:["tox-image-selector-image-img"]}}]},...e.checkMark.toArray()],behaviours:au([...null!==(o=e.behaviours)&&void 0!==o?o:[],du("render-image-events",[Jc(e=>{var t;t=e.element,nr(t,"tox-image-selector-loading-spinner-wrapper"),jn(t,r),Wo(e.element,"img").each(t=>{no(t).catch(e=>{console.error(e)}).finally(()=>{(e=>{rr(e,"tox-image-selector-loading-spinner-wrapper"),Xn(r)})(e.element)})})})])])}},OI=e=>{const t=jk.os.isMacOS()||jk.os.isiOS(),n=t?{alt:"â¥",ctrl:"â",shift:"â§",meta:"â",access:"ââ¥"}:{meta:"Ctrl",access:"Shift+Alt"},o=e.split("+"),r=F(o,e=>{const t=e.toLowerCase().trim();return be(n,t)?n[t]:e});return t?r.join(""):r.join("+")},LI=(e,t,n=[AC])=>uC(e,{tag:"div",classes:n},t),DI=e=>({dom:{tag:"div",classes:[kC]},components:[Ef(tC.translate(e))]}),MI=(e,t)=>({dom:{tag:"div",classes:t,innerHtml:e}}),NI=(e,t)=>({dom:{tag:"div",classes:[kC]},components:[{dom:{tag:e.tag,styles:e.styles},components:[Ef(tC.translate(t))]}]}),PI=e=>({dom:{tag:"div",classes:["tox-collection__item-accessory"]},components:[Ef(OI(e))]}),RI=e=>LI("checkmark",e,["tox-collection__item-checkmark"]),FI=(e,t)=>{const n=e.map(e=>({attributes:{id:Pe("menu-item"),"aria-label":tC.translate(e)}})).getOr({});return{tag:"div",classes:[hC,bC].concat(t),...n}},VI=e=>({dom:{tag:"label"},components:[Ef(e)]}),zI=(e,t,n,o=I.none())=>"color"===e.presets?((e,t,n)=>{const o=e.value,r=e.iconContent.map(e=>((e,t,n)=>{const o=t();return iC(e,o).or(n).getOrThunk(rC(o))})(e,t.icons,n)),a=e.ariaLabel.map(e=>({"aria-label":t.translate(e),"data-mce-name":e})).getOr({});return{dom:(()=>{const e=vC,t=r.getOr(""),n={tag:"div",attributes:a,classes:[e]};return"custom"===o?{...n,tag:"button",classes:[...n.classes,"tox-swatches__picker-btn"],innerHtml:t}:"remove"===o?{...n,classes:[...n.classes,"tox-swatch--remove"],innerHtml:t}:f(o)?{...n,attributes:{...n.attributes,"data-mce-color":o},styles:{"background-color":o},innerHtml:t}:n})(),optComponents:[]}})(e,t,o):"img"===e.presets?(e=>{var t,n;return{dom:FI(e.ariaLabel,["tox-collection__item-image-selector"]),optComponents:[I.some((t=e.iconContent.getOrDie(),n={tag:"div",classes:["tox-collection__item-image"],checkMark:e.checkMark},BI(n,t))),e.labelContent.map(VI)]}})(e):((e,t,n,o)=>{const r={tag:"div",classes:[AC]},a=n?e.iconContent.map(e=>uC(e,r,t.icons,o)).orThunk(()=>I.some({dom:r})):I.none(),i=e.checkMark,l=I.from(e.meta).fold(()=>DI,e=>be(e,"style")?x(NI,e.style):DI),s=e.htmlContent.fold(()=>e.textContent.map(l),e=>I.some(MI(e,[kC])));return{dom:FI(e.ariaLabel,[]),optComponents:[a,s,e.shortcutContent.map(PI),i,e.caret,e.labelContent.map(VI)]}})(e,t,n,o),UI=(e,t,n)=>he(e,"tooltipWorker").map(e=>[lv.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:e=>({type:"submenu",item:e,overrides:{maxHeightFunction:wc}}),mode:"follow-highlight",onShow:(t,n)=>{e(e=>{lv.setComponents(t,[Sf({element:ct(e)})])})}})]).getOrThunk(()=>n.map(e=>[lv.config({...t.providers.tooltips.getConfig({tooltipText:e}),mode:"follow-highlight"})]).getOr([])),jI=(e,t)=>{const n=(e=>zk.DOM.encode(e))(tC.translate(e));if(t.length>0){const e=new RegExp((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t),"gi");return n.replace(e,e=>`<span class="tox-autocompleter-highlight">${e}</span>`)}return n},HI=(e,t)=>F(e,e=>{switch(e.type){case"cardcontainer":return((e,t)=>{const n="vertical"===e.direction?"tox-collection__item-container--column":EC,o="left"===e.align?"tox-collection__item-container--align-left":"tox-collection__item-container--align-right";return{dom:{tag:"div",classes:[CC,n,o,(()=>{switch(e.valign){case"top":return"tox-collection__item-container--valign-top";case"middle":return"tox-collection__item-container--valign-middle";case"bottom":return"tox-collection__item-container--valign-bottom"}})()]},components:t}})(e,HI(e.items,t));case"cardimage":return((e,t,n)=>({dom:{tag:"img",classes:t,attributes:{src:e,alt:n.getOr("")}}}))(e.src,e.classes,e.alt);case"cardtext":const n=e.name.exists(e=>M(t.cardText.highlightOn,e)),o=n?I.from(t.cardText.matchText).getOr(""):"";return MI(jI(e.text,o),e.classes)}}),qI=(e,t,n,o,r,a,i,l=!0)=>{const s=zI({presets:n,textContent:t?e.text:I.none(),htmlContent:I.none(),labelContent:e.label,ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:I.none(),checkMark:t?I.some(RI(i.icons)):I.none(),caret:I.none(),value:e.value},i,l),c=e.text.filter(_(!t)).map(e=>lv.config(i.tooltips.getConfig({tooltipText:i.translate(e)})));return Fe(TI({context:e.context,data:II(e),enabled:e.enabled,getApi:e=>({setActive:t=>{$b.set(e,t)},isActive:()=>$b.isOn(e),isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t)}),onAction:t=>o(e.value),onSetup:e=>(e.setActive(r),b),triggersSubmenu:!1,itemBehaviours:[...c.toArray()]},s,a,i),{toggling:{toggleClass:_C,toggleOnExecute:!1,selected:e.active,exclusive:!0}})},GI=e=>({value:$I(e)}),KI=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ZI=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,WI=e=>KI.test(e)||ZI.test(e),$I=e=>Ye(e,"#").toUpperCase(),YI=e=>{const t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},JI=e=>{const t=YI(e.red)+YI(e.green)+YI(e.blue);return GI(t)},XI=(e,t,n)=>({hue:e,saturation:t,value:n}),QI=e=>{let t=0,n=0,o=0;const r=e.red/255,a=e.green/255,i=e.blue/255,l=Math.min(r,Math.min(a,i)),s=Math.max(r,Math.max(a,i));return l===s?(o=l,XI(0,0,100*o)):(t=r===l?3:i===l?1:5,t=60*(t-(r===l?a-i:i===l?r-a:i-r)/(s-l)),n=(s-l)/s,o=s,XI(Math.round(t),Math.round(100*n),Math.round(100*o)))},eB=Math.min,tB=Math.max,nB=Math.round,oB=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,rB=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,aB=(e,t,n,o)=>({red:e,green:t,blue:n,alpha:o}),iB=e=>{const t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},lB=e=>{let t,n,o;const r=(e.hue||0)%360;let a=e.saturation/100,i=e.value/100;if(a=tB(0,eB(a,1)),i=tB(0,eB(i,1)),0===a)return t=n=o=nB(255*i),aB(t,n,o,1);const l=r/60,s=i*a,c=s*(1-Math.abs(l%2-1)),u=i-s;switch(Math.floor(l)){case 0:t=s,n=c,o=0;break;case 1:t=c,n=s,o=0;break;case 2:t=0,n=s,o=c;break;case 3:t=0,n=c,o=s;break;case 4:t=c,n=0,o=s;break;case 5:t=s,n=0,o=c;break;default:t=n=o=0}return t=nB(255*(t+u)),n=nB(255*(n+u)),o=nB(255*(o+u)),aB(t,n,o,1)},sB=e=>{const t=(e=>{const t=(e=>{const t=e.value.replace(KI,(e,t,n,o)=>t+t+n+n+o+o);return{value:t}})(e),n=ZI.exec(t.value);return null===n?["FFFFFF","FF","FF","FF"]:n})(e),n=parseInt(t[1],16),o=parseInt(t[2],16),r=parseInt(t[3],16);return aB(n,o,r,1)},cB=(e,t,n,o)=>{const r=parseInt(e,10),a=parseInt(t,10),i=parseInt(n,10),l=parseFloat(o);return aB(r,a,i,l)},uB=e=>{const t=oB.exec(e);if(null!==t)return I.some(cB(t[1],t[2],t[3],"1"));const n=rB.exec(e);return null!==n?I.some(cB(n[1],n[2],n[3],n[4])):I.none()},dB=e=>`rgba(${e.red},${e.green},${e.blue},${e.alpha})`,pB=aB(255,0,0,1),fB=e=>JI(lB(e)),mB=(e,t)=>{e.dispatch("ResizeContent",t)},gB=(e,t)=>{e.dispatch("TextColorChange",t)},hB=(e,t)=>e.dispatch("ResolveName",{name:t.nodeName.toLowerCase(),target:t}),bB=e=>{e.dispatch("ContextToolbarClose")},vB=(e,t)=>()=>{e(),t()},yB=(e,t=T)=>AB(e,"NodeChange",n=>{n.setEnabled(e.selection.isEditable()&&t())}),_B=(e,t)=>n=>{const o=yB(e)(n),r=((e,t)=>n=>{const o=Ze(),r=()=>{n.setActive(e.formatter.match(t));const r=e.formatter.formatChanged(t,n.setActive);o.set(r)};return e.initialized?r():e.once("init",r),()=>{e.off("init",r),o.clear()}})(e,t)(n);return()=>{o(),r()}},AB=(e,t,n)=>o=>{const r=()=>n(o),a=()=>{n(o),e.on(t,r)};return e.initialized?a():e.once("init",a),()=>{e.off("init",a),e.off(t,r)}},kB=e=>t=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("mceToggleFormat",!1,t.format)})},xB=(e,t)=>()=>e.execCommand(t);var wB=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const CB={},EB=e=>he(CB,e).getOrThunk(()=>{const t=`tinymce-custom-colors-${e}`,n=wB.getItem(t);if(p(n)){const e=wB.getItem("tinymce-custom-colors");wB.setItem(t,f(e)?e:"[]")}const o=((e,t=10)=>{const n=wB.getItem(e),o=a(n)?JSON.parse(n):[],r=t-(i=o).length<0?i.slice(0,t):i;var i;const l=e=>{r.splice(e,1)};return{add:n=>{((e,t)=>{const n=D(e,t);return-1===n?I.none():I.some(n)})(r,n).each(l),r.unshift(n),r.length>t&&r.pop(),wB.setItem(e,JSON.stringify(r))},state:()=>r.slice(0)}})(t,10);return CB[e]=o,o}),SB=(e,t)=>{EB(e).add(t)},TB="forecolor",IB="hilitecolor",BB=e=>{const t=[];for(let n=0;n<e.length;n+=2)t.push({text:e[n+1],value:e[n],icon:"checkmark",type:"choiceitem"});return t},OB=e=>t=>t.options.get(e),LB="#000000",DB=(e,t)=>t===TB&&e.options.isSet("color_map_foreground")?OB("color_map_foreground")(e):t===IB&&e.options.isSet("color_map_background")?OB("color_map_background")(e):e.options.isSet("color_map_raw")?OB("color_map_raw")(e):OB("color_map")(e),MB=(e,t="default")=>Math.max(5,Math.ceil(Math.sqrt(DB(e,t).length))),NB=(e,t)=>{const n=OB("color_cols")(e),o=MB(e,t);return n===MB(e)?o:n},PB=(e,t="default")=>Math.round(t===TB?OB("color_cols_foreground")(e):t===IB?OB("color_cols_background")(e):OB("color_cols")(e)),RB=OB("custom_colors"),FB=OB("color_default_foreground"),VB=OB("color_default_background"),zB=(e,t)=>{const n=ct(e.selection.getStart()),o="hilitecolor"===t?br(n,e=>{if(on(e)){const t=fo(e,"background-color");return qe((e=>uB(e).exists(e=>0!==e.alpha))(t),t)}return I.none()}).getOr("rgba(0, 0, 0, 0)"):fo(n,"color");return uB(o).map(e=>"#"+JI(e).value)},UB=e=>{const t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return e?[n,{type:t,text:"Custom color",icon:"color-picker",value:"custom"}]:[n]},jB=(e,t,n,o)=>{"custom"===n?JB(e)(n=>{n.each(n=>{SB(t,n),e.execCommand("mceApplyTextcolor",t,n),o(n)})},zB(e,t).getOr(LB)):"remove"===n?(o(""),e.execCommand("mceRemoveTextcolor",t)):(o(n),e.execCommand("mceApplyTextcolor",t,n))},HB=(e,t,n)=>e.concat((e=>F(EB(e).state(),e=>({type:"choiceitem",text:e,icon:"checkmark",value:e})))(t).concat(UB(n))),qB=(e,t,n)=>o=>{o(HB(e,t,n))},GB=(e,t,n)=>{const o="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";e.setIconFill(o,n)},KB=(e,t)=>{e.setTooltip(t)},ZB=(e,t)=>n=>{const o=zB(e,t);return ze(o,n.toUpperCase())},WB=(e,t,n)=>{if(nt(n))return"forecolor"===t?"Text color":"Background color";const o="forecolor"===t?"Text color {0}":"Background color {0}",r=HB(DB(e,t),t,!1),a=q(r,e=>e.value===n).getOr({text:""}).text;return e.translate([o,e.translate(a)])},$B=(e,t,n,o)=>{e.ui.registry.addSplitButton(t,{tooltip:WB(e,n,o.get()),presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:ZB(e,n),columns:PB(e,n),fetch:qB(DB(e,n),n,RB(e)),onAction:t=>{jB(e,n,o.get(),b)},onItemAction:(r,a)=>{jB(e,n,a,n=>{o.set(n),gB(e,{name:t,color:n})})},onSetup:r=>{GB(r,t,o.get());const a=o=>{o.name===t&&(GB(r,o.name,o.color),KB(r,WB(e,n,o.color)))};return e.on("TextColorChange",a),vB(yB(e)(r),()=>{e.off("TextColorChange",a)})}})},YB=(e,t,n,o,r)=>{e.ui.registry.addNestedMenuItem(t,{text:o,icon:"forecolor"===t?"text-color":"highlight-bg-color",onSetup:o=>(KB(o,WB(e,n,r.get())),GB(o,t,r.get()),yB(e)(o)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:ZB(e,n),initData:{storageKey:n},onAction:o=>{jB(e,n,o.value,n=>{r.set(n),gB(e,{name:t,color:n})})}}]})},JB=e=>(t,n)=>{let o=!1;const r={colorpicker:n};e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onAction:(e,t)=>{"hex-valid"===t.name&&(o=t.value)},onSubmit:n=>{const r=n.getData().colorpicker;o?(t(I.from(r)),n.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",r]))},onClose:b,onCancel:()=>{t(I.none())}})},XB=(e,t,n,o,r,a,i,l)=>{const s=ZC(t),c=QB(t,n,o,"color"!==r?"normal":"color",a,i,l);return YC(e,s,c,o,{menuType:r})},QB=(e,t,n,o,r,a,i)=>Ue(F(e,l=>{return"choiceitem"===l.type?(s=l,Ea("choicemenuitem",HT,s)).fold(WC,l=>I.some(qI(l,1===n,o,t,a(l.value),r,i,ZC(e)))):"imageitem"===l.type?(e=>Ea("imagemenuitem",$T,e))(l).fold(WC,e=>I.some(((e,t,n,o,r)=>{const a=zI({presets:"img",textContent:I.none(),htmlContent:I.none(),ariaLabel:e.tooltip,iconContent:I.some(e.url),labelContent:e.label,shortcutContent:I.none(),checkMark:I.some(RI(r.icons)),caret:I.none(),value:e.value},r,!0),i=e.tooltip.map(e=>lv.config(r.tooltips.getConfig({tooltipText:r.translate(e)})));return Fe(TI({context:e.context,data:II(e),enabled:e.enabled,getApi:e=>({setActive:t=>{$b.set(e,t)},isActive:()=>$b.isOn(e),isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t)}),onAction:n=>{t(e.value),n.setActive(!0)},onSetup:e=>(e.setActive(n),b),triggersSubmenu:!1,itemBehaviours:[...i.toArray()]},a,o,r),{toggling:{toggleClass:_C,toggleOnExecute:!1,selected:e.active,exclusive:!0}})})(e,t,a(e.value),r,i))):"resetimage"===l.type?(e=>Ea("resetimageitem",YT,e))(l).fold(WC,l=>I.some(qI({...l,type:"choiceitem",text:l.tooltip,icon:I.some(l.icon),label:I.some(l.label)},1===n,o,t,a(l.value),r,i,ZC(e)))):I.none();var s})),eO=(e,t)=>{const n=BC(t);return 1===e?{mode:"menu",moveOnTab:!0}:"auto"===e?{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+{color:"tox-swatches__row",imageselector:"tox-image-selector__row",listpreview:"tox-collection__group",normal:"tox-collection__group"}[t],previousSelector:e=>"color"===t?Wo(e.element,"[aria-checked=true]"):I.none()}},tO=Pe("cell-over"),nO=Pe("cell-execute"),oO=(e,t,n)=>{const o=n=>Nc(n,nO,{row:e,col:t}),r=(e,t)=>{t.stop(),o(e)};return Bf({dom:{tag:"div",attributes:{role:"button","aria-label":n}},behaviours:au([du("insert-table-picker-cell",[Hc(vi(),hu.focus),Hc(Pi(),o),Hc(Ci(),r),Hc(Fi(),r)]),$b.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),hu.config({onFocus:n=>Nc(n,tO,{row:e,col:t})})])})},rO=e=>Z(e,e=>F(e,Of)),aO=(e,t)=>Ef(`${t}x${e}`),iO={inserttable:(e,t)=>{const n=(e=>(t,n)=>e.shared.providers.translate(["{0} columns, {1} rows",n,t]))(t),o=(e=>{const t=[];for(let n=0;n<10;n++){const o=[];for(let t=0;t<10;t++){const r=e(n+1,t+1);o.push(oO(n,t,r))}t.push(o)}return t})(n),r=aO(0,0),a=uv({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[r],behaviours:au([Qp.config({})])});return{type:"widget",data:{value:Pe("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[e_.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:rO(o).concat(a.asSpec()),behaviours:au([du("insert-table-picker",[Jc(e=>{Qp.set(a.get(e),[r])}),Zc(tO,(e,t,n)=>{const{row:r,col:i}=n.event;((e,t,n)=>{for(let o=0;o<10;o++)for(let r=0;r<10;r++)$b.set(e[o][r],o<=t&&r<=n)})(o,r,i),Qp.set(a.get(e),[aO(r+1,i+1)])}),Zc(nO,(t,n,o)=>{const{row:r,col:a}=o.event;Mc(t,zi()),e.onAction({numRows:r+1,numColumns:a+1})})]),Ap.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:(e,t)=>{const n=((e,t)=>{const n=e.initData.allowCustomColors&&t.colorinput.hasCustomColors();return e.initData.colors.fold(()=>HB(t.colorinput.getColors(e.initData.storageKey),e.initData.storageKey,n),e=>e.concat(UB(n)))})(e,t),o=t.colorinput.getColorCols(e.initData.storageKey),r="color",a=XB(Pe("menu-value"),n,t=>{e.onAction({value:t})},o,r,gC.CLOSE_ON_EXECUTE,e.select.getOr(S),t.shared.providers),i={...a,markers:BC(r),movement:eO(o,r),showMenuRole:!1};return{type:"widget",data:{value:Pe("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[e_.widget(Xv.sketch(i))]}},imageselect:(e,t)=>{const n="imageselector",o=e.initData.columns,r=XB(Pe("menu-value"),e.initData.items,t=>{e.onAction({value:t})},o,n,gC.CLOSE_ON_EXECUTE,e.select.getOr(S),t.shared.providers),a={...r,markers:BC(n),movement:eO(o,n),showMenuRole:!1};return{type:"widget",data:{value:Pe("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem","tox-collection--toolbar"]},autofocus:!0,components:[e_.widget(Xv.sketch(a))]}}},lO=e=>({type:"separator",dom:{tag:"div",classes:[bC,"tox-collection__group-heading"]},components:e.text.map(Ef).toArray()}),sO=(e,t,n)=>{FC(e).each(e=>{var o;((e,t)=>{Wn(t.element,"id").each(t=>Gn(e.element,"aria-activedescendant",t))})(e,n),(ar((o=t).element,UC)?I.some(o.element):Wo(o.element,"."+UC)).each(t=>{Wn(t,"id").each(t=>Gn(e.element,"aria-controls",t))})}),Gn(n.element,"aria-selected","true")},cO=(e,t,n)=>{Gn(n.element,"aria-selected","false")},uO=e=>jf.getExistingCoupled(e,"sandbox").bind(RC).map(VC).map(e=>e.fetchPattern).getOr("");var dO;!function(e){e[e.ContentFocus=0]="ContentFocus",e[e.UiFocus=1]="UiFocus"}(dO||(dO={}));const pO=(e,t,n,o,r)=>{const a=n.shared.providers,i=e=>r?{...e,shortcut:I.none(),icon:e.text.isSome()?I.none():e.icon}:e;switch(e.type){case"menuitem":return(l=e,Ea("menuitem",JT,l)).fold(WC,e=>I.some(((e,t,n,o=!0)=>{const r=zI({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:I.none(),labelContent:I.none(),ariaLabel:e.text,caret:I.none(),checkMark:I.none(),shortcutContent:e.shortcut},n,o);return TI({context:e.context,data:II(e),getApi:e=>({isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t)}),enabled:e.enabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,t,n)})(i(e),t,a,o)));case"nestedmenuitem":return(e=>Ea("nestedmenuitem",XT,e))(e).fold(WC,e=>I.some(((e,t,n,o=!0,r=!1)=>{const a=r?(i=n.icons,LI("chevron-down",i,[xC])):(e=>LI("chevron-right",e,[xC]))(n.icons);var i;const l=zI({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:I.none(),ariaLabel:e.text,labelContent:I.none(),caret:I.some(a),checkMark:I.none(),shortcutContent:e.shortcut},n,o);return TI({context:e.context,data:II(e),getApi:e=>({isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t),setIconFill:(t,n)=>{Wo(e.element,`svg path[class="${t}"], rect[class="${t}"]`).each(e=>{Gn(e,"fill",n)})},setTooltip:t=>{const o=n.translate(t);Gn(e.element,"aria-label",o)}}),enabled:e.enabled,onAction:b,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},l,t,n)})(i(e),t,a,o,r)));case"togglemenuitem":return(e=>Ea("togglemenuitem",QT,e))(e).fold(WC,e=>I.some(((e,t,n,o=!0)=>{const r=zI({iconContent:e.icon,textContent:e.text,htmlContent:I.none(),labelContent:I.none(),ariaLabel:e.text,checkMark:I.some(RI(n.icons)),caret:I.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,o);return Fe(TI({context:e.context,data:II(e),enabled:e.enabled,getApi:e=>({setActive:t=>{$b.set(e,t)},isActive:()=>$b.isOn(e),isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t)}),onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,t,n),{toggling:{toggleClass:_C,toggleOnExecute:!1,selected:e.active},role:e.role.getOrUndefined()})})(i(e),t,a,o)));case"separator":return(e=>Ea("separatormenuitem",gT,e))(e).fold(WC,e=>I.some(lO(e)));case"fancymenuitem":return(e=>Ea("fancymenuitem",WT,e))(e).fold(WC,e=>((e,t)=>he(iO,e.fancytype).map(n=>n(e,t)))(e,n));default:return console.error("Unknown item in general menu",e),I.none()}var l},fO=(e,t,n,o,r,a,i)=>{const l=1===o,s=!l||ZC(e);return Ue(F(e,e=>{switch(e.type){case"separator":return(o=e,Ea("Autocompleter.Separator",gT,o)).fold(WC,e=>I.some(lO(e)));case"cardmenuitem":return(e=>Ea("cardmenuitem",jT,e))(e).fold(WC,e=>I.some(((e,t,n,o)=>{const r={dom:FI(e.label,[]),optComponents:[I.some({dom:{tag:"div",classes:[CC,EC]},components:HI(e.items,o)})]};return TI({context:"mode:design",data:II({text:I.none(),...e}),enabled:e.enabled,getApi:e=>({isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>{nm.set(e,!t),V(pr(e.element,"*"),n=>{e.getSystem().getByDom(n).each(e=>{e.hasConfigured(nm)&&nm.set(e,!t)})})}}),onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(o.itemBehaviours).getOr([])},r,t,n.providers)})({...e,onAction:t=>{e.onAction(t),n(e.value,e.meta)}},r,a,{itemBehaviours:UI(e.meta,a,I.none()),cardText:{matchText:t,highlightOn:i}})));default:return(e=>Ea("Autocompleter.Item",hT,e))(e).fold(WC,e=>I.some(((e,t,n,o,r,a,i,l=!0)=>{const s=zI({presets:o,textContent:I.none(),htmlContent:n?e.text.map(e=>jI(e,t)):I.none(),ariaLabel:e.text,labelContent:I.none(),iconContent:e.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:e.value},i.providers,l,e.icon),c=e.text.filter(e=>!n&&""!==e);return TI({context:"mode:design",data:II(e),enabled:e.enabled,getApi:_({}),onAction:t=>r(e.value,e.meta),onSetup:_(b),triggersSubmenu:!1,itemBehaviours:UI(e,i,c)},s,a,i.providers)})(e,t,l,"normal",n,r,a,s)))}var o}))},mO=(e,t,n,o,r,a)=>{const i=ZC(t),l=Ue(F(t,e=>{const t=e=>pO(e,n,o,(e=>r?!be(e,"text"):i)(e),r);return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?t({...e,enabled:!1}):t(e)})),s=(e=>"no-search"===e.searchMode?{menuType:"normal"}:{menuType:"searchable",searchMode:e})(a);return(r?$C:YC)(e,i,l,1,s)},gO=e=>iy.singleData(e.value,e),hO=e=>vr(ct(e.startContainer),e.startOffset,ct(e.endContainer),e.endOffset),bO=(e,t)=>{const n=Pe("autocompleter"),o=_e(!1),r=_e(!1),a=We(),i=Bf(Wy.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:n}},components:[],fireDismissalEventInstead:{},inlineBehaviours:au([du("dismissAutocompleter",[Hc($i(),()=>d()),Hc(nl(),(t,n)=>{Wn(n.event.target,"id").each(t=>Gn(ct(e.getBody()),"aria-activedescendant",t))})])]),lazySink:t.getSink})),l=()=>Wy.isOpen(i),s=r.get,c=()=>{if(l()){Wy.hide(i),e.dom.remove(n,!1);const t=ct(e.getBody());Wn(t,"aria-owns").filter(e=>e===n).each(()=>{Yn(t,"aria-owns"),Yn(t,"aria-activedescendant")})}},u=()=>Wy.getContent(i).bind(e=>ee(e.components(),0)),d=()=>e.execCommand("mceAutocompleterClose"),p=r=>{const l=(n=>{const r=re(n,e=>I.from(e.columns)).getOr(1);return Z(n,n=>{const i=n.items;return fO(i,n.matchText,(t,r)=>{const i={hide:()=>d(),reload:t=>{c(),e.execCommand("mceAutocompleterReload",!1,{fetchOptions:t})}};e.execCommand("mceAutocompleterRefreshActiveRange"),a.get().each(e=>{o.set(!0),n.onAction(i,e,t,r),o.set(!1)})},r,gC.BUBBLE_TO_SANDBOX,t,n.highlightOn)})})(r);l.length>0?(((t,n)=>{const o=re(t,e=>I.from(e.columns)).getOr(1);Wy.showMenuAt(i,{anchor:{type:"selection",getSelection:()=>a.get().map(hO),root:ct(e.getBody())}},((e,t,n,o)=>{const r=eO(t,o),a=BC(o);return{data:gO({...e,movement:r,menuBehaviours:cI("auto"!==t?[]:[Jc((e,t)=>{sI(e,4,a.item).each(({numColumns:t,numRows:n})=>{Ap.setGridSize(e,n,t)})})])}),menu:{markers:BC(o),fakeFocus:n===dO.ContentFocus}}})(YC("autocompleter-value",!0,n,o,{menuType:"normal"}),o,dO.ContentFocus,"normal")),u().each(Gu.highlightFirst)})(r,l),Gn(ct(e.getBody()),"aria-owns",n),e.inline||f()):c()},f=()=>{e.dom.get(n)&&e.dom.remove(n,!1);const t=e.getDoc().documentElement,o=e.selection.getNode(),r=(e=>Qn(e,!0))(i.element);uo(r,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${o.offsetTop}px`,left:`${o.offsetLeft}px`}),e.dom.add(t,r.dom),Wo(r,'[role="menu"]').each(e=>{vo(e,"position"),vo(e,"max-height")})};e.on("AutocompleterStart",({lookupData:e})=>{r.set(!0),o.set(!1),p(e)}),e.on("AutocompleterUpdate",({lookupData:e})=>p(e)),e.on("AutocompleterUpdateActiveRange",({range:e})=>a.set(e)),e.on("AutocompleterEnd",()=>{c(),r.set(!1),o.set(!1),a.clear()});((e,t)=>{const n=(e,t)=>{Nc(e,Ai(),{raw:t})},o=()=>e.getMenu().bind(Gu.getHighlighted);t.on("keydown",t=>{const r=t.which;e.isActive()&&(e.isMenuOpen()?13===r?(o().each(Pc),t.preventDefault()):40===r?(o().fold(()=>{e.getMenu().each(Gu.highlightFirst)},e=>{n(e,t)}),t.preventDefault(),t.stopImmediatePropagation()):37!==r&&38!==r&&39!==r||o().each(e=>{n(e,t),t.preventDefault(),t.stopImmediatePropagation()}):13!==r&&38!==r&&40!==r||e.cancelIfNecessary())}),t.on("NodeChange",()=>{!e.isActive()||e.isProcessingAction()||t.queryCommandState("mceAutoCompleterInRange")||e.cancelIfNecessary()})})({cancelIfNecessary:d,isMenuOpen:l,isActive:s,isProcessingAction:o.get,getMenu:u},e)};var vO=tinymce.util.Tools.resolve("tinymce.html.Entities");const yO=(e,t,n,o)=>{const r=_O(e,t,n,o);return jy.sketch(r)},_O=(e,t,n,o)=>({dom:AO(n),components:e.toArray().concat([t]),fieldBehaviours:au(o)}),AO=e=>({tag:"div",classes:["tox-form__group"].concat(e)}),kO=(e,t)=>jy.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Ef(t.translate(e))]}),xO=Pe("form-component-change"),wO=Pe("form-component-input"),CO=Pe("form-close"),EO=Pe("form-cancel"),SO=Pe("form-action"),TO=Pe("form-submit"),IO=Pe("form-block"),BO=Pe("form-unblock"),OO=Pe("form-tabchange"),LO=Pe("form-resize"),DO=(e,t,n)=>{const o=e.label.map(e=>kO(e,t)),r=t.icons(),a=e=>(t,n)=>{$o(n.event.target,"[data-collection-item-value]").each(o=>{e(t,n,o,Zn(o,"data-collection-item-value"))})},i=a((n,o,r,a)=>{o.stop(),t.checkUiComponentContext("mode:design").shouldDisable||t.isDisabled()||Nc(n,SO,{name:e.name,value:a})}),l=[Hc(vi(),a((e,t,n)=>{Mn(n,!0)})),Hc(Ci(),i),Hc(Fi(),i),Hc(yi(),a((e,t,n)=>{Wo(e.element,"."+wC).each(e=>{rr(e,wC)}),nr(n,wC)})),Hc(_i(),a(e=>{Wo(e.element,"."+wC).each(e=>{rr(e,wC),Nn(e)})})),eu(a((t,n,o,r)=>{Nc(t,SO,{name:e.name,value:r})}))],s=(e,t)=>F(pr(e.element,".tox-collection__item"),t),c=jy.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:A},behaviours:au([nm.config({disabled:()=>t.checkUiComponentContext(e.context).shouldDisable,onDisabled:e=>{s(e,e=>{nr(e,"tox-collection__item--state-disabled"),Gn(e,"aria-disabled",!0)})},onEnabled:e=>{s(e,e=>{rr(e,"tox-collection__item--state-disabled"),Yn(e,"aria-disabled")})}}),wI(()=>t.checkUiComponentContext(e.context)),Qp.config({}),lv.config({...t.tooltips.getConfig({tooltipText:"",onShow:e=>{Wo(e.element,"."+wC+"[data-mce-tooltip]").each(n=>{Wn(n,"data-mce-tooltip").each(n=>{lv.setComponents(e,t.tooltips.getComponents({tooltipText:n}))})})}}),mode:"children-keyboard-focus",anchor:e=>({type:"node",node:Wo(e.element,"."+wC).orThunk(()=>yt(".tox-collection__item")),root:e.element,layouts:{onLtr:_([Ks,Gs,Us,Hs,js,qs]),onRtl:_([Ks,Gs,Us,Hs,js,qs])},bubble:As(0,-2,{})})}),Yg.config({store:{mode:"memory",initialValue:n.getOr([])},onSetValue:(n,o)=>{((n,o)=>{const a=t.checkUiComponentContext("mode:design").shouldDisable||t.isDisabled()?" tox-collection__item--state-disabled":"",i=F(o,t=>{const n=tC.translate(t.text),o=1===e.columns?`<div class="tox-collection__item-label">${n}</div>`:"",i=`<div class="tox-collection__item-icon">${(e=>{var t;return null!==(t=r[e])&&void 0!==t?t:e})(t.icon)}</div>`,l={_:" "," - ":" ","-":" "},s=n.replace(/\_| \- |\-/g,e=>l[e]);return`<div data-mce-tooltip="${s}" class="tox-collection__item${a}" tabindex="-1" data-collection-item-value="${vO.encodeAllRaw(t.value)}" aria-label="${s}">${i}${o}</div>`}),l="auto"!==e.columns&&e.columns>1?R(i,e.columns):[i],s=F(l,e=>`<div class="tox-collection__group">${e.join("")}</div>`);to(n.element,s.join(""))})(n,o),"auto"===e.columns&&sI(n,5,"tox-collection__item").each(({numRows:e,numColumns:t})=>{Ap.setGridSize(n,e,t)}),Mc(n,LO)}}),Ub.config({}),Ap.config((u=e.columns,1===u?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===u?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:".tox-collection__group",cell:`.${bC}`}})),du("collection-events",l)]),eventOrder:{[Pi()]:["disabling","alloy.base.behaviour","collection-events"],[yi()]:["collection-events","tooltipping"]}});var u;return yO(o,c,["tox-form__group--collection"],[])},MO=Pe("color-input-change"),NO=Pe("color-swatch-change"),PO=Pe("color-picker-cancel"),RO=()=>Ff.config({find:I.some}),FO=e=>Ff.config({find:t=>bn(t.element,e).bind(e=>t.getSystem().getByDom(e).toOptional())}),VO=va([Xa("preprocess",A),Xa("postprocess",A)]),zO=(e,t)=>{const n=Ta("RepresentingConfigs.memento processors",VO,t);return Yg.config({store:{mode:"manual",getValue:t=>{const o=e.get(t),r=Yg.getValue(o);return n.postprocess(r)},setValue:(t,o)=>{const r=n.preprocess(o),a=e.get(t);Yg.setValue(a,r)}}})},UO=(e,t,n)=>Yg.config({store:{mode:"manual",...e.map(e=>({initialValue:e})).getOr({}),getValue:t,setValue:n}}),jO=(e,t,n)=>UO(e,e=>t(e.element),(e,t)=>n(e.element,t)),HO=e=>Yg.config({store:{mode:"memory",initialValue:e}}),qO=Pe("rgb-hex-update"),GO=Pe("slider-update"),KO=Pe("palette-update"),ZO=Pe("valid-input"),WO=Pe("invalid-input"),$O=Pe("validating-input"),YO="colorcustom.rgb.",JO={isEnabled:T,setEnabled:b,immediatelyShow:b,immediatelyHide:b},XO=(e,t,n,o,r,a)=>{const i=(e,t)=>{const n=t.get();e!==n.isEnabled()&&(n.setEnabled(e),e?n.immediatelyShow():n.immediatelyHide())},l=(n,o,r)=>Jg.config({invalidClass:t("invalid"),notify:{onValidate:e=>{Nc(e,$O,{type:n})},onValid:e=>{i(!1,r),Nc(e,ZO,{type:n,value:Yg.getValue(e)})},onInvalid:e=>{i(!0,r),Nc(e,WO,{type:n,value:Yg.getValue(e)})}},validator:{validate:t=>{const n=Yg.getValue(t),r=o(n)?Ie.value(!0):Ie.error(e("aria.input.invalid"));return Ee(r)},validateOnLoad:!1}}),s=(n,o,i,s,c)=>{const u=_e(JO),d=e(YO+"range"),p=jy.parts.label({dom:{tag:"label"},components:[Ef(i)]}),f=jy.parts.field({data:c,factory:Qy,inputAttributes:{type:"text","aria-label":s,..."hex"===o?{"aria-live":"polite"}:{}},inputClasses:[t("textfield")],inputBehaviours:au([l(o,n,u),Ub.config({}),lv.config({...r({tooltipText:"",onSetup:e=>{u.set({isEnabled:()=>lv.isEnabled(e),setEnabled:t=>lv.setEnabled(e,t),immediatelyShow:()=>lv.immediateOpenClose(e,!0),immediatelyHide:()=>lv.immediateOpenClose(e,!1)}),lv.setEnabled(e,!1)},onShow:(n,r)=>{lv.setComponents(n,[{dom:{tag:"p",classes:[t("rgb-warning-note")]},components:[Ef(e("hex"===o?"colorcustom.rgb.invalidHex":"colorcustom.rgb.invalid"))]}])}})})]),onSetValue:e=>{Jg.isInvalid(e)&&Jg.run(e).get(b)}}),m=Pe("aria-invalid"),g=uv(a("invalid",I.some(m),"warning")),h=[p,f,uv({dom:{tag:"div",classes:[t("invalid-icon")]},components:[g.asSpec()]}).asSpec()],v="hex"!==o?[jy.parts["aria-descriptor"]({text:d})]:[],y=h.concat(v);return{dom:{tag:"div",attributes:{role:"presentation"},classes:[t("rgb-container")]},components:y}},c=(e,t)=>{const n=t.red,o=t.green,r=t.blue;Yg.setValue(e,{red:n,green:o,blue:r})},u=uv({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),d=(e,t)=>{u.getOpt(e).each(e=>{co(e.element,"background-color","#"+t.value)})},p=rg({factory:()=>{const r={red:_e(I.some(255)),green:_e(I.some(255)),blue:_e(I.some(255)),hex:_e(I.some("ffffff"))},a=e=>r[e].get(),i=(e,t)=>{r[e].set(t)},l=e=>{const t=e.red,n=e.green,o=e.blue;i("red",I.some(t)),i("green",I.some(n)),i("blue",I.some(o))},p=(e,t)=>{const n=t.event;"hex"!==n.type?i(n.type,I.none()):o(e)},f=(e,t)=>{const o=t.event;(e=>"hex"===e.type)(o)?((e,t)=>{n(e);const o=GI(t);i("hex",I.some(o.value));const r=sB(o);c(e,r),l(r),Nc(e,qO,{hex:o}),d(e,o)})(e,o.value):((e,t,n)=>{const o=parseInt(n,10);i(t,I.some(o)),a("red").bind(e=>a("green").bind(t=>a("blue").map(n=>aB(e,t,n,1)))).each(t=>{const n=((e,t)=>{const n=JI(t);return Iy.getField(e,"hex").each(t=>{hu.isFocused(t)||Yg.setValue(e,{hex:n.value})}),n})(e,t);Nc(e,qO,{hex:n}),d(e,n)})})(e,o.type,o.value)},m=t=>({label:e(YO+t+".label"),description:e(YO+t+".description")}),g=m("red"),h=m("green"),b=m("blue"),v=m("hex");return Fe(Iy.sketch(n=>({dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",jy.sketch(s(iB,"red",g.label,g.description,255))),n.field("green",jy.sketch(s(iB,"green",h.label,h.description,255))),n.field("blue",jy.sketch(s(iB,"blue",b.label,b.description,255))),n.field("hex",jy.sketch(s(WI,"hex",v.label,v.description,"ffffff"))),u.asSpec()],formBehaviours:au([Jg.config({invalidClass:t("form-invalid")}),du("rgb-form-events",[Hc(ZO,f),Hc(WO,p),Hc($O,p)])])})),{apis:{updateHex:(e,t)=>{Yg.setValue(e,{hex:t.value}),((e,t)=>{const n=sB(t);c(e,n),l(n)})(e,t),d(e,t)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(e,t,n)=>{e.updateHex(t,n)}},extraApis:{}});return p},QO=(e,t,n,o)=>{const r=rg({name:"ColourPicker",configFields:[Na("dom"),Xa("onValidHex",b),Xa("onInvalidHex",b)],factory:r=>{const a=XO(e,t,r.onValidHex,r.onInvalidHex,n,o),i=((e,t)=>{const n=UA.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),o=UA.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:`<div class=${t("sv-palette-inner-thumb")} role="presentation"></div>`}}),r=(e,t)=>{const{width:n,height:o}=e,r=e.getContext("2d");if(null===r)return;r.fillStyle=t,r.fillRect(0,0,n,o);const a=r.createLinearGradient(0,0,n,0);a.addColorStop(0,"rgba(255,255,255,1)"),a.addColorStop(1,"rgba(255,255,255,0)"),r.fillStyle=a,r.fillRect(0,0,n,o);const i=r.createLinearGradient(0,0,0,o);i.addColorStop(0,"rgba(0,0,0,0)"),i.addColorStop(1,"rgba(0,0,0,1)"),r.fillStyle=i,r.fillRect(0,0,n,o)},a=rg({factory:a=>{const i=_({x:0,y:0}),l=au([Ff.config({find:I.some}),hu.config({})]);return UA.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":e(["Saturation {0}%, Brightness {1}%",0,0])},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:i},rounded:!1,components:[n,o],onChange:(t,n,o)=>{g(o)||Gn(t.element,"aria-valuetext",e(["Saturation {0}%, Brightness {1}%",Math.floor(o.x),Math.floor(100-o.y)])),Nc(t,KO,{value:o})},onInit:(e,t,n,o)=>{r(n.element.dom,dB(pB))},sliderBehaviours:l})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(e,t,n)=>{((e,t)=>{const n=e.components()[0].element.dom,o=XI(t,100,100),a=lB(o);r(n,dB(a))})(t,n)},setThumb:(t,n,o)=>{((t,n)=>{const o=QI(sB(n));UA.setValue(t,{x:o.saturation,y:100-o.value}),Gn(t.element,"aria-valuetext",e(["Saturation {0}%, Brightness {1}%",o.saturation,o.value]))})(n,o)}},extraApis:{}});return a})(e,t),l={paletteRgba:_e(pB),paletteHue:_e(0)},s=uv(((e,t)=>{const n=UA.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),o=UA.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return UA.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:_(0)},components:[n,o],sliderBehaviours:au([hu.config({})]),onChange:(e,t,n)=>{Gn(e.element,"aria-valuenow",Math.floor(360-3.6*n)),Nc(e,GO,{value:n})}})})(0,t)),c=uv(i.sketch({})),u=uv(a.sketch({})),d=(e,t,n)=>{c.getOpt(e).each(e=>{i.setHue(e,n)})},p=(e,t)=>{u.getOpt(e).each(e=>{a.updateHex(e,t)})},f=(e,t,n)=>{s.getOpt(e).each(e=>{UA.setValue(e,(e=>100-e/360*100)(n))})},m=(e,t)=>{c.getOpt(e).each(e=>{i.setThumb(e,t)})},h=(e,t,n,o)=>{((e,t)=>{const n=sB(e);l.paletteRgba.set(n),l.paletteHue.set(t)})(t,n),V(o,o=>{o(e,t,n)})};return{uid:r.uid,dom:r.dom,components:[c.asSpec(),s.asSpec(),u.asSpec()],behaviours:au([du("colour-picker-events",[Hc(qO,(()=>{const e=[d,f,m];return(t,n)=>{const o=n.event.hex,r=(e=>QI(sB(e)))(o);h(t,o,r.hue,e)}})()),Hc(KO,(()=>{const e=[p];return(t,n)=>{const o=n.event.value,r=l.paletteHue.get(),a=XI(r,o.x,100-o.y),i=fB(a);h(t,i,r,e)}})()),Hc(GO,(()=>{const e=[d,p];return(t,n)=>{const o=(e=>(100-e)/100*360)(n.event.value),r=l.paletteRgba.get(),a=QI(r),i=XI(o,a.saturation,a.value),s=fB(i);h(t,s,o,e)}})())]),Ff.config({find:e=>u.getOpt(e)}),Ap.config({mode:"acyclic"})])}}});return r},eL={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red channel","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green channel","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue channel","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.rgb.invalid":"Numbers only, 0 to 255","colorcustom.rgb.invalidHex":"Hexadecimal only, 000000 to FFFFFF","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"};var tL=tinymce.util.Tools.resolve("tinymce.Resource");const nL=e=>be(e,"init");var oL=tinymce.util.Tools.resolve("tinymce.util.Tools");const rL=Pe("browse.files.event"),aL=(e,t,n)=>{const o=(e,t)=>{t.stop()},r=e=>(t,n)=>{V(e,e=>{e(t,n)})},a=uv({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:au([du("input-file-events",[Wc(Ci()),Wc(Fi())])])}),i=e.label.map(e=>kO(e,t)),l=jy.parts.field({factory:Ev,dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[Ef(t.translate("Browse for an image")),a.asSpec()],action:e=>{a.get(e).element.dom.click()},buttonBehaviours:au([RO(),HO(n.getOr([])),Ub.config({}),dI(()=>t.checkUiComponentContext(e.context).shouldDisable),wI(()=>t.checkUiComponentContext(e.context))])}),s={dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:au([nm.config({disabled:()=>t.checkUiComponentContext(e.context).shouldDisable}),wI(()=>t.checkUiComponentContext(e.context)),$b.config({toggleClass:"dragenter",toggleOnExecute:!1}),du("dropzone-events",[Hc("dragenter",r([o,$b.toggle])),Hc("dragleave",r([o,$b.toggle])),Hc("dragover",o),Hc("drop",r([o,(e,t)=>{var n;if(!nm.isDisabled(e)){const o=t.event.raw;Nc(e,rL,{files:null===(n=o.dataTransfer)||void 0===n?void 0:n.files})}}])),Hc(wi(),(e,t)=>{const n=t.event.raw.target;Nc(e,rL,{files:n.files})})])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[Ef(t.translate("Drop an image here"))]},l]}]};return yO(i,s,["tox-form__group--stretched"],[du("handle-files",[Hc(rL,(n,o)=>{jy.getField(n).each(n=>{var r,a;r=n,(a=o.event.files)&&(Yg.setValue(r,((e,t)=>{const n=oL.explode(t.getOption("images_file_types"));return U(oe(e),e=>N(n,t=>Qe(e.name.toLowerCase(),`.${t.toLowerCase()}`)))})(a,t)),Nc(r,xO,{name:e.name}))})})])])},iL=Pe("alloy-fake-before-tabstop"),lL=Pe("alloy-fake-after-tabstop"),sL=e=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:au([hu.config({ignore:!0}),Ub.config({})])}),cL=(e,t)=>({dom:{tag:"div",classes:["tox-navobj",...e.getOr([])]},components:[sL([iL]),t,sL([lL])],behaviours:au([FO(1)])}),uL=(e,t)=>{Nc(e,Ai(),{raw:{which:9,shiftKey:t}})},dL=(e,t)=>{const n=t.element;ar(n,iL)?uL(e,!0):ar(n,lL)&&uL(e,!1)},pL=e=>mr(e,["."+iL,"."+lL].join(","),S),fL=Pe("update-dialog"),mL=Pe("update-title"),gL=Pe("update-body"),hL=Pe("update-footer"),bL=Pe("body-send-message"),vL=Pe("dialog-focus-shifted"),yL=Jt().browser,_L=yL.isSafari(),AL=yL.isFirefox(),kL=_L||AL,xL=yL.isChromium(),wL=({scrollTop:e,scrollHeight:t,clientHeight:n})=>Math.ceil(e)+n>=t,CL=(e,t)=>e.scrollTo(0,"bottom"===t?99999999:t),EL=(e,t,n)=>{const o=e.dom;I.from(o.contentDocument).fold(n,e=>{let n=0;const r=((e,t)=>{const n=e.body;return I.from(!/^<!DOCTYPE (html|HTML)/.test(t)&&(!xL&&!_L||f(n)&&(0!==n.scrollTop||Math.abs(n.scrollHeight-n.clientHeight)>1))?n:e.documentElement)})(e,t).map(e=>(n=e.scrollTop,e)).forall(wL),a=()=>{const e=o.contentWindow;f(e)&&(r?CL(e,"bottom"):!r&&kL&&0!==n&&CL(e,n))};_L&&o.addEventListener("load",a,{once:!0}),e.open(),e.write(t),e.close(),_L||a()})},SL=qe(kL,_L?500:200).map(e=>((e,t)=>{let n=null,o=null;return{cancel:()=>{c(n)||(clearTimeout(n),n=null,o=null)},throttle:(...r)=>{o=r,c(n)&&(n=setTimeout(()=>{const t=o;n=null,o=null,e.apply(null,t)},t))}}})(EL,e)),TL=Pe("toolbar.button.execute"),IL=Pe("common-button-display-events"),BL={[Pi()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[Zi()]:["toolbar-button-events",IL],[Wi()]:["toolbar-button-events","dropdown-events","tooltipping"],[mi()]:["focusing","alloy.base.behaviour",IL]},OL=e=>co(e.element,"width",fo(e.element,"width")),LL=(e,t,n)=>uC(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t),DL=(e,t)=>LL(e,t,[]),ML=(e,t)=>LL(e,t,[Qp.config({})]),NL=(e,t,n)=>({dom:{tag:"span",classes:[`${t}__select-label`]},components:[Ef(n.translate(e))],behaviours:au([Qp.config({})])}),PL=Pe("update-menu-text"),RL=Pe("update-menu-icon"),FL=Pe("update-tooltip-text"),VL=(e,t,n,o)=>{const r=_e(b),a=_e(e.tooltip),i=e.text.map(e=>uv(NL(e,t,n.providers))),l=e.icon.map(e=>uv(ML(e,n.providers.icons))),s=(e,t)=>{const n=Yg.getValue(e);return hu.focus(n),Nc(n,"keydown",{raw:t.event.raw}),wy.close(n),I.some(!0)},c=e.role.fold(()=>({}),e=>({role:e})),u=I.from(e.listRole).map(e=>({listRole:e})).getOr({}),d=e.ariaLabel.fold(()=>({}),e=>({"aria-label":n.providers.translate(e)})),p=uC("chevron-down",{tag:"div",classes:[`${t}__select-chevron`]},n.providers.icons),m=Pe("common-button-display-events"),g="dropdown-events",h=uv(wy.sketch({...e.uid?{uid:e.uid}:{},...c,...u,dom:{tag:"button",classes:[t,`${t}--select`].concat(F(e.classes,e=>`${t}--${e}`)),attributes:{...d,...f(o)?{"data-mce-name":o}:{}}},components:SI([l.map(e=>e.asSpec()),i.map(e=>e.asSpec()),I.some(p)]),matchWidth:!0,useMinWidth:!0,onOpen:(t,n,o)=>{e.searchable&&(e=>{FC(e).each(e=>hu.focus(e))})(o)},dropdownBehaviours:au([...e.dropdownBehaviours,dI(()=>e.disabled||n.providers.checkUiComponentContext(e.context).shouldDisable),wI(()=>n.providers.checkUiComponentContext(e.context)),sv.config({}),Qp.config({}),...e.tooltip.map(t=>lv.config(n.providers.tooltips.getConfig({tooltipText:n.providers.translate(t),onShow:t=>{if(je(a.get(),e.tooltip,(e,t)=>t!==e).getOr(!1)){const e=n.providers.translate(a.get().getOr(""));lv.setComponents(t,n.providers.tooltips.getComponents({tooltipText:e}))}}}))).toArray(),du(g,[gI(e,r),hI(e,r)]),du(m,[Jc((t,n)=>{"listbox"!==e.listRole&&OL(t)})]),du("update-dropdown-width-variable",[Hc(Ki(),(e,t)=>wy.close(e))]),du("menubutton-update-display-text",[Hc(PL,(e,t)=>{i.bind(t=>t.getOpt(e)).each(e=>{Qp.set(e,[Ef(n.providers.translate(t.event.text))])})}),Hc(RL,(e,t)=>{l.bind(t=>t.getOpt(e)).each(e=>{Qp.set(e,[ML(t.event.icon,n.providers.icons)])})}),Hc(FL,(e,t)=>{const o=n.providers.translate(t.event.text);Gn(e.element,"aria-label",o),a.set(I.some(t.event.text))})])]),eventOrder:Fe(BL,{[mi()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[Zi()]:["toolbar-button-events",lv.name(),g,m]}),sandboxBehaviours:au([Ap.config({mode:"special",onLeft:s,onRight:s}),du("dropdown-sandbox-events",[Hc(MC,(e,t)=>{(e=>{const t=Yg.getValue(e),n=RC(e).map(VC);wy.refetch(t).get(()=>{const e=jf.getCoupled(t,"sandbox");n.each(t=>RC(e).each(e=>((e,t)=>{Yg.setValue(e,t.fetchPattern),e.element.dom.selectionStart=t.selectionStart,e.element.dom.selectionEnd=t.selectionEnd})(e,t)))})})(e),t.stop()}),Hc(NC,(e,t)=>{((e,t)=>{(e=>bb.getState(e).bind(Gu.getHighlighted).bind(Gu.getHighlighted))(e).each(n=>{((e,t,n,o)=>{const r={...o,target:t};e.getSystem().triggerEvent(n,t,r)})(e,n.element,t.event.eventType,t.event.interactionEvent)})})(e,t),t.stop()})])]),lazySink:n.getSink,toggleClass:`${t}--active`,parts:{menu:{...DC(0,e.columns,e.presets),fakeFocus:e.searchable,..."listbox"===e.listRole?{}:{onHighlightItem:sO,onCollapseMenu:(e,t,n)=>{Gu.getHighlighted(n).each(t=>{sO(e,n,t)})},onDehighlightItem:cO}}},getAnchorOverrides:()=>({maxHeightFunction:(e,t)=>{xc()(e,t-10)}}),fetch:t=>Ce(x(e.fetch,t))}));return h.asSpec()},zL=e=>"separator"===e.type,UL={type:"separator"},jL=(e,t)=>{const n=((e,t)=>{const n=H(e,(e,n)=>(e=>a(e))(n)?""===n?e:"|"===n?e.length>0&&!zL(e[e.length-1])?e.concat([UL]):e:be(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n]),[]);return n.length>0&&zL(n[n.length-1])&&n.pop(),n})(a(e)?e.split(" "):e,t);return j(n,(e,n)=>{if((e=>be(e,"getSubmenuItems"))(n)){const o=(e=>{const t=he(e,"value").getOrThunk(()=>Pe("generated-menu-item"));return Fe({value:t},e)})(n),r=((e,t)=>{const n=e.getSubmenuItems(),o=jL(n,t);return{item:e,menus:Fe(o.menus,{[e.value]:o.items}),expansions:Fe(o.expansions,{[e.value]:e.value})}})(o,t);return{menus:Fe(e.menus,r.menus),items:[r.item,...e.items],expansions:Fe(e.expansions,r.expansions)}}return{...e,items:[n,...e.items]}},{menus:{},expansions:{},items:[]})},HL=(e,t,n,o)=>{const r=Pe("primary-menu"),a=jL(e,n.shared.providers.menuItems());if(0===a.items.length)return I.none();const i=(e=>e.search.fold(()=>({searchMode:"no-search"}),e=>({searchMode:"search-with-field",placeholder:e.placeholder})))(o),l=mO(r,a.items,t,n,o.isHorizontalMenu,i),s=(e=>e.search.fold(()=>({searchMode:"no-search"}),e=>({searchMode:"search-with-results"})))(o),c=se(a.menus,(e,o)=>mO(o,e,t,n,!1,s)),u=Fe(c,li(r,l));return I.from(iy.tieredData(r,u,a.expansions))},qL=e=>!be(e,"items"),GL="data-value",KL=(e,t,n,o,r)=>F(n,n=>qL(n)?{type:"togglemenuitem",...r?{}:{role:"option"},text:n.text,value:n.value,active:n.value===o,onAction:()=>{Yg.setValue(e,n.value),Nc(e,xO,{name:t}),hu.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:()=>KL(e,t,n.items,o,r)}),ZL=(e,t)=>re(e,e=>qL(e)?qe(e.value===t,e):ZL(e.items,t)),WL=e=>{const t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4};let n=e.value.toFixed((o=e.unit)in t?t[o]:1);var o;return-1!==n.indexOf(".")&&(n=n.replace(/\.?0*$/,"")),n+e.unit},$L=e=>{const t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(e);if(null!==t){const e=parseFloat(t[1]),n=t[2];return Ie.value({value:e,unit:n})}return Ie.error(e)},YL=(e,t)=>{const n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},o=e=>be(n,e);return e.unit===t?I.some(e.value):o(e.unit)&&o(t)?n[e.unit]===n[t]?I.some(e.value):I.some(e.value/n[e.unit]*n[t]):I.none()},JL=e=>I.none(),XL=(e,t)=>{const n=$L(e).toOptional(),o=$L(t).toOptional();return je(n,o,(e,t)=>YL(e,t.unit).map(e=>t.value/e).map(e=>{return n=e,o=t.unit,e=>YL(e,o).map(e=>({value:e*n,unit:o}));var n,o}).getOr(JL)).getOr(JL)},QL=(e,t)=>{const n=e.label.map(e=>kO(e,t)),o=[nm.config({disabled:()=>e.disabled||t.checkUiComponentContext(e.context).shouldDisable}),wI(()=>t.checkUiComponentContext(e.context)),Ap.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:e=>(Mc(e,TO),I.some(!0))}),du("textfield-change",[Hc(xi(),(t,n)=>{Nc(t,xO,{name:e.name})}),Hc(Mi(),(t,n)=>{Nc(t,xO,{name:e.name})})]),Ub.config({})],r=e.validation.map(e=>Jg.config({getRoot:e=>mn(e.element),invalidClass:"tox-invalid",validator:{validate:t=>{const n=Yg.getValue(t),o=e.validator(n);return Ee(!0===o?Ie.value(n):Ie.error(o))},validateOnLoad:e.validateOnLoad}})).toArray(),a={...e.placeholder.fold(_({}),e=>({placeholder:t.translate(e)})),...e.inputMode.fold(_({}),e=>({inputmode:e})),"data-mce-name":e.name},i=jy.parts.field({tag:!0===e.multiline?"textarea":"input",...e.data.map(e=>({data:e})).getOr({}),inputAttributes:a,inputClasses:[e.classname],inputBehaviours:au(K([o,r])),selectOnFocus:!1,factory:Qy}),l=e.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[i]}:i,s=(e.flex?["tox-form__group--stretched"]:[]).concat(e.maximized?["tox-form-group--maximize"]:[]),c=[nm.config({disabled:()=>e.disabled||t.checkUiComponentContext(e.context).shouldDisable,onDisabled:e=>{jy.getField(e).each(nm.disable)},onEnabled:e=>{jy.getField(e).each(nm.enable)}}),wI(()=>t.checkUiComponentContext(e.context))];return yO(n,l,s,c)},eD=e=>({isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t),setActive:t=>{const n=e.element;t?(nr(n,"tox-tbtn--enabled"),Gn(n,"aria-pressed",!0)):(rr(n,"tox-tbtn--enabled"),Yn(n,"aria-pressed"))},isActive:()=>ar(e.element,"tox-tbtn--enabled"),setTooltip:t=>{Nc(e,FL,{text:t})},setText:t=>{Nc(e,PL,{text:t})},setIcon:t=>Nc(e,RL,{icon:t})}),tD=(e,t,n,o,r=!0,a)=>{const i="bordered"===e.buttonType?["bordered"]:[];return VL({text:e.text,icon:e.icon,tooltip:e.tooltip,ariaLabel:e.tooltip,searchable:e.search.isSome(),role:o,fetch:(t,o)=>{const r={pattern:e.search.isSome()?uO(t):""};e.fetch(t=>{o(HL(t,gC.CLOSE_ON_EXECUTE,n,{isHorizontalMenu:!1,search:e.search}))},r,eD(t))},onSetup:e.onSetup,getApi:e=>eD(e),columns:1,presets:"normal",classes:i,dropdownBehaviours:[...r?[Ub.config({})]:[]],context:e.context},t,n.shared,a)},nD=(e,t,n)=>{const o=e=>o=>{const r=!o.isActive();o.setActive(r),e.storage.set(r),n.shared.getSink().each(n=>{t().getOpt(n).each(t=>{Mn(t.element),Nc(t,SO,{name:e.name,value:e.storage.get()})})})},r=e=>t=>{t.setActive(e.storage.get())};return t=>{t(F(e,e=>{const t=e.text.fold(()=>({}),e=>({text:e}));return{type:e.type,active:!1,...t,context:e.context,onAction:o(e),onSetup:r(e)}}))}},oD=e=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":e}},components:[Ef(e)]}),rD=(e,t,n)=>{e.customStateIcon.each(o=>t.push(lD(o,n.shared.providers.icons,e.customStateIconTooltip.fold(()=>[],e=>[lv.config(n.shared.providers.tooltips.getConfig({tooltipText:e}))]),["tox-icon-custom-state"])))},aD=Pe("leaf-label-event-id"),iD=({leaf:e,onLeafAction:t,visible:n,treeId:o,selectedId:r,backstage:a})=>{const i=e.menu.map(e=>tD(e,"tox-mbtn",a,I.none(),n)),l=[oD(e.title)];return rD(e,l,a),i.each(e=>l.push(e)),Ev.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(n?["tox-tree--leaf__label--visible"]:[])},components:l,role:"treeitem",action:n=>{t(e.id),n.getSystem().broadcastOn([`update-active-item-${o}`],{value:e.id})},eventOrder:{[Ai()]:[aD,"keying"]},buttonBehaviours:au([...n?[Ub.config({})]:[],$b.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),nb.config({channels:{[`update-active-item-${o}`]:{onReceive:(t,n)=>{(n.value===e.id?$b.on:$b.off)(t)}}}}),du(aD,[Jc((t,n)=>{r.each(n=>{(n===e.id?$b.on:$b.off)(t)})}),Hc(Ai(),(e,t)=>{const n="ArrowLeft"===t.event.raw.code,o="ArrowRight"===t.event.raw.code;n?(Go(e.element,".tox-tree--directory").each(t=>{e.getSystem().getByDom(t).each(e=>{Zo(t,".tox-tree--directory__label").each(t=>{e.getSystem().getByDom(t).each(hu.focus)})})}),t.stop()):o&&t.stop()})])])})},lD=(e,t,n,o,r)=>uC(e,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"].concat(o||[]),behaviours:n,attributes:r},t),sD=Pe("directory-label-event-id"),cD=({directory:e,visible:t,noChildren:n,backstage:o})=>{const r=e.menu.map(e=>tD(e,"tox-mbtn",o,I.none())),a=[{dom:{tag:"div",classes:["tox-chevron"]},components:[(i=o.shared.providers.icons,lD("chevron-right",i,[]))]},oD(e.title)];var i;rD(e,a,o),r.each(e=>{a.push(e)});const l=t=>{Go(t.element,".tox-tree--directory").each(n=>{t.getSystem().getByDom(n).each(n=>{const o=!$b.isOn(n);$b.toggle(n),Nc(t,"expand-tree-node",{expanded:o,node:e.id})})})};return Ev.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(t?["tox-tree--directory__label--visible"]:[])},components:a,action:l,eventOrder:{[Ai()]:[sD,"keying"]},buttonBehaviours:au([...t?[Ub.config({})]:[],du(sD,[Hc(Ai(),(e,t)=>{const o="ArrowRight"===t.event.raw.code,r="ArrowLeft"===t.event.raw.code;o&&n&&t.stop(),(o||r)&&Go(e.element,".tox-tree--directory").each(n=>{e.getSystem().getByDom(n).each(n=>{!$b.isOn(n)&&o||$b.isOn(n)&&r?(l(e),t.stop()):r&&!$b.isOn(n)&&(Go(n.element,".tox-tree--directory").each(e=>{Zo(e,".tox-tree--directory__label").each(e=>{n.getSystem().getByDom(e).each(hu.focus)})}),t.stop())})})})])])})},uD=({children:e,onLeafAction:t,visible:n,treeId:o,expandedIds:r,selectedId:a,backstage:i})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:e.map(e=>"leaf"===e.type?iD({leaf:e,selectedId:a,onLeafAction:t,visible:n,treeId:o,backstage:i}):pD({directory:e,expandedIds:r,selectedId:a,onLeafAction:t,labelTabstopping:n,treeId:o,backstage:i})),behaviours:au([Db.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:n}),Qp.config({})])}),dD=Pe("directory-event-id"),pD=({directory:e,onLeafAction:t,labelTabstopping:n,treeId:o,backstage:r,expandedIds:a,selectedId:i})=>{const{children:l}=e,s=_e(a),c=a.includes(e.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[cD({directory:e,visible:n,noChildren:0===e.children.length,backstage:r}),uD({children:l,expandedIds:a,selectedId:i,onLeafAction:t,visible:c,treeId:o,backstage:r})],behaviours:au([du(dD,[Jc((e,t)=>{$b.set(e,c)}),Hc("expand-tree-node",(e,t)=>{const{expanded:n,node:o}=t.event;s.set(n?[...s.get(),o]:s.get().filter(e=>e!==o))})]),$b.config({...e.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(e,n)=>{const a=e.components()[1],c=(u=n,l.map(e=>"leaf"===e.type?iD({leaf:e,selectedId:i,onLeafAction:t,visible:u,treeId:o,backstage:r}):pD({directory:e,expandedIds:s.get(),selectedId:i,onLeafAction:t,labelTabstopping:u,treeId:o,backstage:r})));var u;n?Db.grow(a):Db.shrink(a),Qp.set(a,c)}})])}},fD=Pe("tree-event-id"),mD=(e,t,n=[],o,r,a,i)=>{const l=t.fold(()=>({}),e=>({action:e})),s={buttonBehaviours:au([uI(()=>!e.enabled||i.checkUiComponentContext(e.context).shouldDisable),wI(()=>i.checkUiComponentContext(e.context)),Ub.config({}),...a.map(e=>lv.config(i.tooltips.getConfig({tooltipText:i.translate(e)}
vendor: 4,304 bytes, line 2
2))).toArray(),du("button press",[jc("click")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...l},c=Fe(s,{dom:o});return Fe(c,{components:r})},gD=(e,t,n,o=[],r)=>{const a={tag:"button",classes:["tox-tbtn"],attributes:{...e.tooltip.map(e=>({"aria-label":n.translate(e)})).getOr({}),"data-mce-name":r}},i=e.icon.map(e=>DL(e,n.icons)),l=SI([i]);return mD(e,t,o,a,l,e.tooltip,n)},hD=e=>{switch(e){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];default:return["tox-button","tox-button--secondary"]}},bD=(e,t,n,o=[],r=[])=>{const a=n.translate(e.text),i=e.icon.map(e=>DL(e,n.icons)),l=[i.getOrThunk(()=>Ef(a))],s=e.buttonType.getOr(e.primary||e.borderless?"primary":"secondary"),c={tag:"button",classes:[...hD(s),...i.isSome()?["tox-button--icon"]:[],...e.borderless?["tox-button--naked"]:[],...r],attributes:{"aria-label":a,"data-mce-name":e.text}},u=e.icon.map(_(a));return mD(e,t,o,c,l,u,n)},vD=(e,t,n,o=[],r=[])=>{const a=bD(e,I.some(t),n,o,r);return Ev.sketch(a)},yD=(e,t)=>n=>{"custom"===t?Nc(n,SO,{name:e,value:{}}):"submit"===t?Mc(n,TO):"cancel"===t?Mc(n,EO):console.error("Unknown button type: ",t)},_D=(e,t,n)=>{if(((e,t)=>"menu"===t)(0,t)){const t=()=>a,o=e,r={...e,buttonType:"default",type:"menubutton",search:I.none(),onSetup:t=>(t.setEnabled(e.enabled),b),fetch:nD(o.items,t,n)},a=uv(tD(r,"tox-tbtn",n,I.none(),!0,e.text.or(e.tooltip).getOrUndefined()));return a.asSpec()}if(((e,t)=>"custom"===t||"cancel"===t||"submit"===t)(0,t)){const o=yD(e.name,t),r={...e,context:"cancel"===t?"any":e.context,borderless:!1};return vD(r,o,n.shared.providers,[])}if(((e,t)=>"togglebutton"===t)(0,t))return((e,t,n)=>{var o,r;const a=e.icon.map(e=>ML(e,t.icons)).map(uv),i=e.buttonType.getOr(e.primary?"primary":"secondary"),l={...e,name:null!==(o=e.name)&&void 0!==o?o:"",primary:"primary"===i,tooltip:e.tooltip,enabled:null!==(r=e.enabled)&&void 0!==r&&r,borderless:!1},s=l.tooltip.or(e.text).map(e=>({"aria-label":t.translate(e)})).getOr({}),c=hD(null!=i?i:"secondary"),u=e.icon.isSome()&&e.text.isSome(),d={tag:"button",classes:[...c.concat(e.icon.isSome()?["tox-button--icon"]:[]),...e.active?["tox-button--enabled"]:[],...u?["tox-button--icon-and-text"]:[]],attributes:{...s,...f(n)?{"data-mce-name":n}:{}}},p=t.translate(e.text.getOr("")),m=Ef(p),g=[...SI([a.map(e=>e.asSpec())]),...e.text.isSome()?[m]:[]],h=mD(l,I.some(n=>{Nc(n,SO,{name:e.name,value:{setIcon:e=>{a.map(o=>o.getOpt(n).each(n=>{Qp.set(n,[ML(e,t.icons)])}))}}})}),[],d,g,e.tooltip,t);return Ev.sketch(h)})(e,n.shared.providers,e.text.or(e.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",t),new Error("Unknown footer button type")},AD={type:"separator"},kD=e=>({type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:b}),xD=(e,t)=>({type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:b}),wD=(e,t)=>(e=>F(e,kD))(((e,t)=>U(t,t=>t.type===e))(e,t)),CD=e=>wD("header",e.targets),ED=e=>wD("anchor",e.targets),SD=e=>I.from(e.anchorTop).map(e=>xD("<top>",e)).toArray(),TD=e=>I.from(e.anchorBottom).map(e=>xD("<bottom>",e)).toArray(),ID=(e,t)=>{const n=e.toLowerCase();return U(t,e=>{var t;const o=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text,r=null!==(t=e.value)&&void 0!==t?t:"";return Je(o.toLowerCase(),n)||Je(r.toLowerCase(),n)})},BD=Pe("aria-invalid"),OD=e=>(t,n,o,r,a)=>he(n,"name").fold(()=>e(n,r,I.none(),a),i=>t.field(i,e(n,r,he(o,i),a))),LD={bar:OD((e,t)=>((e,t)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:F(e.items,t.interpreter)}))(e,t.shared)),collection:OD((e,t,n)=>DO(e,t.shared.providers,n)),alertbanner:OD((e,t)=>((e,t)=>{const n=lC(e.icon,t.icons);return ig.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${e.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:e.url?void 0:n},components:e.url?[Ev.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:n,attributes:{title:t.translate(e.iconTooltip)}},action:t=>Nc(t,SO,{name:"alert-banner",value:e.url}),buttonBehaviours:au([sC()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})}
vendor: 5,094 bytes, line 2
2)(e,t.shared.providers)),input:OD((e,t,n)=>((e,t,n)=>QL({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:!e.enabled,classname:"tox-textfield",validation:I.none(),maximized:e.maximized,data:n,context:e.context},t))(e,t.shared.providers,n)),textarea:OD((e,t,n)=>((e,t,n)=>QL({name:e.name,multiline:!0,label:e.label,inputMode:I.none(),placeholder:e.placeholder,flex:!0,disabled:!e.enabled,classname:"tox-textarea",validation:I.none(),maximized:e.maximized,data:n,context:e.context},t))(e,t.shared.providers,n)),label:OD((e,t,n,o)=>((e,t,n)=>{const o="tox-label",r="center"===e.align?[`${o}--center`]:[],a="end"===e.align?[`${o}--end`]:[],i=uv({dom:{tag:"label",classes:[o,...r,...a]},components:[Ef(t.providers.translate(e.label))]}),l=F(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[i.asSpec(),...l],behaviours:au([RO(),Qp.config({}),(s=I.none(),jO(s,eo,to)),Ap.config({mode:"acyclic"}),du("label",[Jc(t=>{e.for.each(e=>{n(e).each(e=>{i.getOpt(t).each(t=>{var n;const o=null!==(n=Zn(e.element,"id"))&&void 0!==n?n:Pe("form-field");Gn(e.element,"id",o),Gn(t.element,"for",o)})})})})])])};var s})(e,t.shared,o)),iframe:(OM=(e,t,n)=>((e,t,n)=>{const o="tox-dialog__iframe",r=e.transparent?[]:[`${o}--opaque`],a=e.border?["tox-navobj-bordered"]:[],i={...e.label.map(e=>({title:e})).getOr({}),...n.map(e=>({srcdoc:e})).getOr({}),...e.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},l=((e,t)=>{const n=_e(e.getOr(""));return{getValue:e=>n.get(),setValue:(e,o)=>{if(n.get()!==o){const n=e.element,r=()=>Gn(n,"srcdoc",o);t?SL.fold(_(EL),e=>e.throttle)(n,o,r):r()}n.set(o)}}})(n,e.streamContent),s=e.label.map(e=>kO(e,t)),c=jy.parts.field({factory:{sketch:e=>cL(I.from(a),{uid:e.uid,dom:{tag:"iframe",attributes:i,classes:[o,...r]},behaviours:au([Ub.config({}),hu.config({}),UO(n,l.getValue,l.setValue),nb.config({channels:{[vL]:{onReceive:(e,t)=>{t.newFocus.each(t=>{mn(e.element).each(n=>{(_t(e.element,t)?nr:rr)(n,"tox-navobj-bordered-focus")})})}}}})])})}});return yO(s,c,["tox-form__group--stretched"],[])})(e,t.shared.providers,n),(e,t,n,o,r)=>{const a=Fe(t,{source:"dynamic"});return OD(OM)(e,a,n,o,r)}),button:OD((e,t)=>((e,t)=>{const n=yD(e.name,"custom");return o=I.none(),r=jy.parts.field({factory:Ev,...bD(e,I.some(n),t,[HO(""),RO()])}),yO(o,r,[],[]);var o,r})(e,t.shared.providers)),checkbox:OD((e,t,n)=>((e,t,n)=>{const o=e=>(e.element.dom.click(),I.some(!0)),r=jy.parts.field({factory:{sketch:A},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:au([RO(),nm.config({disabled:()=>!e.enabled||t.checkUiComponentContext(e.context).shouldDisable,onDisabled:e=>{mn(e.element).each(e=>nr(e,"tox-checkbox--disabled"))},onEnabled:e=>{mn(e.element).each(e=>rr(e,"tox-checkbox--disabled"))}}),Ub.config({}),hu.config({}),jO(n,Jo,Yo),Ap.config({mode:"special",onEnter:o,onSpace:o,stopSpaceKeyup:!0}),du("checkbox-events",[Hc(wi(),(t,n)=>{Nc(t,xO,{name:e.name})})])])}),a=jy.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[Ef(t.translate(e.label))],behaviours:au([sv.config({})])}),i=e=>uC("checked"===e?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},t.icons),l=uv({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[i("checked"),i("unchecked")]});return jy.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[r,l.asSpec(),a],fieldBehaviours:au([nm.config({disabled:()=>!e.enabled||t.checkUiComponentContext(e.context).shouldDisable}),wI(()=>t.checkUiComponentContext(e.context))])})})(e,t.shared.providers,n)),colorinput:OD((e,t,n)=>((e,t,n,o)=>{const r=jy.parts.field({factory:Qy,inputClasses:["tox-textfield"],data:o,onSetValue:e=>Jg.run(e).get(b),inputBehaviours:au([nm.config({disabled:()=>t.providers.isDisabled()||t.providers.checkUiComponentContext(e.context).shouldDisable}),wI(()=>t.providers.checkUiComponentContext(e.context)),Ub.config({}),Jg.config({invalidClass:"tox-textbox-field-invalid",getRoot:e=>mn(e.element),notify:{onValid:e=>{const t=Yg.getValue(e);Nc(e,MO,{color:t})}},validator:{validateOnLoad:!1,validate:e=>{const t=Yg.getValue(e);if(0===t.length)return Ee(Ie.value(!0));{const e=lt("span");co(e,"background-color",t);const n=go(e,"background-color").fold(()=>Ie.error("blah"),e=>Ie.value(t));return Ee(n)}}}})]),selectOnFocus:!1}),a=e.label.map(e=>kO(e,t.providers)),i=(e,t)=>{Nc(e,NO,{value:t})},l=uv(((e,t)=>wy.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:au([dI(()=>t.providers.isDisabled()||t.providers.checkUiComponentContext(e.context).shouldDisable),wI(()=>t.providers.checkUiComponentContext(e.context)),sv.config({}),Ub.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:n=>Ce(t=>e.fetch(t)).map(o=>I.from(gO(Fe(XB(Pe("menu-value"),o,t=>{e.onItemAction(n,t)},e.columns,e.presets,gC.CLOSE_ON_EXECUTE,S,t.providers),{movement:eO(e.columns,e.presets)})))),parts:{menu:DC(0,0,e.presets)}}))({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("C
2olor swatch")}},layouts:{onRtl:()=>[js,Us,Ks],onLtr:()=>[Us,js,Ks]},components:[],fetch:qB(n.getColors(e.storageKey),e.storageKey,n.hasCustomColors()),columns:n.getColorCols(e.storageKey),presets:"color",onItemAction:(t,o)=>{l.getOpt(t).each(t=>{"custom"===o?n.colorPicker(n=>{n.fold(()=>Mc(t,PO),n=>{i(t,n),SB(e.storageKey,n)})},"#ffffff"):i(t,"remove"===o?"":o)})},context:e.context},t));return jy.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:a.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,l.asSpec()]}]),fieldBehaviours:au([du("form-field-events",[Hc(MO,(t,n)=>{l.getOpt(t).each(e=>{co(e.element,"background-color",n.event.color)}),Nc(t,xO,{name:e.name})}),Hc(NO,(e,t)=>{jy.getField(e).each(n=>{Yg.setValue(n,t.event.value),Ff.getCurrent(e).each(hu.focus)})}),Hc(PO,(e,t)=>{jy.getField(e).each(t=>{Ff.getCurrent(e).each(hu.focus)})})])])})})(e,t.shared,t.colorinput,n)),colorpicker:OD((e,t,n)=>((e,t,n)=>{const o=e=>"tox-"+e,r=QO((e=>t=>a(t)?e.translate(eL[t]):e.translate(t))(t),o,t.tooltips.getConfig,(e,n,o=e,r=e)=>uC(o,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:{title:t.translate(r),"aria-live":"polite",...n.fold(()=>({}),e=>({id:e}))}},t.icons)),i=uv(r.sketch({dom:{tag:"div",classes:[o("color-picker-container")],attributes:{role:"presentation"}},onValidHex:e=>{Nc(e,SO,{name:"hex-valid",value:!0})},onInvalidHex:e=>{Nc(e,SO,{name:"hex-valid",value:!1})}}));return{dom:{tag:"div"},components:[i.asSpec()],behaviours:au([UO(n,e=>{const t=i.get(e);return Ff.getCurrent(t).bind(e=>Yg.getValue(e).hex).map(e=>"#"+Ye(e,"#")).getOr("")},(e,t)=>{const n=I.from(/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/.exec(t)).bind(e=>ee(e,1)),o=i.get(e);Ff.getCurrent(o).fold(()=>{console.log("Can not find form")},e=>{Yg.setValue(e,{hex:n.getOr("")}),Iy.getField(e,"hex").each(e=>{Mc(e,xi())})})}),RO()])}})(0,t.shared.providers,n)),dropzone:OD((e,t,n)=>aL(e,t.shared.providers,n)),grid:OD((e,t)=>((e,t)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${e.columns}col`]},components:F(e.items,t.interpreter)}))(e,t.shared)),listbox:OD((e,t,n)=>((e,t,n)=>{const o=N(e.items,e=>!qL(e)),r=t.shared.providers,a=n.bind(t=>ZL(e.items,t)).orThunk(()=>te(e.items).filter(qL)),i=e.label.map(e=>kO(e,r)),l=jy.parts.field({dom:{},factory:{sketch:n=>VL({context:e.context,uid:n.uid,text:a.map(e=>e.text),icon:I.none(),tooltip:I.none(),role:qe(!o,"combobox"),...o?{}:{listRole:"listbox"},ariaLabel:e.label,fetch:(n,r)=>{const a=KL(n,e.name,e.items,Yg.getValue(n),o);r(HL(a,gC.CLOSE_ON_EXECUTE,t,{isHorizontalMenu:!1,search:I.none()}))},onSetup:_(b),getApi:_({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Ub.config({}),UO(a.map(e=>e.value),e=>Zn(e.element,GL),(t,n)=>{ZL(e.items,n).each(e=>{Gn(t.element,GL,e.value),Nc(t,PL,{text:e.text})})})]},"tox-listbox",t.shared)}}),s={dom:{tag:"div",classes:["tox-listboxfield"]},components:[l]};return jy.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:K([i.toArray(),[s]]),fieldBehaviours:au([nm.config({disabled:()=>!e.enabled||r.checkUiComponentContext(e.context).shouldDisable,onDisabled:e=>{jy.getField(e).each(nm.disable)},onEnabled:e=>{jy.getField(e).each(nm.enable)}})])})})(e,t,n)),selectbox:OD((e,t,n)=>((e,t,n)=>{const o=F(e.items,e=>({text:t.translate(e.text),value:e.value})),r=e.label.map(e=>kO(e,t)),a=jy.parts.field({dom:{},...n.map(e=>({data:e})).getOr({}),selectAttributes:{size:e.size},options:o,factory:Zy,selectBehaviours:au([nm.config({disabled:()=>!e.enabled||t.checkUiComponentContext(e.context).shouldDisable}),Ub.config({}),du("selectbox-change",[Hc(wi(),(t,n)=>{Nc(t,xO,{name:e.name})})])])}),i=e.size>1?I.none():I.some(uC("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},t.icons)),l={dom:{tag:"div",classes:["tox-selectfield"]},components:K([[a],i.toArray()])};return jy.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:K([r.toArray(),[l]]),fieldBehaviours:au([nm.config({disabled:()=>!e.enabled||t.checkUiComponentContext(e.context).shouldDisable,onDisabled:e=>{jy.getField(e).each(nm.disable)},onEnabled:e=>{jy.getField(e).each(nm.enable)}}),wI(()=>t.checkUiComponentContext(e.context))])})})(e,t.shared.providers,n)),sizeinput:OD((e,t)=>((e,t)=>{let n=JL;const o=Pe("ratio-event"),r=e=>uC(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons),a=()=>!e.enabled||t.checkUiComponentContext(e.context).shouldDisable,i=wI(()=>t.checkUiComponentContext(e.context)),l=e.label.getOr("Constrain proportions"),s=t.translate(l),c=Ky.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":s,"data-mce-name":l}},components:[r("lock"),r("unlock")],buttonBehaviours:au([nm.config({disabled:a}),i,Ub.config({}),lv.config(t.tooltips.getConfig({tooltipText:s}))])}),u=e=>({dom:{tag:"div",classes:["tox-form__group"]},components:e}),d=t=>jy.parts.field({factory:Qy,inputClasses:["tox-textfield"],inputBehaviours:au([nm.config({disabled:a}),i,Ub.config({}),du("size-input-events",[Hc(yi(),(e,n)=>{Nc(e,o,{isField1:t})}),Hc(wi(),(t,n)=>{Nc(t,xO,{name:e.name})})])]),selectOnFocus:!1}),p=e=>({dom:{tag:"label",classes:["tox-label"]},components:[Ef(t.translate(e))]}),f=Ky.parts.field1(u([jy.parts.label(p("Width")),d(!0)])),m=Ky.parts.field2(u([jy.parts.label(p("Height")),d(!1)]));return Ky.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[f,m,u([p("Â "),c])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(e,t,o)=>{$L(Yg.getValue(e)).each(e=>{n(e).each(e=>{Yg.setValue(t,WL(e))})})},coupledFieldBehaviours:au([nm.config({disabled:a,onDisabled:e=>{Ky.getField1(e).bind(jy.getField).each(nm.disable),Ky.getField2(e).bind(jy.getField).each(nm.disable),Ky.getL
vendor: 11,603 bytes, line 2
2ock(e).each(nm.disable)},onEnabled:e=>{Ky.getField1(e).bind(jy.getField).each(nm.enable),Ky.getField2(e).bind(jy.getField).each(nm.enable),Ky.getLock(e).each(nm.enable)}}),wI(()=>t.checkUiComponentContext("mode:design")),du("size-input-events2",[Hc(o,(e,t)=>{const o=t.event.isField1,r=o?Ky.getField1(e):Ky.getField2(e),a=o?Ky.getField2(e):Ky.getField1(e),i=r.map(Yg.getValue).getOr(""),l=a.map(Yg.getValue).getOr("");n=XL(i,l)})])])})})(e,t.shared.providers)),slider:OD((e,t,n)=>((e,t,n)=>{const o=UA.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Ef(t.translate(e.label))]}),r=UA.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),a=UA.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return UA.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:e.min,maxX:e.max,getInitialValue:_(n.getOrThunk(()=>(Math.abs(e.max)-Math.abs(e.min))/2))},components:[o,r,a],sliderBehaviours:au([RO(),hu.config({})]),onChoose:(t,n,o)=>{Nc(t,xO,{name:e.name,value:o})},onChange:(t,n,o)=>{Nc(t,xO,{name:e.name,value:o})}})})(e,t.shared.providers,n)),urlinput:OD((e,t,n)=>((e,t,n,o)=>{const r=t.shared.providers,a=t=>{const o=Yg.getValue(t);n.addToHistory(o.value,e.filetype)},i={...o.map(e=>({initialData:e})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":BD,type:"url"},minChars:0,responseTime:0,fetch:o=>{const r=((e,t,n)=>{var o,r;const a=Yg.getValue(t),i=null!==(r=null===(o=null==a?void 0:a.meta)||void 0===o?void 0:o.text)&&void 0!==r?r:a.value;return n.getLinkInformation().fold(()=>[],t=>{const o=ID(i,(e=>F(e,e=>xD(e,e)))(n.getHistory(e)));return"file"===e?(r=[o,ID(i,CD(t)),ID(i,K([SD(t),ED(t),TD(t)]))],H(r,(e,t)=>0===e.length||0===t.length?e.concat(t):e.concat(AD,t),[])):o;var r})})(e.filetype,o,n),a=HL(r,gC.BUBBLE_TO_SANDBOX,t,{isHorizontalMenu:!1,search:I.none()});return Ee(a)},getHotspot:e=>f.getOpt(e),onSetValue:(e,t)=>{e.hasConfigured(Jg)&&Jg.run(e).get(b)},typeaheadBehaviours:au([...n.getValidationHandler().map(t=>Jg.config({getRoot:e=>mn(e.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(e,t)=>{c.getOpt(e).each(e=>{Gn(e.element,"title",r.translate(t))})}},validator:{validate:n=>{const o=Yg.getValue(n);return Oe(n=>{t({type:e.filetype,url:o.value},e=>{if("invalid"===e.status){const t=Ie.error(e.message);n(t)}else{const t=Ie.value(e.message);n(t)}})})},validateOnLoad:!1}})).toArray(),nm.config({disabled:()=>!e.enabled||r.checkUiComponentContext(e.context).shouldDisable}),Ub.config({}),du("urlinput-events",[Hc(xi(),t=>{const n=cr(t.element),o=n.trim();o!==n&&ur(t.element,o),"file"===e.filetype&&Nc(t,xO,{name:e.name})}),Hc(wi(),t=>{Nc(t,xO,{name:e.name}),a(t)}),Hc(Mi(),t=>{Nc(t,xO,{name:e.name}),a(t)})])]),eventOrder:{[xi()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:e=>e.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:DC(0,0,"normal")},onExecute:(e,t,n)=>{Nc(t,TO,{})},onItemExecute:(t,n,o,r)=>{a(t),Nc(t,xO,{name:e.name})}},l=jy.parts.field({...i,factory:Nk}),s=e.label.map(e=>kO(e,r)),c=uv(((e,t,n=e,o=e)=>uC(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:{title:r.translate(o),"aria-live":"polite",...t.fold(()=>({}),e=>({id:e}))}},r.icons))("invalid",I.some(BD),"warning")),u=uv({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[c.asSpec()]}),d=n.getUrlPicker(e.filetype),p=Pe("browser.url.event"),f=uv({dom:{tag:"div",classes:["tox-control-wrap"]},components:[l,u.asSpec()],behaviours:au([nm.config({disabled:()=>!e.enabled||r.checkUiComponentContext(e.context).shouldDisable})])}),m=uv(vD({context:e.context,name:e.name,icon:I.some("browse"),text:e.picker_text.or(e.label).getOr(""),enabled:e.enabled,primary:!1,buttonType:I.none(),borderless:!0},e=>Mc(e,p),r,[],["tox-browse-url"]));return jy.sketch({dom:AO([]),components:s.toArray().concat([{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:K([[f.asSpec()],d.map(()=>m.asSpec()).toArray()])}]),fieldBehaviours:au([nm.config({disabled:()=>!e.enabled||r.checkUiComponentContext(e.context).shouldDisable,onDisabled:e=>{jy.getField(e).each(nm.disable),m.getOpt(e).each(nm.disable)},onEnabled:e=>{jy.getField(e).each(nm.enable),m.getOpt(e).each(nm.enable)}}),wI(()=>r.checkUiComponentContext(e.context)),du("url-input-events",[Hc(p,t=>{Ff.getCurrent(t).each(n=>{const o=Yg.getValue(n),r={fieldname:e.name,...o};d.each(o=>{o(r).get(o=>{Yg.setValue(n,o),Nc(t,xO,{name:e.name})})})})})])])})})(e,t,t.urlinput,n)),customeditor:OD(e=>{const t=We(),n=uv({dom:{tag:e.tag}}),o=We(),r=!nL(e)&&e.onFocus.isSome()?[hu.config({onFocus:t=>{e.onFocus.each(e=>{e(t.element.dom)})}}),Ub.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:au([du("custom-editor-events",[Jc(r=>{n.getOpt(r).each(n=>{(nL(e)?e.init(n.element.dom):tL.load(e.scriptId,e.scriptUrl).then(t=>t(n.element.dom,e.settings))).then(e=>{o.on(t=>{e.setValue(t)}),o.clear(),t.set(e)})})})]),UO(I.none(),()=>t.get().fold(()=>o.get().getOr(""),e=>e.getValue()),(e,n)=>{t.get().fold(()=>o.set(n),e=>e.setValue(n))}),RO()].concat(r)),components:[n.asSpec()]}}),htmlpanel:OD((e,t)=>((e,t)=>{const n=["tox-form__group",...e.stretched?["tox-form__group--stretched"]:[]],o=du("htmlpanel",[Jc(t=>{e.onInit(t.element.dom)})]);return"presentation"===e.presets?ig.sketch({dom:{tag:"div",classes:n,innerHtml:e.html},containerBehaviours:au([lv.config({...t.tooltips.getConfig({tooltipText:"",onShow:e=>{Wo(e.element,"[data-mce-tooltip]:hover").orThunk(()=>Fn(e.element)).each(n=>{Wn(n,"data-mce-tooltip").each(n=>{lv.setComponents(e,t.tooltips.getComponents({tooltipText:n}))})})}}),mode:"children-normal",anchor:e=>({type:"node",node:Wo(e.element,"[data-mce-tooltip]:hover").orThunk(()=>Fn(e.element).filter(e=>Wn(e,"data-mce-tooltip").isSome())),root:e.element,layouts:{onLtr:_([Ks,Gs,Us,Hs,js,qs]),onRtl:_([Ks,Gs,Us,Hs,js,qs])},bubble:As(0,-2,{})})}),o])}):ig.sketch({dom:{tag:"div",classes:n,innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:au([Ub.config({}),hu.config({}),o])})})(e,t.shared.providers)),imagepreview:OD((e,t,n)=>((e,t)=>{const n=_e(t.getOr({url:""})),o=uv({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:t.map(e=>({src:e.url})).getOr({})}}),r=uv({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[o.asSpec()]}),a={};e.height.each(e=>a.height=e);const i=t.map(e=>({url:e.url,zoom:I.from(e.zoom),cachedWidth:I.from(e.cachedWidth),cachedHeight:I.from(e.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:a,attributes:{role:"presentation"}},components:[r.asSpec()],behaviours:au([RO(),UO(i,()=>n.get(),(e,t)=>{const a={url:t.url};t.zoom.each(e=>a.zoom=e),t.cachedWidth.each(e=>a.cachedWidth=e),t.cachedHeight.each(e=>a.cachedHeight=e),n.set(a);const i=()=>{const{cachedWidth:t,cachedHeight:n,zoom:o}=a;if(!d(t)&&!d(n)){if(d(o)){const o=((e,t,n)=>{const o=So(e),r=ko(e);return Math.min(o/t,r/n,1)})(e.element,t,n);a.zoom=o}const i=((e,t,n,o,r)=>{const a=n*r,i=o*r,l=Math.max(0,e/2-a/2),s=Math.max(0,t/2-i/2);return{left:l.toString()+"px",top:s.toString()+"px",width:a.toString()+"px",height:i.toString()+"px"}})(So(e.element),ko(e.element),t,n,a.zoom);r.getOpt(e).each(e=>{uo(e.element,i)})}};o.getOpt(e).each(n=>{const o=n.element;t.url!==Zn(o,"src")&&(Gn(o,"src",t.url),rr(e.element,"tox-imagepreview__loaded")),i(),no(o).then(t=>{e.getSystem().isConnected()&&(nr(e.element,"tox-imagepreview__loaded"),a.cachedWidth=t.dom.naturalWidth,a.cachedHeight=t.dom.naturalHeight,i())})})})])}})(e,n)),table:OD((e,t)=>((e,t)=>{const n=e=>({dom:{tag:"td",innerHtml:t.translate(e)}});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[(r=e.header,{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:F(r,e=>({dom:{tag:"th",innerHtml:t.translate(e)}}))}]}),(o=e.cells,{dom:{tag:"tbody"},components:F(o,e=>({dom:{tag:"tr"},components:F(e,n)}))})],behaviours:au([Ub.config({}),hu.config({})])};var o,r})(e,t.shared.providers)),tree:OD((e,t)=>((e,t)=>{const n=e.onLeafAction.getOr(b),o=e.onToggleExpand.getOr(b),r=e.defaultExpandedIds,a=_e(r),i=_e(e.defaultSelectedId),l=Pe("tree-id"),s=(o,r)=>e.items.map(e=>"leaf"===e.type?iD({leaf:e,selectedId:o,onLeafAction:n,visible:!0,treeId:l,backstage:t}):pD({directory:e,selectedId:o,onLeafAction:n,expandedIds:r,labelTabstopping:!0,treeId:l,backstage:t}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:s(i.get(),a.get()),behaviours:au([Ap.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),du(fD,[Hc("expand-tree-node",(e,t)=>{const{expanded:n,node:r}=t.event;a.set(n?[...a.get(),r]:a.get().filter(e=>e!==r)),o(a.get(),{expanded:n,node:r})})]),nb.config({channels:{[`update-active-item-${l}`]:{onReceive:(e,t)=>{i.set(I.some(t.value)),Qp.set(e,s(I.some(t.value),a.get()))}}}}),Qp.config({})])}})(e,t)),panel:OD((e,t)=>((e,t)=>({dom:{tag:"div",classes:e.classes},components:F(e.items,t.shared.interpreter)}))(e,t))},DD={field:(e,t)=>t,record:_([])},MD=(e,t,n,o,r)=>{const a=Fe(o,{shared:{interpreter:t=>ND(e,t,n,a,r)}});return ND(e,t,n,a,r)},ND=(e,t,n,o,r)=>he(LD,t.type).fold(()=>(console.error(`Unknown factory type "${t.type}", defaulting to container: `,t),t),a=>a(e,t,n,o,r)),PD=(e,t,n,o)=>ND(DD,e,t,n,o),RD={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},FD=(e,t,n)=>{const o={maxHeightFunction:wc()};return()=>n()?{type:"node",root:xn(kn(e())),node:I.from(e()),bubble:As(12,12,RD),layouts:{onRtl:()=>[fc],onLtr:()=>[pc]},overrides:o}:{type:"hotspot",hotspot:t(),bubble:As(-12,12,RD),layouts:{onRtl:()=>[Us,js,Ks],onLtr:()=>[js,Us,Ks]},overrides:o}},VD=(e,t,n,o)=>{const r={maxHeightFunction:wc()};return()=>o()?{type:"node",root:xn(kn(t())),node:I.from(t()),bubble:As(12,12,RD),layouts:{onRtl:()=>[mc],onLtr:()=>[mc]},overrides:r}:e?{type:"node",root:xn(kn(t())),node:I.from(t()),bubble:As(0,-xo(t()),RD),layouts:{onRtl:()=>[Gs],onLtr:()=>[Gs]},overrides:r}:{type:"hotspot",hotspot:n(),bubble:As(0,0,RD),layouts:{onRtl:()=>[Gs],onLtr:()=>[Gs]},overrides:r}},zD=(e,t,n)=>()=>n()?{type:"node",root:xn(kn(e())),node:I.from(e()),layouts:{onRtl:()=>[mc],onLtr:()=>[mc]}}:{type:"hotspot",hotspot:t(),layouts:{onRtl:()=>[Ks],onLtr:()=>[Ks]}},UD=(e,t)=>()=>({type:"selection",root:t(),getSelection:()=>{const t=e.selection.getRng(),n=e.model.table.getSelectedCells();if(n.length>1){const e=n[0],t=n[n.length-1],o={firstCell:ct(e),lastCell:ct(t)};return I.some(o)}return I.some(kr.range(ct(t.startContainer),t.startOffset,ct(t.endContainer),t.endOffset))}}),jD=e=>t=>({type:"node",root:e(),node:t}),HD=(e,t,n,o)=>{const r=Ux(e),a=()=>ct(e.getBody()),i=()=>ct(e.getContentAreaContainer()),l=()=>r||!o();return{inlineDialog:FD(i,t,l),inlineBottomDialog:VD(e.inline,i,n,l),banner:zD(i,t,l),cursor:UD(e,a),node:jD(a)}},qD=e=>(t,n)=>{JB(e)(t,n)},GD=e=>()=>RB(e),KD=e=>t=>DB(e,t),ZD=e=>t=>PB(e,t),WD=e=>()=>Ax(e),$D=e=>ve(e,"items"),YD=e=>ve(e,"format"),JD=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"}
vendor: 5,409 bytes, line 2
2,{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],XD=e=>H(e,(e,t)=>{if(be(t,"items")){const n=XD(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(be(t,"inline")||(e=>be(e,"block"))(t)||(e=>be(e,"selector"))(t)){const n=`custom-${a(t.name)?t.name:t.title.toLowerCase()}`;return{customFormats:e.customFormats.concat([{name:n,format:t}]),formats:e.formats.concat([{title:t.title,format:n,icon:t.icon}])}}return{...e,formats:e.formats.concat(t)}},{customFormats:[],formats:[]}),QD=e=>ex(e).map(t=>{const n=((e,t)=>{const n=XD(t),o=t=>{V(t,t=>{e.formatter.has(t.name)||e.formatter.register(t.name,t.format)})};return e.formatter?o(n.customFormats):e.on("init",()=>{o(n.customFormats)}),n.formats})(e,t);return tx(e)?JD.concat(n):n}).getOr(JD),eM=(e,t,n)=>({...e,type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)}),tM=(e,t,n,o)=>{const r=t=>F(t,t=>$D(t)?(e=>{const t=r(e.items);return{...e,type:"submenu",getStyleItems:_(t)}})(t):YD(t)?(e=>eM(e,n,o))(t):(e=>{const t=ae(e);return 1===t.length&&M(t,"title")})(t)?{...t,type:"separator"}:(t=>{const r=a(t.name)?t.name:Pe(t.title),i=`custom-${r}`,l={...t,type:"formatter",format:i,isSelected:n(i),getStylePreview:o(i)};return e.formatter.register(r,l),l})(t));return r(t)},nM=e=>{let t=0;const n=e=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[Ef(e.tooltipText)]}];return{getConfig:o=>({delayForShow:()=>t>0?60:300,delayForHide:_(300),exclusive:!0,lazySink:e,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:n(o),onShow:(e,n)=>{t++,o.onShow&&o.onShow(e,n)},onHide:(e,n)=>{t--,o.onHide&&o.onHide(e,n)},onSetup:o.onSetup}),getComponents:n}},oM=oL.trim,rM=e=>t=>{if((e=>f(e)&&1===e.nodeType)(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1},aM=rM("true"),iM=rM("false"),lM=(e,t,n,o,r)=>({type:e,title:t,url:n,level:o,attach:r}),sM=e=>e.innerText||e.textContent,cM=e=>(e=>e&&"A"===e.nodeName&&void 0!==(e.id||e.name))(e)&&dM(e),uM=e=>e&&/^(H[1-6])$/.test(e.nodeName),dM=e=>(e=>{let t=e;for(;t=t.parentNode;){const e=t.contentEditable;if(e&&"inherit"!==e)return aM(t)}return!1})(e)&&!iM(e),pM=e=>uM(e)&&dM(e),fM=e=>{var t;const n=(e=>e.id?e.id:Pe("h"))(e);return lM("header",null!==(t=sM(e))&&void 0!==t?t:"","#"+n,(e=>uM(e)?parseInt(e.nodeName.substr(1),10):0)(e),()=>{e.id=n})},mM=e=>{const t=e.id||e.name,n=sM(e);return lM("anchor",n||"#"+t,"#"+t,0,b)},gM=e=>oM(e.title).length>0,hM=e=>{const t=(e=>{const t=F(pr(ct(e),"h1,h2,h3,h4,h5,h6,a:not([href])"),e=>e.dom);return t})(e);return U((e=>F(U(e,pM),fM))(t).concat((e=>F(U(e,cM),mM))(t)),gM)},bM="tinymce-url-history",vM=e=>a(e)&&/^https?/.test(e),yM=e=>i(e)&&me(e,e=>{return!(s(t=e)&&t.length<=5&&W(t,vM));var t}).isNone(),_M=()=>{const e=wB.getItem(bM);if(null===e)return{};let t;try{t=JSON.parse(e)}catch(e){if(e instanceof SyntaxError)return console.log("Local storage "+bM+" was not valid JSON",e),{};throw e}return yM(t)?t:(console.log("Local storage "+bM+" was not valid format",t),{})},AM=e=>{const t=_M();return he(t,e).getOr([])},kM=(e,t)=>{if(!vM(e))return;const n=_M(),o=he(n,t).getOr([]),r=U(o,t=>t!==e);n[t]=[e].concat(r).slice(0,5),(e=>{if(!yM(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));wB.setItem(bM,JSON.stringify(e))})(n)},xM=e=>!!e,wM=e=>se(oL.makeMap(e,/[, ]/),xM),CM=e=>I.from(mx(e)),EM=e=>I.from(e).filter(a).getOrUndefined(),SM=e=>({getHistory:AM,addToHistory:kM,getLinkInformation:()=>(e=>vx(e)?I.some({targets:hM(e.getBody()),anchorTop:EM(yx(e)),anchorBottom:EM(_x(e))}):I.none())(e),getValidationHandler:()=>(e=>I.from(gx(e)))(e),getUrlPicker:t=>((e,t)=>((e,t)=>{const n=(e=>{const t=I.from(bx(e)).filter(xM).map(wM);return CM(e).fold(S,e=>t.fold(T,e=>ae(e).length>0&&e))})(e);return u(n)?n?CM(e):I.none():n[t]?CM(e):I.none()})(e,t).map(n=>o=>Ce(r=>{const l={filetype:t,fieldname:o.fieldname,...I.from(o.meta).getOr({})};n.call(e,(e,t)=>{if(!a(e))throw new Error("Expected value to be string");if(void 0!==t&&!i(t))throw new Error("Expected meta to be a object");r({value:e,meta:t})},o.value,l)})))(e,t)}),TM=b,IM=S,BM=_([]);var OM,LM=Object.freeze({__proto__:null,setup:TM,isDocked:IM,getBehaviours:BM});const DM=_(Pe("toolbar-height-change")),MM={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},NM="tox-tinymce--toolbar-sticky-on",PM="tox-tinymce--toolbar-sticky-off",RM=(e,t)=>M(Im.getModes(e),t),FM=e=>{const t=e.element;mn(t).each(n=>{const o="padding-"+Im.getModes(e)[0];if(Im.isDocked(e)){const e=So(n);co(t,"width",e+"px"),co(n,o,(e=>xo(e)+(parseInt(fo(e,"margin-top"),10)||0)+(parseInt(fo(e,"margin-bottom"),10)||0))(t)+"px")}else vo(t,"width"),vo(n,o)})},VM=(e,t)=>{t?(rr(e,MM.fadeOutClass),ir(e,[MM.transitionClass,MM.fadeInClass])):(rr(e,MM.fadeInClass),ir(e,[MM.fadeOutClass,MM.transitionClass]))},zM=(e,t)=>{const n=ct(e.getContainer());
vendor: 33,163 bytes, line 2
2t?(nr(n,NM),rr(n,PM)):(nr(n,PM),rr(n,NM))},UM=(e,t)=>{const n=We(),o=t.getSink,r=e=>{o().each(t=>e(t.element))},a=t=>{e.inline||FM(t),zM(e,Im.isDocked(t)),t.getSystem().broadcastOn([mv()],{}),o().each(e=>e.getSystem().broadcastOn([mv()],{}))},i=e.inline?[]:[nb.config({channels:{[DM()]:{onReceive:FM}}})];return[hu.config({}),Im.config({contextual:{lazyContext:t=>{const n=xo(t.element),o=e.inline?e.getContentAreaContainer():e.getContainer();return I.from(o).map(o=>{const r=Nr(ct(o));return Xx(e,t.element).fold(()=>{const e=r.height-n,o=r.y+(RM(t,"top")?0:n);return Mr(r.x,o,r.width,e)},e=>{const o=Rr(r,Qx(e)),a=RM(t,"top")?o.y:o.y+n;return Mr(o.x,a,o.width,o.height-n)})})},onShow:()=>{r(e=>VM(e,!0))},onShown:e=>{r(e=>lr(e,[MM.transitionClass,MM.fadeInClass])),n.get().each(t=>{((e,t)=>{const n=cn(t);Rn(n).filter(e=>!_t(t,e)).filter(t=>_t(t,ct(n.dom.body))||At(e,t)).each(()=>Mn(t))})(e.element,t),n.clear()})},onHide:e=>{((e,t)=>Fn(e).orThunk(()=>t().toOptional().bind(e=>Fn(e.element))))(e.element,o).fold(n.clear,n.set),r(e=>VM(e,!1))},onHidden:()=>{r(e=>lr(e,[MM.transitionClass]))},...MM},lazyViewport:t=>Xx(e,t.element).fold(()=>{const n=Fr(),o=dx(e),r=n.y+(RM(t,"top")&&!Jx(e)?o:0),a=n.height-(RM(t,"bottom")?o:0);return{bounds:Mr(n.x,r,n.width,a),optScrollEnv:I.none()}},e=>({bounds:Qx(e),optScrollEnv:I.some({currentScrollTop:e.element.dom.scrollTop,scrollElmTop:Do(e.element).top})})),modes:[t.header.getDockingMode()],onDocked:a,onUndocked:a}),...i]};var jM=Object.freeze({__proto__:null,setup:(e,t,n)=>{e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",()=>{n().each(Im.reset)}),e.on("ResizeWindow ResizeEditor",()=>{n().each(FM)}),e.on("SkinLoaded",()=>{n().each(e=>{Im.isDocked(e)?Im.reset(e):Im.refresh(e)})}),e.on("FullscreenStateChanged",()=>{n().each(Im.reset)})),e.on("AfterScrollIntoView",e=>{n().each(t=>{Im.refresh(t);const n=t.element;wo(n)&&((e,t)=>{const n=cn(t),o=pn(t).dom.innerHeight,r=No(n),a=ct(e.elm),i=Pr(a),l=ko(a),s=i.y,c=s+l,u=Do(t),d=ko(t),p=u.top,f=p+d,m=Math.abs(p-r.top)<2,g=Math.abs(f-(r.top+o))<2;if(m&&s<f)Po(r.left,s-d,n);else if(g&&c>p){const e=s-o+l+d;Po(r.left,e,n)}})(e,n)})}),e.on("PostRender",()=>{zM(e,!1)})},isDocked:e=>e().map(Im.isDocked).getOr(!1),getBehaviours:UM}),HM=rg({factory:(e,t)=>{const n={focus:Ap.focusIn,setMenus:(e,n)=>{const o=F(n,e=>{const n={type:"menubutton",text:e.text,fetch:t=>{t(e.getItems())},context:"any"},o=zS(n).mapError(e=>Ia(e)).getOrDie();return tD(o,"tox-mbtn",t.backstage,I.some("menuitem"))});Qp.set(e,o)}};return{uid:e.uid,dom:e.dom,components:[],behaviours:au([Qp.config({}),du("menubar-events",[Jc(t=>{e.onSetup(t)}),Hc(vi(),(e,t)=>{Wo(e.element,".tox-mbtn--active").each(n=>{$o(t.event.target,".tox-mbtn").each(t=>{_t(n,t)||e.getSystem().getByDom(n).each(n=>{e.getSystem().getByDom(t).each(e=>{wy.expand(e),wy.close(n),hu.focus(e)})})})})}),Hc(Ji(),(e,t)=>{t.event.prevFocus.bind(t=>e.getSystem().getByDom(t).toOptional()).each(n=>{t.event.newFocus.bind(t=>e.getSystem().getByDom(t).toOptional()).each(e=>{wy.isOpen(n)&&(wy.expand(e),wy.close(n))})})})]),Ap.config({mode:"flow",selector:".tox-mbtn",onEscape:t=>(e.onEscape(t),I.some(!0))}),Ub.config({})]),apis:n,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[Na("dom"),Na("uid"),Na("onEscape"),Na("backstage"),Xa("onSetup",b)],apis:{focus:(e,t)=>{e.focus(t)},setMenus:(e,t,n)=>{e.setMenus(t,n)}}});const qM=e=>({element:()=>e.element.dom}),GM=(e,t)=>{const n=F(ae(t),e=>{const n=t[e],o=Sa((e=>Ea("sidebar",eI,e))(n));return{name:e,getApi:qM,onSetup:o.onSetup,onShow:o.onShow,onHide:o.onHide}});return F(n,t=>{const o=_e(b);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:cI([gI(t,o),hI(t,o),Hc(Xi(),(e,t)=>{const o=t.event,r=q(n,e=>e.name===o.name);r.each(t=>{(o.visible?t.onShow:t.onHide)(t.getApi(e))})})])})})},KM=e=>ZA.sketch(t=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:GM(t,e),slotBehaviours:cI([Jc(e=>ZA.hideAllSlots(e))])})),ZM=(e,t)=>{Gn(e,"role",t)},WM=e=>Ff.getCurrent(e).bind(e=>Db.isGrowing(e)||Db.hasGrown(e)?Ff.getCurrent(e).bind(e=>q(ZA.getSlotNames(e),t=>ZA.isShowing(e,t))):I.none()),$M=Pe("FixSizeEvent"),YM=Pe("AutoSizeEvent"),JM=e=>Ff.getCurrent(e).each(e=>Mn(e.element,!0)),XM=(e,t,n)=>{const o=_e(!1),r=We(),a=n=>{var r;o.get()&&(!(e=>"focusin"===e.type)(r=n)||!(r.composed?te(r.composedPath()):I.from(r.target)).map(ct).filter(on).exists(e=>ar(e,"mce-pastebin")))&&(n.preventDefault(),JM(t()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",()=>{e.dom.bind(e.getWin(),"focusin",a),e.on("BeforeExecCommand",e=>{"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&a(e)})});const i=r=>{r!==o.get()&&(o.set(r),((e,t,n,o)=>{const r=t.element;if(((e,t)=>{const n="tabindex",o=`data-mce-${n}`;I.from(e.iframeElement).map(ct).each(e=>{t?(Wn(e,n).each(t=>Gn(e,o,t)),Gn(e,n,-1)):(Yn(e,n),Wn(e,o).each(t=>{Gn(e,n,t),Yn(e,o)}))})})(e,n),n)Nf.block(t,(e=>(t,n)=>({dom:{tag:"div",attributes:{"aria-label":e.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:cv('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}))(o)),vo(r,"display"),Yn(r,"aria-hidden"),e.hasFocus()&&JM(t);else{const n=Ff.getCurrent(t).exists(e=>Pn(e.element));Nf.unblock(t),co(r,"display","none"),Gn(r,"aria-hidden","true"),n&&e.focus()}})(e,t(),r,n.providers),((e,t)=>{e.dispatch("AfterProgressState",{state:t})})(e,r))};e.on("ProgressState",t=>{if(r.on(clearTimeout),g(t.time)){const n=Vk.setEditorTimeout(e,()=>i(t.state),t.time);r.set(n)}else i(t.state),r.clear()})},QM=e=>{const t=e.label.isNone()?e.title.fold(()=>({}),e=>({attributes:{"aria-label":e}})):e.label.fold(()=>({}),e=>({attributes:{"aria-label":e}}));return{dom:{tag:"div",classes:["tox-toolbar__group"].concat(e.label.isSome()?["tox-toolbar__group_with_label"]:[]),...t},components:[...e.label.map(e=>({dom:{tag:"span",classes:["tox-label","tox-label--context-toolbar"]},components:[Ef(e)]})).toArray(),ck.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-item:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:au([Ub.config({}),hu.config({ignore:!0})])}},eN=e=>ck.sketch(QM(e)),tN=(e,t)=>{const n=Jc(t=>{const n=F(e.initGroups,eN);Ly.setGroups(t,n)});return au([fI(()=>e.providers.checkUiComponentContext("any").shouldDisable),wI(()=>e.providers.checkUiComponentContext("any")),Ap.config({mode:t,onEscape:e.onEscape,visibilitySelector:".tox-toolbar__overflow",selector:".tox-toolbar__group"}),du("toolbar-events",[n])])},nN=e=>{const t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":QM({title:I.none(),label:I.none(),items:[]}),"overflow-button":gD({context:"any",name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),e.providers,[],"overflow-button")},splitToolbarBehaviours:tN(e,t)}},oN=e=>{const t=nN(e),n=pk.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return pk.sketch({...t,lazySink:e.getSink,getOverflowBounds:()=>{const t=e.moreDrawerData.lazyHeader().element,n=Pr(t),o=dn(t),r=Pr(o),a=Math.max(o.dom.scrollHeight,r.height);return Mr(n.x+4,r.y,n.width-8,a)},parts:{...t.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}},components:[n],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:t=>e.onToggled(t,!0),onClosed:t=>e.onToggled(t,!1)})},rN=e=>{const t=bk.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=bk.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),o=nN(e);return bk.sketch({...o,components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:t=>{t.getSystem().broadcastOn([DM()],{type:"opened"}),e.onToggled(t,!0)},onClosed:t=>{t.getSystem().broadcastOn([DM()],{type:"closed"}),e.onToggled(t,!1)}})},aN=e=>{const t=e.cyclicKeying?"cyclic":"acyclic";return Ly.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===Pk.scrolling?["tox-toolbar--scrolling"]:[])},components:[Ly.parts.groups({})],toolbarBehaviours:tN(e,t)})},iN=(e,t)=>((e,t)=>{var n,o;const r="togglebutton"===e.type,a=e.icon.map(e=>ML(e,t.icons)).map(uv),i={...e,name:r?e.text.getOr(e.icon.getOr("")):null!==(n=e.text)&&void 0!==n?n:e.icon.getOr(""),primary:"primary"===e.buttonType,buttonType:I.from(e.buttonType),tooltip:e.tooltip,icon:e.icon,enabled:!0,borderless:e.borderless},l=hD(null!==(o=e.buttonType)&&void 0!==o?o:"secondary"),s=r?e.text.map(t.translate):I.some(t.translate(e.text)),c=s.map(Ef),u=i.tooltip.or(s).map(e=>({"aria-label":t.translate(e)})).getOr({}),d=a.map(e=>e.asSpec()),p=SI([d,c]),f=e.icon.isSome()&&c.isSome(),m={tag:"button",classes:l.concat(...e.icon.isSome()&&!f?["tox-button--icon"]:[]).concat(...f?["tox-button--icon-and-text"]:[]).concat(...e.borderless?["tox-button--naked"]:[]).concat(..."togglebutton"===e.type&&e.active?["tox-button--enabled"]:[]),attributes:u},g=mD(i,I.some(n=>{const o=e=>{a.map(o=>o.getOpt(n).each(n=>{Qp.set(n,[ML(e,t.icons)])}))};return r?e.onAction({setIcon:o,setActive:e=>{const t=n.element;e?(nr(t,"tox-button--enabled"),Gn(t,"aria-pressed",!0)):(rr(t,"tox-button--enabled"),Yn(t,"aria-pressed"))},isActive:()=>ar(n.element,"tox-button--enabled"),focus:()=>Mn(n.element)}):"button"===e.type?e.onAction({setIcon:o}):void 0}),[],m,p,e.tooltip,t);return Ev.sketch(g)})(e,t),lN=Jt().deviceType,sN=lN.isPhone(),cN=lN.isTablet();var uN=ag({name:"silver.View",configFields:[Na("viewConfig")],partFields:[Ql({factory:{sketch:e=>{let t=!1;const n=F(e.buttons,n=>"group"===n.type?(t=!0,((e,t)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:F(e.buttons,e=>iN(e,t))}))(n,e.providers)):iN(n,e.providers));return{uid:e.uid,dom:{tag:"div",classes:[t?"tox-view__toolbar":"tox-view__header",...sN||cN?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:au([hu.config({}),Ap.config({mode:"flow",selector:"button, .tox-button",focusInside:Tl.OnEnterOrSpaceMode})]),components:t?n:[ig.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),ig.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:n})]}}},schema:[Na("buttons"),Na("providers")],name:"header"}),Ql({factory:{sketch:e=>({uid:e.uid,behaviours:au([hu.config({}),Ub.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}})},schema:[],name:"pane"})],factory:(e,t,n,o)=>{const r={getPane:t=>dv.getPart(t,e,"pane"),getOnShow:t=>e.viewConfig.onShow,getOnHide:t=>e.viewConfig.onHide};return{uid:e.uid,dom:e.dom,components:t,behaviours:au([hu.config({}),Ap.config({mode:"cyclic",focusInside:Tl.OnEnterOrSpaceMode})]),apis:r}},apis:{getPane:(e,t)=>e.getPane(t),getOnShow:(e,t)=>e.getOnShow(t),getOnHide:(e,t)=>e.getOnHide(t)}});const dN=(e,t,n)=>fe(t,(t,o)=>{const r=Sa(Ea("view",lI,t));return e.slot(o,uN.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:r,components:[...r.buttons.length>0?[uN.parts.header({buttons:r.buttons,providers:n})]:[],uN.parts.pane({})]}))}),pN=(e,t)=>ZA.sketch(n=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:dN(n,e,t),slotBehaviours:cI([Jc(e=>ZA.hideAllSlots(e))])})),fN=e=>q(ZA.getSlotNames(e),t=>ZA.isShowing(e,t)),mN=(e,t,n)=>{ZA.getSlot(e,t).each(e=>{uN.getPane(e).each(t=>{var o;n(e)((o=t.element.dom,{getContainer:_(o)}))})})};var gN=rg({factory:(e,t)=>{const n={setViews:(e,n)=>{Qp.set(e,[pN(n,t.backstage.shared.providers)])},whichView:e=>Ff.getCurrent(e).bind(fN),toggleView:(e,t,n,o)=>Ff.getCurrent(e).exists(r=>{const a=fN(r),i=a.exists(e=>o===e),l=ZA.getSlot(r,o).isSome();return l&&(ZA.hideAllSlots(r),i?((e=>{const t=e.element;co(t,"display","none"),Gn(t,"aria-hidden","true")})(e),t()):(n(),(e=>{const t=e.element;vo(t,"display"),Yn(t,"aria-hidden")})(e),ZA.showSlot(r,o),((e,t)=>{mN(e,t,uN.getOnShow)})(r,o)),a.each(e=>((e,t)=>mN(e,t,uN.getOnHide))(r,e))),l})};return{uid:e.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:au([Qp.config({}),Ff.config({find:e=>{const t=Qp.contents(e);return te(t)}})]),apis:n}},name:"silver.ViewWrapper",configFields:[Na("backstage")],apis:{setViews:(e,t,n)=>e.setViews(t,n),toggleView:(e,t,n,o,r)=>e.toggleView(t,n,o,r),whichView:(e,t)=>e.whichView(t)}});const hN=pv.optional({factory:HM,name:"menubar",schema:[Na("backstage")]}),bN=pv.optional({factory:{sketch:e=>Bv.sketch({uid:e.uid,dom:e.dom,listBehaviours:au([Ap.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>aN({type:e.type,uid:Pe("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:()=>(e.onEscape(),I.some(!0))}),setupItem:(e,t,n,o)=>{Ly.setGroups(t,n)},shell:!0})},name:"multiple-toolbar",schema:[Na("dom"),Na("onEscape")]}),vN=pv.optional({factory:{sketch:e=>{const t=(e=>e.type===Pk.sliding?rN:e.type===Pk.floating?oN:aN)(e);return t({type:e.type,uid:e.uid,onEscape:()=>(e.onEscape(),I.some(!0)),onToggled:(t,n)=>e.onToolbarToggled(n),cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes})}},name:"toolbar",schema:[Na("dom"),Na("onEscape"),Na("getSink")]}),yN=pv.optional({factory:{sketch:e=>{const t=e.editor,n=e.sticky?UM:BM;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:au(n(t,e.sharedBackstage))}}},name:"header",schema:[Na("dom")]}),_N=pv.optional({factory:{sketch:e=>{const t=e.promotionLink?[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/tinymce-upgrade-to-cloud/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:"ðGet all features"}}]:[];return{uid:e.uid,dom:e.dom,components:t}}},name:"promotion",schema:[Na("dom"),Na("promotionLink")]}),AN=pv.optional({name:"socket",schema:[Na("dom")]}),kN=pv.optional({factory:{sketch:e=>({uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:au([Ub.config({}),hu.config({}),Db.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:e=>{Ff.getCurrent(e).each(ZA.hideAllSlots),Mc(e,YM)},onGrown:e=>{Mc(e,YM)},onStartGrow:e=>{Nc(e,$M,{width:go(e.element,"width").getOr("")})},onStartShrink:e=>{Nc(e,$M,{width:So(e.element)+"px"})}}),Qp.config({}),Ff.config({find:e=>{const t=Qp.contents(e);return te(t)}})])}],behaviours:au([FO(0),du("sidebar-sliding-events",[Hc($M,(e,t)=>{co(e.element,"width",t.event.width)}),Hc(YM,(e,t)=>{vo(e.element,"width")})])])})},name:"sidebar",schema:[Na("dom")]}),xN=pv.optional({factory:{sketch:e=>({uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:au([Qp.config({}),Nf.config({focus:!1}),Ff.config({find:e=>te(e.components())})]),components:[]})},name:"throbber",schema:[Na("dom")]}),wN=pv.optional({factory:gN,name:"viewWrapper",schema:[Na("backstage")]}),CN=pv.optional({factory:{sketch:e=>({uid:e.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:e.components})},name:"editorContainer",schema:[]});var EN=ag({name:"OuterContainer",factory:(e,t,n)=>{let o=!1;const r=e=>{Ko(e,".tox-statusbar").each(e=>{"none"===fo(e,"display")&&"true"===Zn(e,"aria-hidden")?(vo(e,"display"),Yn(e,"aria-hidden")):(co(e,"display","none"),Gn(e,"aria-hidden","true"))})},i={getSocket:t=>dv.getPart(t,e,"socket"),setSidebar:(t,n,o)=>{dv.getPart(t,e,"sidebar").each(e=>((e,t,n)=>{Ff.getCurrent(e).each(o=>{Qp.set(o,[KM(t)]);const r=null==n?void 0:n.toLowerCase();a(r)&&be(t,r)&&Ff.getCurrent(o).each(t=>{ZA.showSlot(t,r),Db.immediateGrow(o),vo(o.element,"width"),ZM(e.element,"region")})})})(e,n,o))},toggleSidebar:(t,n)=>{dv.getPart(t,e,"sidebar").each(e=>((e,t)=>{Ff.getCurrent(e).each(n=>{Ff.getCurrent(n).each(o=>{Db.hasGrown(n)?ZA.isShowing(o,t)?(Db.shrink(n),ZM(e.element,"presentation")):(ZA.hideAllSlots(o),ZA.showSlot(o,t),ZM(e.element,"region")):(ZA.hideAllSlots(o),ZA.showSlot(o,t),Db.grow(n),ZM(e.element,"region"))})})})(e,n))},whichSidebar:t=>dv.getPart(t,e,"sidebar").bind(WM).getOrNull(),getHeader:t=>dv.getPart(t,e,"header"),getToolbar:t=>dv.getPart(t,e,"toolbar"),setToolbar:(t,n)=>{dv.getPart(t,e,"toolbar").each(e=>{const t=F(n,eN);e.getApis().setGroups(e,t)})},setToolbars:(t,n)=>{dv.getPart(t,e,"multiple-toolbar").each(e=>{const t=F(n,e=>F(e,eN));Bv.setItems(e,t)})},refreshToolbar:t=>{dv.getPart(t,e,"toolbar").each(e=>e.getApis().refresh(e))},toggleToolbarDrawer:t=>{dv.getPart(t,e,"toolbar").each(e=>{He(e.getApis().toggle,t=>t(e))})},toggleToolbarDrawerWithoutFocusing:t=>{dv.getPart(t,e,"toolbar").each(e=>{He(e.getApis().toggleWithoutFocusing,t=>t(e))})},isToolbarDrawerToggled:t=>dv.getPart(t,e,"toolbar").bind(e=>I.from(e.getApis().isOpen).map(t=>t(e))).getOr(!1),getThrobber:t=>dv.getPart(t,e,"throbber"),focusToolbar:t=>{dv.getPart(t,e,"toolbar").orThunk(()=>dv.getPart(t,e,"multiple-toolbar")).each(e=>{Ap.focusIn(e)})},setMenubar:(t,n)=>{dv.getPart(t,e,"menubar").each(e=>{HM.setMenus(e,n)})},focusMenubar:t=>{dv.getPart(t,e,"menubar").each(e=>{HM.focus(e)})},setViews:(t,n)=>{dv.getPart(t,e,"viewWrapper").each(e=>{gN.setViews(e,n)})},toggleView:(t,n)=>dv.getPart(t,e,"viewWrapper").exists(e=>gN.toggleView(e,()=>i.showMainView(t),()=>i.hideMainView(t),n)),whichView:t=>dv.getPart(t,e,"viewWrapper").bind(gN.whichView).getOrNull(),hideMainView:t=>{o=i.isToolbarDrawerToggled(t),o&&i.toggleToolbarDrawer(t),dv.getPart(t,e,"editorContainer").each(e=>{const t=e.element;r(t),co(t,"display","none"),Gn(t,"aria-hidden","true")})},showMainView:t=>{o&&i.toggleToolbarDrawer(t),dv.getPart(t,e,"editorContainer").each(e=>{const t=e.element;r(t),vo(t,"display"),Yn(t,"aria-hidden")})}};return{uid:e.uid,dom:e.dom,components:t,apis:i,behaviours:e.behaviours}},configFields:[Na("dom"),Na("behaviours")],partFields:[yN,hN,vN,bN,AN,kN,_N,xN,wN,CN],apis:{getSocket:(e,t)=>e.getSocket(t),setSidebar:(e,t,n,o)=>{e.setSidebar(t,n,o)},toggleSidebar:(e,t,n)=>{e.toggleSidebar(t,n)},whichSidebar:(e,t)=>e.whichSidebar(t),getHeader:(e,t)=>e.getHeader(t),getToolbar:(e,t)=>e.getToolbar(t),setToolbar:(e,t,n)=>{e.setToolbar(t,n)},setToolbars:(e,t,n)=>{e.setToolbars(t,n)},refreshToolbar:(e,t)=>e.refreshToolbar(t),toggleToolbarDrawer:(e,t)=>{e.toggleToolbarDrawer(t)},toggleToolbarDrawerWithoutFocusing:(e,t)=>{e.toggleToolbarDrawerWithoutFocusing(t)},isToolbarDrawerToggled:(e,t)=>e.isToolbarDrawerToggled(t),getThrobber:(e,t)=>e.getThrobber(t),setMenubar:(e,t,n)=>{e.setMenubar(t,n)},focusMenubar:(e,t)=>{e.focusMenubar(t)},focusToolbar:(e,t)=>{e.focusToolbar(t)},setViews:(e,t,n)=>{e.setViews(t,n)},toggleView:(e,t,n)=>e.toggleView(t,n),whichView:(e,t)=>e.whichView(t)}});const SN={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},TN=e=>e.split(" "),IN=(e,t)=>{const n={...SN,...t.menus},o=ae(t.menus).length>0,r=void 0===t.menubar||!0===t.menubar?TN("file edit view insert format tools table help"):TN(!1===t.menubar?"":t.menubar),i=U(r,e=>{const n=be(SN,e);return o?n||he(t.menus,e).exists(e=>be(e,"items")):n}),l=F(i,o=>{const r=n[o];return((e,t,n)=>{const o=rx(n).split(/[ ,]/);return{text:e.title,getItems:()=>Z(e.items,e=>{const n=e.toLowerCase();return 0===n.trim().length||N(o,e=>e===n)?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]})}})({title:r.title,items:TN(r.items)},t,e)});return U(l,e=>e.getItems().length>0&&N(e.getItems(),e=>a(e)||"separator"!==e.type))},BN=(e,t,n)=>(e.on("remove",()=>n.unload(t)),n.load(t)),ON=(e,t,n,o)=>(e.on("remove",()=>o.unloadRawCss(t)),o.loadRawCss(t,n)),LN=e=>I.from(tinymce.Resource.get(e)).filter(a),DN=(e,t,n="")=>{const o=(e=>{const t=Ox(e);return t?I.from(t):I.none()})(e).map(e=>((e,t)=>"ui/"+e+"/"+t)(e,`${t}.css`)),r=o.bind(LN);return je(o,r,(e,t)=>({_kind:"load-raw",key:e,css:t})).getOrThunk(()=>{const o=e.editorManager.suffix;return{_kind:"load-stylesheet",url:n+`/${t}${o}.css`}})},MN=(e,t)=>{const n=e.ui.styleSheetLoader,o=DN(e,"skin",t);switch(o._kind){case"load-raw":const{key:t,css:r}=o;return ON(e,t,r,n),Promise.resolve();case"load-stylesheet":const{url:a}=o;return BN(e,a,n);default:return Promise.resolve()}},NN=(e,t)=>{var n;if(n=ct(e.getElement()),!wn(n).isSome())return Promise.resolve();{const n=zk.DOM.styleSheetLoader,o=DN(e,"skin.shadowdom",t);switch(o._kind){case"load-raw":const{key:t,css:r}=o;return ON(e,t,r,n),Promise.resolve();case"load-stylesheet":const{url:a}=o;return BN(e,a,n);default:return Promise.resolve()}}},PN=(e,t)=>(async(e,t)=>{const n=Mx(t);if(await((e,t,n)=>{const o=DN(e,t?"content.inline":"content",n);switch(o._kind){case"load-raw":const{key:r,css:a}=o;return t?ON(e,r,a,e.ui.styleSheetLoader):e.on("PostRender",()=>{ON(e,r,a,e.dom.styleSheetLoader)}),Promise.resolve();case"load-stylesheet":const{url:i}=o;return n&&e.contentCSS.push(i),Promise.resolve();default:return Promise.resolve()}})(t,e,n),!Lx(t)&&a(n))return Promise.all([MN(t,n),NN(t,n)]).then()})(e,t).then((e=>{const t=()=>{e._skinLoaded=!0,(e=>{e.dispatch("SkinLoaded")})(e)};return()=>{e.initialized?t():e.on("init",t)}})(t),(e=>()=>((e,t)=>{e.dispatch("SkinLoadError",t)})(e,{message:"Skin could not be loaded"}))(t)),RN=x(PN,!1),FN=x(PN,!0),VN=e=>({isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t),setText:t=>Nc(e,PL,{text:t}),setIcon:t=>Nc(e,RL,{icon:t})}),zN=e=>({setActive:t=>{$b.set(e,t)},isActive:()=>$b.isOn(e),isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t),setText:t=>Nc(e,PL,{text:t}),setIcon:t=>Nc(e,RL,{icon:t})}),UN=(e,t)=>e.map(e=>({"aria-label":t.translate(e)})).getOr({}),jN=Pe("focus-button"),HN=(e,t,n,o,r,a,i)=>{const l=t.map(e=>uv(NL(e,"tox-tbtn",r))),s=e.map(e=>uv(ML(e,r.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:{...UN(n,r),...f(i)?{"data-mce-name":i}:{}}},components:SI([s.map(e=>e.asSpec()),l.map(e=>e.asSpec())]),eventOrder:{[mi()]:["focusing","alloy.base.behaviour",IL],[Zi()]:[IL,"toolbar-group-button-events"],[Wi()]:[IL,"toolbar-group-button-events","tooltipping"]},buttonBehaviours:au([fI(()=>r.checkUiComponentContext(a).shouldDisable),wI(()=>r.checkUiComponentContext(a)),du(IL,[Jc((e,t)=>OL(e)),Hc(PL,(e,t)=>{l.bind(t=>t.getOpt(e)).each(e=>{Qp.set(e,[Ef(r.translate(t.event.text))])})}),Hc(RL,(e,t)=>{s.bind(t=>t.getOpt(e)).each(e=>{Qp.set(e,[ML(t.event.icon,r.icons)])})}),Hc(mi(),(e,t)=>{t.event.prevent(),Mc(e,jN)})])].concat(o.getOr([])))}},qN=(e,t,n,o)=>{var r;const a=_e(b),i=HN(e.icon,e.text,e.tooltip,I.none(),n,e.context,o);return Ev.sketch({dom:i.dom,components:i.components,eventOrder:BL,buttonBehaviours:{...au([du("toolbar-button-events",[(l={onAction:e.onAction,getApi:t.getApi},eu((e,t)=>{mI(l,e)(t=>{Nc(e,TL,{buttonApi:t}),l.onAction(t)})})),gI(t,a),hI(t,a)]),...e.tooltip.map(t=>lv.config(n.tooltips.getConfig({tooltipText:n.translate(t)+e.shortcut.map(e=>` (${OI(e)})`).getOr("")}))).toArray(),fI(()=>!e.enabled||n.checkUiComponentContext(e.context).shouldDisable),wI(()=>n.checkUiComponentContext(e.context))].concat(t.toolbarButtonBehaviours)),[IL]:null===(r=i.buttonBehaviours)||void 0===r?void 0:r[IL]}});var l},GN=(e,t,n,o)=>qN(e,{toolbarButtonBehaviours:n.length>0?[du("toolbarButtonWith",n)]:[],getApi:VN,onSetup:e.onSetup},t,o),KN=(e,t,n,o)=>qN(e,{toolbarButtonBehaviours:[Qp.config({}),$b.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[du("toolbarToggleButtonWith",n)]:[]),getApi:zN,onSetup:e.onSetup},t,o),ZN=(e,t,n)=>o=>Ce(e=>t.fetch(e)).map(r=>I.from(gO(Fe(XB(Pe("menu-value"),r,n=>{t.onItemAction(e(o),n)},t.columns,t.presets,gC.CLOSE_ON_EXECUTE,t.select.getOr(S),n),{movement:eO(t.columns,t.presets),menuBehaviours:cI("auto"!==t.columns?[]:[Jc((e,n)=>{sI(e,4,SC(t.presets)).each(({numRows:t,numColumns:n})=>{Ap.setGridSize(e,t,n)})})])})))),WN=e=>{Wy.getContent(e).each(e=>{Wo(e.element,".tox-toolbar-slider__input,.tox-toolbar-textfield").fold(()=>Ap.focusIn(e),Mn)})},$N=Pe("forward-slide"),YN=Pe("backward-slide"),JN=Pe("change-slide-event"),XN="tox-pop--resizing",QN=(e,t,n)=>nt(n)?e.translate(t):e.translate([t,e.translate(n)]),eP=(e,t)=>{const n=(n,r,a,i)=>{const l=e.shared.providers.translate(n.title);if("separator"===n.type)return I.some({type:"separator",text:l});if("submenu"===n.type){const e=Z(n.getStyleItems(),e=>o(e,r,i));return 0===r&&e.length<=0?I.none():I.some({type:"nestedmenuitem",text:l,enabled:e.length>0,getSubmenuItems:()=>Z(n.getStyleItems(),e=>o(e,r,i))})}return I.some({type:"togglemenuitem",text:l,icon:n.icon,active:n.isSelected(i),enabled:!a,onAction:t.onAction(n),...n.getStylePreview().fold(()=>({}),e=>({meta:{style:e}}))})},o=(e,o,r)=>{const a="formatter"===e.type&&t.isInvalid(e);return 0===o?a?[]:n(e,o,!1,r).toArray():n(e,o,a,r).toArray()},r=e=>{const n=t.getCurrentValue(),r=t.shouldHide?0:1;return Z(e,e=>o(e,r,n))};return{validateItems:r,getFetch:(e,t)=>(n,o)=>{const a=t(),i=r(a);o(HL(i,gC.CLOSE_ON_EXECUTE,e,{isHorizontalMenu:!1,search:I.none()}))}}},tP=(e,t)=>{const n=t.dataset,o="basic"===n.type?()=>F(n.data,e=>eM(e,t.isSelectedFor,t.getPreviewFor)):n.getData;return{items:eP(e,t),getStyleItems:o}},nP=(e,t,n,o,r,a)=>{const{items:i,getStyleItems:l}=tP(t,n),s=_e(n.tooltip);return VL({context:"mode:design",text:n.icon.isSome()?I.none():n.text,icon:n.icon,ariaLabel:I.some(n.tooltip),tooltip:I.none(),role:I.none(),fetch:i.getFetch(t,l),onSetup:t=>{const a=n=>t.setTooltip(QN(e,o(n.value),n.value));return e.on(r,a),vB(AB(e,"NodeChange",t=>{const o=t.getComponent();n.updateText(o),nm.set(t.getComponent(),!e.selection.isEditable()||0===l().length)})(t),()=>e.off(r,a))},getApi:e=>({getComponent:_(e),setTooltip:n=>{const o=t.shared.providers.translate(n);Gn(e.element,"aria-label",o),s.set(n)}}),columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[lv.config({...t.shared.providers.tooltips.getConfig({tooltipText:t.shared.providers.translate(n.tooltip),onShow:e=>{if(n.tooltip!==s.get()){const n=t.shared.providers.translate(s.get());lv.setComponents(e,t.shared.providers.tooltips.getComponents({tooltipText:n}))}}})})]},"tox-tbtn",t.shared,a)};var oP;!function(e){e[e.SemiColon=0]="SemiColon",e[e.Space=1]="Space"}(oP||(oP={}));const rP=(e,t,n)=>{const o=(r=((e,t)=>t===oP.SemiColon?e.replace(/;$/,"").split(";"):e.split(" "))(e.options.get(t),n),F(r,e=>{let t=e,n=e;const o=e.split("=");return o.length>1&&(t=o[0],n=o[1]),{title:t,format:n}}));var r;return{type:"basic",data:o}},aP=_("Alignment {0}"),iP="left",lP=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],sP=e=>{const t={type:"basic",data:lP};return{tooltip:QN(e,aP(),iP),text:I.none(),icon:I.some("align-left"),isSelectedFor:t=>()=>e.formatter.match(t),getCurrentValue:I.none,getPreviewFor:e=>I.none,onAction:t=>()=>q(lP,e=>e.format===t.format).each(t=>e.execCommand(t.command)),updateText:t=>{const n=q(lP,t=>e.formatter.match(t.format)).fold(_(iP),e=>e.title.toLowerCase());Nc(t,RL,{icon:`align-${n}`}),((e,t)=>{e.dispatch("AlignTextUpdate",t)})(e,{value:n})},dataset:t,shouldHide:!1,isInvalid:t=>!e.formatter.canApply(t.format)}},cP=(e,t)=>{const n=t(),o=F(n,e=>e.format);return I.from(e.formatter.closest(o)).bind(e=>q(n,t=>t.format===e))},uP=_("Block {0}"),dP="Paragraph",pP=e=>{const t=rP(e,"block_formats",oP.SemiColon);return{tooltip:QN(e,uP(),dP),text:I.some(dP),icon:I.none(),isSelectedFor:t=>()=>e.formatter.match(t),getCurrentValue:I.none,getPreviewFor:t=>()=>{const n=e.formatter.get(t);return n?I.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):I.none()},onAction:kB(e),updateText:n=>{const o=cP(e,()=>t.data).fold(_(dP),e=>e.title);Nc(n,PL,{text:o}),((e,t)=>{e.dispatch("BlocksTextUpdate",t)})(e,{value:o})},dataset:t,shouldHide:!1,isInvalid:t=>!e.formatter.canApply(t.format)}},fP=_("Font {0}"),mP="System Font",gP=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],hP=e=>{const t=e.split(/\s*,\s*/);return F(t,e=>e.replace(/^['"]+|['"]+$/g,""))},bP=(e,t)=>t.length>0&&W(t,t=>e.indexOf(t.toLowerCase())>-1),vP=e=>{const t=()=>{const t=e=>e?hP(e)[0]:"",o=e.queryCommandValue("FontName"),r=n.data,a=o?o.toLowerCase():"",i=Bx(e),l=q(r,e=>{const n=e.format;return n.toLowerCase()===a||t(n).toLowerCase()===t(a).toLowerCase()}).orThunk(()=>qe(((e,t)=>{if(0===e.indexOf("-apple-system")||t.length>0){const n=hP(e.toLowerCase());return bP(n,gP)||bP(n,t)}return!1})(a,i),{title:mP,format:a}));return{matchOpt:l,font:o}},n=rP(e,"font_family_formats",oP.SemiColon);return{tooltip:QN(e,fP(),mP),text:I.some(mP),icon:I.none(),isSelectedFor:e=>t=>t.exists(t=>t.format===e),getCurrentValue:()=>{const{matchOpt:e}=t();return e},getPreviewFor:e=>()=>I.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}}),onAction:t=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("FontName",!1,t.format)})},updateText:n=>{const{matchOpt:o,font:r}=t(),a=o.fold(_(r),e=>e.title);Nc(n,PL,{text:a}),((e,t)=>{e.dispatch("FontFamilyTextUpdate",t)})(e,{value:a})},dataset:n,shouldHide:!1,isInvalid:S}};var yP=tinymce.util.Tools.resolve("tinymce.util.VK");const _P=_("Font size {0}"),AP="12pt",kP={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},xP={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},wP=(e,t)=>/[0-9.]+px$/.test(e)?((e,t)=>{const n=Math.pow(10,t);return Math.round(e*n)/n})(72*parseInt(e,10)/96,t||0)+"pt":he(xP,e).getOr(e),CP=e=>he(kP,e).getOr(""),EP=e=>{const t=()=>{let t=I.none();const n=o.data,r=e.queryCommandValue("FontSize");if(r)for(let e=3;t.isNone()&&e>=0;e--){const o=wP(r,e),a=CP(o);t=q(n,e=>e.format===r||e.format===o||e.format===a)}return{matchOpt:t,size:r}},n=_(I.none),o=rP(e,"font_size_formats",oP.Space);return{tooltip:QN(e,_P(),AP),text:I.some(AP),icon:I.none(),isSelectedFor:e=>t=>t.exists(t=>t.format===e),getPreviewFor:n,getCurrentValue:()=>{const{matchOpt:e}=t();return e},onAction:t=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("FontSize",!1,t.format)})},updateText:n=>{const{matchOpt:o,size:r}=t(),a=o.fold(_(r),e=>e.title);Nc(n,PL,{text:a}),((e,t)=>{e.dispatch("FontSizeTextUpdate",t)})(e,{value:a})},dataset:o,shouldHide:!1,isInvalid:S}},SP=e=>nt(e)?"Formats":"Format {0}",TP=(e,t)=>{const n="Formats";return{tooltip:QN(e,SP(""),""),text:I.some(n),icon:I.none(),isSelectedFor:t=>()=>e.formatter.match(t),getCurrentValue:I.none,getPreviewFor:t=>()=>{const n=e.formatter.get(t);return void 0!==n?I.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):I.none()},onAction:kB(e),updateText:t=>{const o=e=>$D(e)?Z(e.items,o):YD(e)?[{title:e.title,format:e.format}]:[],r=Z(QD(e),o),a=cP(e,_(r)).fold(_({title:n,tooltipLabel:""}),e=>({title:e.title,tooltipLabel:e.title}));Nc(t,PL,{text:a.title}),((e,t)=>{e.dispatch("StylesTextUpdate",t)})(e,{value:a.tooltipLabel})},shouldHide:nx(e),isInvalid:t=>!e.formatter.canApply(t.format),dataset:t}},IP=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],BP=(e,t)=>
vendor: 4,343 bytes, line 2
2(n,o,r,a)=>{const i=e(n).mapError(e=>Ia(e)).getOrDie();return t(i,o,r,a)},OP={button:BP(yT,(e,t,n,o)=>((e,t,n)=>GN(e,t,[],n))(e,t.shared.providers,o)),togglebutton:BP(kT,(e,t,n,o)=>((e,t,n)=>KN(e,t,[],n))(e,t.shared.providers,o)),menubutton:BP(zS,(e,t,n,o)=>tD(e,"tox-tbtn",t,I.none(),!1,o)),splitbutton:BP(e=>Ea("SplitButton",nI,e),(e,t,n,o)=>((e,t,n)=>{const o=_e(e.tooltip.getOr("")),r=e=>({isEnabled:()=>!nm.isDisabled(e),setEnabled:t=>nm.set(e,!t),setIconFill:(t,n)=>{Wo(e.element,`svg path[class="${t}"], rect[class="${t}"]`).each(e=>{Gn(e,"fill",n)})},setActive:t=>{Gn(e.element,"aria-pressed",t),Wo(e.element,"span").each(n=>{e.getSystem().getByDom(n).each(e=>$b.set(e,t))})},isActive:()=>Wo(e.element,"span").exists(t=>e.getSystem().getByDom(t).exists($b.isOn)),setText:t=>Wo(e.element,"span").each(n=>e.getSystem().getByDom(n).each(e=>Nc(e,PL,{text:t}))),setIcon:t=>Wo(e.element,"span").each(n=>e.getSystem().getByDom(n).each(e=>Nc(e,RL,{icon:t}))),setTooltip:n=>{const r=t.providers.translate(n);Gn(e.element,"aria-label",r),o.set(n)}}),a=_e(b),i={getApi:r,onSetup:e.onSetup};return XA.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...UN(e.tooltip,t.providers),...f(n)?{"data-mce-name":n}:{}}},onExecute:t=>{const n=r(t);n.isEnabled()&&e.onAction(n)},onItemExecute:(e,t,n)=>{},splitDropdownBehaviours:au([du("split-dropdown-events",[Jc((e,t)=>OL(e)),Hc(jN,hu.focus),gI(i,a),hI(i,a)]),pI(()=>t.providers.isDisabled()||t.providers.checkUiComponentContext(e.context).shouldDisable),wI(()=>t.providers.checkUiComponentContext(e.context)),sv.config({}),...e.tooltip.map(e=>lv.config({...t.providers.tooltips.getConfig({tooltipText:t.providers.translate(e),onShow:n=>{if(o.get()!==e){const e=t.providers.translate(o.get());lv.setComponents(n,t.providers.tooltips.getComponents({tooltipText:e}))}}})})).toArray()]),eventOrder:{[Zi()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[Wi()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:ZN(r,e,t.providers),parts:{menu:DC(0,e.columns,e.presets)},components:[XA.parts.button(HN(e.icon,e.text,I.none(),I.some([$b.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1}),fI(S),wI(_({contextType:"any",shouldDisable:!1}))]),t.providers,e.context)),XA.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:lC("chevron-down",t.providers.icons)},buttonBehaviours:au([pI(S),wI(_({contextType:"any",shouldDisable:!1}))])}),XA.parts["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})})(e,t.shared,o)),grouptoolbarbutton:BP(e=>Ea("GroupToolbarButton",tI,e),(e,t,n,o)=>{const r=n.ui.registry.getAll().buttons,a={[Sc]:t.shared.header.isPositionedAtTop()?Ec.TopToBottom:Ec.BottomToTop};if(ax(n)===Pk.floating)return((e,t,n,o,r)=>{const a=t.shared,i=_e(b),l={toolbarButtonBehaviours:[],getApi:VN,onSetup:e.onSetup},s=[du("toolbar-group-button-events",[gI(l,i),hI(l,i)]),...e.tooltip.map(e=>lv.config(t.shared.providers.tooltips.getConfig({tooltipText:t.shared.providers.translate(e)}))).toArray()];return Vy.sketch({lazySink:a.getSink,fetch:()=>Ce(t=>{t(F(n(e.items),eN))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:HN(e.icon,e.text,e.tooltip,I.some(s),a.providers,e.context,r),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:o}}}})})(e,t,e=>DP(n,{buttons:r,toolbar:e,allowToolbarGroups:!1},t,I.none()),a,o);throw new Error("Toolbar groups are only supported when using floating toolbar mode")})},LP={styles:(e,t)=>{const n={type:"advanced",...t.styles};return nP(e,t,TP(e,n),SP,"StylesTextUpdate","styles")},fontsize:(e,t)=>nP(e,t,EP(e),_P,"FontSizeTextUpdate","fontsize"),fontsizeinput:(e,t)=>((e,t,n,o)=>{let r=I.none();const a=AB(e,"NodeChange SwitchMode DisabledStateChange",t=>{const o=t.getComponent();r=I.some(o),n.updateInputValue(o),nm.set(o,!e.selection.isEditable()||Zk(e))}),i=e=>({getComponent:_(e)}),l=_e(b),s=Pe("custom-number-input-events"),c=(e,t,o)=>{const a=r.map(e=>Yg.getValue(e)).getOr(""),i=n.getNewValue(a,e),l=a.length-`${i}`.length,s=r.map(e=>e.element.dom.selectionStart-l),c=r.map(e=>e.element.dom.selectionEnd-l);n.onAction(i,o),r.each(e=>{Yg.setValue(e,i),t&&(s.each(t=>e.element.dom.selectionStart=t),c.each(t=>e.element.dom.selectionEnd=t))})},u=(e,t)=>
vendor: 44,170 bytes, line 2
2c((e,t)=>e-t,e,t),d=(e,t)=>c((e,t)=>e+t,e,t),p=e=>mn(e.element).fold(I.none,e=>(Mn(e),I.some(!0))),m=e=>Pn(e.element)?(vn(e.element).each(e=>Mn(e)),I.some(!0)):I.none(),g=(n,o,r,a)=>{const l=_e(b),s=t.shared.providers.translate(r),c=Pe("altExecuting"),u=AB(e,"NodeChange SwitchMode DisabledStateChange",t=>{nm.set(t.getComponent(),!e.selection.isEditable()||Zk(e))}),d=e=>{nm.isDisabled(e)||n(!0)};return Ev.sketch({dom:{tag:"button",attributes:{"aria-label":s,"data-mce-name":o},classes:a.concat(o)},components:[DL(o,t.shared.providers.icons)],buttonBehaviours:au([nm.config({}),lv.config(t.shared.providers.tooltips.getConfig({tooltipText:s})),du(c,[gI({onSetup:u,getApi:i},l),hI({getApi:i},l),Hc(Ai(),(e,t)=>{t.event.raw.keyCode!==yP.SPACEBAR&&t.event.raw.keyCode!==yP.ENTER||nm.isDisabled(e)||n(!1)}),Hc(Ci(),d),Hc(pi(),d)])]),eventOrder:{[Ai()]:[c,"keying"],[Ci()]:[c,"alloy.base.behaviour"],[pi()]:[c,"alloy.base.behaviour"],[Zi()]:["alloy.base.behaviour",c,"tooltipping"],[Wi()]:[c,"tooltipping"]}})},h=uv(g(e=>u(!1,e),"minus","Decrease font size",[])),v=uv(g(e=>d(!1,e),"plus","Increase font size",[])),y=uv({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Qy.sketch({inputBehaviours:au([nm.config({}),du(s,[gI({onSetup:a,getApi:i},l),hI({getApi:i},l)]),du("input-update-display-text",[Hc(PL,(e,t)=>{Yg.setValue(e,t.event.text)}),Hc(_i(),e=>{n.onAction(Yg.getValue(e))}),Hc(wi(),e=>{n.onAction(Yg.getValue(e))})]),Ap.config({mode:"special",onEnter:e=>(c(A,!0,!0),I.some(!0)),onEscape:p,onUp:e=>(d(!0,!1),I.some(!0)),onDown:e=>(u(!0,!1),I.some(!0)),onLeft:(e,t)=>(t.cut(),I.none()),onRight:(e,t)=>(t.cut(),I.none())})])})],behaviours:au([hu.config({}),Ap.config({mode:"special",onEnter:m,onSpace:m,onEscape:p}),du("input-wrapper-events",[Hc(vi(),e=>{V([h,v],t=>{const n=ct(t.get(e).element.dom);Pn(n)&&Nn(n)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...f(o)?{"data-mce-name":o}:{}}},components:[h.asSpec(),y.asSpec(),v.asSpec()],behaviours:au([hu.config({}),Ap.config({mode:"flow",focusInside:Tl.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:e=>Pn(e.element)?I.none():(Mn(e.element),I.some(!0))})])}})(e,t,(e=>{const t=()=>e.queryCommandValue("FontSize");return{updateInputValue:e=>Nc(e,PL,{text:t()}),onAction:(t,n)=>e.execCommand("FontSize",!1,t,{skip_focus:!n}),getNewValue:(n,o)=>{Tr(n,["unsupportedLength","empty"]);const r=t(),a=Tr(n,["unsupportedLength","empty"]).or(Tr(r,["unsupportedLength","empty"])),i=a.map(e=>e.value).getOr(16),l=hx(e),s=a.map(e=>e.unit).filter(e=>""!==e).getOr(l),c=o(i,(e=>{var t;return null!==(t={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[e])&&void 0!==t?t:{step:1}})(s).step),u=`${(e=>e>=0)(c)?c:i}${s}`;return u!==r&&((e,t)=>{e.dispatch("FontSizeInputTextUpdate",t)})(e,{value:u}),u}}})(e),"fontsizeinput"),fontfamily:(e,t)=>nP(e,t,vP(e),fP,"FontFamilyTextUpdate","fontfamily"),blocks:(e,t)=>nP(e,t,pP(e),uP,"BlocksTextUpdate","blocks"),align:(e,t)=>nP(e,t,sP(e),aP,"AlignTextUpdate","align"),navigateback:(e,t)=>{const n=Sa(yT({type:"button",icon:"chevron-left",tooltip:"Back",onAction:b}));return GN(n,t.shared.providers,[Hc(TL,e=>{Mc(e,YN)})])}},DP=(e,t,n,o)=>{const r=(e=>{const t=e.toolbar,n=e.buttons;return!1===t?[]:void 0===t||!0===t?(e=>{const t=F(IP,t=>{const n=U(t.items,t=>be(e,t)||be(LP,t));return{name:t.name,items:n}});return U(t,e=>e.items.length>0)})(n):a(t)?(e=>{const t=e.split("|");return F(t,e=>({items:e.trim().split(" ")}))})(t):(e=>h(e,e=>(be(e,"name")||be(e,"label"))&&be(e,"items")))(t)?t:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])})(t),i=F(r,r=>{const a=Z(r.items,r=>0===r.trim().length?[]:((e,t,n,o,r,a)=>he(t,n.toLowerCase()).orThunk(()=>a.bind(e=>re(e,e=>he(t,e+n.toLowerCase())))).fold(()=>he(LP,n.toLowerCase()).map(t=>t(e,r)),t=>"grouptoolbarbutton"!==t.type||o?((e,t,n,o)=>he(OP,e.type).fold(()=>(console.error("skipping button defined by",e),I.none()),r=>I.some(r(e,t,n,o))))(t,r,e,n.toLowerCase()):(console.warn(`Ignoring the '${n}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none())))(e,t.buttons,r,t.allowToolbarGroups,n,o).toArray());return{title:I.from(e.translate(r.name)),label:qe(void 0!==r.label,e.translate(r.label)),items:a}});return U(i,e=>e.items.length>0)},MP=(e,t,n,o)=>{const r=t.mainUi.outerContainer,i=n.toolbar,l=n.buttons;if(h(i,a)){const t=i.map(t=>{const r={toolbar:t,buttons:l,allowToolbarGroups:n.allowToolbarGroups};return DP(e,r,o,I.none())});EN.setToolbars(r,t)}else EN.setToolbar(r,DP(e,n,o,I.none()))},NP=Jt(),PP=NP.os.isiOS()&&NP.os.version.major<=12;var RP=Object.freeze({__proto__:null,render:(e,t,n,o,r)=>{const{mainUi:a,uiMotherships:i}=t,l=_e(0),s=a.outerContainer;RN(e);const u=ct(r.targetNode),d=xn(kn(u));Fp(u,a.mothership),((e,t,n)=>{Gx(e)&&Fp(n.mainUi.mothership.element,n.popupUi.mothership),Rp(t,n.dialogUi.mothership)})(e,d,t),e.on("PostRender",()=>{EN.setSidebar(s,n.sidebar,Sx(e))}),e.on("SkinLoaded",()=>{MP(e,t,n,o),l.set(e.getWin().innerWidth),EN.setMenubar(s,IN(e,n)),EN.setViews(s,n.views),((e,t)=>{const{uiMotherships:n}=t,o=e.dom;let r=e.getWin();const a=e.getDoc().documentElement,i=_e(Oo(r.innerWidth,r.innerHeight)),l=_e(Oo(a.offsetWidth,a.offsetHeight)),s=()=>{const t=i.get();t.left===r.innerWidth&&t.top===r.innerHeight||(i.set(Oo(r.innerWidth,r.innerHeight)),mB(e))},c=()=>{const t=e.getDoc().documentElement,n=l.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(l.set(Oo(t.offsetWidth,t.offsetHeight)),mB(e))},u=t=>{((e,t)=>{e.dispatch("ScrollContent",t)})(e,t)};o.bind(r,"resize",s),o.bind(r,"scroll",u);const d=On(ct(e.getBody()),"load",c);e.on("hide",()=>{V(n,e=>{co(e.element,"display","none")})}),e.on("show",()=>{V(n,e=>{vo(e.element,"display")})}),e.on("NodeChange",c),e.on("remove",()=>{d.unbind(),o.unbind(r,"resize",s),o.unbind(r,"scroll",u),r=null})})(e,t)});const p=EN.getSocket(s).getOrDie("Could not find expected socket element");if(PP){uo(p.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const t=(e=>{let t=null;return{cancel:()=>{c(t)||(clearTimeout(t),t=null)},throttle:(...n)=>{c(t)&&(t=setTimeout(()=>{t=null,e.apply(null,n)},20))}}})(()=>{e.dispatch("ScrollContent")}),n=Bn(p.element,"scroll",t.throttle);e.on("remove",n.unbind)}xI(e,t),e.addCommand("ToggleSidebar",(t,n)=>{EN.toggleSidebar(s,n),(e=>{e.dispatch("ToggleSidebar")})(e)}),e.addQueryValueHandler("ToggleSidebar",()=>{var e;return null!==(e=EN.whichSidebar(s))&&void 0!==e?e:""}),e.addCommand("ToggleView",(t,n)=>{if(EN.toggleView(s,n)){const t=s.element;a.mothership.broadcastOn([fv()],{target:t}),V(i,e=>{e.broadcastOn([fv()],{target:t})}),c(EN.whichView(s))&&(e.focus(),e.nodeChanged(),EN.refreshToolbar(s)),(e=>{e.dispatch("ToggleView")})(e)}}),e.addQueryValueHandler("ToggleView",()=>{var e;return null!==(e=EN.whichView(s))&&void 0!==e?e:""});const f=ax(e);f!==Pk.sliding&&f!==Pk.floating||e.on("ResizeWindow ResizeEditor ResizeContent",()=>{const n=e.getWin().innerWidth;n!==l.get()&&(EN.refreshToolbar(t.mainUi.outerContainer),l.set(n))});const m={setEnabled:e=>{kI(t,e?"setEnabled":"setDisabled")},isEnabled:()=>!nm.isDisabled(s)};return{iframeContainer:p.element.dom,editorContainer:s.element.dom,api:m}}});const FP=e=>g(e)?e+"px":e,VP=(e,t,n)=>{const o=t.filter(t=>e<t),r=n.filter(t=>e>t);return o.or(r).getOr(e)},zP=e=>{const t=$k(e),n=Yk(e),o=Xk(e);return(r=t,/^[0-9\.]+(|px)$/i.test(""+r)?I.some(parseInt(""+r,10)):I.none()).map(e=>VP(e,n,o));var r},{ToolbarLocation:UP,ToolbarMode:jP}=Zx,HP=(e,t,n,o,r)=>{const{mainUi:a,uiMotherships:i}=n,l=zk.DOM,s=Ux(e),c=qx(e),u=Xk(e).or(zP(e)),d=o.shared.header,p=d.isPositionedAtTop,f=ax(e),m=f===jP.sliding||f===jP.floating,g=_e(!1),h=()=>g.get()&&!e.removed,b=e=>m?e.fold(_(0),e=>e.components().length>1?ko(e.components()[1].element):0):0,v=()=>{V(i,e=>{e.broadcastOn([mv()],{})})},y=n=>{if(!h())return;s||r.on(e=>{const n=u.getOrThunk(()=>Br().width-Mo(t).left-10);co(e.element,"max-width",n+"px")});const o=No(),i=!(s||s||!(Do(a.outerContainer.element).left+To(a.outerContainer.element)>=window.innerWidth-40||go(a.outerContainer.element,"width").isSome())||(co(a.outerContainer.element,"position","absolute"),co(a.outerContainer.element,"left","0px"),vo(a.outerContainer.element,"width"),0));if(m&&EN.refreshToolbar(a.outerContainer),!s){const n=No(),l=qe(o.left!==n.left,o);((n,o)=>{r.on(r=>{const i=EN.getToolbar(a.outerContainer),l=b(i),s=Nr(t),c=((e,t)=>Gx(e)?zr(t):I.none())(e,a.outerContainer.element),u=c.fold(()=>s.x,e=>{const t=Nr(e);return _t(e,ao())?s.x:s.x-t.x}),d=qe(n,Math.ceil(a.outerContainer.element.dom.getBoundingClientRect().width)).filter(e=>e>150).map(e=>{const t=o.getOr(No()),n=window.innerWidth-(u-t.left),r=Math.max(Math.min(e,n),150);return n<e&&co(a.outerContainer.element,"width",r+"px"),{width:r+"px"}}).getOr({width:"max-content"}),f={position:"absolute",left:Math.round(u)+"px",top:c.fold(()=>p()?Math.max(s.y-ko(r.element)+l,0):s.bottom,e=>{var t;const n=Nr(e),o=null!==(t=e.dom.scrollTop)&&void 0!==t?t:0,a=_t(e,ao())?Math.max(s.y-ko(r.element)+l,0):s.y-n.y+o-ko(r.element)+l;return p()?a:s.bottom})+"px"};uo(a.outerContainer.element,{...f,...d})})})(i,l),l.each(e=>{Po(e.left,n.top)})}c&&r.on(n),v()},A=()=>!(s||!c||!h())&&r.get().exists(n=>{const o=d.getDockingMode(),i=(n=>{switch(lx(e)){case UP.auto:const e=EN.getToolbar(a.outerContainer),o=b(e),r=ko(n.element)-o,i=Nr(t);if(i.y>r)return"top";{const e=dn(t),n=Math.max(e.dom.scrollHeight,ko(e));return i.bottom<n-r||Fr().bottom<i.bottom-r?"bottom":"top"}case UP.bottom:return"bottom";case UP.top:default:return"top"}})(n);return i!==o&&(l=i,r.on(e=>{Im.setModes(e,[l]),d.setDockingMode(l);const t=p()?Ec.TopToBottom:Ec.BottomToTop;Gn(e.element,Sc,t)}),!0);var l});return{isVisible:h,isPositionedAtTop:p,show:()=>{g.set(!0),co(a.outerContainer.element,"display","flex"),l.addClass(e.getBody(),"mce-edit-focus"),V(i,e=>{vo(e.element,"display")}),A(),Gx(e)?y(e=>Im.isDocked(e)?Im.reset(e):Im.refresh(e)):y(Im.refresh)},hide:()=>{g.set(!1),co(a.outerContainer.element,"display","none"),l.removeClass(e.getBody(),"mce-edit-focus"),V(i,e=>{co(e.element,"display","none")})},update:y,updateMode:()=>{A()&&y(Im.reset)},repositionPopups:v}},qP=(e,t)=>{const n=Nr(e);return{pos:t?n.y:n.bottom,bounds:n}};var GP=Object.freeze({__proto__:null,render:(e,t,n,o,r)=>{const{mainUi:a}=t,i=We(),l=ct(r.targetNode),s=HP(e,l,t,o,i),c=ux(e);FN(e);const u=()=>{if(i.isSet())return void s.show();i.set(EN.getHeader(a.outerContainer).getOrDie());const r=jx(e);Gx(e)?(Fp(l,a.mothership),Fp(l,t.popupUi.mothership)):Rp(r,a.mothership),Rp(r,t.dialogUi.mothership);const u=()=>{MP(e,t,n,o),EN.setMenubar(a.outerContainer,IN(e,n)),s.show(),((e,t,n,o)=>{const r=_e(qP(t,n.isPositionedAtTop())),a=o=>{const{pos:a,bounds:i}=qP(t,n.isPositionedAtTop()),{pos:l,bounds:s}=r.get(),c=i.height!==s.height||i.width!==s.width;r.set({pos:a,bounds:i}),c&&mB(e,o),n.isVisible()&&(l!==a?n.update(Im.reset):c&&(n.updateMode(),n.repositionPopups()))};o||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",()=>n.update(Im.reset)),e.on("NodeChange keydown",e=>{requestAnimationFrame(()=>a(e))});let i=0;const l=ot(()=>n.update(Im.refresh),33);e.on("ScrollWindow",()=>{const e=No().left;e!==i&&(i=e,l.throttle()),n.updateMode()}),Gx(e)&&e.on("ElementScroll",e=>{n.update(Im.refresh)});const s=Ze();s.set(On(ct(e.getBody()),"load",e=>a(e.raw))),e.on("remove",()=>{s.clear()})})(e,l,s,c),e.nodeChanged()};c?e.once("SkinLoaded",u):u()};e.on("show",u),e.on("hide",s.hide),c||(e.on("focus",u),e.on("blur",s.hide)),e.on("init",()=>{(e.hasFocus()||c)&&u()}),xI(e,t);const d={show:u,hide:s.hide,setEnabled:e=>{kI(t,e?"setEnabled":"setDisabled")},isEnabled:()=>!nm.isDisabled(a.outerContainer)};return{editorContainer:a.outerContainer.element.dom,api:d}}});const KP="contexttoolbar-hide",ZP=(e,t,n)=>({setInputEnabled:t=>{!t&&n&&Mn(n),nm.set(e,!t)},isInputEnabled:()=>!nm.isDisabled(e),hide:()=>{Mc(e,zi())},back:()=>{Mc(e,YN)},getValue:()=>t.get().getOrThunk(()=>Yg.getValue(e)),setValue:n=>{e.getSystem().isConnected()?Yg.setValue(e,n):t.set(n)}}),WP=(e,t,n)=>Hc(TL,(o,r)=>{const a=e.get(o),i=ZP(a,n,o.element);t.onAction(i,r.event.buttonApi)}),$P=(e,t,n,o)=>{const r=F(t,t=>uv(((e,t,n,o)=>(e=>"contextformtogglebutton"===e.type)(t)?((e,t,n,o)=>{const{primary:r,...a}=t.original,i=Sa(kT({...a,type:"togglebutton",onAction:b}));return KN(i,n,[WP(e,t,o)])})(e,t,n,o):((e,t,n,o)=>{const{primary:r,...a}=t.original,i=Sa(yT({...a,type:"button",onAction:b}));return GN(i,n,[WP(e,t,o)])})(e,t,n,o))(e,t,n,o)));return{asSpecs:()=>F(r,e=>e.asSpec()),findPrimary:e=>re(t,(t,n)=>t.primary?I.from(r[n]).bind(t=>t.getOpt(e)).filter(w(nm.isDisabled)):I.none())}},YP=(e,t,n,o)=>{const{width:r,height:a}=e.initValue();let i=JL;const l=Pe("ratio-event"),s=e=>ZP(e,o),c=e=>uC(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons),u=()=>!1,d=e.label.getOr("Constrain proportions"),p=t.translate(d),f=Ky.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-lock-context-form-size-input","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":p,"data-mce-name":d}},components:[c("lock"),c("unlock")],buttonBehaviours:au([nm.config({disabled:u}),Ub.config({}),lv.config(t.tooltips.getConfig({tooltipText:p}))])}),m=e=>({dom:{tag:"div",classes:["tox-context-form__group"]},components:e}),g=e=>Go(e.element,"div.tox-focusable-wrapper").fold(I.none,e=>(Mn(e),I.some(!0))),h=e=>jy.parts.field({factory:Qy,inputClasses:["tox-textfield","tox-toolbar-textfield","tox-textfield-size"],data:e?r:a,inputBehaviours:au([nm.config({disabled:u}),Ub.config({}),du("size-input-toolbar-events",[Hc(yi(),(t,n)=>{Nc(t,l,{isField1:e})})]),Ap.config({mode:"special",onEnter:n,onEscape:g})]),selectOnFocus:!1}),v=e=>({dom:{tag:"label",classes:["tox-label"]},components:[Ef(t.translate(e))]}),y=e=>({dom:{tag:"div",classes:["tox-focusable-wrapper","tox-toolbar-nav-item"]},components:[e],behaviours:au([Ub.config({}),hu.config({}),Ap.config({mode:"special",onEnter:e=>Wo(e.element,"input").fold(I.none,e=>(Mn(e),I.some(!0)))})])}),_=y(Ky.parts.field1(m([jy.parts.label(v("Width:")),h(!0)]))),A=y(Ky.parts.field2(m([jy.parts.label(v("Height:")),h(!1)]))),k=_e(b),x=[gI({onBeforeSetup:e=>Wo(e.element,"input").each(Mn),onSetup:e.onSetup,getApi:s},k),bI({getApi:s},k,o)];return Ky.sketch({dom:{tag:"div",classes:["tox-context-form__group"]},components:[_,m([f]),A],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(e,t,n)=>{$L(Yg.getValue(e)).each(e=>{i(e).each(e=>{Yg.setValue(t,WL(e))})})},onInput:e=>Mc(e,wO),coupledFieldBehaviours:au([hu.config({}),Ap.config({mode:"flow",focusInside:Tl.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-focusable-wrapper"}),nm.config({disabled:u,onDisabled:e=>{Ky.getField1(e).bind(jy.getField).each(nm.disable),Ky.getField2(e).bind(jy.getField).each(nm.disable),Ky.getLock(e).each(nm.disable)},onEnabled:e=>{Ky.getField1(e).bind(jy.getField).each(nm.enable),Ky.getField2(e).bind(jy.getField).each(nm.enable),Ky.getLock(e).each(nm.enable)}}),wI(()=>t.checkUiComponentContext("mode:design")),du("size-input-toolbar-events2",[Hc(l,(e,t)=>{const n=t.event.isField1,o=n?Ky.getField1(e):Ky.getField2(e),r=n?Ky.getField2(e):Ky.getField1(e),a=o.map(Yg.getValue).getOr(""),l=r.map(Yg.getValue).getOr("");i=XL(a,l)}),Hc(wO,t=>e.onInput(s(t))),...x])])})},JP=(e,t,n)=>jy.sketch({dom:{tag:"div",classes:["tox-context-form__group"]},components:[...e.toArray(),t],fieldBehaviours:au([nm.config({disabled:()=>n.checkUiComponentContext("mode:design").shouldDisable,onDisabled:e=>{(e=>{Fn(e.element).each(e=>{Go(e,'[tabindex="-1"]').each(e=>{Mn(e)})})})(e),jy.getField(e).each(nm.disable)},onEnabled:e=>{jy.getField(e).each(nm.enable)}})])}),XP=(e,t,n,o)=>{const r=_e(b),a=e=>ZP(e,o),i=e.label.map(e=>jy.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Ef(t.translate(e))]})),l=jy.parts.field({factory:Qy,type:"range",inputClasses:["tox-toolbar-slider__input","tox-toolbar-nav-item"],inputAttributes:{min:String(e.min()),max:String(e.max())},data:e.initValue().toString(),fromInputValue:t=>(e=>{const t=parseFloat(e);return isNaN(t)?I.none():I.some(t)})(t).getOr(e.min()),toInputValue:e=>String(e),inputBehaviours:au([nm.config({disabled:()=>t.checkUiComponentContext("mode:design").shouldDisable}),wI(()=>t.checkUiComponentContext("mode:design")),Ap.config({mode:"special",onEnter:n,onLeft:(e,t)=>(t.cut(),I.none()),onRight:(e,t)=>(t.cut(),I.none())}),du("slider-events",[gI({onSetup:e.onSetup,getApi:a,onBeforeSetup:Ap.focusIn},r),bI({getApi:a},r,o),Hc(xi(),t=>{e.onInput(a(t))})])])});return JP(i,l,t)},QP=(e,t,n,o)=>{const r=_e(b),a=e=>ZP(e,o),i=e.label.map(e=>jy.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Ef(t.translate(e))]})),l={...e.placeholder.map(e=>({placeholder:t.translate(e)})).getOr({})},s=jy.parts.field({factory:Qy,inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-item"],inputAttributes:l,data:e.initValue(),selectOnFocus:!0,inputBehaviours:au([nm.config({disabled:()=>t.checkUiComponentContext("mode:design").shouldDisable}),wI(()=>t.checkUiComponentContext("mode:design")),Ap.config({mode:"special",onEnter:n,onLeft:(e,t)=>(t.cut(),I.none()),onRight:(e,t)=>(t.cut(),I.none())}),du("input-events",[gI({onSetup:e.onSetup,getApi:e=>Go(e.element,".tox-toolbar").bind(e=>Wo(e,"button:enabled")).fold(()=>ZP(e,o),t=>ZP(e,o,t)),onBeforeSetup:Ap.focusIn},r),bI({getApi:a},r,o),Hc(xi(),t=>{e.onInput(a(t))})])])});return JP(i,s,t)},eR=(e,t,n)=>{const o=We(),r=uv(e(n,e=>i.findPrimary(e).orThunk(()=>l.findPrimary(e)).map(e=>(Pc(e),!0)),o)),a=z(t.commands,e=>"start"===e.align),i=$P(r,a.pass,n,o),l=$P(r,a.fail,n,o);return U([{title:I.none(),label:I.none(),items:i.asSpecs()},{title:I.none(),label:I.none(),items:[r.asSpec()]},{title:I.none(),label:I.none(),items:l.asSpecs()}],e=>e.items.length>0)},tR=(e,t)=>{switch(e.type){case"contextform":return eR(x(QP,e),e,t);case"contextsliderform":return eR(x(XP,e),e,t);case"contextsizeinputform":return eR(x(YP,e),e,t)}},nR=(e,t,n)=>t.bottom-e.y>=n&&e.bottom-t.y>=n,oR=e=>{const t=(e=>{const t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){const n=_n(ct(e.startContainer),e.startOffset).element;return(rn(n)?fn(n):I.some(n)).filter(on).map(e=>e.dom.getBoundingClientRect()).getOr(t)}return t})(e.selection.getRng());if(e.inline){const e=No();return Mr(e.left+t.left,e.top+t.top,t.width,t.height)}{const n=Pr(ct(e.getBody()));return Mr(n.x+t.left,n.y+t.top,t.width,t.height)}},rR=(e,t,n,o=0)=>{const r=Br(window),a=Nr(ct(e.getContentAreaContainer())),i=Dx(e)||Px(e)||Fx(e),{x:l,width:s}=((e,t,n)=>{const o=Math.max(e.x+n,t.x);return{x:o,width:Math.min(e.right-n,t.right)-o}})(a,r,o);if(e.inline&&!i)return Mr(l,r.y,s,r.height);{const i=t.header.isPositionedAtTop(),{y:c,bottom:u}=((e,t,n,o,r,a)=>{const i=ct(e.getContainer()),l=Wo(i,".tox-editor-header").getOr(i),s=Nr(l),c=s.y>=t.bottom,u=o&&!c;if(e.inline&&u)return{y:Math.max(s.bottom+a,n.y),bottom:n.bottom};if(e.inline&&!u)return{y:n.y,bottom:Math.min(s.y-a,n.bottom)};const d="line"===r?Nr(i):t;return u?{y:Math.max(s.bottom+a,n.y),bottom:Math.min(d.bottom-a,n.bottom)}:{y:Math.max(d.y+a,n.y),bottom:Math.min(s.y-a,n.bottom)}})(e,a,r,i,n,o);return Mr(l,c,s,u-c)}},aR={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},iR={maxHeightFunction:wc(),maxWidthFunction:Cc()},lR=e=>"node"===e,sR=(e,t,n,o,r)=>{const a=oR(e),i=o.lastElement().exists(e=>_t(n,e));return((e,t)=>{const n=e.selection.getRng(),o=_n(ct(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&_t(o.element,t)})(e,n)?i?yc:mc:i?((e,n)=>{const r=go(e,"position");co(e,"position",n);const i=nR(a,Nr(t),-20)&&!o.isReposition()?Ac:yc;return r.each(t=>co(e,"position",t)),i})(t,o.getMode()):("fixed"===o.getMode()?r.y+No().top:r.y)+(ko(t)+12)<=a.y?mc:gc},cR=(e,t,n,o)=>{const r=t=>(o,r,a,i,l)=>({...sR(e,i,t,n,l)({...o,y:l.y,height:l.height},r,a,i,l),alwaysFit:!0}),a=e=>lR(o)?[r(e)]:[];return t?{onLtr:e=>[Ks,Us,js,Hs,qs,Gs].concat(a(e)),onRtl:e=>[Ks,js,Us,qs,Hs,Gs].concat(a(e))}:{onLtr:e=>[Gs,Ks,Hs,Us,qs,js].concat(a(e)),onRtl:e=>[Gs,Ks,qs,js,Hs,Us].concat(a(e))}},uR=(e,t)=>{const n=U(t,t=>t.predicate(e.dom)),{pass:o,fail:r}=z(n,e=>"contexttoolbar"===e.type);return{contextToolbars:o,contextForms:r}},dR=(e,t)=>{const n={},o=[],r=[],a={},i={},l=ae(e);return V(l,l=>{const s=e[l];"contextform"===s.type||"contextsliderform"===s.type||"contextsizeinputform"===s.type?((e,l)=>{const s=Sa(Ea("ContextForm",LT,l));n[e]=s,s.launch.map(n=>{a["form:"+e]={...l.launch,type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:()=>{t(s)}}}),"editor"===s.scope?r.push(s):o.push(s),i[e]=s})(l,s):"contexttoolbar"===s.type&&((e,n)=>{var l;(l=n,Ea("ContextToolbar",MT,l)).each(l=>{l.launch.isSome()&&(a["toolbar:"+e]={...n.launch,type:"button",onAction:()=>{t(l)}}),"editor"===n.scope?r.push(l):o.push(l),i[e]=l})})(l,s)}),{forms:n,inNodeScope:o,inEditorScope:r,lookupTable:i,formNavigators:a}},pR="tox-pop--transition",fR=(e,t,n,o)=>{const r=o.backstage,i=r.shared,l=Jt().deviceType.isTouch,s=We(),c=We(),u=We(),d=(e=>{const t=_e([]),n=Wy.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:e=>{t.set([]),Wy.getContent(e).each(e=>{vo(e.element,"visibility")}),rr(e.element,XN),vo(e.element,"width")},onHide:()=>{t.set([]),e.onHide()},inlineBehaviours:au([du("context-toolbar-events",[Yc(Si(),(e,t)=>{"width"===t.event.raw.propertyName&&(rr(e.element,XN),vo(e.element,"width"))}),Hc(JN,(e,t)=>{const n=e.element;vo(n,"width");const o=So(n),r=Fn(e.element).isSome();vo(n,"left"),vo(n,"right"),vo(n,"max-width"),Wy.setContent(e,t.event.contents),nr(n,XN);const a=So(n);co(n,"transition","none"),Wy.reposition(e),vo(n,"transition"),co(n,"width",o+"px"),t.event.focus.fold(()=>{r&&WN(e)},t=>{Rn(kn(e.element)).fold(()=>Mn(t),e=>{_t(e,t)||Mn(t)})}),setTimeout(()=>{co(e.element,"width",a+"px")},0)}),Hc($N,(e,n)=>{Wy.getContent(e).each(n=>{t.set(t.get().concat([{bar:n,focus:Rn(kn(e.element))}]))}),Nc(e,JN,{contents:n.event.forwardContents,focus:I.none()})}),Hc(YN,(n,o)=>{e.onBack(),ne(t.get()).each(e=>{t.set(t.get().slice(0,t.get().length-1)),Nc(n,JN,{contents:Of(e.bar),focus:e.focus})})})]),Ap.config({mode:"special",onEscape:n=>ne(t.get()).fold(()=>e.onEscape(),e=>(Mc(n,YN),I.some(!0)))})]),lazySink:()=>Ie.value(e.sink)});return{sketch:n,inSubtoolbar:()=>t.get().length>0}})({sink:n,onEscape:()=>(e.focus(),bB(e),I.some(!0)),onHide:()=>{bB(e)},onBack:()=>{(e=>{e.dispatch("ContextFormSlideBack")})(e)}}),p=Bf(d.sketch),f=()=>{const t=u.get().getOr("node"),n=lR(t)?1:0;return rR(e,i,t,n)},m=()=>!(e.removed||l()&&r.isContextMenuOpen()),g=()=>{if(m()){const t=f(),n=ze(u.get(),"node")?((e,t)=>t.filter(e=>ro(e)&&nn(e)).map(Pr).getOrThunk(()=>oR(e)))(e,s.get()):oR(e);return t.height<=0||!nR(n,t,.01)}return!0},h=()=>{s.clear(),c.clear(),u.clear(),Wy.hide(p)},v=()=>{if(Wy.isOpen(p)){const e=p.element;vo(e,"display"),g()?co(e,"display","none"):(c.set(0),Wy.reposition(p))}},y=t=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:au([Ap.config({mode:"acyclic"}),du("pop-dialog-wrap-events",[Jc(t=>{e.shortcuts.add("ctrl+F9","focus statusbar",()=>Ap.focusIn(t))}),Xc(t=>{e.shortcuts.remove("ctrl+F9")})])])}),_=e=>{const t=k([e]);Nc(p,$N,{forwardContents:y(t)})},A=rt(()=>dR(t,_)),k=t=>{const{buttons:n}=e.ui.registry.getAll(),r={...n,...A().formNavigators},l=ax(e)===Pk.scrolling?Pk.scrolling:Pk.default,s=K(F(t,t=>{return"contexttoolbar"===t.type?((t,n)=>DP(e,{buttons:t,toolbar:n.items,allowToolbarGroups:!1},o.backstage,I.some(["form:","toolbar:"])))(r,(n=t,{...n,launch:n.launch.getOrUndefined(),items:a(n.items)?n.items:F(n.items,NT)})):((e,t)=>tR(e,t))(t,i.providers);var n}));return aN({type:l,uid:Pe("context-toolbar"),initGroups:s,onEscape:I.none,cyclicKeying:!0,providers:i.providers})},x=(t,o)=>{if(C.cancel(),!m())return;const r=k(t),a=t[0].position,d=((t,o)=>{const r="node"===t?i.anchors.node(o):i.anchors.cursor(),a=((e,t,n,o)=>"line"===t?{bubble:As(12,0,aR),layouts:{onLtr:()=>[Zs],onRtl:()=>[Ws]},overrides:iR}:{bubble:As(0,12,aR,1/12),layouts:cR(e,n,o,t),overrides:iR})(e,t,l(),{lastElement:s.get,isReposition:()=>ze(c.get(),0),getMode:()=>Qh.getMode(n)});return Fe(r,a)})(a,o);u.set(a),c.set(1);const h=p.element;vo(h,"display"),(e=>ze(je(e,s.get(),_t),!0))(o)||(rr(h,pR),Qh.reset(n,p)),Wy.showWithinBounds(p,y(r),{anchor:d,transition:{classes:[pR],mode:"placement"}},()=>I.some(f())),o.fold(s.clear,s.set),g()&&co(h,"display","none")};let w=!1;const C=ot(()=>{!e.hasFocus()||e.removed||w||(ar(p.element,pR)?C.throttle():((e,t)=>{const n=ct(t.getBody()),o=e=>_t(e,n),r=ct(t.selection.getNode());return(e=>!o(e)&&!At(n,e))(r)?I.none():((e,t,n)=>{const o=uR(e,t);if(o.contextForms.length>0)return I.some({elem:e,toolbars:[o.contextForms[0]]});{const t=uR(e,n);if(t.contextForms.length>0)return I.some({elem:e,toolbars:[t.contextForms[0]]});if(o.contextToolbars.length>0||t.contextToolbars.length>0){const n=(e=>{if(e.length<=1)return e;{const t=t=>N(e,e=>e.position===t),n=t=>U(e,e=>e.position===t),o=t("selection"),r=t("node");if(o||r){if(r&&o){const e=n("node"),t=F(n("selection"),e=>({...e,position:"node"}));return e.concat(t)}return n(o?"selection":"node")}return n("line")}})(o.contextToolbars.concat(t.contextToolbars));return I.some({elem:e,toolbars:n})}return I.none()}})(r,e.inNodeScope,e.inEditorScope).orThunk(()=>((e,t,n)=>e(t)?I.none():hr(t,e=>{if(on(e)){const{contextToolbars:t,contextForms:o}=uR(e,n.inNodeScope),r=o.length>0?o:(e=>{if(e.length<=1)return e;{const t=t=>q(e,e=>e.position===t);return t("selection").orThunk(()=>t("node")).orThunk(()=>t("line")).map(e=>e.position).fold(()=>[],t=>U(e,e=>e.position===t))}})(t);return r.length>0?I.some({elem:e,toolbars:r}):I.none()}return I.none()},e))(o,r,e))})(A(),e).fold(h,e=>{x(e.toolbars,I.some(e.elem))}))},17);e.on("init",()=>{e.on("remove",h),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",v),e.on("click focus SetContent",C.throttle),e.on("keyup",e=>{var t;((t=e.keyCode)!==yP.ENTER&&t!==yP.SPACEBAR||!d.inSubtoolbar())&&C.throttle()}),e.on(KP,h),e.on("contexttoolbar-show",t=>{const n=A();he(n.lookupTable,t.toolbarKey).each(n=>{x([n],qe(t.target!==e,t.target)),WN(p)})}),e.on("focusout",t=>{Vk.setEditorTimeout(e,()=>{Fn(n.element).isNone()&&Fn(p.element).isNone()&&!e.hasFocus()&&h()},0)}),e.on("SwitchMode",()=>{e.mode.isReadOnly()&&h()}),e.on("DisabledStateChange",e=>{e.state&&h()}),e.on("ExecCommand",({command:e})=>{"toggleview"===e.toLowerCase()&&h()}),e.on("AfterProgressState",t=>{t.state?h():e.hasFocus()&&C.throttle()}),e.on("dragstart",()=>{w=!0}),e.on("dragend drop",()=>{w=!1}),e.on("NodeChange",e=>{d.inSubtoolbar()?(co(p.element,"transition","none"),v(),vo(p.element,"transition")):Fn(p.element).fold(C.throttle,b)})})},mR=(e,t)=>{const n=()=>{const n=t.getOptions(e),o=t.getCurrent(e).map(t.hash),r=We();return F(n,n=>({type:"togglemenuitem",text:t.display(n),onSetup:a=>{const i=e=>{e&&(r.on(e=>e.setActive(!1)),r.set(a)),a.setActive(e)};i(ze(o,t.hash(n)));const l=t.watcher(e,n,i);return()=>{r.clear(),l()}},onAction:()=>t.setCurrent(e,n)}))};e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:e=>e(n()),onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})},gR=e=>{mR(e,(e=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:Nx,hash:e=>(e=>Tr(e,["fixed","relative","empty"]).map(({value:e,unit:t})=>e+t))(e).getOr(e),display:A,watcher:(e,t,n)=>e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind,getCurrent:e=>I.from(e.queryCommandValue("LineHeight")),setCurrent:(e,t)=>e.execCommand("LineHeight",!1,t),onToolbarSetup:yB(e),onMenuSetup:yB(e)}))(e)),(e=>I.from(ox(e)).map(t=>({name:"language",text:"Language",icon:"language",getOptions:_(t),hash:e=>d(e.customCode)?e.code:`${e.code}/${e.customCode}`,display:e=>e.title,watcher:(e,t,n)=>{var o;return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:null!==(o=t.customCode)&&void 0!==o?o:null}).unbind},getCurrent:e=>{const t=ct(e.selection.getNode());return br(t,e=>I.some(e).filter(on).bind(e=>Wn(e,"lang").map(t=>({code:t,customCode:Wn(e,"data-mce-lang").getOrUndefined(),title:""}))))},setCurrent:(e,t)=>e.execCommand("Lang",!1,t),onToolbarSetup:t=>{const n=Ze();return t.setActive(e.formatter.match("lang",{},void 0,!0)),n.set(e.formatter.formatChanged("lang",t.setActive,!0)),vB(n.clear,yB(e)(t))},onMenuSetup:yB(e)})))(e).each(t=>mR(e,t))},hR=e=>AB(e,"NodeChange",t=>{t.setEnabled(e.queryCommandState("outdent")&&e.selection.isEditable())}),bR=(e,t)=>n=>{n.setActive(t.get());const o=e=>{t.set(e.state),n.setActive(e.state)};return e.on("PastePlainTextToggle",o),vB(()=>e.off("PastePlainTextToggle",o),yB(e)(n))},vR=(e,t)=>()=>{e.execCommand("mceToggleFormat",!1,t)},yR=e=>{(e=>{(e=>{oL.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(t,n)=>{e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:_B(e,t.name),onAction:vR(e,t.name),shortcut:t.shortcut})});for(let t=1;t<=6;t++){const n="h"+t,o=`Access+${t}`;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:_B(e,n),onAction:vR(e,n),shortcut:o})}})(e),(e=>{oL.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy",context:"any"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0",context:"any"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A",context:"any"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P",context:"any"}],t=>{e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:xB(e,t.action),shortcut:t.shortcut,context:t.context})}),oL.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],t=>{e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:yB(e),onAction:xB(e,t.action)})})})(e),(e=>{oL.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],t=>{e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:xB(e,t.action),onSetup:_B(e,t.name)})})})(e)})(e),(e=>{oL.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C",context:"any"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A",context:"any"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P",context:"any"}],t=>{e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:xB(e,t.action),context:t.context})}),oL.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],t=>{e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onSetup:yB(e),onAction:xB(e,t.action)})}),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:yB(e),onAction:vR(e,"code")})})(e)},_R=(e,t)=>AB(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",n=>{n.setEnabled(!e.mode.isReadOnly()&&e.undoManager[t]())}),AR=e=>AB(e,"VisualAid",t=>{t.setActive(e.hasVisual)}),kR=(e,t)=>{(e=>{V([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],t=>{e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:xB(e,t.cmd),onSetup:_B(e,t.name)})}),e.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:yB(e),onAction:xB(e,"JustifyNone")})})(e),yR(e),((e,t)=>{((e,t)=>{const n=tP(t,sP(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),onSetup:yB(e),getSubmenuItems:()=>n.items.validateItems(n.getStyleItems())})})(e,t),((e,t)=>{const n=tP(t,vP(e));e.ui.registry.addNestedMenuItem("fontfamily",{text:t.shared.providers.translate("Fonts"),onSetup:yB(e),getSubmenuItems:()=>n.items.validateItems(n.getStyleItems())})})(e,t),((e,t)=>{const n={type:"advanced",...t.styles},o=tP(t,TP(e,n));e.ui.registry.addNestedMenuItem("styles",{text:"Formats",onSetup:yB(e,()=>o.getStyleItems().length>0),getSubmenuItems:()=>o.items.validateItems(o.getStyleItems())})})(e,t),((e,t)=>{const n=tP(t,pP(e));e.ui.registry.addNestedMenuItem("blocks",{text:"Blocks",onSetup:yB(e),getSubmenuItems:()=>n.items.validateItems(n.getStyleItems())})})(e,t),((e,t)=>{const n=tP(t,EP(e));e.ui.registry.addNestedMenuItem("fontsize",{text:"Font sizes",onSetup:yB(e),getSubmenuItems:()=>n.items.validateItems(n.getStyleItems())})})(e,t)})(e,t),(e=>{(e=>{e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:_R(e,"hasUndo"),onAction:xB(e,"undo")}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:_R(e,"hasRedo"),onAction:xB(e,"redo")})})(e),(e=>{e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:_R(e,"hasUndo"),onAction:xB(e,"undo"),shortcut:"Meta+Z"}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:_R(e,"hasRedo"),onAction:xB(e,"redo"),shortcut:"Meta+Y"})})(e)})(e),(e=>{(e=>{e.addCommand("mceApplyTextcolor",(t,n)=>{((e,t,n)=>{e.undoManager.transact(()=>{e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()})})(e,t,n)}),e.addCommand("mceRemoveTextcolor",t=>{((e,t)=>{e.undoManager.transact(()=>{e.focus(),e.formatter.remove(t,{value:null},void 0,!0),e.nodeChanged()})})(e,t)})})(e);const t=FB(e),n=VB(e),o=_e(t),r=_e(n);$B(e,"forecolor","forecolor",o),$B(e,"backcolor","hilitecolor",r),YB(e,"forecolor","forecolor","Text color",o),YB(e,"backcolor","hilitecolor","Background color",r)})(e),(e=>{(e=>{e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:xB(e,"mceToggleVisualAid"),context:"any"})})(e),(e=>{e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:AR(e),onAction:xB(e,"mceToggleVisualAid"),context:"any"})})(e)})(e),(e=>{(e=>{e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:hR(e),onAction:xB(e,"outdent")}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:yB(e),onAction:xB(e,"indent")})})(e)})(e),gR(e),(e=>{const t=_e(Ex(e)),n=()=>e.execCommand("mceTogglePlainTextPaste");e.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:bR(e,t)}),e.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:bR(e,t)})})(e),(e=>{e.ui.registry.addContext("editable",()=>e.selection.isEditable()),e.ui.registry.addContext("mode",t=>e.mode.get()===t),e.ui.registry.addContext("any",T),e.ui.registry.addContext("formatting",t=>e.formatter.canApply(t)),e.ui.registry.addContext("insert",t=>e.schema.isValidChild(e.selection.getNode().tagName,t))})(e)},xR=e=>a(e)?e.split(/[ ,]/):e,wR=e=>t=>t.options.get(e),CR=wR("contextmenu_never_use_native"),ER=wR("contextmenu_avoid_overlap"),SR=e=>{const t=e.ui.registry.getAll().contextMenus,n=e.options.get("contextmenu");return e.options.isSet("contextmenu")?n:U(n,e=>be(t,e))},TR=(e,t)=>({type:"makeshift",x:e,y:t}),IR=e=>"longpress"===e.type||0===e.type.indexOf("touch"),BR=(e,t)=>"contextmenu"===t.type||"longpress"===t.type?e.inline?(e=>{if(IR(e)){const t=e.touches[0];return TR(t.pageX,t.pageY)}return TR(e.pageX,e.pageY)})(t):((e,t)=>{const n=zk.DOM.getPos(e);return((e,t,n)=>TR(e.x+t,e.y+n))(t,n.x,n.y)})(e.getContentAreaContainer(),(e=>{if(IR(e)){const t=e.touches[0];return TR(t.clientX,t.clientY)}return TR(e.clientX,e.clientY)})(t)):OR(e),OR=e=>({type:"selection",root:ct(e.selection.getNode())}),LR=(e,t,n)=>{switch(n){case"node":return(e=>({type:"node",node:I.some(ct(e.selection.getNode())),root:ct(e.getBody())}))(e);case"point":return BR(e,t);case"selection":return OR(e)}},DR=(e,t,n,o,r,a)=>{const i=n(),l=LR(e,t,a);HL(i,gC.CLOSE_ON_EXECUTE,o,{isHorizontalMenu:!1,search:I.none()}).map(e=>{t.preventDefault(),Wy.showMenuAt(r,{anchor:l},{menu:{markers:BC("normal")},data:e})})},MR={onLtr:()=>[Ks,Us,js,Hs,qs,Gs,mc,gc,fc,dc,pc,uc],onRtl:()=>[Ks,js,Us,qs,Hs,Gs,mc,gc,pc,uc,fc,dc]},NR={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},PR=(e,t,n,o,r,a)=>{const i=Jt(),l=i.os.isiOS(),s=i.os.isMacOS(),c=i.os.isAndroid(),u=i.deviceType.isTouch(),d=()=>{const i=n();((e,t,n,o,r,a,i)=>{const l=((e,t,n)=>{const o=LR(e,t,n);return{bubble:As(0,"point"===n?12:0,NR),layouts:MR,overrides:{maxWidthFunction:Cc(),maxHeightFunction:wc()},...o}})(e,t,a);HL(n,gC.CLOSE_ON_EXECUTE,o,{isHorizontalMenu:!0,search:I.none()}).map(n=>{t.preventDefault();const s=i?Ic.HighlightMenuAndItem:Ic.HighlightNone;Wy.showMenuWithinBounds(r,{anchor:l},{menu:{markers:BC("normal"),highlightOnOpen:s},data:n,type:"horizontal"},()=>I.some(rR(e,o.shared,"node"===a?"node":"selection"))),e.dispatch(KP)})})(e,t,i,o,r,a,!(c||l||s&&u))};if((s||l)&&"node"!==a){const n=()=>{(e=>{const t=e.selection.getRng(),n=()=>{Vk.setEditorTimeout(e,()=>{e.selection.setRng(t)},10),a()};e.once("touchend",n);const o=e=>{e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",o,!0);const r=()=>a();e.once("longpresscancel",r);const a=()=>{e.off("touchend",n),e.off("longpresscancel",r),e.off("mousedown",o)}})(e),d()};((e,t)=>{const n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;{const o=t.touches[0],r=n.getRng();return Cr(e.getWin(),kr.domRange(r)).exists(e=>e.left<=o.clientX&&e.right>=o.clientX&&e.top<=o.clientY&&e.bottom>=o.clientY)}})(e,t)?n():(e.once("selectionchange",n),e.once("touchend",()=>e.off("selectionchange",n)))}else d()},RR=e=>a(e)?"|"===e:"separator"===e.type,FR={type:"separator"},VR=e=>{const t=e=>({text:e.text,icon:e.icon,enabled:e.enabled,shortcut:e.shortcut});if(a(e))return e;switch(e.type){case"separator":return FR;case"submenu":return{type:"nestedmenuitem",...t(e),getSubmenuItems:()=>{const t=e.getSubmenuItems();return a(t)?t:F(t,VR)}};default:const n=e;return{type:"menuitem",...t(n),onAction:v(n.onAction)}}},zR=(e,t)=>{if(0===t.length)return e;const n=ne(e).filter(e=>!RR(e)).fold(()=>[],e=>[FR]);return e.concat(n).concat(t).concat([FR])},UR=(e,t)=>!(e=>"longpress"===e.type||be(e,"touches"))(t)&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType),jR=(e,t)=>UR(e,t)?e.selection.getStart(!0):t.target,HR=(e,t,n)=>{const o=Jt().deviceType.isTouch,r=Bf(Wy.sketch({dom:{tag:"div"},lazySink:t,onEscape:()=>e.focus(),onShow:()=>n.setContextMenuState(!0),onHide:()=>n.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:au([du("dismissContextMenu",[Hc($i(),(t,n)=>{bb.close(t),e.focus()})])])})),i=()=>Wy.hide(r),l=t=>{if(CR(e)&&t.preventDefault(),((e,t)=>t.ctrlKey&&!CR(e))(e,t)||(e=>0===SR(e).length)(e))return;const i=((e,t)=>{const n=ER(e),o=UR(e,t)?"selection":"point";if(tt(n)){const r=jR(e,t);return mr(ct(r),n)?"node":o}return o})(e,t);(o()?PR:DR)(e,t,()=>{const n=jR(e,t),o=e.ui.registry.getAll(),r=SR(e);return((e,t,n)=>{const o=H(t,(t,o)=>he(e,o.toLowerCase()).map(e=>{const o=e.update(n);if(a(o)&&tt(et(o)))return zR(t,o.split(" "));if(s(o)&&o.length>0){const e=F(o,VR);return zR(t,e)}return t}).getOrThunk(()=>t.concat([o])),[]);return o.length>0&&RR(o[o.length-1])&&o.pop(),o})(o.contextMenus,r,n)},n,r,i)};e.on("init",()=>{const t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(o()?"":" ResizeWindow");e.on(t,i),e.on("longpress contextmenu",l)})},qR=(e,t,n,o,r,a)=>e.fold(()=>Tg.snap({sensor:zm(n-20,o-20),range:Oo(r,a),output:zm(I.some(n),I.some(o)),extra:{td:t}}),e=>{const r=n-20,a=o-20,i=e.element.dom.getBoundingClientRect();return Tg.snap({sensor:zm(r,a),range:Oo(40,40),output:zm(I.some(n-i.width/2),I.some(o-i.height/2)),extra:{td:t}})}),GR=(e,t,n)=>({getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(e,o)=>{const r=o.td;((e,t)=>e.exists(e=>_t(e,t)))(t.get(),r)||(t.set(r),n(r))},mustSnap:!0}),KR=e=>uv(Ev.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:au([Tg.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),sv.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),ZR=(e,t)=>{const n=_e([]),o=_e([]),r=_e(!1),a=We(),i=We(),l=e=>{const n=Pr(e);return qR(d.getOpt(t),e,n.x,n.y,n.width,n.height)},s=e=>{const n=Pr(e);return qR(p.getOpt(t),e,n.right,n.bottom,n.width,n.height)},c=GR(()=>F(n.get(),e=>l(e)),a,t=>{i.get().each(n=>{e.dispatch("TableSelectorChange",{start:t,finish:n})})}),u=GR(()=>F(o.get(),e=>s(e)),i,t=>{a.get().each(n=>{e.dispatch("TableSelectorChange",{start:n,finish:t})})}),d=KR(c),p=KR(u),f=Bf(d.asSpec()),m=Bf(p.asSpec()),g=(t,n,o,r)=>{const a=o(n);Tg.snapTo(t,a),((t,n)=>{const o=n.dom.getBoundingClientRect();vo(t.element,"display");const a=pn(ct(e.getBody())).dom.innerHeight,i=o[r]<0,l=((e,t)=>e[r]>t)(o,a);(i||l)&&co(t.element,"display","none")})(t,n)},h=e=>g(f,e,l,"top"),b=e=>g(m,e,s,"bottom");if(Jt().deviceType.isTouch()){const l=e=>F(e,ct);e.on("TableSelectionChange",e=>{r.get()||(Lp(t,f),Lp(t,m),r.set(!0));const s=ct(e.start),c=ct(e.finish);a.set(s),i.set(c),I.from(e.otherCells).each(e=>{n.set(l(e.upOrLeftCells)),o.set(l(e.downOrRightCells)),h(s),b(c)})}),e.on("ResizeEditor ResizeWindow ScrollContent",()=>{a.get().each(h),i.get().each(b)}),e.on("TableSelectionClear",()=>{r.get()&&(Np(f),Np(m),r.set(!1)),a.clear(),i.clear()})}},WR=e=>"BR"===e.nodeName||!!e.getAttribute("data-mce-bogus")||"bookmark"===e.getAttribute("data-mce-type"),$R=(e,t,n)=>{var o;const r=null!==(o=t.delimiter)&&void 0!==o?o:"âº";return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:au([Ap.config({mode:"flow",selector:"div[role=button]"}),nm.config({disabled:n.isDisabled}),wI(()=>n.checkUiComponentContext("any")),Ub.config({}),Qp.config({}),du("elementPathEvents",[Jc((t,o)=>{e.shortcuts.add("alt+F11","focus statusbar elementpath",()=>Ap.focusIn(t)),e.on("NodeChange",o=>{const a=(t=>{const n=[];let o=t.length;for(;o-- >0;){const r=t[o];if(1===r.nodeType&&!WR(r)){const t=hB(e,r);if(t.isDefaultPrevented()||n.push({name:t.name,element:r}),t.isPropagationStopped())break}}return n})(o.parents),i=a.length>0?H(a,(t,o,a)=>{const i=((t,o,r)=>Ev.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":r}}
2,components:[Ef(t)],action:t=>{e.focus(),e.selection.select(o),e.nodeChanged()},buttonBehaviours:au([lv.config({...n.tooltips.getConfig({tooltipText:n.translate(["Select the {0} element",o.nodeName.toLowerCase()]),onShow:(e,t)=>{((e,t)=>{const n=I.from(Zn(e,"id")).getOrThunk(()=>{const e=Pe("aria");return Gn(t,"id",e),e});Gn(e,"aria-describedby",n)})(e.element,t.element)},onHide:e=>{var t;t=e.element,Yn(t,"aria-describedby")}})}),dI(n.isDisabled),wI(()=>n.checkUiComponentContext("any"))])}))(o.name,o.element,a);return 0===a?t.concat([i]):t.concat([{dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[Ef(` ${r} `)]},i])},[]):[];Qp.set(t,i)})})])]),components:[]}};var YR;!function(e){e[e.None=0]="None",e[e.Both=1]="Both",e[e.Vertical=2]="Vertical"}(YR||(YR={}));const JR=(e,t,n)=>{const o=ct(e.getContainer()),r=((e,t,n,o,r)=>{const a={height:VP(o+t.top,Jk(e),Qk(e))};return n===YR.Both&&(a.width=VP(r+t.left,Yk(e),Xk(e))),a})(e,t,n,ko(o),So(o));le(r,(e,t)=>{g(e)&&co(o,t,FP(e))}),(e=>{e.dispatch("ResizeEditor")})(e)},XR=(e,t,n,o)=>{const r=Oo(20*n,20*o);return JR(e,r,t),I.some(!0)},QR=(e,t)=>{const n=()=>{const n=[],o=Ix(e),r=xx(e),a=wx(e)||e.hasPlugin("wordcount");return r&&n.push($R(e,{},t)),o&&n.push((()=>{const e=OI("Alt+0");return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[Ef(tC.translate(["Press {0} for help",e]))]}})()),a&&n.push((()=>{const n=[];return e.hasPlugin("wordcount")&&n.push(((e,t)=>{const n=(e,n,o)=>Qp.set(e,[Ef(t.translate(["{0} "+o,n[o]]))]);return Ev.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:au([dI(t.isDisabled),wI(()=>t.checkUiComponentContext("any")),Ub.config({}),Qp.config({}),Yg.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),du("wordcount-events",[eu(e=>{const t=Yg.getValue(e),o="words"===t.mode?"characters":"words";Yg.setValue(e,{mode:o,count:t.count}),n(e,t.count,o)}),Jc(t=>{e.on("wordCountUpdate",e=>{const{mode:o}=Yg.getValue(t);Yg.setValue(t,{mode:o,count:e.wordCount}),n(t,e.wordCount,o)})})])]),eventOrder:{[Pi()]:["disabling","alloy.base.behaviour","wordcount-events"]}})})(e,t)),wx(e)&&n.push({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":e.translate(["Build with {0}","TinyMCE"])},innerHtml:e.translate(["Build with {0}",'<svg height="16" viewBox="0 0 80 16" width="80" xmlns="http://www.w3.org/2000/svg"><g opacity=".8"><path d="m80 3.537v-2.202h-7.976v11.585h7.976v-2.25h-5.474v-2.621h4.812v-2.069h-4.812v-2.443zm-10.647 6.929c-.493.217-1.13.337-1.864.337s-1.276-.156-1.805-.47a3.732 3.732 0 0 1 -1.3-1.298c-.324-.554-.48-1.191-.48-1.877s.156-1.335.48-1.877a3.635 3.635 0 0 1 1.3-1.299 3.466 3.466 0 0 1 1.805-.481c.65 0 .914.06 1.263.18.36.12.698.277.986.47.289.192.578.384.842.6l.12.085v-2.586l-.023-.024c-.385-.35-.855-.614-1.384-.818-.53-.205-1.155-.313-1.877-.313-.721 0-1.6.144-2.333.445a5.773 5.773 0 0 0 -1.937 1.251 5.929 5.929 0 0 0 -1.324 1.9c-.324.735-.48 1.565-.48 2.455s.156 1.72.48 2.454c.325.734.758 1.383 1.324 1.913.553.53 1.215.938 1.937 1.25a6.286 6.286 0 0 0 2.333.434c.819 0 1.384-.108 1.961-.313.59-.216 1.083-.505 1.468-.866l.024-.024v-2.49l-.12.096c-.41.337-.878.626-1.396.866zm-14.869-4.15-4.8-5.04-.024-.025h-.902v11.67h2.502v-6.847l2.827 3.08.385.409.397-.41 2.791-3.067v6.845h2.502v-11.679h-.902l-4.788 5.052z"/><path clip-rule="evenodd" d="m15.543 5.137c0-3.032-2.466-5.113-4.957-5.137-.36 0-.745.024-1.094.096-.157.024-3.85.758-3.85.758-3.032.602-4.62 2.466-4.704 4.788-.024.89-.024 4.27-.024 4.27.036 3.165 2.406 5.138 5.017 5.126.337 0 1.119-.109 1.287-.145.144-.024.385-.084.746-.144.661-.12 1.684-.325 3.067-.602 2.37-.409 4.103-2.009 4.44-4.33.156-1.023.084-4.692.084-4.692zm-3.213 3.308-2.346.457v2.31l-5.859 1.143v-5.75l2.346-.458v3.441l3.513-.686v-3.44l-3.513.685v-2.297l5.859-1.143v5.75zm20.09-3.296-.083-1.023h-2.13v8.794h2.346v-4.884c0-1.107.95-1.985 2.057-1.997 1.095 0 1.901.89 1.901 1.997v4.884h2.346v-5.245c-.012-2.105-1.588-3.777-3.67-3.765a3.764 3.764 0 0 0 -2.778 1.25l.012-.011zm-6.014-4.102 2.346-.458v2.298l-2.346.457z" fill-rule="evenodd"/>
2<path d="m28.752 4.126h-2.346v8.794h2.346z"/><path clip-rule="evenodd" d="m43.777 15.483 4.043-11.357h-2.418l-1.54 4.355-.445 1.324-.36-1.324-1.54-4.355h-2.418l3.151 8.794-1.083 3.08zm-21.028-5.51c0 .722.541 1.034.878 1.034s.638-.048.95-.144l.518 1.708c-.217.145-.879.518-2.13.518a2.565 2.565 0 0 1 -2.562-2.587c-.024-1.082-.024-2.49 0-4.21h-1.54v-2.142h1.54v-1.912l2.346-.458v2.37h2.201v2.142h-2.2v3.693-.012z" fill-rule="evenodd"/></g></svg>\n'.trim()])},behaviours:au([hu.config({})])}]}),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:n}})()),n.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...(()=>{const e="tox-statusbar__text-container--flex-start",t="tox-statusbar__text-container--flex-end";if(o){const n="tox-statusbar__text-container-3-cols";return a||r?a&&!r?[n,t]:[n,e]:[n,"tox-statusbar__text-container--space-around"]}return[a&&!r?t:e]})()]},components:n}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const o=n(),r=((e,t)=>{const n=(e=>{const t=Cx(e);return!1===t?YR.None:"both"===t?YR.Both:YR.Vertical})(e);if(n===YR.None)return I.none();const o=n===YR.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.",r=n===YR.Both?"tox-statusbar__resize-cursor-both":"tox-statusbar__resize-cursor-default";return I.some(uC("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle",r],attributes:{"aria-label":t.translate(o),"data-mce-name":"resize-handle"},behaviours:[Tg.config({mode:"mouse",repositionTarget:!1,onDrag:(t,o,r)=>JR(e,r,n),blockerClass:"tox-blocker"}),Ap.config({mode:"special",onLeft:()=>XR(e,n,-1,0),onRight:()=>XR(e,n,1,0),onUp:()=>XR(e,n,0,-1),onDown:()=>XR(e,n,0,1)}),Ub.config({}),hu.config({}),lv.config(t.tooltips.getConfig({tooltipText:t.translate("Resize")}))]},t.icons))})(e,t);return o.concat(r.toArray())})()}},eF=(e,t)=>t.get().getOrDie(`UI for ${e} has not been rendered`),tF=(e,t)=>{const n=e.inline,o=n?GP:RP,r=qx(e)?jM:LM,a=(()=>{const e=We(),t=We(),n=We();return{dialogUi:e,popupUi:t,mainUi:n,getUiMotherships:()=>{const n=e.get().map(e=>e.mothership),o=t.get().map(e=>e.mothership);return n.fold(()=>o.toArray(),e=>o.fold(()=>[e],t=>_t(e.element,t.element)?[e]:[e,t]))},lazyGetInOuterOrDie:(e,t)=>()=>n.get().bind(e=>t(e.outerContainer)).getOrDie(`Could not find ${e} element in OuterContainer`)}})(),i=We(),l=We(),s=We(),c=Jt().deviceType.isTouch()?["tox-platform-touch"]:[],u=Vx(e),d=ax(e),p=uv({dom:{tag:"div",classes:["tox-anchorbar"]}}),f=uv({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),m=()=>a.mainUi.get().map(e=>e.outerContainer).bind(EN.getHeader),g=a.lazyGetInOuterOrDie("anchor bar",p.getOpt),h=a.lazyGetInOuterOrDie("bottom anchor bar",f.getOpt),b=a.lazyGetInOuterOrDie("toolbar",EN.getToolbar),v=a.lazyGetInOuterOrDie("throbber",EN.getThrobber),y=((e,t,n,o)=>{const r=_e(!1),a=(e=>{const t=_e(Vx(e)?"bottom":"top");return{isPositionedAtTop:()=>"top"===t.get(),getDockingMode:t.get,setDockingMode:t.set}})(t),i={icons:()=>t.ui.registry.getAll().icons,menuItems:()=>t.ui.registry.getAll().menuItems,translate:tC.translate,isDisabled:()=>!t.ui.isEnabled(),getOption:t.options.get,tooltips:nM(e.dialog),checkUiComponentContext:e=>{if(Zk(t))return{contextType:"disabled",shouldDisable:!0};const[n,o=""]=e.split(":"),r=t.ui.registry.getAll().contexts;return{contextType:n,shouldDisable:!he(r,n).fold(()=>he(r,"mode").map(e=>e("design")).getOr(!1),e=>"!"===o.charAt(0)?!e(o.slice(1)):e(o))}}},l=SM(t),s=(e=>{const t=t=>()=>e.formatter.match(t),n=t=>()=>{const n=e.formatter.get(t);return void 0!==n?I.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):I.none()},o=_e([]),r=_e([]),a=_e(!1);return e.on("PreInit",r=>{const a=QD(e),i=tM(e,a,t,n);o.set(i)}),e.on("addStyleModifications",o=>{const i=tM(e,o.items,t,n);r.set(i),a.set(o.replace)}),{getData:()=>{const e=a.get()?[]:o.get(),t=r.get();return e.concat(t)}}})(t),c=(e=>({colorPicker:qD(e),hasCustomColors:GD(e),getColors:KD(e),getColorCols:ZD(e)}))(t),u=(e=>({isDraggableModal:WD(e)}))(t),d={shared:{providers:i,anchors:HD(t,n,o,a.isPositionedAtTop),header:a},urlinput:l,styles:s,colorinput:c,dialog:u,isContextMenuOpen:()=>r.get(),setContextMenuState:e=>r.set(e)},p=e=>I.none(),f={...d,shared:{...d.shared,interpreter:e=>PD(e,{},f,p),getSink:e.popup}},m={...d,shared:{...d.shared,interpreter:e=>PD(e,{},m,p),getSink:e.dialog}};return{popup:f,dialog:m}})({popup:()=>Ie.fromOption(a.popupUi.get().map(e=>e.sink),"(popup) UI has not been rendered"),dialog:()=>Ie.fromOption(a.dialogUi.get().map(e=>e.sink),"UI has not been rendered")},e,g,h),_=()=>{const t=(()=>{const t={attributes:{[Sc]:u?Ec.BottomToTop:Ec.TopToBottom}},n=EN.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:y.popup,onEscape:()=>{e.focus()}}),o=EN.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:y.popup.shared.getSink,providers:y.popup.shared.providers,onEscape:()=>{e.focus()},onToolbarToggled:t=>{((e,t)=>
vendor: 4,777 bytes, line 2
2{e.dispatch("ToggleToolbarDrawer",{state:t})})(e,t)},type:d,lazyToolbar:b,lazyHeader:()=>m().getOrDie("Could not find header element"),...t}),r=EN.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:y.popup.shared.providers,onEscape:()=>{e.focus()},type:d}),a=Fx(e),i=Px(e),l=Dx(e),s=Tx(e),c=a||i||l,f=[(g=s,EN.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]},promotionLink:g})),n];var g;return EN.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(c?[]:["tox-editor-header--empty"]),...t},components:K([l?f:[],a?[r]:i?[o]:[],Ux(e)?[]:[p.asSpec()]]),sticky:qx(e),editor:e,sharedBackstage:y.popup.shared})})(),o={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[EN.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),EN.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}})]},r=EN.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:y.popup}),a=EN.parts.viewWrapper({backstage:y.popup}),l=kx(e)&&!n?I.some(QR(e,y.popup.shared.providers)):I.none(),s=K([u?[]:[t],n?[]:[o],u?[t]:[]]),g=EN.parts.editorContainer({components:K([s,n?[]:[f.asSpec()]])}),h=Hx(e),v={role:"application",...tC.isRtl()?{dir:"rtl"}:{},...h?{"aria-hidden":"true"}:{}},_=Bf(EN.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(u?["tox-tinymce--toolbar-bottom"]:[]).concat(c),styles:{visibility:"hidden",...h?{opacity:"0",border:"0"}:{}},attributes:v},components:[g,...n?[]:[a,...l.toArray()],r],behaviours:au([wI(()=>y.popup.shared.providers.checkUiComponentContext("any")),nm.config({disableClass:"tox-tinymce--disabled"}),Ap.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),A=xv(_);return i.set(A),{mothership:A,outerContainer:_}},A=t=>{const n=FP((e=>(e=>{const t=((e,t)=>{if("number"==typeof t)return I.from(t);const n=/^([0-9.]+)(pt|em|px)$/.exec(t.trim());if(n){const t=n[2],o=Number.parseFloat(n[1]);if(Number.isNaN(o)||o<0)return I.none();if("em"===t)return I.from(o*Number.parseFloat(window.getComputedStyle(e.dom).fontSize));if("pt"===t)return I.from(.75*o);if("px"===t)return I.from(o)}return I.none()})(ct(e.targetElm),Wk(e)),n=Jk(e),o=Qk(e);return t.map(e=>VP(e,n,o))})(e).getOr(Wk(e)))(e)),o=FP((e=>zP(e).getOr($k(e)))(e));return e.inline||(bo("div","width",o)&&co(t.element,"width",o),bo("div","height",n)?co(t.element,"height",n):co(t.element,"height","400px")),n};return{popups:{backstage:y.popup,getMothership:()=>eF("popups",s)},dialogs:{backstage:y.dialog,getMothership:()=>eF("dialogs",l)},renderUI:()=>{const n=_(),i=(()=>{const t=jx(e),n=_t(ao(),t)&&"grid"===fo(t,"display"),o={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(c),attributes:{...tC.isRtl()?{dir:"rtl"}:{}}},behaviours:au([Qh.config({useFixed:()=>r.isDocked(m)})])},a={dom:{styles:{width:document.body.clientWidth+"px"}},events:zc([Hc(Ki(),e=>{co(e.element,"width",document.body.clientWidth+"px")})])},i=Bf(Fe(o,n?a:{})),s=xv(i);return l.set(s),{sink:i,mothership:s}})(),u=Gx(e)?(()=>{const e={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(c),attributes:{...tC.isRtl()?{dir:"rtl"}:{}}},behaviours:au([Qh.config({useFixed:()=>r.isDocked(m),getBounds:()=>t.getPopupSinkBounds()})])},n=Bf(e),o=xv(n);return s.set(o),{sink:n,mothership:o}})():(e=>(s.set(e.mothership),e))(i);a.dialogUi.set(i),a.popupUi.set(u),a.mainUi.set(n);return(t=>{const{mainUi:n,popupUi:a,uiMotherships:i}=t;se(ix(e),(t,n)=>{e.ui.registry.addGroupToolbarButton(n,t)});const{buttons:l,menuItems:s,contextToolbars:c,sidebars:u,views:p}=e.ui.registry.getAll(),f=Rx(e),g={menuItems:s,menus:Kx(e),menubar:px(e),toolbar:f.getOrThunk(()=>fx(e)),allowToolbarGroups:d===Pk.floating,buttons:l,sidebar:u,views:p};var h;h=n.outerContainer,e.addShortcut("alt+F9","focus menubar",()=>{EN.focusMenubar(h)}),e.addShortcut("alt+F10","focus toolbar",()=>{EN.focusToolbar(h)}),e.addCommand("ToggleToolbarDrawer",(e,t)=>{(null==t?void 0:t.skipFocus)?EN.toggleToolbarDrawerWithoutFocusing(h):EN.toggleToolbarDrawer(h)}),e.addQueryStateHandler("ToggleToolbarDrawer",()=>EN.isToolbarDrawerToggled(h)),((e,t,n)=>{const o=(e,o)=>{V([t,...n],t=>{t.broadcastEvent(e,o)})},r=(e,o)=>{V([t,...n],t=>{t.broadcastOn([e],o)})},a=e=>r(fv(),{target:e.target}),i=Dn(),l=Bn(i,"touchstart",a),s=Bn(i,"touchmove",e=>o(Hi(),e)),c=Bn(i,"touchend",e=>o(qi(),e)),u=Bn(i,"mousedown",a),d=Bn(i,"mouseup",e=>{0===e.raw.button&&r(gv(),{target:e.target})}),p=e=>r(fv(),{target:ct(e.target)}),f=e=>{0===e.button&&r(gv(),{target:ct(e.target)})},m=()=>{V(e.editorManager.get(),t=>
vendor: 4,971 bytes, line 2
2{e!==t&&t.dispatch("DismissPopups",{relatedTarget:e})})},g=e=>o(Gi(),Ln(e)),h=e=>{r(mv(),{}),o(Ki(),Ln(e))},b=kn(ct(e.getElement())),v=On(b,"scroll",n=>{requestAnimationFrame(()=>{if(null!=e.getContainer()){const r=Xx(e,t.element).map(e=>[e.element,...e.others]).getOr([]);N(r,e=>_t(e,n.target))&&(e.dispatch("ElementScroll",{target:n.target.dom}),o(Qi(),n))}})}),y=()=>r(mv(),{}),_=t=>{t.state&&r(fv(),{target:ct(e.getContainer())})},A=e=>{r(fv(),{target:ct(e.relatedTarget.getContainer())})},k=t=>e.dispatch("focusin",t),x=t=>e.dispatch("focusout",t);e.on("PostRender",()=>{e.on("click",p),e.on("tap",p),e.on("mouseup",f),e.on("mousedown",m),e.on("ScrollWindow",g),e.on("ResizeWindow",h),e.on("ResizeEditor",y),e.on("AfterProgressState",_),e.on("DismissPopups",A),V([t,...n],e=>{e.element.dom.addEventListener("focusin",k),e.element.dom.addEventListener("focusout",x)})}),e.on("remove",()=>{e.off("click",p),e.off("tap",p),e.off("mouseup",f),e.off("mousedown",m),e.off("ScrollWindow",g),e.off("ResizeWindow",h),e.off("ResizeEditor",y),e.off("AfterProgressState",_),e.off("DismissPopups",A),V([t,...n],e=>{e.element.dom.removeEventListener("focusin",k),e.element.dom.removeEventListener("focusout",x)}),u.unbind(),l.unbind(),s.unbind(),c.unbind(),d.unbind(),v.unbind()}),e.on("detach",()=>{V([t,...n],zp),V([t,...n],e=>e.destroy())})})(e,n.mothership,i),r.setup(e,y.popup.shared,m),kR(e,y.popup),HR(e,y.popup.shared.getSink,y.popup),(e=>{const{sidebars:t}=e.ui.registry.getAll();V(ae(t),n=>{const o=t[n],r=()=>ze(I.from(e.queryCommandValue("ToggleSidebar")),n);e.ui.registry.addToggleButton(n,{icon:o.icon,tooltip:o.tooltip,onAction:t=>{e.execCommand("ToggleSidebar",!1,n),t.setActive(r())},onSetup:t=>{t.setActive(r());const n=()=>t.setActive(r());return e.on("ToggleSidebar",n),()=>{e.off("ToggleSidebar",n)}},context:"any"})})})(e),XM(e,v,y.popup.shared),fR(e,c,a.sink,{backstage:y.popup}),ZR(e,a.sink);const b={targetNode:e.getElement(),height:A(n.outerContainer)};return o.render(e,t,g,y.popup,b)})({popupUi:u,dialogUi:i,mainUi:n,uiMotherships:a.getUiMotherships()})}}},nF=e=>{const t=[],n={};return le(e,(e,o)=>{e.fold(()=>{t.push(o)},e=>{n[o]=e})}),t.length>0?Ie.error(t):Ie.value(n)},oF=(e,t,n,o)=>{const r=uv(Iy.sketch(r=>({dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:F(e.items,e=>MD(r,e,t,n,o))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[r.asSpec()]}],behaviours:au([Ap.config({mode:"acyclic",useTabstopAt:w(pL)}),(a=r,Ff.config({find:a.getOpt})),zO(r,{postprocess:e=>nF(e).fold(e=>(console.error(e),{}),A)}),du("dialog-body-panel",[Hc(yi(),(e,t)=>{e.getSystem().broadcastOn([vL],{newFocus:I.some(t.event.target)})})])])};var a},rF=(e,t)=>{co(e,"height",t+"px"),co(e,"flex-basis",t+"px")},aF=(e,t,n)=>{Go(e,'[role="dialog"]').each(e=>{Wo(e,'[role="tablist"]').each(o=>{n.get().map(n=>(co(t,"height","0"),co(t,"flex-basis","0"),Math.min(n,((e,t,n)=>{const o=dn(e).dom,r=Go(e,".tox-dialog-wrap").getOr(e);let a;a="fixed"===fo(r,"position")?Math.max(o.clientHeight,window.innerHeight):Math.max(o.offsetHeight,o.scrollHeight);const i=ko(t),l=t.dom.offsetLeft>=n.dom.offsetLeft+So(n)?Math.max(ko(n),i):i,s=parseInt(fo(e,"margin-top"),10)||0,c=parseInt(fo(e,"margin-bottom"),10)||0;return a-(ko(e)+s+c-l)})(e,t,o)))).each(e=>{rF(t,e)})})})},iF=e=>Wo(e,'[role="tabpanel"]'),lF="send-data-to-section",sF="send-data-to-view",cF=(e,t,n,o)=>{const r=_e({}),a=e=>{const t=Yg.getValue(e),n=nF(t).getOr({}),o=r.get(),a=Fe(o,n);r.set(a)},i=e=>{const t=r.get();Yg.setValue(e,t)},l=_e(null),s=F(e.tabs,e=>({value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[Ef(n.shared.providers.translate(e.title))],view:()=>[Iy.sketch(r=>({dom:{tag:"div",classes:["tox-form"]},components:F(e.items,e=>MD(r,e,t,n,o)),formBehaviours:au([Ap.config({mode:"acyclic",useTabstopAt:w(pL)}),du("TabView.form.events",[Jc(i),Xc(a)]),nb.config({channels:si([{key:lF,value:{onReceive:a}},{key:sF,value:{onReceive:i}}])})])}))]})),c=(e=>{const t=We(),n=[Jc(n=>{const o=n.element;iF(o).each(r=>{co(r,"visibility","hidden"),n.getSystem().getByDom(r).toOptional().each(n=>{const o=((e,t,n)=>F(e,(o,r)=>{Qp.set(n,e[r].view());const a=t.dom.getBoundingClientRect();return Qp.set(n,[]),a.height}))(e,r,n),a=(e=>te(Q(e,(e,t)=>e>t?-1:e<t?1:0)))(o);a.fold(t.clear,t.set)}),aF(o,r,t),vo(r,"visibility"),((e,t)=>{te(e).each(e=>Tk.showTab(t,e.value))})(e,n),requestAnimationFrame(()=>{aF(o,r,t)})})}),Hc(Ki(),e=>{const n=e.element;iF(n).each(e=>{aF(n,e,t)})}),Hc(LO,(e,n)=>{const o=e.element;iF(o).each(e=>{const n=Rn(kn(e));co(e,"visibility","hidden");const r=go(e,"height").map(e=>parseInt(e,10));vo(e,"height"),vo(e,"flex-basis");const a=e.dom.getBoundingClientRect().height;r.forall(e=>a>e)?(t.set(a),aF(o,e,t)):r.each(t=>{rF(e,t)}),vo(e,"visibility"),n.each(Mn)})})];return{extraEvents:n,selectFirst:!1}})(s);return Tk.sketch({dom:{tag:"div",classes:["tox-dialog__body"]}
vendor: 4,178 bytes, line 2
2,onChangeTab:(e,t,n)=>{const o=Yg.getValue(t);Nc(e,OO,{name:o,oldName:l.get()}),l.set(o)},tabs:s,components:[Tk.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[kk.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:au([Ub.config({})])}),Tk.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:c.selectFirst,tabSectionBehaviours:au([du("tabpanel",c.extraEvents),Ap.config({mode:"acyclic"}),Ff.config({find:e=>te(Tk.getViewItems(e))}),UO(I.none(),e=>(e.getSystem().broadcastOn([lF],{}),r.get()),(e,t)=>{r.set(t),e.getSystem().broadcastOn([sF],{})})])})},uF=(e,t,n,o,r,a)=>({dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...n.map(e=>({id:e})).getOr({}),...r?{"aria-live":"polite"}:{}}},components:[],behaviours:au([FO(0),ib.config({channel:`${gL}-${t}`,updateState:(e,t)=>I.some({isTabPanel:()=>"tabpanel"===t.body.type}),renderComponents:e=>{const t=e.body;return"tabpanel"===t.type?[cF(t,e.initialData,o,a)]:[oF(t,e.initialData,o,a)]},initialData:e})])}),dF=jk.deviceType.isTouch(),pF=(e,t)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}),fF=(e,t)=>r_.parts.close(Ev.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:au([Ub.config({})])})),mF=()=>r_.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),gF=(e,t)=>r_.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:cv(`<p>${eC(t.translate(e))}</p>`)}]}]}),hF=e=>r_.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e}),bF=(e,t)=>[ig.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),ig.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})],vF=e=>{const t="tox-dialog",n=t+"-wrap",o=n+"__backdrop",r=t+"__disable-scroll";return r_.sketch({lazySink:e.lazySink,onEscape:t=>(e.onEscape(t),I.some(!0)),useTabstopAt:e=>!pL(e),firstTabstop:e.firstTabstop,dom:{tag:"div",classes:[t].concat(e.extraClasses),styles:{position:"relative",...e.extraStyles}},components:[e.header,e.body,...e.footer.toArray()],parts:{blocker:{dom:cv(`<div class="${n}"></div>`),components:[{dom:{tag:"div",classes:dF?[o,o+"--opaque"]:[o]}}]}},dragBlockClass:n,modalBehaviours:au([hu.config({}),du("dialog-events",e.dialogEvents.concat([Yc(yi(),(e,t)=>{Nf.isBlocked(e)||Ap.focusIn(e)}),Hc(Ji(),(e,t)=>{e.getSystem().broadcastOn([vL],{newFocus:t.event.newFocus})})])),du("scroll-lock",[Jc(()=>{nr(ao(),r)}),Xc(()=>{rr(ao(),r)})]),...e.extraBehaviours]),eventOrder:{[Pi()]:["dialog-events"],[Zi()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[Wi()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...e.eventOrder}})},yF=e=>Ev.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:au([Ub.config({}),lv.config(e.tooltips.getConfig({tooltipText:e.translate("Close")}))]),components:[uC("close",{tag:"span",classes:["tox-icon"]},e.icons)],action:e=>{Mc(e,EO)}}),_F=(e,t,n,o)=>({dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...n.map(e=>({id:e})).getOr({})}},components:[],behaviours:au([ib.config({channel:`${mL}-${t}`,initialData:e,renderComponents:e=>[Ef(o.translate(e.title))]})])}),AF=()=>({dom:cv('<div class="tox-dialog__draghandle"></div>')}),kF=(e,t,n)=>((e,t,n)=>{const o=r_.parts.title(_F(e,t,I.none(),n)),r=r_.parts.draghandle(AF()),a=r_.parts.close(yF(n)),i=[o].concat(e.draggable?[r]:[]).concat([a]);return ig.sketch({dom:cv('<div class="tox-dialog__header"></div>'),components:i})})({title:n.shared.providers.translate(e),draggable:n.dialog.isDraggableModal()},t,n.shared.providers),xF=(e,t,n,o)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${o.getOr(0)}px`,position:"absolute"}}
vendor: 4,689 bytes, line 2
2,behaviours:t,components:[{dom:cv('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}),wF=(e,t,n)=>({onClose:()=>n.closeWindow(),onBlock:n=>{const o=Wo(e().element,".tox-dialog__header").map(e=>ko(e));r_.setBusy(e(),(e,r)=>xF(n.message,r,t,o))},onUnblock:()=>{r_.setIdle(e())}}),CF="tox-dialog--fullscreen",EF="tox-dialog--width-lg",SF="tox-dialog--width-md",TF=e=>{switch(e){case"large":return I.some(EF);case"medium":return I.some(SF);default:return I.none()}},IF=(e,t)=>{const n=ct(t.element.dom);ar(n,CF)||(lr(n,[EF,SF]),TF(e).each(e=>nr(n,e)))},BF=(e,t)=>{const n=ct(e.element.dom),o=sr(n),r=q(o,e=>e===EF||e===SF).or(TF(t));((e,t)=>{V(t,t=>{((e,t)=>{const n=Xo(e)?e.dom.classList.toggle(t):((e,t)=>M(Qo(e),t)?tr(e,t):er(e,t))(e,t);or(e)})(e,t)})})(n,[CF,...r.toArray()])},OF=(e,t,n)=>Bf(vF({...e,firstTabstop:1,lazySink:n.shared.getSink,extraBehaviours:[HO({}),...e.extraBehaviours],onEscape:e=>{Mc(e,EO)},dialogEvents:t,eventOrder:{[Ni()]:[ib.name(),nb.name()],[Zi()]:["scroll-lock",ib.name(),"messages","dialog-events","alloy.base.behaviour"],[Wi()]:["alloy.base.behaviour","dialog-events","messages",ib.name(),"scroll-lock"]}})),LF=(e,t={})=>F(e,e=>"menu"===e.type?(e=>{const n=F(e.items,e=>{const n=he(t,e.name).getOr(_e(!1));return{...e,storage:n}});return{...e,items:n}})(e):e),DF=e=>H(e,(e,t)=>"menu"===t.type?H(t.items,(e,t)=>(e[t.name]=t.storage,e),e):e,{}),MF=(e,t)=>[Zc(yi(),dL),e(CO,(e,n,o,r)=>{Pn(r.element)&&Rn(kn(r.element)).each(Nn),t.onClose(),n.onClose()}),e(EO,(e,t,n,o)=>{t.onCancel(e),Mc(o,CO)}),Hc(BO,(e,n)=>t.onUnblock()),Hc(IO,(e,n)=>t.onBlock(n.event))],NF=(e,t,n)=>{const o=(t,n)=>Hc(t,(t,o)=>{r(t,(r,a)=>{n(e(),r,o.event,t)})}),r=(e,t)=>{ib.getState(e).get().each(n=>{t(n.internalDialog,e)})};return[...MF(o,t),o(TO,(e,t)=>t.onSubmit(e)),o(xO,(e,t,n)=>{t.onChange(e,{name:n.name})}),o(SO,(e,t,o,r)=>{const a=()=>r.getSystem().isConnected()?Ap.focusIn(r):void 0,i=e=>$n(e,"disabled")||Wn(e,"aria-disabled").exists(e=>"true"===e),l=kn(r.element),s=Rn(l);t.onAction(e,{name:o.name,value:o.value}),Rn(l).fold(a,e=>{i(e)||s.exists(t=>At(e,t)&&i(t))?a():n().toOptional().filter(t=>!At(t.element,e)).each(a)})}),o(OO,(e,t,n)=>{t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})}),Xc(t=>{const n=e();Yg.setValue(t,n.getData())})]},PF=(e,t)=>{const n=t.map(e=>e.footerButtons).getOr([]),o=z(n,e=>"start"===e.align),r=(e,t)=>ig.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${e}`]},components:F(t,e=>e.memento.asSpec())});return[r("start",o.pass),r("end",o.fail)]},RF=(e,t,n)=>({dom:cv('<div class="tox-dialog__footer"></div>'),components:[],behaviours:au([ib.config({channel:`${hL}-${t}`,initialData:e,updateState:(e,t)=>{const o=F(t.buttons,e=>{const t=uv(((e,t)=>_D(e,e.type,t))(e,n));return{name:e.name,align:e.align,memento:t}});return I.some({lookupByName:t=>((e,t,n)=>q(t,e=>e.name===n).bind(t=>t.memento.getOpt(e)))(e,o,t),footerButtons:o})},renderComponents:PF})])}),FF=(e,t,n)=>r_.parts.footer(RF(e,t,n)),VF=(e,t)=>{if(e.getRoot().getSystem().isConnected()){const n=Ff.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return Iy.getField(n,t).orThunk(()=>{const n=e.getFooter().bind(e=>ib.getState(e).get());return n.bind(e=>e.lookupByName(t))})}return I.none()},zF=(e,t,n)=>{const o=t=>{const n=e.getRoot();n.getSystem().isConnected()&&t(n)},r={getData:()=>{const t=e.getRoot(),o=t.getSystem().isConnected()?e.getFormWrapper():t;return{...Yg.getValue(o),...se(n,e=>e.get())}},setData:t=>{o(o=>{const a=r.getData(),i=Fe(a,t),l=((e,t)=>{const n=e.getRoot();return ib.getState(n).get().map(e=>Sa(Ea("data",e.dataValidator,t))).getOr(t)})(e,i),s=e.getFormWrapper();Yg.setValue(s,l),le(n,(e,t)=>{be(i,t)&&e.set(i[t])})})},setEnabled:(t,n)=>{VF(e,t).each(n?nm.enable:nm.disable)},focus:t=>{VF(e,t).each(hu.focus)},block:e=>{if(!a(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");o(t=>{Nc(t,IO,{message:e})})},unblock:()=>{o(e=>{Mc(e,BO)})},showTab:t=>{o(n=>{const o=e.getBody();ib.getState(o).get().exists(e=>e.isTabPanel())&&Ff.getCurrent(o).each(e=>{Tk.showTab(e,t)})})},redial:a=>{o(o=>{const i=e.getId(),l=t(a),s=LF(l.internalDialog.buttons,n);o.getSystem().broadcastOn([`${fL}-${i}`],l),o.getSystem().broadcastOn([`${mL}-${i}`],l.internalDialog),o.getSystem().broadcastOn([`${gL}-${i}`],l.internalDialog),o.getSystem().broadcastOn([`${hL}-${i}`],{...l.internalDialog,buttons:s}),r.setData(l.initialData)})},close:()=>{o(e=>{Mc(e,CO)})},toggleFullscreen:e.toggleFullscreen};return r},UF=(e,t,n,o=!1,r)=>{const a=Pe("dialog"),i=Pe("dialog-label"),l=Pe("dialog-content"),s=e.internalDialog,c=_e(s.size),u=TF(c.get()).toArray(),d=uv(((e,t,n,o)=>
vendor: 9,500 bytes, line 2
2ig.sketch({dom:cv('<div class="tox-dialog__header"></div>'),components:[_F(e,t,I.some(n),o),AF(),yF(o)],containerBehaviours:au([Tg.config({mode:"mouse",blockerClass:"blocker",getTarget:e=>$o(e,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"},onDrag:(e,t)=>{e.getSystem().broadcastOn([mv()],{target:t})}})])}))({title:s.title,draggable:!0},a,i,n.shared.providers)),p=uv(((e,t,n,o,r,a)=>uF(e,t,I.some(n),o,r,a))({body:s.body,initialData:s.initialData},a,l,n,o,e=>VF(y,e))),f=LF(s.buttons),m=DF(f),g=qe(0!==f.length,uv(((e,t,n)=>RF(e,t,n))({buttons:f},a,n))),h=NF(()=>A,{onBlock:e=>{Nf.block(v,(t,o)=>{const r=d.getOpt(v).map(e=>ko(e.element));return xF(e.message,o,n.shared.providers,r)})},onUnblock:()=>{Nf.unblock(v)},onClose:()=>t.closeWindow()},n.shared.getSink),b=Jt().os,v=Bf({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline",...u],attributes:{role:"dialog",...b.isMacOS()?{"aria-label":s.title}:{"aria-labelledby":i}}},eventOrder:{[Ni()]:[ib.name(),nb.name()],[Pi()]:["execute-on-form"],[Zi()]:["reflecting","execute-on-form"]},behaviours:au([Ap.config({mode:"cyclic",onEscape:e=>(Mc(e,CO),I.some(!0)),useTabstopAt:e=>!pL(e)&&("button"!==en(e)||"disabled"!==Zn(e,"disabled")),firstTabstop:1}),ib.config({channel:`${fL}-${a}`,updateState:(e,t)=>(c.set(t.internalDialog.size),IF(t.internalDialog.size,e),r(),I.some(t)),initialData:e}),hu.config({}),du("execute-on-form",h.concat([Yc(yi(),(e,t)=>{Ap.focusIn(e)}),Hc(Ji(),(e,t)=>{e.getSystem().broadcastOn([vL],{newFocus:t.event.newFocus})})])),Nf.config({getRoot:()=>I.some(v)}),Qp.config({}),HO({})]),components:[d.asSpec(),p.asSpec(),...g.map(e=>e.asSpec()).toArray()]}),y={getId:_(a),getRoot:_(v),getFooter:()=>g.map(e=>e.get(v)),getBody:()=>p.get(v),getFormWrapper:()=>{const e=p.get(v);return Ff.getCurrent(e).getOr(e)},toggleFullscreen:()=>{BF(v,c.get())}},A=zF(y,t.redial,m);return{dialog:v,instanceApi:A}};var jF=tinymce.util.Tools.resolve("tinymce.util.URI");const HF=["insertContent","setContent","execCommand","close","block","unblock"],qF=e=>i(e)&&-1!==HF.indexOf(e.mceAction),GF=(e,t,n,o)=>{const r=Pe("dialog"),l=kF(e.title,r,o),s=(e=>{const t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[cL(I.none(),{dom:{tag:"iframe",attributes:{src:e.url}},behaviours:au([Ub.config({}),hu.config({})])})]}],behaviours:au([Ap.config({mode:"acyclic",useTabstopAt:w(pL)})])};return r_.parts.body(t)})(e),c=e.buttons.bind(e=>0===e.length?I.none():I.some(FF({buttons:e},r,o))),d=((e,t)=>{const n=(e,t)=>Hc(e,(e,n)=>{o(e,(o,r)=>{t(_,o,n.event,e)})}),o=(e,t)=>{ib.getState(e).get().each(n=>{t(n,e)})};return[...MF(n,t),n(SO,(e,t,n)=>{t.onAction(e,{name:n.name})})]})(0,wF(()=>y,o.shared.providers,t)),p={...e.height.fold(()=>({}),e=>({height:e+"px","max-height":e+"px"})),...e.width.fold(()=>({}),e=>({width:e+"px","max-width":e+"px"}))},m=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],g=new jF(e.url,{base_uri:new jF(window.location.href)}),h=`${g.protocol}://${g.host}${g.port?":"+g.port:""}`,b=Ze(),v=[ib.config({channel:`${fL}-${r}`,updateState:(e,t)=>I.some(t),initialData:e}),du("messages",[Jc(()=>{const t=Bn(ct(window),"message",t=>{if(g.isSameOrigin(new jF(t.raw.origin))){const o=t.raw.data;qF(o)?((e,t,n)=>{switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":const o=!!u(n.ui)&&n.ui;e.execCommand(n.cmd,o,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock()}})(n,_,o):(e=>!qF(e)&&i(e)&&be(e,"mceAction"))(o)&&e.onMessage(_,o)}});b.set(t)}),Xc(b.clear)]),nb.config({channels:{[bL]:{onReceive:(e,t)=>{Wo(e.element,"iframe").each(e=>{const n=e.dom.contentWindow;f(n)&&n.postMessage(t,h)})}}}})],y=OF({id:r,header:l,body:s,footer:c,extraClasses:m,extraBehaviours:v,extraStyles:p},d,o),_=(e=>{const t=t=>{e.getSystem().isConnected()&&t(e)};return{block:e=>{if(!a(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t(t=>{Nc(t,IO,{message:e})})},unblock:()=>{t(e=>{Mc(e,BO)})},close:()=>{t(e=>{Mc(e,CO)})},sendMessage:e=>{t(t=>{t.getSystem().broadcastOn([bL],e)})}}})(y);return{dialog:y,instanceApi:_}},KF=(e,t)=>Sa(Ea("data",t,e)),ZF=e=>mr(e,".tox-alert-dialog")||mr(e,".tox-confirm-dialog"),WF=(e,t,n,o)=>t&&n?[]:[Im.config({contextual:{lazyContext:()=>I.some(Nr(ct(e.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition",onHide:o},modes:["top"],lazyViewport:t=>Xx(e,t.element).map(e=>({bounds:Qx(e),optScrollEnv:I.some({currentScrollTop:e.element.dom.scrollTop,scrollElmTop:Do(e.element).top})})).getOrThunk(()=>({bounds:Fr(),optScrollEnv:I.none()}))})],$F=e=>{const t=e.editor,n=qx(t),o=(e=>{const t=e.shared;return{open:(n,o)=>{const r=()=>{r_.hide(s),o()},a=uv(_D({context:"any",name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",e)),i=mF(),l=fF(r,t.providers),s=Bf(vF({lazySink:()=>t.getSink(),header:pF(i,l),body:gF(n,t.providers),footer:I.some(hF(bF([],[a.asSpec()]))),onEscape:r,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Hc(EO,r)],eventOrder:{}}));r_.show(s);const c=a.get(s);hu.focus(c)}}})(e.backstages.dialog),r=(e=>{const t=e.shared;return{open:(n,o)=>{const r=e=>{r_.hide(c),o(e)},a=uv(_D({context:"any",name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",e)),i=_D({context:"any",name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",e),l=mF(),s=fF(()=>r(!1),t.providers),c=Bf(vF({lazySink:()=>t.getSink(),header:pF(l,s),body:gF(n,t.providers),footer:I.some(hF(bF([],[i,a.asSpec()]))),onEscape:()=>r(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Hc(EO,()=>r(!1)),Hc(TO,()=>r(!0))],eventOrder:{}}));r_.show(c);const u=a.get(c);hu.focus(u)}}})(e.backstages.dialog),a=(t,n)=>mT.open((t,o,r)=>{const a=o,i=((e,t,n)=>{const o=Pe("dialog"),r=e.internalDialog,a=kF(r.title,o,n),i=_e(r.size),l=TF(i.get()).toArray(),s=((e,t,n,o)=>{const r=uF(e,t,I.none(),n,!1,o);return r_.parts.body(r)})({body:r.body,initialData:r.initialData},o,n,e=>VF(g,e)),c=LF(r.buttons),u=DF(c),d=qe(0!==c.length,FF({buttons:c},o,n)),p=NF(()=>h,wF(()=>m,n.shared.providers,t),n.shared.getSink),f={id:o,header:a,body:s,footer:d,extraClasses:l,extraBehaviours:[ib.config({channel:`${fL}-${o}`,updateState:(e,t)=>(i.set(t.internalDialog.size),IF(t.internalDialog.size,e),I.some(t)),initialData:e})],extraStyles:{}},m=OF(f,p,n),g={getId:_(o),getRoot:_(m),getBody:()=>r_.getBody(m),getFooter:()=>r_.getFooter(m),getFormWrapper:()=>{const e=r_.getBody(m);return Ff.getCurrent(e).getOr(e)},toggleFullscreen:()=>{BF(m,i.get())}},h=zF(g,t.redial,u);return{dialog:m,instanceApi:h}})({dataValidator:r,initialData:a,internalDialog:t},{redial:mT.redial,closeWindow:()=>{r_.hide(i.dialog),n(i.instanceApi)}},e.backstages.dialog);return r_.show(i.dialog),i.instanceApi.setData(a),i.instanceApi},t),i=(o,r,a,i)=>mT.open((o,l,s)=>{const c=KF(l,s),u=We(),d=e.backstages.popup.shared.header.isPositionedAtTop(),p=()=>u.on(e=>{Wy.reposition(e),n&&d||Im.refresh(e)}),f=UF({dataValidator:s,initialData:c,internalDialog:o},{redial:mT.redial,closeWindow:()=>{u.on(Wy.hide),t.off("ResizeEditor",p),t.off("ScrollWindow",m),u.clear(),a(f.instanceApi)}},e.backstages.popup,i.ariaAttrs,p),m=()=>f.dialog.getSystem().broadcastOn([mv()],{target:f.dialog.element}),g=Bf(Wy.sketch({lazySink:e.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:i.persistent?{event:"doNotDismissYet"}:{},...d?{}:{fireRepositionEventInstead:{}},inlineBehaviours:au([du("window-manager-inline-events",[Hc($i(),(e,t)=>{Mc(f.dialog,EO)})]),...WF(t,n,d,()=>f.dialog.getSystem().broadcastOn([fv()],{target:f.dialog.element}))]),isExtraPart:(e,t)=>ZF(t)}));return u.set(g),Wy.showWithinBounds(g,Of(f.dialog),{anchor:r},()=>{const e=t.inline?ao():ct(t.getContainer()),n=Nr(e);return I.some(n)}),n&&d||(Im.refresh(g),t.on("ResizeEditor",p)),t.on("ScrollWindow",m),f.instanceApi.setData(c),Ap.focusIn(f.dialog),f.instanceApi},o),l=(n,o,r,a)=>mT.open((n,i,l)=>{const s=KF(i,l),c=We(),u=e.backstages.popup.shared.header.isPositionedAtTop(),d=()=>c.on(e=>{Wy.reposition(e),Im.refresh(e)}),p=UF({dataValidator:l,initialData:s,internalDialog:n},{redial:mT.redial,closeWindow:()=>{c.on(Wy.hide),t.off("ResizeEditor ScrollWindow ElementScroll",d),c.clear(),r(p.instanceApi)}},e.backstages.popup,a.ariaAttrs,d),f=Bf(Wy.sketch({lazySink:e.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:a.persistent?{event:"doNotDismissYet"}:{},...u?{}:{fireRepositionEventInstead:{}},inlineBehaviours:au([du("window-manager-inline-events",[Hc($i(),(e,t)=>{Mc(p.dialog,EO)})]),Im.config({contextual:{lazyContext:()=>I.some(Nr(ct(t.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:e=>Xx(t,e.element).map(e=>({bounds:Qx(e),optScrollEnv:I.some({currentScrollTop:e.element.dom.scrollTop,scrollElmTop:Do(e.element).top})})).getOrThunk(()=>({bounds:Fr(),optScrollEnv:I.none()}))})]),isExtraPart:(e,t)=>ZF(t)}));
2return c.set(f),Wy.showWithinBounds(f,Of(p.dialog),{anchor:o},()=>e.backstages.popup.shared.getSink().toOptional().bind(e=>{const n=Xx(t,e.element).map(e=>Qx(e)).getOr(Fr()),o=Nr(ct(t.getContentAreaContainer())),r=Rr(o,n);return I.some(Mr(r.x,r.y,r.width,r.height-15))})),Im.refresh(f),t.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",d),p.instanceApi.setData(s),Ap.focusIn(p.dialog),p.instanceApi},n);return{open:(t,n,o)=>{if(!d(n)){if("toolbar"===n.inline)return i(t,e.backstages.popup.shared.anchors.inlineDialog(),o,n);if("bottom"===n.inline)return l(t,e.backstages.popup.shared.anchors.inlineBottomDialog(),o,n);if("cursor"===n.inline)return i(t,e.backstages.popup.shared.anchors.cursor(),o,n)}return a(t,o)},openUrl:(n,o)=>((n,o)=>mT.openUrl(n=>{const r=GF(n,{closeWindow:()=>{r_.hide(r.dialog),o(r.instanceApi)}},t,e.backstages.dialog);return r_.show(r.dialog),r.instanceApi},n))(n,o),alert:(e,t)=>{o.open(e,t)},close:e=>{e.close()},confirm:(e,t)=>{r.open(e,t)}}},YF=e=>{Gk(e),(e=>{const t=e.options.register,n=e=>{return h(e,a)?{value:(t=e,BB(t.map((e,t)=>t%2==0?"#"+(e=>{return(t=e,WI(t)?I.some({value:$I(t)}):I.none()).orThunk(()=>uB(e).map(JI)).getOrThunk(()=>{const t=document.createElement("canvas");t.height=1,t.width=1;const n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);const o=n.getImageData(0,0,1,1).data,r=o[0],a=o[1],i=o[2],l=o[3];return JI(aB(r,a,i,l))});var t})(e).value:e))),valid:!0}:{valid:!1,message:"Must be an array of strings."};var t},o=e=>g(e)&&e>0?{value:e,valid:!0}:{valid:!1,message:"Must be a positive number."};t("color_map",{processor:n,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),t("color_map_raw",{processor:e=>h(e,a)?{value:BB(e),valid:!0}:{valid:!1,message:"Must be an array of strings."}}),t("color_map_background",{processor:n}),t("color_map_foreground",{processor:n}),t("color_cols",{processor:o,default:MB(e)}),t("color_cols_foreground",{processor:o,default:NB(e,TB)}),t("color_cols_background",{processor:o,default:NB(e,IB)}),t("custom_colors",{processor:"boolean",default:!0}),t("color_default_foreground",{processor:"string",default:LB}),t("color_default_background",{processor:"string",default:LB})})(e),(e=>{const t=e.options.register;t("contextmenu_avoid_overlap",{processor:"string",default:""}),t("contextmenu_never_use_native",{processor:"boolean",default:!1}),t("contextmenu",{processor:e=>!1===e?{value:[],valid:!0}:a(e)||h(e,a)?{value:xR(e),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})})(e)};Fk.add("silver",e=>{YF(e);let t=()=>Fr();const{dialogs:n,popups:o,renderUI:r}=tF(e,{getPopupSinkBounds:()=>t()});bO(e,o.backstage.shared);const a=$F({editor:e,backstages:{popup:o.backstage,dialog:n.backstage}}),i=We();return{renderUI:()=>{const n=r();return Xx(e,o.getMothership().element).each(e=>{t=()=>Qx(e)}),n},getWindowManagerImpl:_(a),getNotificationManagerImpl:()=>fC(e,{backstage:o.backstage},o.getMothership(),i),getPromotionElement:()=>Wo(ct(e.getContainer()),".tox-promotion").map(e=>e.dom).getOrNull()}})}()},199(e){!function(){"use strict";var t=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return{eq:e}},o=n(function(e,t){return e===t}),r=function(e){return n(function(t,n){if(t.length!==n.length)return!1;for(var o=t.length,r=0;r<o;r++)if(!e.eq(t[r],n[r]))return!1;return!0})},a=function(e){return n(function(t,a){var i=Object.keys(t),l=Object.keys(a);if(!function(e,t){return function(e,t){return n(function(n,o){return e.eq(t(n),t(o))})}(r(e),function(e){return function(e,t){return Array.prototype.slice.call(e).sort(t)}(e,t)})}(o).eq(i,l))return!1;for(var s=i.length,c=0;c<s;c++){var u=i[c];if(!e.eq(t[u],a[u]))return!1}return!0})},i=n(function(e,n){if(e===n)return!0;var o=t(e);return o===t(n)&&(function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)}(o)?e===n:"array"===o?r(i).eq(e,n):"object"===o&&a(i).eq(e,n))});const l=Object.getPrototypeOf,s=(e,t,n)=>{var o;return!!n(e,t.prototype)||(null===(o=e.constructor)||void 0===o?void 0:o.name)===t.name},c=e=>t=>(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&s(e,String,(e,t)=>t.isPrototypeOf(e))?"string":t})(t)===e,u=e=>t=>typeof t===e,d=e=>t=>e===t,p=(e,t)=>m(e)&&s(e,t,(e,t)=>l(e)===t),f=c("string"),m=c("object"),g=e=>p(e,Object),h=c("array"),b=d(null),v=u("boolean"),y=d(void 0),_=e=>null==e,A=e=>!_(e),k=u("function"),x=u("number"),w=(e,t)=>{if(h(e)){for(let n=0,o=e.length;n<o;
vendor: 1,886 bytes, line 2
2++n)if(!t(e[n]))return!1;return!0}return!1},C=()=>{},E=(e,t)=>(...n)=>e(t.apply(null,n)),S=(e,t)=>n=>e(t(n)),T=e=>()=>e,I=e=>e,B=(e,t)=>e===t;function O(e,...t){return(...n)=>{const o=t.concat(n);return e.apply(null,o)}}const L=e=>t=>!e(t),D=e=>()=>{throw new Error(e)},M=e=>e(),N=e=>{e()},P=T(!1),R=T(!0);class F{constructor(e,t){this.tag=e,this.value=t}static some(e){return new F(!0,e)}static none(){return F.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?F.some(e(this.value)):F.none()}bind(e){return this.tag?e(this.value):F.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:F.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return A(e)?F.some(e):F.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}F.singletonNone=new F(!1);const V=Array.prototype.slice,z=Array.prototype.indexOf,U=Array.prototype.push,j=(e,t)=>z.call(e,t),H=(e,t)=>j(e,t)>-1,q=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},G=(e,t)=>{const n=e.length,o=new Array(n);for(let r=0;r<n;r++){const n=e[r];o[r]=t(n,r)}return o},K=(e,t)=>{for(let n=0,o=e.length;n<o;n++)t(e[n],n)},Z=(e,t)=>{for(let n=e.length-1;n>=0;n--)t(e[n],n)},W=(e,t)=>{const n=[],o=[];for(let r=0,a=e.length;r<a;r++){const a=e[r];(t(a,r)?n:o).push(a)}return{pass:n,fail:o}},$=(e,t)=>{const n=[];for(let o=0,r=e.length;o<r;o++){const r=e[o];t(r,o)&&n.push(r)}return n}
vendor: 14,476 bytes, line 2
2,Y=(e,t,n)=>(Z(e,(e,o)=>{n=t(n,e,o)}),n),J=(e,t,n)=>(K(e,(e,o)=>{n=t(n,e,o)}),n),X=(e,t,n)=>{for(let o=0,r=e.length;o<r;o++){const r=e[o];if(t(r,o))return F.some(r);if(n(r,o))break}return F.none()},Q=(e,t)=>X(e,t,P),ee=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return F.some(n);return F.none()},te=e=>{const t=[];for(let n=0,o=e.length;n<o;++n){if(!h(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);U.apply(t,e[n])}return t},ne=(e,t)=>te(G(e,t)),oe=(e,t)=>{for(let n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0},re=e=>{const t=V.call(e,0);return t.reverse(),t},ae=(e,t)=>$(e,e=>!H(t,e)),ie=(e,t)=>{const n={};for(let o=0,r=e.length;o<r;o++){const r=e[o];n[String(r)]=t(r,o)}return n},le=(e,t)=>{const n=V.call(e,0);return n.sort(t),n},se=(e,t)=>t>=0&&t<e.length?F.some(e[t]):F.none(),ce=e=>se(e,0),ue=e=>se(e,e.length-1),de=k(Array.from)?Array.from:e=>V.call(e),pe=(e,t)=>{for(let n=0;n<e.length;n++){const o=t(e[n],n);if(o.isSome())return o}return F.none()},fe=(e,t)=>{const n=[],o=k(t)?e=>q(n,n=>t(n,e)):e=>H(n,e);for(let t=0,r=e.length;t<r;t++){const r=e[t];o(r)||n.push(r)}return n},me=Object.keys,ge=Object.hasOwnProperty,he=(e,t)=>{const n=me(e);for(let o=0,r=n.length;o<r;o++){const r=n[o];t(e[r],r)}},be=(e,t)=>ve(e,(e,n)=>({k:n,v:t(e,n)})),ve=(e,t)=>{const n={};return he(e,(e,o)=>{const r=t(e,o);n[r.k]=r.v}),n},ye=e=>(t,n)=>{e[n]=t},_e=(e,t,n,o)=>{he(e,(e,r)=>{(t(e,r)?n:o)(e,r)})},Ae=(e,t)=>{const n={};return _e(e,t,ye(n),C),n},ke=(e,t)=>{const n=[];return he(e,(e,o)=>{n.push(t(e,o))}),n},xe=e=>ke(e,I),we=(e,t)=>Ce(e,t)?F.from(e[t]):F.none(),Ce=(e,t)=>ge.call(e,t),Ee=(e,t)=>Ce(e,t)&&void 0!==e[t]&&null!==e[t],Se=e=>{if(!h(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");const t=[],n={};return K(e,(o,r)=>{const a=me(o);if(1!==a.length)throw new Error("one and only one name per case");const i=a[0],l=o[i];if(void 0!==n[i])throw new Error("duplicate key detected:"+i);if("cata"===i)throw new Error("cannot have a case named cata (sorry)");if(!h(l))throw new Error("case arguments must be an array");t.push(i),n[i]=(...n)=>{const o=n.length;if(o!==l.length)throw new Error("Wrong number of arguments to case "+i+". Expected "+l.length+" ("+l+"), got "+o);return{fold:(...t)=>{if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[r].apply(null,n)},match:e=>{const o=me(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!oe(t,e=>H(o,e)))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[i].apply(null,n)},log:e=>{console.log(e,{constructors:t,constructor:i,params:n})}}}}),n},Te=e=>{let t=e;return{get:()=>t,set:e=>{t=e}}},Ie=e=>{const t=t=>t(e),n=T(e),o=()=>r,r={tag:!0,inner:e,fold:(t,n)=>n(e),isValue:R,isError:P,map:t=>Oe.value(t(e)),mapError:o,bind:t,exists:t,forall:t,getOr:n,or:o,getOrThunk:n,orThunk:o,getOrDie:n,each:t=>{t(e)},toOptional:()=>F.some(e)};return r},Be=e=>{const t=()=>n,n={tag:!1,inner:e,fold:(t,n)=>t(e),isValue:P,isError:R,map:t,mapError:t=>Oe.error(t(e)),bind:t,exists:P,forall:R,getOr:I,or:I,getOrThunk:M,orThunk:M,getOrDie:D(String(e)),each:C,toOptional:F.none};return n},Oe={value:Ie,error:Be,fromOption:(e,t)=>e.fold(()=>Be(t),Ie)},Le="undefined"!=typeof window?window:Function("return this;")(),De=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let Me=0;const Ne=e=>{const t=(new Date).getTime(),n=Math.floor(1e9*De());return Me++,e+"_"+n+Me+String(t)},Pe=e=>(...t)=>{if(0===t.length)throw new Error("Can't merge zero objects");const n={};for(let o=0;o<t.length;o++){const r=t[o];for(const t in r)Ce(r,t)&&(n[t]=e(n[t],r[t]))}return n},Re=Pe((e,t)=>g(e)&&g(t)?Re(e,t):t),Fe=Pe((e,t)=>t),Ve=(e,t,n=B)=>e.exists(e=>n(e,t)),ze=(e,t,n=B)=>Ue(e,t,n).getOr(e.isNone()&&t.isNone()),Ue=(e,t,n)=>e.isSome()&&t.isSome()?F.some(n(e.getOrDie(),t.getOrDie())):F.none(),je=(e,t)=>e?F.some(t):F.none(),He=(e,t)=>((e,t)=>{let n=null!=t?t:Le;for(let t=0;t<e.length&&null!=n;++t)n=n[e[t]];return n})(e.split("."),t);Se([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const qe=e=>{const t=Te(F.none()),n=()=>t.get().each(e=>clearInterval(e));return{clear:()=>{n(),t.set(F.none())},isSet:()=>t.get().isSome(),get:()=>t.get(),set:o=>{n(),t.set(F.some(setInterval(o,e)))}}},Ge=()=>{const e=(e=>{const t=Te(F.none()),n=()=>t.get().each(e);return{clear:()=>{n(),t.set(F.none())},isSet:()=>t.get().isSome(),get:()=>t.get(),set:e=>{n(),t.set(F.some(e))}}})(C);return{...e,on:t=>e.get().each(t)}},Ke=(e,t,n)=>""===t||e.length>=t.length&&e.substr(n,n+t.length)===t,Ze=(e,t)=>$e(e,t)?((e,t)=>e.substring(t))(e,t.length):e,We=(e,t,n=0,o)=>{const r=e.indexOf(t,n);return-1!==r&&(!!y(o)||r+t.length<=o)},$e=(e,t)=>Ke(e,t,0),Ye=(e,t)=>Ke(e,t,e.length-t.length),Je=e=>t=>t.replace(e,""),Xe=Je(/^\s+|\s+$/g),Qe=Je(/^\s+/g),et=Je(/\s+$/g),tt=e=>e.length>0,nt=e=>!tt(e),ot=(e,t=10)=>{const n=parseInt(e,t);return isNaN(n)?F.none():F.some(n)},rt=(e,t)=>{let n=null;return{cancel:()=>{b(n)||(clearTimeout(n),n=null)},throttle:(...o)=>{b(n)&&(n=setTimeout(()=>{n=null,e.apply(null,o)},t))}}},at=(e,t)=>{let n=null;const o=()=>{b(n)||(clearTimeout(n),n=null)};return{cancel:o,throttle:(...r)=>{o(),n=setTimeout(()=>{n=null,e.apply(null,r)},t)}}},it=e=>{let t,n=!1;return(...o)=>(n||(n=!0,t=e.apply(null,o)),t)},lt="\ufeff",st="Â ",ct=e=>e===lt,ut=e=>{const t={};return K(e,e=>{t[e]={}}),me(t)},dt=e=>void 0!==e.length,pt=Array.isArray,ft=(e,t,n)=>{if(!e)return!1;if(n=n||e,dt(e)){for(let o=0,r=e.length;o<r;o++)if(!1===t.call(n,e[o],o,e))return!1}else for(const o in e)if(Ce(e,o)&&!1===t.call(n,e[o],o,e))return!1;return!0},mt=(e,t)=>{const n=[];return ft(e,(o,r)=>{n.push(t(o,r,e))}),n},gt=(e,t)=>{const n=[];return ft(e,(o,r)=>{t&&!t(o,r,e)||n.push(o)}),n},ht=(e,t,n,o)=>{let r=y(n)?e[0]:n;for(let n=0;n<e.length;n++)r=t.call(o,r,e[n],n);return r},bt=(e,t,n)=>{for(let o=0,r=e.length;o<r;o++)if(t.call(n,e[o],o,e))return o;return-1},vt=e=>e[e.length-1],yt=()=>_t(0,0),_t=(e,t)=>({major:e,minor:t}),At={nu:_t,detect:(e,t)=>{const n=String(t).toLowerCase();return 0===e.length?yt():((e,t)=>{const n=((e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];if(o.test(t))return o}})(e,t);if(!n)return{major:0,minor:0};const o=e=>Number(t.replace(n,"$"+e));return _t(o(1),o(2))})(e,n)},unknown:yt},kt=(e,t)=>{const n=String(t).toLowerCase();return Q(e,e=>e.search(n))},xt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,wt=e=>t=>We(t,e),Ct=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>We(e,"edge/")&&We(e,"chrome")&&We(e,"safari")&&We(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,xt],search:e=>We(e,"chrome")&&!We(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>We(e,"msie")||We(e,"trident")},{name:"Opera",versionRegexes:[xt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:wt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:wt("firefox")},{name:"Safari",versionRegexes:[xt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(We(e,"safari")||We(e,"mobile/"))&&We(e,"applewebkit")}],Et=[{name:"Windows",search:wt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>We(e,"iphone")||We(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:wt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:wt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:wt("linux"),versionRegexes:[]},{name:"Solaris",search:wt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:wt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:wt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],St={browsers:T(Ct),oses:T(Et)},Tt="Edge",It="Chromium",Bt="Opera",Ot="Firefox",Lt="Safari",Dt=e=>{const t=e.current,n=e.version,o=e=>()=>t===e;return{current:t,version:n,isEdge:o(Tt),isChromium:o(It),isIE:o("IE"),isOpera:o(Bt),isFirefox:o(Ot),isSafari:o(Lt)}},Mt=()=>Dt({current:void 0,version:At.unknown()}),Nt=Dt,Pt=(T(Tt),T(It),T("IE"),T(Bt),T(Ot),T(Lt),"Windows"),Rt="Android",Ft="Linux",Vt="macOS",zt="Solaris",Ut="FreeBSD",jt="ChromeOS",Ht=e=>{const t=e.current,n=e.version,o=e=>()=>t===e;return{current:t,version:n,isWindows:o(Pt),isiOS:o("iOS"),isAndroid:o(Rt),isMacOS:o(Vt),isLinux:o(Ft),isSolaris:o(zt),isFreeBSD:o(Ut),isChromeOS:o(jt)}},qt=()=>Ht({current:void 0,version:At.unknown()}),Gt=Ht,Kt=(T(Pt),T("iOS"),T(Rt),T(Ft),T(Vt),T(zt),T(Ut),T(jt),e=>window.matchMedia(e).matches);let Zt=it(()=>((e,t,n)=>{const o=St.browsers(),r=St.oses(),a=t.bind(e=>((e,t)=>pe(t.brands,t=>{const n=t.brand.toLowerCase();return Q(e,e=>{var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())}).map(e=>({current:e.name,version:At.nu(parseInt(t.version,10),0)}))}))(o,e)).orThunk(()=>((e,t)=>kt(e,t).map(e=>{const n=At.detect(e.versionRegexes,t);return{current:e.name,version:n}}))(o,e)).fold(Mt,Nt),i=((e,t)=>kt(e,t).map(e=>{const n=At.detect(e.versionRegexes,t);return{current:e.name,version:n}}))(r,e).fold(qt,Gt),l=((e,t,n,o)=>{const r=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!r,i=e.isiOS()||e.isAndroid(),l=i||o("(pointer:coarse)"),s=r||!a&&i&&o("(min-device-width:768px)"),c=a||i&&!s,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!s&&!u;return{isiPad:T(r),isiPhone:T(a),isTablet:T(s),isPhone:T(c),isTouch:T(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:T(u),isDesktop:T(d)}})(i,a,e,n);return{browser:a,os:i,deviceType:l}})(window.navigator.userAgent,F.from(window.navigator.userAgentData),Kt));const Wt=()=>Zt(),$t=Object.getPrototypeOf,Yt=e=>{const t=He("ownerDocument.defaultView",e);return m(e)&&((e=>((e,t)=>{const n=((e,t)=>He(e,t))(e,t);if(null==n)throw new Error(e+" not available on this browser");return n})("HTMLElement",e))(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test($t(e).constructor.name))},Jt=window.navigator.userAgent,Xt=Wt(),Qt=Xt.browser,en=Xt.os,tn=Xt.deviceType,nn=-1!==Jt.indexOf("Windows Phone"),on={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Qt.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Qt.isIE(),windowsPhone:nn,browser:{current:Qt.current,version:Qt.version,isChromium:Qt.isChromium,isEdge:Qt.isEdge,isFirefox:Qt.isFirefox,isIE:Qt.isIE,isOpera:Qt.isOpera,isSafari:Qt.isSafari},os:{current:en.current,version:en.version,isAndroid:en.isAndroid,isChromeOS:en.isChromeOS,isFreeBSD:en.isFreeBSD,isiOS:en.isiOS,isLinux:en.isLinux,isMacOS:en.isMacOS,isSolaris:en.isSolaris,isWindows:en.isWindows},deviceType:{isDesktop:tn.isDesktop,isiPad:tn.isiPad,isiPhone:tn.isiPhone,isPhone:tn.isPhone,isTablet:tn.isTablet,isTouch:tn.isTouch,isWebView:tn.isWebView}},rn=/^\s*|\s*$/g,an=e=>_(e)?"":(""+e).replace(rn,""),ln=function(e,t,n,o){o=o||this,e&&(n&&(e=e[n]),ft(e,(e,r)=>!1!==t.call(o,e,r,n)&&(ln(e,t,n,o),!0)))},sn={trim:an,isArray:pt,is:(e,t)=>t?!("array"!==t||!pt(e))||typeof e===t:void 0!==e,toArray:e=>{if(pt(e))return e;{const t=[];for(let n=0,o=e.length;n<o;n++)t[n]=e[n];return t}},makeMap:(e,t,n={})=>{const o=f(e)?e.split(t||","):e||[];let r=o.length;for(;r--;)n[o[r]]={};return n},each:ft,map:mt,grep:gt,inArray:(e,t)=>{if(e)for(let n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},hasOwn:Ce,extend:(e,...t)=>{for(let n=0;n<t.length;n++){const o=t[n];for(const t in o)if(Ce(o,t)){const n=o[t];void 0!==n&&(e[t]=n)}}return e},walk:ln,resolve:(e,t=window)=>{const n=e.split(".");for(let e=0,o=n.length;e<o&&(t=t[n[e]]);e++);return t},explode:(e,t)=>h(e)?e:""===e?[]:mt(e.split(t||","),an),_addCacheSuffix:e=>{const t=on.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},cn=e=>{if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},un=(e,t)=>{const n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return cn(n.childNodes[0])},dn=(e,t)=>{const n=(t||document).createElement(e);return cn(n)},pn=(e,t)=>{const n=(t||document).createTextNode(e);return cn(n)},fn=cn,mn=(e,t,n)=>F.from(e.dom.elementFromPoint(t,n)).map(cn),gn=(e,t,n)=>{const o=e.document.createRange();var r;return r=o,t.fold(e=>{r.setStartBefore(e.dom)},(e,t)=>{r.setStart(e.dom,t)},e=>{r.setStartAfter(e.dom)}),((e,t)=>{t.fold(t=>{e.setEndBefore(t.dom)},(t,n)=>{e.setEnd(t.dom,n)},t=>{e.setEndAfter(t.dom)})})(o,n),o},hn=(e,t,n,o,r)=>{const a=e.document.createRange();return a.setStart(t.dom,n),a.setEnd(o.dom,r),a},bn=Se([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),vn=(e,t,n)=>t(fn(n.startContainer),n.startOffset,fn(n.endContainer),n.endOffset);bn.ltr,bn.rtl;const yn=(e,t)=>{const n=e.dom;if(1!==n.nodeType)return!1;{const e=n;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},_n=e=>1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount,An=(e,t)=>e.dom===t.dom,kn=(e,t)=>{const n=e.dom,o=t.dom;return n!==o&&n.contains(o)},xn=(e,t)=>{const n=[],o=e=>(n.push(e),t(e));let r=t(e);do{r=r.bind(o)}while(r.isSome());return n},wn=e=>e.dom.nodeName.toLowerCase(),Cn=e=>e.dom.nodeType,En=e=>t=>Cn(t)===e,Sn=e=>Tn(e)&&Yt(e.dom),Tn=En(1),In=En(3),Bn=En(9),On=En(11),Ln=e=>t=>Tn(t)&&wn(t)===e,Dn=e=>fn(e.dom.ownerDocument),Mn=e=>Bn(e)?e:Dn(e),Nn=e=>fn(Mn(e).dom.defaultView),Pn=e=>F.from(e.dom.parentNode).map(fn),Rn=e=>F.from(e.dom.parentElement).map(fn),Fn=(e,t)=>{const n=k(t)?t:P;let o=e.dom;const r=[];for(;null!==o.parentNode&&void 0!==o.parentNode;){const e=o.parentNode,t=fn(e);if(r.push(t),!0===n(t))break;o=e}return r},Vn=e=>F.from(e.dom.previousSibling).map(fn),zn=e=>F.from(e.dom.nextSibling).map(fn),Un=e=>re(xn(e,Vn)),jn=e=>xn(e,zn),Hn=e=>G(e.dom.childNodes,fn),qn=(e,t)=>{const n=e.dom.childNodes;return F.from(n[t]).map(fn)},Gn=e=>qn(e,0),Kn=e=>
vendor: 8,370 bytes, line 2
2qn(e,e.dom.childNodes.length-1),Zn=e=>e.dom.childNodes.length,Wn=e=>On(e)&&A(e.dom.host),$n=e=>fn(e.dom.getRootNode()),Yn=e=>Wn(e)?e:(e=>{const t=e.dom.head;if(null==t)throw new Error("Head is not available yet");return fn(t)})(Mn(e)),Jn=e=>fn(e.dom.host),Xn=e=>{if(A(e.target)){const t=fn(e.target);if(Tn(t)&&Qn(t)&&e.composed&&e.composedPath){const t=e.composedPath();if(t)return ce(t)}}return F.from(e.target)},Qn=e=>A(e.dom.shadowRoot),eo=(e,t,n,o)=>((e,t,n,o,r)=>{const a=((e,t)=>n=>{e(n)&&t((e=>{const t=fn(Xn(e).getOr(e.target)),n=()=>e.stopPropagation(),o=()=>e.preventDefault(),r=E(o,n);return((e,t,n,o,r,a,i)=>({target:e,x:t,y:n,stop:o,prevent:r,kill:a,raw:i}))(t,e.clientX,e.clientY,n,o,r,e)})(n))})(n,o);return e.dom.addEventListener(t,a,r),{unbind:O(to,e,t,a,r)}})(e,t,n,o,!1),to=(e,t,n,o)=>{e.dom.removeEventListener(t,n,o)},no=R,oo=()=>fn(document),ro=(e,t=!1)=>e.dom.focus({preventScroll:t}),ao=e=>{const t=$n(e).dom;return e.dom===t.activeElement},io=(e=oo())=>F.from(e.dom.activeElement).map(fn),lo=(e,t)=>{Pn(e).each(n=>{n.dom.insertBefore(t.dom,e.dom)})},so=(e,t)=>{zn(e).fold(()=>{Pn(e).each(e=>{uo(e,t)})},e=>{lo(e,t)})},co=(e,t)=>{Gn(e).fold(()=>{uo(e,t)},n=>{e.dom.insertBefore(t.dom,n.dom)})},uo=(e,t)=>{e.dom.appendChild(t.dom)},po=(e,t)=>{lo(e,t),uo(t,e)},fo=(e,t)=>{K(t,t=>{uo(e,t)})},mo=(e,t,n)=>{if(!(f(n)||v(n)||x(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},go=(e,t,n)=>{mo(e.dom,t,n)},ho=(e,t)=>{const n=e.dom;he(t,(e,t)=>{mo(n,t,e)})},bo=(e,t)=>{const n=e.dom.getAttribute(t);return null===n?void 0:n},vo=(e,t)=>F.from(bo(e,t)),yo=(e,t)=>{const n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},_o=(e,t)=>{e.dom.removeAttribute(t)},Ao=e=>J(e.dom.attributes,(e,t)=>(e[t.name]=t.value,e),{}),ko=e=>{e.dom.textContent="",K(Hn(e),e=>{xo(e)})},xo=e=>{const t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},wo=e=>{const t=Hn(e);var n,o;t.length>0&&(n=e,K(o=t,(e,t)=>{const r=0===t?n:o[t-1];so(r,e)})),xo(e)},Co=(e,t)=>fn(e.dom.cloneNode(t)),Eo=e=>Co(e,!1),So=e=>Co(e,!0),To=e=>G(e,fn),Io=e=>e.dom.innerHTML,Bo=(e,t)=>{const n=Dn(e).dom,o=fn(n.createDocumentFragment()),r=((e,t)=>{const n=(t||document).createElement("div");return n.innerHTML=e,Hn(fn(n))})(t,n);fo(o,r),ko(e),uo(e,o)},Oo=e=>void 0!==e.style&&k(e.style.getPropertyValue),Lo=e=>{const t=In(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;const n=t.ownerDocument;return(e=>{const t=$n(e);return Wn(t)?F.some(t):F.none()})(fn(t)).fold(()=>n.body.contains(t),S(Lo,Jn))},Do=(e,t,n)=>{if(!f(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Oo(e)&&e.style.setProperty(t,n)},Mo=(e,t,n)=>{const o=e.dom;Do(o,t,n)},No=(e,t)=>{const n=e.dom;he(t,(e,t)=>{Do(n,t,e)})},Po=(e,t)=>{const n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||Lo(e)?o:Ro(n,t)},Ro=(e,t)=>Oo(e)?e.style.getPropertyValue(t):"",Fo=(e,t)=>{const n=e.dom,o=Ro(n,t);return F.from(o).filter(e=>e.length>0)},Vo=e=>{const t={},n=e.dom;if(Oo(n))for(let e=0;e<n.style.length;e++){const o=n.style.item(e);t[o]=n.style[o]}return t},zo=(e,t)=>{((e,t)=>{Oo(e)&&e.style.removeProperty(t)})(e.dom,t),Ve(vo(e,"style").map(Xe),"")&&_o(e,"style")},Uo=(e=>{const t=t=>{const n=(e=>{const t=e.dom;return Lo(e)?t.getBoundingClientRect().height:t.offsetHeight})(t);if(n<=0||null===n){const n=Po(t,e);return parseFloat(n)||0}return n},n=(e,t)=>J(t,(t,n)=>{const o=Po(e,n),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r},0);return{set:(t,n)=>{if(!x(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);const o=t.dom;Oo(o)&&(o.style[e]=n+"px")},get:t,getOuter:t,aggregate:n,max:(e,t,o)=>{const r=n(e,o);return t>r?t-r:0}}})("height"),jo=(e,t)=>({left:e,top:t,translate:(n,o)=>jo(e+n,t+o)}),Ho=jo,qo=(e,t)=>void 0!==e?e:void 0!==t?t:0,Go=e=>{const t=e.dom,n=t.ownerDocument.body;return n===t?Ho(n.offsetLeft,n.offsetTop):Lo(e)?(e=>{const t=e.getBoundingClientRect();return Ho(t.left,t.top)})(t):Ho(0,0)},Ko=e=>{const t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,o=t.body.scrollTop||t.documentElement.scrollTop;return Ho(n,o)},Zo=(e,t,n)=>{const o=(void 0!==n?n.dom:document).defaultView;o&&o.scrollTo(e,t)},Wo=(e,t)=>{Wt().browser.isSafari()&&k(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},$o=(e,t)=>{const n=(t||document).createDocumentFragment();return K(e,e=>{n.appendChild(e.dom)}),fn(n)},Yo=(e=>{const t=t=>e(t)?F.from(t.dom.nodeValue):F.none();return{get:n=>{if(!e(n))throw new Error("Can only get text value of a text node");return t(n).getOr("")},getOption:t,set:(t,n)=>{if(!e(t))throw new Error("Can only set raw text value of a text node");t.dom.nodeValue=n}}})(In),Jo=e=>Yo.get(e),Xo=(e,t)=>Yo.set(e,t),Qo=(e,t)=>{const n=bo(e,t);return void 0===n||""===n?[]:n.split(" ")};var er=(e,t,n,o,r)=>e(n,o)?F.some(n):k(r)&&r(n)?F.none():t(n,o,r);const tr=(e,t,n)=>{let o=e.dom;const r=k(n)?n:P;for(;o.parentNode;){o=o.parentNode;const e=fn(o);if(t(e))return F.some(e);if(r(e))break}return F.none()},nr=(e,t,n)=>er((e,t)=>t(e),tr,e,t,n),or=(e,t)=>{const n=e=>{for(let o=0;o<e.childNodes.length;o++){const r=fn(e.childNodes[o]);if(t(r))return F.some(r);const a=n(e.childNodes[o]);if(a.isSome())return a}return F.none()};return n(e.dom)},rr=(e,t,n)=>tr(e,e=>yn(e,t),n),ar=(e,t)=>((e,t)=>{const n=void 0===t?document:t.dom;return _n(n)?F.none():F.from(n.querySelector(e)).map(fn)})(t,e),ir=(e,t,n)=>er((e,t)=>yn(e,t),rr,e,t,n),lr=e=>void 0!==e.dom.classList,sr=e=>Qo(e,"class"),cr=(e,t)=>((e,t,n)=>{const o=Qo(e,t).concat([n]);return go(e,t,o.join(" ")),!0})(e,"class",t),ur=(e,t)=>((e,t,n)=>{const o=$(Qo(e,t),e=>e!==n);return o.length>0?go(e,t,o.join(" ")):_o(e,t),!1})(e,"class",t),dr=(e,t)=>{lr(e)?e.dom.classList.add(t):cr(e,t)},pr=e=>{0===(lr(e)?e.dom.classList:sr(e)).length&&_o(e,"class")},fr=(e,t)=>{lr(e)?e.dom.classList.remove(t):ur(e,t),pr(e)},mr=(e,t)=>lr(e)&&e.dom.classList.contains(t),gr=(e,t=!1)=>{return Lo(e)?e.dom.isContentEditable:(n=e,ir(n,"[contenteditable]")).fold(T(t),e=>"true"===hr(e));var n},hr=e=>e.dom.contentEditable,br=(e,t)=>{e.dom.contentEditable=t?"true":"false"},vr=(e,t)=>{let n=[];return K(Hn(e),e=>{t(e)&&(n=n.concat([e])),n=n.concat(vr(e,t))}),n},yr=(e,t)=>((e,t)=>{const n=void 0===t?document:t.dom;return _n(n)?[]:G(n.querySelectorAll(e),fn)})(t,e),_r=(e,t,n)=>tr(e,t,n).isSome(),Ar=(e,t)=>((e,t)=>{const n=e.dom;return n.parentNode?((e,t)=>Q(e.dom.childNodes,e=>t(fn(e))).map(fn))(fn(n.parentNode),n=>!An(e,n)&&t(n)):F.none()})(e,t).isSome(),kr=(e,t)=>or(e,t).isSome(),xr=e=>k(e)?e:P,wr=(e,t,n)=>{const o=t(e),r=xr(n);return o.orThunk(()=>r(e)?F.none():((e,t,n)=>{let o=e.dom;const r=xr(n);for(;o.parentNode;){o=o.parentNode;const e=fn(o),n=t(e);if(n.isSome())return n;if(r(e))break}return F.none()})(e,t,r))},Cr=["img","br"],Er=e=>{return(t=e,Yo.getOption(t)).filter(e=>0!==e.trim().length||e.indexOf(st)>-1).isSome()||H(Cr,wn(e))||(e=>Sn(e)&&"false"===bo(e,"contenteditable"))(e);var t},Sr=(e,t,n,o)=>({start:e,soffset:t,finish:n,foffset:o}),Tr=Se([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Ir={before:Tr.before,on:Tr.on,after:Tr.after,cata:(e,t,n,o)=>e.fold(t,n,o),getStart:e=>e.fold(I,I,I)},Br=Se([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Or={domRange:Br.domRange,relative:Br.relative,exact:Br.exact,exactFromRange:e=>Br.exact(e.start,e.soffset,e.finish,e.foffset),getWin:e=>{const t=(e=>e.match({domRange:e=>fn(e.startContainer),relative:(e,t)=>Ir.getStart(e),exact:(e,t,n,o)=>e}))(e);return Nn(t)},range:Sr},Lr=(e,t)=>{const n=wn(e);return"input"===n?Ir.after(e):H(["br","img"],n)?0===t?Ir.before(e):Ir.after(e):Ir.on(e,t)},Dr=(e,t)=>{const n=e.fold(Ir.before,Lr,Ir.after),o=t.fold(Ir.before,Lr,Ir.after);return Or.relative(n,o)},Mr=(e,t,n,o)=>{const r=Lr(e,t),a=Lr(n,o);return Or.relative(r,a)},Nr=e=>{const t=Or.getWin(e).dom,n=(e,n,o,r)=>hn(t,e,n,o,r),o=(e=>e.match({domRange:e=>{const t=fn(e.startContainer),n=fn(e.endContainer);return Mr(t,e.startOffset,n,e.endOffset)},relative:Dr,exact:Mr}))(e);return((e,t)=>{const n=((e,t)=>t.match({domRange:e=>({ltr:T(e),rtl:F.none}),relative:(t,n)=>({ltr:it(()=>
vendor: 5,928 bytes, line 2
2gn(e,t,n)),rtl:it(()=>F.some(gn(e,n,t)))}),exact:(t,n,o,r)=>({ltr:it(()=>hn(e,t,n,o,r)),rtl:it(()=>F.some(hn(e,o,r,t,n)))})}))(e,t);return((e,t)=>{const n=t.ltr();return n.collapsed?t.rtl().filter(e=>!1===e.collapsed).map(e=>bn.rtl(fn(e.endContainer),e.endOffset,fn(e.startContainer),e.startOffset)).getOrThunk(()=>vn(0,bn.ltr,n)):vn(0,bn.ltr,n)})(0,n)})(t,o).match({ltr:n,rtl:n})},Pr=(e,t,n)=>((e,t,n)=>((e,t,n)=>e.caretPositionFromPoint?((e,t,n)=>{var o;return F.from(null===(o=e.caretPositionFromPoint)||void 0===o?void 0:o.call(e,t,n)).bind(t=>{if(null===t.offsetNode)return F.none();const n=e.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),F.some(n)})})(e,t,n):e.caretRangeFromPoint?((e,t,n)=>{var o;return F.from(null===(o=e.caretRangeFromPoint)||void 0===o?void 0:o.call(e,t,n))})(e,t,n):F.none())(e.document,t,n).map(e=>Sr(fn(e.startContainer),e.startOffset,fn(e.endContainer),e.endOffset)))(e,t,n),Rr=(e,t,n,o)=>({x:e,y:t,width:n,height:o,right:e+n,bottom:t+o}),Fr=e=>{const t=void 0===e?window:e,n=t.document,o=Ko(fn(n));return(e=>{const t=void 0===e?window:e;return Wt().browser.isFirefox()?F.none():F.from(t.visualViewport)})(t).fold(()=>{const e=t.document.documentElement,n=e.clientWidth,r=e.clientHeight;return Rr(o.left,o.top,n,r)},e=>Rr(Math.max(e.pageLeft,o.left),Math.max(e.pageTop,o.top),e.width,e.height))};class Vr{constructor(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node}prev(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node}prev2(e){return this.node=this.findPreviousNode(this.node,e),this.node}findSibling(e,t,n,o){if(e){if(!o&&e[t])return e[t];if(e!==this.rootNode){let t=e[n];if(t)return t;for(let o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(t=o[n],t)return t}}}findPreviousNode(e,t){if(e){const n=e.previousSibling;if(this.rootNode&&n===this.rootNode)return;if(n){if(!t)for(let e=n.lastChild;e;e=e.lastChild)if(!e.lastChild)return e;return n}const o=e.parentNode;if(o&&o!==this.rootNode)return o}}}const zr=/^[ \t\r\n]*$/,Ur=e=>zr.test(e),jr=e=>"\n"===e||"\r"===e,Hr=(e,t=4,n=!0,o=!0)=>{const r=((e,t)=>t<=0?"":new Array(t+1).join(" "))(0,t),a=e.replace(/\t/g,r),i=J(a,(e,t)=>(e=>-1!==" \f\t\v".indexOf(e))(t)||t===st?e.pcIsSpace||""===e.str&&n||e.str.length===a.length-1&&o||((e,t)=>t<e.length&&t>=0&&jr(e[t]))(a,e.str.length+1)?{pcIsSpace:!1,str:e.str+st}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:jr(t),str:e.str+t},{pcIsSpace:!1,str:""});return i.str},qr=e=>t=>!!t&&t.nodeType===e,Gr=e=>!!e&&!Object.getPrototypeOf(e),Kr=qr(1),Zr=e=>Kr(e)&&Sn(fn(e)),Wr=e=>{const t=e.toLowerCase();return e=>A(e)&&e.nodeName.toLowerCase()===t},$r=e=>{const t=e.map(e=>e.toLowerCase());return e=>{if(e&&e.nodeName){const n=e.nodeName.toLowerCase();return H(t,n)}return!1}},Yr=(e,t)=>{const n=t.toLowerCase().split(" ");return t=>{if(Kr(t)){const o=t.ownerDocument.defaultView;if(o)for(let r=0;r<n.length;r++){const a=o.getComputedStyle(t,null);if((a?a.getPropertyValue(e):null)===n[r])return!0}}return!1}},Jr=e=>Kr(e)&&e.hasAttribute("data-mce-bogus"),Xr=e=>Kr(e)&&"TABLE"===e.tagName,Qr=e=>t=>{if(Zr(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1},ea=$r(["textarea","input"]),ta=qr(3),na=qr(4),oa=qr(7),ra=qr(8),aa=qr(9),ia=qr(11),la=Wr("br"),sa=Wr("img"),ca=Wr("a"),ua=Qr("true"),da=Qr("false"),pa=e=>Zr(e)&&e.isContentEditable&&A(e.parentElement)&&!e.parentElement.isContentEditable,fa=$r(["td","th"]),ma=$r(["td","th","caption"]),ga=$r(["video","audio","object","embed"]),ha=Wr("li"),ba=Wr("details"),va=Wr("summary"),ya={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},_a=e=>Kr(e)&&e.hasAttribute("data-mce-bookmark");const Aa=(e,t,n,o)=>ta(e)&&!((e,t,n)=>Ur(e.data)&&!((e,t,n)=>{const o=fn(t),r=fn(e),a=n.getWhitespaceElements();return _r(r,e=>Ce(a,wn(e)),O(An,o))})(e,t,n))(e,t,n)&&(!o.includeZwsp||!(e=>{for(const t of e)if(!ct(t))return!1;return!0})(e.data)),ka=(e,t,n,o)=>k(o.isContent)&&o.isContent(t)||((e,t)=>Kr(e)&&Ce(t.getNonEmptyElements(),e.nodeName))(t,e)||_a(t)||(e=>Kr(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id")))(t)||Aa(t,n,e,o)||da(t)||ua(t)&&(e=>Rn(fn(e)).exists(e=>!gr(e)))(t),xa=(e,t,n)=>{const o={...ya,...n};if(o.checkRootAsContent&&ka(e,t,t,o))return!1;let r=t.firstChild,a=0;if(!r)return!0;const i=new Vr(r,t);do{if(o.skipBogus&&Kr(r)){const e=r.getAttribute("data-mce-bogus");if(e){r=i.next("all"===e);continue}}if(ra(r))r=i.next(!0);else if(la(r))a++,r=i.next();else{if(ka(e,r,t,o))return!1;r=i.next()}}while(r);return a<=1},wa=(e,t,n)=>xa(e,t.dom,{checkRootAsContent:!0,...n}),Ca=(e,t,n)=>ka(e,t,t,{includeZwsp:ya.includeZwsp,...n}),Ea=e=>{const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":"html"},Sa=e=>"html"!==Ea(e),Ta=e=>Sa(e.nodeName),Ia=e=>Ea(e.nodeName),Ba=["svg","math"],Oa="data-mce-block",La=e=>G((e=>$(me(e),e=>!/[A-Z]/.test(e)))(e),e=>{const t=CSS.escape(e);return`${t}:`+G(Ba,e=>`not(${e} ${t})`).join(":")}).join(","),Da=(e,t)=>A(t.querySelector(e))?(t.setAttribute(Oa,"true"),"inline-boundary"===t.getAttribute("data-mce-selected")&&t.removeAttribute("data-mce-selected"),!0):(t.removeAttribute(Oa),!1),Ma=(e,t)=>{const n=La(e.getTransparentElements()),o=La(e.getBlockElements());return $(t.querySelectorAll(n),e=>Da(o,e))},Na=(e,t,n)=>{var o;const r=n?"lastChild":"firstChild";for(let n=t[r];n;n=n[r])if(xa(e,n,{checkRootAsContent:!0}))return void(null===(o=n.parentNode)||void 0===o||o.removeChild(n))},Pa=(e,t,n)=>{const o=e.getBlockElements(),r=fn(t),a=e=>wn(e)in o,i=e=>An(e,r);K(To(n),t=>{tr(t,a,i).each(n=>{const o=(t=>$(Hn(t),t=>a(t)&&!e.isValidChild(wn(n),wn(t))))(t);if(o.length>0){const t=Rn(n);K(o,t=>{tr(t,a,i).each(n=>
vendor: 13,612 bytes, line 2
2{((e,t,n)=>{const o=document.createRange(),r=t.parentNode;if(r){o.setStartBefore(t),o.setEndBefore(n);const a=o.extractContents();Na(e,a,!0),o.setStartAfter(n),o.setEndAfter(t);const i=o.extractContents();Na(e,i,!1),xa(e,a,{checkRootAsContent:!0})||r.insertBefore(a,t),xa(e,n,{checkRootAsContent:!0})||r.insertBefore(n,t),xa(e,i,{checkRootAsContent:!0})||r.insertBefore(i,t),r.removeChild(t)}})(e,n.dom,t.dom)})}),t.each(t=>Ma(e,t.dom))}})})},Ra=(e,t)=>{const n=Ma(e,t);Pa(e,t,n),((e,t,n)=>{K([...n,...ja(e,t)?[t]:[]],t=>K(yr(fn(t),t.nodeName.toLowerCase()),t=>{Ha(e,t.dom)&&wo(t)}))})(e,t,n)},Fa=(e,t)=>{if(Ua(e,t)){const n=La(e.getBlockElements());Da(n,t)}},Va=e=>e.hasAttribute(Oa),za=(e,t)=>Ce(e.getTransparentElements(),t),Ua=(e,t)=>Kr(t)&&za(e,t.nodeName),ja=(e,t)=>Ua(e,t)&&Va(t),Ha=(e,t)=>Ua(e,t)&&!Va(t),qa=(e,t)=>1===t.type&&za(e,t.name)&&f(t.attr(Oa)),Ga=Wt().browser,Ka=e=>Q(e,Tn),Za=(e,t)=>e.children&&H(e.children,t),Wa=(e,t={})=>{let n=0;const o={},r=fn(e),a=Mn(r),i=e=>{uo(Yn(r),e)},l=e=>{const t=Yn(r);ar(t,"#"+e).each(xo)},s=e=>we(o,e).getOrThunk(()=>({id:"mce-u"+n++,passed:[],failed:[],count:0})),c=e=>new Promise((n,r)=>{let l;const c=sn._addCacheSuffix(e),u=s(c);o[c]=u,u.count++;const d=(e,t)=>{K(e,N),u.status=t,u.passed=[],u.failed=[],l&&(l.onload=null,l.onerror=null,l=null)},p=()=>d(u.passed,2),f=()=>d(u.failed,3);if(n&&u.passed.push(n),r&&u.failed.push(r),1===u.status)return;if(2===u.status)return void p();if(3===u.status)return void f();u.status=1;const m=dn("link",a.dom);ho(m,{rel:"stylesheet",type:"text/css",id:u.id}),t.contentCssCors&&go(m,"crossOrigin","anonymous"),t.referrerPolicy&&go(m,"referrerpolicy",t.referrerPolicy),l=m.dom,l.onload=p,l.onerror=f,i(m),go(m,"href",c)}),u=e=>{const t=sn._addCacheSuffix(e);we(o,t).each(e=>{0===--e.count&&(delete o[t],l(e.id))})};return{load:c,loadRawCss:(e,t)=>{const n=s(e);o[e]=n,n.count++;const r=dn("style",a.dom);ho(r,{rel:"stylesheet",type:"text/css",id:n.id,"data-mce-key":e}),r.dom.innerHTML=t,i(r)},loadAll:e=>Promise.allSettled(G(e,e=>c(e).then(T(e)))).then(e=>{const t=W(e,e=>"fulfilled"===e.status);return t.fail.length>0?Promise.reject(G(t.fail,e=>e.reason)):G(t.pass,e=>e.value)}),unload:u,unloadRawCss:e=>{we(o,e).each(t=>{0===--t.count&&(delete o[e],l(t.id))})},unloadAll:e=>{K(e,e=>{u(e)})},_setReferrerPolicy:e=>{t.referrerPolicy=e},_setContentCssCors:e=>{t.contentCssCors=e}}},$a=(()=>{const e=new WeakMap;return{forElement:(t,n)=>{const o=$n(t).dom;return F.from(e.get(o)).getOrThunk(()=>{const t=Wa(o,n);return e.set(o,t),t})}}})(),Ya=(e,t)=>A(e)&&(Ca(t,e)||t.isInline(e.nodeName.toLowerCase())),Ja=e=>(e=>"span"===e.nodeName.toLowerCase())(e)&&"bookmark"===e.getAttribute("data-mce-type"),Xa=(e,t,n,o)=>{var r;const a=o||t;if(Kr(t)&&Ja(t))return t;const i=t.childNodes;for(let t=i.length-1;t>=0;t--)Xa(e,i[t],n,a);if(Kr(t)){const e=t.childNodes;1===e.length&&Ja(e[0])&&(null===(r=t.parentNode)||void 0===r||r.insertBefore(e[0],t))}return(e=>ia(e)||aa(e))(t)||Ca(n,t)||(e=>!!Kr(e)&&e.childNodes.length>0)(t)||((e,t,n)=>ta(e)&&e.data.length>0&&((e,t,n)=>{const o=new Vr(e,t).prev(!1),r=new Vr(e,t).next(!1),a=y(o)||Ya(o,n),i=y(r)||Ya(r,n);return a&&i})(e,t,n))(t,a,n)||e.remove(t),t},Qa=sn.makeMap,ei=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ti=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ni=/[<>&\"\']/g,oi=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ri={128:"â¬",130:"â",131:"Æ",132:"â",133:"â¦",134:"â ",135:"â¡",136:"Ë",137:"â°",138:"Å ",139:"â¹",140:"Å",142:"Ž",145:"â",146:"â",147:"â",148:"â",149:"â¢",150:"â",151:"â",152:"Ë",153:"â¢",154:"Å¡",155:"âº",156:"Å",158:"ž",159:"Ÿ"},ai={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},ii={"<":"<",">":">","&":"&",""":'"',"'":"'"},li=(e,t)=>{const n={};if(e){const o=e.split(",");t=t||10;for(let e=0;e<o.length;e+=2){const r=String.fromCharCode(parseInt(o[e],t));if(!ai[r]){const t="&"+o[e+1]+";";n[r]=t,n[t]=r}}return n}},si=li("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),ci=(e,t)=>e.replace(t?ei:ti,e=>ai[e]||e),ui=(e,t)=>e.replace(t?ei:ti,e=>e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":ai[e]||"&#"+e.charCodeAt(0)+";"),di=(e,t,n)=>{const o=n||si;return e.replace(t?ei:ti,e=>ai[e]||o[e]||e)},pi={encodeRaw:ci,encodeAllRaw:e=>(""+e).replace(ni,e=>ai[e]||e),encodeNumeric:ui,encodeNamed:di,getEncodeFunc:(e,t)=>{const n=li(t)||si,o=Qa(e.replace(/\+/g,","));return o.named&&o.numeric?(e,t)=>e.replace(t?ei:ti,e=>void 0!==ai[e]?ai[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"):o.named?t?(e,t)=>di(e,t,n):di:o.numeric?ui:ci},decode:e=>e.replace(oi,(e,t)=>t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):ri[t]||String.fromCharCode(t):ii[e]||si[e]||(e=>{const t=dn("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e})(e))},fi=(e,t)=>(e=sn.trim(e))?e.split(t||" "):[],mi=e=>new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$"),gi=e=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",..."html4"!==e?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],..."html5-strict"!==e?["xml:lang"]:[]]),hi=e=>{let t,n;t="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",n="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" article aside details dialog figure main header footer hgroup section nav a ins del canvas map",n+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),"html5-strict"!==e&&(n=[n,"acronym applet basefont big font strike tt"].join(" "),t=[t,"center dir isindex noframes"].join(" "));const o=[t,n].join(" ");return{blockContent:t,phrasingContent:n,flowContent:o}},bi=e=>{const{blockContent:t,phrasingContent:n,flowContent:o}=hi(e),r=e=>Object.freeze(e.split(" "));return Object.freeze({blockContent:r(t),phrasingContent:r(n),flowContent:r(o)})},vi={html4:it(()=>bi("html4")),html5:it(()=>bi("html5")),"html5-strict":it(()=>bi("html5-strict"))},yi=(e,t)=>{const{blockContent:n,phrasingContent:o,flowContent:r}=vi[e]();return"blocks"===t?F.some(n):"phrasing"===t?F.some(o):"flow"===t?F.some(r):F.none()},_i=e=>F.from(/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/.exec(e)).map(e=>({preset:"@"===e[1],name:e[2]})),Ai={},ki=sn.makeMap,xi=sn.each,wi=sn.extend,Ci=sn.explode,Ei=(e,t={})=>{const n=ki(e," ",ki(e.toUpperCase()," "));return wi(n,t)},Si=e=>Ei("td th li dt dd figcaption caption details summary",e.getTextBlockElements()),Ti=(e,t)=>{if(e){const n={};return f(e)&&(e={"*":e}),xi(e,(e,o)=>{n[o]=n[o.toUpperCase()]="map"===t?ki(e,/[, ]/):Ci(e,/[, ]/)}),n}},Ii=(e={})=>{var t;const n={},o={};let r=[];const a={},i={},l=(t,n,o)=>{const r=e[t];if(r)return ki(r,/[, ]/,ki(r.toUpperCase(),/[, ]/));{let e=Ai[t];return e||(e=Ei(n,o),Ai[t]=e),e}},s=null!==(t=e.schema)&&void 0!==t?t:"html5",c=(e=>{const t=gi(e),{phrasingContent:n,flowContent:o}=hi(e),r={},a=(e,t,n)=>{r[e]={attributes:ie(t,T({})),attributesOrder:t,children:ie(n,T({}))}},i=(e,n="",o="")=>{const r=fi(o),i=fi(e);let l=i.length;const s=[...t,...fi(n)];for(;l--;)a(i[l],s.slice(),r)},l=(e,t)=>{const n=fi(e),o=fi(t);let a=n.length;for(;a--;){const e=r[n[a]];for(let t=0,n=o.length;t<n;t++)e.attributes[o[t]]={},e.attributesOrder.push(o[t])}};return"html5-strict"!==e&&(K(fi("acronym applet basefont big font strike tt"),e=>{i(e,"",n)}),K(fi("center dir isindex noframes"),e=>{i(e,"",o)})),i("html","manifest","head body"),i("head","","base command link meta noscript script style title"),i("title hr noscript br"),i("base","href target"),i("link","href rel media hreflang type sizes hreflang"),i("meta","name http-equiv content charset"),i("style","media type scoped"),i("script","src async defer type charset"),i("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),i("dd div","",o),i("address dt caption","","html4"===e?n:o),i("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",n),i("blockquote","cite",o),i("ol","reversed start type","li"),i("ul","","li"),i("li","value",o),i("dl","","dt dd"),i("a","href target rel media hreflang type","html4"===e?n:o),i("q","cite",n),i("ins del","cite datetime",o),i("img","src sizes srcset alt usemap ismap width height"),i("iframe","src name width height",o),i("embed","src type width height"),i("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),i("param","name value"),i("map","name",[o,"area"].join(" ")),i("area","alt coords shape href target rel media hreflang type"),i("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),i("colgroup","span","col"),i("col","span"),i("tbody thead tfoot","","tr"),i("tr","","td th"),i("td","colspan rowspan headers",o),i("th","colspan rowspan headers scope abbr",o),i("form","accept-charset action autocomplete enctype method name novalidate target",o),i("fieldset","disabled form name",[o,"legend"].join(" ")),i("label","form for",n),i("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),i("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:n),i("select","disabled form multiple name required size","option optgroup"),i("optgroup","disabled label","option"),i("option","disabled label selected value"),i("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),i("menu","type label",[o,"li"].join(" ")),i("noscript","",o),"html4"!==e&&(i("wbr"),i("ruby","",[n,"rt rp"].join(" ")),i("figcaption","",o),i("mark rt rp bdi","",n),i("summary","",[n,"h1 h2 h3 h4 h5 h6"].join(" ")),i("canvas","width height",o),i("data","value",n),i("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),i("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),i("picture","","img source"),i("source","src srcset type media sizes"),i("track","kind src srclang label default"),i("datalist","",[n,"option"].join(" ")),i("article section nav aside main header footer","",o),i("hgroup","","h1 h2 h3 h4 h5 h6"),i("figure","",[o,"figcaption"].join(" ")),i("time","datetime",n),i("dialog","open",o),i("command","type label icon disabled checked radiogroup command"),i("output","for form name",n),i("progress","value max",n),i("meter","value min max low high optimum",n),i("details","open",[o,"summary"].join(" ")),i("keygen","autofocus challenge disabled form keytype name"),a("svg","id tabindex lang xml:space class style x y width height viewB
2ox preserveAspectRatio zoomAndPan transform".split(" "),[])),"html5-strict"!==e&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==e&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("img","loading"),l("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),"html4"!==e&&K([r.video,r.audio],e=>{delete e.children.audio,delete e.children.video}),K(fi("a form meter progress dfn"),e=>{r[e]&&delete r[e].children[e]}),delete r.caption.children.table,delete r.script,r})(s);!1===e.verify_html&&(e.valid_elements="*[*]");const u=Ti(e.valid_styles),d=Ti(e.invalid_styles,"map"),p=Ti(e.valid_classes,"map"),g=l("whitespace_elements","pre script noscript style textarea video audio iframe object code"),b=l("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),y=l("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),_=l("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),A="td th iframe video audio object script code",k=l("non_empty_elements",A+" pre svg textarea summary",y),x=l("move_caret_before_on_enter_elements",A+" table",y),w="h1 h2 h3 h4 h5 h6",C=l("text_block_elements",w+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),E=l("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",C),S=l("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),I=l("transparent_elements","a ins del canvas map"),B=l("wrap_block_elements","pre "+w);xi("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),e=>{i[e]=new RegExp("</"+e+"[^>]*>","gi")});const O=e=>{const t=F.from(n["@"]),o=/[*?+]/;K(((e,t)=>{const n=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return ne(fi(t,","),t=>{const o=n.exec(t);if(o){const t=o[1],n=o[2],r=o[3],a=o[4],i=o[5],l={attributes:{},attributesOrder:[]};if(e.each(e=>((e,t)=>{he(e.attributes,(e,n)=>{t.attributes[n]=e}),t.attributesOrder.push(...e.attributesOrder)})(e,l)),"#"===t?l.paddEmpty=!0:"-"===t&&(l.removeEmpty=!0),"!"===a&&(l.removeEmptyAttrs=!0),i&&((e,t)=>{const n=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,o=/[*?+]/,{attributes:r,attributesOrder:a}=t;K(fi(e,"|"),e=>{const i=n.exec(e);if(i){const e={},n=i[1],l=i[2].replace(/[\\:]:/g,":"),s=i[3],c=i[4];if("!"===n&&(t.attributesRequired=t.attributesRequired||[],t.attributesRequired.push(l),e.required=!0),"-"===n)return delete r[l],void a.splice(sn.inArray(a,l),1);if(s&&("="===s?(t.attributesDefault=t.attributesDefault||[],t.attributesDefault.push({name:l,value:c}),e.defaultValue=c):"~"===s?(t.attributesForced=t.attributesForced||[],t.attributesForced.push({name:l,value:c}),e.forcedValue=c):"<"===s&&(e.validValues=sn.makeMap(c,"?"))),o.test(l)){const n=e;t.attributePatterns=t.attributePatterns||[],n.pattern=mi(l),t.attributePatterns.push(n)}else r[l]||a.push(l),r[l]=e}})}
vendor: 4,171 bytes, line 2
2)(i,l),r&&(l.outputName=n),"@"===n){if(!e.isNone())return[];e=F.some(l)}return[r?{name:n,element:l,aliasName:r}:{name:n,element:l}]}return[]})})(t,null!=e?e:""),({name:e,element:t,aliasName:a})=>{if(a&&(n[a]=t),o.test(e)){const n=t;n.pattern=mi(e),r.push(n)}else n[e]=t})},L=e=>{r=[],K(me(n),e=>{delete n[e]}),O(e)},D=(e,t)=>{var r,i;delete Ai.text_block_elements,delete Ai.block_elements;const l=!!t.extends&&!oe(t.extends),c=t.extends;if(o[e]=c?o[c]:{},a[e]=null!=c?c:e,k[e.toUpperCase()]={},k[e]={},l||(E[e.toUpperCase()]={},E[e]={}),c&&!n[e]&&n[c]){const t=(e=>{const t=e=>h(e)?G(e,t):(e=>m(e)&&e.source&&"[object RegExp]"===Object.prototype.toString.call(e))(e)?new RegExp(e.source,e.flags):m(e)?be(e,t):e;return t(e)})(n[c]);delete t.removeEmptyAttrs,delete t.removeEmpty,n[e]=t}else n[e]={attributesOrder:[],attributes:{}};if(h(t.attributes)){const o=e=>{a.attributesOrder.push(e),a.attributes[e]={}},a=null!==(r=n[e])&&void 0!==r?r:{};delete a.attributesDefault,delete a.attributesForced,delete a.attributePatterns,delete a.attributesRequired,a.attributesOrder=[],a.attributes={},K(t.attributes,e=>{const t=gi(s);_i(e).each(({preset:e,name:n})=>{e?"global"===n&&K(t,o):o(n)})}),n[e]=a}if(v(t.padEmpty)){const o=null!==(i=n[e])&&void 0!==i?i:{};o.paddEmpty=t.padEmpty,n[e]=o}if(h(t.children)){const n={},r=e=>{n[e]={}},a=e=>{yi(s,e).each(e=>{K(e,r)})};K(t.children,e=>{_i(e).each(({preset:e,name:t})=>{e?a(t):r(t)})}),o[e]=n}c&&he(o,(t,n)=>{t[c]&&(o[n]=t=wi({},o[n]),t[e]=t[c])})},M=e=>{m(e)?he(e,(e,t)=>D(t,e)):f(e)&&(e=>{K((e=>{const t=/^(~)?(.+)$/;return ne(fi(e,","),e=>{const n=t.exec(e);return n?[{cloneName:"~"===n[1]?"span":"div",name:n[2]}]:[]})})(null!=e?e:""),({name:e,cloneName:t})=>{D(e,{extends:t})})})(e)},N=e=>{K((e=>{const t=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return ne(fi(e,","),e=>{const n=t.exec(e);if(n){const e=n[1],t=e?(e=>"-"===e?"remove":"add")(e):"replace";return[{operation:t,name:n[2],validChildren:ne(fi(n[3],"|"),e=>_i(e).toArray())}]}return[]})})(null!=e?e:""),({operation:e,name:t,validChildren:n})=>{const r="replace"===e?{"#comment":{}}:o[t],a=t=>{"remove"===e?delete r[t]:r[t]={}};K(n,({preset:e,name:t})=>{e?(e=>{yi(s,e).each(e=>{K(e,a)})})(t):a(t)}),o[t]=r})},P=e=>{const t=n[e];if(t)return t;let o=r.length;for(;o--;){const t=r[o];if(t.pattern.test(e))return t}},R=T(u),V=T(d),z=T(p),U=T(_),j=T(E),H=T(C),q=T(S),Z=T(Object.seal(y)),W=T(b),$=T(k),Y=T(x),J=T(g),X=T(I),Q=T(B),ee=T(Object.seal(i)),te=(e,t)=>{const n=P(e);if(n){if(!t)return!0;{if(n.attributes[t])return!0;const e=n.attributePatterns;if(e){let n=e.length;for(;n--;)if(e[n].pattern.test(t))return!0}}}return!1},oe=e=>Ce(j(),e),re=e=>!$e(e,"#")&&te(e)&&!oe(e),ae=T(a);return e.valid_elements?(L(e.valid_elements),xi(c,(e,t)=>{o[t]=e.children})):(xi(c,(e,t)=>{n[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},o[t]=e.children}),xi(fi("strong/b em/i"),e=>{const t=fi(e,"/");n[t[1]].outputName=t[0]}),xi(S,(t,o)=>{n[o]&&(e.padd_empty_block_inline_children&&(n[o].paddInEmptyBlock=!0),n[o].removeEmpty=!0)}),xi(fi("ol ul blockquote a table tbody"),e=>{n[e]&&(n[e].removeEmpty=!0)}),xi(fi("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),e=>{n[e]&&(n[e].paddEmpty=!0)}),xi(fi("span"),e=>{n[e].removeEmptyAttrs=!0})),delete n.svg,M(e.custom_elements),N(e.valid_children),O(e.extended_valid_elements),N("+ol[ul|ol],+ul[ul|ol]"),xi({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(e,t)=>{n[t]&&(n[t].parentsRequired=fi(e))}),e.invalid_elements&&xi(Ci(e.invalid_elements),e=>{n[e]&&delete n[e]}),P("span")||O("span[!data-mce-type|*]"),{type:s,children:o,elements:n,getValidStyles:R,getValidClasses:z,getBlockElements:j,getInvalidStyles:V,getVoidElements:Z,getTextBlockElements:H,getTextInlineElements:q,getBoolAttrs:U,getElementRule:P,getSelfClosingElements:W,getNonEmptyElements:$,getMoveCaretBeforeOnEnterElements:Y,getWhitespaceElements:J,getTransparentElements:X,get
vendor: 1,625 bytes, line 2
2SpecialElements:ee,isValidChild:(e,t)=>{const n=o[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:te,isBlock:oe,isInline:re,isWrapper:e=>Ce(Q(),e)||re(e),getCustomElements:ae,addValidElements:O,setValidElements:L,addCustomElements:M,addValidChildren:N}},Bi=e=>{const t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},Oi=e=>(e=>{return{value:(t=e,Ze(t,"#").toUpperCase())};var t})(Bi(e.red)+Bi(e.green)+Bi(e.blue)),Li=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,Di=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,Mi=(e,t,n,o)=>((e,t,n,o)=>({red:e,green:t,blue:n,alpha:o}))(parseInt(e,10),parseInt(t,10),parseInt(n,10),parseFloat(o)),Ni=e=>Li.test(e)?"rgb":Di.test(e)?"rgba":"other",Pi=e=>{const t=Li.exec(e);if(null!==t)return F.some(Mi(t[1],t[2],t[3],"1"));const n=Di.exec(e);return null!==n?F.some(Mi(n[1],n[2],n[3],n[4])):F.none()},Ri=e=>`rgba(${e.red},${e.green},${e.blue},${e.alpha})`,Fi=e=>Pi(e).map(Oi).map(e=>"#"+e.value).getOr(e),Vi=(e={},t)=>{const n=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,o=/\s*([^:]+):\s*([^;]+);?/g,r=/\s+$/,a={};let i,l;const s=lt;t&&(i=t.getValidStyles(),l=t.getInvalidStyles());const c="\\\" \\' \\; \\: ; : \ufeff".split(" ");for(let e=0;e<c.length;e++)a[c[e]]=s+e,a[s+e]=c[e];const u={parse:t=>{const i={};let l=!1;const c=e.url_converter,d=e.url_converter_scope||u,p=(e,t,n)=>{const o=i[e+"-top"+t];if(!o)return;const r=i[e+"-right"+t];if(!r)return;const a=i[e+"-bottom"+t];if(!a)return;const l=i[e+"-left"+t];
vendor: 36,913 bytes, line 2
2if(!l)return;const s=[o,r,a,l];let c=s.length-1;for(;c--&&s[c]===s[c+1];);c>-1&&n||(i[e+t]=-1===c?s[0]:s.join(" "),delete i[e+"-top"+t],delete i[e+"-right"+t],delete i[e+"-bottom"+t],delete i[e+"-left"+t])},f=e=>{const t=i[e];if(!t)return;const n=t.indexOf(",")>-1?[t]:t.split(" ");let o=n.length;for(;o--;)if(n[o]!==n[0])return!1;return i[e]=n[0],!0},m=e=>(l=!0,a[e]),g=(e,t)=>(l&&(e=e.replace(/\uFEFF[0-9]/g,e=>a[e])),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e),h=e=>String.fromCharCode(parseInt(e.slice(1),16)),b=e=>e.replace(/\\[0-9a-f]+/gi,h),v=(t,n,o,r,a,i)=>{if(a=a||i)return"'"+(a=g(a)).replace(/\'/g,"\\'")+"'";if(n=g(n||o||r||""),!e.allow_script_urls){const t=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(t))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(t))return""}return c&&(n=c.call(d,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){let a;for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,m).replace(/\"[^\"]+\"|\'[^\']+\'/g,e=>e.replace(/[;:]/g,m));a=o.exec(t);){o.lastIndex=a.index+a[0].length;let t=a[1].replace(r,"").toLowerCase(),c=a[2].replace(r,"");if(t&&c){if(t=b(t),c=b(c),-1!==t.indexOf(s)||-1!==t.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===t||/expression\s*\(|\/\*|\*\//.test(c)))continue;"font-weight"===t&&"700"===c?c="bold":"color"!==t&&"background-color"!==t||(c=c.toLowerCase()),"rgb"===Ni(c)&&Pi(c).each(e=>{c=Fi(Ri(e)).toLowerCase()}),c=c.replace(n,v),i[t]=l?g(c,!0):c}}p("border","",!0),p("border","-width"),p("border","-color"),p("border","-style"),p("padding",""),p("margin",""),_="border-style",A="border-color",f(y="border-width")&&f(_)&&f(A)&&(i.border=i[y]+" "+i[_]+" "+i[A],delete i[y],delete i[_],delete i[A]),"medium none"===i.border&&delete i.border,"none"===i["border-image"]&&delete i["border-image"]}var y,_,A;return i},serialize:(e,t)=>{let n="";const o=(t,o)=>{const r=o[t];if(r)for(let t=0,o=r.length;t<o;t++){const o=r[t],a=e[o];a&&(n+=(n.length>0?" ":"")+o+": "+a+";")}};return t&&i?(o("*",i),o(t,i)):he(e,(e,o)=>{e&&((e,t)=>{if(!l||!t)return!0;let n=l["*"];return!(n&&n[e]||(n=l[t],n&&n[e]))})(o,t)&&(n+=(n.length>0?" ":"")+o+": "+e+";")}),n}};return u},zi={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Ui=(e,t)=>{const n=null!=t?t:{};for(const t in e)Ce(zi,t)||(n[t]=e[t]);return A(e.composedPath)&&(n.composedPath=()=>e.composedPath()),A(e.getModifierState)&&(n.getModifierState=t=>e.getModifierState(t)),A(e.getTargetRanges)&&(n.getTargetRanges=()=>e.getTargetRanges()),n},ji=(e,t,n,o)=>{var r;const a=Ui(t,o);return a.type=e,_(a.target)&&(a.target=null!==(r=a.srcElement)&&void 0!==r?r:n),(e=>_(e.preventDefault)||(e=>e instanceof Event||k(e.initEvent))(e))(t)&&(a.preventDefault=()=>{a.defaultPrevented=!0,a.isDefaultPrevented=R,k(t.preventDefault)&&t.preventDefault()},a.stopPropagation=()=>{a.cancelBubble=!0,a.isPropagationStopped=R,k(t.stopPropagation)&&t.stopPropagation()},a.stopImmediatePropagation=()=>{a.isImmediatePropagationStopped=R,a.stopPropagation()},(e=>e.isDefaultPrevented===R||e.isDefaultPrevented===P)(a)||(a.isDefaultPrevented=!0===a.defaultPrevented?R:P,a.isPropagationStopped=!0===a.cancelBubble?R:P,a.isImmediatePropagationStopped=P)),a},Hi=/^(?:mouse|contextmenu)|click/,qi=(e,t,n,o)=>{e.addEventListener(t,n,o||!1)},Gi=(e,t,n,o)=>{e.removeEventListener(t,n,o||!1)},Ki=(e,t)=>{const n=ji(e.type,e,document,t);if((e=>A(e)&&Hi.test(e.type))(e)&&y(e.pageX)&&!y(e.clientX)){const t=n.target.ownerDocument||document,o=t.documentElement,r=t.body,a=n;a.pageX=e.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),a.pageY=e.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)}return n},Zi=(e,t,n)=>{const o=e.document,r={type:"ready"};if(n.domLoaded)return void t(r);const a=()=>{Gi(e,"DOMContentLoaded",a),Gi(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(r)),e=null};"complete"===o.readyState||"interactive"===o.readyState&&o.body?a():qi(e,"DOMContentLoaded",a),n.domLoaded||qi(e,"load",a)};class Wi{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(e,t,n,o){const r=this;let a;const i=window,l=e=>{r.executeHandlers(Ki(e||i.event),s)};if(!e||ta(e)||ra(e))return n;let s;e[r.expando]?s=e[r.expando]:(s=r.count++,e[r.expando]=s,r.events[s]={}),o=o||e;const c=t.split(" ");let u=c.length;for(;u--;){let t=c[u],d=l,p=!1,f=!1;"DOMContentLoaded"===t&&(t="ready"),r.domLoaded&&"ready"===t&&"complete"===e.readyState?n.call(o,Ki({type:t})):(r.hasFocusIn||"focusin"!==t&&"focusout"!==t||(p=!0,f="focusin"===t?"focus":"blur",d=e=>{const t=Ki(e||i.event);t.type="focus"===t.type?"focusin":"focusout",r.executeHandlers(t,s)}),a=r.events[s][t],a?"ready"===t&&r.domLoaded?n(Ki({type:t})):a.push({func:n,scope:o}):(r.events[s][t]=a=[{func:n,scope:o}],a.fakeName=f,a.capture=p,a.nativeHandler=d,"ready"===t?Zi(e,d,r):qi(e,f||t,d,p)))}return e=a=null,n}unbind(e,t,n){if(!e||ta(e)||ra(e))return this;const o=e[this.expando];if(o){let r=this.events[o];if(t){const o=t.split(" ");let a=o.length;for(;a--;){const t=o[a],i=r[t];if(i){if(n){let e=i.length;for(;e--;)if(i[e].func===n){const n=i.nativeHandler,o=i.fakeName,a=i.capture,l=i.slice(0,e).concat(i.slice(e+1));l.nativeHandler=n,l.fakeName=o,l.capture=a,r[t]=l}}n&&0!==i.length||(delete r[t],Gi(e,i.fakeName||t,i.nativeHandler,i.capture))}}}else he(r,(t,n)=>{Gi(e,t.fakeName||n,t.nativeHandler,t.capture)}),r={};for(const e in r)if(Ce(r,e))return this;delete this.events[o];try{delete e[this.expando]}catch(t){e[this.expando]=null}}return this}fire(e,t,n){return this.dispatch(e,t,n)}dispatch(e,t,n){if(!e||ta(e)||ra(e))return this;const o=Ki({type:t,target:e},n);do{const t=e[this.expando];t&&this.executeHandlers(o,t),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!o.isPropagationStopped());return this}clean(e){if(!e||ta(e)||ra(e))return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e);const t=e.getElementsByTagName("*");let n=t.length;for(;n--;)(e=t[n])[this.expando]&&this.unbind(e)}return this}destroy(){this.events={}}cancel(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1}executeHandlers(e,t){const n=this.events[t],o=n&&n[e.type];if(o)for(let t=0,n=o.length;t<n;t++){const n=o[t];if(n&&!1===n.func.call(n.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}}}Wi.Event=new Wi;const $i=sn.each,Yi=sn.grep,Ji="data-mce-style",Xi=sn.makeMap("fill-opacity font-weight line-height opacity orphans widows z-index zoom"," "),Qi=(e,t,n)=>{_(n)||""===n?_o(e,t):go(e,t,n)},el=e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),tl=(e,t)=>{let n=0;if(e)for(let o=e.nodeType,r=e.previousSibling;r;r=r.previousSibling){const e=r.nodeType;(!t||!ta(r)||e!==o&&r.data.length)&&(n++,o=e)}return n},nl=(e,t)=>{const n=bo(t,"style"),o=e.serialize(e.parse(n),wn(t));Qi(t,Ji,o)},ol=(e,t,n)=>{const o=el(t);_(n)||""===n?zo(e,o):Mo(e,o,((e,t)=>x(e)?Ce(Xi,t)?e+"":e+"px":e)(n,o))},rl=(e,t={})=>{const n={},o=window,r={};let a=0;const i=$a.forElement(fn(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),l=[],s=t.schema?t.schema:Ii({}),c=Vi({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),u=t.ownEvents?new Wi:Wi.Event,d=s.getBlockElements(),p=t=>t&&e&&f(t)?e.getElementById(t):t,m=e=>{const t=p(e);return A(t)?fn(t):null},b=(e,t,n="")=>{let o;const r=m(e);if(A(r)&&Tn(r)){const e=$[t];o=e&&e.get?e.get(r.dom,t):bo(r,t)}return A(o)?o:n},v=e=>{const t=p(e);return _(t)?[]:t.attributes},y=(e,n,o)=>{L(e,e=>{if(Kr(e)){const r=fn(e),a=""===o?null:o,i=bo(r,n),l=$[n];l&&l.set?l.set(r.dom,a,n):Qi(r,n,a),i!==a&&t.onSetAttrib&&t.onSetAttrib({attrElm:r.dom,attrName:n,attrValue:a})}})},x=()=>t.root_element||e.body,w=(t,n)=>((e,t,n)=>{let o=0,r=0;const a=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Po(fn(e),"position")){const n=t.getBoundingClientRect();return o=n.left+(a.documentElement.scrollLeft||e.scrollLeft)-a.documentElement.clientLeft,r=n.top+(a.documentElement.scrollTop||e.scrollTop)-a.documentElement.clientTop,{x:o,y:r}}let i=t;for(;i&&i!==n&&i.nodeType&&!Za(i,n);){const e=i;o+=e.offsetLeft||0,r+=e.offsetTop||0,i=e.offsetParent}for(i=t.parentNode;i&&i!==n&&i.nodeType&&!Za(i,n);)o-=i.scrollLeft||0,r-=i.scrollTop||0,i=i.parentNode;r+=(e=>Ga.isFirefox()&&"table"===wn(e)?Ka(Hn(e)).filter(e=>"caption"===wn(e)).bind(e=>Ka(jn(e)).map(t=>{const n=t.dom.offsetTop,o=e.dom.offsetTop,r=e.dom.offsetHeight;return n<=o?-r:0})).getOr(0):0)(fn(t))}return{x:o,y:r}})(e.body,p(t),n),E=(e,t,n)=>{const o=p(e);var r;if(!_(o)&&(Zr(o)||Kr(r=o)&&"http://www.w3.org/2000/svg"===r.namespaceURI))return n?Po(fn(o),el(t)):("float"===(t=t.replace(/-(\D)/g,(e,t)=>t.toUpperCase()))&&(t="cssFloat"),o.style?o.style[t]:void 0)},S=e=>{const t=p(e);if(!t)return{w:0,h:0};let n=E(t,"width"),o=E(t,"height");return n&&-1!==n.indexOf("px")||(n="0"),o&&-1!==o.indexOf("px")||(o="0"),{w:parseInt(n,10)||t.offsetWidth||t.clientWidth,h:parseInt(o,10)||t.offsetHeight||t.clientHeight}},I=(e,t)=>{if(!e)return!1;const n=h(e)?e:[e];return q(n,e=>yn(fn(e),t))},B=(e,t,n,o)=>{const r=[];let a=p(e);o=void 0===o;const i=n||("BODY"!==x().nodeName?x().parentNode:null);if(f(t))if("*"===t)t=Kr;else{const e=t;t=t=>I(t,e)}for(;a&&!(a===i||_(a.nodeType)||aa(a)||ia(a));){if(!t||t(a)){if(!o)return[a];r.push(a)}a=a.parentNode}return o?r:null},O=(e,t,n)=>{let o=t;if(e){f(t)&&(o=e=>I(e,t));for(let t=e[n];t;t=t[n])if(k(o)&&o(t))return t}return null},L=function(e,t,n){const o=null!=n?n:this;if(h(e)){const n=[];return $i(e,(e,r)=>{const a=p(e);a&&n.push(t.call(o,a,r))}),n}{const n=p(e);return!!n&&t.call(o,n)}},D=(e,t)=>{L(e,e=>{he(t,(t,n)=>{y(e,n,t)})})},M=(e,t)=>{L(e,e=>{const n=fn(e);Bo(n,t)})},N=(t,n,o,r,a)=>L(t,t=>{const i=f(n)?e.createElement(n):n;return A(o)&&D(i,o),r&&(!f(r)&&r.nodeType?i.appendChild(r):f(r)&&M(i,r)),a?i:t.appendChild(i)}),P=(t,n,o)=>N(e.createElement(t),t,n,o,!0),R=pi.encodeAllRaw,F=(e,t)=>L(e,e=>{const n=fn(e);return t&&K(Hn(n),e=>{In(e)&&0===e.dom.length?xo(e):lo(n,e)}),xo(n),n.dom}),V=(e,t,n)=>{L(e,e=>{if(Kr(e)){const o=fn(e),r=t.split(" ");K(r,e=>{A(n)?(n?dr:fr)(o,e):((e,t)=>{const n=lr(e)?e.dom.classList.toggle(t):((e,t)=>H(sr(e),t)?ur(e,t):cr(e,t))(e,t);pr(e)})(o,e)})}})},z=(e,t,n)=>L(t,o=>{var r;const a=h(t)?e.cloneNode(!0):e;return n&&$i(Yi(o.childNodes),e=>{a.appendChild(e)}),null===(r=o.parentNode)||void 0===r||r.replaceChild(a,o),o}),U=()=>e.createRange(),j=(n,r,a,i)=>{if(h(n)){let e=n.length;const t=[];for(;e--;)t[e]=j(n[e],r,a,i);return t}return!t.collect||n!==e&&n!==o||l.push([n,r,a,i]),u.bind(n,r,a,i||W)},G=(t,n,r)=>{if(h(t)){let e=t.length;const o=[];for(;e--;)o[e]=G(t[e],n,r);return o}if(l.length>0&&(t===e||t===o)){let e=l.length;for(;e--;){const[o,a,i]=l[e];t!==o||n&&n!==a||r&&r!==i||u.unbind(o,a,i)}}return u.unbind(t,n,r)},Z=e=>{if(e&&Zr(e)){const t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},W={doc:e,settings:t,win:o,files:r,stdMode:!0,boxModel:!0,styleSheetLoader:i,boundEvents:l,styles:c,schema:s,events:u,isBlock:e=>f(e)?Ce(d,e):Kr(e)&&(Ce(d,e.nodeName)||ja(s,e)),root:null,clone:(e,t)=>e.cloneNode(t),getRoot:x,getViewPort:e=>{const t=Fr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},getRect:e=>{const t=p(e),n=w(t),o=S(t);return{x:n.x,y:n.y,w:o.w,h:o.h}},getSize:S,getParent:(e,t,n)=>{const o=B(e,t,n,!1);return o&&o.length>0?o[0]:null},getParents:B,get:p,getNext:(e,t)=>O(e,t,"nextSibling"),getPrev:(e,t)=>O(e,t,"previousSibling"),select:(n,o)=>{var r,a;const i=null!==(a=null!==(r=p(o))&&void 0!==r?r:t.root_element)&&void 0!==a?a:e;return k(i.querySelectorAll)?de(i.querySelectorAll(n)):[]},is:I,add:N,create:P,createHTML:(e,t,n="")=>{let o="<"+e;for(const e in t)Ee(t,e)&&(o+=" "+e+'="'+R(t[e])+'"');return nt(n)&&Ce(s.getVoidElements(),e)?o+" />":o+">"+n+"</"+e+">"},createFragment:t=>{const n=e.createElement("div"),o=e.createDocumentFragment();let r;for(o.appendChild(n),t&&(n.innerHTML=t);r=n.firstChild;)o.appendChild(r);return o.removeChild(n),o},remove:F,setStyle:(e,n,o)=>{L(e,e=>{const r=fn(e);ol(r,n,o),t.update_styles&&nl(c,r)})},getStyle:E,setStyles:(e,n)=>{L(e,e=>{const o=fn(e);he(n,(e,t)=>{ol(o,t,e)}),t.update_styles&&nl(c,o)})},removeAllAttribs:e=>L(e,e=>{const t=e.attributes;for(let n=t.length-1;n>=0;n--)e.removeAttributeNode(t.item(n))}),setAttrib:y,setAttribs:D,getAttrib:b,getPos:w,parseStyle:e=>c.parse(e),serializeStyle:(e,t)=>c.serialize(e,t),addStyle:t=>{if(W!==rl.DOM&&e===document){if(n[t])return;n[t]=!0}let o=e.getElementById("mceDefaultStyles");if(!o){o=e.createElement("style"),o.id="mceDefaultStyles",o.type="text/css";const t=e.head;t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o)}o.styleSheet?o.styleSheet.cssText+=t:o.appendChild(e.createTextNode(t))},loadCSS:e=>{e||(e=""),K(e.split(","),e=>{r[e]=!0,i.load(e).catch(C)})},addClass:(e,t)=>{V(e,t,!0)},removeClass:(e,t)=>{V(e,t,!1)},hasClass:(e,t)=>{const n=m(e),o=t.split(" ");return A(n)&&oe(o,e=>mr(n,e))},toggleClass:V,show:e=>{L(e,e=>zo(fn(e),"display"))},hide:e=>{L(e,e=>Mo(fn(e),"display","none"))},isHidden:e=>{const t=m(e);return A(t)&&Ve(Fo(t,"display"),"none")},uniqueId:e=>(e||"mce_")+a++,setHTML:M,getOuterHTML:e=>{const t=m(e);return A(t)?Kr(t.dom)?t.dom.outerHTML:(e=>{const t=dn("div"),n=fn(e.dom.cloneNode(!0));return uo(t,n),Io(t)})(t):""},setOuterHTML:(e,t)=>{L(e,e=>{Kr(e)&&(e.outerHTML=t)})},decode:pi.decode,encode:R,insertAfter:(e,t)=>{const n=p(t);return L(e,e=>{const t=null==n?void 0:n.parentNode,o=null==n?void 0:n.nextSibling;return t&&(o?t.insertBefore(e,o):t.appendChild(e)),e})},replace:z,rename:(e,t)=>{if(e.nodeName!==t.toUpperCase()){const n=P(t);return $i(v(e),t=>{y(n,t.nodeName,b(e,t.nodeName))}),z(n,e,!0),n}return e},findCommonAncestor:(e,t)=>{let n=e;for(;n;){let e=t;for(;e&&n!==e;)e=e.parentNode;if(n===e)break;n=n.parentNode}return!n&&e.ownerDocument?e.ownerDocument.documentElement:n},run:L,getAttribs:v,isEmpty:(e,t,n)=>{if(g(t)){const o=e=>{const n=e.nodeName.toLowerCase();return Boolean(t[n])};return xa(s,e,{...n,isContent:o})}return xa(s,e,n)},createRng:U,nodeIndex:tl,split:(e,t,n)=>{let o,r,a=U();if(e&&t&&e.parentNode&&t.parentNode){const i=e.parentNode;return a.setStart(i,tl(e)),a.setEnd(t.parentNode,tl(t)),o=a.extractContents(),a=U(),a.setStart(t.parentNode,tl(t)+1),a.setEnd(i,tl(e)+1),r=a.extractContents(),i.insertBefore(Xa(W,o,s),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(Xa(W,r,s),e),F(e),n||t}},bind:j,unbind:G,fire:(e,t,n)=>u.dispatch(e,t,n),dispatch:(e,t,n)=>u.dispatch(e,t,n),getContentEditable:Z,getContentEditableParent:e=>{const t=x();let n=null;for(let o=e;o&&o!==t&&(n=Z(o),null===n);o=o.parentNode);return n},isEditable:e=>{if(A(e)){const t=Kr(e)?e:e.parentElement;return A(t)&&Zr(t)&&gr(fn(t))}return!1},destroy:()=>{if(l.length>0){let e=l.length;for(;e--;){const[t,n,o]=l[e];u.unbind(t,n,o)}}he(r,(e,t)=>{i.unload(t),delete r[t]})},isChildOf:(e,t)=>e===t||t.contains(e),dumpRng:e=>"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},$=((e,t,n)=>{const o=t.keep_values,r={set:(e,o,r)=>{const a=fn(e);k(t.url_converter)&&A(o)&&(o=t.url_converter.call(t.url_converter_scope||n(),String(o),r,e)),Qi(a,"data-mce-"+r,o),Qi(a,r,o)},get:(e,t)=>{const n=fn(e);return bo(n,"data-mce-"+t)||bo(n,t)}},a={style:{set:(t,n)=>{const r=fn(t);o&&Qi(r,Ji,n),_o(r,"style"),f(n)&&No(r,e.parse(n))},get:t=>{const n=fn(t),o=bo(n,Ji)||bo(n,"style");return e.serialize(e.parse(o),wn(n))}}};return o&&(a.href=a.src=r),a})(c,t,T(W));return W};rl.DOM=rl(document),rl.nodeIndex=tl;const al=rl.DOM;class il{constructor(e={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=e}_setReferrerPolicy(e){this.settings.referrerPolicy=e}loadScript(e){return new Promise((t,n)=>{const o=al;let r;const a=()=>{o.remove(i),r&&(r.onerror=r.onload=r=null)},i=o.uniqueId();r=document.createElement("script"),r.id=i,r.type="text/javascript",r.src=sn._addCacheSuffix(e),this.settings.referrerPolicy&&o.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=()=>{a(),t()},r.onerror=()=>{a(),n("Failed to load script: "+e)},(document.getElementsByTagName("head")[0]||document.body).appendChild(r)})}isDone(e){return 2===this.states[e]}markDone(e){this.states[e]=2}add(e){const t=this;return t.queue.push(e),void 0===t.states[e]&&(t.states[e]=0),new Promise((n,o)=>{t.scriptLoadedCallbacks[e]||(t.scriptLoadedCallbacks[e]=[]),t.scriptLoadedCallbacks[e].push({resolve:n,reject:o})})}load(e){return this.add(e)}remove(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]}loadQueue(){const e=this.queue;return this.queue=[],this.loadScripts(e)}loadScripts(e){const t=this,n=(e,n)=>{we(t.scriptLoadedCallbacks,n).each(t=>{K(t,t=>t[e](n))}),delete t.scriptLoadedCallbacks[n]},o=e=>{const t=$(e,e=>"rejected"===e.status);return t.length>0?Promise.reject(ne(t,({reason:e})=>h(e)?e:[e])):Promise.resolve()},r=e=>Promise.allSettled(G(e,e=>2===t.states[e]?(n("resolve",e),Promise.resolve()):3===t.states[e]?(n("reject",e),Promise.reject(e)):(t.states[e]=1,t.loadScript(e).then(()=>{t.states[e]=2,n("resolve",e);const a=t.queue;return a.length>0?(t.queue=[],r(a).then(o)):Promise.resolve()},()=>(t.states[e]=3,n("reject",e),Promise.reject(e)))))),a=e=>(t.loading=!0,r(e).then(e=>{t.loading=!1;const n=t.queueLoadedCallbacks.shift();return F.from(n).each(N),o(e)})),i=ut(e);return t.loading?new Promise((e,n)=>{t.queueLoadedCallbacks.push(()=>{a(i).then(e,n)})}):a(i)}}il.ScriptLoader=new il;const ll={},sl=Te("en"),cl=()=>we(ll,sl.get()),ul={getData:()=>be(ll,e=>({...e})),setCode:e=>{e&&sl.set(e)},getCode:()=>sl.get(),add:(e,t)=>{let n=ll[e];n||(ll[e]=n={});const o=G(me(t),e=>e.toLowerCase());he(t,(e,r)=>{const a=r.toLowerCase();a!==r&&((e,t)=>{const n=e.indexOf(t);return-1!==n&&e.indexOf(t,n+1)>n})(o,a)?(Ce(t,a)||(n[a]=e),n[r]=e):n[a]=e})},translate:e=>{const t=cl().getOr({}),n=e=>k(e)?Object.prototype.toString.call(e):o(e)?"":""+e,o=e=>""===e||null==e,r=e=>{const o=n(e);return Ce(t,o)?n(t[o]):we(t,o.toLowerCase()).map(n).getOr(o)},a=e=>e.replace(/{context:\w+}$/,"");if(o(e))return"";if(m(i=e)&&Ce(i,"raw"))return n(e.raw);var i;if((e=>h(e)&&e.length>1)(e)){const t=e.slice(1);return a(r(e[0]).replace(/\{([0-9]+)\}/g,(e,o)=>Ce(t,o)?n(t[o]):e))}return a(r(e))},isRtl:()=>cl().bind(e=>we(e,"_dir")).exists(e=>"rtl"===e),hasCode:e=>Ce(ll,e)},dl=()=>{const e=[],t={},n={},o=[],r=(e,t)=>{const n=$(o,n=>n.name===e&&n.state===t);K(n,e=>e.resolve())},a=e=>Ce(t,e),i=(e,n)=>{const o=ul.getCode();!o||n&&-1===(","+(n||"")+",").indexOf(","+o+",")||il.ScriptLoader.add(t[e]+"/langs/"+o+".js")},l=(e,t="added")=>"added"===t&&(e=>Ce(n,e))(e)||"loaded"===t&&a(e)?Promise.resolve():new Promise(n=>{o.push({name:e,state:t,resolve:n})});return{items:e,urls:t,lookup:n,get:e=>{if(n[e])return n[e].instance},requireLangPack:(e,t)=>{!1!==dl.languageLoad&&(a(e)?i(e,t):l(e,"loaded").then(()=>i(e,t)))},add:(t,o)=>(e.push(o),n[t]={instance:o},r(t,"added"),o),remove:e=>{delete t[e],delete n[e]},createUrl:(e,t)=>f(t)?f(e)?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}:t,load:(e,o)=>{if(t[e])return Promise.resolve();let a=f(o)?o:o.prefix+o.resource+o.suffix;0!==a.indexOf("/")&&-1===a.indexOf("://")&&(a=dl.baseURL+"/"+a),t[e]=a.substring(0,a.lastIndexOf("/"));const i=()=>(r(e,"loaded"),Promise.resolve());return n[e]?i():il.ScriptLoader.add(a).then(i)},waitFor:l}};dl.languageLoad=!0,dl.baseURL="",dl.PluginManager=dl(),dl.ThemeManager=dl(),dl.ModelManager=dl();const pl=T("mce-annotation"),fl=T("data-mce-annotation"),ml=T("data-mce-annotation-uid"),gl=T("data-mce-annotation-active"),hl=T("data-mce-annotation-classes"),bl=T("data-mce-annotation-attrs"),vl=e=>t=>An(t,e),yl=(e,t)=>{const n=e.selection.getRng(),o=fn(n.startContainer),r=fn(e.getBody()),a=t.fold(()=>"."+pl(),e=>`[${fl()}="${e}"]`),i=qn(o,n.startOffset).getOr(o);return ir(i,a,vl(r)).bind(t=>vo(t,`${ml()}`).bind(n=>vo(t,`${fl()}`).map(t=>{const o=Al(e,n);return{uid:n,name:t,elements:o}})))},_l=(e,t)=>yo(e,"data-mce-bogus")||((e,t,n)=>rr(e,'[data-mce-bogus="all"]',n).isSome())(e,0,vl(t)),Al=(e,t)=>{const n=fn(e.getBody()),o=yr(n,`[${ml()}="${t}"]`);return $(o,e=>!_l(e,n))},kl=(e,t)=>{const n=fn(e.getBody()),o=yr(n,`[${fl()}="${t}"]`),r={};return K(o,e=>{if(!_l(e,n)){const t=bo(e,ml()),n=we(r,t).getOr([]);r[t]=n.concat([e])}}),r},xl=(e,t,n=P)=>{const o=new Vr(e,t),r=e=>{let t;do{t=o[e]()}while(t&&!ta(t)&&!n(t));return F.from(t).filter(ta)};return{current:()=>F.from(o.current()).filter(ta),next:()=>r("next"),prev:()=>r("prev"),prev2:()=>r("prev2")}},wl=(e,t)=>{const n=t||(t=>e.isBlock(t)||la(t)||da(t)),o=(e,t,n,r)=>{if(ta(e)){const n=r(e,t,e.data);if(-1!==n)return F.some({container:e,offset:n})}return n().bind(e=>o(e.container,e.offset,n,r))};return{backwards:(t,r,a,i)=>{const l=xl(t,null!=i?i:e.getRoot(),n);return o(t,r,()=>l.prev().map(e=>({container:e,offset:e.length})),a).getOrNull()},forwards:(t,r,a,i)=>{const l=xl(t,null!=i?i:e.getRoot(),n);return o(t,r,()=>l.next().map(e=>({container:e,offset:0})),a).getOrNull()}}},Cl=e=>{let t;return n=>(t=t||ie(e,R),Ce(t,wn(n)))},El=e=>Tn(e)&&"br"===wn(e),Sl=Cl(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),Tl=Cl(["ul","ol","dl"]),Il=Cl(["li","dd","dt"]),Bl=Cl(["thead","tbody","tfoot"]),Ol=Cl(["td","th"]),Ll=Cl(["pre","script","textarea","style"]),Dl=()=>{const e=dn("br");return go(e,"data-mce-bogus","1"),e},Ml=e=>{ko(e),uo(e,Dl())},Nl=lt,Pl=ct,Rl=e=>e.replace(/\uFEFF/g,""),Fl=Kr,Vl=ta,zl=e=>(Vl(e)&&(e=e.parentNode),Fl(e)&&e.hasAttribute("data-mce-caret")),Ul=e=>Vl(e)&&Pl(e.data),jl=e=>zl(e)||Ul(e),Hl=e=>e.firstChild!==e.lastChild||!la(e.firstChild),ql=e=>{const t=e.container();return!!ta(t)&&(t.data.charAt(e.offset())===Nl||e.isAtStart()&&Ul(t.previousSibling))},Gl=e=>{const t=e.container();return!!ta(t)&&(t.data.charAt(e.offset()-1)===Nl||e.isAtEnd()&&Ul(t.nextSibling))},Kl=e=>Vl(e)&&e.data[0]===Nl,Zl=e=>Vl(e)&&e.data[e.data.length-1]===Nl,Wl=e=>e&&e.hasAttribute("data-mce-caret")?((e=>{var t;const n=e.getElementsByTagName("br"),o=n[n.length-1];Jr(o)&&(null===(t=o.parentNode)||void 0===t||t.removeChild(o))})(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,$l=e=>zl(e.startContainer),Yl=Math.round,Jl=e=>e?{left:Yl(e.left),top:Yl(e.top),bottom:Yl(e.bottom),right:Yl(e.right),width:Yl(e.width),height:Yl(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Xl=(e,t)=>(e=Jl(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e),Ql=(e,t,n)=>e>=0&&e<=Math.min(t.height,n.height)/2,es=(e,t)=>{const n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&Ql(t.top-e.bottom,e,t)},ts=(e,t)=>e.top>t.bottom||!(e.bottom<t.top)&&Ql(t.bottom-e.top,e,t),ns=(e,t,n)=>{const o=Math.max(Math.min(t,e.left+e.width),e.left),r=Math.max(Math.min(n,e.top+e.height),e.top);return Math.sqrt((t-o)*(t-o)+(n-r)*(n-r))},os=e=>{const t=e.startContainer,n=e.startOffset;return t===e.endContainer&&t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},rs=(e,t)=>{if(Kr(e)&&e.hasChildNodes()){const n=e.childNodes,o=((e,t,n)=>Math.min(Math.max(e,0),n))(t,0,n.length-1);return n[o]}return e},as=new RegExp("[Ì-ͯÒ-ÒÒ-ÒÖ-Ö½Ö¿×-××-×
ר-ØÙ-ÙÙ°Û-ÛÛ-Û¤Û§-Û¨Ûª-ÛÜܰ-ÝÞ¦-Þ°ß«-ß³à -à à -à £à ¥-à §à ©-à à¡-à¡à££-à¤à¤ºà¤¼à¥-à¥à¥à¥-à¥à¥¢-ॣà¦à¦¼à¦¾à§-à§à§à§à§¢-à§£à¨-à¨à¨¼à©-à©à©-à©à©-à©à©à©°-ੱੵàª-àªàª¼à«-à«
à«-à«à«à«¢-à«£à¬à¬¼à¬¾à¬¿à-ààààà¢-à£à®à®¾à¯à¯à¯à°à°¾-à±à±-à±à±-à±à±-à±à±¢-à±£à²à²¼à²¿à³à³à³-à³à³-à³à³¢-à³£à´à´¾àµ-àµàµàµàµ¢-ൣà·à·à·-à·à·à·à¸±à¸´-ฺà¹-à¹àº±àº´-ູົ-ຼà»-à»à¼-à¼à¼µà¼·à¼¹à½±-ཾà¾-à¾à¾-à¾à¾-à¾à¾-ྼà¿á-á°á²-á·á¹-áºá½-á¾á-áá-á á±-á´áá
-áááá-áá-áá²-á´á-áá²-á³á´-áµá·-á½áá-ááá -á ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻á¨-á¨á¨á©á©-á©á© ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾á¬-á¬á¬´á¬¶-ᬺᬼáá«-á³á®-á®á®¢-ᮥᮨ-ᮩ᮫-á®á¯¦á¯¨-ᯩá¯á¯¯-ᯱᰬ-ᰳᰶ-á°·á³-á³á³-á³ á³¢-᳨á³á³´á³¸-á³¹á·-᷵᷼-á·¿â-ââ-ââ-â â¡â¢-â¤â¥-â°â³¯-⵿⳱ⷠ-â·¿ãª-ãã®-ã¯ã-ãê¯ê°-ê²ê´-ê½ê-êê°-ê±ê ê ê ê ¥-ê ¦ê£ê£ -꣱ꤦ-ê¤ê¥-ê¥ê¦-ê¦ê¦³ê¦¶-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶê©ê©ê©¼êª°êª²-ꪴꪷ-ꪸꪾ-꪿ê«ê«¬-ê«ê«¶ê¯¥ê¯¨ê¯ï¬ï¸-ï¸ï¸ -︯ï¾-ï¾]"),is=e=>f(e)&&e.charCodeAt(0)>=768&&as.test(e),ls=ua,ss=da,cs=la,us=ta,ds=$r(["script","style","textarea"]),ps=$r(["img","input","textarea","hr","iframe","video","audio","object","embed"]),fs=$r(["table"]),ms=jl,gs=e=>!ms(e)&&(us(e)?!ds(e.parentNode):ps(e)||cs(e)||fs(e)||hs(e)),hs=e=>!(e=>Kr(e)&&"true"===e.getAttribute("unselectable"))(e)&&ss(e),bs=(e,t)=>gs(e)&&((e,t)=>{for(let n=e.parentNode;n&&n!==t;n=n.parentNode){if(hs(n))return!1;if(ls(n))return!0}return!0})(e,t),vs=Kr,ys=gs,_s=Yr("display","block table"),As=Yr("float","left right"),ks=((...e)=>t=>{for(let n=0;n<e.length;n++)if(!e[n](t))return!1;return!0})(vs,ys,L(As)),xs=L(Yr("white-space","pre pre-line pre-wrap")),ws=ta,Cs=la,Es=rl.nodeIndex,Ss=(e,t)=>t<0&&Kr(e)&&e.hasChildNodes()?void 0:rs(e,t),Ts=e=>e?e.createRange():rl.DOM.createRng(),Is=e=>f(e)&&/[\r\n\t ]/.test(e),Bs=e=>!!e.setStart&&!!e.setEnd,Os=e=>{const t=e.startContainer,n=e.startOffset;if(Is(e.toString())&&xs(t.parentNode)&&ta(t)){const e=t.data;if(Is(e[n-1])||Is(e[n+1]))return!0}return!1},Ls=e=>0===e.left&&0===e.right&&0===e.top&&0===e.bottom,Ds=e=>{var t;let n;const o=e.getClientRects();return n=o.length>0?Jl(o[0]):Jl(e.getBoundingClientRect()),!Bs(e)&&Cs(e)&&Ls(n)?(e=>{const t=e.ownerDocument,n=Ts(t),o=t.createTextNode(st),r=e.parentNode;r.insertBefore(o,e),n.setStart(o,0),n.setEnd(o,1);const a=Jl(n.getBoundingClientRect());return r.removeChild(o),a})(e):Ls(n)&&Bs(e)&&null!==(t=(e=>{const t=e.startContainer,n=e.endContainer,o=e.startOffset,r=e.endOffset;if(t===n&&ta(n)&&0===o&&1===r){const t=e.cloneRange();return t.setEndAfter(n),Ds(t)}return null})(e))&&void 0!==t?t:n},Ms=(e,t)=>{const n=Xl(e,t);return n.width=1,n.right=n.left+1,n},Ns=(e,t,n)=>{const o=()=>(n||(n=(e=>{const t=[],n=e=>{var n,o;0!==e.height&&(t.length>0&&(n=e,o=t[t.length-1],n.left===o.left&&n.top===o.top&&n.bottom===o.bottom&&n.right===o.right)||t.push(e))},o=(e,t)=>{const o=Ts(e.ownerDocument);if(t<e.data.length){if(is(e.data[t]))return;if(is(e.data[t-1])&&(o.setStart(e,t),o.setEnd(e,t+1),!Os(o)))return void n(Ms(Ds(o),!1))}t>0&&(o.setStart(e,t-1),o.setEnd(e,t),Os(o)||n(Ms(Ds(o),!1))),t<e.data.length&&(o.setStart(e,t),o.setEnd(e,t+1),Os(o)||n(Ms(Ds(o),!0)))},r=e.container(),a=e.offset();if(ws(r))return o(r,a),t;if(vs(r))if(e.isAtEnd()){const e=Ss(r,a);ws(e)&&o(e,e.data.length),ks(e)&&!Cs(e)&&n(Ms(Ds(e),!1))}else{const i=Ss(r,a);if(ws(i)&&o(i,0),ks(i)&&e.isAtEnd())return n(Ms(Ds(i),!1)),t;const l=Ss(e.container(),e.offset()-1);ks(l)&&!Cs(l)&&(_s(l)||_s(i)||!ks(i))&&n(Ms(Ds(l),!1)),ks(i)&&n(Ms(Ds(i),!0))}return t})(Ns(e,t))),n);return{container:T(e),offset:T(t),toRange:()=>{const n=Ts(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},getClientRects:o,isVisible:()=>o().length>0,isAtStart:()=>(ws(e),0===t),isAtEnd:()=>ws(e)?t>=e.data.length:t>=e.childNodes.length,isEqual:n=>n&&e===n.container()&&t===n.offset(),getNode:n=>Ss(e,n?t-1:t)}};Ns.fromRangeStart=e=>Ns(e.startContainer,e.startOffset),Ns.fromRangeEnd=e=>Ns(e.endContainer,e.endOffset),Ns.after=e=>Ns(e.parentNode,Es(e)+1),Ns.before=e=>Ns(e.parentNode,Es(e)),Ns.isAbove=(e,t)=>Ue(ce(t.getClientRects()),ue(e.getClientRects()),es).getOr(!1),Ns.isBelow=(e,t)=>Ue(ue(t.getClientRects()),ce(e.getClientRects()),ts).getOr(!1),Ns.isAtStart=e=>!!e&&e.isAtStart(),Ns.isAtEnd=e=>!!e&&e.isAtEnd(),Ns.isTextPosition=e=>!!e&&ta(e.container()),Ns.isElementPosition=e=>!Ns.isTextPosition(e);const Ps=(e,t)=>{ta(t)&&0===t.data.length&&e.remove(t)},Rs=(e,t,n)=>{ia(n)?((e,t,n)=>{const o=F.from(n.firstChild),r=F.from(n.lastChild);t.insertNode(n),o.each(t=>Ps(e,t.previousSibling)),r.each(t=>Ps(e,t.nextSibling))})(e,t,n):((e,t,n)=>{t.insertNode(n),Ps(e,n.previousSibling),Ps(e,n.nextSibling)})(e,t,n)},Fs=ta,Vs=Jr,zs=rl.nodeIndex,Us=e=>{const t=e.parentNode;return Vs(t)?Us(t):t},js=e=>e?ht(e.childNodes,(e,t)=>(Vs(t)&&"BR"!==t.nodeName?e=e.concat(js(t)):e.push(t),e),[]):[],Hs=e=>t=>e===t,qs=e=>(Fs(e)?"text()":e.nodeName.toLowerCase())+"["+(e=>{let t,n;t=js(Us(e)),n=bt(t,Hs(e),e),t=t.slice(0,n+1);const o=ht(t,(e,n,o)=>(Fs(n)&&Fs(t[o-1])&&e++,e),0);return t=gt(t,$r([e.nodeName])),n=bt(t,Hs(e),e),n-o})(e)+"]",Gs=(e,t)=>{let n,o=[],r=t.container(),a=t.offset();if(Fs(r))n=((e,t)=>{let n=e;for(;(n=n.previousSibling)&&Fs(n);)t+=n.data.length;return t})(r,a);else{const e=r.childNodes;a>=e.length?(n="after",a=e.length-1):n="before",r=e[a]}o.push(qs(r));let i=((e,t)=>{const n=[];for(let o=t.parentNode;o&&o!==e;o=o.parentNode)n.push(o);return n})(e,r);return i=gt(i,L(Jr)),o=o.concat(mt(i,e=>qs(e))),o.reverse().join("/")+","+n},Ks=(e,t)=>{if(!t)return null;const n=t.split(","),o=n[0].split("/"),r=n.length>1?n[1]:"before",a=ht(o,(e,t)=>{const n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),((e,t,n)=>{let o=js(e);return o=gt(o,(e,t)=>!Fs(e)||!Fs(o[t-1])),o=gt(o,$r([t])),o[n]})(e,n[1],parseInt(n[2],10))):null},e);if(!a)return null;if(!Fs(a)&&a.parentNode){let e;return e="after"===r?zs(a)+1:zs(a),Ns(a.parentNode,e)}return((e,t)=>{let n=e,o=0;for(;Fs(n);){const r=n.data.length;if(t>=o&&t<=o+r){e=n,t-=o;break}if(!Fs(n.nextSibling)){e=n,t=r;break}o+=r,n=n.nextSibling}return Fs(e)&&t>e.data.length&&(t=e.data.length),Ns(e,t)})(a,parseInt(r,10))},Zs=da,Ws=(e,t,n,o,r)=>{const a=r?o.startContainer:o.endContainer;let i=r?o.startOffset:o.endOffset;const l=[],s=e.getRoot();if(ta(a))l.push(n?((e,t,n)=>{let o=e(t.data.slice(0,n)).length;for(let n=t.previousSibling;n&&ta(n);n=n.previousSibling)o+=e(n.data).length;return o})(t,a,i):i);else{let t=0;const o=a.childNodes;i>=o.length&&o.length&&(t=1,i=Math.max(0,o.length-1)),l.push(e.nodeIndex(o[i],n)+t)}for(let t=a;t&&t!==s;t=t.parentNode)l.push(e.nodeIndex(t,n));return l},$s=(e,t,n)=>{let o=0;return sn.each(e.select(t),e=>"all"===e.getAttribute("data-mce-bogus")?void 0:e!==n&&void o++),o},Ys=(e,t)=>{let n=t?e.startContainer:e.endContainer,o=t?e.startOffset:e.endOffset;if(Kr(n)&&"TR"===n.nodeName){const r=n.childNodes;n=r[Math.min(t?o:o-1,r.length-1)],n&&(o=t?0:n.childNodes.length,t?e.setStart(n,o):e.setEnd(n,o))}},Js=e=>(Ys(e,!0),Ys(e,!1),e),Xs=(e,t)=>{if(Kr(e)&&(e=rs(e,t),Zs(e)))return e;if(jl(e)){ta(e)&&zl(e)&&(e=e.parentNode);let t=e.previousSibling;if(Zs(t))return t;if(t=e.nextSibling,Zs(t))return t}},Qs=(e,t,n)=>{const o=n.getNode(),r=n.getRng();if("IMG"===o.nodeName||Zs(o)){const e=o.nodeName;return{name:e,index:$s(n.dom,e,o)}}const a=(e=>Xs(e.startContainer,e.startOffset)||Xs(e.endContainer,e.endOffset))(r);if(a){const e=a.tagName;return{name:e,index:$s(n.dom,e,a)}}return((e,t,n,o)=>{const r=t.dom,a=Ws(r,e,n,o,!0),i=t.isForward(),l=$l(o)?{isFakeCaret:!0}:{};return t.isCollapsed()?{start:a,forward:i,...l}:{start:a,end:Ws(r,e,n,o,!1),forward:i,...l}})(e,n,t,r)},ec=(e,t,n)=>{const o={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",o,""):e.create("span",o)},tc=(e,t)=>{const n=e.dom;let o=e.getRng();const r=n.uniqueId(),a=e.isCollapsed(),i=e.getNode(),l=i.nodeName,s=e.isForward();if("IMG"===l)return{name:l,index:$s(n,l,i)};const c=Js(o.cloneRange());if(!a){c.collapse(!1);const e=ec(n,r+"_end",t);Rs(n,c,e)}o=Js(o),o.collapse(!0);const u=ec(n,r+"_start",t);return Rs(n,o,u),e.moveToBookmark({id:r,keep:!0,forward:s}),{id:r,forward:s}},nc=O(Qs,I,!0),oc=e=>"inline-command"===e.type||"inline-format"===e.type,rc=e=>"block-command"===e.type||"block-format"===e.type,ac=e=>{var t;const n=t=>Oe.error({message:t,pattern:e}),o=(t,o,r)=>{if(void 0!==e.format){let r;if(h(e.format)){if(!oe(e.format,f))return n(t+" pattern has non-string items in the `format` array");r=e.format}else{if(!f(e.format))return n(t+" pattern has non-string `format` parameter");r=[e.format]}return Oe.value(o(r))}return void 0!==e.cmd?f(e.cmd)?Oe.value(r(e.cmd,e.value)):n(t+" pattern has non-string `cmd` parameter"):n(t+" pattern is missing both `format` and `cmd` parameters")};if(!m(e))return n("Raw pattern is not an object");if(!f(e.start))return n("Raw pattern is missing `start` parameter");if(void 0!==e.end){if(!f(e.end))return n("Inline pattern has non-string `end` parameter");if(0===e.start.length&&0===e.end.length)return n("Inline pattern has empty `start` and `end` parameters");let t=e.start,r=e.end;return 0===r.length&&(r=t,t=""),o("Inline",e=>({type:"inline-format",start:t,end:r,format:e}),(e,n)=>({type:"inline-command",start:t,end:r,cmd:e,value:n}))}if(void 0!==e.replacement)return f(e.replacement)?0===e.start.length?n("Replacement pattern has empty `start` parameter"):Oe.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):n("Replacement pattern has non-string `replacement` parameter");{const r=null!==(t=e.trigger)&&void 0!==t?t:"space";return 0===e.start.length?n("Block pattern has empty `start` parameter"):o("Block",t=>({type:"block-format",start:e.start,format:t[0],trigger:r}),(t,n)=>({type:"block-command",start:e.start,cmd:t,value:n,trigger:r}))}},ic=e=>$(e,rc),lc=e=>$(e,oc),sc=(e,t)=>({...e,blockPatterns:$(e.blockPatterns,e=>((e,t)=>("block-command"===e.type||"block-format"===e.type)&&e.trigger===t)(e,t))}),cc=e=>{const t=(e=>{const t=[],n=[];return K(e,e=>{e.fold(e=>{t.push(e)},e=>{n.push(e)})}),{errors:t,values:n}})(G(e,ac));return K(t.errors,e=>console.error(e.message,e.pattern)),t.values},uc=(e,t,n)=>{e.dispatch(t,n)},dc=(e,t,n,o)=>{e.dispatch("FormatApply",{format:t,node:n,vars:o})},pc=(e,t,n,o)=>{e.dispatch("FormatRemove",{format:t,node:n,vars:o})},fc=(e,t)=>e.dispatch("SetContent",t),mc=(e,t)=>e.dispatch("GetContent",t),gc=(e,t)=>{e.dispatch("AutocompleterUpdateActiveRange",t)},hc=(e,t)=>e.dispatch("PastePlainTextToggle",{state:t}),bc=Wt().deviceType,vc=bc.isTouch(),yc=rl.DOM,_c=e=>p(e,RegExp),Ac=e=>t=>t.options.get(e),kc=e=>f(e)||m(e),xc=(e,t="")=>n=>{const o=f(n);if(o){if(-1!==n.indexOf("=")){const r=(e=>{const t=e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(",");return J(t,(e,t)=>{const n=t.split("="),o=n[0],r=n.length>1?n[1]:o;return e[Xe(o)]=Xe(r),e},{})})(n);return{value:we(r,e.id).getOr(t),valid:o}}return{value:n,valid:o}}return{valid:!1,message:"Must be a string."}},wc=Ac("iframe_attrs"),Cc=Ac("doctype"),Ec=Ac("document_base_url"),Sc=Ac("body_id"),Tc=Ac("body_class"),Ic=Ac("content_security_policy"),Bc=Ac("br_in_pre"),Oc=Ac("forced_root_block"),Lc=Ac("forced_root_block_attrs"),Dc=Ac("newline_behavior"),Mc=Ac("br_newline_selector"),Nc=Ac("no_newline_selector"),Pc=Ac("keep_styles"),Rc=Ac("end_container_on_empty_block"),Fc=Ac("automatic_uploads"),Vc=Ac("images_reuse_filename"),zc=Ac("images_replace_blob_uris"),Uc=Ac("icons"),jc=Ac("icons_url"),Hc=Ac("images_upload_url"),qc=Ac("images_upload_base_path"),Gc=Ac("images_upload_credentials"),Kc=Ac("images_upload_handler"),Zc=Ac("content_css_cors"),Wc=Ac("referrer_policy"),$c=Ac("language"),Yc=Ac("language_url"),Jc=Ac("indent_use_margin"),Xc=Ac("indentation"),Qc=Ac("content_css"),eu=Ac("content_style"),tu=Ac("font_css"),nu=Ac("directionality"),ou=Ac("inline_boundaries_selector"),ru=Ac("object_resizing"),au=Ac("resize_img_proportional"),iu=Ac("placeholder"),lu=Ac("event_root"),su=Ac("service_message"),cu=Ac("theme"),uu=Ac("theme_url"),du=Ac("model"),pu=Ac("model_url"),fu=Ac("inline_boundaries"),mu=Ac("formats"),gu=Ac("preview_styles"),hu=Ac("format_empty_lines"),bu=Ac("format_noneditable_selector"),vu=Ac("custom_ui_selector"),yu=Ac("inline"),_u=Ac("hidden_input"),Au=Ac("submit_patch"),ku=Ac("add_form_submit_trigger"),xu=Ac("add_unload_trigger"),wu=Ac("custom_undo_redo_levels"),Cu=Ac("disable_nodechange"),Eu=Ac("readonly"),Su=Ac("editable_root"),Tu=Ac("content_css_cors"),Iu=Ac("plugins"),Bu=Ac("external_plugins"),Ou=Ac("block_unsupported_drop"),Lu=Ac("visual"),Du=Ac("visual_table_class"),Mu=Ac("visual_anchor_class"),Nu=Ac("iframe_aria_text"),Pu=Ac("setup"),Ru=Ac("init_instance_callback"),Fu=Ac("urlconverter_callback"),Vu=Ac("auto_focus"),zu=Ac("browser_spellcheck"),Uu=Ac("protect"),ju=Ac("paste_block_drop"),Hu=Ac("paste_data_images"),qu=Ac("paste_preprocess"),Gu=Ac("paste_postprocess"),Ku=Ac("newdocument_content"),Zu=Ac("paste_webkit_styles"),Wu=Ac("paste_remove_styles_if_webkit"),$u=Ac("paste_merge_formats"),Yu=Ac("smart_paste"),Ju=Ac("paste_as_text"),Xu=Ac("paste_tab_space
2s"),Qu=Ac("allow_html_data_urls"),ed=Ac("text_patterns"),td=Ac("text_patterns_lookup"),nd=Ac("noneditable_class"),od=Ac("editable_class"),rd=Ac("noneditable_regexp"),ad=Ac("preserve_cdata"),id=Ac("highlight_on_focus"),ld=Ac("xss_sanitization"),sd=Ac("init_content_sync"),cd=e=>sn.explode(e.options.get("images_file_types")),ud=Ac("table_tab_navigation"),dd=Ac("details_initial_state"),pd=Ac("details_serialized_state"),fd=Ac("sandbox_iframes"),md=e=>e.options.get("sandbox_iframes_exclusions"),gd=Ac("convert_unsafe_embeds"),hd=Ac("license_key"),bd=Ac("api_key"),vd=Ac("disabled"),yd=Kr,_d=ta,Ad=e=>{const t=e.parentNode;t&&t.removeChild(e)},kd=e=>{const t=Rl(e);return{count:e.length-t.length,text:t}},xd=e=>{let t;for(;-1!==(t=e.data.lastIndexOf(Nl));)e.deleteData(t,1)},wd=(e,t)=>(Ed(e),t),Cd=(e,t)=>Ns.isTextPosition(t)?((e,t)=>_d(e)&&t.container()===e?((e,t)=>{const n=kd(e.data.substr(0,t.offset())),o=kd(e.data.substr(t.offset()));return(n.text+o.text).length>0?(xd(e),Ns(e,t.offset()-n.count)):t})(e,t):wd(e,t))(e,t):((e,t)=>t.container()===e.parentNode?((e,t)=>{const n=t.container(),o=((e,t)=>{const n=j(e,t);return-1===n?F.none():F.some(n)})(de(n.childNodes),e).map(e=>e<t.offset()?Ns(n,t.offset()-1):t).getOr(t);return Ed(e),o})(e,t):wd(e,t))(e,t),Ed=e=>{yd(e)&&jl(e)&&(Hl(e)?e.removeAttribute("data-mce-caret"):Ad(e)),_d(e)&&(xd(e),0===e.data.length&&Ad(e))},Sd=da,Td=ga,Id=fa,Bd=(e,t,n)=>{const o=Xl(t.getBoundingClientRect(),n);let r,a;if("BODY"===e.tagName){const t=e.ownerDocument.documentElement;r=e.scrollLeft||t.scrollLeft,a=e.scrollTop||t.scrollTop}else{const t=e.getBoundingClientRect();r=e.scrollLeft-t.left,a=e.scrollTop-t.top}o.left+=r,o.right+=r,o.top+=a,o.bottom+=a,o.width=1;let i=t.offsetWidth-t.clientWidth;return i>0&&(n&&(i*=-1),o.left+=i,o.right+=i),o},Od=(e,t,n,o)=>{const r=Ge();let a,i;const l=Oc(e),s=e.dom,c=()=>{(e=>{var t,n;const o=yr(fn(e),"*[contentEditable=false],video,audio,embed,object");for(let e=0;e<o.length;e++){const r=o[e].dom;let a=r.previousSibling;if(Zl(a)){const e=a.data;1===e.length?null===(t=a.parentNode)||void 0===t||t.removeChild(a):a.deleteData(e.length-1,1)}a=r.nextSibling,Kl(a)&&(1===a.data.length?null===(n=a.parentNode)||void 0===n||n.removeChild(a):a.deleteData(0,1))}})(t),i&&(Ed(i),i=null),r.on(e=>{s.remove(e.caret),r.clear()}),a&&(clearInterval(a),a=void 0)};return{isShowing:r.isSet,show:(e,u)=>{let d;if(c(),Id(u))return null;if(!n(u))return i=((e,t)=>{var n;const o=(null!==(n=e.ownerDocument)&&void 0!==n?n:document).createTextNode(Nl),r=e.parentNode;if(t){const t=e.previousSibling;if(Vl(t)){if(jl(t))return t;if(Zl(t))return t.splitText(t.data.length-1)}null==r||r.insertBefore(o,e)}else{const t=e.nextSibling;if(Vl(t)){if(jl(t))return t;if(Kl(t))return t.splitText(1),t}e.nextSibling?null==r||r.insertBefore(o,e.nextSibling):null==r||r.appendChild(o)}return o})(u,e),d=u.ownerDocument.createRange(),Dd(i.nextSibling)?(d.setStart(i,0),d.setEnd(i,0)):(d.setStart(i,1),d.setEnd(i,1)),d;{const n=((e,t,n)=>{var o;const r=(null!==(o=t.ownerDocument)&&void 0!==o?o:document).createElement(e);r.setAttribute("data-mce-caret",n?"before":"after"),r.setAttribute("data-mce-bogus","all"),r.appendChild(Dl().dom);const a=t.parentNode;return n?null==a||a.insertBefore(r,t):t.nextSibling?null==a||a.insertBefore(r,t.nextSibling):null==a||a.appendChild(r),r})(l,u,e),c=Bd(t,u,e);s.setStyle(n,"top",c.top),s.setStyle(n,"caret-color","transparent"),i=n;const p=s.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});s.setStyles(p,{...c}),s.add(t,p),r.set({caret:p,element:u,before:e}),e&&s.addClass(p,"mce-visual-caret-before"),a=window.setInterval(()=>{r.on(e=>{o()?s.toggleClass(e.caret,"mce-visual-caret-hidden"):s.addClass(e.caret,"mce-visual-caret-hidden")})},500),d=u.ownerDocument.createRange(),d.setStart(n,0),d.setEnd(n,0)}return d},hide:c,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{r.on(e=>{const n=Bd(t,e.element,e.before);s.setStyles(e.caret,{...n})})},destroy:()=>clearInterval(a)}},Ld=()=>on.browser.isFirefox(),Dd=e=>Sd(e)||Td(e),Md=e=>(Dd(e)||Xr(e)&&Ld())&&Rn(fn(e)).exists(gr),Nd=ua,Pd=da,Rd=ga,Fd=Yr("display","block table table-cell table-row table-caption list-item"),Vd=jl,zd=zl,Ud=Kr,jd=ta,Hd=gs,qd=e=>
vendor: 2,782 bytes, line 2
21===e,Gd=e=>-1===e,Kd=(e,t)=>{let n;for(;n=e(t);)if(!zd(n))return n;return null},Zd=(e,t,n,o,r)=>{const a=new Vr(e,o),i=Pd(e)||zd(e);let l;if(Gd(t)){if(i&&(l=Kd(a.prev.bind(a),!0),n(l)))return l;for(;l=Kd(a.prev.bind(a),r);)if(n(l))return l}if(qd(t)){if(i&&(l=Kd(a.next.bind(a),!0),n(l)))return l;for(;l=Kd(a.next.bind(a),r);)if(n(l))return l}return null},Wd=(e,t)=>{for(;e&&e!==t;){if(Fd(e))return e;e=e.parentNode}return null},$d=(e,t,n)=>Wd(e.container(),n)===Wd(t.container(),n),Yd=(e,t)=>{if(!t)return F.none();const n=t.container(),o=t.offset();return Ud(n)?F.from(n.childNodes[o+e]):F.none()},Jd=(e,t)=>{var n;const o=(null!==(n=t.ownerDocument)&&void 0!==n?n:document).createRange();return e?(o.setStartBefore(t),o.setEndBefore(t)):(o.setStartAfter(t),o.setEndAfter(t)),o},Xd=(e,t,n)=>Wd(t,e)===Wd(n,e),Qd=(e,t,n)=>{const o=e?"previousSibling":"nextSibling";let r=n;for(;r&&r!==t;){let e=r[o];if(e&&Vd(e)&&(e=e[o]),Pd(e)||Rd(e)){if(Xd(t,e,r))return e;break}if(Hd(e))break;r=r.parentNode}return null},ep=O(Jd,!0),tp=O(Jd,!1),np=(e,t,n)=>{let o;const r=O(Qd,!0,t),a=O(Qd,!1,t),i=n.startContainer,l=n.startOffset;if(zl(i)){const e=jd(i)?i.parentNode:i,t=e.getAttribute("data-mce-caret");if("before"===t&&(o=e.nextSibling,Md(o)))return ep(o);if("after"===t&&(o=e.previousSibling,Md(o)))return tp(o)}if(!n.collapsed)return n;if(ta(i)){if(Vd(i)){if(1===e){if(o=a(i),o)return ep(o);if(o=r(i),o)return tp(o)}if(-1===e){if(o=r(i),o)return tp(o);if(o=a(i),o)return ep(o)}return n}if(Zl(i)&&l>=i.data.length-1)return 1===e&&(o=a(i),o)?ep(o):n;if(Kl(i)&&l<=1)return-1===e&&(o=r(i),o)?tp(o):n;if(l===i.data.length)return o=a(i),o?ep(o):n;if(0===l)return o=r(i),o?tp(o):n}return n},op=(e,t)=>Yd(e?0:-1,t).filter(Pd),rp=(e,t,n)=>{const o=np(e,t,n);return-1===e?Ns.fromRangeStart(o):Ns.fromRangeEnd(o)},ap=e=>F.from(e.getNode()).map(fn),ip=(e,t)=>{let n=t;for(;n=e(n);)if(n.isVisible())return n;return n},lp=(e,t)=>{const n=$d(e,t);return!(n||!la(e.getNode()))||n},sp=da,cp=ta,up=Kr,dp=la,pp=gs,fp=e=>ps(e)||(e=>!!hs(e)&&!J(de(e.getElementsByTagName("*")),(e,t)=>e||ls(t),!1))(e),mp=bs,gp=(e,t)=>e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null,hp=(e,t)=>{if(qd(e)){if(pp(t.previousSibling)&&!cp(t.previousSibling))return Ns.before(t);if(cp(t))return Ns(t,0)}if(Gd(e)){if(pp(t.nextSibling)&&!cp(t.nextSibling))return Ns.after(t);if(cp(t))return Ns(t,t.data.length)}return Gd(e)?dp(t)?Ns.before(t):Ns.after(t):Ns.before(t)},bp=(e,t,n)=>{let o,r,a,i;if(!up(n)||!t)return null;if(t.isEqual(Ns.after(n))&&n.lastChild){if(i=Ns.after(n.lastChild),Gd(e)&&pp(n.lastChild)&&up(n.lastChild))return dp(n.lastChild)?Ns.before(n.lastChild):i}else i=t;const l=i.container();let s=i.offset();if(cp(l)){if(Gd(e)&&s>0)return Ns(l,--s);if(qd(e)&&s<l.length)return Ns(l,++s);o=l}else{if(Gd(e)&&s>
vendor: 4,456 bytes, line 2
20&&(r=gp(l,s-1),pp(r)))return!fp(r)&&(a=Zd(r,e,mp,r),a)?cp(a)?Ns(a,a.data.length):Ns.after(a):cp(r)?Ns(r,r.data.length):Ns.before(r);if(qd(e)&&s<l.childNodes.length&&(r=gp(l,s),pp(r)))return dp(r)?((e,t)=>{const n=t.nextSibling;return n&&pp(n)?cp(n)?Ns(n,0):Ns.before(n):bp(1,Ns.after(t),e)})(n,r):!fp(r)&&(a=Zd(r,e,mp,r),a)?cp(a)?Ns(a,0):Ns.before(a):cp(r)?Ns(r,0):Ns.after(r);o=r||i.getNode()}if(o&&(qd(e)&&i.isAtEnd()||Gd(e)&&i.isAtStart())&&(o=Zd(o,e,R,n,!0),mp(o,n)))return hp(e,o);r=o?Zd(o,e,mp,n):o;const c=vt($(((e,t)=>{const n=[];let o=e;for(;o&&o!==t;)n.push(o),o=o.parentNode;return n})(l,n),sp));return!c||r&&c.contains(r)?r?hp(e,r):null:(i=qd(e)?Ns.after(c):Ns.before(c),i)},vp=e=>({next:t=>bp(1,t,e),prev:t=>bp(-1,t,e)}),yp=e=>Ns.isTextPosition(e)?0===e.offset():gs(e.getNode()),_p=e=>{if(Ns.isTextPosition(e)){const t=e.container();return e.offset()===t.data.length}return gs(e.getNode(!0))},Ap=(e,t)=>!Ns.isTextPosition(e)&&!Ns.isTextPosition(t)&&e.getNode()===t.getNode(!0),kp=(e,t,n)=>{const o=vp(t);return F.from(e?o.next(n):o.prev(n))},xp=(e,t,n)=>kp(e,t,n).bind(o=>$d(n,o,t)&&((e,t,n)=>{return e?!Ap(t,n)&&(o=t,!(!Ns.isTextPosition(o)&&la(o.getNode())))&&_p(t)&&yp(n):!Ap(n,t)&&yp(t)&&_p(n);var o})(e,n,o)?kp(e,t,o):F.some(o)),wp=(e,t,n,o)=>xp(e,t,n).bind(n=>o(n)?wp(e,t,n,o):F.some(n)),Cp=(e,t)=>{const n=e?t.firstChild:t.lastChild;return ta(n)?F.some(Ns(n,e?0:n.data.length)):n?gs(n)?F.some(e?Ns.before(n):la(o=n)?Ns.before(o):Ns.after(o)):((e,t,n)=>{const o=e?Ns.before(n):Ns.after(n);return kp(e,t,o)})(e,t,n):F.none();var o},Ep=O(kp,!0),Sp=O(kp,!1),Tp=O(Cp,!0),Ip=O(Cp,!1),Bp="_mce_caret",Op=e=>Kr(e)&&e.id===Bp,Lp=(e,t)=>{let n=t;for(;n&&n!==e;){if(Op(n))return n;n=n.parentNode}return null},Dp=e=>Ce(e,"name"),Mp=e=>sn.isArray(e.start),Np=e=>!(!Dp(e)&&v(e.forward))||e.forward,Pp=(e,t)=>(Kr(t)&&e.isBlock(t)&&!t.innerHTML&&(t.innerHTML='<br data-mce-bogus="1" />'),t),Rp=(e,t)=>Ip(e).fold(P,e=>(t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0)),Fp=(e,t,n)=>!(!(e=>!e.hasChildNodes())(t)||!Lp(e,t)||(((e,t)=>{var n;const o=(null!==(n=e.ownerDocument)&&void 0!==n?n:document).createTextNode(Nl);e.appendChild(o),t.setStart(o,0),t.setEnd(o,0)})(t,n),0)),Vp=(e,t,n,o)=>{const r=n[t?"start":"end"],a=e.getRoot();if(r){let e=a,n=r[0];for(let t=r.length-1;e&&t>=1;t--){const n=e.childNodes;if(Fp(a,e,o))return!0;if(r[t]>n.length-1)return!!Fp(a,e,o)||Rp(e,o);e=n[r[t]]}ta(e)&&(n=Math.min(r[0],e.data.length)),Kr(e)&&(n=Math.min(r[0],e.childNodes.length)),t?o.setStart(e,n):o.setEnd(e,n)}return!0},zp=e=>ta(e)&&e.data.length>0,Up=(e,t,n)=>{const o=e.get(n.id+"_"+t),r=null==o?void 0:o.parentNode,a=n.keep;if(o&&r){let i,l;if("start"===t?a?o.hasChildNodes()?(i=o.firstChild,l=1):zp(o.nextSibling)?(i=o.nextSibling,l=0):zp(o.previousSibling)?(i=o.previousSibling,l=o.previousSibling.data.length):(i=r,l=e.nodeIndex(o)+1):(i=r,l=e.nodeIndex(o)):a?o.hasChildNodes()?(i=o.firstChild,l=1):zp(o.previousSibling)?(i=o.previousSibling,l=o.previousSibling.data.length):(i=r,l=e.nodeIndex(o)):(i=r,l=e.nodeIndex(o)),!a){const r=o.previousSibling,a=o.nextSibling;let s;for(sn.each(sn.grep(o.childNodes),e=>{ta(e)&&(e.data=e.data.replace(/\uFEFF/g,""))});s=e.get(n.id+"_"+t);)e.remove(s,!0);if(ta(a)&&ta(r)&&!on.browser.isOpera()){const t=r.data.length;r.appendData(a.data),e.remove(a),i=r,l=t}}return F.some(Ns(i,l))}return F.none()},jp=(e,t,n)=>((e,t,n=!1)=>2===t?Qs(Rl,n,e):3===t?(e=>{const t=e.getRng();return{start:Gs(e.dom.getRoot(),Ns.fromRangeStart(t)),end:Gs(e.dom.getRoot(),Ns.fromRangeEnd(t)),forward:e.isForward()}})(e):t?(e=>({rng:e.getRng(),forward:e.isForward()}))(e):tc(e,!1))(e,t,n),Hp=(e,t)=>{((e,t)=>{const n=e.dom;if(t){if(Mp(t))return((e,t)=>{const n=e.createRng();return Vp(e,!0,t,n)&&Vp(e,!1,t,n)?F.some({range:n,forward:Np(t)}):F.none()})(n,t);if((e=>f(e.start))(t))return((e,t)=>{const n=F.from(Ks(e.getRoot(),t.start)),o=F.from(Ks(e.getRoot(),t.end));return Ue(n,o,(n,o)=>{const r=e.createRng();return r.setStart(n.container(),n.offset()),r.setEnd(o.container(),o.offset()),{range:r,forward:Np(t)}})})(n,t);if((e=>Ce(e,"id"))(t))return((e,t)=>{const n=Up(e,"start",t),o=Up(e,"end",t);return Ue(n,o.or(n),(n,o)=>{const r=e.createRng();return r.setStart(Pp(e,n.container()),n.offset()),r.setEnd(Pp(e,o.container()),o.offset()),{range:r,forward:Np(t)}})})(n,t);if(Dp(t))return((e,t)=>F.from(e.select(t.name)[t.index]).map(t=>{const n=e.createRng();return n.selectNode(t),{range:n,forward:!0}}))(n,t);
vendor: 4,296 bytes, line 2
2if((e=>Ce(e,"rng"))(t))return F.some({range:t.rng,forward:Np(t)})}return F.none()})(e,t).each(({range:t,forward:n})=>{e.setRng(t,n)})},qp=e=>Kr(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type"),Gp=(Kp=st,e=>Kp===e);var Kp;const Zp=e=>""!==e&&-1!==" \f\n\r\t\v".indexOf(e),Wp=e=>!Zp(e)&&!Gp(e)&&!ct(e),$p=e=>{const t=[];if(e)for(let n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},Yp=(e,t)=>{const n=yr(t,"td[data-mce-selected],th[data-mce-selected]");return n.length>0?n:(e=>$((e=>ne(e,e=>{const t=os(e);return t?[fn(t)]:[]}))(e),Ol))(e)},Jp=e=>Yp($p(e.selection.getSel()),fn(e.getBody())),Xp=(e,t)=>rr(e,"table",t),Qp=e=>Gn(e).fold(T([e]),t=>[e].concat(Qp(t))),ef=e=>Kn(e).fold(T([e]),t=>"br"===wn(t)?Vn(t).map(t=>[e].concat(ef(t))).getOr([]):[e].concat(ef(t))),tf=(e,t)=>Ue((e=>{const t=e.startContainer,n=e.startOffset;return ta(t)?0===n?F.some(fn(t)):F.none():F.from(t.childNodes[n]).map(fn)})(t),(e=>{const t=e.endContainer,n=e.endOffset;return ta(t)?n===t.data.length?F.some(fn(t)):F.none():F.from(t.childNodes[n-1]).map(fn)})(t),(t,n)=>{const o=Q(Qp(e),O(An,t)),r=Q(ef(e),O(An,n));return o.isSome()&&r.isSome()}).getOr(!1),nf=(e,t,n,o)=>{const r=n,a=new Vr(n,r),i=Ae(e.schema.getMoveCaretBeforeOnEnterElements(),(e,t)=>!H(["td","th","table"],t.toLowerCase()));let l=n;do{if(ta(l)&&0!==sn.trim(l.data).length)return void(o?t.setStart(l,0):t.setEnd(l,l.data.length));if(i[l.nodeName])return void(o?t.setStartBefore(l):"BR"===l.nodeName?t.setEndBefore(l):t.setEndAfter(l))}while(l=o?a.next():a.prev());"BODY"===r.nodeName&&(o?t.setStart(r,0):t.setEnd(r,r.childNodes.length))},of=e=>{const t=e.selection.getSel();return A(t)&&t.rangeCount>0},rf=(e,t)=>{const n=Jp(e);n.length>0?K(n,n=>{const o=n.dom,r=e.dom.createRng();r.setStartBefore(o),r.setEndAfter(o),t(r,!0)}):t(e.selection.getRng(),!1)},af=(e,t,n)=>{const o=tc(e,t);n(o),e.moveToBookmark(o)},lf=e=>x(null==e?void 0:e.nodeType),sf=e=>Kr(e)&&!qp(e)&&!Op(e)&&!Jr(e),cf=(e,t,n)=>{const{selection:o,dom:r}=e,a=o.getNode(),i=da(a);af(o,!0,()=>{t()}),i&&da(a)&&r.isChildOf(a,e.getBody())?e.selection.select(a):n(o.getStart())&&uf(r,o)},uf=(e,t)=>{var n,o;const r=t.getRng(),{startContainer:a,startOffset:i}=r;if(!((e,t)=>{if(sf(t)&&!/^(TD|TH)$/.test(t.nodeName)){const n=e.getAttrib(t,"data-mce-selected"),o=parseInt(n,10);return!isNaN(o)&&o>0}return!1})(e,t.getNode())&&Kr(a)){const l=a.childNodes,s=e.getRoot();let c;if(i<l.length){const t=l[i];c=new Vr(t,null!==(n=e.getParent(t,e.isBlock))&&void 0!==n?n:s)}else{const t=l[l.length-1];c=new Vr(t,null!==(o=e.getParent(t,e.isBlock))&&void 0!==o?o:s),c.next(!0)}for(let n=c.current();n;n=c.next()){if("false"===e.getContentEditable(n))return;if(ta(n)&&!mf(n))return r.setStart(n,0),void t.setRng(r)}}},df=(e,t,n)=>{if(e){const o=t?"nextSibling":"previousSibling";for(e=n?e:e[o];e;e=e[o])if(Kr(e)||!mf(e))return e}},pf=(e,t)=>!!e.getTextBlockElements()[t.nodeName.toLowerCase()]||ja(e,t),ff=(e,t,n)=>e.schema.isValidChild(t,n),mf=(e,t=!1)=>{if(A(e)&&ta(e)){const n=t?e.data.replace(/ /g,"Â "):e.data;return Ur(n)}return!1},gf=(e,t)=>{const n=e.dom;return sf(t)&&"false"===n.getContentEditable(t)&&((e,t)=>{const n="[data-mce-cef-wrappable]",o=bu(e),r=nt(o)?n:`${n},${o}`;return yn(fn(t),r)})(e,t)&&0===n.select('[contenteditable="true"]',t).length},hf=(e,t)=>k(e)?e(t):(A(t)&&(e=e.replace(/%(\w+)/g,(e,n)=>t[n]||e)),e),bf=(e,t)=>(t=t||"",e=""+((e=e||"").nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()),vf=(e,t)=>{if(_(e))return null;{let n=String(e);return"color"!==t&&"backgroundColor"!==t||(n=Fi(n)),"fontWeight"===t&&700===e&&(n="bold"),"fontFamily"===t&&(n=n.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),n}},yf=(e,t,n)=>{const o=e.getStyle(t,n);return vf(o,n)},_f=(e,t)=>{let n;return e.getParent(t,t=>!!Kr(t)&&(n=e.getStyle(t,"text-decoration"),!!n&&"none"!==n)),n},Af=(e,t,n)=>e.getParents(t,n,e.getRoot()),kf=(e,t,n)=>{const o=e.formatter.get(t);return A(o)&&q(o,n)},xf=e=>Ee(e,"block"),wf=e=>Ee(e,"selector"),Cf=e=>Ee(e,"inline"),Ef=e=>wf(e)&&!1!==e.expand&&!Cf(e),Sf=e=>(e=>{const t=[];let n=e;for(;n;){if(ta(n)&&n.data!==Nl||n.childNodes.length>1)return[];Kr(n)&&t.push(n),n=n.firstChild}return t})(e).length>0,Tf=e=>Op(e.dom)&&Sf(e.dom),If=qp,Bf=Af,Of=mf,Lf=pf,Df=e=>la(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling,Mf=(e,t)=>
vendor: 4,813 bytes, line 2
2{let n=t;for(;n;){if(Kr(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},Nf=(e,t,n,o)=>{const r=t.data;if(e){for(let e=n;e>0;e--)if(o(r.charAt(e-1)))return e}else for(let e=n;e<r.length;e++)if(o(r.charAt(e)))return e;return-1},Pf=(e,t,n)=>Nf(e,t,n,e=>Gp(e)||Zp(e)),Rf=(e,t,n)=>Nf(e,t,n,Wp),Ff=(e,t,n,o,r,a)=>{let i;const l=e.getParent(n,t=>pa(t)||e.isBlock(t)),s=A(l)?l:t,c=(t,n,o)=>{const a=wl(e),l=r?a.backwards:a.forwards;return F.from(l(t,n,(e,t)=>If(e.parentNode)?-1:(i=e,o(r,e,t)),s))};return c(n,o,Pf).bind(e=>a?c(e.container,e.offset+(r?-1:0),Rf):F.some(e)).orThunk(()=>i?F.some({container:i,offset:r?0:i.length}):F.none())},Vf=(e,t,n,o,r)=>{const a=o[r];ta(o)&&nt(o.data)&&a&&(o=a);const i=Bf(e,o);for(let o=0;o<i.length;o++)for(let r=0;r<t.length;r++){const a=t[r];if((!A(a.collapsed)||a.collapsed===n.collapsed)&&wf(a)&&e.is(i[o],a.selector))return i[o]}return o},zf=(e,t,n,o)=>{var r;let a=n;const i=e.getRoot(),l=t[0];if(xf(l)&&(a=l.wrapper?null:e.getParent(n,l.block,i)),!a){const t=null!==(r=e.getParent(n,"LI,TD,TH,SUMMARY"))&&void 0!==r?r:i;a=e.getParent(ta(n)?n.parentNode:n,t=>t!==i&&Lf(e.schema,t),t)}if(a&&xf(l)&&l.wrapper&&(a=Bf(e,a,"ul,ol").reverse()[0]||a),!a)for(a=n;a&&a[o]&&!e.isBlock(a[o])&&(a=a[o],!bf(a,"br")););return a||n},Uf=(e,t,n,o)=>{const r=n.parentNode;return!A(n[o])&&(!(r!==t&&!_(r)&&!e.isBlock(r))||Uf(e,t,r,o))},jf=(e,t,n,o,r,a)=>{let i=n;const l=r?"previousSibling":"nextSibling",s=e.getRoot();if(ta(n)&&!Of(n)&&(r?o>0:o<n.data.length))return n;for(;i;){if(pa(i))return n;if(!t[0].block_expand&&e.isBlock(i))return a?i:n;for(let t=i[l];t;t=t[l]){const n=ta(t)&&!Uf(e,s,t,l);if(!If(t)&&!Df(t)&&!Of(t,n))return i}if(i===s||i.parentNode===s){n=i;break}i=i.parentNode}return n},Hf=e=>If(e.parentNode)||If(e),qf=(e,t,n,o={})=>{const{includeTrailingSpace:r=!1,expandToBlock:a=!0}=o,i=e.getParent(t.commonAncestorContainer,e=>pa(e)),l=A(i)?i:e.getRoot();let{startContainer:s,startOffset:c,endContainer:u,endOffset:d}=t;const p=n[0];return Kr(s)&&s.hasChildNodes()&&(s=rs(s,c),ta(s)&&(c=0)),Kr(u)&&u.hasChildNodes()&&(u=rs(u,t.collapsed?d:d-1),ta(u)&&(d=u.data.length)),s=Mf(e,s),u=Mf(e,u),Hf(s)&&(s=If(s)?s:s.parentNode,s=t.collapsed?s.previousSibling||s:s.nextSibling||s,ta(s)&&(c=t.collapsed?s.length:0)),Hf(u)&&(u=If(u)?u:u.parentNode,u=t.collapsed?u.nextSibling||u:u.previousSibling||u,ta(u)&&(d=t.collapsed?0:u.length)),t.collapsed&&(Ff(e,l,s,c,!0,r).each(({container:e,offset:t})=>{s=e,c=t}),Ff(e,l,u,d,!1,r).each(({container:e,offset:t})=>{u=e,d=t})),(Cf(p)||p.block_expand)&&(Cf(p)&&ta(s)&&0!==c||(s=jf(e,n,s,c,!0,a)),Cf(p)&&ta(u)&&d!==u.data.length||(u=jf(e,n,u,d,!1,a))),Ef(p)&&(s=Vf(e,n,t,s,"previousSibling"),u=Vf(e,n,t,u,"nextSibling")),(xf(p)||wf(p))&&(s=zf(e,n,s,"previousSibling"),u=zf(e,n,u,"nextSibling"),xf(p)&&(e.isBlock(s)||(s=jf(e,n,s,c,!0,a),ta(s)&&(c=0)),e.isBlock(u)||(u=jf(e,n,u,d,!1,a),ta(u)&&(d=u.data.length)))),Kr(s)&&s.parentNode&&(c=e.nodeIndex(s),s=s.parentNode),Kr(u)&&u.parentNode&&(d=e.nodeIndex(u)+1,u=u.parentNode),{startContainer:s,startOffset:c,endContainer:u,endOffset:d}},Gf=(e,t,n)=>{var o;const r=t.startOffset,a=rs(t.startContainer,r),i=t.endOffset,l=rs(t.endContainer,i-1),s=e=>{const t=e[0];ta(t)&&t===a&&r>=t.data.length&&e.splice(0,1);const n=e[e.length-1];return 0===i&&e.length>0&&n===l&&ta(n)&&e.splice(e.length-1,1),e},c=(e,t,n)=>{const o=[];for(;e&&e!==n;e=e[t])o.push(e);return o},u=(t,n)=>e.getParent(t,e=>e.parentNode===n,n),d=(e,t,o)=>{const r=o?"nextSibling":"previousSibling";for(let a=e,i=a.parentNode;a&&a!==t;a=i){i=a.parentNode;const t=c(a===e?a:a[r],r);t.length&&(o||t.reverse(),n(s(t)))}};if(a===l)return n(s([a]));const p=null!==(o=e.findCommonAncestor(a,l))&&void 0!==o?o:e.getRoot();if(e.isChildOf(a,l))return d(a,p,!0);if(e.isChildOf(l,a))return d(l,p);const f=u(a,p)||a,m=u(l,p)||l;d(a,f,!0);const g=c(f===a?f:f.nextSibling,"nextSibling",m===l?m.nextSibling:m);g.length&&n(s(g)),d(l,m)},Kf=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]","div.mce-footnotes"],Zf=(e,t,n,o,r,a)=>{const{uid:i=t,...l}=n;dr(e,pl()),go(e,`${ml()}`,i),go(e,`${fl()}`,o);const{attributes:s={},classes:c=[]}=r(i,l);if(ho(e,s),((e,t)=>{K(t,t=>{dr(e,t)})})(e,c),a){c.length>0&&go(e,`${hl()}`,c.join(","));const t=me(s);t.length>0&&go(e,`${bl()}`,t.join(","))}},Wf=(e,t,n,o,r)=>{const a=dn("span",e);return Zf(a,t,n,o,r,!1),a},$f=(e,t,n,o,r,a)=>{const i=[],l=Wf(e.getDoc(),n,a,o,r),s=Ge(),c=()=>{s.clear()},u=e=>{K(e,d)},d=t=>{switch(((e,t,n,o)=>Rn(t).fold(()=>"skipping",r=>"br"===o||(e=>In(e)&&Jo(e)===Nl)(t)?"valid":(e=>Tn(e)&&mr(e,pl()))(t)?"existing":Op(t.dom)?"caret":q(Kf,e=>yn(t,e))?"valid-block":ff(e,n,o)&&ff(e,wn(r),n)?"valid":"invalid-child"))(e,t,"span",wn(t))){case"invali
2d-child":{c();const e=Hn(t);u(e),c();break}case"valid-block":c(),Zf(t,n,a,o,r,!0);break;case"valid":{const e=s.get().getOrThunk(()=>{const e=Eo(l);return i.push(e),s.set(e),e});po(t,e);break}}};return Gf(e.dom,t,e=>{c(),(e=>{const t=G(e,fn);u(t)})(e)}),i},Yf=e=>{const t=(()=>{const e={};return{register:(t,n)=>{e[t]={name:t,settings:n}},lookup:t=>we(e,t).map(e=>e.settings),getNames:()=>me(e)}})();((e,t)=>{const n=fl(),o=e=>F.from(e.attr(n)).bind(t.lookup),r=e=>{var t,n;e.attr(ml(),null),e.attr(fl(),null),e.attr(gl(),null);const o=F.from(e.attr(bl())).map(e=>e.split(",")).getOr([]),r=F.from(e.attr(hl())).map(e=>e.split(",")).getOr([]);K(o,t=>e.attr(t,null));const a=null!==(n=null===(t=e.attr("class"))||void 0===t?void 0:t.split(" "))&&void 0!==n?n:[],i=ae(a,[pl()].concat(r));e.attr("class",i.length>0?i.join(" "):null),e.attr(hl(),null),e.attr(bl(),null)};e.serializer.addTempAttr(gl()),e.serializer.addAttributeFilter(n,e=>{for(const t of e)o(t).each(e=>{!1===e.persistent&&("span"===t.name?t.unwrap():r(t))})})})(e,t);const n=((e,t)=>{const n=Te({}),o=()=>({listeners:[],previous:Ge()}),r=(e,t)=>{a(e,e=>(t(e),e))},a=(e,t)=>{const r=n.get(),a=t(we(r,e).getOrThunk(o));r[e]=a,n.set(r)},i=(t,n)=>{K(Al(e,t),e=>{n?go(e,gl(),"true"):_o(e,gl())})},l=at(()=>{const n=le(t.getNames());K(n,t=>{a(t,n=>{const o=n.previous.get();return yl(e,F.some(t)).fold(()=>{o.each(e=>{(e=>{r(e,t=>{K(t.listeners,t=>t(!1,e))})})(t),n.previous.clear(),i(e,!1)})},({uid:e,name:t,elements:a})=>{Ve(o,e)||(o.each(e=>i(e,!1)),((e,t,n)=>{r(e,o=>{K(o.listeners,o=>o(!0,e,{uid:t,nodes:G(n,e=>e.dom)}))})})(t,e,a),n.previous.set(e),i(e,!0))}),{previous:n.previous,listeners:n.listeners}})})},30);return e.on("remove",()=>{l.cancel()}),e.on("NodeChange",()=>{l.throttle()}),{addListener:(e,t)=>{a(e,e=>({previous:e.previous,listeners:e.listeners.concat([t])}))}}})(e,t),o=Ln("span"),r=e=>{K(e,e=>{o(e)?wo(e):(e=>{fr(e,pl()),_o(e,`${ml()}`),_o(e,`${fl()}`),_o(e,`${gl()}`);const t=vo(e,`${bl()}`).map(e=>e.split(",")).getOr([]),n=vo(e,`${hl()}`).map(e=>e.split(",")).getOr([]);var o;K(t,t=>_o(e,t)),o=e,K(n,e=>{fr(o,e)}),_o(e,`${hl()}`),_o(e,`${bl()}`)})(e)})};return{register:(e,n)=>{t.register(e,n)},annotate:(n,o)=>{t.lookup(n).each(t=>{((e,t,n,o)=>{e.undoManager.transact(()=>{const r=e.selection,a=r.getRng(),i=Jp(e).length>0,l=Ne("mce-annotation");if(a.collapsed&&!i&&((e,t)=>{const n=qf(e.dom,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)})(e,a),r.getRng().collapsed&&!i){const a=Wf(e.getDoc(),l,o,t,n.decorate);Bo(a,st),r.getRng().insertNode(a.dom),r.select(a.dom)}else af(r,!1,()=>{rf(e,r=>{$f(e,r,l,t,n.decorate,o)})})})})(e,n,t,o)})},annotationChanged:(e,t)=>{n.addListener(e,t)},remove:t=>{yl(e,F.some(t)).each(({elements:t})=>{const n=e.selection.getBookmark();r(t),e.selection.moveToBookmark(n)})},removeAll:t=>{const n=e.selection.getBookmark();he(kl(e,t),(e,t)=>{r(e)}),e.selection.moveToBookmark(n)},getAll:t=>{const n=kl(e,t);return be(n,e=>G(e,e=>e.dom))}}},Jf=e=>({getBookmark:O(jp,e),moveToBookmark:O(Hp,e)});Jf.isBookmarkNode=qp;const Xf=(e,t,n)=>!n.collapsed&&q(n.getClientRects(),n=>((e,t,n)=>t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom)(n,e,t)),Qf=(e,t)=>
vendor: 4,770 bytes, line 2
2{const n=In(t)?Jo(t).length:Hn(t).length+1;return e>n?n:e<0?0:e},em=e=>Or.range(e.start,Qf(e.soffset,e.start),e.finish,Qf(e.foffset,e.finish)),tm=(e,t)=>!Gr(t.dom)&&(kn(e,t)||An(e,t)),nm=e=>t=>tm(e,t.start)&&tm(e,t.finish),om=e=>Or.range(fn(e.startContainer),e.startOffset,fn(e.endContainer),e.endOffset),rm=e=>{const t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),F.some(t)}catch(e){return F.none()}},am=e=>{const t=(e=>e.inline||on.browser.isFirefox())(e)?(n=fn(e.getBody()),(e=>{const t=e.getSelection();return(t&&0!==t.rangeCount?F.from(t.getRangeAt(0)):F.none()).map(om)})(Nn(n).dom).filter(nm(n))):F.none();var n;e.bookmark=t.isSome()?t:e.bookmark},im=e=>(e.bookmark?e.bookmark:F.none()).bind(t=>{return n=fn(e.getBody()),o=t,F.from(o).filter(nm(n)).map(em);var n,o}).bind(rm),lm={isEditorUIElement:e=>{const t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")}},sm={setEditorTimeout:(e,t,n)=>((e,t)=>(x(t)||(t=0),window.setTimeout(e,t)))(()=>{e.removed||t()},n),setEditorInterval:(e,t,n)=>{const o=((e,t)=>(x(t)||(t=0),window.setInterval(e,t)))(()=>{e.removed?window.clearInterval(o):t()},n);return o}},cm=(e,t)=>e.view(t).fold(T([]),t=>{const n=e.owner(t),o=cm(e,n);return[t].concat(o)});var um=Object.freeze({__proto__:null,view:e=>{var t;return(e.dom===document?F.none():F.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(fn)},owner:e=>Mn(e)});const dm=e=>{const t=oo(),n=Ko(t),o=((e,t)=>{const n=t.owner(e);return cm(t,n)})(e,um),r=Go(e),a=Y(o,(e,t)=>{const n=Go(t);return{left:e.left+n.left,top:e.top+n.top}},{left:0,top:0});return Ho(a.left+r.left+n.left,a.top+r.top+n.top)};let pm;const fm=rl.DOM,mm=e=>{const t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},gm=(e,t)=>{const n=vu(e),o=fm.getParent(t,t=>(e=>Kr(e)&&lm.isEditorUIElement(e))(t)||!!n&&e.dom.is(t,n));return null!==o},hm=e=>{try{const t=$n(fn(e.getElement()));return io(t).fold(()=>document.body,e=>e.dom)}catch(e){return document.body}},bm=(e,t)=>{const n=t.editor;(e=>{const t=rt(()=>{am(e)},0);e.on("init",()=>{e.inline&&((e,t)=>{const n=()=>{t.throttle()};rl.DOM.bind(document,"mouseup",n),e.on("remove",()=>{rl.DOM.unbind(document,"mouseup",n)})})(e,t),((e,t)=>{((e,t)=>{e.on("mouseup touchend",e=>{t.throttle()})})(e,t),e.on("keyup NodeChange AfterSetSelectionRange",t=>{(e=>"nodechange"===e.type&&e.selectionChange)(t)||am(e)})})(e,t)}),e.on("remove",()=>{t.cancel()})})(n);const o=(e,t)=>{id(e)&&!0!==e.inline&&t(fn(e.getContainer()),"tox-edit-focus")};n.on("focusin",()=>{const t=e.focusedEditor;if(mm(hm(n))&&o(n,dr),t!==n){t&&t.dispatch("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.dispatch("focus",{blurredEditor:t}),n.focus(!0);const o=Wt().browser;!0!==n.inline&&(o.isSafari()||o.isChromium())&&(e=>{if(!e.iframeElement)return;const t=fn(e.iframeElement),n=dm(t),o=Fr(window);(n.top<o.y||n.top>o.bottom-25)&&t.dom.scrollIntoView({block:"center"})})(n)}}),n.on("focusout",()=>{sm.setEditorTimeout(n,()=>{const t=e.focusedEditor;mm(hm(n))&&t===n||o(n,fr),gm(n,hm(n))||t!==n||(n.dispatch("blur",{focusedEditor:null}),e.focusedEditor=null)})}),pm||(pm=t=>{const n=e.activeEditor;n&&Xn(t).each(t=>{const o=t;o.ownerDocument===document&&(o===document.body||gm(n,o)||e.focusedEditor!==n||(n.dispatch("blur",{focusedEditor:null}),e.focusedEditor=null))})},fm.bind(document,"focusin",pm))},vm=(e,t)=>{e.focusedEditor===t.editor&&(e.focusedEditor=null),!e.activeEditor&&pm&&(fm.unbind(document,"focusin",pm),pm=null)},ym=(e,t)=>{((e,t)=>(e=>e.collapsed?F.from(rs(e.startContainer,e.startOffset)).map(fn):F.none())(t).bind(t=>Bl(t)?F.some(t):kn(e,t)?F.none():F.some(e)))(fn(e.getBody()),t).bind(e=>Tp(e.dom)).fold(()=>{e.selection.normalize()},t=>e.selection.setRng(t.toRange()))},_m=e=>{if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},Am=e=>e.inline?(e=>{const t=e.getBody();return t&&(n=fn(t),ao(n)||(o=n,io($n(o)).filter(e=>o.dom.contains(e.dom))).isSome());var n,o})(e):(e=>A(e.iframeElement)&&ao(fn(e.iframeElement)))(e),km=e=>Am(e)||(e=>{const t=$n(fn(e.getElement()));return io(t).filter(t=>!mm(t.dom)&&gm(e,t.dom)).isSome()})(e),xm=e=>e.editorManager.setActive(e),wm={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:e=>e.shiftKey||e.ctrlKey||e.altKey||wm.metaKeyPressed(e),metaKeyPressed:e=>on.os.isMacOS()||on.os.isiOS()?e.metaKey:e.ctrlKey&&!e.altKey},Cm="data-mce-selected",Em=Math.abs,Sm=Math.round,Tm={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},Im=(e,t)=>{const n=t.dom,o=t.getDoc(),r=document,a=t.getBody();let i,l,s,c,u,d,p,f,m,g,h,b,v,y,_;
vendor: 4,806 bytes, line 2
2const k=e=>A(e)&&(sa(e)||n.is(e,"figure.image")),x=e=>ga(e)||n.hasClass(e,"mce-preview-object"),w=e=>{const n=e.target;((e,t)=>{if((e=>"longpress"===e.type||0===e.type.indexOf("touch"))(e)){const n=e.touches[0];return k(e.target)&&!Xf(n.clientX,n.clientY,t)}return k(e.target)&&!Xf(e.clientX,e.clientY,t)})(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},C=e=>n.hasClass(e,"mce-preview-object")&&A(e.firstElementChild)?[e,e.firstElementChild]:n.is(e,"figure.image")?[e.querySelector("img")]:[e],E=e=>{const o=ru(t);return!(!o||t.mode.isReadOnly())&&"false"!==e.getAttribute("data-mce-resize")&&e!==t.getBody()&&(n.hasClass(e,"mce-preview-object")&&A(e.firstElementChild)?yn(fn(e.firstElementChild),o):yn(fn(e),o))},S=(e,o,r)=>{if(A(r)){const a=C(e);K(a,e=>{e.style[o]||!t.schema.isValid(e.nodeName.toLowerCase(),o)?n.setStyle(e,o,r):n.setAttrib(e,o,""+r)})}},T=(e,t,n)=>{S(e,"width",t),S(e,"height",n)},I=e=>{let o,r,u,A,w;o=e.screenX-d,r=e.screenY-p,b=o*c[2]+f,v=r*c[3]+m,b=b<5?5:b,v=v<5?5:v,u=(k(i)||x(i))&&!1!==au(t)?!wm.modifierPressed(e):wm.modifierPressed(e),u&&(Em(o)>Em(r)?(v=Sm(b*g),b=Sm(v/g)):(b=Sm(v/g),v=Sm(b*g))),T(l,b,v),A=c.startPos.x+o,w=c.startPos.y+r,A=A>0?A:0,w=w>0?w:0,n.setStyles(s,{left:A,top:w,display:"block"}),s.innerHTML=b+" × "+v,o=a.scrollWidth-y,r=a.scrollHeight-_,o+r!==0&&n.setStyles(s,{left:A-o,top:w-r}),h||(((e,t,n,o,r)=>{e.dispatch("ObjectResizeStart",{target:t,width:n,height:o,origin:r})})(t,i,f,m,"corner-"+c.name),h=!0)},B=()=>{const e=h;h=!1,e&&(S(i,"width",b),S(i,"height",v)),n.unbind(o,"mousemove",I),n.unbind(o,"mouseup",B),r!==o&&(n.unbind(r,"mousemove",I),n.unbind(r,"mouseup",B)),n.remove(l),n.remove(s),n.remove(u),O(i),e&&(((e,t,n,o,r)=>{e.dispatch("ObjectResized",{target:t,width:n,height:o,origin:r})})(t,i,b,v,"corner-"+c.name),n.setAttrib(i,"style",n.getAttrib(i,"style"))),t.nodeChanged()},O=e=>{P();const h=n.getPos(e,a),A=h.x,k=h.y,w=e.getBoundingClientRect(),S=w.width||w.right-w.left,O=w.height||w.bottom-w.top;i!==e&&(D(),i=e,b=v=0);const L=t.dispatch("ObjectSelected",{target:e});E(e)&&!L.isDefaultPrevented()?he(Tm,(e,t)=>{let h=n.get("mceResizeHandle"+t);h&&n.remove(h),h=n.add(a,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),n.bind(h,"mousedown",h=>{h.stopImmediatePropagation(),h.preventDefault(),(h=>{const b=C(i)[0];d=h.screenX,p=h.screenY,f=b.clientWidth,m=b.clientHeight,g=m/f,c=e,c.name=t,c.startPos={x:S*e[0]+A,y:O*e[1]+k},y=a.scrollWidth,_=a.scrollHeight,u=n.add(a,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),n.setStyles(u,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),l=((e,t)=>{if(x(t))return e.create("img",{src:on.transparentSrc});if(Xr(t)){const n=$e(c.name,"n")?ce:ue,o=t.cloneNode(!0);return n(e.select("tr",o)).each(t=>{const n=e.select("td,th",t);e.setStyle(t,"height",null),K(n,t=>e.setStyle(t,"height",null))}),o}return t.cloneNode(!0)})(n,i),n.addClass(l,"mce-clonedresizable"),n.setAttrib(l,"data-mce-bogus","all"),l.contentEditable="false",n.setStyles(l,{left:A,top:k,margin:0}),T(l,S,O),l.removeAttribute(Cm),a.appendChild(l),n.bind(o,"mousemove",I),n.bind(o,"mouseup",B),r!==o&&(n.bind(r,"mousemove",I),n.bind(r,"mouseup",B)),s=n.add(a,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" × "+m)})(h)}),e.elm=h,n.setStyles(h,{left:S*e[0]+A-h.offsetWidth/2,top:O*e[1]+k-h.offsetHeight/2})}):D(!1)},L=rt(O,0),D=(e=!0)=>{L.cancel(),P(),i&&e&&i.removeAttribute(Cm),he(Tm,(e,t)=>{const o=n.get("mceResizeHandle"+t);o&&(n.unbind(o),n.remove(o))})},M=(e,t)=>n.isChildOf(e,t),N=o=>{if(h||t.removed||t.composing)return;const r="mousedown"===o.type?o.target:e.getNode(),i=ir(fn(r),"table,img,figure.image,hr,video,span.mce-preview-object,details").map(e=>e.dom).filter(e=>n.isEditable(e.parentElement)||"IMG"===e.nodeName&&n.isEditable(e)).getOrUndefined(),l=A(i)?n.getAttrib(i,Cm,"1"):"1";if(K(n.select(`img[${Cm}],hr[${Cm}]`),e=>{e.removeAttribute(Cm)}),A(i)&&M(i,a)&&km(t)){R();const t=e.getStart(!0);if(M(t,i)&&M(e.getEnd(!0),i))return n.setAttrib(i,Cm,l),void L.throttle(i)}D()},P=()=>{he(Tm,e=>{e.elm&&(n.unbind(e.elm),delete e.elm)})},R=()=>{try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};return t.on("init",()=>{R(),t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",N),t.on("keyup compositionend",e=>{i&&"TABLE"===i.nodeName&&N(e)}),t.on("hide blur",D),t.on("contextmenu longpress",w,!0)}),t.on("remove",P),{isResizable:E,showResizeRect:O,hideResizeRect:D,updateResizeRect:N,destroy:()=>{L.cancel(),i=l=u=null}}},Bm=(e,t,n)=>{const o=Nn(fn(n));return Pr(o.dom,e,t).map(e=>{const t=n.createRange();return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),t}).getOrUndefined()},Om=(e,t)=>
vendor: 34,223 bytes, line 2
2A(e)&&A(t)&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset,Lm=(e,t,n)=>null!==((e,t,n)=>{let o=e;for(;o&&o!==t;){if(n(o))return o;o=o.parentNode}return null})(e,t,n),Dm=(e,t,n)=>Lm(e,t,e=>e.nodeName===n),Mm=(e,t)=>jl(e)&&!Lm(e,t,Op),Nm=(e,t,n)=>{const o=t.parentNode;if(o){const r=new Vr(t,e.getParent(o,e.isBlock)||e.getRoot());let a;for(;a=r[n?"prev":"next"]();)if(la(a))return!0}return!1},Pm=(e,t,n,o,r)=>{const a=e.getRoot(),i=e.schema.getNonEmptyElements(),l=r.parentNode;let s,c;if(!l)return F.none();const u=e.getParent(l,e.isBlock)||a;if(o&&la(r)&&t&&e.isEmpty(u))return F.some(Ns(l,e.nodeIndex(r)));const d=new Vr(r,u);for(;c=d[o?"prev":"next"]();){if("false"===e.getContentEditableParent(c)||Mm(c,a))return F.none();if(ta(c)&&c.data.length>0)return Dm(c,a,"A")?F.none():F.some(Ns(c,o?c.data.length:0));if(e.isBlock(c)||i[c.nodeName.toLowerCase()])return F.none();s=c}return ra(s)?F.none():n&&s?F.some(Ns(s,0)):F.none()},Rm=(e,t,n,o)=>{const r=e.getRoot();let a,i=!1,l=n?o.startContainer:o.endContainer,s=n?o.startOffset:o.endOffset;const c=Kr(l)&&s===l.childNodes.length,u=e.schema.getNonEmptyElements();let d=n;if(jl(l))return F.none();if(Kr(l)&&s>l.childNodes.length-1&&(d=!1),aa(l)&&(l=r,s=0),l===r){if(d&&(a=l.childNodes[s>0?s-1:0],a)){if(jl(a))return F.none();if(u[a.nodeName]||Xr(a))return F.none()}if(l.hasChildNodes()){if(s=Math.min(!d&&s>0?s-1:s,l.childNodes.length-1),l=l.childNodes[s],s=ta(l)&&c?l.data.length:0,!t&&l===r.lastChild&&Xr(l))return F.none();if(((e,t)=>{let n=t;for(;n&&n!==e;){if(da(n))return!0;n=n.parentNode}return!1})(r,l)||jl(l))return F.none();if(ba(l))return F.none();if(l.hasChildNodes()&&!Xr(l)){a=l;const t=new Vr(l,r);do{if(da(a)||jl(a)){i=!1;break}if(ta(a)&&a.data.length>0){s=d?0:a.data.length,l=a,i=!0;break}if(u[a.nodeName.toLowerCase()]&&!ma(a)){s=e.nodeIndex(a),l=a.parentNode,d||s++,i=!0;break}}while(a=d?t.next():t.prev())}}}return t&&(ta(l)&&0===s&&Pm(e,c,t,!0,l).each(e=>{l=e.container(),s=e.offset(),i=!0}),Kr(l)&&(a=l.childNodes[s],a||(a=l.childNodes[s-1]),!a||!la(a)||(e=>{var t;return"A"===(null===(t=e.previousSibling)||void 0===t?void 0:t.nodeName)})(a)||Nm(e,a,!1)||Nm(e,a,!0)||Pm(e,c,t,!0,a).each(e=>{l=e.container(),s=e.offset(),i=!0}))),d&&!t&&ta(l)&&s===l.data.length&&Pm(e,c,t,!1,l).each(e=>{l=e.container(),s=e.offset(),i=!0}),i&&l?F.some(Ns(l,s)):F.none()},Fm=(e,t)=>{const n=t.collapsed,o=t.cloneRange(),r=Ns.fromRangeStart(t);return Rm(e,n,!0,o).each(e=>{n&&Ns.isAbove(r,e)||o.setStart(e.container(),e.offset())}),n||Rm(e,n,!1,o).each(e=>{o.setEnd(e.container(),e.offset())}),n&&o.collapse(!0),Om(t,o)?F.none():F.some(o)},Vm=(e,t)=>e.splitText(t),zm=e=>{let t=e.startContainer,n=e.startOffset,o=e.endContainer,r=e.endOffset;if(t===o&&ta(t)){if(n>0&&n<t.data.length)if(o=Vm(t,n),t=o.previousSibling,r>n){r-=n;const e=Vm(o,r).previousSibling;t=o=e,r=e.data.length,n=0}else r=0}else if(ta(t)&&n>0&&n<t.data.length&&(t=Vm(t,n),n=0),ta(o)&&r>0&&r<o.data.length){const e=Vm(o,r).previousSibling;o=e,r=e.data.length}return{startContainer:t,startOffset:n,endContainer:o,endOffset:r}},Um=e=>({walk:(t,n)=>Gf(e,t,n),split:zm,expand:(t,n={type:"word"})=>{if("word"===n.type){const n=qf(e,t,[{inline:"span"}],{includeTrailingSpace:!1,expandToBlock:!1}),o=e.createRng();return o.setStart(n.startContainer,n.startOffset),o.setEnd(n.endContainer,n.endOffset),o}return t},normalize:t=>Fm(e,t).fold(P,e=>(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0))});Um.compareRanges=Om,Um.getCaretRangeFromPoint=Bm,Um.getSelectedNode=os,Um.getNode=rs;const jm=e=>"textarea"===wn(e),Hm=(e,t)=>{const n=(e=>{const t=e.dom.ownerDocument,n=t.body,o=t.defaultView,r=t.documentElement;if(n===e.dom)return Ho(n.offsetLeft,n.offsetTop);const a=qo(null==o?void 0:o.pageYOffset,r.scrollTop),i=qo(null==o?void 0:o.pageXOffset,r.scrollLeft),l=qo(r.clientTop,n.clientTop),s=qo(r.clientLeft,n.clientLeft);return Go(e).translate(i-s,a-l)})(e),o=(e=>Uo.get(e))(e);return{element:e,bottom:n.top+o,height:o,pos:n,cleanup:t}},qm=(e,t,n,o)=>{Wm(e,(r,a)=>Km(e,t,n,o),n)},Gm=(e,t,n,o,r)=>{const a={elm:o.element.dom,alignToTop:r};((e,t)=>e.dispatch("ScrollIntoView",t).isDefaultPrevented())(e,a)||(n(e,t,Ko(t).top,o,r),((e,t)=>{e.dispatch("AfterScrollIntoView",t)})(e,a))},Km=(e,t,n,o)=>{const r=fn(e.getBody()),a=fn(e.getDoc());r.dom.offsetWidth;const i=((e,t)=>{const n=((e,t)=>{const n=Hn(e);if(0===n.length||jm(e))return{element:e,offset:t};if(t<n.length&&!jm(n[t]))return{element:n[t],offset:0};{const o=n[n.length-1];return jm(o)?{element:e,offset:t}:"img"===wn(o)?{element:o,offset:1}:In(o)?{element:o,offset:Jo(o).length}:{element:o,offset:Hn(o).length}}})(e,t),o=un('<span data-mce-bogus="all" style="display: inline-block;">\ufeff</span>');return lo(n.element,o),Hm(o,()=>xo(o))})(fn(n.startContainer),n.startOffset);Gm(e,a,t,i,o),i.cleanup()},Zm=(e,t,n,o)=>{const r=fn(e.getDoc());Gm(e,r,n,(e=>Hm(fn(e),C))(t),o)},Wm=(e,t,n)=>{const o=n.startContainer,r=n.startOffset,a=n.endContainer,i=n.endOffset;t(fn(o),fn(a));const l=e.dom.createRng();l.setStart(o,r),l.setEnd(a,i),e.selection.setRng(n)},$m=(e,t,n,o,r)=>{const a=t.pos;if(o)Zo(a.left,Math.max(0,a.top-30),r);else{const o=a.top-n+t.height+30;Zo(-e.getBody().getBoundingClientRect().left,o,r)}},Ym=(e,t,n,o,r,a)=>{const i=o+n,l=r.pos.top,s=r.bottom,c=s-l>=o;l<n?$m(e,r,o,!1!==a,t):l>i?$m(e,r,o,c?!1!==a:!0===a,t):s>i&&!c&&$m(e,r,o,!0===a,t)},Jm=(e,t,n,o,r)=>{const a=Nn(t).dom.innerHeight;Ym(e,t,n,a,o,r)},Xm=(e,t,n,o,r)=>{const a=Nn(t).dom.innerHeight;Ym(e,t,n,a,o,r);const i=dm(o.element),l=Fr(window);i.top<l.y?Wo(o.element,!1!==r):i.top>l.bottom&&Wo(o.element,!0===r)},Qm=(e,t,n)=>qm(e,Jm,t,n),eg=(e,t,n)=>Zm(e,t,Jm,n),tg=(e,t,n)=>qm(e,Xm,t,n),ng=(e,t,n)=>Zm(e,t,Xm,n),og=(e,t,n)=>{(e.inline?Qm:tg)(e,t,n)},rg=(e,t)=>t.collapsed?e.isEditable(t.startContainer):e.isEditable(t.startContainer)&&e.isEditable(t.endContainer),ag=(e,t,n,o,r)=>{const a=n?t.startContainer:t.endContainer,i=n?t.startOffset:t.endOffset;return F.from(a).map(fn).map(e=>o&&t.collapsed?e:qn(e,r(e,i)).getOr(e)).bind(e=>Tn(e)?F.some(e):Pn(e).filter(Tn)).map(e=>e.dom).getOr(e)},ig=(e,t,n=!1)=>ag(e,t,!0,n,(e,t)=>Math.min(Zn(e),t)),lg=(e,t,n=!1)=>ag(e,t,!1,n,(e,t)=>t>0?t-1:t),sg=(e,t)=>{const n=e;for(;e&&ta(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n},cg=(e,t)=>G(t,t=>{const n=e.dispatch("GetSelectionRange",{range:t});return n.range!==t?n.range:t}),ug={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},dg=(e,t,n)=>{const o=n?"lastChild":"firstChild",r=n?"prev":"next";if(e[o])return e[o];if(e!==t){let n=e[r];if(n)return n;for(let o=e.parent;o&&o!==t;o=o.parent)if(n=o[r],n)return n}},pg=e=>{var t;const n=null!==(t=e.value)&&void 0!==t?t:"";if(!Ur(n))return!1;const o=e.parent;return!o||"span"===o.name&&!o.attr("style")||!/^[ ]+$/.test(n)},fg=e=>{const t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t};class mg{static create(e,t){const n=new mg(e,ug[e]||1);return t&&he(t,(e,t)=>{n.attr(t,e)}),n}constructor(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}replace(e){const t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t}attr(e,t){const n=this;if(!f(e))return A(e)&&he(e,(e,t)=>{n.attr(t,e)}),n;const o=n.attributes;if(o){if(void 0!==t){if(null===t){if(e in o.map){delete o.map[e];let t=o.length;for(;t--;)if(o[t].name===e)return o.splice(t,1),n}return n}if(e in o.map){let n=o.length;for(;n--;)if(o[n].name===e){o[n].value=t;break}}else o.push({name:e,value:t});return o.map[e]=t,n}return o.map[e]}}clone(){const e=this,t=new mg(e.name,e.type),n=e.attributes;if(n){const e=[];e.map={};for(let t=0,o=n.length;t<o;t++){const o=n[t];"id"!==o.name&&(e[e.length]={name:o.name,value:o.value},e.map[o.name]=o.value)}t.attributes=e}return t.value=e.value,t}wrap(e){const t=this;return t.parent&&(t.parent.insert(e,t),e.append(t)),t}unwrap(){const e=this;for(let t=e.firstChild;t;){const n=t.next;e.insert(t,e,!0),t=n}e.remove()}remove(){const e=this,t=e.parent,n=e.next,o=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):o&&(o.next=n),t.lastChild===e?(t.lastChild=o,o&&(o.next=null)):n&&(n.prev=o),e.parent=e.next=e.prev=null),e}append(e){const t=this;e.parent&&e.remove();const n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e}insert(e,t,n){e.parent&&e.remove();const o=t.parent||this;return n?(t===o.firstChild?o.firstChild=e:t.prev&&(t.prev.next=e),e.prev=t.prev,e.next=t,t.prev=e):(t===o.lastChild?o.lastChild=e:t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e),e.parent=o,e}getAll(e){const t=this,n=[];for(let o=t.firstChild;o;o=dg(o,t))o.name===e&&n.push(o);return n}children(){const e=[];for(let t=this.firstChild;t;t=t.next)e.push(t);return e}empty(){const e=this;if(e.firstChild){const t=[];for(let n=e.firstChild;n;n=dg(n,e))t.push(n);let n=t.length;for(;n--;){const e=t[n];e.parent=e.firstChild=e.lastChild=e.next=e.prev=null}}return e.firstChild=e.lastChild=null,e}isEmpty(e,t={},n){var o;const r=this;let a=r.firstChild;if(fg(r))return!1;if(a)do{if(1===a.type){if(a.attr("data-mce-bogus"))continue;if(e[a.name])return!1;if(fg(a))return!1}if(8===a.type)return!1;if(3===a.type&&!pg(a))return!1;if(3===a.type&&a.parent&&t[a.parent.name]&&Ur(null!==(o=a.value)&&void 0!==o?o:""))return!1;if(n&&n(a))return!1}while(a=dg(a,r));return!0}walk(e){return dg(this,null,e)}}const gg=sn.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT"," "),hg=e=>f(e.nodeValue)&&e.nodeValue.includes(Nl),bg=e=>(0===e.length?"":`${G(e,e=>`[${e}]`).join(",")},`)+'[data-mce-bogus="all"]',vg=e=>document.createTreeWalker(e,NodeFilter.SHOW_COMMENT,e=>hg(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),yg=e=>document.createTreeWalker(e,NodeFilter.SHOW_TEXT,e=>{if(hg(e)){const t=e.parentNode;return t&&Ce(gg,t.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}),_g=e=>null!==vg(e).nextNode(),Ag=e=>null!==yg(e).nextNode(),kg=(e,t)=>null!==t.querySelector(bg(e)),xg=(e,t)=>{K(((e,t)=>t.querySelectorAll(bg(e)))(e,t),t=>{const n=fn(t);"all"===bo(n,"data-mce-bogus")?xo(n):K(e,e=>{yo(n,e)&&_o(n,e)})})},wg=e=>{let t=e.nextNode();for(;null!==t;)t.nodeValue=null,t=e.nextNode()},Cg=E(wg,vg),Eg=E(wg,yg),Sg=(e,t)=>{const n=[{condition:O(kg,t),action:O(xg,t)},{condition:_g,action:Cg},{condition:Ag,action:Eg}];let o=e,r=!1;return K(n,({condition:t,action:n})=>{t(o)&&(r||(o=e.cloneNode(!0),r=!0),n(o))}),o},Tg=e=>{const t=yr(e,"[data-mce-bogus]");K(t,e=>{"all"===bo(e,"data-mce-bogus")?xo(e):El(e)?(lo(e,pn(lt)),xo(e)):wo(e)})},Ig=e=>{const t=yr(e,"input");K(t,e=>{_o(e,"name")})},Bg=(e,t,n)=>{let o;return o="raw"===t.format?sn.trim(Rl(Sg(n,e.serializer.getTempAttrs()).innerHTML)):"text"===t.format?((e,t)=>{const n=e.getDoc(),o=$n(fn(e.getBody())),r=dn("div",n);go(r,"data-mce-bogus","all"),No(r,{position:"fixed",left:"-9999999px",top:"0"}),Bo(r,t.innerHTML),Tg(r),Ig(r);const a=(e=>Wn(e)?e:fn(Mn(e).dom.body))(o);uo(a,r);const i=Rl(r.dom.innerText);return xo(r),i})(e,n):"tree"===t.format?e.serializer.serialize(n,t):((e,t)=>{const n=Oc(e),o=new RegExp(`^(<${n}[^>]*>( | |\\s|Â |<br \\/>|)<\\/${n}>[\r\n]*|<br \\/>[\r\n]*)$`);return t.replace(o,"")})(e,e.serializer.serialize(n,t)),"text"!==t.format&&!Ll(fn(n))&&f(o)?sn.trim(o):o},Og=sn.makeMap,Lg=e=>{const t=[],n=(e=e||{}).indent,o=Og(e.indent_before||""),r=Og(e.indent_after||""),a=pi.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="xhtml"!==e.element_format;return{start:(e,l,s)=>{if(n&&o[e]&&t.length>0){const e=t[t.length-1];e.length>0&&"\n"!==e&&t.push("\n")}if(t.push("<",e),l)for(let e=0,n=l.length;e<n;e++){const n=l[e];t.push(" ",n.name,'="',a(n.value,!0),'"')}if(t[t.length]=!s||i?">":" />",s&&n&&r[e]&&t.length>0){const e=t[t.length-1];e.length>0&&"\n"!==e&&t.push("\n")}},end:e=>{let o;t.push("</",e,">"),n&&r[e]&&t.length>0&&(o=t[t.length-1],o.length>0&&"\n"!==o&&t.push("\n"))},text:(e,n)=>{e.length>0&&(t[t.length]=n?e:a(e))},cdata:e=>{t.push("<![CDATA[",e,"]]>")},comment:e=>{t.push("\x3c!--",e,"--\x3e")},pi:(e,o)=>{o?t.push("<?",e," ",a(o),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:e=>{t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:()=>{t.length=0},getContent:()=>t.join("").replace(/\n$/,"")}},Dg=(e={},t=Ii())=>{const n=Lg(e);return e.validate=!("validate"in e)||e.validate,{serialize:o=>{const r=e.validate,a={3:e=>{var t;n.text(null!==(t=e.value)&&void 0!==t?t:"",e.raw)},8:e=>{var t;n.comment(null!==(t=e.value)&&void 0!==t?t:"")},7:e=>{n.pi(e.name,e.value)},10:e=>{var t;n.doctype(null!==(t=e.value)&&void 0!==t?t:"")},4:e=>{var t;n.cdata(null!==(t=e.value)&&void 0!==t?t:"")},11:e=>{let t=e;if(t=t.firstChild)do{i(t)}while(t=t.next)}};n.reset();const i=e=>{var o;const l=a[e.type];if(l)l(e);else{const a=e.name,l=a in t.getVoidElements();let s=e.attributes;if(r&&s&&s.length>1){const n=[];n.map={};const o=t.getElementRule(e.name);if(o){for(let e=0,t=o.attributesOrder.length;e<t;e++){const t=o.attributesOrder[e];if(t in s.map){const e=s.map[t];n.map[t]=e,n.push({name:t,value:e})}}for(let e=0,t=s.length;e<t;e++){const t=s[e].name;if(!(t in n.map)){const e=s.map[t];n.map[t]=e,n.push({name:t,value:e})}}s=n}}if(n.start(a,s,l),Sa(a))f(e.value)&&n.text(e.value,!0),n.end(a);else if(!l){let t=e.firstChild;if(t){"pre"!==a&&"textarea"!==a||3!==t.type||"\n"!==(null===(o=t.value)||void 0===o?void 0:o[0])||n.text("\n",!0);do{i(t)}while(t=t.next)}n.end(a)}}};return 1!==o.type||e.inner?3===o.type?a[3](o):a[11](o):i(o),n.getContent()}}},Mg=new Set;K(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],e=>{Mg.add(e)});const Ng=new Set;K(["background-color"],e=>{Ng.add(e)});const Pg=["font","text-decoration","text-emphasis"],Rg=(e,t)=>me(((e,t)=>e.parseStyle(e.getAttrib(t,"style")))(e,t)),Fg=(e,t)=>q(Rg(e,t),e=>(e=>Mg.has(e))(e)),Vg=(e,t,n)=>F.from(n.container()).filter(ta).exists(o=>{const r=e?0:-1;return t(o.data.charAt(n.offset()+r))}),zg=O(Vg,!0,Zp),Ug=O(Vg,!1,Zp),jg=e=>{const t=e.container();return ta(t)&&(0===t.data.length||Pl(t.data)&&Jf.isBookmarkNode(t.parentNode))},Hg=(e,t)=>n=>Yd(e?0:-1,n).filter(t).isSome(),qg=e=>sa(e)&&"block"===Po(fn(e),"display"),Gg=e=>da(e)&&!(e=>Kr(e)&&"all"===e.getAttribute("data-mce-bogus"))(e),Kg=Hg(!0,qg),Zg=Hg(!1,qg),Wg=Hg(!0,ga),$g=Hg(!1,ga),Yg=Hg(!0,Xr),Jg=Hg(!1,Xr),Xg=Hg(!0,Gg),Qg=Hg(!1,Gg),eh=(e,t)=>((e,t,n)=>kn(t,e)?Fn(e,e=>n(e)||An(e,t)).slice(0,-1):[])(e,t,P),th=(e,t)=>[e].concat(eh(e,t)),nh=(e,t,n)=>wp(e,t,n,jg),oh=(e,t,n)=>Q(th(fn(t.container()),e),(e=>t=>e.isBlock(wn(t)))(n)),rh=(e,t,n,o)=>nh(e,t.dom,n).forall(e=>oh(t,n,o).fold(()=>!$d(e,n,t.dom),o=>!$d(e,n,t.dom)&&kn(o,fn(e.container())))),ah=(e,t,n,o)=>oh(t,n,o).fold(()=>nh(e,t.dom,n).forall(e=>!$d(e,n,t.dom)),t=>nh(e,t.dom,n).isNone()),ih=O(ah,!1),lh=O(ah,!0),sh=O(rh,!1),ch=O(rh,!0),uh=e=>ap(e).exists(El),dh=(e,t,n,o)=>{const r=$(th(fn(n.container()),t),e=>o.isBlock(wn(e))),a=ce(r).getOr(t);return kp(e,a.dom,n).filter(uh)},ph=(e,t,n)=>ap(t).exists(El)||dh(!0,e,t,n).isSome(),fh=(e,t,n)=>(e=>F.from(e.getNode(!0)).map(fn))(t).exists(El)||dh(!1,e,t,n).isSome(),mh=O(dh,!1),gh=O(dh,!0),hh=e=>Ns.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd(),bh=(e,t,n)=>{const o=$(th(fn(t.container()),e),e=>n.isBlock(wn(e)));return ce(o).getOr(e)},vh=(e,t,n)=>hh(t)?Ug(t):Ug(t)||Sp(bh(e,t,n).dom,t).exists(Ug),yh=(e,t,n)=>hh(t)?zg(t):zg(t)||Ep(bh(e,t,n).dom,t).exists(zg),_h=e=>ap(e).bind(e=>nr(e,Tn)).exists(e=>(e=>H(["pre","pre-wrap"],e))(Po(e,"white-space"))),Ah=(e,t)=>n=>{return o=new Vr(n,e)[t](),A(o)&&da(o)&&Fd(o);var o},kh=(e,t,n)=>!_h(t)&&(((e,t,n)=>((e,t)=>Sp(e.dom,t).isNone())(e,t)||((e,t)=>Ep(e.dom,t).isNone())(e,t)||ih(e,t,n)||lh(e,t,n)||fh(e,t,n)||ph(e,t,n))(e,t,n)||vh(e,t,n)||yh(e,t,n)),xh=(e,t,n)=>!_h(t)&&(ih(e,t,n)||sh(e,t,n)||fh(e,t,n)||vh(e,t,n)||((e,t)=>{const n=Sp(e.dom,t).getOr(t),o=Ah(e.dom,"prev");return t.isAtStart()&&(o(t.container())||o(n.container()))})(e,t)),wh=(e,t,n)=>!_h(t)&&(lh(e,t,n)||ch(e,t,n)||ph(e,t,n)||yh(e,t,n)||((e,t)=>{const n=Ep(e.dom,t).getOr(t),o=Ah(e.dom,"next");return t.isAtEnd()&&(o(t.container())||o(n.container()))})(e,t)),Ch=(e,t,n)=>xh(e,t,n)||wh(e,(e=>{const t=e.container(),n=e.offset();return ta(t)&&n<t.data.length?Ns(t,n+1):e})(t),n),Eh=(e,t)=>Gp(e.charAt(t)),Sh=(e,t)=>Zp(e.charAt(t)),Th=(e,t,n,o)=>{const r=t.data,a=Ns(t,0);return n||!Eh(r,0)||Ch(e,a,o)?!!(n&&Sh(r,0)&&xh(e,a,o))&&(t.data=st+r.slice(1),!0):(t.data=" "+r.slice(1),!0)},Ih=(e,t,n,o)=>{const r=t.data,a=Ns(t,r.length-1);return n||!Eh(r,r.length-1)||Ch(e,a,o)?!!(n&&Sh(r,r.length-1)&&wh(e,a,o))&&(t.data=r.slice(0,-1)+st,!0):(t.data=r.slice(0,-1)+" ",!0)},Bh=(e,t,n)=>{const o=t.container();if(!ta(o))return F.none();if((e=>{const t=e.container();return ta(t)&&We(t.data,st)})(t)){const r=Th(e,o,!1,n)||(e=>{const t=e.data,n=(e=>{const t=e.split("");return G(t,(e,n)=>Gp(e)&&n>0&&n<t.length-1&&Wp(t[n-1])&&Wp(t[n+1])?" ":e).join("")})(t);return n!==t&&(e.data=n,!0)})(o)||Ih(e,o,!1,n);return je(r,t)}if(Ch(e,t,n)){const r=Th(e,o,!0,n)||Ih(e,o,!0,n);return je(r,t)}return F.none()},Oh=(e,t,n,o)=>{if(0===n)return;const r=fn(e),a=tr(r,e=>o.isBlock(wn(e))).getOr(r),i=e.data.slice(t,t+n),l=t+n>=e.data.length&&wh(a,Ns(e,e.data.length),o),s=0===t&&xh(a,Ns(e,0),o);e.replaceData(t,n,Hr(i,4,s,l))},Lh=(e,t,n)=>{const o=e.data.slice(t),r=o.length-Qe(o).length;Oh(e,t,r,n)},Dh=(e,t,n)=>{const o=e.data.slice(0,t),r=o.length-et(o).length;Oh(e,t-r,r,n)},Mh=(e,t,n,o,r=!0)=>{const a=et(e.data).length,i=r?e:t,l=r?t:e;return r?i.appendData(l.data):i.insertData(0,l.data),xo(fn(l)),o&&Lh(i,a,n),i},Nh=(e,t)=>((e,t)=>{const n=e.container(),o=e.offset();return!Ns.isTextPosition(e)&&n===t.parentNode&&o>Ns.before(t).offset()})(t,e)?Ns(t.container(),t.offset()-1):t,Ph=e=>{return gs(e.previousSibling)?F.some((t=e.previousSibling,ta(t)?Ns(t,t.data.length):Ns.after(t))):e.previousSibling?Ip(e.previousSibling):F.none();var t},Rh=e=>{return gs(e.nextSibling)?F.some((t=e.nextSibling,ta(t)?Ns(t,0):Ns.before(t))):e.nextSibling?Tp(e.nextSibling):F.none();var t},Fh=(e,t,n)=>((e,t,n)=>e?((e,t)=>Rh(t).orThunk(()=>Ph(t)).orThunk(()=>((e,t)=>Ep(e,Ns.after(t)).orThunk(()=>Sp(e,Ns.before(t))))(e,t)))(t,n):((e,t)=>Ph(t).orThunk(()=>Rh(t)).orThunk(()=>((e,t)=>F.from(t.previousSibling?t.previousSibling:t.parentNode).bind(t=>Sp(e,Ns.before(t))).orThunk(()=>Ep(e,Ns.after(t))))(e,t)))(t,n))(e,t,n).map(O(Nh,n)),Vh=(e,t,n)=>{n.fold(()=>{e.focus()},n=>{e.selection.setRng(n.toRange(),t)})},zh=(e,t)=>t&&Ce(e.schema.getBlockElements(),wn(t)),Uh=(e,t,n,o=!0,r=!1)=>{const a=Fh(t,e.getBody(),n.dom),i=tr(n,O(zh,e),(l=e.getBody(),e=>e.dom===l));var l;const s=((e,t,n,o)=>{const r=Vn(e).filter(In),a=zn(e).filter(In);return xo(e),(i=r,l=a,s=t,c=(e,t,r)=>{const a=e.dom,i=t.dom,l=a.data.length;return Mh(a,i,n,o),r.container()===i?Ns(a,l):r},i.isSome()&&l.isSome()&&s.isSome()?F.some(c(i.getOrDie(),l.getOrDie(),s.getOrDie())):F.none()).orThunk(()=>(o&&(r.each(e=>Dh(e.dom,e.dom.length,n)),a.each(e=>Lh(e.dom,0,n))),t));var i,l,s,c})(n,a,e.schema,((e,t)=>Ce(e.schema.getTextInlineElements(),wn(t)))(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):i.bind(t=>((e,t,n)=>{if(wa(e,t)){const e=un('<br data-mce-bogus="1">');return n?K(Hn(t),e=>{Tf(e)||xo(e)}):ko(t),uo(t,e),F.some(Ns.before(e.dom))}return F.none()})(e.schema,t,r)).fold(()=>{o&&Vh(e,t,s)},n=>{o&&Vh(e,t,F.some(n))})},jh=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,Hh=(e,t)=>yn(fn(t),ou(e))&&!ja(e.schema,t)&&e.dom.isEditable(t),qh=e=>{var t;return"rtl"===rl.DOM.getStyle(e,"direction",!0)||(e=>jh.test(e))(null!==(t=e.textContent)&&void 0!==t?t:"")},Gh=(e,t,n)=>{const o=((e,t,n)=>$(rl.DOM.getParents(n.container(),"*",t),e))(e,t,n);return F.from(o[o.length-1])},Kh=(e,t)=>{const n=t.container(),o=t.offset();return e?Ul(n)?ta(n.nextSibling)?Ns(n.nextSibling,0):Ns.after(n):ql(t)?Ns(n,o+1):t:Ul(n)?ta(n.previousSibling)?Ns(n.previousSibling,n.previousSibling.data.length):Ns.before(n):Gl(t)?Ns(n,o-1):t},Zh=O(Kh,!0),Wh=O(Kh,!1),$h=(e,t)=>{const n=e=>e.stopImmediatePropagation();e.on("beforeinput input",n,!0),e.getDoc().execCommand(t),e.off("beforeinput input",n)},Yh=e=>$h(e,"Delete"),Jh=e=>$h(e,"ForwardDelete"),Xh=e=>Sl(e)||Il(e),Qh=(e,t)=>kn(e,t)?nr(t,Xh,(e=>t=>Ve(Pn(t),e,An))(e)):F.none(),eb=(e,t=!0)=>{e.dom.isEmpty(e.getBody())&&e.setContent("",{no_selection:!t})},tb=(e,t,n)=>Ue(Tp(n),Ip(n),(o,r)=>{const a=Kh(!0,o),i=Kh(!1,r),l=Kh(!1,t);return e?Ep(n,l).exists(e=>e.isEqual(i)&&t.isEqual(a)):Sp(n,l).exists(e=>e.isEqual(a)&&t.isEqual(i))}).getOr(!0),nb=e=>{var t;return(8===Cn(t=e)||"#comment"===wn(t)?Vn(e):Kn(e)).bind(nb).orThunk(()=>F.some(e))},ob=(e,t,n,o=!0)=>{var r;t.deleteContents();const a=nb(n).getOr(n),i=fn(null!==(r=e.dom.getParent(a.dom,e.dom.isBlock))&&void 0!==r?r:n.dom);if(i.dom===e.getBody()?eb(e,o):wa(e.schema,i,{checkRootAsContent:!1})&&(Ml(i),o&&e.selection.setCursorLocation(i.dom,0)),!An(n,i)){const t=Ve(Pn(i),n)?[]:Pn(l=i).map(Hn).map(e=>$(e,e=>!An(l,e))).getOr([]);K(t.concat(Hn(n)),t=>{An(t,i)||kn(t,i)||!wa(e.schema,t)||xo(t)})}var l},rb=e=>yr(e,"td,th"),ab=(e,t)=>Xp(fn(e),t),ib=(e,t)=>({start:e,end:t}),lb=Se([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),sb=(e,t)=>ir(fn(e),"td,th",t),cb=e=>!An(e.start,e.end),ub=(e,t)=>Xp(e.start,t).bind(n=>Xp(e.end,t).bind(e=>je(An(n,e),n))),db=e=>t=>ub(t,e).map(e=>((e,t,n)=>({rng:e,table:t,cells:n}))(t,e,rb(e))),pb=(e,t,n,o)=>{if(n.collapsed||!e.forall(cb))return F.none();if(t.isSameTable){const t=e.bind(db(o));return F.some({start:t,end:t})}{const e=sb(n.startContainer,o),t=sb(n.endContainer,o),r=e.bind((e=>t=>Xp(t,e).bind(e=>ue(rb(e)).map(e=>ib(t,e))))(o)).bind(db(o)),a=t.bind((e=>t=>Xp(t,e).bind(e=>ce(rb(e)).map(e=>ib(e,t))))(o)).bind(db(o));return F.some({start:r,end:a})}},fb=(e,t)=>ee(e,e=>An(e,t)),mb=e=>Ue(fb(e.cells,e.rng.start),fb(e.cells,e.rng.end),(t,n)=>e.cells.slice(t,n+1)),gb=(e,t)=>{const{startTable:n,endTable:o}=t,r=e.cloneRange();return n.each(e=>r.setStartAfter(e.dom)),o.each(e=>r.setEndBefore(e.dom)),r},hb=(e,t)=>{const n=(e=>t=>An(e,t))(e),o=((e,t)=>{const n=sb(e.startContainer,t),o=sb(e.endContainer,t);return Ue(n,o,ib)})(t,n),r=((e,t)=>{const n=ab(e.startContainer,t),o=ab(e.endContainer,t),r=n.isSome(),a=o.isSome(),i=Ue(n,o,An).getOr(!1);return(e=>Ue(e.startTable,e.endTable,(t,n)=>{const o=kr(t,e=>An(e,n)),r=kr(n,e=>An(e,t));return o||r?{...e,startTable:o?F.none():e.startTable,endTable:r?F.none():e.endTable,isSameTable:!1,isMultiTable:!1}:e}).getOr(e))({startTable:n,endTable:o,isStartInTable:r,isEndInTable:a,isSameTable:i,isMultiTable:!i&&r&&a})})(t,n);return((e,t,n)=>e.exists(e=>((e,t)=>!cb(e)&&ub(e,t).exists(e=>{const t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))(e,n)&&tf(e.start,t)))(o,t,n)?o.map(e=>lb.singleCellTable(t,e.start)):r.isMultiTable?((e,t,n,o)=>pb(e,t,n,o).bind(({start:e,end:o})=>{const r=e.bind(mb).getOr([]),a=o.bind(mb).getOr([]);if(r.length>0&&a.length>0){const e=gb(n,t);return F.some(lb.multiTable(r,a,e))}return F.none()}))(o,r,t,n):((e,t,n,o)=>pb(e,t,n,o).bind(({start:e,end:t})=>e.or(t)).bind(e=>{const{isSameTable:o}=t,r=mb(e).getOr([]);if(o&&e.cells.length===r.length)return F.some(lb.fullTable(e.table));if(r.length>0){if(o)return F.some(lb.partialTable(r,F.none()));{const e=gb(n,t);return F.some(lb.partialTable(r,F.some({...t,rng:e})))}}return F.none()}))(o,r,t,n)},bb=e=>K(e,e=>{_o(e,"contenteditable"),Ml(e)}),vb=(e,t,n,o)=>{const r=n.cloneRange();o?(r.setStart(n.startContainer,n.startOffset),r.setEndAfter(t.dom.lastChild)):(r.setStartBefore(t.dom.firstChild),r.setEnd(n.endContainer,n.endOffset)),kb(e,r,t,!1).each(e=>e())},yb=e=>{const t=Jp(e),n=fn(e.selection.getNode());fa(n.dom)&&wa(e.schema,n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&q(t,e=>An(e,n))&&go(n,"data-mce-selected","1")},_b=(e,t,n)=>F.some(()=>{const o=e.selection.getRng(),r=n.bind(({rng:n,isStartInTable:r})=>{const a=((e,t)=>F.from(e.dom.getParent(t,e.dom.isBlock)).map(fn))(e,r?n.endContainer:n.startContainer);n.deleteContents(),((e,t,n)=>{n.each(n=>{t?xo(n):(Ml(n),e.selection.setCursorLocation(n.dom,0))})})(e,r,a.filter(O(wa,e.schema)));const i=r?t[0]:t[t.length-1];return vb(e,i,o,r),wa(e.schema,i)?F.none():F.some(r?t.slice(1):t.slice(0,-1))}).getOr(t);bb(r),yb(e)}),Ab=(e,t,n,o)=>F.some(()=>{const r=e.selection.getRng(),a=t[0],i=n[n.length-1];vb(e,a,r,!0),vb(e,i,r,!1);const l=wa(e.schema,a)?t:t.slice(1),s=wa(e.schema,i)?n:n.slice(0,-1);bb(l.concat(s)),o.deleteContents(),yb(e)}),kb=(e,t,n,o=!0)=>F.some(()=>{ob(e,t,n,o)}),xb=(e,t)=>F.some(()=>Uh(e,!1,t)),wb=(e,t)=>Q(th(t,e),Ol),Cb=(e,t)=>Q(th(t,e),Ln("caption")),Eb=(e,t)=>F.some(()=>{Ml(t),e.selection.setCursorLocation(t.dom,0)}),Sb=(e,t)=>e?Yg(t):Jg(t),Tb=(e,t,n)=>{const o=fn(e.getBody());return Cb(o,n).fold(()=>((e,t,n,o)=>{const r=Ns.fromRangeStart(e.selection.getRng());return wb(n,o).bind(o=>wa(e.schema,o,{checkRootAsContent:!1})?Eb(e,o):((e,t,n,o,r)=>xp(n,e.getBody(),r).bind(e=>wb(t,fn(e.getNode())).bind(e=>An(e,o)?F.none():F.some(C))))(e,n,t,o,r))})(e,t,o,n).orThunk(()=>je(((e,t)=>{const n=Ns.fromRangeStart(e.selection.getRng());return Sb(t,n)||kp(t,e.getBody(),n).exists(e=>Sb(t,e))})(e,t),C)),n=>((e,t,n,o)=>{const r=Ns.fromRangeStart(e.selection.getRng());return wa(e.schema,o)?Eb(e,o):((e,t,n,o,r)=>xp(n,e.getBody(),r).fold(()=>F.some(C),a=>((e,t,n,o)=>Tp(e.dom).bind(r=>Ip(e.dom).map(e=>t?n.isEqual(r)&&o.isEqual(e):n.isEqual(e)&&o.isEqual(r))).getOr(!0))(o,n,r,a)?((e,t)=>Eb(e,t))(e,o):((e,t,n)=>Cb(e,fn(n.getNode())).fold(()=>F.some(C),e=>je(!An(e,t),C)))(t,o,a)))(e,n,t,o,r)})(e,t,o,n))},Ib=(e,t)=>{const n=fn(e.selection.getStart(!0)),o=Jp(e);return e.selection.isCollapsed()&&0===o.length?Tb(e,t,n):((e,t,n)=>{const o=fn(e.getBody()),r=e.selection.getRng();return 0!==n.length?_b(e,n,F.none()):((e,t,n,o)=>Cb(t,o).fold(()=>((e,t,n)=>hb(t,n).bind(t=>t.fold(O(kb,e),O(xb,e),O(_b,e),O(Ab,e))))(e,t,n),t=>((e,t)=>Eb(e,t))(e,t)))(e,o,r,t)})(e,n,o)},Bb=(e,t)=>{let n=t;for(;n&&n!==e;){if(ua(n)||da(n))return n;n=n.parentNode}return null},Ob=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],Lb=sn.each,Db=e=>{const t=e.dom,n=new Set(e.serializer.getTempAttrs()),o=e=>q(Ob,t=>$e(e,t))||n.has(e);return{compare:(e,n)=>{if(e.nodeName!==n.nodeName||e.nodeType!==n.nodeType)return!1;const r=e=>{const n={};return Lb(t.getAttribs(e),r=>{const a=r.nodeName.toLowerCase();"style"===a||o(a)||(n[a]=t.getAttrib(e,a))}),n},a=(e,t)=>{for(const n in e)if(Ce(e,n)){const o=t[n];if(y(o))return!1;if(e[n]!==o)return!1;delete t[n]}for(const e in t)if(Ce(t,e))return!1;return!0};if(Kr(e)&&Kr(n)){if(!a(r(e),r(n)))return!1;if(!a(t.parseStyle(t.getAttrib(e,"style")),t.parseStyle(t.getAttrib(n,"style"))))return!1}return!qp(e)&&!qp(n)},isAttributeInternal:o}},Mb=e=>["h1","h2","h3","h4","h5","h6"].includes(e.name),Nb=(e,t,n,o)=>{const r=n.name;for(let t=0,a=e.length;t<a;t++){const a=e[t];if(a.name===r){const e=o.nodes[r];e?e.nodes.push(n):o.nodes[r]={filter:a,nodes:[n]}}}if(n.attributes)for(let e=0,r=t.length;e<r;e++){const r=t[e],a=r.name;if(a in n.attributes.map){const e=o.attributes[a];e?e.nodes.push(n):o.attributes[a]={filter:r,nodes:[n]}}}},Pb=(e,t)=>{const n=(e,n)=>{he(e,e=>{const o=de(e.nodes);K(e.filter.callbacks,r=>{for(let t=o.length-1;t>=0;t--){const r=o[t];(n?void 0!==r.attr(e.filter.name):r.name===e.filter.name)&&!_(r.parent)||o.splice(t,1)}o.length>0&&r(o,e.filter.name,t)})})};n(e.nodes,!1),n(e.attributes,!0)},Rb=(e,t,n,o={})=>{const r=((e,t,n)=>{const o={nodes:{},attributes:{}};return n.firstChild&&((e,t)=>{let n=e;for(;n=n.walk();)t(n)})(n,n=>{Nb(e,t,n,o)}),o})(e,t,n);Pb(r,o)},Fb=(e,t,n,o)=>{if((e.pad_empty_with_br||t.insert)&&n(o)){const e=new mg("br",1);t.insert&&e.attr("data-mce-bogus","1"),o.empty().append(e)}else o.empty().append(new mg("#text",3)).value=st},Vb=(e,t)=>{const n=null==e?void 0:e.firstChild;return A(n)&&n===e.lastChild&&n.name===t},zb=(e,t,n,o)=>o.isEmpty(t,n,t=>((e,t)=>{const n=e.getElementRule(t.name);return!0===(null==n?void 0:n.paddEmpty)})(e,t)),Ub=e=>{let t;for(let n=e;n;n=n.parent){const e=n.attr("contenteditable");if("false"===e)break;"true"===e&&(t=n)}return F.from(t)},jb=(e,t,n=e.parent)=>{if(t.getSpecialElements()[e.name])e.empty().remove();else{const o=e.children();for(const e of o)n&&!t.isValidChild(n.name,e.name)&&jb(e,t,n);e.unwrap()}},Hb=(e,t,n,o=C)=>{const r=t.getTextBlockElements(),a=t.getNonEmptyElements(),i=t.getWhitespaceElements(),l=sn.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),s=new Set,c=e=>e!==n&&!l[e.name];for(let n=0;n<e.length;n++){const l=e[n];let u,d,p;if(!l.parent||s.has(l))continue;if(r[l.name]&&"li"===l.parent.name){let e=l.next;for(;e&&r[e.name];)e.name="li",s.add(e),l.parent.insert(e,l.parent),e=e.next;l.unwrap();continue}const f=[l];for(u=l.parent;u&&!t.isValidChild(u.name,l.name)&&c(u);u=u.parent)f.push(u);if(u&&f.length>1)if(qb(t,l,u))jb(l,t);else{f.reverse(),d=f[0].clone(),o(d);let e=d;for(let n=0;n<f.length-1;n++){t.isValidChild(e.name,f[n].name)&&n>0?(p=f[n].clone(),o(p),e.append(p)):p=e;for(let e=f[n].firstChild;e&&e!==f[n+1];){const t=e.next;p.append(e),e=t}e=p}zb(t,a,i,d)?u.insert(l,f[0],!0):(u.insert(d,f[0],!0),u.insert(l,d)),u=f[0],(zb(t,a,i,u)||Vb(u,"br"))&&u.empty().remove()}else if(l.parent){if("li"===l.name){let e=l.prev;if(e&&("ul"===e.name||"ol"===e.name)){e.append(l);continue}if(e=l.next,e&&("ul"===e.name||"ol"===e.name)&&e.firstChild){e.insert(l,e.firstChild,!0);continue}const t=new mg("ul",1);o(t),l.wrap(t);continue}if(t.isValidChild(l.parent.name,"div")&&t.isValidChild("div",l.name)){const e=new mg("div",1);o(e),l.wrap(e)}else jb(l,t)}}},qb=(e,t,n=t.parent)=>!(!n||(!e.children[t.name]||e.isValidChild(n.name,t.name))&&("a"!==t.name||!(e=>{let t=e;for(;t;){if("a"===t.name)return!0;t=t.parent}return!1})(n))&&(!(e=>"summary"===e.name)(n)||!Mb(t)||(null==n?void 0:n.firstChild)===t&&(null==n?void 0:n.lastChild)===t)),Gb=e=>e.collapsed?e:(e=>{const t=Ns.fromRangeStart(e),n=Ns.fromRangeEnd(e),o=e.commonAncestorContainer;return kp(!1,o,n).map(r=>!$d(t,n,o)&&$d(t,r,o)?((e,t,n,o)=>{const r=document.createRange();return r.setStart(e,t),r.setEnd(n,o),r})(t.container(),t.offset(),r.container(),r.offset()):e).getOr(e)})(e),Kb=(e,t)=>{let n=t.firstChild,o=t.lastChild;return n&&"meta"===n.name&&(n=n.next),o&&"mce_marker"===o.attr("id")&&(o=o.prev),((e,t)=>{const n=e.getNonEmptyElements();return A(t)&&(t.isEmpty(n)||((e,t)=>e.getBlockElements()[t.name]&&(e=>A(e.firstChild)&&e.firstChild===e.lastChild)(t)&&(e=>"br"===e.name||e.value===st)(t.firstChild))(e,t))})(e,o)&&(o=null==o?void 0:o.prev),!(!n||n!==o||"ul"!==n.name&&"ol"!==n.name)},Zb=e=>{return e.length>0&&(!(n=e[e.length-1]).firstChild||A(null==(t=n)?void 0:t.firstChild)&&t.firstChild===t.lastChild&&(e=>e.data===st||la(e))(t.firstChild))?e.slice(0,-1):e;var t,n},Wb=(e,t)=>{const n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},$b=(e,t)=>{const n=Ns.after(e),o=vp(t).prev(n);return o?o.toRange():null},Yb=(e,t,n,o)=>{const r=((e,t,n)=>{const o=t.serialize(n);return(e=>{var t,n;const o=e.firstChild,r=e.lastChild;return o&&"META"===o.nodeName&&(null===(t=o.parentNode)||void 0===t||t.removeChild(o)),r&&"mce_marker"===r.id&&(null===(n=r.parentNode)||void 0===n||n.removeChild(r)),e})(e.createFragment(o))})(t,e,o),a=Wb(t,n.startContainer),i=Zb((l=r.firstChild,$(null!==(s=null==l?void 0:l.childNodes)&&void 0!==s?s:[],e=>"LI"===e.nodeName)));var l,s;const c=t.getRoot(),u=e=>{const o=Ns.fromRangeStart(n),r=vp(t.getRoot()),i=1===e?r.prev(o):r.next(o),l=null==i?void 0:i.getNode();return!l||Wb(t,l)!==a};return a?u(1)?((e,t,n)=>{const o=e.parentNode;return o&&sn.each(t,t=>{o.insertBefore(t,e)}),((e,t)=>{const n=Ns.before(e),o=vp(t).next(n);return o?o.toRange():null})(e,n)})(a,i,c):u(2)?((e,t,n,o)=>(o.insertAfter(t.reverse(),e),$b(t[0],n)))(a,i,c,t):((e,t,n,o)=>{const r=((e,t)=>{const n=t.cloneRange(),o=t.cloneRange();return n.setStartBefore(e),o.setEndAfter(e),[n.cloneContents(),o.cloneContents()]})(e,o),a=e.parentNode;return a&&(a.insertBefore(r[0],e),sn.each(t,t=>{a.insertBefore(t,e)}),a.insertBefore(r[1],e),a.removeChild(e)),$b(t[t.length-1],n)})(a,i,c,n):null},Jb=["pre"],Xb=fa,Qb=e=>tv(e,ta),ev=e=>tv(e,ca),tv=(e,t)=>e.startContainer===e.endContainer&&e.endOffset-e.startOffset===1&&t(e.startContainer.childNodes[e.startOffset]),nv=(e,t,n)=>{var o,r;const a=e.selection,i=e.dom,l=e.parser,s=n.merge,c=Dg({validate:!0},e.schema),u='<span id="mce_marker" data-mce-type="bookmark"></span>';n.preserve_zwsp||(t=Rl(t)),-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,u);let d=a.getRng();const p=d.startContainer,f=e.getBody();p===f&&a.isCollapsed()&&i.isBlock(f.firstChild)&&((e,t)=>A(t)&&!e.schema.getVoidElements()[t.nodeName])(e,f.firstChild)&&i.isEmpty(f.firstChild)&&(d=i.createRng(),d.setStart(f.firstChild,0),d.setEnd(f.firstChild,0),a.setRng(d)),a.isCollapsed()||(e=>{const t=e.dom,n=Gb(e.selection.getRng());e.selection.setRng(n);const o=t.getParent(n.startContainer,Xb);((e,t,n)=>!!A(n)&&n===e.getParent(t.endContainer,Xb)&&tf(fn(n),t))(t,n,o)?kb(e,n,fn(o)):ev(n)||Qb(n)?n.deleteContents():e.getDoc().execCommand("Delete",!1)})(e);const m=a.getNode(),g={context:m.nodeName.toLowerCase(),data:n.data,insert:!0},h=l.parse(t,g);if(!0===n.paste&&Kb(e.schema,h)&&((e,t)=>!!Wb(e,t))(i,m))return d=Yb(c,i,a.getRng(),h),d&&a.setRng(d),t;!0===n.paste&&((e,t,n,o)=>{var r;const a=t.firstChild,i=t.lastChild,l=a===("bookmark"===i.attr("data-mce-type")?i.prev:i),s=H(Jb,a.name);if(l&&s){const t="false"!==a.attr("contenteditable"),i=(null===(r=e.getParent(n,e.isBlock))||void 0===r?void 0:r.no
2deName.toLowerCase())===a.name,l=F.from(Bb(o,n)).forall(ua);return t&&i&&l}return!1})(i,h,m,e.getBody())&&(null===(o=h.firstChild)||void 0===o||o.unwrap()),(e=>{let t=e;for(;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")})(h);let b=h.lastChild;if(b&&"mce_marker"===b.attr("id")){const t=b;for(b=b.prev;b&&"table"!==b.name;b=b.walk(!0))if(3===b.type||!i.isBlock(b.name)){b.parent&&e.schema.isValidChild(b.parent.name,"span")&&b.parent.insert(t,b,"br"===b.name);break}}if(e._selectionOverrides.showBlockCaretContainer(m),g.invalid||((e,t,n)=>{var o;return q(n.children(),Mb)&&"SUMMARY"===(null===(o=e.getParent(t,e.isBlock))||void 0===o?void 0:o.nodeName)})(i,m,h)){e.selection.setContent(u);let n,o=a.getNode();const s=e.getBody();for(aa(o)?o=n=s:n=o;n&&n!==s;)o=n,n=n.parentNode;t=o===s?s.innerHTML:i.getOuterHTML(o);const d=l.parse(t),p=(e=>{for(let t=e;t;t=t.walk())if("mce_marker"===t.attr("id"))return F.some(t);return F.none()})(d),f=p.bind(Ub).getOr(d);p.each(e=>e.replace(h));const m=h.children(),g=null!==(r=h.parent)&&void 0!==r?r:d;h.unwrap();const b=$(m,t=>qb(e.schema,t,g));Hb(b,e.schema,f),Rb(l.getNodeFilters(),l.getAttributeFilters(),d),t=c.serialize(d),o===s?i.setHTML(s,t):i.setOuterHTML(o,t)}else t=c.serialize(h),((e,t,n)=>{var o;"all"===n.getAttribute("data-mce-bogus")?null===(o=n.parentNode)||void 0===o||o.insertBefore(e.dom.createFragment(t),n):((e,t)=>{if(e.isBlock(t)&&e.isEditable(t)){const e=t.childNodes;return 1===e.length&&la(e[0])||0===e.length}return!1})(e.dom,n)?e.dom.setHTML(n,t):e.selection.setContent(t,{no_events:!0})})(e,t,m);var v;return((e,t)=>{const n=e.schema.getTextInlineElements(),o=e.dom;if(t){const t=e.getBody(),r=Db(e),a="*[data-mce-fragment]",i=o.select(a);sn.each(i,e=>{const i=e=>A(n[e.nodeName.toLowerCase()]),l=e=>1===e.childNodes.length;if(!Fg(o,s=e)&&!((e,t)=>Fg(e,t)&&q(Rg(e,t),e=>(e=>Ng.has(e))(e)))(o,s)&&i(e)&&l(e)){const n=Rg(o,e),s=(e,t)=>oe(e,e=>H(t,e)),c=t=>l(e)&&o.is(t,a)&&i(t)&&(t.nodeName===e.nodeName&&s(n,Rg(o,t))||c(t.children[0])),u=n=>A(n)&&n!==t&&(r.compare(e,n)||u(n.parentElement)),d=n=>A(n)&&n!==t&&o.is(n,a)&&(((e,t,n)=>{const o=Rg(e,t),r=Rg(e,n),a=o=>{var r,a;const i=null!==(r=e.getStyle(t,o))&&void 0!==r?r:"",l=null!==(a=e.getStyle(n,o))&&void 0!==a?a:"";return tt(i)&&tt(l)&&i!==l};return q(o,e=>{const t=t=>q(t,t=>t===e);if(!t(r)&&t(Pg)){const e=$(r,e=>q(Pg,t=>$e(e,t)));return q(e,a)}return a(e)})})(o,e,n)||d(n.parentElement));(c(e.children[0])||u(e.parentElement)&&!d(e.parentElement))&&o.remove(e,!0)}var s})}})(e,s),((e,t)=>{var n,o,r;let a;const i=e.dom,l=e.selection;if(!t)return;l.scrollIntoView(t);const s=Bb(e.getBody(),t);if(s&&"false"===i.getContentEditable(s))return i.remove(t),void l.select(s);let c=i.createRng();const u=t.previousSibling;if(ta(u)){c.setStart(u,null!==(o=null===(n=u.nodeValue)||void 0===n?void 0:n.length)&&void 0!==o?o:0);const e=t.nextSibling;ta(e)&&(u.appendData(e.data),null===(r=e.parentNode)||void 0===r||r.removeChild(e))}else c.setStartBefore(t),c.setEndBefore(t);const d=i.getParent(t,i.isBlock);if(i.remove(t),d&&i.isEmpty(d)){const t=Xb(d);ko(fn(d)),c.setStart(d,0),c.setEnd(d,0),t||(e=>!!e.getAttribute("data-mce-fragment"))(d)||!(a=(t=>{let n=Ns.fromRangeStart(t);return n=vp(e.getBody()).next(n),null==n?void 0:n.toRange()})(c))?i.add(d,i.create("br",t?{}:{"data-mce-bogus":"1"})):(c=a,i.remove(d))}l.setRng(c)})(e,i.get("mce_marker")),v=e.getBody(),sn.each(v.getElementsByTagName("*"),e=>{e.removeAttribute("data-mce-fragment")}),((e,t,n)=>{F.from(e.getParent(t,"td,th")).map(fn).each(e=>((e,t)=>{Kn(e).each(n=>{Vn(n).each(o=>{t.isBlock(wn(e))&&El(n)&&t.isBlock(wn(o))&&xo(n)})})})(e,n))})(i,a.getStart(),e.schema),((e,t,n)=>{const o=Fn(fn(n),e=>An(e,fn(t)));se(o,o.length-2).filter(Tn).fold(()=>Ra(e,t),t=>Ra(e,t.dom))})(e.schema,e.getBody(),a.getStart()),t},ov=e=>e instanceof mg,rv=(e,t,n)=>{e.dom.setHTML(e.getBody(),t),!0!==n&&(e=>{Am(e)&&Tp(e.getBody()).each(t=>{const n=t.getNode(),o=Xr(n)?Tp(n).getOr(t):t;e.selection.setRng(o.toRange())})})(e)},av=bf,iv=(e,t,n)=>{const o=e.formatter.get(n);if(o)for(let n=0;n<o.length;n++){const r=o[n];if(wf(r)&&!1===r.inherit&&e.dom.is(t,r.selector))return!0}return!1},lv=(e,t,n,o,r)=>{const a=e.dom.getRoot();if(t===a)return!1;const i=e.dom.getParent(t,t=>!!iv(e,t,n)||t.parentNode===a||!!uv(e,t,n,o,!0));return!!uv(e,i,n,o,r)},sv=(e,t,n)=>!(!Cf(n)||!av(t,n.inline))||!(!xf(n)||!av(t,n.block))||!!wf(n)&&Kr(t)&&e.is(t,n.selector),cv=(e,t,n,o,r,a)=>{const i=n[o],l="attributes"===o;if(k(n.onmatch))return n.onmatch(t,n,o);if(i)if(dt(i)){for(let n=0;n<i.length;n++)if(l?e.getAttrib(t,i[n]):yf(e,t,i[n]))return!0}else for(const o in i)if(Ce(i,o)){const s=l?e.getAttrib(t,o):yf(e,t,o),c=hf(i[o],a),u=_(s)||nt(s);if(u&&_(c))continue;if(r&&u&&!n.exact)return!1;if((!r||n.exact)&&!av(s,vf(c,o)))return!1}return!0},uv=(e,t,n,o,r)=>{const a=e.formatter.get(n),i=e.dom;if(a&&Kr(t))for(let n=0;n<a.length;n++){const l=a[n];if(sv(e.dom,t,l)&&cv(i,t,l,"attributes",r,o)&&cv(i,t,l,"styles",r,o)){const n=l.classes;if(n)for(let r=0;r<n.length;r++)if(!e.dom.hasClass(t,hf(n[r],o)))return;return l}}},dv=(e,t,n,o,r)=>{if(o)return lv(e,o,t,n,r);if(o=e.selection.getNode(),lv(e,o,t,n,r))return!0;const a=e.selection.getStart();return!(a===o||!lv(e,a,t,n,r))},pv=Nl,fv=e=>{if(e){const t=new Vr(e,e);for(let e=t.current();e;e=t.next())if(ta(e))return e}return null},mv=e=>{const t=dn("span");return ho(t,{id:Bp,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&uo(t,pn(pv)),t}
vendor: 19,613 bytes, line 2
2,gv=(e,t,n)=>{const o=e.dom,r=e.selection;if(Sf(t))Uh(e,!1,fn(t),n,!0);else{const e=r.getRng(),n=o.getParent(t,o.isBlock),a=e.startContainer,i=e.startOffset,l=e.endContainer,s=e.endOffset,c=(e=>{const t=fv(e);return t&&t.data.charAt(0)===pv&&t.deleteData(0,1),t})(t);o.remove(t,!0),a===c&&i>0&&e.setStart(c,i-1),l===c&&s>0&&e.setEnd(c,s-1),n&&o.isEmpty(n)&&Ml(fn(n)),r.setRng(e)}},hv=(e,t,n)=>{const o=e.dom,r=e.selection;if(t)gv(e,t,n);else if(!(t=Lp(e.getBody(),r.getStart())))for(;t=o.get(Bp);)gv(e,t,n)},bv=(e,t)=>(e.appendChild(t),t),vv=(e,t)=>{var n;const o=Y(e,(e,t)=>bv(e,t.cloneNode(!1)),t),r=null!==(n=o.ownerDocument)&&void 0!==n?n:document;return bv(o,r.createTextNode(pv))},yv=e=>Xo(e,Jo(e).replace(new RegExp(`${st}$`)," ")),_v=(e,t)=>{const n=()=>{null===t||e.dom.isEmpty(t)||Vn(fn(t)).each(e=>{In(e)?yv(e):or(e,e=>In(e)).each(e=>{In(e)&&yv(e)})})};e.once("input",t=>{t.data&&!Zp(t.data)&&(t.isComposing?e.once("compositionend",()=>{n()}):n())})},Av=(e,t,n,o)=>{const r=e.dom,l=e.selection;let s=!1;const c=e.formatter.get(t);if(!c)return;const u=l.getRng(),d=u.startContainer,p=u.startOffset;let f=d;ta(d)&&(p!==d.data.length&&(s=!0),f=f.parentNode);const m=[];let g;for(;f;){if(uv(e,f,t,n,o)){g=f;break}f.nextSibling&&(s=!0),m.push(f),f=f.parentNode}if(g)if(s){const a=l.getBookmark();u.collapse(!0);let i=qf(r,u,c,{includeTrailingSpace:!0});i=zm(i),e.formatter.remove(t,n,i,o),l.moveToBookmark(a)}else{const s=Lp(e.getBody(),g),c=A(s)?r.getParents(g.parentNode,R,s):[],u=mv(!1).dom;((e,t,n)=>{var o,r;const a=e.dom,i=a.getParent(n,O(pf,e.schema));i&&a.isEmpty(i)?null===(o=n.parentNode)||void 0===o||o.replaceChild(t,n):((e=>{const t=yr(e,"br"),n=$((e=>{const t=[];let n=e.dom;for(;n;)t.push(fn(n)),n=n.lastChild;return t})(e).slice(-1),El);t.length===n.length&&K(n,xo)})(fn(n)),a.isEmpty(n)?null===(r=n.parentNode)||void 0===r||r.replaceChild(t,n):a.insertAfter(t,n))})(e,u,null!=s?s:g);const d=((e,t,n,o,r,l)=>{const s=e.formatter,c=e.dom,u=$(me(s.get()),e=>e!==o&&!We(e,"removeformat")),d=((e,t,n)=>J(n,(n,o)=>{const r=((e,t)=>kf(e,t,e=>{const t=e=>k(e)||e.length>1&&"%"===e.charAt(0);return q(["styles","attributes"],n=>we(e,n).exists(e=>{const n=h(e)?e:xe(e);return q(n,t)}))}))(e,o);return e.formatter.matchNode(t,o,{},r)?n.concat([o]):n},[]))(e,n,u);if($(d,t=>!((e,t,n)=>{const o=["inline","block","selector","attributes","styles","classes"],r=e=>Ae(e,(e,t)=>q(o,e=>e===t));return kf(e,t,t=>{const o=r(t);return kf(e,n,e=>{const t=r(e);return((e,t,n=i)=>a(n).eq(e,t))(o,t)})})})(e,t,o)).length>0){const e=n.cloneNode(!1);return c.add(t,e),s.remove(o,r,e,l),c.remove(e),F.some(e)}return F.none()})(e,u,g,t,n,o),p=vv([...m,...d.toArray(),...c],u);s&&gv(e,s,A(s)),l.setCursorLocation(p,1),_v(e,u),r.isEmpty(g)&&r.remove(g)}},kv=e=>{const t=mv(!1),n=vv(e,t.dom);return{caretContainer:t,caretPosition:Ns(n,0)}},xv=(e,t)=>{const{caretContainer:n,caretPosition:o}=kv(t);return lo(fn(e),n),xo(fn(e)),o},wv=(e,t)=>{if(Op(t.dom))return!1;const n=e.schema.getTextInlineElements();return Ce(n,wn(t))&&!Op(t.dom)&&!Jr(t.dom)},Cv={},Ev=$r(["pre"]);(e=>{Cv[e]||(Cv[e]=[]),Cv[e].push(e=>{if(!e.selection.getRng().collapsed){const t=e.selection.getSelectedBlocks(),n=$($(t,Ev),(e=>t=>{const n=t.previousSibling;return Ev(n)&&H(e,n)})(t));K(n,e=>{((e,t)=>{const n=fn(t),o=Mn(n).dom;xo(n),fo(fn(e),[dn("br",o),dn("br",o),...Hn(n)])})(e.previousSibling,e)})}})})("pre");const Sv=["fontWeight","fontStyle","color","fontSize","fontFamily"],Tv=(e,t)=>{const n=e.get(t);return h(n)?Q(n,e=>Cf(e)&&"span"===e.inline&&(e=>m(e.styles)&&q(me(e.styles),e=>H(Sv,e)))(e)):F.none()},Iv=(e,t)=>Sp(t,Ns.fromRangeStart(e)).isNone(),Bv=(e,t)=>!1===Ep(t,Ns.fromRangeEnd(e)).exists(e=>!la(e.getNode())||Ep(t,e).isSome()),Ov=e=>t=>ha(t)&&e.isEditable(t),Lv=e=>$(e.getSelectedBlocks(),Ov(e.dom)),Dv=sn.each,Mv=e=>Kr(e)&&!qp(e)&&!Op(e)&&!Jr(e),Nv=(e,t)=>{for(let n=e;n;n=n[t]){if(ta(n)&&tt(n.data))return e;if(Kr(n)&&!qp(n))return n}return e},Pv=(e,t,n)=>{const o=Db(e),r=Zr(t)&&e.dom.isEditable(t),a=Zr(n)&&e.dom.isEditable(n);if(r&&a){const r=Nv(t,"previousSibling"),a=Nv(n,"nextSibling");if(o.compare(r,a)){for(let e=r.nextSibling;e&&e!==a;){const t=e;e=e.nextSibling,r.appendChild(t)}return e.dom.remove(a),sn.each(sn.grep(a.childNodes),e=>{r.appendChild(e)}),r}}return n},Rv=(e,t,n,o)=>{var r;if(o&&!1!==t.merge_siblings){const t=null!==(r=Pv(e,df(o),o))&&void 0!==r?r:o;Pv(e,t,df(t,!0))}},Fv=(e,t,n)=>{Dv(e.childNodes,e=>{Mv(e)&&(t(e)&&n(e),e.hasChildNodes()&&Fv(e,t,n))})},Vv=(e,t)=>n=>!(!n||!yf(e,n,t)),zv=(e,t,n)=>o=>{e.setStyle(o,t,n),""===o.getAttribute("style")&&o.removeAttribute("style"),((e,t)=>{"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)})(e,o)},Uv=Se([{keep:[]},{rename:["name"]},{removed:[]}]),jv=/^(src|href|style)$/,Hv=sn.each,qv=bf,Gv=(e,t,n)=>e.isChildOf(t,n)&&t!==n&&!e.isBlock(n),Kv=(e,t,n)=>{let o=t[n?"startContainer":"endContainer"],r=t[n?"startOffset":"endOffset"];if(Kr(o)){const e=o.childNodes.length-1;!n&&r&&r--,o=o.childNodes[r>e?e:r]}return ta(o)&&n&&r>=o.data.length&&(o=new Vr(o,e.getBody()).next()||o),ta(o)&&!n&&0===r&&(o=new Vr(o,e.getBody()).prev()||o),o},Zv=(e,t)=>{const n=t?"firstChild":"lastChild",o=e[n];return(e=>/^(TR|TH|TD)$/.test(e.nodeName))(e)&&o?"TR"===e.nodeName&&o[n]||o:e},Wv=(e,t,n,o)=>{var r;const a=e.create(n,o);return null===(r=t.parentNode)||void 0===r||r.insertBefore(a,t),a.appendChild(t),a},$v=(e,t,n,o,r)=>{const a=fn(t),i=fn(e.create(o,r)),l=n?jn(a):Un(a);return fo(i,l),n?(lo(a,i),co(i,a)):(so(a,i),uo(i,a)),i.dom},Yv=(e,t,n)=>{const o=t.parentNode;let r;const a=e.dom,i=Oc(e);xf(n)&&o===a.getRoot()&&(n.list_block&&qv(t,n.list_block)||K(de(t.childNodes),t=>{ff(e,i,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=Wv(a,t,i),a.setAttribs(r,Lc(e))):r=null})),(e=>wf(e)&&Cf(e)&&Ve(we(e,"mixed"),!0))(n)&&!qv(n.inline,t)||a.remove(t,!0)},Jv=(e,t,n)=>x(e)?{name:t,value:null}:{name:e,value:hf(t,n)},Xv=(e,t)=>{""===e.getAttrib(t,"style")&&(t.removeAttribute("style"),t.removeAttribute("data-mce-style"))},Qv=(e,t,n,o,r)=>{let a=!1;Hv(n.styles,(i,l)=>{const{name:s,value:c}=Jv(l,i,o),u=vf(c,s);(n.remove_similar||b(c)||!Kr(r)||qv(yf(e,r,s),u))&&e.setStyle(t,s,""),a=!0}),a&&Xv(e,t)},ey=(e,t,n,o,r)=>{const a=e.dom,i=Db(e),l=e.schema;if(Cf(t)&&za(l,t.inline)&&ja(l,o)&&o.parentElement===e.getBody())return Yv(e,o,t),Uv.removed();if(!t.ceFalseOverride&&o&&"false"===a.getContentEditableParent(o))return Uv.keep();if(o&&!sv(a,o,t)&&!((e,t)=>t.links&&"A"===e.nodeName)(o,t))return Uv.keep();const s=o,c=t.preserve_attributes;if(Cf(t)&&"all"===t.remove&&h(c)){const e=$(a.getAttribs(s),e=>H(c,e.name.toLowerCase()));if(a.removeAllAttribs(s),K(e,e=>a.setAttrib(s,e.name,e.value)),e.length>0)return Uv.rename("span")}if("all"!==t.remove){Qv(a,s,t,n,r),Hv(t.attributes,(e,o)=>{const{name:i,value:l}=Jv(o,e,n);if(t.remove_similar||b(l)||!Kr(r)||qv(a.getAttrib(r,i),l)){if("class"===i){const e=a.getAttrib(s,i);if(e){let t="";if(K(e.split(/\s+/),e=>{/mce\-\w+/.test(e)&&(t+=(t?" ":"")+e)}),t)return void a.setAttrib(s,i,t)}}if(jv.test(i)&&s.removeAttribute("data-mce-"+i),"style"===i&&$r(["li"])(s)&&"none"===a.getStyle(s,"list-style-type"))return s.removeAttribute(i),void a.setStyle(s,"list-style-type","none");"class"===i&&s.removeAttribute("className"),s.removeAttribute(i)}}),Hv(t.classes,e=>{e=hf(e,n),Kr(r)&&!a.hasClass(r,e)||a.removeClass(s,e)});const e=a.getAttribs(s);for(let t=0;t<e.length;t++){const n=e[t].nodeName;if(!i.isAttributeInternal(n))return Uv.keep()}}return"none"!==t.remove?(Yv(e,s,t),Uv.removed()):Uv.keep()},ty=(e,t,n,o)=>ey(e,t,n,o,o).fold(T(o),t=>(e.dom.createFragment().appendChild(o),e.dom.rename(o,t)),T(null)),ny=(e,t,n,o,r)=>{(o||e.selection.isEditable())&&((e,t,n,o,r)=>{const a=e.formatter.get(t),i=a[0],l=e.dom,s=e.selection,c=o=>{const l=((e,t,n,o,r)=>{let a;return t.parentNode&&K(Af(e.dom,t.parentNode).reverse(),t=>{if(!a&&Kr(t)&&"_start"!==t.id&&"_end"!==t.id){const i=uv(e,t,n,o,r);i&&!1!==i.split&&(a=t)}}),a})(e,o,t,n,r);return((e,t,n,o,r,a,i,l)=>{var s,c;let u,d;const p=e.dom;if(n){const a=n.parentNode;for(let n=o.parentNode;n&&n!==a;n=n.parentNode){let o=p.clone(n,!1);for(let n=0;n<t.length&&(o=ty(e,t[n],l,o),null!==o);n++);o&&(u&&o.appendChild(u),d||(d=o),u=o)}i.mixed&&p.isBlock(n)||(o=null!==(s=p.split(n,o))&&void 0!==s?s:o),u&&d&&(null===(c=r.parentNode)||void 0===c||c.insertBefore(u,r),d.appendChild(r),Cf(i)&&Rv(e,i,0,u))}return o})(e,a,l,o,o,0,i,n)},u=t=>q(a,o=>oy(e,o,n,t,t)),d=t=>{const n=de(t.childNodes),o=u(t)||q(a,e=>sv(l,t,e)),r=t.parentNode;if(!o&&A(r)&&Ef(i)&&u(r),i.deep&&n.length)for(let e=0;e<n.length;e++)d(n[e]);K(["underline","line-through","overline"],n=>{Kr(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&_f(l,t.parentNode)===n&&oy(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},void 0,t)})},p=e=>{const t=l.get(e?"_start":"_end");if(t){let n=t[e?"firstChild":"lastChild"];return(e=>qp(e)&&Kr(e)&&("_start"===e.id||"_end"===e.id))(n)&&(n=n[e?"firstChild":"lastChild"]),ta(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),l.remove(t,!0),n}return null},f=t=>{let n,o,r=qf(l,t,a,{includeTrailingSpace:t.collapsed});if(i.split){if(r=zm(r),n=Kv(e,r,!0),o=Kv(e,r),n!==o){if(n=Zv(n,!0),o=Zv(o,!1),Gv(l,n,o)){const e=F.from(n.firstChild).getOr(n);return c($v(l,e,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void p(!0)}if(Gv(l,o,n)){const e=F.from(o.lastChild).getOr(o);return c($v(l,e,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void p(!1)}n=Wv(l,n,"span",{id:"_start","data-mce-type":"bookmark"}),o=Wv(l,o,"span",{id:"_end","data-mce-type":"bookmark"});const e=l.createRng();e.setStartAfter(n),e.setEndBefore(o),Gf(l,e,e=>{K(e,e=>{qp(e)||qp(e.parentNode)||c(e)})}),c(n),c(o),n=p(!0),o=p()}else n=o=c(n);r.startContainer=n.parentNode?n.parentNode:n,r.startOffset=l.nodeIndex(n),r.endContainer=o.parentNode?o.parentNode:o,r.endOffset=l.nodeIndex(o)+1}Gf(l,r,e=>{K(e,d)})};if(o){if(lf(o)){const e=l.createRng();e.setStartBefore(o),e.setEndAfter(o),f(e)}else f(o);pc(e,t,o,n)}else s.isCollapsed()&&Cf(i)&&!Jp(e).length?Av(e,t,n,r):(cf(e,()=>rf(e,f),o=>Cf(i)&&dv(e,t,n,o)),e.nodeChanged()),((e,t,n)=>{"removeformat"===t?K(Lv(e.selection),t=>{K(Sv,n=>e.dom.setStyle(t,n,"")),Xv(e.dom,t)}):Tv(e.formatter,t).each(t=>{K(Lv(e.selection),o=>Qv(e.dom,o,t,n,null))})})(e,t,n),pc(e,t,o,n)})(e,t,n,o,r)},oy=(e,t,n,o,r)=>ey(e,t,n,o,r).fold(P,t=>(e.dom.rename(o,t),!0),R),ry=sn.each,ay=sn.each,iy=(e,t,n,o)=>{if(ay(n.styles,(n,r)=>{e.setStyle(t,r,hf(n,o))}),n.styles){const n=e.getAttrib(t,"style");n&&e.setAttrib(t,"data-mce-style",n)}},ly=(e,t,n,o)=>{const r=e.formatter.get(t),a=r[0],i=!o&&e.selection.isCollapsed(),l=e.dom,s=e.selection,c=(e,t=a)=>{k(t.onformat)&&t.onformat(e,t,n,o),iy(l,e,t,n),ay(t.attributes,(t,o)=>{l.setAttrib(e,o,hf(t,n))}),ay(t.classes,t=>{const o=hf(t,n);l.hasClass(e,o)||l.addClass(e,o)})},u=(e,t)=>{let n=!1;return ay(e,e=>!(!wf(e)||("false"!==l.getContentEditable(t)||e.ceFalseOverride)&&(!A(e.collapsed)||e.collapsed===i)&&l.is(t,e.selector)&&!Op(t)&&(c(t,e),n=!0,1))),n},d=e=>{if(f(e)){const t=l.create(e);return c(t),t}return null},p=(o,i,l)=>{const s=[];let p=!0;const f=a.inline||a.block,m=d(f);Gf(o,i,i=>{let d;const g=i=>{let h=!1,b=p,v=!1;const y=i.parentNode,_=y.nodeName.toLowerCase(),k=o.getContentEditable(i);A(k)&&(b=p,p="true"===k,h=!0,v=gf(e,i));const x=p&&!h;if(la(i)&&!((e,t,n,o)=>{if(hu(e)&&Cf(t)&&n.parentNode){const t=Si(e.schema),r=Ar(fn(n),e=>Op(e.dom));return Ee(t,o)&&xa(e.schema,n.parentNode,{skipBogus:!1,includeZwsp:!0})&&!r}return!1})(e,a,i,_))return d=null,void(xf(a)&&o.remove(i));if((o=>(e=>xf(e)&&!0===e.wrapper)(a)&&uv(e,o,t,n))(i))d=null;else{if(((t,n,o)=>{const r=(e=>xf(e)&&!0!==e.wrapper)(a)&&pf(e.schema,t)&&ff(e,n,f);return o&&r})(i,_,x)){const e=o.rename(i,f);return c(e),s.push(e),void(d=null)}if(wf(a)){let e=u(r,i);if(!e&&A(y)&&Ef(a)&&(e=u(r,y)),!Cf(a)||e)return void(d=null)}A(m)&&((t,n,r,i)=>{const s=t.nodeName.toLowerCase(),c=ff(e,f,s)&&ff(e,n,f),u=!l&&ta(t)&&Pl(t.data),d=Op(t),p=!Cf(a)||!o.isBlock(t);return(r||i)&&c&&!u&&!d&&p})(i,_,x,v)?(d||(d=o.clone(m,!1),y.insertBefore(d,i),s.push(d)),v&&h&&(p=b),d.appendChild(i)):(d=null,K(de(i.childNodes),g),h&&(p=b),d=null)}};K(i,g)}),!0===a.links&&K(s,e=>{const t=e=>{"A"===e.nodeName&&c(e,a),K(de(e.childNodes),t)};t(e)}),K(s,i=>{const l=(e=>{let t=0;return K(e.childNodes,e=>{(e=>A(e)&&ta(e)&&0===e.length)(e)||qp(e)||t++}),t})(i);!(s.length>1)&&o.isBlock(i)||0!==l?(Cf(a)||xf(a)&&a.wrapper)&&(a.exact||1!==l||(i=(e=>{const t=Q(e.childNodes,sf).filter(e=>"false"!==o.getContentEditable(e)&&sv(o,e,a));return t.map(t=>{const n=o.clone(t,!1);return c(n),o.replace(n,e,!0),o.remove(t,!0),n}).getOr(e)})(i)),((e,t,n,o)=>{ry(t,t=>{Cf(t)&&ry(e.dom.select(t.inline,o),o=>{Mv(o)&&oy(e,t,n,o,t.exact?o:null)}),((e,t,n)=>{if(t.clear_child_styles){const o=t.links?"*:not(a)":"*";Dv(e.select(o,n),n=>{Mv(n)&&e.isEditable(n)&&Dv(t.styles,(t,o)=>{e.setStyle(n,o,"")})})}})(e.dom,t,o)})})(e,r,n,i),((e,t,n,o,r)=>{const a=r.parentNode;uv(e,a,n,o)&&oy(e,t,o,r)||t.merge_with_parents&&a&&e.dom.getParent(a,a=>!!uv(e,a,n,o)&&(oy(e,t,o,r),!0))})(e,a,t,n,i),((e,t,n,o)=>{if(t.styles&&t.styles.backgroundColor){const r=Vv(e,"fontSize");Fv(o,t=>r(t)&&e.isEditable(t),zv(e,"backgroundColor",hf(t.styles.backgroundColor,n)))}})(o,a,n,i),((e,t,n,o)=>{const r=t=>{if(Zr(t)&&Kr(t.parentNode)&&e.isEditable(t)){const n=_f(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(sn.walk(o,r,"childNodes"),r(o))})(o,a,0,i),((e,t,n,o)=>{if(Cf(t)&&("sub"===t.inline||"sup"===t.inline)){const n=Vv(e,"fontSize");Fv(o,t=>n(t)&&e.isEditable(t),zv(e,"fontSize",""));const r=$(e.select("sup"===t.inline?"sub":"sup",o),e.isEditable);e.remove(r,!0)}})(o,a,0,i),Rv(e,a,0,i)):o.remove(i,!0)})},m=lf(o)?o:s.getNode();if("false"===l.getContentEditable(m)&&!gf(e,m))return u(r,o=m),void dc(e,t,o,n);if(a){if(o)if(lf(o)){if(!u(r,o)){const e=l.createRng();e.setStartBefore(o),e.setEndAfter(o),p(l,qf(l,e,r),!0)}}else p(l,o,!0);else i&&Cf(a)&&!Jp(e).length?((e,t,n)=>{let o;const r=e.selection,a=e.formatter.get(t);if(!a)return;const i=r.getRng();let l=i.startOffset;const s=i.startContainer.nodeValue;o=Lp(e.getBody(),r.getStart());const c=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(s&&l>0&&l<s.length&&c.test(s.charAt(l))&&c.test(s.charAt(l-1))){const o=r.getBookmark();i.collapse(!0);let l=qf(e.dom,i,a);l=zm(l),e.formatter.apply(t,n,l),r.moveToBookmark(o)}else{let a=o?fv(o):null;o&&(null==a?void 0:a.data)===pv||(u=e.getDoc(),d=mv(!0).dom,o=u.importNode(d,!0),a=o.firstChild,i.insertNode(o),l=1,_v(e,o)),e.formatter.apply(t,n,o),r.setCursorLocation(a,l)}var u,d})(e,t,n):(s.setRng(Gb(s.getRng())),cf(e,()=>{rf(e,(e,t)=>{const n=t?e:qf(l,e,r);p(l,n,!1)})},R),e.nodeChanged()),Tv(e.formatter,t).each(t=>{K((e=>$((e=>{const t=e.getSelectedBlocks(),n=e.getRng();if(e.isCollapsed())return[];if(1===t.length)return Iv(n,t[0])&&Bv(n,t[0])?t:[];{const e=ce(t).filter(e=>Iv(n,e)).toArray(),o=ue(t).filter(e=>Bv(n,e)).toArray(),r=t.slice(1,-1);return e.concat(r).concat(o)}})(e),Ov(e.dom)))(e.selection),e=>iy(l,e,t,n))});((e,t)=>{Ce(Cv,e)&&K(Cv[e],e=>{e(t)})})(t,e)}dc(e,t,o,n)},sy=(e,t,n,o)=>{(o||e.selection.isEditable())&&ly(e,t,n,o)},cy=e=>Ce(e,"vars"),uy=e=>e.selection.getStart(),dy=(e,t,n,o,r)=>X(t,t=>{const a=e.formatter.matchNode(t,n,null!=r?r:{},o);return!y(a)},t=>!!iv(e,t,n)||!o&&A(e.formatter.matchNode(t,n,r,!0))),py=(e,t)=>{const n=null!=t?t:uy(e);return $(Af(e.dom,n),e=>Kr(e)&&!Jr(e))},fy=(e,t,n)=>{const o=py(e,t);he(n,(n,r)=>{const a=n=>{const a=dy(e,o,r,n.similar,cy(n)?n.vars:void 0),i=a.isSome();if(n.state.get()!==i){n.state.set(i);const e=a.getOr(t);cy(n)?n.callback(i,{node:e,format:r,parents:o}):K(n.callbacks,t=>t(i,{node:e,format:r,parents:o}))}};K([n.withSimilar,n.withoutSimilar],a),K(n.withVars,a)})},my=sn.explode,gy=()=>{const e={};return{addFilter:(t,n)=>{K(my(t),t=>{Ce(e,t)||(e[t]={name:t,callbacks:[]}),e[t].callbacks.push(n)})},getFilters:()=>xe(e),removeFilter:(t,n)=>{K(my(t),t=>{if(Ce(e,t))if(A(n)){const o=e[t],r=$(o.callbacks,e=>e!==n);r.length>0?o.callbacks=r:delete e[t]}else delete e[t]})}}},hy=(e,t,n)=>{var o;const r=Vi();t.convert_fonts_to_spans&&((e,t,n)=>{e.addNodeFilter("font",e=>{K(e,e=>{const o=t.parse(e.attr("style")),r=e.attr("color"),a=e.attr("face"),i=e.attr("size");r&&(o.color=r),a&&(o["font-family"]=a),i&&ot(i).each(e=>{o["font-size"]=n[e-1]}),e.name="span",e.attr("style",t.serialize(o)),(e=>{K(["color","face","size"],t=>{e.attr(t,null)})})(e)})})})(e,r,sn.explode(null!==(o=t.font_size_legacy_values)&&void 0!==o?o:"")),((e,t,n)=>{e.addNodeFilter("strike",e=>{const o="html4"!==t.type;K(e,e=>{if(o)e.name="s";else{const t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))}})})})(e,n,r)},by=e=>{const[t,...n]=e.split(","),o=n.join(","),r=/data:([^/]+\/[^;]+)(;.+)?/.exec(t);if(r){const e=";base64"===r[2],t=(e=>{try{return decodeURIComponent(e)}catch(t){return e}})(o),n=e?(e=>{const t=/([a-z0-9+\/=\s]+)/i.exec(e);return t?t[1]:""})(t):t;return F.some({type:r[1],data:n,base64Encoded:e})}return F.none()},vy=(e,t,n=!0)=>{let o=t;if(n)try{o=atob(t)}catch(e){return F.none()}const r=new Uint8Array(o.length);for(let e=0;e<r.length;e++)r[e]=o.charCodeAt(e);return F.some(new Blob([r],{type:e}))},yy=e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{t(o.result)},o.onerror=()=>{var e;n(null===(e=o.error)||void 0===e?void 0:e.message)},o.readAsDataURL(e)});let _y=0;const Ay=(e,t,n)=>by(e).bind(({data:e,type:o,base64Encoded:r})=>{if(t&&!r)return F.none();{const t=r?e:btoa(e);return n(t,o)}}),ky=(e,t,n)=>{const o=e.create("blobid"+_y++,t,n);return e.add(o),o},xy=(e,t,n=!1)=>Ay(t,n,(t,n)=>F.from(e.getByData(t,n)).orThunk(()=>vy(n,t).map(n=>ky(e,n,t)))),wy=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,Cy=e=>F.from(e.match(wy)).bind(e=>se(e,1)).map(e=>$e(e,"www.")?e.substring(4):e),Ey=(e,t)=>{F.from(e.attr("src")).bind(Cy).forall(e=>!H(t,e))&&e.attr("sandbox","")},Sy=(e,t)=>$e(e,`${t}/`),{entries:Ty,setPrototypeOf:Iy,isFrozen:By,getPrototypeOf:Oy,getOwnPropertyDescriptor:Ly}=Object;let{freeze:Dy,seal:My,create:Ny}=Object,{apply:Py,construct:Ry}="undefined"!=typeof Reflect&&Reflect;Dy||(Dy=function(e){return e}),My||(My=function(e){return e}),Py||(Py=function(e,t,n){return e.apply(t,n)}),Ry||(Ry=function(e,t){return new e(...t)});const Fy=Qy(Array.prototype.forEach),Vy=Qy(Array.prototype.lastIndexOf),zy=Qy(Array.prototype.pop),Uy=Qy(Array.prototype.push),jy=Qy(Array.prototype.splice),Hy=Qy(String.prototype.toLowerCase),qy=Qy(String.prototype.toString),Gy=Qy(String.prototype.match),Ky=Qy(String.prototype.replace),Zy=Qy(String.prototype.indexOf),Wy=Qy(String.prototype.trim),$y=Qy(Object.prototype.hasOwnProperty),Yy=Qy(RegExp.prototype.test),Jy=(Xy=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ry(Xy,t)});var Xy;function Qy(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Py(e,t,o)}}function e_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hy;Iy&&Iy(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(By(t)||(t[o]=e),r=e)}e[r]=!0}return e}function t_(e){for(let t=0;t<e.length;t++)$y(e,t)||(e[t]=null);return e}function n_(e){const t=Ny(null);
vendor: 6,563 bytes, line 2
2for(const[n,o]of Ty(e))$y(e,n)&&(Array.isArray(o)?t[n]=t_(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=n_(o):t[n]=o);return t}function o_(e,t){for(;null!==e;){const n=Ly(e,t);if(n){if(n.get)return Qy(n.get);if("function"==typeof n.value)return Qy(n.value)}e=Oy(e)}return function(){return null}}const r_=Dy(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),a_=Dy(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),i_=Dy(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),l_=Dy(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),s_=Dy(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),c_=Dy(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),u_=Dy(["#text"]),d_=Dy(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),p_=Dy(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),f_=Dy(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
2subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),m_=Dy(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),g_=My(/\{\{[\w\W]*|[\w\W]*\}\}/gm),h_=My(/<%[\w\W]*|[\w\W]*%>/gm),b_=My(/\$\{[\w\W]*/gm),v_=My(/^data-[\-\w.\u00B7-\uFFFF]+$/),y_=My(/^aria-[\-\w]+$/),__=My(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),A_=My(/^(?:\w+script|data):/i),k_=My(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x_=My(/^html$/i),w_=My(/^[a-z][.\w]*(-[.\w]+)+$/i);var C_=Object.freeze({__proto__:null,ARIA_ATTR:y_,ATTR_WHITESPACE:k_,CUSTOM_ELEMENT:w_,DATA_ATTR:v_,DOCTYPE_NAME:x_,ERB_EXPR:h_,IS_ALLOWED_URI:__,IS_SCRIPT_OR_DATA:A_,MUSTACHE_EXPR:g_,TMPLIT_EXPR:b_});const E_=function(){return"undefined"==typeof window?null:window};var S_=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E_();const n=t=>e(t);if(n.version="3.2.4",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,g=c.prototype,h=o_(g,"cloneNode"),b=o_(g,"remove"),v=o_(g,"nextSibling"),y=o_(g,"childNodes"),_=o_(g,"parentNode");if("function"==typeof l){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let A,k="";const{implementation:x,createNodeIterator:w,createDocumentFragment:C,getElementsByTagName:E}=o,{importNode:S}=r;let T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Ty&&"function"==typeof _&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:I,ERB_EXPR:B,TMPLIT_EXPR:O,DATA_ATTR:L,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:P}=C_;let{IS_ALLOWED_URI:R}=C_,F=null;const V=e_({},[...r_,...a_,...i_,...s_,...u_]);let z=null;const U=e_({},[...d_,...p_,...f_,...m_]);let j=Object.seal(Ny(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,q=null,G=!0,K=!0,Z=!1,W=!0,$=!1,Y=!0,J=!1,X=!1,Q=!1,ee=!1,te=!1,ne=!1,oe=!0,re=!1,ae=!0,ie=!1,le={},se=null;const ce=e_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=e_({},["audio","video","img","source","image","track"]);let pe=null;const fe=e_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xhtml";let be=he,ve=!1,ye=null;const _e=e_({},[me,ge,he],qy);let Ae=e_({},["mi","mo","mn","ms","mtext"]),ke=e_({},["annotation-xml"]);const xe=e_({},["title","style","font","a","script"]);let we=null;const Ce=["application/xhtml+xml","text/html"];let Ee=null,Se=null;const Te=o.createElement("form"),Ie=function(e){return e instanceof RegExp||e instanceof Function},Be=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Se||Se!==e){if(e&&"object"==typeof e||(e={}),e=n_(e),we=-1===Ce.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===we?qy:Hy,F=$y(e,"ALLOWED_TAGS")?e_({},e.ALLOWED_TAGS,Ee):V,z=$y(e,"ALLOWED_ATTR")?e_({},e.ALLOWED_ATTR,Ee):U,ye=$y(e,"ALLOWED_NAMESPACES")?e_({},e.ALLOWED_NAMESPACES,qy):_e,pe=$y(e,"ADD_URI_SAFE_ATTR")?e_(n_(fe),e.ADD_URI_SAFE_ATTR,Ee):fe,ue=$y(e,"ADD_DATA_URI_TAGS")?e_(n_(de),e.ADD_DATA_URI_TAGS,Ee):de,se=$y(e,"FORBID_CONTENTS")?e_({},e.FORBID_CONTENTS,Ee):ce,H=$y(e,"FORBID_TAGS")?e_({},e.FORBID_TAGS,Ee):{},q=$y(e,"FORBID_ATTR")?e_({},e.FORBID_ATTR,Ee):{},le=!!$y(e,"USE_PROFILES")&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,Z=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,$=e.SAFE_FOR_TEMPLATES||!1,Y=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||__,be=e.NAMESPACE||he,Ae=e.MATHML_TEXT_INTEGRATION_POINTS||Ae,ke=e.HTML_INTEGRATION_POINTS||ke,j=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ie(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ie(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$&&(K=!1),te&&(ee=!0),le&&(F=e_({},u_),z=[],!0===le.html&&(e_(F,r_),e_(z,d_)),!0===le.svg&&(e_(F,a_),e_(z,p_),e_(z,m_)),!0===le.svgFilters&&
vendor: 3,092 bytes, line 2
2(e_(F,i_),e_(z,p_),e_(z,m_)),!0===le.mathMl&&(e_(F,s_),e_(z,f_),e_(z,m_))),e.ADD_TAGS&&(F===V&&(F=n_(F)),e_(F,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(z===U&&(z=n_(z)),e_(z,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&e_(pe,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(se===ce&&(se=n_(se)),e_(se,e.FORBID_CONTENTS,Ee)),ae&&(F["#text"]=!0),J&&e_(F,["html","head","body"]),F.table&&(e_(F,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Jy('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Jy('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=e.TRUSTED_TYPES_POLICY,k=A.createHTML("")}else void 0===A&&(A=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(m,a)),null!==A&&"string"==typeof k&&(k=A.createHTML(""));Dy&&Dy(e),Se=e}},Oe=e_({},[...a_,...i_,...l_]),Le=e_({},[...s_,...c_]),De=function(e){Uy(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){b(e)}},Me=function(e,t){try{Uy(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Uy(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{De(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Gy(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===we&&be===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=A?A.createHTML(e):e;if(be===he)try{t=(new f).parseFromString(r,we)}catch(e){}if(!t||!t.documentElement){t=x.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?k:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),be===he?E.call(t,J?"html":"body")[0]:J?t.documentElement:a},Pe=function(e){return w.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Fe=function(e){return"function"==typeof s&&e instanceof s};function Ve(e,t,o){Fy(e,e=>{e.call(n,t,o,Se)})}const ze=function(e){let t=null;if(Ve(T.beforeSanitizeElements,e,null),Re(e))return De(e),!0;const o=Ee(e.nodeName);if(Ve(T.uponSanitizeElement,e,{tagName:o,allowedTags:F}),e.hasChildNodes()&&!Fe(e.firstElementChild)&&Yy(/<[/\w]/g,e.innerHTML)&&Yy(/<[/\w]/g,e.textContent))return De(e),!0;if(7===e.nodeType)return De(e),!0;
vendor: 2,095 bytes, line 2
2if(Y&&8===e.nodeType&&Yy(/<[/\w]/g,e.data))return De(e),!0;if(!F[o]||H[o]){if(!H[o]&&je(o)){if(j.tagNameCheck instanceof RegExp&&Yy(j.tagNameCheck,o))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(o))return!1}if(ae&&!se[o]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=h(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,v(e))}}return De(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const n=Hy(e.tagName),o=Hy(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===he?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===o||Ae[o]):Boolean(Oe[n]):e.namespaceURI===me?t.namespaceURI===he?"math"===n:t.namespaceURI===ge?"math"===n&&ke[o]:Boolean(Le[n]):e.namespaceURI===he?!(t.namespaceURI===ge&&!ke[o])&&!(t.namespaceURI===me&&!Ae[o])&&!Le[n]&&(xe[n]||!Oe[n]):!("application/xhtml+xml"!==we||!ye[e.namespaceURI]))}(e)?(De(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!Yy(/<\/no(script|embed|frames)/i,e.innerHTML)?($&&3===e.nodeType&&(t=e.textContent,Fy([I,B,O],e=>{t=Ky(t,e," ")}),e.textContent!==t&&(Uy(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ve(T.afterSanitizeElements,e,null),!1):(De(e),!0)},Ue=function(e,t,n){if(oe&&("id"===t||"name"===t)&&(n in o||n in Te))return!1;if(K&&!q[t]&&Yy(L,t));else if(G&&Yy(D,t));else if(!z[t]||q[t]){if(!(je(e)&&(j.tagNameCheck instanceof RegExp&&Yy(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&Yy(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Yy(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(pe[t]);else if(Yy(R,Ky(n,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Zy(n,"data:")||!ue[e])if(Z&&!Yy(M,Ky(n,N,"")));else if(n)return!1;return!0},je=function(e){return"annotation-xml"!==e&&Gy(e,P)}
2,He=function(e){Ve(T.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let r=t.length;for(;r--;){const a=t[r],{name:i,namespaceURI:l,value:s}=a,c=Ee(i);let u="value"===i?s:Wy(s);const d=u;if(o.attrName=c,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,Ve(T.uponSanitizeAttribute,e,o),u=o.attrValue,!re||"id"!==c&&"name"!==c||(Me(i,e),u="user-content-"+u),Y&&Yy(/((--!?|])>)|<\/(style|title)/i,u)){Me(i,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){Me(i,e);continue}if(!W&&Yy(/\/>/i,u)){Me(i,e);continue}$&&Fy([I,B,O],e=>{u=Ky(u,e," ")});const p=Ee(e.nodeName);if(Ue(p,c,u)){if(A&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,c)){case"TrustedHTML":u=A.createHTML(u);break;case"TrustedScriptURL":u=A.createScriptURL(u)}if(u!==d)try{l?e.setAttributeNS(l,i,u):e.setAttribute(i,u),Re(e)?De(e):zy(n.removed)}catch(e){}}else Me(i,e)}Ve(T.afterSanitizeAttributes,e,null)},qe=function e(t){let n=null;const o=Pe(t);for(Ve(T.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Ve(T.uponSanitizeShadowNode,n,null),ze(n),He(n),n.content instanceof i&&e(n.content);Ve(T.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,l=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Fe(e)){if("function"!=typeof e.toString)throw Jy("toString is not a function");if("string"!=typeof(e=e.toString()))throw Jy("dirty is not a string, aborting")}if(!n.isSupported)return e;if(X||Be(t),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){const t=Ee(e.nodeName);if(!F[t]||H[t])throw Jy("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)o=Ne("\x3c!----\x3e"),a=o.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!ee&&!$&&!J&&-1===e.indexOf("<"))return A&&ne?A.createHTML(e):e;if(o=Ne(e),!o)return ee?null:ne?k:""}o&&Q&&De(o.firstChild);const u=Pe(ie?e:o);for(;l=u.nextNode();)ze(l),He(l),l.content instanceof i&&qe(l.content);if(ie)return e;if(ee){if(te)for(c=C.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(z.shadowroot||z.shadowrootmode)&&(c=S.call(r,c,!0)),c}let d=J?o.outerHTML:o.innerHTML;return J&&F["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Yy(x_,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),$&&Fy([I,B,O],e=>{d=Ky(d,e," ")}),A&&ne?A.createHTML(d):d},n.setConfig=function(){Be(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),X=!0},n.clearConfig=function(){Se=null,X=!1},n.isValidAttribute=function(e,t,n){Se||Be({});const o=Ee(e),r=Ee(t);return Ue(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&Uy(T[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Vy(T[e],t);return-1===n?void 0:jy(T[e],n,1)[0]}return zy(T[e])},n.removeHooks=function(e){T[e]=[]},n.removeAllHooks=function(){T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const T_=sn.each,I_=sn.trim,B_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],O_={ftp:21,http:80,https:443,mailto:25},L_=["img","video"],D_=(e,t,n)=>{const o=(e=>{try{return decodeURIComponent(e)}catch(t){return unescape(e)}})(t).replace(/\s/g,"");return!e.allow_script_urls&&(!!/((java|vb)script|mhtml):/i.test(o)||!e.allow_html_data_urls&&(/^data:image\//i.test(o)?((e,t)=>A(e)?!e:!A(t)||!H(L_,t))(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(o):/^data:/i.test(o)))};class M_{static parseDataUri(e){let t;const n=decodeURIComponent(e).split(","),o=/data:([^;]+)/.exec(n[0]);return o&&(t=o[1]),{type:t,data:n[1]}}static isDomSafe(e,t,n={}){if(n.allow_script_urls)return!0;{const o=pi.decode(e).replace(/[\s\u0000-\u001F]+/g,"");return!D_(n,o,t)}}static getDocumentBaseUrl(e){var t;let n;return n=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?null!==(t=e.href)&&void 0!==t?t:"":e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/")),n}constructor(e,t={}){this.path="",this.directory="",e=I_(e),this.settings=t;const n=t.base_uri,o=this;if(/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e))return void(o.source=e);const r=0===e.indexOf("//");if(0!==e.indexOf("/")||r||(e=(n&&n.protocol||"http")+"://mce_host"+e),!/^[\w\-]*:?\/\//.test(e)){const t=n?n.path:new M_(document.location.href).directory;if(""===(null==n?void 0:n.protocol))e="//mce_host"+o.toAbsPath(t,e);else{const r=/([^#?]*)([#?]?.*)/.exec(e);r&&(e=(n&&n.protocol||"http")+"://mce_host"+o.toAbsPath(t,r[1])+r[2])}}e=e.replace(/@@/g,"(mce_at)");const a=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e);a&&T_(B_,(e,t)=>{let n=a[t];
vendor: 4,330 bytes, line 2
2n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[e]=n}),n&&(o.protocol||(o.protocol=n.protocol),o.userInfo||(o.userInfo=n.userInfo),o.port||"mce_host"!==o.host||(o.port=n.port),o.host&&"mce_host"!==o.host||(o.host=n.host),o.source=""),r&&(o.protocol="")}setPath(e){const t=/^(.*?)\/?(\w+)?$/.exec(e);t&&(this.path=t[0],this.directory=t[1],this.file=t[2]),this.source="",this.getURI()}toRelative(e){if("./"===e)return e;const t=new M_(e,{base_uri:this});if("mce_host"!==t.host&&this.host!==t.host&&t.host||this.port!==t.port||this.protocol!==t.protocol&&""!==t.protocol)return t.getURI();const n=this.getURI(),o=t.getURI();if(n===o||"/"===n.charAt(n.length-1)&&n.substr(0,n.length-1)===o)return n;let r=this.toRelPath(this.path,t.path);return t.query&&(r+="?"+t.query),t.anchor&&(r+="#"+t.anchor),r}toAbsolute(e,t){const n=new M_(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))}isSameOrigin(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;const t=this.protocol?O_[this.protocol]:null;if(t&&(this.port||t)==(e.port||t))return!0}return!1}toRelPath(e,t){let n,o,r=0,a="";const i=e.substring(0,e.lastIndexOf("/")).split("/"),l=t.split("/");if(i.length>=l.length)for(n=0,o=i.length;n<o;n++)if(n>=l.length||i[n]!==l[n]){r=n+1;break}if(i.length<l.length)for(n=0,o=l.length;n<o;n++)if(n>=i.length||i[n]!==l[n]){r=n+1;break}if(1===r)return t;for(n=0,o=i.length-(r-1);n<o;n++)a+="../";for(n=r-1,o=l.length;n<o;n++)a+=n!==r-1?"/"+l[n]:l[n];return a}toAbsPath(e,t){let n=0;const o=/\/$/.test(t)?"/":"",r=e.split("/"),a=t.split("/"),i=[];T_(r,e=>{e&&i.push(e)});const l=[];for(let e=a.length-1;e>=0;e--)0!==a[e].length&&"."!==a[e]&&(".."!==a[e]?n>0?n--:l.push(a[e]):n++);const s=i.length-n;let c;return c=s<=0?re(l).join("/"):i.slice(0,s).join("/")+"/"+re(l).join("/"),0!==c.indexOf("/")&&(c="/"+c),o&&c.lastIndexOf("/")!==c.length-1&&(c+=o),c}getURI(e=!1){let t;return this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source}}const N_=sn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),P_="data-mce-type";let R_=0;const F_=(e,t,n,o,r)=>{var a,i,l,s;const c=t.validate,u=n.getSpecialElements();8===e.nodeType&&!t.allow_conditional_comments&&/^\[if/i.test(null!==(a=e.nodeValue)&&void 0!==a?a:"")&&(e.nodeValue=" "+e.nodeValue);const d=null!==(i=null==r?void 0:r.tagName)&&void 0!==i?i:e.nodeName.toLowerCase();if("html"!==o&&n.isValid(o))return void(A(r)&&(r.allowedTags[d]=!0));if(1!==e.nodeType||"body"===d)return;const p=fn(e),m=yo(p,P_),g=bo(p,"data-mce-bogus");if(!m&&f(g))return void("all"===g?xo(p):wo(p));const h=n.getElementRule(d);if(!c||h){if(A(r)&&(r.allowedTags[d]=!0),c&&h&&!m){if(K(null!==(l=h.attributesForced)&&void 0!==l?l:[],e=>{go(p,e.name,"{$uid}"===e.value?"mce_"+R_++:e.value)}),K(null!==(s=h.attributesDefault)&&void 0!==s?s:[],e=>{yo(p,e.name)||go(p,e.name,"{$uid}"===e.value?"mce_"+R_++:e.value)}),h.attributesRequired&&!q(h.attributesRequired,e=>yo(p,e)))return void wo(p);if(h.removeEmptyAttrs&&(e=>{const t=e.dom.attributes;return null==t||0===t.length})(p))return void wo(p);h.outputName&&h.outputName!==d&&((e,t)=>{const n=((e,t)=>{const n=dn(t),o=Ao(e);return ho(n,o),n})(e,t);so(e,n);const o=Hn(e);fo(n,o),xo(e)})(p,h.outputName)}}else Ce(u,d)?xo(p):wo(p)},V_=(e,t,n,o,r,a)=>"html"!==n&&!Sa(o)||!(r in N_&&D_(e,a,o))&&(!e.validate||t.isValid(o,r)||$e(r,"data-")||$e(r,"aria-")),z_=(e,t)=>e.hasAttribute(P_)&&("id"===t||"class"===t||"style"===t),U_=(e,t)=>e in t.getBoolAttrs(),j_=(e,t,n,o)=>{const{attributes:r}=e;for(let a=r.length-1;a>=0;a--){const i=r[a],l=i.name,s=i.value;V_(t,n,o,e.tagName.toLowerCase(),l,s)||z_(e,l)?U_(l,n)&&e.setAttribute(l,l):e.removeAttribute(l)}},H_=(e,t,n)=>{const o=S_();return o.addHook("uponSanitizeElement",(o,r)=>{F_(o,e,t,n.track(o),r)}),o.addHook("uponSanitizeAttribute",(o,r)=>{((e,t,n,o,r)=>{const a=e.tagName.toLowerCase(),{attrName:i,attrValue:l}=r;r.keepAttr=V_(t,n,o,a,i,l),r.keepAttr?(r.allowedAttributes[i]=!0,U_(i,n)&&(r.attrValue=i),t.allow_svg_data_urls&&$e(l,"data:image/svg+xml")&&(r.forceKeepAttr=!0)):z_(e,i)&&(r.forceKeepAttr=!0)})(o,e,t,n.current(),r)}),o},q_=(e,t)=>
2{const n=S_(),o=t.allow_mathml_annotation_encodings,r=h(o)&&o.length>0;n.addHook("uponSanitizeElement",(e,n)=>{var a;const i=null!==(a=n.tagName)&&void 0!==a?a:e.nodeName.toLowerCase();((e,n)=>r&&"semantics"===n?F.some(!0):"annotation"===n?F.some(Kr(e)&&(e=>{const t=e.getAttribute("encoding");return r&&f(t)&&H(o,t)})(e)):h(t.extended_mathml_elements)&&t.extended_mathml_elements.includes(n)?F.from(!0):F.none())(e,i).each(o=>{n.allowedTags[i]=o,!o&&t.sanitize&&Kr(e)&&e.remove()})}),n.addHook("uponSanitizeAttribute",(e,n)=>{h(t.extended_mathml_attributes)&&t.extended_mathml_attributes.includes(n.attrName)&&(n.forceKeepAttr=!0)}),n.sanitize(e,{IN_PLACE:!0,USE_PROFILES:{mathMl:!0}})},G_=e=>t=>{const n=Ia(t);if("svg"===n)(e=>{const t=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(e=>`xlink:${e}`),n={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:t};S_().sanitize(e,n)})(t);else{if("math"!==n)throw new Error("Not a namespace element");q_(t,e)}},K_=sn.makeMap,Z_=sn.extend,W_=(e,t,n,o)=>{const r=e.name,a=r in n&&"title"!==r&&"textarea"!==r&&"noscript"!==r,i=t.childNodes;for(let t=0,r=i.length;t<r;t++){const r=i[t],l=new mg(r.nodeName.toLowerCase(),r.nodeType);if(Kr(r)){const e=r.attributes;for(let t=0,n=e.length;t<n;t++){const n=e[t];l.attr(n.name,n.value)}Sa(l.name)&&(o(r),l.value=r.innerHTML)}else ta(r)?(l.value=r.data,a&&(l.raw=!0)):(ra(r)||na(r)||oa(r))&&(l.value=r.data);Sa(l.name)||W_(l,r,n,o),e.append(l)}},$_=(e={},t=Ii())=>{const n=gy(),o=gy(),r={validate:!0,root_name:"body",sanitize:!0,...e},a=new DOMParser,i=((e,t)=>{const n=(()=>{const e=Ge(),t=()=>e.get().map(Ia).getOr("html");return{track:n=>(Ta(n)?e.set(n):e.get().exists(e=>!e.contains(n))&&e.clear(),t()),current:t,reset:()=>{e.clear()}}})();if(e.sanitize){const o=H_(e,t,n),r=(t,r)=>{o.sanitize(t,((e,t)=>{const n={IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[],SAFE_FOR_XML:!1};return n.PARSER_MEDIA_TYPE=t,e.allow_script_urls?n.ALLOWED_URI_REGEXP=/.*/:e.allow_html_data_urls&&(n.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),n})(e,r)),o.removed=[],n.reset()};return{sanitizeHtmlElement:r,sanitizeNamespaceElement:G_(e)}}return{sanitizeHtmlElement:(o,r)=>{const a=document.createNodeIterator(o,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let i;for(;i=a.nextNode();){const o=n.track(i);F_(i,e,t,o),Kr(i)&&j_(i,e,t,o)}n.reset()},sanitizeNamespaceElement:C}})(r,t),l=n.addFilter,s=n.getFilters,c=n.removeFilter,u=o.addFilter,d=o.getFilters,p=o.removeFilter,m=(e,n)=>{const o=f(n.attr(P_)),r=1===n.type&&!Ce(e,n.name)&&!qa(t,n)&&!Sa(n.name);return 3===n.type||r&&!o},g={schema:t,addAttributeFilter:u,getAttributeFilters:d,removeAttributeFilter:p,addNodeFilter:l,getNodeFilters:s,removeNodeFilter:c,parse:(e,n={})=>{var o;const l=r.validate,c=null!==(o=n.context)&&void 0!==o?o:r.root_name,u=((e,n,o="html")=>{const r="xhtml"===o?"application/xhtml+xml":"text/html",l=Ce(t.getSpecialElements(),n.toLowerCase()),s=l?`<${n}>${e}</${n}>`:e,c=a.parseFromString("xhtml"===o?`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>${s}</body></html>`:/^[\s]*<head/i.test(e)||/^[\s]*<html/i.test(e)||/^[\s]*<!DOCTYPE/i.test(e)?`<html>${s}</html>`:`<body>${s}</body>`,r).body;return i.sanitizeHtmlElement(c,r),l?c.firstChild:c})(e,c,n.format);Ra(t,u);const p=new mg(c,11);W_(p,u,t.getSpecialElements(),i.sanitizeNamespaceElement),u.innerHTML="";const[f,g]=((e,t,n,o)=>{const r=n.validate,a=t.getNonEmptyElements(),i=t.getWhitespaceElements(),l=Z_(K_("script,style,head,html,body,title,meta,param"),t.getBlockElements()),s=Si(t),c=/[ \t\r\n]+/g,u=/^[ \t\r\n]+/,d=/[ \t\r\n]+$/,p=e=>{let t=e.parent;for(;A(t);){if(t.name in i)return!0;t=t.parent}return!1},f=n=>n.name in l||qa(t,n)||Sa(n.name)&&n.parent===e,m=(t,n)=>{const r=n?t.prev:t.next;return!A(r)&&!_(t.parent)&&f(t.parent)&&(t.parent!==e||!0===o.isRootContent)};return[e=>{var t;if(3===e.type&&!p(e)){let n=null!==(t=e.value)&&void 0!==t?t:"";n=n.replace(c," "),(((e,t)=>A(e)&&(t(e)||"br"===e.name))(e.prev,f)||m(e,!0))&&(n=n.replace(u,"")),0===n.length||" "===n&&e.prev&&8===e.prev.type&&e.next&&8===e.next.type?e.remove():e.value=n}},e=>{var l;if(1===e.type){const l=t.getElementRule(e.name);if(r&&l){const r=zb(t,a,i,e);l.paddInEmptyBlock&&r&&(e=>{let n=e;for(;A(n);){if(n.name in s)return zb(t,a,i,n);n=n.parent}return!1})(e)?Fb(n,o,f,e):l.removeEmpty&&r?f(e)?e.remove():e.unwrap():l.paddEmpty&&(r||(e=>{var t;return Vb(e,"#text")&&(null===(t=null==e?void 0:e.firstChild)||void 0===t?void 0:t.value)===st})(e))&&Fb(n,o,f,e)}
vendor: 21,468 bytes, line 2
2}else if(3===e.type&&!p(e)){let t=null!==(l=e.value)&&void 0!==l?l:"";(e.next&&f(e.next)||m(e,!1))&&(t=t.replace(d,"")),0===t.length?e.remove():e.value=t}}]})(p,t,r,n),h=[],b=l?e=>((e,n)=>{qb(t,e)&&n.push(e)})(e,h):C,v={nodes:{},attributes:{}},y=e=>Nb(s(),d(),e,v);if(((e,t,n)=>{const o=[];for(let n=e,r=n;n;r=n,n=n.walk()){const a=n;K(t,e=>e(a)),_(a.parent)&&a!==e?n=r:o.push(a)}for(let e=o.length-1;e>=0;e--){const t=o[e];K(n,e=>e(t))}})(p,[f,y],[g,b]),h.reverse(),l&&h.length>0)if(n.context){const{pass:e,fail:o}=W(h,e=>e.parent===p);Hb(o,t,p,y),n.invalid=e.length>0}else Hb(h,t,p,y);const k=((e,t)=>{var n;const o=null!==(n=t.forced_root_block)&&void 0!==n?n:e.forced_root_block;return!1===o?"":!0===o?"p":o})(r,n);return k&&("body"===p.name||n.isRootContent)&&((e,n)=>{const o=Z_(K_("script,style,head,html,body,title,meta,param"),t.getBlockElements()),a=/^[ \t\r\n]+/,i=/[ \t\r\n]+$/;let l=e.firstChild,s=null;const c=e=>{var t,n;e&&(l=e.firstChild,l&&3===l.type&&(l.value=null===(t=l.value)||void 0===t?void 0:t.replace(a,"")),l=e.lastChild,l&&3===l.type&&(l.value=null===(n=l.value)||void 0===n?void 0:n.replace(i,"")))};if(t.isValidChild(e.name,n.toLowerCase())){for(;l;){const t=l.next;m(o,l)?(s||(s=new mg(n,1),s.attr(r.forced_root_block_attrs),e.insert(s,l)),s.append(l)):(c(s),s=null),l=t}c(s)}})(p,k),n.invalid||Pb(v,n),p}};return((e,t)=>{var n,o;const r=e.schema;e.addAttributeFilter("href",e=>{let n=e.length;const o=e=>{const t=e?sn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:(e=>e.split(" ").filter(e=>e.length>0).concat(["noopener"]).sort().join(" "))(t)};if(!t.allow_unsafe_link_target)for(;n--;){const t=e[n];"a"===t.name&&"_blank"===t.attr("target")&&t.attr("rel",o(t.attr("rel")))}}),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",e=>{let t,n,o,r,a=e.length;for(;a--;)if(r=e[a],"a"===r.name&&r.firstChild&&!r.attr("href"))for(o=r.parent,t=r.lastChild;t&&o;)n=t.prev,o.insert(t,r),t=n}),t.fix_list_elements&&e.addNodeFilter("ul,ol",e=>{let t,n,o=e.length;for(;o--;)if(t=e[o],n=t.parent,n&&("ul"===n.name||"ol"===n.name))if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{const e=new mg("li",1);e.attr("style","list-style-type: none"),t.wrap(e)}});const a=r.getValidClasses();t.validate&&a&&e.addAttributeFilter("class",e=>{var t;let n=e.length;for(;n--;){const o=e[n],r=null!==(t=o.attr("class"))&&void 0!==t?t:"",i=sn.explode(r," ");let l="";for(let e=0;e<i.length;e++){const t=i[e];let n=!1,r=a["*"];r&&r[t]&&(n=!0),r=a[o.name],!n&&r&&r[t]&&(n=!0),n&&(l&&(l+=" "),l+=t)}l.length||(l=null),o.attr("class",l)}}),((e,t)=>{const{blob_cache:n}=t;if(n){const t=e=>{const t=e.attr("src");(e=>e.attr("src")===on.transparentSrc||A(e.attr("data-mce-placeholder")))(e)||(e=>A(e.attr("data-mce-bogus")))(e)||_(t)||xy(n,t,!0).each(t=>{e.attr("src",t.blobUri())})};e.addAttributeFilter("src",e=>K(e,t))}})(e,t);const i=null!==(n=t.sandbox_iframes)&&void 0!==n&&n,l=fe(null!==(o=t.sandbox_iframes_exclusions)&&void 0!==o?o:[]);t.convert_unsafe_embeds&&e.addNodeFilter("object,embed",e=>K(e,e=>{e.replace((({type:e,src:t,width:n,height:o}={},r,a)=>{const i=(e=>y(e)?"iframe":Sy(e,"image")?"img":Sy(e,"video")?"video":Sy(e,"audio")?"audio":"iframe")(e),l=new mg(i,1);return l.attr("audio"===i?{src:t}:{src:t,width:n,height:o}),"audio"!==i&&"video"!==i||l.attr("controls",""),"iframe"===i&&r&&Ey(l,a),l})({type:e.attr("type"),src:"object"===e.name?e.attr("data"):e.attr("src"),width:e.attr("width"),height:e.attr("height")},i,l))})),i&&e.addNodeFilter("iframe",e=>K(e,e=>Ey(e,l)))})(g,r),((e,t,n)=>{t.inline_styles&&hy(e,t,n)})(g,r,t),g},Y_=(e,t,n)=>{const o=(e=>ov(e)?Dg({validate:!1}).serialize(e):e)(e),r=t(o);if(r.isDefaultPrevented())return r;if(ov(e)){if(r.content!==o){const t=$_({validate:!1,forced_root_block:!1,...n}).parse(r.content,{context:e.name});return{...r,content:t}}return{...r,content:e}}return r},J_=e=>({sanitize:ld(e),sandbox_iframes:fd(e),sandbox_iframes_exclusions:md(e)}),X_=(e,t)=>{if(t.no_events)return Oe.value(t);{const n=((e,t)=>e.dispatch("BeforeGetContent",t))(e,t);return n.isDefaultPrevented()?Oe.error(mc(e,{content:"",...n}).content):Oe.value(n)}},Q_=(e,t,n)=>{if(n.no_events)return t;{const o=Y_(t,t=>mc(e,{...n,content:t}),J_(e));return o.content}},eA=(e,t)=>{if(t.no_events)return Oe.value(t);{const n=Y_(t.content,n=>((e,t)=>e.dispatch("BeforeSetContent",t))(e,{...t,content:n}),J_(e));return n.isDefaultPrevented()?(fc(e,n),Oe.error(void 0)):Oe.value(n)}},tA=(e,t,n)=>{n.no_events||fc(e,{...n,content:t})},nA=(e,t,n)=>({element:e,width:t,rows:n}),oA=(e,t)=>({element:e,cells:t}),rA=(e,t)=>({x:e,y:t}),aA=(e,t)=>vo(e,t).bind(ot).getOr(1),iA=(e,t,n)=>{const o=e.rows;return!!(o[n]?o[n].cells:[])[t]},lA=e=>J(e,(e,t)=>t.cells.length>e?t.cells.length:e,0),sA=(e,t)=>{const n=e.rows;for(let e=0;e<n.length;e++){const o=n[e].cells;for(let n=0;n<o.length;n++)if(An(o[n],t))return F.some(rA(n,e))}return F.none()},cA=(e,t,n,o,r)=>{const a=[],i=e.rows;for(let e=n;e<=r;e++){const n=i[e].cells,r=t<o?n.slice(t,o+1):n.slice(o,t+1);a.push(oA(i[e].element,r))}return a},uA=e=>((e,t)=>{const n=Eo(e.element),o=dn("tbody");return fo(o,t),uo(n,o),n})(e,(e=>G(e.rows,e=>{const t=G(e.cells,e=>{const t=So(e);return _o(t,"colspan"),_o(t,"rowspan"),t}),n=Eo(e.element);return fo(n,t),n}))(e)),dA=(e,t,n)=>{const o=fn(t.commonAncestorContainer),r=th(o,e),a=$(r,e=>n.isWrapper(wn(e))),i=((e,t)=>Q(e,e=>"li"===wn(e)&&tf(e,t)).fold(T([]),t=>(e=>Q(e,e=>"ul"===wn(e)||"ol"===wn(e)))(e).map(e=>{const t=dn(wn(e)),n=Ae(Vo(e),(e,t)=>$e(t,"list-style"));return No(t,n),[dn("li"),t]}).getOr([])))(r,t),l=a.concat(i.length?i:(e=>Il(e)?Pn(e).filter(Tl).fold(T([]),t=>[e,t]):Tl(e)?[e]:[])(o));return G(l,Eo)},pA=()=>$o([]),fA=(e,t)=>((e,t)=>rr(t,"table",O(An,e)))(e,t[0]).bind(e=>{const n=t[0],o=t[t.length-1],r=(e=>{const t=nA(Eo(e),0,[]);return K(yr(e,"tr"),(e,n)=>{K(yr(e,"td,th"),(o,r)=>{((e,t,n,o,r)=>{const a=aA(r,"rowspan"),i=aA(r,"colspan"),l=e.rows;for(let e=n;e<n+a;e++){l[e]||(l[e]=oA(So(o),[]));for(let o=t;o<t+i;o++)l[e].cells[o]=e===n&&o===t?r:Eo(r)}})(t,((e,t,n)=>{for(;iA(e,t,n);)t++;return t})(t,r,n),n,e,o)})}),nA(t.element,lA(t.rows),t.rows)})(e);return((e,t,n)=>sA(e,t).bind(t=>sA(e,n).map(n=>((e,t,n)=>{const o=t.x,r=t.y,a=n.x,i=n.y,l=r<i?cA(e,o,r,a,i):cA(e,o,i,a,r);return nA(e.element,lA(l),l)})(e,t,n))))(r,n,o).map(e=>$o([uA(e)]))}).getOrThunk(pA),mA=(e,t,n)=>{const o=Yp(t,e);return o.length>0?fA(e,o):((e,t,n)=>t.length>0&&t[0].collapsed?pA():((e,t,n)=>((e,t)=>{const n=J(t,(e,t)=>(uo(t,e),t),e);return t.length>0?$o([n]):n})(fn(t.cloneContents()),dA(e,t,n)))(e,t[0],n))(e,t,n)},gA=(e,t)=>t>=0&&t<e.length&&Zp(e.charAt(t)),hA=e=>Rl(e.innerText),bA=e=>Kr(e)?e.outerHTML:ta(e)?pi.encodeRaw(e.data,!1):ra(e)?"\x3c!--"+e.data+"--\x3e":"",vA=(e,t)=>(((e,t)=>{let n=0;K(e,e=>{0===e[0]?n++:1===e[0]?(((e,t,n)=>{const o=(e=>{let t;const n=document.createElement("div"),o=document.createDocumentFragment();for(e&&(n.innerHTML=e);t=n.firstChild;)o.appendChild(t);return o})(t);if(e.hasChildNodes()&&n<e.childNodes.length){const t=e.childNodes[n];e.insertBefore(o,t)}else e.appendChild(o)})(t,e[1],n),n++):2===e[0]&&((e,t)=>{if(e.hasChildNodes()&&t<e.childNodes.length){const n=e.childNodes[t];e.removeChild(n)}})(t,n)})})(((e,t)=>{const n=e.length+t.length+2,o=new Array(n),r=new Array(n),a=(n,o,r,i,s)=>{const c=l(n,o,r,i);if(null===c||c.start===o&&c.diag===o-i||c.end===n&&c.diag===n-r){let a=n,l=r;for(;a<o||l<i;)a<o&&l<i&&e[a]===t[l]?(s.push([0,e[a]]),++a,++l):o-n>i-r?(s.push([2,e[a]]),++a):(s.push([1,t[l]]),++l)}else{a(n,c.start,r,c.start-c.diag,s);for(let t=c.start;t<c.end;++t)s.push([0,e[t]]);a(c.end,o,c.end-c.diag,i,s)}},i=(n,o,r,a)=>{let i=n;for(;i-o<a&&i<r&&e[i]===t[i-o];)++i;return((e,t,n)=>({start:e,end:t,diag:n}))(n,i,o)},l=(n,a,l,s)=>{const c=a-n,u=s-l;if(0===c||0===u)return null;const d=c-u,p=u+c,f=(p%2==0?p:p+1)/2;let m,g,h,b,v;for(o[1+f]=n,r[1+f]=a+1,m=0;m<=f;++m){for(g=-m;g<=m;g+=2){for(h=g+f,g===-m||g!==m&&o[h-1]<o[h+1]?o[h]=o[h+1]:o[h]=o[h-1]+1,b=o[h],v=b-n+l-g;b<a&&v<s&&e[b]===t[v];)o[h]=++b,++v;if(d%2!=0&&d-m<=g&&g<=d+m&&r[h-d]<=o[h])return i(r[h-d],g+n-l,a,s)}for(g=d-m;g<=d+m;g+=2){for(h=g+f-d,g===d-m||g!==d+m&&r[h+1]<=r[h-1]?r[h]=r[h+1]-1:r[h]=r[h-1],b=r[h]-1,v=b-n+l-g;b>=n&&v>=l&&e[b]===t[v];)r[h]=b--,v--;if(d%2==0&&-m<=g&&g<=m&&r[h]<=o[h+d])return i(r[h],g+n-l,a,s)}}return null},s=[];return a(0,e.length,0,t.length,s),s})(G(de(t.childNodes),bA),e),t),t),yA=it(()=>document.implementation.createHTMLDocument("undo")),_A=e=>{const t=e.serializer.getTempAttrs(),n=Sg(e.getBody(),t);return(e=>null!==e.querySelector("iframe"))(n)?{type:"fragmented",fragments:$(G(de(n.childNodes),E(Rl,bA)),e=>e.length>0),content:"",bookmark:null,beforeBookmark:null}:{type:"complete",fragments:null,content:Rl(n.innerHTML),bookmark:null,beforeBookmark:null}},AA=(e,t,n)=>{const o=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?vA(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!A(o)||!Mp(o)||!o.isFakeCaret}),o&&(e.selection.moveToBookmark(o),e.selection.scrollIntoView())},kA=e=>"fragmented"===e.type?e.fragments.join(""):e.content,xA=e=>{const t=dn("body",yA());return Bo(t,kA(e)),K(yr(t,"*[data-mce-bogus]"),wo),Io(t)},wA=(e,t)=>!(!e||!t)&&(!!((e,t)=>kA(e)===kA(t))(e,t)||((e,t)=>xA(e)===xA(t))(e,t)),CA=e=>0===e.get(),EA=(e,t,n)=>{CA(n)&&(e.typing=t)},SA=(e,t)=>{e.typing&&(EA(e,!1,t),e.add())},TA=e=>({init:{bindEvents:C},undoManager:{beforeChange:(t,n)=>((e,t,n)=>{CA(t)&&n.set(nc(e.selection))})(e,t,n),add:(t,n,o,r,a,i)=>((e,t,n,o,r,a,i)=>{const l=_A(e),s=sn.extend(a||{},l);if(!CA(o)||e.removed)return null;const c=t.data[n.get()];if(e.dispatch("BeforeAddUndo",{level:s,lastLevel:c,originalEvent:i}).isDefaultPrevented())return null;if(c&&wA(c,s))return null;t.data[n.get()]&&r.get().each(e=>{t.data[n.get()].beforeBookmark=e});const u=wu(e);if(u&&t.data.length>u){for(let e=0;e<t.data.length-1;e++)t.data[e]=t.data[e+1];t.data.length--,n.set(t.data.length)}s.bookmark=nc(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(s),n.set(t.data.length-1);const d={level:s,lastLevel:c,originalEvent:i};return n.get()>0?(e.setDirty(!0),e.dispatch("AddUndo",d),e.dispatch("change",d)):e.dispatch("AddUndo",d),s})(e,t,n,o,r,a,i),undo:(t,n,o)=>((e,t,n,o)=>{let r;return t.typing&&(t.add(),t.typing=!1,EA(t,!1,n)),o.get()>0&&(o.set(o.get()-1),r=t.data[o.get()],AA(e,r,!0),e.setDirty(!0),e.dispatch("Undo",{level:r})),r})(e,t,n,o),redo:(t,n)=>((e,t,n)=>{let o;return t.get()<n.length-1&&(t.set(t.get()+1),o=n[t.get()],AA(e,o,!1),e.setDirty(!0),e.dispatch("Redo",{level:o})),o})(e,t,n),clear:(t,n)=>((e,t,n)=>{t.data=[],n.set(0),t.typing=!1,e.dispatch("ClearUndos")})(e,t,n),reset:e=>(e=>{e.clear(),e.add()})(e),hasUndo:(t,n)=>((e,t,n)=>n.get()>0||t.typing&&t.data[0]&&!wA(_A(e),t.data[0]))(e,t,n),hasRedo:(e,t)=>((e,t)=>t.get()<e.data.length-1&&!e.typing)(e,t),transact:(e,t,n)=>((e,t,n)=>(SA(e,t),e.beforeChange(),e.ignore(n),e.add()))(e,t,n),ignore:(e,t)=>((e,t)=>{try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}})(e,t),extra:(t,n,o,r)=>((e,t,n,o,r)=>{if(t.transact(o)){const o=t.data[n.get()].bookmark,a=t.data[n.get()-1];AA(e,a,!0),t.transact(r)&&(t.data[n.get()-1].beforeBookmark=o)}})(e,t,n,o,r)},formatter:{match:(t,n,o,r)=>dv(e,t,n,o,r),matchAll:(t,n)=>((e,t,n)=>{const o=[],r={},a=e.selection.getStart();return e.dom.getParent(a,a=>{for(let i=0;i<t.length;i++){const l=t[i];!r[l]&&uv(e,a,l,n)&&(r[l]=!0,o.push(l))}},e.dom.getRoot()),o})(e,t,n),matchNode:(t,n,o,r)=>uv(e,t,n,o,r),canApply:t=>((e,t)=>{const n=e.formatter.get(t),o=e.dom;if(n&&e.selection.isEditable()){const t=e.selection.getStart(),r=Af(o,t);for(let e=n.length-1;e>=0;e--){const t=n[e];if(!wf(t))return!0;for(let e=r.length-1;e>=0;e--)if(o.is(r[e],t.selector))return!0}}return!1})(e,t),closest:t=>((e,t)=>{const n=t=>An(t,fn(e.getBody()));return F.from(e.selection.getStart(!0)).bind(o=>wr(fn(o),n=>pe(t,t=>((t,n)=>uv(e,t.dom,n)?F.some(n):F.none())(n,t)),n)).getOrNull()})(e,t),apply:(t,n,o)=>sy(e,t,n,o),remove:(t,n,o,r)=>ny(e,t,n,o,r),toggle:(t,n,o)=>((e,t,n,o)=>{const r=e.formatter.get(t);r&&(!dv(e,t,n,o)||"toggle"in r[0]&&!r[0].toggle?sy(e,t,n,o):ny(e,t,n,o))})(e,t,n,o),formatChanged:(t,n,o,r,a)=>((e,t,n,o,r,a)=>(((e,t,n,o,r,a)=>{const i=t.get();K(n.split(","),t=>{const n=we(i,t).getOrThunk(()=>{const e={withSimilar:{state:Te(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Te(!1),similar:!1,callbacks:[]},withVars:[]};return i[t]=e,e}),l=()=>{const n=py(e);return dy(e,n,t,r,a).isSome()};if(y(a)){const e=r?n.withSimilar:n.withoutSimilar;e.callbacks.push(o),1===e.callbacks.length&&e.state.set(l())}else n.withVars.push({state:Te(l()),similar:r,vars:a,callback:o})}),t.set(i)})(e,t,n,o,r,a),{unbind:()=>((e,t,n)=>{const o=e.get();K(t.split(","),e=>we(o,e).each(t=>{o[e]={withSimilar:{...t.withSimilar,callbacks:$(t.withSimilar.callbacks,e=>e!==n)},withoutSimilar:{...t.withoutSimilar,callbacks:$(t.withoutSimilar.callbacks,e=>e!==n)},withVars:$(t.withVars,e=>e.callback!==n)}})),e.set(o)})(t,n,o)}))(e,t,n,o,r,a)},editor:{getContent:t=>((e,t)=>F.from(e.getBody()).fold(T("tree"===t.format?new mg("body",11):""),n=>Bg(e,t,n)))(e,t),setContent:(t,n)=>((e,t,n)=>F.from(e.getBody()).map(o=>ov(t)?((e,t,n,o)=>{Rb(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);const r=Dg({validate:!1},e.schema).serialize(n),a=Rl(Ll(fn(t))?r:sn.trim(r));return rv(e,a,o.no_selection),{content:n,html:a}})(e,o,t,n):((e,t,n,o)=>{if(0===(n=Rl(n)).length||/^\s+$/.test(n)){const r='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+r+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+r+"</li>");const a=Oc(e);return e.schema.isValidChild(t.nodeName.toLowerCase(),a.toLowerCase())?(n=r,n=e.dom.createHTML(a,Lc(e),n)):n||(n=r),rv(e,n,o.no_selection),{content:n,html:n}}{"raw"!==o.format&&(n=Dg({validate:!1},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0})));const r=Ll(fn(t))?n:sn.trim(n);return rv(e,r,o.no_selection),{content:r,html:r}}})(e,o,t,n)).getOr({content:t,html:ov(n.content)?"":n.content}))(e,t,n),insertContent:(t,n)=>nv(e,t,n),addVisual:t=>((e,t)=>{const n=e.dom,o=A(t)?t:e.getBody();K(n.select("table,a",o),t=>{switch(t.nodeName){case"TABLE":const o=Du(e),r=n.getAttrib(t,"border");r&&"0"!==r||!e.hasVisual?n.removeClass(t,o):n.addClass(t,o);break;case"A":if(!n.getAttrib(t,"href")){const o=n.getAttrib(t,"name")||t.id,r=Mu(e);o&&e.hasVisual?n.addClass(t,r):n.removeClass(t,r)}}}),e.dispatch("VisualAid",{element:t,hasVisual:e.hasVisual})})(e,t)},selection:{getContent:(t,n)=>((e,t,n={})=>{const o=((e,t)=>({...e,format:t,get:!0,selection:!0,getInner:!0}))(n,t);return X_(e,o).fold(I,t=>{const n=((e,t)=>{if("text"===t.format)return(e=>F.from(e.selection.getRng()).map(t=>{var n;const o=F.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),a=(e=>e.map(e=>e.nodeName).getOr("div").toLowerCase())(o),i=fn(t.cloneContents());Tg(i),Ig(i);const l=e.dom.add(r,a,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},i.dom),s=hA(l),c=Rl(null!==(n=l.textContent)&&void 0!==n?n:"");if(e.dom.remove(l),gA(c,0)||gA(c,c.length-1)){const e=o.getOr(r),t=hA(e),n=t.indexOf(s);return-1===n?s:(gA(t,n-1)?" ":"")+s+(gA(t,n+s.length)?" ":"")}return s}).getOr(""))(e);{const n=((e,t)=>{const n=e.selection.getRng(),o=e.dom.create("body"),r=e.selection.getSel(),a=cg(e,$p(r)),i=t.contextual?mA(fn(e.getBody()),a,e.schema).dom:n.cloneContents();return i&&o.appendChild(i),e.selection.serializer.serialize(o,t)})(e,t);return"tree"===t.format?n:e.selection.isCollapsed()?"":n}})(e,t);return Q_(e,n,t)})})(e,t,n)},autocompleter:{addDecoration:C,removeDecoration:C},raw:{getModel:()=>F.none()}}),IA=e=>Ce(e.plugins,"rtc"),BA=e=>e.rtcInstance?e.rtcInstance:TA(e),OA=e=>{const t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},LA=e=>OA(e).init.bindEvents(),DA=e=>0===e.dom.length?(xo(e),F.none()):F.some(e),MA=(e,t,n,o,r)=>{e.bind(e=>((o?Dh:Lh)(e.dom,o?e.dom.length:0,r),t.filter(In).map(t=>((e,t,n,o,r)=>{const a=e.dom,i=t.dom,l=o?a.length:i.length;o?(Mh(a,i,r,!1,!o),n.setStart(i,l)):(Mh(i,a,r,!1,!o),n.setEnd(i,l))})(e,t,n,o,r)))).orThunk(()=>{const e=((e,t)=>e.filter(e=>Jf.isBookmarkNode(e.dom)).bind(t?zn:Vn))(t,o).or(t).filter(In);return e.map(e=>((e,t,n)=>{Pn(e).each(o=>{const r=e.dom;t&&xh(o,Ns(r,0),n)?Lh(r,0,n):!t&&wh(o,Ns(r,r.length),n)&&Dh(r,r.length,n)})})(e,o,r))})},NA=(e,t,n)=>{if(Ce(e,t)){const o=$(e[t],e=>e!==n);0===o.length?delete e[t]:e[t]=o}};const PA=e=>!(!e||!e.ownerDocument)&&kn(fn(e.ownerDocument),fn(e)),RA=(e,t,n,o)=>{let r,a;const{selectorChangedWithUnbind:i}=((e,t)=>{let n,o;const r=(t,n)=>Q(n,n=>e.is(n,t)),a=t=>e.getParents(t,void 0,e.getRoot());return{selectorChangedWithUnbind:(e,i)=>(n||(n={},o={},t.on("NodeChange",e=>{const t=e.element,i=a(t),l={};he(n,(e,t)=>{r(t,i).each(n=>{o[t]||(K(e,e=>{e(!0,{node:n,selector:t,parents:i})}),o[t]=e),l[t]=e})}),he(o,(e,n)=>{l[n]||(delete o[n],K(e,e=>{e(!1,{node:t,selector:n,parents:i})}))})})),n[e]||(n[e]=[]),n[e].push(i),r(e,a(t.selection.getStart())).each(()=>{o[e]=n[e]}),{unbind:()=>{NA(n,e,i),NA(o,e,i)}})}})(e,o),l=(e,t)=>((e,t,n={})=>{const o=((e,t)=>({format:"html",...e,set:!0,selection:!0,content:t}))(n,t);eA(e,o).each(t=>{const n=((e,t)=>{if("raw"!==t.format){const n=e.selection.getRng(),o=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),r=o?{context:o.nodeName.toLowerCase()}:{},a=e.parser.parse(t.content,{forced_root_block:!1,...r,...t});return Dg({validate:!1},e.schema).serialize(a)}return t.content})(e,t),o=e.selection.getRng();((e,t,n)=>{const o=F.from(t.firstChild).map(fn),r=F.from(t.lastChild).map(fn);e.deleteContents(),e.insertNode(t);const a=o.bind(Vn).filter(In).bind(DA),i=r.bind(zn).filter(In).bind(DA);MA(a,o,e,!0,n),MA(i,r,e,!1,n),e.collapse(!1)})(o,o.createContextualFragment(n),e.schema),e.selection.setRng(o),og(e,o),tA(e,n,t)})})(o,e,t),s=e=>{const t=u();t.collapse(!!e),d(t)},c=()=>t.getSelection?t.getSelection():t.document.selection,u=()=>{let n;const i=(e,t,n)=>{try{return t.compareBoundaryPoints(e,n)}catch(e){return-1}},l=t.document;if(A(o.bookmark)&&!Am(o)){const e=im(o);if(e.isSome())return e.map(e=>cg(o,[e])[0]).getOr(l.createRange())}try{const e=c();e&&!Gr(e.anchorNode)&&(n=e.rangeCount>0?e.getRangeAt(0):l.createRange(),n=cg(o,[n])[0])}catch(e){}if(n||(n=l.createRange()),aa(n.startContainer)&&n.collapsed){const t=e.getRoot();n.setStart(t,0),n.setEnd(t,0)}return r&&a&&(0===i(n.START_TO_START,n,r)&&0===i(n.END_TO_END,n,r)?n=a:(r=null,a=null)),n},d=(e,t)=>{if(!(e=>!!e&&PA(e.startContainer)&&PA(e.endContainer))(e))return;const n=c();if(e=o.dispatch("SetSelectionRange",{range:e,forward:t}).range,n){a=e;try{n.removeAllRanges(),n.addRange(e)}catch(e){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),r=n.rangeCount>0?n.getRangeAt(0):null}if(!e.collapsed&&e.startContainer===e.endContainer&&(null==n?void 0:n.setBaseAndExtent)&&e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()){const t=e.startContainer.childNodes[e.startOffset];t&&"IMG"===t.nodeName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),n.anchorNode===e.startContainer&&n.focusNode===e.endContainer||n.setBaseAndExtent(t,0,t,1))}o.dispatch("AfterSetSelectionRange",{range:e,forward:t})},p=()=>{const t=c(),n=null==t?void 0:t.anchorNode,o=null==t?void 0:t.focusNode;if(!t||!n||!o||Gr(n)||Gr(o))return!0;const r=e.createRng(),a=e.createRng();try{r.setStart(n,t.anchorOffset),r.collapse(!0),a.setStart(o,t.focusOffset),a.collapse(!0)}catch(e){return!0}return r.compareBoundaryPoints(r.START_TO_START,a)<=0},f={dom:e,win:t,serializer:n,editor:o,expand:(t={type:"word"})=>d(Um(e).expand(u(),t)),collapse:s,setCursorLocation:(t,n)=>{const r=e.createRng();A(t)&&A(n)?(r.setStart(t,n),r.setEnd(t,n),d(r),s(!1)):(nf(e,r,o.getBody(),!0),d(r))},getContent:e=>((e,t={})=>((e,t,n)=>OA(e).selection.getContent(t,n))(e,t.format?t.format:"html",t))(o,e),setContent:l,getBookmark:(e,t)=>m.getBookmark(e,t),moveToBookmark:e=>m.moveToBookmark(e),select:(t,n)=>(((e,t,n)=>F.from(t).bind(t=>F.from(t.parentNode).map(o=>{const r=e.nodeIndex(t),a=e.createRng();return a.setStart(o,r),a.setEnd(o,r+1),n&&(nf(e,a,t,!0),nf(e,a,t,!1)),a})))(e,t,n).each(d),t),isCollapsed:()=>{const e=u(),t=c();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isEditable:()=>{if(o.mode.isReadOnly())return!1;const t=u(),n=o.getBody().querySelectorAll('[data-mce-selected="1"]');return n.length>0?oe(n,t=>e.isEditable(t.parentElement)):rg(e,t)},isForward:p,setNode:t=>(l(e.getOuterHTML(t)),t),getNode:()=>((e,t)=>{if(!t)return e;let n=t.startContainer,o=t.endContainer;const r=t.startOffset,a=t.endOffset;let i=t.commonAncestorContainer;t.collapsed||(n===o&&a-r<2&&n.hasChildNodes()&&(i=n.childNodes[r]),ta(n)&&ta(o)&&(n=n.length===r?sg(n.nextSibling,!0):n.parentNode,o=0===a?sg(o.previousSibling,!1):o.parentNode,n&&n===o&&(i=n)));const l=ta(i)?i.parentNode:i;return Zr(l)?l:e})(o.getBody(),u()),getSel:c,setRng:d,getRng:u,getStart:e=>ig(o.getBody(),u(),e),getEnd:e=>lg(o.getBody(),u(),e),getSelectedBlocks:(t,n)=>((e,t,n,o)=>{const r=[],a=e.getRoot(),i=e.getParent(n||ig(a,t,t.collapsed),e.isBlock),l=e.getParent(o||lg(a,t,t.collapsed),e.isBlock);if(i&&i!==a&&r.push(i),i&&l&&i!==l){let t;const n=new Vr(i,a);for(;(t=n.next())&&t!==l;)e.isBlock(t)&&r.push(t)}return l&&i!==l&&l!==a&&r.push(l),r})(e,u(),t,n),normalize:()=>{const t=u(),n=c();if(!($p(n).length>1)&&of(o)){const n=Fm(e,t);return n.each(e=>{d(e,p())}),n.getOr(t)}return t},selectorChanged:(e,t)=>
vendor: 4,397 bytes, line 2
2(i(e,t),f),selectorChangedWithUnbind:i,getScrollContainer:()=>{let t,n=e.getRoot();for(;n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:(e,t)=>{A(e)?((e,t,n)=>{(e.inline?eg:ng)(e,t,n)})(o,e,t):og(o,u(),t)},placeCaretAt:(e,t)=>d(Bm(e,t,o.getDoc())),getBoundingClientRect:()=>{const e=u();return e.collapsed?Ns.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:()=>{t=r=a=null,g.destroy()}},m=Jf(f),g=Im(f,o);return f.bookmarkManager=m,f.controlSelection=g,f},FA=(e,t,n)=>{-1===sn.inArray(t,n)&&(e.addAttributeFilter(n,(e,t)=>{let n=e.length;for(;n--;)e[n].attr(t,null)}),t.push(n))},VA=(e,t)=>{const n=["data-mce-selected"],o={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...e},r=t&&t.dom?t.dom:rl.DOM,a=t&&t.schema?t.schema:Ii(o),i=$_(o,a);return((e,t,n)=>{e.addAttributeFilter("data-mce-tabindex",(e,t)=>{let n=e.length;for(;n--;){const o=e[n];o.attr("tabindex",o.attr("data-mce-tabindex")),o.attr(t,null)}}),e.addAttributeFilter("src,href,style",(e,o)=>{const r="data-mce-"+o,a=t.url_converter,i=t.url_converter_scope;let l=e.length;for(;l--;){const t=e[l];let s=t.attr(r);void 0!==s?(t.attr(o,s.length>0?s:null),t.attr(r,null)):(s=t.attr(o),"style"===o?s=n.serializeStyle(n.parseStyle(s),t.name):a&&(s=a.call(i,s,o,t.name)),t.attr(o,s.length>0?s:null))}}),e.addAttributeFilter("class",e=>{let t=e.length;for(;t--;){const n=e[t];let o=n.attr("class");o&&(o=o.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",o.length>0?o:null))}}),e.addAttributeFilter("data-mce-type",(e,t,n)=>{let o=e.length;for(;o--;){const t=e[o];if("bookmark"===t.attr("data-mce-type")&&!n.cleanup){const e=F.from(t.firstChild).exists(e=>{var t;return!Pl(null!==(t=e.value)&&void 0!==t?t:"")});e?t.unwrap():t.remove()}}}),e.addNodeFilter("script,style",(e,n)=>{var o;const r=e=>e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let a=e.length;for(;a--;){const i=e[a],l=i.firstChild,s=null!==(o=null==l?void 0:l.value)&&void 0!==o?o:"";if("script"===n){const e=i.attr("type");e&&i.attr("type","mce-no/type"===e?null:e.replace(/^mce\-/,"")),"xhtml"===t.element_format&&l&&s.length>0&&(l.value="// <![CDATA[\n"+r(s)+"\n// ]]>")}else"xhtml"===t.element_format&&l&&s.length>0&&(l.value="\x3c!--\n"+r(s)+"\n--\x3e")}}),e.addNodeFilter("#comment",e=>{let o=e.length;for(;o--;){const r=e[o],a=r.value;t.preserve_cdata&&0===(null==a?void 0:a.indexOf("[CDATA["))?(r.name="#cdata",r.type=4,r.value=n.decode(a.replace(/^\[CDATA\[|\]\]$/g,""))):0===(null==a?void 0:a.indexOf("mce:protected "))&&(r.name="#text",r.type=3,r.raw=!0,r.value=unescape(a).substr(14))}}),e.addNodeFilter("xml:namespace,input",(e,t)=>{let n=e.length;for(;n--;){const o=e[n];7===o.type?o.remove():1===o.type&&("input"!==t||o.attr("type")||o.attr("type","text"))}}),e.addAttributeFilter("data-mce-type",t=>{K(t,t=>{"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())})}),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(e,t)=>{let n=e.length;for(;n--;)e[n].attr(t,null)}),t.remove_trailing_brs&&((e,t,n)=>{t.addNodeFilter("br",(t,o,r)=>{const a=sn.extend({},n.getBlockElements()),i=n.getNonEmptyElements(),l=n.getWhitespaceElements();a.body=1;const s=e=>e.name in a||qa(n,e);for(let o=0,c=t.length;o<c;o++){let c=t[o],u=c.parent;if(u&&s(u)&&c===u.lastChild){let t=c.prev;for(;t;){const e=t.name;if("span"!==e||"bookmark"!==t.attr("data-mce-type")){"br"===e&&(c=null);break}t=t.prev}if(c&&(c.remove(),zb(n,i,l,u))){const t=n.getElementRule(u.name);t&&(t.removeEmpty?u.remove():t.paddEmpty&&Fb(e,r,s,u))}}else{let e=c;for(;u&&u.firstChild===e&&u.lastChild===e&&(e=u,!a[u.name]);)u=u.parent;if(e===u){const e=new mg("#text",3);e.value=st,c.replace(e)}}}})})(t,e,e.schema)})(i,o,r),{schema:a,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:(e,n={})=>{const l={format:"html",...n},s=((e,t,n)=>((e,t)=>A(e)&&e.hasEventListeners("PreProcess")&&!t.no_events)(e,n)?((e,t,n
vendor: 4,733 bytes, line 2
2)=>{let o;const r=e.dom;let a=t.cloneNode(!0);const i=document.implementation;if(i.createHTMLDocument){const e=i.createHTMLDocument("");sn.each("BODY"===a.nodeName?a.childNodes:[a],t=>{e.body.appendChild(e.importNode(t,!0))}),a="BODY"!==a.nodeName?e.body.firstChild:e.body,o=r.doc,r.doc=e}return((e,t)=>{e.dispatch("PreProcess",t)})(e,{...n,node:a}),o&&(r.doc=o),a})(e,t,n):t)(t,e,l),c=((e,t,n)=>{const o=Rl(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||Ll(fn(t))?o:sn.trim(o)})(r,s,l),u=((e,t,n)=>{const o=n.selection?{forced_root_block:!1,...n}:n,r=e.parse(t,o);return(e=>{const t=e=>"br"===(null==e?void 0:e.name),n=e.lastChild;if(t(n)){const e=n.prev;t(e)&&(n.remove(),e.remove())}})(r),r})(i,c,l);return"tree"===l.format?u:((e,t,n,o,r)=>{const a=((e,t,n)=>Dg(e,t).serialize(n))(t,n,o);return((e,t,n)=>{if(!t.no_events&&e){const o=((e,t)=>e.dispatch("PostProcess",t))(e,{...t,content:n});return o.content}return n})(e,r,a)})(t,o,a,u,l)},addRules:a.addValidElements,setRules:a.setValidElements,addTempAttr:O(FA,i,n),getTempAttrs:T(n),getNodeFilters:i.getNodeFilters,getAttributeFilters:i.getAttributeFilters,removeNodeFilter:i.removeNodeFilter,removeAttributeFilter:i.removeAttributeFilter}},zA=(e,t)=>{const n=VA(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters,removeNodeFilter:n.removeNodeFilter,removeAttributeFilter:n.removeAttributeFilter}},UA=(e,t,n={})=>{const o=((e,t)=>({format:"html",...e,set:!0,content:t}))(n,t);return eA(e,o).map(t=>{const n=((e,t,n)=>BA(e).editor.setContent(t,n))(e,t.content,t);return tA(e,n.html,t),n.content}).getOr(t)},jA="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),HA=[],qA="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),GA=[{name:"export",replacedWith:"Export to PDF"}],KA=(e,t)=>{const n=$(t,t=>Ce(e,t));return le(n)},ZA=e=>{const t=KA(e,jA),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),le(t)},WA=e=>KA(e,HA),$A=(e,t)=>{const n=sn.makeMap(e.plugins," "),o=$(t,e=>Ce(n,e));return le(o)},YA=e=>$A(e,qA),JA=e=>$A(e,GA.map(e=>e.name)),XA=e=>Q(GA,t=>t.name===e).fold(()=>e,t=>t.replacedWith?`${e}, replaced by ${t.replacedWith}`:e),QA=rl.DOM,ek=e=>F.from(e).each(e=>e.destroy()),tk=(()=>{const e={};return{add:(t,n)=>{e[t]=n},get:t=>e[t]?e[t]:{icons:{}},has:t=>Ce(e,t)}})(),nk=dl.ModelManager,ok=(e,t)=>t.dom[e],rk=(e,t)=>parseInt(Po(t,e),10),ak=O(ok,"clientWidth"),ik=O(ok,"clientHeight"),lk=O(rk,"margin-top"),sk=O(rk,"margin-left"),ck=e=>{const t=[],n=()=>{const t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():(()=>{const e=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,getArgs:e}})()},o=()=>F.from(t[0]),r=()=>{o().each(e=>{e.reposition()})},a=e=>{ee(t,t=>t===e).each(e=>{t.splice(e,1)})},i=(o,i=!0)=>e.removed||!(e=>{return(t=e.inline?e.getBody():e.getContentAreaContainer(),F.from(t).map(fn)).map(Lo).getOr(!1);var t})(e)?{}:(i&&e.dispatch("BeforeOpenNotification",{notification:o}),Q(t,e=>{return t=n().getArgs(e),r=o,!(t.type!==r.type||t.text!==r.text||t.progressBar||t.timeout||r.progressBar||r.timeout);var t,r}).getOrThunk(()=>{e.editorManager.setActive(e);const i=n().open(o,()=>{a(i)},()=>km(e));return(e=>{t.push(e)})(i),r(),e.dispatch("OpenNotification",{notification:{...i}}),i})),l=T(t);return(e=>{e.on("SkinLoaded",()=>{const t=su(e);t&&i({text:t,type:"warning",timeout:0},!1),r()}),e.on("show ResizeEditor ResizeWindow NodeChange ToggleView FullscreenStateChanged",()=>{requestAnimationFrame(r)}),e.on("remove",()=>{K(t.slice(),e=>{n().close(e)})}
vendor: 8,017 bytes, line 2
2),e.on("keydown",e=>{var t;const n="f12"===(null===(t=e.key)||void 0===t?void 0:t.toLowerCase())||123===e.keyCode;e.altKey&&n&&(e.preventDefault(),o().map(e=>fn(e.getEl())).each(e=>ro(e)))})})(e),{open:i,close:()=>{o().each(e=>{n().close(e),a(e),r()})},getNotifications:l}},uk=dl.PluginManager,dk=dl.ThemeManager,pk=e=>{let t=[];const n=()=>{const t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():(()=>{const e=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e}})()},o=(e,t)=>(...n)=>t?t.apply(e,n):void 0,r=n=>{(t=>{e.dispatch("CloseWindow",{dialog:t})})(n),t=$(t,e=>e!==n),0===t.length&&e.focus()},a=n=>{e.editorManager.setActive(e),am(e),e.ui.show();const o=n();return(n=>{t.push(n),(t=>{e.dispatch("OpenWindow",{dialog:t})})(n)})(o),o};return e.on("remove",()=>{K(t,e=>{n().close(e)})}),{open:(e,t)=>a(()=>n().open(e,t,r)),openUrl:e=>a(()=>n().openUrl(e,r)),alert:(e,t,r)=>{const a=n();a.alert(e,o(r||a,t))},confirm:(e,t,r)=>{const a=n();a.confirm(e,o(r||a,t))},close:()=>{F.from(t[t.length-1]).each(e=>{n().close(e),r(e)})}}},fk=(e,t)=>{e.notificationManager.open({type:"error",text:t})},mk=(e,t)=>{e._skinLoaded?fk(e,t):e.on("SkinLoaded",()=>{fk(e,t)})},gk=(e,t,n)=>{uc(e,t,{message:n}),console.error(n)},hk=(e,t,n)=>n?`Failed to load ${e}: ${n} from url ${t}`:`Failed to load ${e} url: ${t}`,bk=(e,...t)=>{const n=window.console;n&&(n.error?n.error(e,...t):n.log(e,...t))},vk=(e,t,n)=>{try{e.getDoc().execCommand(t,!1,String(n))}catch(e){}},yk=(e,t,n)=>{mr(e,t)&&!n?fr(e,t):n&&dr(e,t)},_k=e=>{const t=fn(e.getBody());yk(t,"mce-content-readonly",!0),e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),(e=>{F.from(e.selection.getNode()).each(e=>{e.removeAttribute("data-mce-selected")})})(e)},Ak=e=>{const t=fn(e.getBody());yk(t,"mce-content-readonly",!1),e.hasEditableRoot()&&br(t,!0),((e,t)=>{vk(e,"StyleWithCSS",t),vk(e,"enableInlineTableEditing",t),vk(e,"enableObjectResizing",t)})(e,!1),km(e)&&e.focus(),(e=>{e.selection.setRng(e.selection.getRng())})(e),e.nodeChanged()},kk=e=>vd(e),xk="data-mce-contenteditable",wk=(e,t)=>{const n=fn(e.getBody());t?(_k(e),br(n,!1),K(yr(n,'*[contenteditable="true"]'),e=>{go(e,xk,"true"),br(e,!1)})):(K(yr(n,`*[${xk}="true"]`),e=>{_o(e,xk),br(e,!0)}),Ak(e))},Ck=e=>{e.parser.addAttributeFilter("contenteditable",t=>{kk(e)&&K(t,e=>{e.attr(xk,e.attr("contenteditable")),e.attr("contenteditable","false")})}),e.serializer.addAttributeFilter(xk,t=>{kk(e)&&K(t,e=>{e.attr("contenteditable",e.attr(xk))})}),e.serializer.addTempAttr(xk)},Ek=["copy"],Sk=e=>"content/"+e+"/content.css",Tk=(e,t)=>{const n=e.editorManager.baseURL+"/skins/content",o=`content${e.editorManager.suffix}.css`;return G(t,t=>(e=>tinymce.Resource.has(Sk(e)))(t)?t:(e=>/^[a-z0-9\-]+$/i.test(e))(t)&&!e.inline?`${n}/${t}/${o}`:e.documentBaseURI.toAbsolute(t))},Ik=(e,t)=>{const n={};return{findAll:(o,r=R)=>{const a=$((e=>e?de(e.getElementsByTagName("img")):[])(o),t=>{const n=t.src;return!t.hasAttribute("data-mce-bogus")&&!t.hasAttribute("data-mce-placeholder")&&!(!n||n===on.transparentSrc)&&($e(n,"blob:")?!e.isUploaded(n)&&r(t):!!$e(n,"data:")&&r(t))}),i=G(a,e=>{const o=e.src;if(Ce(n,o))return n[o].then(t=>f(t)?t:{image:e,blobInfo:t.blobInfo});{const r=((e,t)=>{const n=()=>Promise.reject("Invalid data URI");if($e(t,"blob:")){const a=e.getByUri(t);return A(a)?Promise.resolve(a):(o=t,$e(o,"blob:")?(e=>fetch(e).then(e=>e.ok?e.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${e} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})))(o):$e(o,"data:")?(r=o,new Promise((e,t)=>{by(r).bind(({type:e,data:t,base64Encoded:n})=>vy(e,t,n)).fold(()=>t("Invalid data URI"),e)})):Promise.reject("Unknown URI format")).then(t=>yy(t).then(o=>Ay(o,!1,n=>F.some(ky(e,t,n))).getOrThunk(n)))}var o,r;return $e(t,"data:")?xy(e,t).fold(n,e=>Promise.resolve(e)):Promise.reject("Unknown image data format")})(t,o).then(t=>(delete n[o],{image:e,blobInfo:t})).catch(e=>(delete n[o],e));return n[o]=r,r}});return Promise.all(i)}}},Bk=()=>{let e={};const t=(e,t)=>({status:e,resultUri:t}),n=t=>t in e;return{hasBlobUri:n,getResultUri:t=>{const n=e[t];return n?n.resultUri:null},isPending:t=>!!n(t)&&1===e[t].status,isUploaded:t=>!!n(t)&&2===e[t].status,markPending:n=>{e[n]=t(1,null)},markUploaded:(n,o)=>{e[n]=t(2,o)},removeFailed:t=>{delete e[t]},destroy:()=>{e={}}}};let Ok=0;const Lk=(e,t)=>{const n={},o=(e,n)=>new Promise((o,r)=>{const a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=e=>{n(e.loaded/e.total*100)},a.onerror=()=>{r("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=()=>{if(a.status<200||a.status>=300)return void r("HTTP Error: "+a.status);const e=JSON.parse(a.responseText);var n,i;e&&f(e.location)?o((n=t.basePath,i=e.location,n?n.replace(/\/$/,"")+"/"+i.replace(/^\//,""):i)):r("Invalid JSON: "+a.responseText)};const i=new FormData;i.append("file",e.blob(),e.filename()),a.send(i)}),r=k(t.handler)?t.handler:o,a=(e,t)=>({url:t,blobInfo:e,status:!0}),i=(e,t)=>({url:"",blobInfo:e,status:!1,error:t}),l=(e,t)=>{sn.each(n[e],e=>{e(t)}),delete n[e]};return{upload:(s,c)=>t.url||r!==o?((t,o)=>(t=sn.grep(t,t=>!e.isUploaded(t.blobUri())),Promise.all(sn.map(t,t=>e.isPending(t.blobUri())?(e=>{const t=e.blobUri();return new Promise(e=>{n[t]=n[t]||[],n[t].push(e)})})(t):((t,n,o)=>(e.markPending(t.blobUri()),new Promise(r=>{let s,c;try{const u=()=>{s&&(s.close(),c=C)},d=n=>{u(),e.markUploaded(t.blobUri(),n),l(t.blobUri(),a(t,n)),r(a(t,n))},p=n=>{u(),e.removeFailed(t.blobUri()),l(t.blobUri(),i(t,n)),r(i(t,n))};c=e=>{e<0||e>100||F.from(s).orThunk(()=>F.from(o).map(M)).each(t=>{s=t,t.progressBar.value(e)})},n(t,c).then(d,e=>{p(f(e)?{message:e}:e)})}catch(e){r(i(t,e))}})))(t,r,o)))))(s,c):new Promise(e=>{e([])})}},Dk=e=>()=>e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),Mk=(e,t)=>Lk(t,{url:Hc(e),basePath:qc(e),credentials:Gc(e),handler:Kc(e)}),Nk=e=>{const t=(()=>{let e=[];const t=e=>{if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const t=e.id||"blobid"+Ok+++(()=>{const e=()=>Math.round(4294967295*De()).toString(36);return"s"+(new Date).getTime().toString(36)+e()+e()+e()})(),n=e.name||t,o=e.blob;var r;return{id:T(t),name:T(n),filename:T(e.filename||n+"."+(r=o.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"}[r.toLowerCase()]||"dat")),blob:T(o),base64:T(e.base64),blobUri:T(e.blobUri||URL.createObjectURL(o)),uri:T(e.uri)}},n=t=>Q(e,t).getOrUndefined(),o=e=>n(t=>t.id()===e);return{create:(e,n,o,r,a)=>{if(f(e))return t({id:e,name:r,filename:a,blob:n,base64:o});if(m(e))return t(e);throw new Error("Unknown input type")},add:t=>{o(t.id())||e.push(t)},get:o,getByUri:e=>n(t=>t.blobUri()===e),getByData:(e,t)=>n(n=>n.base64()===e&&n.blob().type===t),findFirst:n,removeByUri:t=>{e=$(e,e=>e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1))},destroy:()=>{K(e,e=>{URL.revokeObjectURL(e.blobUri())}),e=[]}}})();let n,o;const r=Bk(),a=[],i=t=>n=>e.selection?t(n):[],l=(e,t,n)=>{let o=0;do{o=e.indexOf(t,o),-1!==o&&(e=e.substring(0,o)+n+e.substr(o+t.length),o+=n.length-t.length+1)}while(-1!==o);return e},s=(e,t,n)=>{const o=`src="${n}"${n===on.transparentSrc?' data-mce-placeholder="1"':""}`;return e=l(e,`src="${t}"`,o),l(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"')},c=(t,n)=>{K(e.undoManager.data,e=>{"fragmented"===e.type?e.fragments=G(e.fragments,e=>s(e,t,n)):e.content=s(e.content,t,n)})},u=()=>(n||(n=Mk(e,r)),g().then(i(o=>{const r=G(o,e=>e.blobInfo);return n.upload(r,Dk(e)).then(i(n=>{const r=[];let a=!1;const i=G(n,(n,i)=>{const{blobInfo:l,image:s}=o[i];let u=!1;return n.status&&zc(e)?(n.url&&!We(s.src,n.url)&&(a=!0),t.removeByUri(s.src
vendor: 4,560 bytes, line 2
2),IA(e)||((t,n)=>{const o=e.convertURL(n,"src");var r;c(t.src,n),ho(fn(t),{src:Vc(e)?(r=n,r+(-1===r.indexOf("?")?"?":"&")+(new Date).getTime()):n,"data-mce-src":o})})(s,n.url)):n.error&&(n.error.remove&&(c(s.src,on.transparentSrc),r.push(s),u=!0),((e,t)=>{mk(e,ul.translate(["Failed to upload image: {0}",t]))})(e,n.error.message)),{element:s,status:n.status,uploadUri:n.url,blobInfo:l,removed:u}});return r.length>0&&!IA(e)?e.undoManager.transact(()=>{K(To(r),n=>{const o=Pn(n);xo(n),o.each((e=>t=>{((e,t)=>e.dom.isEmpty(t.dom)&&A(e.schema.getTextBlockElements()[wn(t)]))(e,t)&&uo(t,un('<br data-mce-bogus="1" />'))})(e)),t.removeByUri(n.dom.src)})}):a&&e.undoManager.dispatchChange(),i}))}))),d=()=>Fc(e)?u():Promise.resolve([]),p=e=>oe(a,t=>t(e)),g=()=>(o||(o=Ik(r,t)),o.findAll(e.getBody(),p).then(i(t=>{const n=$(t,t=>f(t)?(mk(e,t),!1):"blob"!==t.uriType);return IA(e)||K(n,e=>{c(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),n}))),h=n=>n.replace(/src="(blob:[^"]+)"/g,(n,o)=>{const a=r.getResultUri(o);if(a)return'src="'+a+'"';let i=t.getByUri(o);return i||(i=J(e.editorManager.get(),(e,t)=>e||t.editorUpload&&t.editorUpload.blobCache.getByUri(o),void 0)),i?'src="data:'+i.blob().type+";base64,"+i.base64()+'"':n});return e.on("SetContent",()=>{Fc(e)?d():g()}),e.on("RawSaveContent",e=>{e.content=h(e.content)}),e.on("GetContent",e=>{e.source_view||"raw"===e.format||"tree"===e.format||(e.content=h(e.content))}),e.on("PostRender",()=>{e.parser.addNodeFilter("img",e=>{K(e,e=>{const n=e.attr("src");if(!n||t.getByUri(n))return;const o=r.getResultUri(n);o&&e.attr("src",o)})})}),{blobCache:t,addFilter:e=>{a.push(e)},uploadImages:u,uploadImagesAuto:d,scanForImages:g,destroy:()=>{t.destroy(),r.destroy(),o=n=null}}},Pk={remove_similar:!0,inherit:!1},Rk={selector:"td,th",...Pk},Fk={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...Rk},tablecellverticalalign:{styles:{"vertical-align":"%value"},...Rk},tablecellbordercolor:{styles:{borderColor:"%value"},...Rk},tablecellclass:{classes:["%value"],...Rk},tableclass:{selector:"table",classes:["%value"],...Pk},tablecellborderstyle:{styles:{borderStyle:"%value"},...Rk},tablecellborderwidth:{styles:{borderWidth:"%value"},...Rk}},Vk=T(Fk),zk=sn.each,Uk=rl.DOM,jk=e=>A(e)&&m(e),Hk=(e,t)=>{const n=t&&t.schema||Ii({}),o=e=>{const t=f(e)?{name:e,classes:[],attrs:{}}:e,n=Uk.create(t.name);return((e,t)=>{t.classes.length>0&&Uk.addClass(e,t.classes.join(" ")),Uk.setAttribs(e,t.attrs)})(n,t),n},r=(e,t,a)=>{let i;const l=t[0],s=jk(l)?l.name:void 0,c=((e,t)=>{const o=n.getElementRule(e.nodeName.toLowerCase()),r=null==o?void 0:o.parentsRequired;return!(!r||!r.length)&&(t&&H(r,t)?t:r[0])})(e,s);if(c)s===c?(i=l,t=t.slice(1)):i=c;else if(l)i=l,t=t.slice(1);else if(!a)return e;const u=i?o(i):Uk.create("div");u.appendChild(e),a&&sn.each(a,t=>{const n=o(t);u.insertBefore(n,e)});const d=jk(i)?i.siblings:void 0;return r(u,t,d)},a=Uk.create("div");if(e.length>0){const t=e[0],n=o(t),i=jk(t)?t.siblings:void 0;a.appendChild(r(n,e.slice(1),i))}return a},qk=e=>{let t="div";const n={name:t,classes:[],attrs:{},selector:e=sn.trim(e)};return"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(e,t,o,r,a)=>{switch(t){case"#":n.attrs.id=o;break;case".":n.classes.push(o);break;case":":-1!==sn.inArray("checked disabled enabled read-only required".split(" "),o)&&(n.attrs[o]=o)}if("["===r){const e=a.match(/([\w\-]+)(?:\=\"([^\"]+))?/);e&&(n.attrs[e[1]]=e[2])}return""})),n.name=t||"div",n},Gk=(e,t)=>{let n="",o=gu(e);if(""===o)return"";const r=e=>f(e)?e.replace(/%(\w+)/g,""):"",a=(t,n)=>Uk.getStyle(null!=n?n:e.getBody(),t,!0);if(f(t)){const n=e.formatter.get(t);if(!n)return"";t=n[0]}if("preview"in t){const e=t.preview;if(!1===e)return"";o=e||o}let i,l=t.block||t.inline||"span";const s=(c=t.selector,f(c)?(c=(c=c.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),sn.map(c.split(/(?:>|\s+(?![^\[\]]+\]))/),e=>{const t=sn.map(e.split(/(?:~\+|~|\+)/),qk),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]);var c;s.length>0?(s[0].name||(s[0].name=l),l=t.selector,i=Hk(s,e)):i=Hk([l],e);const u=Uk.select(l,i)[0]||i.firstChild;zk(t.styles,(e,t)=>{const n=r(e);n&&Uk.setStyle(u,t,n)}),zk(t.attributes,(e,t)=>{const n=r(e);n&&Uk.setAttrib(u,t,n)}),zk(t.classes,e=>{const t=r(e);Uk.hasClass(u,t)||Uk.addClass(u,t)}),e.dispatch("PreviewFormats"),Uk.setStyles(i,{position:"absolute",left:-65535}),e.getBody().appendChild(i);const d=a("fontSize"),p=/px$/.test(d)?parseInt(d,10):0;return zk(o.split(" "),e=>{let t=a(e,u);
vendor: 14,324 bytes, line 2
2if(!("background-color"===e&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(t)&&(t=a(e),"#ffffff"===Fi(t).toLowerCase())||"color"===e&&"#000000"===Fi(t).toLowerCase())){if("font-size"===e&&/em|%$/.test(t)){if(0===p)return;t=parseFloat(t)/(/%$/.test(t)?100:1)*p+"px"}"border"===e&&t&&(n+="padding:0 2px;"),n+=e+":"+t+";"}}),e.dispatch("AfterPreviewFormats"),Uk.remove(i),n},Kk=e=>{const t=(e=>{const t={},n=(e,o)=>{e&&(f(e)?(h(o)||(o=[o]),K(o,e=>{y(e.deep)&&(e.deep=!wf(e)),y(e.split)&&(e.split=!wf(e)||Cf(e)),y(e.remove)&&wf(e)&&!Cf(e)&&(e.remove="none"),wf(e)&&Cf(e)&&(e.mixed=!0,e.block_expand=!0),f(e.classes)&&(e.classes=e.classes.split(/\s+/))}),t[e]=o):he(e,(e,t)=>{n(t,e)}))};return n((e=>{const t=e.dom,n=e.schema.type,o={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:".mce-placeholder",styles:{float:"left"},ceFalseOverride:!0},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:e=>{t.setStyle(e,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:".mce-placeholder",styles:{display:"block",marginLeft:"auto",marginRight:"auto"},ceFalseOverride:!0},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:".mce-placeholder",styles:{float:"right"},ceFalseOverride:!0},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:e=>{t.setStyle(e,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const e={inline:"span",styles:{textDecoration:"line-through"},exact:!0},t={inline:"strike",remove:"all",preserve_attributes:["class","style"]},o={inline:"s",remove:"all",preserve_attributes:["class","style"]};return"html4"!==n?[o,e,t]:[e,o,t]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},samp:{inline:"samp"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(e,t,n)=>Kr(e)&&e.hasAttribute("href"),onformat:(e,n,o)=>{sn.each(o,(n,o)=>{t.setAttrib(e,o,n)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":e=>{var t;return null!==(t=null==e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return sn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd".split(/\s/),e=>{o[e]={block:e,remove:"all"}}),o})(e)),n(Vk()),n(mu(e)),{get:e=>A(e)?t[e]:t,has:e=>Ce(t,e),register:n,unregister:e=>(e&&t[e]&&delete t[e],t)}})(e),n=Te({});return(e=>{e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(let t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])})(e),(e=>{e.on("mouseup keydown",t=>{var n;((e,t,n)=>{const o=e.selection,r=e.getBody();hv(e,null,n),8!==t&&46!==t||!o.isCollapsed()||o.getStart().innerHTML!==pv||hv(e,Lp(r,o.getStart()),!0),37!==t&&39!==t||hv(e,Lp(r,o.getStart()),!0)})(e,t.keyCode,(n=e.selection.getRng().endContainer,ta(n)&&Ye(n.data,st)))})})(e),IA(e)||((e,t)=>{e.set({}),t.on("NodeChange",n=>{fy(t,n.element,e.get())}),t.on("FormatApply FormatRemove",n=>{const o=F.from(n.node).map(e=>lf(e)?e:e.startContainer).bind(e=>Kr(e)?F.some(e):F.from(e.parentElement)).getOrThunk(()=>uy(t));fy(t,o,e.get())})})(n,e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:(t,n,o)=>{((e,t,n,o)=>{OA(e).formatter.apply(t,n,o)})(e,t,n,o)},remove:(t,n,o,r)=>{((e,t,n,o,r)=>{OA(e).formatter.remove(t,n,o,r)})(e,t,n,o,r)},toggle:(t,n,o)=>{((e,t,n,o)=>{OA(e).formatter.toggle(t,n,o)})(e,t,n,o)},match:(t,n,o,r)=>((e,t,n,o,r)=>OA(e).formatter.match(t,n,o,r))(e,t,n,o,r),closest:t=>((e,t)=>OA(e).formatter.closest(t))(e,t),matchAll:(t,n)=>((e,t,n)=>OA(e).formatter.matchAll(t,n))(e,t,n),matchNode:(t,n,o,r)=>((e,t,n,o,r)=>OA(e).formatter.matchNode(t,n,o,r))(e,t,n,o,r),canApply:t=>((e,t)=>OA(e).formatter.canApply(t))(e,t),formatChanged:(t,o,r,a)=>((e,t,n,o,r,a)=>OA(e).formatter.formatChanged(t,n,o,r,a))(e,n,t,o,r,a),getCssText:O(Gk,e)}},Zk=e=>{switch(e.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},Wk=e=>{const t=Ge(),n=Te(0),o=Te(0),r={data:[],typing:!1,beforeChange:()=>{((e,t,n)=>{OA(e).undoManager.beforeChange(t,n)})(e,n,t)},add:(a,i)=>((e,t,n,o,r,a,i)=>OA(e).undoManager.add(t,n,o,r,a,i))(e,r,o,n,t,a,i),dispatchChange:()=>{e.setDirty(!0);const t=_A(e);t.bookmark=nc(e.selection),e.dispatch("change",{level:t,lastLevel:se(r.data,o.get()).getOrUndefined()})},undo:()=>((e,t,n,o)=>OA(e).undoManager.undo(t,n,o))(e,r,n,o),redo:()=>((e,t,n)=>OA(e).undoManager.redo(t,n))(e,o,r.data),clear:()=>{((e,t,n)=>{OA(e).undoManager.clear(t,n)})(e,r,o)},reset:()=>{((e,t)=>{OA(e).undoManager.reset(t)})(e,r)},hasUndo:()=>((e,t,n)=>OA(e).undoManager.hasUndo(t,n))(e,r,o),hasRedo:()=>((e,t,n)=>OA(e).undoManager.hasRedo(t,n))(e,r,o),transact:t=>((e,t,n,o)=>OA(e).undoManager.transact(t,n,o))(e,r,n,t),ignore:t=>{((e,t,n)=>{OA(e).undoManager.ignore(t,n)})(e,n,t)},extra:(t,n)=>{((e,t,n,o,r)=>{OA(e).undoManager.extra(t,n,o,r)})(e,r,o,t,n)}};return IA(e)||((e,t,n)=>{const o=Te(!1),r=e=>{EA(t,!1,n),t.add({},e)};e.on("init",()=>{t.add()}),e.on("BeforeExecCommand",e=>{const o=e.command;Zk(o)||(SA(t,n),t.beforeChange())}),e.on("ExecCommand",e=>{const t=e.command;Zk(t)||r(e)}),e.on("ObjectResizeStart cut",()=>{t.beforeChange()}),e.on("SaveContent ObjectResized blur",r),e.on("dragend",r),e.on("keyup",n=>{const a=n.keyCode;if(n.isDefaultPrevented())return;const i=on.os.isMacOS()&&"Meta"===n.key;(a>=33&&a<=36||a>=37&&a<=40||45===a||n.ctrlKey||i)&&(r(),e.nodeChanged()),46!==a&&8!==a||e.nodeChanged(),o.get()&&t.typing&&!wA(_A(e),t.data[0])&&(e.isDirty()||e.setDirty(!0),e.dispatch("TypingUndo"),o.set(!1),e.nodeChanged())}),e.on("keydown",e=>{const a=e.keyCode;if(e.isDefaultPrevented())return;if(a>=33&&a<=36||a>=37&&a<=40||45===a)return void(t.typing&&r(e));const i=e.ctrlKey&&!e.altKey||e.metaKey;if((a<16||a>20)&&224!==a&&91!==a&&!t.typing&&!i)return t.beforeChange(),EA(t,!0,n),t.add({},e),void o.set(!0);(on.os.isMacOS()?e.metaKey:e.ctrlKey&&!e.altKey)&&t.beforeChange()}),e.on("mousedown",e=>{t.typing&&r(e)}),e.on("input",e=>{var t;e.inputType&&("insertReplacementText"===e.inputType||"insertText"===(t=e).inputType&&null===t.data||(e=>"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType)(e))&&r(e)}),e.on("AddUndo Undo Redo ClearUndos",t=>{t.isDefaultPrevented()||e.nodeChanged()})})(e,r,n),(e=>{e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")})(e),r},$k=[9,27,wm.HOME,wm.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,wm.DOWN,wm.UP,wm.LEFT,wm.RIGHT].concat(on.browser.isFirefox()?[224]:[]),Yk="data-mce-placeholder",Jk=e=>"keydown"===e.type||"keyup"===e.type,Xk=e=>{const t=e.keyCode;return t===wm.BACKSPACE||t===wm.DELETE},Qk=(e,t)=>({from:e,to:t}),ex=(e,t)=>{const n=fn(e),o=fn(t.container());return Qh(n,o).map(e=>((e,t)=>({block:e,position:t}))(e,t))},tx=(e,t)=>nr(t,e=>Ol(e)||ua(e.dom),t=>An(t,e)).filter(Tn).getOr(e),nx=(e,t)=>{const n=((e,t)=>{const n=Hn(e);return ee(n,e=>t.isBlock(wn(e))).fold(T(n),e=>n.slice(0,e))})(e,t);return K(n,xo),n},ox=(e,t,n)=>{const o=th(n,t);return Q(o.reverse(),t=>wa(e,t)).each(xo)},rx=(e,t,n,o,r)=>{if(wa(o,n))return Ml(n),Tp(n.dom);((e,t)=>0===$(Un(t),t=>!wa(e,t)).length)(o,r)&&wa(o,t)&&lo(r,dn("br"));const a=Sp(n.dom,Ns.before(r.dom));return K(nx(t,o),e=>{lo(r,e)}),ox(o,e,t),a},ax=(e,t,n,o)=>{if(wa(o,n)){if(wa(o,t)){const e=e=>{const t=(e,n)=>Gn(e).fold(()=>n,e=>((e,t)=>e.isInline(wn(t)))(o,e)?t(e,n.concat(Eo(e))):n);return t(e,[])},r=Y(e(n),(e,t)=>(po(e,t),t),Dl());ko(t),uo(t,r)}return xo(n),Tp(t.dom)}const r=Ip(n.dom);return K(nx(t,o),e=>{uo(n,e)}),ox(o,e,t),r},ix=(e,t)=>{Cp(e,t.dom).bind(e=>F.from(e.getNode())).map(fn).filter(El).each(xo)},lx=(e,t,n,o)=>(ix(!0,t),ix(!1,n),((e,t)=>kn(t,e)?((e,t)=>{const n=th(t,e);return F.from(n[n.length-1])})(t,e):F.none())(t,n).fold(O(ax,e,t,n,o),O(rx,e,t,n,o))),sx=(e,t,n,o,r)=>t?lx(e,o,n,r):lx(e,n,o,r),cx=(e,t)=>{const n=fn(e.getBody()),o=((e,t,n,o)=>o.collapsed?((e,t,n,o)=>{const r=ex(t,Ns.fromRangeStart(o)),a=r.bind(o=>kp(n,t,o.position).bind(o=>ex(t,o).map(o=>((e,t,n,o)=>la(o.position.getNode())&&!wa(e,o.block)?Cp(!1,o.block.dom).bind(e=>e.isEqual(o.position)?kp(n,t,e).bind(e=>ex(t,e)):F.some(o)).getOr(o):o)(e,t,n,o))));return Ue(r,a,Qk).filter(e=>(e=>!An(e.from.block,e.to.block))(e)&&((e,t)=>{const n=fn(e);return An(tx(n,t.from.block),tx(n,t.to.block))})(t,e)&&(e=>!1===da(e.from.block.dom)&&!1===da(e.to.block.dom))(e)&&(e=>{const t=e=>Sl(e)||Va(e.dom)||Il(e);return t(e.from.block)&&t(e.to.block)})(e)&&(e=>!(kn(e.to.block,e.from.block)||kn(e.from.block,e.to.block)))(e))})(e,t,n,o):F.none())(e.schema,n.dom,t,e.selection.getRng()).map(o=>()=>{sx(n,t,o.from.block,o.to.block,e.schema).each(t=>{e.selection.setRng(t.toRange())})});return o},ux=(e,t)=>{const n=fn(t),o=O(An,e);return tr(n,Ol,o).isSome()},dx=e=>{const t=fn(e.getBody());return((e,t)=>{const n=Sp(e.dom,Ns.fromRangeStart(t)).isNone(),o=Ep(e.dom,Ns.fromRangeEnd(t)).isNone();return!((e,t)=>ux(e,t.startContainer)||ux(e,t.endContainer))(e,t)&&n&&o})(t,e.selection.getRng())?(e=>F.some(()=>{e.setContent(""),e.selection.setCursorLocation()}))(e):((e,t,n)=>{const o=t.getRng();return Ue(Qh(e,fn(o.startContainer)),Qh(e,fn(o.endContainer)),(r,a)=>An(r,a)?F.none():F.some(()=>{o.deleteContents(),sx(e,!0,r,a,n).each(e=>{t.setRng(e.toRange())})})).getOr(F.none())})(t,e.selection,e.schema)},px=(e,t)=>e.selection.isCollapsed()?F.none():dx(e),fx=(e,t,n,o,r)=>F.from(t._selectionOverrides.showCaret(e,n,o,r)),mx=(e,t)=>e.dispatch("BeforeObjectSelected",{target:t}).isDefaultPrevented()?F.none():F.some((e=>{const t=e.ownerDocument.createRange();return t.selectNode(e),t})(t)),gx=(e,t,n)=>t.collapsed?((e,t,n)=>{const o=np(1,e.getBody(),t),r=Ns.fromRangeStart(o),a=r.getNode();if(Dd(a))return fx(1,e,a,!r.isAtEnd(),!1);const i=r.getNode(!0);if(Dd(i))return fx(1,e,i,!1,!1);const l=Bb(e.dom.getRoot(),r.getNode());return Dd(l)?fx(1,e,l,!1,n):F.none()})(e,t,n).getOr(t):t,hx=e=>Xg(e)||Wg(e),bx=e=>Qg(e)||$g(e),vx=(e,t,n,o,r,a)=>{fx(o,e,a.getNode(!r),r,!0).each(n=>{if(t.collapsed){const e=t.cloneRange();r?e.setEnd(n.startContainer,n.startOffset):e.setStart(n.endContainer,n.endOffset),e.deleteContents()}else t.deleteContents();e.selection.setRng(n)}),((e,t)=>{ta(t)&&0===t.data.length&&e.remove(t)})(e.dom,n)},yx=(e,t)=>((e,t)=>{const n=e.selection.getRng();if(!ta(n.commonAncestorContainer))return F.none();const o=t?1:-1,r=vp(e.getBody()),a=O(ip,t?r.next:r.prev),i=t?hx:bx,l=rp(o,e.getBody(),n),s=a(l),c=s?Kh(t,s):s;if(!c||!lp(l,c))return F.none();if(i(c))return F.some(()=>vx(e,n,l.getNode(),o,t,c));const u=a(c);return u&&i(u)&&lp(c,u)?F.some(()=>vx(e,n,l.getNode(),o,t,u)):F.none()})(e,t),_x=(e,t)=>{const n=e.getBody();return t?Tp(n).filter(Xg):Ip(n).filter(Qg)},Ax=e=>{const t=e.selection.getRng();return!t.collapsed&&(_x(e,!0).exists(e=>e.isEqual(Ns.fromRangeStart(t)))||_x(e,!1).exists(e=>e.isEqual(Ns.fromRangeEnd(t))))},kx=Se([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),xx=(e,t,n,o)=>kp(t,e,n).bind(r=>
vendor: 26,703 bytes, line 2
2{return a=r.getNode(),A(a)&&(Ol(fn(a))||Il(fn(a)))||((e,t,n,o,r)=>{const a=t=>r.isInline(t.nodeName.toLowerCase())&&!$d(n,o,e);return op(!t,n).fold(()=>op(t,o).fold(P,a),a)})(e,t,n,r,o)?F.none():t&&da(r.getNode())||!t&&da(r.getNode(!0))?((e,t,n,o,r)=>{const a=r.getNode(!n);return Qh(fn(t),fn(o.getNode())).map(t=>wa(e,t)?kx.remove(t.dom):kx.moveToElement(a)).orThunk(()=>F.some(kx.moveToElement(a)))})(o,e,t,n,r):t&&Qg(n)||!t&&Xg(n)?F.some(kx.moveToPosition(r)):F.none();var a}),wx=(e,t)=>F.from(Bb(e.getBody(),t)),Cx=(e,t)=>{const n=e.selection.getNode();return wx(e,n).filter(da).fold(()=>((e,t,n,o)=>{const r=np(t?1:-1,e,n),a=Ns.fromRangeStart(r),i=fn(e);return!t&&Qg(a)?F.some(kx.remove(a.getNode(!0))):t&&Xg(a)?F.some(kx.remove(a.getNode())):!t&&Xg(a)&&fh(i,a,o)?mh(i,a,o).map(e=>kx.remove(e.getNode())):t&&Qg(a)&&ph(i,a,o)?gh(i,a,o).map(e=>kx.remove(e.getNode())):((e,t,n,o)=>((e,t)=>{const n=t.getNode(!e),o=e?"after":"before";return Kr(n)&&n.getAttribute("data-mce-caret")===o})(t,n)?((e,t)=>_(t)?F.none():e&&da(t.nextSibling)?F.some(kx.moveToElement(t.nextSibling)):!e&&da(t.previousSibling)?F.some(kx.moveToElement(t.previousSibling)):F.none())(t,n.getNode(!t)).orThunk(()=>xx(e,t,n,o)):xx(e,t,n,o).bind(t=>((e,t,n)=>n.fold(e=>F.some(kx.remove(e)),e=>F.some(kx.moveToElement(e)),n=>$d(t,n,e)?F.none():F.some(kx.moveToPosition(n))))(e,n,t)))(e,t,a,o)})(e.getBody(),t,e.selection.getRng(),e.schema).map(n=>()=>n.fold(((e,t)=>n=>(e._selectionOverrides.hideFakeCaret(),Uh(e,t,fn(n)),!0))(e,t),((e,t)=>n=>{const o=t?Ns.before(n):Ns.after(n);return e.selection.setRng(o.toRange()),!0})(e,t),(e=>t=>(e.selection.setRng(t.toRange()),!0))(e))),()=>F.some(C))},Ex=e=>{const t=e.dom,n=e.selection,o=Bb(e.getBody(),n.getNode());if(ua(o)&&t.isBlock(o)&&t.isEmpty(o)){const e=t.create("br",{"data-mce-bogus":"1"});t.setHTML(o,""),o.appendChild(e),n.setRng(Ns.before(e).toRange())}return!0},Sx=(e,t)=>e.selection.isCollapsed()?Cx(e,t):((e,t)=>{const n=e.selection.getNode();return da(n)&&!fa(n)?wx(e,n.parentNode).filter(da).fold(()=>F.some(()=>{var n;n=fn(e.getBody()),K(yr(n,".mce-offscreen-selection"),xo),Uh(e,t,fn(e.selection.getNode())),eb(e)}),()=>F.some(C)):Ax(e)?F.some(()=>{ob(e,e.selection.getRng(),fn(e.getBody()))}):F.none()})(e,t),Tx=e=>e.hasOwnProperty("text"),Ix=e=>e.hasOwnProperty("marker"),Bx=(e,t)=>{const n=(e,n)=>{if(ta(e))return{text:e,offset:n};{const o=t(),r=e.childNodes;return n<r.length?(e.insertBefore(o,r[n]),{marker:o,before:!0}):(e.appendChild(o),{marker:o,before:!1})}},o=n(e.endContainer,e.endOffset);return{start:n(e.startContainer,e.startOffset),end:o}},Ox=e=>{var t,n;const{start:o,end:r}=e,a=new window.Range;return Tx(o)?a.setStart(o.text,o.offset):Ix(o)&&(o.before?a.setStartBefore(o.marker):a.setStartAfter(o.marker),null===(t=o.marker.parentNode)||void 0===t||t.removeChild(o.marker)),Tx(r)?a.setEnd(r.text,r.offset):Ix(r)&&(r.before?a.setEndBefore(r.marker):a.setEndAfter(r.marker),null===(n=r.marker.parentNode)||void 0===n||n.removeChild(r.marker)),a},Lx=(e,t)=>{var n;const o=e.dom,r=o.getParent(e.selection.getStart(),o.isBlock),a=o.getParent(e.selection.getEnd(),o.isBlock),i=e.getBody();if("div"===(null===(n=null==r?void 0:r.nodeName)||void 0===n?void 0:n.toLowerCase())&&r&&a&&r===i.firstChild&&a===i.lastChild&&!o.isEmpty(i)){const n=r.cloneNode(!1),o=()=>{if(t?Jh(e):Yh(e),i.firstChild!==r){const t=Bx(e.selection.getRng(),()=>document.createElement("span"));Array.from(i.childNodes).forEach(e=>n.appendChild(e)),i.appendChild(n),e.selection.setRng(Ox(t))}};return F.some(o)}return F.none()},Dx=(e,t)=>e.selection.isCollapsed()?((e,t)=>{const n=Ns.fromRangeStart(e.selection.getRng());return kp(t,e.getBody(),n).filter(e=>t?Kg(e):Zg(e)).bind(e=>Yd(t?0:-1,e)).map(t=>()=>e.selection.select(t))})(e,t):F.none(),Mx=ta,Nx=e=>Mx(e)&&e.data[0]===Nl,Px=e=>Mx(e)&&e.data[e.data.length-1]===Nl,Rx=e=>{var t;return(null!==(t=e.ownerDocument)&&void 0!==t?t:document).createTextNode(Nl)},Fx=(e,t)=>e?(e=>{var t;if(Mx(e.previousSibling))return Px(e.previousSibling)||e.previousSibling.appendData(Nl),e.previousSibling;if(Mx(e))return Nx(e)||e.insertData(0,Nl),e;{const n=Rx(e);return null===(t=e.parentNode)||void 0===t||t.insertBefore(n,e),n}})(t):(e=>{var t,n;if(Mx(e.nextSibling))return Nx(e.nextSibling)||e.nextSibling.insertData(0,Nl),e.nextSibling;if(Mx(e))return Px(e)||e.appendData(Nl),e;{const o=Rx(e);return e.nextSibling?null===(t=e.parentNode)||void 0===t||t.insertBefore(o,e.nextSibling):null===(n=e.parentNode)||void 0===n||n.appendChild(o),o}})(t),Vx=O(Fx,!0),zx=O(Fx,!1),Ux=(e,t)=>ta(e.container())?Fx(t,e.container()):Fx(t,e.getNode()),jx=(e,t)=>{const n=t.get();return n&&e.container()===n&&Ul(n)},Hx=(e,t)=>t.fold(t=>{Ed(e.get());const n=Vx(t);return e.set(n),F.some(Ns(n,n.length-1))},t=>Tp(t).map(t=>{if(jx(t,e)){const t=e.get();return Ns(t,1)}{Ed(e.get());const n=Ux(t,!0);return e.set(n),Ns(n,1)}}),t=>Ip(t).map(t=>{if(jx(t,e)){const t=e.get();return Ns(t,t.length-1)}{Ed(e.get());const n=Ux(t,!1);return e.set(n),Ns(n,n.length-1)}}),t=>{Ed(e.get());const n=zx(t);return e.set(n),F.some(Ns(n,1))}),qx=(e,t)=>{for(let n=0;n<e.length;n++){const o=e[n].apply(null,t);if(o.isSome())return o}return F.none()},Gx=Se([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Kx=(e,t)=>Wd(t,e)||e,Zx=(e,t,n)=>{const o=Zh(n),r=Kx(t,o.container());return Gh(e,r,o).fold(()=>Ep(r,o).bind(O(Gh,e,r)).map(e=>Gx.before(e)),F.none)},Wx=(e,t)=>null===Lp(e,t),$x=(e,t,n)=>Gh(e,t,n).filter(O(Wx,t)),Yx=(e,t,n)=>{const o=Wh(n);return $x(e,t,o).bind(e=>Sp(e,o).isNone()?F.some(Gx.start(e)):F.none())},Jx=(e,t,n)=>{const o=Zh(n);return $x(e,t,o).bind(e=>Ep(e,o).isNone()?F.some(Gx.end(e)):F.none())},Xx=(e,t,n)=>{const o=Wh(n),r=Kx(t,o.container());return Gh(e,r,o).fold(()=>Sp(r,o).bind(O(Gh,e,r)).map(e=>Gx.after(e)),F.none)},Qx=e=>!qh(tw(e)),ew=(e,t,n)=>qx([Zx,Yx,Jx,Xx],[e,t,n]).filter(Qx),tw=e=>e.fold(I,I,I,I),nw=e=>e.fold(T("before"),T("start"),T("end"),T("after")),ow=e=>e.fold(Gx.before,Gx.before,Gx.after,Gx.after),rw=e=>e.fold(Gx.start,Gx.start,Gx.end,Gx.end),aw=(e,t,n,o,r,a)=>Ue(Gh(t,n,o),Gh(t,n,r),(t,o)=>t!==o&&((e,t,n)=>{const o=Wd(t,e),r=Wd(n,e);return A(o)&&o===r})(n,t,o)?Gx.after(e?t:o):a).getOr(a),iw=(e,t)=>e.fold(R,e=>{return o=t,!(nw(n=e)===nw(o)&&tw(n)===tw(o));var n,o}),lw=(e,t)=>e?t.fold(E(F.some,Gx.start),F.none,E(F.some,Gx.after),F.none):t.fold(F.none,E(F.some,Gx.before),F.none,E(F.some,Gx.end)),sw=(e,t,n)=>{const o=e?1:-1;return t.setRng(Ns(n.container(),n.offset()+o).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0};var cw;!function(e){e[e.Br=0]="Br",e[e.Block=1]="Block",e[e.Wrap=2]="Wrap",e[e.Eol=3]="Eol"}(cw||(cw={}));const uw=(e,t)=>-1===e?re(t):t,dw=(e,t,n)=>1===e?t.next(n):t.prev(n),pw=(e,t,n,o)=>la(o.getNode(1===t))?cw.Br:!1===$d(n,o)?cw.Block:cw.Wrap,fw=(e,t,n,o)=>{const r=vp(n);let a=o;const i=[];for(;a;){const n=dw(t,r,a);if(!n)break;if(la(n.getNode(!1)))return 1===t?{positions:uw(t,i).concat([n]),breakType:cw.Br,breakAt:F.some(n)}:{positions:uw(t,i),breakType:cw.Br,breakAt:F.some(n)};if(n.isVisible()){if(e(a,n)){const e=pw(0,t,a,n);return{positions:uw(t,i),breakType:e,breakAt:F.some(n)}}i.push(n),a=n}else a=n}return{positions:uw(t,i),breakType:cw.Eol,breakAt:F.none()}},mw=(e,t,n,o)=>t(n,o).breakAt.map(o=>{const r=t(n,o).positions;return-1===e?r.concat(o):[o].concat(r)}).getOr([]),gw=(e,t)=>J(e,(e,n)=>e.fold(()=>F.some(n),o=>Ue(ce(o.getClientRects()),ce(n.getClientRects()),(e,r)=>{const a=Math.abs(t-e.left);return Math.abs(t-r.left)<=a?n:o}).or(e)),F.none()),hw=(e,t)=>ce(t.getClientRects()).bind(t=>gw(e,t.left)),bw=O(fw,Ns.isAbove,-1),vw=O(fw,Ns.isBelow,1),yw=O(mw,-1,bw),_w=O(mw,1,vw),Aw=(e,t)=>bw(e,t).breakAt.isNone(),kw=(e,t)=>vw(e,t).breakAt.isNone(),xw=(e,t)=>hw(yw(e,t),t),ww=(e,t)=>hw(_w(e,t),t),Cw=da,Ew=(e,t)=>Math.abs(e.left-t),Sw=(e,t)=>Math.abs(e.right-t),Tw=(e,t)=>ht(e,(e,n)=>{const o=Math.min(Ew(e,t),Sw(e,t)),r=Math.min(Ew(n,t),Sw(n,t));return r===o&&Ee(n,"node")&&Cw(n.node)||r<o?n:e}),Iw=e=>{const t=t=>G(t,t=>{const n=Jl(t);return n.node=e,n});if(Kr(e))return t(e.getClientRects());if(ta(e)){const n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}return[]},Bw=e=>ne(e,Iw);var Ow;!function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(Ow||(Ow={}));const Lw=(e,t,n,o,r,a)=>{let i=0;const l=[],s=o=>{let a=Bw([o]);e===Ow.Up&&(a=a.reverse());for(let e=0;e<a.length;e++){const o=a[e];if(!n(o,c)){if(l.length>0&&t(o,vt(l))&&i++,o.line=i,r(o))return!0;l.push(o)}}return!1},c=vt(a.getClientRects());if(!c)return l;const u=a.getNode();return u&&(s(u),((e,t,n,o)=>{let r=o;for(;r=Zd(r,e,bs,t);)if(n(r))return})(e,o,s,u)),l},Dw=O(Lw,Ow.Up,es,ts),Mw=O(Lw,Ow.Down,ts,es),Nw=e=>vt(e.getClientRects()),Pw=e=>t=>((e,t)=>t.line>e)(e,t),Rw=e=>t=>((e,t)=>t.line===e)(e,t),Fw=(e,t)=>{e.selection.setRng(t),og(e,e.selection.getRng())},Vw=(e,t,n)=>F.some(gx(e,t,n)),zw=(e,t,n,o,r,a)=>{const i=1===t,l=vp(e.getBody()),s=O(ip,i?l.next:l.prev),c=i?o:r;if(!n.collapsed){const o=os(n);if(a(o))return fx(t,e,o,-1===t,!1);if(Ax(e)){const e=n.cloneRange();return e.collapse(-1===t),F.from(e)}}const u=rp(t,e.getBody(),n);if(c(u))return mx(e,u.getNode(!i));let d=s(u);const p=$l(n);if(!d)return p?F.some(n):F.none();if(d=Kh(i,d),c(d))return fx(t,e,d.getNode(!i),i,!1);const f=s(d);return f&&c(f)&&lp(d,f)?fx(t,e,f.getNode(!i),i,!1):p?Vw(e,d.toRange(),!1):F.none()},Uw=(e,t,n,o,r,a)=>{const i=rp(t,e.getBody(),n),l=vt(i.getClientRects()),s=t===Ow.Down,c=e.getBody();if(!l)return F.none();if(Ax(e)){const e=s?Ns.fromRangeEnd(n):Ns.fromRangeStart(n);return(s?ww:xw)(c,e).orThunk(()=>F.from(e)).map(e=>e.toRange())}const u=(s?Mw:Dw)(c,Pw(1),i),d=$(u,Rw(1)),p=l.left,f=Tw(d,p);if(f&&a(f.node)){const n=Math.abs(p-f.left),o=Math.abs(p-f.right);return fx(t,e,f.node,n<o,!1)}let m;if(m=o(i)?i.getNode():r(i)?i.getNode(!0):os(n),m){const n=((e,t,n,o)=>{const r=vp(t);let a,i,l,s;const c=[];let u=0;e===Ow.Down?(a=r.next,i=ts,l=es,s=Ns.after(o)):(a=r.prev,i=es,l=ts,s=Ns.before(o));const d=Nw(s);do{if(!s.isVisible())continue;const e=Nw(s);if(l(e,d))continue;c.length>0&&i(e,vt(c))&&u++;const t=Jl(e);if(t.position=s,t.line=u,n(t))return c;c.push(t)}while(s=a(s));return c})(t,c,Pw(1),m);let o=Tw($(n,Rw(1)),p);if(o)return Vw(e,o.position.toRange(),!1);if(o=vt($(n,Rw(0))),o)return Vw(e,o.position.toRange(),!1)}return 0===d.length?jw(e,s).filter(s?r:o).map(t=>gx(e,t.toRange(),!1)):F.none()},jw=(e,t)=>{const n=e.selection.getRng(),o=t?Ns.fromRangeEnd(n):Ns.fromRangeStart(n),r=(a=o.container(),i=e.getBody(),tr(fn(a),e=>Nd(e.dom),e=>e.dom===i).map(e=>e.dom).getOr(i));var a,i;if(t){const e=vw(r,o);return ue(e.positions)}{const e=bw(r,o);return ce(e.positions)}},Hw=(e,t,n)=>jw(e,t).filter(n).exists(t=>(e.selection.setRng(t.toRange()),!0)),qw=(e,t)=>{const n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},Gw=(e,t)=>{e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},Kw=(e,t,n)=>Hx(t,n).map(t=>(qw(e,t),n)),Zw=(e,t,n)=>{const o=e.getBody(),r=((e,t,n)=>{const o=Ns.fromRangeStart(e);if(e.collapsed)return o;{const r=Ns.fromRangeEnd(e);return n?Sp(t,r).getOr(r):Ep(t,o).getOr(o)}})(e.selection.getRng(),o,n);return((e,t,n,o)=>{const r=Kh(e,o),a=ew(t,n,r);return ew(t,n,r).bind(O(lw,e)).orThunk(()=>((e,t,n,o,r)=>{const a=Kh(e,r);return kp(e,n,a).map(O(Kh,e)).fold(()=>o.map(ow),r=>ew(t,n,r).map(O(aw,e,t,n,a,r)).filter(O(iw,o))).filter(Qx)})(e,t,n,a,o))})(n,O(Hh,e),o,r).bind(n=>Kw(e,t,n))},Ww=(e,t,n)=>!!fu(e)&&Zw(e,t,n).isSome(),$w=(e,t,n)=>!!fu(t)&&((e,t)=>{const n=t.selection.getRng(),o=e?Ns.fromRangeEnd(n):Ns.fromRangeStart(n);return!!(e=>k(e.selection.getSel().modify))(t)&&(e&&ql(o)?sw(!0,t.selection,o):!(e||!Gl(o))&&sw(!1,t.selection,o))})(e,t),Yw=e=>{const t=Te(null),n=O(Hh,e);return e.on("NodeChange",o=>{fu(e)&&(((e,t,n)=>{const o=G(yr(fn(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),e=>e.dom),r=$(o,e),a=$(n,e);K(ae(r,a),O(Gw,!1)),K(ae(a,r),O(Gw,!0))})(n,e.dom,o.parents),((e,t)=>{const n=t.get();if(e.selection.isCollapsed()&&!e.composing&&n){const o=Ns.fromRangeStart(e.selection.getRng());Ns.isTextPosition(o)&&!(e=>ql(e)||Gl(e))(o)&&(qw(e,Cd(n,o)),t.set(null))}})(e,t),((e,t,n,o)=>{if(t.selection.isCollapsed()){const r=$(o,e);K(r,o=>{const r=Ns.fromRangeStart(t.selection.getRng());ew(e,t.getBody(),r).bind(e=>Kw(t,n,e))})}})(n,e,t,o.parents))}),t},Jw=O($w,!0),Xw=O($w,!1),Qw=(e,t,n)=>{if(fu(e)){const o=jw(e,t).getOrThunk(()=>{const n=e.selection.getRng();return t?Ns.fromRangeEnd(n):Ns.fromRangeStart(n)});return ew(O(Hh,e),e.getBody(),o).exists(t=>{const o=ow(t);return Hx(n,o).exists(t=>(qw(e,t),!0))})}return!1},eC=(e,t)=>n=>Hx(t,n).map(t=>()=>qw(e,t)),tC=(e,t,n,o)=>{const r=e.getBody(),a=O(Hh,e);e.undoManager.ignore(()=>{e.selection.setRng(((e,t)=>{const n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n})(n,o)),Yh(e),ew(a,r,Ns.fromRangeStart(e.selection.getRng())).map(rw).bind(eC(e,t)).each(N)}),e.nodeChanged()},nC=(e,t,n)=>{if(e.selection.isCollapsed()&&fu(e)){const o=Ns.fromRangeStart(e.selection.getRng());return((e,t,n,o)=>{const r=((e,t)=>Wd(t,e)||e)(e.getBody(),o.container()),a=O(Hh,e),i=ew(a,r,o);return i.bind(e=>n?e.fold(T(F.some(rw(e))),F.none,T(F.some(ow(e))),F.none):e.fold(F.none,T(F.some(ow(e))),F.none,T(F.some(rw(e))))).map(eC(e,t)).getOrThunk(()=>{const l=xp(n,r,o),s=l.bind(e=>ew(a,r,e));return Ue(i,s,()=>Gh(a,r,o).bind(t=>(e=>Ue(Tp(e),Ip(e),(t,n)=>{const o=Kh(!0,t),r=Kh(!1,n);return Ep(e,o).forall(e=>e.isEqual(r))}).getOr(!0))(t)?F.some(()=>{Uh(e,n,fn(t))}):F.none())).getOrThunk(()=>s.bind(()=>l.map(r=>()=>{n?tC(e,t,o,r):tC(e,t,r,o)})))})})(e,t,n,o)}return F.none()},oC=(e,t)=>{const n=fn(e.getBody()),o=fn(e.selection.getStart()),r=th(o,n);return ee(r,t).fold(T(r),e=>r.slice(0,e))},rC=e=>1===Zn(e),aC=(e,t)=>{const n=O(wv,e);return ne(t,e=>n(e)?[e.dom]:[])},iC=e=>{const t=(e=>oC(e,t=>e.schema.isBlock(wn(t))))(e);return aC(e,t)},lC=(e,t)=>{const n=$((e=>oC(e,t=>e.schema.isBlock(wn(t))||(e=>Zn(e)>1)(t)))(e),rC);return ue(n).bind(o=>{const r=Ns.fromRangeStart(e.selection.getRng());return tb(t,r,o.dom)&&!Tf(o)?F.some(()=>((e,t,n,o)=>{const r=aC(t,o);if(0===r.length)Uh(t,e,n);else{const e=xv(n.dom,r);t.selection.setRng(e.toRange())}})(t,e,o,n)):F.none()})},sC=(e,t)=>{const n=e.selection.getStart(),o=((e,t)=>{const n=t.parentElement;return la(t)&&!b(n)&&e.dom.isEmpty(n)})(e,n)||Tf(fn(n))?xv(n,t):((e,t)=>{const{caretContainer:n,caretPosition:o}=kv(t);return e.insertNode(n.dom),o})(e.selection.getRng(),t);e.selection.setRng(o.toRange())},cC=e=>ta(e.startContainer),uC=e=>{const t=e.selection.getRng();return(e=>0===e.startOffset&&cC(e))(t)&&((e,t)=>{const n=t.startContainer.parentElement;return!b(n)&&wv(e,fn(n))})(e,t)&&(e=>(e=>(e=>{const t=e.startContainer.parentNode,n=e.endContainer.parentNode;return!b(t)&&!b(n)&&t.isEqualNode(n)})(e)&&(e=>{const t=e.endContainer;return e.endOffset===(ta(t)?t.length:t.childNodes.length)})(e))(e)||(e=>!e.endContainer.isEqualNode(e.commonAncestorContainer))(e))(t)},dC=(e,t)=>e.selection.isCollapsed()?lC(e,t):(e=>{if(uC(e)){const t=iC(e);return F.some(()=>{Yh(e),((e,t)=>{const n=ae(t,iC(e));n.length>0&&sC(e,n)})(e,t)})}return F.none()})(e),pC=e=>((e=>{const t=e.selection.getRng();return t.collapsed&&(cC(t)||e.dom.isEmpty(t.startContainer))&&!(e=>{return t=fn(e.selection.getStart()),n=e.schema,_r(t,e=>Op(e.dom),e=>n.isBlock(wn(e)));var t,n})(e)})(e)&&sC(e,[]),!0),fC=(e,t,n)=>A(n)?F.some(()=>{e._selectionOverrides.hideFakeCaret(),Uh(e,t,fn(n))}):F.none(),mC=(e,t)=>e.selection.isCollapsed()?((e,t)=>{const n=t?Wg:$g,o=rp(t?1:-1,e.getBody(),e.selection.getRng());return n(o)?fC(e,t,o.getNode(!t)):F.from(Kh(t,o)).filter(e=>n(e)&&lp(o,e)).bind(n=>fC(e,t,n.getNode(!t)))})(e,t):((e,t)=>{const n=e.selection.getNode();return ga(n)?fC(e,t,n):F.none()})(e,t),gC=e=>ot(null!=e?e:"").getOr(0),hC=(e,t)=>(e||"table"===wn(t)?"margin":"padding")+("rtl"===Po(t,"direction")?"-right":"-left"),bC=e=>{const t=yC(e);return!e.mode.isReadOnly()&&(t.length>1||((e,t)=>oe(t,t=>{const n=hC(Jc(e),t),o=Fo(t,n).map(gC).getOr(0);return"false"!==e.dom.getContentEditable(t.dom)&&o>0}))(e,t))},vC=e=>Tl(e)||Il(e),yC=e=>$(To(e.selection.getSelectedBlocks()),e=>!vC(e)&&!(e=>Pn(e).exists(vC))(e)&&nr(e,e=>ua(e.dom)||da(e.dom)).exists(e=>ua(e.dom))),_C=(e,t)=>{var n,o;if(e.mode.isReadOnly())return;const{dom:r}=e,a=Xc(e),i=null!==(o=null===(n=/[a-z%]+$/i.exec(a))||void 0===n?void 0:n[0])&&void 0!==o?o:"px",l=gC(a),s=Jc(e);K(yC(e),e=>{((e,t,n,o,r,a)=>{const i=hC(n,fn(a)),l=gC(e.getStyle(a,i));if("outdent"===t){const t=Math.max(0,l-o);e.setStyle(a,i,t?t+r:"")}else{const t=l+o+r;e.setStyle(a,i,t)}})(r,t,s,l,i,e.dom)})},AC=e=>_C(e,"outdent"),kC=e=>{if(e.selection.isCollapsed()&&bC(e)){const t=e.dom,n=e.selection.getRng(),o=Ns.fromRangeStart(n),r=t.getParent(n.startContainer,t.isBlock);if(null!==r&&ih(fn(r),o,e.schema))return F.some(()=>AC(e))}return F.none()},xC=(e,t,n)=>pe([kC,Sx,yx,(e,n)=>nC(e,t,n),cx,Ib,Dx,mC,px,dC,Lx],t=>t(e,n)).filter(t=>e.selection.isEditable()),wC=e=>void 0===e.touches||1!==e.touches.length?F.none():F.some(e.touches[0]),CC=(e,t)=>Ce(e,t.nodeName),EC=(e,t)=>!!ta(t)||!!Kr(t)&&!(CC(e.getBlockElements(),t)||qp(t)||ja(e,t)||Ta(t)),SC=(e,t)=>{if(ta(t)){if(0===t.data.length)return!0;if(/^\s+$/.test(t.data))return!t.nextSibling||CC(e,t.nextSibling)||Ta(t.nextSibling)}return!1},TC=e=>e.dom.create(Oc(e),Lc(e)),IC=(e,t,n)=>{const o=fn(TC(e)),r=Dl();uo(o,r),n(t,o);const a=document.createRange();return a.setStartBefore(r.dom),a.setEndBefore(r.dom),a},BC=e=>t=>-1!==(" "+t.attr("class")+" ").indexOf(e),OC=(e,t,n)=>function(o){const r=arguments,a=r[r.length-2],i=a>0?t.charAt(a-1):"";if('"'===i)return o;if(">"===i){const e=t.lastIndexOf("<",a);if(-1!==e&&-1!==t.substring(e,a).indexOf('contenteditable="false"'))return o}return'<span class="'+n+'" data-mce-content="'+e.dom.encode(r[0])+'">'+e.dom.encode("string"==typeof r[1]?r[1]:r[0])+"</span>"},LC=(e,t)=>oe(e,e=>{const n=t.match(e);return null!==n&&n[0].length===t.length}),DC=(e,t)=>{t.hasAttribute("data-mce-caret")&&(Wl(t),e.selection.setRng(e.selection.getRng()),e.selection.scrollIntoView(t))},MC=(e,t)=>{const n=(e=>ar(fn(e.getBody()),"*[data-mce-caret]").map(e=>e.dom).getOrNull())(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void DC(e,n)):void(Hl(n)&&(DC(e,n),e.undoManager.add()))},NC=da,PC=(e,t,n)=>{const o=vp(e.getBody()),r=O(ip,1===t?o.next:o.prev);if(n.collapsed){const o=e.dom.getParent(n.startContainer,"PRE");if(!o)return;if(!r(Ns.fromRangeStart(n))){const n=fn((e=>{const t=e.dom.create(Oc(e));return t.innerHTML='<br data-mce-bogus="1">',t})(e));1===t?so(fn(o),n):lo(fn(o),n),e.selection.select(n.dom,!0),e.selection.collapse()}}},RC=(e,t)=>((e,t)=>{const n=t?1:-1,o=e.selection.getRng();return((e,t,n)=>zw(t,e,n,Xg,Qg,NC))(n,e,o).orThunk(()=>(PC(e,n,o),F.none()))})(e,((e,t)=>{const n=t?e.getEnd(!0):e.getStart(!0);return qh(n)?!t:t})(e.selection,t)).exists(t=>(Fw(e,t),!0)),FC=(e,t)=>((e,t)=>{const n=t?1:-1,o=e.selection.getRng();return((e,t,n)=>Uw(t,e,n,e=>Xg(e)||Yg(e),e=>Qg(e)||Jg(e),NC))(n,e,o).orThunk(()=>(PC(e,n,o),F.none()))})(e,t).exists(t=>(Fw(e,t),!0)),VC=(e,t)=>Hw(e,t,t?Qg:Xg),zC=(e,t)=>_x(e,!t).map(n=>{const o=n.toRange(),r=e.selection.getRng();return t?o.setStart(r.startContainer,r.startOffset):o.setEnd(r.endContainer,r.endOffset),o}).exists(t=>(Fw(e,t),!0)),UC=e=>H(["figcaption"],wn(e)),jC=(e,t)=>!!e.selection.isCollapsed()&&((e,t)=>{const n=fn(e.getBody()),o=Ns.fromRangeStart(e.selection.getRng());return((e,t,n)=>{const o=O(An,t);return nr(fn(e.container()),e=>n.isBlock(wn(e)),o).filter(UC)})(o,n,e.schema).exists(()=>{if(((e,t,n)=>t?kw(e.dom,n):Aw(e.dom,n))(n,t,o)){const o=IC(e,n,t?uo:co);return e.selection.setRng(o),!0}return!1})})(e,t),HC=(e,t)=>((e,t)=>t?F.from(e.dom.getParent(e.selection.getNode(),"details")).map(t=>((e,t)=>{const n=e.selection.getRng(),o=Ns.fromRangeStart(n);return!(e.getBody().lastChild!==t||!kw(t,o)||(e.execCommand("InsertNewBlockAfter"),0))})(e,t)).getOr(!1):F.from(e.dom.getParent(e.selection.getNode(),"summary")).bind(t=>F.from(e.dom.getParent(t,"details")).map(n=>((e,t,n)=>{const o=e.selection.getRng(),r=Ns.fromRangeStart(o);return!(e.getBody().firstChild!==t||!Aw(n,r)||(e.execCommand("InsertNewBlockBefore"),0))})(e,n,t))).getOr(!1))(e,t),qC={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},GC=(e,t)=>t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey,KC=(e,...t)=>()=>e.apply(null,t),ZC=(e,t)=>Q(((e,t)=>ne((e=>G(e,e=>({...qC,...e})))(e),e=>GC(e,t)?[e]:[]))(e,t),e=>e.action()),WC=(e,t)=>pe(((e,t)=>ne((e=>G(e,e=>({...qC,...e})))(e),e=>GC(e,t)?[e]:[]))(e,t),e=>e.action()),$C=(e,t)=>{const n=t?1:-1,o=e.selection.getRng();return zw(e,n,o,Wg,$g,ga).exists(t=>(Fw(e,t),!0))},YC=(e,t)=>{const n=t?1:-1,o=e.selection.getRng();return Uw(e,n,o,Wg,$g,ga).exists(t=>(Fw(e,t),!0))},JC=(e,t)=>Hw(e,t,t?$g:Wg),XC=(e,t,n)=>ne(Hn(e),e=>yn(e,t)?n(e)?[e]:[]:XC(e,t,n)),QC=(e,t)=>ir(e,"table",t),eE=Se([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),tE={...eE,none:e=>eE.none(e)},nE=(e,t,n,o,r=R)=>{const a=1===o;if(!a&&n<=0)return tE.first(e[0]);if(a&&n>=e.length-1)return tE.last(e[e.length-1]);{const a=n+o,i=e[a];return r(i)?tE.middle(t,i):nE(e,t,a,o,r)}},oE=(e,t)=>QC(e,t).bind(t=>{const n=XC(t,"th,td",R);return ee(n,t=>An(e,t)).map(e=>({index:e,all:n}))}),rE=Ne("image"),aE=Ne("event"),iE=e=>t=>{t[aE]=e},lE=iE(0),sE=iE(2),cE=iE(1),uE=e=>{const t=e;return F.from(t[aE]).exists(e=>0===e)};const dE=Ne("mode"),pE=e=>t=>{t[dE]=e},fE=(e,t)=>pE(t)(e),mE=pE(0),gE=pE(2),hE=pE(1),bE=e=>t=>{const n=t;return F.from(n[dE]).exists(t=>t===e)},vE=bE(0),yE=bE(1),_E=["none","copy","link","move"],AE=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],kE=()=>{const e=new window.DataTransfer;let t="move",n="all";const o={get dropEffect(){return t},set dropEffect(e){H(_E,e)&&(t=e)},get effectAllowed(){return n},set effectAllowed(e){uE(o)&&H(AE,e)&&(n=e)},get items(){return((e,t)=>({...t,get length(){return t.length},add:(n,o)=>{if(vE(e)){if(!f(n))return t.add(n);if(!y(o))return t.add(n,o)}return null},remove:n=>{vE(e)&&t.remove(n)},clear:()=>{vE(e)&&t.clear()}}))(o,e.items)},get files(){return yE(o)?Object.freeze({length:0,item:e=>null}):e.files},get types(){return e.types},setDragImage:(t,n,r)=>{var a;vE(o)&&(a={image:t,x:n,y:r},o[rE]=a,e.setDragImage(t,n,r))},getData:t=>yE(o)?"":e.getData(t),setData:(t,n)=>{vE(o)&&e.setData(t,n)},clearData:t=>{vE(o)&&e.clearData(t)}};return mE(o),o},xE=(e,t)=>e.setData("text/html",t),wE=(e,t,n,o,r)=>{const a=yr(fn(n),"td,th,caption").map(e=>e.dom),i=$(((e,t)=>ne(t,t=>{const n=((e,t)=>({left:e.left-t,top:e.top-t,right:e.right+-2,bottom:e.bottom+-2,width:e.width+t,height:e.height+t}))(Jl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))(e,a),e=>t(e,r));return((e,t,n)=>J(e,(e,o)=>e.fold(()=>F.some(o),e=>{const r=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),a=Math.sqrt(Math.abs(o.x-t)+Math.abs(o.y-n));return F.some(a<r?o:e)}),F.none()))(i,o,r).map(e=>e.cell)},CE=O(wE,e=>e.bottom,(e,t)=>e.y<t),EE=O(wE,e=>e.top,(e,t)=>e.y>t),SE=(e,t,n)=>{const o=e(t,n);return(e=>e.breakType===cw.Wrap&&0===e.positions.length)(o)||!la(n.getNode())&&(e=>e.breakType===cw.Br&&1===e.positions.length)(o)?!((e,t,n)=>n.breakAt.exists(n=>e(t,n).breakAt.isSome()))(e,t,o):o.breakAt.isNone()},TE=O(SE,bw),IE=O(SE,vw),BE=(e,t,n,o)=>{const r=e.selection.getRng(),a=t?1:-1;return!(!Ld()||!((e,t,n)=>{const o=Ns.fromRangeStart(t);return Cp(!e,n).exists(e=>e.isEqual(o))})(t,r,n)||(fx(a,e,n,!t,!1).each(t=>{Fw(e,t)}),0))},OE=(e,t,n)=>{const o=((e,t)=>{const n=t.getNode(e);return Xr(n)?F.some(n):F.none()})(!!t,n),r=!1===t;o.fold(()=>Fw(e,n.toRange()),o=>Cp(r,e.getBody()).filter(e=>e.isEqual(n)).fold(()=>Fw(e,n.toRange()),n=>((e,t,n)=>{t.undoManager.transact(()=>{const o=e?so:lo,r=IC(t,fn(n),o);Fw(t,r)})})(t,e,o)))},LE=(e,t,n,o)=>{const r=e.selection.getRng(),a=Ns.fromRangeStart(r),i=e.getBody();if(!t&&TE(o,a)){const o=((e,t,n)=>((e,t)=>ce(t.getClientRects()).bind(t=>CE(e,t.left,t.top)).bind(e=>{return hw(Ip(n=e).map(e=>bw(n,e).positions.concat(e)).getOr([]),t);var n}))(t,n).orThunk(()=>ce(n.getClientRects()).bind(n=>gw(yw(e,Ns.before(t)),n.left))).getOr(Ns.before(t)))(i,n,a);return OE(e,t,o),!0}if(t&&IE(o,a)){const o=((e,t,n)=>((e,t)=>ue(t.getClientRects()).bind(t=>EE(e,t.left,t.top)).bind(e=>{return hw(Tp(n=e).map(e=>[e].concat(vw(n,e).positions)).getOr([]),t);var n}))(t,n).orThunk(()=>ce(n.getClientRects()).bind(n=>gw(_w(e,Ns.after(t)),n.left))).getOr(Ns.after(t)))(i,n,a);return OE(e,t,o),!0}return!1},DE=(e,t,n)=>F.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(o=>F.from(e.dom.getParent(o,"table")).map(r=>n(e,t,r,o))).getOr(!1),ME=(e,t)=>DE(e,t,BE),NE=(e,t)=>DE(e,t,LE),PE=(e,t,n)=>n.fold(F.none,F.none,(e,t)=>{return(n=t,or(n,Er)).map(e=>(e=>{const t=Or.exact(e,0,e,0);return Nr(t)})(e));var n},n=>e.mode.isReadOnly()||!RE(n)?F.none():(e.execCommand("mceTableInsertRowAfter"),FE(e,t,n))),RE=e=>nr(e,Ln("table")).exists(gr),FE=(e,t,n)=>{return PE(e,t,(r=zE,oE(o=n,void 0).fold(()=>tE.none(o),e=>nE(e.all,o,e.index,1,r))));var o,r},VE=(e,t,n)=>{return PE(e,t,(r=zE,oE(o=n,void 0).fold(()=>tE.none(),e=>nE(e.all,o,e.index,-1,r))));var o,r},zE=e=>gr(e)||kr(e,UE),UE=e=>Sn(e)&&gr(e),jE=(e,t)=>{const n=["table","li","dl"],o=fn(e.getBody()),r=e=>{const t=wn(e);return An(e,o)||H(n,t)},a=e.selection.getRng();return((e,t)=>((e,t,n=P)=>n(t)?F.none():H(e,wn(t))?F.some(t):rr(t,e.join(","),e=>yn(e,"table")||n(e)))(["td","th"],e,t))(fn(t?a.endContainer:a.startContainer),r).map(n=>(QC(n,r).each(t=>{e.model.table.clearSelectedCells(t.dom)}),e.selection.collapse(!t),(t?FE:VE)(e,r,n).each(t=>{e.selection.setRng(t)}),!0)).getOr(!1)},HE=(e,t)=>({container:e,offset:t}),qE=rl.DOM,GE=e=>t=>e===t?-1:0,KE=(e,t,n)=>{if(ta(e)&&t>=0)return F.some(HE(e,t));{const o=wl(qE);return F.from(o.backwards(e,t,GE(e),n)).map(e=>HE(e.container,e.container.data.length))}},ZE=(e,t,n)=>{if(!ta(e))return F.none();const o=e.data;if(t>=0&&t<=o.length)return F.some(HE(e,t));{const o=wl(qE);return F.from(o.backwards(e,t,GE(e),n)).bind(e=>{const o=e.container.data;return ZE(e.container,t+o.length,n)})}},WE=(e,t,n)=>{if(!ta(e))return F.none();const o=e.data;if(t<=o.length)return F.some(HE(e,t));{const r=wl(qE);return F.from(r.forwards(e,t,GE(e),n)).bind(e=>WE(e.container,t-o.length,n))}},$E=(e,t,n,o,r)=>{const a=wl(e,(e=>t=>e.isBlock(t)||H(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t))(e));return F.from(a.backwards(t,n,o,r))},YE=e=>""!==e&&-1!==" Â \ufeff\f\n\r\t\v".indexOf(e),JE=(e,t)=>e.substring(t.length),XE=(e,t,n,o=!1)=>
2{if(!(r=t).collapsed||!ta(r.startContainer))return F.none();var r;const a={text:"",offset:0},i=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return $E(e,t.startContainer,t.startOffset,(e,t,r)=>(a.text=r+a.text,a.offset+=t,((e,t,n,o=!1)=>{let r;const a=n.charAt(0);for(r=t-1;r>=0;r--){const i=e.charAt(r);if(!o&&YE(i))return F.none();if(a===i&&We(e,n,r,t))break}return F.some(r)})(a.text,a.offset,n,o).getOr(t)),i).bind(e=>{const o=t.cloneRange();if(o.setStart(e.container,e.offset),o.setEnd(t.endContainer,t.endOffset),o.collapsed)return F.none();const r=(e=>Rl(e.toString().replace(/\u00A0/g," ")))(o);return 0!==r.lastIndexOf(n)?F.none():F.some({text:JE(r,n),range:o,trigger:n})})},QE=e=>{if((e=>3===e.nodeType)(e))return HE(e,e.data.length);{const t=e.childNodes;return t.length>0?QE(t[t.length-1]):HE(e,t.length)}},eS=(e,t)=>{const n=e.childNodes;return n.length>0&&t<n.length?eS(n[t],0):n.length>0&&(e=>1===e.nodeType)(e)&&n.length===t?QE(n[n.length-1]):HE(e,t)},tS=(e,t,n,o={})=>{var r;const a=t(),i=null!==(r=e.selection.getRng().startContainer.nodeValue)&&void 0!==r?r:"",l=$(a.lookupByTrigger(n.trigger),t=>n.text.length>=t.minChars&&t.matches.getOrThunk(()=>(e=>t=>{const n=eS(t.startContainer,t.startOffset);return!((e,t)=>{var n;const o=null!==(n=e.getParent(t.container,e.isBlock))&&void 0!==n?n:e.getRoot();return $E(e,t.container,t.offset,(e,t)=>0===t?-1:t,o).filter(e=>{const t=e.container.data.charAt(e.offset-1);return!YE(t)}).isSome()})(e,n)})(e.dom))(n.range,i,n.text));if(0===l.length)return F.none();const s=Promise.all(G(l,e=>e.fetch(n.text,e.maxResults,o).then(t=>({matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}))));return F.some({lookupData:s,context:n})};var nS;!function(e){e[e.Error=0]="Error",e[e.Value=1]="Value"}(nS||(nS={}));const oS=(e,t,n)=>e.stype===nS.Error?t(e.serror):n(e.svalue),rS=e=>({stype:nS.Value,svalue:e}),aS=e=>({stype:nS.Error,serror:e}),iS=oS,lS=e=>m(e)&&me(e).length>100?" removed due to size":JSON.stringify(e,null,2),sS=(e,t)=>aS([{path:e,getErrorInfo:t}]),cS=e=>({extract:(t,n)=>{return o=e(n),r=e=>((e,t)=>sS(e,T(t)))(t,e),o.stype===nS.Error?r(o.serror):o;var o,r},toString:T("val")}),uS=cS(rS),dS=T(uS),pS=(e,t)=>cS(n=>{const o=typeof n;return e(n)?rS(n):aS(`Expected type: ${t} but got: ${o}`)}),fS=pS(x,"number"),mS=pS(f,"string"),gS=pS(v,"boolean"),hS=pS(k,"function"),bS=e=>{if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every(t=>bS(e[t]));default:return!1}};cS(e=>bS(e)?rS(e):aS("Expected value to be acceptable for sending via postMessage"));const vS=e=>({tag:"defaultedThunk",process:T(e)}),yS=(e,t,n)=>{switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}},_S=e=>{const t=(e=>{const t=[],n=[];return K(e,e=>{oS(e,e=>n.push(e),e=>t.push(e))}),{values:t,errors:n}})(e);return t.errors.length>0?(n=t.errors,E(aS,te)(n)):rS(t.values);var n},AS=(e,t,n,o)=>o(we(e,t).getOrThunk(()=>n(e))),kS=(e,t,n,o,r)=>{const a=e=>r.extract(t.concat([o]),e),i=e=>e.fold(()=>rS(F.none()),e=>{const n=r.extract(t.concat([o]),e);return a=n,i=F.some,a.stype===nS.Value?{stype:nS.Value,svalue:i(a.svalue)}:a;var a,i});switch(e.tag){case"required":return((e,t,n,o)=>we(t,n).fold(()=>((e,t,n)=>sS(e,()=>'Could not find valid *required* value for "'+t+'" in '+lS(n)))(e,n,t),o))(t,n,o,a);case"defaultedThunk":return AS(n,o,e.process,a);case"option":return((e,t,n)=>n(we(e,t)))(n,o,i);case"defaultedOptionThunk":return((e,t,n,o)=>o(we(e,t).map(t=>!0===t?n(e):t)))(n,o,e.process,i);case"mergeWithThunk":return AS(n,o,T({}),t=>{const o=Re(e.process(n),t);return a(o)})}},xS=e=>({extract:(t,n)=>((e,t,n)=>{const o={},r=[];for(const a of n)yS(a,(n,a,i,l)=>{const s=kS(i,e,t,n,l);iS(s,e=>{r.push(...e)},e=>{o[a]=e})},(e,n)=>{o[e]=n(t)});return r.length>0?aS(r):rS(o)})(t,n,e),toString:()=>{const t=G(e,e=>yS(e,(e,t,n,o)=>e+" -> "+o.toString(),(e,t)=>"state("+e+")"));return"obj{\n"+t.join("\n")+"}"}}),wS=(e,t,n)=>{return o=((e,t,n)=>((e,t)=>e.stype===nS.Error?{stype:nS.Error,serror:t(e.serror)}:e)(t.extract([e],n),e=>({input:n,errors:e})))(e,t,n),oS(o,Oe.error,Oe.value);var o},CS=(e,t,n,o)=>({tag:"field",key:e,newKey:t,presence:n,prop:o}),ES=(e,t)=>CS(e,e,{tag:"required",process:{}},t),SS=e=>ES(e,mS),TS=e=>ES(e,hS),IS=(e,t)=>CS(e,e,{tag:"option",process:{}},t),BS=e=>IS(e,mS),OS=e=>IS(e,hS),LS=(e,t)=>CS(e,e,vS(t),dS()),DS=(e,t,n)=>CS(e,e,vS(t),n),MS=(e,t)=>DS(e,t,fS),NS=(e,t)=>DS(e,t,gS),PS=(e,t)=>DS(e,t,hS),RS=SS("type");SS("name"),SS("label"),SS("text"),SS("title"),SS("icon"),SS("url");const FS=SS("value"),VS=TS("fetch");TS("getSubmenuItems");const zS=TS("onAction");TS("onItemAction"),PS("onSetup",()=>C),BS("name");const US=BS("text");BS("role");const jS=BS("icon");BS("url"),BS("tooltip"),BS("label"),BS("shortcut"),OS("select");const HS=NS("active",!1);NS("borderless",!1);const qS=NS("enabled",!0);NS("primary",!1);const GS=LS("meta",{});PS("onAction",C),xS([(()=>DS("type","autocompleteitem",mS))(0,"autocompleteitem"),HS,qS,GS,FS,US,jS]);const KS=xS([RS,SS("trigger"),MS("minChars",1),LS("columns",1),MS("maxResults",10),OS("matches"),VS,zS,(ZS=mS,DS("highlightOn",[],(WS=ZS,{extract:(e,t)=>
vendor: 18,592 bytes, line 2
2{const n=G(t,(t,n)=>WS.extract(e.concat(["["+n+"]"]),t));return _S(n)},toString:()=>"array("+WS.toString()+")"})))]);var ZS,WS;const $S=e=>{const t=e.ui.registry.getAll().popups,n=be(t,e=>{return(t=e,wS("Autocompleter",KS,t)).fold(e=>{throw new Error("Errors: \n"+(e=>{const t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:T("... (only showing first ten failures)")}]):e;return G(t,e=>"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo())})((t=e).errors).join("\n")+"\n\nInput object: "+lS(t.input));var t},I);var t}),o=ut(ke(n,e=>e.trigger)),r=xe(n);return{dataset:n,triggers:o,lookupByTrigger:e=>$(r,t=>t.trigger===e)}},YS=e=>{const t=Ge(),n=Te(!1),o=t.isSet,r=()=>{o()&&((e=>{e.dispatch("AutocompleterEnd")})(e),n.set(!1),t.clear())},a=it(()=>$S(e)),i=i=>{(n=>t.get().map(t=>XE(e.dom,e.selection.getRng(),t.trigger,!0).bind(t=>tS(e,a,t,n))).getOrThunk(()=>((e,t)=>{const n=t(),o=e.selection.getRng();return((e,t,n)=>pe(n.triggers,n=>XE(e,t,n)))(e.dom,o,n).bind(n=>tS(e,t,n))})(e,a)))(i).fold(r,r=>{(e=>{o()||t.set({trigger:e.trigger,matchLength:e.text.length})})(r.context),r.lookupData.then(o=>{t.get().map(a=>{const i=r.context;a.trigger===i.trigger&&(t.set({...a,matchLength:i.text.length}),n.get()?(gc(e,{range:i.range}),((e,t)=>{e.dispatch("AutocompleterUpdate",t)})(e,{lookupData:o})):(n.set(!0),gc(e,{range:i.range}),((e,t)=>{e.dispatch("AutocompleterStart",t)})(e,{lookupData:o})))})})})},l=()=>t.get().bind(({trigger:t})=>{const o=e.selection.getRng();return XE(e.dom,o,t,n.get()).filter(({range:e})=>((e,t)=>{const n=e.compareBoundaryPoints(window.Range.START_TO_START,t),o=e.compareBoundaryPoints(window.Range.END_TO_END,t);return n>=0&&o<=0})(o,e)).map(({range:e})=>e)});e.addCommand("mceAutocompleterReload",(e,t)=>{const n=m(t)?t.fetchOptions:{};i(n)}),e.addCommand("mceAutocompleterClose",r),e.addCommand("mceAutocompleterRefreshActiveRange",()=>{l().each(t=>{gc(e,{range:t})})}),e.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>l().isSome()),((e,t)=>{const n=at(t.load,50);e.on("input",t=>{("insertCompositionText"!==t.inputType||e.composing)&&n.throttle()}),e.on("keydown",e=>{const o=e.which;8===o?n.throttle():27===o?(n.cancel(),t.cancelIfNecessary()):38!==o&&40!==o||n.cancel()},!0),e.on("remove",n.cancel)})(e,{cancelIfNecessary:r,load:i})},JS=Wt().browser.isSafari(),XS=e=>Ml(fn(e)),QS=(e,t)=>{var n;return 0===e.startOffset&&e.endOffset===(null===(n=t.textContent)||void 0===n?void 0:n.length)},eT=(e,t)=>F.from(e.getParent(t.container(),"details")),tT=(e,t)=>eT(e,t).isSome(),nT=(e,t)=>{const n=t.getNode();y(n)||e.selection.setCursorLocation(n,t.offset())},oT=(e,t,n)=>{const o=e.dom.getParent(t.container(),"details");if(o&&!o.open){const t=e.dom.select("summary",o)[0];t&&(n?Tp(t):Ip(t)).each(t=>nT(e,t))}else nT(e,t)},rT=(e,t,n)=>{const{dom:o,selection:r}=e,a=e.getBody();if("character"===n){const n=Ns.fromRangeStart(r.getRng()),i=o.getParent(n.container(),o.isBlock),l=eT(o,n),s=i&&o.isEmpty(i),c=b(null==i?void 0:i.previousSibling),u=b(null==i?void 0:i.nextSibling);return!!(s&&(t?u:c)&&xp(!t,a,n).exists(e=>tT(o,e)&&!ze(l,eT(o,e))))||xp(t,a,n).fold(P,n=>{const r=eT(o,n);if(tT(o,n)&&!ze(l,r)){if(t||oT(e,n,!1),i&&s){if(t&&c)return!0;if(!t&&u)return!0;oT(e,n,t),e.dom.remove(i)}return!0}return!1})}return!1},aT=(e,t,n,o)=>{const r=e.selection.getRng(),a=Ns.fromRangeStart(r),i=e.getBody();return"selection"===o?((e,t)=>{const n=t.startSummary.exists(t=>t.contains(e.startContainer)),o=t.startSummary.exists(t=>t.contains(e.endContainer)),r=t.startDetails.forall(e=>t.endDetails.forall(t=>e!==t));return(n||o)&&!(n&&o)||r})(r,t):n?((e,t)=>t.startSummary.exists(t=>((e,t)=>Ip(t).exists(n=>la(n.getNode())&&Sp(t,n).exists(t=>t.isEqual(e))||n.isEqual(e)))(e,t)))(a,t)||((e,t,n)=>n.startDetails.exists(n=>Ep(e,t).forall(e=>!n.contains(e.container()))))(i,a,t):((e,t)=>t.startSummary.exists(t=>((e,t)=>Tp(t).exists(t=>t.isEqual(e)))(e,t)))(a,t)||((e,t)=>t.startDetails.exists(n=>Sp(n,e).forall(n=>t.startSummary.exists(t=>!t.contains(e.container())&&t.contains(n.container())))))(a,t)},iT=(e,t,n)=>((e,t,n)=>((e,t)=>{const n=F.from(e.getParent(t.startContainer,"details")),o=F.from(e.getParent(t.endContainer,"details"));if(n.isSome()||o.isSome()){const t=n.bind(t=>F.from(e.select("summary",t)[0]));return F.some({startSummary:t,startDetails:n,endDetails:o})}return F.none()})(e.dom,e.selection.getRng()).fold(()=>rT(e,t,n),o=>aT(e,o,t,n)||rT(e,t,n)))(e,t,n)||JS&&((e,t,n)=>{const o=e.selection,r=o.getNode(),a=o.getRng(),i=Ns.fromRangeStart(a);return!!va(r)&&("selection"===n&&QS(a,r)||tb(t,i,r)?XS(r):e.undoManager.transact(()=>{const a=o.getSel();let{anchorNode:i,anchorOffset:l,focusNode:s,focusOffset:c}=null!=a?a:{};const u=()=>{A(i)&&A(l)&&A(s)&&A(c)&&(null==a||a.setBaseAndExtent(i,l,s,c))},d=(e,t)=>{K(e.childNodes,e=>{lf(e)&&t.appendChild(e)})},p=e.dom.create("span",{"data-mce-bogus":"1"});d(r,p),r.appendChild(p),u(),"word"!==n&&"line"!==n||null==a||a.modify("extend",t?"right":"left",n),!o.isCollapsed()&&QS(o.getRng(),p)?XS(r):(e.execCommand(t?"ForwardDelete":"Delete"),i=null==a?void 0:a.anchorNode,l=null==a?void 0:a.anchorOffset,s=null==a?void 0:a.focusNode,c=null==a?void 0:a.focusOffset,d(p,r),u()),e.dom.remove(p)}),!0)})(e,t,n)?F.some(C):F.none(),lT=e=>(t,n,o={})=>{const r=t.getBody(),a={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:r,currentTarget:r,eventPhase:Event.AT_TARGET,originalTarget:r,explicitOriginalTarget:r,isTrusted:!1,srcElement:r,cancelable:!1,preventDefault:C,inputType:n},i=Ui(new InputEvent(e));return t.dispatch(e,{...i,...a,...o})},sT=lT("input"),cT=lT("beforeinput"),uT=Wt(),dT=uT.os,pT=dT.isMacOS()||dT.isiOS(),fT=uT.browser.isFirefox(),mT=(e,t)=>{const n=e.dom,o=e.schema.getMoveCaretBeforeOnEnterElements();if(!t)return;if(/^(LI|DT|DD)$/.test(t.nodeName)){const e=(e=>{for(;e;){if(Kr(e)||ta(e)&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}return null})(t.firstChild);e&&/^(UL|OL|DL)$/.test(e.nodeName)&&t.insertBefore(n.doc.createTextNode(st),t.firstChild)}const r=n.createRng();if(t.normalize(),t.hasChildNodes()){const e=new Vr(t,t);let n,a=t;for(;n=e.current();){if(ta(n)){r.setStart(n,0),r.setEnd(n,0);break}if(o[n.nodeName.toLowerCase()]){r.setStartBefore(n),r.setEndBefore(n);break}a=n,n=e.next()}n||(r.setStart(a,0),r.setEnd(a,0))}else la(t)?t.nextSibling&&n.isBlock(t.nextSibling)?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)):(r.setStart(t,0),r.setEnd(t,0));e.selection.setRng(r),og(e,r)},gT=(e,t)=>{const n=e.getRoot();let o,r=t;for(;r!==n&&r&&"false"!==e.getContentEditable(r);){if("true"===e.getContentEditable(r)){o=r;break}r=r.parentNode}return r!==n?o:n},hT=e=>F.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock)),bT=e=>{e.innerHTML='<br data-mce-bogus="1">'},vT=(e,t)=>{Oc(e).toLowerCase()===t.tagName.toLowerCase()&&((e,t,n)=>{const o=e.dom;F.from(n.style).map(o.parseStyle).each(e=>{const n={...Vo(fn(t)),...e};o.setStyles(t,n)});const r=F.from(n.class).map(e=>e.split(/\s+/)),a=F.from(t.className).map(e=>$(e.split(/\s+/),e=>""!==e));Ue(r,a,(e,n)=>{const r=$(n,t=>!H(e,t)),a=[...e,...r];o.setAttrib(t,"class",a.join(" "))});const i=["style","class"],l=Ae(n,(e,t)=>!H(i,t));o.setAttribs(t,l)})(e,t,Lc(e))},yT=(e,t,n,o,r=!0,a,i)=>{const l=e.dom,s=e.schema,c=Oc(e),u=n?n.nodeName.toUpperCase():"";let d=t;const p=s.getTextInlineElements();let f;f=a||"TABLE"===u||"HR"===u?l.create(a||c,i||{}):n.cloneNode(!1);let m=f;if(r){do{if(p[d.nodeName]){if(Op(d)||qp(d))continue;const e=d.cloneNode(!1);l.setAttrib(e,"id",""),f.hasChildNodes()?(e.appendChild(f.firstChild),f.appendChild(e)):(m=e,f.appendChild(e))}}while((d=d.parentNode)&&d!==o)}else l.setAttrib(f,"style",null),l.setAttrib(f,"class",null);return vT(e,f),bT(m),f},_T=(e,t)=>{const n=null==e?void 0:e.parentNode;return A(n)&&n.nodeName===t},AT=e=>A(e)&&/^(OL|UL|LI)$/.test(e.nodeName),kT=e=>A(e)&&/^(LI|DT|DD)$/.test(e.nodeName),xT=e=>{const t=e.parentNode;return kT(t)?t:e},wT=(e,t,n)=>{let o=e[n?"firstChild":"lastChild"];for(;o&&!Kr(o);)o=o[n?"nextSibling":"previousSibling"];return o===t},CT=e=>J(ke(Vo(fn(e)),(e,t)=>`${t}: ${e};`),(e,t)=>e+t,""),ET=(e,t)=>t&&"A"===t.nodeName&&e.isEmpty(t),ST=(e,t)=>e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t,TT=(e,t)=>A(t)&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&e.isEditable(t.parentNode)&&"false"!==e.getContentEditable(t),IT=(e,t,n)=>ta(t)?e?1===n&&t.data.charAt(n-1)===Nl?0:n:n===t.data.length-1&&t.data.charAt(n)===Nl?t.data.length:n:n,BT={insert:(e,t)=>{let n,o,r,a,i=!1;const l=e.dom,s=e.schema.getNonEmptyElements(),c=e.selection.getRng(),u=Oc(e),d=fn(c.startContainer),p=qn(d,c.startOffset),m=p.exists(e=>Sn(e)&&!gr(e)),g=c.collapsed&&m,h=(t,o)=>yT(e,n,C,w,Pc(e),t,o),v=e=>{const t=IT(e,n,o);if(ta(n)&&(e?t>0:t<n.data.length))return!1;if((n.parentNode===C||n===C)&&i&&!e)return!0;if(e&&Kr(n)&&n===C.firstChild)return!0;if(ST(n,"TABLE")||ST(n,"HR"))return(e=>"BR"===e.nodeName||e.nextSibling&&"BR"===e.nextSibling.nodeName)(n)?!e:i&&!e||!i&&e;const r=new Vr(n,C);let a;for(ta(n)&&(e&&0===t?r.prev():e||t!==n.data.length||r.next());a=r.current();){if(Kr(a)){if(!a.getAttribute("data-mce-bogus")){const e=a.nodeName.toLowerCase();if(s[e]&&"br"!==e)return!1}}else if(ta(a)&&!Ur(a.data))return!1;e?r.prev():r.next()}return!0},y=()=>{let t;return t=/^(H[1-6]|PRE|FIGURE)$/.test(r)&&"HGROUP"!==E?h(u):h(),((e,t)=>{const n=Rc(e);return!_(t)&&(f(n)?H(sn.explode(n),t.nodeName.toLowerCase()):n)})(e,a)&&TT(l,a)&&l.isEmpty(C,void 0,{includeZwsp:!0})?t=l.split(a,C):l.insertAfter(t,C),mT(e,t),t};Fm(l,c).each(e=>{c.setStart(e.startContainer,e.startOffset),c.setEnd(e.endContainer,e.endOffset)}),n=c.startContainer,o=c.startOffset;const k=!(!t||!t.shiftKey),x=!(!t||!t.ctrlKey);Kr(n)&&n.hasChildNodes()&&!g&&(i=o>n.childNodes.length-1,n=n.childNodes[Math.min(o,n.childNodes.length-1)]||n,o=i&&ta(n)?n.data.length:0);const w=gT(l,n);if(!w||((e,t)=>{const n=e.dom.getParent(t,"ol,ul,dl");return null!==n&&"false"===e.dom.getContentEditableParent(n)})(e,n))return;k||(n=((e,t,n,o,r)=>{var a,i;const l=e.dom,s=null!==(a=gT(l,o))&&void 0!==a?a:l.getRoot();let c=l.getParent(o,l.isBlock);if(!c||!TT(l,c)){if(c=c||s,!c.hasChildNodes()){const o=l.create(t);return vT(e,o),c.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o}let a,u=o;for(;u&&u.parentNode!==c;)u=u.parentNode;for(;u&&!l.isBlock(u);)a=u,u=u.previousSibling;const d=null===(i=null==a?void 0:a.parentElement)||void 0===i?void 0:i.nodeName;if(a&&d&&e.schema.isValidChild(d,t.toLowerCase())){const i=a.parentNode,s=l.create(t);for(vT(e,s),i.insertBefore(s,a),u=a;u&&!l.isBlock(u);){const e=u.nextSibling;s.appendChild(u),u=e}n.setStart(o,r),n.setEnd(o,r)}}return o})(e,u,c,n,o));let C=l.getParent(n,l.isBlock)||l.getRoot();a=A(null==C?void 0:C.parentNode)?l.getParent(C.parentNode,l.isBlock):null,r=C?C.nodeName.toUpperCase():"";const E=a?a.nodeName.toUpperCase():"";if("LI"!==E||x||(C=a,a=a.parentNode,r=E),Kr(a)&&((e,t,n)=>!t&&n.nodeName.toLowerCase()===Oc(e)&&e.dom.isEmpty(n)&&((e,t,n)=>{let o=t;for(;o&&o!==e&&b(o.nextSibling);){const e=o.parentElement;if(!e||!n(e))return ba(e);o=e}return!1})(e.getBody(),n,t=>Ce(e.schema.getTextBlockElements(),t.nodeName.toLowerCase())))(e,k,C))return((e,t,n)=>{var o,r,a;const i=t(Oc(e)),l=((e,t)=>e.dom.getParent(t,ba))(e,n);l&&(e.dom.insertAfter(i,l),mT(e,i),(null!==(a=null===(r=null===(o=n.parentElement)||void 0===o?void 0:o.childNodes)||void 0===r?void 0:r.length)&&void 0!==a?a:0)>1&&e.dom.remove(n))})(e,h,C);if(/^(LI|DT|DD)$/.test(r)&&Kr(a)&&l.isEmpty(C))return void((e,t,n,o,r)=>{const a=e.dom,i=e.selection.getRng(),l=n.parentNode;if(n===e.getBody()||!l)return;var s;AT(s=n)&&AT(s.parentNode)&&(r="LI");const c=kT(o)?CT(o):void 0;let u=kT(o)&&c?t(r,{style:CT(o)}):t(r);if(wT(n,o,!0)&&wT(n,o,!1))if(_T(n,"LI")){const e=xT(n);a.insertAfter(u,e),(e=>{var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e})(n)?a.remove(e):a.remove(n)}else a.replace(u,n);else if(wT(n,o,!0))_T(n,"LI")?(a.insertAfter(u,xT(n)),u.appendChild(a.doc.createTextNode(" ")),u.appendChild(n)):l.insertBefore(u,n),a.remove(o);else if(wT(n,o,!1))a.insertAfter(u,xT(n)),a.remove(o);else{n=xT(n);const e=i.cloneRange();e.setStartAfter(o),e.setEndAfter(n);const t=e.extractContents();if("LI"===r&&(e=>e.firstChild&&"LI"===e.firstChild.nodeName)(t)){const e=$(G(u.children,fn),L(Ln("br")));u=t.firstChild,a.insertAfter(t,n),K(e,e=>co(fn(u),e)),c&&u.setAttribute("style",c)}else a.insertAfter(t,n),a.insertAfter(u,n);a.remove(o)}mT(e,u)})(e,h,a,C,u);if(!(g||C!==e.getBody()&&TT(l,C)))return;const S=C.parentNode;let T;if(g)T=h(u),p.fold(()=>{uo(d,fn(T))},e=>{lo(e,fn(T))}),e.selection.setCursorLocation(T,0);else if(zl(C))T=Wl(C),l.isEmpty(C)&&bT(C),vT(e,T),mT(e,T);else if(v(!1))T=y();else if(v(!0)&&S){const t=Ns.fromRangeStart(c),n=Jg(t),o=fn(C),r=fh(o,t,e.schema)?mh(o,t,e.schema).bind(e=>F.from(e.getNode())):F.none();T=S.insertBefore(h(),C);const a=ST(C,"HR")||n?T:r.getOr(C);mT(e,a)}else{const t=(e=>{const t=e.cloneRange();return t.setStart(e.startContainer,IT(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,IT(!1,e.endContainer,e.endOffset)),t})(c).cloneRange();t.setEndAfter(C);const n=t.extractContents();(e=>{K(vr(fn(e),In),e=>{const t=e.dom;t.nodeValue=Rl(t.data)})})(n),(e=>{let t=e;do{ta(t)&&(t.data=t.data.replace(/^[\r\n]+/,"")),t=t.firstChild}while(t)})(n),T=n.firstChild,l.insertAfter(n,C),((e,t,n)=>{var o;const r=[];if(!n)return;let a=n;for(;a=a.firstChild;){if(e.isBlock(a))return;Kr(a)&&!t[a.nodeName.toLowerCase()]&&r.push(a)}let i=r.length;for(;i--;)a=r[i],(!a.hasChildNodes()||a.firstChild===a.lastChild&&""===(null===(o=a.firstChild)||void 0===o?void 0:o.nodeValue)||ET(e,a))&&e.remove(a)})(l,s,T),((e,t)=>{t.normalize();const n=t.lastChild;(!n||Kr(n)&&/^(left|right)$/gi.test(e.getStyle(n,"float",!0)))&&e.add(t,"br")})(l,C),l.isEmpty(C)&&bT(C),T.normalize(),l.isEmpty(T)?(l.remove(T),y()):(vT(e,T),mT(e,T))}l.setAttrib(T,"id",""),e.dispatch("NewBlock",{newBlock:T})},fakeEventName:"insertParagraph"},OT=(e,t,n)=>{const o=e.dom.createRng();n?(o.setStartBefore(t),o.setEndBefore(t)):(o.setStartAfter(t),o.setEndAfter(t)),e.selection.setRng(o),og(e,o)},LT=(e,t)=>{const n=dn("br");lo(fn(t),n),e.undoManager.add()},DT=(e,t)=>{MT(e.getBody(),t)||so(fn(t),dn("br"));const n=dn("br");so(fn(t),n),OT(e,n.dom,!1),e.undoManager.add()},MT=(e,t)=>{return n=Ns.after(t),!!la(n.getNode())||Ep(e,Ns.after(t)).map(e=>la(e.getNode())).getOr(!1);var n},NT=e=>e&&"A"===e.nodeName&&"href"in e,PT=e=>e.fold(P,NT,NT,P),RT=(e,t)=>{t.fold(C,O(LT,e),O(DT,e),C)},FT={insert:(e,t)=>{const n=(e=>{const t=O(Hh,e),n=Ns.fromRangeStart(e.selection.getRng());return ew(t,e.getBody(),n).filter(PT)})(e);n.isSome()?n.each(O(RT,e)):((e,t)=>{const n=e.selection,o=e.dom,r=n.getRng();let a,i=!1;Fm(o,r).each(e=>{r.setStart(e.startContainer,e.startOffset),r.setEnd(e.endContainer,e.endOffset)});let l=r.startOffset,s=r.startContainer;if(Kr(s)&&s.hasChildNodes()){const e=l>s.childNodes.length-1;s=s.childNodes[Math.min(l,s.childNodes.length-1)]||s,l=e&&ta(s)?s.data.length:0}let c=o.getParent(s,o.isBlock);const u=c&&c.parentNode?o.getParent(c.parentNode,o.isBlock):null,d=u?u.nodeName.toUpperCase():"",p=!(!t||!t.ctrlKey);"LI"!==d||p||(c=u),ta(s)&&l>=s.data.length&&(((e,t,n)=>{const o=new Vr(t,n);let r;const a=e.getNonEmptyElements();for(;r=o.next();)if(a[r.nodeName.toLowerCase()]||ta(r)&&r.length>0)return!0;return!1})(e.schema,s,c||o.getRoot())||(a=o.create("br"),r.insertNode(a),r.setStartAfter(a),r.setEndAfter(a),i=!0)),a=o.create("br"),Rs(o,r,a),OT(e,a,i),e.undoManager.add()})(e,t)},fakeEventName:"insertLineBreak"},VT=(e,t)=>hT(e).filter(e=>t.length>0&&yn(fn(e),t)).isSome(),zT=Se([{br:[]},{block:[]},{none:[]}]),UT=(e,t)=>(e=>VT(e,Nc(e)))(e),jT=e=>(t,n)=>(e=>hT(e).filter(e=>Il(fn(e))).isSome())(t)===e,HT=(e,t)=>(n,o)=>{const r=(e=>hT(e).fold(T(""),e=>e.nodeName.toUpperCase()))(n)===e.toUpperCase();return r===t},qT=e=>{const t=gT(e.dom,e.selection.getStart());return _(t)},GT=e=>HT("pre",e),KT=e=>(t,n)=>Bc(t)===e,ZT=(e,t)=>(e=>VT(e,Mc(e)))(e),WT=(e,t)=>t,$T=e=>{const t=Oc(e),n=gT(e.dom,e.selection.getStart());return A(n)&&e.schema.isValidChild(n.nodeName,t)},YT=e=>{const t=e.selection.getRng(),n=fn(t.startContainer),o=qn(n,t.startOffset).map(e=>Sn(e)&&!gr(e));return t.collapsed&&o.getOr(!0)},JT=(e,t)=>(n,o)=>J(e,(e,t)=>e&&t(n,o),!0)?F.some(t):F.none(),XT=(e,t,n)=>{if(!t.mode.isReadOnly()){if(t.selection.isCollapsed()||(e=>{e.execCommand("delete")})(t),A(n)&&cT(t,e.fakeEventName).isDefaultPrevented())return;e.insert(t,n),A(n)&&sT(t,e.fakeEventName)}},QT=(e,t)=>{if(e.mode.isReadOnly())return;const n=()=>XT(FT,e,t),o=()=>XT(BT,e,t),r=((e,t)=>qx([JT([UT],zT.none()),JT([GT(!0),qT],zT.none()),JT([HT("summary",!0)],zT.br()),JT([GT(!0),KT(!1),WT],zT.br()),JT([GT(!0),KT(!1)],zT.block()),JT([GT(!0),KT(!0),WT],zT.block()),JT([GT(!0),KT(!0)],zT.br()),JT([jT(!0),WT],zT.br()),JT([jT(!0)],zT.block()),JT([ZT],zT.br()),JT([WT],zT.br()),JT([$T],zT.block()),JT([YT],zT.block())],[e,!(!t||!t.shiftKey)]).getOr(zT.none()))(e,t);switch(Dc(e)){case"linebreak":r.fold(n,n,C);break;case"block":r.fold(o,o,C);break;case"invert":r.fold(o,n,C);break;default:r.fold(n,o,C)}},eI=Wt(),tI=eI.os.isiOS()&&eI.browser.isSafari(),nI=(e,t)=>{var n;t.isDefaultPrevented()||(t.preventDefault(),(n=e.undoManager).typing&&(n.typing=!1,n.add()),e.undoManager.transact(()=>{QT(e,t)}))},oI=Wt(),rI=e=>e.stopImmediatePropagation(),aI=e=>e.keyCode===wm.PAGE_UP||e.keyCode===wm.PAGE_DOWN,iI=(e,t,n)=>{n&&!e.get()?t.on("NodeChange",rI,!0):!n&&e.get()&&t.off("NodeChange",rI),e.set(n)},lI=(e,t)=>e===t||e.contains(t),sI=(e,t)=>{const n=t.container(),o=t.offset();return ta(n)?(n.insertData(o,e),F.some(Ns(n,o+e.length))):ap(t).map(n=>{const o=pn(e);return t.isAtEnd()?so(n,o):lo(n,o),Ns(o.dom,e.length)})},cI=O(sI,st),uI=O(sI," "),dI=e=>t=>{e.selection.setRng(t.toRange()),e.nodeChanged()},pI=e=>{const t=Ns.fromRangeStart(e.selection.getRng()),n=fn(e.getBody());if(e.selection.isCollapsed()){const o=O(Hh,e),r=Ns.fromRangeStart(e.selection.getRng());return ew(o,e.getBody(),r).bind((e=>t=>t.fold(t=>Sp(e.dom,Ns.before(t)),e=>Tp(e),e=>Ip(e),t=>Ep(e.dom,Ns.after(t))))(n)).map(o=>()=>((e,t,n)=>o=>kh(e,o,n)?cI(t):uI(t))(n,t,e.schema)(o).each(dI(e)))}return F.none()},fI=e=>{return je(on.browser.isFirefox()&&e.selection.isEditable()&&(t=e.dom,n=e.selection.getRng().startContainer,t.isEditable(t.getParent(n,"summary"))),()=>{const t=fn(e.getBody());e.selection.isCollapsed()||e.getDoc().execCommand("Delete"),((e,t,n)=>kh(e,t,n)?cI(t):uI(t))(t,Ns.fromRangeStart(e.selection.getRng()),e.schema).each(dI(e))});var t,n},mI=e=>
vendor: 8,413 bytes, line 2
2ud(e)?[{keyCode:wm.TAB,action:KC(jE,e,!0)},{keyCode:wm.TAB,shiftKey:!0,action:KC(jE,e,!1)}]:[],gI=e=>{if(e.addShortcut("Meta+P","","mcePrint"),YS(e),IA(e))return Te(null);{const t=Yw(e);return(e=>{e.on("beforeinput",t=>{e.selection.isEditable()&&!q(t.getTargetRanges(),t=>!((e,t)=>!lI(e.getBody(),t.startContainer)||!lI(e.getBody(),t.endContainer)||rg(e.dom,t))(e,t))||t.preventDefault()})})(e),(e=>{e.on("keyup compositionstart",O(MC,e))})(e),((e,t)=>{e.on("keydown",n=>{n.isDefaultPrevented()||((e,t,n)=>{const o=on.os.isMacOS()||on.os.isiOS();ZC([{keyCode:wm.RIGHT,action:KC(RC,e,!0)},{keyCode:wm.LEFT,action:KC(RC,e,!1)},{keyCode:wm.UP,action:KC(FC,e,!1)},{keyCode:wm.DOWN,action:KC(FC,e,!0)},...o?[{keyCode:wm.UP,action:KC(zC,e,!1),metaKey:!0,shiftKey:!0},{keyCode:wm.DOWN,action:KC(zC,e,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:wm.RIGHT,action:KC(ME,e,!0)},{keyCode:wm.LEFT,action:KC(ME,e,!1)},{keyCode:wm.UP,action:KC(NE,e,!1)},{keyCode:wm.DOWN,action:KC(NE,e,!0)},{keyCode:wm.UP,action:KC(NE,e,!1)},{keyCode:wm.UP,action:KC(HC,e,!1)},{keyCode:wm.DOWN,action:KC(HC,e,!0)},{keyCode:wm.RIGHT,action:KC($C,e,!0)},{keyCode:wm.LEFT,action:KC($C,e,!1)},{keyCode:wm.UP,action:KC(YC,e,!1)},{keyCode:wm.DOWN,action:KC(YC,e,!0)},{keyCode:wm.RIGHT,action:KC(Ww,e,t,!0)},{keyCode:wm.LEFT,action:KC(Ww,e,t,!1)},{keyCode:wm.RIGHT,ctrlKey:!o,altKey:o,action:KC(Jw,e,t)},{keyCode:wm.LEFT,ctrlKey:!o,altKey:o,action:KC(Xw,e,t)},{keyCode:wm.UP,action:KC(jC,e,!1)},{keyCode:wm.DOWN,action:KC(jC,e,!0)}],n).each(e=>{n.preventDefault()})})(e,t,n)})})(e,t),((e,t)=>{let n=!1;e.on("keydown",o=>{n=o.keyCode===wm.BACKSPACE,o.isDefaultPrevented()||((e,t,n)=>{const o=n.keyCode===wm.BACKSPACE?"deleteContentBackward":"deleteContentForward",r=e.selection.isCollapsed(),a=r?"character":"selection",i=e=>r?e?"word":"line":"selection";WC([{keyCode:wm.BACKSPACE,action:KC(kC,e)},{keyCode:wm.BACKSPACE,action:KC(Sx,e,!1)},{keyCode:wm.DELETE,action:KC(Sx,e,!0)},{keyCode:wm.BACKSPACE,action:KC(yx,e,!1)},{keyCode:wm.DELETE,action:KC(yx,e,!0)},{keyCode:wm.BACKSPACE,action:KC(nC,e,t,!1)},{keyCode:wm.DELETE,action:KC(nC,e,t,!0)},{keyCode:wm.BACKSPACE,action:KC(Ib,e,!1)},{keyCode:wm.DELETE,action:KC(Ib,e,!0)},{keyCode:wm.BACKSPACE,action:KC(iT,e,!1,a)},{keyCode:wm.DELETE,action:KC(iT,e,!0,a)},...pT?[{keyCode:wm.BACKSPACE,altKey:!0,action:KC(iT,e,!1,i(!0))},{keyCode:wm.DELETE,altKey:!0,action:KC(iT,e,!0,i(!0))},{keyCode:wm.BACKSPACE,metaKey:!0,action:KC(iT,e,!1,i(!1))}]:[{keyCode:wm.BACKSPACE,ctrlKey:!0,action:KC(iT,e,!1,i(!0))},{keyCode:wm.DELETE,ctrlKey:!0,action:KC(iT,e,!0,i(!0))}],{keyCode:wm.BACKSPACE,action:KC(Dx,e,!1)},{keyCode:wm.DELETE,action:KC(Dx,e,!0)},{keyCode:wm.BACKSPACE,action:KC(mC,e,!1)},{keyCode:wm.DELETE,action:KC(mC,e,!0)},{keyCode:wm.BACKSPACE,action:KC(px,e,!1)},{keyCode:wm.DELETE,action:KC(px,e,!0)},{keyCode:wm.BACKSPACE,action:KC(cx,e,!1)},{keyCode:wm.DELETE,action:KC(cx,e,!0)},{keyCode:wm.BACKSPACE,action:KC(dC,e,!1)},{keyCode:wm.DELETE,action:KC(dC,e,!0)},{keyCode:wm.BACKSPACE,action:KC(Lx,e,!1)},{keyCode:wm.DELETE,action:KC(Lx,e,!0)}],n).filter(t=>e.selection.isEditable()).each(t=>{n.preventDefault(),cT(e,o).isDefaultPrevented()||(t(),sT(e,o))})})(e,t,o)}),e.on("keyup",t=>{t.isDefaultPrevented()||((e,t,n)=>{ZC([{keyCode:wm.BACKSPACE,action:KC(Ex,e)},{keyCode:wm.DELETE,action:KC(Ex,e)},...pT?[{keyCode:wm.BACKSPACE,altKey:!0,action:KC(pC,e)},{keyCode:wm.DELETE,altKey:!0,action:KC(pC,e)},...n?[{keyCode:fT?224:91,action:KC(pC,e)}]:[]]:[{keyCode:wm.BACKSPACE,ctrlKey:!0,action:KC(pC,e)},{keyCode:wm.DELETE,ctrlKey:!0,action:KC(pC,e)}]],t)})(e,t,n),n=!1})})(e,t),(e=>{let t=F.none();e.on("keydown",n=>{n.keyCode===wm.ENTER&&(tI&&(e=>{if(!e.collapsed)return!1;const t=e.startContainer;if(ta(t)){const n=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,o=t.data.charAt(e.startOffset-1);return n.test(o)}return!1})(e.selection.getRng())?(e=>{t=F.some(e.selection.getBookmark()),e.undoManager.add()})(e):nI(e,n))}),e.on("keyup",n=>{n.keyCode===wm.ENTER&&t.each(()=>((e,n)=>{e.undoManager.undo(),t.fold(C,t=>e.selection.moveToBookmark(t)),nI(e,n),t=F.none()})(e,n))})})(e),(e=>{e.on("keydown",t=>{t.isDefaultPrevented()||((e,t)=>{WC([{keyCode:wm.SPACEBAR,action:KC(pI,e)},{keyCode:wm.SPACEBAR,action:KC(fI,e)}],t).each(n=>{t.preventDefault(),cT(e,"insertText",{data:" "}).isDefaultPrevented()||(n(),sT(e,"insertText",{data:" "}))})})(e,t)})})(e),(e=>{e.on("input",t=>{t.isComposing||(e=>{const t=fn(e.getBody());e.selection.isCollapsed()&&Bh(t,Ns.fromRangeStart(e.selection.getRng()),e.schema).each(t=>{e.selection.setRng(t.toRange())})})(e)})})(e),(e=>{e.on("keydown",t=>{t.isDefaultPrevented()||((e,t)=>{ZC([...mI(e)],t).each(e=>{t.preventDefault()})})(e,t)})})(e),((e,t)=>{e.on("keydown",n=>{n.isDefaultPrevented()||((e,t,n)=>{const o=on.os.isMacOS()||on.os.isiOS();ZC([{keyCode:wm.END,action:KC(VC,e,!0)},{keyCode:wm.HOME,action:KC(VC,e,!1)},...o?[]:[{keyCode:wm.HOME,action:KC(zC,e,!1),ctrlKey:!0,shiftKey:!0},{keyCode:wm.END,action:KC(zC,e,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:wm.END,action:KC(JC,e,!0)},{keyCode:wm.HOME,action:KC(JC,e,!1)},{keyCode:wm.END,action:KC(Qw,e,!0,t)},{keyCode:wm.HOME,action:KC(Qw,e,!1,t)}],n).each(e=>{n.preventDefault()})})(e,t,n)})})(e,t),((e,t)=>{if(oI.os.isMacOS())return;const n=Te(!1);e.on("keydown",t=>{aI(t)&&iI(n,e,!0)}),e.on("keyup",o=>{o.isDefaultPrevented()||((e,t,n)=>{ZC([{keyCode:wm.PAGE_UP,action:KC(Qw,e,!1,t)},{keyCode:wm.PAGE_DOWN,action:KC(Qw,e,!0,t)}],n)})(e,t,o),aI(o)&&n.get()&&(iI(n,e,!1),e.nodeChanged())})})(e,t),t}};class hI{constructor(e){let t;this.lastPath=[],this.editor=e;const n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",n=>{const o=e.selection.getRng(),r={startContainer:o.startContainer,startOffset:o.startOffset,endContainer:o.endContainer,endOffset:o.endOffset};"nodechange"!==n.type&&Om(r,t)||e.dispatch("SelectionChange"),t=r}),e.on("contextmenu",()=>{am(e),e.dispatch("SelectionChange")}),e.on("SelectionChange",()=>{const t=e.selection.getStart(!0);t&&of(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})}),e.on("mouseup",t=>{!t.isDefaultPrevented()&&of(e)&&("IMG"===e.selection.getNode().nodeName?sm.setEditorTimeout(e,()=>{e.nodeChanged()}):e.nodeChanged())})}nodeChanged(e={}){const t=this.editor,n=t.selection;let o;if(t.initialized&&n&&!Cu(t)&&!vd(t)){const r=t.getBody();o=n.getStart(!0)||r,o.ownerDocument===t.getDoc()&&t.dom.isChildOf(o,r)||(o=r);const a=[];t.dom.getParent(o,e=>e===r||(a.push(e),!1)),t.dispatch("NodeChange",{...e,element:o,parents:a})}}isSameElementPath(e){let t;const n=this.editor,o=re(n.dom.getParents(e,R,n.getBody()));if(o.length===this.lastPath.length){for(t=o.length;t>=0&&o[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=o,!0}return this.lastPath=o,!1}}const bI="x-tinymce/html",vI=T(bI),yI="\x3c!-- "+bI+" --\x3e",_I=e=>yI+e,AI=e=>-1!==e.indexOf(yI),kI="%MCEPASTEBIN%",xI=e=>e.dom.get("mcepastebin"),wI=e=>A(e)&&"mcepastebin"===e.id,CI=e=>e===kI,EI=(e,t)=>(sn.each(t,t=>{e=p(t,RegExp)?e.replace(t,""):e.replace(t[0],t[1])}),e),SI=e=>EI(e,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,(e,t,n)=>t||n?st:" "],/<br class="Apple-interchange-newline">/g,/<br>$/i]),TI=(e,t)=>({content:e,cancelled:t}),II=(e,t)=>(e.insertContent(t,{merge:$u(e),paste:!0}),!0),BI=e=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(e),OI=(e,t,n)=>!(e.selection.isCollapsed()||!BI(t))&&((e,t,n)=>(e.undoManager.extra(()=>{n(e,t)},()=>{e.execCommand("mceInsertLink",!1,t)}),!0))(e,t,n),LI=(e,t,n)=>!!((e,t)=>BI(t)&&q(cd(e),e=>Ye(t.toLowerCase(),`.${e.toLowerCase()}`)))(e,t)&&((e,t,n)=>(e.undoManager.extra(()=>{n(e,t)},()=>{e.insertContent('<img src="'+t+'">')}),!0))(e,t,n),DI=(()=>{let e=0;return()=>"mceclip"+e++})(),MI=e=>{const t=kE();return xE(t,e),gE(t),t},NI=(e,t,n,o,r)=>{const a=((e,t,n)=>((e,t,n)=>{const o=((e,t,n)=>e.dispatch("PastePreProcess",{content:t,internal:n}))(e,t,n),r=((e,t)=>{const n=$_({sanitize:ld(e),sandbox_iframes:fd(e),sandbox_iframes_exclusions:md(e),convert_unsafe_embeds:gd(e)},e.schema);n.addNodeFilter("meta",e=>{sn.each(e,e=>{e.remove()})});const o=n.parse(t,{forced_root_block:!1,isRootContent:!0});return Dg({validate:!0},e.schema).serialize(o)})(e,o.content);return e.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?((e,t,n
vendor: 12,488 bytes, line 2
2)=>{const o=e.dom.create("div",{style:"display:none"},t),r=((e,t,n)=>e.dispatch("PastePostProcess",{node:t,internal:n}))(e,o,n);return TI(r.node.innerHTML,r.isDefaultPrevented())})(e,r,n):TI(r,o.isDefaultPrevented())})(e,t,n))(e,t,n);if(!a.cancelled){const t=a.content,n=()=>((e,t,n)=>{n||!Yu(e)?II(e,t):((e,t)=>{sn.each([OI,LI,II],n=>!n(e,t,II))})(e,t)})(e,t,o);r?cT(e,"insertFromPaste",{dataTransfer:MI(t)}).isDefaultPrevented()||(n(),sT(e,"insertFromPaste")):n()}},PI=(e,t,n,o)=>{const r=n||AI(t);NI(e,(e=>e.replace(yI,""))(t),r,!1,o)},RI=(e,t,n)=>{const o=e.dom.encode(t).replace(/\r\n/g,"\n"),r=((e,t,n)=>{const o=e.split(/\n\n/),r=((e,t)=>{let n="<"+e;const o=ke(t,(e,t)=>t+'="'+pi.encodeAllRaw(e)+'"');return o.length&&(n+=" "+o.join(" ")),n+">"})(t,n),a="</"+t+">",i=G(o,e=>e.split(/\n/).join("<br />"));return 1===i.length?i[0]:G(i,e=>r+e+a).join("")})(Hr(o,Xu(e)),Oc(e),Lc(e));NI(e,r,!1,!0,n)},FI=e=>{const t={};if(e&&e.types)for(let n=0;n<e.types.length;n++){const o=e.types[n];try{t[o]=e.getData(o)}catch(e){t[o]=""}}return t},VI=(e,t)=>t in e&&e[t].length>0,zI=e=>VI(e,"text/html")||VI(e,"text/plain"),UI=(e,t,n)=>{const o="paste"===t.type?t.clipboardData:t.dataTransfer;var r;if(Hu(e)&&o){const a=((e,t)=>{const n=t.items?ne(de(t.items),e=>"file"===e.kind?[e.getAsFile()]:[]):[],o=t.files?de(t.files):[];return $(n.length>0?n:o,(e=>{const t=cd(e);return e=>$e(e.type,"image/")&&q(t,t=>(e=>{const t=e.toLowerCase(),n={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return sn.hasOwn(n,t)?"image/"+n[t]:"image/"+t})(t)===e.type)})(e))})(e,o);if(a.length>0)return t.preventDefault(),(r=a,Promise.all(G(r,e=>yy(e).then(t=>({file:e,uri:t}))))).then(t=>{n&&e.selection.setRng(n),K(t,t=>{((e,t)=>{by(t.uri).each(({data:n,type:o,base64Encoded:r})=>{const a=r?n:btoa(n),i=t.file,l=e.editorUpload.blobCache,s=l.getByData(a,o),c=null!=s?s:((e,t,n,o)=>{const r=DI(),a=Vc(e)&&A(n.name),i=a?((e,t)=>{const n=t.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return A(n)?e.dom.encode(n[1]):void 0})(e,n.name):r,l=a?n.name:void 0,s=t.create(r,n,o,i,l);return t.add(s),s})(e,l,i,a);PI(e,`<img src="${c.blobUri()}">`,!1,!0)})})(e,t)})}),!0}return!1},jI=(e,t,n,o,r)=>{let a=SI(n);const i=VI(t,vI())||AI(n),l=!i&&(e=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e))(a),s=BI(a);(CI(a)||!a.length||l&&!s)&&(o=!0),(o||s)&&(a=VI(t,"text/plain")&&l?t["text/plain"]:(e=>{const t=Ii(),n=$_({},t);let o="";const r=t.getVoidElements(),a=sn.makeMap("script noscript style textarea video audio iframe object"," "),i=t.getBlockElements(),l=e=>{const n=e.name,s=e;if("br"!==n){if("wbr"!==n)if(r[n]&&(o+=" "),a[n])o+=" ";else{if(3===e.type&&(o+=e.value),!(e.name in t.getVoidElements())){let t=e.firstChild;if(t)do{l(t)}while(t=t.next)}i[n]&&s.next&&(o+="\n","p"===n&&(o+="\n"))}}else o+="\n"};return e=EI(e,[/<!\[[^\]]+\]>/g]),l(n.parse(e)),o})(a)),CI(a)||(o?RI(e,a,r):PI(e,a,i,r))},HI=(e,t,n)=>{((e,t,n)=>{let o;e.on("keydown",e=>{(e=>wm.metaKeyPressed(e)&&86===e.keyCode||e.shiftKey&&45===e.keyCode)(e)&&!e.isDefaultPrevented()&&(o=e.shiftKey&&86===e.keyCode)}),e.on("paste",r=>{if(r.isDefaultPrevented()||(e=>{var t,n;return on.os.isAndroid()&&0===(null===(n=null===(t=e.clipboardData)||void 0===t?void 0:t.items)||void 0===n?void 0:n.length)})(r))return;const a="text"===n.get()||o;o=!1;const i=FI(r.clipboardData);!zI(i)&&UI(e,r,t.getLastRng()||e.selection.getRng())||(VI(i,"text/html")?(r.preventDefault(),jI(e,i,i["text/html"],a,!0)):VI(i,"text/plain")&&VI(i,"text/uri-list")?(r.preventDefault(),jI(e,i,i["text/plain"],a,!0)):(t.create(),sm.setEditorTimeout(e,()=>{const n=t.getHtml();t.remove(),jI(e,i,n,a,!1)},0)))})})(e,t,n),(e=>{const t=e=>$e(e,"webkit-fake-url"),n=e=>$e(e,"data:");e.parser.addNodeFilter("img",(o,r,a)=>{if(!Hu(e)&&(e=>{var t;return!0===(null===(t=e.data)||void 0===t?void 0:t.paste)})(a))for(const r of o){const o=r.attr("src");f(o)&&!r.attr("data-mce-object")&&o!==on.transparentSrc&&(t(o)||!Qu(e)&&n(o))&&r.remove()}})})(e)},qI=(e,t,n,o)=>{((e,t,n)=>{if(!e)return!1;try{return e.clearData(),e.setData("text/html",t),e.setData("text/plain",n),e.setData(vI(),t),!0}catch(e){return!1}})(e.clipboardData,t.html,t.text)?(e.preventDefault(),o()):n(t.html,o)},GI=e=>(t,n)=>{const{dom:o,selection:r}=e,a=o.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=o.create("div",{contenteditable:"true"},t);o.setStyles(a,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),a.appendChild(i),o.add(e.getBody(),a);const l=r.getRng();i.focus();const s=o.createRng();s.selectNodeContents(i),r.setRng(s),sm.setEditorTimeout(e,()=>{r.setRng(l),o.remove(a),n()},0)},KI=e=>({html:_I(e.selection.getContent({contextual:!0})),text:e.selection.getContent({format:"text"})}),ZI=e=>!e.selection.isCollapsed()||(e=>!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody()))(e),WI=(e,t)=>{var n,o;return Um.getCaretRangeFromPoint(null!==(n=t.clientX)&&void 0!==n?n:0,null!==(o=t.clientY)&&void 0!==o?o:0,e.getDoc())},$I=(e,t)=>{e.focus(),t&&e.selection.setRng(t)},YI=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,JI=e=>sn.trim(e).replace(YI,Fi).toLowerCase(),XI=(e,t,n)=>{const o=Zu(e);if(n||"all"===o||!Wu(e))return t;const r=o?o.split(/[, ]/):[];if(r&&"none"!==o){const n=e.dom,o=e.selection.getNode();t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(e,t,a,i)=>{const l=n.parseStyle(n.decode(a)),s={};for(let e=0;e<r.length;e++){const t=l[r[e]];let a=t,i=n.getStyle(o,r[e],!0);/color/.test(r[e])&&(a=JI(a),i=JI(i)),i!==a&&(s[r[e]]=t)}const c=n.serializeStyle(s,"span");return c?t+' style="'+c+'"'+i:t+i})}else t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return t=t.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(e,t,n,o)=>t+' style="'+n+'"'+o),t},QI=e=>{const t=Te(!1),n=Te(Ju(e)?"text":"html"),o=(e=>{const t=Te(null);return{create:()=>((e,t)=>{const{dom:n,selection:o}=e,r=e.getBody();t.set(o.getRng());const a=n.add(e.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},kI);on.browser.isFirefox()&&n.setStyle(a,"left","rtl"===n.getStyle(r,"direction",!0)?65535:-65535),n.bind(a,"beforedeactivate focusin focusout",e=>{e.stopPropagation()}),a.focus(),o.select(a,!0)})(e,t),remove:()=>((e,t)=>{const n=e.dom;if(xI(e)){let o;const r=t.get();for(;o=xI(e);)n.remove(o),n.unbind(o);r&&e.selection.setRng(r)}t.set(null)})(e,t),getEl:()=>xI(e),getHtml:()=>(e=>{const t=e.dom,n=(e,n)=>{e.appendChild(n),t.remove(n,!0)},[o,...r]=$(e.getBody().childNodes,wI);K(r,e=>{n(o,e)});const a=t.select("div[id=mcepastebin]",o);for(let e=a.length-1;e>=0;e--){const r=t.create("div");o.insertBefore(r,a[e]),n(r,a[e])}return o?o.innerHTML:""})(e),getLastRng:t.get}})(e);(e=>{(on.browser.isChromium()||on.browser.isSafari())&&((e,t)=>{e.on("PastePreProcess",n=>{n.content=t(e,n.content,n.internal)})})(e,XI)})(e),((e,t)=>{e.addCommand("mceTogglePlainTextPaste",()=>{((e,t)=>{"text"===t.get()?(t.set("html"),hc(e,!1)):(t.set("text"),hc(e,!0)),e.focus()})(e,t)}),e.addCommand("mceInsertClipboardContent",(t,n)=>{n.html&&PI(e,n.html,n.internal,!1),n.text&&RI(e,n.text,!1)})})(e,n),(e=>{const t=t=>n=>{t(e,n)},n=qu(e);k(n)&&e.on("PastePreProcess",t(n));const o=Gu(e);k(o)&&e.on("PastePostProcess",t(o))})(e),e.addQueryStateHandler("mceTogglePlainTextPaste",()=>"text"===n.get()),e.on("PreInit",()=>{(e=>{e.on("cut",(e=>t=>{!t.isDefaultPrevented()&&ZI(e)&&e.selection.isEditable()&&qI(t,KI(e),GI(e),()=>{if(on.browser.isChromium()||on.browser.isFirefox()){const t=e.selection.getRng();sm.setEditorTimeout(e,()=>{e.selection.setRng(t),e.execCommand("Delete")},0)}else e.execCommand("Delete")})})(e)),e.on("copy",(e=>t=>{!t.isDefaultPrevented()&&ZI(e)&&qI(t,KI(e),GI(e),C)})(e))})(e),((e,t)=>{ju(e)&&e.on("dragend dragover draggesture dragdrop drop drag",e=>{e.preventDefault(),e.stopPropagation()}),Hu(e)||e.on("drop",e=>{const t=e.dataTransfer;t&&(e=>q(e.files,e=>/^image\//.test(e.type)))(t)&&e.preventDefault()}),e.on("drop",n=>{if(n.isDefaultPrevented())return;const o=WI(e,n);if(_(o))return;const r=FI(n.dataTransfer),a=VI(r,vI());if((!zI(r)||(e=>{const t=e["text/plain"];return!!t&&0===t.indexOf("file://")})(r))&&UI(e,n,o))return;const i=r[vI()],l=i||r["text/html"]||r["text/plain"],s=((e,t,n,o)=>{const r=e.getParent(n,e=>ja(t,e));if(!b(e.getParent(n,"summary")))return!0;if(r&&Ce(o,"text/html")){const e=(new DOMParser).parseFromString(o["text/html"],"text/html").body;return!b(e.querySelector(r.nodeName.toLowerCase()))}return!1})(e.dom,e.schema,o.startContainer,r),c=t.get();c&&!s||l&&(n.preventDefault(),sm.setEditorTimeout(e,()=>{e.undoManager.transact(()=>{(i||c&&s)&&e.execCommand("Delete"),$I(e,o);const t=SI(l);r["text/html"]?PI(e,t,a,!0):RI(e,t,!0)})}))}),e.on("dragstart",e=>{t.set(!0)}),e.on("dragover dragend",n=>{Hu(e)&&!t.get()&&(n.preventDefault(),$I(e,WI(e,n))),"dragend"===n.type&&t.set(!1)}),(e=>{e.on("input",t=>{const n=e=>b(e.querySelector("summary"));if("deleteByDrag"===t.inputType){const t=$(e.dom.select("details"),n);K(t,t=>{la(t.firstChild)&&t.firstChild.remove();const n=e.dom.create("summary");n.appendChild(Dl().dom),t.prepend(n)})}})})(e)})(e,t),HI(e,o,n)})},eB=la,tB=ta,nB=e=>da(e.dom),oB=e=>t=>An(fn(e),t),rB=(e,t)=>nr(fn(e),nB,oB(t)),aB=(e,t,n)=>{const o=new Vr(e,t),r=n?o.next.bind(o):o.prev.bind(o);let a=e;for(let t=n?e:r();t&&!eB(t);t=r())gs(t)&&(a=t);return a},iB=e=>{const t=((e,t,n)=>{const o=Ns.fromRangeStart(e).getNode(),r=((e,t,n)=>nr(fn(e),e=>(e=>ua(e.dom))(e)||n.isBlock(wn(e)),oB(t)).getOr(fn(t)).dom)(o,t,n),a=aB(o,r,!1),i=aB(o,r,!0),l=document.createRange();return rB(a,r).fold(()=>{tB(a)?l.setStart(a,0):l.setStartBefore(a)},e=>l.setStartBefore(e.dom)),rB(i,r).fold(()=>{tB(i)?l.setEnd(i,i.data.length):l.setEndAfter(i)},e=>l.setEndAfter(e.dom)),l})(e.selection.getRng(),e.getBody(),e.schema);e.selection.setRng(Gb(t))};var lB;!function(e){e.Before="before",e.After="after"}(lB||(lB={}));const sB=(e,t)=>Math.abs(e.left-t),cB=(e,t)=>Math.abs(e.right-t),uB=(e,t)=>(e=>J(e,(e,t)=>e.fold(()=>F.some(t),e=>{const n=Math.min(t.left,e.left),o=Math.min(t.top,e.top),r=Math.max(t.right,e.right),a=Math.max(t.bottom,e.bottom);return F.some({top:o,right:r,bottom:a,left:n,width:r-n,height:a-o})}),F.none()))($(e,e=>{return(n=t)>=(o=e).top&&n<=o.bottom;var n,o})).fold(()=>[[],e],t=>{const{pass:n,fail:o}=W(e,e=>((e,t)=>{const n=((e,t)=>Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top)))(e,t)/Math.min(e.height,t.height);return((e,t)=>e.top<t.bottom&&e.bottom>t.top)(e,t)&&n>.5})(e,t));return[n,o]}),dB=(e,t,n)=>t>e.left&&t<e.right?0:Math.min(Math.abs(e.left-t),Math.abs(e.right-t)),pB=(e,t,n,o)=>{const r=e=>gs(e.node)?F.some(e):Kr(e.node)?pB(de(e.node.childNodes),t,n,!1):F.none(),a=(e,a)=>{const i=le(e,(e,o)=>a(e,t,n)-a(o,t,n));return pe(i,r).map(e=>o&&!ta(e.node)&&i.length>1?((e,o,a)=>r(o).filter(o=>Math.abs(a(e,t,n)-a(o,t,n))<2&&ta(o.node)))(e,i[1],a).getOr(e):e)},[i,l]=uB(Bw(e),n),{pass:s,fail:c}=W(l,e=>e.top<n);return a(i,dB).orThunk(()=>a(c,ns)).orThunk(()=>a(s,ns))},fB=(e,t,n)=>((e,t,n)=>{const o=fn(e),r=Mn(o),a=mn(r,t,n).filter(e=>kn(o,e)).getOr(o);return((e,t,n,o)=>{const r=(t,a)=>{const i=$(t.dom.childNodes,L(e=>Kr(e)&&e.classList.contains("mce-drag-container")));return a.fold(()=>pB(i,n,o,!0),e=>{const t=$(i,t=>t!==e.dom);return pB(t,n,o,!0)}).orThunk(()=>(An(t,e)?F.none():Rn(t)).bind(e=>r(e,F.some(t))))};return r(t,F.none())})(o,a,t,n)})(e,t,n).filter(e=>Md(e.node)).map(e=>((e,t)=>({node:e.node,position:sB(e,t)<cB(e,t)?lB.Before:lB.After}))(e,t)),mB=e=>{var t,n;const o=e.getBoundingClientRect(),r=e.ownerDocument,a=r.documentElement,i=r.defaultView;return{top:o.top+(null!==(t=null==i?void 0:i.scrollY)&&void 0!==t?t:0)-a.clientTop,left:o.left+(null!==(n=null==i?void 0:i.scrollX)&&void 0!==n?n:0)-a.clientLeft}},gB=e=>({target:e,srcElement:e}),hB=(e,t,n,o)=>{const r=((e,t)=>{const n=(e=>{const t=kE(),n=(e=>{const t=e;return F.from(t[dE])})(e);return gE(e),lE(t),t.dropEffect=e.dropEffect,t.effectAllowed=e.effectAllowed,(e=>{const t=e;return F.from(t[rE])})(e).each(e=>t.setDragImage(e.image,e.x,e.y)),K(e.types,n=>{"Files"!==n&&t.setData(n,e.getData(n))}),K(e.files,e=>t.items.add(e)),(e=>{const t=e;return F.from(t[aE])})(e).each(e=>{((e,t)=>{iE(t)(e)})(t,e)}),n.each(n=>{fE(e,n),fE(t,n)}),t})(e);return"dragstart"===t?(lE(n),mE(n)):"drop"===t?(sE(n),gE(n)):(cE(n),hE(n)),n})(n,e);
vendor: 4,120 bytes, line 2
2return y(o)?((e,t,n)=>{const o=D("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:e,composedPath:o,initEvent:o,preventDefault:C,stopImmediatePropagation:C,stopPropagation:C,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,layerX:0,layerY:0,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:o,initMouseEvent:o,getModifierState:o,dataTransfer:n,...gB(t)}})(e,t,r):((e,t,n,o)=>({...t,dataTransfer:o,type:e,...gB(n)}))(e,o,t,r)},bB=da,vB=((...e)=>t=>{for(let n=0;n<e.length;n++)if(e[n](t))return!0;return!1})(bB,ua),yB=(e,t,n,o)=>{const r=e.dom,a=t.cloneNode(!0);r.setStyles(a,{width:n,height:o}),r.setAttrib(a,"data-mce-selected",null);const i=r.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return r.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:o}),r.setStyles(a,{margin:0,boxSizing:"border-box"}),i.appendChild(a),i},_B=(e,t)=>n=>()=>{const o="left"===e?n.scrollX:n.scrollY;n.scroll({[e]:o+t,behavior:"smooth"})},AB=_B("left",-32),kB=_B("left",32),xB=_B("top",-32),wB=_B("top",32),CB=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)},EB=(e,t,n,o,r)=>{"dragstart"===t&&xE(o,e.dom.getOuterHTML(n));const a=hB(t,n,o,r);return e.dispatch(t,a)},SB=(e,t)=>{const n=rt((e,n)=>((e,t,n)=>{e._selectionOverrides.hideFakeCaret(),fB(e.getBody(),t,n).fold(()=>e.selection.placeCaretAt(t,n),o=>{const r=e._selectionOverrides.showCaret(1,o.node,o.position===lB.Before,!1);r?e.selection.setRng(r):e.selection.placeCaretAt(t,n)})})(t,e,n),0);t.on("remove",n.cancel);const o=e;return r=>e.on(e=>{const a=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&a>10){const n=EB(t,"dragstart",e.element,e.dataTransfer,r);if(A(n.dataTransfer)&&(e.dataTransfer=n.dataTransfer),n.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){const a=r.currentTarget===t.getDoc().documentElement,s=((e,t)=>({pageX:t.pageX-e.relX,pageY:t.pageY+5}))(e,((e,t)=>{return n=(e=>e.inline?mB(e.getBody()):{left:0,top:0})(e),o=(e=>{const t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}})(e),r=((e,t)=>{if(t.target.ownerDocument!==e.getDoc()){const n=mB(e.getContentAreaContainer()),o=(e=>{const t=e.getBody(),n=e.getDoc().documentElement,o={left:t.scrollLeft,top:t.scrollTop},r={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?o:r})(e);return{left:t.pageX-n.left+o.left,top:t.pageY-n.top+o.top}}return{left:t.pageX,top:t.pageY}})(e,t),{pageX:r.left-n.left+o.left,pageY:r.top-n.top+o.top};var n,o,r})(t,r));i=e.ghost,l=t.getBody(),i.parentNode!==l&&l.appendChild(i),((e,t,n,o,r,a,i,l,s,c,u,d)=>{let p=0,f=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>r&&(p=t.pageX+n-r),t.pageY+o>a&&(f=t.pageY+o-a),e.style.width=n-p+"px",e.style.height=o-f+"px";const m=s.clientHeight,g=s.clientWidth,h=i+s.getBoundingClientRect().top,b=l+s.getBoundingClientRect().left;u.on(e=>{e.intervalId.clear(),e.dragging&&d&&(i+8>=m?e.intervalId.set(wB(c)):i-8<=0?e.intervalId.set(xB(c)):l+8>=g?e.intervalId.set(kB(c)):l-8<=0?e.intervalId.set(AB(c)):h+16>=window.innerHeight?e.intervalId.set(wB(window)):h-16<=0?e.intervalId.set(xB(window)):b+16>=window.innerWidth?e.intervalId.set(kB(window)):b-16<=0&&e.intervalId.set(AB(window)))})})(e.ghost,s,e.width,e.height,e.maxX,e.maxY,r.clientY,r.clientX,t.getContentAreaContainer(),t.getWin(),o,a),n.throttle(r.clientX,r.clientY)}var i,l})},TB=(e,t,n)=>{e.on(e=>{e.intervalId.clear(),e.dragging&&n.fold(()=>EB(t,"dragend",e.element,e.dataTransfer),n=>EB(t,"dragend",e.element,e.dataTransfer,n))}),IB(e)},IB=e=>{e.on(e=>{e.intervalId.clear(),CB(e.ghost)}),e.clear()},BB=e=>
vendor: 1,076 bytes, line 2
2{const t=Ge(),n=rl.DOM,o=document,r=((e,t)=>n=>{if((e=>0===e.button)(n)){const o=Q(t.dom.getParents(n.target),vB).getOr(null);if(A(o)&&((e,t,n)=>bB(n)&&n!==t&&e.isEditable(n.parentElement))(t.dom,t.getBody(),o)){const r=t.dom.getPos(o),a=t.getBody(),i=t.getDoc().documentElement;e.set({element:o,dataTransfer:kE(),dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?a.scrollWidth:i.offsetWidth)-2,maxY:(t.inline?a.scrollHeight:i.offsetHeight)-2,relX:n.pageX-r.x,relY:n.pageY-r.y,width:o.offsetWidth,height:o.offsetHeight,ghost:yB(t,o,o.offsetWidth,o.offsetHeight),intervalId:qe(100)})}}})(t,e),a=SB(t,e),i=((e,t)=>n=>{e.on(e=>{var o;if(e.intervalId.clear(),e.dragging){if(((e,t,n)=>!_(t)&&t!==n&&!e.dom.isChildOf(t,n)&&e.dom.isEditable(t))(t,(e=>{const t=e.getSel();if(A(t)){const e=t.getRangeAt(0).startContainer;return ta(e)?e.parentNode:e}return null})(t.selection),e.element)){const r=null!==(o=t.getDoc().elementFromPoint(n.clientX,n.clientY))&&void 0!==o?o:t.getBody();EB(t,"drop",r,e.dataTransfer,n).isDefaultPrevented()||t.undoManager.transact(()=>{((e,t)=>
vendor: 4,612 bytes, line 2
2{const n=e.getParent(t.parentNode,e.isBlock);CB(t),n&&n!==e.getRoot()&&e.isEmpty(n)&&Ml(fn(n))})(t.dom,e.element),(e=>{const t=e.getData("text/html");return""===t?F.none():F.some(t)})(e.dataTransfer).each(e=>t.insertContent(e)),t._selectionOverrides.hideFakeCaret()})}EB(t,"dragend",t.getBody(),e.dataTransfer,n)}}),IB(e)})(t,e),l=((e,t)=>n=>TB(e,t,F.some(n)))(t,e);e.on("mousedown",r),e.on("mousemove",a),e.on("mouseup",i),n.bind(o,"mousemove",a),n.bind(o,"mouseup",l),e.on("remove",()=>{n.unbind(o,"mousemove",a),n.unbind(o,"mouseup",l)}),e.on("keydown",n=>{n.keyCode===wm.ESC&&TB(t,e,F.none())})},OB=da,LB=(e,t)=>Bb(e.getBody(),t),DB=e=>{const t=e.selection,n=e.dom,o=e.getBody(),r=Od(e,o,n.isBlock,()=>Am(e)),a="sel-"+n.uniqueId(),i="data-mce-selected";let l;const s=e=>e!==o&&(OB(e)||ga(e))&&n.isChildOf(e,o)&&n.isEditable(e.parentNode),c=(n,o,a,i=!0)=>e.dispatch("ShowCaret",{target:o,direction:n,before:a}).isDefaultPrevented()?null:(i&&t.scrollIntoView(o,-1===n),r.show(a,o)),u=e=>jl(e)||Kl(e)||Zl(e),d=e=>u(e.startContainer)||u(e.endContainer),p=t=>{const o=e.schema.getVoidElements(),r=n.createRng(),a=t.startContainer,i=t.startOffset,l=t.endContainer,s=t.endOffset;return Ce(o,a.nodeName.toLowerCase())?0===i?r.setStartBefore(a):r.setStartAfter(a):r.setStart(a,i),Ce(o,l.nodeName.toLowerCase())?0===s?r.setEndBefore(l):r.setEndAfter(l):r.setEnd(l,s),r},f=(r,u)=>{if(!r)return null;if(r.collapsed){if(!d(r)){const e=u?1:-1,t=rp(e,o,r),a=t.getNode(!u);if(A(a)){if(Md(a))return c(e,a,!!u&&!t.isAtEnd(),!1);if(Ul(a)&&da(a.nextSibling)){const e=n.createRng();return e.setStart(a,0),e.setEnd(a,0),e}}const i=t.getNode(u);if(A(i)){if(Md(i))return c(e,i,!u&&!t.isAtEnd(),!1);if(Ul(i)&&da(i.previousSibling)){const e=n.createRng();return e.setStart(i,1),e.setEnd(i,1),e}}}return null}let p=r.startContainer,f=r.startOffset;const m=r.endOffset;if(ta(p)&&0===f&&OB(p.parentNode)&&(p=p.parentNode,f=n.nodeIndex(p),p=p.parentNode),!Kr(p))return null;if(m===f+1&&p===r.endContainer){const o=p.childNodes[f];if(s(o))return(o=>{const r=o.cloneNode(!0),s=e.dispatch("ObjectSelected",{target:o,targetClone:r});if(s.isDefaultPrevented())return null;const c=((o,r)=>{const i=fn(e.getBody()),l=e.getDoc(),s=ar(i,"#"+a).getOrThunk(()=>{const e=un('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>',l);return go(e,"id",a),uo(i,e),e}),c=n.createRng();ko(s),fo(s,[pn(st,l),fn(r),pn(st,l)]),c.setStart(s.dom.firstChild,1),c.setEnd(s.dom.lastChild,0),No(s,{top:n.getPos(o,e.getBody()).y+"px"}),ro(s);const u=t.getSel();return u&&(u.removeAllRanges(),u.addRange(c)),c})(o,s.targetClone),u=fn(o);return K(yr(fn(e.getBody()),`*[${i}]`),e=>{An(u,e)||_o(e,i)}),n.getAttrib(o,i)||o.setAttribute(i,"1"),l=o,g(),c})(o)}return null},m=()=>{l&&l.removeAttribute(i),ar(fn(e.getBody()),"#"+a).each(xo),l=null},g=()=>{r.hide()};return IA(e)||(e.on("click",t=>{n.isEditable(t.target)||(t.preventDefault(),e.focus())}),e.on("blur NewBlock",m),e.on("ResizeWindow FullscreenStateChanged",r.reposition),e.on("tap",t=>{const n=t.target,o=LB(e,n);OB(o)?(t.preventDefault(),mx(e,o).each(f)):s(n)&&mx(e,n).each(f)},!0),e.on("mousedown",r=>{const a=r.target;if(a!==o&&"HTML"!==a.nodeName&&!n.isChildOf(a,o))return;if(!((e,t,n)=>{const o=fn(e.getBody()),r=e.inline?o:fn(Mn(o).dom.documentElement),a=((e,t,n,o)=>{const r=(e=>e.dom.getBoundingClientRect())(t);return{x:n-(e?r.left+t.dom.clientLeft+sk(t):0),y:o-(e?r.top+t.dom.clientTop+lk(t):0)}})(e.inline,r,t,n);return((e,t,n)=>{const o=ak(e),r=ik(e);return t>=0&&n>=0&&t<=o&&n<=r})(r,a.x,a.y)})(e,r.clientX,r.clientY))return;m(),g();const i=LB(e,a);OB(i)?(r.preventDefault(),mx(e,i).each(f)):fB(o,r.clientX,r.clientY).each(n=>{var o;r.preventDefault(),(o=c(1,n.node,n.position===lB.Before,!1))&&t.setRng(o),Zr(i)?i.focus():e.getBody().focus()})}),e.on("keypress",e=>{wm.modifierPressed(e)||OB(t.getNode())&&e.preventDefault()}),e.on("GetSelectionRange",e=>{let t=e.range;if(l){if(!l.parentNode)return void(l=null);t=t.cloneRange(),t.selectNode(l),e.range=t}}),e.on("focusin",t=>{if(r.isShowing()&&e.getBody().contains(t.target)&&t.target!==e.getBody()&&!e.dom.isEditable(t.target.parentNode)){r.hide(),t.target.contains(e.selection.getNode())||(e.selection.select(t.target,!0),e.selection.collapse(!0));const n=f(e.selection.getRng(),!0);n&&e.selection.setRng(n)}}),e.on("SetSelectionRange",e=>{e.range=p(e.range);const t=f(e.range,e.forward);t&&(e.range=t)}),e.on("AfterSetSelectionRange",e=>{const t=e.range,o=t.startContainer.parentElement;var r;d(t)||Kr(r=o)&&"mcepastebin"===r.id||g(),(e=>A(e)&&n.hasClass(e,"mce-offscreen-selection"))(o)||m()}),(e=>{BB(e),Ou(e)&&(e=>{const t=t=>
vendor: 8,744 bytes, line 2
2{if(!t.isDefaultPrevented()){const n=t.dataTransfer;n&&(H(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&mk(e,"Dropped file type is not supported"))}},n=n=>{gm(e,n.target)&&t(n)},o=()=>{const o=rl.DOM,r=e.dom,a=document,i=e.inline?e.getBody():e.getDoc(),l=["drop","dragover"];K(l,e=>{o.bind(a,e,n),r.bind(i,e,t)}),e.on("remove",()=>{K(l,e=>{o.unbind(a,e,n),r.unbind(i,e,t)})})};e.on("init",()=>{sm.setEditorTimeout(e,o,0)})})(e)})(e),(e=>{const t=rt(()=>{if(!e.removed&&e.getBody().contains(document.activeElement)){const t=e.selection.getRng();if(t.collapsed){const n=gx(e,t,!1);e.selection.setRng(n)}}},0);e.on("focus",()=>{t.throttle()}),e.on("blur",()=>{t.cancel()})})(e),(e=>{e.on("init",()=>{e.on("focusin",t=>{const n=t.target;if(ga(n)){const t=Bb(e.getBody(),n),o=da(t)?t:n;e.selection.getNode()!==o&&mx(e,o).each(t=>e.selection.setRng(t))}})})})(e)),{showCaret:c,showBlockCaretContainer:e=>{e.hasAttribute("data-mce-caret")&&(Wl(e),t.scrollIntoView(e))},hideFakeCaret:g,destroy:()=>{r.destroy(),l=null}}},MB=(e,t)=>{let n=t;for(let t=e.previousSibling;ta(t);t=t.previousSibling)n+=t.data.length;return n},NB=(e,t,n,o,r)=>{if(ta(n)&&(o<0||o>n.data.length))return[];const a=r&&ta(n)?[MB(n,o)]:[o];let i=n;for(;i!==t&&i.parentNode;)a.push(e.nodeIndex(i,r)),i=i.parentNode;return i===t?a.reverse():[]},PB=(e,t,n,o,r,a,i=!1)=>({start:NB(e,t,n,o,i),end:NB(e,t,r,a,i)}),RB=(e,t)=>{const n=t.slice(),o=n.pop();return x(o)?J(n,(e,t)=>e.bind(e=>F.from(e.childNodes[t])),F.some(e)).bind(e=>ta(e)&&(o<0||o>e.data.length)?F.none():F.some({node:e,offset:o})):F.none()},FB=(e,t)=>RB(e,t.start).bind(({node:n,offset:o})=>RB(e,t.end).map(({node:e,offset:t})=>{const r=document.createRange();return r.setStart(n,o),r.setEnd(e,t),r})),VB=(e,t,n)=>{if(t&&e.isEmpty(t)&&!n(t)){const o=t.parentNode;e.remove(t,ta(t.firstChild)&&Ur(t.firstChild.data)),VB(e,o,n)}},zB=(e,t,n,o=!0)=>{const r=t.startContainer.parentNode,a=t.endContainer.parentNode;t.deleteContents(),o&&!n(t.startContainer)&&(ta(t.startContainer)&&0===t.startContainer.data.length&&e.remove(t.startContainer),ta(t.endContainer)&&0===t.endContainer.data.length&&e.remove(t.endContainer),VB(e,r,n),r!==a&&VB(e,a,n))},UB=(e,t)=>F.from(e.dom.getParent(t.startContainer,e.dom.isBlock)),jB=(e,t,n)=>{const o=e.dynamicPatternsLookup({text:n,block:t});return{...e,blockPatterns:ic(o).concat(e.blockPatterns),inlinePatterns:lc(o).concat(e.inlinePatterns)}},HB=(e,t,n,o)=>{const r=e.createRng();return r.setStart(t,0),r.setEnd(n,o),r.toString()},qB=(e,t)=>e.create("span",{"data-mce-type":"bookmark",id:t}),GB=(e,t)=>{const n=e.createRng();return n.setStartAfter(t.start),n.setEndBefore(t.end),n},KB=(e,t,n)=>{const o=FB(e.getRoot(),n).getOrDie("Unable to resolve path range"),r=o.startContainer,a=o.endContainer,i=0===o.endOffset?a:a.splitText(o.endOffset),l=0===o.startOffset?r:r.splitText(o.startOffset),s=l.parentNode;return{prefix:t,end:i.parentNode.insertBefore(qB(e,t+"-end"),i),start:s.insertBefore(qB(e,t+"-start"),l)}},ZB=(e,t,n)=>{VB(e,e.get(t.prefix+"-end"),n),VB(e,e.get(t.prefix+"-start"),n)},WB=e=>0===e.start.length,$B=(e,t,n,o)=>{const r=t.start;var a;return $E(e,o.container,o.offset,(a=r,(e,t)=>{const n=e.data.substring(0,t),o=n.lastIndexOf(a.charAt(a.length-1)),r=n.lastIndexOf(a);return-1!==r?r+a.length:-1!==o?o+1:-1}),n).bind(o=>{var a,i;const l=null!==(i=null===(a=n.textContent)||void 0===a?void 0:a.indexOf(r))&&void 0!==i?i:-1;if(-1!==l&&o.offset>=l+r.length){const t=e.createRng();return t.setStart(o.container,o.offset-r.length),t.setEnd(o.container,o.offset),F.some(t)}{const a=o.offset-r.length;return ZE(o.container,a,n).map(t=>{const n=e.createRng();return n.setStart(t.container,t.offset),n.setEnd(o.container,o.offset),n}).filter(e=>e.toString()===r).orThunk(()=>$B(e,t,n,HE(o.container,0)))}})},YB=(e,t,n,o)=>{const r=e.dom,a=r.getRoot(),i=n.pattern,l=n.position.container,s=n.position.offset;return ZE(l,s-n.pattern.end.length,t).bind(c=>{const u=PB(r,a,c.container,c.offset,l,s,o);if(WB(i))return F.some({matches:[{pattern:i,startRng:u,endRng:u}],position:c});{const l=JB(e,n.remainingPatterns,c.container,c.offset,t,o),s=l.getOr({matches:[],position:c}),d=s.position,p=((e,t,n,o,r,a=!1)=>{if(0===t.start.length&&!a){const t=e.createRng();return t.setStart(n,o),t.setEnd(n,o),F.some(t)}return KE(n,o,r).bind(n=>$B(e,t,r,n).bind(e=>{var t;if(a){if(e.endContainer===n.container&&e.endOffset===n.offset)return F.none();if(0===n.offset&&(null===(t=e.endContainer.textContent)||void 0===t?void 0:t.length)===e.endOffset)return F.none()}return F.some(e)}))})(r,i,d.container,d.offset,t,l.isNone());return p.map(e=>{const t=((e,t,n,o=!1)=>PB(e,t,n.startContainer,n.startOffset,n.endContainer,n.endOffset,o))(r,a,e,o);return{matches:s.matches.concat([{pattern:i,startRng:t,endRng:u}]),position:HE(e.startContainer,e.startOffset)}})}})},JB=(e,t,n,o,r,a)=>{const i=e.dom;return KE(n,o,i.getRoot()).bind(l=>{const s=HB(i,r,n,o);for(let i=0;i<t.length;i++){const c=t[i];if(!Ye(s,c.end))continue;const u=t.slice();u.splice(i,1);const d=YB(e,r,{pattern:c,remainingPatterns:u,position:l},a);if(d.isNone()&&o>0)return JB(e,t,n,o-1,r,a);if(d.isSome())return d}return F.none()})},XB=(e,t,n)=>{e.selection.setRng(n),"inline-format"===t.type?K(t.format,t=>{e.formatter.apply(t)}):e.execCommand(t.cmd,!1,t.value)},QB=(e,t,n,o,r,a)=>{var i;return((e,t)=>{const n=oe(e,e=>q(t,t=>e.pattern.start===t.pattern.start&&e.pattern.end===t.pattern.end));return e.length===t.length?n?e:t:e.length>t.length?e:t})(JB(e,r.inlinePatterns,n,o,t,a).fold(()=>[],e=>e.matches),JB(e,(i=r.inlinePatterns,le(i,(e,t)=>t.end.length-e.end.length)),n,o,t,a).fold(()=>[],e=>e.matches))},eO=(e,t)=>{if(0===t.length)return;const n=e.dom,o=e.selection.getBookmark(),r=((e,t)=>{const n=Ne("mce_textpattern"),o=Y(t,(t,o)=>{const r=KB(e,n+`_end${t.length}`,o.endRng);return t.concat([{...o,endMarker:r}])},[]);return Y(o,(t,r)=>{const a=o.length-t.length-1,i=WB(r.pattern)?r.endMarker:KB(e,n+`_start${a}`,r.startRng);return t.concat([{...r,startMarker:i}])},[])})(n,t);K(r,t=>{const o=n.getParent(t.startMarker.start,n.isBlock),r=e=>e===o;WB(t.pattern)?((e,t,n,o)=>{const r=GB(e.dom,n);zB(e.dom,r,o),XB(e,t,r)})(e,t.pattern,t.endMarker,r):((e,t,n,o,r)=>{const a=e.dom,i=GB(a,o),l=GB(a,n);zB(a,l,r),zB(a,i,r);const s={prefix:n.prefix,start:n.end,end:o.start},c=GB(a,s);XB(e,t,c)})(e,t.pattern,t.startMarker,t.endMarker,r),ZB(n,t.endMarker,r),ZB(n,t.startMarker,r)}),e.selection.moveToBookmark(o)},tO=(e,t,n)=>((e,t,n)=>{if(ta(e)&&0>=e.length)return F.some(HE(e,0));{const t=wl(qE);return F.from(t.forwards(e,0,GE(e),n)).map(e=>HE(e.container,0))}})(t,0,t).map(o=>{const r=o.container;return WE(r,n.start.length,t).each(n=>{const o=e.createRng();o.setStart(r,0),o.setEnd(n.container,n.offset),zB(e,o,e=>e===t)}),r}),nO=e=>(t,n)=>{const o=t.dom,r=n.pattern,a=FB(o.getRoot(),n.range).getOrDie("Unable to resolve path range");return UB(t,a).each(n=>{"block-format"===r.type?((e,t)=>{const n=t.get(e);return h(n)&&ce(n).exists(e=>Ce(e,"block"))})(r.format,t.formatter)&&t.undoManager.transact(()=>{e(t.dom,n,r),t.formatter.apply(r.format)}):"block-command"===r.type&&t.undoManager.transact(()=>{e(t.dom,n,r),t.execCommand(r.cmd,!1,r.value)})}),!0},oO=e=>(t,n)=>{const o=(e=>le(e,(e,t)=>t.start.length-e.start.length))(t),r=n.replace(st," ");return Q(o,t=>e(t,n,r))},rO=(e,t)=>(n,o,r,a,i)=>{var l;void 0===i&&(i=null!==(l=o.textContent)&&void 0!==l?l:"");const s=n.dom,c=Oc(n);return s.is(o,c)?e(r.blockPatterns,i).map(e=>t&&sn.trim(i).length===e.start.length?[]:[{pattern:e,range:PB(s,s.getRoot(),o,0,o,0,a)}]).getOr([]):[]},aO=nO((e,t,n)=>{tO(e,t,n).each(e=>{const t=fn(e),n=Jo(t);/^\s[^\s]/.test(n)&&Xo(t,n.slice(1))})}),iO=oO((e,t,n)=>0===t.indexOf(e.start)||0===n.indexOf(e.start)),lO=rO(iO,!0),sO=nO(tO),cO=oO((e,t,n)=>t===e.start||n===e.start),uO=rO(cO,!1),dO=(e,t,n)=>{for(let o=0;o<e.length;o++)if(n(e[o],t))return!0;return!1},pO=e=>{const t=[",",".",";",":","!","?"],n=[32],o=()=>{return t=ed(e).filter(t=>"inline-command"!==t.type&&"block-command"!==t.type||e.queryCommandSupported(t.cmd)),n=td(e),{inlinePatterns:lc(t),blockPatterns:ic(t),dynamicPatternsLookup:n};var t,n},r=()=>(e=>e.options.isSet("text_patterns_lookup"))(e);e.on("keydown",t=>{if(13===t.keyCode&&!wm.modifierPressed(t)&&e.selection.isCollapsed()&&e.selection.isEditable()){const n=sc(o(),"enter");(n.inlinePatterns.length>0||n.blockPatterns.length>0||r())&&((e,t)=>((e,t)=>{const n=e.selection.getRng();return UB(e,n).map(o=>{var r;const a=Math.max(0,n.startOffset),i=jB(t,o,null!==(r=o.textContent)&&void 0!==r?r:"");return{inlineMatches:QB(e,o,n.startContainer,a,i,!0),blockMatches:lO(e,o,i,!0)}}).filter(({inlineMatches:e,blockMatches:t})=>t.length>0||e.length>0)})(e,t).fold(P,({inlineMatches:t,blockMatches:n})=>
vendor: 1,549 bytes, line 2
2(e.undoManager.add(),e.undoManager.extra(()=>{e.execCommand("mceInsertNewLine")},()=>{(e=>{e.insertContent(Nl,{preserve_zwsp:!0})})(e),eO(e,t),((e,t)=>{if(0===t.length)return;const n=e.selection.getBookmark();K(t,t=>aO(e,t)),e.selection.moveToBookmark(n)})(e,n);const o=e.selection.getRng(),r=KE(o.startContainer,o.startOffset,e.dom.getRoot());e.execCommand("mceInsertNewLine"),r.each(t=>{const n=t.container;n.data.charAt(t.offset-1)===lt&&(n.deleteData(t.offset-1,1),VB(e.dom,n.parentNode,t=>t===e.dom.getRoot()))})}),!0)))(e,n)&&t.preventDefault()}},!0),e.on("keydown",t=>{if(32===t.keyCode&&e.selection.isCollapsed()&&e.selection.isEditable()){const n=sc(o(),"space");(n.blockPatterns.length>0||r())&&((e,t)=>((e,t)=>{const n=e.selection.getRng();return UB(e,n).map(o=>{const r=Math.max(0,n.startOffset),a=HB(e.dom,o,n.startContainer,r),i=jB(t,o,a);return uO(e,o,i,!1,a)}).filter(e=>e.length>0)})(e,t).fold(P,t=>(e.undoManager.transact(()=>{((e,t)=>{K(t,t=>sO(e,t))})(e,t)}),!0)))(e,n)&&t.preventDefault()}},!0);const a=()=>{if(e.selection.isCollapsed()&&e.selection.isEditable()){const t=sc(o(),"space");(t.inlinePatterns.length>0||r())&&((e,t)=>{const n=e.selection.getRng();UB(e,n).map(o=>{const r=Math.max(0,n.startOffset-1),a=HB(e.dom,o,n.startContainer,r),i=jB(t,o,a),l=QB(e,o,n.startContainer,r,i,!1);l.length>0&&e.undoManager.transact(()=>{eO(e,l)})})})(e,t)}};e.on("keyup",e=>{dO(n,e,(e,t)=>e===t.keyCode&&!wm.modifierPressed(t))&&a()}),e.on("keypress",n=>{dO(t,n,(e,t)=>e.charCodeAt(0)===t.charCode)&&sm.setEditorTimeout(e,a)})},fO=e=>
vendor: 8,641 bytes, line 2
2{const t=sn.each,n=wm.BACKSPACE,o=wm.DELETE,r=e.dom,a=e.selection,i=e.parser,l=on.browser,s=l.isFirefox(),c=l.isChromium()||l.isSafari(),u=on.deviceType.isiPhone()||on.deviceType.isiPad(),d=on.os.isMacOS()||on.os.isiOS(),p=(t,n)=>{try{e.getDoc().execCommand(t,!1,String(n))}catch(e){}},f=e=>e.isDefaultPrevented(),m=()=>{e.shortcuts.add("meta+a",null,"SelectAll")},g=()=>{e.inline||r.bind(e.getDoc(),"mousedown mouseup",t=>{let n;if(t.target===e.getDoc().documentElement)if(n=a.getRng(),e.getBody().focus(),"mousedown"===t.type){if(jl(n.startContainer))return;a.placeCaretAt(t.clientX,t.clientY)}else a.setRng(n)})},h=()=>{Range.prototype.getClientRects||e.on("mousedown",t=>{if(!f(t)&&"HTML"===t.target.nodeName){const t=e.getBody();t.blur(),sm.setEditorTimeout(e,()=>{t.focus()})}})},b=()=>{const t=Mu(e);e.on("click",n=>{const o=n.target;/^(IMG|HR)$/.test(o.nodeName)&&r.isEditable(o)&&(n.preventDefault(),e.selection.select(o),e.nodeChanged()),"A"===o.nodeName&&r.hasClass(o,t)&&0===o.childNodes.length&&r.isEditable(o.parentNode)&&(n.preventDefault(),a.select(o))})},v=()=>{e.on("keydown",e=>{if(!f(e)&&e.keyCode===n&&a.isCollapsed()&&0===a.getRng().startOffset){const t=a.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}return!0})},y=()=>{Eu(e)||e.on("BeforeExecCommand mousedown",()=>{p("StyleWithCSS",!1),p("enableInlineTableEditing",!1),ru(e)||p("enableObjectResizing",!1)})},_=()=>{e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},A=()=>{e.inline||e.on("keydown",()=>{document.activeElement===document.body&&e.getWin().focus()})},k=()=>{e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",t=>{let n;"HTML"===t.target.nodeName&&(n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged())}))},x=()=>{d&&e.on("keydown",t=>{!wm.metaKeyPressed(t)||t.shiftKey||37!==t.keyCode&&39!==t.keyCode||(t.preventDefault(),e.selection.getSel().modify("move",37===t.keyCode?"backward":"forward","lineboundary"))})},w=()=>{e.on("click",e=>{let t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},E=()=>{e.on("init",()=>{e.dom.bind(e.getBody(),"submit",e=>{e.preventDefault()})})},S=C;return IA(e)?(c&&(g(),b(),E(),m(),u&&(A(),k(),w())),s&&(h(),y(),_(),x())):(e.on("keydown",t=>{if(f(t)||t.keyCode!==wm.BACKSPACE)return;let n=a.getRng();const o=n.startContainer,i=n.startOffset,l=r.getRoot();let s=o;if(n.collapsed&&0===i){for(;s.parentNode&&s.parentNode.firstChild===s&&s.parentNode!==l;)s=s.parentNode;"BLOCKQUOTE"===s.nodeName&&(e.formatter.toggle("blockquote",void 0,s),n=r.createRng(),n.setStart(o,0),n.setEnd(o,0),a.setRng(n))}}),(()=>{const t=e=>{const t=r.create("body"),n=e.cloneContents();return t.appendChild(n),a.serializer.serialize(t,{format:"html"})};e.on("keydown",a=>{const i=a.keyCode;if(!f(a)&&(i===o||i===n)&&e.selection.isEditable()){const n=e.selection.isCollapsed(),o=e.getBody();if(n&&!xa(e.schema,o))return;if(!n&&!(n=>{const o=t(n),a=r.createRng();return a.selectNode(e.getBody()),o===t(a)})(e.selection.getRng()))return;a.preventDefault(),e.setContent(""),o.firstChild&&r.isBlock(o.firstChild)?e.selection.setCursorLocation(o.firstChild,0):e.selection.setCursorLocation(o,0),e.nodeChanged()}})})(),on.windowsPhone||e.on("keyup focusin mouseup",t=>{wm.modifierPressed(t)||(e=>{const t=e.getBody(),n=e.selection.getRng();return n.startContainer===n.endContainer&&n.startContainer===t&&0===n.startOffset&&n.endOffset===t.childNodes.length})(e)||a.normalize()},!0),c&&(g(),b(),e.on("init",()=>{p("DefaultParagraphSeparator",Oc(e))}),E(),v(),i.addNodeFilter("br",e=>{let t=e.length;for(;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}),u?(A(),k(),w()):m()),s&&(e.on("mousedown",t=>{Ue(F.from(t.clientX),F.from(t.clientY),(n,o)=>{const r=e.getDoc().caretPositionFromPoint(n,o);if(r&&"IMG"===(a=r.offsetNode).nodeName&&e.dom.isEditable(a)){const n=r.offsetNode.getBoundingClientRect();t.preventDefault(),e.hasFocus()||e.focus(),e.selection.select(r.offsetNode),t.clientX<n.left||t.clientY<n.top?e.selection.collapse(!0):(t.clientX>n.right||t.clientY>n.bottom)&&e.selection.collapse(!1)}var a})}),e.on("keydown",t=>{if(!f(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(a.isCollapsed()&&0===a.getRng().startOffset){const e=a.getNode(),n=e.previousSibling;if("HR"===e.nodeName)return r.remove(e),void t.preventDefault();n&&n.nodeName&&"hr"===n.nodeName.toLowerCase()&&(r.remove(n),t.preventDefault())}}}),h(),(()=>{const n=()=>{const n=r.getAttribs(a.getStart().cloneNode(!1));return()=>{const o=a.getStart();o!==e.getBody()&&(r.setAttrib(o,"style",null),t(n,e=>{o.setAttributeNode(e.cloneNode(!0))}))}},o=()=>!a.isCollapsed()&&r.getParent(a.getStart(),r.isBlock)!==r.getParent(a.getEnd(),r.isBlock);e.on("keypress",t=>{let r;return!(!(f(t)||8!==t.keyCode&&46!==t.keyCode)&&o()&&(r=n(),e.getDoc().execCommand("delete",!1),r(),t.preventDefault(),1))}),r.bind(e.getDoc(),"cut",t=>{if(!f(t)&&o()){const t=n();sm.setEditorTimeout(e,()=>{t()})}})})(),y(),e.on("SetContent ExecCommand",e=>{"setcontent"!==e.type&&"mceInsertLink"!==e.command||t(r.select("a:not([data-mce-block])"),e=>{var t;let n=e.parentNode;const o=r.getRoot();if((null==n?void 0:n.lastChild)===e){for(;n&&!r.isBlock(n);){if((null===(t=n.parentNode)||void 0===t?void 0:t.lastChild)!==n||n===o)return;n=n.parentNode}r.add(n,"br",{"data-mce-bogus":1})}})}),_(),x(),v())),{refreshContentEditable:S,isHidden:()=>{if(!s||e.removed)return!1;const t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount}}},mO=rl.DOM,gO=e=>e.inline?e.getElement().nodeName.toLowerCase():void 0,hO=e=>Ae(e,e=>!1===y(e)),bO=e=>{const t=e.options.get,n=e.editorUpload.blobCache;return hO({allow_conditional_comments:t("allow_conditional_comments"),allow_html_data_urls:t("allow_html_data_urls"),allow_svg_data_urls:t("allow_svg_data_urls"),allow_html_in_named_anchor:t("allow_html_in_named_anchor"),allow_script_urls:t("allow_script_urls"),allow_mathml_annotation_encodings:t("allow_mathml_annotation_encodings"),allow_unsafe_link_target:t("allow_unsafe_link_target"),convert_unsafe_embeds:t("convert_unsafe_embeds"),convert_fonts_to_spans:t("convert_fonts_to_spans"),extended_mathml_attributes:t("extended_mathml_attributes"),extended_mathml_elements:t("extended_mathml_elements"),fix_list_elements:t("fix_list_elements"),font_size_legacy_values:t("font_size_legacy_values"),forced_root_block:t("forced_root_block"),forced_root_block_attrs:t("forced_root_block_attrs"),preserve_cdata:t("preserve_cdata"),inline_styles:t("inline_styles"),root_name:gO(e),sandbox_iframes:t("sandbox_iframes"),sandbox_iframes_exclusions:md(e),sanitize:t("xss_sanitization"),validate:!0,blob_cache:n,document:e.getDoc()})},vO=e=>{const t=e.options.get;return hO({custom_elements:t("custom_elements"),extended_valid_elements:t("extended_valid_elements"),invalid_elements:t("invalid_elements"),invalid_styles:t("invalid_styles"),schema:t("schema"),valid_children:t("valid_children"),valid_classes:t("valid_classes"),valid_elements:t("valid_elements"),valid_styles:t("valid_styles"),verify_html:t("verify_html"),padd_empty_block_inline_children:t("format_empty_lines")})},yO=e=>e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader,_O=e=>{const t=yO(e),n=tu(e),o=e.contentCSS,r=()=>{t.unloadAll(o),e.inline||e.ui.styleSheetLoader.unloadAll(n)},a=()=>{e.removed?r():e.on("remove",r)};if(e.contentStyles.length>0){let t="";sn.each(e.contentStyles,e=>{t+=e+"\r\n"}),e.dom.addStyle(t)}const i=Promise.all(((e,t,n)=>{const{pass:o,fail:r}=W(t,e=>tinymce.Resource.has(Sk(e))),a=o.map(t=>{const n=tinymce.Resource.get(Sk(t));return f(n)?Promise.resolve(yO(e).loadRawCss(t,n)):Promise.resolve()}),i=[...a,yO(e).loadAll(r)];return e.inline?i:i.concat([e.ui.styleSheetLoader.loadAll(n)])})(e,o,n)).then(a).catch(a),l=eu(e);return l&&((e,t)=>{const n=fn(e.getBody()),o=Yn($n(n)),r=dn("style");go(r,"type","text/css"),uo(r,pn(t)),uo(o,r),e.on("remove",()=>{xo(r)})})(e,l),i},AO=e=>{!0!==e.removed&&((e=>{IA(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})})(e),(e=>{e.bindPendingEventDelegates(),e.initialized=!0,(e=>{e.dispatch("Init")})(e),e.focus(!0),(e=>{const t=e.dom.getRoot();e.inline||of(e)&&e.selection.getStart(!0)!==t||Tp(t).each(t=>{const n=t.getNode(),o=Xr(n)?Tp(n).getOr(t):t;e.selection.setRng(o.toRange())})})(e),e.nodeChanged({initial:!0});const t=Ru(e);k(t)&&t.call(e,e),(e=>{const t=Vu(e);t&&sm.setEditorTimeout(e,()=>{let n;
vendor: 2,028 bytes, line 2
2n=!0===t?e:e.editorManager.get(t),n&&!n.destroyed&&(n.focus(),n.selection.scrollIntoView())},100)})(e),kk(e)&&wk(e,!0)})(e))},kO=e=>{const t=e.getElement();let n=e.getDoc();e.inline&&(mO.addClass(t,"mce-content-body"),e.contentDocument=n=document,e.contentWindow=window,e.bodyElement=t,e.contentAreaContainer=t);const o=e.getBody();o.disabled=!0,e.readonly=Eu(e),e._editableRoot=Su(e),!vd(e)&&e.hasEditableRoot()&&(e.inline&&"static"===mO.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable="true"),o.disabled=!1,e.editorUpload=Nk(e),e.schema=Ii(vO(e)),e.dom=rl(n,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,update_styles:!0,root_element:e.inline?e.getBody():null,collect:e.inline,schema:e.schema,contentCssCors:Zc(e),referrerPolicy:Wc(e),onSetAttrib:t=>{e.dispatch("SetAttrib",t)}}),e.parser=(e=>{const t=$_(bO(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(t,n)=>{const o=e.dom,r="data-mce-"+n;let a=t.length;for(;a--;){const i=t[a];let l=i.attr(n);if(l&&!i.attr(r)){if(0===l.indexOf("data:")||0===l.indexOf("blob:"))continue;"style"===n?(l=o.serializeStyle(o.parseStyle(l),i.name),l.length||(l=null),i.attr(r,l),i.attr(n,l)):"tabindex"===n?(i.attr(r,l),i.attr(n,null)):i.attr(r,e.convertURL(l,n,i.name))}}}),t.addNodeFilter("script",e=>{let t=e.length;for(;t--;){const n=e[t],o=n.attr("type")||"no/type";0!==o.indexOf("mce-")&&n.attr("type","mce-"+o)}}),ad(e)&&t.addNodeFilter("#cdata",t=>{var n;let o=t.length;for(;o--;){const r=t[o];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(null!==(n=r.value)&&void 0!==n?n:"")+"]]"}}),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",t=>{let n=t.length;const o=e.schema.getNonEmptyElements();for(;n--;){const e=t[n];e.isEmpty(o)&&0===e.getAll("br").length&&e.append(new mg("br",1))}}),t})(e),e.serializer=zA((e=>{const t=e.options.get;return{...bO(e),...vO(e),...hO({remove_trailing_brs:t("remove_trailing_brs"),pad_empty_with_br:t("pad_empty_with_br"),url_converter:t("url_converter"),url_converter_scope:t("url_c
2onverter_scope"),element_format:t("element_format"),entities:t("entities"),entity_encoding:t("entity_encoding"),indent:t("indent"),indent_after:t("indent_after"),indent_before:t("indent_before")})}})(e),e),e.selection=RA(e.dom,e.getWin(),e.serializer,e),e.annotator=Yf(e),e.formatter=Kk(e),e.undoManager=Wk(e),e._nodeChangeDispatcher=new hI(e),e._selectionOverrides=DB(e),(e=>{const t=Ge(),n=Te(!1),o=at(t=>{e.dispatch("longpress",{...t,type:"longpress"}),n.set(!0)},400);e.on("touchstart",e=>{wC(e).each(r=>{o.cancel();const a={x:r.clientX,y:r.clientY,target:e.target};o.throttle(e),n.set(!1),t.set(a)})},!0),e.on("touchmove",r=>{o.cancel(),wC(r).each(o=>{t.on(r=>{((e,t)=>{const n=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y);return n>5||o>5})(o,r)&&(t.clear(),n.set(!1),e.dispatch("longpresscancel"))})})},!0),e.on("touchend touchcancel",r=>{o.cancel(),"touchcancel"!==r.type&&t.get().filter(e=>e.target.isEqualNode(r.target)).each(()=>{n.get()?r.preventDefault():e.dispatch("tap",{...r,type:"tap"})})},!0)})(e),(e=>{(e=>{e.on("click",t=>{e.dom.getParent(t.target,"details")&&t.preventDefault()})})(e),(e=>{e.parser.addNodeFilter("details",t=>{const n=dd(e);K(t,e=>{"expanded"===n?e.attr("open","open"):"collapsed"===n&&e.attr("open",null)})}),e.serializer.addNodeFilter("details",t=>{const n=pd(e);K(t,e=>{"expanded"===n?e.attr("open","open"):"collapsed"===n&&e.attr("open",null)})})})(e)})(e),(e=>{const t="contenteditable",n=" "+sn.trim(od(e))+" ",o=" "+sn.trim(nd(e))+" ",r=BC(n),a=BC(o),i=rd(e);i.length>0&&e.on("BeforeSetContent",t=>{((e,t,n)=>{let o=t.length,r=n.content;if("raw"!==n.format){for(;o--;)r=r.replace(t[o],OC(e,r,nd(e)));n.content=r}})(e,i,t)}),e.parser.addAttributeFilter("class",e=>{let n=e.length;for(;n--;){const o=e[n];r(o)?o.attr(t,"true"):a(o)&&o.attr(t,"false")}}),e.serializer.addAttributeFilter(t,e=>{let n=e.length;for(;n--;){const o=e[n];if(!r(o)&&!a(o))continue;const l=o.attr("data-mce-content");i.length>0&&l?LC(i,l)?(o.name="#text",o.type=3,o.raw=!0,o.value=l):o.remove():o.attr(t,null)}})})(e),IA(e)||((e=>{e.on("mousedown",t=>{t.detail>=3&&(t.preventDefault(),iB(e))})})(e),(e=>{pO(e)})(e));const r=gI(e);((e,t)=>{e.addCommand("delete",()=>{((e,t)=>{xC(e,t,!1).fold(()=>{e.selection.isEditable()&&(Yh(e),eb(e))},N)})(e,t)}),e.addCommand("forwardDelete",()=>{((e,t)=>{xC(e,t,!0).fold(()=>{e.selection.isEditable()&&Jh(e)},N)})(e,t)})})(e,r),(e=>{e.on("NodeChange",()=>(e=>{const t=e.dom,n=e.selection,o=e.schema,r=o.getBlockElements(),a=n.getStart(),i=e.getBody();let l,s,c=null;const u=Oc(e);if(!a||!Kr(a))return;const d=i.nodeName.toLowerCase();if(!o.isValidChild(d,u.toLowerCase())||((e,t,n)=>q(eh(fn(n),fn(t)),t=>CC(e,t.dom)))(r,i,a))return;if(i.firstChild===i.lastChild&&la(i.firstChild))return l=TC(e),l.appendChild(Dl().dom),i.replaceChild(l,i.firstChild),e.selection.setCursorLocation(l,0),void e.nodeChanged();let p=i.firstChild;for(;p;)if(Kr(p)&&Fa(o,p),EC(o,p)){if(SC(r,p)){s=p,p=p.nextSibling,t.remove(s);continue}if(!l){if(!c&&e.hasFocus()&&(c=Bx(e.selection.getRng(),()=>document.createElement("span"))),!p.parentNode){p=null;break}l=TC(e),i.insertBefore(l,p)}s=p,p=p.nextSibling,l.appendChild(s)}else l=null,p=p.nextSibling;c&&(e.selection.setRng(Ox(c)),e.nodeChanged())})(e))})(e),(e=>{var t;const n=e.dom,o=Oc(e),r=null!==(t=iu(e))&&void 0!==t?t:"",a=(t,i)=>{if((e=>{if(Jk(e)){const t=e.keyCode;return!Xk(e)&&(wm.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||H($k,t))}return!1})(t))return;const l=e.getBody(),s=!(e=>Jk(e)&&!(Xk(e)||"keyup"===e.type&&229===e.keyCode))(t)&&((e,t,n)=>{if(e.isEmpty(t,void 0,{skipBogus:!1,includeZwsp:!0})){const o=t.firstElementChild;return!o||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&n===o.nodeName.toLowerCase()}return!1})(n,l,o);(""!==n.getAttrib(l,Yk)!==s||i)&&(n.setAttrib(l,Yk,s?r:null),((e,t)=>{e.dispatch("PlaceholderToggle",{state:t})})(e,s),e.on(s?"keydown":"keyup",a),e.off(s?"keyup":"keydown",a))};tt(r)&&e.on("init",t=>{a(t,!0),e.on("change SetContent ExecCommand",a),e.on("paste",t=>sm.setEditorTimeout(e,()=>a(t)))})})(e),QI(e);const a=(e=>{const t=e;return(e=>we(e.plugins,"rtc").bind(e=>F.from(e.setup)))(e).fold(()=>(t.rtcInstance=TA(e),F.none()),e=>(t.rtcInstance=(()=>{const e=T(null),t=T("");return{init:{bindEvents:C},undoManager:{beforeChange:C,add:e,undo:e,redo:e,clear:C,reset:C,hasUndo:P,hasRedo:P,transact:e,ignore:C,extra:C},formatter:{match:P,matchAll:T([]),matchNode:T(void 0),canApply:P,closest:t,apply:C,remove:C,toggle:C,formatChanged:T({unbind:C})},editor:{getContent:t,setContent:T({content:"",html:""}),insertContent:T(""),addVisual:C},selection:{getContent:t},autocompleter:{addDecoration:C,removeDecoration:C},raw:{getModel:T(F.none())}}})(),F.some(()=>e().then(e=>(t.rtcInstance=(e=>{const t=e=>m(e)?e:{},{init:n,undoManager:o,formatter:r,editor:a,selection:i,autocompleter:l,raw:s}=e;return{init:{bindEvents:n.bindEvents},undoManager:{beforeChange:o.beforeChange,add:o.add,undo:o.undo,redo:o.redo,clear:o.clear,reset:o.reset,hasUndo:o.hasUndo,hasRedo:o.hasRedo,transact:(e,t,n
vendor: 19,784 bytes, line 2
2)=>o.transact(n),ignore:(e,t)=>o.ignore(t),extra:(e,t,n,r)=>o.extra(n,r)},formatter:{match:(e,n,o,a)=>r.match(e,t(n),a),matchAll:r.matchAll,matchNode:r.matchNode,canApply:e=>r.canApply(e),closest:e=>r.closest(e),apply:(e,n,o)=>r.apply(e,t(n)),remove:(e,n,o,a)=>r.remove(e,t(n)),toggle:(e,n,o)=>r.toggle(e,t(n)),formatChanged:(e,t,n,o,a)=>r.formatChanged(t,n,o,a)},editor:{getContent:e=>a.getContent(e),setContent:(e,t)=>({content:a.setContent(e,t),html:""}),insertContent:(e,t)=>(a.insertContent(e),""),addVisual:a.addVisual},selection:{getContent:(e,t)=>i.getContent(t)},autocompleter:{addDecoration:l.addDecoration,removeDecoration:l.removeDecoration},raw:{getModel:()=>F.some(s.getRawModel())}}})(e),e.rtc.isRemote)))))})(e);(e=>{const t=e.getDoc(),n=e.getBody();(e=>{e.dispatch("PreInit")})(e),zu(e)||(t.body.spellcheck=!1,mO.setAttrib(n,"spellcheck","false")),e.quirks=fO(e),(e=>{e.dispatch("PostRender")})(e);const o=nu(e);void 0!==o&&(n.dir=o);const r=Uu(e);r&&e.on("BeforeSetContent",e=>{sn.each(r,t=>{e.content=e.content.replace(t,e=>"\x3c!--mce:protected "+escape(e)+"--\x3e")})}),e.on("SetContent",()=>{e.addVisual(e.getBody())}),e.on("compositionstart compositionend",t=>{e.composing="compositionstart"===t.type})})(e),(e=>{const t=hd(e);var n;f(bd(e))||!y(t)&&"INVALID"!=((e=>"gpl"===e.toLowerCase())(n=t)||(e=>e.length>=64&&e.length<=255)(n)?"VALID":"INVALID")||console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")})(e),a.fold(()=>{const t=(e=>{let t=!1;const n=setTimeout(()=>{t||e.setProgressState(!0)},500);return()=>{clearTimeout(n),t=!0,e.setProgressState(!1)}})(e);_O(e).then(()=>{AO(e),t()})},t=>{e.setProgressState(!0),_O(e).then(()=>{t().then(t=>{e.setProgressState(!1),AO(e),LA(e)},t=>{e.notificationManager.open({type:"error",text:String(t)}),AO(e),LA(e)})})})},xO=rl.DOM,wO=rl.DOM,CO=(e,t)=>({editorContainer:e,iframeContainer:t,api:{}}),EO=e=>{const t=e.getElement();return e.inline?CO(null):(e=>{const t=wO.create("div");return wO.insertAfter(t,e),CO(t,t)})(t)},SO=async e=>{e.dispatch("ScriptsLoaded"),(e=>{const t=sn.trim(Uc(e)),n=e.ui.registry.getAll().icons,o={...tk.get("default").icons,...tk.get(t).icons};he(o,(t,o)=>{Ce(n,o)||e.ui.registry.addIcon(o,t)})})(e),(e=>{const t=cu(e);if(f(t)){const n=dk.get(t);e.theme=n(e,dk.urls[t])||{},k(e.theme.init)&&e.theme.init(e,dk.urls[t]||e.documentBaseUrl.replace(/\/$/,""))}else e.theme={}})(e),(e=>{const t=du(e),n=nk.get(t);e.model=n(e,nk.urls[t])})(e),(e=>{const t=[];K(Iu(e),n=>{((e,t,n)=>{const o=uk.get(n),r=uk.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=sn.trim(n),o&&-1===sn.inArray(t,n)){if(e.plugins[n])return;try{const a=o(e,r)||{};e.plugins[n]=a,k(a.init)&&(a.init(e,r),t.push(n))}catch(t){((e,t,n)=>{const o=ul.translate(["Failed to initialize plugin: {0}",t]);uc(e,"PluginLoadError",{message:o}),bk(o,n),mk(e,o)})(e,n,t)}}})(e,t,(e=>e.replace(/^\-/,""))(n))})})(e);const t=await(e=>{const t=e.getElement();return e.orgDisplay=t.style.display,f(cu(e))?(e=>{const t=e.theme.renderUI;return t?t():EO(e)})(e):k(cu(e))?(e=>{const t=e.getElement(),n=cu(e)(e,t);return n.editorContainer.nodeType&&(n.editorContainer.id=n.editorContainer.id||e.id+"_parent"),n.iframeContainer&&n.iframeContainer.nodeType&&(n.iframeContainer.id=n.iframeContainer.id||e.id+"_iframecontainer"),n.height=n.iframeHeight?n.iframeHeight:t.offsetHeight,n})(e):EO(e)})(e);((e,t)=>{const n={show:F.from(t.show).getOr(C),hide:F.from(t.hide).getOr(C),isEnabled:F.from(t.isEnabled).getOr(R),setEnabled:n=>{n&&("readonly"===e.mode.get()||kk(e))||F.from(t.setEnabled).each(e=>e(n))}};e.ui={...e.ui,...n}})(e,F.from(t.api).getOr({})),e.editorContainer=t.editorContainer,(e=>{e.contentCSS=e.contentCSS.concat((e=>Tk(e,Qc(e)))(e),(e=>Tk(e,tu(e)))(e))})(e),e.inline?kO(e):((e,t)=>{((e,t)=>{const n=on.browser.isFirefox()?Nu(e):"Rich Text Area",o=e.translate(n),r=vo(fn(e.getElement()),"tabindex").bind(ot),a=((e,t,n,o)=>{const r=dn("iframe");return o.each(e=>go(r,"tabindex",e)),ho(r,n),ho(r,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),dr(r,"tox-edit-area__iframe"),r})(e.id,o,wc(e),r).dom;a.onload=()=>{a.onload=null,e.dispatch("load")},e.contentAreaContainer=t.iframeContainer,e.iframeElement=a,e.iframeHTML=(e=>{let t=Cc(e)+"<html><head>";Ec(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';const n=Sc(e),o=Tc(e),r=e.translate(Nu(e));return Ic(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+Ic(e)+'" />'),t+=`</head><body id="${n}" class="mce-content-body ${o}" data-id="${e.id}" aria-label="${r}"><br></body></html>`,t})(e),xO.add(t.iframeContainer,a)})(e,t),t.editorContainer&&(t.editorContainer.style.display=e.orgDisplay,e.hidden=xO.isHidden(t.editorContainer)),e.getElement().style.display="none",xO.setAttrib(e.id,"aria-hidden","true"),e.getElement().style.visibility=e.orgVisibility,(e=>{const t=e.iframeElement,n=()=>{e.contentDocument=t.contentDocument,kO(e)};if(sd(e)||on.browser.isFirefox()){const t=e.getDoc();t.open(),t.write(e.iframeHTML),t.close(),n()}else{const r=(o=fn(t),eo(o,"load",no,()=>{r.unbind(),n()}));t.srcdoc=e.iframeHTML}var o})(e)})(e,{editorContainer:t.editorContainer,iframeContainer:t.iframeContainer})},TO=rl.DOM,IO=e=>"-"===e.charAt(0),BO=(e,t,n)=>F.from(t).filter(e=>tt(e)&&!tk.has(e)).map(t=>({url:`${e.editorManager.baseURL}/icons/${t}/icons${n}.js`,name:F.some(t)})),OO=(e,t)=>{const n=il.ScriptLoader,o=()=>{!e.removed&&(e=>{const t=cu(e);return!f(t)||A(dk.get(t))})(e)&&(e=>{const t=du(e);return A(nk.get(t))})(e)&&SO(e)};((e,t)=>{const n=cu(e);if(f(n)&&!IO(n)&&!Ce(dk.urls,n)){const o=uu(e),r=o?e.documentBaseURI.toAbsolute(o):`themes/${n}/theme${t}.js`;dk.load(n,r).catch(()=>{((e,t,n)=>{gk(e,"ThemeLoadError",hk("theme",t,n))})(e,r,n)})}})(e,t),((e,t)=>{const n=du(e);if("plugin"!==n&&!Ce(nk.urls,n)){const o=pu(e),r=f(o)?e.documentBaseURI.toAbsolute(o):`models/${n}/model${t}.js`;nk.load(n,r).catch(()=>{((e,t,n)=>{gk(e,"ModelLoadError",hk("model",t,n))})(e,r,n)})}})(e,t),((e,t)=>{const n=$c(t),o=Yc(t);if(!ul.hasCode(n)&&"en"!==n){const r=tt(o)?o:`${t.editorManager.baseURL}/langs/${n}.js`;e.add(r).catch(()=>{((e,t,n)=>{gk(e,"LanguageLoadError",hk("language",t,n))})(t,r,n)})}})(n,e),((e,t,n)=>{const o=BO(t,"default",n),r=(e=>F.from(jc(e)).filter(tt).map(e=>({url:e,name:F.none()})))(t).orThunk(()=>BO(t,Uc(t),""));K((e=>{const t=[],n=e=>{t.push(e)};for(let t=0;t<e.length;t++)e[t].each(n);return t})([o,r]),n=>{e.add(n.url).catch(()=>{((e,t,n)=>{gk(e,"IconsLoadError",hk("icons",t,n))})(t,n.url,n.name.getOrUndefined())})})})(n,e,t),((e,t)=>{const n=(t,n)=>{uk.load(t,n).catch(()=>{((e,t,n)=>{gk(e,"PluginLoadError",hk("plugin",t,n))})(e,n,t)})};he(Bu(e),(t,o)=>{n(o,t),e.options.set("plugins",Iu(e).concat(o))}),K(Iu(e),e=>{!(e=sn.trim(e))||uk.urls[e]||IO(e)||n(e,`plugins/${e}/plugin${t}.js`)})})(e,t),n.loadQueue().then(o,o)},LO=Wt().deviceType,DO=LO.isPhone(),MO=LO.isTablet(),NO=e=>{if(_(e))return[];{const t=h(e)?e:e.split(/[ ,]/),n=G(t,Xe);return $(n,tt)}},PO=(e,t)=>{const n=(t=>{const n={},o={};return _e(t,(t,n)=>H(e,n),ye(n),ye(o)),{t:n,f:o}})(t);return o=n.t,r=n.f,{sections:T(o),options:T(r)};var o,r},RO=(e,t)=>Ce(e.sections(),t),FO=(e,t)=>({table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:we(e,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1,...t?{menubar:!1}:{}}),VO=(e,t)=>{var n;const o=null!==(n=t.external_plugins)&&void 0!==n?n:{};return e&&e.external_plugins?sn.extend({},e.external_plugins,o):o},zO=(e,t,n,o,r)=>{var a;const i=e?{mobile:FO(null!==(a=r.mobile)&&void 0!==a?a:{},t)}:{},l=PO(["mobile"],Re(i,r)),s=sn.extend(n,o,l.options(),((e,t)=>e&&RO(t,"mobile"))(e,l)?((e,t,n={})=>{const o=e.sections(),r=we(o,t).getOr({});return sn.extend({},n,r)})(l,"mobile"):{},{external_plugins:VO(o,l.options())});return((e,t,n,o)=>{const r=NO(n.forced_plugins),a=NO(o.plugins),i=((e,t)=>RO(e,t)?e.sections()[t]:{})(t,"mobile"),l=((e,t,n,o)=>e&&RO(t,"mobile")?o:n)(e,t,a,i.plugins?NO(i.plugins):a),s=((e,t)=>[...NO(e),...NO(t)])(r,l);return sn.extend(o,{forced_plugins:r,plugins:s})})(e,l,o,s)},UO=e=>{(e=>{const t=t=>()=>{K("left,center,right,justify".split(","),n=>{t!==n&&e.formatter.remove("align"+n)}),"none"!==t&&(t=>{e.formatter.toggle(t,void 0),e.nodeChanged()})("align"+t)};e.editorCommands.addCommands({JustifyLeft:t("left"),JustifyCenter:t("center"),JustifyRight:t("right"),JustifyFull:t("justify"),JustifyNone:t("none")})})(e),(e=>{const t=t=>()=>{const n=e.selection,o=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks();return q(o,n=>A(e.formatter.matchNode(n,t)))};e.editorCommands.addCommands({JustifyLeft:t("alignleft"),JustifyCenter:t("aligncenter"),JustifyRight:t("alignright"),JustifyFull:t("alignjustify")},"state")})(e)},jO=(e,t)=>{const n=e.selection,o=e.dom;return/^ | $/.test(t)?((e,t,n,o)=>{const r=fn(e.getRoot());return n=xh(r,Ns.fromRangeStart(t),o)?n.replace(/^ /," "):n.replace(/^ /," "),wh(r,Ns.fromRangeEnd(t),o)?n.replace(/( | )(<br( \/)>)?$/," "):n.replace(/ (<br( \/)?>)?$/," ")})(o,n.getRng(),t,e.schema):t},HO=(e,t)=>{if(e.selection.isEditable()){const{content:n,details:o}=(e=>{if("string"!=typeof e){const t=sn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}})(t);eA(e,{...o,content:jO(e,n),format:"html",set:!1,selection:!0}).each(t=>{const n=((e,t,n)=>BA(e).editor.insertContent(t,n))(e,t.content,o);tA(e,n,t),e.addVisual()})}},qO={"font-size":"size","font-family":"face"},GO=Ln("font"),KO=e=>(t,n)=>F.from(n).map(fn).filter(Tn).bind(n=>((e,t,n)=>wr(fn(n),t=>(t=>Fo(t,e).orThunk(()=>GO(t)?we(qO,e).bind(e=>vo(t,e)):F.none()))(t),e=>An(fn(t),e)))(e,t,n.dom).or(((e,t)=>F.from(rl.DOM.getStyle(t,e,!0)))(e,n.dom))).getOr(""),ZO=KO("font-size"),WO=E(e=>e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),KO("font-family")),$O=e=>Tp(e.getBody()).bind(e=>{const t=e.container();return F.from(ta(t)?t.parentNode:t)}),YO=(e,t)=>((e,t)=>(e=>F.from(e.selection.getRng()).bind(t=>{const n=e.getBody();return t.startContainer===n&&0===t.startOffset?F.none():F.from(e.selection.getStart(!0))}))(e).orThunk(O($O,e)).map(fn).filter(Tn).bind(t))(e,S(F.some,t)),JO=(e,t)=>{if(/^[0-9.]+$/.test(t)){const n=parseInt(t,10);if(n>=1&&n<=7){const o=(e=>sn.explode(e.options.get("font_size_style_values")))(e),r=(e=>sn.explode(e.options.get("font_size_classes")))(e);return r.length>0?r[n-1]||t:o[n-1]||t}return t}return t},XO=e=>{const t=e.split(/\s*,\s*/);return G(t,e=>-1===e.indexOf(" ")||$e(e,'"')||$e(e,"'")?e:`'${e}'`).join(",")},QO=(e,t)=>{if(e.mode.isReadOnly())return;const n=e.dom,o=e.selection.getRng(),r=t?e.selection.getStart():e.selection.getEnd(),a=t?o.startContainer:o.endContainer,i=gT(n,a);if(!i||!i.isContentEditable)return;const l=t?lo:so,s=Oc(e);((e,t,n,o)=>{const r=e.dom,a=e=>r.isBlock(e)&&e.parentElement===n,i=a(t)?t:r.getParent(o,a,n);return F.from(i).map(fn)})(e,r,i,a).each(t=>{const n=yT(e,a,t.dom,i,!1,s);l(t,fn(n)),e.selection.setCursorLocation(n,0),e.dispatch("NewBlock",{newBlock:n}),sT(e,"insertParagraph")})},eL=e=>{UO(e),(e=>{e.editorCommands.addCommands({"Cut,Copy,Paste":t=>{const n=e.getDoc();let o;try{n.execCommand(t)}catch(e){o=!0}if("paste"!==t||n.queryCommandEnabled(t)||(o=!0),o||!n.queryCommandSupported(t)){let t=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(on.os.isMacOS()||on.os.isiOS())&&(t=t.replace(/Ctrl\+/g,"â+")),e.notificationManager.open({text:t,type:"error"})}}})})(e),(e=>{e.editorCommands.addCommands({mceAddUndoLevel:()=>{e.undoManager.add()},mceEndUndoLevel:()=>{e.undoManager.add()},Undo:()=>{e.undoManager.undo()},Redo:()=>{e.undoManager.redo()}})})(e),(e=>{e.editorCommands.addCommands({mceSelectNodeDepth:(t,n,o)=>{let r=0;e.dom.getParent(e.selection.getNode(),t=>!Kr(t)||r++!==o||(e.selection.select(t),!1),e.getBody())},mceSelectNode:(t,n,o)=>{e.selection.select(o)},selectAll:()=>{const t=e.dom.getParent(e.selection.getStart(),ua);if(t){const n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}}})})(e),(e=>{e.editorCommands.addCommands({mceCleanup:()=>{const t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},insertImage:(t,n,o)=>{HO(e,e.dom.createHTML("img",{src:o}))},insertHorizontalRule:()=>{e.execCommand("mceInsertContent",!1,"<hr>")},insertText:(t,n,o)=>{HO(e,e.dom.encode(o))},insertHTML:(t,n,o)=>{HO(e,o)},mceInsertContent:(t,n,o)=>{HO(e,o)},mceSetContent:(t,n,o)=>{e.setContent(o)},mceReplaceContent:(t,n,o)=>{e.execCommand("mceInsertContent",!1,o.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceNewDocument:()=>{e.setContent(Ku(e))}})})(e),(e=>{const t=(t,n,o)=>{if(e.mode.isReadOnly())return;const r=f(o)?{href:o}:o,a=e.dom.getParent(e.selection.getNode(),"a");m(r)&&f(r.href)&&(r.href=r.href.replace(/ /g,"%20"),a&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,a))};e.editorCommands.addCommands({unlink:()=>{if(e.selection.isEditable()){if(e.selection.isCollapsed()){const t=e.dom.getParent(e.selection.getStart(),"a");return void(t&&e.dom.remove(t,!0))}e.formatter.remove("link")}},mceInsertLink:t,createLink:t})})(e),(e=>{e.editorCommands.addCommands({Indent:()=>{(e=>{_C(e,"indent")})(e)},Outdent:()=>{AC(e)}}),e.editorCommands.addCommands({Outdent:()=>bC(e)},"state")})(e),(e=>{e.editorCommands.addCommands({InsertNewBlockBefore:()=>{(e=>{QO(e,!0)})(e)},InsertNewBlockAfter:()=>{(e=>{QO(e,!1)})(e)}})})(e),(e=>{e.editorCommands.addCommands({insertParagraph:()=>{XT(BT,e)},mceInsertNewLine:(t,n,o)=>{QT(e,o)},InsertLineBreak:(t,n,o)=>{XT(FT,e)}})})(e),(e=>{(e=>{const t=(t,n)=>{e.formatter.toggle(t,n),e.nodeChanged()};e.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":e=>{t(e)},"ForeColor,HiliteColor":(e,n,o)=>{t(e,{value:o})},BackColor:(e,n,o)=>{t("hilitecolor",{value:o})},FontName:(t,n,o)=>{((e,t)=>{const n=JO(e,t);e.formatter.toggle("fontname",{value:XO(n)}),e.nodeChanged()})(e,o)},FontSize:(t,n,o)=>{((e,t)=>{e.formatter.toggle("fontsize",{value:JO(e,t)}),e.nodeChanged()})(e,o)},LineHeight:(t,n,o)=>{((e,t)=>{e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()})(e,o)},Lang:(e,n,o)=>{var r;t(e,{value:o.code,customValue:null!==(r=o.customCode)&&void 0!==r?r:null})},RemoveFormat:t=>{e.formatter.remove(t)},mceBlockQuote:()=>{t("blockquote")},FormatBlock:(e,n,o)=>{t(f(o)?o:"p")},mceToggleFormat:(e,n,o)=>{t(o)}})})(e),(e=>{const t=t=>e.formatter.match(t);e.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":e=>t(e),mceBlockQuote:()=>t("blockquote")},"state"),e.editorCommands.addQueryValueHandler("FontName",()=>(e=>YO(e,t=>WO(e.getBody(),t.dom)).getOr(""))(e)),e.editorCommands.addQueryValueHandler("FontSize",()=>(e=>YO(e,t=>ZO(e.getBody(),t.dom)).getOr(""))(e)),e.editorCommands.addQueryValueHandler("LineHeight",()=>(e=>YO(e,t=>{const n=fn(e.getBody()),o=wr(t,e=>Fo(e,"line-height"),O(An,n));return o.getOrThunk(()=>{const e=parseFloat(Po(t,"line-height")),n=parseFloat(Po(t,"font-size"));return String(e/n)})}).getOr(""))(e))})(e)})(e),(e=>{e.editorCommands.addCommands({mceRemoveNode:(t,n,o)=>{const r=null!=o?o:e.selection.getNode();if(r!==e.getBody()){const t=e.selection.getBookmark();e.dom.remove(r,!0),e.selection.moveToBookmark(t)}},mcePrint:()=>{e.getWin().print()},mceFocus:(t,n,o)=>{((e,t)=>{e.removed||(t?xm(e):(e=>{const t=e.selection,n=e.getBody();let o=t.getRng();e.quirks.refreshContentEditable();const r=e=>{im(e).each(t=>{e.selection.setRng(t),o=t})};!Am(e)&&e.hasEditableRoot()&&r(e);const a=((e,t)=>e.dom.getParent(t,t=>"true"===e.dom.getContentEditable(t)))(e,t.getNode());if(a&&e.dom.isChildOf(a,n))return((e,t)=>null!==e.dom.getParent(t,t=>"false"===e.dom.getContentEditable(t)))(e,a)||_m(n),_m(a),e.hasEditableRoot()||r(e),ym(e,o),void xm(e);e.inline||(on.browser.isOpera()||_m(n),e.getWin().focus()),(on.browser.isFirefox()||e.inline)&&(_m(n),ym(e,o)),xm(e)})(e))})(e,!0===o)},mceToggleVisualAid:()=>{e.hasVisual=!e.hasVisual,e.addVisual()}})})(e)},tL=["toggleview"],nL=e=>H(tL,e.toLowerCase());class oL{constructor(e){this.commands={state:{},exec:{},value:{}},this.editor=e}execCommand(e,t=!1,n,o){const r=this.editor,a=e.toLowerCase(),i=null==o?void 0:o.skip_focus;if(r.removed)return!1;if("mcefocus"!==a&&(/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(a)||i?(e=>{im(e).each(t=>e.selection.setRng(t))})(r):r.focus()),r.dispatch("BeforeExecCommand",{command:e,ui:t,value:n}).isDefaultPrevented())return!1;const l=this.commands.exec[a];return!!k(l)&&(l(a,t,n),r.dispatch("ExecCommand",{command:e,ui:t,value:n}),!0)}queryCommandState(e){if(!nL(e)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const t=e.toLowerCase(),n=this.commands.state[t];return!!k(n)&&n(t)}queryCommandValue(e){if(!nL(e)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const t=e.toLowerCase(),n=this.commands.value[t];return k(n)?n(t):""}addCommands(e,t="exec"){const n=this.commands;he(e,(e,o)=>{K(o.toLowerCase().split(","),o=>{n[t][o]=e})})}addCommand(e,t,n){const o=e.toLowerCase();this.commands.exec[o]=(e,o,r)=>t.call(null!=n?n:this.editor,o,r)}queryCommandSupported(e){const t=e.toLowerCase();return!!this.commands.exec[t]}addQueryStateHandler(e,t,n){this.commands.state[e.toLowerCase()]=()=>t.call(null!=n?n:this.editor)}addQueryValueHandler(e,t,n){this.commands.value[e.toLowerCase()]=()=>t.call(null!=n?n:this.editor)}}const rL=sn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class aL{static isNative(e){return!!rL[e.toLowerCase()]}constructor(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||P}fire(e,t){return this.dispatch(e,t)}dispatch(e,t){const n=e.toLowerCase(),o=ji(n,null!=t?t:{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(o);const r=this.bindings[n];if(r)for(let e=0,t=r.length;e<t;e++){const t=r[e];if(!t.removed){if(t.once&&this.off(n,t.func),o.isImmediatePropagationStopped())return o;if(!1===t.func.call(this.scope,o))return o.preventDefault(),o}}return o}on(e,t,n,o){if(!1===t&&(t=P),t){const r={func:t,removed:!1};o&&sn.extend(r,o);const a=e.toLowerCase().split(" ");let i=a.length;for(;i--;){const e=a[i];let t=this.bindings[e];t||(t=[],this.toggleEvent(e,!0)),t=n?[r,...t]:[...t,r],this.bindings[e]=t}}return this}off(e,t){if(e){const n=e.toLowerCase().split(" ");let o=n.length;for(;o--;){const r=n[o];let a=this.bindings[r];if(!r)return he(this.bindings,(e,t)=>{this.toggleEvent(t,!1),delete this.bindings[t]}),this;if(a){if(t){const e=W(a,e=>e.func===t);a=e.fail,this.bindings[r]=a,K(e.pass,e=>{e.removed=!0})}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[r])}}}else he(this.bindings,(e,t)=>{this.toggleEvent(t,!1)}),this.bindings={};return this}once(e,t,n){return this.on(e,t,n,{once:!0})}has(e){e=e.toLowerCase();const t=this.bindings[e];return!(!t||0===t.length)}}const iL=e=>(e._eventDispatcher||(e._eventDispatcher=new aL({scope:e,toggleEvent:(t,n)=>{aL.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher),lL={fire(e,t,n){return console.warn('The "fire" event api has been deprecated and will be removed in TinyMCE 9. Use "dispatch" instead.',(new Error).stack),this.dispatch(e,t,n
vendor: 12,739 bytes, line 2
2)},dispatch(e,t,n){const o=this;if(o.removed&&"remove"!==e&&"detach"!==e)return ji(e.toLowerCase(),null!=t?t:{},o);const r=iL(o).dispatch(e,t);if(!1!==n&&o.parent){let t=o.parent();for(;t&&!r.isPropagationStopped();)t.dispatch(e,r,!1),t=t.parent?t.parent():void 0}return r},on(e,t,n){return iL(this).on(e,t,n)},off(e,t){return iL(this).off(e,t)},once(e,t){return iL(this).once(e,t)},hasEventListeners(e){return iL(this).has(e)}},sL=rl.DOM;let cL;const uL=(e,t)=>{if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(t))return e.getDoc().documentElement;const n=lu(e);return n?(e.eventRoot||(e.eventRoot=sL.select(n)[0]),e.eventRoot):e.getBody()},dL=(e,t,n)=>{(e=>!e.hidden&&!kk(e))(e)?e.dispatch(t,n):kk(e)&&((e,t)=>{if((e=>"click"===e.type)(t)&&!wm.metaKeyPressed(t)){const n=fn(t.target);((e,t)=>ir(t,"a",t=>An(t,fn(e.getBody()))).bind(e=>vo(e,"href")))(e,n).each(n=>{if(t.preventDefault(),/^#/.test(n)){const t=e.dom.select(`${n},[name="${Ze(n,"#")}"]`);t.length&&e.selection.scrollIntoView(t[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else(e=>H(Ek,e.type))(t)&&e.dispatch(t.type,t)})(e,n)},pL=(e,t)=>{if(e.delegates||(e.delegates={}),e.delegates[t]||e.removed)return;const n=uL(e,t);if(lu(e)){if(cL||(cL={},e.editorManager.on("removeEditor",()=>{e.editorManager.activeEditor||cL&&(he(cL,(t,n)=>{e.dom.unbind(uL(e,n))}),cL=null)})),cL[t])return;const o=n=>{const o=n.target,r=e.editorManager.get();let a=r.length;for(;a--;){const e=r[a].getBody();(e===o||sL.isChildOf(o,e))&&dL(r[a],t,n)}};cL[t]=o,sL.bind(n,t,o)}else{const o=n=>{dL(e,t,n)};sL.bind(n,t,o),e.delegates[t]=o}},fL={...lL,bindPendingEventDelegates(){const e=this;sn.each(e._pendingNativeEvents,t=>{pL(e,t)})},toggleNativeEvent(e,t){const n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?pL(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&n.delegates&&(n.dom.unbind(uL(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents(){const e=this,t=e.getBody(),n=e.dom;e.delegates&&(he(e.delegates,(t,n)=>{e.dom.unbind(uL(e,n),n,t)}),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}},mL=e=>f(e)?{value:e.split(/[ ,]/),valid:!0}:w(e,f)?{value:e,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},gL=(e,t)=>e+(nt(t.message)?"":`. ${t.message}`),hL=e=>e.valid,bL=(e,t,n="")=>{const o=t(e);return v(o)?o?{value:e,valid:!0}:{valid:!1,message:n}:o},vL=e=>e.readonly,yL=["design","readonly"],_L=(e,t,n,o)=>{const r=n[t.get()],a=n[o];try{a.activate()}catch(e){return void console.error(`problem while activating editor mode ${o}:`,e)}r.deactivate(),r.editorReadOnly!==a.editorReadOnly&&((e,t)=>{const n=fn(e.getBody());t?(e.readonly=!0,e.hasEditableRoot()&&(n.dom.contentEditable="true"),_k(e)):(e.readonly=!1,Ak(e))})(e,a.editorReadOnly),t.set(o),((e,t)=>{e.dispatch("SwitchMode",{mode:t})})(e,o)},AL=e=>{const t=Te("design"),n=Te({design:{activate:C,deactivate:C,editorReadOnly:!1},readonly:{activate:C,deactivate:C,editorReadOnly:!0}});return(e=>{const t=t=>{vL(e)&&(e=>q(e,e=>"characterData"===e.type||"childList"===e.type))(t)&&(e=>{const t=e.undoManager.add();A(t)&&(e.undoManager.undo(),e.undoManager.reset())})(e)},n=new MutationObserver(t);e.on("beforeinput paste cut dragend dragover draggesture dragdrop drop drag",t=>{vL(e)&&t.preventDefault()}),e.on("BeforeExecCommand",t=>{"Undo"!==t.command&&"Redo"!==t.command||!vL(e)||t.preventDefault()}),e.on("compositionstart",()=>{vL(e)&&n.observe(e.getBody(),{characterData:!0,childList:!0,subtree:!0})}),e.on("compositionend",()=>{if(vL(e)){const e=n.takeRecords();t(e)}n.disconnect()})})(e),(e=>{(e=>{e.serializer?Ck(e):e.on("PreInit",()=>{Ck(e)})})(e),(e=>{e.on("ShowCaret ObjectSelected",t=>{kk(e)&&t.preventDefault()}),e.on("DisabledStateChange",t=>{t.isDefaultPrevented()||wk(e,t.state)})})(e)})(e),{isReadOnly:()=>vL(e),set:o=>((e,t,n,o)=>{if(!(o===n.get()||e.initialized&&kk(e))){if(!Ce(t,o))throw new Error(`Editor mode '${o}' is invalid`);e.initialized?_L(e,n,t,o):e.on("init",()=>_L(e,n,t,o))}})(e,n.get(),t,o),get:()=>t.get(),register:(e,t)=>{n.set(((e,t,n)=>{if(H(yL,t))throw new Error(`Cannot override default mode ${t}`);return{...e,[t]:{...n,deactivate:()=>{try{n.deactivate()}catch(e){console.error(`problem while deactivating editor mode ${t}:`,e)}}}}})(n.get(),e,t))}}},kL=sn.each,xL=sn.explode,wL={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},CL=sn.makeMap("alt,ctrl,shift,meta,access"),EL=e=>{const t={},n=on.os.isMacOS()||on.os.isiOS();kL(xL(e.toLowerCase(),"+"),e=>{(e=>e in CL)(e)?t[e]=!0:/^[0-9]{2,}$/.test(e)?t.keyCode=parseInt(e,10):(t.charCode=e.charCodeAt(0),t.keyCode=wL[e]||e.toUpperCase().charCodeAt(0))});const o=[t.keyCode];let r;for(r in CL)t[r]?o.push(r):t[r]=!1;return t.id=o.join(","),t.access&&(t.alt=!0,n?t.ctrl=!0:t.shift=!0),t.meta&&(n?t.meta=!0:(t.ctrl=!0,t.meta=!1)),t};class SL{constructor(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;const t=this;e.on("keyup keypress keydown",e=>{!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(kL(t.shortcuts,n=>{t.matchShortcut(e,n)&&(t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n))}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))})}add(e,t,n,o){const r=this,a=r.normalizeCommandFunc(n);return kL(xL(sn.trim(e)),e=>{const n=r.createShortcut(e,t,a,o);r.shortcuts[n.id]=n}),!0}remove(e){const t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)}normalizeCommandFunc(e){const t=this,n=e;return"string"==typeof n?()=>{t.editor.execCommand(n,!1,null)}:sn.isArray(n)?()=>{t.editor.execCommand(n[0],n[1],n[2])}:n}createShortcut(e,t,n,o){const r=sn.map(xL(e,">"),EL);return r[r.length-1]=sn.extend(r[r.length-1],{func:n,scope:o||this.editor}),sn.extend(r[0],{desc:this.editor.translate(t),subpatterns:r.slice(1)})}hasModifier(e){return e.altKey||e.ctrlKey||e.metaKey}isFunctionKey(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123}matchShortcut(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)}executeShortcutAction(e){return e.func?e.func.call(e.scope):null}}const TL=()=>{const e=(()=>{const e={},t={},n={},o={},r={},a={},i={},l={},s={},c=(e,t)=>(n,o)=>{e[n.toLowerCase()]={...o,type:t}};return{addButton:c(e,"button"),addGroupToolbarButton:c(e,"grouptoolbarbutton"),addToggleButton:c(e,"togglebutton"),addMenuButton:c(e,"menubutton"),addSplitButton:c(e,"splitbutton"),addMenuItem:c(t,"menuitem"),addNestedMenuItem:c(t,"nestedmenuitem"),addToggleMenuItem:c(t,"togglemenuitem"),addAutocompleter:c(n,"autocompleter"),addContextMenu:c(r,"contextmenu"),addContextToolbar:c(a,"contexttoolbar"),addContextForm:(u=a,(e,t)=>{u[e.toLowerCase()]={type:"contextform",...t}}),addSidebar:c(l,"sidebar"),addView:c(s,"views"),addIcon:(e,t)=>o[e.toLowerCase()]=t,addContext:(e,t)=>i[e.toLowerCase()]=t,getAll:()=>({buttons:e,menuItems:t,icons:o,popups:n,contextMenus:r,contextToolbars:a,sidebars:l,views:s,contexts:i})};var u})();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,addView:e.addView,addContext:e.addContext,getAll:e.getAll}},IL=rl.DOM,BL=sn.extend,OL=sn.each;class LL{constructor(e,t,n){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,BL(this,fL);const o=this;this.id=e,this.hidden=!1;const r=((e,t)=>{const n=Fe(t);return zO(DO||MO,DO,n,e,n)})(n.defaultOptions,t);this.options=((e,t,n=t)=>{const o={},r={},a=(e,t,n)=>{const o=bL(t,n);return hL(o)?(r[e]=o.value,!0):(console.warn(gL(`Invalid value passed for the ${e} option`,o)),!1)},i=e=>Ce(o,e);return{register:(e,n)=>{const i=(e=>f(e.processor))(n)?(e=>{const t=(()=>{switch(e){case"array":return h;case"boolean":return v;case"function":return k;case"number":return x;case"object":return m;case"string":return f;case"string[]":return mL;case"object[]":return e=>w(e,m);case"regexp":return e=>p(e,RegExp);default:return R}})();return n=>bL(n,t,`The value must be a ${e}.`)})(n.processor):n.processor,l=((e,t,n)=>{if(!y(t)){const o=bL(t,n);if(hL(o))return o.value;console.error(gL(`Invalid default value passed for the "${e}" option`,o))}})(e,n.default,i);o[e]={...n,default:l,processor:i},we(r,e).orThunk(()=>we(t,e)).each(t=>a(e,t,i))},isRegistered:i,get:e=>we(r,e).orThunk(()=>we(o,e).map(e=>e.default)).getOrUndefined(),set:(e,t)=>{if(i(e)){const n=o[e];return n.immutable?(console.error(`"${e}" is an immutable option and cannot be updated`),!1):a(e,t,n.processor)}return console.warn(`"${e}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:e=>{const t=i(e);return t&&delete r[e],t},isSet:e=>Ce(r,e),debug:()=>{try{console.log(JSON.parse(JSON.stringify(n,(e,t)=>v(t)||x(t)||f(t)||b(t)||h(t)||g(t)?t:Object.prototype.toString.call(t))))}catch(e){console.error(e)}}}})(0,r,t),(e=>{const t=e.options.register;t("id",{processor:"string",default:e.id}),t("selector",{processor:"string"}),t("target",{processor:"object"}),t("suffix",{processor:"string"}),t("cache_suffix",{processor:"string"}),t("base_url",{processor:"string"}),t("referrer_policy",{processor:"string",default:""}),t("language_load",{processor:"boolean",default:!0}),t("inline",{processor:"boolean",default:!1}),t("iframe_attrs",{processor:"object",default:{}}),t("doctype",{processor:"string",default:"<!DOCTYPE html>"}),t("document_base_url",{processor:"string",default:e.documentBaseUrl}),t("body_id",{processor:xc(e,"tinymce"),default:"tinymce"}),t("body_class",{processor:xc(e),default:""}),t("content_security_policy",{processor:"string",default:""}),t("br_in_pre",{processor:"boolean",default:!0}),t("forced_root_block",{processor:e=>{const t=f(e)&&tt(e);return t?{value:e,valid:t}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),t("forced_root_block_attrs",{processor:"object",default:{}}),t("newline_behavior",{processor:e=>{const t=H(["block","linebreak","invert","default"],e);return t?{value:e,valid:t}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),t("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),t("no_newline_selector",{processor:"string",default:""}),t("keep_styles",{processor:"boolean",default:!0}),t("end_container_on_empty_block",{processor:e=>v(e)||f(e)?{valid:!0,value:e}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),t("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),t("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),t("font_size_classes",{processor:"string",default:""}),t("automatic_uploads",{processor:"boolean",default:!0}),t("images_reuse_filename",{processor:"boolean",default:!1}),t("images_replace_blob_uris",{processor:"boolean",default:!0}),t("icons",{processor:"string",default:""}),t("icons_url",{processor:"string",default:""}),t("images_upload_url",{processor:"string",default:""}),t("images_upload_base_path",{processor:"string",default:""}),t("images_upload_credentials",{processor:"boolean",default:!1}),t("images_upload_handler",{processor:"function"}),t("language",{processor:"string",default:"en"}),t("language_url",{processor:"string",default:""}),t("entity_encoding",{processor:"string",default:"named"}),t("indent",{processor:"boolean",default:!0}),t("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,f
2igure,figcaption,option,optgroup,datalist"}),t("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),t("indent_use_margin",{processor:"boolean",default:!1}),t("indentation",{processor:"string",default:"40px"}),t("content_css",{processor:e=>{const t=!1===e||f(e)||w(e,f);return t?f(e)?{value:G(e.split(","),Xe),valid:t}:h(e)?{value:e,valid:t}:!1===e?{value:[],valid:t}:{value:e,valid:t}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:yu(e)?[]:["default"]}),t("content_style",{processor:"string"}),t("content_css_cors",{processor:"boolean",default:!1}),t("font_css",{processor:e=>{const t=f(e)||w(e,f);return t?{value:h(e)?e:G(e.split(","),Xe),valid:t}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),t("extended_mathml_attributes",{processor:"string[]"}),t("extended_mathml_elements",{processor:"string[]"}),t("inline_boundaries",{processor:"boolean",default:!0}),t("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),t("object_resizing",{processor:e=>{const t=v(e)||f(e);return t?!1===e||bc.isiPhone()||bc.isiPad()?{value:"",valid:t}:{value:!0===e?"table,img,figure.image,div,video,iframe":e,valid:t}:{valid:!1,message:"Must be boolean or a string"}},default:!vc}),t("resize_img_proportional",{processor:"boolean",default:!0}),t("event_root",{processor:"string"}),t("service_message",{processor:"string"}),t("onboarding",{processor:"boolean",default:!0}),t("tiny_cloud_entry_url",{processor:"string"}),t("theme",{processor:e=>!1===e||f(e)||k(e),default:"silver"}),t("theme_url",{processor:"string"}),t("formats",{processor:"object"}),t("format_empty_lines",{processor:"boolean",default:!1}),t("format_noneditable_selector",{processor:"string",default:""}),t("preview_styles",{processor:e=>{const t=!1===e||f(e);return t?{value:!1===e?"":e,valid:t}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),t("custom_ui_selector",{processor:"string",default:""}),t("hidden_input",{processor:"boolean",default:!0}),t("submit_patch",{processor:"boolean",default:!0}),t("encoding",{processor:"string"}),t("add_form_submit_trigger",{processor:"boolean",default:!0}),t("add_unload_trigger",{processor:"boolean",default:!0}),t("custom_undo_redo_levels",{processor:"number",default:0}),t("disable_nodechange",{processor:"boolean",default:!1}),t("disabled",{processor:t=>v(t)?(e.initialized&&vd(e)!==t&&Promise.resolve().then(()=>{((e,t)=>
vendor: 6,137 bytes, line 2
2{e.dispatch("DisabledStateChange",{state:t})})(e,t)}),{valid:!0,value:t}):{valid:!1,message:"The value must be a boolean."},default:!1}),t("readonly",{processor:"boolean",default:!1}),t("editable_root",{processor:"boolean",default:!0}),t("plugins",{processor:"string[]",default:[]}),t("external_plugins",{processor:"object"}),t("forced_plugins",{processor:"string[]"}),t("model",{processor:"string",default:e.hasPlugin("rtc")?"plugin":"dom"}),t("model_url",{processor:"string"}),t("block_unsupported_drop",{processor:"boolean",default:!0}),t("visual",{processor:"boolean",default:!0}),t("visual_table_class",{processor:"string",default:"mce-item-table"}),t("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),t("iframe_aria_text",{processor:"string",default:"Rich Text Area".concat(e.hasPlugin("help")?". Press ALT-0 for help.":"")}),t("setup",{processor:"function"}),t("init_instance_callback",{processor:"function"}),t("url_converter",{processor:"function",default:e.convertURL}),t("url_converter_scope",{processor:"object",default:e}),t("urlconverter_callback",{processor:"function"}),t("allow_conditional_comments",{processor:"boolean",default:!1}),t("allow_html_data_urls",{processor:"boolean",default:!1}),t("allow_svg_data_urls",{processor:"boolean"}),t("allow_html_in_named_anchor",{processor:"boolean",default:!1}),t("allow_script_urls",{processor:"boolean",default:!1}),t("allow_unsafe_link_target",{processor:"boolean",default:!1}),t("allow_mathml_annotation_encodings",{processor:e=>{const t=w(e,f);return t?{value:e,valid:t}:{valid:!1,message:"Must be an array of strings."}},default:[]}),t("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),t("fix_list_elements",{processor:"boolean",default:!1}),t("preserve_cdata",{processor:"boolean",default:!1}),t("remove_trailing_brs",{processor:"boolean",default:!0}),t("pad_empty_with_br",{processor:"boolean",default:!1}),t("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),t("element_format",{processor:"string",default:"html"}),t("entities",{processor:"string"}),t("schema",{processor:"string",default:"html5"}),t("convert_urls",{processor:"boolean",default:!0}),t("relative_urls",{processor:"boolean",default:!0}),t("remove_script_host",{processor:"boolean",default:!0}),t("custom_elements",{processor:kc}),t("extended_valid_elements",{processor:"string"}),t("invalid_elements",{processor:"string"}),t("invalid_styles",{processor:kc}),t("valid_children",{processor:"string"}),t("valid_classes",{processor:kc}),t("valid_elements",{processor:"string"}),t("valid_styles",{processor:kc}),t("verify_html",{processor:"boolean",default:!0}),t("auto_focus",{processor:e=>f(e)||!0===e}),t("browser_spellcheck",{processor:"boolean",default:!1}),t("protect",{processor:"array"}),t("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),t("deprecation_warnings",{processor:"boolean",default:!0}),t("a11y_advanced_options",{processor:"boolean",default:!1}),t("api_key",{processor:"string"}),t("license_key",{processor:"string"}),t("paste_block_drop",{processor:"boolean",default:!1}),t("paste_data_images",{processor:"boolean",default:!0}),t("paste_preprocess",{processor:"function"}),t("paste_postprocess",{processor:"function"}),t("paste_webkit_styles",{processor:"string",default:"none"}),t("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),t("paste_merge_formats",{processor:"boolean",default:!0}),t("smart_paste",{processor:"boolean",default:!0}),t("paste_as_text",{processor:"boolean",default:!1}),t("paste_tab_spaces",{processor:"number",default:4}),t("text_patterns",{processor:e=>w(e,m)||!1===e?{value:cc(!1===e?[]:e),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),t("text_patterns_lookup",{processor:e=>{return k(e)?{value:(t=e,e=>{const n=t(e);return cc(n)}),valid:!0}:{valid:!1,message:"Must be a single function"};var t},default:e=>[]}),t("noneditable_class",{processor:"string",default:"mceNonEditable"}),t("editable_class",{processor:"string",default:"mceEditable"}),t("noneditable_regexp",{processor:e=>w(e,_c)?{value:e,valid:!0}:_c(e)?{value:[e],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),t("table_tab_navigation",{processor:"boolean",default:!0}),t("highlight_on_focus",{processor:"boolean",default:!0}),t("xss_sanitization",{processor:"boolean",default:!0}),t("details_initial_state",{processor:e=>{const t=H(["inherited","collapsed","expanded"],e);return t?{value:e,valid:t}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),t("details_serialized_state",{processor:e=>{const t=H(["inherited","collapsed","expanded"],e);return t?{value:e,valid:t}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),t("init_content_sync",{processor:"boolean",default:!1}),t("newdocument_content",{processor:"string",default:""}),t("sandbox_iframes",{processor:"boolean",default:!0}),t("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),t("convert_unsafe_embeds",{processor:"boolean",default:!0}),e.on("ScriptsLoaded",()=>{t("directionality",{processor:"string",default:ul.isRtl()?"rtl":void 0}),t("placeholder",{processor:"string",default:yc.getAttrib(e.getElement(),"placeholder")})})})(o);const a=this.options.get;a("deprecation_warnings")&&((e,t)=>{((e,t)=>
vendor: 14,050 bytes, line 2
2{const n=ZA(e),o=YA(t),r=o.length>0,a=n.length>0,i="mobile"===t.theme;if(r||a||i){const e="\n- ",t=i?`\n\nThemes:${e}mobile`:"",l=r?`\n\nPlugins:${e}${o.join(e)}`:"",s=a?`\n\nOptions:${e}${n.join(e)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+t+l+s)}})(e,t),((e,t)=>{const n=WA(e),o=JA(t),r=o.length>0,a=n.length>0;if(r||a){const e="\n- ",t=r?`\n\nPlugins:${e}${o.map(XA).join(e)}`:"",i=a?`\n\nOptions:${e}${n.join(e)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+t+i)}})(e,t)})(t,r);const i=a("suffix");i&&(n.suffix=i),this.suffix=n.suffix;const l=a("base_url");l&&n._setBaseUrl(l),this.baseUri=n.baseURI;const s=Wc(o);s&&(il.ScriptLoader._setReferrerPolicy(s),rl.DOM.styleSheetLoader._setReferrerPolicy(s));const c=Tu(o);A(c)&&rl.DOM.styleSheetLoader._setContentCssCors(c),dl.languageLoad=a("language_load"),dl.baseURL=n.baseURL,this.setDirty(!1),this.documentBaseURI=new M_(Ec(o),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=yu(o),this.hasVisual=Lu(o),this.shortcuts=new SL(this),this.editorCommands=new oL(this),eL(this);const u=a("cache_suffix");u&&(on.cacheSuffix=u.replace(/^[\?\&]+/,"")),this.ui={registry:TL(),styleSheetLoader:void 0,show:C,hide:C,setEnabled:C,isEnabled:R},this.mode=AL(o),n.dispatch("SetupEditor",{editor:this});const d=Pu(o);k(d)&&d.call(o,o)}render(){(e=>{const t=e.id;ul.setCode($c(e));const n=()=>{TO.unbind(window,"ready",n),e.render()};if(!Wi.Event.domLoaded)return void TO.bind(window,"ready",n);if(!e.getElement())return;const o=fn(e.getElement()),r=Ao(o);e.on("remove",()=>{Z(o.dom.attributes,e=>_o(o,e.name)),ho(o,r)}),e.ui.styleSheetLoader=((e,t)=>$a.forElement(e,{contentCssCors:Tu(t),referrerPolicy:Wc(t)}))(o,e),yu(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");const a=e.getElement().form||TO.getParent(t,"form");a&&(e.formElement=a,_u(e)&&!ea(e.getElement())&&(TO.insertAfter(TO.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=t=>{e.dispatch(t.type,t)},TO.bind(a,"submit reset",e.formEventDelegate),e.on("reset",()=>{e.resetContent()}),!Au(e)||a.submit.nodeType||a.submit.length||a._mceOldSubmit||(a._mceOldSubmit=a.submit,a.submit=()=>(e.editorManager.triggerSave(),e.setDirty(!1),a._mceOldSubmit(a)))),e.windowManager=pk(e),e.notificationManager=ck(e),(e=>"xml"===e.options.get("encoding"))(e)&&e.on("GetContent",e=>{e.save&&(e.content=TO.encode(e.content))}),ku(e)&&e.on("submit",()=>{e.initialized&&e.save()}),xu(e)&&(e._beforeUnload=()=>{!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),OO(e,e.suffix)})(this)}focus(e){this.execCommand("mceFocus",!1,e)}hasFocus(){return Am(this)}translate(e){return ul.translate(e)}getParam(e,t,n){const o=this.options;return o.isRegistered(e)||(A(n)?o.register(e,{processor:n,default:t}):o.register(e,{processor:R,default:t})),o.isSet(e)||y(t)?o.get(e):t}hasPlugin(e,t){return!(!H(Iu(this),e)||t&&void 0===uk.get(e))}nodeChanged(e){this._nodeChangeDispatcher.nodeChanged(e)}addCommand(e,t,n){this.editorCommands.addCommand(e,t,n)}addQueryStateHandler(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)}addQueryValueHandler(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)}addShortcut(e,t,n,o){this.shortcuts.add(e,t,n,o)}execCommand(e,t,n,o){return this.editorCommands.execCommand(e,t,n,o)}queryCommandState(e){return this.editorCommands.queryCommandState(e)}queryCommandValue(e){return this.editorCommands.queryCommandValue(e)}queryCommandSupported(e){return this.editorCommands.queryCommandSupported(e)}show(){const e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(IL.show(e.getContainer()),IL.hide(e.id)),e.load(),e.dispatch("show"))}hide(){const e=this;e.hidden||(e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(IL.hide(e.getContainer()),IL.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(e,t){this.dispatch("ProgressState",{state:e,time:t})}load(e={}){const t=this,n=t.getElement();if(t.removed)return"";if(n){const o={...e,load:!0},r=ea(n)?n.value:n.innerHTML,a=t.setContent(r,o);return o.no_events||t.dispatch("LoadContent",{...o,element:n}),a}return""}save(e={}){const t=this;let n=t.getElement();if(!n||!t.initialized||t.removed)return"";const o={...e,save:!0,element:n};let r=t.getContent(o);const a={...o,content:r};if(a.no_events||t.dispatch("SaveContent",a),"raw"===a.format&&t.dispatch("RawSaveContent",a),r=a.content,ea(n))n.value=r;else{!e.is_removing&&t.inline||(n.innerHTML=r);const o=IL.getParent(t.id,"form");o&&OL(o.elements,e=>e.name!==t.id||(e.value=r,!1))}return a.element=o.element=n=null,!1!==a.set_dirty&&t.setDirty(!1),r}setContent(e,t){return UA(this,e,t)}getContent(e){return((e,t={})=>{const n=((e,t)=>({...e,format:t,get:!0,getInner:!0}))(t,t.format?t.format:"html");return X_(e,n).fold(I,t=>{const n=((e,t)=>BA(e).editor.getContent(t))(e,t);return Q_(e,n,t)})})(this,e)}insertContent(e,t){t&&(e=BL({content:e},t)),this.execCommand("mceInsertContent",!1,e)}resetContent(e){void 0===e?UA(this,this.startContent,{format:"raw"}):UA(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(e){const t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.dispatch("dirty")}getContainer(){const e=this;return e.container||(e.container=e.editorContainer||IL.get(e.id+"_parent")),e.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=IL.get(this.id)),this.targetElm}getWin(){const e=this;if(!e.contentWindow){const t=e.iframeElement;t&&(e.contentWindow=t.contentWindow)}return e.contentWindow}getDoc(){const e=this;if(!e.contentDocument){const t=e.getWin();t&&(e.contentDocument=t.document)}return e.contentDocument}getBody(){var e,t;const n=this.getDoc();return null!==(t=null!==(e=this.bodyElement)&&void 0!==e?e:null==n?void 0:n.body)&&void 0!==t?t:null}convertURL(e,t,n){const o=this,r=o.options.get,a=Fu(o);if(k(a))return a.call(o,e,n,!0,t);if(!r("convert_urls")||"link"===n||m(n)&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length)return e;const i=new M_(e);return"http"!==i.protocol&&"https"!==i.protocol&&""!==i.protocol?e:r("relative_urls")?o.documentBaseURI.toRelative(e):e=o.documentBaseURI.toAbsolute(e,r("remove_script_host"))}addVisual(e){((e,t)=>{((e,t)=>{OA(e).editor.addVisual(t)})(e,t)})(this,e)}setEditableRoot(e){((e,t)=>{e._editableRoot!==t&&(e._editableRoot=t,kk(e)||(e.getBody().contentEditable=String(e.hasEditableRoot()),e.nodeChanged()),((e,t)=>{e.dispatch("EditableRootStateChange",{state:t})})(e,t))})(this,e)}hasEditableRoot(){return this._editableRoot}remove(){(e=>{if(!e.removed){const{_selectionOverrides:t,editorUpload:n}=e,o=e.getBody(),r=e.getElement();o&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&A(null==r?void 0:r.nextSibling)&&QA.remove(r.nextSibling),(e=>{e.dispatch("remove")})(e),e.editorManager.remove(e),!e.inline&&o&&(e=>{QA.setStyle(e.id,"display",e.orgDisplay)})(e),(e=>{e.dispatch("detach")})(e),QA.remove(e.getContainer()),ek(t),ek(n),e.destroy()}})(this)}destroy(e){((e,t)=>{const{selection:n,dom:o}=e;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),ek(n),ek(o)),(e=>{const t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,delete t._mceOldSubmit),QA.unbind(t,"submit reset",e.formEventDelegate))})(e),(e=>{const t=e;t.contentAreaContainer=t.formElement=t.container=t.editorContainer=null,t.bodyElement=t.contentDocument=t.contentWindow=null,t.iframeElement=t.targetElm=null;const n=e.selection;if(n){const e=n.dom;t.selection=n.win=n.dom=e.doc=null}})(e),e.destroyed=!0):e.remove())})(this,e)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const DL=rl.DOM,ML=sn.each;let NL,PL=!1,RL=[];const FL=e=>{const t=e.type;ML(jL.get(),n=>{switch(t){case"scroll":n.dispatch("ScrollWindow",e);break;case"resize":n.dispatch("ResizeWindow",e)}})},VL=e=>{if(e!==PL){const t=rl.DOM;e?(t.bind(window,"resize",FL),t.bind(window,"scroll",FL)):(t.unbind(window,"resize",FL),t.unbind(window,"scroll",FL)),PL=e}},zL=e=>{const t=RL;return RL=$(RL,t=>e!==t),jL.activeEditor===e&&(jL.activeEditor=RL.length>0?RL[0]:null),jL.focusedEditor===e&&(jL.focusedEditor=null),t.length!==RL.length},UL="CSS1Compat"!==document.compatMode,jL={...lL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"9.1",releaseDate:"2025-05-29",i18n:ul,activeEditor:null,focusedEditor:null,setup(){const e=this;let t="",n="",o=M_.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(o)&&(o=o.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(o)||(o+="/"));const r=window.tinymce||window.tinyMCEPreInit;if(r)t=r.base||r.baseURL,n=r.suffix;else{const e=document.getElementsByTagName("script");for(let o=0;o<e.length;o++){const r=e[o].src||"";if(""===r)continue;const a=r.substring(r.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(r)){-1!==a.indexOf(".min")&&(n=".min"),t=r.substring(0,r.lastIndexOf("/"));break}}if(!t&&document.currentScript){const e=document.currentScript.src;-1!==e.indexOf(".min")&&(n=".min"),t=e.substring(0,e.lastIndexOf("/"))}}var a;e.baseURL=new M_(o).toAbsolute(t),e.documentBaseURL=o,e.baseURI=new M_(e.baseURL),e.suffix=n,(a=e).on("AddEditor",O(bm,a)),a.on("RemoveEditor",O(vm,a))},overrideDefaults(e){const t=e.base_url;t&&this._setBaseUrl(t);const n=e.suffix;n&&(this.suffix=n),this.defaultOptions=e;const o=e.plugin_base_urls;void 0!==o&&he(o,(e,t)=>{dl.PluginManager.urls[t]=e})},init(e){const t=this;let n;const o=sn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," ");let r=e=>{n=e};const a=()=>{let n=0;const i=[];let l;DL.unbind(window,"ready",a),(()=>{const n=e.onpageload;n&&n.apply(t,[])})(),l=fe((e=>on.browser.isIE()||on.browser.isEdge()?(bk("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):UL?(bk("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):f(e.selector)?DL.select(e.selector):A(e.target)?[e.target]:[])(e)),sn.each(l,e=>{var n;(n=t.get(e.id))&&n.initialized&&!(n.getContainer()||n.getBody()).parentNode&&(zL(n),n.unbindAllNativeEvents(),n.destroy(!0),n.removed=!0)}),l=sn.grep(l,e=>!t.get(e.id)),0===l.length?r([]):ML(l,a=>{((e,t)=>e.inline&&t.tagName.toLowerCase()in o)(e,a)?bk("Could not initialize inline editor on invalid inline target element",a):((e,o,a)=>{const s=new LL(e,o,t);i.push(s),s.on("init",()=>{++n===l.length&&r(i)}),s.targetElm=s.targetElm||a,s.render()})((e=>{let t=e.id;return t||(t=we(e,"name").filter(e=>!DL.get(e)).getOrThunk(DL.uniqueId),e.setAttribute("id",t)),t})(a),e,a)})};return DL.bind(window,"ready",a),new Promise(e=>{n?e(n):r=t=>{e(t)}})},get(e){return 0===arguments.length?RL.slice(0):f(e)?Q(RL,t=>t.id===e).getOr(null):x(e)&&RL[e]?RL[e]:null},add(e){const t=this,n=t.get(e.id);return n===e||(null===n&&RL.push(e),VL(!0),t.activeEditor=e,t.dispatch("AddEditor",{editor:e}),NL||(NL=e=>{const n=t.dispatch("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",NL))),e},createEditor(e,t){return this.add(new LL(e,t,this))},remove(e){const t=this;let n;if(e){if(!f(e))return n=e,b(t.get(n.id))?null:(zL(n)&&t.dispatch("RemoveEditor",{editor:n}),0===RL.length&&window.removeEventListener("beforeunload",NL),n.remove(),VL(RL.length>0),n);ML(DL.select(e),e=>{n=t.get(e.id),n&&t.remove(n)})}else for(let e=RL.length-1;e>=0;e--)t.remove(RL[e])},execCommand(e,t,n){var o;const r=this,a=m(n)?null!==(o=n.id)&&void 0!==o?o:n.index:n;switch(e){case"mceAddEditor":if(!r.get(a)){const e=n.options;new LL(a,e,r).render()}return!0;case"mceRemoveEditor":{const e=r.get(a);return e&&e.remove(),!0}case"mceToggleEditor":{const e=r.get(a);return e?(e.isHidden()?e.show():e.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:()=>{ML(RL,e=>{e.save()})},addI18n:(e,t)=>{ul.add(e,t)},translate:e=>ul.translate(e),setActive(e){const t=this.activeEditor;this.activeEditor!==e&&(t&&t.dispatch("deactivate",{relatedTarget:e}),e.dispatch("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl(e){this.baseURL=new M_(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new M_(this.baseURL)}};jL.setup();const HL=(()=>{const e=Ge();return{FakeClipboardItem:e=>({items:e,types:me(e),getType:t=>we(e,t).getOrUndefined()}),write:t=>{e.set(t)},read:()=>e.get().getOrUndefined(),clear:e.clear}})(),qL=Math.min,GL=Math.max,KL=Math.round,ZL=(e,t,n)=>{let o=t.x,r=t.y;const a=e.w,i=e.h,l=t.w,s=t.h,c=(n||"").split("");return"b"===c[0]&&(r+=s),"r"===c[1]&&(o+=l),"c"===c[0]&&(r+=KL(s/2)),"c"===c[1]&&(o+=KL(l/2)),"b"===c[3]&&(r-=i),"r"===c[4]&&(o-=a),"c"===c[3]&&(r-=KL(i/2)),"c"===c[4]&&(o-=KL(a/2)),WL(o,r,a,i)},WL=(e,t,n,o)=>({x:e,y:t,w:n,h:o}),$L={inflate:(e,t,n)=>WL(e.x-t,e.y-n,e.w+2*t,e.h+2*n),relativePosition:ZL,findBestRelativePosition:(e,t,n,o)=>{for(let r=0;r<o.length;r++){const a=ZL(e,t,o[r]);if(a.x>=n.x&&a.x+a.w<=n.w+n.x&&a.y>=n.y&&a.y+a.h<=n.h+n.y)return o[r]}return null},intersect:(e,t)=>
2{const n=GL(e.x,t.x),o=GL(e.y,t.y),r=qL(e.x+e.w,t.x+t.w),a=qL(e.y+e.h,t.y+t.h);return r-n<0||a-o<0?null:WL(n,o,r-n,a-o)},clamp:(e,t,n)=>{let o=e.x,r=e.y,a=e.x+e.w,i=e.y+e.h;const l=t.x+t.w,s=t.y+t.h,c=GL(0,t.x-o),u=GL(0,t.y-r),d=GL(0,a-l),p=GL(0,i-s);return o+=c,r+=u,n&&(a+=c,i+=u,o-=d,r-=p),a-=d,i-=p,WL(o,r,a-o,i-r)},create:WL,fromClientRect:e=>WL(e.left,e.top,e.width,e.height)},YL=(()=>{const e={},t={},n={};return{load:(n,o)=>{const r=`Script at URL "${o}" failed to load`,a=`Script at URL "${o}" did not call \`tinymce.Resource.add('${n}', data)\` within 1 second`;if(void 0!==e[n])return e[n];{const i=new Promise((e,i)=>{const l=((e,t,n=1e3)=>{let o=!1,r=null;const a=e=>(...t)=>{o||(o=!0,null!==r&&(window.clearTimeout(r),r=null),e.apply(null,t))},i=a(e),l=a(t);return{start:(...e)=>{o||null!==r||(r=window.setTimeout(()=>l.apply(null,e),n))},resolve:i,reject:l}})(e,i);t[n]=l.resolve,il.ScriptLoader.loadScript(o).then(()=>l.start(a),()=>l.reject(r))});return e[n]=i,i}},add:(o,r)=>{void 0!==t[o]&&(t[o](r),delete t[o]),e[o]=Promise.resolve(r),n[o]=r},has:e=>e in n,get:e=>n[e],unload:t=>{delete e[t],delete n[t]}}})();let JL;try{const e="__storage_test__";JL=window.localStorage,JL.setItem(e,e),JL.removeItem(e)}catch(e){JL=(()=>{let e={},t=[];const n={getItem:t=>e[t]||null,setItem:(n,o)=>{t.push(n),e[n]=String(o)},key:e=>t[e],removeItem:n=>{t=t.filter(e=>e===n),delete e[n]},clear:()=>{t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:()=>t.length,configurable:!1,enumerable:!1}),n})()}const XL={geom:{Rect:$L},util:{Delay:sm,Tools:sn,VK:wm,URI:M_,EventDispatcher:aL,Observable:lL,I18n:ul,LocalStorage:JL,ImageUploader:e=>{const t=Bk(),n=Mk(e,t);return{upload:(t,o=!0)=>n.upload(t,o?Dk(e):void 0)}}},dom:{EventUtils:Wi,TreeWalker:Vr,TextSeeker:wl,DOMUtils:rl,ScriptLoader:il,RangeUtils:Um,Serializer:zA,StyleSheetLoader:Wa,ControlSelection:Im,BookmarkManager:Jf,Selection:RA,Event:Wi.Event},html:{Styles:Vi,Entities:pi,Node:mg,Schema:Ii,DomParser:$_,Writer:Lg,Serializer:Dg},Env:on,AddOnManager:dl,Annotator:Yf,Formatter:Kk,UndoManager:Wk,EditorCommands:oL,WindowManager:pk,NotificationManager:ck,EditorObservable:fL,Shortcuts:SL,Editor:LL,FocusManager:lm,EditorManager:jL,DOM:rl.DOM,ScriptLoader:il.ScriptLoader,PluginManager:uk,ThemeManager:dk,ModelManager:nk,IconManager:tk,Resource:YL,FakeClipboard:HL,trim:sn.trim,isArray:sn.isArray,is:sn.is,toArray:sn.toArray,makeMap:sn.makeMap,each:sn.each,map:sn.map,grep:sn.grep,inArray:sn.inArray,extend:sn.extend,walk:sn.walk,resolve:sn.resolve,explode:sn.explode,_addCacheSuffix:sn._addCacheSuffix},QL=sn.extend(jL,XL);(e=>{window.tinymce=e,window.tinyMCE=e})(QL),(t=>{try{e.exports=t}catch(e){}})(QL)}()},262(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}},645(e){"use strict";e.exports="data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw=="}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={id:e,exports:{}};return n[e].call(a.exports,a,a.exports,r),a.exports}r.m=n,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,r.d(a,i),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.b="undefined"!=typeof document&&document.baseURI||self.location.href,(()=>{"use strict";var e={};function t(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}r.r(e),r.d(e,{BaseTransition:()=>Vo,BaseTransitionPropsValidators:()=>No,Comment:()=>bi,DeprecationTypes:()=>Bl,EffectScope:()=>ye,ErrorCodes:()=>wn,ErrorTypeStrings:()=>wl,Fragment:()=>gi,KeepAlive:()=>kr,ReactiveEffect:()=>we,Static:()=>vi,Suspense:()=>ci,Teleport:()=>To,Text:()=>hi,TrackOpTypes:()=>un,Transition:()=>jl,TransitionGroup:()=>Vs,TriggerOpTypes:()=>dn,VueElement:()=>Bs,assertNumber:()=>xn,callWithAsyncErrorHandling:()=>En,callWithErrorHandling:()=>Cn,camelize:()=>L,capitalize:()=>N,cloneVNode:()=>Ri,compatUtils:()=>Il,computed:()=>bl,createApp:()=>bc,createBlock:()=>Ti,createCommentVNode:()=>zi,createElementBlock:()=>Si,createElementVNode:()=>Mi,createHydrationRenderer:()=>Xa,createPropsRestProxy:()=>ya,createRenderer:()=>Ja,createSSRApp:()=>vc,createSlots:()=>Jr,createStaticVNode:()=>Vi,createTextVNode:()=>Fi,createVNode:()=>Ni,customRef:()=>nn,defineAsyncComponent:()=>vr,defineComponent:()=>Ko,defineCustomElement:()=>Ss,defineEmits:()=>la,defineExpose:()=>sa,defineModel:()=>da,defineOptions:()=>ca,defineProps:()=>ia,defineSSRCustomElement:()=>Ts,defineSlots:()=>ua,devtools:()=>Cl,effect:()=>Re,effectScope:()=>_e,getCurrentInstance:()=>Yi,getCurrentScope:()=>Ae,getCurrentWatcher:()=>gn,getTransitionRawChildren:()=>Go,guardReactiveProps:()=>Pi,h:()=>vl,handleError:()=>Sn,hasInjectionContext:()=>uo,hydrate:()=>hc,hydrateOnIdle:()=>fr,hydrateOnInteraction:()=>hr,hydrateOnMediaQuery:()=>gr,hydrateOnVisible:()=>mr,initCustomFormatter:()=>yl,initDirectivesForSSR:()=>kc,inject:()=>co,isMemoSame:()=>Al,isProxy:()=>zt,isReactive:()=>Rt,isReadonly:()=>Ft,isRef:()=>Gt,isRuntimeOnly:()=>sl,isShallow:()=>Vt,isVNode:()=>Ii,markRaw:()=>jt,mergeDefaults:()=>ba,mergeModels:()=>va,mergeProps:()=>qi,nextTick:()=>Nn,nodeOps:()=>
2Pl,normalizeClass:()=>Y,normalizeProps:()=>J,normalizeStyle:()=>G,onActivated:()=>wr,onBeforeMount:()=>Lr,onBeforeUnmount:()=>Pr,onBeforeUpdate:()=>Mr,onDeactivated:()=>Cr,onErrorCaptured:()=>Ur,onMounted:()=>Dr,onRenderTracked:()=>zr,onRenderTriggered:()=>Vr,onScopeDispose:()=>ke,onServerPrefetch:()=>Fr,onUnmounted:()=>Rr,onUpdated:()=>Nr,onWatcherCleanup:()=>hn,openBlock:()=>Ai,patchProp:()=>Cs,popScopeId:()=>oo,provide:()=>so,proxyRefs:()=>en,pushScopeId:()=>no,queuePostFlushCb:()=>Fn,reactive:()=>Lt,readonly:()=>Mt,ref:()=>Kt,registerRuntimeCompiler:()=>ll,render:()=>gc,renderList:()=>Yr,renderSlot:()=>Xr,resolveComponent:()=>qr,resolveDirective:()=>Zr,resolveDynamicComponent:()=>Kr,resolveFilter:()=>Tl,resolveTransitionHooks:()=>Uo,setBlockTracking:()=>Ci,setDevtoolsHook:()=>El,setTransitionHooks:()=>qo,shallowReactive:()=>Dt,shallowReadonly:()=>Nt,shallowRef:()=>Zt,ssrContextKey:()=>po,ssrUtils:()=>Sl,stop:()=>Fe,toDisplayString:()=>fe,toHandlerKey:()=>P,toHandlers:()=>ea,toRaw:()=>Ut,toRef:()=>ln,toRefs:()=>on,toValue:()=>Xt,transformVNodeArgs:()=>Oi,triggerRef:()=>Yt,unref:()=>Jt,useAttrs:()=>ma,useCssModule:()=>Ds,useCssVars:()=>ls,useHost:()=>Os,useId:()=>Zo,useModel:()=>Ca,useSSRContext:()=>fo,useShadowRoot:()=>Ls,useSlots:()=>fa,useTemplateRef:()=>$o,useTransitionState:()=>Do,vModelCheckbox:()=>$s,vModelDynamic:()=>nc,vModelRadio:()=>Js,vModelSelect:()=>Xs,vModelText:()=>Ws,vShow:()=>rs,version:()=>kl,warn:()=>xl,watch:()=>bo,watchEffect:()=>mo,watchPostEffect:()=>go,watchSyncEffect:()=>ho,withAsyncContext:()=>_a,withCtx:()=>ao,withDefaults:()=>pa,withDirectives:()=>io,withKeys:()=>cc,withMemo:()=>_l,withModifiers:()=>lc,withScopeId:()=>ro});const n={},o=[],a=()=>{},i=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),m=Array.isArray,g=e=>"[object Map]"===w(e),h=e=>"[object Set]"===w(e),b=e=>"[object Date]"===w(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,_=e=>"symbol"==typeof e,A=e=>null!==e&&"object"==typeof e,k=e=>(A(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,w=e=>x.call(e),C=e=>w(e).slice(8,-1),E=e=>"[object Object]"===w(e),S=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=t("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),B=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-\w/g,L=B(e=>e.replace(O,e=>e.slice(1).toUpperCase())),D=/\B([A-Z])/g,M=B(e=>e.replace(D,"-$1").toLowerCase()),N=B(e=>e.charAt(0).toUpperCase()+e.slice(1)),P=B(e=>e?`on${N(e)}`:""),R=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},V=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},z=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const H=()=>j||(j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{}),q=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function G(e){if(m(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=y(o)?$(o):G(o);if(r)for(const e in r)t[e]=r[e]}return t}if(y(e)||A(e))return e}const K=/;(?![^(]*\))/g,Z=/:([^]+)/,W=/\/\*[^]*?\*\//g;function $(e){const t={};return e.replace(W,"").split(K).forEach(e=>{if(e){const n=e.split(Z);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Y(e){let t="";if(y(e))t=e;else if(m(e))for(let n=0;n<e.length;n++){const o=Y(e[n]);o&&(t+=o+" ")}else if(A(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function J(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=Y(t)),n&&(e.style=G(n)),e}const X=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),Q=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),ee=t("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),te=t("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),ne="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",oe=t(ne),re=t(ne+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,
2checked,muted,multiple,selected");function ae(e){return!!e||""===e}const ie=t("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),le=t("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode
2-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),se=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function ce(e,t){return e.replace(se,e=>t?'"'===e?'\\\\\\"':`\\\\${e}`:`\\${e}`)}function ue(e,t){if(e===t)return!0;let n=b(e),o=b(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=_(e),o=_(t),n||o)return e===t;if(n=m(e),o=m(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ue(e[o],t[o]);return n}(e,t);if(n=A(e),o=A(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!ue(e[n],t[n]))return!1}}return String(e)===String(t)}function de(e,t){return e.findIndex(e=>ue(e,t))}const pe=e=>!(!e||!0!==e.__v_isRef),fe=e=>y(e)?e:null==e?"":m(e)||A(e)&&(e.toString===x||!v(e.toString))?pe(e)?fe(e.value):JSON.stringify(e,me,2):String(e),me=(e,t)=>pe(t)?me(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[ge(t,o)+" =>"]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ge(e))}:_(t)?ge(t):!A(t)||m(t)||E(t)?t:String(t),ge=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function he(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:("number"==typeof e&&Number.isFinite(e),String(e))}let be,ve;class ye{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=be,!e&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=be;try{return be=this,e()}finally{be=t}}}on(){1===++this._on&&(this.prevScope=be,be=this)}off(){this._on>0&&0===--this._on&&(be=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function _e(e){return new ye(e)}function Ae(){return be}function ke(e,t=!1){be&&be.cleanups.push(e)}const xe=new WeakSet;class we{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,be&&be.active&&be.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,xe.has(this)&&(xe.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||Te(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,He(this),Oe(this);const e=ve,t=Ve;ve=this,Ve=!0;try{return this.fn()}finally{Le(this),ve=e,Ve=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)Ne(e);this.deps=this.depsTail=void 0,He(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?xe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){De(this)&&this.run()}get dirty(){return De(this)}}let Ce,Ee,Se=0;function Te(e,t=!1){if(e.flags|=8,t)return e.next=Ee,void(Ee=e);
2e.next=Ce,Ce=e}function Ie(){Se++}function Be(){if(--Se>0)return;if(Ee){let e=Ee;for(Ee=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ce;){let t=Ce;for(Ce=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function Oe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Le(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),Ne(o),Pe(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function De(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Me(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Me(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===qe)return;if(e.globalVersion=qe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!De(e)))return;e.flags|=2;const t=e.dep,n=ve,o=Ve;ve=e,Ve=!0;try{Oe(e);const n=e.fn(e._value);(0===t.version||R(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ve=n,Ve=o,Le(e),e.flags&=-3}}function Ne(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ne(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function Pe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Re(e,t){e.effect instanceof we&&(e=e.effect.fn);const n=new we(e);t&&c(n,t);try{n.run()}catch(e){throw n.stop(),e}const o=n.run.bind(n);return o.effect=n,o}function Fe(e){e.effect.stop()}let Ve=!0;const ze=[];function Ue(){ze.push(Ve),Ve=!1}function je(){const e=ze.pop();Ve=void 0===e||e}function He(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ve;ve=void 0;try{t()}finally{ve=e}}}let qe=0;class Ge{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ke{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ve||!Ve||ve===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ve)t=this.activeLink=new Ge(ve,this),ve.deps?(t.prevDep=ve.depsTail,ve.depsTail.nextDep=t,ve.depsTail=t):ve.deps=ve.depsTail=t,Ze(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ve.depsTail,t.nextDep=void 0,ve.depsTail.nextDep=t,ve.depsTail=t,ve.deps===t&&(ve.deps=e)}return t}trigger(e){this.version++,qe++,this.notify(e)}notify(e){Ie();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Be()}}}function Ze(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ze(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const We=new WeakMap,$e=Symbol(""),Ye=Symbol(""),Je=Symbol("");function Xe(e,t,n){if(Ve&&ve){let t=We.get(e);t||We.set(e,t=new Map);let o=t.get(n);o||(t.set(n,o=new Ke),o.map=t,o.key=n),o.track()}}function Qe(e,t,n,o,r,a){const i=We.get(e);if(!i)return void qe++;const l=e=>{e&&e.trigger()};if(Ie(),"clear"===t)i.forEach(l);else{const r=m(e),a=r&&S(n);if(r&&"length"===n){const e=Number(o);i.forEach((t,n)=>{("length"===n||n===Je||!_(n)&&n>=e)&&l(t)})}else switch((void 0!==n||i.has(void 0))&&l(i.get(n)),a&&l(i.get(Je)),t){case"add":r?a&&l(i.get("length")):(l(i.get($e)),g(e)&&l(i.get(Ye)));break;case"delete":r||(l(i.get($e)),g(e)&&l(i.get(Ye)));break;case"set":g(e)&&l(i.get($e))}}Be()}function et(e){const t=Ut(e);return t===e?t:(Xe(t,0,Je),Vt(e)?t:t.map(Ht))}function tt(e){return Xe(e=Ut(e),0,Je),e}function nt(e,t){return Ft(e)?Rt(e)?qt(Ht(t)):qt(t):Ht(t)}const ot={__proto__:null,[Symbol.iterator](){return rt(this,Symbol.iterator,e=>nt(this,e))},concat(...e){return et(this).concat(...e.map(e=>m(e)?et(e):e))}
2,entries(){return rt(this,"entries",e=>(e[1]=nt(this,e[1]),e))},every(e,t){return it(this,"every",e,t,void 0,arguments)},filter(e,t){return it(this,"filter",e,t,e=>e.map(e=>nt(this,e)),arguments)},find(e,t){return it(this,"find",e,t,e=>nt(this,e),arguments)},findIndex(e,t){return it(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return it(this,"findLast",e,t,e=>nt(this,e),arguments)},findLastIndex(e,t){return it(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return it(this,"forEach",e,t,void 0,arguments)},includes(...e){return st(this,"includes",e)},indexOf(...e){return st(this,"indexOf",e)},join(e){return et(this).join(e)},lastIndexOf(...e){return st(this,"lastIndexOf",e)},map(e,t){return it(this,"map",e,t,void 0,arguments)},pop(){return ct(this,"pop")},push(...e){return ct(this,"push",e)},reduce(e,...t){return lt(this,"reduce",e,t)},reduceRight(e,...t){return lt(this,"reduceRight",e,t)},shift(){return ct(this,"shift")},some(e,t){return it(this,"some",e,t,void 0,arguments)},splice(...e){return ct(this,"splice",e)},toReversed(){return et(this).toReversed()},toSorted(e){return et(this).toSorted(e)},toSpliced(...e){return et(this).toSpliced(...e)},unshift(...e){return ct(this,"unshift",e)},values(){return rt(this,"values",e=>nt(this,e))}};function rt(e,t,n){const o=tt(e),r=o[t]();return o===e||Vt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const at=Array.prototype;function it(e,t,n,o,r,a){const i=tt(e),l=i!==e&&!Vt(e),s=i[t];if(s!==at[t]){const t=s.apply(e,a);return l?Ht(t):t}let c=n;i!==e&&(l?c=function(t,o){return n.call(this,nt(e,t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=s.call(i,c,o);return l&&r?r(u):u}function lt(e,t,n,o){const r=tt(e);let a=n;return r!==e&&(Vt(e)?n.length>3&&(a=function(t,o,r){return n.call(this,t,o,r,e)}):a=function(t,o,r){return n.call(this,t,nt(e,o),r,e)}),r[t](a,...o)}function st(e,t,n){const o=Ut(e);Xe(o,0,Je);const r=o[t](...n);return-1!==r&&!1!==r||!zt(n[0])?r:(n[0]=Ut(n[0]),o[t](...n))}function ct(e,t,n=[]){Ue(),Ie();const o=Ut(e)[t].apply(e,n);return Be(),je(),o}const ut=t("__proto__,__v_isRef,__isVue"),dt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function pt(e){_(e)||(e=String(e));const t=Ut(this);return Xe(t,0,e),t.hasOwnProperty(e)}class ft{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?Ot:Bt:r?It:Tt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=m(e);if(!o){let e;if(a&&(e=ot[t]))return e;if("hasOwnProperty"===t)return pt}const i=Reflect.get(e,t,Gt(e)?e:n);if(_(t)?dt.has(t):ut(t))return i;if(o||Xe(e,0,t),r)return i;if(Gt(i)){const e=a&&S(t)?i:i.value;return o&&A(e)?Mt(e):e}return A(i)?o?Mt(i):Lt(i):i}}class mt extends ft{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];const a=m(e)&&S(t);if(!this._isShallow){const e=Ft(r);if(Vt(n)||Ft(n)||(r=Ut(r),n=Ut(n)),!a&&Gt(r)&&!Gt(n))return e||(r.value=n),!0}const i=a?Number(t)<e.length:f(e,t),l=Reflect.set(e,t,n,Gt(e)?e:o);return e===Ut(o)&&(i?R(n,r)&&Qe(e,"set",t,n):Qe(e,"add",t,n)),l}deleteProperty(e,t){const n=f(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&Qe(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return _(t)&&dt.has(t)||Xe(e,0,t),n}ownKeys(e){return Xe(e,0,m(e)?"length":$e),Reflect.ownKeys(e)}}class gt extends ft{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const ht=new mt,bt=new gt,vt=new mt(!0),yt=new gt(!0),_t=e=>e,At=e=>Reflect.getPrototypeOf(e);function kt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function xt(e,t){const n=function(e,t){const n={get(n){const o=this.__v_raw,r=Ut(o),a=Ut(n);e||(R(n,a)&&Xe(r,0,n),Xe(r,0,a));const{has:i}=At(r),l=t?_t:e?qt:Ht;return i.call(r,n)?l(o.get(n)):i.call(r,a)?l(o.get(a)):void(o!==r&&o.get(n))},get size(){const t=this.__v_raw;return!e&&Xe(Ut(t),0,$e),t.size},has(t){const n=this.__v_raw,o=Ut(n),r=Ut(t);return e||(R(t,r)&&Xe(o,0,t),Xe(o,0,r)),t===r?n.has(t):n.has(t)||n.has(r)}
2,forEach(n,o){const r=this,a=r.__v_raw,i=Ut(a),l=t?_t:e?qt:Ht;return!e&&Xe(i,0,$e),a.forEach((e,t)=>n.call(o,l(e),l(t),r))}};return c(n,e?{add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear")}:{add(e){t||Vt(e)||Ft(e)||(e=Ut(e));const n=Ut(this);return At(n).has.call(n,e)||(n.add(e),Qe(n,"add",e,e)),this},set(e,n){t||Vt(n)||Ft(n)||(n=Ut(n));const o=Ut(this),{has:r,get:a}=At(o);let i=r.call(o,e);i||(e=Ut(e),i=r.call(o,e));const l=a.call(o,e);return o.set(e,n),i?R(n,l)&&Qe(o,"set",e,n):Qe(o,"add",e,n),this},delete(e){const t=Ut(this),{has:n,get:o}=At(t);let r=n.call(t,e);r||(e=Ut(e),r=n.call(t,e)),o&&o.call(t,e);const a=t.delete(e);return r&&Qe(t,"delete",e,void 0),a},clear(){const e=Ut(this),t=0!==e.size,n=e.clear();return t&&Qe(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=function(e,t,n){return function(...o){const r=this.__v_raw,a=Ut(r),i=g(a),l="entries"===e||e===Symbol.iterator&&i,s="keys"===e&&i,u=r[e](...o),d=n?_t:t?qt:Ht;return!t&&Xe(a,0,s?Ye:$e),c(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(o,e,t)}),n}(e,t);return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(f(n,o)&&o in t?n:t,o,r)}const wt={get:xt(!1,!1)},Ct={get:xt(!1,!0)},Et={get:xt(!0,!1)},St={get:xt(!0,!0)},Tt=new WeakMap,It=new WeakMap,Bt=new WeakMap,Ot=new WeakMap;function Lt(e){return Ft(e)?e:Pt(e,!1,ht,wt,Tt)}function Dt(e){return Pt(e,!1,vt,Ct,It)}function Mt(e){return Pt(e,!0,bt,Et,Bt)}function Nt(e){return Pt(e,!0,yt,St,Ot)}function Pt(e,t,n,o,r){if(!A(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(C(i));var i;if(0===a)return e;const l=r.get(e);if(l)return l;const s=new Proxy(e,2===a?o:n);return r.set(e,s),s}function Rt(e){return Ft(e)?Rt(e.__v_raw):!(!e||!e.__v_isReactive)}function Ft(e){return!(!e||!e.__v_isReadonly)}function Vt(e){return!(!e||!e.__v_isShallow)}function zt(e){return!!e&&!!e.__v_raw}function Ut(e){const t=e&&e.__v_raw;return t?Ut(t):e}function jt(e){return!f(e,"__v_skip")&&Object.isExtensible(e)&&V(e,"__v_skip",!0),e}const Ht=e=>A(e)?Lt(e):e,qt=e=>A(e)?Mt(e):e;function Gt(e){return!!e&&!0===e.__v_isRef}function Kt(e){return Wt(e,!1)}function Zt(e){return Wt(e,!0)}function Wt(e,t){return Gt(e)?e:new $t(e,t)}class $t{constructor(e,t){this.dep=new Ke,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Ut(e),this._value=t?e:Ht(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Vt(e)||Ft(e);e=n?e:Ut(e),R(e,t)&&(this._rawValue=e,this._value=n?e:Ht(e),this.dep.trigger())}}function Yt(e){e.dep&&e.dep.trigger()}function Jt(e){return Gt(e)?e.value:e}function Xt(e){return v(e)?e():Jt(e)}const Qt={get:(e,t,n)=>"__v_raw"===t?e:Jt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Gt(r)&&!Gt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function en(e){return Rt(e)?e:new Proxy(e,Qt)}class tn{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Ke,{get:n,set:o}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(e){this._set(e)}}function nn(e){return new tn(e)}function on(e){const t=m(e)?new Array(e.length):{};for(const n in e)t[n]=sn(e,n);return t}class rn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Ut(e);let o=!0,r=e;if(!m(e)||!S(String(t)))do{o=!zt(r)||Vt(r)}while(o&&(r=r.__v_raw));this._shallow=o}get value(){let e=this._object[this._key];return this._shallow&&(e=Jt(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&Gt(this._raw[this._key])){const t=this._object[this._key];if(Gt(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=We.get(e);return n&&n.get(t)}(this._raw,this._key)}}class an{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}
2function ln(e,t,n){return Gt(e)?e:v(e)?new an(e):A(e)&&arguments.length>1?sn(e,t,n):Kt(e)}function sn(e,t,n){return new rn(e,t,n)}class cn{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ke(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||ve===this))return Te(this,!0),!0}get value(){const e=this.dep.track();return Me(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const un={GET:"get",HAS:"has",ITERATE:"iterate"},dn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},pn={},fn=new WeakMap;let mn;function gn(){return mn}function hn(e,t=!1,n=mn){if(n){let t=fn.get(n);t||fn.set(n,t=[]),t.push(e)}}function bn(e,t=1/0,n){if(t<=0||!A(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,Gt(e))bn(e.value,t,n);else if(m(e))for(let o=0;o<e.length;o++)bn(e[o],t,n);else if(h(e)||g(e))e.forEach(e=>{bn(e,t,n)});else if(E(e)){for(const o in e)bn(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&bn(e[o],t,n)}return e}const vn=[];let yn=!1;function _n(e,...t){if(yn)return;yn=!0,Ue();const n=vn.length?vn[vn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=vn[vn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Cn(o,n,11,[e+t.map(e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,r.map(({vnode:e})=>`at <${hl(n,e.type)}>`).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${hl(e.component,e.type,o)}`,a=">"+n;return e.props?[r,...An(e.props),a]:[r+a]}(e))}),t}(r)),console.warn(...n)}je(),yn=!1}function An(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...kn(n,e[n]))}),n.length>3&&t.push(" ..."),t}function kn(e,t,n){return y(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}
2`]:Gt(t)?(t=kn(e,Ut(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):v(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ut(t),n?t:[`${e}=`,t])}function xn(e,t){}const wn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"};function Cn(e,t,n,o){try{return o?e(...o):e()}catch(e){Sn(e,t,n)}}function En(e,t,n,o){if(v(e)){const r=Cn(e,t,n,o);return r&&k(r)&&r.catch(e=>{Sn(e,t,n)}),r}if(m(e)){const r=[];for(let a=0;a<e.length;a++)r.push(En(e[a],t,n,o));return r}}function Sn(e,t,o,r=!0){t&&t.vnode;const{errorHandler:a,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||n;if(t){let n=t.parent;const r=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${o}`;for(;n;){const t=n.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;n=n.parent}if(a)return Ue(),Cn(a,null,10,[e,r,i]),void je()}!function(e,t,n,o=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,r,i)}const Tn=[];let In=-1;const Bn=[];let On=null,Ln=0;const Dn=Promise.resolve();let Mn=null;function Nn(e){const t=Mn||Dn;return e?t.then(this?e.bind(this):e):t}function Pn(e){if(!(1&e.flags)){const t=Un(e),n=Tn[Tn.length-1];!n||!(2&e.flags)&&t>=Un(n)?Tn.push(e):Tn.splice(function(e){let t=In+1,n=Tn.length;for(;t<n;){const o=t+n>>>1,r=Tn[o],a=Un(r);a<e||a===e&&2&r.flags?t=o+1:n=o}return t}(t),0,e),e.flags|=1,Rn()}}function Rn(){Mn||(Mn=Dn.then(jn))}function Fn(e){m(e)?Bn.push(...e):On&&-1===e.id?On.splice(Ln+1,0,e):1&e.flags||(Bn.push(e),e.flags|=1),Rn()}function Vn(e,t,n=In+1){for(;n<Tn.length;n++){const t=Tn[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Tn.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function zn(e){if(Bn.length){const e=[...new Set(Bn)].sort((e,t)=>Un(e)-Un(t));if(Bn.length=0,On)return void On.push(...e);for(On=e,Ln=0;Ln<On.length;Ln++){const e=On[Ln];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}On=null,Ln=0}}const Un=e=>null==e.id?2&e.flags?-1:1/0:e.id;function jn(e){try{for(In=0;In<Tn.length;In++){const e=Tn[In];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Cn(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;In<Tn.length;In++){const e=Tn[In];e&&(e.flags&=-2)}In=-1,Tn.length=0,zn(),Mn=null,(Tn.length||Bn.length)&&jn(e)}}let Hn,qn=[],Gn=!1;function Kn(e,...t){Hn?Hn.emit(e,...t):Gn||qn.push({event:e,args:t})}function Zn(e,t){var n,o;Hn=e,Hn?(Hn.enabled=!0,qn.forEach(({event:e,args:t})=>Hn.emit(e,...t)),qn=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(n=window.navigator)?void 0:n.userAgent)?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Zn(e,t)}),setTimeout(()=>{Hn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Gn=!0,qn=[])},3e3)):(Gn=!0,qn=[])}const Wn=Xn("component:added"),$n=Xn("component:updated"),Yn=Xn("component:removed"),Jn=e=>{Hn&&"function"==typeof Hn.cleanupBuffer&&!Hn.cleanupBuffer(e)&&Yn(e)};function Xn(e){return t=>{Kn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}let Qn=null,eo=null;function to(e){const t=Qn;return Qn=e,eo=e&&e.type.__scopeId||null,t}function no(e){eo=e}function oo(){eo=null}const ro=e=>ao;function ao(e,t=Qn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Ci(-1);const r=to(t);let a;try{a=e(...n)}finally{to(r),o._d&&Ci(1)}return $n(t),a};return o._n=!0,o._c=!0,o._d=!0,o}function io(e,t){if(null===Qn)return e;const o=pl(Qn),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[a,i,l,s=n]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&bn(i),r.push({dir:a,instance:o,value:i,oldValue:void 0,arg:l,modifiers:s}))}return e}function lo(e,t,n,o){const r=e.dirs,a=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];a&&(l.oldValue=a[i].value);let s=l.dir[o];s&&(Ue(),En(s,n,8,[e.el,l,e,t]),je())}}function so(e,t){if($i){let n=$i.provides;const o=$i.parent&&$i.parent.provides;o===n&&(n=$i.provides=Object.create(o)),n[e]=t}}function co(e,t,n=!1){const o=Yi();if(o||wa){let r=wa?wa._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function uo(){return!(!Yi()&&!wa)}const po=Symbol.for("v-scx"),fo=()=>co(po);function mo(e,t){return vo(e,null,t)}function go(e,t){return vo(e,null,{flush:"post"})}function ho(e,t){return vo(e,null,{flush:"sync"})}function bo(e,t,n){return vo(e,t,n)}function vo(e,t,o=n){const{immediate:r,deep:i,flush:l,once:s}=o,d=c({},o),p=t&&r||!t&&"post"!==l;let f;if(rl)if("sync"===l){const e=fo();f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!p){const e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}const g=$i;
2d.call=(e,t,n)=>En(e,g,t,n);let h=!1;"post"===l?d.scheduler=e=>{Ya(e,g&&g.suspense)}:"sync"!==l&&(h=!0,d.scheduler=(e,t)=>{t?e():Pn(e)}),d.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,g&&(e.id=g.uid,e.i=g))};const b=function(e,t,o=n){const{immediate:r,deep:i,once:l,scheduler:s,augmentJob:c,call:d}=o,p=e=>i?e:Vt(e)||!1===i||0===i?bn(e,1):bn(e);let f,g,h,b,y=!1,_=!1;if(Gt(e)?(g=()=>e.value,y=Vt(e)):Rt(e)?(g=()=>p(e),y=!0):m(e)?(_=!0,y=e.some(e=>Rt(e)||Vt(e)),g=()=>e.map(e=>Gt(e)?e.value:Rt(e)?p(e):v(e)?d?d(e,2):e():void 0)):g=v(e)?t?d?()=>d(e,2):e:()=>{if(h){Ue();try{h()}finally{je()}}const t=mn;mn=f;try{return d?d(e,3,[b]):e(b)}finally{mn=t}}:a,t&&i){const e=g,t=!0===i?1/0:i;g=()=>bn(e(),t)}const A=Ae(),k=()=>{f.stop(),A&&A.active&&u(A.effects,f)};if(l&&t){const e=t;t=(...t)=>{e(...t),k()}}let x=_?new Array(e.length).fill(pn):pn;const w=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(i||y||(_?e.some((e,t)=>R(e,x[t])):R(e,x))){h&&h();const n=mn;mn=f;try{const n=[e,x===pn?void 0:_&&x[0]===pn?[]:x,b];x=e,d?d(t,3,n):t(...n)}finally{mn=n}}}else f.run()};return c&&c(w),f=new we(g),f.scheduler=s?()=>s(w,!1):w,b=e=>hn(e,!1,f),h=f.onStop=()=>{const e=fn.get(f);if(e){if(d)d(e,4);else for(const t of e)t();fn.delete(f)}},t?r?w(!0):x=f.run():s?s(w.bind(null,!0),!0):f.run(),k.pause=f.pause.bind(f),k.resume=f.resume.bind(f),k.stop=k,k}(e,t,d);return rl&&(f?f.push(b):p&&b()),b}const yo=Symbol("_vte"),_o=e=>e.__isTeleport,Ao=e=>e&&(e.disabled||""===e.disabled),ko=e=>e&&(e.defer||""===e.defer),xo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,wo=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Co=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n},Eo={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,a,i,l,s,c){const{mc:u,pc:d,pbc:p,o:{insert:f,querySelector:m,createText:g,createComment:h}}=c,b=Ao(t.props);let{shapeFlag:v,children:y,dynamicChildren:_}=t;if(null==e){const e=t.el=g(""),c=t.anchor=g("");f(e,n,o),f(c,n,o);const d=(e,t)=>{16&v&&u(y,e,t,r,a,i,l,s)},p=()=>{const e=t.target=Co(t.props,m),n=Bo(e,t,g,f);e&&("svg"!==i&&xo(e)?i="svg":"mathml"!==i&&wo(e)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(e),b||(d(e,n),Io(t,!1)))};b&&(d(n,c),Io(t,!0)),ko(t.props)?(t.el.__isMounted=!1,Ya(()=>{p(),delete t.el.__isMounted},a)):p()}else{if(ko(t.props)&&!1===e.el.__isMounted)return void Ya(()=>{Eo.process(e,t,n,o,r,a,i,l,s,c)},a);t.el=e.el,t.targetStart=e.targetStart;const u=t.anchor=e.anchor,f=t.target=e.target,g=t.targetAnchor=e.targetAnchor,h=Ao(e.props),v=h?n:f,y=h?u:g;if("svg"===i||xo(f)?i="svg":("mathml"===i||wo(f))&&(i="mathml"),_?(p(e.dynamicChildren,_,v,r,a,i,l),oi(e,t,!0)):s||d(e,t,v,y,r,a,i,l,!1),b)h?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):So(t,n,u,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Co(t.props,m);e&&So(t,e,null,c,0)}else h&&So(t,f,g,c,1);Io(t,b)}},remove(e,t,n,{um:o,o:{remove:r}},a){const{shapeFlag:i,children:l,anchor:s,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(r(c),r(u)),a&&r(s),16&i){const e=a||!Ao(p);for(let r=0;r<l.length;r++){const a=l[r];o(a,t,n,e,!!a.dynamicChildren)}}},move:So,hydrate:function(e,t,n,o,r,a,{o:{nextSibling:i,parentNode:l,querySelector:s,insert:c,createText:u}},d){function p(e,t,s,c){t.anchor=d(i(e),t,l(e),n,o,r,a),t.targetStart=s,t.targetAnchor=c}const f=t.target=Co(t.props,s),m=Ao(t.props);if(f){const l=f._lpa||f.firstChild;if(16&t.shapeFlag)if(m)p(e,t,l,l&&i(l));else{t.anchor=i(e);let s=l;for(;s;){if(s&&8===s.nodeType)if("teleport start anchor"===s.data)t.targetStart=s;else if("teleport anchor"===s.data){t.targetAnchor=s,f._lpa=t.targetAnchor&&i(t.targetAnchor);break}s=i(s)}t.targetAnchor||Bo(f,t,u,c),d(l&&i(l),t,f,n,o,r,a)}Io(t,m)}else m&&16&t.shapeFlag&&p(e,t,e,i(e));return t.anchor&&i(t.anchor)}};function So(e,t,n,{o:{insert:o},m:r},a=2){0===a&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:s,children:c,props:u}=e,d=2===a;if(d&&o(i,t,n),(!d||Ao(u))&&16&s)for(let e=0;e<c.length;e++)r(c[e],t,n,2);d&&o(l,t,n)}const To=Eo;function Io(e,t){const n=e.ctx;if(n&&n.ut){let o,r;for(t?(o=e.el,r=e.anchor):(o=e.targetStart,r=e.targetAnchor);o&&o!==r;)1===o.nodeType&&o.setAttribute("data-v-owner",n.uid),o=o.nextSibling;n.ut()}}function Bo(e,t,n,o){const r=t.targetStart=n(""),a=t.targetAnchor=n("");return r[yo]=a,e&&(o(r,e),o(a,e)),a}const Oo=Symbol("_leaveCb"),Lo=Symbol("_enterCb");function Do(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
2ingVNodes:new Map};return Dr(()=>{e.isMounted=!0}),Pr(()=>{e.isUnmounting=!0}),e}const Mo=[Function,Array],No={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mo,onEnter:Mo,onAfterEnter:Mo,onEnterCancelled:Mo,onBeforeLeave:Mo,onLeave:Mo,onAfterLeave:Mo,onLeaveCancelled:Mo,onBeforeAppear:Mo,onAppear:Mo,onAfterAppear:Mo,onAppearCancelled:Mo},Po=e=>{const t=e.subTree;return t.component?Po(t.component):t},Ro={name:"BaseTransition",props:No,setup(e,{slots:t}){const n=Yi(),o=Do();return()=>{const r=t.default&&Go(t.default(),!0);if(!r||!r.length)return;const a=Fo(r),i=Ut(e),{mode:l}=i;if(o.isLeaving)return jo(a);const s=Ho(a);if(!s)return jo(a);let c=Uo(s,i,o,n,e=>c=e);s.type!==bi&&qo(s,c);let u=n.subTree&&Ho(n.subTree);if(u&&u.type!==bi&&!Bi(u,s)&&Po(n).type!==bi){let e=Uo(u,i,o,n);if(qo(u,e),"out-in"===l&&s.type!==bi)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,u=void 0},jo(a);"in-out"===l&&s.type!==bi?e.delayLeave=(e,t,n)=>{zo(o,u)[String(u.key)]=u,e[Oo]=()=>{t(),e[Oo]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return a}}};function Fo(e){let t=e[0];if(e.length>1){let n=!1;for(const o of e)if(o.type!==bi){t=o,n=!0;break}}return t}const Vo=Ro;function zo(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Uo(e,t,n,o,r){const{appear:a,mode:i,persisted:l=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:g,onLeaveCancelled:h,onBeforeAppear:b,onAppear:v,onAfterAppear:y,onAppearCancelled:_}=t,A=String(e.key),k=zo(n,e),x=(e,t)=>{e&&En(e,o,9,t)},w=(e,t)=>{const n=t[1];x(e,t),m(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},C={mode:i,persisted:l,beforeEnter(t){let o=s;if(!n.isMounted){if(!a)return;o=b||s}t[Oo]&&t[Oo](!0);const r=k[A];r&&Bi(e,r)&&r.el[Oo]&&r.el[Oo](),x(o,[t])},enter(e){let t=c,o=u,r=d;if(!n.isMounted){if(!a)return;t=v||c,o=y||u,r=_||d}let i=!1;const l=e[Lo]=t=>{i||(i=!0,x(t?r:o,[e]),C.delayedLeave&&C.delayedLeave(),e[Lo]=void 0)};t?w(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[Lo]&&t[Lo](!0),n.isUnmounting)return o();x(p,[t]);let a=!1;const i=t[Oo]=n=>{a||(a=!0,o(),x(n?h:g,[t]),t[Oo]=void 0,k[r]===e&&delete k[r])};k[r]=e,f?w(f,[t,i]):i()},clone(e){const a=Uo(e,t,n,o,r);return r&&r(a),a}};return C}function jo(e){if(_r(e))return(e=Ri(e)).children=null,e}function Ho(e){if(!_r(e))return _o(e.type)&&e.children?Fo(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function qo(e,t){6&e.shapeFlag&&e.component?(e.transition=t,qo(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Go(e,t=!1,n){let o=[],r=0;for(let a=0;a<e.length;a++){let i=e[a];const l=null==n?i.key:String(n)+String(null!=i.key?i.key:a);i.type===gi?(128&i.patchFlag&&r++,o=o.concat(Go(i.children,t,l))):(t||i.type!==bi)&&o.push(null!=l?Ri(i,{key:l}):i)}if(r>1)for(let e=0;e<o.length;e++)o[e].patchFlag=-2;return o}function Ko(e,t){return v(e)?(()=>c({name:e.name},t,{setup:e}))():e}function Zo(){const e=Yi();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Wo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $o(e){const t=Yi(),o=Zt(null);if(t){const r=t.refs===n?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>o.value,set:e=>o.value=e})}return o}const Yo=new WeakMap;function Jo(e,t,o,r,a=!1){if(m(e))return void e.forEach((e,n)=>Jo(e,t&&(m(t)?t[n]:t),o,r,a));if(br(r)&&!a)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&Jo(e,t,o,r.component.subTree));const l=4&r.shapeFlag?pl(r.component):r.el,s=a?null:l,{i:c,r:d}=e,p=t&&t.r,g=c.refs===n?c.refs={}:c.refs,h=c.setupState,b=Ut(h),_=h===n?i:e=>f(b,e);if(null!=p&&p!==d)if(Xo(t),y(p))g[p]=null,_(p)&&(h[p]=null);else if(Gt(p)){p.value=null;const e=t;e.k&&(g[e.k]=null)}if(v(d))Cn(d,c,12,[s,g]);else{const t=y(d),n=Gt(d);if(t||n){const r=()=>{if(e.f){const n=t?_(d)?h[d]:g[d]:d.value;if(a)m(n)&&u(n,l);else if(m(n))n.includes(l)||n.push(l);else if(t)g[d]=[l],_(d)&&(h[d]=g[d]);else{const t=[l];d.value=t,e.k&&(g[e.k]=t)}}else t?(g[d]=s,_(d)&&(h[d]=s)):n&&(d.value=s,e.k&&(g[e.k]=s))};if(s){const t=()=>{r(),Yo.delete(e)};t.id=-1,Yo.set(e,t),Ya(t,o)}else Xo(e),r()}}}function Xo(e){const t=Yo.get(e);t&&(t.flags|=8,Yo.delete(e))}let Qo=!1;const er=()=>{Qo||(console.error("Hydration completed but contains mismatches."),Qo=!0)},tr=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},nr=e=>8===e.nodeType;function or(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:a,parentNode:i,remove:s,insert:c,createComment:u}}=e,d=(n,o,l,s,u,y=!1)=>{y=y||!!o.dynamicChildren;const _=nr(n)&&"["===n.data,A=()=>g(n,o,l,s,u,_),{type:k,ref:x,shapeFlag:w,patchFlag:C}=o;let E=n.nodeType;o.el=n,V(n,"__vnode",o,!0),V(n,"__vueParentComponent",l,!0),-2===C&&(y=!1,o.dynamicChildren=null);let S=null;switch(k){case hi:3!==E?""===o.children?(c(o.el=r(""),i(n),n),S=n):S=A():(n.data!==o.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_n("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(o.children)}`),er(),n.data=o.children),S=a(n));break;case bi:v(n)?(S=a(n),b(o.el=n.content.firstChild,n,l)):S=8!==E||_?A():a(n);break;case vi:if(_&&(E=(n=a(n)).nodeType),1===E||3===E){S=n;const e=!o.children.length;for(let t=0;t<o.staticCount;t++)e&&(o.children+=1===S.nodeType?S.outerHTML:S.data),t===o.staticCount-1&&(o.anchor=S),S=a(S);return _?a(S):S}A();break;case gi:S=_?m(n,o,l,s,u,y):A();break;default:if(1&w)S=1===E&&o.type.toLowerCase()===n.tagName.toLowerCase()||v(n)?p(n,o,l,s,u,y):A();else if(6&w){o.slotScopeIds=u;const e=i(n);if(S=_?h(n):nr(n)&&"teleport start"===n.data?h(n,n.data,"teleport end"):a(n),t(o,e,null,l,s,tr(e),y),br(o)&&!o.type.__asyncResolved){let t;_?(t=Ni(gi),t.anchor=S?S.previousSibling:e.lastChild):t=3===n.nodeType?Fi(""):Ni("div"),t.el=n,o.component.subTree=t}}else 64&w?S=8!==E?A():o.type.hydrate(n,o,l,s,u,y,e,f):128&w?S=o.type.hydrate(n,o,l,s,tr(i(n)),u,y,e,d):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_n("Invalid HostVNode type:",k,`(${typeof k})`)}return null!=x&&Jo(x,null,s,o),S},p=(e,t,n,r,a,i)=>{i=i||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:p,dirs:m,transition:g}=t,h="input"===c||"option"===c;if(h||-1!==d){m&&lo(t,null,n,"created");let c,y=!1;if(v(e)){y=ni(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;if(y){const e=o.getAttribute("class");e&&(o.$cls=e),g.beforeEnter(o)}b(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=f(e.firstChild,t,e,n,r,a,i),l=!1;for(;o;){ur(e,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!l&&(_n("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),l=!0),er()
2);const t=o;o=o.nextSibling,s(t)}}else if(8&p){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1));const{textContent:o}=e;o!==n&&o!==n.replace(/\r\n|\r/g,"\n")&&(ur(e,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_n("Hydration text content mismatch on",e,`\n - rendered on server: ${o}\n - expected on client: ${n}`),er()),e.textContent=t.children)}if(u)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||h||!i||48&d){const r=e.tagName.includes("-");for(const a in u)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||m&&m.some(e=>e.dir.created)||!rr(e,a,u[a],t,n)||er(),(h&&(a.endsWith("value")||"indeterminate"===a)||l(a)&&!T(a)||"."===a[0]||r&&!T(a))&&o(e,a,null,u[a],void 0,n)}else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&Rt(u.style))for(const e in u.style)u.style[e];(c=u&&u.onVnodeBeforeMount)&&Gi(c,n,t),m&&lo(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||m||y)&&fi(()=>{c&&Gi(c,n,t),y&&g.enter(e),m&&lo(t,null,n,"mounted")},r)}return e.nextSibling},f=(e,t,o,i,l,s,u)=>{u=u||!!t.dynamicChildren;const p=t.children,f=p.length;let m=!1;for(let t=0;t<f;t++){const g=u?p[t]:p[t]=Ui(p[t]),h=g.type===hi;e?(h&&!u&&t+1<f&&Ui(p[t+1]).type===hi&&(c(r(e.data.slice(g.children.length)),o,a(e)),e.data=g.children),e=d(e,g,i,l,s,u)):h&&!g.children?c(g.el=r(""),o):(ur(o,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!m&&(_n("Hydration children mismatch on",o,"\nServer rendered element contains fewer child nodes than client vdom."),m=!0),er()),n(null,g,o,null,i,l,tr(o),s))}return e},m=(e,t,n,o,r,l)=>{const{slotScopeIds:s}=t;s&&(r=r?r.concat(s):s);const d=i(e),p=f(a(e),t,d,n,o,r,l);return p&&nr(p)&&"]"===p.data?a(t.anchor=p):(er(),c(t.anchor=u("]"),d,p),p)},g=(e,t,o,r,l,c)=>{if(ur(e.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_n("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":nr(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),er()),t.el=null,c){const t=h(e);for(;;){const n=a(e);if(!n||n===t)break;s(n)}}const u=a(e),d=i(e);return s(e),n(null,t,d,u,o,r,tr(d),l),o&&(o.vnode.el=t.el,Ma(o,t.el)),u},h=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=a(e))&&nr(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return a(e);o--}return e},b=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},v=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_n("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),zn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),zn(),t._vnode=e},d]}function rr(e,t,n,o,r){let a,i,l,s;if("class"===t)e.$cls?(l=e.$cls,delete e.$cls):l=e.getAttribute("class"),s=Y(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(ar(l||""),ar(s))||(a=2,i="class");else if("style"===t){l=e.getAttribute("style")||"",s=y(n)?n:function(e){if(!e)return"";if(y(e))return e;let t="";for(const n in e){const o=e[n];(y(o)||"number"==typeof o)&&(t+=`${n.startsWith("--")?n:M(n)}:${o};`)}return t}(G(n));const t=ir(l),c=ir(s);if(o.dirs)for(const{dir:e,value:t}of o.dirs)"show"!==e.name||t||c.set("display","none");r&&lr(r,o,c),function(e,t){if(e.size!==t.size)return!1;for(const[n,o]of e)if(o!==t.get(n))return!1;return!0}(t,c)||(a=3,i="style")}else(e instanceof SVGElement&&le(t)||e instanceof HTMLElement&&(re(t)||ie(t)))&&(re(t)?(l=e.hasAttribute(t),s=ae(n)):null==n?(l=e.hasAttribute(t),s=!1):(l=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,s=!!function(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}(n)&&String(n)),l!==s&&(a=4,i=t));if(null!=a&&!ur(e,a)){const t=e=>!1===e?"(not rendered)":`${i}="${e}"`;return _n(`Hydration ${cr[a]} mismatch on`,e,`\n - rendered on server: ${t(l)}\n - expected on client: ${t(s)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function ar(e){return new Set(e.trim().split(/\s+/))}function ir(e){const t=new Map;for(const n of e.split(";")){let[e,o]=n.split(":");e=e.trim(),o=o&&o.trim(),e&&o&&t.set(e,o)}return t}function lr(e,t,n){const o=e.subTree;if(e.getCssVars&&(t===o||o&&o.type===gi&&o.children.includes(t))){const t=e.getCssVars();for(const e in t){const o=he(t[e]);n.set(`--${ce(e,!1)}`,o)}}t===o&&e.parent&&lr(e.parent,e.vnode,n)}const sr="data-allow-mismatch",cr={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ur(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(sr);)e=e.parentElement;const n=e&&e.getAttribute(sr);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||e.includes(cr[t])}}const dr=H().requestIdleCallback||(e=>setTimeout(e,1)),pr=H().cancelIdleCallback||(e=>clearTimeout(e)),fr=(e=1e4)=>t=>{const n=dr(t,{timeout:e});return()=>pr(n)},mr=e=>(t,n)=>{const o=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){o.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:o,right:r}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:i}=window;return(t>0&&t<a||o>0&&o<a)&&(n>0&&n<i||r>0&&r<i)}(e)?(t(),o.disconnect(),!1):void o.observe(e)}),()=>o.disconnect()},gr=e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},hr=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let o=!1;const r=e=>{o||(o=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(const n of e)t.removeEventListener(n,r)})};return n(t=>{for(const n of e)t.addEventListener(n,r,{once:!0})}),a},br=e=>!!e.type.__asyncLoader;function vr(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,hydrate:a,timeout:i,suspensible:l=!0,onError:s}=e;let c,u=null,d=0;const p=()=>{let e;
2return u||(e=u=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise((t,n)=>{s(e,()=>t((d++,u=null,p())),()=>n(e),d+1)});throw e}).then(t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t)))};return Ko({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(e,t,n){let o=!1;(t.bu||(t.bu=[])).push(()=>o=!0);const r=()=>{o||n()},i=a?()=>{const n=a(r,t=>function(e,t){if(nr(e)&&"["===e.data){let n=1,o=e.nextSibling;for(;o;){if(1===o.nodeType){if(!1===t(o))break}else if(nr(o))if("]"===o.data){if(0===--n)break}else"["===o.data&&n++;o=o.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:r;c?i():p().then(()=>!t.isUnmounted&&i())},get __asyncResolved(){return c},setup(){const e=$i;if(Wo(e),c)return()=>yr(c,e);const t=t=>{u=null,Sn(t,e,13,!o)};if(l&&e.suspense||rl)return p().then(t=>()=>yr(t,e)).catch(e=>(t(e),()=>o?Ni(o,{error:e}):null));const a=Kt(!1),s=Kt(),d=Kt(!!r);return r&&setTimeout(()=>{d.value=!1},r),null!=i&&setTimeout(()=>{if(!a.value&&!s.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),s.value=e}},i),p().then(()=>{a.value=!0,e.parent&&_r(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),s.value=e}),()=>a.value&&c?yr(c,e):s.value&&o?Ni(o,{error:s.value}):n&&!d.value?yr(n,e):void 0}})}function yr(e,t){const{ref:n,props:o,children:r,ce:a}=t.vnode,i=Ni(e,o,r);return i.ref=n,i.ce=a,delete t.vnode.ce,i}const _r=e=>e.type.__isKeepAlive,Ar={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Yi(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,a=new Set;let i=null;n.__v_cache=r;const l=n.suspense,{renderer:{p:s,m:c,um:u,o:{createElement:d}}}=o,p=d("div");function f(e){Tr(e),u(e,n,l,!0)}function m(e){r.forEach((t,n)=>{const o=gl(br(t)?t.type.__asyncResolved||{}:t.type);o&&!e(o)&&g(n)})}function g(e){const t=r.get(e);!t||i&&Bi(t,i)?i&&Tr(i):f(t),r.delete(e),a.delete(e)}o.activate=(e,t,n,o,r)=>{const a=e.component;c(e,t,n,0,l),s(a.vnode,e,t,n,a,l,o,e.slotScopeIds,r),Ya(()=>{a.isDeactivated=!1,a.a&&F(a.a);const t=e.props&&e.props.onVnodeMounted;t&&Gi(t,a.parent,e)},l),Wn(a)},o.deactivate=e=>{const t=e.component;ai(t.m),ai(t.a),c(e,p,null,1,l),Ya(()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Gi(n,t.parent,e),t.isDeactivated=!0},l),Wn(t)},bo(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>xr(e,t)),t&&m(e=>!xr(t,e))},{flush:"post",deep:!0});let h=null;const b=()=>{null!=h&&(li(n.subTree.type)?Ya(()=>{r.set(h,Ir(n.subTree))},n.subTree.suspense):r.set(h,Ir(n.subTree)))};return Dr(b),Nr(b),Pr(()=>{r.forEach(e=>{const{subTree:t,suspense:o}=n,r=Ir(t);if(e.type===r.type&&e.key===r.key){Tr(r);const e=r.component.da;return void(e&&Ya(e,o))}f(e)})}),()=>{if(h=null,!t.default)return i=null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!Ii(o)||!(4&o.shapeFlag||128&o.shapeFlag))return i=null,o;let l=Ir(o);if(l.type===bi)return i=null,l;const s=l.type,c=gl(br(l)?l.type.__asyncResolved||{}:s),{include:u,exclude:d,max:p}=e;if(u&&(!c||!xr(u,c))||d&&c&&xr(d,c))return l.shapeFlag&=-257,i=l,o;const f=null==l.key?s:l.key,m=r.get(f);return l.el&&(l=Ri(l),128&o.shapeFlag&&(o.ssContent=l)),h=f,m?(l.el=m.el,l.component=m.component,l.transition&&qo(l,l.transition),l.shapeFlag|=512,a.delete(f),a.add(f)):(a.add(f),p&&a.size>parseInt(p,10)&&g(a.values().next().value)),l.shapeFlag|=256,i=l,li(o.type)?o:l}}},kr=Ar;function xr(e,t){return m(e)?e.some(e=>xr(e,t)):y(e)?e.split(",").includes(t):"[object RegExp]"===w(e)&&(e.lastIndex=0,e.test(t))}function wr(e,t){Er(e,"a",t)}function Cr(e,t){Er(e,"da",t)}function Er(e,t,n=$i){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Br(t,o,n),n){let e=n.parent;for(;e&&e.parent;)_r(e.parent.vnode)&&Sr(o,t,n,e),e=e.parent}}function Sr(e,t,n,o){const r=Br(t,e,o,!0);Rr(()=>{u(o[t],r)},n)}function Tr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ir(e){return 128&e.shapeFlag?e.ssContent:e}function Br(e,t,n=$i,o=!1){if(n){const r=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Ue();const r=Qi(n),a=En(t,n,e,o);return r(),je(),a});return o?r.unshift(a):r.push(a),a}}const Or=e=>(t,n=$i)=>{rl&&"sp"!==e||Br(e,(...e)=>t(...e),n)},Lr=Or("bm"),Dr=Or("m"),Mr=Or("bu"),Nr=Or("u"),Pr=Or("bum"),Rr=Or("um"),Fr=Or("sp"),Vr=Or("rtg"),zr=Or("rtc");function Ur(e,t=$i){Br("ec",e,t)}const jr="components",Hr="directives";function qr(e,t){return Wr(jr,e,!0,t)||e}const Gr=Symbol.for("v-ndc");function Kr(e){return y(e)?Wr(jr,e,!1)||e:e||Gr}function Zr(e){return Wr(Hr,e)}function Wr(e,t,n=!0,o=!1){const r=Qn||$i;if(r){const n=r.type;if(e===jr){const e=gl(n,!1);if(e&&(e===t||e===L(t)||e===N(L(t))))return n}const a=$r(r[e]||n[e],t)||$r(r.appContext[e],t);return!a&&o?n:a}}function $r(e,t){return e&&(e[t]||e[L(t)]||e[N(L(t))])}function Yr(e,t,n,o){let r;const a=n&&n[o],i=m(e);if(i||y(e)){let n=!1,o=!1;i&&Rt(e)&&(n=!Vt(e),o=Ft(e),e=tt(e)),r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(n?o?qt(Ht(e[i])):Ht(e[i]):e[i],i,void 0,a&&a[i])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,a&&a[n])}else if(A(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o<i;o++){const i=n[o];r[o]=t(e[i],i,o,a&&a[o])}}else r=[];return n&&(n[o]=r),r}function Jr(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(m(o))for(let t=0;t<o.length;t++)e[o[t].name]=o[t].fn;else o&&(e[o.name]=o.key?(...e)=>{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Xr(e,t,n={},o,r){if(Qn.ce||Qn.parent&&br(Qn.parent)&&Qn.parent.ce){const e=Object.keys(n).length>0;return"default"!==t&&(n.name=t),Ai(),Ti(gi,null,[Ni("slot",n,o&&o())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Ai();const i=a&&Qr(a(n)),l=n.key||i&&i.key,s=Ti(gi,{key:(l&&!_(l)?l:`_${t}`)+(!i&&o?"_fb":"")},i||(o?o():[]),i&&1===e._?64:-2);return!r&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function Qr(e){return e.some(e=>!Ii(e)||e.type!==bi&&!(e.type===gi&&!Qr(e.children)))?e:null}function ea(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:P(o)]=e[o];return n}const ta=e=>e?tl(e)?pl(e):ta(e.parent):null,na=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ta(e.parent),$root:e=>ta(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Pn(e.update)}),$nextTick:e=>e.n||(e.n=Nn.bind(e.proxy)),$watch:e=>a}),oa=(e,t)=>e!==n&&!e.__isScriptSetup&&f(e,t),ra={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:o,setupState:r,data:a,props:i,accessCache:l,type:s,appContext:c}=e;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return a[t];case 4:return o[t];case 3:return i[t]}else{if(oa(r,t))return l[t]=1,r[t];if(f(i,t))return l[t]=3,i[t];if(o!==n&&f(o,t))return l[t]=4,o[t];l[t]=0}}const u=na[t];let d,p;return u?("$attrs"===t&&Xe(e.attrs,0,""),u(e)):(d=s.__cssModules)&&(d=d[t])?d:o!==n&&f(o,t)?(l[t]=4,o[t]):(p=c.config.globalProperties,f(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:a}=e;return oa(r,t)?(r[t]=n,!0):!(f(e.props,t)||"$"===t[0]&&t.slice(1)in e||(a[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,props:a,type:i}},l){let s;return!!(n[l]||oa(t,l)||f(a,l)||f(o,l)||f(na,l)||f(r.config.globalProperties,l)||(s=i.__cssModules)&&s[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:f(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},aa=c({},ra,{get(e,t){if(t!==Symbol.unscopables)return ra.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!q(t)});function ia(){return null}function la(){return null}function sa(e){}function ca(e){}function ua(){return null}function da(){}function pa(e,t){return null}function fa(){return ga().slots}function ma(){return ga().attrs}function ga(e){const t=Yi();return t.setupContext||(t.setupContext=dl(t))}function ha(e){return m(e)?e.reduce((e,t)=>
2(e[t]=null,e),{}):e}function ba(e,t){const n=ha(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?m(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function va(e,t){return e&&t?m(e)&&m(t)?e.concat(t):c({},ha(e),ha(t)):e||t}function ya(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function _a(e){const t=Yi();let n=e();return el(),k(n)&&(n=n.catch(e=>{throw Qi(t),e})),[n,()=>Qi(t)]}function Aa(){return{app:null,config:{isNativeTag:i,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ka=0;function xa(e,t){return function(n,o=null){v(n)||(n=c({},n)),null==o||A(o)||(o=null);const r=Aa(),a=new WeakSet,i=[];let l=!1;const s=r.app={_uid:ka++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:kl,get config(){return r.config},set config(e){},use:(e,...t)=>(a.has(e)||(e&&v(e.install)?(a.add(e),e.install(s,...t)):v(e)&&(a.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(a,i,c){if(!l){const u=s._ceVNode||Ni(n,o);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),i&&t?t(u,a):e(u,a,c),l=!0,s._container=a,a.__vue_app__=s,s._instance=u.component,function(e,t){Kn("app:init",e,t,{Fragment:gi,Text:hi,Comment:bi,Static:vi})}(s,kl),pl(u.component)}},onUnmount(e){i.push(e)},unmount(){l&&(En(i,s._instance,16),e(null,s._container),s._instance=null,function(e){Kn("app:unmount",e)}(s),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s),runWithContext(e){const t=wa;wa=s;try{return e()}finally{wa=t}}};return s}}let wa=null;function Ca(e,t,o=n){const r=Yi(),a=L(t),i=M(t),l=Ea(e,a),s=nn((l,s)=>{let c,u,d=n;return ho(()=>{const t=e[a];R(c,t)&&(c=t,s())}),{get:()=>(l(),o.get?o.get(c):c),set(e){const l=o.set?o.set(e):e;if(!(R(l,c)||d!==n&&R(e,d)))return;const p=r.vnode.props;p&&(t in p||a in p||i in p)&&(`onUpdate:${t}`in p||`onUpdate:${a}`in p||`onUpdate:${i}`in p)||(c=e,s()),r.emit(`update:${t}`,l),R(e,l)&&R(e,d)&&!R(l,u)&&s(),d=e,u=l}}});return s[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||n:s,done:!1}:{done:!0}}},s}const Ea=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${L(t)}Modifiers`]||e[`${M(t)}Modifiers`];function Sa(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||n;let a=o;const i=t.startsWith("update:"),l=i&&Ea(r,t.slice(7));let s;l&&(l.trim&&(a=o.map(e=>y(e)?e.trim():e)),l.number&&(a=o.map(z))),function(e,t,n){Kn("component:emit",e.appContext.app,e,t,n)}(e,t,a);let c=r[s=P(t)]||r[s=P(L(t))];!c&&i&&(c=r[s=P(M(t))]),c&&En(c,e,6,a);const u=r[s+"Once"];if(u){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,En(u,e,6,a)}}function Ta(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const a=e.emits;let i={};return a?(m(a)?a.forEach(e=>i[e]=null):c(i,a),A(e)&&o.set(e,i),i):(A(e)&&o.set(e,null),null)}function Ia(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),f(e,t[0].toLowerCase()+t.slice(1))||f(e,M(t))||f(e,t))}function Ba(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[a],slots:i,attrs:l,emit:c,render:u,renderCache:d,props:p,data:f,setupState:m,ctx:g,inheritAttrs:h}=e,b=to(e);let v,y;try{if(4&n.shapeFlag){const e=r||o,t=e;v=Ui(u.call(t,e,d,p,m,f,g)),y=l}else{const e=t;v=Ui(e.length>1?e(p,{attrs:l,slots:i,emit:c}):e(p,null)),y=t.props?l:Oa(l)}}catch(t){yi.length=0,Sn(t,e,1),v=Ni(bi)}let _=v;if(y&&!1!==h){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(a&&e.some(s)&&(y=La(y,a)),_=Ri(_,y,!1,!0))}return n.dirs&&(_=Ri(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&qo(_,n.transition),v=_,to(b),v}const Oa=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},La=(e,t)=>{const n={};for(const o in e)s(o)&&o.slice(9)in t||(n[o]=e[o]);return n};
2function Da(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const a=o[r];if(t[a]!==e[a]&&!Ia(n,a))return!0}return!1}function Ma({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}const Na={},Pa=()=>Object.create(Na),Ra=e=>Object.getPrototypeOf(e)===Na;function Fa(e,t,o,r){const[a,i]=e.propsOptions;let l,s=!1;if(t)for(let n in t){if(T(n))continue;const c=t[n];let u;a&&f(a,u=L(n))?i&&i.includes(u)?(l||(l={}))[u]=c:o[u]=c:Ia(e.emitsOptions,n)||n in r&&c===r[n]||(r[n]=c,s=!0)}if(i){const t=Ut(o),r=l||n;for(let n=0;n<i.length;n++){const l=i[n];o[l]=Va(a,t,l,r[l],e,!f(r,l))}}return s}function Va(e,t,n,o,r,a){const i=e[n];if(null!=i){const e=f(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&!i.skipFactory&&v(e)){const{propsDefaults:a}=r;if(n in a)o=a[n];else{const i=Qi(r);o=a[n]=e.call(null,t),i()}}else o=e;r.ce&&r.ce._setProp(n,o)}i[0]&&(a&&!e?o=!1:!i[1]||""!==o&&o!==M(n)||(o=!0))}return o}function za(e,t,r=!1){const a=t.propsCache,i=a.get(e);if(i)return i;const l=e.props,s={},u=[];if(!l)return A(e)&&a.set(e,o),o;if(m(l))for(let e=0;e<l.length;e++){const t=L(l[e]);Ua(t)&&(s[t]=n)}else if(l)for(const e in l){const t=L(e);if(Ua(t)){const n=l[e],o=s[t]=m(n)||v(n)?{type:n}:c({},n),r=o.type;let a=!1,i=!0;if(m(r))for(let e=0;e<r.length;++e){const t=r[e],n=v(t)&&t.name;if("Boolean"===n){a=!0;break}"String"===n&&(i=!1)}else a=v(r)&&"Boolean"===r.name;o[0]=a,o[1]=i,(a||f(o,"default"))&&u.push(t)}}const d=[s,u];return A(e)&&a.set(e,d),d}function Ua(e){return"$"!==e[0]&&!T(e)}const ja=e=>"_"===e||"_ctx"===e||"$stable"===e,Ha=e=>m(e)?e.map(Ui):[Ui(e)],qa=(e,t,n)=>{if(t._n)return t;const o=ao((...e)=>Ha(t(...e)),n);return o._c=!1,o},Ga=(e,t,n)=>{const o=e._ctx;for(const n in e){if(ja(n))continue;const r=e[n];if(v(r))t[n]=qa(0,r,o);else if(null!=r){const e=Ha(r);t[n]=()=>e}}},Ka=(e,t)=>{const n=Ha(t);e.slots.default=()=>n},Za=(e,t,n)=>{for(const o in t)!n&&ja(o)||(e[o]=t[o])},Wa=(e,t,n)=>{const o=e.slots=Pa();if(32&e.vnode.shapeFlag){const e=t._;e?(Za(o,t,n),n&&V(o,"_",e,!0)):Ga(t,o)}else t&&Ka(e,t)},$a=(e,t,o)=>{const{vnode:r,slots:a}=e;let i=!0,l=n;if(32&r.shapeFlag){const e=t._;e?o&&1===e?i=!1:Za(a,t,o):(i=!t.$stable,Ga(t,a)),l=t}else t&&(Ka(e,t),l={default:1});if(i)for(const e in a)ja(e)||null!=l[e]||delete a[e]},Ya=fi;function Ja(e){return Qa(e)}function Xa(e){return Qa(e,or)}function Qa(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(H().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);const r=H();r.__VUE__=!0,Zn(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);const{insert:i,remove:l,patchProp:s,createElement:c,createText:u,createComment:d,setText:p,setElementText:m,parentNode:g,nextSibling:h,setScopeId:b=a,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,a=null,i=void 0,l=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!Bi(e,t)&&(o=J(e),K(e,r,a,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case hi:_(e,t,n,o);break;case bi:A(e,t,n,o);break;case vi:null==e&&k(t,n,o,i);break;case gi:O(e,t,n,o,r,a,i,l,s);break;default:1&d?x(e,t,n,o,r,a,i,l,s):6&d?D(e,t,n,o,r,a,i,l,s):(64&d||128&d)&&c.process(e,t,n,o,r,a,i,l,s,ee)}null!=u&&r?Jo(u,e&&e.ref,a,t||e,!t):null==u&&e&&null!=e.ref&&Jo(e.ref,null,a,e,!0)},_=(e,t,n,o)=>{if(null==e)i(t.el=u(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},A=(e,t,n,o)=>{null==e?i(t.el=d(t.children||""),n,o):t.el=e.el},k=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,a,i,l,s)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)w(t,n,o,r,a,i,l,s);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),S(e,t,r,a,i,l,s)}finally{n&&n._endPatch()}}},w=(e,t,n,o,r,a,l,u)=>{let d,p;const{props:f,shapeFlag:g,transition:h,dirs:b}=e;if(d=e.el=c(e.type,a,f&&f.is,f),8&g?m(d,e.children):16&g&&E(e.children,d,null,o,r,ei(e,a),l,u),b&&lo(e,null,o,"created"),C(d,e,e.scopeId,l,o),f){for(const e in f)"value"===e||T(e)||s(d,e,null,f[e],a,o);"value"in f&&s(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&Gi(p,o,e)}V(d,"__vnode",e,!0),V(d,"__vueParentComponent",o,!0),b&&lo(e,null,o,"beforeMount");const v=ni(r,h);v&&h.beforeEnter(d),i(d,t,n),((p=f&&f.onVnodeMounted)||v||b)&&Ya(()=>{p&&Gi(p,o,e),v&&h.enter(d),b&&lo(e,null,o,"mounted")},r)},C=(e,t,n,o,r)=>{if(n&&b(e,n),o)for(let t=0;t<o.length;t++)b(e,o[t]);if(r){let n=r.subTree;if(t===n||li(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;C(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},E=(e,t,n,o,r,a,i,l,s=0)=>{for(let c=s;c<e.length;c++){const s=e[c]=l?ji(e[c]):Ui(e[c]);y(null,s,t,n,o,r,a,i,l)}},S=(e,t,o,r,a,i,l)=>{const c=t.el=e.el;c.__vnode=t;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||n,g=t.props||n;let h;if(o&&ti(o,!1),(h=g.onVnodeBeforeUpdate)&&Gi(h,o,t,e),p&&lo(t,e,o,"beforeUpdate"),o&&ti(o,!0),(f.innerHTML&&null==g.innerHTML||f.textContent&&null==g.textContent)&&m(c,""),d?I(e.dynamicChildren,d,c,o,r,ei(t,a),i):l||U(e,t,c,null,o,r,ei(t,a),i,!1),u>0){if(16&u)B(c,f,g,o,a);else if(2&u&&f.class!==g.class&&s(c,"class",null,g.class,a),4&u&&s(c,"style",f.style,g.style,a),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],r=f[n],i=g[n];i===r&&"value"!==n||s(c,n,r,i,a,o)}}1&u&&e.children!==t.children&&m(c,t.children)}else l||null!=d||B(c,f,g,o,a);((h=g.onVnodeUpdated)||p)&&Ya(()=>{h&&Gi(h,o,t,e),p&&lo(t,e,o,"updated")},r)},I=(e,t,n,o,r,a,i)=>{for(let l=0;l<t.length;l++){const s=e[l],c=t[l],u=s.el&&(s.type===gi||!Bi(s,c)||198&s.shapeFlag)?g(s.el):n;y(s,c,u,null,o,r,a,i,!0)}},B=(e,t,o,r,a)=>
vendor: 1,629 bytes, line 2
2{if(t!==o){if(t!==n)for(const n in t)T(n)||n in o||s(e,n,t[n],null,a,r);for(const n in o){if(T(n))continue;const i=o[n],l=t[n];i!==l&&"value"!==n&&s(e,n,l,i,a,r)}"value"in o&&s(e,"value",t.value,o.value,a)}},O=(e,t,n,o,r,a,l,s,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:f,dynamicChildren:m,slotScopeIds:g}=t;g&&(s=s?s.concat(g):g),null==e?(i(d,n,o),i(p,n,o),E(t.children||[],n,p,r,a,l,s,c)):f>0&&64&f&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(I(e.dynamicChildren,m,n,r,a,l,s),(null!=t.key||r&&t===r.subTree)&&oi(e,t,!0)):U(e,t,n,p,r,a,l,s,c)},D=(e,t,n,o,r,a,i,l,s)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,s):N(t,n,o,r,a,i,s):P(e,t,s)},N=(e,t,n,o,r,a,i)=>{const l=e.component=Wi(e,o,r);if(_r(e)&&(l.ctx.renderer=ee),al(l,!1,i),l.asyncDep){if(r&&r.registerDep(l,R,i),!e.el){const o=l.subTree=Ni(bi);A(null,o,t,n),e.placeholder=o.el}}else R(l,e,t,n,r,a,i)},P=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:a}=e,{props:i,children:l,patchFlag:s}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||Da(o,i,c):!!i);if(1024&s)return!0;if(16&s)return o?Da(o,i,c):!!i;if(8&s){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==o[n]&&!Ia(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void z(o,t,n);o.next=t,o.update()}else t.el=e.el,o.vnode=t},R=(e,t,n,o,r,a,i)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:s,vnode:c}=e;{const n=ri(e);if(n)return t&&(t.el=c.el,z(e,t,i)),void n.asyncDep.then(()=>
vendor: 4,189 bytes, line 2
2{e.isUnmounted||l()})}let u,d=t;ti(e,!1),t?(t.el=c.el,z(e,t,i)):t=c,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&Gi(u,s,t,c),ti(e,!0);const p=Ba(e),f=e.subTree;e.subTree=p,y(f,p,g(f.el),J(f),e,r,a),t.el=p.el,null===d&&Ma(e,p.el),o&&Ya(o,r),(u=t.props&&t.props.onVnodeUpdated)&&Ya(()=>Gi(u,s,t,c),r),$n(e)}else{let i;const{el:l,props:s}=t,{bm:c,m:u,parent:d,root:p,type:f}=e,m=br(t);if(ti(e,!1),c&&F(c),!m&&(i=s&&s.onVnodeBeforeMount)&&Gi(i,d,t),ti(e,!0),l&&ne){const t=()=>{e.subTree=Ba(e),ne(l,e.subTree,e,r,null)};m&&f.__asyncHydrate?f.__asyncHydrate(l,e,t):t()}else{p.ce&&!1!==p.ce._def.shadowRoot&&p.ce._injectChildStyle(f);const i=e.subTree=Ba(e);y(null,i,n,o,e,r,a),t.el=i.el}if(u&&Ya(u,r),!m&&(i=s&&s.onVnodeMounted)){const e=t;Ya(()=>Gi(i,d,e),r)}(256&t.shapeFlag||d&&br(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Ya(e.a,r),e.isMounted=!0,Wn(e),t=n=o=null}};e.scope.on();const s=e.effect=new we(l);e.scope.off();const c=e.update=s.run.bind(s),u=e.job=s.runIfDirty.bind(s);u.i=e,u.id=e.uid,s.scheduler=()=>Pn(u),ti(e,!0),c()},z=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:a,vnode:{patchFlag:i}}=e,l=Ut(r),[s]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;Fa(e,t,r,a)&&(c=!0);for(const a in l)t&&(f(t,a)||(o=M(a))!==a&&f(t,o))||(s?!n||void 0===n[a]&&void 0===n[o]||(r[a]=Va(s,l,a,void 0,e,!0)):delete r[a]);if(a!==l)for(const e in a)t&&f(t,e)||(delete a[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];if(Ia(e.emitsOptions,i))continue;const u=t[i];if(s)if(f(a,i))u!==a[i]&&(a[i]=u,c=!0);else{const t=L(i);r[t]=Va(s,l,t,u,e,!1)}else u!==a[i]&&(a[i]=u,c=!0)}}c&&Qe(e.attrs,"set","")}(e,t.props,o,n),$a(e,t.children,n),Ue(),Vn(e),je()},U=(e,t,n,o,r,a,i,l,s=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void q(c,d,n,o,r,a,i,l,s);if(256&p)return void j(c,d,n,o,r,a,i,l,s)}8&f?(16&u&&Y(c,r,a),d!==c&&m(n,d)):16&u?16&f?q(c,d,n,o,r,a,i,l,s):Y(c,r,a,!0):(8&u&&m(n,""),16&f&&E(d,n,o,r,a,i,l,s))},j=(e,t,n,r,a,i,l,s,c)=>{t=t||o;const u=(e=e||o).length,d=t.length,p=Math.min(u,d);let f;for(f=0;f<p;f++){const o=t[f]=c?ji(t[f]):Ui(t[f]);y(e[f],o,n,null,a,i,l,s,c)}u>d?Y(e,a,i,!0,!1,p):E(t,n,r,a,i,l,s,c,p)},q=(e,t,n,r,a,i,l,s,c)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const o=e[u],r=t[u]=c?ji(t[u]):Ui(t[u]);if(!Bi(o,r))break;y(o,r,n,null,a,i,l,s,c),u++}for(;u<=p&&u<=f;){const o=e[p],r=t[f]=c?ji(t[f]):Ui(t[f]);if(!Bi(o,r))break;y(o,r,n,null,a,i,l,s,c),p--,f--}if(u>p){if(u<=f){const e=f+1,o=e<d?t[e].el:r;for(;u<=f;)y(null,t[u]=c?ji(t[u]):Ui(t[u]),n,o,a,i,l,s,c),u++}}else if(u>f)for(;u<=p;)K(e[u],a,i,!0),u++;else{const m=u,g=u,h=new Map;for(u=g;u<=f;u++){const e=t[u]=c?ji(t[u]):Ui(t[u]);null!=e.key&&h.set(e.key,u)}let b,v=0;const _=f-g+1;let A=!1,k=0;const x=new Array(_);for(u=0;u<_;u++)x[u]=0;for(u=m;u<=p;u++){const o=e[u];if(v>=_){K(o,a,i,!0);continue}let r;if(null!=o.key)r=h.get(o.key);else for(b=g;b<=f;b++)if(0===x[b-g]&&Bi(o,t[b])){r=b;break}void 0===r?K(o,a,i,!0):(x[r-g]=u+1,r>=k?k=r:A=!0,y(o,t[r],n,null,a,i,l,s,c),v++)}const w=A?function(e){const t=e.slice(),n=[0];let o,r,a,i,l;const s=e.length;for(o=0;o<s;o++){const s=e[o];if(0!==s){if(r=n[n.length-1],e[r]<s){t[o]=r,n.push(o);continue}for(a=0,i=n.length-1;a<i;)l=a+i>>1,e[n[l]]<s?a=l+1:i=l;s<e[n[a]]&&(a>0&&(t[o]=n[a-1]),n[a]=o)}}for(a=n.length,i=n[a-1];a-- >0;)n[a]=i,i=t[i];return n}(x):o;for(b=w.length-1,u=_-1;u>=0;u--){const e=g+u,o=t[e],p=t[e+1],f=e+1<d?p.el||ii(p):r;0===x[u]?y(null,o,n,f,a,i,l,s,c):A&&(b<0||u!==w[b]?G(o,n,f,2):b--)}}},G=(e,t,n,o,r=null)=>{const{el:a,type:s,transition:c,children:u,shapeFlag:d}=e;if(6&d)G(e.component.subTree,t,n,o);else if(128&d)e.suspense.move(t,n,o);else if(64&d)s.move(e,t,n,ee);else if(s!==gi)if(s!==vi)if(2!==o&&1&d&&c)if(0===o)c.beforeEnter(a),i(a,t,n),Ya(()=>c.enter(a),r);else{const{leave:o,delayLeave:r,afterLeave:s}=c,u=()=>{e.ctx.isUnmounted?l(a):i(a,t,n)},d=()=>{a._isLeaving&&a[Oo](!0),o(a,()=>{u(),s&&s()})};r?r(a,u,d):d()}else i(a,t,n);else(({el:e,anchor:t},n,o)=>{let r;for(;e&&e!==t;)r=h(e),i(e,n,o),e=r;i(t,n,o)})(e,t,n);else{i(a,t,n);for(let e=0;e<u.length;
2e++)G(u[e],t,n,o);i(e.anchor,t,n)}},K=(e,t,n,o=!1,r=!1)=>{const{type:a,props:i,ref:l,children:s,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f}=e;if(-2===d&&(r=!1),null!=l&&(Ue(),Jo(l,null,n,e,!0),je()),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const m=1&u&&p,g=!br(e);let h;if(g&&(h=i&&i.onVnodeBeforeUnmount)&&Gi(h,t,e),6&u)$(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);m&&lo(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,ee,o):c&&!c.hasOnce&&(a!==gi||d>0&&64&d)?Y(c,t,n,!1,!0):(a===gi&&384&d||!r&&16&u)&&Y(s,t,n),o&&Z(e)}(g&&(h=i&&i.onVnodeUnmounted)||m)&&Ya(()=>{h&&Gi(h,t,e),m&&lo(e,null,t,"unmounted")},n)},Z=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===gi)return void W(n,o);if(t===vi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),l(e),e=n;l(t)})(e);const a=()=>{l(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,i=()=>t(n,a);o?o(e.el,a,i):i()}else a()},W=(e,t)=>{let n;for(;e!==t;)n=h(e),l(e),e=n;l(t)},$=(e,t,n)=>{const{bum:o,scope:r,job:a,subTree:i,um:l,m:s,a:c}=e;ai(s),ai(c),o&&F(o),r.stop(),a&&(a.flags|=8,K(i,e,t,n)),l&&Ya(l,t),Ya(()=>{e.isUnmounted=!0},t),Jn(e)},Y=(e,t,n,o=!1,r=!1,a=0)=>{for(let i=a;i<e.length;i++)K(e[i],t,n,o,r)},J=e=>{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[yo];return n?h(n):t};let X=!1;const Q=(e,t,n)=>{let o;null==e?t._vnode&&(K(t._vnode,null,null,!0),o=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,X||(X=!0,Vn(o),zn(),X=!1)},ee={p:y,um:K,m:G,r:Z,mt:N,mc:E,pc:U,pbc:I,n:J,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:Q,hydrate:te,createApp:xa(Q,te)}}function ei({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ti({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ni(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function oi(e,t,n=!1){const o=e.children,r=t.children;if(m(o)&&m(r))for(let t=0;t<o.length;t++){const a=o[t];let i=r[t];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=r[t]=ji(r[t]),i.el=a.el),n||-2===i.patchFlag||oi(a,i)),i.type===hi&&(-1!==i.patchFlag?i.el=a.el:i.__elIndex=t+(e.type===gi?1:0)),i.type!==bi||i.el||(i.el=a.el)}}function ri(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ri(t)}function ai(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ii(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ii(t.subTree):null}const li=e=>e.__isSuspense;let si=0;const ci={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,a,i,l,s,c){if(null==e)!function(e,t,n,o,r,a,i,l,s){const{p:c,o:{createElement:u}}=s,d=u("div"),p=e.suspense=di(e,r,o,t,d,n,a,i,l,s);c(null,p.pendingBranch=e.ssContent,d,null,o,p,a,i),p.deps>0?(ui(e,"onPending"),ui(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,a,i),mi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,a,i,l,s,c);else{if(a&&a.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,a,i,l,{p:s,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:m,pendingBranch:g,isInFallback:h,isHydrating:b}=d;if(g)d.pendingBranch=p,Bi(g,p)?(s(g,p,d.hiddenContainer,null,r,d,a,i,l),d.deps<=0?d.resolve():h&&(b||(s(m,f,n,o,r,null,a,i,l),mi(d,f)))):(d.pendingId=si++,b?(d.isHydrating=!1,d.activeBranch=g):c(g,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),h?(s(null,p,d.hiddenContainer,null,r,d,a,i,l),d.deps<=0?d.resolve():(s(m,f,n,o,r,null,a,i,l),mi(d,f))):m&&Bi(m,p)?(s(m,p,n,o,r,d,a,i,l),d.resolve(!0)):(s(null,p,d.hiddenContainer,null,r,d,a,i,l),d.deps<=0&&d.resolve()));else if(m&&Bi(m,p))s(m,p,n,o,r,d,a,i,l),mi(d,p);else if(ui(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=si++,s(null,p,d.hiddenContainer,null,r,d,a,i,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(f)},e):0===e&&d.fallback(f)}}(e,t,n,o,r,i,l,s,c)}}
2,hydrate:function(e,t,n,o,r,a,i,l,s){const c=t.suspense=di(t,o,n,e.parentNode,document.createElement("div"),null,r,a,i,l,!0),u=s(e,c.pendingBranch=t.ssContent,n,c,a,i);return 0===c.deps&&c.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=pi(o?n.default:n),e.ssFallback=o?pi(n.fallback):Ni(bi)}};function ui(e,t){const n=e.props&&e.props[t];v(n)&&n()}function di(e,t,n,o,r,a,i,l,s,c,u=!1){const{p:d,m:p,um:f,n:m,o:{parentNode:g,remove:h}}=c;let b;const v=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);v&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const y=e.props?U(e.props.timeout):void 0,_=a,A={vnode:e,parent:t,parentComponent:n,namespace:i,container:o,hiddenContainer:r,deps:0,pendingId:si++,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:i,pendingId:l,effects:s,parentComponent:c,container:u,isInFallback:d}=A;let h=!1;A.isHydrating?A.isHydrating=!1:e||(h=r&&i.transition&&"out-in"===i.transition.mode,h&&(r.transition.afterLeave=()=>{l===A.pendingId&&(p(i,u,a===_?m(r):a,0),Fn(s),d&&o.ssFallback&&(o.ssFallback.el=null))}),r&&(g(r.el)===u&&(a=m(r)),f(r,c,A,!0),!h&&d&&o.ssFallback&&Ya(()=>o.ssFallback.el=null,A)),h||p(i,u,a,0)),mi(A,i),A.pendingBranch=null,A.isInFallback=!1;let y=A.parent,k=!1;for(;y;){if(y.pendingBranch){y.effects.push(...s),k=!0;break}y=y.parent}k||h||Fn(s),A.effects=[],v&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),ui(o,"onResolve")},fallback(e){if(!A.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:a}=A;ui(t,"onFallback");const i=m(n),c=()=>{A.isInFallback&&(d(null,e,r,i,o,null,a,l,s),mi(A,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),A.isInFallback=!0,f(n,o,null,!0),u||c()},move(e,t,n){A.activeBranch&&p(A.activeBranch,e,t,n),A.container=e},next:()=>A.activeBranch&&m(A.activeBranch),registerDep(e,t,n){const o=!!A.pendingBranch;o&&A.deps++;const r=e.vnode.el;e.asyncDep.catch(t=>{Sn(t,e,0)}).then(a=>{if(e.isUnmounted||A.isUnmounted||A.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;il(e,a,!1),r&&(l.el=r);const s=!r&&e.subTree.el;t(e,l,g(r||e.subTree.el),r?null:m(e.subTree),A,i,n),s&&(l.placeholder=null,h(s)),Ma(e,l.el),o&&0===--A.deps&&A.resolve()})},unmount(e,t){A.isUnmounted=!0,A.activeBranch&&f(A.activeBranch,n,e,t),A.pendingBranch&&f(A.pendingBranch,n,e,t)}};return A}function pi(e){let t;if(v(e)){const n=wi&&e._c;n&&(e._d=!1,Ai()),e=e(),n&&(e._d=!0,t=_i,ki())}if(m(e)){const t=function(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(!Ii(o))return;if(o.type!==bi||"v-if"===o.children){if(t)return;t=o}}return t}(e);e=t}return e=Ui(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function fi(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):Fn(e)}function mi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ma(o,r))}const gi=Symbol.for("v-fgt"),hi=Symbol.for("v-txt"),bi=Symbol.for("v-cmt"),vi=Symbol.for("v-stc"),yi=[];let _i=null;function Ai(e=!1){yi.push(_i=e?null:[])}function ki(){yi.pop(),_i=yi[yi.length-1]||null}let xi,wi=1;function Ci(e,t=!1){wi+=e,e<0&&_i&&t&&(_i.hasOnce=!0)}function Ei(e){return e.dynamicChildren=wi>0?_i||o:null,ki(),wi>0&&_i&&_i.push(e),e}function Si(e,t,n,o,r,a){return Ei(Mi(e,t,n,o,r,a,!0))}function Ti(e,t,n,o,r){return Ei(Ni(e,t,n,o,r,!0))}function Ii(e){return!!e&&!0===e.__v_isVNode}function Bi(e,t){return e.type===t.type&&e.key===t.key}function Oi(e){xi=e}const Li=({key:e})=>null!=e?e:null,Di=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Gt(e)||v(e)?{i:Qn,r:e,k:t,f:!!n}:e:null);function Mi(e,t=null,n=null,o=0,r=null,a=(e===gi?0:1),i=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Li(t),ref:t&&Di(t),scopeId:eo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Qn};return l?(Hi(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=y(n)?8:16),wi>0&&!i&&_i&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&_i.push(s),s}const Ni=function(e,t=null,n=null,o=0,r=null,a=!1){if(e&&e!==Gr||(e=bi),Ii(e)){const o=Ri(e,t,!0);return n&&Hi(o,n),wi>0&&!a&&_i&&(6&o.shapeFlag?_i[_i.indexOf(e)]=o:_i.push(o)),o.patchFlag=-2,o}if(i=e,v(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=Pi(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),A(n)&&(zt(n)&&!m(n)&&(n=c({},n)),t.style=G(n))}var i;return Mi(e,t,n,o,r,y(e)?1:li(e)?128:_o(e)?64:A(e)?4:v(e)?2:0,a,!0)};function Pi(e){return e?zt(e)||Ra(e)?c({},e):e:null}function Ri(e,t,n=!1,o=!1){const{props:r,ref:a,patchFlag:i,children:l,transition:s}=e,c=t?qi(r||{}
vendor: 3,644 bytes, line 2
2,t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Li(c),ref:t&&t.ref?n&&a?m(a)?a.concat(Di(t)):[a,Di(t)]:Di(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==gi?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ri(e.ssContent),ssFallback:e.ssFallback&&Ri(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&o&&qo(u,s.clone(u)),u}function Fi(e=" ",t=0){return Ni(hi,null,e,t)}function Vi(e,t){const n=Ni(vi,null,e);return n.staticCount=t,n}function zi(e="",t=!1){return t?(Ai(),Ti(bi,null,e)):Ni(bi,null,e)}function Ui(e){return null==e||"boolean"==typeof e?Ni(bi):m(e)?Ni(gi,null,e.slice()):Ii(e)?ji(e):Ni(hi,null,String(e))}function ji(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Ri(e)}function Hi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Hi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Ra(t)?3===o&&Qn&&(1===Qn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Qn}}else v(t)?(t={default:t,_ctx:Qn},n=32):(t=String(t),64&o?(n=16,t=[Fi(t)]):n=8);e.children=t,e.shapeFlag|=n}function qi(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=Y([t.class,o.class]));else if("style"===e)t.style=G([t.style,o.style]);else if(l(e)){const n=t[e],r=o[e];!r||n===r||m(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}function Gi(e,t,n,o=null){En(e,t,7,[n,o])}const Ki=Aa();let Zi=0;function Wi(e,t,o){const r=e.type,a=(t?t.appContext:e.appContext)||Ki,i={uid:Zi++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ye(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:za(r,a),emitsOptions:Ta(r,a),emit:null,emitted:null,propsDefaults:n,inheritAttrs:r.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Sa.bind(null,i),e.ce&&e.ce(i),i}let $i=null;const Yi=()=>$i||Qn;let Ji,Xi;{const e=H(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};Ji=t("__VUE_INSTANCE_SETTERS__",e=>$i=e),Xi=t("__VUE_SSR_SETTERS__",e=>rl=e)}const Qi=e=>{const t=$i;return Ji(e),e.scope.on(),()=>{e.scope.off(),Ji(t)}},el=()=>{$i&&$i.scope.off(),Ji(null)};function tl(e){return 4&e.vnode.shapeFlag}let nl,ol,rl=!1;function al(e,t=!1,n=!1){t&&Xi(t);const{props:o,children:r}=e.vnode,a=tl(e);!function(e,t,n,o=!1){const r={},a=Pa();e.propsDefaults=Object.create(null),Fa(e,t,r,a);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:Dt(r):e.type.props?e.props=r:e.props=a,e.attrs=a}(e,o,a,t),Wa(e,r,n||t);const i=a?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ra);const{setup:o}=n;if(o){Ue();const n=e.setupContext=o.length>1?dl(e):null,r=Qi(e),a=Cn(o,e,0,[e.props,n]),i=k(a);
2if(je(),r(),!i&&!e.sp||br(e)||Wo(e),i){if(a.then(el,el),t)return a.then(n=>{il(e,n,t)}).catch(t=>{Sn(t,e,0)});e.asyncDep=a}else il(e,a,t)}else cl(e,t)}(e,t):void 0;return t&&Xi(!1),i}function il(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:A(t)&&(e.devtoolsRawSetupState=t,e.setupState=en(t)),cl(e,n)}function ll(e){nl=e,ol=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,aa))}}const sl=()=>!nl;function cl(e,t,n){const o=e.type;if(!e.render){if(!t&&nl&&!o.render){const t=o.template||!1;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:i}=o,l=c(c({isCustomElement:n,delimiters:a},r),i);o.render=nl(t,l)}}e.render=o.render||a,ol&&ol(e)}}const ul={get:(e,t)=>(Xe(e,0,""),e[t])};function dl(e){return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function pl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(en(jt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in na?na[n](e):void 0,has:(e,t)=>t in e||t in na})):e.proxy}const fl=/(?:^|[-_])\w/g,ml=e=>e.replace(fl,e=>e.toUpperCase()).replace(/[-_]/g,"");function gl(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function hl(e,t,n=!1){let o=gl(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return o?ml(o):n?"App":"Anonymous"}const bl=(e,t)=>{const n=function(e,t,n=!1){let o,r;return v(e)?o=e:(o=e.get,r=e.set),new cn(o,r,n)}(e,0,rl);return n};function vl(e,t,n){try{Ci(-1);const o=arguments.length;return 2===o?A(t)&&!m(t)?Ii(t)?Ni(e,null,[t]):Ni(e,t):Ni(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Ii(n)&&(n=[n]),Ni(e,t,n))}finally{Ci(1)}}function yl(){}function _l(e,t,n,o){const r=n[o];if(r&&Al(r,e))return r;const a=t();return a.memo=e.slice(),a.cacheIndex=o,n[o]=a}function Al(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(R(n[e],t[e]))return!1;return wi>0&&_i&&_i.push(e),!0}const kl="3.5.27",xl=a,wl={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"},Cl=Hn,El=Zn,Sl={createComponentInstance:Wi,setupComponent:al,renderComponentRoot:Ba,setCurrentRenderingInstance:to,isVNode:Ii,normalizeVNode:Ui,getComponentPublicInstance:pl,ensureValidVNode:Qr,pushWarningContext:function(e){vn.push(e)},popWarningContext:function(){vn.pop()}},Tl=null,Il=null,Bl=null;let Ol;const Ll="undefined"!=typeof window&&window.trustedTypes;if(Ll)try{Ol=Ll.createPolicy("vue",{createHTML:e=>e})}catch(Dhe){}const Dl=Ol?e=>Ol.createHTML(e):e=>e,Ml="undefined"!=typeof document?document:null,Nl=Ml&&Ml.createElement("template"),Pl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?Ml.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ml.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Ml.createElement(e,{is:n}):Ml.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ml.createTextNode(e),createComment:e=>Ml.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 4,470 bytes, line 2
2{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ml.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,a){const i=n?n.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==a&&(r=r.nextSibling););else{Nl.innerHTML=Dl("svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e);const r=Nl.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Rl="transition",Fl="animation",Vl=Symbol("_vtc"),zl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ul=c({},No,zl),jl=(e=>(e.displayName="Transition",e.props=Ul,e))((e,{slots:t})=>vl(Vo,Gl(e),t)),Hl=(e,t=[])=>{m(e)?e.forEach(e=>e(...t)):e&&e(...t)},ql=e=>!!e&&(m(e)?e.some(e=>e.length>1):e.length>1);function Gl(e){const t={};for(const n in e)n in zl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=a,appearActiveClass:u=i,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(A(e))return[Kl(e.enter),Kl(e.leave)];{const t=Kl(e);return[t,t]}}(r),h=g&&g[0],b=g&&g[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:_,onLeave:k,onLeaveCancelled:x,onBeforeAppear:w=v,onAppear:C=y,onAppearCancelled:E=_}=t,S=(e,t,n,o)=>{e._enterCancelled=o,Wl(e,t?d:l),Wl(e,t?u:i),n&&n()},T=(e,t)=>{e._isLeaving=!1,Wl(e,p),Wl(e,m),Wl(e,f),t&&t()},I=e=>(t,n)=>{const r=e?C:y,i=()=>S(t,e,n);Hl(r,[t,i]),$l(()=>{Wl(t,e?s:a),Zl(t,e?d:l),ql(r)||Jl(t,o,h,i)})};return c(t,{onBeforeEnter(e){Hl(v,[e]),Zl(e,a),Zl(e,i)},onBeforeAppear(e){Hl(w,[e]),Zl(e,s),Zl(e,u)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);Zl(e,p),e._enterCancelled?(Zl(e,f),ts(e)):(ts(e),Zl(e,f)),$l(()=>{e._isLeaving&&(Wl(e,p),Zl(e,m),ql(k)||Jl(e,o,b,n))}),Hl(k,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),Hl(_,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),Hl(E,[e])},onLeaveCancelled(e){T(e),Hl(x,[e])}})}function Kl(e){return U(e)}function Zl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Vl]||(e[Vl]=new Set)).add(t)}function Wl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[Vl];n&&(n.delete(t),n.size||(e[Vl]=void 0))}function $l(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Yl=0;function Jl(e,t,n,o){const r=e._endId=++Yl,a=()=>{r===e._endId&&o()};if(null!=n)return setTimeout(a,n);const{type:i,timeout:l,propCount:s}=Xl(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++u>=s&&d()};setTimeout(()=>{u<s&&d()},l+1),e.addEventListener(c,p)}function Xl(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o(`${Rl}Delay`),a=o(`${Rl}Duration`),i=Ql(r,a),l=o(`${Fl}Delay`),s=o(`${Fl}Duration`),c=Ql(l,s);let u=null,d=0,p=0;return t===Rl?i>0&&(u=Rl,d=i,p=a.length):t===Fl?c>0&&(u=Fl,d=c,p=s.length):(d=Math.max(i,c),u=d>0?i>c?Rl:Fl:null,p=u?u===Rl?a.length:s.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===Rl&&/\b(?:transform|all)(?:,|$)/.test(o(`${Rl}Property`).toString())}}function Ql(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>es(t)+es(e[n])))}function es(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function ts(e){return(e?e.ownerDocument:document).body.offsetHeight}const ns=Symbol("_vod"),os=Symbol("_vsh"),rs={name:"show",beforeMount(e,{value:t},{transition:n}){e[ns]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):as(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),as(e,!0),o.enter(e)):o.leave(e,()=>{as(e,!1)}):as(e,t))},beforeUnmount(e,{value:t}){as(e,t)}};function as(e,t){e.style.display=t?e[ns]:"none",e[os]=!t}const is=Symbol("");function ls(e){const t=Yi();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}
2"]`)).forEach(e=>cs(e,n))},o=()=>{const o=e(t.proxy);t.ce?cs(t.ce,o):ss(t.subTree,o),n(o)};Mr(()=>{Fn(o)}),Dr(()=>{bo(o,a,{flush:"post"});const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),Rr(()=>e.disconnect())})}function ss(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ss(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)cs(e.el,t);else if(e.type===gi)e.children.forEach(e=>ss(e,t));else if(e.type===vi){let{el:n,anchor:o}=e;for(;n&&(cs(n,t),n!==o);)n=n.nextSibling}}function cs(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t){const r=he(t[e]);n.setProperty(`--${e}`,r),o+=`--${e}: ${r};`}n[is]=o}}const us=/(?:^|;)\s*display\s*:/,ds=/\s*!important$/;function ps(e,t,n){if(m(n))n.forEach(n=>ps(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=ms[t];if(n)return n;let o=L(t);if("filter"!==o&&o in e)return ms[t]=o;o=N(o);for(let n=0;n<fs.length;n++){const r=fs[n]+o;if(r in e)return ms[t]=r}return t}(e,t);ds.test(n)?e.setProperty(M(o),n.replace(ds,""),"important"):e[o]=n}}const fs=["Webkit","Moz","ms"],ms={},gs="http://www.w3.org/1999/xlink";function hs(e,t,n,o,r,a=oe(t)){o&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(gs,t.slice(6,t.length)):e.setAttributeNS(gs,t,n):null==n||a&&!ae(n)?e.removeAttribute(t):e.setAttribute(t,a?"":_(n)?String(n):n)}function bs(e,t,n,o,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Dl(n):n));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const o="OPTION"===a?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return o===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let i=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=ae(n):null==n&&"string"===o?(n="",i=!0):"number"===o&&(n=0,i=!0)}try{e[t]=n}catch(e){}i&&e.removeAttribute(r||t)}function vs(e,t,n,o){e.addEventListener(t,n,o)}const ys=Symbol("_vei");const _s=/(?:Once|Passive|Capture)$/;let As=0;const ks=Promise.resolve(),xs=()=>As||(ks.then(()=>As=0),As=Date.now()),ws=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cs=(e,t,n,o,r,a)=>{const i="svg"===r;"class"===t?function(e,t,n){const o=e[Vl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,r=y(n);let a=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&ps(o,t,"")}else for(const e in t)null==n[e]&&ps(o,e,"");for(const e in n)"display"===e&&(a=!0),ps(o,e,n[e])}else if(r){if(t!==n){const e=o[is];e&&(n+=";"+e),o.cssText=n,a=us.test(n)}}else t&&e.removeAttribute("style");ns in e&&(e[ns]=a?o.display:"",e[os]&&(o.display="none"))}(e,n,o):l(t)?s(t)||function(e,t,n,o,r=null){const a=e[ys]||(e[ys]={}),i=a[t];if(o&&i)i.value=o;else{const[n,l]=function(e){let t;if(_s.test(e)){let n;for(t={};n=e.match(_s);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):M(e.slice(2)),t]}(t);if(o){const i=a[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();En(function(e,t){if(m(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=xs(),n}(o,r);vs(e,n,i,l)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),a[t]=void 0)}}(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ws(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ws(t)||!y(n))&&t in e}(e,t,o,i))?(bs(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||hs(e,t,o,i,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&y(o)?("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),hs(e,t,o,i)):bs(e,L(t),o,0,t)},Es={};function Ss(e,t,n){let o=Ko(e,t);E(o)&&(o=c({},o,t));class r extends Bs{constructor(e){super(o,e,n)}}return r.def=o,r}const Ts=(e,t)=>Ss(e,t,vc),Is="undefined"!=typeof HTMLElement?HTMLElement:class{};class Bs extends Is{constructor(e,t={},n=bc){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==bc?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(c({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof Bs){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Nn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}
2_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:o}=e;let r;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=U(this._props[e])),(r||(r=Object.create(null)))[L(e)]=!0)}this._numberProps=r,this._resolveProps(e),this.shadowRoot&&this._applyStyles(o),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){e.name||(e.name="VueElement"),this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)f(this,e)||Object.defineProperty(this,e,{get:()=>Jt(t[e])})}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(L))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Es;const o=L(e);t&&this._numberProps&&this._numberProps[o]&&(n=U(n)),this._setProp(o,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Es?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),o&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(M(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(M(e),t+""):t||this.removeAttribute(M(e)),n&&n.observe(this,{attributes:!0})}}
2_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),gc(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=Ni(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,E(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),M(e)!==e&&t(M(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const n=this._nonce;for(let t=e.length-1;t>=0;t--){const o=document.createElement("style");n&&o.setAttribute("nonce",n),o.textContent=e[t],this.shadowRoot.prepend(o)}}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const o=e[n],r=o.getAttribute("name")||"default",a=this._slots[r],i=o.parentNode;if(a)for(const e of a){if(t&&1===e.nodeType){const n=t+"-s",o=document.createTreeWalker(e,1);let r;for(e.setAttribute(n,"");r=o.nextNode();)r.setAttribute(n,"")}i.insertBefore(e,o)}else for(;o.firstChild;)i.insertBefore(o.firstChild,o);i.removeChild(o)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e){this._applyStyles(e.styles,e)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(e){}}function Os(e){const t=Yi();return t&&t.ce||null}function Ls(){const e=Os();return e&&e.shadowRoot}function Ds(e="$style"){{const t=Yi();if(!t)return n;const o=t.type.__cssModules;if(!o)return n;return o[e]||n}}const Ms=new WeakMap,Ns=new WeakMap,Ps=Symbol("_moveCb"),Rs=Symbol("_enterCb"),Fs=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:c({},Ul,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Yi(),o=Do();let r,a;return Nr(()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[Vl];r&&r.forEach(e=>{e.split(/\s+/).forEach(e=>e&&o.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&o.classList.add(e)),o.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(o);const{hasTransform:i}=Xl(o);return a.removeChild(o),i}(r[0].el,n.vnode.el,t))return void(r=[]);r.forEach(zs),r.forEach(Us);const o=r.filter(js);ts(n.vnode.el),o.forEach(e=>{const n=e.el,o=n.style;Zl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ps]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",r),n[Ps]=null,Wl(n,t))};n.addEventListener("transitionend",r)}),r=[]}),()=>{const i=Ut(e),l=Gl(i);let s=i.tag||gi;if(r=[],a)for(let e=0;e<a.length;e++){const t=a[e];t.el&&t.el instanceof Element&&(r.push(t),qo(t,Uo(t,l,o,n)),Ms.set(t,{left:t.el.offsetLeft,top:t.el.offsetTop}))}a=t.default?Go(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&qo(t,Uo(t,l,o,n))}return Ni(s,null,a)}}}),Vs=Fs;function zs(e){const t=e.el;t[Ps]&&t[Ps](),t[Rs]&&t[Rs]()}function Us(e){Ns.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function js(e){const t=Ms.get(e),n=Ns.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${o}px,${r}px)`,t.transitionDuration="0s",e}}const Hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>F(t,e):t};function qs(e){e.target.composing=!0}function Gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ks=Symbol("_assign");function Zs(e,t,n){return t&&(e=e.trim()),n&&(e=z(e)),e}const Ws={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[Ks]=Hs(r);const a=o||r.props&&"number"===r.props.type;vs(e,t?"change":"input",t=>{t.target.composing||e[Ks](Zs(e.value,n,a))}),(n||a)&&vs(e,"change",()=>{e.value=Zs(e.value,n,a)}),t||(vs(e,"compositionstart",qs),vs(e,"compositionend",Gs),vs(e,"change",Gs))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:a}},i){if(e[Ks]=Hs(i),e.composing)return;const l=null==t?"":t;if((!a&&"number"!==e.type||/^0\d/.test(e.value)?e.value:z(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},$s={deep:!0,created(e,t,n){e[Ks]=Hs(n),vs(e,"change",()=>{const t=e._modelValue,n=ec(e),o=e.checked,r=e[Ks];if(m(t)){const e=de(t,n),a=-1!==e;if(o&&!a)r(t.concat(n));else if(!o&&a){const n=[...t];n.splice(e,1),r(n)}}else if(h(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(tc(e,o))})}
2,mounted:Ys,beforeUpdate(e,t,n){e[Ks]=Hs(n),Ys(e,t,n)}};function Ys(e,{value:t,oldValue:n},o){let r;if(e._modelValue=t,m(t))r=de(t,o.props.value)>-1;else if(h(t))r=t.has(o.props.value);else{if(t===n)return;r=ue(t,tc(e,!0))}e.checked!==r&&(e.checked=r)}const Js={created(e,{value:t},n){e.checked=ue(t,n.props.value),e[Ks]=Hs(n),vs(e,"change",()=>{e[Ks](ec(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Ks]=Hs(o),t!==n&&(e.checked=ue(t,o.props.value))}},Xs={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=h(t);vs(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?z(ec(e)):ec(e));e[Ks](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,Nn(()=>{e._assigning=!1})}),e[Ks]=Hs(o)},mounted(e,{value:t}){Qs(e,t)},beforeUpdate(e,t,n){e[Ks]=Hs(n)},updated(e,{value:t}){e._assigning||Qs(e,t)}};function Qs(e,t){const n=e.multiple,o=m(t);if(!n||o||h(t)){for(let r=0,a=e.options.length;r<a;r++){const a=e.options[r],i=ec(a);if(n)if(o){const e=typeof i;a.selected="string"===e||"number"===e?t.some(e=>String(e)===String(i)):de(t,i)>-1}else a.selected=t.has(i);else if(ue(ec(a),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ec(e){return"_value"in e?e._value:e.value}function tc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const nc={created(e,t,n){rc(e,t,n,null,"created")},mounted(e,t,n){rc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){rc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){rc(e,t,n,o,"updated")}};function oc(e,t){switch(e){case"SELECT":return Xs;case"TEXTAREA":return Ws;default:switch(t){case"checkbox":return $s;case"radio":return Js;default:return Ws}}}function rc(e,t,n,o,r){const a=oc(e.tagName,n.props&&n.props.type)[r];a&&a(e,t,n,o)}const ac=["ctrl","shift","alt","meta"],ic={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ac.some(n=>e[`${n}Key`]&&!t.includes(n))},lc=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e<t.length;e++){const o=ic[t[e]];if(o&&o(n,t))return}return e(n,...o)})},sc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},cc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=M(n.key);return t.some(e=>e===o||sc[e]===o)?e(n):void 0})},uc=c({patchProp:Cs},Pl);let dc,pc=!1;function fc(){return dc||(dc=Ja(uc))}function mc(){return dc=pc?dc:Xa(uc),pc=!0,dc}const gc=(...e)=>{fc().render(...e)},hc=(...e)=>{mc().hydrate(...e)},bc=(...e)=>{const t=fc().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=_c(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const a=n(o,!1,yc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},vc=(...e)=>{const t=mc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=_c(e);if(t)return n(t,!0,yc(t))},t};function yc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function _c(e){return y(e)?document.querySelector(e):e}let Ac=!1;const kc=()=>{Ac||(Ac=!0,Ws.getSSRProps=({value:e})=>({value:e}),Js.getSSRProps=({value:e},t)=>{if(t.props&&ue(t.props.value,e))return{checked:!0}},$s.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&de(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},nc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=oc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},rs.getSSRProps=({value:e})=>
2{if(!e)return{style:{display:"none"}}})},xc=Symbol(""),wc=Symbol(""),Cc=Symbol(""),Ec=Symbol(""),Sc=Symbol(""),Tc=Symbol(""),Ic=Symbol(""),Bc=Symbol(""),Oc=Symbol(""),Lc=Symbol(""),Dc=Symbol(""),Mc=Symbol(""),Nc=Symbol(""),Pc=Symbol(""),Rc=Symbol(""),Fc=Symbol(""),Vc=Symbol(""),zc=Symbol(""),Uc=Symbol(""),jc=Symbol(""),Hc=Symbol(""),qc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Zc=Symbol(""),Wc=Symbol(""),$c=Symbol(""),Yc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Qc=Symbol(""),eu=Symbol(""),tu=Symbol(""),nu=Symbol(""),ou=Symbol(""),ru=Symbol(""),au=Symbol(""),iu=Symbol(""),lu=Symbol(""),su={[xc]:"Fragment",[wc]:"Teleport",[Cc]:"Suspense",[Ec]:"KeepAlive",[Sc]:"BaseTransition",[Tc]:"openBlock",[Ic]:"createBlock",[Bc]:"createElementBlock",[Oc]:"createVNode",[Lc]:"createElementVNode",[Dc]:"createCommentVNode",[Mc]:"createTextVNode",[Nc]:"createStaticVNode",[Pc]:"resolveComponent",[Rc]:"resolveDynamicComponent",[Fc]:"resolveDirective",[Vc]:"resolveFilter",[zc]:"withDirectives",[Uc]:"renderList",[jc]:"renderSlot",[Hc]:"createSlots",[qc]:"toDisplayString",[Gc]:"mergeProps",[Kc]:"normalizeClass",[Zc]:"normalizeStyle",[Wc]:"normalizeProps",[$c]:"guardReactiveProps",[Yc]:"toHandlers",[Jc]:"camelize",[Xc]:"capitalize",[Qc]:"toHandlerKey",[eu]:"setBlockTracking",[tu]:"pushScopeId",[nu]:"popScopeId",[ou]:"withCtx",[ru]:"unref",[au]:"isRef",[iu]:"withMemo",[lu]:"isMemoSame"},cu={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function uu(e,t,n,o,r,a,i,l=!1,s=!1,c=!1,u=cu){return e&&(l?(e.helper(Tc),e.helper(_u(e.inSSR,c))):e.helper(yu(e.inSSR,c)),i&&e.helper(zc)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:a,directives:i,isBlock:l,disableTracking:s,isComponent:c,loc:u}}function du(e,t=cu){return{type:17,loc:t,elements:e}}function pu(e,t=cu){return{type:15,loc:t,properties:e}}function fu(e,t){return{type:16,loc:cu,key:y(e)?mu(e,!0):e,value:t}}function mu(e,t=!1,n=cu,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function gu(e,t=cu){return{type:8,loc:t,children:e}}function hu(e,t=[],n=cu){return{type:14,loc:n,callee:e,arguments:t}}function bu(e,t=void 0,n=!1,o=!1,r=cu){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function vu(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:cu}}function yu(e,t){return e||t?Oc:Lc}function _u(e,t){return e||t?Ic:Bc}function Au(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(yu(o,e.isComponent)),t(Tc),t(_u(o,e.isComponent)))}const ku=new Uint8Array([123,123]),xu=new Uint8Array([125,125]);function wu(e){return e>=97&&e<=122||e>=65&&e<=90}function Cu(e){return 32===e||10===e||9===e||12===e||13===e}function Eu(e){return 47===e||62===e||Cu(e)}function Su(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Tu={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};function Iu(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function Bu(e,t){const n=Iu("MODE",t),o=Iu(e,t);return 3===n?!0===o:!1!==o}function Ou(e,t,n,...o){return Bu(e,t)}function Lu(e){throw e}function Du(e){}function Mu(e,t,n,o){const r=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return r.code=e,r.loc=t,r}const Nu=e=>4===e.type&&e.isStatic;function Pu(e){switch(e){case"Teleport":case"teleport":return wc;case"Suspense":case"suspense":return Cc;case"KeepAlive":case"keep-alive":return Ec;case"BaseTransition":case"base-transition":return Sc}}const Ru=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Fu=e=>!Ru.test(e),Vu=/[A-Za-z_$\xA0-\uFFFF]/,zu=/[\.\?\w$\xA0-\uFFFF]/,Uu=/\s+[.[]\s*|\s*[.[]\s+/g,ju=e=>4===e.type?e.content:e.loc.source,Hu=e=>{const t=ju(e).trim().replace(Uu,e=>e.trim());let n=0,o=[],r=0,a=0,i=null;for(let e=0;e<t.length;e++){const l=t.charAt(e);switch(n){case 0:if("["===l)o.push(n),n=1,r++;else if("("===l)o.push(n),n=2,a++;else if(!(0===e?Vu:zu).test(l))return!1;break;case 1:"'"===l||'"'===l||"`"===l?(o.push(n),n=3,i=l):"["===l?r++:"]"===l&&(--r||(n=o.pop()));break;case 2:if("'"===l||'"'===l||"`"===l)o.push(n),n=3,i=l;else if("("===l)a++;else if(")"===l){if(e===t.length-1)return!1;--a||(n=o.pop())}break;case 3:l===i&&(n=o.pop(),i=null)}}return!r&&!a},qu=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/;function Gu(e,t,n=!1){for(let o=0;o<e.props.length;o++){const r=e.props[o];if(7===r.type&&(n||r.exp)&&(y(t)?r.name===t:t.test(r.name)))return r}}function Ku(e,t,n=!1,o=!1){for(let r=0;r<e.props.length;r++){const a=e.props[r];if(6===a.type){if(n)continue;
2if(a.name===t&&(a.value||o))return a}else if("bind"===a.name&&(a.exp||o)&&Zu(a.arg,t))return a}}function Zu(e,t){return!(!e||!Nu(e)||e.content!==t)}function Wu(e){return 5===e.type||2===e.type}function $u(e){return 7===e.type&&"pre"===e.name}function Yu(e){return 7===e.type&&"slot"===e.name}function Ju(e){return 1===e.type&&3===e.tagType}function Xu(e){return 1===e.type&&2===e.tagType}const Qu=new Set([Wc,$c]);function ed(e,t=[]){if(e&&!y(e)&&14===e.type){const n=e.callee;if(!y(n)&&Qu.has(n))return ed(e.arguments[0],t.concat(e))}return[e,t]}function td(e,t,n){let o,r,a=13===e.type?e.props:e.arguments[2],i=[];if(a&&!y(a)&&14===a.type){const e=ed(a);a=e[0],i=e[1],r=i[i.length-1]}if(null==a||y(a))o=pu([t]);else if(14===a.type){const e=a.arguments[0];y(e)||15!==e.type?a.callee===Yc?o=hu(n.helper(Gc),[pu([t]),a]):a.arguments.unshift(pu([t])):nd(t,e)||e.properties.unshift(t),!o&&(o=a)}else 15===a.type?(nd(t,a)||a.properties.unshift(t),o=a):(o=hu(n.helper(Gc),[pu([t]),a]),r&&r.callee===$c&&(r=i[i.length-2]));13===e.type?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function nd(e,t){let n=!1;if(4===e.key.type){const o=e.key.content;n=t.properties.some(e=>4===e.key.type&&e.key.content===o)}return n}function od(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}const rd=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function ad(e){for(let t=0;t<e.length;t++)if(!Cu(e.charCodeAt(t)))return!1;return!0}function id(e){return 2===e.type&&ad(e.content)||12===e.type&&id(e.content)}function ld(e){return 3===e.type||id(e)}const sd={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:i,isPreTag:i,isIgnoreNewlineTag:i,isCustomElement:i,onError:Lu,onWarn:Du,comments:!1,prefixIdentifiers:!1};let cd=sd,ud=null,dd="",pd=null,fd=null,md="",gd=-1,hd=-1,bd=0,vd=!1,yd=null;const _d=[],Ad=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=ku,this.delimiterClose=xu,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=ku,this.delimiterClose=xu}getPos(e){let t=1,n=e+1;const o=this.newlines.length;let r=-1;if(o>100){let t=-1,n=o;for(;t+1<n;){const o=t+n>>>1;this.newlines[o]<e?t=o:n=o}r=t}else for(let t=o-1;t>=0;t--)if(e>this.newlines[t]){r=t;break}return r>=0&&(t=r+2,n=e-this.newlines[r]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Eu(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Cu(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Tu.TitleEnd||this.currentSequence===Tu.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Tu.Cdata[this.sequenceIndex]?++this.sequenceIndex===Tu.Cdata.length&&(this.state=28,this.currentSequence=Tu.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Tu.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):wu(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Eu(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Eu(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(Su("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Cu(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=wu(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||Cu(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Cu(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?
vendor: 6,061 bytes, line 2
2(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Cu(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Eu(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Eu(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Eu(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Eu(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Eu(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Cu(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):Cu(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Cu(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Tu.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Tu.ScriptEnd[3]?this.startSpecial(Tu.ScriptEnd,4):e===Tu.StyleEnd[3]?this.startSpecial(Tu.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Tu.TitleEnd[3]?this.startSpecial(Tu.TitleEnd,4):e===Tu.TextareaEnd[3]?this.startSpecial(Tu.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&33!==this.state&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Tu.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(_d,{onerr:zd,ontext(e,t){Ed(wd(e,t),e,t)}
2,ontextentity(e,t,n){Ed(e,t,n)},oninterpolation(e,t){if(vd)return Ed(wd(e,t),e,t);let n=e+Ad.delimiterOpen.length,o=t-Ad.delimiterClose.length;for(;Cu(dd.charCodeAt(n));)n++;for(;Cu(dd.charCodeAt(o-1));)o--;let r=wd(n,o);r.includes("&")&&(r=cd.decodeEntities(r,!1)),Nd({type:5,content:Vd(r,!1,Pd(n,o)),loc:Pd(e,t)})},onopentagname(e,t){const n=wd(e,t);pd={type:1,tag:n,ns:cd.getNamespace(n,_d[0],cd.ns),tagType:0,props:[],children:[],loc:Pd(e-1,t),codegenNode:void 0}},onopentagend(e){Cd(e)},onclosetag(e,t){const n=wd(e,t);if(!cd.isVoidTag(n)){let o=!1;for(let e=0;e<_d.length;e++)if(_d[e].tag.toLowerCase()===n.toLowerCase()){o=!0,e>0&&zd(24,_d[0].loc.start.offset);for(let n=0;n<=e;n++)Sd(_d.shift(),t,n<e);break}o||zd(23,Td(e,60))}},onselfclosingtag(e){const t=pd.tag;pd.isSelfClosing=!0,Cd(e),_d[0]&&_d[0].tag===t&&Sd(_d.shift(),e)},onattribname(e,t){fd={type:6,name:wd(e,t),nameLoc:Pd(e,t),value:void 0,loc:Pd(e)}},ondirname(e,t){const n=wd(e,t),o="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(vd||""!==o||zd(26,e),vd||""===o)fd={type:6,name:n,nameLoc:Pd(e,t),value:void 0,loc:Pd(e)};else if(fd={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[mu("prop")]:[],loc:Pd(e)},"pre"===o){vd=Ad.inVPre=!0,yd=pd;const e=pd.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=Fd(e[t]))}},ondirarg(e,t){if(e===t)return;const n=wd(e,t);if(vd&&!$u(fd))fd.name+=n,Rd(fd.nameLoc,t);else{const o="["!==n[0];fd.arg=Vd(o?n:n.slice(1,-1),o,Pd(e,t),o?3:0)}},ondirmodifier(e,t){const n=wd(e,t);if(vd&&!$u(fd))fd.name+="."+n,Rd(fd.nameLoc,t);else if("slot"===fd.name){const e=fd.arg;e&&(e.content+="."+n,Rd(e.loc,t))}else{const o=mu(n,!0,Pd(e,t));fd.modifiers.push(o)}},onattribdata(e,t){md+=wd(e,t),gd<0&&(gd=e),hd=t},onattribentity(e,t,n){md+=e,gd<0&&(gd=t),hd=n},onattribnameend(e){const t=fd.loc.start.offset,n=wd(t,e);7===fd.type&&(fd.rawName=n),pd.props.some(e=>(7===e.type?e.rawName:e.name)===n)&&zd(2,t)},onattribend(e,t){if(pd&&fd){if(Rd(fd.loc,t),0!==e)if(md.includes("&")&&(md=cd.decodeEntities(md,!0)),6===fd.type)"class"===fd.name&&(md=Md(md).trim()),1!==e||md||zd(13,t),fd.value={type:2,content:md,loc:1===e?Pd(gd,hd):Pd(gd-1,hd+1)},Ad.inSFCRoot&&"template"===pd.tag&&"lang"===fd.name&&md&&"html"!==md&&Ad.enterRCDATA(Su("</template"),0);else{let e=0;fd.exp=Vd(md,!1,Pd(gd,hd),0,e),"for"===fd.name&&(fd.forParseResult=function(e){const t=e.loc,n=e.content,o=n.match(rd);if(!o)return;const[,r,a]=o,i=(e,n,o=!1)=>{const r=t.start.offset+n;return Vd(e,!1,Pd(r,r+e.length),0,o?1:0)},l={source:i(a.trim(),n.indexOf(a,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let s=r.trim().replace(xd,"").trim();const c=r.indexOf(s),u=s.match(kd);if(u){s=s.replace(kd,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,c+s.length),l.key=i(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=i(o,n.indexOf(o,l.key?t+e.length:c+s.length),!0))}}return s&&(l.value=i(s,c,!0)),l}(fd.exp));let t=-1;"bind"===fd.name&&(t=fd.modifiers.findIndex(e=>"sync"===e.content))>-1&&Ou("COMPILER_V_BIND_SYNC",cd,fd.loc,fd.arg.loc.source)&&(fd.name="model",fd.modifiers.splice(t,1))}7===fd.type&&"pre"===fd.name||pd.props.push(fd)}md="",gd=hd=-1},oncomment(e,t){cd.comments&&Nd({type:3,content:wd(e,t),loc:Pd(e-4,t+3)})},onend(){const e=dd.length;for(let t=0;t<_d.length;t++)Sd(_d[t],e-1),zd(24,_d[t].loc.start.offset)},oncdata(e,t){0!==_d[0].ns?Ed(wd(e,t),e,t):zd(1,e-9)},onprocessinginstruction(e){0===(_d[0]?_d[0].ns:cd.ns)&&zd(21,e-1)}}),kd=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,xd=/^\(|\)$/g;function wd(e,t){return dd.slice(e,t)}function Cd(e){Ad.inSFCRoot&&(pd.innerLoc=Pd(e+1,e+1)),Nd(pd);const{tag:t,ns:n}=pd;0===n&&cd.isPreTag(t)&&bd++,cd.isVoidTag(t)?Sd(pd,e):(_d.unshift(pd),1!==n&&2!==n||(Ad.inXML=!0)),pd=null}function Ed(e,t,n){{const t=_d[0]&&_d[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=cd.decodeEntities(e,!1))}const o=_d[0]||ud,r=o.children[o.children.length-1];r&&2===r.type?(r.content+=e,Rd(r.loc,n)):o.children.push({type:2,content:e,loc:Pd(t,n)})}function Sd(e,t,n=!1){Rd(e.loc,n?Td(t,60):function(e){let t=e;for(;62!==dd.charCodeAt(t)&&t<dd.length-1;)t++;return t}(t)+1),Ad.inSFCRoot&&(e.children.length?e.innerLoc.end=c({},e.children[e.children.length-1].loc.end):e.innerLoc.end=c({},e.innerLoc.start),e.innerLoc.source=wd(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:r,children:a}=e;if(vd||("slot"===o?e.tagType=2:Bd(e)?e.tagType=3:function({tag:e,props:t}){if(cd.isCustomElement(e))return!1;if("component"===e||(n=e.charCodeAt(0))>64&&n<91||Pu(e)||cd.isBuiltInComponent&&cd.isBuiltInComponent(e)||cd.isNativeTag&&!cd.isNativeTag(e))return!0;var n;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;
2if(Ou("COMPILER_IS_ON_ELEMENT",cd,n.loc))return!0}}else if("bind"===n.name&&Zu(n.arg,"is")&&Ou("COMPILER_IS_ON_ELEMENT",cd,n.loc))return!0}return!1}(e)&&(e.tagType=1)),Ad.inRCDATA||(e.children=Ld(a)),0===r&&cd.isIgnoreNewlineTag(o)){const e=a[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===r&&cd.isPreTag(o)&&bd--,yd===e&&(vd=Ad.inVPre=!1,yd=null),Ad.inXML&&0===(_d[0]?_d[0].ns:cd.ns)&&(Ad.inXML=!1);{const t=e.props;if(!Ad.inSFCRoot&&Bu("COMPILER_NATIVE_TEMPLATE",cd)&&"template"===e.tag&&!Bd(e)){const t=_d[0]||ud,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find(e=>6===e.type&&"inline-template"===e.name);n&&Ou("COMPILER_INLINE_TEMPLATE",cd,n.loc)&&e.children.length&&(n.value={type:2,content:wd(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Td(e,t){let n=e;for(;dd.charCodeAt(n)!==t&&n>=0;)n--;return n}const Id=new Set(["if","else","else-if","for","slot"]);function Bd({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&Id.has(t[e].name))return!0;return!1}const Od=/\r\n/g;function Ld(e){const t="preserve"!==cd.whitespace;let n=!1;for(let o=0;o<e.length;o++){const r=e[o];if(2===r.type)if(bd)r.content=r.content.replace(Od,"\n");else if(ad(r.content)){const a=e[o-1]&&e[o-1].type,i=e[o+1]&&e[o+1].type;!a||!i||t&&(3===a&&(3===i||1===i)||1===a&&(3===i||1===i&&Dd(r.content)))?(n=!0,e[o]=null):r.content=" "}else t&&(r.content=Md(r.content))}return n?e.filter(Boolean):e}function Dd(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function Md(e){let t="",n=!1;for(let o=0;o<e.length;o++)Cu(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function Nd(e){(_d[0]||ud).children.push(e)}function Pd(e,t){return{start:Ad.getPos(e),end:null==t?t:Ad.getPos(t),source:null==t?t:wd(e,t)}}function Rd(e,t){e.end=Ad.getPos(t),e.source=wd(e.start.offset,t)}function Fd(e){const t={type:6,name:e.rawName,nameLoc:Pd(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function Vd(e,t=!1,n,o=0,r=0){return mu(e,t,n,o)}function zd(e,t,n){cd.onError(Mu(e,Pd(t,t)))}function Ud(e,t){Hd(e,void 0,t,!!jd(e))}function jd(e){const t=e.children.filter(e=>3!==e.type);return 1!==t.length||1!==t[0].type||Xu(t[0])?null:t[0]}function Hd(e,t,n,o=!1,r=!1){const{children:a}=e,i=[];for(let t=0;t<a.length;t++){const l=a[t];if(1===l.type&&0===l.tagType){const e=o?0:qd(l,n);if(e>0){if(e>=2){l.codegenNode.patchFlag=-1,i.push(l);continue}}else{const e=l.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&Zd(l,n)>=2){const t=Wd(l);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===l.type&&(o?0:qd(l,n))>=2){14===l.codegenNode.type&&l.codegenNode.arguments.length>0&&l.codegenNode.arguments.push("-1"),i.push(l);continue}if(1===l.type){const t=1===l.tagType;t&&n.scopes.vSlot++,Hd(l,e,n,!1,r),t&&n.scopes.vSlot--}else if(11===l.type)Hd(l,e,n,1===l.children.length,!0);else if(9===l.type)for(let t=0;t<l.branches.length;t++)Hd(l.branches[t],e,n,1===l.branches[t].children.length,r)}let l=!1;if(i.length===a.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&m(e.codegenNode.children))e.codegenNode.children=s(du(e.codegenNode.children)),l=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!m(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=c(e.codegenNode,"default");t&&(t.returns=s(du(t.returns)),l=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!m(t.codegenNode.children)&&15===t.codegenNode.children.type){const n=Gu(e,"slot",!0),o=n&&n.arg&&c(t.codegenNode,n.arg);o&&(o.returns=s(du(o.returns)),l=!0)}if(!l)for(const e of i)e.codegenNode=n.cache(e.codegenNode);function s(e){const t=n.cache(e);return t.needArraySpread=!0,t}function c(e,t){if(e.children&&!m(e.children)&&15===e.children.type){const n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}i.length&&n.transformHoist&&n.transformHoist(a,n,e)}function qd(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const r=e.codegenNode;if(13!==r.type)return 0;if(r.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===r.patchFlag){let o=3;const a=Zd(e,t);if(0===a)return n.set(e,0),0;a<o&&(o=a);for(let r=0;r<e.children.length;r++){const a=qd(e.children[r],t);if(0===a)return n.set(e,0),0;a<o&&(o=a)}if(o>1)for(let r=0;r<e.props.length;r++){const a=e.props[r];if(7===a.type&&"bind"===a.name&&a.exp){const r=qd(a.exp,t);if(0===r)return n.set(e,0),0;r<o&&(o=r)}}if(r.isBlock){for(let t=0;t<e.props.length;t++)if(7===e.props[t].type)return n.set(e,0),0;t.removeHelper(Tc),t.removeHelper(_u(t.inSSR,r.isComponent)),r.isBlock=!1,t.helper(yu(t.inSSR,r.isComponent))}return n.set(e,o),o}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return qd(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if(y(o)||_(o))continue;const r=qd(o,t);
2if(0===r)return 0;r<a&&(a=r)}return a;case 20:return 2}}const Gd=new Set([Kc,Zc,Wc,$c]);function Kd(e,t){if(14===e.type&&!y(e.callee)&&Gd.has(e.callee)){const n=e.arguments[0];if(4===n.type)return qd(n,t);if(14===n.type)return Kd(n,t)}return 0}function Zd(e,t){let n=3;const o=Wd(e);if(o&&15===o.type){const{properties:e}=o;for(let o=0;o<e.length;o++){const{key:r,value:a}=e[o],i=qd(r,t);if(0===i)return i;let l;if(i<n&&(n=i),l=4===a.type?qd(a,t):14===a.type?Kd(a,t):0,0===l)return l;l<n&&(n=l)}}return n}function Wd(e){const t=e.codegenNode;if(13===t.type)return t.props}function $d(e,t){const o=function(e,{filename:t="",prefixIdentifiers:o=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:l=!1,nodeTransforms:s=[],directiveTransforms:c={},transformHoist:u=null,isBuiltInComponent:d=a,isCustomElement:p=a,expressionPlugins:f=[],scopeId:m=null,slotted:g=!0,ssr:h=!1,inSSR:b=!1,ssrCssVars:v="",bindingMetadata:_=n,inline:A=!1,isTS:k=!1,onError:x=Lu,onWarn:w=Du,compatConfig:C}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),S={filename:t,selfName:E&&N(L(E[1])),prefixIdentifiers:o,hoistStatic:r,hmr:i,cacheHandlers:l,nodeTransforms:s,directiveTransforms:c,transformHoist:u,isBuiltInComponent:d,isCustomElement:p,expressionPlugins:f,scopeId:m,slotted:g,ssr:h,inSSR:b,ssrCssVars:v,bindingMetadata:_,inline:A,isTS:k,onError:x,onWarn:w,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=S.helpers.get(e)||0;return S.helpers.set(e,t+1),e},removeHelper(e){const t=S.helpers.get(e);if(t){const n=t-1;n?S.helpers.set(e,n):S.helpers.delete(e)}},helperString:e=>`_${su[S.helper(e)]}`,replaceNode(e){S.parent.children[S.childIndex]=S.currentNode=e},removeNode(e){const t=S.parent.children,n=e?t.indexOf(e):S.currentNode?S.childIndex:-1;e&&e!==S.currentNode?S.childIndex>n&&(S.childIndex--,S.onNodeRemoved()):(S.currentNode=null,S.onNodeRemoved()),S.parent.children.splice(n,1)},onNodeRemoved:a,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=mu(e)),S.hoists.push(e);const t=mu(`_hoisted_${S.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const o=function(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:cu}}(S.cached.length,e,t,n);return S.cached.push(o),o}};return S.filters=new Set,S}(e,t);Yd(e,o),t.hoistStatic&&Ud(e,o),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=jd(e);if(n&&n.codegenNode){const o=n.codegenNode;13===o.type&&Au(o,t),e.codegenNode=o}else e.codegenNode=o[0]}else if(o.length>1){let o=64;e.codegenNode=uu(t,n(xc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,o),e.helpers=new Set([...o.helpers.keys()]),e.components=[...o.components],e.directives=[...o.directives],e.imports=o.imports,e.hoists=o.hoists,e.temps=o.temps,e.cached=o.cached,e.transformed=!0,e.filters=[...o.filters]}function Yd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r<n.length;r++){const a=n[r](e,t);if(a&&(m(a)?o.push(...a):o.push(a)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(Dc);break;case 5:t.ssr||t.helper(qc);break;case 9:for(let n=0;n<e.branches.length;n++)Yd(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];y(r)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,Yd(r,t))}}(e,t)}t.currentNode=e;let r=o.length;for(;r--;)o[r]()}function Jd(e,t){const n=y(e)?t=>t===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(Yu))return;const a=[];for(let i=0;i<r.length;i++){const l=r[i];if(7===l.type&&n(l.name)){r.splice(i,1),i--;const n=t(e,l,o);n&&a.push(n)}}return a}}}const Xd="/*@__PURE__*/",Qd=e=>`${su[e]}: _${su[e]}`;function ep(e,t,{helper:n,push:o,newline:r,isTS:a}){const i=n("filter"===t?Vc:"component"===t?Pc:Fc);for(let n=0;n<e.length;n++){let l=e[n];const s=l.endsWith("__self");s&&(l=l.slice(0,-6)),o(`const ${od(l,t)} = ${i}(${JSON.stringify(l)}${s?", true":""})${a?"!":""}`),n<e.length-1&&r()}}function tp(e,t){const n=e.length>3||!1;
2t.push("["),n&&t.indent(),np(e,t,n),n&&t.deindent(),t.push("]")}function np(e,t,n=!1,o=!0){const{push:r,newline:a}=t;for(let i=0;i<e.length;i++){const l=e[i];y(l)?r(l,-3):m(l)?tp(l,t):op(l,t),i<e.length-1&&(n?(o&&r(","),a()):o&&r(", "))}}function op(e,t){if(y(e))t.push(e,-3);else if(_(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:op(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:rp(e,t);break;case 5:!function(e,t){const{push:n,helper:o,pure:r}=t;r&&n(Xd),n(`${o(qc)}(`),op(e.content,t),n(")")}(e,t);break;case 8:ap(e,t);break;case 3:!function(e,t){const{push:n,helper:o,pure:r}=t;r&&n(Xd),n(`${o(Dc)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:o,pure:r}=t,{tag:a,props:i,children:l,patchFlag:s,dynamicProps:c,directives:u,isBlock:d,disableTracking:p,isComponent:f}=e;let m;s&&(m=String(s)),u&&n(o(zc)+"("),d&&n(`(${o(Tc)}(${p?"true":""}), `),r&&n(Xd);n(o(d?_u(t.inSSR,f):yu(t.inSSR,f))+"(",-2,e),np(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}([a,i,l,m,c]),t),n(")"),d&&n(")"),u&&(n(", "),op(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,a=y(e.callee)?e.callee:o(e.callee);r&&n(Xd),n(a+"(",-2,e),np(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:a}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const l=i.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e<i.length;e++){const{key:o,value:r}=i[e];ip(o,t),n(": "),op(r,t),e<i.length-1&&(n(","),a())}l&&r(),n(l?"}":" }")}(e,t);break;case 17:!function(e,t){tp(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:r}=t,{params:a,returns:i,body:l,newline:s,isSlot:c}=e;c&&n(`_${su[ou]}(`),n("(",-2,e),m(a)?np(a,t):a&&op(a,t),n(") => "),(s||l)&&(n("{"),o()),i?(s&&n("return "),m(i)?tp(i,t):op(i,t)):l&&op(l,t),(s||l)&&(r(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:a}=e,{push:i,indent:l,deindent:s,newline:c}=t;if(4===n.type){const e=!Fu(n.content);e&&i("("),rp(n,t),e&&i(")")}else i("("),op(n,t),i(")");a&&l(),t.indentLevel++,a||i(" "),i("? "),op(o,t),t.indentLevel--,a&&c(),a||i(" "),i(": ");const u=19===r.type;u||t.indentLevel++,op(r,t),u||t.indentLevel--,a&&s(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:a,newline:i}=t,{needPauseTracking:l,needArraySpread:s}=e;s&&n("[...("),n(`_cache[${e.index}] || (`),l&&(r(),n(`${o(eu)}(-1`),e.inVOnce&&n(", true"),n("),"),i(),n("(")),n(`_cache[${e.index}] = `),op(e.value,t),l&&(n(`).cacheIndex = ${e.index},`),i(),n(`${o(eu)}(1),`),i(),n(`_cache[${e.index}]`),a()),n(")"),s&&n(")]")}(e,t);break;case 21:np(e.body,t,!0,!1)}}function rp(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function ap(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];y(o)?t.push(o,-3):op(o,t)}}function ip(e,t){const{push:n}=t;8===e.type?(n("["),ap(e,t),n("]")):e.isStatic?n(Fu(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const lp=Jd(/^(?:if|else|else-if)$/,(e,t,n)=>function(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Mu(28,t.loc)),t.exp=mu("true",!1,o)}if("if"===t.name){const a=sp(e,t),i={type:9,loc:(r=e.loc,Pd(r.start.offset,r.end.offset)),branches:[a]};if(n.replaceNode(i),o)return o(i,a,!0)}else{const r=n.parent.children;let a=r.indexOf(e);for(;a-- >=-1;){const i=r[a];if(!i||!ld(i)){if(i&&9===i.type){"else-if"!==t.name&&"else"!==t.name||void 0!==i.branches[i.branches.length-1].condition||n.onError(Mu(30,e.loc)),n.removeNode();const r=sp(e,t);i.branches.push(r);const a=o&&o(i,r,!1);Yd(r,n),a&&a(),n.currentNode=null}else n.onError(Mu(30,e.loc));break}n.removeNode(i)}}var r}(e,t,n,(e,t,o)=>{const r=n.parent.children;let a=r.indexOf(e),i=0;for(;a-- >=0;){const e=r[a];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(o)e.codegenNode=cp(t,i,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=cp(t,i+e.branches.length-1,n)}}}));function sp(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Gu(e,"for")?e.children:[e],userKey:Ku(e,"key"),isTemplateIf:n}}
2function cp(e,t,n){return e.condition?vu(e.condition,up(e,t,n),hu(n.helper(Dc),['""',"true"])):up(e,t,n)}function up(e,t,n){const{helper:o}=n,r=fu("key",mu(`${t}`,!1,cu,2)),{children:a}=e,i=a[0];if(1!==a.length||1!==i.type){if(1===a.length&&11===i.type){const e=i.codegenNode;return td(e,r,n),e}{let t=64;return uu(n,o(xc),pu([r]),a,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(l=e).type&&l.callee===iu?l.arguments[1].returns:l;return 13===t.type&&Au(t,n),td(t,r,n),e}var l}const dp=Jd("for",(e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Mu(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Mu(32,t.loc));pp(r);const{addIdentifiers:a,removeIdentifiers:i,scopes:l}=n,{source:s,value:c,key:u,index:d}=r,p={type:11,loc:t.loc,source:s,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:r,children:Ju(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const f=o&&o(p);return()=>{l.vFor--,f&&f()}}(e,t,n,t=>{const a=hu(o(Uc),[t.source]),i=Ju(e),l=Gu(e,"memo"),s=Ku(e,"key",!1,!0);s&&s.type;let c=s&&(6===s.type?s.value?mu(s.value.content,!0):void 0:s.exp);const u=s&&c?fu("key",c):null,d=4===t.source.type&&t.source.constType>0,p=d?64:s?128:256;return t.codegenNode=uu(n,o(xc),void 0,a,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let s;const{children:p}=t,f=1!==p.length||1!==p[0].type,m=Xu(e)?e:i&&1===e.children.length&&Xu(e.children[0])?e.children[0]:null;if(m?(s=m.codegenNode,i&&u&&td(s,u,n)):f?s=uu(n,o(xc),u?pu([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(s=p[0].codegenNode,i&&u&&td(s,u,n),s.isBlock!==!d&&(s.isBlock?(r(Tc),r(_u(n.inSSR,s.isComponent))):r(yu(n.inSSR,s.isComponent))),s.isBlock=!d,s.isBlock?(o(Tc),o(_u(n.inSSR,s.isComponent))):o(yu(n.inSSR,s.isComponent))),l){const e=bu(fp(t.parseResult,[mu("_cached")]));e.body={type:21,body:[gu(["const _memo = (",l.exp,")"]),gu(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(lu)}(_cached, _memo)) return _cached`]),gu(["const _item = ",s]),mu("_item.memo = _memo"),mu("return _item")],loc:cu},a.arguments.push(e,mu("_cache"),mu(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(bu(fp(t.parseResult),s,!0))}})});function pp(e,t){e.finalized||(e.finalized=!0)}function fp({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||mu("_".repeat(t+1),!1))}([e,t,n,...o])}const mp=mu("undefined",!1),gp=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Gu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},hp=(e,t,n,o)=>bu(e,n,!1,!0,n.length?n[0].loc:o);function bp(e,t,n=hp){t.helper(ou);const{children:o,loc:r}=e,a=[],i=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const s=Gu(e,"slot",!0);if(s){const{arg:e,exp:t}=s;e&&!Nu(e)&&(l=!0),a.push(fu(e||mu("default",!0),n(t,void 0,o,r)))}let c=!1,u=!1;const d=[],p=new Set;let f=0;for(let e=0;e<o.length;e++){const r=o[e];let m;if(!Ju(r)||!(m=Gu(r,"slot",!0))){3!==r.type&&d.push(r);continue}if(s){t.onError(Mu(37,m.loc));break}c=!0;const{children:g,loc:h}=r,{arg:b=mu("default",!0),exp:v,loc:y}=m;let _;Nu(b)?_=b?b.content:"default":l=!0;const A=Gu(r,"for"),k=n(v,A,g,h);let x,w;if(x=Gu(r,"if"))l=!0,i.push(vu(x.exp,vp(b,k,f++),mp));else if(w=Gu(r,/^else(?:-if)?$/,!0)){let n,r=e;for(;r--&&(n=o[r],ld(n)););if(n&&Ju(n)&&Gu(n,/^(?:else-)?if$/)){let e=i[i.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=w.exp?vu(w.exp,vp(b,k,f++),mp):vp(b,k,f++)}else t.onError(Mu(30,w.loc))}else if(A){l=!0;const e=A.forParseResult;e?(pp(e),i.push(hu(t.helper(Uc),[e.source,bu(fp(e),vp(b,k),!0)]))):t.onError(Mu(32,A.loc))}else{if(_){if(p.has(_)){t.onError(Mu(38,y));continue}p.add(_),"default"===_&&(u=!0)}a.push(fu(b,k))}}if(!s){const e=(e,o)=>{const a=n(e,void 0,o,r);return t.compatConfig&&(a.isNonScopedSlot=!0),fu("default",a)};c?d.length&&!d.every(id)&&(u?t.onError(Mu(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,o))}const m=l?2:yp(e.children)?3:1;let g=pu(a.concat(fu("_",mu(m+"",!1))),r);return i.length&&(g=hu(t.helper(Hc),[g,du(i)])),{slots:g,hasDynamicSlots:l}}function vp(e,t,n){const o=[fu("name",e),fu("fn",t)];return null!=n&&o.push(fu("key",mu(String(n),!0))),pu(o)}function yp(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||yp(n.children))return!0;break;case 9:if(yp(n.branches))return!0;break;case 10:case 11:if(yp(n.children))return!0}}return!1}const _p=new WeakMap,Ap=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let a=r?function(e,t,n=!1){let{tag:o}=e;const r=Cp(o),a=Ku(e,"is",!1,!0);if(a)if(r||Bu("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===a.type?e=a.value&&mu(a.value.content,!0):(e=a.exp,e||(e=mu("is",!1,a.arg.loc))),e)return hu(t.helper(Rc),[e])}else 6===a.type&&a.value.content.startsWith("vue:")&&(o=a.value.content.slice(4));const i=Pu(o)||t.isBuiltInComponent(o);return i?(n||t.helper(i),i):(t.helper(Pc),t.components.add(o),od(o,"component"))}(e,t):`"${n}"`;const i=A(a)&&a.callee===Rc;let l,s,c,u,d,p=0,f=i||a===wc||a===Cc||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=kp(e,t,void 0,r,i);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?du(o.map(e=>function(e,t){const n=[],o=_p.get(e);o?n.push(t.helperString(o)):(t.helper(Fc),t.directives.add(e.name),n.push(od(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=mu("true",!1,r);n.push(pu(e.modifiers.map(e=>fu(e,t)),r))}return du(n,e.loc)}(e,t))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0)if(a===Ec&&(f=!0,p|=1024),r&&a!==wc&&a!==Ec){const{slots:n,hasDynamicSlots:o}=bp(e,t);s=n,o&&(p|=1024)}else if(1===e.children.length&&a!==wc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===qd(n,t)&&(p|=1),s=r||2===o?n:e.children}else s=e.children;u&&u.length&&(c=function(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}(u)),e.codegenNode=uu(t,a,l,s,0===p?void 0:p,c,d,!!f,!1,r,e.loc)};function kp(e,t,n=e.props,o,r,a=!1){const{tag:i,loc:s,children:c}=e;let u=[];const d=[],p=[],f=c.length>0;let m=!1,g=0,h=!1,b=!1,v=!1,y=!1,A=!1,k=!1;const x=[],w=e=>{u.length&&(d.push(pu(xp(u),s)),u=[]),e&&d.push(e)},C=()=>{t.scopes.vFor>0&&u.push(fu(mu("ref_for",!0),mu("true")))},E=({key:e,value:n})=>{if(Nu(e)){const a=e.content,i=l(a);
2if(!i||o&&!r||"onclick"===a.toLowerCase()||"onUpdate:modelValue"===a||T(a)||(y=!0),i&&T(a)&&(k=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&qd(n,t)>0)return;"ref"===a?h=!0:"class"===a?b=!0:"style"===a?v=!0:"key"===a||x.includes(a)||x.push(a),!o||"class"!==a&&"style"!==a||x.includes(a)||x.push(a)}else A=!0};for(let r=0;r<n.length;r++){const l=n[r];if(6===l.type){const{loc:e,name:n,nameLoc:o,value:r}=l;let a=!0;if("ref"===n&&(h=!0,C()),"is"===n&&(Cp(i)||r&&r.content.startsWith("vue:")||Bu("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(fu(mu(n,!0,o),mu(r?r.content:"",a,r?r.loc:e)))}else{const{name:n,arg:r,exp:c,loc:h,modifiers:b}=l,v="bind"===n,y="on"===n;if("slot"===n){o||t.onError(Mu(40,h));continue}if("once"===n||"memo"===n)continue;if("is"===n||v&&Zu(r,"is")&&(Cp(i)||Bu("COMPILER_IS_ON_ELEMENT",t)))continue;if(y&&a)continue;if((v&&Zu(r,"key")||y&&f&&Zu(r,"vue:before-update"))&&(m=!0),v&&Zu(r,"ref")&&C(),!r&&(v||y)){if(A=!0,c)if(v){if(w(),Bu("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(c);continue}C(),w(),d.push(c)}else w({type:14,loc:h,callee:t.helper(Yc),arguments:o?[c]:[c,"true"]});else t.onError(Mu(v?34:35,h));continue}v&&b.some(e=>"prop"===e.content)&&(g|=32);const k=t.directiveTransforms[n];if(k){const{props:n,needRuntime:o}=k(l,e,t);!a&&n.forEach(E),y&&r&&!Nu(r)?w(pu(n,s)):u.push(...n),o&&(p.push(l),_(o)&&_p.set(l,o))}else I(n)||(p.push(l),f&&(m=!0))}}let S;if(d.length?(w(),S=d.length>1?hu(t.helper(Gc),d,s):d[0]):u.length&&(S=pu(xp(u),s)),A?g|=16:(b&&!o&&(g|=2),v&&!o&&(g|=4),x.length&&(g|=8),y&&(g|=32)),m||0!==g&&32!==g||!(h||k||p.length>0)||(g|=512),!t.inSSR&&S)switch(S.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t<S.properties.length;t++){const r=S.properties[t].key;Nu(r)?"class"===r.content?e=t:"style"===r.content&&(n=t):r.isHandlerKey||(o=!0)}const r=S.properties[e],a=S.properties[n];o?S=hu(t.helper(Wc),[S]):(r&&!Nu(r.value)&&(r.value=hu(t.helper(Kc),[r.value])),a&&(v||4===a.value.type&&"["===a.value.content.trim()[0]||17===a.value.type)&&(a.value=hu(t.helper(Zc),[a.value])));break;case 14:break;default:S=hu(t.helper(Wc),[hu(t.helper($c),[S])])}return{props:S,directives:p,patchFlag:g,dynamicPropNames:x,shouldUseBlock:m}}function xp(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const r=e[o];if(8===r.key.type||!r.key.isStatic){n.push(r);continue}const a=r.key.content,i=t.get(a);i?("style"===a||"class"===a||l(a))&&wp(i,r):(t.set(a,r),n.push(r))}return n}function wp(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=du([e.value,t.value],e.loc)}function Cp(e){return"component"===e||"Component"===e}const Ep=(e,t)=>{if(Xu(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:a}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];if(6===n.type)n.value&&("name"===n.name?o=JSON.stringify(n.value.content):(n.name=L(n.name),r.push(n)));else if("bind"===n.name&&Zu(n.arg,"name")){if(n.exp)o=n.exp;else if(n.arg&&4===n.arg.type){const e=L(n.arg.content);o=n.exp=mu(e,!1,n.arg.loc)}}else"bind"===n.name&&n.arg&&Nu(n.arg)&&(n.arg.content=L(n.arg.content)),r.push(n)}if(r.length>0){const{props:o,directives:a}=kp(e,t,r,!1,!1);n=o,a.length&&t.onError(Mu(36,a[0].loc))}return{slotName:o,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;a&&(i[2]=a,l=3),n.length&&(i[3]=bu([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),i.splice(l),e.codegenNode=hu(t.helper(jc),i,o)}},Sp=(e,t,n,o)=>{const{loc:r,modifiers:a,arg:i}=e;let l;if(e.exp||a.length||n.onError(Mu(35,r)),4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=mu(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?P(L(e)):`on:${e}`,!0,i.loc)}else l=gu([`${n.helperString(Qc)}(`,i,")"]);else l=i,l.children.unshift(`${n.helperString(Qc)}(`),l.children.push(")");let s=e.exp;s&&!s.content.trim()&&(s=void 0);let c=n.cacheHandlers&&!s&&!n.inVOnce;if(s){const e=Hu(s),t=!(e||(e=>qu.test(ju(e)))(s)),n=s.content.includes(";");(t||c&&e)&&(s=gu([`${t?"$event":"(...args)"} => ${n?"{":"("}`,s,n?"}":")"]))}let u={props:[fu(l,s||mu("() => {}",!1,r))]};return o&&(u=o(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e
2=>e.key.isHandlerKey=!0),u},Tp=(e,t,n)=>{const{modifiers:o,loc:r}=e,a=e.arg;let{exp:i}=e;return i&&4===i.type&&!i.content.trim()&&(i=void 0),4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=a.content?`${a.content} || ""`:'""'),o.some(e=>"camel"===e.content)&&(4===a.type?a.isStatic?a.content=L(a.content):a.content=`${n.helperString(Jc)}(${a.content})`:(a.children.unshift(`${n.helperString(Jc)}(`),a.children.push(")"))),n.inSSR||(o.some(e=>"prop"===e.content)&&Ip(a,"."),o.some(e=>"attr"===e.content)&&Ip(a,"^")),{props:[fu(a,i)]}},Ip=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Bp=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e<n.length;e++){const t=n[e];if(Wu(t)){r=!0;for(let r=e+1;r<n.length;r++){const a=n[r];if(!Wu(a)){o=void 0;break}o||(o=n[e]=gu([t],t.loc)),o.children.push(" + ",a),n.splice(r,1),r--}}}if(r&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find(e=>7===e.type&&!t.directiveTransforms[e.name])||"template"===e.tag)))for(let e=0;e<n.length;e++){const o=n[e];if(Wu(o)||8===o.type){const r=[];2===o.type&&" "===o.content||r.push(o),t.ssr||0!==qd(o,t)||r.push("1"),n[e]={type:12,content:o,loc:o.loc,codegenNode:hu(t.helper(Mc),r)}}}}},Op=new WeakSet,Lp=(e,t)=>{if(1===e.type&&Gu(e,"once",!0)){if(Op.has(e)||t.inVOnce||t.inSSR)return;return Op.add(e),t.inVOnce=!0,t.helper(eu),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},Dp=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Mu(41,e.loc)),Mp();const a=o.loc.source.trim(),i=4===o.type?o.content:a,l=n.bindingMetadata[a];if("props"===l||"props-aliased"===l)return n.onError(Mu(44,o.loc)),Mp();if("literal-const"===l||"setup-const"===l)return n.onError(Mu(45,o.loc)),Mp();if(!i.trim()||!Hu(o))return n.onError(Mu(42,o.loc)),Mp();const s=r||mu("modelValue",!0),c=r?Nu(r)?`onUpdate:${L(r.content)}`:gu(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=gu([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[fu(s,e.exp),fu(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>e.content).map(e=>(Fu(e)?e:JSON.stringify(e))+": true").join(", "),n=r?Nu(r)?`${r.content}Modifiers`:gu([r,' + "Modifiers"']):"modelModifiers";d.push(fu(n,mu(`{ ${t} }`,!1,e.loc,2)))}return Mp(d)};function Mp(e=[]){return{props:e}}const Np=/[\w).+\-_$\]]/,Pp=(e,t)=>{Bu("COMPILER_FILTERS",t)&&(5===e.type?Rp(e.content,t):1===e.type&&e.props.forEach(e=>{7===e.type&&"for"!==e.name&&e.exp&&Rp(e.exp,t)}))};function Rp(e,t){if(4===e.type)Fp(e,t);else for(let n=0;n<e.children.length;n++){const o=e.children[n];"object"==typeof o&&(4===o.type?Fp(o,t):8===o.type?Rp(e,t):5===o.type&&Rp(o.content,t))}}function Fp(e,t){const n=e.content;let o,r,a,i,l=!1,s=!1,c=!1,u=!1,d=0,p=0,f=0,m=0,g=[];for(a=0;a<n.length;a++)if(r=o,o=n.charCodeAt(a),l)39===o&&92!==r&&(l=!1);else if(s)34===o&&92!==r&&(s=!1);else if(c)96===o&&92!==r&&(c=!1);else if(u)47===o&&92!==r&&(u=!1);else if(124!==o||124===n.charCodeAt(a+1)||124===n.charCodeAt(a-1)||d||p||f){switch(o){case 34:s=!0;break;case 39:l=!0;break;case 96:c=!0;break;case 40:f++;break;case 41:f--;break;case 91:p++;break;case 93:p--;break;case 123:d++;break;case 125:d--}if(47===o){let e,t=a-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&Np.test(e)||(u=!0)}}else void 0===i?(m=a+1,i=n.slice(0,a).trim()):h();function h(){g.push(n.slice(m,a).trim()),m=a+1}if(void 0===i?i=n.slice(0,a).trim():0!==m&&h(),g.length){for(a=0;a<g.length;a++)i=Vp(i,g[a],t);e.content=i,e.ast=void 0}}function Vp(e,t,n){n.helper(Vc);const o=t.indexOf("(");if(o<0)return n.filters.add(t),`${od(t,"filter")}(${e})`;{const r=t.slice(0,o),a=t.slice(o+1);return n.filters.add(r),`${od(r,"filter")}(${e}${")"!==a?","+a:a}`}}const zp=new WeakSet,Up=(e,t)=>{if(1===e.type){const n=Gu(e,"memo");if(!n||zp.has(e)||t.inSSR)return;return zp.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Au(o,t),e.codegenNode=hu(t.helper(iu),[n.exp,bu(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))}}},jp=(e,t)=>{if(1===e.type)for(const n of e.props)if(7===n.type&&"bind"===n.name&&(!n.exp||4===n.exp.type&&!n.exp.content.trim())&&n.arg){const e=n.arg;if(4===e.type&&e.isStatic){const t=L(e.content);(Vu.test(t[0])||"-"===t[0])&&(n.exp=mu(t,!1,e.loc))}else t.onError(Mu(53,e.loc)),n.exp=mu("",!0,e.loc)}};function Hp(e,t={}){const n=t.onError||Lu,o="module"===t.mode;
2!0===t.prefixIdentifiers?n(Mu(48)):o&&n(Mu(49)),t.cacheHandlers&&n(Mu(50)),t.scopeId&&!o&&n(Mu(51));const r=c({},t,{prefixIdentifiers:!1}),a=y(e)?function(e,t){if(Ad.reset(),pd=null,fd=null,md="",gd=-1,hd=-1,_d.length=0,dd=e,cd=c({},sd),t){let e;for(e in t)null!=t[e]&&(cd[e]=t[e])}Ad.mode="html"===cd.parseMode?1:"sfc"===cd.parseMode?2:0,Ad.inXML=1===cd.ns||2===cd.ns;const n=t&&t.delimiters;n&&(Ad.delimiterOpen=Su(n[0]),Ad.delimiterClose=Su(n[1]));const o=ud=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:cu}}(0,e);return Ad.parse(dd),o.loc=Pd(0,e.length),o.children=Ld(o.children),ud=null,o}(e,r):e,[i,l]=[[jp,Lp,lp,Up,dp,Pp,Ep,Ap,gp,Bp],{on:Sp,bind:Tp,model:Dp}];return $d(a,c({},r,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:c({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:a=null,optimizeImports:i=!1,runtimeGlobalName:l="Vue",runtimeModuleName:s="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:a,optimizeImports:i,runtimeGlobalName:l,runtimeModuleName:s,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${su[e]}`,push(e,t=-2,n){f.code+=e},indent(){m(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:m(--f.indentLevel)},newline(){m(f.indentLevel)}};function m(e){f.push("\n"+" ".repeat(e),0)}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:a,indent:i,deindent:l,newline:s,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,f=!a&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:a,runtimeModuleName:i,runtimeGlobalName:l,ssrRuntimeModuleName:s}=t,c=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${c}\n`,-1),e.hoists.length)&&r(`const { ${[Oc,Lc,Dc,Mc,Nc].filter(e=>u.includes(e)).map(Qd).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o();for(let r=0;r<e.length;r++){const a=e[r];a&&(n(`const _hoisted_${r+1} = `),op(a,t),o())}t.pure=!1}(e.hoists,t),a(),r("return ")}(e,n),r(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),i(),f&&(r("with (_ctx) {"),i(),p&&(r(`const { ${d.map(Qd).join(", ")} } = _Vue\n`,-1),s())),e.components.length&&(ep(e.components,"component",n),(e.directives.length||e.temps>0)&&s()),e.directives.length&&(ep(e.directives,"directive",n),e.temps>0&&s()),e.filters&&e.filters.length&&(s(),ep(e.filters,"filter",n),s()),e.temps>0){r("let ");for(let t=0;t<e.temps;t++)r(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),s()),u||r("return "),e.codegenNode?op(e.codegenNode,n):r("null"),f&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(a,r)}const qp=Symbol(""),Gp=Symbol(""),Kp=Symbol(""),Zp=Symbol(""),Wp=Symbol(""),$p=Symbol(""),Yp=Symbol(""),Jp=Symbol(""),Xp=Symbol(""),Qp=Symbol("");var ef;let tf;ef={[qp]:"vModelRadio",[Gp]:"vModelCheckbox",[Kp]:"vModelText",[Zp]:"vModelSelect",[Wp]:"vModelDynamic",[$p]:"withModifiers",[Yp]:"withKeys",[Jp]:"vShow",[Xp]:"Transition",[Qp]:"TransitionGroup"},Object.getOwnPropertySymbols(ef).forEach(e=>{su[e]=ef[e]});const nf={parseMode:"html",isVoidTag:te,isNativeTag:e=>X(e)||Q(e)||ee(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return tf||(tf=document.createElement("div")),t?(tf.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,tf.children[0].getAttribute("foo")):(tf.innerHTML=e,tf.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?Xp:"TransitionGroup"===e||"transition-group"===e?Qp:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},of=(e,t)=>
2{const n=$(e);return mu(JSON.stringify(n),!1,t,3)};function rf(e,t){return Mu(e,t)}const af=t("passive,once,capture"),lf=t("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),sf=t("left,right"),cf=t("onkeyup,onkeydown,onkeypress"),uf=(e,t)=>Nu(e)&&"onclick"===e.content.toLowerCase()?mu(t,!0):4!==e.type?gu(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,df=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},pf=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:mu("style",!0,t.loc),exp:of(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],ff={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(rf(54,r)),t.children.length&&(n.onError(rf(55,r)),t.children.length=0),{props:[fu(mu("innerHTML",!0,r),o||mu("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(rf(56,r)),t.children.length&&(n.onError(rf(57,r)),t.children.length=0),{props:[fu(mu("textContent",!0),o?qd(o,n)>0?o:hu(n.helperString(qc),[o],r):mu("",!0))]}},model:(e,t,n)=>{const o=Dp(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(rf(59,e.arg.loc));const{tag:r}=t,a=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||a){let i=Kp,l=!1;if("input"===r||a){const o=Ku(t,"type");if(o){if(7===o.type)i=Wp;else if(o.value)switch(o.value.content){case"radio":i=qp;break;case"checkbox":i=Gp;break;case"file":l=!0,n.onError(rf(60,e.loc))}}else(function(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))})(t)&&(i=Wp)}else"select"===r&&(i=Zp);l||(o.needRuntime=n.helper(i))}else n.onError(rf(58,e.loc));return o.props=o.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),o},on:(e,t,n)=>Sp(e,t,n,t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:a}=t.props[0];const{keyModifiers:i,nonKeyModifiers:l,eventOptionModifiers:s}=((e,t,n)=>{const o=[],r=[],a=[];for(let i=0;i<t.length;i++){const l=t[i].content;"native"===l&&Ou("COMPILER_V_ON_NATIVE",n)||af(l)?a.push(l):sf(l)?Nu(e)?cf(e.content.toLowerCase())?o.push(l):r.push(l):(o.push(l),r.push(l)):lf(l)?r.push(l):o.push(l)}return{keyModifiers:o,nonKeyModifiers:r,eventOptionModifiers:a}})(r,o,n,e.loc);if(l.includes("right")&&(r=uf(r,"onContextmenu")),l.includes("middle")&&(r=uf(r,"onMouseup")),l.length&&(a=hu(n.helper($p),[a,JSON.stringify(l)])),!i.length||Nu(r)&&!cf(r.content.toLowerCase())||(a=hu(n.helper(Yp),[a,JSON.stringify(i)])),s.length){const e=s.map(N).join("");r=Nu(r)?mu(`${r.content}${e}`,!0):gu(["(",r,`) + "${e}"`])}return{props:[fu(r,a)]}}),show:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(rf(62,r)),{props:[],needRuntime:n.helper(Jp)}}},mf=Object.create(null);function gf(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}ll(function(t,n){if(!y(t)){if(!t.nodeType)return a;t=t.innerHTML}const o=function(e,t){return e+JSON.stringify(t,(e,t)=>"function"==typeof t?t.toString():t)}(t,n),r=mf[o];if(r)return r;if("#"===t[0]){const e=document.querySelector(t);t=e?e.innerHTML:""}const i=c({hoistStatic:!0,onError:void 0,onWarn:a},n);i.isCustomElement||"undefined"==typeof customElements||(i.isCustomElement=e=>!!customElements.get(e));const{code:l}=function(e,t={}){return Hp(e,c({},nf,t,{nodeTransforms:[df,...pf,...t.nodeTransforms||[]],directiveTransforms:c({},ff,t.directiveTransforms||{}),transformHoist:null}))}(t,i),s=new Function("Vue",l)(e);return s._rc=!0,mf[o]=s});const hf="function"==typeof Proxy;let bf,vf;class yf{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const o=e.settings[t];n[t]=o.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},n);try{const e=localStorage.getItem(o),t=JSON.parse(e);Object.assign(r,t)}catch(e){}this.fallbacks={getSettings:()=>r,setSettings(e){try{localStorage.setItem(o,JSON.stringify(e))}catch(e){}r=e},now:()=>function(){var e;return void 0!==bf||("undefined"!=typeof window&&window.performance?(bf=!0,vf=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(bf=!0,vf=globalThis.perf_hooks.performance):bf=!1),bf}()?vf.now():Date.now()},t&&t.on("plugin:settings:set",(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}var _f="store";function Af(e){return void 0===e&&(e=null),co(null!==e?e:_f)}function kf(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function xf(e){return null!==e&&"object"==typeof e}function wf(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Cf(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Sf(e,n,[],e._modules.root,!0),Ef(e,n,t)}function Ef(e,t,n){var o=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,i={},l={},s=_e(!0);s.run(function(){kf(a,function(t,n){i[n]=function(e,t){return function(){return e(t)}}(t,e),l[n]=bl(function(){return i[n]()}),Object.defineProperty(e.getters,n,{get:function(){return l[n].value},enumerable:!0})})}),e._state=Lt({data:t}),e._scope=s,e.strict&&function(e){bo(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}(e),o&&n&&e._withCommit(function(){o.data=null}),r&&r.stop()}function Sf(e,t,n,o,r){var a=!n.length,i=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=o),!a&&!r){var l=If(t,n.slice(0,-1)),s=n[n.length-1];e._withCommit(function(){l[s]=o.state})}var c=o.context=function(e,t,n){var o=""===t,r={dispatch:o?e.dispatch:function(n,o,r){var a=Bf(n,o,r),i=a.payload,l=a.options,s=a.type;return l&&l.root||(s=t+s),e.dispatch(s,i)},commit:o?e.commit:function(n,o,r){var a=Bf(n,o,r),i=a.payload,l=a.options,s=a.type;l&&l.root||(s=t+s),e.commit(s,i,l)}};return Object.defineProperties(r,{getters:{get:o?function(){return e.getters}:function(){return Tf(e,t)}},state:{get:function(){return If(e.state,n)}}}),r}(e,i,n);o.forEachMutation(function(t,n){!function(e,t,n,o){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){n.call(e,o.state,t)})}(e,i+n,t,c)}),o.forEachAction(function(t,n){var o=t.root?n:i+n,r=t.handler||t;!function(e,t,n,o){(e._actions[t]||(e._actions[t]=[])).push(function(t){var r,a=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},t);return(r=a)&&"function"==typeof r.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):a})}(e,o,r,c)}),o.forEachGetter(function(t,n){!function(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(o.state,o.getters,e.state,e.getters)})}(e,i+n,t,c)}),o.forEachChild(function(o,a){Sf(e,t,n.concat(a),o,r)})}function Tf(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;
2Object.keys(e.getters).forEach(function(r){if(r.slice(0,o)===t){var a=r.slice(o);Object.defineProperty(n,a,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function If(e,t){return t.reduce(function(e,t){return e[t]},e)}function Bf(e,t,n){return xf(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var Of="vuex:mutations",Lf="vuex:actions",Df="vuex",Mf=0;function Nf(e,t){!function(e,t){const n=e,o=gf(),r=gf().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=hf&&n.enableEarlyProxy;if(!r||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const e=a?new yf(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else r.emit("devtools-plugin:setup",e,t)}({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},function(n){n.addTimelineLayer({id:Of,label:"Vuex Mutations",color:Pf}),n.addTimelineLayer({id:Lf,label:"Vuex Actions",color:Pf}),n.addInspector({id:Df,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===Df)if(n.filter){var o=[];zf(o,t._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[Vf(t._modules.root,"")]}),n.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===Df){var o=n.nodeId;Tf(t,o),n.state=function(e,t,n){t="root"===n?t:t[n];var o=Object.keys(t),r={state:Object.keys(e.state).map(function(t){return{key:t,editable:!0,value:e.state[t]}})};if(o.length){var a=function(e){var t={};return Object.keys(e).forEach(function(n){var o=n.split("/");if(o.length>1){var r=t,a=o.pop();o.forEach(function(e){r[e]||(r[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),r=r[e]._custom.value}),r[a]=Uf(function(){return e[n]})}else t[n]=Uf(function(){return e[n]})}),t}(t);r.getters=Object.keys(a).map(function(e){return{key:e.endsWith("/")?Ff(e):e,editable:!1,value:Uf(function(){return a[e]})}})}return r}((r=t._modules,(i=(a=o).split("/").filter(function(e){return e})).reduce(function(e,t,n){var o=e[t];if(!o)throw new Error('Missing module "'+t+'" for path "'+a+'".');return n===i.length-1?o:o._children},"root"===a?r:r.root._children)),"root"===o?t.getters:t._makeLocalGettersCache,o)}var r,a,i}),n.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===Df){var o=n.nodeId,r=n.path;"root"!==o&&(r=o.split("/").filter(Boolean).concat(r)),t._withCommit(function(){n.set(t._state.data,r,n.state.value)})}}),t.subscribe(function(e,t){var o={};e.payload&&(o.payload=e.payload),o.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(Df),n.sendInspectorState(Df),n.addTimelineEvent({layerId:Of,event:{time:Date.now(),title:e.type,data:o}})}),t.subscribeAction({before:function(e,t){var o={};e.payload&&(o.payload=e.payload),e._id=Mf++,e._time=Date.now(),o.state=t,n.addTimelineEvent({layerId:Lf,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:o}})},after:function(e,t){var o={},r=Date.now()-e._time;o.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},e.payload&&(o.payload=e.payload),o.state=t,n.addTimelineEvent({layerId:Lf,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:o}})}})})}var Pf=8702998,Rf={label:"namespaced",textColor:16777215,backgroundColor:6710886};function Ff(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function Vf(e,t){return{id:t||"root",label:Ff(t),tags:e.namespaced?[Rf]:[],children:Object.keys(e._children).map(function(n){return Vf(e._children[n],t+n+"/")})}}function zf(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[Rf]:[]}),Object.keys(t._children).forEach(function(r){zf(e,t._children[r],n,o+r+"/")})}function Uf(e){try{return e()}catch(e){return e}}var jf=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},Hf={namespaced:{configurable:!0}};Hf.namespaced.get=function(){return!!this._rawModule.namespaced},jf.prototype.addChild=function(e,t){this._children[e]=t},jf.prototype.removeChild=function(e){delete this._children[e]},jf.prototype.getChild=function(e){return this._children[e]},jf.prototype.hasChild=function(e){return e in this._children},jf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},jf.prototype.forEachChild=function(e){kf(this._children,e)},jf.prototype.forEachGetter=function(e){this._rawModule.getters&&kf(this._rawModule.getters,e)},jf.prototype.forEachAction=function(e){this._rawModule.actions&&kf(this._rawModule.actions,e)},jf.prototype.forEachMutation=function(e){this._rawModule.mutations&&kf(this._rawModule.mutations,e)},Object.defineProperties(jf.prototype,Hf);var qf=function(e){this.register([],e,!1)};function Gf(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return;Gf(e.concat(o),t.getChild(o),n.modules[o])}}qf.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},qf.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},qf.prototype.update=function(e){Gf([],this.root,e)},qf.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0);var r=new jf(t,n);0===e.length?this.root=r:this.get(e.slice(0,-1)).addChild(e[e.length-1],r),t.modules&&kf(t.modules,function(t,r){o.register(e.concat(r),t,n)})},qf.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o&&o.runtime&&t.removeChild(n)},qf.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var Kf=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new qf(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var a=this,i=this.dispatch,l=this.commit;this.dispatch=function(e,t){return i.call(a,e,t)},this.commit=function(e,t,n){return l.call(a,e,t,n)},this.strict=o;var s=this._modules.root.state;
2Sf(this,s,[],this._modules.root),Ef(this,s),n.forEach(function(e){return e(t)})},Zf={state:{configurable:!0}};function Wf(e){return function(e){return Array.isArray(e)||xf(e)}(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function $f(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Yf(e,t,n){return e._modulesNamespaceMap[n]}function Jf(){var e=-1*document.documentElement.scrollTop+"px";document.body.classList.add("no-scroll"),document.body.style.top=e}function Xf(){var e=+document.body.style.top.slice(1).substring(0,document.body.style.top.slice(1).length-2);document.body.classList.remove("no-scroll"),document.documentElement.scrollTop=e}function Qf(e){return null!=e&&Object.keys(e).length>0}function em(e){return em="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},em(e)}function tm(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return nm(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(nm(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nm(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,nm(d,"constructor",c),nm(c,"constructor",s),s.displayName="GeneratorFunction",nm(c,r,"GeneratorFunction"),nm(d),nm(d,r,"Generator"),nm(d,o,function(){return this}),nm(d,"toString",function(){return"[object Generator]"}),(tm=function(){return{w:a,m:p}})()}function nm(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}nm=function(e,t,n,o){function a(t,n){nm(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},nm(e,t,n,o)}function om(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?om(Object(n),!0).forEach(function(t){am(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function am(e,t,n){return(t=function(e){var t=function(e){if("object"!=em(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=em(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==em(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function im(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function lm(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){im(a,o,r,i,l,"next",e)}function l(e){im(a,o,r,i,l,"throw",e)}i(void 0)})}}Kf.prototype.install=function(e,t){e.provide(t||_f,this),e.config.globalProperties.$store=this,(void 0===this._devtools||this._devtools)&&Nf(e,this)},Zf.state.get=function(){return this._state.data},Zf.state.set=function(e){},Kf.prototype.commit=function(e,t,n){var o=this,r=Bf(e,t,n),a=r.type,i=r.payload,l=(r.options,{type:a,payload:i}),s=this._mutations[a];
2s&&(this._withCommit(function(){s.forEach(function(e){e(i)})}),this._subscribers.slice().forEach(function(e){return e(l,o.state)}))},Kf.prototype.dispatch=function(e,t){var n=this,o=Bf(e,t),r=o.type,a=o.payload,i={type:r,payload:a},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(i,n.state)})}catch(e){}var s=l.length>1?Promise.all(l.map(function(e){return e(a)})):l[0](a);return new Promise(function(e,t){s.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(i,n.state)})}catch(e){}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(i,n.state,e)})}catch(e){}t(e)})})}},Kf.prototype.subscribe=function(e,t){return wf(e,this._subscribers,t)},Kf.prototype.subscribeAction=function(e,t){return wf("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},Kf.prototype.watch=function(e,t,n){var o=this;return bo(function(){return e(o.state,o.getters)},t,Object.assign({},n))},Kf.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},Kf.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),Sf(this,this.state,e,this._modules.get(e),n.preserveState),Ef(this,this.state)},Kf.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){delete If(t.state,e.slice(0,-1))[e[e.length-1]]}),Cf(this)},Kf.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},Kf.prototype.hotUpdate=function(e){this._modules.update(e),Cf(this,!0)},Kf.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Kf.prototype,Zf),$f(function(e,t){var n={};return Wf(t).forEach(function(t){var o=t.key,r=t.val;n[o]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var o=Yf(this.$store,0,e);if(!o)return;t=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,t,n):t[r]},n[o].vuex=!0}),n}),$f(function(e,t){var n={};return Wf(t).forEach(function(t){var o=t.key,r=t.val;n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=this.$store.commit;if(e){var a=Yf(this.$store,0,e);if(!a)return;o=a.context.commit}return"function"==typeof r?r.apply(this,[o].concat(t)):o.apply(this.$store,[r].concat(t))}}),n}),$f(function(e,t){var n={};return Wf(t).forEach(function(t){var o=t.key,r=t.val;r=e+r,n[o]=function(){if(!e||Yf(this.$store,0,e))return this.$store.getters[r]},n[o].vuex=!0}),n}),$f(function(e,t){var n={};return Wf(t).forEach(function(t){var o=t.key,r=t.val;n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=this.$store.dispatch;if(e){var a=Yf(this.$store,0,e);if(!a)return;o=a.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(t)):o.apply(this.$store,[r].concat(t))}}),n});var sm=function(){var e=lm(tm().m(function e(t){var n,o,r=arguments;return tm().w(function(e){for(;;)if(0===e.n)return n=r.length>1&&void 0!==r[1]?r[1]:{},"string"==typeof t?o=new Request(t,rm(rm({},n),{},{body:n.body})):t instanceof Request&&(o=new Request(t,{body:n.body||t.body,method:n.method||t.method,headers:n.headers||t.headers})),o.headers.append("CMS-PAGE-ID",uh.state.main.page_id),e.a(2,fetch(o))},e)}));return function(t){return e.apply(this,arguments)}}(),cm=function(e){var t;return{hasError:!0,error:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:String(e)}},um=function(){var e=lm(tm().m(function e(t,n){return tm().w(function(e){for(;;)if(0===e.n)return e.a(2,sm(t).then(function(e){if(e.ok){var t=e.headers.get("Content-Type");return t&&t.includes("application/json")?e.json():{}}throw new Error("".concat(e.status," ").concat(e.statusText))}).then(function(e){return n&&n(),e}).catch(function(e){return console.error("Error:",e),cm(e)}))},e)}));return function(t,n){return e.apply(this,arguments)}}(),dm=function(){var e=lm(tm().m(function e(t,n,o,r,a,i){return tm().w(function(e){for(;;)if(0===e.n)return e.a(2,mm(t,n,o,r,"POST",a,i))},e)}));return function(t,n,o,r,a,i){return e.apply(this,arguments)}}(),pm=function(){var e=lm(tm().m(function e(t,n,o,r){return tm().w(function(e){for(;;)if(0===e.n)return e.a(2,mm(t,n,o,r,"DELETE"))},e)}));return function(t,n,o,r){return e.apply(this,arguments)}}(),fm=function(){var e=lm(tm().m(function e(t,n,o,r,a){return tm().w(function(e){for(;;)if(0===e.n)return e.a(2,mm(t,n,o,r,"PUT"))},e)}));return function(t,n,o,r,a){return e.apply(this,arguments)}}(),mm=function(){var e=lm(tm().m(function e(t,n,o,r,a,i,l){var s,c;return tm().w(function(e){for(;;)if(0===e.n)return s=new Headers,r||(s.append("Content-Type","application/json"),s.append("PageID",i)),c={headers:s,method:a,body:null!=n?n:""},"GET"==a&&delete c.body,e.a(2,sm(t,c).then(function(e){if(e.ok){if(l)return{};var t=e.headers.get("Content-Type");return t&&t.includes("application/json")?e.json():{}}throw new Error("".concat(e.status," ").concat(e.statusText))}).then(function(e){return o&&o(e),e}).catch(function(e){return console.error("Error:",e),cm(e)}))},e)}));return function(t,n,o,r,a,i,l){return e.apply(this,arguments)}}();function gm(e){return gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gm(e)}function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?hm(Object(n),!0).forEach(function(t){vm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vm(e,t,n){return(t=function(e){var t=function(e){if("object"!=gm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ym=".kb-js--page-overlay-return-target";const _m={namespaced:!0,state:{article_overlay_open:!1,page_overlay_open:null,page_overlay_content:null,page_overlay_content_data:null,page_overlay_returntarget:null,burger_menu_links:{primary:[],secondary:[]},article_overlay_data:null,sub_navigation_links:{generalLink:void 0,subLinks:void 0},dictionary_visible:!1,page_id:null,user:{user_id:null,user_has_notifications:!1,show_user:!1,user_authorized:!1,user_name:null,user_profile_img:null,user_has_logged_in_as_frivillig_admin:!1},source_references:[],source_references_total:null,is_submitting:!1},mutations:{set_dictionary_visible:function(e,t){e.dictionary_visible=t},open_page_overlay:function(e){e.page_overlay_open=!0,Jf()},close_page_overlay:function(e){e.page_overlay_open=!1,Xf()},reset_page_overlay:function(e){e.page_overlay_open=null,e.page_overlay_content=null,e.page_overlay_returntarget=null,Xf()},set_user_id:function(e,t){var n=Object.assign({},e.user);n.user_id=t,e.user=n},set_user_has_notifications:function(e,t){var n=Object.assign({},e.user);n.user_has_notifications=t,e.user=n},set_show_user:function(e,t){var n=Object.assign({},e.user);n.show_user=t,e.user=n},set_user_authorized:function(e,t){var n=Object.assign({},e.user);n.user_authorized=t,e.user=n},set_user_name:function(e,t){var n=Object.assign({},e.user);n.user_name=t,e.user=n},set_user_profile_img:function(e,t){var n=Object.assign({},e.user);n.user_profile_img=t,e.user=n},set_user_has_logged_in_as_frivillig_admin:function(e,t){var n=Object.assign({},e.user);n.user_has_logged_in_as_frivillig_admin=t,e.user=n},set_page_overlay_content:function(e,t){e.page_overlay_content=t},set_page_overlay_content_data:function(e,t){e.page_overlay_content_data=bm(bm({},e.page_overlay_content_data),t)},set_burger_menu_links:function(e,t){e.burger_menu_links=t},set_page_overlay_returntarget:function(e,t){e.page_overlay_returntarget=t},set_article_overlay_data:function(e,t){e.article_overlay_data=t},set_sub_navigation_links:function(e,t){e.sub_navigation_links.generalLink=t.generalLink,e.sub_navigation_links.subLinks=t.subLinks},set_article_overlay_open:function(e,t){e.article_overlay_open=t},set_page_id:function(e,t){e.page_id=t},set_user_profile_data:function(e,t){e.user_profile=t},set_is_submitting:function(e,t){e.is_submitting=t},add_source_references:function(e,t){e.source_references=e.source_references.concat(t)},set_source_references_total:function(e,t){e.source_references_total=t}},actions:{closePageOverlay:function(e){e.state.page_overlay_returntarget&&(e.state.page_overlay_returntarget.focus(),e.state.page_overlay_returntarget.classList.remove(ym.slice(1))),e.commit("close_page_overlay")},openPageOverlay:function(e,t){e.commit("set_page_overlay_content",t.overlayContent),e.commit("set_page_overlay_returntarget",t.returnTarget),t.returnTarget&&e.state.page_overlay_returntarget.classList.add(ym.slice(1)),e.commit("open_page_overlay")},getArticleOverlayContent:function(e,t){var n=new Headers;n.append("Content-Type","text/article");var o=new Request(t,{headers:n});return sm(o).then(function(e){if(e.ok)return e.text();throw new Error("Search failed")}).then(function(t){return e.commit("set_article_overlay_data",t),t}).catch(function(e){return console.error(e)})},setPageId:function(e,t){if(e.state.page_id)throw new Error("Page id already set");e.commit("set_page_id",t)},setUserData:function(e,t){Qf(t)&&(null!=t&&t.userId&&e.commit("set_user_id",t.userId),null!=t&&t.firstName&&null!=t&&t.lastName?e.commit("set_user_name","".concat(t.firstName," ").concat(t.lastName)):null!=t&&t.firstName&&e.commit("set_user_name","".concat(t.firstName)),null!=t&&t.userAuthorized&&e.commit("set_user_authorized",t.userAuthorized),null!=t&&t.showUser&&e.commit("set_show_user",t.showUser),null!=t&&t.userProfileImg&&e.commit("set_user_profile_img",t.userProfileImg),null!=t&&t.userHasNotifications&&e.commit("set_user_has_notifications",t.userHasNotifications),null!=t&&t.userHasLoggedInAsFrivilligAdmin&&e.commit("set_user_has_logged_in_as_frivillig_admin",t.userHasLoggedInAsFrivilligAdmin))},setUserProfileImage:function(e,t){e.commit("set_user_profile_img",t)},fetchUserProfile:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/userProfile/[userProfileId]".replace("[userProfileId]",t));sm(n).then(function(e){return e.json()}).then(function(t){e.commit("set_user_profile_data",t)}).catch(function(e){console.error(e)})},updateUserProfile:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/userProfile/[userProfileId]".replace("[userProfileId]",t.userProfileId)),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"PUT",body:JSON.stringify(t.body)};return e.commit("set_is_submitting",!0),sm(n,r).then(function(e){return e.ok?e.json():(console.error(e.error),Promise.reject(e.error))}).catch(function(t){console.error(t),e.commit("set_is_submitting",!1)})},deleteUserProfile:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/userProfile/[userProfileId]".replace("[userProfileId]",t.userProfileId)),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"DELETE",body:JSON.stringify(t.body)};return e.commit("set_is_submitting",!0),sm(n,r).then(function(e){return e.ok?e.json():Promise.reject(e.error)}).catch(function(t){console.error(t),e.commit("set_is_submitting",!1)})},trackPurchaseData:function(e,t){var n;if(null!==(n=window)&&void 0!==n&&null!==(n=n.dataLayer)&&void 0!==n&&n.find(function(e){return e["gtm.start"]})){var o="".concat(document.location.origin,"/").concat("da-DK/api/tracking/purchaseeventdata","?orderId=").concat(t.orderId),r=new Headers;r.append("Content-Type","application/json"),sm(o,{headers:r,method:"GET"}).then(function(e){return e.ok?204===e.status?Promise.reject("purchase tracking data not available."):e.json():Promise.reject(e.error)}).then(function(e){window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null});var t={event:"purchase",ecommerce:e};dataLayer.push(t)}
2).catch(function(e){return console.error("Kvittering: Der skete en fejl. Ã
rsag: ",e)})}},getSourceReferences:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/source/[sourceId]/references?skip=[skip]&take=[take]").replace("[sourceId]",t.sourceId).replace("[skip]",t.skip).replace("[take]",t.take),o=new Headers;return o.append("Content-Type","application/json"),sm(n,{headers:o,method:"GET"}).then(function(e){return e.json()}).then(function(t){e.commit("add_source_references",t.hits),e.commit("set_source_references_total",t.totalHits)}).catch(function(e){console.error(e)})}}},Am={namespaced:!0,state:{collections:{}},mutations:{set_collections:function(e,t){e.collections=t},set_labelCollection:function(e,t){e.collections[t.collectionName]=t.labels}},actions:{},getters:{getLabel:function(e){return function(t){var n;return km(e.collections[t.labelCollection],t)?(n=e.collections[t.labelCollection][t.labelKey])?(t.params&&t.params.forEach(function(e,t){n=n.replace("{".concat(t,"}"),e)}),n):(t.allowEmpty&&void 0!==n||console.error("Missing label:",t.labelCollection+"."+t.labelKey),n):t.emptyIfMissing?"":t.labelKey}},existLabel:function(e){return function(t){var n;return!!km(e.collections[t.labelCollection],t)&&""!==(n=e.collections[t.labelCollection][t.labelKey])&&void 0!==n}}}};var km=function(e,t){return e||console.error("Missing label-collection:",t.labelCollection),e};function xm(e){return JSON.parse(JSON.stringify(e))}function wm(e){return wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wm(e)}function Cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cm(Object(n),!0).forEach(function(t){Sm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sm(e,t,n){return(t=function(e){var t=function(e){if("object"!=wm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tm(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Im(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function Im(e,t){if(e){if("string"==typeof e)return Bm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bm(e,t):void 0}}function Bm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Om={namespaced:!0,state:{is_searching:!1,facets:{},populated_facet_ids:[],queries:{},results:{},sorting:{},show_results:{},search_inprogress:{},more_search_inprogress:{},firstPageSize:{},showMorePageSize:{},skip_take:{},scoped_total:{},display_total:{},urls:{},replaceQueryInUrl:!0,search_overlay_scope:void 0,filter_overlay_scopes:void 0,search_page_redirecturl:void 0,autocomplete_result:{},autocomplete_inprogress:{},hide_autocomplete:!1,dictionary_data:[]},mutations:{set_is_searching:function(e,t){e.is_searching=t},set_dictionary_data:function(e,t){e.dictionary_data=t},set_replaceQueryInUrl:function(e,t){e.replaceQueryInUrl=t},set_search_page_redirecturl:function(e,t){e.search_page_redirecturl=t},set_filter_overlay_scopes:function(e,t){e.filter_overlay_scopes=t},set_scoped_result:function(e,t){e.results[t.scope.guid]=t.data},add_populated_facet_ids:function(e,t){e.populated_facet_ids=e.populated_facet_ids.concat(t.data)},add_scoped_result:function(e,t){e.results[t.scope.guid]=e.results[t.scope.guid].concat(t.data)},set_scoped_total:function(e,t){e.scoped_total[t.scope.guid]=t.data},set_display_total:function(e,t){e.display_total[t.guid]=t.data},set_scoped_facets:function(e,t){e.facets[t.scope.guid]=t.data},show_results:function(e,t){e.show_results[t]=!0},begin_search:function(e,t){e.search_inprogress[t]=!0},complete_search:function(e,t){e.search_inprogress[t]=!1},new_scope:function(e,t){var n,o;e.search_inprogress[t.guid]=!1,e.show_results[t.guid]=!1,e.queries[t.guid]=t.query,e.firstPageSize[t.guid]=null!==(n=t.firstPageSize)&&void 0!==n?n:25,e.showMorePageSize[t.guid]=null!==(o=t.showMorePageSize)&&void 0!==o?o:25,e.skip_take[t.guid]={skip:t.skip,take:t.take},e.urls[t.guid]=t.url?t.url.replace("[guid]",t.guid).replace("[pageId]",uh.state.main.page_id):t.url,e.
2scoped_total[t.guid]=0,e.sorting[t.guid]=t.sorting},set_scoped_query:function(e,t){e.queries[t.guid]=t.query},set_scoped_skip_take:function(e,t){var n,o;e.skip_take[t.guid]={skip:parseInt(null!==(n=t.skip)&&void 0!==n?n:0),take:parseInt(null!==(o=t.take)&&void 0!==o?o:e.firstPageSize[t.guid])}},begin_autocomplete:function(e){e.autocomplete_inprogress=!0},set_autocomplete_result:function(e,t){e.autocomplete_result=t.data},set_hide_autocomplete:function(e,t){e.hide_autocomplete=t},set_sorting_value:function(e,t){e.sorting[t.guid]=t.sorting},complete_autocomplete:function(e){e.autocomplete_inprogress=!1},begin_more_search:function(e,t){e.more_search_inprogress[t]=!0},complete_more_search:function(e,t){e.more_search_inprogress[t]=!1}},actions:{patch_scoped_facets:function(e,t){if(t.facet){var n=xm(e.getters.getFacets(t.guid));n.forEach(function(e){var n=e.facetValues.find(function(e){return e.facetId===t.facet.facetId});n&&(n.selected=!n.selected)}),e.state.facets[t.guid]=n}},setSearchQuery:function(e,t){e.commit("set_scoped_query",t)},initSearchScope:function(e,t){var n=new URL(window.location.href);t.skip=parseInt(n.searchParams.get("skip"))||null,t.take=parseInt(n.searchParams.get("take"))||null,t.query=n.searchParams.get("q"),t.sorting=n.searchParams.get("sorting");var o,r=[],a=Tm(n.searchParams.entries());try{var i=function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||Im(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o.value,2),t=e[0],n=e[1];if(!/^\d+$/.test(t))return 1;String(n).split(",").filter(Boolean).forEach(function(e){r.push({facetGroupId:t,facetId:e})})};for(a.s();!(o=a.n()).done;)i()}catch(e){a.e(e)}finally{a.f()}var l=r.reduce(function(e,t){var n=t.facetGroupId,o=t.facetId;return e[n]=e[n]||[],e[n].push({facetId:o}),e},{}),s=Object.keys(l).map(function(e){return{facetGroupId:e,facetValues:l[e].map(function(e){return{facetId:e.facetId,selected:!0}})}});e.commit("new_scope",t),e.commit("set_scoped_facets",{scope:t,data:s}),e.commit("set_scoped_result",{scope:t,data:[]})},performSearch:function(e,t){return new Promise(function(n,o){if(e.state.urls[t.guid]){e.commit("set_scoped_query",t),e.commit("set_scoped_skip_take",t),e.commit("show_results",t.guid),e.commit("begin_search",t.guid),e.commit("set_sorting_value",t),e.dispatch("patch_scoped_facets",t),e.commit("set_is_searching",!0);var r=e.getters.searchRequestGET(t);sm(r).then(function(t){if(t.ok)return t.json();throw e.commit("set_is_searching",!1),new Error("Search failed")}).then(function(o){e.commit("set_scoped_result",{scope:t,data:o.hits}),e.commit("set_scoped_facets",{scope:t,data:o.facets}),e.commit("set_scoped_total",{scope:t,data:o.totalHits}),e.state.replaceQueryInUrl&&history.replaceState({},"search",e.getters.getUrlQuery(t)),e.commit("set_is_searching",!1),n(o)}).catch(function(t){console.error(t),e.commit("set_is_searching",!1),o(t)}).finally(function(){e.commit("set_is_searching",!1),e.commit("complete_search",t.guid)})}else o()})},performZeroSearch:function(e,t){if(e.state.urls[t.guid]){e.commit("begin_search",t.guid);var n=new Request(e.getters.getBaseSearchUrl(t));sm(n).then(function(e){if(e.ok)return e.json();throw new Error("Search failed")}).then(function(t){var n=t.facets.reduce(function(e,t){var n=t.facetValues.filter(function(e){return e.count>0}).map(function(e){return e.facetId});return e.concat(n)},[]);e.commit("add_populated_facet_ids",{data:n})}).catch(function(e){return console.error(e)}).finally(function(){return e.commit("complete_search",t.guid)})}},performMoreSearch:function(e,t){e.commit("begin_more_search",t.guid),e.commit("set_is_searching",!0);var n=e.getters.skip_take(t.guid),o=e.getters.showMorePageSize(t.guid),r=parseInt(n.skip)+parseInt(n.take);e.commit("set_scoped_skip_take",Em(Em({},t),{},{skip:r,take:o}));var a=e.getters.searchRequestGET(t);e.state.replaceQueryInUrl&&history.replaceState({},"search",e.getters.getUrlQuery(t)),sm(a).then(function(e){if(e.ok)return e.json();throw new Error("Search failed")}).then(function(n){e.commit("add_scoped_result",{scope:t,data:n.hits})}).catch(function(e){return console.error(e)}).finally(function(){e.commit("complete_more_search",t.guid),e.commit("set_is_searching",!1)})},refreshSearches:function(e){Object.keys(e.state.results).forEac
2h(function(t){var n={guid:t};e.dispatch("performSearch",n)})},initAutocomplete:function(e,t){e.commit("set_autocomplete_result",{scope:t,data:{}})},getAutocomplete:function(e,t){e.commit("begin_autocomplete");var n=e.getters.autocompleteRequestGET(t);sm(n).then(function(e){if(e.ok)return e.json();throw new Error("Search failed")}).then(function(n){e.commit("set_autocomplete_result",{scope:t,data:n})}).catch(function(e){return console.error(e)}).finally(function(){return e.commit("complete_autocomplete",t.guid)})}},getters:{getBaseSearchUrl:function(e){return function(t){return"".concat(document.location.origin,"/").concat(e.urls[t.guid])}},searchRequestGET:function(e,t){return function(n){var o,r=[],a=t.getBaseSearchUrl(n).split("?")[1],i=null==a?void 0:a.split("&").map(function(e){return e.split("=")});(null==i?void 0:i.length)>0&&i.forEach(function(e){r.push([e[0],e[1]])});var l=e.skip_take[n.guid],s=l.skip,c=l.take,u=e.sorting[n.guid];s&&r.push(["skip",s]),c&&r.push(["take",c]),u&&r.push(["sorting",u]);var d=e.queries[n.guid]?"?q="+e.queries[n.guid].toLowerCase()+"&":"?",p=null!==(o=t.getFacets(n.guid))&&void 0!==o?o:[],f=d+new URLSearchParams(p.reduce(function(e,t){return t.facetValues.forEach(function(n){if(!n.selected)return!1;e.push([t.facetGroupId,n.facetId])}),e},r)).toString(),m=uh.state.main.page_id,g=(t.getBaseSearchUrl(n).split("?")[0]+f).replace("[pageId]",m);return console.log("Searching on url...",new Request(g).url.slice(new Request(g).url.indexOf("?"))),new Request(g)}},autocompleteRequestGET:function(){return function(e){var t="".concat(document.location.origin,"/").concat("da-DK/api/searchApi/autocomplete","?q=").concat(e.query);return console.log("Autocompleting requesting on url...",new Request(t).url.slice(new Request(t).url.indexOf("?"))),new Request(t)}},getUrlQuery:function(e,t){return function(n){var o,r,a=new URL(document.location.href),i=e.skip_take[n.guid],l=i.skip,s=i.take,c=e.sorting[n.guid],u=e.queries[n.guid];s?a.searchParams.set("take",l+s):a.searchParams.delete("take"),c?a.searchParams.set("sorting",c):a.searchParams.delete("sorting"),u?a.searchParams.set("q",u):a.searchParams.delete("q");for(var d=0,p=function(e){if(Array.isArray(e))return Bm(e)}(r=a.searchParams.keys())||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||Im(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();d<p.length;d++){var f=p[d];/^\d+$/.test(f)&&a.searchParams.delete(f)}return(null!==(o=t.getFacets(n.guid))&&void 0!==o?o:[]).forEach(function(e){e.facetValues.forEach(function(t){t.selected&&a.searchParams.append(e.facetGroupId,t.facetId)})}),a.toString()}},getFacets:function(e){return function(t){if(!e.facets[t])return[];var n,o=[],r=Tm(e.facets[t]);try{for(r.s();!(n=r.n()).done;){var a=n.value,i=a.facetValues.filter(function(t){return t.selected||e.populated_facet_ids.includes(t.facetId)});if(0!==i.length){var l=Em(Em({},a),{},{facetValues:i});o.push(l)}}}catch(e){r.e(e)}finally{r.f()}return o}},allPrimaryTags:function(e,t){return function(e){var n;return null===(n=t.getFacets(e))||void 0===n||null===(n=n.find(function(e){return"Primary"===e.facetGroupType}))||void 0===n?void 0:n.facetValues}},selectedTags:function(e,t){return function(e){var n;return null===(n=t.getFacets(e))||void 0===n?void 0:n.reduce(function(e,t){return e.concat(t.facetValues)},[]).filter(function(e){return e.selected})}},skip_take:function(e){return function(t){return e.skip_take[t]}},showMorePageSize:function(e){return function(t){return e.showMorePageSize[t]}},dictionaryData:function(e){return e.dictionary_data},dictionaryFilterBySearch:function(e){var t=e.queries.dictionarySearch;return xm(e.dictionary_data).map(function(e){return t?(e.words=e.words.filter(function(e){return e.word.toLowerCase().includes(t.toLowerCase())}),e):e}).filter(function(e){return e.words.length})},canShowMore:function(e){return function(t){var n=e.skip_take[t];return n&&n.skip+n.take<e.scoped_total[t]}}}},Lm={namespaced:!0,state:{wordDefinitions:{}}
2,mutations:{add_word_definition:function(e,t){var n=t.wordId,o=t.wordDefinition;e.wordDefinitions[n]=o}},actions:{fetch_word_definition:function(e,t){if(!e.state.wordDefinitions[t.id]){var n="".concat(document.location.origin,"/").concat("da-DK/api/dictionary/word","?id=").concat(t.id);sm(n).then(function(e){if(e.ok)return e.json();throw new Error("Dictionary lookup failed")}).then(function(n){e.commit("add_word_definition",{wordId:t.id,wordDefinition:n})}).catch(function(e){return console.error(e)})}}},getters:{getWordDefinitionById:function(e){return function(t){return e.wordDefinitions[t]?e.wordDefinitions[t]:""}}}},Dm={namespaced:!0,state:{signUpCompleteShowReceipt:!1,signUpEventId:null,isSubmitting:!1},mutations:{completeSignup:function(e){e.signUpCompleteShowReceipt=!0},set_signUpEventId:function(e,t){e.signUpEventId=t},set_submitting:function(e,t){e.isSubmitting=t}},actions:{signUpToEvent:function(e,t){var n=new Headers;n.append("Content-Type","application/json");var o={headers:n,method:"POST",body:JSON.stringify(t)};e.commit("set_submitting",!0),sm("/api/activities/signup",o).then(function(t){throw t.ok&&e.commit("completeSignup"),new Error(t.error)}).catch(function(e){console.error("Der skete en fejl ved tilmelding",e)}).finally(function(){e.commit("set_submitting",!1)})}}};function Mm(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Nm(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Nm(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Nm(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Nm(d,"constructor",c),Nm(c,"constructor",s),s.displayName="GeneratorFunction",Nm(c,r,"GeneratorFunction"),Nm(d),Nm(d,r,"Generator"),Nm(d,o,function(){return this}),Nm(d,"toString",function(){return"[object Generator]"}),(Mm=function(){return{w:a,m:p}})()}function Nm(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Nm=function(e,t,n,o){function a(t,n){Nm(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Nm(e,t,n,o)}function Pm(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Rm(e){return function(e){if(Array.isArray(e))return Fm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Fm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fm(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Vm=function(e){if("boolean"==typeof e)return e;if("number"==typeof e)return 1===e;if("string"==typeof e){var t=e.trim().toLowerCase();return"true"===t||"1"===t}return!1};const zm={namespaced:!0,state:{fundraiseCreationCompleteShowReceipt:!1,isFundraiseImageUploading:!1,personalStoryImagesUploading:0,personalDonationShowReceipt:!1,fundraiseCreationEventId:null,donation_settings:{donationId:void 0,linkToInformationHowDonationBenefits:void 0,single:{presets:[],defaultPreset:void 0},recurring:{presets:[],defaultPreset:void 0}},isSubmitting:!1,isEditing:!0,isFundraiseImageUploadError:!1,isPersonalStoryImageUploadError:!1,personalFundraisingFlowStep:null,userProfileFundraisingCampaigns:[],dashboardCollections:[],dashboardTotalAmount:null,dashboardIsMindegave:null,dashboardExpiredHasNextPage:!1,dashboardExpiredPage:1,dashboardCollectionsLoading:!1,dashboardCollectionsError:null},mutations:{completeFundraiseCreation:function(e){e.fundraiseCreationCompleteShowReceipt=!0},completePersonalDonation:function(e){e.personalDonationShowReceipt=!0},set_fundraiseCreationEventId:function(e,t){e.fundraiseCreationEventId=t},set_donation_settings:function(e,t){e.donation_settings=t},set_submitting:function(e,t){e.isSubmitting=t},set_fundraise_image_uploading:function(e,t){e.isFundraiseImageUploading=t},add_personal_story_image_uploading:function(e){e.personalStoryImagesUploading+=1},remove_personal_story_image_uploading:function(e){e.personalStoryImagesUploading-=1},set_fundraise_image_upload_error:function(e,t){e.isFundraiseImageUploadError=t},set_personal_story_image_upload_error:function(e,t){e.isPersonalStoryImageUploadError=t},set_editing:function(e,t){e.isEditing=t}
2,set_user_profile_fundraising_campaigns:function(e,t){e.userProfileFundraisingCampaigns=t},set_personal_fundraising_flow_step:function(e,t){e.personalFundraisingFlowStep=t},set_dashboard_collections:function(e,t){e.dashboardCollections=t},append_dashboard_expired_collections:function(e,t){var n=new Set(e.dashboardCollections.map(function(e){return String(e.id)})),o=t.filter(function(e){return!n.has(String(e.id))});e.dashboardCollections=[].concat(Rm(e.dashboardCollections),Rm(o))},set_dashboard_total_amount:function(e,t){e.dashboardTotalAmount=t},set_dashboard_is_mindegave:function(e,t){e.dashboardIsMindegave=null==t?null:Boolean(t)},set_dashboard_expired_meta:function(e,t){var n=t.page,o=t.hasNextPage;e.dashboardExpiredPage=n,e.dashboardExpiredHasNextPage=o},set_dashboard_collections_loading:function(e,t){e.dashboardCollectionsLoading=t},set_dashboard_collections_error:function(e,t){e.dashboardCollectionsError=t}},actions:{getPersonalFundraisingDashboard:function(e,t){var n="string"==typeof t||"number"==typeof t?{userProfileId:t}:t||{},o=n.userProfileId,r=n.campaignAreaId,a=n.pageId,i=n.expiredPage,l=void 0===i?1:i,s=n.expiredPageSize,c=void 0===s?5:s,u=n.appendExpired,d=void 0!==u&&u;if(!o)return Promise.resolve([]);if(!r&&!a)return Promise.resolve([]);var p=new URLSearchParams({expiredPage:String(l),expiredPageSize:String(c)});r&&p.set("campaignArea",r),a&&p.set("pageId",String(a));var f="".concat(document.location.origin,"/").concat("da-DK/api/personalFundraising/dashboard/[userProfileId]".replace("[userProfileId]",o),"?").concat(p.toString());return d||(e.commit("set_dashboard_collections_loading",!0),e.commit("set_dashboard_collections_error",null)),sm(f).then(function(e){if(!e.ok)throw new Error("Server returned status ".concat(e.status));return e.json()}).then(function(t){var n=(Array.isArray(t)?t:Array.isArray(null==t?void 0:t.collections)?t.collections:[]).map(function(e){return{id:e.id,name:e.name,url:e.url||null,editUrl:e.editUrl||null,qrCodeUrl:e.qrCodeUrl||null,qrCodeImage:e.qrCodeImage||null,livestreamUrl:e.livestreamUrl||null,amount:Number(e.amount)||0,targetAmount:Number(e.targetAmount)||0,isActive:Vm(e.isActive),endDate:e.endDate||null,donorCount:Number(e.donorCount)||0}}).filter(function(e){return null!=e.id&&e.name});if(d){var o=n.filter(function(e){return!e.isActive});e.commit("append_dashboard_expired_collections",o)}else e.commit("set_dashboard_collections",n),null!=(null==t?void 0:t.totalAmount)&&""!==(null==t?void 0:t.totalAmount)?e.commit("set_dashboard_total_amount",Number(t.totalAmount)||0):e.commit("set_dashboard_total_amount",null),"boolean"==typeof(null==t?void 0:t.isMindegave)&&e.commit("set_dashboard_is_mindegave",t.isMindegave);return e.commit("set_dashboard_expired_meta",{page:Number(null==t?void 0:t.expiredPage)||l,hasNextPage:Boolean(null==t?void 0:t.expiredHasNextPage)}),n}).catch(function(t){return console.error(t),d||(e.commit("set_dashboard_collections_error",t),e.commit("set_dashboard_collections",[]),e.commit("set_dashboard_total_amount",null),e.commit("set_dashboard_is_mindegave",null),e.commit("set_dashboard_expired_meta",{page:1,hasNextPage:!1})),[]}).finally(function(){d||e.commit("set_dashboard_collections_loading",!1)})},loadMoreExpiredDashboardCollections:function(e,t){var n=t||{},o=n.userProfileId,r=n.campaignAreaId,a=n.pageId;return o&&(r||a)&&e.state.dashboardExpiredHasNextPage?e.dispatch("getPersonalFundraisingDashboard",{userProfileId:o,campaignAreaId:r,pageId:a,expiredPage:e.state.dashboardExpiredPage+1,expiredPageSize:5,appendExpired:!0}):Promise.resolve([])},getUserProfileFundraisingCampaigns:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/personalFundraising/search/userprofile/[userProfileId]".replace("[userProfileId]",t));sm(n).then(function(e){return e.json()}).then(function(t){var n=Array.isArray(t)?t.filter(function(e){return e.name&&e.url}):[];e.commit("set_user_profile_fundraising_campaigns",n)}).catch(function(e){console.error(e)})},setEditing:function(e,t){e.commit("set_editing",t)},discardUploadedImage:function(e,t){var n={POSTMETHOD:"POST",PUTMETHOD:"PUT",DELETEMETHOD:"DELETE",PATCHMETHOD:"PATCH",ENVIRONMENT:"PRODUCTION",GETMETHOD:"GET",GENERAL_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",
2EVENT_SEARCH:"da-DK/api/[pageId]/activityApi/search/[guid]",COUNSELLING_SEARCH:"da-DK/api/counsellingCenterApi/search/[guid]",PATIENT_ASSOCIATIONS_SEARCH:"da-DK/api/patientAssociationsApi/search/[guid]",DOCUMENT_LIST_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",AUTOCOMPLETE:"da-DK/api/searchApi/autocomplete",DICTIONARY_BASE_URL:"da-DK/api/dictionary/word",EVENTSIGNUP:"/api/activities/signup",FUNDRAISING_SEARCH:"da-DK/api/personalFundraising/search/[guid]",DONATION_SEARCH:"da-DK/api/personalFundraising/search/[guid]/donations",GALLERY_SEARCH:"",CREATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPDATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",DELETE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPLOAD_FUNDRAISEIMAGES:"da-DK/api/personalFundraising/[id]/image",SUBMIT_DONATION:"da-DK/api/[pageId]/fundraisingCampaignDonations",SUBMIT_PERSONAL_DONATION:"da-DK/api/personalFundraising/[guid]/donations",SUBMIT_PERSONAL_MOBILEPAY_DONATION:"da-DK/api/personalFundraising/[guid]/donations/mobilepay",DISCARDFUNDRAISEIMAGE:"/api/discard-fundraise-image.json",GET_PURCHASE_DATA:"da-DK/api/tracking/purchaseeventdata",PROJECTS_SEARCH:"da-DK/api/[pageId]/projectApi/search/[guid]",GET_USERPROFILE_FUNDRAISING_CAMPAIGNS:"da-DK/api/personalFundraising/search/userprofile/[userProfileId]",GET_PERSONAL_FUNDRAISING_DASHBOARD:"da-DK/api/personalFundraising/dashboard/[userProfileId]",GET_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",UPDATE_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",GET_DONATIONS:"da-dk/api/fundraisingDonations/[campaignAreaId]",GET_RELAY_LIST:"api/stafetter/[pageId]",GET_STAFET_PARTICIPANTS:"api/hold/[teamId]/deltagere",GET_STAFET_TEAM_LIST:"api/holdList/[pageId]/[stafetId]",SUBMIT_STAFET_CREATE_HOLD:"da-DK/api/[pageId]/hold/?stafetKode=[stafetKode]&previousHoldkode=[previousHoldkode]",SUBMIT_STAFET_EDIT_HOLD:"da-DK/api/[pageId]/hold/[holdKode]",SUBMIT_STAFET_DONATION:"da-DK/api/[pageId]/sfl/donation",SUBMIT_STAFET_STOT_LYS_DONATION:"da-DK/api/[pageId]/sfl/lyspose",SUBMIT_STAFET_DELTAG_PAA_HOLD:"da-DK/api/[pageId]/sfl/deltager",SUBMIT_STAFET_DELTAG_SOM_FIGHTER:"da-DK/api/[pageId]/sfl/fighter",SUBMIT_STAFET_ADD_DELTAGERE:"da-DK/api/[pageId]/sfl/add-deltagere",GET_STAFET_TEAM_LIGHTS:"api/hold/[holdKode]/lysposer?skip=[skip]&take=[take]",GET_STAFET_TEAM_DONATIONS:"api/hold/[holdKode]/donationer",GET_STAFET_TEAM_DONATIONS_PAGINATED:"api/hold/[holdKode]/donationerPaginated?offsetDonationer=[offsetDonationer]&offsetAdmissions=[offsetAdmissions]&limit=[limit]",GET_STAFET_TEAM_PARTICIPANT_DETAILS:"api/hold/[holdKode]/deltagere",GET_PREVIOUS_TEAMS_LIST:"/api/hold-list/profile/previous-hold?newStafetkode=[newStafetkode]",GET_PROFILE_TEAMS_LIST:"api/hold-list/profile/hold/[pageId]",SUBMIT_STAFET_PROFILE_CREATE:"da-DK/api/sfl/profile/create",SUBMIT_STAFET_PROFILE_UPDATED:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_PROFILE_DELETE:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_ROUND_COUNTER:"api/[pageId]/hold/[holdKode]/runderegistrering",SUBMIT_STAFET_SEND_EMAIL:"api/sfl/mailudsendelse",SUBMIT_STAFET_RESEND_EMAIL:"api/sfl/mailudsendelse/resend",STAFET_GET_MAILUDSENDELSE_ATTACHMENT:"api/sfl/mailudsendelse/attachment/[attachmentId]",STAFET_GET_PROFILE_HOLDKAPTAJN_HOLD:"api/hold-list/profile/[userProfileId]/holdkaptajn-hold",STAFET_GET_MAILUDSENDELSE_NEW_RECIPIENTS_COUNT:"api/sfl/mailudsendelse/[mailudsendelseId]/new-recipients-count",COMMUNITY_CHAT_SEARCH_USERS:"api/community/chat/users/search?p=[query]&take=[take]",COMMUNITY_GET_USER_CHATS:"api/community/user/[userId]/chats",COMMUNITY_GET_CHAT:"api/community/chat/[chatId]",COMMUNITY_CREATE_CHAT:"api/community/chat/create",COMMUNITY_FIND_CHAT_WITH_USER:"api/community/chat/find-with-user",COMMUNITY_GET_CHAT_MEMBER_PROFILE:"api/community/chat/member-profile",COMMUNITY_DELETE_CHAT:"api/community/chat/[chatId]/delete",COMMUNITY_CREATE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/create",COMMUNITY_EDIT_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/edit",COMMUNITY_DELETE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/delete",COMMUNITY_CREATE_COMMENT:"api/community/post/[postId]/comment/create",COMMUNITY_CREATE_SUBCOMMENT:"api/community/comment/[commentId]/subcomment/create",COMMUNITY_EDIT_COMMENT:"api/community/comment/[commentId]/edit",COMMUNITY_DELETE_COMMENT:"api/community/comment/[commentId]/delete",COMMUNITY_GET_NOTIFICATIONS:"api/community/notifications",COMMUNITY_GET_POSTS:"api/community/posts",COMMUNITY_CREATE_POST:"api/community/post/[postId]/create",COMMUNITY_EDIT_PO
2ST:"api/community/post/[postId]/edit",COMMUNITY_DELETE_POST:"api/community/post/[postId]/delete",COMMUNITY_SAVE_POST:"api/community/post/[postId]/save",COMMUNITY_GET_POST_LATEST_COMMENT:"api/community/post/[postId]/latest-comment",COMMUNITY_GET_POST_STATISTICS:"api/community/post/[postId]/statistics",COMMUNITY_GET_POST_COMMENTS:"api/community/post/[postId]/comments?pageId=[pageId]",COMMUNITY_GET_USER_GROUPS:"api/community/user/groups?pageId=[pageId]",COMMUNITY_LEAVE_GROUP:"api/community/user/groups/[groupId]/leave",COMMUNITY_GET_USER_POSTS:"api/community/user/posts",COMMUNITY_GET_USER_SAVED_POSTS:"api/community/user/posts/saved",GET_GROUP_SEARCH_RESULT:"da-DK/api/groupSearch/search/[pageId]/[guid]",SUBMIT_CREATE_GALLERY:"da-DK/api/createGallery/[id]",SUBMIT_EDIT_GALLERY:"da-DK/api/editGallery/[id]",FORUM_MEMBER_DATA:"da-DK/api/member-data/[id]",FORUM_MEMBER_LIST_DATA:"da-DK/api/member-list-data/[groupid]",SUBMIT_FORUM_MEMBER_APPLICATION:"da-DK/api/forumMemberApplication/[id]/[groupid]",FORUM_SUBMIT_EDIT_PROFILE:"da-DK/api/saveProfile",SUBMIT_FORUM_PROFILE_PICTURE:"da-DK/api/submitForumProfilePicture/[id]",FORUM_PROFILE_PICTURE:"da-DK/api/forumProfilePicture/[id]",GET_GRUPPEADGANGSANMODNINGER:"api/gruppeadgangsanmodninger",APPROVE_NOTIFICATION:"api/notifications/[id]/approve",REJECT_NOTIFICATION:"api/notifications/[id]/reject",APPROVE_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/approve",REJECT_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/reject",SUBMIT_CREATE_FORUM_PROFILE:"da-DK/api/cancerforum/profile/create",DELETE_CANCER_PROFILE:"da-DK/api/deleteForumProfile/[id]",DELETE_CANCER_PROFILE_AND_DATA:"da-DK/api/deleteForumProfileAndData/[id]",GET_THEME_STATISTICS:"da-DK/api/theme/[themeId]/statistics",GET_GROUP_STATISTICS:"da-DK/api/group/[groupId]/statistics",FORUM_JOIN_GROUP:"da-DK/api/join-open-group-redirect/[groupId]",CANCERFORUM_SEARCH:"da-DK/api/[pageId]/cancerforum/search",FRIVILLIGE_GROUPS_SEARCH:"api/frivillig/[pageId]/groups",FRIVILLIGE_GROUPS_HOVEDGRUPPE_SEARCH:"api/frivillig/[pageId]/hovedgruppe/[hovedgruppekode]/groups",FRIVILLIGE_MEMBER_LIST_DATA:"da-DK/api/getMemberListData/[group_id]",FRIVILLIGE_MEMBER_DATA:"da-DK/api/getMemberData/[id]",FRIVILLIGE_MEMBER_REQUEST_ROLES_DATA:"da-DK/api/getMemberRequestRolesData/[id]",FRIVILLIGE_MEMBER_REMOVE:"api/frivillig/groups/[gruppeKode]/medlemmer/[member_id]",FRIVILLIGE_FOLDER_DROPDOWN_OPTIONS:"api/frivillig/valid-move-options",GET_FILES_LIST:"api/frivillig/[pageId]/[gruppeKode]/dokumenter",SUBMIT_CREATE_NEW_FILE:"api/frivillig/dokumenter/template",SUBMIT_UPLOAD_NEW_FILE:"api/frivillig/dokumenter",SUBMIT_MOVE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_EDIT_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_DELETE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_CREATE_FOLDER:"api/frivillig/mapper",SUBMIT_EDIT_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_MOVE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_DELETE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_CONFIRM_DELETE_PROFILE:"da-DK/api/submitConfirmDeleteProfile/[group_id]/[member_id]",SUBMIT_CONFIRM_DELETE_MEMBER:"da-DK/api/submitConfirmDeleteMember/[group_id]/[member_id]",ORDRE_OVERVIEW:"da-DK/api/ordreOverview/[id]",CREATE_EVENT:"da-DK/api/createEvent",FRIVILLIGE_GROUP_EVENTS:"api/frivillig/[pageId]/groups/[groupId]/events",EDIT_EVENT:"da-DK/api/editEvent/[id]",CALENDAR_OVERLAY:"da-DK/api/calendarOverlay",EDIT_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil",CREATE_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil/create",GET_FRIVILLIGPROFIL_CARD_DATA:"da-DK/api/frivillig/[pageId]/profil/[id]/frivilligprofilCard",FRIVILLIGE_GROUP_EVENT:"api/frivillig/[pageId]/groupEvents/[eventId]",FRIVILLIG_PRODUCT_SEARCH:"da-DK/api/frivillig/[pageId]/productSearchApi/searchWithRoleInformation/[guid]",FRIVILLIG_PRODUCT_LIST_SEARCH:"da-DK/api/frivillig/[pageId]/productListSearchApi/searchWithRoleInformation/[guid]",FRIVILLIGE_GROUP_EVENT_EDIT:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIGE_GROUP_EVENT_GET:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIG_GROUP_MEDLEMMER_GET:"api/frivillig/[pageId]/groups/[groupId]/medlemmer",FRIVILLIGE_WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/frivillig/web
2shop/${pageId}/checkout/placeorder",FRIVILLIGPROFIL_ROLLER_GET:"da-DK/api/frivillig/profil/roller/[aktivitetsId]",FRIVILLIGPROFIL_GRUPPER_GET:"da-DK/api/frivillig/profil/grupper/[aktivitetsId]",DELETE_FRIVILLIGPROFIL:"da-DK/api/frivillig/[pageId]/profil/[guid]",FRIVILLIGPROFIL_AKTIVITETER_GET:"da-DK/api/frivillig/profil/aktiviteter",FRIVILLIGPROFIL_PICTURE_GET:"api/frivillig/profil/image/?fpid=[id]",SUBMIT_GROUP_ACCESS_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning",DELETE_ROLE_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning/[id]",SUBMIT_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling",DELETE_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling/[id]",FRIVILLIGE_JOIN_GROUP:"api/frivillig/groups/[gruppeKode]/join",SUBMIT_FRIVILLIG_PROFILE_PICTURE:"api/frivillig/profil/image",PROFILE_HAS_FRIVILLIG_ORDERS:"api/frivillig/profil/[userProfileId]/has-frivillig-orders",FRIVILLIGJOB_CREATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_UPDATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_IMAGE_UPDATE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_GET:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_SEARCH:"api/frivillig/frivilligjob/search",FRIVILLIGJOB_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]",FRIVILLIGJOB_GRUPPEEMNER_GET:"api/frivillig/frivilligjob/[frivilligjobId]/gruppeemner",LOTTERY_GET_RESULT:"api/lottery/round/[roundNumber]/ticket/[lotteryTicketId]",PRODUCT_RECOMMENDATIONS:"da-DK/api/webshop/product/[productSku]/recommendations?take=[take]",PRODUCT_SEARCH:"da-DK/api/productSearchApi/search/[guid]",PRODUCT_LIST_SEARCH:"da-DK/api/productListSearchApi/search/[guid]",WEBSHOP_BASKET:"da-DK/api/webshop/${pageId}/cart/",WEBSHOP_BASKET_LINE:"da-DK/api/webshop/${pageId}/cart/lines",WEBSHOP_BASKET_SHIPPING:"da-DK/api/webshop/${pageId}/cart/shipping",WEBSHOP_SERVICEPOINTS:"da-DK/api/webshop/delivery/servicepoints",WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/webshop/${pageId}/checkout/placeorder",MITID_LOGOUT:"api/mitid/logout",SOURCE_REFERENCES:"da-DK/api/source/[sourceId]/references?skip=[skip]&take=[take]"}.FETCHMETHOD,o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:n,body:JSON.stringify(t)};return"POST"!==n&&delete r.body,sm("/api/discard-fundraise-image.json",r).then(function(e){if(e.ok)return e.json();throw"File deletion failed"}).catch(function(e){return console.error("Der skete en fejl med sletning af billedet",e)})},uploadFundraiseImage:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/personalFundraising/[id]/image".replace("[id]",t.id)),o=new FormData;o.append("imageFile",t.file);var r={headers:new Headers,method:"POST",body:o};return"fundraiseImage"==t.type&&e.commit("set_fundraise_image_uploading",!0),"personalStoryImage"==t.type&&e.commit("add_personal_story_image_uploading"),sm(n,r).then(function(e){if(e.ok)return e.json();throw e}).catch(function(n){console.error("Der skete en fejl med dit billedupload",n),"fundraiseImage"==t.type&&e.commit("set_fundraise_image_upload_error",!0),"personalStoryImage"==t.type&&e.commit("set_personal_story_image_upload_error",!0)}).finally(function(){"fundraiseImage"==t.type&&e.commit("set_fundraise_image_uploading",!1),"personalStoryImage"==t.type&&e.commit("remove_personal_story_image_uploading")})},createPersonalfundraising:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/personalFundraising/[id]".replace("[id]",t.id)),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"POST",body:JSON.stringify(t.content)};e.commit("set_submitting",!0),sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){e.commit("completeFundraiseCreation"),e.commit("set_editing",!1),document.location.href=t.continueUrl}).catch(function(e){console.error("Der skete en fejl med din indsamling",e)}).finally(function(){e.commit("set_submitting",!1)})},updatePersonalfundraising:function(e,t){var n=t.id,o=t.content,r="".concat(document.location.origin,"/").concat("da-DK/api/personalFundraising/[id]".replace("[id]",n)),a=new Headers;a.append("Content-Type","application/json");var i={headers:a,method:"PUT",body:JSON.stringify(o)};e.commit("set_submitting",!0),sm(r,i).then(function(t){if(t.ok)return t.json();throw e.commit("set_submitting",!1),new Error(t.error)}).then(function(t){e.commit("completeFundraiseCreation"),e.commit("set_editing",!1),document.location.href=t.continueUrl}).catch(function(t){e.commit("set_submitting",!1),console.error("Der skete en fejl med din indsamling",t)})},deletePersonalfundraising:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/personalFundraising/[id]".replace("[id]",t.id))+"?pageId="+t.pageId,o={headers:new Headers,method:"DELETE"};e.commit("set_submitting",!0),sm(n,o).then(function(t){if(t.ok)return t.json();throw e.commit("set_submitting",!1),new Error(t.error)}).then(function(t){e.commit("set_editing",!1),document.location.href=t.continueUrl}).catch(function(t){e.commit("set_submitting",!1),console.error("Der skete en fejl med din indsamling",t)})},submitPersonalDonation:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/fundraisingCampaignDonations").replace("[pageId]",t.pageId),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"POST",body:JSON.stringify(t)},a="4"==t.paymentMethod;e.commit("set_submitting",!0),sm(n,r).then(function(t){if(t.ok)return t.json();throw e.commit("set_submitting",!1),new Error(t.error)}).then(function(t){a?(e.commit("set_editing",!1),e.commit("completePersonalDonation")):(e.commit("set_editing",!1),document.location.href=t.paymentUrl)}).catch(function(t){e.commit("set_submitting",!1),console.error("Der skete desværre en fejl med din donation",t)})},submitPersonalDonation2:function(e,t){var n=t.fundraisingCampaignId,o=t.payload,r="".concat(document.location.origin,"/").concat("da-DK/api/personalFundraising/[guid]/donations");r=r.replace("[guid]",n);var a=new Headers;a.append("Content-Type","application/json");var i={headers:a,method:"POST",body:JSON.stringify(o)};return e.commit("set_submitting",!0),sm(r,i).then(function(e){if(!e.ok)throw new Error("Donation submit failed");return e.json()}).then(function(t){if(null==t||!t.continueUrl)throw new Error("Missing continueUrl from donation API");return e.commit("set_editing",!1),document.location.href=t.continueUrl,!0}).catch(function(t){return e.commit("set_submitting",!1),console.error("Der skete en fejl med din donation",t),!1})},submitPersonalMobilePayDonation:function(e,t){var n=t.fundraisingCampaignId,o=t.payload,r="".concat(document.location.origin,"/").concat("da-DK/api/personalFundraising/[guid]/donations/mobilepay");r=r.replace("[guid]",n);var a=new Headers;a.append("Content-Type","application/json");var i={headers:a,method:"POST",body:JSON.stringify(o)};return e.commit("set_submitting",!0),sm(r,i).then(function(e){if(!e.ok)throw new Error("MobilePay donation submit failed");return e.json()}).then(function(t){if(null==t||!t.continueUrl)throw new Error("Missing continueUrl from MobilePay donation API");return e.commit("set_editing",!1),document.location.href=t.continueUrl,!0}).catch(function(t){return e.commit("set_submitting",!1),console.error("Der skete en fejl med din MobilePay donation",t),!1})},GetHighlightedDonations:function(e,t){return(n=Mm().m(function n(){var o,r,a,i,l,s,c,u;return Mm().w(function(n){for(;;)switch(n.p=n.n){case 0:return o=e.commit,r=t.fundraisingCampaignId,a=(a="".concat(document.location.origin,"/").concat("da-dk/api/fundraisingDonations/[campaignAreaId]")).replace("[campaignAreaId]",r),i={method:"GET",headers:new Headers({"Content-Type":"application/json"})},n.p=1,o("set_submitting",!0),n.n=2,sm(a,i);case 2:if((l=n.v).ok){n.n=3;break}throw new Error("Server returned status ".concat(l.status));case 3:return n.n=4,l.json();case 4:return s=n.v,c="number"==typeof s?s:Number(s),n.a(2,c);case 5:throw n.p=5,u=n.v,console.error("Failed to fetch highlighted donations:",u),u;case 6:return n.p=6,o("set_submitting",!1),n.f(6);case 7:return n.a(2)}},n,null,[[1,5,6,7]])}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){Pm(a,o,r,i,l,"next",e)}function l(e){Pm(a,o,r,i,l,"throw",e)}i(void 0)})})();var n},showReceipt:function(e,t){e.commit("completePersonalDonation")}},getters:{}};function Um(e){return function(e){if(Array.isArray(e))return jm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return jm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jm(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Hm={namespaced:!0,state:{isSubmitting:!1,errorMessage:"",personalDonationInput:null,stafetId:"",donationFor:"none",donationTeam:"",donationParticipant:"",donationFlowId:"",userInputs:[],steps:[],currentStep:1,basket:[],basketTotalPrice:0,teams:[],participants:[]},mutations:{store_personal_donation_input:function(e,t){e.personalDonationInput=t},set_stafet_id:function(e,t){e.stafetId=t},set_donation_for:function(e,t){e.donationFor=t},set_donation_team:function(e,t){e.donationTeam=t},set_donation_participant:function(e,t){e.donationParticipant=t},set_teams:function(e,t){e.teams=t},set_participants:function(e,t){e.participants=t},set_donation_flow_id:function(e,t){e.donationFlowId=t}
2,set_user_inputs:function(e,t){e.userInputs=t},set_steps:function(e,t){e.steps=t},set_current_step:function(e,t){e.currentStep=t},set_basket:function(e,t){e.basket=t},set_basket_total_price:function(e,t){e.basketTotalPrice=t},set_error_message:function(e,t){e.errorMessage=t},set_is_submitting:function(e,t){e.isSubmitting=t}},actions:{stafetId:function(e,t){e.commit("set_stafet_id",t.stafetId)},donationFor:function(e,t){e.commit("set_donation_for",t.donationFor)},donationTeam:function(e,t){e.commit("set_donation_team",t.team)},donationParticipant:function(e,t){e.commit("set_donation_participant",t.participant)},teams:function(e,t){var n="".concat(document.location.origin,"/").concat("api/holdList/[pageId]/[stafetId]".replace("[stafetId]",t.stafetId).replace("[pageId]",uh.state.main.page_id));sm(n).then(function(e){return e.json()}).then(function(t){e.commit("set_teams",t.hits)}).catch(function(e){console.error(e)})},participants:function(e,t){if(void 0===(null==t?void 0:t.teamId))e.commit("set_participants",[]);else{var n="".concat(document.location.origin,"/").concat("api/hold/[teamId]/deltagere".replace("[teamId]",t.teamId));sm(n).then(function(e){return e.json()}).then(function(t){e.commit("set_participants",t.hits)}).catch(function(e){console.error(e)})}},userInputs:function(e,t){var n=e.state.userInputs;if(0===n.length)e.commit("set_user_inputs",t.inputs);else{var o=[];n.map(function(e){t.inputs.find(function(t){return t.name===e.name})||o.push(e)}),e.commit("set_user_inputs",[].concat(o,Um(t.inputs)))}},steps:function(e,t){e.commit("set_steps",t.steps)},currentStep:function(e,t){e.commit("set_current_step",t.step)},basket:function(e,t){var n=e.state.basket,o=[];if(0===n.length)o=t.basket;else{var r=[];n.map(function(e){t.basket.find(function(t){return t.name===e.name})||r.push(e)}),o=[].concat(r,Um(t.basket))}e.commit("set_basket",o);var a=0;o.map(function(e){a+=e.intPrice}),e.commit("set_basket_total_price",a)},basketTotalPrice:function(e,t){e.commit("set_basket_total_price",t.price)},donationSubmit:function(e){var t="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/sfl/donation").replace("[pageId]",uh.state.main.page_id),n=e.state.userInputs,o=qm(n,["type","amount","holdKode","deltagerId","comment","isAnonymous","taxDeduction","cpr","cvr","companyName","companyWebsite","companyLogo"]),r=new FormData;r.append("stafetKode",e.state.stafetId),r.append("deltagerId",o.deltagerId||(o.deltagerId="")),r.append("sponsorId",o.sponsorId||(o.sponsorId="")),r.append("paymentMethod","PaymentCard"),r.append("type",o.type),r.append("amount",o.amount),r.append("holdKode",o.holdKode),r.append("comment",o.comment),r.append("isAnonymous",o.isAnonymous||(o.isAnonymous=!1)),r.append("taxDeduction",o.taxDeduction),r.append("cpr",o.cpr||(o.cpr="")),r.append("cvr",o.cvr||(o.cvr="")),r.append("supportStafet","stafet"===e.state.donationFor),r.append("supportHold","team"===e.state.donationFor),r.append("supportDeltager","participant"===e.state.donationFor),o.companyLogo&&r.append("image",o.companyLogo[0]),r.append("invoiceAddress.firstName",n.find(function(e){return"firstName"===e.name}).value),r.append("invoiceAddress.lastName",n.find(function(e){return"lastName"===e.name}).value),r.append("invoiceAddress.email",n.find(function(e){return"email"===e.name}).value),n.find(function(e){return"phone"===e.name})&&r.append("invoiceAddress.phone",n.find(function(e){return"phone"===e.name}).value),n.find(function(e){return"companyName"===e.name})&&r.append("invoiceAddress.companyName",n.find(function(e){return"companyName"===e.name}).value),n.find(function(e){return"companyWebsite"===e.name})&&r.append("invoiceAddress.companyWebsite",n.find(function(e){return"companyWebsite"===e.name}).value),n.find(function(e){return"companyAddress"===e.name})&&r.append("invoiceAddress.companyAddress",n.find(function(e){return"companyAddress"===e.name}).value),n.find(function(e){return"companyPostalCode"===e.name})&&r.append("invoiceAddress.zipCode",n.find(function(e){return"companyPostalCode"===e.name}).value),n.find(function(e){return"companyCity"===e.name})&&r.append("invoiceAddress.city",n.find(function(e){return"companyCity"===e.name}).value);var a={headers:new Headers,method:"POST",body:r};e.commit("set_is_submitting",!0),sm(t,a).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t.continueUrl}).catch(function(t){console.error("Der skete en fejl med donationen",t),e.commit("set_is_submitting",!1)})},donationStotLysSubmit:function(e){var t="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/sfl/lyspose").replace("[pageId]",uh.state.main.page_id),n=e.state.userIn
2puts,o=qm(n,["amount","ownTextLysposer","firstName","lastName","email","lysposeSubmissionModels","isAnonymous"]);o.stafetKode=e.state.stafetId,o.paymentMethod="PaymentCard",o.supportSelectorSubmissionModel={supportStafet:"stafet"===e.state.donationFor,supportHold:"team"===e.state.donationFor,holdKode:e.state.donationTeam||null,supportDeltager:"participant"===e.state.donationFor,deltagerId:e.state.donationParticipant||null};var r=new Headers;r.append("Content-Type","application/json");var a={headers:r,method:"POST",body:JSON.stringify(o)};e.commit("set_is_submitting",!0),sm(t,a).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t.continueUrl}).catch(function(t){console.error("Der skete en fejl med donationen",t),e.commit("set_is_submitting",!1)})}}};var qm=function(e,t){var n={};return e.map(function(e){t.find(function(t){return t===e.name})&&(n[e.name]=e.value)}),n};function Gm(e){window.dataLayer&&(window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e))}function Km(e){return e.reduce(function(e,t){var n,o;return e+(null!==(n=t.price)&&void 0!==n?n:0)*(null!==(o=t.quantity)&&void 0!==o?o:1)},0)}function Zm(e,t){var n,o,r,a,i,l,s,c,u=null===(n=e.variantData)||void 0===n?void 0:n.variant,d=null!==(o=null==u||null===(r=u.price)||void 0===r?void 0:r.priceAmount)&&void 0!==o?o:0,p=null==u||null===(a=u.price)||void 0===a?void 0:a.listPriceAmount,f=p&&p>d?Math.round(100*(p-d))/100:0,m={item_id:null!==(i=null==u?void 0:u.sku)&&void 0!==i?i:null===(l=e.data)||void 0===l?void 0:l.productNumber,item_name:null===(s=e.data)||void 0===s?void 0:s.title,item_brand:"cancer.dk",item_list_id:"product_grid_3col",item_list_name:"Produkt oversigt",price:d,discount:f,quantity:null!==(c=null==u?void 0:u.quantity)&&void 0!==c?c:1,index:t};return null!=u&&u.displayName&&(m.item_variant=u.displayName),m}function Wm(e){Gm({event:"add_to_cart",ecommerce:{currency:"DKK",value:Km(e),items:e}})}function $m(e){Gm({event:"remove_from_cart",google_business_vertical:"retail",ecommerce:{currency:"DKK",value:Km(e),items:e}})}function Ym(e){Gm({event:"begin_checkout",ecommerce:{currency:"DKK",value:Km(e),items:e}})}function Jm(e,t){Gm({event:"add_shipping_info",ecommerce:{currency:"DKK",value:Km(e),shipping_tier:t,items:e}})}function Xm(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Qm(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Qm(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Qm(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Qm(d,"constructor",c),Qm(c,"constructor",s),s.displayName="GeneratorFunction",Qm(c,r,"GeneratorFunction"),Qm(d),Qm(d,r,"Generator"),Qm(d,o,function(){return this}),Qm(d,"toString",function(){return"[object Generator]"}),(Xm=function(){return{w:a,m:p}})()}function Qm(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Qm=function(e,t,n,o){function a(t,n){Qm(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Qm(e,t,n,o)}function eg(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}var tg=function(e,t){var n=function(e){if(!Array.isArray(e.cart.lineItems))throw new Error("Unable to parse data for basket");var t=[];
2return e.cart.lineItems.forEach(function(e){var n=function(e){var t,n,o,r,a;return{data:{title:e.displayName,productNumber:e.sku,imageUrl:e.imageUrl,errors:{hasErrors:e.validationErrors.length>0,values:e.validationErrors}},variantData:{minAmount:e.minQuantityPerOrder,maxAmount:e.maxQuantityPerOrder,variant:{quantity:e.quantity,displayName:e.displayName,sku:e.sku,price:{displayPrice:null===(t=e.price)||void 0===t?void 0:t.discountedPrice,displayBeforePrice:null===(n=e.price)||void 0===n?void 0:n.originalPrice,priceAmount:null===(o=e.price)||void 0===o?void 0:o.totalPrice,listPriceAmount:null===(r=e.price)||void 0===r?void 0:r.originalPrice},url:e.url}},soldOut:!(null===(a=e.validationErrors)||void 0===a||!a.find(function(e){return"ItemSoldOut"===e.code})),alreadyRemoved:!1}}(e);t.push(n)}),t}(t);e.commit("SET_BASKET",n),e.commit("SET_BASKET_TOTALS",t.totals),e.commit("SET_BASKET_ERRORS",t),e.commit("SET_BASKET_CONTAINS_UDLAANSVARE",t.containsUdlaansvare)};const ng={namespaced:!0,state:{basket:[],totals:null,basketState:{hasErrors:!1,containsUdlaansvare:!1},recommendations:[]},mutations:{SET_BASKET_ERRORS:function(e,t){e.basketState.hasErrors=t.hasValidationErrors},SET_BASKET_CONTAINS_UDLAANSVARE:function(e,t){e.basketState.containsUdlaansvare=t},SET_BASKET:function(e,t){e.basket=t},SET_BASKET_TOTALS:function(e,t){var n;e.totals={productsAmount:null!==(n=null==t?void 0:t.lineItemsCount)&&void 0!==n?n:0,productsPrice:null==t?void 0:t.subTotal,discount:null==t?void 0:t.discountTotal,VAT:null==t?void 0:t.taxTotal,total:null==t?void 0:t.total,shippingTotal:null==t?void 0:t.shippingTotal,isShippingFree:null==t?void 0:t.isShippingFree,areAllItemsFree:null==t?void 0:t.areAllItemsFree,isOrderFree:null==t?void 0:t.isOrderFree}},SET_INITIAL_BASKET_TOTALS_PRODUCTS_AMOUNT:function(e,t){var n=Object.assign({},e.totals?e.totals:{},{productsAmount:t});e.totals=n},set_recommendations:function(e,t){e.recommendations=t},clear_recommendations:function(e){e.recommendations=[]}},getters:{},actions:{fetchBasket:function(e){var t="".concat(document.location.origin,"/").concat("da-DK/api/webshop/${pageId}/cart/").replace("${pageId}",e.rootState.main.page_id);return sm(t).then(function(e){if(e.ok)return e.json();throw new Error("Unable to fetch basket")}).then(function(t){tg(e,t)}).catch(function(e){return console.error(e)})},addToBasket:function(e,t){if(null!=t&&t.quantity){var n="".concat(document.location.origin,"/").concat("da-DK/api/webshop/${pageId}/cart/lines").replace("${pageId}",e.rootState.main.page_id),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"POST",body:JSON.stringify(t)};return sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error("Unable to add to basket; "+e)}).then(function(t){tg(e,t)}).catch(function(e){return console.error(e)})}console.error("Unable to add item to basket; no data")},adjustQuantity:function(e,t){if(t){t.newquantity||(t.newquantity=null);var n="".concat(document.location.origin,"/").concat("da-DK/api/webshop/${pageId}/cart/lines").replace("${pageId}",e.rootState.main.page_id),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"PUT",body:JSON.stringify(t)};return sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error("Unable to adjust quantity basket")}).then(function(t){tg(e,t)}).catch(function(e){return console.error(e)})}console.error("Unable to adjust item in basket; no data")},removeItems:function(e,t){if(Array.isArray(t)&&0!=t.length){var n=t.map(function(e){return e.sku}),o=e.state.basket.filter(function(e){var t,o;return n.includes(null===(t=e.variantData)||void 0===t||null===(t=t.variant)||void 0===t?void 0:t.sku)||n.includes(null===(o=e.data)||void 0===o?void 0:o.productNumber)}).map(function(e,t){return Zm(e,t)}),r="".concat(document.location.origin,"/").concat("da-DK/api/webshop/${pageId}/cart/lines").replace("${pageId}",e.rootState.main.page_id),a=new Headers;a.append("Content-Type","application/json");var i={headers:a,method:"DELETE",body:JSON.stringify(t)};return sm(r,i).then(function(e){if(e.ok)return e.json();throw new Error("Unable to delete item from basket")}).then(function(t){tg(e,t),o.length>0&&$m(o)}).catch(function(e){return console.error(e)})}console.error("Unable to remove items from basket; invalid data")},updateActiveDeliveryType:function(e,t){var n=function(){switch(t){case"home":return"homeDelivery";case"pickUp":return"servicePointDelivery";default:throw new Error("No delivery type selected")}}(),o="".concat(document.location.origin,"/").concat("da-DK/api/webshop/${pageId}/cart/shipping").replace("${pageId}",e.rootState.main.page_id),r=new Headers;r.append("Content-Type","application/json");var a={headers:r,method:"PUT",body:JSON.stringify(n)};sm(o,a).then(function(e){if(204==e.status)return null;if(e.ok)return e.json();throw new Error("Unable to update shipping method")}).then(function(t){t&&tg(e,t)}).catch(function(e){return console.error(e)})},getRecommendations:function(e,t){return(n=Xm().m(function n(){var o;return Xm().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin,"/").concat("da-DK/api/webshop/product/[productSku]/recommendations?take=[take]").replace("[productSku]",t.variantCode).replace("[take]",t.take),n.a(2,sm(o).then(function(e){if(e.ok)return e.json();throw new Error("Unable to fetch product recommendations")}).then(function(t){e.commit("set_recommendations",t)}).catch(function(e){return console.error(e)}))},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){eg(a,o,r,i,l,"next",e)}function l(e){eg(a,o,r,i,l,"throw",e)}i(void 0)})})();var n}}};function og(e){return og="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},og(e)}function rg(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return ag(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(ag(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ag(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,ag(d,"constructor",c),ag(c,"constructor",s),s.displayName="GeneratorFunction",ag(c,r,"GeneratorFunction"),ag(d),ag(d,r,"Generator"),ag(d,o,function(){return this}),ag(d,"toString",function(){return"[object Generator]"}),(rg=function(){return{w:a,m:p}})()}function ag(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ag=function(e,t,n,o){function a(t,n){ag(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},ag(e,t,n,o)}function ig(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function sg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lg(Object(n),!0).forEach(function(t){cg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cg(e,t,n){return(t=function(e){var t=function(e){if("object"!=og(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=og(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==og(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ug=null,dg=sessionStorage.getItem("checkoutState");if(dg){var pg=JSON.parse(dg);pg&&pg.checkoutSteps&&(ug=pg)}function fg(e){var t,n,o,r,a,i,l,s,c,u=e.purchaseData,d=function(e){switch(null===(e=u.payment.paymentData.paymentMethod)||void 0===e?void 0:e.toString()){case"1":return"MobilePay";case"2":return"PaymentCard";case"3":return"Invoice";default:return"NoPayment"}}(),p=function(){switch(u.invoice.userInformation.customerType){case"publicInstitution":return"public";case"frivillige":return"private";default:return u.invoice.userInformation.customerType}}(),f=function(){switch(e.stepTwo.activeDeliveryType){case"home":return"homeDelivery";case"pickUp":return"servicePointDelivery";default:throw new Error("No delivery type selected")}}(),m="company"==p?u.invoice.company.companyName:"public"==p?u.invoice.public.publicInstitutionNameInput:null,g="company"==p?u.invoice.company.companyDepartment:"public"==p?u.invoice.public.publicInstitutionDepartmentOrContact:null,h=null;return"servicePointDelivery"==f?h={addressOption:"Delivery",firstName:"",lastName:"",addressLine1:e.stepTwo.pickUpAddressData.addressLine,zipCode:e.stepTwo.pickUpAddressData.postalCode,city:e.stepTwo.pickUpAddressData.city,companyName:e.stepTwo.pickUpAddressData.name,department:null,servicePointId:null===(c=e.stepTwo.pickUpAddressData)||void 0===c?void 0:c.id}:e.stepTwo.showDifferentAddress&&(h={addressOption:"Delivery",firstName:u.delivery.deliveryAddress.contactFirstName,lastName:u.delivery.deliveryAddress.contactLastName,addressLine1:u.delivery.deliveryAddress.addressLine,zipCode:u.delivery.deliveryAddress.postalCode,city:u.delivery.deliveryAddress.city,companyName:u.delivery.deliveryAddress.deliveryName,department:u.delivery.deliveryAddress.deliveryDepartment}),{customerType:p,shippingMethod:f,reference:null!==(t=null===(n=u.invoice)||void 0===n||null===(n=n.public)||void 0===n?void 0:n.publicInstitutionUserId)&&void 0!==t?t:null,publicInstitutionEan:null!==(o=null===(r=u.invoice)||void 0===r||null===(r=r.public)||void 0===r?void 0:r.publicInstitutionEan)&&void 0!==o?o:null,companyCvr:null!==(a=null===(i=u.invoice)||void 0===i||null===(i=i.company)||void 0===i?void 0:i.companyCvr)&&void 0!==a?a:null,invoiceAddress:{addressOption:"Invoice",firstName:u.invoice.userInformation.contactFirstName,lastName:u.invoice.userInformation.contactLastName,addressLine1:u.invoice.invoiceAddress.addressLine,zipCode:u.invoice.invoiceAddress.postalCode,city:u.invoice.invoiceAddress.city,phone:u.invoice.userInformation.mobilePhone,email:u.invoice.userInformation.email,companyName:m,department:g},deliveryAddress:h,payment:{paymentMethod:d,bankInformation:{bankRegistrationNumber:null===(l=u.payment.paymentData.pbsData)||void 0===l?void 0:l.reg,bankAccountNumber:null===(s=u.payment.paymentData.pbsData)||void 0===s?void 0:s.acc}}}}function mg(e){var t=e.purchaseData.udlaansData;return sg(sg({},fg(e)),{}
2,{udlaansData:{startDate:null==t?void 0:t.startDate,endDate:null==t?void 0:t.endDate,comment:null==t?void 0:t.comment}})}var gg={namespaced:!0,state:sg(sg({},null!=ug?ug:{isSubmitting:!1,checkoutSteps:[{stepNumber:1,stepTitle:"Dine oplysninger",active:!0,beenFilled:!1},{stepNumber:2,stepTitle:"Levering",active:!1,beenFilled:!1},{stepNumber:3,stepTitle:"Godkend og betal",active:!1,beenFilled:!1},{stepNumber:4,stepTitle:"Kvittering",active:!1,beenFilled:!1}],stepOne:{},stepTwo:{showDifferentAddress:!1,showPickUpAddresses:!0,differentAddressData:{addressLine:"",postalCode:"",city:"",contactFirstName:"",contactLastName:"",deliveryName:"",deliveryDepartment:""},deliveryDataValidationSuccess:!0,pickUpAddressData:{},pickUpAddresses:[],activeDeliveryType:"pickUp",activeDeliveryAddress:{}},stepThree:{paymentData:{},paymentDataValidationSuccess:!1,activePaymentMethod:""},receipt:!1,purchaseData:{invoice:{invoiceAddress:{addressLine1:"",postalCode:"",city:""},userInformation:{mobilePhone:"",email:"",contactFirstName:"",contactLastName:"",customerType:"private"},company:{companyName:"",companyDepartment:"",companyCvr:""},public:{publicInstitutionNameInput:"",publicInstitutionDepartmentOrContact:"",publicInstitutionUserId:"",publicInstitutionEan:""},udlaanData:{startDate:"",endDate:"",comment:""}},delivery:{deliveryAddress:{addressLine:"",postalCode:"",city:"",contactFirstName:" ",contactLastName:" ",id:"",name:"",latitude:0,longitude:0,deliveryName:"",deliveryDepartment:""}},udlaansData:{startDate:null,endDate:null,comment:null},payment:{terms:"",paymentData:""}},error_overlay_scope:void 0}),{isSubmissionError:!1,submissionErrorMessage:""}),mutations:{set_submission_error:function(e,t){e.isSubmissionError=t.hasError,e.submissionErrorMessage=t.error.errorMessage},set_checkout_steps:function(e,t){e.checkoutSteps=t},set_udlaans_data:function(e,t){e.purchaseData.udlaansData=t,hg()},set_service_points:function(e,t){var n=Object.assign({},e.stepTwo),o=t.map(function(e){return e.id=e.servicePointId,e});n.pickUpAddresses=o,e.stepTwo=n},set_purchase_data_invoice:function(e,t){var n=Object.assign({},e.purchaseData.invoice);n=t,e.purchaseData.invoice=n,hg()},set_purchase_data_delivery:function(e,t){e.purchaseData.delivery.deliveryAddress=t,hg()},set_purchase_data_payment:function(e,t){var n=Object.assign({},e.purchaseData.payment);n=sg(sg({},n),t),e.purchaseData.payment=n,hg()},set_show_different_address:function(e,t){var n=Object.assign({},e.stepTwo);n.showDifferentAddress=t,e.stepTwo=n},set_show_pick_up_addresses:function(e,t){var n=Object.assign({},e.stepTwo);n.showPickUpAddresses=t,e.stepTwo=n},set_active_delivery_type:function(e,t){var n=Object.assign({},e.stepTwo);n.activeDeliveryType=t,e.stepTwo=n},set_active_delivery_address:function(e,t){var n=Object.assign({},e.stepTwo);n.activeDeliveryAddress=t,e.stepTwo=n},set_pick_up_address_data:function(e,t){var n=Object.assign({},e.stepTwo);n.pickUpAddressData=t,e.stepTwo=n},clear_pick_up_address_data:function(e){var t=Object.assign({},e.stepTwo);t.pickUpAddressData={},t.deliveryDataValidationSuccess=!1,e.stepTwo=t},set_different_address_data:function(e,t){var n=Object.assign({},e.stepTwo);n.differentAddressData=t,e.stepTwo=n},set_payment_data:function(e,t){var n=Object.assign({},e.stepThree);n.paymentData=t,e.stepThree=n,hg()},set_active_payment_method:function(e,t){var n=Object.assign({},e.stepThree);n.activePaymentMethod=t,e.stepThree=n},set_payment_data_validation_success:function(e,t){var n=Object.assign({},e.stepThree);n.paymentDataValidationSuccess=t,e.stepThree=n},set_delivery_data_validation_success:function(e,t){var n=Object.assign({},e.stepTwo);n.deliveryDataValidationSuccess=!!t,e.stepTwo=n},complete_purchase:function(e){e.receipt=!0},set_submitting:function(e,t){e.isSubmitting=t},update_checkout_step:function(e,t){var n,o=t.nextStepNumber,r=null===(n=e.checkoutSteps)||void 0===n?void 0:n.map(function(e){if(o)return e.stepNumber===o?sg(sg({},e),{},{active:!0}):sg(sg({},e),{},{active:!1})});e.checkoutSteps=r,hg()},update_checkout_step_been_filled:function(e,t){var n,o=null===(n=e.checkoutSteps)||void 0===n?void 0:n.map(function(e){if(t)return e.stepNumber===t||!0===e.beenFilled?sg(sg({},e),{},{beenFilled:!0}):sg(sg({},e),{},{beenFilled:!1})});e.checkoutSteps=o,hg()}},actions:{fetchServicePoints:function(e){var t=e.state.stepTwo.activeDeliveryAddress,n="".concat(document.location.origin,"/").concat("da-DK/api/webshop/delivery/servicepoints","?addressline=").concat(t.addressLine,"&zipcode=").concat(t.postalCode);sm(n).then(function(e){if(e.ok)return e.json();throw new Error("Unable to fetch service points")}).then(function(t){e.commit("set_service_points",t)}).catch(function(e){return console.error(e)})},placeOrder:function(e){var t=fg(e.state),n="".concat(document.location.origin,"/").concat("da-DK/api/webshop/${pageId}/checkout/placeorder").replace("${pageId}",e.rootState.main.page_id),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"POST",body:JSON.stringify(t)};e.commit("set_submitting",!0),sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error("Unable to place order; "+e)}).then(function(e){if(e.hasError)throw console.error(e.error),new Error("Unable to place order; "+e);window.location.href=e.continueUrl}).catch(function(t){e.commit("set_submitting",!1),console.error(t)})},placeOrderFrivillige:function(e){return(t=rg().m(function t(){var n,o,r,a;return rg().w(function(t){for(;;)switch(t.n){case 0:e.commit("set_submitting",!0),n="".concat(document.location.origin,"/").concat("da-DK/api/frivillig/web
2shop/${pageId}/checkout/placeorder").replace("${pageId}",e.rootState.main.page_id),o=JSON.stringify(mg(e.state)),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"POST",body:o},e.commit("set_submission_error",{hasError:!1,error:{}}),sm(n,a).then(function(t){return e.commit("set_submitting",!1),t.json()}).then(function(t){if(t.hasError)throw e.commit("set_submitting",!1),e.commit("set_submission_error",t),new Error("Unable to place order; "+t.error.errorMessage);window.location.href=t.continueUrl});case 1:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(o,r){var a=t.apply(e,n);function i(e){ig(a,o,r,i,l,"next",e)}function l(e){ig(a,o,r,i,l,"throw",e)}i(void 0)})})();var t}},getters:{}},hg=function(){var e=JSON.stringify(gg.state);sessionStorage.setItem("checkoutState",e)};function bg(e){return bg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bg(e)}function vg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function yg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vg(Object(n),!0).forEach(function(t){_g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _g(e,t,n){return(t=function(e){var t=function(e){if("object"!=bg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ag(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return kg(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(kg(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,kg(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,kg(d,"constructor",c),kg(c,"constructor",s),s.displayName="GeneratorFunction",kg(c,r,"GeneratorFunction"),kg(d),kg(d,r,"Generator"),kg(d,o,function(){return this}),kg(d,"toString",function(){return"[object Generator]"}),(Ag=function(){return{w:a,m:p}})()}function kg(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}kg=function(e,t,n,o){function a(t,n){kg(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},kg(e,t,n,o)}function xg(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function wg(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){xg(a,o,r,i,l,"next",e)}function l(e){xg(a,o,r,i,l,"throw",e)}i(void 0)})}}function Cg(e){return function(e){if(Array.isArray(e))return Eg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Eg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eg(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}window.onbeforeunload=function(){hg()};const Sg={namespaced:!0,state:{is_submitting:!1,member_list_data:{totalHits:0,memberList:[]},member_data:{id:"",details:[],memberName:"",memberRoles:[],memberImgSrc:"",memberProfileText:"",memberImgAlt:"",answerLink:""},member_group_id:100,selected_member_id:2828,active_member_id:8282,active_group_id:300,direct_messages_bootstrapped:!1,direct_message_thread_id:"",direct_message_thread_loading_id:"",direct_message_thread_data:[],direct_message_threads:[],direct_message_threads_data:{},direct_message_threads_take:25,set_add_users_data:[],new_chat_users:[],show_user_search:!1,theme_statistics:{},group_statistics:{},post_statistics:{},post_latest_comment:{},post_comments:{}},mutations:{set_member_list_data:function(e,t){e.member_list_data=t},set_member_data:function(e,t){e.member_data=t},set_is_submitting:function(e,t){e.is_submitting=t},set_direct_messages_bootstrapped:function(e,t){e.direct_messages_bootstrapped=t},set_direct_message_thread_id:function(e,t){e.direct_message_thread_id=t},set_direct_message_thread_loading_id:function(e,t){e.direct_message_thread_loading_id=t},set_direct_message_thread_data:function(e,t){e.direct_message_thread_data=t},set_direct_message_threads:function(e,t){e.direct_message_threads=[].concat(Cg(e.direct_message_threads),Cg(t))},reset_direct_message_threads:function(e,t){e.direct_message_threads=t},set_direct_message_threads_data:function(e,t){e.direct_message_threads_data=t},set_direct_message_threads_take:function(e,t){e.direct_message_threads_take=t},set_add_users_data:function(e,t){e.add_users_data=t},set_theme_statistics:function(e,t){e.theme_statistics[t.themeId]=t.statistics},set_group_statistics:function(e,t){e.group_statistics[t.groupId]=t.statistics},set_post_statistics:function(e,t){e.post_statistics[t.postId]=t.statistics},set_post_latest_comment:function(e,t){e.post_latest_comment[t.postId]=t.latest_comment},set_post_comments:function(e,t){e.post_comments[t.postId]=t.comments},set_new_chat_users:function(e,t){e.new_chat_users=t},set_show_user_search:function(e,t){e.show_user_search=t}},actions:{getGroupStatistics:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("da-DK/api/group/[groupId]/statistics".replace("[groupId]",t.groupId)),n.n=1,um(o);case 1:r=n.v,e.commit("set_group_statistics",{statistics:r,groupId:t.groupId});case 2:return n.a(2)}},n)}))()},getThemeStatistics:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("da-DK/api/theme/[themeId]/statistics".replace("[themeId]",t.themeId)),n.n=1,um(o);case 1:r=n.v,e.commit("set_theme_statistics",{statistics:r,themeId:t.themeId});case 2:return n.a(2)}},n)}))()},getPostStatistics:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/post/[postId]/statistics".replace("[postId]",t.postId)),n.n=1,um(o);case 1:r=n.v,e.commit("set_post_statistics",{statistics:r,postId:t.postId});case 2:return n.a(2)}},n)}))()},getPostLatestComment:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/post/[postId]/latest-comment".replace("[postId]",t.postId)),n.n=1,um(o);case 1:r=n.v,e.commit("set_post_latest_comment",{latest_comment:r,postId:t.postId});case 2:return n.a(2)}},n)}))()},getPostComments:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/post/[postId]/comments?pageId=[pageId]".replace("[postId]",t.postId).replace("[pageId]",t.pageId)),n.n=1,um(o);case 1:r=n.v,e.commit("set_post_comments",{comments:r,postId:t.postId});case 2:return n.a(2)}},n)}))()},getMemberListData:function(e,t){return wg(Ag().m(function n(){var o,r,a;return Ag().w(function(n){for(;;)switch(n.n){case 0:return e.commit("set_is_submitting",!0),o="".concat(document.location.origin,"/")+"".concat("da-DK/api/member-list-data/[groupid]".replace("[groupid]",t.id))+"?skip=".concat(t.skip,"&take=").concat(t.take),n.n=1,um(o);case 1:r=n.v,0===t.skip?e.commit("set_member_list_data",r):e.commit("set_member_list_data",yg(yg({},r),{},{memberList:null===(a=e.state.member_list_data.memberList)||void 0===a?void 0:a.concat(r.memberList)})),e.commit("set_is_submitting",!1);case 2:return n.a(2)}},n)}))()},getMemberData:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return e.commit("set_is_submitting",!0),o="".concat(document.location.origin,"/").concat("da-DK/api/member-data/[id]".replace("[id]",t.userId)
2),n.n=1,um(o);case 1:r=n.v,e.commit("set_member_data",r),e.commit("set_is_submitting",!1);case 2:return n.a(2)}},n)}))()},getDirectMessageThreads:function(e,t){return wg(Ag().m(function n(){var o,r,a,i,l,s,c,u;return Ag().w(function(n){for(;;)switch(n.n){case 0:if(e.commit("set_is_submitting",!0),t.userId){n.n=1;break}return n.a(2);case 1:return a="".concat(document.location.origin,"/")+"".concat("api/community/user/[userId]/chats").replace("[userId]",t.userId)+"?skip=".concat(t.skip,"&take=").concat(t.take),n.n=2,um(a);case 2:if(i=n.v,l=null!==(o=null==i?void 0:i.hits)&&void 0!==o?o:[],0===t.skip?e.commit("reset_direct_message_threads",l):e.commit("set_direct_message_threads",l),e.commit("set_direct_message_threads_data",{totalHits:null!==(r=null==i?void 0:i.totalHits)&&void 0!==r?r:0}),!t.toProfileId){n.n=4;break}return s="".concat(document.location.origin,"/").concat("da-DK/api/member-data/[id]").replace("[id]",t.toProfileId),n.n=3,um(s);case 3:c=n.v,e.commit("set_new_chat_users",[c]),n.n=5;break;case 4:l.length>0&&t.loadFirstChat&&(e.dispatch("clearDirectMessageThread"),e.dispatch("getDirectMessageThreadData",{chatId:null!==(u=t.chatId)&&void 0!==u?u:i.hits[0].id}));case 5:e.commit("set_is_submitting",!1);case 6:return n.a(2)}},n)}))()},refreshDirectMessageThreads:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return e.commit("set_is_submitting",!0),o="".concat(document.location.origin,"/")+"".concat("api/community/user/[userId]/chats").replace("[userId]",t.userId)+"?skip=".concat(0,"&take=",e.state.direct_message_threads_take),n.n=1,um(o);case 1:r=n.v,e.commit("reset_direct_message_threads",r.hits),e.commit("set_direct_message_threads_data",{totalHits:r.totalHits}),e.commit("set_is_submitting",!1);case 2:return n.a(2)}},n)}))()},submitSavePost:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/community/post/[postId]/save".replace("[postId]",t.id)),o=JSON.stringify(t.save),e.n=1,dm(n,o);case 1:return e.a(2,e.v)}},e)}))()},submitNewComment:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/community/post/[postId]/comment/create".replace("[postId]",t.id)),e.n=1,dm(n,t.body,null,!0);case 1:return o=e.v,e.a(2,o)}},e)}))()},submitNewSubComment:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return e.commit("set_is_submitting",!0),o="".concat(document.location.origin,"/").concat("api/community/comment/[commentId]/subcomment/create".replace("[commentId]",t.id)),n.n=1,dm(o,t.body,null,!0);case 1:return r=n.v,e.commit("set_is_submitting",!1),n.a(2,r)}},n)}))()},submitDeleteComment:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/community/comment/[commentId]/delete".replace("[commentId]",t.id)),e.n=1,dm(n);case 1:return o=e.v,e.a(2,o)}},e)}))()},submitEditComment:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/community/comment/[commentId]/edit".replace("[commentId]",t.id)),e.n=1,dm(n,t.body,null,!0);case 1:return(o=e.v).success&&location.reload(),e.a(2,o)}},e)}))()},submitMemberApplication:function(e,t){return wg(Ag().m(function n(){var o,r,a,i;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o=document.location.origin,r="da-DK/api/forumMemberApplication/[id]/[groupid]".replace("[id]",e.state.active_member_id).replace("[groupid]",t.id),a="".concat(o,"/").concat(r),i='"'.concat(btoa(unescape(encodeURIComponent(t.body.content))),'"'),n.n=1,dm(a,i);case 1:return n.a(2,n.v)}},n)}))()},removeForumProfilePicture:function(e,t){return wg(Ag().m(function e(){var n;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/forumProfilePicture/[id]".replace("[id]",t.id)),e.n=1,pm(n,null,
2null,!0);case 1:return e.a(2,e.v)}},e)}))()},submitForumProfilePicture:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/submitForumProfilePicture/[id]".replace("[id]",t.id)),o=t.formData,e.n=1,dm(n,o,null,!0);case 1:return e.a(2,e.v)}},e)}))()},submitCreatePost:function(e,t){return wg(Ag().m(function e(){var n;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/community/post/[postId]/create".replace("[postId]",t.id)),e.n=1,dm(n,t.body,null,!0);case 1:return e.a(2,e.v)}},e)}))()},submitEditPost:function(e,t){return wg(Ag().m(function e(){var n;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/community/post/[postId]/edit".replace("[postId]",t.postId)),e.n=1,dm(n,t.body,null,!0);case 1:return e.a(2,e.v)}},e)}))()},deletePost:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/community/post/[postId]/delete".replace("[postId]",t.id)),e.n=1,pm(n,"");case 1:return(o=e.v).continueUrl&&(window.location.href=o.continueUrl),e.a(2,o)}},e)}))()},submitCreateGallery:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/createGallery/[id]".replace("[id]",t.id)),o=JSON.stringify(t.body),e.n=1,dm(n,o);case 1:return e.a(2,e.v)}},e)}))()},submitSaveProfile:function(e,t){return wg(Ag().m(function n(){var o,r,a;return Ag().w(function(n){for(;;)switch(n.n){case 0:return e.commit("set_is_submitting",!0),o="".concat(document.location.origin,"/").concat("da-DK/api/saveProfile"),r=JSON.stringify(t.body),n.n=1,dm(o,r);case 1:return a=n.v,e.commit("set_is_submitting",!1),n.a(2,a)}},n)}))()},submitEditGallery:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/editGallery/[id]".replace("[id]",t.id)),o=JSON.stringify(t.body),e.n=1,dm(n,o);case 1:return e.a(2,e.v)}},e)}))()},getDirectMessageThreadData:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:if(e.state.direct_message_thread_loading_id!==t.chatId){n.n=1;break}return n.a(2);case 1:return e.commit("set_direct_message_thread_loading_id",t.chatId),e.commit("set_is_submitting",!0),o="".concat(document.location.origin,"/").concat("api/community/chat/[chatId]".replace("[chatId]",t.chatId)),e.commit("set_direct_message_thread_id",t.chatId),n.n=2,um(o);case 2:r=n.v,e.commit("set_direct_message_thread_data",r),e.commit("set_direct_message_thread_loading_id",""),e.commit("set_is_submitting",!1);case 3:return n.a(2)}},n)}))()},submitDirectMessageThreadComment:function(e,t){return wg(Ag().m(function n(){var o,r,a,i,l;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/chat/[chatId]/message/create".replace("[chatId]",t.chatId)),(r=new FormData).append("text",t.text),t.files.forEach(function(e){r.append("filesToAdd",e)}),n.n=1,dm(o,r,null,!0);case 1:return a=n.v,i=e.dispatch("getDirectMessageThreadData",{chatId:t.chatId}),l=e.dispatch("refreshDirectMessageThreads",{userId:t.userId}),n.n=2,Promise.all([i,l]);case 2:return n.a(2,a)}},n)}))()},editDirectMessageThreadComment:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/chat/[chatId]/message/[commentId]/edit".replace("[commentId]",t.commentId).replace("[chatId]",t.chatId)),n.n=1,dm(o,t.body,null,!0);case 1:return r=n.v,e.dispatch("getDirectMessageThreadData",{chatId:t.chatId}),e.dispatch("refreshDirectMessageThreads",{userId:t.userId}),n.a(2,r)}},n)}))()},deleteDirectMessageThreadComment:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/chat/[chatId]/message/[commentId]/delete".replace("[commentId]",t.commentId).replace("[chatId]",t.chatId)),n.n=1,dm(o,null,null,null,null,!0);case 1:return r=n.v,e.dispatch("getDirectMessageThreadData",{chatId:t.chatId}),e.dispatch("refreshDirectMessageThreads",{userId:t.userId}),n.a(2,r)}},n)}))()},deleteDirectMessageThread:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/chat/[chatId]/delete".replace("[chatId]",t.chatId)),n.n=1,dm(o,null,null,null,null,!0);case 1:return r=n.v,e.commit("set_direct_message_thread_id",""),n.a(2,r)}},n)}))()},searchForUser:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:if(""===t.query){n.n=2;break}return o="".concat(document.location.origin,"/").concat("api/community/chat/users/search?p=[query]&take=[take]").replace("[query]",t.query).replace("[take]",t.take),n.n=1,um(o);case 1:return r=n.v,e.commit("set_add_users_data",r.hits),n.a(2,r);case 2:return n.a(2)}},n)}))()},clearSearchForUser:function(e){e.commit("set_add_users_data",[])},createNewDirectMessageThread:function(e,t){return wg(Ag().m(function n(){var o,r,a,i,l;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/chat/create"),r=new FormData,t.userIds.forEach(function(e,t){r.append("userIds[".concat(t,"]"),e)}
2),r.append("message",t.message),t.files.forEach(function(e){r.append("files",e)}),n.n=1,dm(o,r,null,!0);case 1:return a=n.v,e.dispatch("clearDirectMessageThread"),i=e.dispatch("getDirectMessageThreadData",{chatId:a.chatId}),l=e.dispatch("refreshDirectMessageThreads",{userId:t.userId}),n.n=2,Promise.all([i,l]);case 2:return n.a(2)}},n)}))()},findChatWithUser:function(e,t){return wg(Ag().m(function e(){var n,o,r;return Ag().w(function(e){for(;;)switch(e.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/chat/find-with-user","?profileId=").concat(t.profileId),e.n=1,um(o);case 1:return r=e.v,e.a(2,null!==(n=null==r?void 0:r.chatId)&&void 0!==n?n:null)}},e)}))()},setupNewChatRecipient:function(e,t){return wg(Ag().m(function n(){var o,r;return Ag().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/community/chat/member-profile","?profileId=").concat(t.profileId),n.n=1,um(o);case 1:(r=n.v)&&!r.hasError&&r.id&&e.commit("set_new_chat_users",[r]);case 2:return n.a(2)}},n)}))()},clearDirectMessageThread:function(e){e.commit("set_add_users_data",[]),e.commit("set_show_user_search",!1),e.commit("set_new_chat_users",[]),e.commit("set_direct_message_thread_id",""),e.commit("set_direct_message_thread_loading_id",""),e.commit("set_direct_message_thread_data",{chat:[],chatIcon:"",chatName:"",id:""})},leaveGroup:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/community/user/groups/[groupId]/leave".replace("[groupId]",t.groupId)),o=function(e){console.log("callback",e),window.location.href=e.returnUrl},e.n=1,dm(n,null,o);case 1:return e.a(2,e.v)}},e)}))()},rejectNotification:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/notifications/[id]/reject".replace("[id]",t.notificationId)),o=JSON.stringify(t.body),e.n=1,dm(n,o,t.callback);case 1:return e.a(2,e.v)}},e)}))()},approveNotification:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/notifications/[id]/approve".replace("[id]",t.notificationId)),o=JSON.stringify(t.body),e.n=1,dm(n,o,t.callback);case 1:return e.a(2,e.v)}},e)}))()},rejectGruppeadgangsanmodning:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/gruppeadgangsanmodninger/[id]/reject".replace("[id]",t.gruppeadgangsanmodningId)),o=JSON.stringify(t.body),e.n=1,dm(n,o,t.callback);case 1:return e.a(2,e.v)}},e)}))()},approveGruppeadgangsanmodning:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/gruppeadgangsanmodninger/[id]/approve".replace("[id]",t.gruppeadgangsanmodningId)),o=JSON.stringify(t.body),e.n=1,dm(n,o,t.callback);case 1:return e.a(2,e.v)}},e)}))()},createCancerForumProfile:function(e,t){return wg(Ag().m(function e(){var n,o,r;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/cancerforum/profile/create"),o=JSON.stringify(t.body),e.n=1,dm(n,o,null,null,t.pageId);case 1:return(r=e.v).continueUrl&&(window.location.href=r.continueUrl),e.a(2,r)}},e)}))()},deleteCancerProfile:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/deleteForumProfile/[id]".replace("[id]",t.id)),e.n=1,pm(n);case 1:return(o=e.v).success&&(window.location.href=o.continueUrl),e.a(2,o)}},e)}))()},deleteCancerProfileAndData:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/deleteForumProfileAndData/[id]".replace("[id]",t.id)),e.n=1,pm(n);case 1:return(o=e.v).success&&(window.location.href=o.continueUrl),e.a(2,o)}},e)}))()},createEvent:function(e,t){return wg(Ag().m(function e(){var n,o,r;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/createEvent"),o=JSON.stringify(t.body),e.n=1,dm(n,o);case 1:return(r=e.v).success&&(window.location.href=r.continueUrl),e.a(2,r)}},e)}))()},editEvent:function(e,t){return wg(Ag().m(function e(){var n,o,r;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat({POSTMETHOD:"POST",PUTMETHOD:"PUT",DELETEMETHOD:"DELETE",PATCHMETHOD:"PATCH",ENVIRONMENT:"PRODUCTION",GETMETHOD:"GET",GENERAL_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",
2EVENT_SEARCH:"da-DK/api/[pageId]/activityApi/search/[guid]",COUNSELLING_SEARCH:"da-DK/api/counsellingCenterApi/search/[guid]",PATIENT_ASSOCIATIONS_SEARCH:"da-DK/api/patientAssociationsApi/search/[guid]",DOCUMENT_LIST_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",AUTOCOMPLETE:"da-DK/api/searchApi/autocomplete",DICTIONARY_BASE_URL:"da-DK/api/dictionary/word",EVENTSIGNUP:"/api/activities/signup",FUNDRAISING_SEARCH:"da-DK/api/personalFundraising/search/[guid]",DONATION_SEARCH:"da-DK/api/personalFundraising/search/[guid]/donations",GALLERY_SEARCH:"",CREATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPDATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",DELETE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPLOAD_FUNDRAISEIMAGES:"da-DK/api/personalFundraising/[id]/image",SUBMIT_DONATION:"da-DK/api/[pageId]/fundraisingCampaignDonations",SUBMIT_PERSONAL_DONATION:"da-DK/api/personalFundraising/[guid]/donations",SUBMIT_PERSONAL_MOBILEPAY_DONATION:"da-DK/api/personalFundraising/[guid]/donations/mobilepay",DISCARDFUNDRAISEIMAGE:"/api/discard-fundraise-image.json",GET_PURCHASE_DATA:"da-DK/api/tracking/purchaseeventdata",PROJECTS_SEARCH:"da-DK/api/[pageId]/projectApi/search/[guid]",GET_USERPROFILE_FUNDRAISING_CAMPAIGNS:"da-DK/api/personalFundraising/search/userprofile/[userProfileId]",GET_PERSONAL_FUNDRAISING_DASHBOARD:"da-DK/api/personalFundraising/dashboard/[userProfileId]",GET_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",UPDATE_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",GET_DONATIONS:"da-dk/api/fundraisingDonations/[campaignAreaId]",GET_RELAY_LIST:"api/stafetter/[pageId]",GET_STAFET_PARTICIPANTS:"api/hold/[teamId]/deltagere",GET_STAFET_TEAM_LIST:"api/holdList/[pageId]/[stafetId]",SUBMIT_STAFET_CREATE_HOLD:"da-DK/api/[pageId]/hold/?stafetKode=[stafetKode]&previousHoldkode=[previousHoldkode]",SUBMIT_STAFET_EDIT_HOLD:"da-DK/api/[pageId]/hold/[holdKode]",SUBMIT_STAFET_DONATION:"da-DK/api/[pageId]/sfl/donation",SUBMIT_STAFET_STOT_LYS_DONATION:"da-DK/api/[pageId]/sfl/lyspose",SUBMIT_STAFET_DELTAG_PAA_HOLD:"da-DK/api/[pageId]/sfl/deltager",SUBMIT_STAFET_DELTAG_SOM_FIGHTER:"da-DK/api/[pageId]/sfl/fighter",SUBMIT_STAFET_ADD_DELTAGERE:"da-DK/api/[pageId]/sfl/add-deltagere",GET_STAFET_TEAM_LIGHTS:"api/hold/[holdKode]/lysposer?skip=[skip]&take=[take]",GET_STAFET_TEAM_DONATIONS:"api/hold/[holdKode]/donationer",GET_STAFET_TEAM_DONATIONS_PAGINATED:"api/hold/[holdKode]/donationerPaginated?offsetDonationer=[offsetDonationer]&offsetAdmissions=[offsetAdmissions]&limit=[limit]",GET_STAFET_TEAM_PARTICIPANT_DETAILS:"api/hold/[holdKode]/deltagere",GET_PREVIOUS_TEAMS_LIST:"/api/hold-list/profile/previous-hold?newStafetkode=[newStafetkode]",GET_PROFILE_TEAMS_LIST:"api/hold-list/profile/hold/[pageId]",SUBMIT_STAFET_PROFILE_CREATE:"da-DK/api/sfl/profile/create",SUBMIT_STAFET_PROFILE_UPDATED:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_PROFILE_DELETE:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_ROUND_COUNTER:"api/[pageId]/hold/[holdKode]/runderegistrering",SUBMIT_STAFET_SEND_EMAIL:"api/sfl/mailudsendelse",SUBMIT_STAFET_RESEND_EMAIL:"api/sfl/mailudsendelse/resend",STAFET_GET_MAILUDSENDELSE_ATTACHMENT:"api/sfl/mailudsendelse/attachment/[attachmentId]",STAFET_GET_PROFILE_HOLDKAPTAJN_HOLD:"api/hold-list/profile/[userProfileId]/holdkaptajn-hold",STAFET_GET_MAILUDSENDELSE_NEW_RECIPIENTS_COUNT:"api/sfl/mailudsendelse/[mailudsendelseId]/new-recipients-count",COMMUNITY_CHAT_SEARCH_USERS:"api/community/chat/users/search?p=[query]&take=[take]",COMMUNITY_GET_USER_CHATS:"api/community/user/[userId]/chats",COMMUNITY_GET_CHAT:"api/community/chat/[chatId]",COMMUNITY_CREATE_CHAT:"api/community/chat/create",COMMUNITY_FIND_CHAT_WITH_USER:"api/community/chat/find-with-user",COMMUNITY_GET_CHAT_MEMBER_PROFILE:"api/community/chat/member-profile",COMMUNITY_DELETE_CHAT:"api/community/chat/[chatId]/delete",COMMUNITY_CREATE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/create",COMMUNITY_EDIT_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/edit",COMMUNITY_DELETE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/delete",COMMUNITY_CREATE_COMMENT:"api/community/post/[postId]/comment/create",COMMUNITY_CREATE_SUBCOMMENT:"api/community/comment/[commentId]/subcomment/create",COMMUNITY_EDIT_COMMENT:"api/community/comment/[commentId]/edit",COMMUNITY_DELETE_COMMENT:"api/community/comment/[commentId]/delete",COMMUNITY_GET_NOTIFICATIONS:"api/community/notifications",COMMUNITY_GET_POSTS:"api/community/posts",COMMUNITY_CREATE_POST:"api/community/post/[postId]/create",COMMUNITY_EDIT_PO
2ST:"api/community/post/[postId]/edit",COMMUNITY_DELETE_POST:"api/community/post/[postId]/delete",COMMUNITY_SAVE_POST:"api/community/post/[postId]/save",COMMUNITY_GET_POST_LATEST_COMMENT:"api/community/post/[postId]/latest-comment",COMMUNITY_GET_POST_STATISTICS:"api/community/post/[postId]/statistics",COMMUNITY_GET_POST_COMMENTS:"api/community/post/[postId]/comments?pageId=[pageId]",COMMUNITY_GET_USER_GROUPS:"api/community/user/groups?pageId=[pageId]",COMMUNITY_LEAVE_GROUP:"api/community/user/groups/[groupId]/leave",COMMUNITY_GET_USER_POSTS:"api/community/user/posts",COMMUNITY_GET_USER_SAVED_POSTS:"api/community/user/posts/saved",GET_GROUP_SEARCH_RESULT:"da-DK/api/groupSearch/search/[pageId]/[guid]",SUBMIT_CREATE_GALLERY:"da-DK/api/createGallery/[id]",SUBMIT_EDIT_GALLERY:"da-DK/api/editGallery/[id]",FORUM_MEMBER_DATA:"da-DK/api/member-data/[id]",FORUM_MEMBER_LIST_DATA:"da-DK/api/member-list-data/[groupid]",SUBMIT_FORUM_MEMBER_APPLICATION:"da-DK/api/forumMemberApplication/[id]/[groupid]",FORUM_SUBMIT_EDIT_PROFILE:"da-DK/api/saveProfile",SUBMIT_FORUM_PROFILE_PICTURE:"da-DK/api/submitForumProfilePicture/[id]",FORUM_PROFILE_PICTURE:"da-DK/api/forumProfilePicture/[id]",GET_GRUPPEADGANGSANMODNINGER:"api/gruppeadgangsanmodninger",APPROVE_NOTIFICATION:"api/notifications/[id]/approve",REJECT_NOTIFICATION:"api/notifications/[id]/reject",APPROVE_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/approve",REJECT_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/reject",SUBMIT_CREATE_FORUM_PROFILE:"da-DK/api/cancerforum/profile/create",DELETE_CANCER_PROFILE:"da-DK/api/deleteForumProfile/[id]",DELETE_CANCER_PROFILE_AND_DATA:"da-DK/api/deleteForumProfileAndData/[id]",GET_THEME_STATISTICS:"da-DK/api/theme/[themeId]/statistics",GET_GROUP_STATISTICS:"da-DK/api/group/[groupId]/statistics",FORUM_JOIN_GROUP:"da-DK/api/join-open-group-redirect/[groupId]",CANCERFORUM_SEARCH:"da-DK/api/[pageId]/cancerforum/search",FRIVILLIGE_GROUPS_SEARCH:"api/frivillig/[pageId]/groups",FRIVILLIGE_GROUPS_HOVEDGRUPPE_SEARCH:"api/frivillig/[pageId]/hovedgruppe/[hovedgruppekode]/groups",FRIVILLIGE_MEMBER_LIST_DATA:"da-DK/api/getMemberListData/[group_id]",FRIVILLIGE_MEMBER_DATA:"da-DK/api/getMemberData/[id]",FRIVILLIGE_MEMBER_REQUEST_ROLES_DATA:"da-DK/api/getMemberRequestRolesData/[id]",FRIVILLIGE_MEMBER_REMOVE:"api/frivillig/groups/[gruppeKode]/medlemmer/[member_id]",FRIVILLIGE_FOLDER_DROPDOWN_OPTIONS:"api/frivillig/valid-move-options",GET_FILES_LIST:"api/frivillig/[pageId]/[gruppeKode]/dokumenter",SUBMIT_CREATE_NEW_FILE:"api/frivillig/dokumenter/template",SUBMIT_UPLOAD_NEW_FILE:"api/frivillig/dokumenter",SUBMIT_MOVE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_EDIT_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_DELETE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_CREATE_FOLDER:"api/frivillig/mapper",SUBMIT_EDIT_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_MOVE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_DELETE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_CONFIRM_DELETE_PROFILE:"da-DK/api/submitConfirmDeleteProfile/[group_id]/[member_id]",SUBMIT_CONFIRM_DELETE_MEMBER:"da-DK/api/submitConfirmDeleteMember/[group_id]/[member_id]",ORDRE_OVERVIEW:"da-DK/api/ordreOverview/[id]",CREATE_EVENT:"da-DK/api/createEvent",FRIVILLIGE_GROUP_EVENTS:"api/frivillig/[pageId]/groups/[groupId]/events",EDIT_EVENT:"da-DK/api/editEvent/[id]",CALENDAR_OVERLAY:"da-DK/api/calendarOverlay",EDIT_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil",CREATE_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil/create",GET_FRIVILLIGPROFIL_CARD_DATA:"da-DK/api/frivillig/[pageId]/profil/[id]/frivilligprofilCard",FRIVILLIGE_GROUP_EVENT:"api/frivillig/[pageId]/groupEvents/[eventId]",FRIVILLIG_PRODUCT_SEARCH:"da-DK/api/frivillig/[pageId]/productSearchApi/searchWithRoleInformation/[guid]",FRIVILLIG_PRODUCT_LIST_SEARCH:"da-DK/api/frivillig/[pageId]/productListSearchApi/searchWithRoleInformation/[guid]",FRIVILLIGE_GROUP_EVENT_EDIT:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIGE_GROUP_EVENT_GET:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIG_GROUP_MEDLEMMER_GET:"api/frivillig/[pageId]/groups/[groupId]/medlemmer",FRIVILLIGE_WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/frivillig/web
2shop/${pageId}/checkout/placeorder",FRIVILLIGPROFIL_ROLLER_GET:"da-DK/api/frivillig/profil/roller/[aktivitetsId]",FRIVILLIGPROFIL_GRUPPER_GET:"da-DK/api/frivillig/profil/grupper/[aktivitetsId]",DELETE_FRIVILLIGPROFIL:"da-DK/api/frivillig/[pageId]/profil/[guid]",FRIVILLIGPROFIL_AKTIVITETER_GET:"da-DK/api/frivillig/profil/aktiviteter",FRIVILLIGPROFIL_PICTURE_GET:"api/frivillig/profil/image/?fpid=[id]",SUBMIT_GROUP_ACCESS_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning",DELETE_ROLE_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning/[id]",SUBMIT_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling",DELETE_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling/[id]",FRIVILLIGE_JOIN_GROUP:"api/frivillig/groups/[gruppeKode]/join",SUBMIT_FRIVILLIG_PROFILE_PICTURE:"api/frivillig/profil/image",PROFILE_HAS_FRIVILLIG_ORDERS:"api/frivillig/profil/[userProfileId]/has-frivillig-orders",FRIVILLIGJOB_CREATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_UPDATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_IMAGE_UPDATE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_GET:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_SEARCH:"api/frivillig/frivilligjob/search",FRIVILLIGJOB_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]",FRIVILLIGJOB_GRUPPEEMNER_GET:"api/frivillig/frivilligjob/[frivilligjobId]/gruppeemner",LOTTERY_GET_RESULT:"api/lottery/round/[roundNumber]/ticket/[lotteryTicketId]",PRODUCT_RECOMMENDATIONS:"da-DK/api/webshop/product/[productSku]/recommendations?take=[take]",PRODUCT_SEARCH:"da-DK/api/productSearchApi/search/[guid]",PRODUCT_LIST_SEARCH:"da-DK/api/productListSearchApi/search/[guid]",WEBSHOP_BASKET:"da-DK/api/webshop/${pageId}/cart/",WEBSHOP_BASKET_LINE:"da-DK/api/webshop/${pageId}/cart/lines",WEBSHOP_BASKET_SHIPPING:"da-DK/api/webshop/${pageId}/cart/shipping",WEBSHOP_SERVICEPOINTS:"da-DK/api/webshop/delivery/servicepoints",WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/webshop/${pageId}/checkout/placeorder",MITID_LOGOUT:"api/mitid/logout",SOURCE_REFERENCES:"da-DK/api/source/[sourceId]/references?skip=[skip]&take=[take]"}.EVENT_EDIT.replace("[id]",t.id)),o=JSON.stringify(t.body),e.n=1,dm(n,o);case 1:return(r=e.v).success&&(window.location.href=r.continueUrl),e.a(2,r)}},e)}))()},deleteEvent:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat({POSTMETHOD:"POST",PUTMETHOD:"PUT",DELETEMETHOD:"DELETE",PATCHMETHOD:"PATCH",ENVIRONMENT:"PRODUCTION",GETMETHOD:"GET",GENERAL_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",EVENT_SEARCH:"da-DK/api/[pageId]/activityApi/search/[guid]",COUNSELLING_SEARCH:"da-DK/api/counsellingCenterApi/search/[guid]",PATIENT_ASSOCIATIONS_SEARCH:"da-DK/api/patientAssociationsApi/search/[guid]",DOCUMENT_LIST_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",AUTOCOMPLETE:"da-DK/api/searchApi/autocomplete",DICTIONARY_BASE_URL:"da-DK/api/dictionary/word",EVENTSIGNUP:"/api/activities/signup",FUNDRAISING_SEARCH:"da-DK/api/personalFundraising/search/[guid]",DONATION_SEARCH:"da-DK/api/personalFundraising/search/[guid]/donations",GALLERY_SEARCH:"",CREATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPDATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",DELETE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPLOAD_FUNDRAISEIMAGES:"da-DK/api/personalFundraising/[id]/image",SUBMIT_DONATION:"da-DK/api/[pageId]/fundraisingCampaignDonations",SUBMIT_PERSONAL_DONATION:"da-DK/api/personalFundraising/[guid]/donations",SUBMIT_PERSONAL_MOBILEPAY_DONATION:"da-DK/api/personalFundraising/[guid]/donations/mobilepay",DISCARDFUNDRAISEIMAGE:"/api/discard-fundraise-image.json",GET_PURCHASE_DATA:"da-DK/api/tracking/purchaseeventdata",PROJECTS_SEARCH:"da-DK/api/[pageId]/projectApi/search/[guid]",GET_USERPROFILE_FUNDRAISING_CAMPAIGNS:"da-DK/api/personalFundraising/search/userprofile/[userProfileId]",GET_PERSONAL_FUNDRAISING_DASHBOARD:"da-DK/api/personalFundraising/dashboard/[userProfileId]",GET_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",UPDATE_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",GET_DONATIONS:"da-dk/api/fundraisingDonations/[campaignAreaId]",GET_RELAY_LIST:"api/stafetter/[pageId]",GET_STAFET_PARTICIPANTS:"api/hold/[teamId]/deltagere",GET_STAFET_TEAM_LIST:"api/holdList/[pageId]/[stafetId]",SUBMIT_STAFET_CREATE_HOLD:"da-DK/api/[pageId]/hold/?stafetKode=[stafetKode]&previousHoldkode=[previousHoldkode]",SUBMIT_STAFET_EDIT_HOLD:"da-DK/api/[pageId]/hold/[holdKode]",SUBMIT_STAFET_DONATION:"da-DK/api/[pageId]/sfl/donation",SUBMIT_STAFET_STOT_LYS_DONATION:"da-DK/api/[pageId]/sfl/lyspose",SUBMIT_STAFET_DELTAG_PAA_HOLD:"da-DK/api/[pageId]/sfl/deltager",SUBMIT_STAFET_DELTAG_SOM_FIGHTER:"da-DK/api/[pageId]/sfl/fighter",SUBMIT_STAFET_ADD_DELTAGERE:"da-DK/api/[pageId]/sfl/add-deltagere",GET_STAFET_TEAM_LIGHTS:"api/hold/[holdKode]/lysposer?skip=[skip]&take=[take]",GET_STAFET_TEAM_DONATIONS:"api/hold/[holdKode]/donationer",GET_STAFET_TEAM_DONATIONS_PAGINATED:"api/hold/[holdKode]/donationerPaginated?offsetDonationer=[offsetDonationer]&offsetAdmissions=[offsetAdmissions
2]&limit=[limit]",GET_STAFET_TEAM_PARTICIPANT_DETAILS:"api/hold/[holdKode]/deltagere",GET_PREVIOUS_TEAMS_LIST:"/api/hold-list/profile/previous-hold?newStafetkode=[newStafetkode]",GET_PROFILE_TEAMS_LIST:"api/hold-list/profile/hold/[pageId]",SUBMIT_STAFET_PROFILE_CREATE:"da-DK/api/sfl/profile/create",SUBMIT_STAFET_PROFILE_UPDATED:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_PROFILE_DELETE:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_ROUND_COUNTER:"api/[pageId]/hold/[holdKode]/runderegistrering",SUBMIT_STAFET_SEND_EMAIL:"api/sfl/mailudsendelse",SUBMIT_STAFET_RESEND_EMAIL:"api/sfl/mailudsendelse/resend",STAFET_GET_MAILUDSENDELSE_ATTACHMENT:"api/sfl/mailudsendelse/attachment/[attachmentId]",STAFET_GET_PROFILE_HOLDKAPTAJN_HOLD:"api/hold-list/profile/[userProfileId]/holdkaptajn-hold",STAFET_GET_MAILUDSENDELSE_NEW_RECIPIENTS_COUNT:"api/sfl/mailudsendelse/[mailudsendelseId]/new-recipients-count",COMMUNITY_CHAT_SEARCH_USERS:"api/community/chat/users/search?p=[query]&take=[take]",COMMUNITY_GET_USER_CHATS:"api/community/user/[userId]/chats",COMMUNITY_GET_CHAT:"api/community/chat/[chatId]",COMMUNITY_CREATE_CHAT:"api/community/chat/create",COMMUNITY_FIND_CHAT_WITH_USER:"api/community/chat/find-with-user",COMMUNITY_GET_CHAT_MEMBER_PROFILE:"api/community/chat/member-profile",COMMUNITY_DELETE_CHAT:"api/community/chat/[chatId]/delete",COMMUNITY_CREATE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/create",COMMUNITY_EDIT_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/edit",COMMUNITY_DELETE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/delete",COMMUNITY_CREATE_COMMENT:"api/community/post/[postId]/comment/create",COMMUNITY_CREATE_SUBCOMMENT:"api/community/comment/[commentId]/subcomment/create",COMMUNITY_EDIT_COMMENT:"api/community/comment/[commentId]/edit",COMMUNITY_DELETE_COMMENT:"api/community/comment/[commentId]/delete",COMMUNITY_GET_NOTIFICATIONS:"api/community/notifications",COMMUNITY_GET_POSTS:"api/community/posts",COMMUNITY_CREATE_POST:"api/community/post/[postId]/create",COMMUNITY_EDIT_POST:"api/community/post/[postId]/edit",COMMUNITY_DELETE_POST:"api/community/post/[postId]/delete",COMMUNITY_SAVE_POST:"api/community/post/[postId]/save",COMMUNITY_GET_POST_LATEST_COMMENT:"api/community/post/[postId]/latest-comment",COMMUNITY_GET_POST_STATISTICS:"api/community/post/[postId]/statistics",COMMUNITY_GET_POST_COMMENTS:"api/community/post/[postId]/comments?pageId=[pageId]",COMMUNITY_GET_USER_GROUPS:"api/community/user/groups?pageId=[pageId]",COMMUNITY_LEAVE_GROUP:"api/community/user/groups/[groupId]/leave",COMMUNITY_GET_USER_POSTS:"api/community/user/posts",COMMUNITY_GET_USER_SAVED_POSTS:"api/community/user/posts/saved",GET_GROUP_SEARCH_RESULT:"da-DK/api/groupSearch/search/[pageId]/[guid]",SUBMIT_CREATE_GALLERY:"da-DK/api/createGallery/[id]",SUBMIT_EDIT_GALLERY:"da-DK/api/editGallery/[id]",FORUM_MEMBER_DATA:"da-DK/api/member-data/[id]",FORUM_MEMBER_LIST_DATA:"da-DK/api/member-list-data/[groupid]",SUBMIT_FORUM_MEMBER_APPLICATION:"da-DK/api/forumMemberApplication/[id]/[groupid]",FORUM_SUBMIT_EDIT_PROFILE:"da-DK/api/saveProfile",SUBMIT_FORUM_PROFILE_PICTURE:"da-DK/api/submitForumProfilePicture/[id]",FORUM_PROFILE_PICTURE:"da-DK/api/forumProfilePicture/[id]",GET_GRUPPEADGANGSANMODNINGER:"api/gruppeadgangsanmodninger",APPROVE_NOTIFICATION:"api/notifications/[id]/approve",REJECT_NOTIFICATION:"api/notifications/[id]/reject",APPROVE_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/approve",REJECT_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/reject",SUBMIT_CREATE_FORUM_PROFILE:"da-DK/api/cancerforum/profile/create",DELETE_CANCER_PROFILE:"da-DK/api/deleteForumProfile/[id]",DELETE_CANCER_PROFILE_AND_DATA:"da-DK/api/deleteForumProfileAndData/[id]",GET_THEME_STATISTICS:"da-DK/api/theme/[themeId]/statistics",GET_GROUP_STATISTICS:"da-DK/api/group/[groupId]/statistics",FORUM_JOIN_GROUP:"da-DK/api/join-open-group-redirect/[groupId]",CANCERFORUM_SEARCH:"da-DK/api/[pageId]/cancerforum/search",FRIVILLIGE_GROUPS_SEARCH:"api/frivillig/[pageId]/groups",FRIVILLIGE_GROUPS_HOVEDGRUPPE_SEARCH:"api/frivillig/[pageId]/hovedgruppe/[hovedgruppekode]/groups",FRIVILLIGE_MEMBER_LIST_DATA:"da-DK/api/getMemberListData/[group_id]",FRIVILLIGE_MEMBER_DATA:"da-DK/api/getMemberData/[id]",FRIVILLIGE_MEMBER_REQUEST_ROLES_DATA:"da-DK/api/getMemberRequestRolesData/[id]",FRIVILLIGE_MEMBER_REMOVE:"api/frivillig/groups/[gruppeKode]/medlemmer/[member_id]",FRIVILLIGE_FOLDER_DROPDOWN_OPTIONS:"api/frivillig/valid-move-options",GET_FILES_LIST:"api/frivillig/[pageId]/[gruppeKode]/dokumenter",SUBMIT_CREATE_NEW_FILE:"api/frivillig/dokumenter/template",SUBMIT_UPLOAD_NEW_FILE:"api/frivillig/dokumenter",SUBMIT_MOVE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_EDIT_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_DELETE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_CREATE_FOL
2DER:"api/frivillig/mapper",SUBMIT_EDIT_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_MOVE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_DELETE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_CONFIRM_DELETE_PROFILE:"da-DK/api/submitConfirmDeleteProfile/[group_id]/[member_id]",SUBMIT_CONFIRM_DELETE_MEMBER:"da-DK/api/submitConfirmDeleteMember/[group_id]/[member_id]",ORDRE_OVERVIEW:"da-DK/api/ordreOverview/[id]",CREATE_EVENT:"da-DK/api/createEvent",FRIVILLIGE_GROUP_EVENTS:"api/frivillig/[pageId]/groups/[groupId]/events",EDIT_EVENT:"da-DK/api/editEvent/[id]",CALENDAR_OVERLAY:"da-DK/api/calendarOverlay",EDIT_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil",CREATE_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil/create",GET_FRIVILLIGPROFIL_CARD_DATA:"da-DK/api/frivillig/[pageId]/profil/[id]/frivilligprofilCard",FRIVILLIGE_GROUP_EVENT:"api/frivillig/[pageId]/groupEvents/[eventId]",FRIVILLIG_PRODUCT_SEARCH:"da-DK/api/frivillig/[pageId]/productSearchApi/searchWithRoleInformation/[guid]",FRIVILLIG_PRODUCT_LIST_SEARCH:"da-DK/api/frivillig/[pageId]/productListSearchApi/searchWithRoleInformation/[guid]",FRIVILLIGE_GROUP_EVENT_EDIT:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIGE_GROUP_EVENT_GET:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIG_GROUP_MEDLEMMER_GET:"api/frivillig/[pageId]/groups/[groupId]/medlemmer",FRIVILLIGE_WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/frivillig/webshop/${pageId}/checkout/placeorder",FRIVILLIGPROFIL_ROLLER_GET:"da-DK/api/frivillig/profil/roller/[aktivitetsId]",FRIVILLIGPROFIL_GRUPPER_GET:"da-DK/api/frivillig/profil/grupper/[aktivitetsId]",DELETE_FRIVILLIGPROFIL:"da-DK/api/frivillig/[pageId]/profil/[guid]",FRIVILLIGPROFIL_AKTIVITETER_GET:"da-DK/api/frivillig/profil/aktiviteter",FRIVILLIGPROFIL_PICTURE_GET:"api/frivillig/profil/image/?fpid=[id]",SUBMIT_GROUP_ACCESS_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning",DELETE_ROLE_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning/[id]",SUBMIT_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling",DELETE_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling/[id]",FRIVILLIGE_JOIN_GROUP:"api/frivillig/groups/[gruppeKode]/join",SUBMIT_FRIVILLIG_PROFILE_PICTURE:"api/frivillig/profil/image",PROFILE_HAS_FRIVILLIG_ORDERS:"api/frivillig/profil/[userProfileId]/has-frivillig-orders",FRIVILLIGJOB_CREATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_UPDATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_IMAGE_UPDATE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_GET:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_SEARCH:"api/frivillig/frivilligjob/search",FRIVILLIGJOB_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]",FRIVILLIGJOB_GRUPPEEMNER_GET:"api/frivillig/frivilligjob/[frivilligjobId]/gruppeemner",LOTTERY_GET_RESULT:"api/lottery/round/[roundNumber]/ticket/[lotteryTicketId]",PRODUCT_RECOMMENDATIONS:"da-DK/api/webshop/product/[productSku]/recommendations?take=[take]",PRODUCT_SEARCH:"da-DK/api/productSearchApi/search/[guid]",PRODUCT_LIST_SEARCH:"da-DK/api/productListSearchApi/search/[guid]",WEBSHOP_BASKET:"da-DK/api/webshop/${pageId}/cart/",WEBSHOP_BASKET_LINE:"da-DK/api/webshop/${pageId}/cart/lines",WEBSHOP_BASKET_SHIPPING:"da-DK/api/webshop/${pageId}/cart/shipping",WEBSHOP_SERVICEPOINTS:"da-DK/api/webshop/delivery/servicepoints",WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/webshop/${pageId}/checkout/placeorder",MITID_LOGOUT:"api/mitid/logout",SOURCE_REFERENCES:"da-DK/api/source/[sourceId]/references?skip=[skip]&take=[take]"}.DELETE_EVENT.replace("[id]",t.id)),e.n=1,dm(n,null);case 1:return o=e.v,e.a(2,o)}},e)}))()},editFrivilligeProfile:function(e,t){return wg(Ag().m(function e(){var n,o;return Ag().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("da-DK/api/frivillig/[pageId]/profil".replace("[id]",t.id)),o=JSON.stringify(t.body),e.n=1,dm(n,o);case 1:return e.a(2,e.v)}},e)}))()}}};function Tg(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Ig(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Ig(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ig(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Ig(d,"constructor",c),Ig(c,"constructor",s),s.displayName="GeneratorFunction",Ig(c,r,"GeneratorFunction"),Ig(d),Ig(d,r,"Generator"),Ig(d,o,function(){return this}),Ig(d,"toString",function(){return"[object Generator]"}),(Tg=function(){return{w:a,m:p}})()}function Ig(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ig=function(e,t,n,o){function a(t,n){Ig(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Ig(e,t,n,o)}function Bg(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Og(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Bg(a,o,r,i,l,"next",e)}function l(e){Bg(a,o,r,i,l,"throw",e)}i(void 0)})}}var Lg="_ROOT";const Dg={namespaced:!0,state:{is_submitting:!1,member_list_data:[],member_list_data_total:0,member_data:{id:"",details:[],memberName:"",memberRoles:[],memberImgSrc:"",memberProfileText:"",memberImgAlt:"",answerLink:""},active_request_roles_data:{},active_pending_roles_list:[],active_confirmed_roles_list:[],active_overlay_mode:"",active_item_name:"",active_item_id:0,activity_list:[],edit_mode_active:!1,selected_member_id:0,active_member_id:0,active_group_id:0,active_group_name:"",active_folder_id:0,active_folder_name:"",active_file_name:"",active_file_id:0,delete_item_type:"",delete_item_id:null,delete_item_name:null,file_type_dropdown_options:[],folder_dropdown_options:[],globalGruppeKode:null},mutations:{set_file_type_dropdown_options:function(e,t){e.file_type_dropdown_options=t},set_is_submitting:function(e,t){e.is_submitting=t},set_member_list_data:function(e,t){e.member_list_data=t},set_member_list_data_total:function(e,t){e.member_list_data_total=t},set_member_data:function(e,t){e.member_data=t},set_folder_dropdown_options:function(e,t){t=t.map(function(e){var t;return{name:e.name,value:null!==(t=e.value)&&void 0!==t?t:Lg}}),e.folder_dropdown_options=t},set_active_request_roles_data:function(e,t){e.active_request_roles_data=t},set_activity_list:function(e,t){e.activity_list=t},set_active_pending_roles_list:function(e,t){e.active_pending_roles_list=t},set_active_confirmed_roles_list:function(e,t){e.active_confirmed_roles_list=t},set_active_overlay_mode:function(e,t){e.active_overlay_mode=t},set_edit_mode_active:function(e,t){e.edit_mode_active=t},set_delete_item_type:function(e,t){e.delete_item_type=t},set_delete_item_id:function(e,t){e.delete_item_id=t},set_delete_item_name:function(e,t){e.delete_item_name=t},set_active_item_id:function(e,t){e.active_item_id=t},set_active_item_name:function(e,t){e.active_item_name=t},set_active_folder_name:function(e,t){e.active_folder_name=t},set_active_file_name:function(e,t){e.active_file_name=t},set_global_gruppe_kode:function(e,t){e.globalGruppeKode=t}},getters:{get_global_folder_id:function(){return new URLSearchParams(document.location.search).get("mappeKode")}},actions:{setActiveOverlayMode:function(e,t){e.commit("set_active_overlay_mode",t.mode)},setActiveItemName:function(e,t){"Dokument"===e.state.active_overlay_mode?(e.commit("set_active_file_name",t.name),e.commit("set_active_item_name",e.state.active_file_name)):(e.commit("set_active_folder_name",t.name),e.commit("set_active_item_name",e.state.active_folder_name))},setEditModeActive:function(e,t){e.commit("set_edit_mode_active",t.mode)},setGlobalGruppeKode:function(e,t){e.commit("set_global_gruppe_kode",t.gruppeKode)},getDeleteItemType:function(e){e.commit("set_delete_item_type",e.state.active_overlay_mode)},getDeleteItemName:function(e){e.commit("set_delete_item_name",e.state.active_item_name)},getDeleteItemId:function(e){"Dokument"===e.state.delete_type?e.commit("set_delete_item_id",e.
2state.active_file_id):e.commit("set_delete_item_id",e.state.active_folder_id)},getActiveItemName:function(e){"Dokument"===e.state.active_overlay_mode?e.commit("set_active_item_name",e.state.active_file_name):e.commit("set_active_item_name",e.state.active_folder_name)},getActiveItemId:function(e){"Dokument"===e.state.active_overlay_mode?e.commit("set_active_item_id",e.state.active_file_id):e.commit("set_active_item_id",e.state.active_folder_id)},getActivePendingAndConfirmedRolesList:function(e,t){var n=t,o=[],r=[];t&&(null==t?void 0:t.length)>0&&(n.forEach(function(e){"pending"===e.roleStatus?o.push(e):r.push(e)}),e.commit("set_active_pending_roles_list",o),e.commit("set_active_confirmed_roles_list",r))},getFolderDropdownOptions:function(e){var t="".concat(document.location.origin,"/").concat("api/frivillig/valid-move-options")+"?type=".concat(e.state.active_overlay_mode)+"&kode=".concat(e.state.active_item_id)+"&gruppeKode=".concat(e.state.globalGruppeKode);return e.commit("set_is_submitting",!0),sm(t).then(function(t){if(t.ok)return t.json();throw e.commit("set_is_submitting",!1),new Error(t.error)}).then(function(t){e.commit("set_folder_dropdown_options",t),e.commit("set_is_submitting",!1)}).catch(function(t){e.commit("set_is_submitting",!1),console.error("Error:",t)})},getMemberRequestRolesData:function(e){var t="".concat(document.location.origin)+"/".concat("da-DK/api/getMemberRequestRolesData/[id]".replace("[id]",e.state.active_user_id));return e.commit("set_is_submitting",!0),sm(t).then(function(t){if(t.ok)return t.json();throw e.commit("set_is_submitting",!1),new Error(t.error)}).then(function(t){e.commit("set_active_request_roles_data",t),e.commit("set_is_submitting",!1)}).catch(function(t){e.commit("set_is_submitting",!1),console.error("Error:",t)})},fetchGruppemedlemmerData:function(e,t){var n="".concat(document.location.origin)+"/".concat("api/frivillig/[pageId]/groups/[groupId]/medlemmer".replace("[pageId]",t.pageId).replace("[groupId]",t.groupId))+"?skip=".concat(t.skip,"&take=").concat(t.take);return e.commit("set_is_submitting",!0),sm(n).then(function(t){if(t.ok)return t.json();throw e.commit("set_is_submitting",!1),new Error(t.error)}).then(function(t){return 0===t.skip?e.commit("set_member_list_data",t.members):e.commit("set_member_list_data",e.state.member_list_data.concat(t.members)),e.commit("set_member_list_data_total",t.totalHits),e.commit("set_is_submitting",!1),t}).catch(function(t){e.commit("set_is_submitting",!1),console.error("Error:",t)})},removeMember:function(e,t){var n="".concat(document.location.origin,"/").concat("api/frivillig/groups/[gruppeKode]/medlemmer/[member_id]").replace("[gruppeKode]",t.groupId).replace("[member_id]",t.frivilligprofilId);return e.commit("set_is_submitting",!0),sm(n,{method:"DELETE"}).then(function(t){if(t.ok)return t.json();throw e.commit("set_is_submitting",!1),new Error(t.error)}).catch(function(t){e.commit("set_is_submitting",!1),console.error("Error:",t)})},submitCreateOrEditFolderOrFile:function(e,t){return Og(Tg().m(function n(){return Tg().w(function(n){for(;;)if(0===n.n)return n.a(2,new Promise(function(n,o){var r="".concat(document.location.origin,"/"),a=void 0,i={};"Dokument"==e.state.active_overlay_mode?(r+="api/frivillig/dokumenter/[dokumentKode]".replace("[dokumentKode]",e.state.active_item_id),a="PATCH",i={newName:t.name}):e.state.edit_mode_active?(r+="api/frivillig/mapper/[mappeKode]".replace("[mappeKode]",e.state.active_item_id),a="PATCH",i={newName:t.name}):(r+="api/frivillig/mapper",a="POST",i={gruppeKode:e.state.globalGruppeKode,parentMappeKode:e.getters.get_global_folder_id,mappeName:t.name});var l=new Headers;l.append("Content-Type","application/json");var s={headers:l,method:a,body:JSON.stringify(i)};return e.commit("set_is_submitting",!0),"POST"!==a&&"PATCH"!==a&&delete s.body,sm(r,s).then(function(e){if(!e.ok)throw new Error(e.error);n()}).catch(function(e){console.error("Error:",e),o(e)}).finally(function(){e.commit("set_is_submitting",!1)})}))},n)}))()},submitGroupAccessRequest:function(e,t){return Og(Tg().m(function n(){var o,r,a;return Tg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/profil/gruppeanmodning".replace("[member_id]",e.state.active_member_id)),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"POST",body:JSON.stringify({post:t.folder})},e.commit("set_is_submitting",!0),n.a(2,sm(o,a).then(function(t){if(t.ok)return t.json();throw e.commit("set_is_submitting",!1),new Error(t.error)}).then(function(e){return e}).catch(function(t){e.commit("set_is_submitting",!1),console.error("Error:",t)}))},n)}))()},submitCreateNewFile:function(e,t){return Og(Tg().m(function n(){return Tg().w(function(n){for(;;)if(0===n.n)return n.a(2,new Promise(function(n,o){var r="".concat(document.location.origin,"/").concat("api/frivillig/dokumenter/template"),a=new Headers;a.append("Content-Type","application/json");var i={headers:a,method:"POST",body:JSON.stringify(t.body)};return e.commit("set_is_submitting",!0),sm(r,i).then(function(e){if(!e.ok)throw new Error(e.error);n()}).catch(function(e){console.error("Error:",e),o(e)}).finally(function(){e.commit("set_is_submitting",!1)})}))},n)}))()},submitUploadNewFile:function(e,t){return Og(Tg().m(function n(){return Tg().w(function(n){for(;;)if(0===n.n)return n.a(2,new Promise(function(n,o){var r="".concat(document.location.origin)+"/".concat("api/frivillig/dokumenter")+"?gruppeKode=".concat(e.state.globalGruppeKode),a=e.getters.get_global_folder_id;a&&(r+="&mappeKode=".concat(a));var i=new FormData;
2t.files.forEach(function(e){i.append("files",e)});var l={headers:new Headers,method:"POST",body:i};return e.commit("set_is_submitting",!0),sm(r,l).then(function(e){if(!e.ok)throw new Error(e.error);n()}).catch(function(e){console.error("Error:",e),o(e)}).finally(function(){e.commit("set_is_submitting",!1)})}))},n)}))()},submitMoveFileOrFolder:function(e,t){return Og(Tg().m(function n(){return Tg().w(function(n){for(;;)if(0===n.n)return n.a(2,new Promise(function(n,o){var r="".concat(document.location.origin,"/");"Dokument"===e.state.active_overlay_mode?r+="api/frivillig/dokumenter/[dokumentKode]".replace("[dokumentKode]",e.state.active_item_id):r+="api/frivillig/mapper/[mappeKode]".replace("[mappeKode]",e.state.active_item_id);var a=new Headers;a.append("Content-Type","application/json");var i=t.mappeKode==Lg?null:t.mappeKode,l={headers:a,method:"PUT",body:JSON.stringify({mappeKode:i})};return e.commit("set_is_submitting",!0),sm(r,l).then(function(e){if(!e.ok)throw new Error(e.error);n()}).catch(function(e){console.error("Error:",e),o(e)}).finally(function(){e.commit("set_is_submitting",!1)})}))},n)}))()},submitConfirmDelete:function(e,t){return Og(Tg().m(function n(){return Tg().w(function(n){for(;;)if(0===n.n)return n.a(2,new Promise(function(n,o){var r="".concat(document.location.origin,"/");"Dokument"==e.state.active_overlay_mode?r+="api/frivillig/dokumenter/[dokumentKode]".replace("[dokumentKode]",e.state.active_item_id):r+="api/frivillig/mapper/[mappeKode]".replace("[mappeKode]",e.state.active_item_id);var a=new Headers;a.append("Content-Type","application/json");var i={headers:a,method:"DELETE",body:JSON.stringify({deleteStatus:t.deleteStatus})};return e.commit("set_is_submitting",!0),sm(r,i).then(function(e){if(!e.ok)throw new Error(e.error);n()}).catch(function(e){console.error("Error:",e),o(e)}).finally(function(){e.commit("set_is_submitting",!1)})}))},n)}))()},submitConfirmDeleteProfile:function(e,t){return Og(Tg().m(function n(){var o,r;return Tg().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("da-DK/api/submitConfirmDeleteProfile/[group_id]/[member_id]".replace("[group_id]",e.state.frivillige.globalGruppeKode).replace("[member_id]",e.state.active_member_id)),n.n=1,dm(o,JSON.stringify({deleteStatus:t.deleteStatus}),function(e){document.location.href=e.continueUrl});case 1:return r=n.v,e.commit("set_is_submitting",!1),n.a(2,r)}},n)}))()},submitConfirmDeleteMember:function(e,t){return Og(Tg().m(function n(){var o,r,a;return Tg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin,"/").concat("da-DK/api/submitConfirmDeleteMember/[group_id]/[member_id]".replace("[group_id]",e.state.frivillige.globalGruppeKode).replace("[member_id]",e.state.selected_member_id)),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"POST",body:JSON.stringify({deleteStatus:t.deleteStatus})},e.commit("set_is_submitting",!0),n.a(2,sm(o,a).then(function(t){if(t.ok)return t.json();throw e.commit("set_is_submitting",!1),new Error(t.error)}).then(function(e){return e}).catch(function(t){e.commit("set_is_submitting",!1),console.error("Error:",t)}))},n)}))()},createEvent:function(e,t){return Og(Tg().m(function e(){var n,o,r;return Tg().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/frivillig/[pageId]/groups/[groupId]/events").replace("[pageId]",t.pageId).replace("[groupId]",t.groupId),o=JSON.stringify(t.body),e.n=1,dm(n,o);case 1:return(r=e.v).continueUrl&&(window.location.href=r.continueUrl),e.a(2,r)}},e)}))()},updateEvent:function(e,t){return Og(Tg().m(function e(){var n,o,r;return Tg().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/frivillig/[pageId]/groups/[groupId]/events/[eventId]").replace("[pageId]",t.pageId).replace("[groupId]",t.groupId).replace("[eventId]",t.id),o=JSON.stringify(t.body),e.n=1,fm(n,o);case 1:return(r=e.v).continueUrl&&(window.location.href=r.continueUrl),e.a(2,r)}},e)}))()},deleteEvent:function(e,t){return Og(Tg().m(function n(){var o,r;return Tg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin,"/").concat("api/frivillig/[pageId]/groupEvents/[eventId]").replace("[pageId]",t.pageId).replace("[eventId]",t.eventId),r={method:"DELETE"},n.a(2,sm(o,r).then(function(t){if(t.ok)return t;throw e.commit("set_is_submitting",!1),new Error(t.error)}).catch(function(t){e.commit("set_is_submitting",!1),console.error("Error:",t)}))},n)}))()},joinGroup:function(e,t){return Og(Tg().m(function n(){var o,r,a,i;return Tg().w(function(n){for(;;)if(0===n.n)return r="".concat(document.location.origin,"/").concat("api/frivillig/groups/[gruppeKode]/join").replace("[gruppeKode]",t.gruppeKode),(a=new Headers).append("Content-Type","application/json"),i={headers:a,method:"POST",body:JSON.stringify({reason:null!==(o=t.reason)&&void 0!==o?o:null})},n.a(2,sm(r,i).then(function(t){if(t.ok)return t;throw e.commit("set_is_submitting",!1),new Error(t.error)}).catch(function(t){e.commit("set_is_submitting",!1),console.error("Error:",t)}))},n)}))()}}};function Mg(e,t){var n;return null===(n=e.find(function(e){return e.name===t}))||void 0===n?void 0:n.value}function Ng(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Pg(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Pg(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Pg(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Pg(d,"constructor",c),Pg(c,"constructor",s),s.displayName="GeneratorFunction",Pg(c,r,"GeneratorFunction"),Pg(d),Pg(d,r,"Generator"),Pg(d,o,function(){return this}),Pg(d,"toString",function(){return"[object Generator]"}),(Ng=function(){return{w:a,m:p}})()}function Pg(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Pg=function(e,t,n,o){function a(t,n){Pg(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Pg(e,t,n,o)}function Rg(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Fg(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Rg(a,o,r,i,l,"next",e)}function l(e){Rg(a,o,r,i,l,"throw",e)}i(void 0)})}}function Vg(e){return function(e){if(Array.isArray(e))return zg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return zg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zg(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Ug={namespaced:!0,state:{isSubmitting:!1,stafetId:"",teams:[],totalNumberOfTeams:0,userInputs:[],steps:[],currentStep:1,basket:[],basketTotalPrice:0,previousTeams:null,teamLights:[],teamLightsTotal:0,teamDonations:[],teamDonationsTotal:0,teamParticipantDetails:[],teamDonationsPaginated:[],teamDonationsPaginatedTotalHits:0,teamDonationsPaginatedDonationerCount:0,teamDonationsPaginatedAdmissionsCount:0,userProfileHoldkaptajnHold:[]},mutations:{set_previous_teams:function(e,t){e.previousTeams=t},set_stafet_id:function(e,t){e.stafetId=t},set_teams:function(e,t){e.teams=t},set_total_number_of_teams:function(e,t){e.totalNumberOfTeams=t},set_user_inputs:function(e,t){e.userInputs=t},set_steps:function(e,t){e.steps=t},set_current_step:function(e,t){e.currentStep=t},set_basket:function(e,t){e.basket=t},set_basket_total_price:function(e,t){e.basketTotalPrice=t},set_team_lights:function(e,t){e.teamLights=t},set_team_lights_total:function(e,t){e.teamLightsTotal=t},set_team_participant_details:function(e,t){e.teamParticipantDetails=t},set_team_donations:function(e,t){e.teamDonations=t},set_team_donations_total:function(e,t){e.teamDonationsTotal=t},set_is_submitting:function(e,t){e.isSubmitting=t},set_team_donations_paginated:function(e,t){e.teamDonationsPaginated=t},set_team_donations_paginated_total:function(e,t){e.teamDonationsPaginatedTotalHits=t},set_team_donations_paginated_donationer_count:function(e,t){e.teamDonationsPaginatedDonationerCount=t},set_team_donations_paginated_admissions_count:function(e,t){e.teamDonationsPaginatedAdmissionsCount=t},set_userprofile_holdkaptajn_hold:function(e,t){e.userProfileHoldkaptajnHold=t}},getters:{teamDonationsPaginated:function(e){return e.teamDonationsPaginated},teamDonationsPaginatedTotalHits:function(e){return e.teamDonationsPaginatedTotalHits},teamDonationsPaginatedDonationerCount:function(e){return e.teamDonationsPaginatedDonationerCount},teamDonationsPaginatedAdmissionsCount:function(e){return e.teamDonationsPaginatedAdmissionsCount}},actions:{stafetId:function(e,t){e.commit("set_stafet_id",t.stafetId)},getPreviousTeams:function(e){var t="/api/hold-list/profile/previous-hold?newStafetkode=[newStafetkode]".replace("[newStafetkode]",e.state.stafetId);sm(t).then(function(e){return e.json()}).then(function(t){e.commit("set_previous_teams",t.hits)}).catch(function(e){console.error(e)})},getTeamParticipantDetails:function(e,t){var n="".concat(document.location.origin,"/").concat("api/hold/[holdKode]/deltagere").replace("[holdKode]",t.teamId);sm(n).then(function(e){return e.json()}).then(function(t){e.commit("set_team_participant_details",t.hits)}).catch(function(e){console.error(e)})},getTeamDonations:function(e,t){var n="".concat(document.location.origin,"/").concat("api/hold/[holdKode]/donationer").replace("[holdKode]",t.teamId);sm(n).then(function(e){return e.json()}).then(function(t){0===t.skip?e.commit("set_team_donations",t.hits):e.commit("set_team_donations",e.state.teamDonations.concat(t.hits)),e.commit("set_team_donations_total",t.totalHits)}).catch(function(e){console.error(e)})},getTeamDonationsPaginated:function(e,t){var n,o,r,a,i="".concat(document.location.origin,"/").concat("api/hold/[holdKode]/donationerPaginated?offsetDonationer=[offsetDonationer]&offsetAdmissions=[offsetAdmissions
2]&limit=[limit]").replace("[holdKode]",encodeURIComponent(null!==(n=t.teamId)&&void 0!==n?n:"")).replace("[offsetDonationer]",encodeURIComponent(null!==(o=t.offsetDonationer)&&void 0!==o?o:0)).replace("[offsetAdmissions]",encodeURIComponent(null!==(r=t.offsetAdmissions)&&void 0!==r?r:0)).replace("[limit]",encodeURIComponent(null!==(a=t.limit)&&void 0!==a?a:50));return sm(i).then(function(e){if(!e.ok)throw new Error("HTTP ".concat(e.status));return e.json()}).then(function(n){var o,r,a,i,l,s,c,u,d=Array.isArray(n.hits)?n.hits:[];0===(null!==(o=t.offsetDonationer)&&void 0!==o?o:0)&&0===(null!==(r=t.offsetAdmissions)&&void 0!==r?r:0)?(e.commit("set_team_donations_paginated",d),e.commit("set_team_donations_paginated_donationer_count",0),e.commit("set_team_donations_paginated_admissions_count",0)):e.commit("set_team_donations_paginated",e.getters.teamDonationsPaginated.concat(d)),e.commit("set_team_donations_paginated_total",null!==(a=n.totalHits)&&void 0!==a?a:0);var p=Number.isFinite(n.holdDonationer)?n.holdDonationer:0,f=Number.isFinite(n.deltagerDonationer)?n.deltagerDonationer:0,m=0===(null!==(i=t.offsetDonationer)&&void 0!==i?i:0)?0:e.getters.teamDonationsPaginatedDonationerCount,g=0===(null!==(l=t.offsetAdmissions)&&void 0!==l?l:0)?0:e.getters.teamDonationsPaginatedAdmissionsCount;e.commit("set_team_donations_paginated_donationer_count",m+p),e.commit("set_team_donations_paginated_admissions_count",g+f);var h=(null!==(s=t.offsetDonationer)&&void 0!==s?s:0)+p,b=(null!==(c=t.offsetAdmissions)&&void 0!==c?c:0)+f;return{nextOffsetDonationer:h,nextOffsetAdmissions:b,hasMore:h+b<(null!==(u=n.totalHits)&&void 0!==u?u:0)}}).catch(function(e){throw console.error(e),e})},getTeamLights:function(e,t){var n="".concat(document.location.origin,"/").concat("api/hold/[holdKode]/lysposer?skip=[skip]&take=[take]").replace("[holdKode]",t.teamId).replace("[skip]",t.skip).replace("[take]",t.take);e.commit("set_is_submitting",!0),sm(n).then(function(e){return e.json()}).then(function(t){e.commit("set_team_lights",e.state.teamLights.concat(t.hits)),e.commit("set_is_submitting",!1),e.commit("set_team_lights_total",t.totalHits)}).catch(function(t){e.commit("set_is_submitting",!1),console.error(t)})},teams:function(e,t){var n="".concat(document.location.origin,"/").concat("api/holdList/[pageId]/[stafetId]".replace("[stafetId]",t.stafetId),"?skip=").concat(t.skip,"&take=").concat(t.take).replace("[pageId]",uh.state.main.page_id);sm(n).then(function(e){return e.json()}).then(function(n){0===t.skip?e.commit("set_teams",n.teams):e.commit("set_teams",e.state.teams.concat(n.teams)),e.commit("set_total_number_of_teams",n.totalHits)}).catch(function(e){console.error(e)})},userInputs:function(e,t){var n=e.state.userInputs;if(0===n.length)e.commit("set_user_inputs",t.inputs);else{var o=[];n.map(function(e){t.inputs.find(function(t){return t.name===e.name})||o.push(e)}),e.commit("set_user_inputs",[].concat(o,Vg(t.inputs)))}},steps:function(e,t){e.commit("set_steps",t.steps)},currentStep:function(e,t){e.commit("set_current_step",t.step)},basket:function(e,t){var n=e.state.basket,o=[];if(0===n.length)o=t.basket;else{var r=[];n.map(function(e){t.basket.find(function(t){return t.name===e.name})||r.push(e)}),o=[].concat(r,Vg(t.basket))}e.commit("set_basket",o);var a=0;o.map(function(e){a+=e.intPrice}),e.commit("set_basket_total_price",a)},basketTotalPrice:function(e,t){e.commit("set_basket_total_price",t.price)},joinATeamSubmit:function(e){var t,n,o="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/sfl/deltager").replace("[pageId]",uh.state.main.page_id),r=e.state.userInputs,a=Vg(null!==(t=Mg(r,"deltagere"))&&void 0!==t?t:[]),i=Vg(null!==(n=Mg(r,"childDeltagere"))&&void 0!==n?n:[]),l=Mg(r,"isChild"),s=Mg(r,"isFighter"),c={stafetKode:e.state.stafetId,holdKode:Mg(r,"teamName")||null,paymentMethod:"PaymentCard",invoiceAddress:{firstName:Mg(r,"firstName"),lastName:Mg(r,"lastName"),phone:Mg(r,"phone"),email:Mg(r,"email")},deltagere:a,childDeltagere:i,isChild:l,marketing:{sflNewsletter:Mg(r,"newsletter"),fighterNewsletter:!!s&&Mg(r,"fighterNewsletter")}},u=Mg(r,"donationItems");if(u){var d=Mg(r,"donationFor"),p={amount:Mg(r,"donationPerLightBag"),supportSelectorSubmissionModel:{supportStafet:"stafet"===d,supportHold:"team"===d,holdKode:Mg(r,"donationTeam")||null,supportDeltager:"participant"===d,deltagerId:Mg(r,"donationParticipant")||null},ownTextLysposer:Mg(r,"addPersonalNote"),lysposeSubmissionModels:u};c.lysposer=p}s&&(c.fighter={shirt:Mg(r,"shirtSize"),freeLunch:Mg(r,"isFighterFreeLunch"),firstTimeFighter:Mg(r,"firstTimeFighter")});var f=new Headers;f.append("Content-Type","application/json");var m={headers:f,method:"POST",body:JSON.stringify(c)};e.commit("set_is_submitting",!0),sm(o,m).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t.continueUrl}).catch(function(t){console.error("Der skete en fejl med blevet tilføjet til et hold",t),e.commit("set_is_submitting",!1)})},joinAsAFighterSubmit:function(e){var t="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/sfl/fighter").replace("[pageId]",uh.state.main.page_id),n=e.state.userIn
2puts,o=Mg(n,"joinATeam"),r={stafetKode:e.state.stafetId,holdKode:o?Mg(n,"teamName"):null,paymentMethod:"PaymentCard",invoiceAddress:{firstName:Mg(n,"firstName"),lastName:Mg(n,"lastName"),phone:Mg(n,"phone"),email:Mg(n,"email")},fighter:{shirt:Mg(n,"tshirtSize"),freeLunch:Mg(n,"participateInFreeLunch"),firstTimeFighter:Mg(n,"firstTimeFighter")},isChild:Mg(n,"isChild"),marketing:{fighterNewsletter:Mg(n,"fighterNewsletter"),sflNewsletter:!!o&&Mg(n,"newsletter")}},a=new Headers;a.append("Content-Type","application/json");var i={headers:a,method:"POST",body:JSON.stringify(r)};e.commit("set_is_submitting",!0),sm(t,i).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t.continueUrl}).catch(function(t){console.error("Der skete en fejl med blevet tilføjet til et hold",t),e.commit("set_is_submitting",!1)})},addDeltagereSubmit:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/sfl/add-deltagere").replace("[pageId]",uh.state.main.page_id),o=jg(e.state.userInputs);o.stafetKode=t.stafetId,o.holdKode=t.teamId,o.paymentMethod="PaymentCard",o.invoiceAddress=t.userData;var r=new Headers;r.append("Content-Type","application/json");var a={headers:r,method:"POST",body:JSON.stringify(o)};e.commit("set_is_submitting",!0),sm(n,a).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t.continueUrl}).catch(function(t){console.error("Der skete en fejl med blevet tilføjet til et hold",t),e.commit("set_is_submitting",!1)})},createTeamSubmit:function(e,t){var n,o=uh.state.main.page_id,r=null!==(n=new URL(document.location.href).searchParams.get("previous-holdkode"))&&void 0!==n?n:"",a="".concat("da-DK/api/[pageId]/hold/?stafetKode=[stafetKode]&previousHoldkode=[previousHoldkode]".replace("[pageId]",o).replace("[stafetKode]",e.state.stafetId).replace("[previousHoldkode]",r)),i="".concat(document.location.origin,"/").concat(a),l=jg(e.state.userInputs),s=new FormData;s.append("teamName",l.teamName),s.append("description",l.description),l.logo&&s.append("image",l.logo[0]),s.append("slogan",l.slogan),s.append("donationGoal",l.donationGoal),s.append("firstName",l.firstName),s.append("lastName",l.lastName),s.append("email",l.email),s.append("phone",l.phone),s.append("newsletter",l.newsletter);var c={method:"POST",body:s};e.commit("set_is_submitting",!0),sm(i,c).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t.continueUrl}).catch(function(t){console.error("Der skete en fejl med oprettelsen af et hold",t),e.commit("set_is_submitting",!1)})},editTeamSubmit:function(e,t){var n=t.stafetKode,o=t.holdKode,r=uh.state.main.page_id,a="".concat("da-DK/api/[pageId]/hold/[holdKode]".replace("[pageId]",r).replace("[holdKode]",o)),i="".concat(document.location.origin,"/").concat(a),l=jg(e.state.userInputs),s=new FormData;s.append("stafetKode",n),s.append("teamName",l.teamName),s.append("description",l.description),l.logo&&s.append("image",l.logo[0]),s.append("slogan",l.slogan),s.append("donationGoal",l.donationGoal);var c={headers:new Headers,method:"PUT",body:s};e.commit("set_is_submitting",!0),sm(i,c).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t.continueUrl}).catch(function(t){console.error("Der skete en fejl med opdatering af holdet",t),e.commit("set_is_submitting",!1)})},submitCreateStafetProfile:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/sfl/profile/create"),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"POST",body:JSON.stringify(t)};e.commit("set_is_submitting",!0),sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(e){sessionStorage.clear(),document.location.href=e}).catch(function(t){console.error("Der skete en fejl med oprettelse af stafetprofil",t),e.commit("set_is_submitting",!1)})},stafetProfileUpdatedSubmit:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/sfl/profile".replace("[stafetId]",e.state.stafetId)),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"POST",body:JSON.stringify(t.body)};e.commit("set_is_submitting",!0),sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t.continueUrl}).catch(function(t){console.error("Der skete en fejl med opdatering af stafetten",t),e.commit("set_is_submitting",!1)})},submitDeleteStafetProfile:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/sfl/profile".replace("[pageId]",uh.state.main.page_id)),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"DELETE",body:JSON.stringify(t.body)};delete r.body,e.commit("set_is_submitting",!0),sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t}).catch(function(t){console.error("Der skete en fejl med at slette stafet profilen",t),e.commit("set_is_submitting",!1)})},submitUpdateStafetProfile:function(e,t){var n="".concat(document.location.origin,"/").concat("da-DK/api/[pageId]/sfl/profile".replace("[pageId]",uh.state.main.page_id)),o=new Headers;o.append("Content-Type","application/json");var r={headers:o,method:"POST",body:JSON.stringify(t.body)};console.log(t.body),e.commit("set_is_submitting",!0),sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){sessionStorage.clear(),e.commit("set_is_submitting",!1),document.location.href=t}).catch(function(t){console.error("Der skete en fejl med at opdatere stafet profilen",t),e.commit("set_is_submitting",!1)})},submitSendEmail:function(e,t){return Fg(Ng().m(function n(){var o,r,a;return Ng().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin,"/").concat("api/sfl/mailudsendelse"),r=new Headers,a={headers:r,method:"POST",body:t.formData},e.commit("set_is_submitting",!0),n.a(2,sm(o,a).then(function(t){return e.commit("set_is_submitting",!1),!!t.ok}))},n)}))()},submitResendEmail:function(e,t){return Fg(Ng().m(function n(){var o,r,a;return Ng().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin,"/").concat("api/sfl/mailudsendelse/resend"),r=new Headers,a={headers:r,method:"POST",body:t.formData},e.commit("set_is_submitting",!0),n.a(2,sm(o,a).then(function(t){return e.commit("set_is_submitting",!1),!!t.ok}))},n)}))()},getMailudsendelseNewRecipientsCount:function(e,t){return Fg(Ng().m(function e(){var n;return Ng().w(function(e){for(;;)if(0===e.n)return n="".concat(document.location.origin,"/").concat("api/sfl/mailudsendelse/[mailudsendelseId]/new-recipients-count").replace("[mailudsendelseId]",t),e.a(2,sm(n).then(function(e){return e.json()}).catch(function(e){console.error(e)}))},e)}))()},getUserProfileHoldkaptajnHold:function(e,t){var n="".concat(document.location.origin,"/").concat("api/hold-list/profile/[userProfileId]/holdkaptajn-hold").replace("[userProfileId]",t);sm(n).then(function(e){return e.json()}).then(function(t){var n=Array.isArray(t.hits)?t.hits.filter(function(e){return e.name&&e.url}):[];e.commit("set_userprofile_holdkaptajn_hold",n)}).catch(function(e){console.error(e)})}}};var jg=function(e){var t={};return e.map(function(e){t[e.name]=e.value}),t};const Hg={namespaced:!0,state:{ruter:[],deltagere:[],ruteUpdates:{},deltagerRuteUpdates:{},teamId:null,isSubmitting:!1},mutations:{set_team_id:function(e,t){e.teamId=t},set_ruter:function(e,t){e.ruter=t},set_deltagere:function(e,t){e.deltagere=t},init_rute_counter:function(e,t){e.ruteUpdates[t]||(e.ruteUpdates[t]=0)},increment_rute_counter:function(e,t){e.ruteUpdates[t]++},decrement_rute_counter:function(e,t){0!=e.ruteUpdates[t]&&e.ruteUpdates[t]--},set_rute_counter:function(e,t){var n=t.ruteId,o=t.count;e.ruteUpdates[n]=o},reset_rute_update:function(e,t){e.ruteUpdates[t]=0},init_deltager_counter:function(e,t){var n=t.deltagerId,o=t.ruteId;e.deltagerRuteUpdates[n]||(e.deltagerRuteUpdates[n]={}),e.deltagerRuteUpdates[n][o]||(e.deltagerRuteUpdates[n][o]=0)},increment_deltager_counter:function(e,t){var n=t.deltagerId,o=t.ruteId;e.deltagerRuteUpdates[n][o]++},decrement_deltager_counter:function(e,t){var n=t.deltagerId,o=t.ruteId;0!=e.deltagerRuteUpdates[n][o]&&e.deltagerRuteUpdates[n][o]--},set_deltager_counter:function(e,t){var n=t.deltagerId,o=t.ruteId,r=t.count;e.deltagerRuteUpdates[n][o]=r},reset_deltager_update:function(e,t){var n=t.deltagerId,o=t.ruteId;e.deltagerRuteUpdates[n][o]=0},set_is_submitting:function(e,t){e.isSubmitting=t}},getters:{getDeltagerRuteAmount:function(e){return function(t){var n=t.deltagerId,o=t.ruteId;return e.deltagerRuteUpdates[n]?e.deltagerRuteUpdates[n][o]:0}},shouldDisableApplyButton:function(e){return function(t){var n=t.deltagerId,o=t.ruteId;if(n){var r=e.deltagerRuteUpdates[n];return!(r&&r[o]>0)}return!(e.ruteUpdates[o]>0)}}},actions:{getStafetRoundCounter:function(e){var t="".concat(document.location.origin,"/").concat("api/[pageId]/hold/[holdKode]/runderegistrering".replace("[pageId]",uh.state.main.page_id).replace("[holdKode]",e.state.teamId));e.commit("set_is_submitting",!0),sm(t).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){var n=[];t.ruter&&t.ruter.forEach(function(t){e.commit("init_rute_counter",t.id),n.push({ruteName:t.name,id:t.
2id,meters:t.meters,detailsKm:t.detailsKm,detailsRounds:t.detailsRounds,dynamicUpdate:!0})});var o=[];t.deltagere&&t.deltagere.forEach(function(t){var r={};t.ruter.forEach(function(o){var a=n.find(function(e){return e.id===o.id});e.commit("init_deltager_counter",{deltagerId:t.deltagerId,ruteId:a.id}),r[a.id]={id:a.id,ruteName:a.ruteName,meters:a.meters,detailsKm:o.detailsKm,detailsRounds:o.detailsRounds}}),o.push({id:t.deltagerId,ruter:r,participantName:t.name,participantRole:t.role,dynamicUpdate:!1})}),e.commit("set_ruter",n),e.commit("set_deltagere",o),e.commit("set_is_submitting",!1)}).catch(function(t){console.error("Der skete en fejl med opdatering af stafetten",t),e.commit("set_is_submitting",!1)})},stafetRoundCounterSubmit:function(e,t){var n=t.deltagerId,o=t.ruteId,r=[],a=[];n?a.push({id:n,ruter:[{id:o,amount:e.state.deltagerRuteUpdates[n][o]}]}):r.push({id:o,amount:e.state.ruteUpdates[o]});var i="".concat(document.location.origin,"/").concat("api/[pageId]/hold/[holdKode]/runderegistrering".replace("[pageId]",uh.state.main.page_id).replace("[holdKode]",e.state.teamId)),l={ruter:r,deltagere:a},s=new Headers;s.append("Content-Type","application/json");var c={headers:s,method:"POST",body:JSON.stringify(l)};e.commit("set_is_submitting",!0),sm(i,c).then(function(e){if(e.ok)return e;throw new Error(e.error)}).then(function(){n?e.commit("reset_deltager_update",{deltagerId:n,ruteId:o}):e.commit("reset_rute_update",o),e.dispatch("getStafetRoundCounter"),e.commit("set_is_submitting",!1)}).catch(function(t){console.error("Der skete en fejl med opdatering af stafetten",t),e.commit("set_is_submitting",!1)})}}};function qg(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Gg(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Gg(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Gg(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Gg(d,"constructor",c),Gg(c,"constructor",s),s.displayName="GeneratorFunction",Gg(c,r,"GeneratorFunction"),Gg(d),Gg(d,r,"Generator"),Gg(d,o,function(){return this}),Gg(d,"toString",function(){return"[object Generator]"}),(qg=function(){return{w:a,m:p}})()}function Gg(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Gg=function(e,t,n,o){function a(t,n){Gg(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Gg(e,t,n,o)}function Kg(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Zg(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Kg(a,o,r,i,l,"next",e)}function l(e){Kg(a,o,r,i,l,"throw",e)}i(void 0)})}}const Wg={namespaced:!0,state:{submitting:!1,aktivitet_list:[],rolle_list:[],gruppe_list:[],member_data:{id:"",details:[],name:"",memberRoles:[],imgSrc:"",profileText:"",imageAlt:"",answerLink:""},has_frivillig_order:!1},mutations:{SET_AKTIVITET_LIST:function(e,t){e.aktivitet_list=t},SET_ROLLE_LIST:function(e,t){e.rolle_list=t},SET_GRUPPE_LIST:function(e,t){e.gruppe_list=t},SET_IS_SUBMITTING:function(e,t){e.submitting=t},SET_MEMBER_DATA:function(e,t){e.member_data=t},SET_HAS_FRIVILLIG_ORDER:function(e,t){e.has_frivillig_order=t}},getters:{},actions:{fetchAktiviteter:function(e){var t="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/profil/aktiviteter");return e.commit("SET_IS_SUBMITTING",!0),sm(t).then(function(t){if(t.ok)return t.json();throw e.commit("SET_IS_SUBMITTING",!1),new Error(t.error)}).then(function(t){e.commit("SET_IS_SUBMITTING",!1),e.commit("SET_AKTIVITET_LIST",t)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)})},fetchGrupper:function(e,t){var n="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/profil/grupper/[aktivitetsId]").replace("[aktivitetsId]",t);return e.commit("SET_IS_SUBMITTING",!0),sm(n).then(function(t){if(t.ok)return t.json();throw e.commit("SET_IS_SUBMITTING",!1),new Error(t.error)}).then(function(t){e.commit("SET_IS_SUBMITTING",!1),e.commit("SET_GRUPPE_LIST",t)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)})},fetchRoller:function(e,t){var n="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/profil/roller/[aktivitetsId]").replace("[aktivitetsId]",t);return e.commit("SET_IS_SUBMITTING",!0),sm(n).then(function(t){if(t.ok)return t.json();throw e.commit("SET_IS_SUBMITTING",!1),new Error(t.error)}).then(function(t){e.commit("SET_IS_SUBMITTING",!1),e.commit("SET_ROLLE_LIST",t)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)})},getProfileHasFrivilligOrders:function(e,t){return Zg(qg().m(function n(){var o;return qg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin,"/").concat("api/frivillig/profil/[userProfileId]/has-frivillig-orders".replace("[userProfileId]",t)),n.a(2,sm(o).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){e.commit("SET_HAS_FRIVILLIG_ORDER",t)}).catch(function(e){console.error("Error:",e)}))},n)}))()},submitRoleRequest:function(e,t){return Zg(qg().m(function n(){var o,r,a;return qg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/profil/rolletildeling"),(r=new Headers).append("Content-Type","application/json"),JSON.stringify(t.body),a={headers:r,method:"POST",body:JSON.stringify(t.body)},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(t){if(e.commit("SET_IS_SUBMITTING",!1),t.ok)return location.reload(),t;throw new Error(t.error)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)}))},n)}))()},rejectGruppeadgangsanmodning:function(e,t){return Zg(qg().m(function n(){var o,r,a;return qg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/profil/gruppeanmodning/[id]").replace("[id]",t),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"DELETE"},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(t){if(e.commit("SET_IS_SUBMITTING",!1),t.ok)return location.reload(),t;throw new Error(t.error)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)}))},n)}))()},deleteRolletildeling:function(e,t){return Zg(qg().m(function n(){var o,r,a;return qg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/profil/rolletildeling/[id]").replace("[id]",t),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"DELETE"},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(t){if(e.commit("SET_IS_SUBMITTING",!1),t.ok)return location.reload(),t;throw new Error(t.error)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)}))},n)}))()},createProfil:function(e,t){return Zg(qg().m(function n(){var o,r,a;return qg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/[pageId]/profil/create").replace("[pageId]",t.pageId),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"POST",body:JSON.stringify(t.body)},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(e){return window.location.href=e.continueUrl,e}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)}))},n)}))()},submitFrivilligProfilePicture:function(e,t){return Zg(qg().m(function e(){var n,o;return qg().w(function(e){for(;;)switch(e.n){case 0:return n="".concat(document.location.origin,"/").concat("api/frivillig/profil/image"),o=t.formData,e.n=1,dm(n,o,null,!0);case 1:return e.a(2,e.v)}},e)}))()},removeFrivilligProfilePicture:function(e){return Zg(qg().m(function e(){var t;return qg().w(function(e){for(;;)switch(e.n){case 0:return t="".concat(document.location.origin,"/").concat("api/frivillig/profil/image"),e.n=1,pm(t,null,null,!0);case 1:return e.a(2,e.v)}},e)}))()},editFrivilligprofil:function(e,t){return Zg(qg().m(function n(){var o,r,a;return qg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/[pageId]/profil").replace("[pageId]",t.pageId),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"PATCH",body:JSON.stringify(t.body)},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(t){if(e.commit("SET_IS_SUBMITTING",!1),t.ok)return t;throw new Error(t.error)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t),location.reload()}))},n)}))()},fetchMemberData:function(e,t){var n="".concat(document.location.origin)+"/".concat("da-DK/api/frivillig/[pageId]/profil/[id]/frivilligprofilCard".replace("[id]",t.userProfileId).replace("[pageId]",t.pageId));return e.commit("SET_IS_SUBMITTING",!0),sm(n).then(function(t){if(t.ok)return t.json();throw e.commit("SET_IS_SUBMITTING",!1),new Error(t.error)}).then(function(t){e.commit("SET_MEMBER_DATA",t),e.commit("SET_IS_SUBMITTING",!1)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)})},deleteFrivilligprofil:function(e,t){return Zg(qg().m(function n(){var o,r,a;return qg().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin,"/").concat("da-DK/api/frivillig/[pageId]/profil/[guid]".replace("[guid]",t.id).replace("[pageId]",t.pageId)),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"DELETE"},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(n){if(e.commit("SET_IS_SUBMITTING",!1),n.ok)return window.location.href=t.continueUrl,n;throw new Error(n.error)}).catch(function(t){e.commit("SET_IS_SUBMITTING",!1),console.error("Error:",t)}))},n)}))()}}};function $g(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Yg(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Yg(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Yg(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Yg(d,"constructor",c),Yg(c,"constructor",s),s.displayName="GeneratorFunction",Yg(c,r,"GeneratorFunction"),Yg(d),Yg(d,r,"Generator"),Yg(d,o,function(){return this}),Yg(d,"toString",function(){return"[object Generator]"}),($g=function(){return{w:a,m:p}})()}function Yg(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Yg=function(e,t,n,o){function a(t,n){Yg(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Yg(e,t,n,o)}function Jg(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const Xg={namespaced:!0,state:{submitting:!1,lottery_tickets:[]},mutations:{SET_IS_SUBMITTING:function(e,t){e.submitting=t},SET_LOTTERY_ROUNDS:function(e,t){e.lottery_rounds=t},SET_LOTTERY_TICKETS:function(e,t){e.lottery_tickets=null!=t?t:[]}},getters:{},actions:{getLotteryTicketResult:function(e,t){return(n=$g().m(function n(){var o;return $g().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin)+"/".concat("api/lottery/round/[roundNumber]/ticket/[lotteryTicketId]").replace("[lotteryTicketId]",t.lotteryTicketId).replace("[roundNumber]",t.roundNumber),e.commit("SET_IS_SUBMITTING",!0),n.n=1,sm(o).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){e.commit("SET_IS_SUBMITTING",!1),e.commit("SET_LOTTERY_TICKETS",t)}).catch(function(t){throw e.commit("SET_IS_SUBMITTING",!1),t});case 1:return n.a(2,n.v)}},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){Jg(a,o,r,i,l,"next",e)}function l(e){Jg(a,o,r,i,l,"throw",e)}i(void 0)})})();var n}}};function Qg(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return eh(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(eh(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,eh(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,eh(d,"constructor",c),eh(c,"constructor",s),s.displayName="GeneratorFunction",eh(c,r,"GeneratorFunction"),eh(d),eh(d,r,"Generator"),eh(d,o,function(){return this}),eh(d,"toString",function(){return"[object Generator]"}),(Qg=function(){return{w:a,m:p}})()}function eh(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}eh=function(e,t,n,o){function a(t,n){eh(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},eh(e,t,n,o)}function th(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const nh={namespaced:!0,state:{submitting:!1},mutations:{SET_IS_SUBMITTING:function(e,t){e.submitting=t}},getters:{},actions:{logout:function(e){return(t=Qg().m(function t(){var n,o,r;return Qg().w(function(t){for(;;)switch(t.n){case 0:return n="".concat(document.location.origin)+"/".concat("api/mitid/logout"),(o=new Headers).append("Content-Type","application/json"),r={headers:o,method:"POST"},e.commit("SET_IS_SUBMITTING",!0),t.n=1,sm(n,r).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).then(function(t){e.commit("SET_IS_SUBMITTING",!1)}).catch(function(t){throw e.commit("SET_IS_SUBMITTING",!1),t});case 1:return t.a(2,t.v)}},t)}),function(){var e=this,n=arguments;
2return new Promise(function(o,r){var a=t.apply(e,n);function i(e){th(a,o,r,i,l,"next",e)}function l(e){th(a,o,r,i,l,"throw",e)}i(void 0)})})();var t}}};function oh(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return rh(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(rh(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,rh(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,rh(d,"constructor",c),rh(c,"constructor",s),s.displayName="GeneratorFunction",rh(c,r,"GeneratorFunction"),rh(d),rh(d,r,"Generator"),rh(d,o,function(){return this}),rh(d,"toString",function(){return"[object Generator]"}),(oh=function(){return{w:a,m:p}})()}function rh(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}rh=function(e,t,n,o){function a(t,n){rh(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},rh(e,t,n,o)}function ah(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function ih(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){ah(a,o,r,i,l,"next",e)}function l(e){ah(a,o,r,i,l,"throw",e)}i(void 0)})}}const lh={namespaced:!0,state:{submitting:!1},mutations:{SET_IS_SUBMITTING:function(e,t){e.submitting=t}},getters:{},actions:{createFrivilligjob:function(e,t){return ih(oh().m(function n(){var o,r;return oh().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin)+"/".concat("api/frivillig/frivilligjob"),e.commit("SET_IS_SUBMITTING",!0),n.n=1,dm(o,JSON.stringify(t));case 1:return r=n.v,e.commit("SET_IS_SUBMITTING",!1),n.a(2,r)}},n)}))()},getGruppeemner:function(e,t){return ih(oh().m(function n(){var o,r,a;return oh().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin)+"/".concat("api/frivillig/frivilligjob/[frivilligjobId]/gruppeemner").replace("[frivilligjobId]",t),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"GET"},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).finally(function(){e.commit("SET_IS_SUBMITTING",!1)}))},n)}))()},updateFrivilligjob:function(e,t){return ih(oh().m(function n(){var o,r;return oh().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin)+"/".concat("api/frivillig/frivilligjob"),e.commit("SET_IS_SUBMITTING",!0),n.n=1,fm
2(o,JSON.stringify(t));case 1:return r=n.v,e.commit("SET_IS_SUBMITTING",!1),n.a(2,r)}},n)}))()},removeFrivilligjobImage:function(e,t){return ih(oh().m(function n(){var o,r,a;return oh().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin,"/").concat("api/frivillig/frivilligjob/[frivilligjobId]/image".replace("[frivilligjobId]",t)),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"DELETE"},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(t){if(e.commit("SET_IS_SUBMITTING",!1),t.ok)return t;throw new Error(t.error)}).finally(function(){e.commit("SET_IS_SUBMITTING",!1)}))},n)}))()},submitFrivilligjobImage:function(e,t){return ih(oh().m(function n(){var o,r,a;return oh().w(function(n){for(;;)switch(n.n){case 0:return o="".concat(document.location.origin,"/").concat("api/frivillig/frivilligjob/[frivilligjobId]/image".replace("[frivilligjobId]",t.id)),r=t.body,e.commit("SET_IS_SUBMITTING",!0),n.n=1,dm(o,r,null,!0);case 1:return a=n.v,e.commit("SET_IS_SUBMITTING",!1),n.a(2,a)}},n)}))()},deleteFrivilligjob:function(e,t){return ih(oh().m(function n(){var o,r,a;return oh().w(function(n){for(;;)if(0===n.n)return o="".concat(document.location.origin)+"/".concat("api/frivillig/frivilligjob/[frivilligjobId]".replace("[frivilligjobId]",t)),(r=new Headers).append("Content-Type","application/json"),a={headers:r,method:"DELETE"},e.commit("SET_IS_SUBMITTING",!0),n.a(2,sm(o,a).then(function(e){if(e.ok)return e.json();throw new Error(e.error)}).finally(function(){e.commit("SET_IS_SUBMITTING",!1)}))},n)}))()}}};var sh,ch=(sh={modules:{labels:Am,main:_m,search:Om,dictionary:Lm,events:Dm,fundraising:zm,donation:Hm,basket:ng,checkout:gg,forum:Sg,frivillige:Dg,forms:{namespaced:!0,state:{forms:[]},mutations:{set_form:function(e,t){e.forms.push({name:t.name,data:t.data})},update_form:function(e,t){var n=e.forms.filter(function(e){return e.name!==t.name});e.forms=n,e.forms.push({name:t.name,data:t.data})}},actions:{setForm:function(e,t){e.state.forms.find(function(e){return e.name===t.name})?e.commit("update_form",t):e.commit("set_form",t)}}},stafet:Ug,stafetRoundCounter:Hg,frivilligprofil:Wg,lottery:Xg,mitid:nh,frivilligjob:lh}},new Kf(sh));const uh=ch,dh={name:"FactBox",props:{factBoxContentId:{type:String,required:!0}},setup:function(e){return Dr(function(){var t=document.querySelector("#".concat(e.factBoxContentId));t.addEventListener("dictionaryWordMounted",function(e){var t=e.target,n=t.parentElement,o=document.createElement("p");o.innerText=e.detail,o.classList.add("kb-fact-box__content__dictionary-word-text"),n.insertBefore(o,t)}),t.classList.add("kb-fact-box__content--closed")}),{toggleDisplay:function(t){var n=document.querySelector("#".concat(e.factBoxContentId)),o=n.classList.contains("kb-fact-box__content--open");t.currentTarget.classList[o?"remove":"add"]("kb-fact-box__expand-button--open"),n.classList[o?"remove":"add"]("kb-fact-box__content--open"),n.classList[o?"add":"remove"]("kb-fact-box__content--closed"),t.currentTarget.setAttribute("aria-expanded",o?"false":"true");var r=t.currentTarget.parentElement.querySelector("h3");!0===o&&r.scrollIntoView({behavior:"smooth",block:"center"}),n.querySelectorAll("a").forEach(function(e){o?e.setAttribute("tabindex",-1):e.removeAttribute("tabindex")})}}}};function ph(e){var t=document.querySelectorAll(".kb-component--fact-box");t.length&&t.forEach(function(t){if(t.hasAttribute("data-v-app"))return!1;var n=t.querySelector(".kb-fact-box__content");bc(dh,{factBoxContentId:n.id}).use(e).mount(t),t.querySelectorAll("a").forEach(function(e){e.setAttribute("tabindex",-1)})})}var fh={class:"kb-secondary-article-spots"},mh={class:"kb-secondary-article-spots__grid-section kb-secondary-article-spots--hide-grid"},gh={class:"kb-secondary-article-spots__header"},hh={class:"kb-secondary-article-spots__header-title"},bh={class:"kb-secondary-article-spots__grid-container"},vh={class:"kb-secondary-article-spots__slider kb-secondary-article-spots--hide-slider"},yh={class:"kb-secondary-article-spots__header kb-secondary-article-spots__slider-header"},_h={class:"kb-secondary-article-spots__header-title kb-secondary-article-spots__slider-header-title"};function Ah(e){return function(e){if(Array.isArray(e))return kh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return kh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kh(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}
2var xh={class:"kb-content-carousel","aria-roledescription":"carousel","aria-describedby":"content-carousel-title",ref:"componentRootEl"},wh={key:0,class:"kb-content-carousel__title",id:"content-carousel-title"},Ch=["id"],Eh={class:"kb-content-carousel__controls","data-glide-el":"controls"},Sh={class:"kb-content-carousel__arrow","data-glide-dir":"<","aria-controls":"content-carousel-slides","aria-label":"Forrige",ref:"prevBtn"},Th={class:"kb-content-carousel__arrow","data-glide-dir":">","aria-controls":"content-carousel-slides","aria-label":"Næste",ref:"nextBtn"},Ih={class:"glide__track","data-glide-el":"track",ref:"root"},Bh={class:"glide__slides","aria-live":"polite",id:"content-carousel-slides"},Oh=["aria-label","data-index"],Lh={class:"kb-content-carousel__bottom"},Dh=["href","target"];function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(n),!0).forEach(function(t){zh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ph(e){return Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ph(e)}function Rh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fh(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Vh(e,t,n){return t&&Fh(e.prototype,t),n&&Fh(e,n),e}function zh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uh(e)}function jh(e,t){return jh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jh(e,t)}function Hh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=Uh(e);if(t){var r=Uh(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function qh(){return qh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Uh(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},qh.apply(this,arguments)}var Gh={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function Kh(e){console.error("[Glide warn]: ".concat(e))}function Zh(e){return parseInt(e)}function Wh(e){return"string"==typeof e}function $h(e){var t=Ph(e);return"function"===t||"object"===t&&!!e}function Yh(e){return"function"==typeof e}function Jh(e){return void 0===e}function Xh(e){return e.constructor===Array}function Qh(e,t,n){Object.defineProperty(e,t,n)}function eb(e,t){var n=Object.assign({},e,t);return t.hasOwnProperty("classes")&&(n.classes=Object.assign({},e.classes,t.classes),["direction","type","slide","arrow","nav"].forEach(function(o){t.classes.hasOwnProperty(o)&&(n.classes[o]=Nh(Nh({},e.classes[o]),t.classes[o]))})),t.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},e.breakpoints,t.breakpoints)),n}var tb=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Rh(this,e),this.events=t,this.hop=t.hasOwnProperty}return Vh(e,[{key:"on",value:function(e,t){if(!Xh(e)){this.hop.call(this.events,e)||(this.events[e]=[]);var n=this.events[e].push(t)-1;return{remove:function(){delete this.events[e][n]}}}for(var o=0;o<e.length;o++)this.on(e[o],t)}},{key:"emit",value:function(e,t){if(Xh(e))for(var n=0;n<e.length;
vendor: 5,942 bytes, line 2
2n++)this.emit(e[n],t);else this.hop.call(this.events,e)&&this.events[e].forEach(function(e){e(t||{})})}}]),e}(),nb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rh(this,e),this._c={},this._t=[],this._e=new tb,this.disabled=!1,this.selector=t,this.settings=eb(Gh,n),this.index=this.settings.startAt}return Vh(e,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),$h(e)?this._c=function(e,t,n){var o={};for(var r in t)Yh(t[r])?o[r]=t[r](e,o,n):Kh("Extension must be a function");for(var a in o)Yh(o[a].mount)&&o[a].mount();return o}(this,e,this._e):Kh("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Xh(e)?this._t=e:Kh("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=eb(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(e){return this._c.Run.make(e),this}},{key:"move",value:function(e){return this._c.Transition.disable(),this._c.Move.make(e),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(e,t){return this._e.on(e,t),this}},{key:"isType",value:function(e){return this.settings.type===e}},{key:"settings",get:function(){return this._o},set:function(e){$h(e)?this._o=e:Kh("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(e){this._i=Zh(e)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(e){this._d=!!e}}]),e}();function ob(){return(new Date).getTime()}function rb(e,t){var n,o,r,a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=0,s=function(){l=!1===i.leading?0:ob(),n=null,a=e.apply(o,r),n||(o=r=null)},c=function(){var c=ob();l||!1!==i.leading||(l=c);var u=t-(c-l);return o=this,r=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),l=c,a=e.apply(o,r),n||(o=r=null)):n||!1===i.trailing||(n=setTimeout(s,u)),a};return c.cancel=function(){clearTimeout(n),l=0,n=o=r=null},c}var ab={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function ib(e){if(e&&e.parentNode){for(var t=e.parentNode.firstChild,n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}return[]}function lb(e){return Array.prototype.slice.call(e)}var sb=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Rh(this,e),this.listeners=t}return Vh(e,[{key:"on",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Wh(e)&&(e=[e]);for(var r=0;r<e.length;r++)this.listeners[e[r]]=n,t.addEventListener(e[r],this.listeners[e[r]],o)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Wh(e)&&(e=[e]);for(var o=0;o<e.length;o++)t.removeEventListener(e[o],this.listeners[e[o]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),e}(),cb=["ltr","rtl"],ub={">":"<","<":">","=":"="};function db(e,t){return{modify:function(e){return t.Direction.is("rtl")?-e:e}}}function pb(e,t){return{modify:function(e){var n=Math.floor(e/t.Sizes.slideWidth);return e+t.Gaps.value*n}}}function fb(e,t){return{modify:function(e){return e+t.Clones.grow/2}}}function mb(e,t){return{modify:function(n){if(e.settings.focusAt>=0){var o=t.Peek.value;return $h(o)?n-o.before:n-o}return n}}}function gb(e,t){return{modify:function(n){var o=t.Gaps.value,r=t.Sizes.width,a=e.settings.focusAt,i=t.Sizes.slideWidth;return"center"===a?n-(r/2-i/2):n-i*a-o*a}}}var hb=!1;try{var bb=Object.defineProperty({},"passive",{get:function(){hb=!0}});window.addEventListener("testPassive",null,bb),window.removeEventListener("testPassive",null,bb)}catch(Dhe){}var vb=hb,yb=["touchstart","mousedown"],_b=["touchmove","mousemove"],Ab=["touchend","touchcancel","mouseup","mouseleave"],kb=["mousedown","mousemove","mouseup","mouseleave"],xb='[data-glide-el^="controls"]',wb="".concat(xb,' [data-glide-dir*="<"]'),Cb="".concat(xb,' [data-glide-dir*=">"]');function Eb(e){return $h(e)?(t=e,Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e[n],e},{})):(Kh("Breakpoints option must be an object"),{});var t}var Sb={Html:function(e,t,n){var o={mount:function(){this.root=e.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.collectSlides()},collectSlides:function(){this.slides=lb(this.wrapper.children).filter(function(t){return!t.classList.contains(e.settings.classes.slide.clone)})}};return Qh(o,"root",{get:function(){return o._r},set:function(e){Wh(e)&&(e=document.querySelector(e)),null!==e?o._r=e:Kh("Root element must be a existing Html node")}}),Qh(o,"track",{get:function(){return o._t},set:function(e){o._t=e}}),Qh(o,"wrapper",{get:function(){return o.track.children[0]}}),n.on("update",function(){o.collectSlides()}),o},Translate:function(e,t,n){var o={set:function(n){var o=function(e,t){var n=[pb,fb,mb,gb].concat(e._t,[db]);return{mutate:function(o){for(var r=0;r<n.length;r++){var a=n[r];Yh(a)&&Yh(a().modify)?o=a(e,t,void 0).modify(o):Kh("Transformer should be a function that returns an object with `modify()` method")}return o}}}(e,t).mutate(n),r="translate3d(".concat(-1*o,"px, 0px, 0px)");t.Html.wrapper.style.mozTransform=r,t.Html.wrapper.style.webkitTransform=r,t.Html.wrapper.style.transform=r},remove:function(){t.Html.wrapper.style.transform=""}
2,getStartIndex:function(){var n=t.Sizes.length,o=e.index,r=e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?n+(o-r):(o+r)%n},getTravelDistance:function(){var n=t.Sizes.slideWidth*e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?-1*n:n}};return n.on("move",function(r){if(!e.isType("carousel")||!t.Run.isOffset())return o.set(r.movement);t.Transition.after(function(){n.emit("translate.jump"),o.set(t.Sizes.slideWidth*e.index)});var a=t.Sizes.slideWidth*t.Translate.getStartIndex();return o.set(a-t.Translate.getTravelDistance())}),n.on("destroy",function(){o.remove()}),o},Transition:function(e,t,n){var o=!1,r={compose:function(t){var n=e.settings;return o?"".concat(t," 0ms ").concat(n.animationTimingFunc):"".concat(t," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";t.Html.wrapper.style.transition=this.compose(e)},remove:function(){t.Html.wrapper.style.transition=""},after:function(e){setTimeout(function(){e()},this.duration)},enable:function(){o=!1,this.set()},disable:function(){o=!0,this.set()}};return Qh(r,"duration",{get:function(){var n=e.settings;return e.isType("slider")&&t.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",function(){r.set()}),n.on(["build.before","resize","translate.jump"],function(){r.disable()}),n.on("run",function(){r.enable()}),n.on("destroy",function(){r.remove()}),r},Direction:function(e,t,n){var o={mount:function(){this.value=e.settings.direction},resolve:function(e){var t=e.slice(0,1);return this.is("rtl")?e.split(t).join(ub[t]):e},is:function(e){return this.value===e},addClass:function(){t.Html.root.classList.add(e.settings.classes.direction[this.value])},removeClass:function(){t.Html.root.classList.remove(e.settings.classes.direction[this.value])}};return Qh(o,"value",{get:function(){return o._v},set:function(e){cb.indexOf(e)>-1?o._v=e:Kh("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],function(){o.removeClass()}),n.on("update",function(){o.mount()}),n.on(["build.before","update"],function(){o.addClass()}),o},Peek:function(e,t,n){var o={mount:function(){this.value=e.settings.peek}};return Qh(o,"value",{get:function(){return o._v},set:function(e){$h(e)?(e.before=Zh(e.before),e.after=Zh(e.after)):e=Zh(e),o._v=e}}),Qh(o,"reductor",{get:function(){var t=o.value,n=e.settings.perView;return $h(t)?t.before/n+t.after/n:2*t/n}}),n.on(["resize","update"],function(){o.mount()}),o},Sizes:function(e,t,n){var o={setupSlides:function(){for(var e="".concat(this.slideWidth,"px"),n=t.Html.slides,o=0;o<n.length;o++)n[o].style.width=e},setupWrapper:function(){t.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var e=t.Html.slides,n=0;n<e.length;n++)e[n].style.width="";t.Html.wrapper.style.width=""}};return Qh(o,"length",{get:function(){return t.Html.slides.length}}),Qh(o,"width",{get:function(){return t.Html.track.offsetWidth}}),Qh(o,"wrapperSize",{get:function(){return o.slideWidth*o.length+t.Gaps.grow+t.Clones.grow}}),Qh(o,"slideWidth",{get:function(){return o.width/e.settings.perView-t.Peek.reductor-t.Gaps.reductor}}),n.on(["build.before","resize","update"],function(){o.setupSlides(),o.setupWrapper()}),n.on("destroy",function(){o.remove()}),o},Gaps:function(e,t,n){var o={apply:function(e){for(var n=0,o=e.length;n<o;n++){var r=e[n].style,a=t.Direction.value;r[ab[a][0]]=0!==n?"".concat(this.value/2,"px"):"",n!==e.length-1?r[ab[a][1]]="".concat(this.value/2,"px"):r[ab[a][1]]=""}},remove:function(e){for(var t=0,n=e.length;t<n;t++){var o=e[t].style;o.marginLeft="",o.marginRight=""}}};return Qh(o,"value",{get:function(){return Zh(e.settings.gap)}}),Qh(o,"grow",{get:function(){return o.value*t.Sizes.length}}),Qh(o,"reductor",{get:function(){var t=e.settings.perView;return o.value*(t-1)/t}}),n.on(["build.after","update"],rb(function(){o.apply(t.Html.wrapper.children)},30)),n.on("destroy",function(){o.remove(t.Html.wrapper.children)}),o},Move:function(e,t,n){var o={mount:function(){this._o=0},make:function(){var e=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=o,n.emit("move",{movement:this.value}),t.Transition.after(function(){n.emit("move.after",{movement:e.value})})}};return Qh(o,"offset",{get:function(){return o._o},set:function(e){o._o=Jh(e)?0:Zh(e)}}),Qh(o,"translate",{get:function(){return t.Sizes.slideWidth*e.index}}),Qh(o,"value",{get:function(){var e=this.offset,n=this.translate;return t.Direction.is("rtl")?n+e:n-e}}),n.on(["build.before","run"],function(){o.make()}),o},Clones:function(e,t,n){var o={mount:function(){this.items=[],e.isType("carousel")&&(this.items=this.collect())},collect:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=t.Html.slides,r=e.settings,a=r.perView,i=r.classes,l=r.cloningRatio;if(o.length>0)for(var s=a+ +!!e.settings.peek+Math.round(a/2),c=o.slice(0,s).reverse(),u=o.slice(-1*s),d=0;d<Math.max(l,Math.floor(a/o.length));d++){for(var p=0;p<c.length;p++){var f=c[p].cloneNode(!0);f.classList.add(i.slide.clone),n.push(f)}for(var m=0;m<u.length;m++){var g=u[m].cloneNode(!0);g.classList.add(i.slide.clone),n.unshift(g)}}return n},append:function(){for(var e=this.items,n=t.Html,o=n.wrapper,r=n.slides,a=Math.floor(e.length/2),i=e.slice(0,a).reverse(),l=e.slice(-1*a).reverse(),s="".concat(t.Sizes.slideWidth,"px"),c=0;c<l.length;c++)o.appendChild(l[c]);for(var u=0;u<i.length;u++)o.insertBefore(i[u],r[0]);for(var d=0;d<e.length;d++)e[d].style.width=s},remove:function(){for(var e=this.items,n=0;n<e.length;n++)t.Html.wrapper.removeChild(e[n])}};return Qh(o,"grow",{get:function(){return(t.Sizes.slideWidth+t.Gaps.value)*o.items.length}}),n.on("update",function(){o.remove(),o.mount(),o.append()}),n.on("build.before",function(){e.isType("carousel")&&o.append()}),n.on("destroy",function(){o.remove()}),o},Resize:function(e,t,n){var o=new sb,r={mount:function(){this.bind()},bind:function(){o.on("resize",window,rb(function(){n.emit("resize")},e.settings.throttle))},unbind:function(){o.off("resize",window)}};return n.on("destroy",function(){r.unbind(),o.destroy()}),r},Build:function(e,t,n){var o={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){t.Html.root.classList.add(e.settings.classes.type[e.settings.type])},activeClass:function(){var n=e.settings.classes,o=t.Html.slides[e.index];
2o&&(o.classList.add(n.slide.active),ib(o).forEach(function(e){e.classList.remove(n.slide.active)}))},removeClasses:function(){var n=e.settings.classes,o=n.type,r=n.slide;t.Html.root.classList.remove(o[e.settings.type]),t.Html.slides.forEach(function(e){e.classList.remove(r.active)})}};return n.on(["destroy","update"],function(){o.removeClasses()}),n.on(["resize","update"],function(){o.mount()}),n.on("move.after",function(){o.activeClass()}),o},Run:function(e,t,n){var o={mount:function(){this._o=!1},make:function(o){var r=this;e.disabled||(!e.settings.waitForTransition||e.disable(),this.move=o,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),t.Transition.after(function(){r.isStart()&&n.emit("run.start",r.move),r.isEnd()&&n.emit("run.end",r.move),r.isOffset()&&(r._o=!1,n.emit("run.offset",r.move)),n.emit("run.after",r.move),e.enable()}))},calculate:function(){var t=this.move,n=this.length,r=t.steps,a=t.direction,i=1;if("="===a)return e.settings.bound&&Zh(r)>n?void(e.index=n):void(e.index=r);if(">"!==a||">"!==r)if("<"!==a||"<"!==r){if("|"===a&&(i=e.settings.perView||1),">"===a||"|"===a&&">"===r){var l=function(t){var n=e.index;return e.isType("carousel")?n+t:n+(t-n%t)}(i);return l>n&&(this._o=!0),void(e.index=function(t,n){var r=o.length;return t<=r?t:e.isType("carousel")?t-(r+1):e.settings.rewind?o.isBound()&&!o.isEnd()?r:0:o.isBound()?r:Math.floor(r/n)*n}(l,i))}if("<"===a||"|"===a&&"<"===r){var s=function(t){var n=e.index;return e.isType("carousel")?n-t:(Math.ceil(n/t)-1)*t}(i);return s<0&&(this._o=!0),void(e.index=function(t,n){var r=o.length;return t>=0?t:e.isType("carousel")?t+(r+1):e.settings.rewind?o.isBound()&&o.isStart()?r:Math.floor(r/n)*n:0}(s,i))}Kh("Invalid direction pattern [".concat(a).concat(r,"] has been used"))}else e.index=0;else e.index=n},isStart:function(){return e.index<=0},isEnd:function(){return e.index>=this.length},isOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return e?!!this._o&&("|>"===e?"|"===this.move.direction&&">"===this.move.steps:"|<"===e?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===e):this._o},isBound:function(){return e.isType("slider")&&"center"!==e.settings.focusAt&&e.settings.bound}};return Qh(o,"move",{get:function(){return this._m},set:function(e){var t=e.substr(1);this._m={direction:e.substr(0,1),steps:t?Zh(t)?Zh(t):t:0}}}),Qh(o,"length",{get:function(){var n=e.settings,o=t.Html.slides.length;return this.isBound()?o-1-(Zh(n.perView)-1)+Zh(n.focusAt):o-1}}),Qh(o,"offset",{get:function(){return this._o}}),o},Swipe:function(e,t,n){var o=new sb,r=0,a=0,i=0,l=!1,s=!!vb&&{passive:!0},c={mount:function(){this.bindSwipeStart()},start:function(t){if(!l&&!e.disabled){this.disable();var o=this.touches(t);r=null,a=Zh(o.pageX),i=Zh(o.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(o){if(!e.disabled){var l=e.settings,s=l.touchAngle,c=l.touchRatio,u=l.classes,d=this.touches(o),p=Zh(d.pageX)-a,f=Zh(d.pageY)-i,m=Math.abs(p<<2),g=Math.abs(f<<2),h=Math.sqrt(m+g),b=Math.sqrt(g);if(!(180*(r=Math.asin(b/h))/Math.PI<s))return!1;o.stopPropagation(),t.Move.make(p*parseFloat(c)),t.Html.root.classList.add(u.dragging),n.emit("swipe.move")}},end:function(o){if(!e.disabled){var i=e.settings,l=i.perSwipe,s=i.touchAngle,c=i.classes,u=this.touches(o),d=this.threshold(o),p=u.pageX-a,f=180*r/Math.PI;this.enable(),p>d&&f<s?t.Run.make(t.Direction.resolve("".concat(l,"<"))):p<-d&&f<s?t.Run.make(t.Direction.resolve("".concat(l,">"))):t.Move.make(),t.Html.root.classList.remove(c.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,r=e.settings,a=r.swipeThreshold,i=r.dragThreshold;a&&o.on(yb[0],t.Html.wrapper,function(e){n.start(e)},s),i&&o.on(yb[1],t.Html.wrapper,function(e){n.start(e)},s)},unbindSwipeStart:function(){o.off(yb[0],t.Html.wrapper,s),o.off(yb[1],t.Html.wrapper,s)},bindSwipeMove:function(){var n=this;o.on(_b,t.Html.wrapper,rb(function(e){n.move(e)},e.settings.throttle),s)},unbindSwipeMove:function(){o.off(_b,t.Html.wrapper,s)},bindSwipeEnd:function(){var e=this;o.on(Ab,t.Html.wrapper,function(t){e.end(t)})},unbindSwipeEnd:function(){o.off(Ab,t.Html.wrapper)},touches:function(e){return kb.indexOf(e.type)>-1?e:e.touches[0]||e.changedTouches[0]},threshold:function(t){var n=e.settings;return kb.indexOf(t.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return l=!1,t.Transition.enable(),this},disable:function(){return l=!0,t.Transition.disable(),this}};return n.on("build.after",function(){t.Html.root.classList.add(e.settings.classes.swipeable)}),n.on("destroy",function(){c.unbindSwipeStart(),c.unbindSwipeMove(),c.unbindSwipeEnd(),o.destroy()}),c},Images:function(e,t,n){var o=new sb,r={mount:function(){this.bind()},bind:function(){o.on("dragstart",t.Html.wrapper,this.dragstart)},unbind:function(){o.off("dragstart",t.Html.wrapper)},dragstart:function(e){e.preventDefault()}};return n.on("destroy",function(){r.unbind(),o.destroy()}),r},Anchors:function(e,t,n){var o=new sb,r=!1,a=!1,i={mount:function(){this._a=t.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){o.on("click",t.Html.wrapper,this.click)},unbind:function(){o.off("click",t.Html.wrapper)},click:function(e){a&&(e.stopPropagation(),e.preventDefault())},detach:function(){if(a=!0,!r){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!1;r=!0}return this},attach:function(){if(a=!1,r){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!0;r=!1}return this}};return Qh(i,"items",{get:function(){return i._a}}),n.on("swipe.move",function(){i.detach()}),n.on("swipe.end",function(){t.Transition.after(function(){i.attach()})}),n.on("destroy",function(){i.attach(),i.unbind(),o.destroy()}),i},Controls:function(e,t,n){var o=new sb,r=!!vb&&{passive:!0},a={mount:function(){this._n=t.Html.root.querySelectorAll('[data-glide-el="
2controls[nav]"]'),this._c=t.Html.root.querySelectorAll(xb),this._arrowControls={previous:t.Html.root.querySelectorAll(wb),next:t.Html.root.querySelectorAll(Cb)},this.addBindings()},setActive:function(){for(var e=0;e<this._n.length;e++)this.addClass(this._n[e].children)},removeActive:function(){for(var e=0;e<this._n.length;e++)this.removeClass(this._n[e].children)},addClass:function(t){var n=e.settings,o=t[e.index];o&&(o.classList.add(n.classes.nav.active),ib(o).forEach(function(e){e.classList.remove(n.classes.nav.active)}))},removeClass:function(t){var n=t[e.index];null==n||n.classList.remove(e.settings.classes.nav.active)},setArrowState:function(){if(!e.settings.rewind){var n=a._arrowControls.next,o=a._arrowControls.previous;this.resetArrowState(n,o),0===e.index&&this.disableArrow(o),e.index===t.Run.length&&this.disableArrow(n)}},resetArrowState:function(){for(var t=e.settings,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];o.forEach(function(e){lb(e).forEach(function(e){e.classList.remove(t.classes.arrow.disabled)})})},disableArrow:function(){for(var t=e.settings,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];o.forEach(function(e){lb(e).forEach(function(e){e.classList.add(t.classes.arrow.disabled)})})},addBindings:function(){for(var e=0;e<this._c.length;e++)this.bind(this._c[e].children)},removeBindings:function(){for(var e=0;e<this._c.length;e++)this.unbind(this._c[e].children)},bind:function(e){for(var t=0;t<e.length;t++)o.on("click",e[t],this.click),o.on("touchstart",e[t],this.click,r)},unbind:function(e){for(var t=0;t<e.length;t++)o.off(["click","touchstart"],e[t])},click:function(e){vb||"touchstart"!==e.type||e.preventDefault();var n=e.currentTarget.getAttribute("data-glide-dir");t.Run.make(t.Direction.resolve(n))}};return Qh(a,"items",{get:function(){return a._c}}),n.on(["mount.after","move.after"],function(){a.setActive()}),n.on(["mount.after","run"],function(){a.setArrowState()}),n.on("destroy",function(){a.removeBindings(),a.removeActive(),o.destroy()}),a},Keyboard:function(e,t,n){var o=new sb,r={mount:function(){e.settings.keyboard&&this.bind()},bind:function(){o.on("keyup",document,this.press)},unbind:function(){o.off("keyup",document)},press:function(n){var o=e.settings.perSwipe;["ArrowRight","ArrowLeft"].includes(n.code)&&t.Run.make(t.Direction.resolve("".concat(o).concat({ArrowRight:">",ArrowLeft:"<"}[n.code])))}};return n.on(["destroy","update"],function(){r.unbind()}),n.on("update",function(){r.mount()}),n.on("destroy",function(){o.destroy()}),r},Autoplay:function(e,t,n){var o=new sb,r={mount:function(){this.enable(),this.start(),e.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var o=this;this._e&&(this.enable(),e.settings.autoplay&&Jh(this._i)&&(this._i=setInterval(function(){o.stop(),t.Run.make(">"),o.start(),n.emit("autoplay")},this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var e=this;o.on("mouseover",t.Html.root,function(){e._e&&e.stop()}),o.on("mouseout",t.Html.root,function(){e._e&&e.start()})},unbind:function(){o.off(["mouseover","mouseout"],t.Html.root)}};return Qh(r,"time",{get:function(){return Zh(t.Html.slides[e.index].getAttribute("data-glide-autoplay")||e.settings.autoplay)}}),n.on(["destroy","update"],function(){r.unbind()}),n.on(["run.before","swipe.start","update"],function(){r.stop()}),n.on(["pause","destroy"],function(){r.disable(),r.stop()}),n.on(["run.after","swipe.end"],function(){r.start()}),n.on(["play"],function(){r.enable(),r.start()}),n.on("update",function(){r.mount()}),n.on("destroy",function(){o.destroy()}),r},Breakpoints:function(e,t,n){var o=new sb,r=e.settings,a=Eb(r.breakpoints),i=Object.assign({},r),l={match:function(e){if(void 0!==window.matchMedia)for(var t in e)if(e.hasOwnProperty(t)&&window.matchMedia("(max-width: ".concat(t,"px)")).matches)return e[t];return i}};return Object.assign(r,l.match(a)),o.on("resize",window,rb(function(){e.settings=eb(r,l.match(a))},e.settings.throttle)),n.on("update",function(){a=Eb(a),i=Object.assign({},r)}),n.on("destroy",function(){o.off("resize",window)}),l}},Tb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jh(e,t)}(n,e);var t=Hh(n);function n(){return Rh(this,n),t.apply(this,arguments)}return Vh(n,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return qh(Uh(n.prototype),"mount",this).call(this,Object.assign({},Sb,e))}}]),n}(nb);function Ib(e){return Ib="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ib(e)}function Bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Bb(Object(n),!0).forEach(function(t){Lb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lb(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ib(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ib(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ib(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Db(e){return Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Db(e)}function Mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mb(Object(n),!0).forEach(function(t){Pb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pb(e,t,n){return(t=function(e){var t=function(e){if("object"!=Db(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Db(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Db(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rb=["href"],Fb={key:0,class:"kb-slider-card-basic__image"},Vb=["src"],zb={key:1,class:"kb-slider-card-basic__date"},Ub={key:3,class:"kb-slider-card-basic__text"};const jb={name:"SliderCardBasic",props:{data:{type:Object,required:!0}}};var Hb=r(262);const qb=(0,Hb.A)(jb,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{class:Y(["kb-slider-card-basic",{"full-height-image":!n.data.title&&!n.data.summary}]),href:n.data.url},[n.data.imageUrl?(Ai(),Si("div",Fb,[Mi("img",{class:Y({"full-height-image":!n.data.title&&!n.data.summary}),src:n.data.imageUrl},null,10,Vb)])):zi("v-if",!0),n.data.date?(Ai(),Si("p",zb,fe(n.data.date),1)):zi("v-if",!0),n.data.title?(Ai(),Si("h3",{key:2,class:Y(["kb-slider-card-basic__title",{"kb-slider-card-basic__title--large":!n.data.imageUrl}])},fe(n.data.title),3)):zi("v-if",!0),n.data.summary?(Ai(),Si("p",Ub,fe(n.data.summary),1)):zi("v-if",!0)],10,Rb)}]]);var Gb=["href"],Kb={class:"kb-activity-slider-card__top-info"},Zb={class:"kb-activity-card__label"},Wb={key:0,class:"kb-activity-card__label__dates single-date"},$b={class:"kb-activity-card__label__date single-date"},Yb={class:"kb-activity-card__label__month single-date"},Jb={key:1,class:"kb-activity-card__label__dates single-month"},Xb={class:"kb-activity-card__label__date"},Qb={class:"kb-activity-card__label__month"},ev={key:2,class:"kb-activity-card__label__dates"},tv={class:"kb-activity-card__label__date"},nv={class:"kb-activity-card__label__month"},ov={class:"kb-activity-card__label__date"},rv={class:"kb-activity-card__label__month"},av={class:"kb-activity-card__event-info"},iv={class:"kb-activity-card__event-info__event-data__wrapper"},lv={class:"kb-activity-card__event-info__event-data__container"},sv={class:"kb-activity-card__event-info__event-data__container"},cv={class:"kb-activity-card__event-info__event-data"},uv={class:"kb-activity-slider-card__event-status-name"},dv={key:0,class:"kb-activity-card__event-info__event-data__container"},pv={class:"kb-activity-card__event-info__title"},fv={class:"kb-activity-card__event-info__text"};const mv={name:"ActivitySliderCard",props:{data:{type:Object,required:!0},truncateSummary:{type:Object,required:!0}}},gv=(0,Hb.A)(mv,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:n.data.url,class:"kb-activity-slider-card"},[Mi("div",Kb,[Mi("div",Zb,["single"===n.data.type?(Ai(),Si("p",Wb,[Mi("span",$b,fe(n.data.dayRange[0])+".",1),Mi("span",Yb,fe(n.data.monthName[0]),1)])):1===n.data.monthName.length?(Ai(),Si("p",Jb,[Mi("span",Xb,fe(n.data.dayRange[0])+".-"+fe(n.data.dayRange[1])+".",1),Mi("span",Qb,fe(n.data.monthName[0]),1)])):(Ai(),Si("p",ev,[Mi("span",tv,fe(n.data.dayRange[0])+".",1),Mi("span",nv,fe(n.data.monthName[0]),1),t[0]||(t[0]=Mi("br",null,null,-1)),t[1]||(t[1]=Fi("-",-1)),t[2]||(t[2]=Mi("br",null,null,-1)),Mi("span",ov,fe(n.data.dayRange[1])+".",1),Mi("span",rv,fe(n.data.monthName[1]),1)]))]),Mi("div",av,[Mi("div",iv,[Mi("div",lv,[t[3]||(t[3]=Mi("div",{class:"kb-activity-card__event-info__event-data__icon-wrapper"},[Mi("svg",{viewBox:"0 0 10 15",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 5C0.75 2.65279 2.65279 0.75 5 0.75C7.34721 0.75 9.25 2.65279 9.25 5C9.25 6.94234 8.13878 9.10096 7.00812 10.787L6.14901 10.1493L5.85099 10.5507L7.12762 11.4984L7.27448 11.2847C8.4599 9.56044 9.75 7.18962 9.75 5C9.75 2.37665 7.62335 0.25 5 0.25C2.37665 0.25 0.25 2.37665 0.25 5C0.25 7.07894 1.41271 9.31976 2.54199 11.0137C3.11055 11.8665 3.67867 12.5924 4.10458 13.1051C4.31764 13.3615 4.49541 13.565 4.62023 13.7047C4.68264 13.7745 4.73184 13.8284 4.76562 13.8651C4.78251 13.8834 4.79554 13.8974 4.80445 13.907L4.81468 13.9179L4.81741 13.9208L4.81839 13.9218L5 14.1135L5.18305 13.9203L5.18703 13.9161L5.20201 13.9C5.21507 13.886 5.23419 13.8654 5.25885 13.8385C5.30818 13.7846 5.37973 13.7054 5.46951 13.6035C5.64904 13.3996 5.90163 13.1044 6.19525 12.7372L5.80475 12.4249C5.51675 12.7851 5.26934 13.0743 5.09428 13.273C5.05999 13.312 5.02848 13.3474 5 13.3793L4.99305 13.3715C4.87178 13.2358 4.69798 13.0369 4.48917 12.7856C4.07133 12.2826 3.51445 11.571 2.95801 10.7363C1.83729 9.05524 0.75 6.92106 0.75 5ZM5 13.75L4.81839 13.9218C4.81839 13.9218 4.81851 13.9219 5 13.75Z",fill:"#3C3C3C"}),Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.75C3.20507 1.75 1.75 3.20507 1.75 5C1.75 6.79493 3.20507 8.25 5 8.25C6.79493 8.25 8.25 6.79493 8.25 5C8.25 3.20507 6.79493 1.75 5 1.75ZM2.25 5C2.25 3.48122 3.48122 2.25 5 2.25C6.51878 2.25 7.75 3.48122 7.75 5C7.75 6.51878 6.51878 7.75 5 7.75C3.48122 7.75 2.25 6.51878 2.25 5Z",fill:"#3C3C3C"})])],-1)),Mi("p",null,fe(n.data.city),1)]),Mi("div",sv,[Mi("div",cv,[Mi("div",{class:Y(["kb-activity-card__event-status-".concat(n.data.type," ").concat(n.data.statusColor),"kb-activity-card__event-info__event-data__icon-wrapper kb-activity-card__event-info__event-data__icon-wrapper--solid-icon"])}
2,null,2)]),Mi("p",uv,fe(n.data.statusDisplayName),1)]),n.data.typeDisplayName?(Ai(),Si("div",dv,[t[4]||(t[4]=Mi("div",{class:"kb-activity-card__event-info__event-data"},[Mi("div",{class:"kb-activity-card__event-info__event-data__icon-wrapper"},[Mi("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 2H2.5V3H1.5H1V4.5H1.5V3.5H2.5V4.5H3V3.5H6V4.5H6.5V3.5H9.5V4.5H10V3.5H13V4.5H13.5V3.5H14.5V6H1.5H1V6.5V13V13.5H15V13V6.5V6V3H14.5H13.5V2H13V3H10V2H9.5V3H6.5V2H6V3H3V2ZM14.5 13V6.5H1.5L1.5 13H14.5Z",fill:"#3C3C3C"})])])],-1)),Mi("p",null,fe(n.data.typeDisplayName),1)])):zi("v-if",!0)])])]),Mi("h3",pv,fe(n.data.eventName),1),Mi("p",fv,fe(n.truncateSummary(n.data.summary)),1)],8,Gb)}]]);var hv=["href"],bv={key:0,class:"kb-podcast-slider-card__image"},vv=["src"],yv={class:"kb-podcast-slider-card__date"},_v={class:"kb-podcast-slider-card__title"};const Av={name:"PodcastSliderCard",props:{data:{type:Object,required:!0}}},kv=(0,Hb.A)(Av,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:n.data.url,class:"kb-podcast-slider-card",draggable:"true"},[n.data.imageUrl?(Ai(),Si("div",bv,[Mi("img",{src:n.data.imageUrl},null,8,vv)])):zi("v-if",!0),Mi("p",yv,fe(n.data.date),1),Mi("h3",_v,fe
2(n.data.title),1)],8,hv)}]]);var xv=["href"],wv={key:0,class:"kb-case-card__image"},Cv=["src"],Ev={class:"kb-case-card__quote-wrapper"},Sv={class:"kb-case-card__quote"},Tv={class:"kb-case-card__quotee"};const Iv={name:"CaseCard",options:{name:"CaseCard",setup:function(){}},props:{data:{type:Object,required:!0}}},Bv=(0,Hb.A)(Iv,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{class:"kb-case-card",href:n.data.url},[n.data.imageUrl?(Ai(),Si("div",wv,[Mi("img",{src:n.data.imageUrl},null,8,Cv)])):zi("v-if",!0),Mi("div",Ev,[Mi("blockquote",Sv,'"'+fe(n.data.quote)+'"',1),Mi("cite",Tv,fe(n.data.quotee),1)])],8,xv)}]]);var Ov=["href"],Lv={key:0,class:"kb-report-card__image"},Dv=["src"],Mv={class:"kb-report-card__title"},Nv={class:"kb-report-card__text"};function Pv(e,t){var n;if(!t)return e;var o=e.split("?")[0],r=null!==(n=t.transform)&&void 0!==n?n:"fill";return o+"?io=transform:".concat(r,",width:").concat(t.width,",height:").concat(t.height)}var Rv={width:400,height:500},Fv={width:640,height:512},Vv={transform:"fit",width:500,height:707};const zv={name:"ReportCard",props:{data:{type:Object,required:!0}},setup:function(){return{imageTransform:Pv,reportCard_4_5:Vv}}},Uv=(0,Hb.A)(zv,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:n.data.url,class:"kb-report-card",draggable:"true"},[n.data.imageUrl?(Ai(),Si("div",Lv,[Mi("img",{src:o.imageTransform(n.data.imageUrl,o.reportCard_4_5)},null,8,Dv)])):zi("v-if",!0),Mi("h3",Mv,fe(n.data.title),1),Mi("p",Nv,fe(n.data.summary),1)],8,Ov)}]]);var jv=["href"],Hv=["innerHTML"],qv={class:"kb-group-card-a__title"},Gv={class:"kb-group-card-a__description"},Kv={class:"kb-group-card-a__badges"},Zv={class:"kb-group-card-a__badges-badge"},Wv={key:0},$v={key:1,class:"kb-group-card-a__badges-badge__skeleton"};const Yv={name:"ThemeCard",props:{content:{type:Object,default:{}},layoutA:{type:Boolean,default:!1}},setup:function(e){var t=Af(),n=bl(function(){return t.state.forum.theme_statistics[e.content.themeId]}),o=bl(function(){var e;return null===(e=n.value)||void 0===e?void 0:e.groupsCount});return Dr(function(){e.content.themeId&&t.dispatch("forum/getThemeStatistics",{themeId:e.content.themeId})}),{groupsCount:o,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"ThemeCard",labelKey:e})}}}},Jv=Yv,Xv=(0,Hb.A)(Jv,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:e.content.href},[Mi("article",{class:Y(["kb-group-card-a",e.content.colorTheme])},[Mi("div",{class:"kb-group-card-a__circle",innerHTML:e.content.icon,"aria-hidden":"true"},null,8,Hv),Mi("h3",qv,[Fi(fe(e.content.title)+" ",1),t[0]||(t[0]=Mi("span",{class:"kb-group-card-a__title-icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 16",role:"presentation"},[Mi("path",{stroke:"#3C3C3C","stroke-linejoin":"round",d:"m12.167 4 3.623 4-3.623 4"}),Mi("path",{stroke:"#3C3C3C",d:"M11.746 8H0"})])],-1))]),Mi("p",Gv,fe(e.content.description),1),Mi("div",Kv,[Mi("span",Zv,[t[1]||(t[1]=Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",role:"presentation"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M4.5 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm.5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm1 6.15c0-1.203.91-2.15 2-2.15 1.09 0 2 .947 2 2.15v2.85h.5V9.993A2.496 2.496 0 0 1 13 7.5c1.381 0 2.5 1.117 2.5 2.493V13h-1v.5H16V9.993A2.996 2.996 0 0 0 13 7a3 3 0 0 0-2.898 2.216C9.66 8.488 8.89 8 8 8c-.889 0-1.66.488-2.102 1.216A3 3 0 0 0 3 7C1.344 7 0 8.34 0 9.993V13.5h1.5V13h-1V9.993A2.496 2.496 0 0 1 3 7.5c1.381 0 2.5 1.117 2.5 2.493V13.5H6v-2.85ZM13 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0 .5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-3.75-.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm.5 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z","clip-rule":"evenodd"})],-1)),void 0!==e.groupsCount?(Ai(),Si("span",Wv,fe(e.groupsCount)+" "+fe(e.getLabel("groupsLabel")),1)):(Ai(),Si("span",$v))])])],2)],8,jv)}]]);function Qv(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return ey(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(ey(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ey(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,ey(d,"constructor",c),ey(c,"constructor",s),s.displayName="GeneratorFunction",ey(c,r,"GeneratorFunction"),ey(d),ey(d,r,"Generator"),ey(d,o,function(){return this}),ey(d,"toString",function(){return"[object Generator]"}),(Qv=function(){return{w:a,m:p}})()}function ey(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ey=function(e,t,n,o){function a(t,n){ey(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},ey(e,t,n,o)}function ty(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function ny(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){ty(a,o,r,i,l,"next",e)}function l(e){ty(a,o,r,i,l,"throw",e)}i(void 0)})}}var oy=function(e){e.value.querySelectorAll(".glide__slide").forEach(function(e){e.style.height="auto"})};const ry={name:"ContentCarousel",components:{SliderCardBasic:qb,ActivitySliderCard:gv,PodcastSliderCard:kv,CaseCard:Bv,ReportCard:Uv,ThemeCard:Xv},props:{glideBehaviour:{type:String,required:!1,default:"slider"},contentJson:{required:!0},type:{type:String,required:!1,default:"news"},link:{type:Object,required:!1},carouselId:{type:String,required:!1}},setup:function(e){var t,n,o=Kt(null),r=Kt(null),a=Kt(0),i=Af(),l=null!==(t={news:{card:"SliderCardBasic"},activities:{card:"ActivitySliderCard"},cases:{card:"CaseCard"},podcasts:{card:"PodcastSliderCard",perView:4},personalFundraisings:{card:"SliderCardBasic"},reports:{card:"ReportCard"},groups:{card:"ThemeCard"}}[e.type])&&void 0!==t?t:{card:"SearchResultCard"},s=function(){var t=e.glideBehaviour,n=document.documentElement.clientWidth,o=l.perView,r=e.carouselId,i=e.contentJson.length;return"cases"===e.type?function(e){var t=e.glideBehaviour,n=e.carouselId,o=e.numberOfCases,r=e.startAt,a=document.querySelector("#".concat(n)).parentNode.offsetWidth,i={type:t,startAt:null!=r?r:0,perView:2,gap:26,peek:{after:275,before:0}};return"slider"===t&&(i.rewind=!1,i.bound=!0),a<600?Ob(Ob({},i),{},{perView:1,gap:14,peek:{after:75,before:0}}):2==o||a<800?Ob(Ob({},i),{},{perView:1.5,gap:26,peek:{after:75,before:0}}):a<1e3?Ob(Ob({},i),{},{perView:1.5,gap:26,peek:{after:150,before:0}}):a<1200?Ob(Ob({},i),{},{perView:2,gap:26,peek:{after:150,before:0}}):i}({glideBehaviour:t,carouselId:r,numberOfCases:i,startAt:a.value}):"podcasts"===e.type?function(e){var t=e.glideBehaviour,n=e.carouselId,o=e.startAt,r=document.querySelector("#".concat(n)).parentNode.offsetWidth,a={type:t,startAt:null!=o?o:0,perView:3.95,gap:32,peek:{after:275,before:0}};return"slider"===t&&(a.rewind=!1,a.bound=!0),r<400?Object.assign(a,{perView:1.1,gap:32,peek:{after:50,before:0}}):r<500?Object.assign(a,{perView:1.6,gap:32,peek:{after:50,before:0}}):r<700?Object.assign(a,{perView:2.1,gap:32,peek:{after:75,before:0}}):r<800?Object.assign(a,{perView:2.6,gap:32,peek:{after:70,before:0}}):r<1e3?Object.assign(a,{perView:3.2,gap:32,peek:{after:70,before:0}}):r<1200?Object.assign(a,{perView:3.8,gap:32,peek:{after:160,before:0}}):a}({glideBehaviour:t,carouselId:r,startAt:a.value}):"groups"===e.type?function(e){var t=e.glideBehaviour,n=e.carouselId,o=e.numberOfCases,r=e.startAt,a=document.querySelector("#".concat(n)).parentNode.offsetWidth,i={type:t,startAt:null!=r?r:0,perView:2.1,gap:22,peek:{after:275,before:0}};return"slider"===t&&(i.rewind=!1,i.bound=!0),a<600?Nb(Nb({},i),{},{perView:1,gap:20,peek:{after:75,before:0}}):2==o?Nb(Nb({},i),{},{perView:2,gap:20,peek:{after:75,before:0}}):a<800?Nb(Nb({},i),{},{perView:1.95,gap:20,peek:{after:75,before:0}}):a<1e3?Nb(Nb({},i),{},{perView:2.1,gap:20,peek:{after:150,before:0}}):a<1200?Nb(Nb({},i),{},{perView:2.8,gap:20,peek:{after:150,before:0}}):i}({glideBehaviour:t,carouselId:r,startAt:a.value}):function(e){var t=e.glideBehaviour,n=e.viewportSize,o=e.perView,r=e.startAt,a={type:t,startAt:null!=r?r:0,perView:null!=o?o:3,gap:32,peek:{after:275,before:0}};return"slider"===t&&(a.rewind=!1,a.bound=!0),n<720?Object.assign(a,{perView:1,gap:25,peek:{after:75,before:0}}):n<1e3?Object.assign(a,{perView:2,gap:25,peek:{after:75,before:0}}):n<1200?Object.assign(a,{perView:3,gap:25,peek:{after:75,before:0}}):a}({glideBehaviour:t,viewportSize:n,perView:o,startAt:a.value})};function c(t){if(!(n instanceof Tb))return!1;
2var o=t.querySelector('.kb-content-carousel__arrow[data-glide-dir=">"]'),r=t.querySelector('.kb-content-carousel__arrow[data-glide-dir="<"]');if(!o||!r)return!1;var i=n.settings.perView,l=e.contentJson.length-i,s=function(e,t){e.disabled=t,e.setAttribute("aria-disabled",String(t)),e.tabIndex=t?-1:0};return s(o,a.value>=l),s(r,0===a.value),!0}return Dr(ny(Qv().m(function t(){var r,i;return Qv().w(function(t){for(;;)switch(t.n){case 0:return oy(o),t.n=1,Nn();case 1:if(i=document.querySelector("#".concat(e.carouselId))){t.n=2;break}return console.error("Error in initializing ContentCarousel Slider on sliderDOM:",i),t.a(2);case 2:(n=new Tb(i,s())).on("resize",function(){n.update(s()),c(i)}),n.on("move",function(){a.value=n.index,c(i)}),n.mount(),c(i),null===(r=i.querySelector(".glide"))||void 0===r||r.addEventListener("keydown",function(e){if(9==e.keyCode){var t,o,r=null===(t=e.target)||void 0===t?void 0:t.parentNode;if(null==r)return;var a=e.shiftKey?r.previousSibling:r.nextSibling,i=null==a||null===(o=a.attributes["data-index"])||void 0===o?void 0:o.value;i&&n.go("="+i)}});case 3:return t.a(2)}},t)}))),{displayProperties:l,componentRootEl:r,getLabel:function(t){return i.getters["labels/getLabel"]({labelCollection:"contentCarousel-".concat(e.carouselId),labelKey:t,emptyIfMissing:!0})},root:o,link:e.link,truncateSummary:function(e){return e.length>120?e.substring(0,117)+"...":e}}}},ay=ry,iy=(0,Hb.A)(ay,[["render",function(e,t,n,o,r,a){var i;return Ai(),Si("article",xh,[e.getLabel("contentCarouselTitle")&&""!==e.getLabel("contentCarouselTitle").trim()?(Ai(),Si("h2",wh,fe(e.getLabel("contentCarouselTitle")),1)):zi("v-if",!0),Mi("div",{id:e.carouselId,class:"glide"},[Mi("div",Eh,[Mi("button",Sh,Ah(t[0]||(t[0]=[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-chevron-down"},null,-1)])),512),Mi("button",Th,Ah(t[1]||(t[1]=[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-chevron-up"},null,-1)])),512)]),Mi("div",Ih,[Mi("div",Bh,[(Ai(!0),Si(gi,null,Yr(e.contentJson,function(t,n){return Ai(),Si("p",{class:"glide__slide kb-content-carousel__card",role:"group","aria-roledescription":"karusselelement","aria-label":"".concat(n+1," af ").concat(e.contentJson.length),"data-index":"".concat(n)},[zi(" OBS! :content attribute on component specifically unique for ThemeCard added later as option in ContentCarousel (different from inuform :data attribute)"),(Ai(),Ti(Kr(e.displayProperties.card),{data:t,content:t,truncateSummary:e.truncateSummary},null,8,["data","content","truncateSummary"]))],8,Oh)}),256))])],512)],8,Ch),Mi("div",Lh,[null!==(i=e.link)&&void 0!==i&&i.href?(Ai(),Si("a",{key:0,href:e.link.href,target:e.link.target,class:"kb-content-carousel__bottom__link"},[Mi("span",null,fe(e.getLabel("contentCarouselLinkText")),1),t[2]||(t[2]=Vi('<div class="kb-content-carousel__bottom__link-icon"><svg width="17" height="10" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke="#E8001D"><path d="m12.167 1 3.623 4-3.623 4" stroke-linejoin="round"></path><path d="M11.746 5H0"></path></g></svg></div>',1))],8,Dh)):zi("v-if",!0)])],512)}]]),ly={name:"SecondaryArticleSpots",components:{ContentCarousel:iy,SliderCardBasic:qb},props:{contentJson:{type:Object,required:!0},link:{type:Object,required:!1},carouselId:{type:String,required:!0}},setup:function(){var e=Af();return{getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"secondaryArticleSpots",labelKey:t})},ContentCarousel:iy,SliderCardBasic:qb}}},sy=ly,cy=(0,Hb.A)(sy,[["render",function(e,t,n,o,r,a){var i=qr("SliderCardBasic"),l=qr("ContentCarousel");return Ai(),Si("article",fh,[zi(" hvis det er desktop eller laptop grid med secondary article cards"),Mi("section",mh,[Mi("div",gh,[t[0]||(t[0]=Mi("div",{class:"kb-secondary-article-spots__header-breaker"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 11"},[Mi("path",{stroke:"#124999",d:"M704 1H2c-.55228 0-1 .44772-1 1v9"})])],-1)),Mi("h4",hh,fe(e.getLabel("title")),1)]),Mi("div",bh,[(Ai(!0),Si(gi,null,Yr(e.contentJson,function(e,t){return Ai(),Ti(i,{data:e},null,8,["data"])}),256))])]),zi(" hvis der er tablet eller mobile - ContentCarousel med cards'ne "),Mi("section",vh,[Mi("div",yh,[t[1]||(t[1]=Mi("div",{class:"kb-secondary-article-spots__header-breaker kb-secondary-article-spots__slider-header-breaker"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 11"},[Mi("path",{stroke:"#124999",d:"M704 1H2c-.55228 0-1 .44772-1 1v9"})])],-1)),Mi("h4",_h,fe(e.getLabel("title")),1)]),Ni(l,{contentJson:e.contentJson,link:e.link,carouselId:e.carouselId},null,8,["contentJson","link","carouselId"])])])}]]);function uy(e){return function(e){if(Array.isArray(e))return dy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return dy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dy(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var py={key:0,class:"kb-tooltip-component__container","aria-live":"polite"},fy=["aria-expanded","aria-label"],my={key:0,class:"kb-tooltip-component","aria-tooltip":"",ref:"wordPopup"},gy={class:"kb-tooltip-component__triangle",ref:"arrow"},hy={class:"kb-tooltip-component__definition"};const by={name:"TooltipComponent",props:{tooltipText:{type:String,required:!0},tooltipName:{type:String,required:!0}},setup:function(e){var t=Kt(!1),n=Kt(null),o=Kt(null),r=Kt(null),a=Kt(null),i=null,l=null,s=bl(function(){var t;return null!==(t=e.tooltipName)&&void 0!==t?t:""}),c=function(){l&&(document.body.removeEventListener("keydown",l),l=null)},u=function(e){var t;o.value&&!o.value.contains(e.target)&&(null!==(t=n.value)&&void 0!==t&&t.contains(e.target)||(e.preventDefault(),p()))},d=function(){var e;if(o.value&&n.value&&r.value){var t=0,i=o.value.getBoundingClientRect().left,l=o.value.getBoundingClientRect().right,s=o.value.getBoundingClientRect().bottom,c=o.value.offsetWidth,d=c/2-(n.value.offsetWidth/2-10),p=s>document.documentElement.clientHeight,f=d>i,m=l-d>document.documentElement.offsetWidth;if(p&&(o.value.style.bottom=n.value.offsetHeight+10+"px",r.value.style.bottom="-10px",r.value.style.top="auto"),f)d-=d-i,t=n.value.offsetWidth/2-10+n.value.getBoundingClientRect().left;else if(m){var g=l-d-document.documentElement.offsetWidth;d+=g,t=c/2+g}o.value.style.left="-"+d+"px",t&&(r.value.style.left=t+"px"),document.body.addEventListener("click",u),null===(e=a.value)||void 0===e||e.focus()}},p=function(){clearTimeout(i),i=null,document.body.removeEventListener("click",u),c(),t.value=!1};return Pr(function(){p()}),{arrow:r,closeDialog:p,closeButton:a,display:t,highlighted:n,showDialog:function(e){null==e||e.stopPropagation(),t.value?p():(c(),l=function(e){"Escape"===e.key&&p()},document.body.addEventListener("keydown",l),t.value=!0,clearTimeout(i),i=setTimeout(d,10))},tapTrap:function(e){var t;e.preventDefault(),e.stopPropagation(),p(),null===(t=n.value)||void 0===t||t.focus()},wordPopup:o,tooltipAccessibleName:s}}},vy=by,yy=(0,Hb.A)(vy,[["render",function(e,t,n,o,r,a){return e.tooltipText?(Ai(),Si("div",py,[Mi("button",{type:"button",onClick:t[0]||(t[0]=function(){return e.showDialog&&e.showDialog.apply(e,arguments)}),onKeydown:t[1]||(t[1]=cc(function(){return e.showDialog&&e.showDialog.apply(e,arguments)},["enter"])),"aria-haspopup":"true","aria-expanded":e.display,"aria-label":e.tooltipAccessibleName,tabindex:"0",class:"kb-tooltip-component__tooltip-button",ref:"highlighted"},uy(t[4]||(t[4]=[Mi("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("rect",{x:".5",y:".5",width:"19",height:"19",rx:"9.5",stroke:"#BFBFB7"}),Mi("path",{d:"M9.808 4C8.272 4 6.896 4.704 6 6.064l.944.8c.624-1.088 1.616-1.696 2.848-1.696 1.504 0 2.496.928 2.496 2.32s-1.04 2.336-2.544 2.336H9.04v2.672h1.184V10.88c1.968-.176 3.296-1.488 3.296-3.408C13.52 5.408 12.032 4 9.808 4Zm-.176 9.856a.826.826 0 0 0-.832.832c0 .48.368.832.832.832a.816.816 0 0 0 .832-.832.826.826 0 0 0-.832-.832Z",fill:"#BFBFB7"})],-1)])),40,fy),e.display?(Ai(),Si("div",my,[Mi("div",gy,null,512),Mi("button",{class:"kb-tooltip-component__close","aria-label":"luk",ref:"closeButton",onKeydown:t[2]||(t[2]=function(){return e.tapTrap&&e.tapTrap.apply(e,arguments)}),onClick:t[3]||(t[3]=function(){return e.closeDialog&&e.closeDialog.apply(e,arguments)})},uy(t[5]||(t[5]=[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-close"},null,-1)])),544),Mi("p",hy,fe(e.tooltipText),1)],512)):zi("v-if",!0)])):zi("v-if",!0)}]]);var _y=document.querySelectorAll(".kb-component--tooltip-component");const Ay={name:"Accordion",props:{productNumber:{type:Boolean,required:!1,default:!0}},setup:function(){return{toggleAccordion:function(e){var t=!("true"!==e.currentTarget.getAttribute("aria-expanded")),n=document.querySelector("#"+e.currentTarget.getAttribute("aria-controls"));e.currentTarget.querySelector(".kb-accordion__question__chevron").classList[t?"remove":"add"]("kb-accordion__question__chevron--open"),n.classList[t?"remove":"add"]("kb-accordion__answer--open"),n.setAttribute("aria-hidden",t?"true":"false"),e.currentTarget.setAttribute("aria-expanded",t?"false":"true"),n.querySelectorAll("a").forEach(function(e){t?e.setAttribute("tabindex",-1):e.removeAttribute("tabindex")})}}}};function ky(e){var t=document.querySelectorAll(".kb-component--accordion");t.length&&t.forEach(function(t){if(t.hasAttribute("data-v-app"))return!1;bc(Ay).use(e).mount(t),t.querySelectorAll("a").forEach(function(e){e.setAttribute("tabindex",-1)})})}var xy={class:"kb-action-response-box__content","aria-live":"polite",role:"dialog","aria-labelledby":"dialog"},wy={class:"kb-action-response-box__text",id:"dialog"},Cy={class:"kb-action-response-box__triangle",ref:"arrow"};const Ey={name:"ActionResponseBox",props:{actionResponseText:{type:String,required:!0},lifeTime:{type:Number,required:!1,default:2500},fadeDuration:{type:Number,required:!1,default:500}},setup:function(e){var t=Kt(!1),n=e.lifeTime-e.fadeDuration;return Dr(function(){setTimeout(function(){t.value=!0},n)}),{visibilityStatusClass:t}}},Sy=(0,Hb.A)(Ey,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-action-response-box",{"kb-action-response-box--invisible":e.visibilityStatusClass}]),style:G({transition:"all "+e.fadeDuration+"ms ease-in-out"})}
2,[Mi("div",xy,[Mi("p",wy,fe(e.actionResponseText),1),Mi("div",Cy,null,512)])],6)}]]);function Ty(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Iy={class:"kb-active-groups"},By={key:0,class:"kb-active-groups__header"},Oy={class:"kb-active-groups__header-title"},Ly={class:"kb-active-groups__header-description"},Dy={key:1,class:"kb-active-groups__count"},My={key:2,class:"kb-spinner-overlay"},Ny={class:"kb-group-details"},Py=["href"],Ry={class:"kb-group-details__header"},Fy=["innerHTML"],Vy={class:"kb-group-details__header-info"},zy={class:"kb-group-details__header-labels"},Uy={key:0,class:"kb-group-details__header-label"},jy={key:1,class:"kb-group-details__header-label"},Hy={class:"kb-group-details__header-title"},qy={class:"kb-group-details__tags"},Gy={class:"kb-group-details__tags-tag"},Ky={key:0},Zy={key:1,class:"kb-group-details__tags-tag__skeleton"},Wy={class:"kb-group-details__tags-tag"},$y={key:0},Yy={key:1,class:"kb-group-details__tags-tag__skeleton"},Jy={class:"kb-group-details__actions"};const Xy={name:"GroupDetails",props:{id:{type:String,required:!0},svgIcon:{type:String,required:!0},colorTheme:{type:String,required:!1},title:{type:String,required:!0},type:{type:String,required:!1},updates:{type:Number,required:!1},numberOfMembers:{type:Number,required:!1},numberOfPosts:{type:Number,required:!1},link:{type:String,required:!0}},setup:function(e){var t=Af(),n=bl(function(){return t.state.forum.group_statistics[e.id]}),o=bl(function(){var e;return null===(e=n.value)||void 0===e?void 0:e.memberCount}),r=bl(function(){var e;return null===(e=n.value)||void 0===e?void 0:e.postsCount});return Dr(function(){t.dispatch("forum/getGroupStatistics",{groupId:e.id})}),{memberCount:o,postsCount:r,handleLeaveGroup:function(){t.dispatch("forum/leaveGroup",{groupId:e.id})},getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"GroupDetails",labelKey:e})}}}},Qy=Xy,e_=(0,Hb.A)(Qy,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",Ny,[Mi("a",{href:e.link},[Mi("div",Ry,[Mi("div",{class:Y(["kb-group-details__header-symbol",e.colorTheme])},[Mi("div",{innerHTML:e.svgIcon},null,8,Fy)],2),Mi("div",Vy,[Mi("div",zy,[e.type?(Ai(),Si("span",Uy,fe(e.type),1)):zi("v-if",!0),e.updates?(Ai(),Si("span",jy,[t[1]||(t[1]=Mi("span",{class:"kb-group-details__header-label-circle"},null,-1)),Fi(" "+fe(e.updates)+" "+fe(e.getLabel("newUpdates")),1)])):zi("v-if",!0)]),Mi("h2",Hy,fe(e.title),1)])])],8,Py),Mi("div",qy,[Mi("div",Gy,[t[2]||(t[2]=Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M4.5 2.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm.5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm1 6.15c0-1.203.91-2.15 2-2.15 1.09 0 2 .947 2 2.15v2.85h.5V7.993A2.496 2.496 0 0 1 13 5.5c1.381 0 2.5 1.117 2.5 2.493V11h-1v.5H16V7.993A2.996 2.996 0 0 0 13 5a3 3 0 0 0-2.898 2.216C9.66 6.488 8.89 6 8 6c-.889 0-1.66.488-2.102 1.216A3 3 0 0 0 3 5C1.344 5 0 6.34 0 7.993V11.5h1.5V11h-1V7.993A2.496 2.496 0 0 1 3 5.5c1.381 0 2.5 1.117 2.5 2.493V11.5H6V8.65ZM13 4a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0 .5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-3.75-.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm.5 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z","clip-rule":"evenodd"})],-1)),e.memberCount||0===e.memberCount?(Ai(),Si("span",Ky,fe(e.memberCount)+" "+fe(e.getLabel("members")),1)):(Ai(),Si("span",Zy))]),Mi("div",Wy,[t[3]||(t[3]=Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M10.706 8.746h.024a.65.65 0 0 0 .62-.644V1.395a.651.651 0 0 0-.651-.649H1.024a.651.651 0 0 0-.651.651v6.047h1.674v-.558H.931V1.397a.093.093 0 0 1 .093-.093H10.7a.093.093 0 0 1 .093.093v6.704a.09.09 0 0 1-.091.089H3.072c-2.231-.002-2.7 1.263-2.7 2.324v.279h.558v-.28c0-1.209.68-1.767 2.14-1.767h7.635Zm4.272-3.349h-2.884v.558h2.884a.093.093 0 0 1 .093.093v5.489h-1.117v.558h1.675V6.048a.65.65 0 0 0-.651-.65Zm-4.795 7.442h2.748c2.229 0 2.698 1.265 2.698 2.326v.279h-.558v-.28c0-1.209-.68-1.767-2.14-1.767H5.296a.652.652 0 0 1-.646-.642V9.49h.558v3.26a.09.09 0 0 0 .092.09h4.883Z","clip-rule":"evenodd"})],-1)),e.postsCount||0===e.postsCount?(Ai(),Si("span",$y,fe(e.postsCount)+" "+fe(e.getLabel("posts")),1)):(Ai(),Si("span",Yy))])]),Mi("div",Jy,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.handleLeaveGroup&&e.handleLeaveGroup.apply(e,arguments)}
2),class:"kb-group-details__actions-leave"},fe(e.getLabel("leaveGroupButtonLabel")),1)])])}]]);function t_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var n_={key:0,class:"kb-spot-card__box__decoration"},o_={class:"kb-spot-card__box__content-container"},r_={key:0,class:"kb-spot-card__box__icon-wrapper"},a_=["innerHTML"],i_={class:"kb-spot-card__box__content"},l_={class:"kb-spot-card__box__title"},s_={class:"kb-spot-card__box__paragraph"},c_={class:"kb-spot-card__box__button-wrapper"},u_=["href","target"],d_=["innerHTML"];const p_={name:"SpotCard",props:{spotCardData:{type:Object,required:!0}},setup:function(e){return e.spotCardData}},f_=(0,Hb.A)(p_,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",{class:Y(["kb-spot-card",e.spotCardData.colorTheme])},[zi(" v-if is to make sure decoration is shown if icon not active - icon and decoration cannot exit simultanously "),e.spotCardData.svgIcon?zi("v-if",!0):(Ai(),Si("div",n_,(i=t[0]||(t[0]=[Mi("svg",{width:"",height:"",viewBox:"0 0 946 257",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{d:"M-698.154 720.628C-614.642 775.767 -501.149 766.579 -427.628 693.059L103.706 162.567C312.897 -46.6238 652.06 -46.6238 861.245 162.567C1070.44 371.759 1070.44 710.921 861.245 920.107C652.054 1129.3 312.892 1129.3 103.706 920.107",stroke:"white","stroke-width":"130.892","stroke-miterlimit":"10"}),Mi("path",{d:"M-958.538 919.683C-1167.73 710.492 -1167.73 371.329 -958.538 162.143C-749.347 -47.0478 -410.184 -47.0478 -200.999 162.143L330.335 693.478C414.361 777.504 550.59 777.504 634.616 693.478C718.642 609.452 718.642 473.223 634.616 389.197C550.59 305.171 414.361 305.171 330.335 389.197L-200.999 919.688C-250.109 968.799 -306.376 1006.38 -366.449 1032.43",stroke:"white","stroke-width":"130.892","stroke-miterlimit":"10"})],-1)]),function(e){if(Array.isArray(e))return t_(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return t_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t_(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))),Mi("div",o_,[e.spotCardData.svgIcon?(Ai(),Si("div",r_,[Mi("div",{class:"kb-spot-card__box__circle",innerHTML:e.spotCardData.svgIcon},null,8,a_)])):zi("v-if",!0),Mi("div",i_,[Mi("h3",l_,fe(e.spotCardData.title),1),Mi("p",s_,fe(e.spotCardData.text),1),Mi("div",c_,[(Ai(!0),Si(gi,null,Yr(e.spotCardData.buttons,function(e,t){return Ai(),Si("a",{key:t,href:e.href,target:e.target,class:"kb-button kb-button--spot-border-color"},[Fi(fe(e.text)+" ",1),Mi("div",{class:"kb-button__icon-wrapper",innerHTML:e.svgIcon},null,8,d_)],8,u_)}),128))])])])],2);var i}]]);function m_(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return g_(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(g_(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,g_(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,g_(d,"constructor",c),g_(c,"constructor",s),s.displayName="GeneratorFunction",g_
2(c,r,"GeneratorFunction"),g_(d),g_(d,r,"Generator"),g_(d,o,function(){return this}),g_(d,"toString",function(){return"[object Generator]"}),(m_=function(){return{w:a,m:p}})()}function g_(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}g_=function(e,t,n,o){function a(t,n){g_(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},g_(e,t,n,o)}function h_(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function b_(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){h_(a,o,r,i,l,"next",e)}function l(e){h_(a,o,r,i,l,"throw",e)}i(void 0)})}}const v_={name:"ActiveGroups",components:{GroupDetails:e_,ThemeCard:Xv,SpotCard:f_},props:{guid:{type:String,required:!0}},setup:function(e){var t=Af(),n=bl(function(){return t.state.search.results[e.guid]}),o=bl(function(){return t.state.search.is_searching}),r=bl(function(){var n;return!o.value&&0===(null===(n=t.state.search.results[e.guid])||void 0===n?void 0:n.length)});return Dr(b_(m_().m(function n(){return m_().w(function(n){for(;;)switch(n.n){case 0:return o.value=!0,n.n=1,t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:1e3,showMorePageSize:1e3,url:"api/community/user/groups?pageId=[pageId]".replace("[pageId]",t.state.main.page_id)});case 1:return n.n=2,t.dispatch("search/performSearch",{guid:e.guid,query:"",skip:0,take:1e3});case 2:o.value=!1;case 3:return n.a(2)}},n)}))),{groups:n,isSearching:o,showNotMemberComponents:r,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"ActiveGroups",labelKey:e})}}}},y_=v_,__=(0,Hb.A)(y_,[["render",function(e,t,n,o,r,a){var i,l,s,c=qr("SpotCard"),u=qr("ThemeCard"),d=qr("GroupDetails");return Ai(),Si("article",Iy,[e.showNotMemberComponents?(Ai(),Si("div",By,[Mi("h2",Oy,fe(e.getLabel("noGroupsTitle")),1),Mi("p",Ly,fe(e.getLabel("noGroupsText")),1)])):zi("v-if",!0),!e.isSearching&&(null===(i=e.groups)||void 0===i?void 0:i.length)>0?(Ai(),Si("span",Dy,fe(null===(l=e.groups)||void 0===l?void 0:l.length)+" "+fe(e.getLabel("groups")),1)):zi("v-if",!0),Mi("ul",{class:Y(["kb-active-groups__list",{"kb-active-groups__list--grid":e.showNotMemberComponents}])},[(Ai(!0),Si(gi,null,Yr(e.groups,function(t,n){return Ai(),Si("li",{key:n,class:"kb-active-groups__list-item"},[t.isSpotCard?(Ai(),Si(gi,{key:0},[e.showNotMemberComponents?zi("v-if",!0):(Ai(),Ti(c,{key:0,spotCardData:t},null,8,["spotCardData"]))],64)):(Ai(),Si(gi,{key:1},[e.showNotMemberComponents?(Ai(),Ti(u,{key:0,content:t},null,8,["content"])):(Ai(),Ti(d,{key:1,id:t.id,svgIcon:t.svgIcon,colorTheme:t.colorTheme,title:t.title,type:t.theme,updates:t.users,link:t.href},null,8,["id","svgIcon","colorTheme","title","type","updates","link"]))],64))])}),128))],2),e.isSearching?(Ai(),Si("div",My,(s=t[0]||(t[0]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return Ty(e)}(s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return Ty(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ty(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])}]]);var A_={class:"kb-active-role-list-card"},k_={class:"kb-active-role-list-card__wrapper-left kb-active-role-list-card--content-padding"},x_={class:"kb-active-role-list-card__text-title"},w_={class:"kb-active-role-list-card__text-wrapper"},C_={class:"kb-active-role-list-card__text-role-data"},E_={class:"kb-active-role-list-card__text-role-data"},S_={key:0,class:"kb-active-role-list-card__label"},T_={class:"kb-active-role-list-card__wrapper-right"};const I_={name:"ActiveRoleListCard",props:{roleCardData:{type:Object,required:!0}},setup:function(e){var t=Af();return{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"ActiveRolesList",labelKey:e})},startDeleteRoleOverlay:function(n){t.commit("main/set_page_overlay_content_data",{groupRoleId:e.roleCardData.id}
2),t.dispatch("main/openPageOverlay",{overlayContent:"DeleteRoleOverlay",returnTarget:n.currentTarget})}}}},B_=I_,O_=(0,Hb.A)(B_,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",A_,[Mi("div",k_,[Mi("h3",x_,fe(e.roleCardData.activityName),1),Mi("div",w_,[Mi("p",C_,fe(e.roleCardData.roleName),1),zi(" // if location added to design - pile as divider? "),t[1]||(t[1]=Mi("span",null,"|",-1)),Mi("p",E_,fe(e.roleCardData.groupName),1)])]),e.roleCardData.isApproved?zi("v-if",!0):(Ai(),Si("div",S_,fe(e.getLabel("pendingApprovalLabel")),1)),Mi("div",T_,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.startDeleteRoleOverlay&&e.startDeleteRoleOverlay.apply(e,arguments)}),"aria-haspopup":"true",class:"kb-active-role-list-card__delete-role kb-link kb-active-role-list-card--content-padding kb-active-role-list-card--content-padding-lower"},fe(e.getLabel("removeLinkLabel")),1)])])}]]);var L_={class:"kb-active-roles-list"},D_={class:"kb-active-roles-list__container-top"},M_={class:"kb-active-roles-list__container-top-title"},N_={key:0,class:"kb-active-roles-list__wrapper"},P_={key:1},R_={class:"kb-active-roles-list__no-confirmed-roles-wrapper"},F_={key:0,class:"kb-active-roles-list__wrapper"};const V_={name:"ActiveRolesList",components:{ActiveRoleListCard:O_},props:{rolesData:{type:Object,required:!1}},setup:function(e){var t,n=Af(),o=Kt(null!==(t=e.rolesData)&&void 0!==t?t:[]),r=bl(function(){return o.value.filter(function(e){return!e.isApproved})}),a=bl(function(){return o.value.filter(function(e){return e.isApproved})});return{getLabel:function(e){return n.getters["labels/getLabel"]({labelCollection:"ActiveRolesList",labelKey:e})},rolesData:o,pendingRoles:r,confirmedRoles:a}}},z_=V_,U_=(0,Hb.A)(z_,[["render",function(e,t,n,o,r,a){var i,l,s,c,u=qr("ActiveRoleListCard");return Ai(),Si("article",L_,[Mi("div",D_,[Mi("h2",M_,fe(e.getLabel("listTitleLabel")),1)]),null!==(i=e.rolesData)&&void 0!==i&&i.length&&null!==(l=e.confirmedRoles)&&void 0!==l&&l.length?(Ai(),Si("ul",N_,[(Ai(!0),Si(gi,null,Yr(e.rolesData,function(e,t){return Ai(),Si("li",{key:t,class:"kb-active-roles-list__wrapper-element"},[Ni(u,{roleCardData:e},null,8,["roleCardData"])])}),128))])):(Ai(),Si("section",P_,[Mi("div",R_,[Mi("p",null,fe(e.getLabel("noRolesText")),1)]),null!==(s=e.rolesData)&&void 0!==s&&s.length&&null!==(c=e.pendingRoles)&&void 0!==c&&c.length?(Ai(),Si("ul",F_,[(Ai(!0),Si(gi,null,Yr(e.pendingRoles,function(e,t){return Ai(),Si("li",{key:t,class:"kb-active-roles-list__wrapper-element"},[Ni(u,{roleCardData:e},null,8,["roleCardData"])])}),128))])):zi("v-if",!0)]))])}]]);var j_=["href"],H_={class:"kb-activity-card__label"},q_={key:0,class:"kb-activity-card__label__dates single-date"},G_={class:"kb-activity-card__label__date single-date"},K_={class:"kb-activity-card__label__month single-date"},Z_={key:1,class:"kb-activity-card__label__dates single-month"},W_={class:"kb-activity-card__label__date"},$_={class:"kb-activity-card__label__month"},Y_={key:2,class:"kb-activity-card__label__dates"},J_={class:"kb-activity-card__label__date"},X_={class:"kb-activity-card__label__month"},Q_={class:"kb-activity-card__label__date"},eA={class:"kb-activity-card__label__month"},tA={class:"kb-activity-card__event-info"},nA={class:"kb-activity-card__event-info__event-data__wrapper"},oA={class:"kb-activity-card__event-info__event-data__container"},rA={key:0,class:"kb-activity-card__event-info__event-data__container"},aA={class:"kb-activity-card__event-info__event-data"},iA={key:1,class:"kb-activity-card__event-info__event-data__container"},lA={class:"kb-activity-card__event-info__title"},sA={key:0,class:"kb-activity-card__event-info__tags"},cA={key:1,class:"kb-activity-card__actions"},uA=["href"];function dA(e){var t=Af().getters["labels/getLabel"](e);return void 0!==t&&e.allowEmpty?t:t||e.labelKey}const pA={name:"ActivityCard",props:{result:{type:Object,required:!0},deleteCallback:{type:Function,required:!1},hideStatus:{type:Boolean,required:!1,default:!1},hideEdit:{type:Boolean,required:!1,default:!1}},setup:function(e){return{getLabel:function(e,t){return dA({labelKey:e,labelCollection:"ActivityCard",params:t})},displayActionButtons:e.deleteCallback||e.result.editUrl}}},fA=(0,Hb.A)(pA,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:e.result.url,class:Y(["kb-activity-card",{"kb-activity-card--with-action-buttons":e.displayActionButtons}])},[Mi("div",H_,["single"===e.result.type?(Ai(),Si("p",q_,[Mi("span",G_,fe(e.result.dayRange[0])+".",1),Mi("span",K_,fe(e.result.monthName[0]),1)])):1===e.result.monthName.length?(Ai(),Si("p",Z_,[Mi("span",W_,fe(e.result.dayRange[0])+".-"+fe(e.result.dayRange[1])+".",1),Mi("span",$_,fe(e.result.monthName[0]),1)])):(Ai(),Si("p",Y_,[Mi("span",J_,fe
2(e.result.dayRange[0])+".",1),Mi("span",X_,fe(e.result.monthName[0]),1),t[1]||(t[1]=Mi("br",null,null,-1)),t[2]||(t[2]=Fi("-",-1)),t[3]||(t[3]=Mi("br",null,null,-1)),Mi("span",Q_,fe(e.result.dayRange[1])+".",1),Mi("span",eA,fe(e.result.monthName[1]),1)]))]),Mi("div",tA,[Mi("div",nA,[Mi("div",oA,[t[4]||(t[4]=Mi("div",{class:"kb-activity-card__event-info__event-data__icon-wrapper"},[Mi("svg",{viewBox:"0 0 10 15",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 5C0.75 2.65279 2.65279 0.75 5 0.75C7.34721 0.75 9.25 2.65279 9.25 5C9.25 6.94234 8.13878 9.10096 7.00812 10.787L6.14901 10.1493L5.85099 10.5507L7.12762 11.4984L7.27448 11.2847C8.4599 9.56044 9.75 7.18962 9.75 5C9.75 2.37665 7.62335 0.25 5 0.25C2.37665 0.25 0.25 2.37665 0.25 5C0.25 7.07894 1.41271 9.31976 2.54199 11.0137C3.11055 11.8665 3.67867 12.5924 4.10458 13.1051C4.31764 13.3615 4.49541 13.565 4.62023 13.7047C4.68264 13.7745 4.73184 13.8284 4.76562 13.8651C4.78251 13.8834 4.79554 13.8974 4.80445 13.907L4.81468 13.9179L4.81741 13.9208L4.81839 13.9218L5 14.1135L5.18305 13.9203L5.18703 13.9161L5.20201 13.9C5.21507 13.886 5.23419 13.8654 5.25885 13.8385C5.30818 13.7846 5.37973 13.7054 5.46951 13.6035C5.64904 13.3996 5.90163 13.1044 6.19525 12.7372L5.80475 12.4249C5.51675 12.7851 5.26934 13.0743 5.09428 13.273C5.05999 13.312 5.02848 13.3474 5 13.3793L4.99305 13.3715C4.87178 13.2358 4.69798 13.0369 4.48917 12.7856C4.07133 12.2826 3.51445 11.571 2.95801 10.7363C1.83729 9.05524 0.75 6.92106 0.75 5ZM5 13.75L4.81839 13.9218C4.81839 13.9218 4.81851 13.9219 5 13.75Z",fill:"#3C3C3C"}),Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.75C3.20507 1.75 1.75 3.20507 1.75 5C1.75 6.79493 3.20507 8.25 5 8.25C6.79493 8.25 8.25 6.79493 8.25 5C8.25 3.20507 6.79493 1.75 5 1.75ZM2.25 5C2.25 3.48122 3.48122 2.25 5 2.25C6.51878 2.25 7.75 3.48122 7.75 5C7.75 6.51878 6.51878 7.75 5 7.75C3.48122 7.75 2.25 6.51878 2.25 5Z",fill:"#3C3C3C"})])],-1)),Mi("p",null,fe(e.result.city),1)]),e.hideStatus?zi("v-if",!0):(Ai(),Si("div",rA,[Mi("div",aA,[Mi("div",{class:Y(["kb-activity-card__event-status-".concat(e.result.type," ").concat(e.result.statusColor),"kb-activity-card__event-info__event-data__icon-wrapper kb-activity-card__event-info__event-data__icon-wrapper--solid-icon"])},null,2)]),Mi("p",null,fe(e.result.statusDisplayName),1)])),e.result.typeDisplayName?(Ai(),Si("div",iA,[t[5]||(t[5]=Mi("div",{class:"kb-activity-card__event-info__event-data"},[Mi("div",{class:"kb-activity-card__event-info__event-data__icon-wrapper"},[Mi("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 2H2.5V3H1.5H1V4.5H1.5V3.5H2.5V4.5H3V3.5H6V4.5H6.5V3.5H9.5V4.5H10V3.5H13V4.5H13.5V3.5H14.5V6H1.5H1V6.5V13V13.5H15V13V6.5V6V3H14.5H13.5V2H13V3H10V2H9.5V3H6.5V2H6V3H3V2ZM14.5 13V6.5H1.5L1.5 13H14.5Z",fill:"#3C3C3C"})])])],-1)),Mi("p",null,fe(e.result.typeDisplayName),1)])):zi("v-if",!0)]),Mi("h3",lA,fe(e.result.eventName),1),e.result.tags?(Ai(),Si("div",sA,[(Ai(!0),Si(gi,null,Yr(e.result.tags,function(e,t){return Ai(),Si("div",{key:t},fe(e.name),1)}),128))])):zi("v-if",!0),e.displayActionButtons?(Ai(),Si("div",cA,[e.deleteCallback?(Ai(),Si("button",{key:0,class:"kb-button kb-button--full-color-spot",onClick:t[0]||(t[0]=lc(function(t){return e.deleteCallback(t,e.result.id)},["prevent"]))},fe(e.getLabel("deleteButtonText")),1)):zi("v-if",!0),e.hideEdit?zi("v-if",!0):(Ai(),Si("a",{key:1,class:"kb-button",href:e.result.editUrl},fe(e.getLabel("editButtonText")),9,uA))])):zi("v-if",!0)])],10,j_)}]]);var mA={class:"Form__Element FormChoice"},gA={class:"kb-fundraise-form__header"},hA={class:"kb-fundraise-form__donation-amount-wrapper"},bA={class:"kb-fundraise-form__donation-input"},vA=["name","id","value"],yA=["for"],_A={"aria-live":"assertive"},AA={key:0,class:"Form__Element__ValidationError",role:"alert"},kA={key:0,class:"kb-form__input-helptext kb-form__input-helptext--radio"};function xA(e,t,n,o){return e?e.bind(props.fieldName,n.value,t.value):o}function wA(e,t){return{name:e,components:{TooltipComponent:yy},props:{disabled:{type:String,required:!1,default:""},autocomplete:{type:String,default:"off"},modelValue:{type:String,required:!1},fieldName:{type:String,required:!0},legend:{type:String,required:!1},isRequired:{type:Boolean,required:!1},label:{type:String,required:!0},placeholder:{type:String,required:!1},isValidationError:{type:Boolean,required:!1,default:null},errorMessageLabel:{type:String,required:!1},helpMessageLabel:{type:String,required:!1},tooltipText:{type:String,required:!1},type:{type:String,required:!1,default:"text"},minDate:{type:Date,required:!1},maxlength:{type:Number,required:!1},onChangeCallback:{type:Function,required:!1,default:function(){}},formLink:{type:Function,required:!1,default:null},validatorFunction:{type:Function,required:!1,default:null},radioOptions:{type:Object,required:!1},selectOptions:{type:Object,required:!1},readOnly:{type:Boolean,required:!1},isRichText:{type:Boolean,required:!1}},setup:function(e){var n,o,r=Kt(null!==(n=null!==(o=e.modelValue)&&void 0!==o?o:function(e){return e.radioOptions?Object.values(e.radioOptions)[0].value:null}(e))&&void 0!==n?n:""),a=bl(function(){return null!==e.isValidationError?e.isValidationError:e.validatorFunction?e.validatorFunction(r.value):"function"!=typeof t.validatorFunction||t.validatorFunction(r.value)});return{formLink:xA(e.formLink,a,r,e.onChangeCallback),inputHasValidationErrors:a,localValue:r}}}}const CA=wA("AdvancedRadio",{validatorFunction:function(e){return e}}),EA=(0,Hb.A)(CA,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("section",mA,[Mi("p",gA,[Fi(fe(e.legend)+" ",1),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)]),Mi("div",hA,[Mi("div",bA,[(Ai(!0),Si(gi,null,Yr(e.radioOptions,function(n,o){return Ai(),Si(gi,{key:o},[io(Mi("input",{type:"radio",name:e.fieldName,id:n.value,"data-f-datainput":"",value:n.value,autocomplete:"off","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),onChange:t[1]||(t[1]=function(){return e.formLink&&e.formLink.apply(e,arguments)})},null,40,vA),[[Js,e.localValue]]),Mi("label",{for:n.value},fe(n.label),9,yA)],64)}),128))])]),Mi("div",_A,[e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",AA,fe(e.errorMessageLabel),
21)):zi("v-if",!0)]),e.helpMessageLabel?(Ai(),Si("p",kA,fe(e.helpMessageLabel),1)):zi("v-if",!0)])}]]);var SA={class:"kb-amount-selector__label",for:"amountSelector"},TA={class:"kb-selector__wrapper"},IA=["id","min","max","aria-describedby","readonly"];const BA={name:"AmountSelector",props:{id:{type:String,required:!1,default:"amountSelector"},sku:{type:String},label:{type:String,default:"Antal"},maxAmount:{type:Number},minAmount:{type:Number,default:1},startAmount:{type:Number},displayMessage:{type:Function,required:!0},setAmount:{type:Function,required:!0},doNotUseInputValidation:{type:Boolean,required:!1,default:!1},ariaDescribedby:{type:String,required:!1},readOnly:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=Kt(e.startAmount?e.startAmount:e.minAmount),n=Kt(!1);bo(t,function(t){e.setAmount(t,e.sku)});var o=function(){if(!e.doNotUseInputValidation){var o=parseInt(e.maxAmount),r=parseInt(e.minAmount);if(t.value>o)return n.value="max-error",e.displayMessage(n.value),!0;if(t.value<r)return n.value="min-error",e.displayMessage(n.value),!0;n.value=!1,e.displayMessage(n.value)}};return Dr(function(){o()}),{amount:t,displayError:n,preventWrongInput:o}}},OA=(0,Hb.A)(BA,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",{class:Y(["kb-selector kb-amount-selector",{"kb-validation-error":e.displayError}])},[Mi("label",SA,fe(e.label),1),Mi("div",TA,[io(Mi("input",{id:e.id,onInput:t[0]||(t[0]=function(){return e.preventWrongInput&&e.preventWrongInput.apply(e,arguments)}),type:"number",min:e.minAmount,max:e.maxAmount,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.amount=t}),required:"required","aria-describedby":e.ariaDescribedby,readonly:e.readOnly},null,40,IA),[[Ws,e.amount]])])],2)}]]);var LA={key:0,class:"kb-article-anchors"},DA={class:"kb-article-anchors__list"},MA=["href"];const NA={name:"ArticleAnchors",setup:function(){var e=Kt([]);return Dr(function(){document.querySelectorAll(".kb-rich-text").forEach(function(t){return t.querySelectorAll("h2").forEach(function(t){if(!t.getAttribute("id")){var n=t.textContent.replaceAll(" ","_"),o=document.createElement("span");o.classList.add("anchor-target"),o.setAttribute("id",n),t.appendChild(o),e.value.push({href:n,displayName:t.textContent})}})}),location.hash&&document.querySelector(decodeURI(location.hash)).scrollTo()}),{headerList:e}}},PA=(0,Hb.A)(NA,[["render",function(e,t,n,o,r,a){return e.headerList.length?(Ai(),Si("nav",LA,[t[0]||(t[0]=Mi("strong",{class:"kb-article-anchors__title"},"Oversigt",-1)),Mi("ul",DA,[(Ai(!0),Si(gi,null,Yr(e.headerList,function(e,t){return Ai(),Si("li",{key:t},[Mi("a",{href:"#"+e.href},fe(e.displayName),9,MA)])}),128))])])):zi("v-if",!0)}]]);function RA(e){return RA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RA(e)}function FA(e,t,n){return(t=function(e){var t=function(e){if("object"!=RA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=RA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==RA(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VA={class:"kb-community-attachments-editor"},zA={key:0,class:"kb-community-attachments-editor__files"},UA={class:"kb-community-attachments-editor__files-content-wrapper-left"},jA={key:0},HA=["innerHTML"],qA={key:1,class:"kb-community-attachments-editor__files-image kb-image-module"},GA={class:"kb-image-module__image-container"},KA={class:"kb-image-module__image"},ZA=["src"],WA={class:"kb-create-gallery__files-content-wrapper-right"},$A={class:"kb-create-gallery__files-details-wrapper"},YA=["id"],JA=["aria-describedby","onClick"],XA=["for"],QA=["id","accept","disabled"],ek={class:"kb-community-attachments-editor__file-upload-text-wrapper"},tk={class:"kb-community-attachments-editor__file-upload-text"},nk={class:"kb-community-attachments-editor__file-upload-format-types"},ok={"aria-live":"assertive"},rk={key:0,role:"alert",class:"kb-forms Form__Element__ValidationError Form__Element__ValidationError--image-upload"},ak={"aria-live":"assertive"}
2,ik={key:0,role:"alert",class:"kb-forms Form__Element__ValidationError Form__Element__ValidationError--image-upload"};function lk(e){return[".pdf"].some(function(t){return e.filename.endsWith(t)})?'<svg height="90px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32"><path stroke="#3C3C3C" d="M5 29h22V8l-6-6H5.5v23H8"/><path stroke="#3C3C3C" d="M21 2v6h6"/><path fill="#3C3C3C" d="M10.02 18.5v-4.9h1.87c.987 0 1.666.602 1.666 1.526 0 .917-.68 1.533-1.666 1.533h-.987V18.5h-.882Zm.883-2.688h.973c.497 0 .784-.245.784-.686 0-.434-.287-.686-.784-.686h-.973v1.372Zm3.356 2.688v-4.9h1.785c1.372 0 2.436 1.057 2.436 2.45 0 1.393-1.064 2.45-2.436 2.45h-1.785Zm.882-.868h.903c.91 0 1.54-.637 1.54-1.582 0-.945-.63-1.582-1.54-1.582h-.903v3.164Zm4.97.868h-.882v-4.9h3.066v.84H20.11v1.148h1.687v.84H20.11V18.5Z"/></svg>':[".doc",".docx"].some(function(t){return e.filename.endsWith(t)})?'<svg height="90px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32"><path stroke="#3C3C3C" d="M5 29h22V8l-6-6H5.5v23H8"/><path stroke="#3C3C3C" d="M21 2v6h6"/><path fill="#3C3C3C" d="M8.807 18.5v-4.9h1.785c1.372 0 2.436 1.057 2.436 2.45 0 1.393-1.064 2.45-2.436 2.45H8.807Zm.882-.868h.903c.91 0 1.54-.637 1.54-1.582 0-.945-.63-1.582-1.54-1.582H9.69v3.164Zm6.326.966c-1.407 0-2.47-1.113-2.47-2.548s1.063-2.548 2.47-2.548c1.407 0 2.471 1.113 2.471 2.548s-1.064 2.548-2.47 2.548Zm0-.875c.903 0 1.575-.714 1.575-1.673 0-.959-.665-1.68-1.575-1.68-.917 0-1.575.721-1.575 1.68s.672 1.673 1.575 1.673Zm5.448-3.353c-.938 0-1.568.679-1.568 1.68s.637 1.68 1.568 1.68c.61 0 1.078-.238 1.358-.735l.707.532c-.44.693-1.183 1.071-2.065 1.071-1.428 0-2.464-1.057-2.464-2.548s1.036-2.548 2.464-2.548c.917 0 1.59.406 2.016 1.099l-.693.532c-.266-.49-.707-.763-1.323-.763Z"/></svg>':[".xls",".xlsx"].some(function(t){return e.filename.endsWith(t)})?'<svg height="90px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32"><path stroke="#3C3C3C" d="M5 29h22V8l-6-6H5.5v23H8"/><path stroke="#3C3C3C" d="M21 2v6h6"/><path fill="#3C3C3C" d="M14.852 18.5H13.78l-1.232-1.827-1.225 1.827H10.28l1.757-2.59-1.554-2.31h1.05l1.078 1.596 1.064-1.596h1.015l-1.575 2.338 1.736 2.562Zm3.702-.84v.84h-3.108v-4.9h.882v4.06h2.226Zm3.066-.532c0-.399-.245-.567-.79-.721l-.442-.126c-.896-.259-1.295-.707-1.302-1.365-.014-.84.644-1.407 1.638-1.407.7 0 1.281.28 1.673.854l-.658.588c-.238-.385-.595-.602-1.029-.602-.385 0-.728.175-.728.511 0 .294.154.455.672.602l.448.126c.938.266 1.407.672 1.407 1.512 0 .868-.65 1.491-1.666 1.491-.826 0-1.477-.336-1.925-.938l.665-.644c.294.476.728.735 1.26.735.476 0 .777-.231.777-.616Z"/></svg>':[".ppt",".pptx"].some(function(t){return e.filename.endsWith(t)})?'<svg height="90px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32"><path stroke="#3C3C3C" d="M5 29h22V8l-6-6H5.5v23H8"/><path stroke="#3C3C3C" d="M21 2v6h6"/><path fill="#3C3C3C" d="M10.715 18.5v-4.9h1.87c.986 0 1.665.602 1.665 1.526 0 .917-.679 1.533-1.666 1.533h-.987V18.5h-.882Zm.882-2.688h.973c.497 0 .784-.245.784-.686 0-.434-.287-.686-.784-.686h-.973v1.372Zm3.357 2.688v-4.9h1.869c.987 0 1.666.602 1.666 1.526 0 .917-.68 1.533-1.666 1.533h-.987V18.5h-.882Zm.882-2.688h.973c.497 0 .784-.245.784-.686 0-.434-.287-.686-.784-.686h-.973v1.372Zm6.8-2.212v.84H21.18v4.06h-.882v-4.06h-1.456v-.84h3.794Z"/></svg>':[".png",".jpg",".jpeg",".gif",".bmp",".tiff",".svg"].some(function(t){return e.filename.endsWith(t)})?'<div style="display:flex; width:90px; justify-content:center;"><img src="'.concat(e.url,'" alt="').concat(e.filename,'" style="max-height: 90px; max-width: 90px;" /></div>'):'<svg height="90px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32"><path stroke="#3C3C3C" d="M5 29h22V8l-6-6H5.5v23H8"/><path stroke="#3C3C3C" d="M21 2v6h6"/><path fill="#3C3C3C" d="M14.852 18.5H13.78l-1.232-1.827-1.225 1.827H10.28l1.757-2.59-1.554-2.31h1.05l1.078 1.596 1.064-1.596h1.015l-1.575 2.338 1.736 2.562Zm3.702-.84v.84h-3.108v-4.9h.882v4.06h2.226Zm3.066-.532c0-.399-.245-.567-.79-.721l-.442-.126c-.896-.259-1.295-.707-1.302-1.365-.014-.84.644-1.407 1.638-1.407.7 0 1.281.28 1.673.854l-.658.588c-.238-.385-.595-.602-1.029-.602-.385 0-.728.175-.728.511 0 .294.154.455.672.602l.448.126c.938.266 1.407.672 1.407 1.512 0 .868-.65 1.491-1.666 1.491-.826 0-1.477-.336-1.925-.938l.665-.644c.294.476.728.735 1.26.735.476 0 .777-.231.777-.616Z"/></svg>'}function sk(e){return!!e.filename&&[".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx"].some(function(t){return e.filename.endsWith(t)})}function ck(e){return ck="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ck(e)}function uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function dk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?uk(Object(n),!0).forEach(function(t){pk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pk(e,t,n){return(t=function(e){var t=function(e){if("object"!=ck(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ck(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ck(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const mk={name:"AttachmentsEditor",props:{acceptedFileTypes:{type:String,required:!1,default:".doc, .docx, .xls, .xlsx, .pdf, .gif, .jpeg, .jpg, .tiff, .bmp, .png"},files:{type:Array,required:!0,default:function(){return[]}},fileErrorMessage:{type:String,required:!1,default:""},maxAttachments:{type:Number,required:!1},maxFileSizeBytes:{type:Number,required:!1,default:10485760}},setup:function(e,t){var n,o=t.emit,r=Af(),a=Kt(!1),i=Kt(!1),l=Yi(),s=bl(function(){return"uploadFile-".concat(l.uid)}),c=Math.max.apply(Math,[0].concat((n=e.files.map(function(e){return Number.isFinite(+e.id)?+e.id:-1}),function(e){if(Array.isArray(e))return fk(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return fk(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fk(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))),u=Kt(c+1),d=Kt(e.files.map(function(e){return dk(dk({},e),{},{isOriginal:!0})})),p=bl(function(){return e.files.filter(function(e){return!d.value.some(function(t){return t.id===e.id})}).map(function(e){return e.id})}),f=bl(function(){return d.value.filter(function(e){return!e.isOriginal}).map(function(e){return e.file})}),m=bl(function(){return e.maxAttachments&&e.maxAttachments<=d.value.length}),g=function(){a.value=!1,i.value=!1},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.getters["labels/getLabel"]({labelCollection:"AttachmentsEditor",labelKey:e,allowEmpty:t})};return{getLabel:h,formatFileSize:function(e){if("string"==typeof e)return e;var t=e/1024;return t<1e3?"".concat(t.toFixed(1)," KB"):"".concat((t/1e3).toFixed(3)," MB")},isValidationError:a,isFileSizeError:i,addFile:function(t){g();var n=t.target.files;n&&n.length&&(m.value||(Array.from(n).forEach(function(t){if(t.size>e.maxFileSizeBytes)h("fileSizeErrorMessage")?i.value=!0:a.value=!0;else{var n={filename:t.name,size:t.size,id:u.value++,url:URL.createObjectURL(t),isOriginal:!1,file:t};d.value.push(n)}}),t.target.value="",o("update:filesToAdd",f.value),setTimeout(function(){document.activeElement===t.target&&t.target.blur()},25)))},removeFile:function(e){if(g(),!e.isOriginal&&e.url)try{URL.revokeObjectURL(e.url)}catch(e){}d.value=d.value.filter(function(t){return t.id!==e.id}),o("update:filesToAdd",f.value),o("update:filesToRemove",p.value)},clear:function(){d.value.forEach(function(e){if(!e.isOriginal&&e.url)try{URL.revokeObjectURL(e.url)}catch(e){}}),d.value=[],o("update:filesToAdd",f.value),o("update:filesToRemove",p.value)},getDocumentIcon:lk,isDocument:sk,files:d,maxAttachmentsReached:m,uploadInputId:s}}},gk=mk,hk=(0,Hb.A)(gk,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",VA,[e.files&&e.files.length>0?(Ai(),Si("div",zA,[(Ai(!0),Si(gi,null,Yr(e.files,function(t,n){return Ai(),Si("div",{key:t.id,class:"kb-community-attachments-editor__files-content-wrapper"},[Mi("div",UA,[e.isDocument(t)?(Ai(),Si("div",jA,[Mi("div",{innerHTML:e.getDocumentIcon(t)},null,8,HA)])):(Ai(),Si("figure",qA,[Mi("div",GA,[Mi("picture",KA,[Mi("img",{src:t.url,alt:"attachment image"},null,8,ZA)])])]))]),Mi("div",WA,[Mi("div",$A,[Mi("p",{class:"kb-create-gallery__files-details-wrapper-file-name",id:"kb-create-gallery__files-details-wrapper-file-name"+t.id},fe(t.filename),9,YA),Mi("p",null,fe(e.getLabel("fileSizeLabel"))+": "+fe(e.formatFileSize(t.size)),1)]),Mi("button",{type:"button",class:"kb-button kb-button--full-color-spot kb-create-gallery__files-delete-button","aria-describedby":"kb-create-gallery__files-details-wrapper-file-name"+t.id,onClick:function(n){return e.removeFile(t)}}
2,fe(e.getLabel("fileButtonRemove")),9,JA)])])}),128))])):zi("v-if",!0),Mi("label",{class:Y(["kb-community-attachments-editor__file-upload FormFileUpload",FA(FA({"kb-community-attachments-editor__file-upload--validation-error":e.isValidationError},"kb-community-attachments-editor__file-upload--validation-error",e.isFileSizeError),"kb-community-attachments-editor__file-upload--disabled",e.maxAttachmentsReached)]),for:e.uploadInputId},[Mi("input",{class:"kb-community-attachments-editor__file-upload-input FormFileUpload__Input",id:e.uploadInputId,type:"file",accept:e.acceptedFileTypes,onChange:t[0]||(t[0]=function(){return e.addFile&&e.addFile.apply(e,arguments)}),multiple:"",disabled:e.maxAttachmentsReached},null,40,QA),t[1]||(t[1]=Vi('<div class="kb-community-attachments-editor__file-upload-svg"><svg viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity=".4" fill="#3C3C3C"><path d="m20.024 13.05.967-.405-.206-.481c-.84-2.002-.617-4.14.596-5.683 1.214-1.542 3.095-2.264 5.32-2.093l-1.49 1.438.73.75 2.016-1.961a1.008 1.008 0 0 0 0-1.44l-2.016-1.961-.73.75 1.396 1.357c-2.505-.133-4.674.757-6.049 2.518-1.451 1.856-1.72 4.375-.736 6.72l.203.49ZM18.141 24.419v1.046h-5.93v-1.046H.699v2.965a1.214 1.214 0 0 0 1.221 1.22h26.163a1.22 1.22 0 0 0 1.22-1.22v-2.965H18.142Zm10.116 2.965a.174.174 0 0 1-.174.174H1.92a.178.178 0 0 1-.125-.052.175.175 0 0 1-.05-.122v-1.919h9.42v1.047h8.023v-1.047h9.07v1.919ZM4.886 21.977H2.793V9.593a.174.174 0 0 1 .174-.174h14.128V8.372H2.967a1.22 1.22 0 0 0-1.22 1.221v13.43h3.139v-1.046Z"></path><path d="M28.256 23.023V9.593a1.22 1.22 0 0 0-1.22-1.22h-4.013v1.046h4.012a.174.174 0 0 1 .174.174v13.43h1.047Z"></path></g></svg></div>',1)),Mi("div",ek,[Mi("p",tk,fe(e.getLabel("uploadTitle")),1),Mi("small",nk,fe(e.getLabel("uploadFormats")),1)])],10,XA),Mi("div",ok,[e.isValidationError&&e.getLabel("fileErrorMessage",!0)?(Ai(),Si("p",rk,fe(e.getLabel("fileErrorMessage")),1)):zi("v-if",!0)]),Mi("div",ak,[e.isFileSizeError&&e.getLabel("fileSizeErrorMessage",!0)?(Ai(),Si("p",ik,fe(e.getLabel("fileSizeErrorMessage")),1)):zi("v-if",!0)])])}]]);var bk={class:"kb-community-attachments-viewer"},vk={key:0,class:"kb-create-post__files-content-wrapper"},yk={class:"kb-create-post__files-content-wrapper-left"},_k=["innerHTML"],Ak={class:"kb-create-gallery__files-content-wrapper-right"},kk={class:"kb-create-gallery__files-details-wrapper"},xk=["href"],wk={class:"kb-attachmentsviewer-label--filename"},Ck={key:0,class:"kb-attachmentsviewer-label"},Ek={class:"kb-attachmentsviewer-label--filesize"},Sk={key:1,class:"kb-image-module kb-image-module--4-3"},Tk={class:"kb-image-module__image-container"},Ik={class:"kb-image-module__image"},Bk=["srcset"],Ok=["srcset"],Lk=["srcset"],Dk=["srcset"],Mk=["src","alt"];const Nk={name:"AttachmentsViewer",props:{files:{type:Array,required:!0},showImagesAsFiles:{type:Boolean,default:!1}},setup:function(e){var t=Af();return{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"AttachmentsViewer",labelKey:e})},getDocumentIcon:lk,isDocument:sk,formatFileSize:function(e){if("string"==typeof e)return e;var t=e/1024;return t<1e3?"".concat(t.toFixed(1)," KB"):"".concat((t/1e3).toFixed(3)," MB")}}}},Pk=Nk,Rk=(0,Hb.A)(Pk,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",bk,[(Ai(!0),Si(gi,null,Yr(e.files,function(n,o){return Ai(),Si(gi,{key:o},[e.isDocument(n)||e.showImagesAsFiles?(Ai(),Si("div",vk,[Mi("div",yk,[Mi("div",{innerHTML:e.getDocumentIcon(n)},null,8,_k)]),Mi("div",Ak,[Mi("div",kk,[Mi("a",{class:"kb-attachmentsviewer-label",href:n.url,target:"_blank"},[Mi("span",wk,fe(n.filename),1),t[0]||(t[0]=Mi("span",{class:"kb-attachmentsviewer-label--icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 16"},[Mi("path",{"fill-rule":"evenodd",d:"M5.5 10.793 3.354 8.646l-.707.707 3 3a.5.5 0 0 0 .707 0l3-3-.707-.707L6.5 10.793V1h-1v9.793zM1 12.5v1a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-1h1v1a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 0 13.5v-1h1z",fill:"#3c3c3c"})])],-1))],8,xk),"fileSizeLabel"!==e.getLabel("fileSizeLabel")&&n.filesize?(Ai(),Si("p",Ck,[Mi("span",Ek,fe(e.getLabel("fileSizeLabel"))+": "+fe(e.formatFileSize(n.filesize)),1)])):zi("v-if",!0)])])])):(Ai(),Si("figure",Sk,[Mi("div",Tk,[Mi("picture",Ik,[Mi("source",{srcset:n.url,media:"(min-width:1024px)"},null,8,Bk),Mi("source",{srcset:n.url,media:"(min-width: 768px)"},null,8,Ok),Mi("source",{srcset:n.url,media:"(min-width: 376px)"},null,8,Lk),Mi("source",{srcset:n.url,media:"(max-width: 376px)"},null,8,Dk),Mi("img",{src:n.url,alt:n.altText},null,8,Mk)])])]))],64)}),128))])}]]);var Fk={class:"kb-basket"},Vk={class:"kb-basket__title"},zk={key:0,class:"kb-basket__cards-wrapper kb-basket__cards-wrapper--empty-basket"},Uk=["href"],jk={class:"kb-basket__content-wrapper"},Hk={class:"kb-basket__cards-wrapper"},qk={class:"kb-basket__cards-list"},Gk={key:0,class:"kb-basket__aside-wrapper"};function Kk(e){return function(e){if(Array.isArray(e))return Zk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Zk(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zk(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Wk={class:"kb-basket-aside"},$k={class:"kb-basket-aside kb-basket-aside__main-content-wrapper"},Yk={class:"kb-basket-aside__table",role:"presentation"},Jk={class:"kb-basket-aside__table-head"},Xk={class:"kb-basket-aside__table-head-title",colspan:"1"},Qk={class:"kb-basket-aside__table-head-link",colspan:"1"},ex=["href"],tx=["href"],nx={class:"kb-basket-aside__table-body"},ox={class:"kb-basket-aside__table-body-data",colspan:"2"},rx={key:1},ax={key:0,class:"kb-basket-aside__table-body-data"},ix={key:1,class:"kb-basket-aside__table-body-data"},lx={class:"kb-basket-aside__table-body-data"},sx={class:"kb-basket-aside__table-body-data kb-basket-aside__table-body-data--delivery"},cx={class:"kb-basket-aside__table-body-data"},ux={class:"kb-basket-aside__table-body-data kb-basket-aside__table-body-data--pale"},dx={class:"kb-basket-aside__table-body-data kb-basket-aside__table-body-data--pale"},px={key:2},fx={class:"kb-product-detail__error-message kb-product-detail__error-message--show"},mx={class:"kb-basket-aside__table-body--row-total"},gx={class:"kb-basket-aside__table-body-data"},hx={class:"kb-basket-aside__table-body-data"},bx={class:"kb-basket-aside__table-body--row-small-fonts"},vx={class:"kb-basket-aside__table-body-data kb-basket-aside__table-body-data--pale"},yx={class:"kb-basket-aside__table-body-data kb-basket-aside__table-body-data--pale"},_x={key:0,class:"kb-basket-aside__button-wrapper"},Ax=["href"],kx={key:0,class:"kb-basket-aside__USP-wrapper-icons"},xx={key:1,class:"kb-basket-aside__help-text"},wx={class:"kb-basket-card__content-wrapper"},Cx={class:"kb-basket-card__content-wrapper-left"},Ex={class:"kb-basket-card__image kb-image-module"},Sx={class:"kb-image-module__image-container"},Tx={key:0,class:"kb-image-module__image"},Ix=["href","aria-label"],Bx=["src"],Ox={key:0,class:"kb-basket-card__title"},Lx=["href"],Dx=["href"],Mx={class:"kb-basket-card__product-number"},Nx={key:1,class:"kb-basket-card__title"},Px={class:"kb-basket-card__product-amount"},Rx={class:"kb-basket-card__controls-wrapper"},Fx={class:"kb-visually-hidden"},Vx={class:"kb-basket-card__price"}
2,zx={key:0,class:"kb-basket-card__price-original"},Ux=["id"],jx={class:"kb-visually-hidden"};function Hx(e,t,n){var o;return function(){var r=this,a=n&&void 0===o;clearTimeout(o),o=window.setTimeout(function(){o=void 0,n||e.apply(r)},t),a&&e.apply(r)}}function qx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return null==e?"":new Intl.NumberFormat("da-DK",{minimumFractionDigits:t,maximumFractionDigits:t}).format(Number(e))}const Gx={name:"BasketCard",components:{AmountSelector:OA},props:{data:{type:Object,required:!0},variantData:{type:Object,required:!0},link:{type:String,required:!1},displayMessage:{type:Function,required:!1},soldOut:{type:Boolean,required:!1,default:!1},alreadyRemoved:{type:Boolean,required:!1,default:!1},handleDeleteButton:{type:Function,required:!1},miniBasket:{type:Boolean,required:!1,default:!1},errorMaxAmountMessage:{type:String,required:!1},errorMinAmountMessage:{type:String,required:!1},removeItem:{type:Function},cancelRemoveItem:{type:Function},readOnlyAmount:{type:Boolean,required:!1,default:!1}},setup:function(e,t){var n=t.emit,o=Af(),r=Kt(e.variantData.variant.quantity),a=null,i=Hx(function(){var t=a;a=null;var n=r.value;o.dispatch("basket/adjustQuantity",{sku:e.variantData.variant.sku,newquantity:n}).then(function(){var o,r,a,i=e.variantData.variant,l=null!==(o=null===(r=i.price)||void 0===r?void 0:r.priceAmount)&&void 0!==o?o:0,s=null===(a=i.price)||void 0===a?void 0:a.listPriceAmount,c=s&&s>l?Math.round(100*(s-l))/100:0,u={item_id:i.sku,item_name:e.data.title,item_brand:"cancer.dk",item_list_id:"product_grid_3col",item_list_name:"Produkt oversigt",price:l,discount:c,quantity:Math.abs(n-t),index:0};i.displayName&&(u.item_variant=i.displayName),n>t?Wm([u]):n<t&&$m([u])})},750),l=Kt(),s=Kt(),c=bl(function(){return e.data.errors.hasErrors}),u=bl(function(){return e.data.errors.values[0]}),d={show:!1,message:""};bo([c,u],function(){d.show=c.value&&!e.soldOut,d.message=d.show?e.data.errors.values[0].message:""},{immediate:!0});var p=Kt(e.soldOut),f=Kt(e.alreadyRemoved),m=function(e,t){e||n("cancelRemoveItem",t),f.value=e};return{displayMaxAmountMessage:l,displayMinAmountMessage:s,displayMessage:function(e){"max-error"===e?(s.value="",l.value=e?"kb-product-detail__error-message--show":""):"min-error"===e?(l.value="",s.value=e?"kb-product-detail__error-message--show":""):(s.value="",l.value="")},validationError:d,displaySoldOutMessage:p,displaySoldOut:function(e){p.value=e},displayAlreadyRemovedFromBasket:f,displayAlreadyRemoved:m,handleDeleteButton:function(){var t=e.data.productNumber;e.soldOut?n("removeItem",{sku:t,immediate:!0}):(m(!0),n("removeItem",{sku:t}),setTimeout(function(){var t=document.querySelector("#product-undo-delete-".concat(e.variantData.variant.sku));t&&t.focus()},25))},setAmount:function(e,t){null===a&&(a=r.value),r.value=e,i()},formatAmount:qx,getLabel:function(e){return o.getters["labels/getLabel"]({labelCollection:"cart",labelKey:e})}}}},Kx=Gx,Zx=(0,Hb.A)(Kx,[["render",function(e,t,n,o,r,a){var i,l=qr("AmountSelector");return Ai(),Si("article",{class:Y(["kb-basket-card",{"kb-basket-card--miniBasket":e.miniBasket}])},[Mi("div",wx,[Mi("div",Cx,[Mi("figure",Ex,[Mi("div",Sx,[e.data.imageUrl?(Ai(),Si("picture",Tx,[Mi("a",{href:e.variantData.variant.url,"aria-label":e.variantData.variant.displayName},[Mi("img",{src:e.data.imageUrl,alt:""},null,8,Bx)],8,Ix)])):zi("v-if",!0)])]),e.miniBasket?zi("v-if",!0):(Ai(),Si("p",Ox,[Mi("a",{href:e.variantData.variant.url},fe(e.variantData.variant.displayName),9,Lx),Mi("a",{href:e.variantData.variant.url},[Mi("span",Mx,fe(e.data.productNumber),1)],8,Dx)])),e.miniBasket?(Ai(),Si("p",Nx,[Mi("span",Px,fe("".concat(e.variantData.variant.quantity," X")),1),Fi(" "+fe(e.variantData.variant.displayName),1)])):zi("v-if",!0)]),Mi("div",{class:Y(["kb-basket-card__content-wrapper-right",{"kb-basket-card__content-wrapper-right--sold-out-show":e.displaySoldOutMessage}])},[Mi("div",Rx,[Ni(l,{sku:e.data.productNumber,setAmount:e.setAmount,startAmount:e.variantData.variant.quantity,minAmount:e.variantData.minAmount,maxAmount:e.variantData.maxAmount,displayMessage:e.displayMessage,doNotUseInputValidation:!0,readOnly:e.readOnlyAmount},null,8,["sku","setAmount","startAmount","minAmount","maxAmount","displayMessage","readOnly"]),Mi("button",{class:"kb-basket-card__delete-button",onClick:t[0]||(t[0]=function(){return e.handleDeleteButton&&e.handleDeleteButton.apply(e,arguments)})},[Mi("span",Fx,fe(null!==(i=e.getLabel("deleteItemInCart"))&&void 0!==i?i:"Slet vare"),1),t[2]||(t[2]=Mi("svg",{width:"20",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{d:"M15.25 21.125h1.125l2.25-16.5H1.375l2.25 16.5h9l1.5-14.625M7 19.25 5.875 6.5M10 19.25V6.5M1 2.375h18M11.875 2.375 11.5.875H7.75l-.375 1.5",stroke:"#3C3C3C"}
2)],-1))])]),Mi("p",Vx,[Fi(fe(e.formatAmount(e.variantData.variant.price.displayPrice))+" ",1),e.variantData.variant.price.displayBeforePrice!==e.variantData.variant.price.displayPrice?(Ai(),Si("span",zx,fe(e.formatAmount(e.variantData.variant.price.displayBeforePrice)),1)):zi("v-if",!0)])],2)]),zi(" in mini basket cards have no error-modes "),e.miniBasket?zi("v-if",!0):(Ai(),Si(gi,{key:0},[zi(" Below are error scenario styles "),zi(" class for error-message styles from product details \r\n as they are identical & so future changes can be done in one place "),e.validationError.show?zi("v-if",!0):(Ai(),Si(gi,{key:0},[zi(" only show is no other error message active from BE "),Mi("p",{class:Y(["kb-product-detail__error-message",e.displayMaxAmountMessage])},fe(e.errorMaxAmountMessage),3),Mi("p",{class:Y(["kb-product-detail__error-message",e.displayMinAmountMessage])},fe(e.errorMinAmountMessage),3)],64)),Mi("p",{class:Y(["kb-product-detail__error-message",{"kb-product-detail__error-message--show":e.validationError.show}])},fe(e.validationError.message),3),Mi("div",{class:Y(["kb-basket-card__error",{"kb-basket-card__error--sold-out-show":e.displaySoldOutMessage}])},[Mi("p",null,fe(e.getLabel("soldOut")),1)],2),Mi("div",{class:Y(["kb-basket-card__error",{"kb-basket-card__error--removed-from-basket":e.displayAlreadyRemovedFromBasket}])},[Mi("p",null,fe(e.getLabel("itemHasBeenRemoved")),1),Mi("button",{id:"product-undo-delete-".concat(e.variantData.variant.sku),class:"kb-button",onClick:t[1]||(t[1]=function(t){return e.displayAlreadyRemoved(!1,e.data.productNumber)})},[Mi("span",jx,fe(e.getLabel("itemHasBeenRemoved")),1),Fi(" "+fe(e.getLabel("cancel")),1)],8,Ux)],2)],64))],2)}]]),Wx={name:"BasketAside",components:{TooltipComponent:yy,BasketCard:Zx},props:{miniBasket:{type:Boolean,required:!1,default:!1},showPaymentOptions:{type:Boolean,required:!1,default:!0}},setup:function(e){var t=Af(),n=bl(function(){return t.state.basket.basket}),o=bl(function(){return t.state.basket.totals}),r=bl(function(){return t.state.basket.basketState.hasErrors});return{displayObsMessage:bl(function(){var e,n;return null!==(e=null===(n=t.state.basket.totals)||void 0===n?void 0:n.isShippingFree)&&void 0!==e&&e?"":"kb-product-detail__error-message--show"}),displayBasketErrorMessageClass:bl(function(){return r.value?"kb-product-detail__error-message--show":""}),basketCards:n,asideResults:o,getLabel:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.getters["labels/getLabel"]({labelCollection:"basketAside",labelKey:e,allowEmpty:n})},formatAmount:qx,hasErrors:r}}},$x=Wx,Yx=(0,Hb.A)($x,[["render",function(e,t,n,o,r,a){var i,l,s,c,u,d,p,f,m=qr("BasketCard"),g=qr("TooltipComponent");return Ai(),Si("aside",Wk,[Mi("div",$k,[Mi("table",Yk,[Mi("thead",Jk,[Mi("tr",null,[Mi("th",Xk,fe(e.getLabel("asideTitle")),1),Mi("th",Qk,[e.miniBasket?zi("v-if",!0):(Ai(),Si("a",{key:0,href:e.getLabel("asideLinkUrl")},fe(e.getLabel("asideLinkText")),9,ex)),e.miniBasket?(Ai(),Si("a",{key:1,href:e.getLabel("toCartButtonLink")},fe(e.getLabel("toCartButtonLinkText")),9,tx)):zi("v-if",!0)])])]),Mi("tbody",nx,[t[1]||(t[1]=Mi("tr",null,[Mi("td",{class:"kb-basket-aside__table-body-data",colspan:"2"},[Mi("div",{class:"kb-basket-aside__table-horizontal-line"})])],-1)),e.miniBasket?(Ai(!0),Si(gi,{key:0},Yr(e.basketCards,function(t,n){return Ai(),Si("tr",{key:n},[Mi("td",ox,[Ni(m,{miniBasket:e.miniBasket,data:t.data,variantData:t.variantData,soldOut:!1,alreadyRemoved:!1,errorMaxAmountMessage:t.errorMaxAmountMessage},null,8,["miniBasket","data","variantData","errorMaxAmountMessage"])])])}),128)):zi("v-if",!0),e.miniBasket?(Ai(),Si("tr",rx,Kk(t[0]||(t[0]=[Mi("td",{class:"kb-basket-aside__table-body-data",colspan:"2"},[Mi("div",{class:"kb-basket-aside__table-horizontal-line kb-basket-aside__table-horizontal-line--bottom"})],-1)])))):zi("v-if",!0),Mi("tr",null,[e.miniBasket?zi("v-if",!0):(Ai(),Si("td",ax,fe(null===(i=e.asideResults)||void 0===i?void 0:i.productsAmount)+" "+fe(e.getLabel("productsAmountText")),1)),e.miniBasket?(Ai(),Si("td",ix,fe(e.getLabel("totalTitle")),1)):zi("v-if",!0),Mi("td",lx,fe(e.formatAmou
2nt(null===(l=e.asideResults)||void 0===l?void 0:l.productsPrice)),1)]),Mi("tr",null,[Mi("td",sx,[Fi(fe(e.getLabel("deliveryTitle"))+" ",1),Ni(g,{tooltipText:e.getLabel("tooltipText",!0),tooltipName:e.getLabel("tooltipText",!0)},null,8,["tooltipText","tooltipName"])]),Mi("td",cx,fe(null!==(s=null===(c=e.asideResults)||void 0===c?void 0:c.isShippingFree)&&void 0!==s&&s?e.getLabel("deliveryText"):e.formatAmount(null===(u=e.asideResults)||void 0===u?void 0:u.shippingTotal)),1)]),Mi("tr",null,[Mi("td",ux,fe(e.getLabel("discountTitle")),1),Mi("td",dx,fe(e.formatAmount(null===(d=e.asideResults)||void 0===d?void 0:d.discount)),1)]),e.miniBasket?zi("v-if",!0):(Ai(),Si("tr",px,[Mi("td",{class:Y(["kb-basket-aside__table-body-data",{"kb-basket-aside__table-body-data--hide":!e.displayObsMessage}]),colspan:"2"},[zi(" class for error-message styles from product details \r\n as they are identical & so future changes can be done in one place "),Mi("p",fx,fe(e.getLabel("infoMessage")),1)],2)])),t[2]||(t[2]=Mi("tr",null,[Mi("td",{class:"kb-basket-aside__table-body-data",colspan:"2"},[Mi("div",{class:"kb-basket-aside__table-horizontal-line kb-basket-aside__table-horizontal-line--bottom"})])],-1)),Mi("tr",mx,[Mi("td",gx,fe(e.getLabel("totalTitle")),1),Mi("td",hx,fe(e.formatAmount(null===(p=e.asideResults)||void 0===p?void 0:p.total)),1)]),Mi("tr",bx,[Mi("td",vx,fe(e.getLabel("VATTitle")),1),Mi("td",yx,fe(e.formatAmount(null===(f=e.asideResults)||void 0===f?void 0:f.VAT)),1)])])]),e.miniBasket?zi("v-if",!0):(Ai(),Si("div",_x,[Mi("a",{href:e.hasErrors?"#":e.getLabel("toCartButtonLink"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("toCartButtonLinkText")),9,Ax),e.getLabel("basketErrorsMessage",{allowEmpty:!0})?(Ai(),Si("p",{key:0,class:Y(["kb-product-detail__error-message",e.displayBasketErrorMessageClass])},fe(e.getLabel("basketErrorsMessage",{allowEmpty:!0})),3)):zi("v-if",!0)]))]),e.showPaymentOptions?(Ai(),Si("div",kx,Kk(t[3]||(t[3]=[Mi("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"MobilePay"},[Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",fill:"#fff"}),Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",stroke:"#E7E7E4"}),Mi("path",{d:"M27.41 33a2.115 2.115 0 0 1-1.954-1.305l-7.295-17.61a2.112 2.112 0 0 1 1.143-2.76l7.64-3.164a2.111 2.111 0 0 1 2.76 1.143l7.295 17.61a2.112 2.112 0 0 1-1.143 2.76l-7.64 3.165c-.256.106-.53.16-.806.161Zm.343-23.864a.973.973 0 0 0-.373.075l-7.641 3.165a.975.975 0 0 0-.527 1.273l7.295 17.612a.976.976 0 0 0 1.273.528l7.641-3.167a.975.975 0 0 0 .527-1.274l-7.295-17.61a.976.976 0 0 0-.9-.602Z",fill:"#5A78FF"}),Mi("path",{style:{"mix-blend-mode":"multiply"},opacity:".7",d:"m30.186 10.465-1.051.435 2.888 6.973 1.05-.435-2.887-6.973Z",fill:"url(#a)"}),Mi("path",{style:{"mix-blend-mode":"multiply"},opacity:".7",d:"m35.463 26.179 1.05-.435-3.27-7.893-1.05.435 3.27 7.893Z",fill:"url(#b)"}),Mi("path",{d:"M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z",fill:"#5A78FF"}),Mi("g",{style:{"mix-blend-mode":"multiply"},opacity:".4"},[Mi("path",{opacity:".9",d:"M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z",fill:"url(#c)"}),Mi("path",{opacity:".7",d:"M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z",fill:"url(#d)"})]),Mi("path",{d:"M35.14 23.215c-2.365 0-4.53.457-6.209 1.39v-7.522a13.007 13.007 0 0 1 6.21-1.39c2.364 0 4.572.439 6.207 1.392v7.521a13.002 13.002 0 0 0-6.208-1.391Z",fill:"#5A78FF"}),Mi("defs",null,[Mi("linearGradient",{id:"a",x1:"31.842",y1:"15.988",x2:"31.371",y2:"10.486",gradientUnits:"userSpaceOnUse"},[Mi("stop",{"stop-color":"#504678"}),Mi("stop",{offset:".302","stop-color":"#504678","stop-opacity":".616"}),Mi("stop",{offset:".608","stop-color":"#504678","stop-opacity":".283"}),Mi("stop",{offset:".852","stop-color":"#504678","stop-opacity":".076"}),Mi("stop",{offset:"1","stop-color":"#504678","stop-opacity":"0"})]),Mi("linearGradient",{id:"b",x1:"33.517",y1:"19.957",x2:"33.812",y2:"26.122",gradientUnits:"userSpaceOnUse"},[Mi("stop",{"stop-color":"#504678"}),Mi("stop",{offset:".302","stop-color":"#504678","stop-opacity":".616"}),Mi("stop",{offset:".608","stop-color":"#504678","stop-opacity":".283"}),Mi("stop",{offset:".852","stop-color":"#504678","stop-opacity":".076"}),Mi("stop",{offset:"1","stop-color":"#504678","stop-opacity":"0"})]),Mi("linearGradient",{id:"c",x1:"27.846",y1:"20.481",x2:"33.618",y2:"16.546",gradientUnits:"userSpaceOnUse"},[Mi("stop",{"stop-color":"#504678"}),Mi("stop",{offset:".179","stop-color":"#504678","stop-opacity":".872"}),Mi("stop",{offset:".526","stop-color":"#504678","stop-opacity":".536"}),Mi("stop",{offset:"1","stop-color":"#504678","stop-opacity":"0"})]),Mi("linearGradient",{id:"d",x1:"32.798",y1:"16.634",x2:"32.542",y2:"14.587",gradientUnits:"userSpaceOnUse"},[Mi("stop",{"stop-color":"#504678"}),Mi("stop",{offset:".643","stop-color":"#504678","stop-opacity":".332"}),Mi("stop",{offset:"1","stop-color":"#504678","stop-opacity":"0"})])])],-1),Mi("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Visa"},[Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",fill:"#fff"}),Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",stroke:"#E7E7E4"}),Mi("path",{d:"M26.632 27.255h-3.857l2.412-14.001h3.857l-2.412 14ZM40.613 13.596A10.052 10.052 0 0 0 37.154 13c-3.809 0-6.491 1.906-6.507 4.632-.032 2.01 1.92 3.128 3.38 3.798 1.492.685 2 1.133 2 1.743-.016.938-1.206 1.37-2.317 1.37-1.54 0-2.365-.222-3.619-.744l-.508-.224-.54 3.143c.905.387 2.572.73 4.302.745 4.047 0 6.682-1.877 6.713-4.781.015-1.594-1.015-2.815-3.237-3.813-1.35-.64-2.176-1.073-2.176-1.728.016-.596.7-1.206 2.222-1.206a6.92 6.92 0 0 1 2.873.536l.349.148.524-3.023Z",fill:"#193AC3"}),Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M47.517 13.254H50.5l3.112 14H50.
204s-.35-1.608-.46-2.1h-4.952l-.81 2.1h-4.047l5.73-12.839c.396-.908 1.095-1.161 2.015-1.161Zm-.238 5.123s-1.222 3.113-1.54 3.918h3.206c-.158-.7-.889-4.052-.889-4.052l-.27-1.206c-.113.31-.277.738-.388 1.026-.075.195-.125.326-.119.314Z",fill:"#193AC3"}),Mi("path",{d:"M6.063 13.254h6.206c.841.03 1.524.283 1.745 1.177l1.35 6.433.412 1.937 3.777-9.547h4.079L17.569 27.24h-4.078l-3.438-12.166C8.867 14.424 7.513 13.9 6 13.537l.063-.283Z",fill:"#193AC3"})],-1),Mi("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Dankort"},[Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",fill:"#fff"}),Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",stroke:"#E7E7E4"}),Mi("path",{d:"M21.512 7.25H38.193c6.77 0 12.26 5.51 12.26 12.308 0 6.8-5.49 12.308-12.26 12.308H21.51c-6.77 0-12.261-5.508-12.261-12.308 0-6.798 5.49-12.308 12.262-12.308Z",fill:"#fff",stroke:"#C8C8C8","stroke-width":".5"}),Mi("path",{d:"m41.109 18.798 5.547 6.622a10.295 10.295 0 0 0 1.823-5.862c0-2.297-.752-4.421-2.02-6.138l-5.35 5.378ZM25.39 12.861c4.143 0 7.264 1.058 7.585 4.561l4.36-4.562h8.68a10.252 10.252 0 0 0-7.822-3.627H21.512c-3.13 0-5.936 1.409-7.824 3.628H25.39ZM18.566 17.277l-1.48 4.083h5.969c1.764 0 2.297-.733 2.692-2.145.391-1.396-.59-1.938-1.796-1.938h-5.385ZM37.37 25.977l-4.61-5.849c-.852 3.988-3.643 5.848-8.875 5.848H13.46c1.887 2.38 4.795 3.908 8.053 3.908h16.68c3.258 0 6.165-1.528 8.051-3.907h-8.872Z",fill:"#E2231A"})],-1),Mi("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Mastercard"},[Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",fill:"#fff"}),Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",stroke:"#E7E7E4"}),Mi("path",{d:"M35.281 28.977H24.943V10.512H35.28v18.465Z",fill:"#FF5F00"}),Mi("path",{d:"M25.605 19.743c0-3.746 1.765-7.082 4.513-9.232A11.812 11.812 0 0 0 22.815 8C16.29 8 11 13.257 11 19.743c0 6.485 5.29 11.743 11.815 11.743 2.757 0 5.293-.939 7.303-2.511-2.748-2.15-4.513-5.487-4.513-9.232Z",fill:"#EB001B"}),Mi("path",{d:"M49.225 19.743c0 6.485-5.29 11.743-11.815 11.743-2.757 0-5.293-.939-7.303-2.511 2.749-2.15 4.513-5.487 4.513-9.232 0-3.746-1.764-7.082-4.513-9.232A11.816 11.816 0 0 1 37.41 8c6.526 0 11.815 5.257 11.815 11.743Z",fill:"#F79E1B"})],-1)])))):zi("v-if",!0),e.miniBasket?(Ai(),Si("p",xx,[Mi("span",null,fe(e.getLabel("miniBasketHelpTextTop")),1),Mi("span",null,fe(e.getLabel("miniBasketHelpTextTimes")),1)])):zi("v-if",!0)])}]]),Jx={name:"Basket",components:{BasketAside:Yx,BasketCard:Zx},setup:function(){var e=Af(),t=Kt(!1);Dr(function(){e.dispatch("basket/fetchBasket").then(function(){setTimeout(function(){return t.value=!0},1e3);var n=e.state.basket.basket;n.length>0&&function(e){Gm({event:"view_cart",ecommerce:{currency:"DKK",value:Km(e),items:e}})}(n.map(function(e,t){return Zm(e,t)}))})});var n=bl(function(){return t.value&&0===e.state.basket.basket.length}),o=bl(function(){return e.state.basket.basketState.hasErrors}),r=bl(function(){return e.state.basket.basket}),a=function(t,n){return o=e.getters["labels/getLabel"]({labelCollection:"cart",labelKey:t}),r=n,o&&r?o.replace(/\${[^{]+}/g,function(e){return e.slice(2,-1).trim().split(".").reduce(function(e,t){return e&&t&&t in e?e[t]:void 0},r)}):o;var o,r},i=bl(function(){var e;return"true"===(null===(e=a("readOnlyAmount"))||void 0===e?void 0:e.toLowerCase())}),l=[],s=Hx(function(){e.dispatch("basket/removeItems",l.map(function(e){return{sku:e}})),l=[]},5e3);return{basketCards:r,cartIsEmpty:n,hasErrors:o,getLabel:a,removeItem:function(t){t.immediate?e.dispatch("basket/removeItems",[{sku:t.sku}]):(l.push(t.sku),s())},cancelRemoveItem:function(e){var t;t=e,l=l.filter(function(e){return e!==t})||[]},readOnlyAmount:i}}},Xx=Jx,Qx=(0,Hb.A)(Xx,[["render",function(e,t,n,o,r,a){var i=qr("BasketCard"),l=qr("BasketAside");return Ai(),Si("section",Fk,[Mi("h1",Vk,fe(e.getLabel("cartTitle")),1),e.cartIsEmpty?(Ai(),Si("div",zk,[Mi("h3",null,fe(e.getLabel("cartIsEmptyText")),1),Mi("a",{class:"kb-button kb-button--full-color-spot",href:e.getLabel("cartIsEmptyLinkHref")},fe(e.getLabel("cartIsEmptyLinkText")),9,Uk)])):zi("v-if",!0),Mi("div",jk,[Mi("div",Hk,[Mi("ul",qk,[(Ai(!0),Si(gi,null,Yr(e.basketCards,function(t){return Ai(),Si("li",{key:t.data.productNumber,class:"kb-basket__cards-list-item"},[Ni(i,{data:t.data,variantData:t.variantData,soldOut:t.soldOut,alreadyRemoved:t.alreadyRemoved,onRemoveItem:e.removeItem,onCancelRemoveItem:e.cancelRemoveItem,readOnlyAmount:e.readOnlyAmount},null,8,["data","variantData","soldOut","alreadyRemoved","onRemoveItem","onCancelRemoveItem","readOnlyAmount"])])}),128))])]),e.basketCards&&e.basketCards.length?(Ai(),Si("div",Gk,[Ni(l,{miniBasket:!1,showPaymentOptions:!1})])):zi("v-if",!0)])])}]]),ew={name:"BreadCrumb",setup:function(){Lr(function(){document.documentElement.classList.add("kb-has-breadcrumb")})}};var tw=".kb-component--bread-crumb",nw=document.querySelector(tw),ow=document.querySelector(".kb-component--burger-menu");function rw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var aw={class:"kb-buy-section","aria-live":"polite"},iw={class:"kb-buy-section__price-wrapper"},lw={class:"kb-buy-section__price"},sw={key:0,class:"kb-buy-section__price--before"},cw={class:"kb-buy-section__price--before-price"},uw={key:0,class:"kb-selector kb-variant-selector"},dw={class:"kb-variant-selector__label",for:"variant-selector"},pw={class:"kb-selector__wrapper kb-selector__wrapper--with-arrow"},fw=["value","disabled","selected"],mw={class:"kb-buy-section__amount-add-wrapper"},gw=["aria-live"],hw=["aria-live"],bw=["aria-live"],vw={class:"kb-visually-hidden","aria-live":"polite"},yw={class:"kb-buy-section__sold-out kb-buy-section__sold-out--text"},_w={key:0,class:"kb-buy-section__sold-out kb-buy-section__sold-out--reason"},Aw=["href","title"],kw={key:4,class:"kb-spinner-overlay"};function xw(e){return xw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xw(e)}function ww(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Cw(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Cw(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Cw(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Cw(d,"constructor",c),Cw(c,"constructor",s),s.displayName="GeneratorFunction",Cw(c,r,"GeneratorFunction"),Cw(d),Cw(d,r,"Generator"),Cw(d,o,function(){return this}),Cw(d,"toString",function(){return"[object Generator]"}),(ww=function(){return{w:a,m:p}})()}function Cw(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Cw=function(e,t,n,o){function a(t,n){Cw(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Cw(e,t,n,o)}function Ew(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Sw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Iw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tw(Object(n),!0).forEach(function(t){Bw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bw(e,t,n){return(t=function(e){var t=function(e){if("object"!=xw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ow={name:"BuySection",components:{AmountSelector:OA},props:{variants:{type:String,required:!0},currentVariantSku:{type:String,required:!1},pdf:{type:String,required:!1},soldOutText:{type:String,required:!1},soldOutReason:{type:String,required:!1},rolePageUrl:{type:String,required:!1},basketPageUrl:{type:String,required:!0},itemName:{type:String,required:!1},openRecommendationOverlay:{type:Boolean,required:!1},hasRequiredRights:{type:Boolean,required:!0}},setup:function(e){var t,n,o=Af(),r=Kt(),a=Kt(!1),i=e.variants?JSON.parse(e.variants):"",l=e.variants?Iw(Iw({},i.variantList[0]),{},{sku:"-",displayName:i.placeholder}):"",s=bl(function(){return Iw(Iw({},i),{},{variantList:[l].concat((e=i.variantList,function(e){if(Array.isArray(e))return Sw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Sw(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sw(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))});var e}),c=bl(function(){return e.pdf?JSON.parse(e.pdf):null}),u=Kt(null!==(t=e.currentVariantSku)&&void 0!==t?t:l.sku),d=bl(function(){return s.value.variantList.find(function(e){return e.sku===u.value})}),p=Kt(null!==(n=s.value.startAmount)&&void 0!==n?n:s.value.minAmount),f=Kt(s.value.productUrlName),m=e.hasRequiredRights,g=m?"kb-product-detail__error-message":"kb-product-detail__error-message--show";bo(d,function(e){h(e)});var h=function(e){var t=function(e,t){e.endsWith("/")&&(e=e.slice(0,-1));var n=e.split("/");n[n.length-1]=t;var o=n.join("/");return o.endsWith("/")||(o+="/"),o}(window.location.href,e.urlName);window.history.replaceState("ProductDetailPage","",t),f.value=e.urlName},b=function(){r.value||(y.value=d.value.sku===l.sku?"kb-product-detail__error-message--show":"")},v=function(){var t,n=(t=ww().m(function t(n){var i,c,u,f,m,g,h,v,y;return ww().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(p.value<s.value.minAmount)){t.n=1;break}return t.a(2);case 1:if(!(p.value>s.value.maxAmount)){t.n=2;break}return t.a(2);case 2:if(r.value=!1,b(),d.value.sku!==l.sku){t.n=3;break}return console.error("No variant selected, can not add to basket without"),t.a(2);case 3:return a.value=!0,t.p=4,t.n=5,o.dispatch("basket/addToBasket",{sku:d.value.sku,quantity:p.value});case 5:m=d.value,g=null!==(i=null===(c=m.price)||void 0===c?void 0:c.price)&&void 0!==i?i:0,h=null===(u=m.price)||void 0===u?void 0:u.beforePrice,v=h&&h>g?Math.round(100*(h-g))/100:0,y={item_id:m.sku,item_name:null!==(f=e.itemName)&&void 0!==f?f:m.displayName,item_brand:"cancer.dk",price:g,discount:v,quantity:p.value,index:0}
2,m.displayName&&(y.item_variant=m.displayName),Wm([y]),e.openRecommendationOverlay?(o.commit("main/set_page_overlay_content_data",{variantSku:d.value.sku}),o.dispatch("main/openPageOverlay",{overlayContent:"ProductAddedOverlay",returnTarget:n.currentTarget})):window.location.href=e.basketPageUrl;case 6:return t.p=6,a.value=!1,t.f(6);case 7:return t.a(2)}},t,null,[[4,,6,7]])}),function(){var e=this,n=arguments;return new Promise(function(o,r){var a=t.apply(e,n);function i(e){Ew(a,o,r,i,l,"next",e)}function l(e){Ew(a,o,r,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}();Dr(function(){var t,n,o,r,a,i,s,c=d.value;if(c&&c.sku!==l.sku){var u,p,f=window.location.pathname.split("/").filter(Boolean),m=f.findIndex(function(e){return"produkter"===e||"pjecer"===e||"produktvarer"===e}),g=m>=0?f.slice(m,-1):[],h=null!==(t=null===(n=c.price)||void 0===n?void 0:n.price)&&void 0!==t?t:0,b=null===(o=c.price)||void 0===o?void 0:o.beforePrice,v=b&&b>h?Math.round(100*(b-h))/100:0,y={item_id:c.sku,item_name:null!==(r=e.itemName)&&void 0!==r?r:c.displayName,item_brand:"cancer.dk",price:h,discount:v,quantity:1,item_category:null!==(a=g[0])&&void 0!==a?a:null,item_category2:null!==(i=g[1])&&void 0!==i?i:null,item_category3:null!==(s=g[2])&&void 0!==s?s:null,index:0};c.displayName&&(y.item_variant=c.displayName),Gm({event:"view_item",ecommerce:{currency:"DKK",value:null!==(p=(u=y).price)&&void 0!==p?p:0,items:[u]}})}});var y=Kt(),_=Kt(),A=Kt();return{amount:p,currentVariant:d,currentVariantSku:u,displayMaxAmountMessage:_,displayMinAmountMessage:A,displayNoVariantChosenMessage:y,pdfData:c,unSubmitted:r,isSubmitting:a,variantData:s,hasRequiredRights:m,displayHasRequiredRightsMessage:g,addToCart:v,openRequestRoleOverlay:function(){o.commit("main/set_page_overlay_content_data",{rolePageUrl:e.rolePageUrl}),o.dispatch("main/openPageOverlay",{overlayContent:"FrivilligeShopWrongRoleModal"})},displayMessage:function(e){r.value||("max-error"===e?(A.value="",_.value=e?"kb-product-detail__error-message--show":""):"min-error"===e?(_.value="",A.value=e?"kb-product-detail__error-message--show":""):(A.value="",_.value=""))},getLabel:function(e,t){return dA({labelKey:e,labelCollection:"buySection",params:t,allowEmpty:arguments.length>2&&void 0!==arguments[2]&&arguments[2]})},setAmount:function(e){return p.value=e},updateDisplayNoVariantChosenMessage:b}}},Lw=Ow,Dw=(0,Hb.A)(Lw,[["render",function(e,t,n,o,r,a){var i,l,s=qr("AmountSelector");return Ai(),Si("section",aw,[e.soldOutText?zi("v-if",!0):(Ai(),Si(gi,{key:0},[Mi("div",iw,[Mi("p",lw,fe(e.currentVariant.price.displayPrice),1),e.currentVariant.price.displayBeforePrice?(Ai(),Si("h5",sw,[Fi(fe(e.getLabel("prePriceText"))+" ",1),Mi("span",cw,fe(e.currentVariant.price.displayBeforePrice),1)])):zi("v-if",!0)]),e.variantData.variantList.length>2?(Ai(),Si("article",uw,[Mi("label",dw,fe(e.variantData.variantList[0].displayName),1),Mi("div",pw,[io(Mi("select",{id:"variant-selector","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.currentVariantSku=t}),onChange:t[1]||(t[1]=function(){return e.updateDisplayNoVariantChosenMessage&&e.updateDisplayNoVariantChosenMessage.apply(e,arguments)})},[(Ai(!0),Si(gi,null,Yr(e.variantData.variantList,function(e,t){return Ai(),Si("option",{key:t,value:e.sku,disabled:0===t||e.outOfStock,selected:0===t},fe(e.displayName),9,fw)}),128))],544),[[Xs,e.currentVariantSku]])])])):zi("v-if",!0),Mi("div",mw,[Ni(s,{id:"amountSelector",setAmount:e.setAmount,startAmount:e.variantData.minAmount,minAmount:e.variantData.minAmount,maxAmount:e.variantData.maxAmount,displayMessage:e.displayMessage,sku:e.currentVariantSku,label:e.getLabel("addToCartAmount",[],!0),"aria-describedby":"errorMessageMinAmount errorMessageNoVariantChosen errorMessageMissingRole"},null,8,["setAmount","startAmount","minAmount","maxAmount","displayMessage","sku","label"]),e.hasRequiredRights?(Ai(),Si("button",{key:0,onClick:t[2]||(t[2]=function(){return e.addToCart&&e.addToCart.apply(e,arguments)}),class:"kb-buy-section__add-to-cart-button kb-button kb-button--full-color-spot"},fe(e.getLabel("addToCartButtonText")),1)):(Ai(),Si("button",{key:1,onClick:t[3]||(t[3]=function(){return e.openRequestRoleOverlay&&e.openRequestRoleOverlay.apply(e,arguments)}),class:"kb-buy-section__open-wrong-role-overlay-button kb-button kb-button--full-color-spot"},fe(e.getLabel("requestAccessButtonText")),1))]),zi(" error message if more than max chosen "),Mi("p",{id:"errorMessageMaxAmount",class:Y([e.displayMaxAmountMessage,"kb-product-detail__error-message"]),"aria-live":e.dis
2playMaxAmountMessage?"polite":null,role:"alert"},fe(e.getLabel("errorMessageMaxAmount",["".concat(e.variantData.maxAmount)])),11,gw),zi(" error message if more less than min chosen "),Mi("p",{id:"errorMessageMinAmount",class:Y([e.displayMinAmountMessage,"kb-product-detail__error-message kb-product-detail__error-message--no-margin"]),"aria-live":e.displayMinAmountMessage?"polite":null,role:"alert"},fe(e.getLabel("errorMessageMinAmount",["".concat(e.variantData.minAmount)])),11,hw),zi(" error message if no variant chosen "),Mi("p",{id:"errorMessageNoVariantChosen",class:Y([e.displayNoVariantChosenMessage,"kb-product-detail__error-message kb-product-detail__error-message--no-margin"]),"aria-live":e.displayNoVariantChosenMessage?"polite":null,role:"alert"},fe(e.getLabel("errorMessageNoVariantChosen")),11,bw),Mi("p",vw,fe(e.displayMaxAmountMessage?e.getLabel("errorMessageMaxAmount",["".concat(e.variantData.maxAmount)]):null)+" "+fe(e.displayMinAmountMessage?e.getLabel("errorMessageMinAmount",["".concat(e.variantData.minAmount)]):null)+" "+fe(e.displayNoVariantChosenMessage?e.getLabel("errorMessageMinAmount",["".concat(e.variantData.minAmount)]):null),1)],64)),zi(" error message if user is missing rights to order product "),e.hasRequiredRights?zi("v-if",!0):(Ai(),Si("p",{key:1,id:"errorMessageMissingRole",class:Y([e.displayHasRequiredRightsMessage,"kb-product-detail__error-message kb-product-detail__error-message--no-margin"]),"aria-live":"assertive"},fe(e.getLabel("errorMessageMissingRole")),3)),e.soldOutText?(Ai(),Si(gi,{key:2},[Mi("p",yw,fe(e.soldOutText),1),e.soldOutReason?(Ai(),Si("p",_w,fe(e.soldOutReason),1)):zi("v-if",!0)],64)):zi("v-if",!0),null!==(i=e.pdfData)&&void 0!==i&&i.link?(Ai(),Si("a",{key:3,href:e.pdfData.link,title:e.pdfData.title,target:"_blank",class:"kb-buy-section__pdf-link"},[Mi("span",null,fe(e.pdfData.text),1)],8,Aw)):zi("v-if",!0),e.isSubmitting?(Ai(),Si("div",kw,(l=t[4]||(t[4]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return rw(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return rw(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rw(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])}]]);var Mw={class:"kb-case-carousel"},Nw={key:0,class:"kb-case-carousel__single-card-section"},Pw={class:"kb-case-carousel__header"},Rw={class:"kb-case-carousel__header-title"},Fw={class:"kb-case-carousel__single-card-container"},Vw={class:"kb-case-carousel__slider"},zw={class:"kb-case-carousel__header kb-case-carousel__slider-header"},Uw={class:"kb-case-carousel__header-title kb-case-carousel__slider-header-title"};const jw={name:"CaseCarousel",components:{ContentCarousel:iy,CaseCard:Bv},props:{contentJson:{type:Object,required:!0},link:{type:Object,required:!1},type:{type:String,required:!0},carouselId:{type:String,required:!1}},setup:function(){var e=Af();return{ContentCarousel:iy,CaseCard:Bv,getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"caseCarousel",labelKey:t})}}}},Hw=jw,qw=(0,Hb.A)(Hw,[["render",function(e,t,n,o,r,a){var i=qr("CaseCard"),l=qr("ContentCarousel");return Ai(),Si("article",Mw,[zi(" hvis det er kun er ét card - hvis et kort "),1===e.contentJson.length?(Ai(),Si("section",Nw,[Mi("div",Pw,[t[0]||(t[0]=Mi("div",{class:"kb-case-carousel__header-breaker"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 11"},[Mi("path",{stroke:"#124999",d:"M704 1H2c-.55228 0-1 .44772-1 1v9"})])],-1)),Mi("h4",Rw,fe(e.getLabel("title")),1)]),Mi("div",Fw,[(Ai(!0),Si(gi,null,Yr(e.contentJson,function(e,t){return Ai(),Ti(i,{data:e},null,8,["data"])}),256))])])):e.contentJson.length>1?(Ai(),Si(gi,{key:1},[zi(" hvis der er mere end ét CaseCard vis ContentCarousel "),Mi("section",Vw,[Mi("div",zw,[t[1]||(t[1]=Mi("div",{class:"kb-case-carousel__header-breaker"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 11"},[Mi("path",{stroke:"#124999",d:"M704 1H2c-.55228 0-1 .44772-1 1v9"})])],-1)),Mi("h4",Uw,fe(e.getLabel("title")),1)]),Ni(l,{contentJson:e.contentJson,link:e.link,type:e.type,carouselId:e.carouselId},null,8,["contentJson","link","type","carouselId"])])],64)):zi("v-if",!0)])}]]),Gw={name:"CaseModule",props:{glideId:{type:Number,required:!0}},setup:function(e){Dr(function(){var t=new Tb(e.glideId?"#".concat(e.glideId):".glide",{perView:1,gap:0,peek:{after:0,before:0}});
2t.mount(),t.update()})}};var Kw,Zw={class:"kb-category-picker kb-category-picker__slider"},Ww={key:0,class:"kb-content-carousel__title",id:"content-carousel-title"},$w=["id"],Yw={class:"glide__track kb-category-picker__glide__track","data-glide-el":"track"},Jw={class:"glide__slides"},Xw=["href"],Qw={class:"kb-image-module"},eC={class:"kb-image-module__image-container"},tC={class:"kb-image-module__image"},nC=["srcset"],oC=["srcset"],rC=["srcset"],aC=["srcset"],iC=["src","alt"],lC={class:"kb-category-picker__thumbnail-list-item-text"};function sC(e){return sC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sC(e)}function cC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function uC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cC(Object(n),!0).forEach(function(t){dC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dC(e,t,n){return(t=function(e){var t=function(e){if("object"!=sC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pC={name:"CategoryPicker",props:{categories:{type:Array,required:!1}},setup:function(){var e=Af(),t=Kt(window.innerWidth),n="CategoryPickerGlideId",o=function(){var e={perView:2.45,gap:15,bound:!0,peek:{after:0,before:0}};return t.value>1300?uC(uC({},e),{},{perView:6.75,gap:15,peek:{after:1,before:0}}):t.value>1100?uC(uC({},e),{},{perView:6.2,gap:15,peek:{after:1,before:0}}):t.value>1024?uC(uC({},e),{},{perView:5.75,gap:15,peek:{after:1,before:0}}):t.value>960?uC(uC({},e),{},{perView:5.55,gap:15,peek:{after:1,before:0}}):t.value>800?uC(uC({},e),{},{perView:5.2,gap:15,peek:{after:0,before:0}}):t.value>550?uC(uC({},e),{},{perView:3.45,gap:15,peek:{after:0,before:0}}):e};return Dr(function(){(Kw=new Tb("#".concat(n),o())).mount(),window.addEventListener("resize",function(){t.value=window.innerWidth,window.innerWidth>1401&&window.innerWidth<1401||Kw.update(o())})}),{glideId:n,getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"categoryPicker",labelKey:t,emptyIfMissing:!0})}}}},fC=pC,mC=(0,Hb.A)(fC,[["render",function(e,t,n,o,r,a){return Ai(),Si(gi,null,[zi(' saving for future, for now it will always be a slider also on desktop\r\n <section data-desktop class="kb-category-picker" :class="{\'kb-category-picker--hide\': slider }">\r\n\r\n <ul class="kb-category-picker__thumbnail-list">\r\n\r\n <template v-for="category in categories" :key="category.url">\r\n\r\n <li class="kb-category-picker__thumbnail-list-item">\r\n <a class="kb-category-picker__thumbnail-list-item-link" :href="category.url">\r\n <figure class="kb-image-module">\r\n <div class="kb-image-module__image-container">\r\n <picture class="kb-image-module__image">\r\n <source :srcset="category.src" media="(min-width:1024px)">\r\n <source :srcset="category.src" media="(min-width: 768px)">\r\n <source :srcset="category.src" media="(min-width: 376px)">\r\n <source :srcset="category.src" media="(max-width: 376px)">\r\n <img :src="category.src" :alt="category.alt">\r\n </picture>\r\n </div>\r\n </figure>\r\n <p class="kb-category-picker__thumbnail-list-item-text">{{ category.text }}</p>\r\n </a>\r\n </li>\r\n\r\n </template>\r\n </ul>\r\n </section> '),Mi("section",Zw,[e.getLabel("title")&&""!==e.getLabel("title").trim()?(Ai(),Si("h2",Ww,fe(e.getLabel("title")),1)):zi("v-if",!0),Mi("div",{class:"glide kb-category-picker__glide",id:e.glideId}
2,[t[0]||(t[0]=Vi('<div class="kb-content-carousel__controls" data-glide-el="controls"><button class="kb-content-carousel__arrow" data-glide-dir="<" aria-controls="content-carousel-slides" aria-label="Forrige"><div class="kb-ui-icon kb-ui-icon--ui-chevron-down"></div></button><button class="kb-content-carousel__arrow" data-glide-dir=">" aria-controls="content-carousel-slides" aria-label="Næste"><div class="kb-ui-icon kb-ui-icon--ui-chevron-up"></div></button></div>',1)),Mi("div",Yw,[Mi("ul",Jw,[(Ai(!0),Si(gi,null,Yr(e.categories,function(e,t){return Ai(),Si("li",{key:t,class:"kb-category-picker__slider__content glide__slide kb-category-picker__thumbnail-list-item"},[Mi("a",{class:"kb-category-picker__thumbnail-list-item-link",href:e.url},[Mi("figure",Qw,[Mi("div",eC,[Mi("picture",tC,[Mi("source",{srcset:e.src,media:"(min-width:1024px)"},null,8,nC),Mi("source",{srcset:e.src,media:"(min-width: 768px)"},null,8,oC),Mi("source",{srcset:e.src,media:"(min-width: 376px)"},null,8,rC),Mi("source",{srcset:e.src,media:"(max-width: 376px)"},null,8,aC),Mi("img",{src:e.src,alt:e.alt||""},null,8,iC)])])]),Mi("p",lC,fe(e.text),1)],8,Xw)])}),128))])])],8,$w)])],2112)}]]);var gC={class:"kb-changes-saved","aria-live":"polite"},hC={class:"kb-changes-saved__hero"},bC={class:"kb-changes-saved__hero__title-wrapper"},vC={class:"kb-changes-saved__hero__title-wrapper__title"},yC={class:"kb-changes-saved__content-container"};function _C(e){var t,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null!==(t=e.statePropName)&&void 0!==t?t:"page_overlay_open",i=null!==(n=e.parent)&&void 0!==n?n:document,l=uh,s=i.querySelector(".kb-page-overlay__cover"),c=null!==(o=r.persistent)&&void 0!==o&&o,u=function(){l.state.main[a]&&e&&"function"==typeof e.opening&&e.opening(),l.state.main[a]||e&&"function"==typeof e.closing&&e.closing(),c||s.removeEventListener("transitionend",u)};s?s.addEventListener("transitionend",u):console.warn("PageOverlay: DOM element not found (kb-page-overlay__cover)")}const AC={name:"ChangesSaved",setup:function(){var e,t,n=Af();return Dr(function(){e=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),t=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){e.focus()}},{persistent:!0})}),{cancelAction:function(){n.dispatch("main/closePageOverlay")},tabTrap:function(n){n.shiftKey&&"first"===n.target.dataset.order&&(n.preventDefault(),t.focus()),n.shiftKey||"first"!==n.target.dataset.order||(n.preventDefault(),t.focus()),n.shiftKey||n.target.dataset.order||(n.preventDefault(),e.focus())},getLabel:function(e){return n.getters["labels/getLabel"]({labelCollection:"ChangesSaved",labelKey:e})}}}},kC=AC,xC=(0,Hb.A)(kC,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",gC,[Mi("section",hC,[Mi("div",bC,[Mi("h2",vC,fe(e.getLabel("title")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-changes-saved__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",yC,[Mi("p",null,fe(e.getLabel("text")),1),Mi("button",{onClick:t[0]||(t[0]=function(){return e.cancelAction&&e.cancelAction.apply(e,arguments)}),"data-order":"first",onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("cancelButton")),33)])])}]]);var wC={class:"kb-checkout-content"},CC={class:"kb-checkout-content__wrapper"},EC={class:"kb-checkout-content__wrapper-left"},SC={class:"kb-checkout-content__step-indicator"},TC=["aria-current","onClick"],IC={class:"kb-checkout-content__step-indicator-title"},BC={class:"kb-checkout-content__step-indicator-number"},OC={class:"kb-visually-hidden"},LC={class:"kb-checkout-content__title","aria-live":"polite"},DC={class:"kb-checkout-content__wrapper-aside"};function MC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var NC={class:"kb-checkout-step-one__customer-info"},PC={class:"kb-checkout-step-one__radio"},RC={class:"kb-checkout-step-one__radio-fieldset"},FC={class:"kb-checkout-step-one__radio-legend"},VC={class:"kb-checkout-step-one__radio-label"},zC={class:"kb-checkout-step-one__radio-label"},UC={class:"kb-checkout-step-one__radio-label"},jC={key:0,class:"kb-checkout-step-one__form-wrapper--insert"},HC={class:"kb-checkout-step-one__form-wrapper"},qC={class:"kb-checkout-step-one__form-wrapper kb-checkout-step-one__form-wrapper--one-input-half-full"},GC={key:1,class:"kb-checkout-step-one__form-wrapper--insert"},KC={class:"kb-checkout-step-one__form-wrapper"},ZC={class:"kb-checkout-step-one__form-wrapper"},WC={class:"kb-checkout-step-one__form-wrapper"},$C={class:"kb-checkout-step-one__form-wrapper"},YC={class:"kb-checkout-step-one__form-wrapper"},JC={class:"kb-checkout-step-one__navigation"},XC={class:"kb-checkout-step-one__navigation-button-wrapper"},QC=["href"],eE={key:0,class:"kb-spinner-overlay"};function tE(e){return!("string"!=typeof e||!(e.length>0))}function nE(e){return!(!tE(e)||!e.match(/^\S+@\S+\.[a-zA-Z]+$/g))}function oE(e){return!(!tE(e)||!e.match(/^[\d]{8}$/))}function rE(e){return tE(e)&&!!e.match(/^[a-zA-Z0-9 \-æÃøÃÃ¥Ã
éÃëÃöÃóÃáÃäÃüÃúÃ\.]+$/)&&!e.match(/^\s*$/)}function aE(e){return tE(e)&&!!e.match(/^([a-zA-Z0-9_ \-æÃøÃÃ¥Ã
éÃëÃöÃóÃáÃäÃüÃúÃ,\.?!&:"\/%()]|\r|\n)+$/)}function iE(e){return tE(e)&&!!e.match(/^[a-zA-Z0-9 \-æÃøÃÃ¥Ã
éÃëÃöÃóÃáÃäÃüÃúÃ&\/\.,-]+$/)}function lE(e){var t=Number(e);return!isNaN(t)&&8===e.length}
2var sE=["for"],cE=["disabled","value","autocomplete","id","type","aria-describedby","aria-invalid","placeholder","maxlength","required"],uE={key:1,class:"kb-form__input-helptext"},dE={"aria-live":"assertive"},pE={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"};const fE=wA("FormTextfield",{validatorFunction:function(e){return!!(e.length>1)}}),mE=(0,Hb.A)(fE,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",{class:Y(["Form__Element FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},fe(e.label),9,sE),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0),Mi("input",{class:Y(["FormTextbox__Input",{"validation-error":e.isValidationError}]),disabled:e.disabled?e.disabled:e.readOnly,value:e.modelValue,autocomplete:e.autocomplete,id:e.fieldName,type:e.type,"aria-describedby":"".concat(e.fieldName,"__desc"),"aria-invalid":e.isValidationError,placeholder:e.placeholder,maxlength:e.maxlength,required:!!e.isRequired,onInput:t[0]||(t[0]=function(t){e.$emit("update:modelValue",t.target.value),e.onChangeCallback(t)}),onBlur:t[1]||(t[1]=function(){return e.onChangeCallback&&e.onChangeCallback.apply(e,arguments)})},null,42,cE),e.helpMessageLabel?(Ai(),Si("p",uE,fe(e.helpMessageLabel),
21)):zi("v-if",!0),Mi("div",dE,[e.isValidationError?(Ai(),Si("p",pE,fe(e.errorMessageLabel),1)):zi("v-if",!0)])],2)}]]);var gE=["for"],hE=["id","aria-describedby","aria-invalid","placeholder","required","onBlur","disabled"],bE={"aria-live":"assertive"},vE={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"},yE={class:"kb-form-address-field-group__input-wrapper kb-form-address-field-group__input-wrapper--shorter"},_E=["for"],AE=["required","id","disabled","placeholder"],kE=["for"],xE=["required","id","disabled","placeholder"];function wE(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return CE(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(CE(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,CE(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,CE(d,"constructor",c),CE(c,"constructor",s),s.displayName="GeneratorFunction",CE(c,r,"GeneratorFunction"),CE(d),CE(d,r,"Generator"),CE(d,o,function(){return this}),CE(d,"toString",function(){return"[object Generator]"}),(wE=function(){return{w:a,m:p}})()}function CE(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}CE=function(e,t,n,o){function a(t,n){CE(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},CE(e,t,n,o)}function EE(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}var SE,TE="https://adressevaelger.dk",IE="adressevaelger123",BE="adresser";function OE(e){return LE.apply(this,arguments)}function LE(){var e;return e=wE().m(function e(t){var n,o;return wE().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch(t);case 1:if((n=e.v).ok){e.n=2;break}throw new Error("Adressevælger svarede med ".concat(n.status));case 2:return e.n=3,n.json();case 3:if("fejl"!==(o=e.v).status){e.n=4;break}throw new Error(o.beskrivelse);case 4:return e.a(2,o)}},e)}),LE=function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){EE(a,o,r,i,l,"next",e)}function l(e){EE(a,o,r,i,l,"throw",e)}i(void 0)})},LE.apply(this,arguments)}function DE(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).maksimum,n=new URLSearchParams({tekst:e,token:IE});return t&&n.set("maksimum",t),OE("".concat(TE,"/").concat(BE,"/soeg?").concat(n)).then(function(e){var t;return null!==(t=e.fund)&&void 0!==t?t:[]})}function ME(e){return OE("".concat(TE,"/").concat(BE,"/").concat(e,"?token=").concat(IE)).then(function(e){return e.adresse})}function NE(e){return"adresse"===(null==e?void 0:e.type)}function PE(e){return"adresse"===(null==e?void 0:e.type)||"husnummer"===(null==e?void 0:e.type)}function RE(e){return"vejnavn"===(null==e?void 0:e.type)||"navngivenvejpostnummer"===(null==e?void 0:e.type)}function FE(e){var t,n,o=null!==(t=e.vejnavn)&&void 0!==t?t:e.titel,r=e.postnr?" ".concat(e.postnr," ").concat(null!==(n=e.postdistrikt)&&void 0!==n?n:"").trimEnd():"";return{value:"".concat(o," ").concat(r),caret:o.length+1}}function VE(e){var t,n,o,r,a=null==e?void 0:e.husnummer;return a?{addressLine:[a.vejnavn,a.husnummertekst,e.etagebetegnelse,e.doerbetegnelse].filter(
2Boolean).join(" "),zipCode:null!==(t=null===(n=a.postnummer)||void 0===n?void 0:n.postnr)&&void 0!==t?t:"",city:null!==(o=null===(r=a.postnummer)||void 0===r?void 0:r.navn)&&void 0!==o?o:""}:null}function zE(){if(!SE){var e=new Promise(function(e){setTimeout(function(){return e(!0)},3e3)}),t=DE("Strandboulevarden 49",{maksimum:1}).then(function(){return!0}).catch(function(){return!1});SE=Promise.race([t,e])}return SE}function UE(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return jE(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(jE(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,jE(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,jE(d,"constructor",c),jE(c,"constructor",s),s.displayName="GeneratorFunction",jE(c,r,"GeneratorFunction"),jE(d),jE(d,r,"Generator"),jE(d,o,function(){return this}),jE(d,"toString",function(){return"[object Generator]"}),(UE=function(){return{w:a,m:p}})()}function jE(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}jE=function(e,t,n,o){function a(t,n){jE(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},jE(e,t,n,o)}function HE(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function qE(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){HE(a,o,r,i,l,"next",e)}function l(e){HE(a,o,r,i,l,"throw",e)}i(void 0)})}}function GE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var KE=0;function ZE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onSelect,o=t.onError,r=t.debounceMs,a=void 0===r?200:r,i=t.emptyText,l=void 0===i?"Ingen adresser fundet":i,s=t.loadingText,c=void 0===s?"Søger â¦":s,u="kb-address-suggestions-".concat(KE+=1),d=e.parentNode,p=document.createElement("ul");p.id=u,p.className="kb-address-suggestions",p.setAttribute("role","listbox"),p.setAttribute("aria-label","Adresseforslag"),p.hidden=!0,d.append(p),e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls",u),e.setAttribute("aria-expanded","false");var f,m=[],g=-1,h=0;function b(){return!p.hidden}function v(){p.style.top="".concat(e.offsetTop+e.offsetHeight,"px"),p.hidden=!1,e.setAttribute("aria-expanded","true")}function y(){p.hidden=!0,p.replaceChildren(),m=[],g=-1,e.setAttribute("aria-expanded","false"),e.removeAttribute("aria-activedescendant")}function _(e){y(),o?o(e):console.error(e)}function A(t){g=t,p.querySelectorAll("li").forEach(function(e,n){var o=n===t;e.classList.toggle("kb-address-suggestion--active",o),e.setAttribute("aria-selected",o?"true":"false"),o&&e.scrollIntoView({block:"nearest"})}),t<0?e.removeAttribute("aria-activedescendant"):e.setAttribute("aria-activedescendant","".concat(u,"-option-").concat(t))}function k(t){var n=document.createElement("li");n.className="kb-address-suggestions__message",n.textContent=t,p.replaceChildren(n),v(),m=[],g=-1,e.removeAttribute("aria-activedescendant")}function x(e){var t,n=e.filter(PE),o=n.length?n:e;
2m=o,o.length?(p.replaceChildren.apply(p,function(e){if(Array.isArray(e))return GE(e)}(t=o.map(function(e,t){var n=document.createElement("li");return n.id="".concat(u,"-option-").concat(t),n.className="kb-address-suggestion",n.setAttribute("role","option"),n.setAttribute("aria-selected","false"),n.textContent=e.titel,n.addEventListener("mousedown",function(t){t.preventDefault(),E(e)}),n}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return GE(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GE(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v(),A(-1)):k(l)}function w(e){return C.apply(this,arguments)}function C(){return(C=qE(UE().m(function e(t){var n,o,r;return UE().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=h+=1,e.p=1,e.n=2,DE(t,{maksimum:10});case 2:o=e.v,n===h&&x(o),e.n=4;break;case 3:e.p=3,r=e.v,n===h&&_(r);case 4:return e.a(2)}},e,null,[[1,3]])}))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=qE(UE().m(function t(o){var r,a,i,l,s,u,d;return UE().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!RE(o)){t.n=2;break}return r=FE(o),a=r.value,i=r.caret,e.value=a,e.focus(),e.setSelectionRange(i,i),k(c),t.n=1,T(a);case 1:return t.a(2);case 2:if(NE(o)){t.n=4;break}return e.value=o.titel,k(c),t.n=3,T(o.titel);case 3:return t.a(2);case 4:return l=h+=1,k(c),t.p=5,u=VE,t.n=6,ME(o.id);case 6:if(s=u(t.v),l===h){t.n=7;break}return t.a(2);case 7:if(y(),s){t.n=8;break}return t.a(2);case 8:e.value=s.addressLine,n&&n(s),t.n=10;break;case 9:t.p=9,d=t.v,l===h&&_(d);case 10:return t.a(2)}},t,null,[[5,9]])}))).apply(this,arguments)}function T(e){return I.apply(this,arguments)}function I(){return(I=qE(UE().m(function e(t){var n,o,r,a;return UE().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=h+=1,e.p=1,e.n=2,DE(t,{maksimum:10});case 2:if(o=e.v,n===h){e.n=3;break}return e.a(2);case 3:if(1!==(r=o.filter(PE)).length||!NE(r[0])){e.n=5;break}return e.n=4,E(r[0]);case 4:return e.a(2);case 5:x(o),e.n=7;break;case 6:e.p=6,a=e.v,n===h&&_(a);case 7:return e.a(2)}},e,null,[[1,6]])}))).apply(this,arguments)}function B(){clearTimeout(f);var t=e.value.trim();if(!t)return h+=1,void y();f=setTimeout(function(){return w(t)},a)}function O(e){if("ArrowDown"===e.key||"ArrowUp"===e.key){if(!b())return;return e.preventDefault(),t="ArrowDown"===e.key?1:-1,void(m.length&&A(g<0?t>0?0:m.length-1:(g+t+m.length)%m.length))}var t;if("Enter"===e.key){if(!b()||!m.length)return;return e.preventDefault(),void E(m[g<0?0:g])}"Escape"===e.key&&b()&&(e.preventDefault(),clearTimeout(f),h+=1,y())}function L(){var t=e.value.trim();t&&!b()&&w(t)}function D(e){d.contains(e.target)||y()}return e.addEventListener("input",B),e.addEventListener("keydown",O),e.addEventListener("focus",L),e.addEventListener("click",L),document.addEventListener("mousedown",D),function(){clearTimeout(f),e.removeEventListener("input",B),e.removeEventListener("keydown",O),e.removeEventListener("focus",L),e.removeEventListener("click",L),document.removeEventListener("mousedown",D),p.remove(),e.removeAttribute("role"),e.removeAttribute("aria-autocomplete"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-activedescendant")}}function WE(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return $E(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):($E(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$E(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,$E(d,"constructor",c),$E(c,"constructor",s),s.displayName="GeneratorFunction",$E(c,r,"GeneratorFunction"),$E(d),$E(d,r,"Generator"),$E(d,o,function(){return this}),$E(d,"toString",function(){return"[object Generator]"}),(WE=function(){return{w:a,m:p}})()}function $E(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}$E=function(e,t,n,o){function a(t,n){$E(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},$E(e,t,n,o)}function YE(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function JE(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){YE(a,o,r,i,l,"next",e)}function l(e){YE(a,o,r,i,l,"throw",e)}i(void 0)})}}var XE=0;const QE={name:"FormAddressField",props:{addressLineValue:{type:String,required:!0},zipCodeValue:{type:String,required:!0},cityValue:{type:String,required:!0},addressPlaceholder:{type:String,required:!1},zipCodePlaceholder:{type:String,required:!1},cityPlaceholder:{type:String,required:!1},addressLabel:{type:String,required:!1,default:"Adresse og husnummer"},zipCodeLabel:{type:String,required:!1,default:"Postnummer"},cityLabel:{type:String,required:!1,default:"By"},errorMessageLabel:{type:String,required:!0},isValidationError:{type:Boolean,required:!0},onchangeCallback:{type:Function,required:!1},onclickCallback:{type:Function,required:!1},disabled:{type:Boolean,required:!1,default:!1},isRequired:{type:Boolean,required:!1,default:!0}},setup:function(e,t){var n,o,r,a,i=t.emit,l=Kt(null!==(n=e.addressLineValue)&&void 0!==n?n:""),s=Kt(null!==(o=e.zipCodeValue)&&void 0!==o?o:""),c=Kt(null!==(r=e.cityValue)&&void 0!==r?r:""),u=Kt(!1),d="kb-address-line-".concat(XE+=1),p="kb-address-zipcode-".concat(XE),f="kb-address-city-".concat(XE),m=Kt(null);return mo(function(){i("update:addressLineValue",l.value),i("update:zipCodeValue",s.value),i("update:cityValue",c.value)}),Dr(JE(WE().m(function e(){return WE().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,zE();case 1:if(u.value=!e.v,!u.value){e.n=2;break}return e.a(2);case 2:a=ZE(m.value,{onSelect:function(e){l.value=e.addressLine,s.value=e.zipCode,c.value=e.city,i("update:addressSelected",{addressLine:l.value,zipCode:s.value,city:c.value})},onError:function(){u.value=!0}});case 3:return e.a(2)}},e)}))),Pr(function(){a&&a()}),{addressLine:l,zipCode:s,city:c,clearSelectedAddress:function(){s.value="",c.value=""},addressServiceUnavailable:u,addressLineId:d,zipCodeId:p,cityId:f,addressLineInput:m}}},eS=QE,tS=(0,Hb.A)(eS,[["render",function(e,t,n,o,r,a){return Ai(),Si(gi,null,[Mi("div",{class:Y(["kb-form-address-field-group__input-wrapper FormTextbox",{"kb-form-address-field-group--disabled":e.disabled,ValidationRequired:e.isRequired}])},[Mi("label",{for:e.addressLineId,class:"Form__Element__Caption kb-form-address-field-group__input-label"},fe(e.addressLabel),9,gE),zi(" Address line "),io(Mi("input",{class:"FormTextbox__Input kb-form-address-field-group__input kb-address-line",ref:"addressLineInput","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.addressLine=t}),id:e.addressLineId,type:"text","aria-describedby":e.addressLineId,"aria-invalid":e.isValidationError,placeholder:e.addressPlaceholder,required:!!e.isRequired,onBlur:e.onchangeCallback?e.onchangeCallback:"",autocomplete:"new-password",onInput:t[1]||(t[1]=function(){return e.clearSelectedAddress&&e.clearSelectedAddress.apply(e,arguments)}),disabled:e.disabled},null,40,hE),[[Ws,e.addressLine]]),Mi("div",bE,[e.isValidationError?(Ai(),Si("p",vE,fe(e.errorMessageLabel),
21)):zi("v-if",!0)])],2),Mi("div",{class:Y(["kb-form-address-field-group__input-row FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("div",yE,[Mi("label",{for:e.zipCodeId,class:"Form__Element__Caption kb-form-address-field-group__input-label"},fe(e.zipCodeLabel),9,_E),io(Mi("input",{class:Y(["FormTextbox__Input kb-form-address-field-group__input kb-form-address-field-group__input--shorter kb-form-address-field-group__pbs-input kb-address-zipcode",{"validation-error":e.isValidationError}]),"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.zipCode=t}),required:!!e.isRequired,id:e.zipCodeId,type:"text",disabled:!e.addressServiceUnavailable,placeholder:e.zipCodePlaceholder},null,10,AE),[[Ws,e.zipCode]])]),Mi("div",{class:Y(["kb-form-address-field-group__input-wrapper FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.cityId,class:"Form__Element__Caption kb-form-address-field-group__input-label"},fe(e.cityLabel),9,kE),io(Mi("input",{class:Y(["FormTextbox__Input kb-form-address-field-group__input kb-address-city",{"validation-error":e.isValidationError}]),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.city=t}),required:!!e.isRequired,id:e.cityId,type:"text",disabled:!e.addressServiceUnavailable,placeholder:e.cityPlaceholder},null,10,xE),[[Ws,e.city]])],2)],2)],64)}]]);function nS(){var e=document.querySelector(".kb-checkout-content__wrapper");e&&e.scrollIntoView({behavior:"smooth"})}const oS={name:"CheckoutStepOne",components:{FormInputTextField:mE,FormAddressField:tS},setup:function(){Dr(function(){return nS()});var e=Af(),t=bl(function(){return e.state.checkout.isSubmitting}),n=bl(function(){return e.state.checkout.checkoutSteps}),o=bl(function(){return n.value.find(function(e){return 2===e.stepNumber})}),r=Kt(!bl(function(){return o.value.beenFilled}).value),a=Kt(!1),i=Kt(e.state.checkout.purchaseData.invoice.userInformation.contactFirstName),l=bl(function(){return!(!r.value||i.value)||rE(i.value)}),s=Kt(e.state.checkout.purchaseData.invoice.userInformation.contactLastName),c=bl(function(){return!(!r.value||s.value)||rE(s.value)}),u=Kt(e.state.checkout.purchaseData.invoice.userInformation.mobilePhone),d=bl(function(){return!(!r.value||u.value)||!!oE(u.value)}),p=Kt(e.state.checkout.purchaseData.invoice.userInformation.email),f=bl(function(){return!(!r.value||p.value)||!!nE(p.value)}),m=Kt(e.state.checkout.purchaseData.invoice.invoiceAddress.addressLine),g=bl(function(){return!!r.value||m.value.length>0&&aE(m.value)&&b.value&&y.value}),h=Kt(e.state.checkout.purchaseData.invoice.invoiceAddress.postalCode),b=bl(function(){return!!r.value||4===h.value.length&&aE(m.value)}),v=Kt(e.state.checkout.purchaseData.invoice.invoiceAddress.city),y=bl(function(){return!!r.value||v.value.length>0&&aE(m.value)}),_=Kt(e.state.checkout.purchaseData.invoice.userInformation.customerType),A=bl(function(){return"company"===_.value}),k=bl(function(){return"publicInstitution"===_.value}),x=Kt(e.state.checkout.purchaseData.invoice.company.companyName),w=bl(function(){return!(!r.value||x.value)||iE(x.value)}),C=Kt(e.state.checkout.purchaseData.invoice.company.companyDepartment),E=bl(function(){return!(!r.value||C.value)||!C.value||iE(C.value)}),S=Kt(e.state.checkout.purchaseData.invoice.company.companyCvr),T=bl(function(){return!(!r.value||S.value)||lE(S.value)}),I=Kt(e.state.checkout.purchaseData.invoice.public.publicInstitutionNameInput),B=bl(function(){return!(!r.value||I.value)||iE(I.value)}),O=Kt(e.state.checkout.purchaseData.invoice.public.publicInstitutionDepartmentOrContact),L=bl(function(){return!(!r.value||O.value)||!O.value||iE(O.value)}),D=Kt(e.state.checkout.purchaseData.invoice.public.publicInstitutionUserId),M=bl(function(){return!(!r.value||D.value)||!D.value||aE(D.value)}),N=Kt(e.state.checkout.purchaseData.invoice.public.publicInstitutionEan),P=bl(function(){return!(!r.value||N.value)||(e=N.value,t=Number(e),!isNaN(t)&&13===e.length);var e,t}),R=bl(function(){var e=g.value&&b.value&&y.value,t=!A.value||w.value&&T.value,n=!k.value||B.value&&P.value;return l.value&&c.value&&d.value&&f.value&&e&&t&&n}),F=bl(function(){return A.value}),V=bl(function(){return k.value});return{hideAllErrors:a,getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"checkout",labelKey:t})},firstNameInput:i,lastNameInput:s,phoneInput:u,emailInput:p,addressLineInput:m,postalCodeInput:h,cityInput:v,companyNameInput:x,companyDepartmentInput:C,companyCvrInput:S,publicInstitutionNameInput:I,publicInstitutionDepartmentOrContact:O,publicInstitutionUserId:D,publicInstitutionEan:N,onSubmit:function(){if(r.value=!1,a.value=!0,setTimeout(function(){a.value=!1},100),!R.value)return!1;var t={invoiceAddress:{addressLine:m.value,postalCode:h.value,city:v.value},userInformation:{mobilePhone:u.value,email:p.value,contactFirstName:i.value,contactLastName:s.value,customerType:_.value},company:{companyName:x.value,companyDepartment:C.value,companyCvr:S.value},public:{publicInstitutionNameInput:I.value,publicInstitutionDepartmentOrContact:O.value,publicInstitutionUserId:D.value,publicInstitutionEan:N.value}};e.commit("checkout/set_active_delivery_address",t.invoiceAddress),e.commit("checkout/set_purchase_data_invoice",t),e.commit("checkout/update_checkout_step_been_filled",1),e.commit("checkout/update_checkout_step",{nextStepNumber:2})},isSubmitting:t,unSubmitted:r,customerTypeInput:_,isPublicInstitution:k,showPublicInstitutionInputs:V,isCompany:A,showCompanyInputs:F,companyNameInputFilled:w,companyDepartmentInputFilled:E,companyCvrInputFilled:T,publicInstitutionNameInputFilled:B,publicInstitutionDepartmentOrContactFilled:L,publicInstitutionUserIdFilled:M,publicInstitutionEanFilled:P,firstNameInputFilled:l,lastNameInputFilled:c,phoneInputFilled:d,emailInputFilled:f,addressLineInputFilled:g,postalCodeInputFilled:b,cityInputFilled:y}}},rS=oS,aS=(0,Hb.A)(rS,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputTextField"),s=qr("FormAddressField");return Ai(),Si("article",{class:Y(["kb-forms kb-checkout-step-one",{"kb-checkout-step-one--submitting":e.isSubmitting}]),"aria-live":"polite"},[Mi("section",NC,[Mi("div",PC,[Mi("fieldset",RC,[Mi("legend",FC,fe(e.getLabel("customerInfoLegend")),1),Mi("label",VC,[io(Mi("input",{type:"radio",name:"__field_5898",value:"private","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.customerTypeInput=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":""},null,512),[[Js,e.customerTypeInput]]),Fi(" "+fe(e.getLabel("privateCustomerText")),1)]),Mi("label",zC,[io(Mi("input",{type:"radio",name:"__field_5898",value:"company","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.customerTypeInput=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":""},null,512),[[Js,e.customerTypeInput]]),Fi(" "+fe(e.getLabel("companyCustomerText")),1)]),Mi("label",UC,[io(Mi("input",{type:"radio",name:"__field_5898",value:"publicInstitution","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.customerTypeInput=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":""},null,512),[[Js,e.customerTypeInput]]),Fi(" "+fe(e.getLabel("publicInstitutionCustomerText")),1)])])]),e.isCompany?(Ai(),Si("section",jC,[Mi("div",HC,[Ni(l,{isRequired:"",modelValue:e.companyNameInput,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.companyNameInput=t}
2),fieldName:"companyName",label:e.getLabel("companyNameLabel"),isValidationError:!e.companyNameInputFilled,placeholder:e.getLabel("companyNamePlaceholder"),errorMessageLabel:e.getLabel("validationCompanyName")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"]),Ni(l,{modelValue:e.companyDepartmentInput,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.companyDepartmentInput=t}),fieldName:"companyDepartment",label:e.getLabel("companyDepartmentLabel"),isValidationError:!e.companyDepartmentInputFilled,placeholder:e.getLabel("companyDepartmentPlaceholder"),errorMessageLabel:e.getLabel("validationCompanyDepartment")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"])]),Mi("div",qC,[Ni(l,{isRequired:"",modelValue:e.companyCvrInput,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.companyCvrInput=t}),fieldName:"companyCvr",label:e.getLabel("companyCvrLabel"),isValidationError:!e.companyCvrInputFilled,placeholder:e.getLabel("companyCvrPlaceholder"),errorMessageLabel:e.getLabel("validationRequired")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"])])])):zi("v-if",!0),e.isPublicInstitution?(Ai(),Si("div",GC,[Mi("div",KC,[Ni(l,{isRequired:"",modelValue:e.publicInstitutionNameInput,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.publicInstitutionNameInput=t}),fieldName:"publicInstitutionName",label:e.getLabel("publicInstitutionNameLabel"),isValidationError:!e.publicInstitutionNameInputFilled&&!e.hideAllErrors,placeholder:e.getLabel("publicInstitutionNamePlaceholder"),errorMessageLabel:e.getLabel("validationPublicInstitutionName")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"]),Ni(l,{modelValue:e.publicInstitutionUserId,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.publicInstitutionUserId=t}),fieldName:"publicInstitutionUserId",label:e.getLabel("publicInstitutionUserIdLabel"),isValidationError:!e.publicInstitutionUserIdFilled&&!e.hideAllErrors,placeholder:e.getLabel("publicInstitutionUserIdPlaceholder"),errorMessageLabel:e.getLabel("validationPublicInstitutionUserId")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"])]),Mi("div",ZC,[Ni(l,{modelValue:e.publicInstitutionDepartmentOrContact,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.publicInstitutionDepartmentOrContact=t}),fieldName:"publicInstitutionDepartmentOrContact",label:e.getLabel("publicInstitutionDepartmentOrContactLabel"),isValidationError:!e.publicInstitutionDepartmentOrContactFilled&&!e.hideAllErrors,placeholder:e.getLabel("publicInstitutionDepartmentOrContactPlaceholder"),errorMessageLabel:e.getLabel("validationPublicInstitutionDepartmentOrContact")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"]),Ni(l,{isRequired:"",modelValue:e.publicInstitutionEan,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.publicInstitutionEan=t}),fieldName:"publicInstitutionEan",label:e.getLabel("publicInstitutionEanLabel"),isValidationError:!e.publicInstitutionEanFilled&&!e.hideAllErrors,placeholder:e.getLabel("publicInstitutionEanPlaceholder"),errorMessageLabel:e.getLabel("validationRequired")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"])])])):zi("v-if",!0),Mi("div",WC,[Ni(l,{isRequired:"",modelValue:e.firstNameInput,"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.firstNameInput=t}),fieldName:"firstName",autocomplete:"given-name",label:e.isCompany?e.getLabel("companyContactFirstNameLabel"):e.getLabel("firstNameLabel"),placeholder:e.isCompany?e.getLabel("companyContactFirstNamePlaceholder"):e.getLabel("firstNamePlaceholder"),isValidationError:!e.firstNameInputFilled&&!e.hideAllErrors,errorMessageLabel:e.isCompany?e.getLabel("validationCompanyContactFirstName"):e.getLabel("validationFirstName")},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel"]),Ni(l,{isRequired:"",modelValue:e.lastNameInput,"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.lastNameInput=t}),fieldName:"lastName",autocomplete:"family-name",label:e.isCompany?e.getLabel("companyContactLastNameLabel"):e.getLabel("lastNameLabel"),placeholder:e.isCompany?e.getLabel("companyContactLastNamePlaceholder"):e.getLabel("lastNamePlaceholder"),isValidationError:!e.lastNameInputFilled&&!e.hideAllErrors,errorMessageLabel:e.isCompany?e.getLabel("validationCompanyContactLastName"):e.getLabel("validationLastName")},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel"])]),Mi("div",$C,[Ni(l,{isRequired:"",modelValue:e.emailInput,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.emailInput=t}),fieldName:"email",autocomplete:"email",label:e.getLabel("emailLabel"),placeholder:e.getLabel("emailPlaceholder"),isValidationError:!e.emailInputFilled&&!e.hideAllErrors,errorMessageLabel:e.getLabel("validationEmail")},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel"]),Ni(l,{modelValue:e.phoneInput,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.phoneInput=t}),fieldName:"phone",autcomplete:"tel",isRequired:"",label:e.getLabel("phoneLabel"),placeholder:e.getLabel("phonePlaceholder"),isValidationError:!e.phoneInputFilled&&!e.hideAllErrors,errorMessageLabel:e.getLabel("validationPhone")},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel"])]),Mi("div",YC,[Ni(s,{"address-line-value":e.addressLineInput,"onUpdate:addressLineValue":t[14]||(t[14]=function(t){return e.addressLineInput=t}),"zip-code-value":e.postalCodeInput,"onUpdate:zipCodeValue":t[15]||(t[15]=function(t){return e.postalCodeInput=t}),"city-value":e.cityInput,"onUpdate:cityValue":t[16]||(t[16]=function(t){return e.cityInput=t}
2),addressLabel:e.getLabel("addressLineLabel"),zipCodeLabel:e.getLabel("postalCodeLabel"),addressPlaceholder:e.getLabel("addressLinePlaceholder"),zipCodePlaceholder:e.getLabel("postalCodePlaceholder"),cityPlaceholder:e.getLabel("cityPlaceholder"),cityLabel:e.getLabel("cityLabel"),isValidationError:!e.addressLineInputFilled&&!e.hideAllErrors,errorMessageLabel:e.getLabel("validationAddressLine")},null,8,["address-line-value","zip-code-value","city-value","addressLabel","zipCodeLabel","addressPlaceholder","zipCodePlaceholder","cityPlaceholder","cityLabel","isValidationError","errorMessageLabel"])])]),Mi("div",JC,[t[18]||(t[18]=Mi("div",{class:"kb-checkout-step-one__navigation-breaker"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 1","aria-hidden":"true",role:"presentation"},[Mi("path",{fill:"#DFDFDB",d:"M0 0h704v1H0z"})])],-1)),Mi("div",XC,[Mi("a",{href:e.getLabel("cancelButtonUrl"),class:"kb-button"},fe(e.getLabel("cancelButtonText")),9,QC),Mi("button",{onClick:t[17]||(t[17]=function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)}),class:"kb-checkout-step-one__bottom-button submit kb-button kb-button--full-color-spot"},fe(e.getLabel("submitButtonTextStep1")),1)])]),e.isSubmitting?(Ai(),Si("div",eE,(i=t[19]||(t[19]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return MC(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return MC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MC(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)}]]);function iS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var lS={class:"kb-checkout-step-two__delivery-card-wrapper"},sS={class:"kb-checkout-step-one__navigation"},cS={class:"kb-checkout-step-one__navigation-button-wrapper"},uS=["disabled"],dS={key:2,class:"kb-spinner-overlay"};function pS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var fS={class:"kb-delivery-card__content-top"},mS={class:"kb-delivery-card__icon-title-wrapper"},gS=["innerHTML"],hS={class:"kb-delivery-card__title"},bS={key:0,class:"kb-delivery-card__price"},vS={key:0,class:"kb-delivery-card__address"},yS={key:1,class:"kb-delivery-card__text"},_S={key:0,width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const AS={name:"DeliveryCard",props:{type:{type:String,required:!0},svgIcon:{type:String,required:!0},isShippingFree:{type:Boolean,required:!1}},setup:function(e){var t=Af(),n=bl(function(){return t.state.checkout.stepTwo.activeDeliveryType}),o=bl(function(){return!!n.value&&e.type===n.value}),r=bl(function(){return t.state.basket.totals}),a=bl(function(){var e,t;return null!==(e=null===(t=r.value)||void 0===t?void 0:t.isShippingFree)&&void 0!==e&&e}),i=bl(function(){return t.state.checkout.purchaseData.invoice.invoiceAddress}),l=function(){switch(e.type){case"home":return"deliveryCardHome";case"pickUp":return"deliveryCardPickUp";default:console.error("search boolean or type missing in order to determine labelCollection")}},s=function(e){t.commit("checkout/set_active_delivery_type",e),n!=e&&t.dispatch("basket/updateActiveDeliveryType",e)},c=bl(function(){return t.state.checkout.stepTwo.showDifferentAddress}),u=function(e){t.commit("checkout/set_show_different_address",e)},d=function(e){t.commit("checkout/set_show_pick_up_addresses",e)};return{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:l(),labelKey:e})},showDifferentAddress:c,handleShowDifferentAddress:function(){!1===c.value?(u(!0),s(e.type),d(!1)):(t.commit("checkout/set_delivery_data_validation_success",!0),u(!1),d(!1),s(e.type))},handleChosenDelivery:function(){if(s(e.type),t.commit("checkout/set_active_delivery_address",t.state.checkout.purchaseData.invoice.invoiceAddress),!0===o.value)switch(e.type){case"home":d(!1),u(!1),t.commit("checkout/set_delivery_data_validation_success",!0);break;case"pickUp":u(!1),d(!0),t.commit("checkout/set_delivery_data_validation_success",!1);break;default:u(!1),d(!1),t.commit("checkout/set_delivery_data_validation_success",!0)}},isChosenDelivery:o,invoiceAddress:i,asideResults:r,isShippingFree:a}}},kS=AS,xS=(0,Hb.A)(kS,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-delivery-card",{"kb-delivery-card--chosen":e.isChosenDelivery}])},[Mi("div",fS,[Mi("div",mS,[Mi("div",{class:"kb-delivery-card__icon-circle",innerHTML:e.svgIcon},null,8,gS),Mi("p",hS,fe(e.getLabel("title")),1)]),e.isShippingFree?zi("v-if",!0):(Ai(),Si("p",bS,fe(e.getLabel("price")),1))]),Mi("div",{class:Y(["kb-delivery-card__content-bottom",{"kb-delivery-card__content-bottom--faded":e.showDifferentAddress}])},["home"===e.type?(Ai(),Si("div",vS,[Mi("p",null,fe(e.invoiceAddress.addressLine),1),Mi("p",null,fe(e.invoiceAddress.postalCode),1),Mi("p",null,fe(e.invoiceAddress.city),1),Mi("button",{onClick:t[0]||(t[0]=function(){return e.handleShowDifferentAddress&&e.handleShowDifferentAddress.apply(e,arguments)}),class:"kb-delivery-card__link"},fe(e.getLabel("differentAddressText")),1)])):zi("v-if",!0),"pickUp"===e.type?(Ai(),Si("p",yS,fe(e.getLabel("text")),1)):zi("v-if",!0),Mi("button",{onClick:t[1]||(t[1]=function(){return e.handleChosenDelivery&&e.handleChosenDelivery.apply(e,arguments)}),class:"kb-button kb-button--spot-border-color"},[Fi(fe(e.isChosenDelivery?e.getLabel("buttonTitlePicked"):e.getLabel("buttonTitlePick"))+" ",1),e.isChosenDelivery?(Ai(),Si("svg",_S,(i=t[2]||(t[2]=[Mi("path",{d:"M6 13.304 10.5 18 18 6",stroke:"#3C3C3C","stroke-linejoin":"round"},null,-1)]),function(e){if(Array.isArray(e))return pS(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return pS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pS(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])],2)],2);var i}]]);var wS={class:"kb-forms kb-delivery-address"},CS={class:"kb-delivery-address__title"},ES={class:"kb-checkout-step-one__form-wrapper"},SS={class:"kb-checkout-step-one__form-wrapper"},TS={class:"kb-checkout-step-one__form-wrapper"};const IS={name:"DeliveryAddress",components:{FormInputTextField:mE,FormAddressField:tS},props:{showDifferentAddress:{type:Boolean,required:!1,default:!1},isStepSubmitting:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=Af();Dr(function(){t.commit("checkout/set_delivery_data_validation_success",A.value)}),Nr(function(){t.commit("checkout/set_delivery_data_validation_success",A.value)});var n=Kt(e.showDifferentAddress),o=bl(function(){return t.state.checkout.checkoutSteps}),r=bl(function(){return o.value.find(function(e){return 2===e.stepNumber})}),a=bl(function(){return r.value.beenFilled}),i=bl(function(){return!a.value&&!e.isStepSubmitting}),l=Kt(t.state.checkout.stepTwo.differentAddressData.deliveryName),s=bl(function(){return!l.value||iE(l.value)}),c=Kt(t.state.checkout.stepTwo.differentAddressData.deliveryDepartment),u=bl(function(){return!(!i.value||c.value)||!c.value||iE(c.value)}),d=Kt(t.state.checkout.stepTwo.differentAddressData.contactFirstName),p=bl(function(){return!(!i.value||d.value)||!!d.value&&rE(d.value)}),f=Kt(t.state.checkout.stepTwo.differentAddressData.contactLastName),m=bl(function(){return!(!i.value||f.value)||rE(f.value)}),g=Kt(t.state.checkout.stepTwo.differentAddressData.addressLine),h=bl(function(){return!!i.value||g.value.length>2&&aE(g.value)&&v.value&&_.value}),b=Kt(t.state.checkout.stepTwo.differentAddressData.postalCode),v=bl(function(){return!!i.value||4===b.value.length&&aE(g.value)}),y=Kt(t.state.checkout.stepTwo.differentAddressData.city),_=bl(function(){return!!i.value||y.value.length>2&&aE(g.value)}),A=bl(function(){var e=h.value&&v.value&&_.value;return p.value&&m.value&&e&&!!g.value&&!!d.value&&!!f.value});return{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"deliveryAddress",labelKey:e})},handleSendToStore:function(){if(!A.value)return!1;var e={addressLine:g.value,postalCode:b.value,city:y.value,contactFirstName:d.value,contactLastName:f.value,deliveryName:l.value,deliveryDepartment:c.value};t.commit("checkout/set_delivery_data_validation_success",A.value),t.commit("checkout/set_different_address_data",e),t.commit("checkout/update_checkout_step_been_filled",2),console.log("differentAddressData",e)},getLabelCheckout:function(e){return t.getters["labels/getLabel"]({labelCollection:"checkout",labelKey:e})},showDifferentAddress:n,deliveryNameInput:l,deliveryDepartmentInput:c,firstNameInput:d,lastNameInput:f,addressLineInput:g,postalCodeInput:b,cityInput:y,deliveryNameInputFilled:s,deliveryDepartmentInputFilled:u,firstNameInputFilled:p,lastNameInputFilled:m,addressLineInputFilled:h,postalCodeInputFilled:v,cityInputFilled:_}}},BS=IS,OS=(0,Hb.A)(BS,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("FormAddressField");return Ai(),Si("article",wS,[Mi("h3",CS,fe(e.getLabel("title")),1),zi(" reusing relevant styles from checkout step one "),Mi("div",ES,[Ni(i,{modelValue:e.deliveryNameInput,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.deliveryNameInput=t}),fieldName:"deliveryName",autocomplete:"organization",label:e.getLabel("deliveryNameLabel"),placeholder:e.getLabel("deliveryNamePlaceholder"),isValidationError:!e.deliveryNameInputFilled,onChangeCallback:e.handleSendToStore,errorMessageLabel:e.getLabelCheckout("validationGeneral")},null,8,["modelValue","label","placeholder","isValidationError","onChangeCallback","errorMessageLabel"]),Ni(i,{modelValue:e.deliveryDepartmentInput,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.deliveryDepartmentInput=t}),fieldName:"deliveryDepartment",autocomplete:"off",label:e.getLabel("deliveryDepartmentLabel"),placeholder:e.getLabel("deliveryDepartmentPlaceholder"),isValidationError:!e.deliveryDepartmentInputFilled,onChangeCallback:e.handleSendToStore,errorMessageLabel:e.getLabelCheckout("validationGeneral")},null,8,["modelValue","label","placeholder","isValidationError","onChangeCallback","errorMessageLabel"])]),Mi("div",SS,[Ni(i,{isRequired:"",modelValue:e.firstNameInput,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.firstNameInput=t}),fieldName:"firstName",autocomplete:"given-name",label:e.getLabel("firstNameLabel"),placeholder:e.getLabel("firstNamePlaceholder"),isValidationError:!e.firstNameInputFilled,errorMessageLabel:e.getLabel("validationFirstName"),onChangeCallback:e.handleSendToStore},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(i,{isRequired:"",modelValue:e.lastNameInput,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.lastNameInput=t}),fieldName:"lastName",autocomplete:"family-name",label:e.getLabel("lastNameLabel"),placeholder:e.getLabel("lastNamePlaceholder"),isValidationError:!e.lastNameInputFilled,errorMessageLabel:e.getLabel("validationLastName"),onChangeCallback:e.handleSendToStore},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel","onChangeCallback"])]),Mi("div",TS,[Ni(l,{"address-line-value":e.addressLineInput,"onUpdate:addressLineValue":t[4]||(t[4]=function(t){return e.addressLineInput=t}),"zip-code-value":e.postalCodeInput,"onUpdate:zipCodeValue":t[5]||(t[5]=function(t){return e.postalCodeInput=t}),"city-value":e.cityInput,"onUpdate:cityValue":t[6]||(t[6]=function(t){return e.cityInput=t}
2),addressLabel:e.getLabel("addressLineLabel"),zipCodeLabel:e.getLabel("postalCodeLabel"),addressPlaceholder:e.getLabel("addressLinePlaceholder"),zipCodePlaceholder:e.getLabel("postalCodePlaceholder"),cityPlaceholder:e.getLabel("cityPlaceholder"),cityLabel:e.getLabel("cityLabel"),isValidationError:!e.addressLineInputFilled&&!e.postalCodeInputFilled&&!e.cityInputFilled,errorMessageLabel:e.getLabel("validationAddressLine"),onchangeCallback:e.handleSendToStore},null,8,["address-line-value","zip-code-value","city-value","addressLabel","zipCodeLabel","addressPlaceholder","zipCodePlaceholder","cityPlaceholder","cityLabel","isValidationError","errorMessageLabel","onchangeCallback"])])])}]]);function LS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var DS={class:"kb-pick-up-address"},MS={class:"kb-pick-up-address__title"},NS={class:"kb-pick-up-address__search-input"},PS={class:"kb-pick-up-address__list"},RS=["id","value"],FS=["for"],VS={class:"kb-pick-up-address__list-label-title"},zS={class:"kb-pick-up-address__list-label-text"},US={class:"kb-pick-up-address__list-label-text"},jS={key:0,"aria-live":"assertive",class:"kb-optimizely-forms"},HS={class:"kb-forms Form__Element__ValidationError",role:"alert"};const qS={name:"PickUpAddress",components:{FormAddressField:tS},props:{addressResults:{type:Array,required:!1},displayInputErrors:{type:Boolean,required:!1,default:!1}},setup:function(){var e=Af(),t=bl(function(){return e.state.checkout.stepTwo.pickUpAddressData});Dr(function(){e.dispatch("checkout/fetchServicePoints");var n=Qf(t.value);e.commit("checkout/set_delivery_data_validation_success",n)});var n=Kt(!0),o=bl(function(){return e.state.checkout.stepTwo.pickUpAddresses}),r=Kt(""),a=Kt(""),i=bl(function(){return a.value.length>2&&aE(a.value)}),l=Kt(""),s=bl(function(){return!a.value||4===l.value.length&&aE(a.value)}),c=Kt(""),u=bl(function(){return!a.value||c.value.length>2&&aE(a.value)}),d=function(){if(n.value=!1,!i.value)return!1;r.value={},e.commit("checkout/clear_pick_up_address_data"),e.commit("checkout/set_active_delivery_address",{addressLine:a.value,postalCode:l.value}),e.dispatch("checkout/fetchServicePoints")};return{onSubmit:d,setPickUpAddressInStore:function(){e.commit("checkout/set_delivery_data_validation_success",!!r.value),e.commit("checkout/set_pick_up_address_data",{addressLine:r.value.addressLine,city:r.value.city,postalCode:r.value.zipCode,id:r.value.id,name:r.value.name,latitude:r.value.latitude,longitude:r.value.longitude})},handleAddressSelected:function(e){a.value=e.addressLine,l.value=e.zipCode,c.value=e.city,d()},pickUpAddressData:t,addressLineInputFilled:i,postalCodeInputFilled:s,cityInputFilled:u,addressLineInput:a,postalCodeInput:l,cityInput:c,addressRadioInput:r,addressResults:o,getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"pickUpAddress",labelKey:t})},getFormAddressFieldLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"checkout",labelKey:t})}}}},GS=qS,KS=(0,Hb.A)(GS,[["render",function(e,t,n,o,r,a){var i,l=qr("FormAddressField");return Ai(),Si("article",DS,[Mi("h3",MS,fe(e.getLabel("title")),1),Mi("div",NS,[Ni(l,{"address-line-value":e.addressLineInput,"onUpdate:addressLineValue":t[0]||(t[0]=function(t){return e.addressLineInput=t}),"zip-code-value":e.postalCodeInput,"onUpdate:zipCodeValue":t[1]||(t[1]=function(t){return e.postalCodeInput=t}),"city-value":e.cityInput,"onUpdate:cityValue":t[2]||(t[2]=function(t){return e.cityInput=t}),isValidationError:!e.addressLineInputFilled&&!e.postalCodeInputFilled&&!e.cityInputFilled,errorMessageLabel:e.getLabel("searchValidation"),addressPlaceholder:e.getLabel("searchPlaceholder"),"onUpdate:addressSelected":e.handleAddressSelected},null,8,["address-line-value","zip-code-value","city-value","isValidationError","errorMessageLabel","addressPlaceholder","onUpdate:addressSelected"]),Mi("button",{onClick:t[3]||(t[3]=function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)}),class:"kb-pick-up-address__search-input-icon",title:"Søg"},(i=t[6]||(t[6]=[Mi("svg",{viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("circle",{cx:"10",cy:"10",r:"9.5",stroke:"#ffffff"}),Mi("path",{d:"M16 10a6 6 0 0 0-6-6M24.768 25.89l-6.718-6.718 2.122-2.122 7.778 7.778-1.82 1.82",stroke:"#ffffff"})],-1)]),function(e){if(Array.isArray(e))return LS(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return LS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LS(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))]),Mi("ul",PS,[(Ai(!0),Si(gi,null,Yr(e.addressResults,function(n,o){return Ai(),Si("li",{key:o,class:"kb-pick-up-address__list-item"},[io(Mi("input",{onChange:t[4]||(t[4]=function(){return e.setPickU
2pAddressInStore&&e.setPickUpAddressInStore.apply(e,arguments)}),id:"".concat(n.name).concat(n.addressLine).concat(n.zipCode).concat(n.city),type:"radio",name:"pickup-address",value:n,autocomplete:"off","onUpdate:modelValue":t[5]||(t[5]=function(t){return e.addressRadioInput=t})},null,40,RS),[[Js,e.addressRadioInput]]),Mi("label",{class:"kb-pick-up-address__list-label",for:n.name},[Mi("p",VS,fe(n.name),1),Mi("p",zS,fe(n.addressLine),1),Mi("p",US,fe("".concat(n.zipCode," ").concat(n.city)),1)],8,FS)])}),128))]),e.displayInputErrors&&!e.pickUpAddressData.addressLine?(Ai(),Si("div",jS,[Mi("p",HS,fe(e.getLabel("pickUpAddressErrorLabel")),1)])):zi("v-if",!0)])}]]),ZS={name:"CheckoutStepTwo",components:{DeliveryCard:xS,DeliveryAddress:OS,PickUpAddress:KS},props:{onSubmitCallback:{type:Function,required:!1}},setup:function(e){var t=Af();Dr(function(){t.dispatch("basket/fetchBasket"),nS()});var n=Kt(!1),o=bl(function(){return t.state.checkout.isSubmitting}),r=bl(function(){return t.state.checkout.checkoutSteps}),a=bl(function(){return r.value.find(function(e){return 2===e.stepNumber})}),i=Kt(!bl(function(){return a.value.beenFilled}).value),l=bl(function(){return!i.value}),s=bl(function(){return t.state.checkout.stepTwo.showDifferentAddress}),c=bl(function(){return t.state.checkout.stepTwo.showPickUpAddresses}),u=bl(function(){return t.state.checkout.stepTwo.deliveryDataValidationSuccess}),d=bl(function(){return t.state.checkout.stepTwo.activeDeliveryAddress}),p=bl(function(){return t.state.checkout.stepTwo.differentAddressData}),f=bl(function(){return t.state.checkout.stepTwo.pickUpAddressData}),m=bl(function(){return c.value?f.value:s.value?p.value:d.value});return{onSubmit:function(){i.value=!1,n.value=!0;var o=m.value;if(e.onSubmitCallback)e.onSubmitCallback(u.value?o:null);else{if(!u.value)return!1;t.commit("checkout/set_purchase_data_delivery",o),t.commit("checkout/set_active_delivery_address",o);var r=c.value?"Afhentningssted":"Hjemmelevering";Jm(t.state.basket.basket.map(function(e,t){return Zm(e,t)}),r),t.commit("checkout/update_checkout_step",{nextStepNumber:3})}},isSubmitting:o,isStepSubmitting:l,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"checkout",labelKey:e})},displayInputErrors:n,showDifferentAddress:s,showPickUpAddresses:c,toStepOne:function(){return t.commit("checkout/update_checkout_step",{nextStepNumber:1})}}}},WS=ZS,$S=(0,Hb.A)(WS,[["render",function(e,t,n,o,r,a){var i,l=qr("DeliveryCard"),s=qr("DeliveryAddress"),c=qr("PickUpAddress");return Ai(),Si("article",{class:Y(["kb-checkout-step-two",{"kb-checkout-step-one--submitting":e.isSubmitting}]),"aria-live":"polite"},[Mi("section",lS,[Ni(l,{type:"home",svgIcon:'<svg role="presentation" alt="" width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m19.796 9.07-4.333-3.333V2.03H12.56v1.482L10 1.535.205 9.07l1.712 2.223 1.34-1.025v7.209a1.028 1.028 0 0 0 1.025 1.025h4.137v-8.14H11.8v8.14h3.403v-.697h-2.705v-8.14H7.721v8.14H4.275a.328.328 0 0 1-.321-.324v-7.75L10 5.078l6.077 4.67v8.758h.698v-8.223l1.31 1.01 1.71-2.224Zm-6.54-6.342h1.5v2.474l-1.5-1.162V2.728ZM10 4.186l-7.958 6.128-.858-1.116L10 2.416l4.765 3.665v.024h.028l4.024 3.093-.858 1.116L10 4.186Z" fill="#810010"/></svg>'}),Ni(l,{type:"pickUp",svgIcon:'<svg role="presentation" alt="" width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.688 7.5a5.313 5.313 0 0 1 10.625 0c0 2.428-1.39 5.126-2.803 7.234l-1.074-.797-.372.501 1.595 1.185.184-.267c1.482-2.155 3.095-5.119 3.095-7.856a5.937 5.937 0 1 0-11.876 0c0 2.599 1.454 5.4 2.865 7.517a31.478 31.478 0 0 0 2.598 3.364 18.856 18.856 0 0 0 .23.253l.013.013.004.004.001.001.227.24.229-.242.005-.005.018-.02a17.008 17.008 0 0 0 .335-.37c.224-.255.54-.625.907-1.083l-.488-.39A29.331 29.331 0 0 1 10 17.973l-.009-.01a30.836 30.836 0 0 1-2.544-3.294c-1.4-2.1-2.76-4.769-2.76-7.17ZM10 18.438l-.227.214.227-.215Z" fill="#810010"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 3.438a4.062 4.062 0 1 0 0 8.124 4.062 4.062 0 0 0 0-8.124ZM6.562 7.5a3.437 3.437 0 1 1 6.875 0 3.437 3.437 0 0 1-6.874 0Z" fill="#810010"/></svg>'})]),e.showDifferentAddress&&!e.showPickUpAddresses?(Ai(),Ti(s,{key:0,isStepSubmitting:e.isStepSubmitting},null,8,["isStepSubmitting"])):zi("v-if",!0),e.showPickUpAddresses?(Ai(),Si(gi,{key:1},[Xr(e.$slots,"pickupAddressMessage"),Ni(c,{displayInputErrors:e.displayInputErrors},null,8,["displayInputErrors"])],64)):zi("v-if",!0),zi(" same styles as step one so css class reused "),Mi("div",sS,[t[2]||(t[2]=Mi("div",{class:"kb-checkout-step-one__navigation-breaker"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 1","aria-hidden":"true",role:"presentation"},[Mi("path",{fill:"#DFDFDB",d:"M0 0h704v1H0z"})])],-1)),Mi("div",cS,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.toStepOne&&e.toStepOne.apply(e,arguments)}),class:"kb-button"},fe(e.getLabel("backButtonTextStep2")),1),Mi("button",{onClick:t[1]||(t[1]=function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)}),disabled:e.isSubmitting||e.isStepSubmitting,class:"kb-checkout-step-one__bottom-button submit kb-button kb-button--full-color-spot"},fe(e.getLabel("submitButtonTextStep2")),9,uS)])]),e.isSubmitting?(Ai(),Si("div",dS,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return iS(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return iS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iS(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)}]]);function YS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var JS={class:"kb-checkout-step-three kb-forms"},XS={class:"kb-checkout-step-three__info-wrapper"},QS={class:"kb-checkout-step-three__info-left"},eT={key:0,class:"kb-checkout-step-three__margin-bottom"},tT={key:0,class:"kb-checkout-step-three__text"},nT={key:1,class:"kb-checkout-step-three__text"},oT={key:2,class:"kb-checkout-step-three__text"},rT={key:1,class:"kb-checkout-step-three__margin-bottom"},aT={key:0,class:"kb-checkout-step-three__text"},iT={key:1,class:"kb-checkout-step-three__text"},lT={key:2,class:"kb-checkout-step-three__text"},sT={key:3,class:"kb-checkout-step-three__text"},cT={class:"kb-checkout-step-three__text kb-checkout-step-three__text-navn"},uT={class:"kb-checkout-step-three__text"},dT={class:"kb-checkout-step-three__text"},pT={class:"kb-checkout-step-three__text kb-checkout-step-three__margin-top"},fT={class:"kb-checkout-step-three__text"},mT={key:0,class:"kb-checkout-step-three__info-right"},gT={class:"kb-checkout-step-three__info-title"},hT={key:0,class:"kb-checkout-step-three__margin-bottom"},bT={key:0,class:"kb-checkout-step-three__text"},vT={key:1,class:"kb-checkout-step-three__text"},yT={key:1,class:"kb-checkout-step-three__text kb-checkout-step-three__text-navn"},_T={key:2,class:"kb-checkout-step-three__text kb-checkout-step-three__text-navn"},AT={class:"kb-checkout-step-three__text"},kT={class:"kb-checkout-step-three__text"},xT={key:0,class:"kb-frivillige-checkout-content__message"},wT={class:"kb-checkout-step-three__terms-wrapper-inputs"},CT={for:"terms"},ET={class:"kb-checkout-step-three__link"},ST=["href"],TT={key:0,class:"Form__Element__ValidationError",role:"alert"},IT={class:"kb-checkout-step-three__navigation"},BT={class:"kb-checkout-step-three__navigation-button-wrapper"},OT=["disabled"],LT={key:0,class:"kb-forms Form__Element__ValidationError kb-sign-up-form__validation-error"},DT={key:2,class:"kb-spinner-overlay"};function MT(e){return function(e){if(Array.isArray(e))return NT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return NT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?NT(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var PT={class:"kb-forms kb-webshop-payment-selector Form__Element Form__CustomElement Form__Element__BankAccount ValidationFail"},RT={class:"kb-webshop-payment-selector__header"},FT={class:"kb-webshop-payment-selector__payment-section"},VT={class:"kb-webshop-payment-selector__icon-wrapper kb-webshop-payment-selector__icon-wrapper--credit-card"},zT=["aria-label"],UT=["aria-label"],jT=["aria-label"],HT=["aria-label"],qT={key:0,class:"kb-forms Form__Element__ValidationError"};const GT={name:"WebshopPaymentSelector",components:{FormInputTextField:mE},props:{},setup:function(){var e=Af(),t=Kt(!0),n=bl(function(){return e.state.checkout.purchaseData.invoice.userInformation.customerType}),o=bl(function(){return e.state.checkout.stepThree.paymentData.paymentMethod}),r=Kt(o.value?o.value:1),a=bl(function(){return!t.value&&!!r.value>0}),i=function(){a.value&&e.commit("checkout/set_active_payment_method",r.value),t.value=!1;var n=a.value;if(e.commit("checkout/set_payment_data_validation_success",a.value),n){var o={paymentMethod:r.value};e.commit("checkout/set_payment_data",o)}};return Dr(function(){i()}),{paymentMethod:r,paymentMethodFilled:a,paymentOptions:{private:["mobilepay","creditcard"],company:["mobilepay","creditcard"],publicInstitution:["mobilepay","creditcard","betalingsservice"],frivillige:["betalingsservice"]},paymentType:n,unSubmitted:t,setPaymentTypeOnEnter:function(e){var t=e.target.getAttribute("for"),n=document.getElementById(t);r.value=+n.value,i()},commitPaymentInputToStore:i,determineActivePaymentMethod:function(e){return o.value?e==o.value:e==r.value},getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"webshopPaymentSelector",labelKey:t})}}}},KT=GT,ZT=(0,Hb.A)(KT,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",PT,[Mi("h4",RT,fe(e.getLabel("title")),1),Mi("section",FT,[(Ai(!0),Si(gi,null,Yr(e.paymentOptions[e.paymentType],function(n,o){return Ai(),Si(gi,{key:o},["mobilepay"===n?(Ai(),Si("div",{key:0,class:Y(["kb-webshop-payment-selector__payment-option",{"kb-webshop-payment-selector__payment-option--active":e.determineActivePaymentMethod(1)}])},[io(Mi("input",{id:"first-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.paymentMethod=t}),value:"1",onChange:t[1]||(t[1]=function(){return e.commitPaymentInputToStore&&e.commitPaymentInputToStore.apply(e,arguments)})},null,544),[[Js,e.paymentMethod]]),Mi("label",{role:"button",tabindex:"0",onKeydown:t[2]||(t[2]=cc(function(){return e.setPaymentTypeOnEnter&&e.setPaymentTypeOnEnter.apply(e,arguments)},["enter"])),for:"first-payment-method"},[Fi(fe(e.getLabel("paymentMethodMobilePay"))+" ",1),t[9]||(t[9]=Mi("div",{class:"kb-webshop-payment-selector__icon-wrapper"},[Mi("svg",{width:"94",height:"30",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",alt:""},[Mi("g",null,[Mi("path",{d:"M11.81 29.99a2.537 2.537 0 0 1-2.344-1.564L.715 7.3a2.533 2.533 0 0 1 1.37-3.31L11.252.193a2.533 2.533 0 0 1 3.31 1.371l8.75 21.126a2.533 2.533 0 0 1-1.37 3.31l-9.166 3.797a2.52 2.52 0 0 1-.965.193Zm.411-28.626c-.153 0-.306.031-.447.09L2.608 5.25a1.17 1.17 0 0 0-.633 1.528l8.75 21.127c.249.596.932.88 1.529.633l9.165-3.799a1.169 1.169 0 0 0 .633-1.528l-8.75-21.124a1.171 1.171 0 0 0-1.08-.723Z",fill:"#5A78FF"}),Mi("path",{style:{"mix-blend-mode":"multiply"},opacity:".7",d:"m15.139 2.958-1.26.522 3.465 8.365 1.26-.522-3.465-8.365Z",fill:"url(#b)"}),Mi("path",{style:{"mix-blend-mode":"multiply"},opacity:".7",d:"m21.47 21.808 1.26-.522-3.922-9.468-1.26.522 3.922 9.468Z",fill:"url(#c)"}),Mi("path",{d:"M19.88 15.532c-2.622 1.087-4.81 2.585-6.244 4.392L9.941 11a15.602 15.602 0 0 1 6.243-4.391c2.622-1.087 5.27-1.613 7.52-1.307l3.696 8.923a15.594 15.594 0 0 0-7.52 1.307Z",fill:"#5A78FF"}),Mi("g",{style:{"mix-blend-mode":"multiply"},opacity:".4"},[Mi("path",{opacity:".9",d:"M19.88 15.532c-2.622 1.087-4.81 2.585-6.244 4.392L9.941 11a15.603 15.603 0 0 1 6.243-4.391c2.622-1.087 5.27-1.613 7.52-1.307l3.696 8.923a15.594 15.594 0 0 0-7.52 1.307Z",fill:"url(#d)"}),Mi("path",{opacity:".7",d:"M19.88 15.532c-2.622 1.087-4.81 2.585-6.244 4.392L9.941 11a15.603 15.603 0 0 1 6.243-4.391c2.622-1.087 5.27-1.613 7.52-1.307l3.696 8.923a15.594 15.594 0 0 0-7.52 1.307Z",fill:"url(#e)"})]),Mi("path",{d:"M21.083 18.253c-2.838 0-5.435.548-7.448 1.667v-9.023a15.602 15.602 0 0 1 7.448-1.667c2.837 0 5.485.526 7.447 1.67v9.022a15.595 15.595 0 0 0-7.447-1.67Zm14.494.008 2.296-7.257a.24.24 0 0 1 .213-.182h1.152c.104.014.19.084.226.182l1.787 4.579c.035.09.126.1.157 0l1.774-4.579a.283.283 0 0 1 .226-.182h1.152a.24.24 0 0 1 .213.182l2.27 7.257a.174.174 0 0 1-.17.248h-1.37a.2.2 0 0 1-.204-.157l-1.456-4.713c-.022-.091-.127-.091-.157 0l-1.74 4.678a.256.256 0 0 1-.247.192h-.804c-.126 0-.192-.07-.24-.192l-1.773-4.678c-.035-.091-.126-.091-.148 0l-1.491 4.713a.204.204 0 0 1-.213.157h-1.305a.17.17 0 0 1-.148-.248Zm11.9-2.609a3.043 3.043 0 1 1 3.044 2.983 2.944 2.944 0 0 1-3.044-2.983Zm4.522 0a1.496 1.496 0 1 0-1.478 1.596 1.535 1.535 0 0 0 1.47-1.596h.008Zm4.244 2.387c-.113-.091-.213-.056-.213.1v.148c0 .114-.09.208-.205.213h-1.06a.222.222 0 0 1-.214-.213V11.03a.222.222 0 0 1 .213-.213h1.118a.213.213 0 0 1 .204.213v2.07c0 .148.1.191.26.078.429-.32.949-.494 1.484-.495 1.547 0 2.734 1.304 2.734 2.982a2.852 2.852 0 0 1-2.782 2.983 2.313 2.313 0 0 1-1.54-.609Zm2.782-2.374a1.496 1.496 0 1 0-2.982 0 1.513 1.513 0 0 0 1.482 1.57 1.535 1.535 0 0 0 1.5-1.583v.013Zm2.474-4.317a.87.87 0 1 1 1.74 0 .87.87 0 0 1-1.74 0Zm.078 6.956v-5.26c0-.115.09-.209.205-.214h1.117a.222.222 0 0 1 .23.213v5.244a.222.222 0 0 1-.212.213h-1.135a.213.213 0 0 1-.205-.213v.017Zm2.796-1.721V11.03c0-.114.09-.208.204-.213h1.118a.222.222 0 0 1 .213.213v5.587c0 .361.156.6.552.6a.213.213 0 0 1 .213.213v.927a.213.213 0 0 1-.213.204c-1.487 0-2.087-.487-2.087-1.978Zm2.717-.896a2.94 2.94 0 0 1 5.879.022c0 .204-.057.374-.261.374H68.82c-.1 0-.135.056-.126.147.096.681.705 1.17 1.391 1.118.413.006.807-.173 1.074-.487a.435.435 0 0 1 .36-.183h1.04c.183 0 .26.126.191.305a2.978 2.978 0 0 1-5.652-1.305l-.009.009Zm4.126-.522c.079 0 .114-.035.1-.126a1.304 1.304 0 0 0-1.304-1.06 1.34 1.34 0 0 0-1.304 1.03c-.022.078 0 .156.091.156h2.417Zm2.692 3.122V11.03c0-.114.09-.208.204-.213h3.561c1.626 0 2.735.948 2.735 2.544 0 1.595-1.257 2.578-2.813 2.578h-1.887a.187.187 0 0 0-.204.213v2.135a.222.222 0 0 1-.214.213h-1.174a.213.213 0 0 1-.208-.213Zm3.687-3.66a1.226 1.226 0 0 0 1.187-1.257 1.16 1.16 0 0 0-1.192-1.196h-1.9c-.134 0-.19.07-.19.204v2.057c0 .135.056.204.19.204l1.905-.013Zm3.36 1.025a2.874 2.874 0 0 1 2.805-2.982c.555.003 1.09.208 1.504.578.1.091.213.078.213-.057v-.148c0-.112.092-.204.205-.204h1.06a.222.222 0 0 1 .214.213v3.73c0 .283.1.41.295.435a.196.196 0 0 1 .192.183v.983a.191.191 0 0 1-.192.19c-.748 0-1.187-.212-1.434-.643-.07-.113-.148-.134-.261-.021a2.496 2.496 0 0 1-1.822.756 2.865 2.865 0 0 1-2.778-3.013Zm4.522 0a1.491 1.491 0 1 0-2.974 0 1.491 1.491 0 1 0 2.974 0Zm2.492 4.84v-.927a.213.213 0 0 1 .213-.204 1.587 1.587 0 0 0 1.626-1.087.626.626 0 0 0-.044-.435l-2.078-4.704a.205.205 0 0 1 .183-.305h1.117c.113 0 .183.092.226.205l1.304 3.009c.092.239.24.226.34 0l1.243-3.018c.044-.113.1-.182.213-.182h1.074a.196.196 0 0 1 .191.269l-2.139 5.06c-.778 1.844-1.604 2.531-3.256 2.531a.222.222 0 0 1-.213-.213Z",fill:"#5A78FF"})]),Mi("defs",null,[Mi("linearGradient",{id:"b",x1:"17.126",y1:"9.583",x2:"16.561",y2:"2.983",gradientUnits:"userSpaceOnUse"},[Mi("stop",{"stop-color":"#504678"}),Mi("stop",{offset:".302","stop-color":"#504678","stop-opacity":".616"}),Mi("stop",{offset:".608","stop-color":"#504678","stop-opacity":".283"}),Mi("stop",{offset:".852","stop-color":"
2#504678","stop-opacity":".076"}),Mi("stop",{offset:"1","stop-color":"#504678","stop-opacity":"0"})]),Mi("linearGradient",{id:"c",x1:"19.136",y1:"14.345",x2:"19.49",y2:"21.74",gradientUnits:"userSpaceOnUse"},[Mi("stop",{"stop-color":"#504678"}),Mi("stop",{offset:".302","stop-color":"#504678","stop-opacity":".616"}),Mi("stop",{offset:".608","stop-color":"#504678","stop-opacity":".283"}),Mi("stop",{offset:".852","stop-color":"#504678","stop-opacity":".076"}),Mi("stop",{offset:"1","stop-color":"#504678","stop-opacity":"0"})]),Mi("linearGradient",{id:"d",x1:"12.334",y1:"14.973",x2:"19.257",y2:"10.253",gradientUnits:"userSpaceOnUse"},[Mi("stop",{"stop-color":"#504678"}),Mi("stop",{offset:".179","stop-color":"#504678","stop-opacity":".872"}),Mi("stop",{offset:".526","stop-color":"#504678","stop-opacity":".536"}),Mi("stop",{offset:"1","stop-color":"#504678","stop-opacity":"0"})]),Mi("linearGradient",{id:"e",x1:"18.273",y1:"10.359",x2:"17.966",y2:"7.903",gradientUnits:"userSpaceOnUse"},[Mi("stop",{"stop-color":"#504678"}),Mi("stop",{offset:".643","stop-color":"#504678","stop-opacity":".332"}),Mi("stop",{offset:"1","stop-color":"#504678","stop-opacity":"0"})]),Mi("clipPath",{id:"a"},[Mi("path",{fill:"#fff",transform:"translate(.521)",d:"M0 0h93.478v30H0z"})])])])],-1))],32)],2)):zi("v-if",!0),"creditcard"===n?(Ai(),Si("div",{key:1,class:Y(["kb-webshop-payment-selector__payment-option",{"kb-webshop-payment-selector__payment-option--active":e.determineActivePaymentMethod(2)}])},[io(Mi("input",{id:"second-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.paymentMethod=t}),value:"2",onChange:t[4]||(t[4]=function(){return e.commitPaymentInputToStore&&e.commitPaymentInputToStore.apply(e,arguments)})},null,544),[[Js,e.paymentMethod]]),Mi("label",{role:"button",tabindex:"0",onKeydown:t[5]||(t[5]=cc(function(){return e.setPaymentTypeOnEnter&&e.setPaymentTypeOnEnter.apply(e,arguments)},["enter"])),for:"second-payment-method"},[Fi(fe(e.getLabel("paymentMethodCreditCard"))+" ",1),Mi("div",VT,[(Ai(),Si("svg",{"aria-label":e.getLabel("mobilePayIconLabel"),preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",alt:""},MT(t[10]||(t[10]=[Vi('<rect x=".5" y=".5" width="59" height="39" rx="3.5" fill="#fff"></rect><rect x=".5" y=".5" width="59" height="39" rx="3.5" stroke="#E7E7E4"></rect><path d="M27.41 33a2.115 2.115 0 0 1-1.954-1.305l-7.295-17.61a2.112 2.112 0 0 1 1.143-2.76l7.64-3.164a2.111 2.111 0 0 1 2.76 1.143l7.295 17.61a2.112 2.112 0 0 1-1.143 2.76l-7.64 3.165c-.256.106-.53.16-.806.161Zm.343-23.864a.973.973 0 0 0-.373.075l-7.641 3.165a.975.975 0 0 0-.527 1.273l7.295 17.612a.976.976 0 0 0 1.273.528l7.641-3.167a.975.975 0 0 0 .527-1.274l-7.295-17.61a.976.976 0 0 0-.9-.602Z" fill="#5A78FF"></path><path style="mix-blend-mode:multiply;" opacity=".7" d="m30.186 10.465-1.051.435 2.888 6.973 1.05-.435-2.887-6.973Z" fill="url(#a)"></path><path style="mix-blend-mode:multiply;" opacity=".7" d="m35.463 26.179 1.05-.435-3.27-7.893-1.05.435 3.27 7.893Z" fill="url(#b)"></path><path d="M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z" fill="#5A78FF"></path><g style="mix-blend-mode:multiply;" opacity=".4"><path opacity=".9" d="M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z" fill="url(#c)"></path><path opacity=".7" d="M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z" fill="url(#d)"></path></g><path d="M35.14 23.215c-2.365 0-4.53.457-6.209 1.39v-7.522a13.007 13.007 0 0 1 6.21-1.39c2.364 0 4.572.439 6.207 1.392v7.521a13.002 13.002 0 0 0-6.208-1.391Z" fill="#5A78FF"></path><defs><linearGradient id="a" x1="31.842" y1="15.988" x2="31.371" y2="10.486" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".302" stop-color="#504678" stop-opacity=".616"></stop><stop offset=".608" stop-color="#504678" stop-opacity=".283"></stop><stop offset=".852" stop-color="#504678" stop-opacity=".076"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="b" x1="33.517" y1="19.957" x2="33.812" y2="26.122" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".302" stop-color="#504678" stop-opacity=".616"></stop><stop offset=".608" stop-color="#504678" stop-opacity=".283"></stop><stop offset=".852" stop-color="#504678" stop-opacity=".076"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="c" x1="27.846" y1="20.481" x2="33.618" y2="16.546" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".179" stop-color="#504678" stop-opacity=".872"></stop><stop offset=".526" stop-color="#504678" stop-opacity=".536"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="d" x1="32.798" y1="16.634" x2="32.542" y2="14.587" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".643" stop-color="#504678" stop-opacity=".332"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient></defs>',9)])),8,zT)),(Ai(),Si("svg",{"aria-label":e.getLabel("visaIconLabel"),preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",alt:""}
2,MT(t[11]||(t[11]=[Vi('<rect x=".5" y=".5" width="59" height="39" rx="3.5" fill="#fff"></rect><rect x=".5" y=".5" width="59" height="39" rx="3.5" stroke="#E7E7E4"></rect><path d="M26.632 27.255h-3.857l2.412-14.001h3.857l-2.412 14ZM40.613 13.596A10.052 10.052 0 0 0 37.154 13c-3.809 0-6.491 1.906-6.507 4.632-.032 2.01 1.92 3.128 3.38 3.798 1.492.685 2 1.133 2 1.743-.016.938-1.206 1.37-2.317 1.37-1.54 0-2.365-.222-3.619-.744l-.508-.224-.54 3.143c.905.387 2.572.73 4.302.745 4.047 0 6.682-1.877 6.713-4.781.015-1.594-1.015-2.815-3.237-3.813-1.35-.64-2.176-1.073-2.176-1.728.016-.596.7-1.206 2.222-1.206a6.92 6.92 0 0 1 2.873.536l.349.148.524-3.023Z" fill="#193AC3"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M47.517 13.254H50.5l3.112 14H50.04s-.35-1.608-.46-2.1h-4.952l-.81 2.1h-4.047l5.73-12.839c.396-.908 1.095-1.161 2.015-1.161Zm-.238 5.123s-1.222 3.113-1.54 3.918h3.206c-.158-.7-.889-4.052-.889-4.052l-.27-1.206c-.113.31-.277.738-.388 1.026-.075.195-.125.326-.119.314Z" fill="#193AC3"></path><path d="M6.063 13.254h6.206c.841.03 1.524.283 1.745 1.177l1.35 6.433.412 1.937 3.777-9.547h4.079L17.569 27.24h-4.078l-3.438-12.166C8.867 14.424 7.513 13.9 6 13.537l.063-.283Z" fill="#193AC3"></path>',5)])),8,UT)),(Ai(),Si("svg",{"aria-label":e.getLabel("dankortIconLable"),preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",alt:""},MT(t[12]||(t[12]=[Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",fill:"#fff"},null,-1),Mi("rect",{x:".5",y:".5",width:"59",height:"39",rx:"3.5",stroke:"#E7E7E4"},null,-1),Mi("path",{d:"M21.512 7.25H38.193c6.77 0 12.26 5.51 12.26 12.308 0 6.8-5.49 12.308-12.26 12.308H21.51c-6.77 0-12.261-5.508-12.261-12.308 0-6.798 5.49-12.308 12.262-12.308Z",fill:"#fff",stroke:"#C8C8C8","stroke-width":".5"},null,-1),Mi("path",{d:"m41.109 18.798 5.547 6.622a10.295 10.295 0 0 0 1.823-5.862c0-2.297-.752-4.421-2.02-6.138l-5.35 5.378ZM25.39 12.861c4.143 0 7.264 1.058 7.585 4.561l4.36-4.562h8.68a10.252 10.252 0 0 0-7.822-3.627H21.512c-3.13 0-5.936 1.409-7.824 3.628H25.39ZM18.566 17.277l-1.48 4.083h5.969c1.764 0 2.297-.733 2.692-2.145.391-1.396-.59-1.938-1.796-1.938h-5.385ZM37.37 25.977l-4.61-5.849c-.852 3.988-3.643 5.848-8.875 5.848H13.46c1.887 2.38 4.795 3.908 8.053 3.908h16.68c3.258 0 6.165-1.528 8.051-3.907h-8.872Z",fill:"#E2231A"},null,-1)])),8,jT)),(Ai(),Si("svg",{"aria-label":e.getLabel("mastercardIconLabel"),preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",alt:""},MT(t[13]||(t[13]=[Vi('<rect x=".5" y=".5" width="59" height="39" rx="3.5" fill="#fff"></rect><rect x=".5" y=".5" width="59" height="39" rx="3.5" stroke="#E7E7E4"></rect><path d="M35.281 28.977H24.943V10.512H35.28v18.465Z" fill="#FF5F00"></path><path d="M25.605 19.743c0-3.746 1.765-7.082 4.513-9.232A11.812 11.812 0 0 0 22.815 8C16.29 8 11 13.257 11 19.743c0 6.485 5.29 11.743 11.815 11.743 2.757 0 5.293-.939 7.303-2.511-2.748-2.15-4.513-5.487-4.513-9.232Z" fill="#EB001B"></path><path d="M49.225 19.743c0 6.485-5.29 11.743-11.815 11.743-2.757 0-5.293-.939-7.303-2.511 2.749-2.15 4.513-5.487 4.513-9.232 0-3.746-1.764-7.082-4.513-9.232A11.816 11.816 0 0 1 37.41 8c6.526 0 11.815 5.257 11.815 11.743Z" fill="#F79E1B"></path>',5)])),8,HT))])],32)],2)):zi("v-if",!0),"betalingsservice"===n?(Ai(),Si("div",{key:2,class:Y(["kb-webshop-payment-selector__payment-option",{"kb-webshop-payment-selector__payment-option--active":e.determineActivePaymentMethod(3)}])},[io(Mi("input",{id:"third-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.paymentMethod=t}),value:"3",onChange:t[7]||(t[7]=function(){return e.commitPaymentInputToStore&&e.commitPaymentInputToStore.apply(e,arguments)})},null,544),[[Js,e.paymentMethod]]),Mi("label",{role:"button",tabindex:"0",onKeydown:t[8]||(t[8]=cc(function(){return e.setPaymentTypeOnEnter&&e.setPaymentTypeOnEnter.apply(e,arguments)},["enter"])),for:"third-payment-method"},fe(e.getLabel("paymentMethodInvoice")),33)],2)):zi("v-if",!0)],64)}),128)),e.unSubmitted||e.paymentMethodFilled?zi("v-if",!0):(Ai(),Si("p",qT,fe(e.getLabel("validationPaymentMethod")),1))])])}]]);function WT(e){return WT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WT(e)}function $T(e,t,n){return(t=function(e){var t=function(e){if("object"!=WT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=WT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WT(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YT={name:"CheckoutStepThree",components:{WebshopPaymentSelector:ZT},props:{frivillige:{type:Boolean,default:!1,required:!1}},setup:function(e){var t=Af(),n=function(){t.state.checkout.isSubmitting&&t.commit("checkout/set_submitting",!1)},o=function(){n()};Dr(function(){nS(),n(),window.addEventListener("pageshow",o)}),Pr(function(){window.removeEventListener("pageshow",o)});var r=bl(function(){return t.state.checkout.purchaseData}),a=bl(function(){return t.state.basket.basketState.containsUdlaansvare}),i=bl(function(){return t.state.checkout.stepTwo.showPickUpAddresses}),l=bl(function(){return a.value&&i.value&&y("udlaanDeliveryText")}),s=bl(function(){return!i.value&&!t.state.checkout.stepTwo.showDifferentAddress}),c=bl(function(){var e;return null!==(e=t.state.checkout.isSubmitting)&&void 0!==e&&e}),u=Kt(!0),d=Kt(!1),p=bl({get:function(){return!!t.state.checkout.purchaseData.payment.terms},set:function(e){t.commit("checkout/set_purchase_data_payment",{terms:!!e})}}),f=bl(function(){return!!p.value&&p.value}),m=bl(function(){return t.state.checkout.stepThree.paymentData}),g=bl(function(){var e;return null===(e=t.state.checkout.stepThree.paymentData)||void 0===e?void 0:e.paymentMethod}),h=bl(function(){var e,n;return!(null!==(e=null===(n=t.state.basket)||void 0===n||null===(n=n.totals)||void 0===n?void 0:n.isOrderFree)&&void 0!==e&&e)}),b=bl(function(){var e;return null!==(e=t.state.checkout.isSubmissionError)&&void 0!==e&&e}),v=bl(function(){return t.state.checkout.submissionErrorMessage}),y=function(e){return t.getters["labels/getLabel"]({labelCollection:"checkout",labelKey:e})};return $T($T($T($T($T($T({getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"informationAndDelivery",labelKey:e,allowEmpty:!0})},getLabelCheckoutNavigation:y,termsInput:p,termsInputFilled:f,onSubmit:function(){var n,o,r;if(u.value=!1,d.value=!0,setTimeout(function(){d.value=!1},100),r=!h.value||g.value,!f.value||!r)return!1;var a={paymentData:m.value};if(!p.value)return!1;h.value&&t.commit("checkout/set_purchase_data_payment",a);var i=null!==(n={1:"MobilePay",2:"PaymentCard",3:"Invoice"}[null===(o=m.value)||void 0===o||null===(o=o.paymentMethod)||void 0===o?void 0:o.toString()])&&void 0!==n?n:"NoPayment";!function(e,t){Gm({event:"add_payment_info",ecommerce:{currency:"DKK",value:Km(e),payment_type:t,items:e}})}(t.state.basket.basket.map(function(e,t){return Zm(e,t)}),i),t.commit("checkout/update_checkout_step_been_filled",3),e.frivillige?(t.commit("checkout/set_purchase_data_payment",{paymentData:{paymentMethod:"3"}}
2),t.dispatch("checkout/placeOrderFrivillige")):t.dispatch("checkout/placeOrder")},isSubmitting:c,unSubmitted:u,hideAllErrors:d,purchaseData:r,noDeliveryTitle:s,handleSendToStep:function(e){t.commit("checkout/update_checkout_step",{nextStepNumber:e})}},"noDeliveryTitle",s),"toStepTwo",function(){return t.commit("checkout/update_checkout_step",{nextStepNumber:2})}),"showPaymentOptions",h),"displayUdlaansvarePickupMessage",l),"isSubmissionError",b),"submissionErrorMessage",v)}},JT=YT,XT=(0,Hb.A)(JT,[["render",function(e,t,n,o,r,a){var i,l=qr("WebshopPaymentSelector");return Ai(),Si("article",JS,[Mi("section",XS,[Mi("div",QS,[Mi("h4",{class:Y(["kb-checkout-step-three__info-title",{"kb-checkout-step-three__info-title--hide":e.noDeliveryTitle}])},fe(e.getLabel("informationTitle")),3),Mi("h4",{class:Y(["kb-checkout-step-three__info-title",{"kb-checkout-step-three__info-title--hide":!e.noDeliveryTitle}])},fe(e.getLabel("informationAndDeliveryTitle")),3),"company"===e.purchaseData.invoice.userInformation.customerType?(Ai(),Si("div",eT,[zi(" show company inputs if filled "),e.purchaseData.invoice.company.companyName?(Ai(),Si("p",tT,fe(e.purchaseData.invoice.company.companyName),1)):zi("v-if",!0),e.purchaseData.invoice.company.companyDepartment?(Ai(),Si("p",nT,fe(e.purchaseData.invoice.company.companyDepartment),1)):zi("v-if",!0),e.purchaseData.invoice.company.companyCvr?(Ai(),Si("p",oT,fe(e.purchaseData.invoice.company.companyCvr),1)):zi("v-if",!0)])):zi("v-if",!0),"publicInstitution"===e.purchaseData.invoice.userInformation.customerType?(Ai(),Si("div",rT,[zi(" show public institution inputs if filled "),e.purchaseData.invoice.public.publicInstitutionNameInput?(Ai(),Si("p",aT,fe(e.purchaseData.invoice.public.publicInstitutionNameInput),1)):zi("v-if",!0),e.purchaseData.invoice.public.publicInstitutionUserId?(Ai(),Si("p",iT,fe(e.purchaseData.invoice.public.publicInstitutionUserId),1)):zi("v-if",!0),e.purchaseData.invoice.public.publicInstitutionDepartmentOrContact?(Ai(),Si("p",lT,fe(e.purchaseData.invoice.public.publicInstitutionDepartmentOrContact),1)):zi("v-if",!0),e.purchaseData.invoice.public.publicInstitutionEan?(Ai(),Si("p",sT,fe(e.purchaseData.invoice.public.publicInstitutionEan),1)):zi("v-if",!0)])):zi("v-if",!0),Mi("p",cT,fe("".concat(e.purchaseData.invoice.userInformation.contactFirstName,"\n ").concat(e.purchaseData.invoice.userInformation.contactLastName)),1),Mi("p",uT,fe(e.purchaseData.invoice.invoiceAddress.addressLine),1),Mi("p",dT,fe("".concat(e.purchaseData.invoice.invoiceAddress.postalCode,"\n ").concat(e.purchaseData.invoice.invoiceAddress.city)),1),Mi("p",pT,fe("\n ".concat(e.purchaseData.invoice.userInformation.mobilePhone)),1),Mi("p",fT,fe(e.purchaseData.invoice.userInformation.email),1),Mi("button",{onClick:t[0]||(t[0]=function(t){return e.handleSendToStep(1)}),class:"kb-checkout-step-three__link"},fe(e.getLabel("informationEditTitle")),1)]),e.noDeliveryTitle?zi("v-if",!0):(Ai(),Si("div",mT,[Mi("h4",gT,fe(e.getLabel("deliveryTitle")),1),e.purchaseData.delivery.deliveryAddress.deliveryName||e.purchaseData.delivery.deliveryAddress.deliveryDepartment?(Ai(),Si("div",hT,[zi(" show company inputs if filled "),e.purchaseData.delivery.deliveryAddress.deliveryName?(Ai(),Si("p",bT,fe(e.purchaseData.delivery.deliveryAddress.deliveryName),1)):zi("v-if",!0),e.purchaseData.delivery.deliveryAddress.deliveryDepartment?(Ai(),Si("p",vT,fe(e.purchaseData.delivery.deliveryAddress.deliveryDepartment),1)):zi("v-if",!0)])):zi("v-if",!0),e.purchaseData.delivery.deliveryAddress.name?(Ai(),Si("p",yT,fe(e.purchaseData.delivery.deliveryAddress.name),1)):zi("v-if",!0),e.purchaseData.delivery.deliveryAddress.contactFirstName?(Ai(),Si("p",_T,fe("".concat(e.purchaseData.delivery.deliveryAddress.contactFirstName,"\n ").concat(e.purchaseData.delivery.deliveryAddress.contactLastName)),1)):zi("v-if",!0),Mi("p",AT,fe(e.purchaseData.delivery.deliveryAddress.addressLine),1),Mi("p",kT,fe("".concat(e.purchaseData.delivery.deliveryAddress.postalCode,"\n ").concat(e.purchaseData.delivery.deliveryAddress.city)),1),Mi("a",{onClick:t[1]||(t[1]=function(t){return e.handleSendToStep(2)}),class:"kb-checkout-step-three__link"},fe(e.getLabel("deliveryEditTitle")),1)]))]),e.displayUdlaansvarePickupMessage?(Ai(),Si("div",xT,[Mi("p",null,fe(e.getLabelCheckoutNavigation("udlaanDeliveryText")),1)])):zi("v-if",!0),t[6]||(t[6]=Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 1"},[Mi("path",{fill:"#DFDFDB",d:"M0 0h704v1H0z"})],-1)),zi(" WX06 - WebshopPaymentMethod "),e.showPaymentOptions?(Ai(),Ti(l,{key:1})):zi("v-if",!0),zi(" Terms & conditions checkbox "),Mi("div",{class:Y(["kb-checkout-step-three__terms-wrapper FormTextbox",{"validation-error":!e.termsInputFilled}]),"aria-live":"assertive"},[Mi("div",wT,[io(Mi("input",{"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.termsInput=t}),type:"checkbox",id:"terms",name:"",value:"termsChoice"},null,512),[[$s,e.termsInput]]),Mi("label",CT,[Fi(fe(e.getLabel("termsAndConditionsText"))+" ",1),Mi("span",ET,[Mi("a",{href:e.getLabel("termsAndConditionsLink"),target:"_blank"},fe(e.getLabel("termsAndConditionsTextLink")),9,ST)])])]),e.unSubmitted||e.termsInputFilled||e.hideAllErrors?zi("v-if",!0):(Ai(),Si("p",TT,fe(e.getLabel("termsAndConditionsErrorMessage")),1))],2),t[7]||(t[7]=Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 1"},[Mi("path",{fill:"#DFDFDB",d:"M0 0h704v1H0z"})],-1)),zi(" Reusing styles from stepOneNavigation to have styles in one place "),Mi("div",IT,[Mi("div",BT,[Mi("button",{onClick:t[3]||(t[3]=function(){return e.toStepTwo&&e.toStepTwo.apply(e,arguments)}),class:"kb-button"},fe(e.getLabelCheckoutNavigation("backButtonTextStep3")),1),Mi("button",{onClick:t[4]||(t[4]=function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)}),disabled:e.isSubmitting||e.isStepSubmitting,class:"kb-checkout-step-three__bottom-button submit kb-button kb-button--full-color-spot"},fe(e.getLabelCheckoutNavigation("submitButtonTextStep3")),9,OT)]),e.isSubmissionError?(Ai(),Si("p",LT,fe(e.getLabelCheckoutNavigation("exceedMaxQuantityErrorMessage")),1)):zi("v-if",!0)]),e.isSubmitting?(Ai(),Si("div",DT,(i=t[5]||(t[5]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return YS(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return YS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YS(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])}]]),QT={name:"CheckoutContent",components:{BasketAside:Yx,BasketCard:Zx,CheckoutStepOne:aS,CheckoutStepTwo:$S,CheckoutStepThree:XT},props:{},setup:function(){var e=Af();Dr(function(){e.dispatch("basket/fetchBasket").then(function(){var t;if(1===(null===(t=e.state.checkout.checkoutSteps.find(function(e){return e.active}))||void 0===t?void 0:t.stepNumber)){var n=e.state.basket.basket;n.length>0&&Ym(n.map(function(e,t){return Zm(e,t)}))}})});var t=bl(function(){return e.state.checkout.checkoutSteps}),n=bl(function(){return t.value.find(function(e){return!0===e.active})});return{activeStep:n,checkoutSteps:t,determineCheckoutStepContent:function(){switch(n.value.stepNumber){case 1:return"CheckoutStepOne";case 2:return"CheckoutStepTwo";case 3:return"CheckoutStepThree";case 4:return;default:console.warn("No active checkout step defined")}},handleStepClick:function(t){var o=t<n.value.stepNumber?t:n.value.stepNumber;e.commit("checkout/update_checkout_step",{nextStepNumber:o})}}}},eI=QT,tI=(0,Hb.A)(eI,[["render",function(e,t,n,o,r,a){var i=qr("BasketAside");return Ai(),Si("article",wC,[Mi("div",CC,[Mi("div",EC,[Mi("ol",SC,[(Ai(!0),Si(gi,null,Yr(e.checkoutSteps,function(n,o){return Ai(),Si("li",{key:o,class:"kb-checkout-content__step-indicator-list-item"},[Mi("button",{"aria-current":null!=n&&n.active?"step":null,onClick:function(t){return e.handleStepClick(n.stepNumber)},class:"kb-checkout-content__step-indicator-link"}
2,[Mi("h3",IC,fe(n.stepTitle),1),Mi("div",{class:Y(["kb-checkout-content__step-indicator-circle",{"kb-checkout-content__step-indicator-circle--active-step":null==n?void 0:n.active}])},[Mi("p",BC,[t[0]||(t[0]=Mi("span",{class:"kb-visually-hidden"},"step",-1)),Fi(fe(n.stepNumber),1),Mi("span",OC,"ud af "+fe(e.checkoutSteps.length),1)])],2)],8,TC)])}),128))]),Mi("h2",LC,fe(e.activeStep.stepTitle),1),(Ai(),Ti(Kr(e.determineCheckoutStepContent())))]),Mi("div",DC,[Ni(i,{miniBasket:!0})])])])}]]),nI={name:"CheckoutHeader",setup:function(){}};var oI=document.querySelector(".kb-component--checkout-header"),rI={class:"kb-color-preview-container"},aI=["onUpdate:modelValue"],iI={class:"kb-color-preview-buttons"};const lI={name:"ColorPreview",setup:function(){var e=Kt("test \n igen"),t=Kt({"--colortheme-primary":"#dcdcdc","--colortheme-secondary":"#4e4e4e","--colortheme-spot":"#990000","--colortheme-text":"#000000","--colortheme-icon":"#990000","--colortheme-quote":"#4e4e4e"}),n=bl(function(){return Object.entries(t.value).reduce(function(e,t){return e+"\t".concat(t[0],":").concat(t[1],";\n")},"html {\n")+"\n}"}),o=(bl(function(){return"kb-colortheme--".concat(themeName)}),function(){var e;null===(e=document.querySelector('style[data="custom"]'))||void 0===e||e.remove()});return{config:t,copy:function(){var e=document.querySelector("#cssoutput");e.removeAttribute("disabled"),e.select(),document.execCommand("copy"),e.setAttribute("disabled","disabled")},cssClass:e,insert:function(){o();var e=document.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("data","custom"),e.innerText=n.value,document.head.appendChild(e)},remove:o,string:n}}},sI=lI,cI=(0,Hb.A)(sI,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",rI,[t[4]||(t[4]=Mi("h1",null,"Farve tester",-1)),io(Mi("textarea",{id:"cssoutput","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.string=t}),disabled:""}," ",512),[[Ws,e.string]]),(Ai(!0),Si(gi,null,Yr(e.config,function(t,n,o){return Ai(),Si("div",{key:o,class:"kb-color-preview"},[Mi("label",null,[Fi(fe(n)+" ",1),Mi("div",{class:"kb-color-preview__previewer",style:G({"background-color":t})},null,4)]),io(Mi("input",{"onUpdate:modelValue":function(t){return e.config[n]=t}},null,8,aI),[[Ws,e.config[n]]])])}),128)),Mi("div",iI,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[1]||(t[1]=function(){return e.insert&&e.insert.apply(e,arguments)})}," Test "),Mi("button",{class:"kb-button kb-button",onClick:t[2]||(t[2]=function(){return e.remove&&e.remove.apply(e,arguments)})},"Fjern"),Mi("button",{class:"kb-button kb-button",onClick:t[3]||(t[3]=function(){return e.copy&&e.copy.apply(e,arguments)})}," Kopiér til udklipsholder ")])])}]]);var uI=".kb-component--color-preview",dI=document.querySelector(uI),pI={class:"kb-confirm-changes"},fI={class:"kb-confirm-changes__hero"},mI={class:"kb-confirm-changes__hero__title-wrapper"},gI={class:"kb-confirm-changes__hero__title-wrapper__title"},hI={class:"kb-confirm-changes__content-container"},bI={class:"kb-confirm-changes__button-wrapper"};const vI={name:"ConfirmChanges",setup:function(){var e,t,n,o=Af();return null===(e=window)||void 0===e||null===(e=e.dataLayer)||void 0===e||e.find(function(e){return e["gtm.start"]}),Dr(function(){t=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),n=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){t.focus()}},{persistent:!0})}),{cancelAction:function(){o.dispatch("main/closePageOverlay")},confirmAction:function(){o.state.main.page_overlay_content_data.callback()},tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),n.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),n.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),t.focus())},getLabel:function(e){return o.getters["labels/getLabel"]({labelCollection:"ConfirmChanges",labelKey:e})}}}},yI=vI,_I=(0,Hb.A)(yI,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",pI,[Mi("section",fI,[Mi("div",mI,[Mi("h2",gI,fe(e.getLabel("title")),1)])]),t[4]||(t[4]=Mi("div",{class:"kb-confirm-changes__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",hI,[Mi("p",null,fe(e.getLabel("text")),1),Mi("div",bI,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.confirmAction&&e.confirmAction.apply(e,arguments)}),onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",class:"kb-button kb-button--full-color-spot kb-confirm-changes__kb-button--full-color-spot"},fe(e.getLabel("confirmButton")),33),Mi("button",{onClick:t[2]||(t[2]=function(){return e.cancelAction&&e.cancelAction.apply(e,arguments)}),"data-order":"last",onKeydown:t[3]||(t[3]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("cancelButton")),33)])])])}]]);function AI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var kI={class:"kb-overlay-styles__content-wrapper"},xI={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},wI={class:"kb-overlay-styles__hero"},CI={class:"kb-overlay-styles__hero-wrapper"},EI={class:"kb-overlay-styles__hero-title"},SI={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},TI={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},II={class:"kb-stafet-step__texts-wrapper"},BI={class:"kb-stafet-step__texts-description"},OI={class:"kb-stafet-step__texts-warning"},LI={class:"kb-stafet-flow-actions"},DI={class:"kb-stafet-flow-actions__buttons-left-wrapper"},MI={key:0,class:"kb-spinner-overlay"};const NI={name:"ConfirmDeleteOverlay",setup:function(){var e=Af(),t=bl(function(){return e.state.frivillige.is_submitting}),n=bl(function(){return e.state.frivillige.delete_item_type}),o=bl(function(){return e.state.frivillige.delete_item_name});return Lr(function(){e.dispatch("frivillige/getDeleteItemId"),e.dispatch("frivillige/getDeleteItemName"),e.dispatch("frivillige/getDeleteItemType")}),{isSubmitting:t,deleteItemName:o,getLabel:function(t,o){var r=e.getters["labels/getLabel"]({labelCollection:"Dokument"===n.value?"ConfirmDeleteOverlayFile":"Mappe"===n.value?"ConfirmDeleteOverlayFolder":"ConfirmDeleteOverlay",labelKey:t});return o&&o.forEach(function(e,t){r=r.replace("{".concat(t,"}"),e)}),r},handleRegret:function(){e.dispatch("main/closePageOverlay")},submitConfirmDelete:function(){e.dispatch("frivillige/submitConfirmDelete",{body:{deleteStatus:!0}}).then(function(){e.dispatch("main/closePageOverlay"),e.dispatch("search/refreshSearches")})}}}},PI=NI,RI=(0,Hb.A)(PI,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",kI,[Mi("article",{class:Y(["kb-overlay-styles kb-confirm-delete-overlay",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",xI,[Mi("div",wI,[Mi("div",CI,[Mi("h4",EI,fe(e.getLabel("title",[e.deleteItemName])),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",SI,[Mi("section",TI,[Mi("div",II,[Mi("p",BI,fe(e.getLabel("description",[e.deleteItemName])),1),Mi("p",OI,fe(e.getLabel("warning")),1)]),Mi("nav",LI,[Mi("div",DI,[Mi("button",{class:"kb-button kb-button--outline",onClick:t[0]||(t[0]=function(){return e.handleRegret&&e.handleRegret.apply(e,arguments)})},fe(e.getLabel("regretButtonText")),1),Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[1]||(t[1]=function(){return e.submitConfirmDelete&&e.submitConfirmDelete.apply(e,arguments)})},fe(e.getLabel("submitConfirmDeleteButtonText")),1)])])])])]),e.isSubmitting?(Ai(),Si("div",MI,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return AI(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return AI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AI(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)]);var i}]]);var FI={class:"kb-confirm-changes"},VI={class:"kb-confirm-changes__hero"},zI={class:"kb-confirm-changes__hero__title-wrapper"},UI={class:"kb-confirm-changes__hero__title-wrapper__title"},jI={class:"kb-confirm-changes__content-container"},HI={class:"kb-confirm-changes__button-wrapper"};const qI={name:"ConfirmDeleteProfile",setup:function(){var e,t,n=Af();return Dr(function(){e=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),t=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){e.focus()}},{persistent:!0})}),{cancelAction:function(){n.dispatch("main/closePageOverlay")},confirmAction:function(){n.state.main.page_overlay_content_data.callback()}
2,tabTrap:function(n){n.shiftKey&&"first"===n.target.dataset.order&&(n.preventDefault(),t.focus()),n.shiftKey||"last"!==n.target.dataset.order||(n.preventDefault(),t.focus()),n.shiftKey||n.target.dataset.order||(n.preventDefault(),e.focus())},getLabel:function(e){return n.getters["labels/getLabel"]({labelCollection:"ConfirmDeleteProfile",labelKey:e})}}}},GI=qI,KI=(0,Hb.A)(GI,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",FI,[Mi("section",VI,[Mi("div",zI,[Mi("h2",UI,fe(e.getLabel("title")),1)])]),t[4]||(t[4]=Mi("div",{class:"kb-confirm-changes__hero__curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",jI,[Mi("p",null,fe(e.getLabel("text")),1),Mi("div",HI,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.confirmAction&&e.confirmAction.apply(e,arguments)}),onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",class:"kb-button kb-button--full-color-spot kb-confirm-changes__kb-button--full-color-spot"},fe(e.getLabel("confirmButton")),33),Mi("button",{onClick:t[2]||(t[2]=function(){return e.cancelAction&&e.cancelAction.apply(e,arguments)}),"data-order":"last",onKeydown:t[3]||(t[3]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("cancelButton")),33)])])])}]]),ZI={name:"ContactBanner",setup:function(){}},WI={name:"ContributionSelector",props:{data:{type:Object,required:!0}},setup:function(){}};function $I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var YI={class:"kb-create-cancer-forum-profile"},JI={class:"kb-create-cancer-forum-profile__title"},XI={class:"kb-create-cancer-forum-profile__form kb-optimizely-forms Form__Element"},QI={class:"kb-create-cancer-forum-profile__form-title"},eB={class:"kb-create-cancer-forum-profile__form-description"},tB={key:0,class:"kb-spinner-overlay"},nB={class:"kb-form-checkbox"},oB={class:"Form__Element FormChoice"},rB=["required","name","id","disabled"],aB=["for"],iB=["innerHTML"],lB=["for"],sB={key:0,class:"kb-forms Form__Element__ValidationError","aria-live":"assertive"},cB={key:1,class:"kb-form__input-helptext kb-form__input-helptext--checkbox"};const uB=wA("FormCheckbox",{validatorFunction:function(e){return e}}),dB=(0,Hb.A)(uB,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",nB,[Mi("div",oB,[io(Mi("input",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),type:"checkbox",required:!!e.isRequired,name:e.fieldName,id:e.fieldName,onChange:t[1]||(t[1]=function(){return e.formLink&&e.formLink.apply(e,arguments)}),class:"FormChoice__Input FormChoice__Input--Checkbox",disabled:e.readOnly},null,40,rB),[[$s,e.localValue]]),e.isRichText?(Ai(),Si("label",{key:0,for:e.fieldName,class:"FormChoice__Label"},[Mi("div",{innerHTML:e.label+(e.isRequired?"*":""),class:"kb-rich-text kb-rich-text__content"},null,8,iB)],8,aB)):(Ai(),Si("label",{key:1,for:e.fieldName,class:"FormChoice__Label"},fe(e.label+(e.isRequired?"*":"")),9,lB)),e.tooltipText?(Ai(),Ti(i,{key:2,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)]),e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",sB,fe(e.errorMessageLabel),
21)):zi("v-if",!0),e.helpMessageLabel?(Ai(),Si("p",cB,fe(e.helpMessageLabel),1)):zi("v-if",!0)])}]]);function pB(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return fB(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(fB(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fB(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,fB(d,"constructor",c),fB(c,"constructor",s),s.displayName="GeneratorFunction",fB(c,r,"GeneratorFunction"),fB(d),fB(d,r,"Generator"),fB(d,o,function(){return this}),fB(d,"toString",function(){return"[object Generator]"}),(pB=function(){return{w:a,m:p}})()}function fB(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}fB=function(e,t,n,o){function a(t,n){fB(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},fB(e,t,n,o)}function mB(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const gB={name:"CreateCancerForumProfile",components:{FormInputTextField:mE,FormCheckbox:dB},setup:function(){var e=Af(),t=Kt(""),n=Kt(!1),o=Kt({name:!1,consent:!1}),r=Kt(!1),a=function(t){return e.getters["labels/getLabel"]({labelCollection:"CreateCancerForumProfile",labelKey:t})},i=Kt(a("formCancerForumNameErrorLabel")),l=function(){var a,l=(a=pB().m(function a(){var l;return pB().w(function(a){for(;;)switch(a.n){case 0:if(o.value.name=""===t.value,o.value.consent=!n.value,!n.value||""===t.value){a.n=2;break}return r.value=!0,a.n=1,e.dispatch("forum/createCancerForumProfile",{body:t.value,pageId:e.state.main.page_id});case 1:"error"===(l=a.v).status&&(o.value.name=!0,i.value=l.message,r.value=!1);case 2:return a.a(2)}},a)}),function(){var e=this,t=arguments;return new Promise(function(n,o){var r=a.apply(e,t);function i(e){mB(r,n,o,i,l,"next",e)}function l(e){mB(r,n,o,i,l,"throw",e)}i(void 0)})});return function(){return l.apply(this,arguments)}}();return{cancerForumName:t,cancerForumConsent:n,displayError:o,cancerForumErrorLabel:i,isSubmitting:r,setConsent:function(e){var t,o=e.target;n.value=null!==(t=o.checked)&&void 0!==t&&t},submitCreateProfile:l,getLabel:a}}},hB=gB,bB=(0,Hb.A)(hB,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputTextField"),s=qr("FormCheckbox");return Ai(),Si("article",YI,[Mi("h1",JI,fe(e.getLabel("title")),1),t[3]||(t[3]=Mi("hr",null,null,-1)),Mi("div",XI,[Mi("h2",QI,fe(e.getLabel("formProfileTitle")),1),Mi("p",eB,fe(e.getLabel("formProfileDescription")),1),Ni(l,{modelValue:e.cancerForumName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.cancerForumName=t}),fieldName:"cancerForumName",label:e.getLabel("formCancerForumNameLabel"),isValidationError:e.displayError.name,placeholder:e.getLabel("formCancerForumNameLabel"),errorMessageLabel:e.cancerForumErrorLabel,helpMessageLabel:e.getLabel("formCancerForumNameHelpText")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel","helpMessageLabel"]),Ni(s,{"v-model":e.cancerForumConsent.toString(),fieldName:"
2cancerForumConsent",label:e.getLabel("formCancerForumConsentLabel"),isRichText:!0,isValidationError:!e.cancerForumConsent&&e.displayError.consent,errorMessageLabel:e.getLabel("formCancerForumConsentLabelError"),onChangeCallback:function(t){return e.setConsent(t)}},null,8,["v-model","label","isValidationError","errorMessageLabel","onChangeCallback"]),Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[1]||(t[1]=function(){return e.submitCreateProfile&&e.submitCreateProfile.apply(e,arguments)})},fe(e.getLabel("submitButtonLabel")),3),e.isSubmitting?(Ai(),Si("div",tB,(i=t[2]||(t[2]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return $I(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return $I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$I(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])])}]]),vB=bB;function yB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var _B={class:"kb-create-event"},AB={class:"kb-stafet-flow-title"},kB={class:"kb-stafet-flow-title__title"},xB={class:"kb-stafet-flow-title__description"},wB={class:"kb-stafet-flow-title__description-text"},CB={class:"kb-cta-box-checkbox"},EB={class:"kb-cta-box-checkbox__box-content-container"},SB={class:"kb-cta-box-checkbox__box-content"},TB={class:"kb-cta-box-checkbox__box-title"},IB={class:"kb-cta-box-checkbox__box-description"},BB={class:"kb-stafet-step kb-optimizely-forms"},OB={class:"kb-stafet-step__title"},LB={for:"description",class:"Form__Element__Caption"},DB={"aria-live":"assertive"},MB={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"},NB={class:"kb-stafet-step__title"},PB={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},RB={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},FB={class:"kb-stafet-step__title"},VB={class:"kb-stafet-step__title"},zB={key:3},UB={class:"kb-stafet-flow-actions"},jB={class:"kb-stafet-flow-actions__buttons-wrapper"},HB={key:0,class:"kb-spinner-overlay"},qB=["for"],GB={class:"Form__Element kb-form-input-dropdown__wrapper"},KB=["id","required"],ZB={value:"",disabled:""},WB=["value"],$B={key:0,class:"Form__Element__ValidationError","aria-live":"assertive"},YB={key:1,class:"kb-form__input-helptext kb-form__input-helptext--dropdown"};const JB=wA("FormInputDropdown",{validatorFunction:function(e){return e}}),XB=(0,Hb.A)(JB,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("article",{class:Y(["kb-form-input-dropdown",{ValidationRequired:e.isRequired}])},[Mi("label",{for:"dropdown-".concat(e.fieldName),class:"Form__Element__Caption"},[Fi(fe(e.label)+" ",1),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)],8,qB),Mi("div",GB,[io(Mi("select",{id:"dropdown-".concat(e.fieldName),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),onChange:t[1]||(t[1]=function(){return e.formLink&&e.formLink.apply(e,arguments)}),required:!!e.isRequired},[Mi("option",ZB,fe(e.placeholder),1),(Ai(!0),Si(gi,null,Yr(e.selectOptions,function(e,t){return Ai(),Si("option",{key:t,value:e.value},fe(e.name),9,WB)}),128))],40,KB),[[Xs,e.localValue]]),t[2]||(t[2]=Mi("div",{class:"kb-form-input-dropdown__wrapper--arrow"},[Mi("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M16.5 10.5 12 14.25 7.5 10.5",stroke:"#3C3C3C","stroke-width":"1.5","stroke-linejoin":"round"})])],-1))]),e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",$B,fe(e.errorMessageLabel),
21)):zi("v-if",!0),e.helpMessageLabel?(Ai(),Si("p",YB,fe(e.helpMessageLabel),1)):zi("v-if",!0)],2)}]]);var QB={class:"kb-form-radio-group"},eO={class:"Form__Element FormChoice"},tO={key:0,class:"Form__Element__Caption"},nO=["name","value","checked","id","disabled"],oO=["for"],rO={"aria-live":"assertive"},aO={key:0,class:"Form__Element__ValidationError",role:"alert"},iO={key:0,class:"kb-form__input-helptext kb-form__input-helptext--radio"};const lO=wA("FormRadioGroup",{validatorFunction:function(e){return e}}),sO=(0,Hb.A)(lO,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",QB,[Mi("div",eO,[Mi("fieldset",null,[e.legend?(Ai(),Si("legend",tO,fe(e.legend),1)):zi("v-if",!0),(Ai(!0),Si(gi,null,Yr(e.radioOptions,function(n,o){return Ai(),Si("div",{key:o},[io(Mi("input",{class:"FormChoice__Input FormChoice__Input--radio",type:"radio",name:e.fieldName,value:n.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),checked:e.modelValue===n.value,id:"".concat(e.fieldName,"-").concat(o),disabled:e.readOnly},null,8,nO),[[Js,e.localValue]]),Mi("label",{for:"".concat(e.fieldName,"-").concat(o),class:"FormChoice__Label"},fe(n.label),9,oO)])}),128))]),Mi("div",rO,[e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",aO,fe(e.errorMessageLabel),
21)):zi("v-if",!0)]),e.helpMessageLabel?(Ai(),Si("p",iO,fe(e.helpMessageLabel),1)):zi("v-if",!0)])])}]]);function cO(e){return"boolean"==typeof e}function uO(e){return tE(e)&&!!e.match(/^\d{4}$/)}const dO=[{name:"nameOfEvent",value:"",isValid:!1,validator:rE},{name:"description",value:"",isValid:!1,validator:tE},{name:"shareInMainCalendar",value:!1,isValid:!0,validator:cO},{name:"mandatoryRegistration",value:!1,isValid:!0,validator:cO},{name:"maxParticipants",value:0,isValid:!0,validator:function(e){return null==e||e>0&&e<=2e4}},{name:"contactPersonMyself",value:!1,isValid:!0,validator:cO},{name:"contactPersonOther",value:!1,isValid:!0,validator:cO},{name:"contactPersonEmail",value:"",isValid:!1,validator:nE},{name:"contactPersonName",value:"",isValid:!1,validator:tE},{name:"contactPersonPhone",value:"",isValid:!0,validator:function(e){return!e||oE(e)}},{name:"startDate",value:"",isValid:!1,validator:function(){return!1}},{name:"endDate",value:"",isValid:!1,validator:function(){return!1}},{name:"startTime",value:"",isValid:!1,validator:tE},{name:"endTime",value:"",isValid:!1,validator:tE},{name:"address",value:"",isValid:!1,validator:tE},{name:"postalCode",value:"",isValid:!1,validator:uO},{name:"city",value:"",isValid:!1,validator:tE}];r(199),r(75),r(741),r(595),r(384),r(203),r(36),r(669),r(775),r(205);var pO,fO=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],mO=function(e){return-1!==fO.map(function(e){return e.toLowerCase()}).indexOf(e.toLowerCase())},gO=0,hO=function(e){var t=Date.now();return e+"_"+Math.floor(1e9*Math.random())+ ++gO+String(t)},bO=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:e.split(" ")},vO=function(e){var t;return"function"==typeof(null===(t=e.options)||void 0===t?void 0:t.set)&&e.options.isRegistered("disabled")},yO=function(){return{listeners:[],scriptId:hO("tiny-script"),scriptLoaded:!1}},_O=(pO=yO(),{load:function(e,t,n){pO.scriptLoaded?n():(pO.listeners.push(n),e.getElementById(pO.scriptId)||function(e,t,n){var o=t.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=e,o.src=n;var r=function(){o.removeEventListener("load",r),pO.listeners.forEach(function(e){return e()}),pO.scriptLoaded=!0};o.addEventListener("load",r),t.head&&t.head.appendChild(o)}(pO.scriptId,e,t))},reinitialize:function(){pO=yO()}}),AO=function(){var e="undefined"!=typeof window?window:r.g;return e&&e.tinymce?e.tinymce:null},kO={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,readonly:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return"html"===e||"text"===e}}},xO=function(){return xO=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xO.apply(this,arguments)},wO={selector:void 0,target:void 0},CO=function(e,t){var n;"function"==typeof(null===(n=e.mode)||void 0===n?void 0:n.set)?e.mode.set(t):e.setMode(t)},EO=Ko({props:kO,setup:function(e,t){var n=e.init?xO(xO({},e.init),wO):xO({},wO),o=on(e),r=o.disabled,a=o.readonly,i=o.modelValue,l=o.tagName,s=Kt(null),c=null,u=e.id||hO("tiny-vue"),d=e.init&&e.init.inline||e.inline,p=!!t.attrs["onUpdate:modelValue"],f=!0,m=e.initialValue?e.initialValue:"",g="",h=function(){var o,r,a,l=(o=f,p?function(){return(null==i?void 0:i.value)?i.value:""}:function(){return o?m:g}),u=xO(xO({},n),{disabled:e.disabled,readonly:e.readonly,target:s.value,plugins:(r=n.plugins,a=e.plugins,bO(r).concat(bO(a))),toolbar:e.toolbar||n.toolbar,inline:d,license_key:e.licenseKey,setup:function(o){vO(c=o)||!0!==e.disabled||CO(c,"readonly"),o.on("init",function(n){return function(e,t,n,o,r,a){o.setContent(a()),n.attrs["onUpdate:modelValue"]&&function(e,t,n,o){var r=e.modelEvents?e.modelEvents:null,a=Array.isArray(r)?r.join(" "):r;bo(o,function(t,o){n&&"string"==typeof t&&t!==o&&t!==n.getContent({format:e.outputFormat})&&n.setContent(t)}),n.on(a||"change input undo redo",function(){t.emit("update:modelValue",n.getContent({format:e.outputFormat}))})}(t,n,o,r),function(e,t,n){Object.keys(t).filter(mO).forEach(function(o){var r=t[o];"function"==typeof r&&("onInit"===o?r(e,n):n.on(o.substring(2),function(e){return r(e,n)}))})}(e,n.attrs,o)}(n,e,t,o,i,l)}),"function"==typeof n.setup&&n.setup(o)}});(function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()})(s.value)&&(s.value.style.visibility=""),AO().init(u),f=!1};return bo(a,function(e){null!==c&&CO(c,e?"readonly":"design")}),bo(r,function(e){null!==c&&(vO(c)?c.options.set("disabled",e):CO(c,e?"readonly":"design"))}),bo(l,function(e){var t;c&&(p||(g=c.getContent()),null===(t=AO())||void 0===t||t.remove(c),Nn(function(){return h()}))}),Dr(function(){if(null!==AO())h();else if(s.value&&s.value.ownerDocument){var t=e.cloudChannel?e.cloudChannel:"8",n=e.apiKey?e.apiKey:"no-api-key",o=null==e.tinymceScriptSrc?"https://cdn.tiny.cloud/1/".concat(n,"/tinymce/").concat(t,"/tinymce.min.js"):e.tinymceScriptSrc;_O.load(s.value.ownerDocument,o,h)}}),Pr(function(){null!==AO()&&AO().remove(c)}),d||(wr(function(){f||h()}),Cr(function(){var e;c&&(p||(g=c.getContent()),null===(e=AO())||void 0===e||e.remove(c))})),t.expose({rerender:function(e){var t;c&&(g=c.getContent(),null===(t=AO())||void 0===t||t.remove(c),n=xO(xO(xO({},n),e),wO),Nn(function(){return h()}))},getEditor:function(){return c}}),function(){return d?function(e,t,n,o){return e(o||"div",{id:t,ref:n})}(vl,u,s,e.tagName):vl("textarea",{id:u,visibility:"hidden",ref:s})}}});const SO=EO,TO={name:"CreateEvent",props:{groupId:{type:String,required:!0},isEditContext:{type:Boolean,required:!0},userInfo:{type:Object,required:!1}},components:{FormInputTextField:mE,FormCheckbox:dB,FormInputDropdown:XB,FormAddressField:tS,FormRadioGroup:sO,Editor:SO},setup:function(e){var t,n,o,r,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,_,A,k,x,w,C,E,S,T,I=Af(),B=Kt(!1),O=function(e){return dA({labelKey:e,labelCollection:"CreateEvent"})},L=1==e.isEditContext?"frivillige/updateEvent":"frivillige/createEvent",D=e.isEditContext,M=Kt(null!==(t=null===(n=e.userInfo)||void 0===n?void 0:n.nameOfEvent)&&void 0!==t?t:""),N=Kt(null!==(o=null===(r=e.userInfo)||void 0===r?void 0:r.description)&&void 0!==o?o:""),P=Kt(null!==(a=null===(i=e.userInfo)||void 0===i?void 0:i.shareInMainCalendar)&&void 0!==a&&a),R=Kt(null!==(l=null===(s=e.userInfo)||void 0===s?void 0:s.mandatoryRegistration)&&void 0!==l&&l),F=Kt(null===(c=e.userInfo)||void 0===c?void 0:c.maxParticipants),V=Kt(null!==(u=(null===(d=e.userInfo)||void 0===d||null===(d=d.contactPersonName)||void 0===d?void 0:d.length)>0)&&void 0!==u&&u),z=Kt(null===(p=e.userInfo)||void 0===p?void 0:p.contactPersonEmail),U=Kt(null===(f=e.userInfo)||void 0===f?void 0:f.contactPersonPhone),j=Kt(null===(m=e.userInfo)||void 0===m?void 0:m.contactPersonName),H=Kt(null!==(g=null===(h=e.userInfo)||void 0===h?void 0:h.startDate)&&void 0!==g?g:""),q=Kt(null!==(b=null===(v=e.userInfo)||void 0===v?void 0:v.startTime)&&void 0!==b?b:""),G=Kt(null!==(y=null===(_=e.userInfo)||void 0===_?void 0:_.endDate)&&void 0!==y?y:""),K=Kt(null!==(A=null===(k=e.userInfo)||void 0===k?void 0:k.endTime)&&void 0!==A?A:""),Z=Kt(null!==(x=null===(w=e.userInfo)||void 0===w?void 0:w.address)&&void 0!==x?x:""),W=Kt(null!==(C=null===(E=e.userInfo)||void 0===E?void 0:E.postalCode)&&void 0!==C?C:""),$=Kt(null!==(S=null===(T=e.userInfo)||void 0===T?void 0:T.city)&&void 0!==S?S:""),Y=Kt(!1),J=Object.freeze({SELF:"SELF",OTHER:"OTHER"}),X=Kt(J.SELF),Q=[{value:J.SELF,label:O("contactPersonMyselfLabel")},{value:J.OTHER,label:O("contactPersonOtherLabel")}],ee=bl(function(){return X.value===J.SELF});
2Lr(function(){e.userInfo&&Object.keys(e.userInfo).forEach(function(t){var n=dO.find(function(e){return e.name===t});n&&(n.value=e.userInfo[t],n.isValid=n.validator(e.userInfo[t]))})});var te=function(e,t){dO.find(function(t){return t.name===e}).value=t;var n=dO.find(function(t){return t.name===e}).validator(t);return dO.find(function(t){return t.name===e}).isValid=n,n},ne=function(e,t){var n=te(e,t);return B.value&&!n},oe=bl(function(){var e=te("address",Z.value),t=te("postalCode",W.value),n=te("city",$.value);return B.value&&(!e||!t||!n)}),re=function(e,t){return!(!e||!t)&&new Date<=new Date("".concat(e," ").concat(t))},ae=function(e,t,n,o){return!e||!t||!(!n||!o)&&new Date("".concat(e," ").concat(t))<=new Date("".concat(n," ").concat(o))},ie=bl(function(){return dO.find(function(e){return"startDate"===e.name}).isValid=re(H.value,q.value),dO.find(function(e){return"startDate"===e.name}).value=H.value,B.value&&!re(H.value,q.value)}),le=bl(function(){return dO.find(function(e){return"endDate"===e.name}).isValid=ae(H.value,q.value,G.value,K.value),dO.find(function(e){return"endDate"===e.name}).value=H.value,B.value&&!ae(H.value,q.value,G.value,K.value)});return bo(N,function(e){ne("description",e)}),{nameOfEvent:M,description:N,shareInMainCalendar:P,mandatoryRegistration:R,maxParticipants:F,contactPersonMyself:ee,contactPersonOther:V,contactPersonEmail:z,contactPersonName:j,contactPersonPhone:U,startDate:H,startTime:q,endDate:G,endTime:K,address:Z,postalCode:W,city:$,showErrorAddress:oe,isStartDateValid:ie,isEndDateValid:le,isEditContext:D,showSpinner:Y,contactType:X,contactTypeRadioOptions:Q,showError:ne,submit:function(){if(V.value||(dO.find(function(e){return"contactPersonEmail"===e.name}).isValid=!0,dO.find(function(e){return"contactPersonEmail"===e.name}).value="",dO.find(function(e){return"contactPersonName"===e.name}).isValid=!0,dO.find(function(e){return"contactPersonName"===e.name}).value="",dO.find(function(e){return"contactPersonPhone"===e.name}).isValid=!0,dO.find(function(e){return"contactPersonPhone"===e.name}).value=""),dO.every(function(e){return e.isValid})){var t;Y.value=!0;var n={nameOfEvent:M.value,description:N.value,shareInMainCalendar:P.value,mandatoryRegistration:R.value,maxParticipants:F.value,contactPersonMyself:ee.value,contactPersonOther:V.value,contactPersonEmail:z.value,contactPersonPhone:U.value,contactPersonName:j.value,startDate:H.value,startTime:q.value,endD
2ate:G.value,endTime:K.value,addressLine:Z.value,postalCode:W.value,city:$.value};I.dispatch(L,{body:n,id:null===(t=e.userInfo)||void 0===t?void 0:t.eventId,pageId:I.state.main.page_id,groupId:e.groupId}).catch(function(e){Y.value=!1})}else B.value=!0},getLabel:O,updateContactType:function(e){X.value=e,e===J.SELF?(ee.value=!0,V.value=!1):e===J.OTHER&&(ee.value=!1,V.value=!0)}}}},IO=TO,BO=(0,Hb.A)(IO,[["render",function(e,t,n,o,r,a){var i,l,s=qr("FormInputTextField"),c=qr("editor"),u=qr("FormCheckbox"),d=qr("FormAddressField"),p=qr("FormRadioGroup");return Ai(),Si("article",_B,[Mi("article",AB,[Mi("h1",kB,fe(e.userInfo?e.getLabel("editTitle"):e.getLabel("title")),1),t[18]||(t[18]=Mi("div",{class:"kb-stafet-flow-title__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",xB,[Mi("p",wB,fe(e.userInfo?e.getLabel("editDescription"):e.getLabel("description")),1)])]),Mi("section",CB,[Mi("div",EB,[Mi("div",SB,[t[19]||(t[19]=Vi('<div class="kb-cta-box-checkbox__box-circle"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 40 40"><path fill="#283F3E" d="M19.344 15.81a1.27 1.27 0 1 0 0-2.54 1.27 1.27 0 0 0 0 2.54Z"></path><path fill="#283F3E" d="M19.343 2.665A17.335 17.335 0 1 0 36.678 20 17.354 17.354 0 0 0 19.343 2.665Zm0 33.275A15.94 15.94 0 1 1 35.283 20a15.954 15.954 0 0 1-15.94 15.94Z"></path><path fill="#283F3E" d="M31.36 12.205A14.372 14.372 0 0 0 6.6 13.26l1.233.652a12.977 12.977 0 1 1 8.734 18.772C9.69 31.204 5.35 24.93 6.428 18.214l1.82.39.293-1.362-3.2-.693-.15.684c-1.66 7.734 3.205 15.12 11.09 16.814 1 .216 2.021.325 3.046.325a14.367 14.367 0 0 0 12.032-22.167Z"></path><path fill="#283F3E" d="M16.238 25.572v1.396h6.717v-1.396h-2.66v-8.59h-3.703v1.395h2.307v7.195h-2.66Z"></path></svg></div>',1)),Mi("div",null,[Mi("h2",TB,fe(e.getLabel("ctaTitle")),1),Mi("p",IB,fe(e.getLabel("ctaDescription")),1)])])])]),Mi("article",BB,[Mi("h2",OB,fe(e.getLabel("eventDescriptionTitle")),1),Ni(s,{fieldName:"nameOfEvent",modelValue:e.nameOfEvent,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.nameOfEvent=t}),label:e.getLabel("nameOfEventLabel"),isRequired:!0,isValidationError:e.showError("nameOfEvent",e.nameOfEvent),errorMessageLabel:e.getLabel("nameOfEventErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Mi("div",{class:Y(["Form__Element FormTextbox ValidationRequired",{"kb-text-editor--error":e.showError("description",e.description)}])},[Mi("label",LB,fe(e.getLabel("descriptionLabel")),1),Ni(c,{"api-key":"no-api-key",init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",valid_elements:"a[href|target],strong,em,u,ul,ol,li,p,br",formats:{bold:{inline:"strong"},italic:{inline:"em"},underline:{inline:"u"}},paste_webkit_styles:"none",paste_remove_styles:!0,paste_remove_spans:!0},modelValue:e.description,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.description=t})},null,8,["modelValue"]),Mi("div",DB,[e.showError("description",e.description)?(Ai(),Si("p",MB,fe(e.getLabel("descriptionErrorLabel")),1)):zi("v-if",!0)])],2),Ni(u,{fieldName:"shareInMainCalendar",modelValue:e.shareInMainCalendar.toString(),"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.shareInMainCalendar=t}),label:e.getLabel("shareInMainCalendarLabel"),onChangeCallback:function(t){return e.shareInMainCalendar=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),e.shareInMainCalendar?(Ai(),Ti(u,{key:0,fieldName:"mandatoryRegistration",modelValue:e.mandatoryRegistration.toString(),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.mandatoryRegistration=t}),label:e.getLabel("mandatoryRegistrationLabel"),onChangeCallback:function(t){return e.mandatoryRegistration=t.target.checked}},null,8,["modelValue","label","onChangeCallback"])):zi("v-if",!0),e.shareInMainCalendar?(Ai(),Ti(s,{key:1,fieldName:"maxParticipants",type:"number",modelValue:null===(i=e.maxParticipants)||void 0===i?void 0:i.toString(),"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.maxParticipants=t}),label:e.getLabel("maxParticipantsLabel"),isValidationError:e.showError("maxParticipants",e.maxParticipants),errorMessageLabel:e.getLabel("maxParticipantsErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])):zi("v-if",!0),t[21]||(t[21]=Mi("hr",{class:"kb-stafet-step__breaker-line"},null,-1)),Mi("h2",NB,fe(e.getLabel("DateTimeTitle")),1),Mi("div",PB,[Ni(s,{fieldName:"startDate",type:"date",modelValue:e.startDate,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.startDate=t}),label:e.getLabel("startDateLabel"),isRequired:!0,isValidationError:e.isStartDateValid,errorMessageLabel:e.getLabel("startDateErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(s,{fieldName:"startTime",type:"time",modelValue:e.startTime,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.startTime=t}),label:e.getLabel("startTimeLabel"),isRequired:!0,isValidationError:e.showError("startTime",e.startTime),errorMessageLabel:e.getLabel("startTimeErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])]),Mi("div",RB,[Ni(s,{fieldName:"endDate",type:"date",modelValue:e.endDate,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.endDate=t}),label:e.getLabel("endDateLabel"),isRequired:!0,isValidationError:e.isEndDateValid,errorMessageLabel:e.getLabel("endDateErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(s,{fieldName:"endTime",type:"time",modelValue:e.endTime,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.endTime=t}),label:e.getLabel("endTimeLabel"),isRequired:!0,isValidationError:e.showError("endTime",e.endTime),errorMessageLabel:e.getLabel("endTimeErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])]),t[22]||(t[22]=Mi("hr",{class:"kb-stafet-step__breaker-line"},null,-1)),Mi("h2",FB,fe(e.getLabel("addressTitle")),1),Ni(d,{"address-line-value":e.address,"onUpdate:addressLineValue":t[9]||(t[9]=function(t){return e.address=t}),"zip-code-value":e.postalCode,"onUpdate:zipCodeValue":t[10]||(t[10]=function(t){return e.postalCode=t}),"city-value":e.city,"onUpdate:cityValue":t[11]||(t[11]=function(t){return e.city=t}),addressLabel:e.getLabel("addressLabel"),zipCodeLabel:e.getLabel("zipCodeLabel"),addressPlaceholder:e.getLabel("addressPlaceholderL
2abel"),zipCodePlaceholder:e.getLabel("zipCodePlaceholderLabel"),cityPlaceholder:e.getLabel("cityLabel"),cityLabel:e.getLabel("cityPlaceholderLabel"),isValidationError:e.showErrorAddress,errorMessageLabel:e.getLabel("addressErrorLabel")},null,8,["address-line-value","zip-code-value","city-value","addressLabel","zipCodeLabel","addressPlaceholder","zipCodePlaceholder","cityPlaceholder","cityLabel","isValidationError","errorMessageLabel"]),t[23]||(t[23]=Mi("hr",{class:"kb-stafet-step__breaker-line"},null,-1)),Mi("h2",VB,fe(e.getLabel("contactPersonTitle")),1),e.isEditContext?zi("v-if",!0):(Ai(),Ti(p,{key:2,radioOptions:e.contactTypeRadioOptions,modelValue:e.contactType,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.contactType=t}),fieldName:"contactType",onChange:t[13]||(t[13]=function(t){return e.updateContactType(t.target.value)})},null,8,["radioOptions","modelValue"])),e.isEditContext||!e.contactPersonMyself?(Ai(),Si("div",zB,[Ni(s,{fieldName:"contactPersonName",type:"text",modelValue:e.contactPersonName,"onUpdate:modelValue":t[14]||(t[14]=function(t){return e.contactPersonName=t}),label:e.getLabel("contactPersonNameLabel"),isRequired:!0,isValidationError:e.showError("contactPersonName",e.contactPersonName),errorMessageLabel:e.getLabel("contactPersonNameErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(s,{fieldName:"contactPersonEmail",type:"email",modelValue:e.contactPersonEmail,"onUpdate:modelValue":t[15]||(t[15]=function(t){return e.contactPersonEmail=t}),label:e.getLabel("contactPersonEmailLabel"),isRequired:!0,isValidationError:e.showError("contactPersonEmail",e.contactPersonEmail),errorMessageLabel:e.getLabel("contactPersonEmailErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(s,{fieldName:"contactPersonPhone",type:"phone",modelValue:e.contactPersonPhone,"onUpdate:modelValue":t[16]||(t[16]=function(t){return e.contactPersonPhone=t}),label:e.getLabel("contactPersonPhoneLabel"),isRequired:!1,isValidationError:e.showError("contactPersonPhone",e.contactPersonPhone),errorMessageLabel:e.getLabel("contactPersonPhoneErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])):zi("v-if",!0),Mi("article",UB,[Mi("div",jB,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot kb-button--full-color-spot",{"kb-button--disabled":e.showSpinner}]),onClick:t[17]||(t[17]=function(){return e.submit&&e.submit.apply(e,arguments)})},fe(e.getLabel("submitButtonText")),3)]),e.showSpinner?(Ai(),Si("div",HB,(l=t[20]||(t[20]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return yB(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return yB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yB(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])])])}]]),OO=BO;function LO(e,t){var n={};return e.props?(Object.keys(e.props).forEach(function(o){var r=e.props[o].type.name,a=t.dataset;Object.keys(a).forEach(function(e){o===e&&(n[o]=DO(r,a[e]))})}),n):{}}var DO=function(e,t){switch(e){case"Object":return t?JSON.parse(t):{};case"Array":return t?JSON.parse(t):[];case"Boolean":return"true"===t;case"Number":return parseFloat(t);default:return t}};function MO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var NO={class:"kb-overlay-styles__content-wrapper"},PO={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},RO={class:"kb-overlay-styles__hero"},FO={class:"kb-overlay-styles__hero-wrapper"},VO={class:"kb-overlay-styles__hero-title"},zO={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},UO={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},jO={class:"kb-stafet-step__input-wrapper"},HO={class:"kb-stafet-flow-actions"},qO={class:"kb-stafet-flow-actions__buttons-left-wrapper"},GO={key:0,class:"kb-spinner-overlay"};const KO={name:"CreateFolderOverlay",components:{FormInputTextField:mE},setup:function(){var e=Af(),t=bl(function(){return e.state.frivillige.active_overlay_mode}),n=bl(function(){return e.state.frivillige.edit_mode_active}),o=Kt(""),r=bl(function(){return e.state.frivillige.is_submitting}),a=Kt(!1);return Lr(function(){n.value&&(o.value=e.state.frivillige.active_item_name)}),{itemName:o,isSubmitting:r,displayError:a,submitCreateOrEditFolderOrFile:function(){var t=aE(o.value)&&tE(o.value);a.value=!t,t&&e.dispatch("frivillige/submitCreateOrEditFolderOrFile",{name:o.value}).then(function(){e.dispatch("main/closePageOverlay"),e.dispatch("search/refreshSearches")})},nonEmptyStringValidator:tE,getLabel:function(o){return n.value&&"Dokument"===t.value?e.getters["labels/getLabel"]({labelCollection:"EditFileOverlay",labelKey:o}):"Dokument"===t.value?e.getters["labels/getLabel"]({labelCollection:"CreateFileOverlay",labelKey:o}):n.value&&"Mappe"===t.value?e.getters["labels/getLabel"]({labelCollection:"EditFolderOverlay",labelKey:o}):"Mappe"===t.value?e.getters["labels/getLabel"]({labelCollection:"CreateFolderOverlay",labelKey:o}):void 0}}}},ZO=KO,WO=(0,Hb.A)(ZO,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputTextField");return Ai(),Si("div",NO,[Mi("article",{class:Y(["kb-overlay-styles kb-create-folder-overlay",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",PO,[Mi("div",RO,[Mi("div",FO,[Mi("h4",VO,fe(e.getLabel("title")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",zO,[Mi("section",UO,[Mi("div",jO,[Ni(l,{isRequired:"",modelValue:e.itemName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.itemName=t}),fieldName:"folderName",type:"text",label:e.getLabel("itemNameLabel"),isValidationError:e.displayError&&!e.nonEmptyStringValidator(e.itemName),placeholder:e.getLabel("itemNamePlaceholder"),errorMessageLabel:e.getLabel("itemNameError")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"])]),Mi("nav",HO,[Mi("div",qO,[Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[1]||(t[1]=function(){return e.submitCreateOrEditFolderOrFile&&e.submitCreateOrEditFolderOrFile.apply(e,arguments)})},fe(e.getLabel("submitItemButtonText")),1)])])])])]),e.isSubmitting?(Ai(),Si("div",GO,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return MO(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return MO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MO
2(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)])}]]);function $O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var YO={class:"kb-stafet-donation-flow kb-stafet-step kb-optimizely-forms kb-create-frivillige-profile"},JO={class:"kb-stafet-flow-title"},XO={class:"kb-stafet-flow-title__title"},QO={class:"kb-stafet-flow-title__description"},eL={class:"kb-stafet-flow-title__description-text"},tL={class:"kb-stafet-donation-flow__step"},nL={class:"kb-stafet-step__input-wrapper"},oL={class:"kb-stafet-step__step-section-title"},rL={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},aL={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},iL={class:"kb-stafet-flow-actions"},lL={class:"kb-stafet-flow-actions__buttons-wrapper"},sL={key:0,class:"kb-spinner-overlay"},cL=["for"],uL=["autocomplete","id","aria-describedby","placeholder","maxlength","readonly","required","disabled"],dL={key:0,class:"kb-form__input-helptext"},pL={"aria-live":"assertive"},fL={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"};const mL=wA("FormInputNameField",{validatorFunction:function(e){return rE(e)}}),gL=(0,Hb.A)(mL,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",{class:Y(["kb-form-input-name-field Form__Element FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},[Fi(fe(e.label)+" ",1),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)],8,cL),io(Mi("input",{class:Y(["FormTextbox__Input",{"validation-error":e.isValidationError}]),type:"text","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),autocomplete:e.autocomplete,id:e.fieldName,"aria-describedby":"".concat(e.fieldName,"__desc"),placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readOnly,required:!!e.isRequired,disabled:e.readOnly,onInput:t[1]||(t[1]=function(t){return e.$emit("update:modelValue",t.target.value)}),onChange:t[2]||(t[2]=function(){return e.formLink&&e.formLink.apply(e,arguments)})},null,42,uL),[[Ws,e.localValue]]),e.helpMessageLabel?(Ai(),Si("p",dL,fe(e.helpMessageLabel),
21)):zi("v-if",!0),Mi("div",pL,[e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",fL,fe(e.errorMessageLabel),1)):zi("v-if",!0)])],2)}]]);var hL=["for"],bL=["disabled","autocomplete","id","aria-describedby","placeholder","maxlength"],vL={key:0,class:"kb-form__input-helptext"},yL={"aria-live":"assertive"},_L={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"};const AL=wA("FormInputEmailField",{validatorFunction:function(e){return nE(e)}}),kL=(0,Hb.A)(AL,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",{class:Y(["kb-form-input-email-field Form__Element FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},[Fi(fe(e.label)+" ",1),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)],8,hL),io(Mi("input",{class:Y(["FormTextbox__Input",{"validation-error":e.isValidationError}]),type:"email","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),disabled:e.disabled,autocomplete:e.autocomplete,id:e.fieldName,"aria-describedby":"".concat(e.fieldName,"__desc"),placeholder:e.placeholder,maxlength:e.maxlength,onInput:t[1]||(t[1]=function(t){return e.$emit("update:modelValue",t.target.value)}),onChange:t[2]||(t[2]=function(){return e.formLink&&e.formLink.apply(e,arguments)})},null,42,bL),[[Ws,e.localValue]]),e.helpMessageLabel?(Ai(),Si("p",vL,fe(e.helpMessageLabel),
21)):zi("v-if",!0),Mi("div",yL,[e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",_L,fe(e.errorMessageLabel),1)):zi("v-if",!0)])],2)}]]);var xL=["for"],wL=["autocomplete","id","aria-describedby","placeholder","maxlength","required","disabled"],CL={key:0,class:"kb-form__input-helptext"},EL={"aria-live":"assertive"},SL={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"};const TL=wA("FormInputPhoneField",{validatorFunction:function(e){return oE(e)}}),IL=(0,Hb.A)(TL,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",{class:Y(["kb-form-input-phone-field Form__Element FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},[Fi(fe(e.label)+" ",1),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)],8,xL),io(Mi("input",{class:Y(["FormTextbox__Input",{"validation-error":e.isValidationError}]),type:"phone","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),autocomplete:e.autocomplete,id:e.fieldName,"aria-describedby":"".concat(e.fieldName,"__desc"),placeholder:e.placeholder,maxlength:e.maxlength,required:!!e.isRequired,onInput:t[1]||(t[1]=function(t){return e.$emit("update:modelValue",t.target.value)}),onChange:t[2]||(t[2]=function(){return e.formLink&&e.formLink.apply(e,arguments)}),disabled:e.readOnly},null,42,wL),[[Ws,e.localValue]]),e.helpMessageLabel?(Ai(),Si("p",CL,fe(e.helpMessageLabel),
21)):zi("v-if",!0),Mi("div",EL,[e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",SL,fe(e.errorMessageLabel),1)):zi("v-if",!0)])],2)}]]);function BL(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return OL(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(OL(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,OL(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,OL(d,"constructor",c),OL(c,"constructor",s),s.displayName="GeneratorFunction",OL(c,r,"GeneratorFunction"),OL(d),OL(d,r,"Generator"),OL(d,o,function(){return this}),OL(d,"toString",function(){return"[object Generator]"}),(BL=function(){return{w:a,m:p}})()}function OL(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}OL=function(e,t,n,o){function a(t,n){OL(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},OL(e,t,n,o)}function LL(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const DL={name:"CreateFrivilligeProfile",components:{FormInputTextField:mE,FormInputNameField:gL,FormAddressField:tS,FormInputEmailField:kL,FormInputPhoneField:IL,FormCheckbox:dB},props:{external:{type:Object,required:!0}},setup:function(e){var t,n,o,r,a,i,l,s,c,u,d,p,f,m,g=Af(),h=Kt(null!==(t=null===(n=e.external.userData)||void 0===n?void 0:n.firstName)&&void 0!==t?t:""),b=Kt(null!==(o=null===(r=e.external.userData)||void 0===r?void 0:r.lastName)&&void 0!==o?o:""),v=Kt(null!==(a=null===(i=e.external.userData)||void 0===i?void 0:i.email)&&void 0!==a?a:""),y=Kt(null!==(l=null===(s=e.external.userData)||void 0===s?void 0:s.phoneNumber)&&void 0!==l?l:""),_=Kt(null!==(c=null===(u=e.external.userData)||void 0===u?void 0:u.address)&&void 0!==c?c:""),A=Kt(null!==(d=null===(p=e.external.userData)||void 0===p?void 0:p.postalCode)&&void 0!==d?d:""),k=Kt(null!==(f=null===(m=e.external.userData)||void 0===m?void 0:m.city)&&void 0!==f?f:""),x=Kt(!1),w=Kt(!1),C=Kt(!1),E=bl(function(){return g.state.frivilligprofil.submitting}),S=Kt({firstName:""!==h.value,lastName:""!==b.value,email:""!==v.value,phoneNumber:""!==y.value,address:""!==_.value}),T=function(e,t,n){return e&&t&&n},I=function(){return!!(rE(h.value)&&rE(b.value)&&oE(y.value)&&nE(v.value)&&T(_.value,A.value,k.value)&&x.value)},B=function(){var e,t=(e=BL().m(function e(){return BL().w(function(e){for(;;)switch(e.n){case 0:if(!I()){e.n=2;break}return C.value=!1,e.n=1,g.dispatch("frivilligprofil/createProfil",{pageId:g.state.main.page_id,body:{firstName:h.value,lastName:b.value,email:v.value,phoneNumber:y.value,address:_.value,postalCode:A.value,city:k.value,consentBool:x.value,newsletterBool:w.value}});case 1:e.n=3;break;case 2:C.value=!0;case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){LL(a,o,r,i,l,"next",e)}function l(e){LL(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();return{firstName:h,lastName:b,email:v,phoneNumber:y,address:_,postalCode:A,city:k,consentBool:x,newsletterBool:w,displayError:C,isSubmitting:E,isReadOnly:S,nameValidator:rE,phoneValidator:oE,emailValidator:nE,addressValidator:T,submit:B,getLabel:function(e){return dA({labelKey:e,labelCollection:"CreateFrivilligprofil"})}}}},ML=DL,NL=(0,Hb.A)(ML,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputNameField"),s=qr("FormAddressField"),c=qr("FormInputPhoneField"),u=qr("FormInputTextField"),d=qr("FormCheckbox");return Ai(),Si("article",YO,[Mi("article",JO,[Mi("h1",XO,fe(e.getLabel("title")),1),t[10]||(t[10]=Mi("div",{class:"kb-stafet-flow-title__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",QO,[Mi("p",eL,fe(e.getLabel("description")),1)])]),Mi("div",tL,[Mi("div",nL,[Mi("h2",oL,fe(e.getLabel("userInformationTitle")),1),Mi("div",rL,[Ni(l,{isRequired:"",modelValue:e.firstName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstName=t}),fieldName:"firstName",label:e.getLabel("firstNameLabel"),placeholder:e.getLabel("firstNamePlaceholder"),isValidationError:e.displayError&&!e.nameValidator(e.firstName),errorMessageLabel:e.getLabel("firstNameErrorLabel"),readOnly:e.isReadOnly.firstName},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel","readOnly"]),Ni(l,{isRequired:"",modelValue:e.lastName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.lastName=t}),fieldName:"lastName",label:e.getLabel("lastNameLabel"),placeholder:e.getLabel("lastNamePlaceholder"),isValidationError:e.displayError&&!e.nameValidator(e.lastName),errorMessageLabel:e.getLabel("lastNameErrorLabel"),readOnly:e.isReadOnly.lastName},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel","readOnly"])]),Ni(s,{"address-line-value":e.address,"onUpdate:addressLineValue":t[2]||(t[2]=function(t){return e.address=t}),"zip-code-value":e.postalCode,"onUpdate:zipCodeValue":t[3]||(t[3]=function(t){return e.postalCode=t}),"city-value":e.city,"onUpdate:cityValue":t[4]||(t[4]=function(t){return e.city=t}),addressPlaceholder:e.getLabel("addressLinePlaceholder"),zipCodePlaceholder:e.getLabel("postalCodePlaceholder"),cityPlaceholder:e.getLabel("cityPlaceholder"),addressLabel:e.getLabel("addressLine
2Label"),zipCodeLabel:e.getLabel("postalCodeLabel"),cityLabel:e.getLabel("cityLabel"),isValidationError:e.displayError&&!e.addressValidator(e.address,e.postalCode,e.city),errorMessageLabel:e.getLabel("addressErrorLabel"),disabled:e.isReadOnly.address},null,8,["address-line-value","zip-code-value","city-value","addressPlaceholder","zipCodePlaceholder","cityPlaceholder","addressLabel","zipCodeLabel","cityLabel","isValidationError","errorMessageLabel","disabled"]),Mi("div",aL,[Ni(c,{isRequired:"",modelValue:e.phoneNumber,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.phoneNumber=t}),fieldName:"phoneNumber",label:e.getLabel("phoneNumberLabel"),placeholder:e.getLabel("phoneNumberPlaceholder"),isValidationError:e.displayError&&!e.phoneValidator(e.phoneNumber),errorMessageLabel:e.getLabel("phoneNumberErrorLabel"),readOnly:e.isReadOnly.phoneNumber},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel","readOnly"]),Ni(u,{isRequired:"",readOnly:!0,type:"email",modelValue:e.email,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.email=t}),fieldName:"email",label:e.getLabel("emailLabel"),placeholder:e.getLabel("emailPlaceholder"),isValidationError:e.displayError&&!e.emailValidator(e.email),errorMessageLabel:e.getLabel("emailErrorLabel")},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel"])]),Ni(d,{fieldName:"consentBool",modelValue:e.consentBool.toString(),"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.consentBool=t}),label:e.getLabel("consentBoolLabel"),isRichText:!0,isValidationError:e.displayError&&!e.consentBool,errorMessageLabel:e.getLabel("consentBoolErrorLabel"),onChangeCallback:function(t){return e.consentBool=t.target.checked}},null,8,["modelValue","label","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(d,{fieldName:"newsletterBool",modelValue:e.newsletterBool.toString(),"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.newsletterBool=t}),label:e.getLabel("newsletterBoolLabel"),onChangeCallback:function(t){return e.newsletterBool=t.target.checked}},null,8,["modelValue","label","onChangeCallback"])]),Mi("article",iL,[Mi("div",lL,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[9]||(t[9]=function(){return e.submit&&e.submit.apply(e,arguments)})},fe(e.getLabel("submitButtonText")),3)])]),e.isSubmitting?(Ai(),Si("div",sL,(i=t[11]||(t[11]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return $O(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return $O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$O(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])])}]]),PL=NL;function RL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var FL={class:"kb-create-frivillig-job"},VL={class:"kb-stafet-flow-title"},zL={class:"kb-stafet-flow-title__title"},UL={class:"kb-stafet-flow-title__description"},jL={class:"kb-stafet-flow-title__description-text"},HL={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},qL={class:"kb-stafet-step__step-section-title"},GL={class:"kb-stafet-step__input-wrapper"},KL={class:"Form__Element__Caption"},ZL={key:0,class:"kb-forms Form__Element__ValidationError"},WL={class:"Form__Element__Caption"},$L={key:0,class:"kb-forms Form__Element__ValidationError"},YL={class:"Form__Element__Caption"},JL={key:0,class:"kb-forms Form__Element__ValidationError"},XL={class:"kb-stafet-step__step-section-title"},QL={class:"kb-stafet-step__input-wrapper"},eD={key:2,class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"}
2,tD={key:3,class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},nD={class:"kb-stafet-step__step-subsection-title"},oD={key:5},rD={class:"kb-stafet-step__step-section-title"},aD={class:"kb-stafet-step__input-wrapper"},iD={class:"kb-stafet-step__step-subsection-title"},lD={class:"kb-stafet-step__texts-description"},sD={class:"kb-stafet-step__step-subsection-title"},cD={class:"kb-edit-frivillig-profile__fieldset"},uD={class:"kb-edit-frivillig-profile__two-column"},dD={key:0,class:"kb-spinner-overlay"},pD={class:"kb-stafet-flow-actions"},fD={class:"kb-stafet-flow-actions__buttons-right-wrapper"},mD=["for"],gD=["autocomplete","required","id","aria-describedby","placeholder","maxlength","disabled"],hD={key:0,class:"kb-form__input-helptext"},bD={"aria-live":"assertive"},vD={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"};const yD=wA("FormInputTextarea",{validatorFunction:function(e){return aE(e)}}),_D=(0,Hb.A)(yD,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",{class:Y(["Form__Element FormTextbox kb-form-input-textarea",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},[Fi(fe(e.label)+" ",1),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)],8,mD),io(Mi("textarea",{class:Y(["FormTextbox__Input",{"validation-error":e.isValidationError}]),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),autocomplete:e.autocomplete,required:!!e.isRequired,id:e.fieldName,"aria-describedby":"".concat(e.fieldName,"__desc"),placeholder:e.placeholder,maxlength:e.maxlength,onInput:t[1]||(t[1]=function(t){return e.$emit("update:modelValue",t.target.value)}),onChange:t[2]||(t[2]=function(){return e.formLink&&e.formLink.apply(e,arguments)}),disabled:e.readOnly},null,42,gD),[[Ws,e.localValue]]),e.helpMessageLabel?(Ai(),Si("p",hD,fe(e.helpMessageLabel),
21)):zi("v-if",!0),Mi("div",bD,[e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",vD,fe(e.errorMessageLabel),1)):zi("v-if",!0)])],2)}]]);function AD(e){return AD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AD(e)}function kD(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return xD(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(xD(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xD(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,xD(d,"constructor",c),xD(c,"constructor",s),s.displayName="GeneratorFunction",xD(c,r,"GeneratorFunction"),xD(d),xD(d,r,"Generator"),xD(d,o,function(){return this}),xD(d,"toString",function(){return"[object Generator]"}),(kD=function(){return{w:a,m:p}})()}function xD(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}xD=function(e,t,n,o){function a(t,n){xD(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},xD(e,t,n,o)}function wD(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function CD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ED(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CD(Object(n),!0).forEach(function(t){SD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SD(e,t,n){return(t=function(e){var t=function(e){if("object"!=AD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=AD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==AD(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TD={name:"CreateFrivilligJob",components:{Editor:SO,AttachmentsEditor:hk,FormInputTextField:mE,FormInputNameField:gL,FormAddressField:tS,FormInputEmailField:kL,FormInputDropdown:XB,FormCheckbox:dB,FormInputPhoneField:IL,FormInputTextarea:_D},props:{subjects:{type:Array,required:!0},jobInfo:{type:Object,required:!1},isEditContext:{type:Boolean,required:!1,default:!1}},setup:function(e){var t,n,o,r,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,_,A,k,x,w,C,E,S,T,I,B,O,L,D,M,N,P,R,F,V,z,U,j=Af(),H=Kt(!1),q=e.isEditContext?"frivilligjob/updateFrivilligjob":"frivilligjob/createFrivilligjob",G=bl(function(){return j.state.frivilligjob.isSubmitting}),K=Kt({name:"",url:"/".concat("api/frivillig/frivilligjob/[frivilligjobId]/image".replace("[frivilligjobId]",null===(t=e.jobInfo)||void 0===t?void 0:t.jobId)),size:""}),Z=Kt(!0),W=Kt(null!==(n=null===(o=e.jobInfo)||void 0===o?void 0:o.startDate)&&void 0!==n?n:""),$=Kt(null!==(r=null===(a=e.jobInfo)||void 0===a?void 0:a.startTime)&&void 0!==r?r:""),Y=Kt(null!==(i=null===(l=e.jobInfo)||void 0===l?void 0:l.endDate)&&void 0!==i?i:""),J=Kt(null!==(s=null===(c=e.jobInfo)||void 0===c?void 0:c.endTime)&&void 0!==s?s:""),X=Kt(null!==(u=null===(d=e.jobInfo)||void 0===d?void 0:d.expirationDate)&&void 0!==u?u:""),Q=Kt(null!==(p=null!==(f=e.jobInfo)&&void 0!==f&&f.hasImage?[K.value]:[])&&void 0!==p?p:[]),ee=Kt(!1),te=Kt({jobId:null===(m=e.jobInfo)||void 0===m?void 0:m.jobId,jobTitle:null===(g=e.jobInfo)||void 0===g?void 0:g.jobTitle,aboutJob:null===(h=e.jobInfo)||void 0===h?void 0:h.aboutJob,offerDescription:null===(b=e.jobInfo)||void 0===b?void 0:b.offerDescription,expectationDescription:null===(v=e.jobInfo)||void 0===v?void 0:v.expectationDescription,placeName:null!==(y=null===(_=e.jobInfo)||void 0===_?void 0:_.placeName)&&void 0!==y?y:"",address:null!==(A=null===(k=e.j
2obInfo)||void 0===k?void 0:k.address)&&void 0!==A?A:"",postalCode:null!==(x=null===(w=e.jobInfo)||void 0===w?void 0:w.postalCode)&&void 0!==x?x:"",city:null!==(C=null===(E=e.jobInfo)||void 0===E?void 0:E.city)&&void 0!==C?C:"",isCountrywide:null===(S=null===(T=e.jobInfo)||void 0===T?void 0:T.isCountrywide)||void 0===S||S,isSelfContactPerson:null===(I=null===(B=e.jobInfo)||void 0===B?void 0:B.isSelfContactPerson)||void 0===I||I,contactPersonName:null!==(O=null===(L=e.jobInfo)||void 0===L?void 0:L.contactPersonName)&&void 0!==O?O:"",contactPersonEmail:null!==(D=null===(M=e.jobInfo)||void 0===M?void 0:M.contactPersonEmail)&&void 0!==D?D:"",contactPersonPhone:null!==(N=null===(P=e.jobInfo)||void 0===P?void 0:P.contactPersonPhone)&&void 0!==N?N:"",timeConsumption:null===(R=e.jobInfo)||void 0===R?void 0:R.timeConsumption,hasSpecificTime:null!==(F=null===(V=e.jobInfo)||void 0===V?void 0:V.hasSpecificTime)&&void 0!==F&&F}),ne=Kt(null!==(z=null===(U=e.jobInfo)||void 0===U?void 0:U.hasSpecificDate)&&void 0!==z&&z),oe=Kt(!1),re=function(e,t,n,o){return o||e&&uO(t)&&n};function ae(e){return!isNaN(new Date(e))}var ie=function(e,t){return!(ae(e)&&ae(t)&&e>t)},le=function(e,t){var n=t||"12:00",o="".concat(e,"T").concat(n,":00");return new Date(o)};return{jobData:te,showSpinner:oe,displayError:H,isSubmitting:G,hasSpecificDate:ne,startDate:W,endDate:Y,startTime:$,endTime:J,isPeriodValid:Z,expirationDate:X,images:Q,getLabel:function(e){return dA({labelKey:e,labelCollection:"CreateFrivilligJob"})},emailValidator:nE,isBoolean:cO,nonEmptyStringValidator:tE,phoneValidator:oE,postalCodeValidator:uO,addressValidator:re,isFutureDate:function(e){return!!e&&new Date<=new Date("".concat(e))},submitCreateJob:function(){if(H.value=!0,ie(le(W.value,$.value),le(Y.value,J.value))&&tE(te.value.jobTitle)&&tE(te.value.aboutJob)&&tE(te.value.offerDescription)&&tE(te.value.expectationDescription)&&re(te.value.address,te.value.postalCode,te.value.city,te.value.isCountrywide)&&tE(te.value.timeConsumption)&&(te.value.isSelfContactPerson||tE(te.value.contactPersonEmail)&&tE(te.value.contactPersonName))){var t=ED(ED({},te.value),{},{startDate:le(W.value,$.value),endDate:le(Y.value,J.value),expirationDate:X.value,subjects:e.subjects.filter(function(e){return!0===e.isSelected}).map(function(e){return e.value})});j.dispatch(q,t).then(function(){var e,t=(e=kD().m(function e(t){var n;return kD().w(function(e){for(;;)switch(e.n){case 0:if(t.continueUrl){e.n=1;break}return H.value=!0,e.a(2);case 1:if(ee.value){e.n=2;break}return window.location.href=t.continueUrl,e.a(2);case 2:if(1!=Q.value.length){e.n=4;break}return(n=new FormData).append("image",Q.value[0]),e.n=3,j.dispatch("frivilligjob/submitFrivilligjobImage",{id:t.jobId,body:n});case 3:e.n=5;break;case 4:return e.n=5,j.dispatch("frivilligjob/removeFrivilligjobImage",t.jobId);case 5:window.location.href=t.continueUrl;case 6:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){wD(a,o,r,i,l,"next",e)}function l(e){wD(a,o,r,i,l,"throw",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}())}else H.value=!0},setSubject:function(t,n){return e.subjects.find(function(e){return e.value===t}).isSelected=n},setSpecificDateCheckbox:function(e){ne.value=e.target.checked,ne.value||(W.value="",Y.value="",$.value="",J.value="",te.value.hasSpecificTime=!1)},setSpecificTimeCheckbox:function(e){te.value.hasSpecificTime=e.target.checked,te.value.hasSpecificTime||($.value="",J.value="")},handleTimeConsumptionSelector:function(e){te.value.timeConsumption=e.target.value},setImage:function(e){ee.value=!0,Q.value=e},setIsCountryWide:function(e){te.value.isCountrywide=e.target.checked,te.value.isCountrywide&&(te.value.address="",te.value.city="",te.value.postalCode="")}}}},ID=TD,BD=(0,Hb.A)(ID,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputTextField"),s=qr("editor"),c=qr("FormCheckbox"),u=qr("FormAddressField"),d=qr("AttachmentsEditor");return Ai(),Si("article",FL,[Mi("section",VL,[Mi("h1",zL,fe(e.isEditContext?e.getLabel("editTitle"):e.getLabel("createTitle")),1),t[23]||(t[23]=Mi("div",{class:"kb-stafet-flow-title__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",UL,[Mi("p",jL,fe(e.getLabel("jobDescription")),1)])]),Mi("section",HL,[Mi("h2",qL,fe(e.getLabel("descriptionTitle")),1),Mi("div",GL,[Ni(l,{isRequired:"",type:"text",modelValue:e.jobData.jobTitle,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.jobData.jobTitle=t}),fieldName:"jobTitle",label:e.getLabel("jobTitleLabel"),isValidationError:e.displayError&&!e.nonEmptyStringValidator(e.jobData.jobTitle),maxlength:100,errorMessageLabel:e.getLabel("requiredFieldMissingError")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Mi("div",{class:Y(["Form__Element",{ValidationRequired:!0}])},[Mi("label",KL,fe(e.getLabel("aboutJobLabel")),1),Ni(s,{"api-key":"no-api-key",modelValue:e.jobData.aboutJob,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.jobData.aboutJob=t}),init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",setup:function(t){var n=function(){return t.getContent({format:"text"}).length};t.on("beforeinput",function(e){var t=n();e.inputType&&e.inputType.startsWith("delete")||t>=3e3&&e.preventDefault()}),t.on("paste",function(o){o.preventDefault();var r=(o.clipboardData||e.window.clipboardData).getData("text"),a=3e3-n();if(!(a<=0)){var i=r.substring(0,a);t.insertContent(i)}})}}},null,8,["modelValue","init"]),e.displayError&&!e.nonEmptyStringValidator(e.jobData.aboutJob)?(Ai(),Si("p",ZL,fe(e.getLabel("requiredFieldMissingError")),1)):zi("v-if",!0)]),Mi("div",{class:Y(["Form__Element",{ValidationRequired:!0}])},[Mi("label",WL,fe(e.getLabel("expectationDescription")),1),Ni(s,{"api-key":"no-api-key",modelValue:e.jobData.expectationDescription,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.jobData.expectationDescription=t}),init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",setup:function(t){var n=function(){return t.getContent({format:"text"}).length};t.on("beforeinput",function(e){var t=n();e.inputType&&e.inputType.startsWith("delete")||t>=3e3&&e.preventDefault()}),t.on("paste",function(o){o.preventDefault();var r=(o.clipboardData||e.window.clipboardData).getData("text"),a=3e3-n();if(!(a<=0)){var i=r.substring(0,a);t.insertContent(i)}})}}},null,8,["modelValue","init"]),e.displayError&&!e.nonEmptyStringValidator(e.jobData.expectationDescription)?(Ai(),Si("p",$L,fe(e.getLabel("requiredFieldMissingError")),1)):zi("v-if",!0)]),Mi("div",{class:Y(["Form__Element",{ValidationRequired:!0}])},[Mi("label",YL,fe(e.getLabel("offerDescriptionLabel")),1),Ni(s,{"api-key":"no-api-key",modelValue:e.jobData.offerDescription,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.jobData.offerDescription=t}),init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",setup:function(t){var n=function(){return t.getContent({format:"text"}).length};t.on("beforeinput",function(e){var t=n();e.inputType&&e.inputType.startsWith("delete")||t>=3e3&&e.preventDefault()}),t.on("paste",function(o){o.preventDefault();var r=(o.clipboardData||e.window.clipboardData).getData("text"),a=3e3-n();if(!(a<=0)){var i=r.substring(0,a);t.insertContent(i)}})}}},null,8,["modelValue","init"]),e.displayError&&!e.nonEmptyStringValidator(e.jobData.offerDescription)?(Ai(),Si("p",JL,fe(e.getLabel("requiredFieldMissingError")),1)):zi("v-if",!0)])]),t[25]||(t[25]=Mi("hr",{class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},null,-1)),Mi("h2",XL,fe(e.getLabel("jobInfoTitle")),1),Mi("div",QL,[Ni(l,{type:"text",modelValue:e.jobData.placeName,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.jobData.placeName=t}),fieldName:"placeName",label:e.getLabel("placeNameLabel"),maxlength:100,placeholder:e.getLabel("placeNamePlaceholder")},null,8,["modelValue","label","placeholder"]),Ni(c,{fieldName:"isCountrywide",modelValue:e.jobData.isCountrywide.toString(),"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.jobData.isCountrywide=t}),label:e.getLabel("isCountrywideLabel"),onChangeCallback:function(t){return e.setIsCountryWide(t)}},null,8,["modelValue","label","onChangeCallback"]),e.jobData.isCountrywide?zi("v-if",!0):(Ai(),Ti(u,{key:0,"address-line-value":e.jobData.address,"onUpdate:addressLineValue":t[6]||(t[6]=function(t){return e.jobData.address=t}),"zip-code-value":e.jobData.postalCode,"onUpdate:zipCodeValue":t[7]||(t[7]=function(t){return e.jobData.postalCode=t}),"city-value":e.jobData.city,"onUpdate:cityValue":t[8]||(t[8]=function(t){return e.jobData.city=t}),addressLabel:e.getLabel("addressLabel"),zipCodeLabel:e.getLabel("zipCodeLabel"),cityLabel:e.getLabel("cityLabel"),addressPlaceholder:e.getLabel("addressPlaceholderL
2abel"),zipCodePlaceholder:e.getLabel("zipCodePlaceholderLabel"),cityPlaceholder:e.getLabel("cityPlaceholderLabel"),isValidationError:e.displayError&&!e.addressValidator(e.jobData.address,e.jobData.postalCode,e.jobData.city,e.jobData.isCountrywide),errorMessageLabel:e.getLabel("addressErrorLabel")},null,8,["address-line-value","zip-code-value","city-value","addressLabel","zipCodeLabel","cityLabel","addressPlaceholder","zipCodePlaceholder","cityPlaceholder","isValidationError","errorMessageLabel"])),Ni(c,{fieldName:"hasSpecificDate",modelValue:e.hasSpecificDate.toString(),"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.hasSpecificDate=t}),label:e.getLabel("hasSpecificDateLabel"),onChangeCallback:function(t){return e.setSpecificDateCheckbox(t)}},null,8,["modelValue","label","onChangeCallback"]),e.hasSpecificDate?(Ai(),Ti(c,{key:1,fieldName:"hasSpecificTime",modelValue:e.jobData.hasSpecificTime.toString(),"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.jobData.hasSpecificTime=t}),label:e.getLabel("hasSpecificTimeLabel"),onChangeCallback:function(t){return e.setSpecificTimeCheckbox(t)}},null,8,["modelValue","label","onChangeCallback"])):zi("v-if",!0),e.hasSpecificDate||e.jobData.hasSpecificTime?(Ai(),Si("div",eD,[e.hasSpecificDate?(Ai(),Ti(l,{key:0,fieldName:"startDate",type:"date",modelValue:e.startDate,"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.startDate=t}),label:e.getLabel("startDateLabel")},null,8,["modelValue","label"])):zi("v-if",!0),e.jobData.hasSpecificTime?(Ai(),Ti(l,{key:1,fieldName:"startTime",type:"time",modelValue:e.startTime,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.startTime=t}),label:e.getLabel("startTimeLabel")},null,8,["modelValue","label"])):zi("v-if",!0)])):zi("v-if",!0),e.jobData.hasSpecificTime||e.hasSpecificDate?(Ai(),Si("div",tD,[e.hasSpecificDate?(Ai(),Ti(l,{key:0,fieldName:"endDate",type:"date",modelValue:e.endDate,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.endDate=t}),label:e.getLabel("endDateLabel"),isValidationError:e.displayError&&!e.isPeriodValid,errorMessageLabel:e.getLabel("periodError")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])):zi("v-if",!0),e.jobData.hasSpecificTime?(Ai(),Ti(l,{key:1,fieldName:"endTime",type:"time",modelValue:e.endTime,"onUpdate:modelValue":t[14]||(t[14]=function(t){return e.endTime=t}),label:e.getLabel("endTimeLabel")},null,8,["modelValue","label"])):zi("v-if",!0)])):zi("v-if",!0),Ni(l,{isRequired:"",fieldName:"timeConsumption",modelValue:e.jobData.timeConsumption,"onUpdate:modelValue":t[15]||(t[15]=function(t){return e.jobData.timeConsumption=t}),label:e.getLabel("timeConsumptionLabel"),placeholder:e.getLabel("timeConsumptionPlaceholder"),isValidationError:e.displayError&&!e.nonEmptyStringValidator(e.jobData.timeConsumption),errorMessageLabel:e.getLabel("requiredFieldMissingError"),maxlength:100},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel"]),Mi("h3",nD,fe(e.getLabel("contactPersonTitle")),1),e.isEditContext?zi("v-if",!0):(Ai(),Ti(c,{key:4,fieldName:"isSelfContactPerson",modelValue:e.jobData.isSelfContactPerson.toString(),"onUpdate:modelValue":t[16]||(t[16]=function(t){return e.jobData.isSelfContactPerson=t}),label:e.getLabel("isSelfContactPersonLabel"),onChangeCallback:function(t){return e.jobData.isSelfContactPerson=t.target.checked}},null,8,["modelValue","label","onChangeCallback"])),e.isEditContext||!e.jobData.isSelfContactPerson?(Ai(),Si("div",oD,[Ni(l,{fieldName:"contactPersonName",type:"text",modelValue:e.jobData.contactPersonName,isRequired:!0,"onUpdate:modelValue":t[17]||(t[17]=function(t){return e.jobData.contactPersonName=t}),isValidationError:e.displayError&&!e.nonEmptyStringValidator(e.jobData.contactPersonName),label:e.getLabel("contactPersonNameLabel"),errorMessageLabel:e.getLabel("contactPersonNameErrorLabel"),maxlength:100},null,8,["modelValue","isValidationError","label","errorMessageLabel"]),Ni(l,{fieldName:"contactPersonEmail",type:"email",modelValue:e.jobData.contactPersonEmail,isRequired:!0,"onUpdate:modelValue":t[18]||(t[18]=function(t){return e.jobData.contactPersonEmail=t}),label:e.getLabel("contactPersonEmailLabel"),isValidationError:e.displayError&&!e.emailValidator(e.jobData.contactPersonEmail),errorMessageLabel:e.getLabel("contactPersonEmailErrorLabel"),maxlength:100},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(l,{fieldName:"
2contactPersonPhone",type:"phone",modelValue:e.jobData.contactPersonPhone,"onUpdate:modelValue":t[19]||(t[19]=function(t){return e.jobData.contactPersonPhone=t}),label:e.getLabel("contactPersonPhoneLabel"),isValidationError:e.displayError&&(0===e.jobData.contactPersonPhone.length||!e.phoneValidator(e.jobData.contactPersonPhone)),errorMessageLabel:e.getLabel("contactPersonPhoneErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])):zi("v-if",!0)]),t[26]||(t[26]=Mi("hr",{class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},null,-1)),Mi("h2",rD,fe(e.getLabel("aboutTitle")),1),Mi("div",aD,[Mi("h3",iD,fe(e.getLabel("imageSubsectionTitle")),1),Mi("label",lD,fe(e.getLabel("imageSubsectionDescription")),1),Ni(d,{files:e.images,acceptedFileTypes:".gif, .jpeg, .jpg, .bmp, .png",maxAttachments:1,"onUpdate:filesToAdd":t[20]||(t[20]=function(t){return e.setImage(t)})},null,8,["files"]),Mi("h3",sD,fe(e.getLabel("subjectsTitle")),1),Mi("fieldset",cD,[Mi("div",uD,[(Ai(!0),Si(gi,null,Yr(e.subjects,function(t,n){return Ai(),Si("div",{class:"kb-stafet-step__input-wrapper",key:n},[Ni(c,{fieldName:t.name,modelValue:t.isSelected.toString(),"onUpdate:modelValue":function(e){return t.isSelected=e},label:t.name,onChangeCallback:function(n){return e.setSubject(t.value,n.target.checked)}},null,8,["fieldName","modelValue","onUpdate:modelValue","label","onChangeCallback"])])}),128))])]),Ni(l,{fieldName:"expirationDate",type:"date",modelValue:e.expirationDate,"onUpdate:modelValue":t[21]||(t[21]=function(t){return e.expirationDate=t}),label:e.getLabel("expirationDateLabel"),isRequired:!0,isValidationError:e.displayError&&!e.isFutureDate(e.expirationDate),errorMessageLabel:e.getLabel("expirationDateErrorLabel")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])]),e.isSubmitting?(Ai(),Si("div",dD,(i=t[24]||(t[24]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return RL(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return RL(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RL(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0),Mi("nav",pD,[Mi("div",fD,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[22]||(t[22]=function(){return e.submitCreateJob&&e.submitCreateJob.apply(e,arguments)})},fe(e.getLabel("submitButtonLabel")),3)])])])])}]]),OD=BD;function LD(e){return LD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LD(e)}function DD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function MD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DD(Object(n),!0).forEach(function(t){ND(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ND(e,t,n){return(t=function(e){var t=function(e){if("object"!=LD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LD(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PD={class:"kb-stafet-donation-flow kb-create-gallery"},RD={class:"kb-stafet-flow-title"},FD={class:"kb-stafet-flow-title__title"},VD={class:"kb-stafet-flow-title__description"},zD={class:"kb-stafet-flow-title__description-text"},UD={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},jD={class:"kb-stafet-step__input-wrapper"},HD={class:"Form__Element__Caption"},qD={class:"kb-forms Form__Element__ValidationError"}
2,GD={key:0,class:"kb-create-gallery__files"},KD={class:"kb-create-gallery__files-content-wrapper-left"},ZD={class:"kb-create-gallery__files-image kb-image-module"},WD={class:"kb-image-module__image-container"},$D={class:"kb-image-module__image"},YD=["src"],JD={class:"kb-create-gallery__files-content-wrapper-right"},XD={class:"kb-create-gallery__files-details-wrapper"},QD=["onClick"],eM={class:"kb-form__file-upload FormFileUpload",for:"galleryImages"},tM={class:"kb-form__file-upload-text-wrapper"},nM={class:"kb-form__file-upload-text"},oM={class:"kb-form__file-upload-format-types"},rM={class:"kb-forms Form__Element__ValidationError"},aM={class:"kb-stafet-flow-actions"},iM={class:"kb-stafet-flow-actions__buttons-right-wrapper"};function lM(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return sM(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(sM(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,sM(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,sM(d,"constructor",c),sM(c,"constructor",s),s.displayName="GeneratorFunction",sM(c,r,"GeneratorFunction"),sM(d),sM(d,r,"Generator"),sM(d,o,function(){return this}),sM(d,"toString",function(){return"[object Generator]"}),(lM=function(){return{w:a,m:p}})()}function sM(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}sM=function(e,t,n,o){function a(t,n){sM(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},sM(e,t,n,o)}function cM(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const uM={name:"CreateGallery",components:{FormInputTextField:mE,Editor:SO},props:{groupName:{type:String,required:!0,default:""},groupId:{type:String,required:!0},content:{type:Object,required:!1,default:null}},setup:function(e){var t,n,o,r=Af(),a=Kt(null===(t=e.content)||void 0===t?void 0:t.title),i=Kt(null===(n=e.content)||void 0===n?void 0:n.description),l=Kt(null===(o=e.content)||void 0===o?void 0:o.files),s=Kt(!1),c=function(){var t,n=(t=lM().m(function t(){var n,o,c;return lM().w(function(t){for(;;)switch(t.n){case 0:if(s.value=!0,""===a.value||""===i.value||e.isGallery&&!(l.value.length>0)){t.n=5;break}if(n={title:a.value,content:i.value,images:l.value},e.content){t.n=2;break}return t.n=1,r.dispatch("forum/submitCreateGallery",{body:n,id:e.groupId});case 1:c=t.v,t.n=4;break;case 2:return t.n=3,r.dispatch("forum/submitEditGallery",{body:n,id:e.groupId});case 3:c=t.v;case 4:(o=c).continueUrl&&(window.location.href=o.continueUrl);case 5:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(o,r){var a=t.apply(e,n);function i(e){cM(a,o,r,i,l,"next",e)}function l(e){cM(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();return{getLabel:function(e,t){var n=r.getters["labels/getLabel"]({labelCollection:"createGallery",labelKey:e});return t&&t.forEach(function(e,t){n=n.replace("{".concat(t,"}"),e)}),n},galleryTitle:a,galleryContent:i,galleryImages:l,showInputErrors:s,submitCreateGallery:c,removeFile:function(e){l.value=Array.from(l.value).filter(function(t){return t.name!==e})},onFileChange:function(e){var t=e.target.files;Array.from(t).forEach(function(e){var t=e;t.url=URL.createObjectURL(e),l.value.push(t)})}}}},dM=uM,pM=(0,Hb.A)(dM,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("editor");return Ai(),Si("article",PD,[Mi("section",RD,[Mi("h1",FD,fe(e.getLabel("title",[e.groupName])),1),t[4]||(t[4]=Mi("div",{class:"kb-stafet-flow-title__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",VD,[Mi("p",zD,fe(e.getLabel("description")),1)])]),Mi("section",UD,[Mi("div",jD,[Ni(i,{fieldName:"galleryTitle",modelValue:e.galleryTitle,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.galleryTitle=t}),label:e.getLabel("galleryTitleLabel"),isRequired:!0,isValidationError:""===e.galleryTitle&&e.showInputErrors,errorMessageLabel:e.getLabel("galleryTitleErrorMessage")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Mi("div",{class:Y(["kb-create-gallery__texteditor ValidationRequired",""===e.galleryContent&&e.showInputErrors?"kb-create-gallery__texteditor--error":""])},[Mi("label",HD,fe(e.getLabel("galleryContentLabel")),1),Ni(l,{"api-key":"no-api-key",init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist link",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl"},modelValue:e.galleryContent,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.galleryContent=t})},null,8,["modelValue"]),Mi("p",qD,fe(e.getLabel("galleryContentErrorMessage")),1)],2),e.galleryImages&&e.galleryImages.length>0?(Ai(),Si("div",GD,[(Ai(!0),Si(gi,null,Yr(e.galleryImages,function(t,n){return Ai(),Si("div",{key:n,class:"kb-create-gallery__files-content-wrapper"},[Mi("div",KD,[Mi("figure",ZD,[Mi("div",WD,[Mi("picture",$D,[Mi("img",{src:t.url,alt:"gallery image"},null,8,YD)])])])]),Mi("div",JD,[Mi("div",XD,[Mi("p",null,fe(t.name),1),Mi("p",null,fe(e.getLabel("fileSizeLabel"))+": "+fe((t.size/1024/1e3).toFixed(3))+" MB",1)]),Mi("button",{class:"kb-button kb-button--full-color-spot kb-create-gallery__files-delete-button",onClick:function(){return e.removeFile(t.name)}},fe(e.getLabel("fileButtonRemove")),9,QD)])])}),128))])):zi("v-if",!0),Mi("div",{class:Y(["kb-create-gallery__file-upload",e.galleryImages&&0===e.galleryImages.length&&e.showInputErrors&&e.isGallery?"kb-create-gallery__file-upload--error":""])},[Mi("label",eM,[Mi("input",{class:"kb-form__file-upload-input FormFileUpload__Input",id:"galleryImages",type:"file",accept:"image/png, image/jpg, image/jpeg, .svg",onChange:t[2]||(t[2]=function(){return e.onFileChange&&e.onFileChange.apply(e,arguments)})},null,32),t[5]||(t[5]=Vi('<div class="kb-form__file-upload-svg"><svg viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity=".4" fill="#3C3C3C"><path d="m20.024 13.05.967-.405-.206-.481c-.84-2.002-.617-4.14.596-5.683 1.214-1.542 3.095-2.264 5.32-2.093l-1.49 1.438.73.75 2.016-1.961a1.008 1.008 0 0 0 0-1.44l-2.016-1.961-.73.75 1.396 1.357c-2.505-.133-4.674.757-6.049 2.518-1.451 1.856-1.72 4.375-.736 6.72l.203.49ZM18.141 24.419v1.046h-5.93v-1.046H.699v2.965a1.214 1.214 0 0 0 1.221 1.22h26.163a1.22 1.22 0 0 0 1.22-1.22v-2.965H18.142Zm10.116 2.965a.174.174 0 0 1-.174.174H1.92a.178.178 0 0 1-.125-.052.175.175 0 0 1-.05-.122v-1.919h9.42v1.047h8.023v-1.047h9.07v1.919ZM4.886 21.977H2.793V9.593a.174.174 0 0 1 .174-.174h14.128V8.372H2.967a1.22 1.22 0 0 0-1.22 1.221v13.43h3.139v-1.046Z"></path><path d="M28.256 23.023V9.593a1.22 1.22 0 0 0-1.22-1.22h-4.013v1.046h4.012a.174.174 0 0 1 .174.174v13.43h1.047Z"></path></g></svg></div>',1)),Mi("div",tM,[Mi("p",nM,fe(e.getLabel("uploadTitle")),1),Mi("small",oM,fe(e.getLabel("uploadFormats")),1)])]),Mi("p",rM,fe(e.getLabel("galleryContentErrorMessage")),1)],2)]),Mi("nav",aM,[Mi("div",iM,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[3]||(t[3]=function(){return e.submitCreateGallery&&e.submitCreateGallery.apply(e,arguments)})},fe(e.content?e.getLabel("editButtonLabel"):e.getLabel("createButtonLabel")),1)])])])])}]]);function fM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var mM={class:"kb-overlay-styles__content-wrapper"},gM={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},hM={class:"kb-overlay-styles__hero"},bM={class:"kb-overlay-styles__hero-wrapper"},vM={class:"kb-overlay-styles__hero-title"},yM={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},_M={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},AM={class:"kb-stafet-step__input-wrapper"},kM={class:"kb-stafet-step__input-wrapper"},xM={class:"kb-stafet-flow-actions"},wM={class:"kb-stafet-flow-actions__buttons-left-wrapper"},CM={key:0,class:"kb-spinner-overlay"};const EM={name:"CreateNewFileOverlay",components:{FormInputTextField:mE,FormInputDropdown:XB},setup:function(){var e=Af(),t=Kt(""),n=Kt(""),o=bl(function(){return e.state.frivillige.file_type_dropdown_options}),r=bl(function(){return e.state.frivillige.is_submitting}),a=Kt(!1);return{fileName:t,fileTypeDropdown:n,isSubmitting:r,displayError:a,fileTypeDropdownOptions:o,submitCreateNewFile:function(){var o=rE(t.value)&&tE(t.value)&&tE(n.value);a.value=!o;var r={fileName:t.value,dokumentType:n.value,gruppeKode:e.state.frivillige.globalGruppeKode,mappeKode:e.getters["frivillige/get_global_folder_id"]};o&&e.dispatch("frivillige/submitCreateNewFile",{body:r}).then(function(){e.dispatch("main/closePageOverlay"),e.dispatch("search/refreshSearches")})},nonEmptyStringValidator:tE,nameValidator:rE,getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"CreateNewFileOverlay",labelKey:t})}}}},SM=EM,TM=(0,Hb.A)(SM,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputTextField"),s=qr("FormInputDropdown");return Ai(),Si("div",mM,[Mi("article",{class:Y(["kb-overlay-styles kb-create-new-file-overlay",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",gM,[Mi("div",hM,[Mi("div",bM,[Mi("h4",vM,fe(e.getLabel("title")),1)])]),t[3]||(t[3]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",yM,[Mi("section",_M,[Mi("div",AM,[Ni(l,{isRequired:"",modelValue:e.fileName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.fileName=t}),fieldName:"fileName",type:"text",label:e.getLabel("fileNameLabel"),isValidationError:e.displayError&&!e.nameValidator(e.fileName),placeholder:e.getLabel("fileNamePlaceholder"),errorMessageLabel:e.getLabel("fileNameError")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"])]),Mi("div",kM,[Ni(s,{isRequired:"",modelValue:e.fileTypeDropdown,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.fileTypeDropdown=t}),fieldName:"fileTypeDropdown",label:e.getLabel("fileTypeDropdownLabel"),isValidationError:e.displayError&&!e.nonEmptyStringValidator(e.fileTypeDropdown),placeholder:e.getLabel("fileTypeDropdownPlaceholder"),errorMessageLabel:e.getLabel("fileTypeDropdownError"),selectOptions:e.fileTypeDropdownOptions,onChangeCallback:function(t){return e.fileTypeDropdown=t.target.value}},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel","selectOptions","onChangeCallback"])]),Mi("nav",xM,[Mi("div",wM,[Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[2]||(t[2]=function(){return e.submitCreateNewFile&&e.submitCreateNewFile.apply(e,arguments)})},fe(e.getLabel("submitFileButtonText")),1)])])])])]),e.isSubmitting?(Ai(),Si("div",CM,(i=t[4]||(t[4]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return fM(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return fM(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fM(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)])}]]),IM=TM;function BM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var OM={class:"kb-stafet-donation-flow kb-create-post"},LM={class:"kb-stafet-flow-title"},DM={class:"kb-stafet-flow-title__title"},MM={key:0},NM={class:"kb-stafet-flow-title__description"},PM={class:"kb-stafet-flow-title__description-text"},RM={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},FM={class:"kb-stafet-step__input-wrapper"},VM={class:"Form__Element__Caption"},zM={"aria-live":"assertive"},UM={key:0,role:"alert",class:"kb-forms Form__Element__ValidationError"},jM={key:0,class:"kb-spinner-overlay"},HM={class:"kb-stafet-flow-actions"},qM={class:"kb-stafet-flow-actions__buttons-right-wrapper"};function GM(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return KM(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(KM(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,KM(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,KM(d,"constructor",c),KM(c,"constructor",s),s.displayName="GeneratorFunction",KM(c,r,"GeneratorFunction"),KM(d),KM(d,r,"Generator"),KM(d,o,function(){return this}),KM(d,"toString",function(){return"[object Generator]"}),(GM=function(){return{w:a,m:p}})()}function KM(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}KM=function(e,t,n,o){function a(t,n){KM(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},KM(e,t,n,o)}function ZM(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const WM={name:"CreatePost",components:{FormInputTextField:mE,AttachmentsEditor:hk,Editor:SO},props:{groupName:{type:String,required:!0,default:""},groupDescription:{type:String,required:!0,default:""},groupId:{type:String,required:!0},content:{type:Object,required:!1,default:null},postId:{type:String,required:!0}},setup:function(e){var t,n,o,r,a=Af(),i=Kt(null!==(t=null===(n=e.content)||void 0===n?void 0:n.title)&&void 0!==t?t:""),l=Kt(null!==(o=null===(r=e.content)||void 0===r?void 0:r.description)&&void 0!==o?o:""),s=Kt([]),c=Kt([]),u=Kt(!1),d=Kt(!1),p=function(){return i.value&&l.value},f=function(){var t,n=(t=GM().m(function t(){var n,o,r;return GM().w(function(t){for(;;)switch(t.n){case 0:if(!d.value){t.n=1;break}return t.a(2);case 1:if(d.value=!0,p()){t.n=2;break}return u.value=!0,d.value=!1,t.a(2);case 2:if((n=new FormData).append("title",i.value),n.append("content",l.value),s.value.forEach(function(e){n.append("filesToAdd",e)}),c.value.forEach(function(e){n.append("filesToRemove",e)}),e.content){t.n=4;break}return t.n=3,a.dispatch("forum/submitCreatePost",{body:n,id:e.groupId});case 3:r=t.v,t.n=6;break;case 4:return t.n=5,a.dispatch("forum/submitEditPost",{body:n,id:e.groupId,postId:e.postId});case 5:r=t.v;case 6:if(!(o=r).redirectUrl){t.n=7;break}return window.location.href=o.redirectUrl,t.a(2);case 7:d.value=!1;case 8:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(o,r){var a=t.apply(e,n);function i(e){ZM(a,o,r,i,l,"next",e)}function l(e){ZM(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();return Dr(function(){var e=0;!function t(){var n=document.querySelectorAll("".concat(".tox-toolbar__primary"," ").concat("button[tabindex]"));if(0===n.length&&e<10)return e++,setTimeout(t,500);n.length>0?(n.forEach(function(e){return e.setAttribute("tabindex",0)}),n.forEach(function(e){return e.addEventListener("keydown",function(e){return e.stopPropagation()})}),console.log("addTabnavigationToToolbar: added tabindex to buttons",n,"retried ",e,"times")):console.log("addTabnavigationToToolbar: FAILED in adding tabindex to buttons",n,"retried ",e,"times")}()}),{getLabel:function(e,t){var n=a.getters["labels/getLabel"]({labelCollection:"createPost",labelKey:e});return t&&t.forEach(function(e,t){n=n.replace("{".concat(t,"}"),e)}),n},postTitle:i,postContent:l,postFilesToAdd:s,postFilesToRemove:c,showInputErrors:u,submitCreatePost:f,updateTextarea:function(e){l.value=e.target.value},isSubmitting:d}}},$M=WM,YM=(0,Hb.A)($M,[["render",function(e,t,n,o,r,a){var i,l,s,c=qr("FormInputTextField"),u=qr("editor"),d=qr("AttachmentsEditor");return Ai(),Si("article",OM,[Mi("section",LM,[Mi("h1",DM,fe(e.getLabel("title",[e.groupName])),1),e.groupDescription?(Ai(),Si("div",MM,[t[5]||(t[5]=Mi("div",{class:"kb-stafet-flow-title__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",NM,[Mi("p",PM,fe(e.groupDescription),1)])])):zi("v-if",!0)]),Mi("section",RM,[Mi("div",FM,[Ni(c,{fieldName:"postTitle",modelValue:e.postTitle,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.postTitle=t}),label:e.getLabel("postTitleLabel"),maxlength:100,isRequired:!0,isValidationError:""===e.postTitle&&e.showInputErrors,errorMessageLabel:e.getLabel("postTitleErrorMessage")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Mi("div",{class:Y(["kb-create-post__texteditor ValidationRequired",""===e.postContent&&e.showInputErrors?"kb-create-post__texteditor--error":""])},[Mi("label",VM,fe(e.getLabel("postContentLabel")),1),Ni(u,{"api-key":"no-api-key",init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl"},modelValue:e.postContent,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.postContent=t})},null,8,["modelValue"]),Mi("div",zM,[""===e.postContent&&e.showInputErrors?(Ai(),Si("p",UM,fe(e.getLabel("postContentErrorMessage")),1)):zi("v-if",!0)])],2),Ni(d,{files:null!==(i=null===(l=e.content)||void 0===l?void 0:l.files)&&void 0!==i?i:[],"onUpdate:filesToAdd":t[2]||(t[2]=function(t){return e.postFilesToAdd=t}),"onUpdate:filesToRemove":t[3]||(t[3]=function(t){return e.postFilesToRemove=t})},null,8,["files"]),e.isSubmitting?(Ai(),Si("div",jM,(s=t[6]||(t[6]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return BM(e)}(s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return BM(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BM(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)]),Mi("nav",HM,[Mi("div",qM,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[4]||(t[4]=function(){return e.submitCreatePost&&e.submitCreatePost.apply(e,arguments)})},fe(e.content?e.getLabel("editButtonLabel"):e.getLabel("createButtonLabel")),3)])])])])}]]);function JM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var XM={class:"kb-stafet-profile-form kb-stafet-donation-flow__step kb-optimizely-forms"},QM={class:"kb-stafet-step"},eN={class:"kb-stafet-step__title"},tN={class:"kb-stafet-step__input-wrapper"},nN={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},oN={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},rN={class:"kb-rich-text"},aN={class:"kb-rich-text__content",ref:"informationRichTextWrapper"},iN={class:"kb-stafet-flow-actions__buttons-wrapper"},lN=["onClick"],sN={key:0,class:"kb-spinner-overlay"};function cN(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return uN(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(uN(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,uN(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,uN(d,"constructor",c),uN(c,"constructor",s),s.displayName="GeneratorFunction",uN(c,r,"GeneratorFunction"),uN(d),uN(d,r,"Generator"),uN(d,o,function(){return this}),uN(d,"toString",function(){return"[object Generator]"}),(cN=function(){return{w:a,m:p}})()}function uN(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}uN=function(e,t,n,o){function a(t,n){uN(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},uN(e,t,n,o)}function dN(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}var pN=function(){var e,t=(e=cN().m(function e(){var t,n,o,r,a;return cN().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Nn();case 1:(t=document.querySelector(".Form__Element__ValidationError, .validation-error"))?(n=t.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,r=100,t.classList.contains("Form__Element__ValidationError")&&(r=150),a=n.top+o-r,window.scrollTo({top:a,behavior:"smooth"}),"function"==typeof t.focus&&(t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}))):console.warn("No validation error elements found.");case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){dN(a,o,r,i,l,"next",e)}function l(e){dN(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();const fN={name:"CreateStafetProfile",components:{FormInputTextField:mE,FormInputPhoneField:IL,FormInputEmailField:kL},props:{userProfileId:{type:String,default:!0},email:{type:String,required:!0},firstName:{type:String,required:!0},lastName:{type:String,required:!0},phone:{type:String,required:!0},informationRichText:{type:String,required:!1}},setup:function(e){var t=Af(),n=Kt(e.firstName),o=Kt(e.lastName),r=Kt(e.phone),a=Kt(e.email),i=Kt(null),l=Kt(!1),s=bl(function(){return t.state.stafet.isSubmitting}),c=Kt({firstName:!!e.firstName,lastName:!!e.lastName,phone:!!e.phone}),u={firstName:!0,lastName:!0,phone:!1,email:!0},d=bl(function(){return c.value.firstName||!u.firstName&&""===n.value||rE(n.value)}),p=bl(function(){return c.value.lastName||!u.lastName&&""===o.value||rE(o.value)}),f=bl(function(){return c.value.phone||!u.phone&&""===r.value||oE(r.value)}),m=bl(function(){return c.value.email||!u.email&&""===a.value||nE(a.value)}),g=bl(function(){return t.state.labels.collections.CreateStafetProfile}),h=bl(function(){return!d.value&&l.value}),b=bl(function(){return!p.value&&l.value}),v=bl(function(){return!f.value&&l.value}),y=bl(function(){return!m.value&&l.value});return Dr(function(){var t,n,o=(t=e.informationRichText,(n=document.createElement("textarea")).innerHTML=t,n.value);i.value.innerHTML=o}),{labels:g,submitCreateProfile:function(){d.value&&p.value&&f.value&&m.value?(l.value=!1,t.dispatch("stafet/submitCreateStafetProfile",{userProfileId:e.userProfileId,email:e.email,firstName:n.value,lastName:o.value,phoneNumber:r.value})):(l.value=!0,pN())},firstNameInput:n,lastNameInput:o,phoneInput:r,isReadOnly:c,isRequired:u,informationRichTextWrapper:i,isSubmitting:s,displayError:l,isFirstNameValid:d,isLastNameValid:p,isPhoneValid:f,showFirstNameErrorMessage:h,showLastNameErrorMessage:b,showPhoneErrorMessage:v,showEmailErrorMessage:y}}},mN=fN,gN=(0,Hb.A)(mN,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputTextField");return Ai(),Si("article",XM,[Mi("div",QM,[Mi("h2",eN,fe(e.labels.title),1),Mi("div",tN,[Mi("div",nN,[Ni(l,{modelValue:e.firstNameInput,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstNameInput=t}),fieldName:"firstName",readOnly:e.isReadOnly.firstName,label:e.labels.firstNameLabel,isRequired:e.isRequired.firstName,isValidationError:e.showFirstNameErrorMessage,errorMessageLabel:e.labels.firstNameErrorMessage},null,8,["modelValue","readOnly","label","isRequired","isValidationError","errorMessageLabel"]),Ni(l,{modelValue:e.lastNameInput,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.lastNameInput=t}),fieldName:"lastName",readOnly:e.isReadOnly.lastName,label:e.labels.lastNameLabel,isRequired:e.isRequired.lastName,isValidationError:e.showLastNameErrorMessage,errorMessageLabel:e.labels.lastNameErrorMessage},null,8,["modelValue","readOnly","label","isRequired","isValidationError","errorMessageLabel"])]),Mi("div",oN,[Ni(l,{modelValue:e.phoneInput,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.phoneInput=t}),fieldName:"phone",readOnly:e.isReadOnly.phone,label:e.labels.phoneNumberLabel,isValidationError:e.showPhoneErrorMessage,errorMessageLabel:e.labels.phoneNumberErrorMessage,isRequired:e.isRequired.phone},null,8,["modelValue","readOnly","label","isValidationError","errorMessageLabel","isRequired"]),Ni(l,{modelValue:e.email,fieldName:"email",readOnly:!0,label:e.labels.emailLabel,errorMessageLabel:e.labels.emailErrorMessage,isRequired:e.isRequired.email},null,8,["modelValue","label","errorMessageLabel","isRequired"])])]),Mi("div",rN,[Mi("div",aN,null,512)]),Mi("div",iN,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:e.submitCreateProfile},fe(e.labels.createProfileCtaLabel),11,lN)]),e.isSubmitting?(Ai(),Si("div",sN,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return JM(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return JM(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JM(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])])}]]);var hN={class:"kb-cta-box"},bN={class:"kb-cta-box__title"},vN={class:"kb-cta-box__link-list"},yN={key:0},_N=["title","aria-label","href","target"],AN=["innerHTML"],kN=["title","aria-label","onClick"],xN=["href"],wN={class:"kb-cta-box__extra-link__text"};const CN={name:"CTABox",components:{ActionResponseBox:Sy},props:{result:{type:Object,required:!0},ctaId:{type:String,required:!1}},setup:function(e){var t=Af(),n=Kt(!1);return{getLabel:function(n){return t.getters["labels/getLabel"]({labelCollection:"CTABox-".concat(e.ctaId),labelKey:n})},handleCopyLink:function(e){navigator.clipboard.writeText(e),n.value=!0,setTimeout(function(){n.value=!1},2500)},displayCopyResponse:n,actionResponseLifeTime:2500,actionResponseFadeOutTime:500}}},EN=CN,SN=(0,Hb.A)(EN,[["render",function(e,t,n,o,r,a){var i=qr("ActionResponseBox");return Ai(),Si("article",hN,[Mi("h2",bN,fe(e.getLabel("title")),1),Mi("ul",vN,[(Ai(!0),Si(gi,null,Yr(e.result.links,function(n,o){return Ai(),Si(gi,{key:o},["SocialMedia"===n.type?(Ai(),Si("li",yN,[Mi("a",{class:"kb-cta-box__link",title:n.title,"aria-label":n.ariaLabel,href:n.link,target:n.target},[Mi("div",{class:"kb-original-icon",innerHTML:n.svgIcon},null,8,AN)],8,_N)])):zi("v-if",!0),"CopyLink"===n.type?(Ai(),Si("button",{key:1,class:"kb-cta-box__link",title:n.title,"aria-label":n.ariaLabel,onClick:function(){e.handleCopyLink(n.link)}},[t[0]||(t[0]=Vi('<div class="kb-original-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 50 50"><circle cx="25" cy="25" r="25" fill="#005B78"></circle><path fill="#fff" fill-rule="evenodd" d="m26.3 23.7-.5-.6.5-.5.6.5a3.4 3.4 0 0 1 0 4.8l-5.3 5.3a3.4 3.4 0 0 1-4.8-4.8l3.7-3.7.5.6-3.7 3.7a2.6 2.6 0 1 0 3.7 3.7l5.3-5.3c1-1 1-2.7 0-3.7Z" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="m23.7 26.3.5.6-.5.5-.6-.5a3.4 3.4 0 0 1 0-4.8l5.3-5.3a3.4 3.4 0 0 1 4.8 4.8l-3.7 3.7-.5-.6 3.7-3.7a2.6 2.6 0 1 0-3.7-3.7l-5.3 5.3c-1 1-1 2.7 0 3.7Z" clip-rule="evenodd"></path></svg></div>',1)),e.displayCopyResponse?(Ai(),Ti(i,{key:0,actionResponseText:e.getLabel("linkCopiedResponseText"),lifeTime:e.actionResponseLifeTime,fadeOut:e.actionResponseFadeOutTime},null,8,["actionResponseText","lifeTime","fadeOut"])):zi("v-if",!0)],8,kN)):zi("v-if",!0)],64)}),128))]),Mi("a",{href:e.result.extraLink,class:"kb-cta-box__extra-link"},[Mi("span",wN,fe(e.getLabel("extraLinkText")),1),t[1]||(t[1]=Mi("span",{class:"kb-cta-box__extra-link__icon"},[Mi("svg",{viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"m12.167 4 3.623 4-3.623 4",stroke:"#3C3C3C","stroke-linejoin":"round"}),Mi("path",{d:"M11.746 8H0",stroke:"#3C3C3C"})])],-1))],8,xN)])}]]);var TN={class:"kb-danmarks-kort"},IN=["aria-label"],BN={class:"kb-danmarks-kort__info-panel"},ON={class:"kb-danmarks-kort__info-title"},LN=["aria-label"],DN=["aria-pressed"],MN=["aria-pressed"],NN={key:2,class:"kb-danmarks-kort__section-heading"},PN={class:"kb-danmarks-kort__section-heading"},RN={class:"kb-accordion kb-accordion--dk-municipalities"},FN={class:"kb-accordion__question"},VN=["id","aria-controls","aria-expanded","onClick"],zN=["id","aria-labelledby"],UN={key:5,class:"kb-danmarks-kort__error",role:"alert"},jN={key:6,class:"kb-danmarks-kort__info-note"};function HN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var qN={ref:"rootRef",class:"kb-danmarks-kort-map"},GN={key:0,class:"kb-spinner-overlay","aria-hidden":"true"},KN=["innerHTML"],ZN=["data-marker-key","aria-label","onClick","onFocus"],WN={key:0,class:"kb-danmarks-kort-map__marker-label"},$N=["aria-label"],YN=["tabindex","onClick","onFocus","onKeydown"],JN=["aria-label"],XN={class:"kb-danmarks-kort-map__legend-label"},QN="region",eP=["region","sr","name"],tP={Nordjylland:"nordjylland",Midtjylland:"midtjylland",Syddanmark:"syddanmark",Sjælland:"sjaelland","Region Hovedstaden":"hovedstaden"},nP="Hele Danmark",oP={x:1262,y:1258.52,w:3510,h:3527.71},rP=380;function aP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function iP(e){var t={};return{caches:t,buildCaches:function(){var n,o=(n=e.value.querySelectorAll("path[data-name]"),function(e){if(Array.isArray(e))return aP(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return aP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aP(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e){return{path:e,box:e.getBBox()}});eP.forEach(function(e){var n=new Map;o.forEach(function(t){var o=t.path.dataset[e],r=n.get(o);r?r.push(t):n.set(o,[t])});var r=new Map,a=new Map,i=new Map;
2n.forEach(function(e,t){r.set(t,e.map(function(e){return e.path}));var n=function(e){var t=1/0,n=1/0,o=-1/0,r=-1/0;return e.forEach(function(e){var a=e.box;a.x<t&&(t=a.x),a.y<n&&(n=a.y),a.x+a.width>o&&(o=a.x+a.width),a.y+a.height>r&&(r=a.y+a.height)}),{minX:t,minY:n,maxX:o,maxY:r}}(e),o=n.minX,l=n.minY,s=n.maxX,c=n.maxY;a.set(t,{cx:(o+s)/2,cy:(l+c)/2}),i.set(t,{x:o-80,y:l-80,w:s-o+160,h:c-l+160})}),t[e]={group:r,centroid:a,zoomTarget:i}})}}}function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function sP(e,t,n){var o=n.computeMarkers,r=n.clearMarkers,a=null;return{animateViewBox:function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rP,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;cancelAnimationFrame(a);var s=null===(n=e.value)||void 0===n?void 0:n.querySelector("svg");if(s&&t){var c,u,d,p=t.x,f=t.y,m=t.w,g=t.h;if(r(),null!==(c=null===(u=(d=window).matchMedia)||void 0===u?void 0:u.call(d,"(prefers-reduced-motion: reduce)").matches)&&void 0!==c&&c)return s.setAttribute("viewBox",[p,f,m,g].join(" ")),o(),void(null==l||l());var h=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lP(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s.getAttribute("viewBox").split(/[\s,]+/).map(Number),4),b=h[0],v=h[1],y=h[2],_=h[3],A=performance.now(),k=function(e){var t=Math.min((e-A)/i,1),n=t<.5?2*t*t:(4-2*t)*t-1;s.setAttribute("viewBox",[b+(p-b)*n,v+(f-v)*n,y+(m-y)*n,_+(g-_)*n].join(" ")),t<1?a=requestAnimationFrame(k):(o(),null==l||l())};a=requestAnimationFrame(k)}},zoomTargetFor:function(e,n){var o;return null===(o=t[e])||void 0===o?void 0:o.zoomTarget.get(n)}}}function cP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var uP=function(e){if("number"==typeof e)return Number.isFinite(e)?e:null;if("string"!=typeof e)return null;var t=e.trim();if(""===t)return null;var n=t.endsWith("%");if(n&&(t=t.slice(0,-1).trim()),t.includes(",")&&(t=t.replace(/\./g,"").replace(",",".")),!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(t))return null;var o=Number(t);return Number.isFinite(o)?n?o/100:o:null},dP=function(e){return String(e).trim().toLowerCase()};function pP(e){return pP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pP(e)}function fP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var mP=function(e){return"sundhedsraad"===e?"sr":"region"===e?null:"name"},gP=function(e,t){return"country"===e?QN:mP(t)},hP=function(e){var t;return null!==(t=mP(e))&&void 0!==t?t:QN},bP=function(e){return"sundhedsraad"===e?"sundhedsraad":"region"===e?"region":"municipality"},vP=function(e,t,n){return"municipality"===n&&"name"===e?"".concat(t," kommune"):t},yP=/^(?:region|sundhedsr(?:Ã¥|aa)d|sr)\s+/,_P=function(e){return null==e?"":String(e).trim().toLowerCase().replace(yP,"")},AP=new WeakMap,kP=function(e,t){var n;return e&&"object"===pP(e)&&null!==(n=function(e){var t=AP.get(e);return t||(t=new Map,Object.entries(e).forEach(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fP(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),o=n[0],r=n[1],a=_P(o);t.has(a)||t.set(a,r)}),AP.set(e,t)),t}(e).get(_P(t)))&&void 0!==n?n:null};function xP(e){var t,n,o,r,a=(n=(null!=(t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).legend)?t:[]).map(function(e,t){var n;return{value:null==(null==e?void 0:e.value)?"":String(e.value).trim(),label:null!==(n=null==e?void 0:e.label)&&void 0!==n?n:"",slot:Number.isInteger(null==e?void 0:e.slot)?e.slot:t+1,number:uP(null==e?void 0:e.value)}}).filter(function(e){return(""!==e.value||""!==e.label)&&e.slot>=1&&e.slot<=5}),(o=n.filter(function(e){return""!==e.value})).length?o.every(function(e){return null!=e.number})?{mode:"threshold",entries:n,ascending:(r=o,function(e){if(Array.isArray(e))return cP(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return cP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cP(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,t){return e.number-t.number})}:{mode:"category",entries:n,byKey:new Map(o.map(function(e){return[dP(e.value),e.slot]}))}:{mode:"implicit",entries:n}),i=new Map;return{applyColoringByAttr:function(t,n){var o,r,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=function(e){return new Map((e||[]).map(function(e){return[_P(e.key),e.value]}))}(n),c=function(e){var n=function(e){if(null==e)return null;var t=String(e).trim();return""===t?null:"implicit"===a.mode?function(e){if(i.has(e))return i.get(e);var t=Number(e),n=Number.isInteger(t)&&t>=1&&t<=5?t:null,o=new Set(i.values()),r=null==n||o.has(n)?null:n;if(null==r)for(var a=1;a<=5;a++)if(!o.has(a)){r=a;break}return null!=r&&i.set(e,r),r}(t):function(e,t){var n;if(null==t||""===String(t).trim())return null;if("category"===e.mode)return null!==(n=e.byKey.get(dP(t)))&&void 0!==n?n:null;if("threshold"===e.mode){var o,r=uP(t);return null==r?null:(null!==(o=e.ascending.find(function(e){return r<=e.number}))&&void 0!==o?o:e.ascending[e.ascending.length-1]).slot}return null}(a,t)}(s.get(_P(e.dataset[t])));null!=n?e.setAttribute("data-value",n):e.removeAttribute("data-value")};l?null===(r=e.region)||void 0===r||null===(r=r.group.get(l))||void 0===r||r.forEach(c):null===(o=e[t])||void 0===o||o.group.forEach(function(e){return e.forEach(c)})},greyExcept:function(t,n){var o;null===(o=e[t])||void 0===o||o.group.forEach(function(e,t){t!==n&&e.forEach(function(e){return e.removeAttribute("data-value")})})},legendEntries:a.entries}}function wP(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return CP(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(CP(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,CP(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,CP(d,"constructor",c),CP(c,"constructor",s),s.displayName="GeneratorFunction",CP(c,r,"GeneratorFunction"),CP(d),CP(d,r,"Generator"),CP(d,o,function(){return this}),CP(d,"toString",function(){return"[object Generator]"}),(wP=function(){return{w:a,m:p}})()}function CP(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}CP=function(e,t,n,o){function a(t,n){CP(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},CP(e,t,n,o)}function EP(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function SP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function TP(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return IP(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(IP(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,IP(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,IP(d,"constructor",c),IP(c,"constructor",s),s.displayName="GeneratorFunction",IP(c,r,"GeneratorFunction"),IP(d),IP(d,r,"Generator"),IP(d,o,function(){return this}),IP(d,"toString",function(){return"[object Generator]"}),(TP=function(){return{w:a,m:p}})()}function IP(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}IP=function(e,t,n,o){function a(t,n){IP(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},IP(e,t,n,o)}function BP(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function OP(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){BP(a,o,r,i,l,"next",e)}function l(e){BP(a,o,r,i,l,"throw",e)}i(void 0)})}}function LP(e){return function(e){if(Array.isArray(e))return DP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return DP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DP(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function MP(e,t,n,o,r,a){var i=a.animateViewBox,l=a.zoomTargetFor,s=a.applyColoringByAttr,c=a.greyExcept,u=a.fetchRegionData,d=a.regionDataCache,p=a.clearHover,f=function(){return{label:e.title||nP,level:"country"}},m=function(e){return[f(),{label:e,level:"region"}]},g=Kt([]),h=Kt(null),b=Kt(null),v=0,y=bl(function(){var t;if(!h.value)return[];var o=mP(e.flow);if(!o)return[];var r=new Set;return null===(t=n.region)||void 0===t||null===(t=t.group.get(h.value.key))||void 0===t||t.forEach(function(e){return r.add(e.dataset[o])}),LP(r)}),_=bl(function(){var e,t;return"country"===o.value?LP(null!==(e=null===(t=n.region)||void 0===t?void 0:t.group.keys())&&void 0!==e?e:[]):"region"===o.value?y.value:[]}),A=function(e,t){var n,o,r;return null!==(n=null!==(o=kP(null==e?void 0:e.stats,t))&&void 0!==o?o:null==e||null===(r=e.region)||void 0===r?void 0:r.stats)&&void 0!==n?n:null},k=function(){return t("navigate",{level:o.value,group:h.value,detail
2:b.value,options:_.value})},x=function(e){var t=function(){var t,n,o=null===(t=e.value)||void 0===t?void 0:t.querySelector(".kb-danmarks-kort-map__back");o?o.focus():null===(n=e.value)||void 0===n||null===(n=n.querySelector('button, [tabindex]:not([tabindex="-1"])'))||void 0===n||n.focus()};return{focusAfterZoom:t,focusRegionMarker:function(n){return Nn(function(){var o,r,a=(r=(null===(o=e.value)||void 0===o?void 0:o.querySelectorAll(".kb-danmarks-kort-map__marker"))||[],function(e){if(Array.isArray(e))return SP(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return SP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SP(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).find(function(e){return e.dataset.markerKey===n});a?a.focus():t()})}}}(r),w=x.focusAfterZoom,C=x.focusRegionMarker,E=function(t){var n;s(null!==(n=mP(e.flow))&&void 0!==n?n:"name",e.groupData,t)},S=function(e,t){return{kind:"region",label:e,region:e,stats:t}},T=function(e){h.value={key:e},b.value=null,g.value=[f()],o.value="region",p()},I=function(t,r){"region"!==e.flow&&("sundhedsraad"===e.flow?function(e){var t,r,a,s=h.value.key,u=d.get(s),p=null!==(t=null===(r=n.sr)||void 0===r?void 0:r.group.get(e))&&void 0!==t?t:[];b.value={kind:"sundhedsraad",label:e,region:s,stats:kP(null==u||null===(a=u.sr)||void 0===a?void 0:a.stats,e),municipalities:p.map(function(e){return{name:e.dataset.name,stats:kP(null==u?void 0:u.stats,e.dataset.name)}})},g.value=m(s),o.value="sundhedsraad",i(l("sr",e),rP,w),c("sr",e)}(t):function(e,t){if(t){var n=h.value.key,r=d.get(n),a=t.dataset.name;b.value={kind:"municipality",label:"".concat(a," kommune"),region:n,sr:t.dataset.sr,stats:kP(null==r?void 0:r.stats,a)},g.value=m(n),o.value="municipality";var l=t.getBBox();i({x:l.x-320,y:l.y-320,w:l.width+640,h:l.height+640},rP,w),c("name",a)}}(0,r),p(),k())},B=function(){var n=OP(TP().m(function n(o,r){var a,s,d;return TP().w(function(n){for(;;)switch(n.p=n.n){case 0:return T(o),i(l("region",o),rP,w),(a="region"===e.flow)&&(b.value=S(o,null),c("region",o)),k(),n.p=1,n.n=2,u(o);case 2:if(s=n.v,r===v){n.n=3;break}return n.a(2);case 3:a?(b.value=S(o,A(s,o)),k()):E(o),n.n=5;break;case 4:n.p=4,d=n.v,r===v&&t("load-error",{groupKey:o,error:String(d)});case 5:return n.a(2)}},n,null,[[1,4]])}));return function(e,t){return n.apply(this,arguments)}}(),O=function(){var n=OP(TP().m(function n(o,r){var a,i;return TP().w(function(n){for(;;)switch(n.p=n.n){case 0:if(a=o.dataset.region){n.n=1;break}return n.a(2);case 1:return T(a),n.p=2,n.n=3,u(a);case 3:if(r===v){n.n=4;break}return n.a(2);case 4:E(a),n.n=7;break;case 5:if(n.p=5,i=n.v,r===v){n.n=6;break}return n.a(2);case 6:t("load-error",{groupKey:a,error:String(i)});case 7:if(r===v){n.n=8;break}return n.a(2);case 8:I(o.dataset[mP(e.flow)],o);case 9:return n.a(2)}},n,null,[[2,5]])}));return function(e,t){return n.apply(this,arguments)}}(),L=function(){var e=OP(TP().m(function e(t){var n,r,a,i=arguments;return TP().w(function(e){for(;;)switch(e.n){case 0:if(r=i.length>1&&void 0!==i[1]?i[1]:null,a=++v,"country"!==o.value){e.n=2;break}return e.n=1,B(t,a);case 1:return e.a(2);case 2:if("region"===o.value){e.n=3;break}return e.a(2);case 3:if(null==r||!r.dataset.region||r.dataset.region===(null===(n=h.value)||void 0===n?void 0:n.key)){e.n=5;break}return e.n=4,O(r,a);case 4:return e.a(2);case 5:I(t,r);case 6:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),D=function(t){var o,r=mP(e.flow),a=null===(o=n.region.group.get(h.value.key))||void 0===o?void 0:o.find(function(e){return e.dataset[r]===t});a&&L(t,a)};return{breadcrumb:g,activeRegionGroups:y,emitState:k,selectGroup:L,goBack:function(){++v;var t=g.value[g.value.length-1];if(t){if(g.value=g.value.slice(0,-1),"country"===t.level){var n,r=null===(n=h.value)||void 0===n?void 0:n.key;o.value="country",h.value=null,b.value=null,i(oP,rP,function(){return C(r)}),s(hP(e.flow),e.groupData)}
2else"region"===t.level&&(o.value="region",b.value=null,i(l("region",h.value.key),rP,w),E(h.value.key));k()}},selectByName:function(e){"country"===o.value?L(e):"region"===o.value&&D(e)},selectRegionGroup:D,onMapClick:function(t){var n=t.target.closest("path[data-name]");if(n){var r=gP(o.value,e.flow);r&&L(n.dataset[r],n)}}}}function NP(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return PP(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(PP(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,PP(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,PP(d,"constructor",c),PP(c,"constructor",s),s.displayName="GeneratorFunction",PP(c,r,"GeneratorFunction"),PP(d),PP(d,r,"Generator"),PP(d,o,function(){return this}),PP(d,"toString",function(){return"[object Generator]"}),(NP=function(){return{w:a,m:p}})()}function PP(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}PP=function(e,t,n,o){function a(t,n){PP(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},PP(e,t,n,o)}function RP(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function FP(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){RP(a,o,r,i,l,"next",e)}function l(e){RP(a,o,r,i,l,"throw",e)}i(void 0)})}}const VP={name:"DanmarksKortMap",props:{title:{type:String,default:""},flow:{type:String,default:"municipality"},groupData:{type:Array,default:function(){return[]}},svgUrl:{type:String,default:"/maps/danmark-kort-complete.svg"},municipalityDataUrl:{type:String,default:"/api/map-data-{key}.json"},accessibilityListLabelMunicipality:{type:String,default:"Vælg kommune"},accessibilityListLabelSundhedsraad:{type:String,default:"Vælg sundhedsråd"},legendLabel:{type:String,default:"Signaturforklaring"},legend:{type:Array,default:function(){return[{value:1,label:"Value 1"},{value:2,label:"Value 2"},{value:3,label:"Value 3"},{value:4,label:"Value 4"},{value:5,label:"Value 5"}]}}},emits:["navigate","load-error"],setup:function(e,t){var n=t.emit,o=t.expose,r=Kt(null),a=Kt(null),i=Kt(""),l=Kt(!0),s=Kt("country"),c=iP(a),u=c.caches,d=c.buildCaches,p=function(e,t,n){var o=Kt([]),r=function(){var r,a,i=null===(r=e.value)||void 0===r?void 0:r.querySelector("svg");if(i)if("country"===n.value){var l=null===(a=t.region)||void 0===a?void 0:a.centroid;if(null!=l&&l.size){var s=i.getScreenCTM();if(s){var c=e.value.getBoundingClientRect(),u=i.createSVGPoint(),d=[];l.forEach(function(e,t){var n=e.cx,o=e.cy;u.x=n,u.y=o;var r=u.matrixTransform(s);d.push({key:t,x:r.x-c.left,y:r.y-c.top,attr:"region"})}),o.value=d}}else o.value=[]}else o.value=[]},a=null,i=null;return Pr(function(){var e;null===(e=a)||void 0===e||e.disconnect(),i&&cancelAnimationFrame(i)}),{markers:o,computeMarkers:r,clearMarkers:function(){o.value=[]},observeResize:function(){(a=new ResizeObserver(function(){i||(i=requestAnimationFrame(function(){i=null,r()}))})).observe(e.value)}}}(a,u,s),f=p.markers,m=p.computeMarkers,g=p.clearMarkers,h=p.observeResize,b=sP(a,u,{computeMarkers:m,clearMarkers:g}),v=b.animateViewBox,y=b.zoomTargetFor,_=xP(u,e),A=_.applyColoringByAttr,k=_.greyExcept,x=_.legendEntries,w=function(e){var t=new Map,n=new Map,o=new Map,r=function(){var n,r=(n=wP().m(function n(r){var a,i,l,s,c,u;return wP().w(function(n){for(;;)switch(n.p=n.n){case 0:if(!t.has(r)){n.n=1;break}return n.a(2,t.get(r));case 1:return i=null!==(a=tP[r])&&void 0!==a?a:r.toLowerCase().replace(/\s+/g,"-"),l=e.municipalityDataUrl.replace("{key}",i),(s=o.get(l))||(s=fetch(l).then(function(e){if(!e.ok)throw new Error("map-data ".concat(l,": ").concat(e.status));return e.json()}),o.set(l,s)),n.p=2,n.n=3,s;case 3:return c=n.v,t.set(r,c),n.a(2,c);case 4:throw n.p=4,u=n.v,o.delete(l),u;case 5:return n.a(2)}},n,null,[[2,4]])}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){EP(a,o,r,i,l,"next",e)}function l(e){EP(a,o,r,i,l,"throw",e)}i(void 0)})});return function(e){return r.apply(this,arguments)}}();return{regionDataCache:t,fetchRegionData:r,prefetchRegionData:function(e){t.has(e)||n.has(e)||n.set(e,r(e).catch(function(){return n.delete(e)}))}}}(e),C=w.regionDataCache,E=w.fetchRegionData,S=w.prefetchRegionData,T=function(e,t,n,o){var r=o.mapLevel,a=o.prefetchRegionData,i=Kt({visible:!1,name:"",x:0,y:0}),l=Kt(null),s=null,c=function(){var e;s&&(null===(e=t[s.groupAttr].group.get(s.key))||void 0===e||e.forEach(function(e){return e.classList.remove("kb-danmarks-kort-map__path--hovered")}),s=null)},u=function(e,n){var o,r,a;(null===(o=s)||void 0===o?void 0:o.groupAttr)===e&&(null===(r=s)||void 0===r?void 0:r.key)===n||(c(),s={groupAttr:e,ke
2y:n},null===(a=t[e].group.get(n))||void 0===a||a.forEach(function(e){return e.classList.add("kb-danmarks-kort-map__path--hovered")}))};return{tooltip:i,hoveredMarkerKey:l,setHover:u,clearHover:c,onMouseover:function(e){var t=e.target.closest("path[data-name]");if(t){var o=gP(r.value,n.flow);if(o){var s=t.dataset[o];if("country"===r.value)return u(o,s),l.value=s,void a(s);r.value!==bP(n.flow)&&u(o,s),i.value={visible:!0,name:vP(o,s,n.flow),x:e.clientX,y:e.clientY}}}},onMousemove:function(e){i.value.visible&&(i.value.x=e.clientX,i.value.y=e.clientY)},onMouseleave:function(e){var t,n;null!==(t=e.relatedTarget)&&void 0!==t&&null!==(n=t.closest)&&void 0!==n&&n.call(t,".kb-danmarks-kort-map__marker")||(c(),l.value=null,i.value.visible=!1)},onMarkerMouseleave:function(e){var t,n;null!==(t=e.relatedTarget)&&void 0!==t&&null!==(n=t.closest)&&void 0!==n&&n.call(t,".kb-danmarks-kort-map__svg-wrapper")||(c(),l.value=null)},showTooltipAtSvgCentroid:function(o,r){var a,l,s=null===(a=e.value)||void 0===a?void 0:a.querySelector("svg");if(s){var c=null===(l=t[o])||void 0===l?void 0:l.centroid.get(r);if(c){var u=s.getScreenCTM();if(u){var d=s.createSVGPoint();d.x=c.cx,d.y=c.cy;var p=d.matrixTransform(u);i.value={visible:!0,name:vP(o,r,n.flow),x:p.x,y:p.y}}}}}}}(a,u,e,{mapLevel:s,prefetchRegionData:S}),I=T.tooltip,B=T.hoveredMarkerKey,O=T.setHover,L=T.clearHover,D=T.onMouseover,M=T.onMousemove,N=T.onMouseleave,P=T.onMarkerMouseleave,R=T.showTooltipAtSvgCentroid,F=MP(e,n,u,s,r,{animateViewBox:v,zoomTargetFor:y,applyColoringByAttr:A,greyExcept:k,fetchRegionData:E,regionDataCache:C,clearHover:L}),V=F.breadcrumb,z=F.activeRegionGroups,U=F.emitState,j=F.selectGroup,H=F.goBack,q=F.selectByName,G=F.selectRegionGroup,K=F.onMapClick,Z=function(e,t){var n=t.activeRegionGroups,o=t.setHover,r=t.clearHover,a=t.showTooltipAtSvgCentroid,i=t.goBack,l=t.tooltip,s=Kt(null),c=Kt(0);bo(n,function(){c.value=0});var u=bl(function(){return n.value.map(function(e,t){return t===c.value?0:-1})}),d=bl(function(){return"sundhedsraad"===e.flow?e.accessibilityListLabelSundhedsraad:e.accessibilityListLabelMunicipality});return{regionListRef:s,regionListLabel:d,regionListTabIndexes:u,onRegionListItemFocus:function(t,n){c.value=t;var r=mP(e.flow);r&&(o(r,n),a(r,n))},onRegionListItemBlur:function(){r(),l.value.visible=!1},onRegionListKeydown:function(e,t){var o;if("Escape"===e.key)return e.preventDefault(),r(),void i();var a=n.value.length;if(a){var l=t;if("ArrowDown"===e.key)e.preventDefault(),l=(t+1)%a;else if("ArrowUp"===e.key)e.preventDefault(),l=(t-1+a)%a;else if("Home"===e.key)e.preventDefault(),l=0;else{if("End"!==e.key)return;e.preventDefault(),l=a-1}c.value=l,null===(o=s.value)||void 0===o||null===(o=o.querySelectorAll("button")[l])||void 0===o||o.focus()}}}}(e,{activeRegionGroups:z,caches:u,setHover:O,clearHover:L,showTooltipAtSvgCentroid:R,goBack:H,tooltip:I}),W=Z.regionListRef,$=Z.regionListLabel,Y=Z.regionListTabIndexes,J=Z.onRegionListItemFocus,X=Z.onRegionListItemBlur,Q=Z.onRegionListKeydown;return Dr(FP(NP().m(function t(){var o,r;return NP().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,fetch(e.svgUrl);case 1:if((o=t.v).ok){t.n=2;break}throw new Error("SVG ".concat(o.status));case 2:return t.n=3,o.text();case 3:return i.value=t.v,t.n=4,Nn();case 4:d(),A(hP(e.flow),e.groupData),m(),U(),h(),t.n=6;break;
2case 5:t.p=5,r=t.v,n("load-error",r);case 6:return t.p=6,l.value=!1,t.f(6);case 7:return t.a(2)}},t,null,[[0,5,6,7]])}))),bo(function(){return e.groupData},function(t){return Nn(function(){"country"===s.value&&A(hP(e.flow),t)})}),o({selectByName:q}),{rootRef:r,wrapperRef:a,svgContent:i,isLoading:l,mapLevel:s,breadcrumb:V,goBack:H,legendEntries:x,markers:f,hoveredMarkerKey:B,tooltip:I,onMouseover:D,onMousemove:M,onMouseleave:N,onMarkerMouseleave:P,onMapClick:K,selectGroup:j,setHover:O,clearHover:L,activeRegionGroups:z,selectRegionGroup:G,regionListRef:W,regionListLabel:$,regionListTabIndexes:Y,onRegionListItemFocus:J,onRegionListItemBlur:X,onRegionListKeydown:Q}}},zP=VP,UP=(0,Hb.A)(zP,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",qN,[e.isLoading?(Ai(),Si("div",GN,(i=t[8]||(t[8]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return HN(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return HN(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HN(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0),e.breadcrumb.length?(Ai(),Si("button",{key:1,type:"button",class:"kb-danmarks-kort-map__back",onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},[t[9]||(t[9]=Mi("span",{"aria-hidden":"true"},"â",-1)),Fi(" "+fe(e.breadcrumb[e.breadcrumb.length-1].label),1)])):zi("v-if",!0),Mi("div",{ref:"wrapperRef",class:"kb-danmarks-kort-map__svg-wrapper","aria-hidden":"true",innerHTML:e.svgContent,onMouseover:t[1]||(t[1]=function(){return e.onMouseover&&e.onMouseover.apply(e,arguments)}),onMousemove:t[2]||(t[2]=function(){return e.onMousemove&&e.onMousemove.apply(e,arguments)}),onMouseleave:t[3]||(t[3]=function(){return e.onMouseleave&&e.onMouseleave.apply(e,arguments)}),onClick:t[4]||(t[4]=function(){return e.onMapClick&&e.onMapClick.apply(e,arguments)})},null,40,KN),e.markers.length?(Ai(!0),Si(gi,{key:2},Yr(e.markers,function(n){return Ai(),Si("button",{key:n.key,type:"button",class:"kb-danmarks-kort-map__marker","data-marker-key":n.key,style:G({left:n.x+"px",top:n.y+"px"}),"aria-label":"Vælg "+n.key,onClick:lc(function(t){return e.selectGroup(n.key)},["stop"]),onMouseleave:t[5]||(t[5]=function(){return e.onMarkerMouseleave&&e.onMarkerMouseleave.apply(e,arguments)}),onFocus:function(t){e.hoveredMarkerKey=n.key,e.setHover(n.attr,n.key)},onBlur:t[6]||(t[6]=function(t){e.hoveredMarkerKey=null,e.clearHover()})},[t[10]||(t[10]=Mi("span",{class:"kb-ui-icon kb-ui-icon--ui-plus kb-danmarks-kort-map__marker-icon","aria-hidden":"true"},null,-1)),e.hoveredMarkerKey===n.key?(Ai(),Si("span",WN,fe(n.key),1)):zi("v-if",!0)],44,ZN)}),128)):zi("v-if",!0),"region"===e.mapLevel?(Ai(),Si("ul",{key:3,ref:"regionListRef",class:"kb-danmarks-kort-map__accessibility-list","aria-label":e.regionListLabel},[(Ai(!0),Si(gi,null,Yr(e.activeRegionGroups,function(n,o){return Ai(),Si("li",{key:n},[Mi("button",{type:"button",tabindex:e.regionListTabIndexes[o],onClick:function(t){return e.selectRegionGroup(n)},onFocus:function(t){return e.onRegionListItemFocus(o,n)},onBlur:t[7]||(t[7]=function(){return e.onRegionListItemBlur&&e.onRegionListItemBlur.apply(e,arguments)}),onKeydown:function(t){return e.onRegionListKeydown(t,o)}},fe(n),41,YN)])}),128))],8,$N)):zi("v-if",!0),Mi("ul",{class:"kb-danmarks-kort-map__legend","aria-label":e.legendLabel},[(Ai(!0),Si(gi,null,Yr(e.legendEntries,function(e){return Ai(),Si("li",{key:e.slot+"-"+e.value,class:"kb-danmarks-kort-map__legend-item"},[Mi("span",{class:"kb-danmarks-kort-map__legend-swatch",style:G({backgroundColor:"var(--kb-dk-value-"+e.slot+")"}),"aria-hidden":"true"},null,4),Mi("span",XN,fe(e.label),1)])}),128))],8,JN),(Ai(),Ti(To,{to:"body"},[e.tooltip.visible?(Ai(),Si("div",{key:0,class:"kb-dk-tooltip",style:G({left:e.tooltip.x+12+"px",to
2p:e.tooltip.y+12+"px"}),"aria-hidden":"true"},fe(e.tooltip.name),5)):zi("v-if",!0)]))],512);var i}]]),jP=UP;function HP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var qP={ref:"rootRef",class:"kb-form-input-combobox"},GP={class:"kb-form-input-combobox__field"},KP=["id","aria-label","placeholder","aria-expanded","aria-controls","aria-activedescendant"],ZP=["aria-label"],WP=["id"],$P=["id","aria-selected","onClick","onMousemove"],YP={key:1,role:"status",class:"kb-form-input-combobox__empty"};const JP={name:"FormInputCombobox",props:{options:{type:Array,default:function(){return[]}},fieldId:{type:String,required:!0},ariaLabel:{type:String,default:"Søg"},placeholder:{type:String,default:""},buttonLabel:{type:String,default:"Søg"},noResultsLabel:{type:String,default:"Ingen resultater"}},emits:["select"],setup:function(e,t){var n=t.emit,o=Kt(null),r=Kt(""),a=Kt(!1),i=Kt(-1),l=bl(function(){var t=r.value.trim().toLowerCase();return t?e.options.filter(function(e){return String(e).toLowerCase().includes(t)}):e.options}),s=bl(function(){return"".concat(e.fieldId,"-listbox")}),c=function(t){return"".concat(e.fieldId,"-option-").concat(t)},u=bl(function(){return a.value&&i.value>=0?c(i.value):null}),d=bl(function(){return a.value&&0===l.value.length}),p=function(){a.value=!0},f=function(){a.value=!1,i.value=-1},m=function(e){n("select",e),r.value="",f()},g=function(e){var t=l.value.length;t&&(a.value||p(),i.value=(i.value+e+t)%t)},h=function(e){o.value&&!o.value.contains(e.target)&&f()};return Dr(function(){return document.addEventListener("click",h)}),Pr(function(){return document.removeEventListener("click",h)}),{rootRef:o,query:r,isOpen:a,filtered:l,listboxId:s,getOptionId:c,activeDescendantId:u,hasNoResults:d,isActive:function(e){return e===i.value},setActive:function(e){i.value=e},open:p,close:f,selectOption:m,onInput:function(){p(),i.value=-1},onToggle:function(){var e;a.value?f():p(),null===(e=o.value)||void 0===e||null===(e=e.querySelector("input"))||void 0===e||e.focus()},onKeydown:function(e){var t;"ArrowDown"===e.key?(e.preventDefault(),g(1)):"ArrowUp"===e.key?(e.preventDefault(),g(-1)):"Home"===e.key?(e.preventDefault(),p(),i.value=0):"End"===e.key?(e.preventDefault(),p(),i.value=l.value.length-1):"Enter"===e.key?i.value>=0&&(e.preventDefault(),null!=(t=l.value[i.value])&&m(t)):"Escape"===e.key&&(e.preventDefault(),f())}}}},XP=JP,QP=(0,Hb.A)(XP,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",qP,[Mi("div",GP,[io(Mi("input",{type:"text",role:"combobox",class:"kb-form-input-combobox__input",id:e.fieldId,"aria-label":e.ariaLabel,placeholder:e.placeholder,"aria-autocomplete":"list","aria-expanded":e.isOpen,"aria-controls":e.listboxId,"aria-activedescendant":e.activeDescendantId,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.query=t}),onInput:t[1]||(t[1]=function(){return e.onInput&&e.onInput.apply(e,arguments)}),onKeydown:t[2]||(t[2]=function(){return e.onKeydown&&e.onKeydown.apply(e,arguments)}),onFocus:t[3]||(t[3]=function(){return e.open&&e.open.apply(e,arguments)})},null,40,KP),[[Ws,e.query]]),Mi("button",{type:"button",class:"kb-form-input-combobox__button","aria-label":e.buttonLabel,tabindex:"-1",onClick:t[4]||(t[4]=function(){return e.onToggle&&e.onToggle.apply(e,arguments)})},(i=t[5]||(t[5]=[Mi("span",{class:"kb-ui-icon kb-ui-icon--ui-spyglass kb-form-input-combobox__icon","aria-hidden":"true"},null,-1)]),function(e){if(Array.isArray(e))return HP(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return HP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HP(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),8,ZP)]),e.isOpen?(Ai(),Si("ul",{key:0,id:e.listboxId,role:"listbox",class:"kb-form-input-combobox__results"},[(Ai(!0),Si(gi,null,Yr(e.filtered,function(t,n){return Ai(),Si("li",{key:t,id:e.getOptionId(n),role:"option","aria-selected":e.isActive(n),class:"kb-form-input-combobox__item",onClick:function(n){return e.selectOption(t)},onMousemove:function(t){return e.setActive(n)}},fe(t),41,$P)}),128))],8,WP)):zi("v-if",!0),e.hasNoResults?(Ai(),Si("p",YP,fe(e.noResultsLabel),1)):zi("v-if",!0)],512);var i}]]),eR={name:"DanmarksKort",components:{DanmarksKortMap:jP,FormInputCombobox:QP,StatList:{name:"StatList",props:{stats:{type:Array,default:function(){return[]}}},setup:function(e){return function(){return vl("dl",{class:"kb-danmarks-kort__stats"},e.stats.map(function(e){return vl("div",{class:"kb-danmarks-kort__stat",key:e.label},[vl("dt",null,e.label),vl("dd",null,e.value)])}))}}}},props:{title:{type:String,default:""},flow:{type:String,default:"municipality"},groupData:{type:Array,default:function(){return[]}},legend:{type:Array,required:!1}
2,municipalityDataUrl:{type:String,default:"/api/map-data-{key}.json"},mapPanelLabel:{type:String,default:"Danmarkskort"},searchButtonLabel:{type:String,default:"Søg"},searchLabelCountry:{type:String,default:"Søg på region"},searchLabelMunicipality:{type:String,default:"Søg på kommune"},searchLabelSundhedsraad:{type:String,default:"Søg på sundhedsråd"},accessibilityListLabelMunicipality:{type:String,default:"Vælg kommune"},accessibilityListLabelSundhedsraad:{type:String,default:"Vælg sundhedsråd"},searchNoResultsLabel:{type:String,default:"Ingen resultater"},legendLabel:{type:String,default:"Signaturforklaring"},srTabLabelSundhedsraad:{type:String,default:"Sundhedsråd"},srTabLabelKommuner:{type:String,default:"Kommuner"},srToggleAriaLabel:{type:String,default:"Vis data for sundhedsråd eller kommuner"},srSectionHeading:{type:String,default:"Se data for hele sundhedsrådet"},kommunerSectionHeading:{type:String,default:"Se fordelingen pr kommune:"},municipalityNameSuffix:{type:String,default:"Kommune"},disclaimerText:{type:String,default:""},loadErrorLabel:{type:String,default:"Kortdata kunne ikke indlæses. Prøv igen senere."}},setup:function(e){var t=Kt("country"),n=Kt(null),o=Kt(null),r=Kt([]),a=Kt(null),i=Kt(!1),l=Kt("sundhedsraad"),s=Kt(new Set),c=bl(function(){var t,r,a,i;return null!==(t=null!==(r=null===(a=o.value)||void 0===a?void 0:a.label)&&void 0!==r?r:null===(i=n.value)||void 0===i?void 0:i.key)&&void 0!==t?t:e.title||nP}),u=bl(function(){return"country"===t.value?e.searchLabelCountry:"sundhedsraad"===e.flow?e.searchLabelSundhedsraad:"region"===e.flow?e.searchLabelCountry:e.searchLabelMunicipality}),d=bl(function(){return t.value!==bP(e.flow)}),p=bl(function(){var e;return"sundhedsraad"===(null===(e=o.value)||void 0===e?void 0:e.kind)}),f=bl(function(){return"sundhedsraad"===l.value}),m=bl(function(){return"kommuner"===l.value}),g=bl(function(){var e;return f.value&&!(null===(e=o.value)||void 0===e||!e.stats)}),h=bl(function(){var e;return g.value&&"sundhedsraad"===(null===(e=o.value)||void 0===e?void 0:e.kind)}),b=bl(function(){var e;return m.value&&!(null===(e=o.value)||void 0===e||null===(e=e.municipalities)||void 0===e||!e.length)}),v=bl(function(){var e,t;return null!==(e=null===(t=o.value)||void 0===t?void 0:t.municipalities)&&void 0!==e?e:[]});return{activeDetail:o,onNavigate:function(e){var a=e.level,c=e.group,u=e.detail,d=e.options;i.value=!1,t.value=a,n.value=c,o.value=u,r.value=null!=d?d:[],"sundhedsraad"!==(null==u?void 0:u.kind)&&(l.value="sundhedsraad",s.value=new Set)},onLoadError:function(){i.value=!0},loadError:i,infoTitle:c,searchPlaceholder:u,searchOptions:r,mapRef:a,onSearchSelect:function(e){var t;return null===(t=a.value)||void 0===t?void 0:t.selectByName(e)},isMunicipalityOpen:function(e){return s.value.has(e)},showSearch:d,showSrToggle:p,isTabSundhedsraad:f,isTabKommuner:m,showSrStats:g,showSrSectionHeading:h,showKommunerList:b,srMunicipalities:v,setSrTab:function(e){l.value=e,s.value=new Set},toggleMunicipality:function(e){var t=new Set(s.value);t.has(e)?t.delete(e):t.add(e),s.value=t}}}},tR=eR,nR=(0,Hb.A)(tR,[["render",function(e,t,n,o,r,a){var i=qr("DanmarksKortMap"),l=qr("FormInputCombobox"),s=qr("StatList");return Ai(),Si("article",TN,[Mi("section",{class:"kb-danmarks-kort__map-panel","aria-label":e.mapPanelLabel},[Ni(i,{ref:"mapRef",title:e.title,flow:e.flow,"group-data":e.groupData,legend:e.legend,"municipality-data-url":e.municipalityDataUrl,"accessibility-list-label-municipality":e.accessibilityListLabelMunicipality,"accessibility-list-label-sundhedsraad":e.accessibilityListLabelSundhedsraad,"legend-label":e.legendLabel,onNavigate:e.onNavigate,onLoadError:e.onLoadError},null,8,["title","flow","group-data","legend","municipality-data-url","accessibility-list-label-municipality","accessibility-list-label-sundhedsraad","legend-label","onNavigate","onLoadError"])],8,IN),Mi("section",BN,[Mi("h2",ON,fe(e.infoTitle),1),e.showSrToggle?(Ai(),Si("div",{key:0,class:"kb-danmarks-kort__sr-toggle",role:"group","aria-label":e.srToggleAriaLabel},[Mi("button",{type:"button",class:Y(["kb-danmarks-kort__sr-toggle-btn",{"kb-danmarks-kort__sr-toggle-btn--active":e.isTabSundhedsraad}]),"aria-pressed":e.isTabSundhedsraad,onClick:t[0]||(t[0]=function(t){return e.setSrTab("sundhedsraad")})},fe(e.srTabLabelSundhedsraad),11,DN),Mi("button",{type:"button",class:Y(["kb-danmarks-kort__sr-toggle-btn",{"kb-danmarks-kort__sr-toggle-btn--active":e.isTabKommuner}]),"aria-pressed":e.isTabKommuner,onClick:t[1]||(t[1]=function(t){return e.setSrTab("kommuner")})},fe(e.srTabLabelKommuner),11,MN)],8,LN)):zi("v-if",!0),e.showSearch?(Ai(),Ti(l,{key:1,class:"kb-danmarks-kort__search","field-id":"danmarks-kort-search",options:e.searchOptions,"aria-label":e.searchPlaceholder,placeholder:e.searchPlaceholder,"button-label":e.searchButtonLabel,"no-results-label":e.searchNoResultsLabel,onSelect:e.onSearchSelect},null,8,["options","aria-label","placeholder","button-label","no-results-label","onSelect"])):zi("v-if",!0),e.showSrSectionHeading?(Ai(),Si("p",NN,fe(e.srSectionHeading),
21)):zi("v-if",!0),e.showSrStats?(Ai(),Ti(s,{key:3,stats:e.activeDetail.stats},null,8,["stats"])):zi("v-if",!0),e.showKommunerList?(Ai(),Si(gi,{key:4},[Mi("p",PN,fe(e.kommunerSectionHeading),1),Mi("div",RN,[(Ai(!0),Si(gi,null,Yr(e.srMunicipalities,function(n,o){return Ai(),Si(gi,{key:n.name},[Mi("h3",FN,[t[2]||(t[2]=Mi("svg",{viewBox:"0 0 705 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M705 1H2a1 1 0 0 0-1 1v9",stroke:"#BFBFB7"})],-1)),Mi("button",{id:"dk-sr-acc-q-"+o,"aria-controls":"dk-sr-acc-a-"+o,"aria-expanded":e.isMunicipalityOpen(n.name),onClick:function(t){return e.toggleMunicipality(n.name)}},[Fi(fe(n.name)+" "+fe(e.municipalityNameSuffix)+" ",1),Mi("div",{class:Y(["kb-accordion__question__chevron kb-ui-icon kb-ui-icon--ui-chevron-down",{"kb-accordion__question__chevron--open":e.isMunicipalityOpen(n.name)}]),"aria-hidden":"true"},null,2)],8,VN)]),Mi("div",{class:Y(["kb-accordion__answer",{"kb-accordion__answer--open":e.isMunicipalityOpen(n.name)}]),id:"dk-sr-acc-a-"+o,role:"region","aria-labelledby":"dk-sr-acc-q-"+o},[n.stats?(Ai(),Ti(s,{key:0,stats:n.stats},null,8,["stats"])):zi("v-if",!0)],10,zN)],64)}),128))])],64)):zi("v-if",!0),e.loadError?(Ai(),Si("p",UN,fe(e.loadErrorLabel),1)):zi("v-if",!0),e.disclaimerText?(Ai(),Si("p",jN,fe(e.disclaimerText),
21)):zi("v-if",!0)])])}]]),oR=nR;var rR=["mapPanelLabel","searchButtonLabel","searchNoResultsLabel","searchLabelCountry","searchLabelMunicipality","searchLabelSundhedsraad","accessibilityListLabelMunicipality","accessibilityListLabelSundhedsraad","legendLabel","srTabLabelSundhedsraad","srTabLabelKommuner","srToggleAriaLabel","srSectionHeading","kommunerSectionHeading","municipalityNameSuffix","disclaimerText","loadErrorLabel"],aR={class:"kb-delete-cancer-profile-modal"},iR={class:"kb-delete-cancer-profile-modal__hero"},lR={class:"kb-delete-cancer-profile-modal__hero__title-wrapper"},sR={class:"kb-delete-cancer-profile-modal__hero__title-wrapper__title"},cR={class:"kb-delete-cancer-profile-modal__description"},uR={class:"kb-delete-cancer-profile-modal__description-text"},dR={class:"kb-delete-cancer-profile-modal__body"},pR={class:"kb-delete-cancer-profile-modal__body-content"},fR={class:"kb-delete-cancer-profile-modal__body-text"},mR={class:"kb-delete-cancer-profile-modal__body-content"},gR={class:"kb-delete-cancer-profile-modal__body-text"};const hR={name:"DeleteCancerProfileModal",props:{continueUrl:{type:String,required:!1,default:null},continueUrlWithData:{type:String,required:!1,default:null}},setup:function(e){var t=Af(),n=bl(function(){return t.state.main.page_overlay_content_data.cancerforumProfileId}),o=bl(function(){return null!==e.continueUrl?e.continueUrl:t.state.main.page_overlay_content_data.continueUrl}),r=bl(function(){return null!==e.continueUrlWithData?e.continueUrl:t.state.main.page_overlay_content_data.continueUrlWithData});return{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"DeleteCancerProfileModal",labelKey:e})},deleteProfileAndData:function(){t.dispatch("forum/deleteCancerProfileAndData",{id:n.value,continueUrl:o.value})},deleteProfile:function(){t.dispatch("forum/deleteCancerProfile",{id:n.value,continueUrl:r.value})}}}},bR=hR,vR=(0,Hb.A)(bR,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",aR,[Mi("section",iR,[Mi("div",lR,[Mi("h2",sR,fe(e.getLabel("title")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-delete-cancer-profile-modal__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",cR,[Mi("p",uR,fe(e.getLabel("text")),1)])]),t[3]||(t[3]=Mi("div",{class:"kb-delete-cancer-profile-modal__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",dR,[Mi("div",pR,[Mi("p",fR,fe(e.getLabel("deleteProfileAndDataText")),1),Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[0]||(t[0]=function(){return e.deleteProfileAndData&&e.deleteProfileAndData.apply(e,arguments)})},fe(e.getLabel("deleteProfileAndDataButton")),1)]),Mi("div",mR,[Mi("p",gR,fe(e.getLabel("deleteProfileText")),1),Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[1]||(t[1]=function(){return e.deleteProfile&&e.deleteProfile.apply(e,arguments)})},fe(e.getLabel("deleteProfileButton")),1)])])])}]]);var yR={class:"kb-delete-comment-overlay"},_R={class:"kb-delete-comment-overlay__hero"},AR={class:"kb-delete-comment-overlay__hero__title-wrapper"},kR={class:"kb-delete-comment-overlay__hero__title-wrapper__title"},xR={class:"kb-delete-comment-overlay__description"},wR={class:"kb-delete-comment-overlay__description-text"},CR={class:"kb-delete-comment-overlay__body"};const ER={name:"DeleteCommentOverlay",setup:function(){var e=Af();return{getLabel:function(e){return dA({labelKey:e,labelCollection:"DeleteCommentOverlay"})},deleteComment:function(){e.state.main.page_overlay_content_data.callback()}}}},SR=ER,TR=(0,Hb.A)(SR,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",yR,[Mi("section",_R,[Mi("div",AR,[Mi("h2",kR,fe(e.getLabel("title")),1)]),t[1]||(t[1]=Mi("div",{class:"kb-delete-comment-overlay__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",xR,[Mi("p",wR,fe(e.getLabel("text")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-delete-comment-overlay__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",CR,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[0]||(t[0]=function(){return e.deleteComment&&e.deleteComment.apply(e,arguments)})}
2,fe(e.getLabel("deleteButton")),1)])])}]]);var IR={class:"kb-delete-event-modal"},BR={class:"kb-delete-event-modal__hero"},OR={class:"kb-delete-event-modal__hero__title-wrapper"},LR={class:"kb-delete-event-modal__hero__title-wrapper__title"},DR={class:"kb-delete-event-modal__description"},MR={class:"kb-delete-event-modal__description-text"},NR={class:"kb-delete-event-modal__body"};const PR={name:"DeleteEventModal",setup:function(){var e=Af();return{getLabel:function(e){return dA({labelKey:e,labelCollection:"DeleteEventModal"})},deletePost:function(){e.state.main.page_overlay_content_data.callback()}}}},RR=PR,FR=(0,Hb.A)(RR,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",IR,[Mi("section",BR,[Mi("div",OR,[Mi("h2",LR,fe(e.getLabel("title")),1)]),t[1]||(t[1]=Mi("div",{class:"kb-delete-event-modal__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",DR,[Mi("p",MR,fe(e.getLabel("text")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-delete-event-modal__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",NR,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[0]||(t[0]=function(){return e.deletePost&&e.deletePost.apply(e,arguments)})},fe(e.getLabel("deleteButton")),1)])])}]]);function VR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var zR={class:"kb-overlay-styles__content-wrapper"},UR={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},jR={class:"kb-overlay-styles__hero"},HR={class:"kb-overlay-styles__hero-wrapper"},qR={class:"kb-overlay-styles__hero-title"},GR={class:"kb-overlay-styles__hero-description"},KR={class:"kb-overlay-styles__hero-description-text"},ZR={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},WR={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},$R={class:"kb-stafet-step__texts-wrapper"},YR={class:"kb-stafet-step__texts-description"},JR={class:"kb-stafet-flow-actions"},XR={class:"kb-stafet-flow-actions__buttons-left-wrapper"},QR={key:0,class:"kb-spinner-overlay"};const eF={name:"DeleteFrivilligjobOverlay",setup:function(){var e=Af(),t=bl(function(){return e.state.frivilligprofil.is_submitting}),n=bl(function(){return e.state.main.page_overlay_content_data.frivilligjobId}),o=bl(function(){return e.state.main.page_overlay_content_data.redirectAfterDeleteUrl});return{isSubmitting:t,getLabel:function(t,n){var o=e.getters["labels/getLabel"]({labelCollection:"DeleteFrivilligjobOverlay",labelKey:t});return n&&n.forEach(function(e,t){o=o.replace("{".concat(t,"}"),e)}),o},handleRegret:function(){e.dispatch("main/closePageOverlay")},submitConfirmDelete:function(){e.dispatch("frivilligjob/deleteFrivilligjob",n.value).then(function(e){window.location.href=o.value})}}}},tF=eF,nF=(0,Hb.A)(tF,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",zR,[Mi("article",{class:Y(["kb-overlay-styles kb-delete-frivilligjob-overlay",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",UR,[Mi("div",jR,[Mi("div",HR,[Mi("h4",qR,fe(e.getLabel("title")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-overlay-styles__hero-breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",GR,[Mi("p",KR,fe(e.getLabel("warning")),1)])]),t[3]||(t[3]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",ZR,[Mi("section",WR,[Mi("div",$R,[Mi("p",YR,fe(e.getLabel("description")),1)]),Mi("nav",JR,[Mi("div",XR,[Mi("button",{class:"kb-button kb-button--outline",onClick:t[0]||(t[0]=function(){return e.handleRegret&&e.handleRegret.apply(e,arguments)})},fe(e.getLabel("regretButtonText")),1),Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[1]||(t[1]=function(){return e.submitConfirmDelete&&e.submitConfirmDelete.apply(e,arguments)})},fe(e.getLabel("submitConfirmDeleteButtonText")),1)])])])])]),e.isSubmitting?(Ai(),Si("div",QR,(i=t[4]||(t[4]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return VR(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return VR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?VR(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)]);var i}]]);var oF={class:"kb-delete-post-overlay"},rF={class:"kb-delete-post-overlay__hero"},aF={class:"kb-delete-post-overlay__hero__title-wrapper"},iF={class:"kb-delete-post-overlay__hero__title-wrapper__title"},lF={class:"kb-delete-post-overlay__description"},sF={class:"kb-delete-post-overlay__description-text"},cF={class:"kb-delete-post-overlay__body"};const uF={name:"DeletePostOverlay",setup:function(){var e=Af();return{getLabel:function(e){return dA({labelKey:e,labelCollection:"DeletePostOverlay"})},deletePost:function(){e.state.main.page_overlay_content_data.callback()}}}},dF=uF,pF=(0,Hb.A)(dF,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",oF,[Mi("section",rF,[Mi("div",aF,[Mi("h2",iF,fe(e.getLabel("title")),1)]),t[1]||(t[1]=Mi("div",{class:"kb-delete-post-overlay__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",lF,[Mi("p",sF,fe(e.getLabel("text")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-delete-post-overlay__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",cF,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[0]||(t[0]=function(){return e.deletePost&&e.deletePost.apply(e,arguments)})}
2,fe(e.getLabel("deleteButton")),1)])])}]]);function fF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var mF={class:"kb-delete-profile-flow"},gF={class:"kb-delete-profile-flow-header"},hF={key:0,class:"kb-delete-profile-flow-header__step-indicator"},bF={class:"kb-delete-profile-flow-header__step-indicator-list-item"},vF={class:"kb-delete-profile-flow-header__title"},yF={class:"kb-delete-profile-flow-header__description"},_F={class:"kb-delete-profile-flow-body"},AF={key:0,class:"kb-delete-profile-flow-body__step"},kF={class:"kb-rich-text"},xF=["innerHTML"],wF={class:"kb-delete-profile-flow-body__step--radio"},CF=["value"],EF={for:"hard-delete"},SF=["value"],TF={for:"soft-delete"},IF={key:0,class:"Form__Element__ValidationError"},BF={key:1,class:"kb-delete-profile-flow-body__step"},OF={class:"kb-rich-text"},LF=["innerHTML"],DF={key:2,class:"kb-delete-profile-flow-body__step"},MF={class:"kb-rich-text"},NF=["innerHTML"],PF={key:3,class:"kb-delete-profile-flow-body__step"},RF={class:"kb-rich-text"},FF=["innerHTML"],VF={class:"kb-stafet-flow-actions"},zF={class:"button-wrapper"},UF={key:0,class:"kb-spinner-overlay"};function jF(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return HF(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(HF(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,HF(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,HF(d,"constructor",c),HF(c,"constructor",s),s.displayName="GeneratorFunction",HF(c,r,"GeneratorFunction"),HF(d),HF(d,r,"Generator"),HF(d,o,function(){return this}),HF(d,"toString",function(){return"[object Generator]"}),(jF=function(){return{w:a,m:p}})()}function HF(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}HF=function(e,t,n,o){function a(t,n){HF(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},HF(e,t,n,o)}function qF(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}var GF={CANCERFORUM:"CANCERFORUM",FRIVILLIG:"FRIVILLIG",SFL:"SFL",MENO:"MENO"},KF={SOFT_DELETE:"soft-delete",HARD_DELETE:"hard-delete"};const ZF={name:"DeleteProfileFlow",props:{userProfileId:{type:String,required:!0},userData:{type:Object,required:!0}},setup:function(e){var t=Af(),n=bl(function(){return t.state.main.is_submitting}),o=Kt(!1),r=[];if(e.userData.hasCancerforumProfile&&r.push(GF.CANCERFORUM),e.userData.hasFrivilligProfile&&r.push(GF.FRIVILLIG),e.userData.hasStafetForLivetProfile&&r.push(GF.SFL),e.userData.hasMenopauseProfile&&r.push(GF.MENO),!r.length)throw new Error("Mu
2st have at least one step in flow");var a=Kt(0),i=bl(function(){return r[a.value]}),l=bl(function(){return 0===a.value}),s=bl(function(){return a.value===r.length-1}),c=Kt(null),u=bl(function(){return!!c.value}),d=bl(function(){return i.value!==GF.CANCERFORUM||u.value}),p=function(e){return t.getters["labels/getLabel"]({labelCollection:"DeleteProfileFlow",labelKey:e})},f=bl(function(){if(s.value)return"";var e=r[a.value+1];switch(e){case GF.FRIVILLIG:return p("continueToFrivilligLabel");case GF.SFL:return p("continueToSflLabel");case GF.CANCERFORUM:return p("continueToCancerforumLabel");case GF.MENO:return p("continueToMemoLabel");default:throw new Error("Invalid next step: ".concat(e))}}),m=function(){scrollTo(0,0)},g=function(){var n,r=(n=jF().m(function n(){return jF().w(function(n){for(;;)switch(n.n){case 0:if(d.value){n.n=1;break}return o.value=!0,n.a(2);case 1:o.value=!1,t.dispatch("main/deleteUserProfile",{userProfileId:e.userProfileId,body:{isCancerforumSoftDelete:c.value===KF.SOFT_DELETE}}).then(function(e){return window.location.href=e});case 2:return n.a(2)}},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){qF(a,o,r,i,l,"next",e)}function l(e){qF(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return r.apply(this,arguments)}}();return{getLabel:p,decodeHtml:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},isSubmitting:n,displayError:o,steps:r,currentStep:i,currentStepIndex:a,isFirstStep:l,isLastStep:s,FlowSteps:GF,DeletionMethods:KF,nextStepLabel:f,getStepTitle:function(e){switch(e){case GF.CANCERFORUM:return p("cancerforumTitle");case GF.FRIVILLIG:return p("frivilligTitle");case GF.SFL:return p("sflTitle");case GF.MENO:return p("menoTitle");default:return""}},cancel:function(){history.back()},previousStep:function(){a.value--,m()},nextStep:function(){d.value?(o.value=!1,a.value++,m()):o.value=!0},submit:g,selectedCancerforumDeleteSetting:c,isCancerforumDeleteSettingValid:u}}},WF=ZF,$F=(0,Hb.A)(WF,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",mF,[Mi("div",gF,[e.steps.length>1?(Ai(),Si("ul",hF,[(Ai(!0),Si(gi,null,Yr(e.steps,function(t,n){return Ai(),Si("li",bF,[Mi("div",{class:Y(["kb-delete-profile-flow-header__step-indicator-circle",{"kb-delete-profile-flow-header__step-indicator-circle--active-step":n===e.currentStepIndex}])},[Mi("p",null,fe(n+1),1)],2),Mi("strong",null,fe(e.getStepTitle(t)),1)])}),256))])):zi("v-if",!0),Mi("h1",vF,fe(e.getLabel("title")),1),t[6]||(t[6]=Mi("div",{class:"kb-delete-profile-flow-header__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",yF,fe(e.getLabel("description")),1)]),Mi("div",_F,[e.currentStep===e.FlowSteps.CANCERFORUM?(Ai(),Si("section",AF,[Mi("h2",null,fe(e.getLabel("cancerforumTitle")),1),Mi("div",kF,[Mi("div",{class:"kb-rich-text__content",innerHTML:e.decodeHtml(e.getLabel("cancerforumDescription"))},null,8,xF)]),Mi("ul",wF,[Mi("li",null,[io(Mi("input",{type:"radio",name:"cancerforum-delete",id:"hard-delete",value:e.DeletionMethods.HARD_DELETE,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.selectedCancerforumDeleteSetting=t})},null,8,CF),[[Js,e.selectedCancerforumDeleteSetting]]),Mi("label",EF,[Mi("strong",null,fe(e.getLabel("cancerforumHardDeleteTitle")),1),Mi("div",null,fe(e.getLabel("cancerforumHardDeleteDescription")),1)])]),Mi("li",null,[io(Mi("input",{type:"radio",name:"cancerforum-delete",id:"soft-delete",value:e.DeletionMethods.SOFT_DELETE,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.selectedCancerforumDeleteSetting=t})},null,8,SF),[[Js,e.selectedCancerforumDeleteSetting]]),Mi("label",TF,[Mi("strong",null,fe(e.getLabel("cancerforumSoftDeleteTitle")),1),Mi("div",null,fe(e.getLabel("cancerforumSoftDeleteDescription")),1)])])]),e.displayError&&!e.isCancerforumDeleteSettingValid?(Ai(),Si("p",IF,fe(e.getLabel("cancerforumErrorLabel")),1)):zi("v-if",!0)])):e.currentStep===e.FlowSteps.FRIVILLIG?(Ai(),Si("section",BF,[Mi("h2",null,fe(e.getLabel("frivilligTitle")),1),Mi("div",OF,[Mi("div",{class:"kb-rich-text__content",innerHTML:e.decodeHtml(e.getLabel("frivilligDescription"))},null,8,LF)])])):e.currentStep===e.FlowSteps.SFL?(Ai(),Si("section",DF,[Mi("h2",null,fe(e.getLabel("sflTitle")),1),Mi("div",MF,[Mi("div",{class:"kb-rich-text__content",innerHTML:e.decodeHtml(e.getLabel("sflDescription"))},null,8,NF)])])):e.currentStep===e.FlowSteps.MENO?(Ai(),Si("section",PF,[Mi("h2",null,fe(e.getLabel("menoTitle")),1),Mi("div",RF,[Mi("div",{class:"kb-rich-text__content",innerHTML:e.decodeHtml(e.getLabel("menoDescription"))},null,8,FF)])])):zi("v-if",!0),Mi("div",VF,[Mi("p",null,fe(e.getLabel("buttonActionsDescription")),1),Mi("div",zF,[e.isFirstStep?(Ai(),Si("button",{key:0,onClick:t[2]||(t[2]=function(){return e.cancel&&e.cancel.apply(e,arguments)}),class:"kb-button"},fe(e.getLabel("cancelLabel")),1)):(Ai(),Si("button",{key:1,onClick:t[3]||(t[3]=function(){return e.previousStep&&e.previousStep.apply(e,arguments)}),class:"kb-button"},fe(e.getLabel("backLabel")),1)),e.isLastStep?(Ai(),Si("button",{key:2,onClick:t[4]||(t[4]=function(){return e.submit&&e.submit.apply(e,arguments)}),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("submitLabel")),1)):(Ai(),Si("button",{key:3,onClick:t[5]||(t[5]=function(){return e.nextStep&&e.nextStep.apply(e,arguments)}),class:"kb-button kb-button--full-color-spot"},fe(e.nextStepLabel),1))])])]),e.isSubmitting?(Ai(),Si("div",UF,(i=t[7]||(t[7]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return fF(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return fF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fF(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)]);var i}]]);function YF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var JF={class:"kb-overlay-styles__content-wrapper"},XF={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},QF={class:"kb-overlay-styles__hero"},eV={class:"kb-overlay-styles__hero-wrapper"},tV={class:"kb-overlay-styles__hero-title"},nV={class:"kb-overlay-styles__hero-description"},oV={class:"kb-overlay-styles__hero-description-text"},rV={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},aV={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},iV={class:"kb-stafet-step__texts-wrapper"},lV={class:"kb-stafet-step__texts-description"},sV={class:"kb-stafet-flow-actions"},cV={class:"kb-stafet-flow-actions__buttons-left-wrapper"},uV={key:0,class:"kb-spinner-overlay"};const dV={name:"DeleteRoleOverlay",setup:function(){var e=Af(),t=bl(function(){return e.state.frivilligprofil.is_submitting}),n=bl(function(){return e.state.main.page_overlay_content_data.groupRoleId});return{isSubmitting:t,getLabel:function(t,n){var o=e.getters["labels/getLabel"]({labelCollection:"DeleteRoleOverlay",labelKey:t});
2return n&&n.forEach(function(e,t){o=o.replace("{".concat(t,"}"),e)}),o},handleRegret:function(){e.dispatch("main/closePageOverlay")},submitConfirmDelete:function(){e.dispatch("frivilligprofil/deleteRolletildeling",n.value)}}}},pV=dV,fV=(0,Hb.A)(pV,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",JF,[Mi("article",{class:Y(["kb-overlay-styles kb-delete-role-overlay",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",XF,[Mi("div",QF,[Mi("div",eV,[Mi("h4",tV,fe(e.getLabel("title")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-overlay-styles__hero-breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",nV,[Mi("p",oV,fe(e.getLabel("warning")),1)])]),t[3]||(t[3]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",rV,[Mi("section",aV,[Mi("div",iV,[Mi("p",lV,fe(e.getLabel("description")),1)]),Mi("nav",sV,[Mi("div",cV,[Mi("button",{class:"kb-button kb-button--outline",onClick:t[0]||(t[0]=function(){return e.handleRegret&&e.handleRegret.apply(e,arguments)})},fe(e.getLabel("regretButtonText")),1),Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[1]||(t[1]=function(){return e.submitConfirmDelete&&e.submitConfirmDelete.apply(e,arguments)})},fe(e.getLabel("submitConfirmDeleteButtonText")),1)])])])])]),e.isSubmitting?(Ai(),Si("div",uV,(i=t[4]||(t[4]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return YF(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return YF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YF(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)]);var i}]]);var mV=r(689),gV=r.n(mV);function hV(e){return function(e){if(Array.isArray(e))return bV(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bV(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var vV={key:0,class:"kb-dictionary-word",ref:"wordPopup"},yV={class:"kb-dictionary-word__triangle",ref:"arrow"},_V={class:"kb-dictionary-word__title"},AV={class:"kb-dictionary-word__definition"},kV={key:0,class:"kb-dictionary-word__article-link"},xV=["href"],wV={key:1};const CV={name:"DictionaryWord",props:{domId:{type:String,required:!0},wordObject:{type:Object,required:!0}},setup:function(e){var t=e.wordObject,n=t.id,o=t.word,r=t.wordArticleUrl,a=Af(),i=Kt(!1),l=bl(function(){return a.getters["dictionary/getWordDefinitionById"](n)}),s=Hx(function(){a.dispatch("dictionary/fetch_word_definition",{id:n})},500),c=Kt(null),u=Kt(null),d=Kt(null),p=Kt(null),f=function(e){if(u.value.contains(e.target))return!1;e.preventDefault(),m()};Dr(function(){var t=document.querySelector(e.domId),n=t.querySelector("span"),o=new CustomEvent("dictionaryWordMounted",{bubbles:!0,detail:n.innerText});t.dispatchEvent(o)});var m=function(){document.body.removeEventListener("click",f),a.commit("main/set_dictionary_visible",!1),i.value=!1};return{arrow:d,closeDialog:m,closeButton:p,display:i,fetchDefinition:s,highlighted:c,id:n,showDialog:function(){var e;a.state.main.dictionary_visible||(a.commit("main/set_dictionary_visible",!0),s(),e=function(t){"Escape"===t.key&&(m(),document.body.removeEventListener("keydown",e))},document.body.addEventListener("keydown",e),i.value=!0,setTimeout(function(){var e=0,t=u.value.getBoundingClientRect().left,n=u.value.getBoundingClientRect().right,o=u.value.getBoundingClientRect().bottom,r=u.value.offsetWidth,a=r/2-(c.value.offsetWidth/2-10),i=o>document.documentElement.clientHeight,l=a>t,s=n-a>document.documentElement.offsetWidth;if(i&&(u.value.style.bottom=c.value.offsetHeight+10+"px",d.value.style.bottom="-35px",d.value.style.top="auto"),l)a-=a-t,e=c.value.offsetWidth/2-10+c.value.getBoundingClientRect().left;else if(s){var m=n-a-document.documentElement.offsetWidth;a+=m,e=r/2+m}u.value.style.left="-"+a+"px",e&&(d.value.style.left=e+"px"),document.body.addEventListener("click",f),p.value.focus()},10))},tapTrap:function(e){e.preventDefault(),e.stopPropagation(),m(),c.value.focus()},word:o,wordDefinition:l,wordArticleUrl:r,wordPopup:u}}},EV=CV,SV=(0,Hb.A)(EV,[["render",function(e,t,n,o,r,a){return Ai(),Si(gi,null,[Mi("span",{onClick:t[0]||(t[0]=function(){return e.showDialog&&e.showDialog.apply(e,arguments)}),onKeydown:t[1]||(t[1]=cc(function(){return e.showDialog&&e.showDialog.apply(e,arguments)},["enter"])),tabindex:"0",class:"kb-dictionary-word__highlighted",ref:"highlighted"},fe(e.word),545),e.display?(Ai(),Si("div",vV,[Mi("div",yV,null,512),Mi("button",{class:"kb-dictionary-word__close","aria-label":"luk",ref:"closeButton",onKeydown:t[2]||(t[2]=function(){return e.tapTrap&&e.tapTrap.apply(e,arguments)}),onClick:t[3]||(t[3]=function(){return e.closeDialog&&e.closeDialog.apply(e,arguments)})},hV(t[4]||(t[4]=[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-close"},null,-1)])),544),e.wordDefinition?(Ai(),Si(gi,{key:0},[Mi("mark",_V,fe(e.wordDefinition.title),1),Mi("mark",AV,fe(e.wordDefinition.definition),1),e.wordArticleUrl?(Ai(),Si("mark",kV,[Mi("a",{class:"kb-dictionary-word__article-link__button",href:e.wordArticleUrl},"Læs hele beskrivelsen i ordbogen",8,xV)])):zi("v-if",!0)],64)):(Ai(),Si("div",wV,hV(t[5]||(t[5]=[Mi("div",{class:"kb-dictionary-word__empty-title"},null,-1),Mi("div",{class:"kb-dictionary-word__empty-text"},null,-1),Mi("div",{class:"kb-dictionary-word__empty-text"},null,-1)]))))],512)):zi("v-if",!0)],64)}]]),TV={name:"Dictionary",components:{DictionaryWord:SV},props:{wordObjects:{type:Array,required:!0}},setup:function(e){Dr(function(){var t=[],n={accuracy:{value:"exactly",limiters:[",",".","?","!",";",":"]},exclude:["a","h1","h2","h3","h4","h5"],separateWordSearch:!1,element:"span",className:"kb-component--dictionary-word kb-dictionary-word__definition-set",each:function(t){var n=e.wordObjects.find(function(e){return e.word.toLowerCase()==t.innerText.toLowerCase()||e.word.toLowerCase()==t.innerHTML.toLowerCase()});if(n){var o={id:n.id,word:t.innerHTML,wordArticleUrl:n.wordArticleUrl};t.setAttribute("data-word",JSON.stringify(o)),t.setAttribute("id","kb-component--dictionary-word__"+Math.random().toString(16).slice(2))}}};
2e.wordObjects.forEach(function(e){return t.push(e.word)}),document.querySelectorAll(".kb-rich-text").forEach(function(e){new(gV())(e).mark(t,n)}),document.querySelectorAll(".kb-component--dictionary-word").forEach(function(e){if(e&&e.dataset.word&&!e.hasAttribute("data-v-app")){var t=JSON.parse(e.dataset.word);bc(SV,{domId:"#".concat(e.id),wordObject:t}).use(uh).mount("#".concat(e.id))}})})}},IV=TV,BV=(0,Hb.A)(IV,[["render",function(e,t,n,o,r,a){return null}]]);function OV(e){var t=document.querySelectorAll(".kb-component--dictionary");t.length&&t.forEach(function(t){if(null!==t.getAttribute("data-v-app"))return!1;var n=JSON.parse(t.dataset.words).words;bc(BV,{wordObjects:n}).use(e).mount(t)})}var LV={key:0,class:"kb-dictionary-list__filter"},DV=["onClick","disabled","aria-disabled"],MV=["id"],NV=["href"],PV={key:1,class:"kb-dictionary-list__no-results"},RV={class:"kb-dictionary-list__no-results__summary"},FV=["href"];const VV={name:"DictionaryList",props:{dictionary:{type:Object,required:!0},showFilter:{type:String,required:!1}},setup:function(e){var t=Af(),n=Kt(""),o=bl(function(){return t.getters["search/dictionaryData"]}),r=bl(function(){return t.getters["search/dictionaryFilterBySearch"].filter(function(e){return!n.value||e.letter.toUpperCase()===n.value})}),a=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","Ã","Ã","Ã
"],i=bl(function(){return a.map(function(e){var t;return{letter:e,disabled:!(null!==(t=o.value.find(function(t){return t.letter===e.toUpperCase()}))&&void 0!==t&&t.words.length),selected:n.value===e.toUpperCase()?"kb-dictionary-list--selected":""}})}),l=bl(function(){return e.showFilter});return Dr(function(){t.commit("search/set_dictionary_data",e.dictionary)}),{displayList:r,filterOnLetter:function(e){n.value=n.value===e?"":e},filterLetter:n,startLettersDisplay:i,showFilter:l,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"dictionaryList",labelKey:e})}}}},zV=VV,UV=(0,Hb.A)(zV,[["render",function(e,t,n,o,r,a){return Ai(),Si(gi,null,[e.showFilter?(Ai(),Si("div",LV,[(Ai(!0),Si(gi,null,Yr(e.startLettersDisplay,function(t,n){return Ai(),Si("button",{key:n,class:Y(t.selected),onClick:function(n){return e.filterOnLetter(t.letter)},disabled:t.disabled,"aria-disabled":t.disabled},fe(t.letter),11,DV)}),128))])):zi("v-if",!0),(Ai(!0),Si(gi,null,Yr(e.displayList,function(e,n){return Ai(),Si("div",{class:"kb-dictionary-list__group",key:n},[Mi("dt",{class:"kb-dictionary-list__group__letter",id:"letter-".concat(e.letter)},fe(e.letter),9,MV),(Ai(!0),Si(gi,null,Yr(e.words,function(e,n){return Ai(),Si("dd",{key:n,class:"kb-dictionary-list__group__word"},[Mi("a",{href:e.href},[Fi(fe(e.word)+" ",1),t[0]||(t[0]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link"},null,-1))],8,NV)])}),128))])}),128)),e.displayList.length?zi("v-if",!0):(Ai(),Si("div",PV,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",RV,fe(e.getLabel("noResultDesc")),1),e.getLabel("noResultButtonHref")?(Ai(),Si("a",{key:0,href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,FV)):zi("v-if",!0)]))],64)}]]);function jV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var HV={class:"kb-direct-message-navigation","aria-label":"søgning"},qV={id:"directMessageNavigation",class:"kb-direct-message-navigation__title"},GV={class:"kb-general-search__input kb-direct-message-navigation__input"},KV=["placeholder"],ZV={class:"kb-direct-message-navigation__scroll-wrapper"},WV={key:0,id:"directMessageNavigation",class:"kb-direct-message-navigation__list-title"},$V={key:1,class:"kb-direct-message-navigation__result-ul kb-direct-message-navigation__result-ul--search-results","aria-live":"polite"},YV=["id","onClick"],JV={class:"kb-image-module kb-image-module--1-1 kb-direct-message-navigation__result-member-profile-img"},XV={class:"kb-image-module__image-container"},QV={class:"kb-image-module__image"},ez=["src","alt"],tz={class:"kb-direct-message-navigation__result-member-name"},nz={class:"kb-direct-message-navigation__result-member-name-group"},oz={class:"kb-direct-message-navigation__result-member-name-group-name"},rz={key:0,class:"kb-direct-message-navigation__result-member-name-notification"},az={class:"kb-direct-message-navigation__result-text-wrapper"},iz=["innerHTML"],lz={class:"kb-direct-message-navigation__result-creation-date"};function sz(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return cz(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(cz(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,cz(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,cz(d,"constructor",c),cz(c,"constructor",s),s.displayName="GeneratorFunction",cz(c,r,"GeneratorFunction"),cz(d),cz(d,r,"Generator"),cz(d,o,function(){return this}),cz(d,"toString",function(){return"[object Generator]"}),(sz=function(){return{w:a,m:p}})()}function cz(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}cz=function(e,t,n,o){function a(t,n){cz(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},cz(e,t,n,o)}function uz(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||dz(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dz(e,t){if(e){if("string"==typeof e)return pz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pz(e,t):void 0}}function pz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function fz(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function mz(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){fz(a,o,r,i,l,"next",e)}function l(e){fz(a,o,r,i,l,"throw",e)}i(void 0)})}}const gz={name:"DirectMessageNavigation",props:{guid:{type:String,required:!0},userData:{type:Object,required:!0},chatId:{type:String,required:!1},messagesPerLoad:{type:Number,required:!1}},setup:function(e){var t=Af();e.messagesPerLoad>0&&t.commit("forum/set_direct_message_threads_take",e.messagesPerLoad);var n=Kt(""),o=Kt([]),r=bl(function(){return t.state.forum.is_submitting}),a=bl(function(){return t.state.forum.direct_message_threads}),i=bl(function(){return t.state.forum.direct_message_threads_data}),l=Kt(0),s=bl(function(){return t.state.forum.direct_message_threads_take}),c=Kt(!1),u="";Dr(mz(sz().m(function n(){var o,r,a,i;return sz().w(function(n){for(;;)switch(n.n){case 0:if(!t.state.forum.direct_messages_bootstrapped){n.n=1;break}return n.a(2);case 1:if(t.commit("forum/set_direct_messages_bootstrapped",!0),!(o=new URLSearchParams(document.location.search).get("newChatRecipient"))){n.n=3;break}return n.n=2,Promise.all([t.dispatch("forum/findChatWithUser",{profileId:o}),t.dispatch("forum/getDirectMessageThreads",{userId:e.userData.userId,skip:l.value,take:s.value,loadFirstChat:!1})]);case 2:r=n.v,a=uz(r,1),(i=a[0])?t.dispatch("forum/getDirectMessageThreadData",{chatId:i}):t.dispatch("forum/setupNewChatRecipient",{profileId:o}),n.n=4;break;case 3:u=new URLSearchParams(document.location.search).get("profile"),m(!0);case 4:return n.a(2)}},n)}))),bo(function(){return a.value},function(e){var t;e&&(o.value=e,c.value=e.length<(null!==(t=i.value.totalHits)&&void 0!==t?t:0))});var d=function(){var e,t=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=dz(e))){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,r=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw r}}}}(document.querySelectorAll(".kb-direct-messages-content--big-screens .kb-direct-messages-content__right-wrapper, .kb-direct-messages-content--smaller-screens .kb-direct-messages-content__left-wrapper"));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.offsetParent)return void n.scrollIntoView({behavior:"smooth"})}}catch(e){t.e(e)}finally{t.f()}},p=Hx(function(){f()},500),f=function(){if(""!==n.value){var e=[];a.value.map(function(t){t.chatName.toLowerCase().includes(n.value.toLowerCase())&&e.push(t)}),o.value=e}else o.value=a.value},m=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.dispatch("forum/getDirectMessageThreads",{userId:e.userData.userId,chatId:e.chatId,toProfileId:u,skip:l.value,take:s.value,loadFirstChat:n})};return{showSpinner:r,inputText:n,results:o,getMoreMessageThreads:c,handleInputText:p,searchMessages:f,loadMoreMessageThreads:function(){l.value=s.value+l.value,m()},startNewMessage:function(){t.dispatch("forum/clearDirectMessageThread"),d()},changeChat:function(n){t.dispatch("forum/clearDirectMessageThread"),t.dispatch("forum/getDirectMessageThreadData",{chatId:n,userId:e.userData.userId}),d()},getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"DirectMessageNavigation",labelKey:e})}}}},hz=gz,bz=(0,Hb.A)(hz,[["render",function(e,t,n,o,r,a){return Ai(),Si("nav",HV,[Mi("h2",qV,fe(e.getLabel("title")),1),Mi("div",GV,[io(Mi("input",{type:"search","aria-labelledby":"directMessageNavigation",placeholder:e.getLabel("searchOverlayPlaceholder"),onKeyup:t[0]||(t[0]=function(){return e.handleInputText&&e.handleInputText.apply(e,arguments)}),onKeydown:t[1]||(t[1]=cc(function(){return e.searchMessages&&e.searchMessages.apply(e,arguments)},["enter"])),"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.inputText=t}),"data-order":"first"},null,40,KV),[[Ws,e.inputText]]),Mi("button",{onClick:t[3]||(t[3]=function(){return e.searchMessages&&e.searchMessages.apply(e,arguments)}),class:"kb-general-search__input__button",title:"Søg"},(i=t[6]||(t[6]=[Mi("svg",{viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("circle",{cx:"10",cy:"10",r:"9.5",stroke:"#ffffff"}),Mi("path",{d:"M16 10a6 6 0 0 0-6-6M24.768 25.89l-6.718-6.718 2.122-2.122 7.778 7.778-1.82 1.82",stroke:"#ffffff"})],-1)]),function(e){if(Array.isArray(e))return jV(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return jV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jV(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))]),Mi("section",ZV,[e.results&&e.results.length>0?(Ai(),Si("h2",WV,fe(e.getLabel("allResultsListTitle")),1)):zi("v-if",!0),e.results&&e.results.length>0?(Ai(),Si("ul",$V,[(Ai(!0),Si(gi,null,Yr(e.results,function(t,n){return Ai(),Si("li",{key:n,class:"kb-direct-message-navigation__result-li"},[Mi("button",{class:"kb-direct-message-navigation__result-li-button",id:"message-".concat(t.id),onClick:function(n){return e.changeChat(t.id)}},[Mi("figure",JV,[Mi("div",XV,[Mi("picture",QV,[Mi("img",{src:t.resultImgSrc,alt:t.resultImgAlt},null,8,ez)])])]),Mi("div",tz,[Mi("div",nz,[Mi("p",oz,fe(t.chatName),1),t.hasNotification?(Ai(),Si("span",rz)):zi("v-if",!0)]),Mi("div",az,[Mi("p",{class:"kb-direct-message-navigation__result-message",innerHTML:t.firstMessage},null,8,iz)])]),Mi("p",lz,fe(t.creationDate),1)],8,YV)])}),128))])):zi("v-if",!0)]),e.getMoreMessageThreads?(Ai(),Si("button",{key:0,class:"kb-button kb-button--spot-border-color",onClick:t[4]||(t[4]=function(){return e.loadMoreMessageThreads&&e.loadMoreMessageThreads.apply(e,arguments)})},fe(e.getLabel("getMoreMessagesButtonLabel")),1)):zi("v-if",!0),Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[5]||(t[5]=function(){return e.startNewMessage&&e.startNewMessage.apply(e,arguments)})},fe(e.getLabel("newMessageButtonText")),1)]);var i}]]);var vz={class:"kb-direct-messages-content kb-direct-messages-content--big-screens"},yz={class:"kb-direct-messages-content__left-wrapper"},_z={class:"kb-direct-messages-content__right-wrapper"},Az={class:"kb-direct-messages-content kb-direct-messages-content--smaller-screens"},kz={class:"kb-direct-messages-content__left-wrapper"},xz={class:"kb-direct-messages-content__right-wrapper"};function wz(e){return function(e){if(Array.isArray(e))return Cz(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Cz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cz(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ez={class:"kb-direct-message-thread kb-stafet-step"},Sz={class:"kb-direct-message-thread__header"},Tz={class:"kb-direct-message-thread__header-flex"},Iz={key:0,class:"kb-direct-message-thread__header-profile"},Bz={key:0,class:"kb-image-module kb-image-module--1-1 kb-direct-message-thread__header-profile-profile-img"},Oz={class:"kb-image-module__image-container"},Lz={class:"kb-image-module__image"},Dz=["src"],Mz={class:"kb-direct-message-thread__header-profile-texts"},Nz={class:"kb-direct-message-thread__header-profile-post-author-data"},Pz={class:"kb-direct-message-thread__header-profile-post-author-data-name"},Rz={key:1},Fz={class:"kb-direct-message-thread__header-profile-texts"},Vz={class:"kb-direct-message-thread__header-profile-post-author-data"},zz={class:"kb-direct-message-thread__header-profile-post-author-data-name"},Uz={class:"kb-direct-message-thread__header-users"},jz={key:0,class:"kb-direct-message-thread__header-users-label"},Hz={class:"kb-direct-message-thread__header-users-list"},qz={class:"kb-direct-message-thread__header-actions"},Gz=["aria-expanded"],Kz={key:0,class:"kb-optimizely-forms kb-direct-message-thread__header-search"},Zz={class:"kb-general-search","aria-live":"polite"},Wz={key:0,class:"kb-direct-message-navigation__result-ul kb-direct-message-navigation__result-ul--search-results"},$z=["onClick","id"],Yz={class:"kb-image-module kb-image-module--1-1 kb-direct-message-navigation__result-member-profile-img"},Jz={class:"kb-image-module__image-container"},Xz={class:"kb-image-module__image"},Qz=["src","alt"],eU={class:"kb-direct-message-navigation__result-member-name"},tU={class:"kb-direct-message-navigation__result-member-name-group"},nU={class:"kb-direct-message-navigation__result-member-name-group-name"},oU={class:"kb-direct-message-thread__content"},rU={class:"kb-direct-message-thread__content-comments",ref:"chatContentComponent"},aU={class:"kb-direct-message-thread__content-comments-timestamp"},iU={key:0,class:"kb-direct-message-thread__content-comment-wrapper"},lU={class:"kb-direct-message-thread__content-comment-author"},sU={key:0,class:"kb-direct-message-thread__content-comment-author--edited-date"},cU={key:1,class:"kb-direct-message-thread__content-comment-author--edited-date"},uU={class:"kb-direct-message-thread__content-comment-body"},dU=["innerHTML"],pU={key:0,class:"kb-direct-message-thread__content-comment-actions"},fU=["onClick"],mU=["onClick"],gU={key:1,class:"kb-direct-message-thread__content-comment-editor"},hU={class:"kb-direct-message-thread__actions-editor-chat"},bU={class:"kb-direct-message-thread__actions-editor-buttons"},vU=["onClick"],yU={key:0,class:"kb-spinner-overlay"},_U={class:"kb-direct-message-thread__actions"},AU={class:"kb-direct-message-thread__actions-editor"},kU={"aria-live":"assertive"}
2,xU={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"},wU=["aria-label"];function CU(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return EU(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(EU(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,EU(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,EU(d,"constructor",c),EU(c,"constructor",s),s.displayName="GeneratorFunction",EU(c,r,"GeneratorFunction"),EU(d),EU(d,r,"Generator"),EU(d,o,function(){return this}),EU(d,"toString",function(){return"[object Generator]"}),(CU=function(){return{w:a,m:p}})()}function EU(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}EU=function(e,t,n,o){function a(t,n){EU(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},EU(e,t,n,o)}function SU(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function TU(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){SU(a,o,r,i,l,"next",e)}function l(e){SU(a,o,r,i,l,"throw",e)}i(void 0)})}}function IU(e){return function(e){if(Array.isArray(e))return BU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return BU(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BU(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const OU={name:"DirectMessageThread",components:{AttachmentsEditor:hk,AttachmentsViewer:Rk,Editor:SO,FormInputTextField:mE},props:{chatId:{type:String,required:!1},userData:{type:Object,required:!0},userSearchTake:{type:Number,required:!1,default:15}},setup:function(e){var t=Af(),n=Kt(""),o=Kt(""),r=Kt(""),a=Kt(null),i=Kt(""),l=Kt(!1),s=Kt(!1),c=bl(function(){return t.state.forum.new_chat_users}),u=Kt([]),d=Kt(),p=Kt(),f=bl(function(){return t.state.forum.direct_message_thread_id}),m=bl(function(){return t.state.forum.direct_message_thread_data.chat});bo(m,function(){setTimeout(function(){T()},100)});var g=bl(function(){return t.state.forum.direct_message_thread_data.chatName}),h=bl(function(){return t.state.forum.direct_message_thread_data.chatIcon}),b=bl(function(){var e,n=[];return null===(e=t.state.forum.add_users_data)||void 0===e||e.map(function(e){0===c.value.filter(function(t){return t.id===e.id}).length&&n.push(e)}),n}),v=bl(function(){return t.state.forum.show_user_search}),y=bl(function(){return t.state.forum.is_submitting}),_=bl(function(){var e;return(e=[]).concat.apply(e,IU(m.value.map(function(e){return e.comments})))}),A=bl(function(){return _.value.find(function(e){return e.id===i.value})}),k=bl(function(){return A.value.attachments}),x=Kt([]),w=Kt([]),C=bl(function(){return 0===b.value.length&&c.value.length>0}),E=Hx(function(){t.dispatch("forum/searchForUser",{query:r.value,take:e.userSearchTake})},500),S=function(){var o=TU(CU().m(function o(){return CU().w(function(o){for(;;)switch(o.n){case 0:if(!(c.value.length>0)){o.n=1;break}return o.n=1,t.dispatch("forum/createNewDirectMessageThread",{userIds:c.value.map(function(e){return e.id}),message:n.value,userId:e.userData.userId,files:u.value});case 1:return o.a(2)}},o)}));return function(){return o.apply(this,arguments)}}(),T=function(){p.value&&(p.value.scrollTop=p.value.scrollHeight)},I=function(){var o=TU(CU().m(function o(){return CU().w(function(o){for(;;)switch(o.n){case 0:if(n.value){o.n=1;break}return l.value=!0,o.a(2);case 1:if(l.value=!1,f.value){o.n=2;break}S(),o.n=3;break;case 2:return o.n=3,t.dispatch("forum/submitDirectMessageThreadComment",{text:n.value,chatId:f.value,userId:e.userData.userId,files:u.value});case 3:n.value="",d.value.clear(),T();case 4:return o.a(2)}},o)}));return function(){return o.apply(this,arguments)}}();return{showSpinner:y,showCreateNewChatUsersLabel:C,newChatUsers:c,chatId:f,chats:m,chatName:g,chatIcon:h,newCommentModel:n,editCommentModel:o,userSearchModel:r,editCommentId:i,displayInputError:l,showUserSearch:v,listOfUsers:b,addUserToThread:function(e){var n,o=c.value.filter(function(t){return t.id!==e.id});
2t.commit("forum/set_new_chat_users",[].concat(IU(o),[e])),t.dispatch("forum/clearSearchForUser"),r.value="",null===(n=a.value)||void 0===n||n.focus()},getClassModifier:function(t){var n="";return t.userId===e.userData.userId&&(n+="kb-direct-message-thread__content-comment--left"),t.id===i.value&&(n+=" kb-direct-message-thread__content-comment--edit"),n},editComment:function(e,t){i.value=e,o.value=t},deleteComment:function(n,o){var r;t.dispatch("main/openPageOverlay",{overlayContent:"DeleteCommentOverlay",page_overlay_content_data:{commentId:o},returnTarget:n.currentTarget}),t.commit("main/set_page_overlay_content_data",{callback:(r=TU(CU().m(function n(){return CU().w(function(n){for(;;)switch(n.n){case 0:if(!s.value){n.n=1;break}return n.a(2);case 1:return s.value=!0,n.n=2,t.dispatch("forum/deleteDirectMessageThreadComment",{commentId:o,chatId:f.value,userId:e.userData.userId});case 2:s.value=!1,setTimeout(function(){t.dispatch("main/closePageOverlay")},50);case 3:return n.a(2)}},n)})),function(){return r.apply(this,arguments)})})},deleteThread:function(e){var n;t.dispatch("main/openPageOverlay",{overlayContent:"DeletePostOverlay",returnTarget:e.currentTarget}),t.commit("main/set_page_overlay_content_data",{callback:(n=TU(CU().m(function e(){return CU().w(function(e){for(;;)switch(e.n){case 0:if(!s.value){e.n=1;break}return e.a(2);case 1:return s.value=!0,e.n=2,t.dispatch("forum/deleteDirectMessageThread",{chatId:f.value});case 2:e.v?location.reload():s.value=!1;case 3:return e.a(2)}},e)})),function(){return n.apply(this,arguments)})})},submitNewComment:I,showSearchForUser:function(){t.commit("forum/set_show_user_search",!0)},searchForUser:function(e){a.value||(a.value=e.target),0!==r.value.length?E():t.dispatch("forum/clearSearchForUser")},saveEditComment:function(n){var r=new FormData;o.value&&r.append("text",o.value),x.value.forEach(function(e){r.append("filesToAdd",e)}),w.value.forEach(function(e){r.append("filesToRemove",e)}
2),t.dispatch("forum/editDirectMessageThreadComment",{body:r,commentId:n,chatId:f.value,userId:e.userData.userId}),setTimeout(function(){i.value=""},50)},cancelEditComment:function(){i.value=""},getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"DirectMessageThread",labelKey:e})},filesToAdd:u,attachmentsComponent:d,chatContentComponent:p,editCommentFiles:k,editCommentFilesToAdd:x,editCommentFilesToRemove:w}}},LU=OU,DU=(0,Hb.A)(LU,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("AttachmentsViewer"),s=qr("editor"),c=qr("AttachmentsEditor");return Ai(),Si("article",Ez,[Mi("div",Sz,[Mi("div",Tz,[e.chatId?(Ai(),Si("div",Iz,[e.chatIcon?(Ai(),Si("figure",Bz,[Mi("div",Oz,[Mi("picture",Lz,[Mi("img",{src:e.chatIcon,alt:"",role:"presentation"},null,8,Dz)])])])):zi("v-if",!0),Mi("div",Mz,[Mi("div",Nz,[Mi("p",Pz,fe(e.chatName),1)])])])):(Ai(),Si("div",Rz,[Mi("div",Fz,[Mi("div",Vz,[Mi("p",zz,fe(e.getLabel("createNewChatTitle")),1),Mi("div",Uz,[e.showCreateNewChatUsersLabel?(Ai(),Si("p",jz,fe(e.getLabel("createNewChatUsersLabel"))+":",1)):zi("v-if",!0),Mi("ul",Hz,[(Ai(!0),Si(gi,null,Yr(e.newChatUsers,function(e,t){return Ai(),Si("li",{class:"kb-direct-message-thread__header-users-item",key:t},fe(e.memberName),1)}),128))])])])])])),Mi("div",qz,[e.chatId?(Ai(),Si("button",{key:0,class:"kb-link",onClick:t[0]||(t[0]=function(){return e.deleteThread&&e.deleteThread.apply(e,arguments)}),"aria-haspopup":"true"},fe(e.getLabel("deleteLabel")),1)):zi("v-if",!0),e.chatId?zi("v-if",!0):(Ai(),Si("button",{key:1,class:"kb-link",onClick:t[1]||(t[1]=function(){return e.showSearchForUser&&e.showSearchForUser.apply(e,arguments)}),"aria-expanded":e.showUserSearch},fe(e.getLabel("addUserLabel")),9,Gz))])]),e.showUserSearch?(Ai(),Si("div",Kz,[Ni(i,{modelValue:e.userSearchModel,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.userSearchModel=t}),fieldName:"userSearchModel",label:e.getLabel("userSearchLabel"),onKeyup:e.searchForUser},null,8,["modelValue","label","onKeyup"])])):zi("v-if",!0),Mi("div",Zz,[e.listOfUsers&&e.listOfUsers.length>0?(Ai(),Si("ul",Wz,[(Ai(!0),Si(gi,null,Yr(e.listOfUsers,function(t,n){return Ai(),Si("li",{key:n,class:"kb-direct-message-navigation__result-li"},[Mi("button",{class:"kb-direct-message-navigation__result-li-button",onClick:function(n){return e.addUserToThread(t)},id:"message-".concat(t.id)},[Mi("figure",Yz,[Mi("div",Jz,[Mi("picture",Xz,[Mi("img",{src:t.memberImgSrc,alt:t.resultImgAlt},null,8,Qz)])])]),Mi("p",eU,[Mi("span",tU,[Mi("span",nU,fe(t.memberName),1)])])],8,$z)])}),128))])):zi("v-if",!0)])]),Mi("div",oU,[Mi("div",rU,[(Ai(!0),Si(gi,null,Yr(e.chats,function(n,o){return Ai(),Si(gi,{key:o},[Mi("time",aU,fe(n.timestamp),1),n.comments.length>0?(Ai(!0),Si(gi,{key:0},Yr(n.comments,function(n,r){return Ai(),Si("ul",{key:r,class:"kb-direct-message-thread__content-comments-list"},[Mi("li",{class:Y(["kb-direct-message-thread__content-comment",e.getClassModifier(n)])},[e.editCommentId!==n.id?(Ai(),Si("div",iU,[Mi("p",lU,[Fi(fe(n.author)+" ",1),n.edited?zi("v-if",!0):(Ai(),Si("span",sU,fe(n.createdOn),1)),n.edited?(Ai(),Si("span",cU,fe(n.createdOn)+" ("+fe(e.getLabel("editedLabel"))+": "+fe(n.edited)+") ",1)):zi("v-if",!0)]),Mi("article",uU,[Mi("div",{class:"kb-direct-message-thread__content-comment-text",innerHTML:n.text},null,8,dU)]),Ni(l,{files:n.attachments},null,8,["files"]),n.userId===e.userData.userId?(Ai(),Si("div",pU,[Mi("button",{onClick:function(){return e.editComment(n.id,n.text)},class:"kb-link"},fe(e.getLabel("editLabel")),9,fU),o>0||r>0?(Ai(),Si("button",{key:0,onClick:function(t){return e.deleteComment(t,n.id)},class:"kb-link","aria-haspopup":"true"},fe(e.getLabel("deleteLabel")),9,mU)):zi("v-if",!0)])):zi("v-if",!0)])):(Ai(),Si("div",gU,[Mi("div",hU,[Ni(s,{"api-key":"no-api-key",init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",valid_elements:"a[href|target],strong,em,u,ul,ol,li,p,br",formats:{bold:{inline:"strong"},italic:{inline:"em"},underline:{inline:"u"}},paste_webkit_styles:"none",paste_remove_styles:!0,paste_remove_spans:!0},modelValue:e.editCommentModel,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.editCommentModel=t})},null,8,["modelValue"]),Ni(c,{files:e.editCommentFiles,"onUpdate:filesToAdd":t[4]||(t[4]=function(t){return e.editCommentFilesToAdd=t}),"onUpdate:filesToRemove":t[5]||(t[5]=function(t){return e.editCommentFilesToRemove=t})},null,8,["files"])]),Mi("div",bU,[Mi("button",{onClick:t[6]||(t[6]=function(){return e.cancelEditComment()}),class:"kb-button kb-button--spot-border-color"},fe(e.getLabel("cancelLabel")),1),Mi("button",{onClick:function(){return e.saveEditComment(n.id)},class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("saveLabel")),9,vU)])]))],2)])}),128)):zi("v-if",!0)],64)}),128))],512),e.showSpinner?(Ai(),Si("div",yU,wz(t[10]||(t[10]=[Mi("div",{class:"kb-spinner-overlay__spinner"}
2,null,-1)])))):zi("v-if",!0)]),Mi("div",_U,[Mi("div",AU,[Ni(s,{"api-key":"no-api-key",init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl"},modelValue:e.newCommentModel,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.newCommentModel=t})},null,8,["modelValue"]),Mi("div",kU,[e.displayInputError?(Ai(),Si("p",xU,fe(e.getLabel("newCommentErrorLabel")),1)):zi("v-if",!0)]),Ni(c,{files:[],"onUpdate:filesToAdd":t[8]||(t[8]=function(t){return e.filesToAdd=t}),ref:"attachmentsComponent"},null,512)]),Mi("button",{"aria-label":e.getLabel("newCommentAriaLabel"),onClick:t[9]||(t[9]=function(){return e.submitNewComment&&e.submitNewComment.apply(e,arguments)}),class:Y(["kb-post-comment__new-comment-button",{"kb-direct-message-thread__actions__new-message-button--disabled":e.showSpinner}])},wz(t[11]||(t[11]=[Mi("svg",{viewBox:"0 0 25 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"m18.251 1 5.434 6-5.434 6",stroke:"#fff","stroke-linejoin":"round"}),Mi("path",{d:"M17.62 7H0",stroke:"#fff"})],-1)])),10,wU)])])}]]),MU=DU,NU={name:"DirectMessagesContent",components:{DirectMessageNavigation:bz,DirectMessageThread:MU},props:{chatId:{type:String,required:!1},userData:{type:Object,required:!0},guid:{type:String,required:!0}},setup:function(){}},PU=(0,Hb.A)(NU,[["render",function(e,t,n,o,r,a){var i=qr("DirectMessageNavigation"),l=qr("DirectMessageThread");return Ai(),Si(gi,null,[Mi("article",vz,[Mi("div",yz,[Ni(i,{guid:e.guid,userData:e.userData},null,8,["guid","userData"])]),Mi("div",_z,[Ni(l,{chatId:e.chatId,userData:e.userData},null,8,["chatId","userData"])])]),Mi("article",Az,[Mi("div",kz,[Ni(l,{chatId:e.chatId,userData:e.userData},null,8,["chatId","userData"])]),Mi("div",xz,[Ni(i,{guid:e.guid,userData:e.userData},null,8,["guid","userData"])])])],64)}]]);function RU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var FU={class:"kb-document-and-folder-list"},VU={class:"kb-document-and-folder-list__header"},zU={class:"kb-document-and-folder-list__header-top"},UU={key:0,class:"kb-document-and-folder-list__header-top-navigation"},jU=["href"],HU={class:"kb-document-and-folder-list__header-top-title"},qU={class:"kb-document-and-folder-list__header-top-title-text"},GU={key:0,class:"kb-document-and-folder-list__header-sorting"},KU={class:"kb-document-and-folder-list__wrapper"},ZU={class:"kb-document-and-folder-list__actions"},WU={key:0,class:"kb-document-and-folder-list__actions-wrapper-right"},$U={key:0,class:"kb-spinner-overlay"},YU={class:"kb-file-list-card"},JU=["href","target"],XU={class:"kb-file-list-card__main-content-wrapper-left"},QU={key:0,class:"kb-file-list-card__main-content-icon-wrapper"},ej=["innerHTML"],tj={class:"kb-file-list-card__main-content-text-wrapper"},nj={class:"kb-file-list-card__main-content-text-label"},oj={class:"kb-file-list-card__main-content-text-file-name"},rj={key:0,class:"kb-file-list-card__main-content-wrapper kb-file-list-card__main-content-wrapper-right"},aj={class:"kb-file-list-card__main-content-text-wrapper kb-file-list-card__main-content-text-wrapper--right"},ij={class:"kb-file-list-card__main-content-text-label kb-file-list-card__main-content-text-label--low-opacity"},lj={class:"kb-file-list-card__main-content-text-created-by"},sj={class:"kb-visually-hidden"},cj={class:"kb-file-list-card__secondary-content-wrapper kb-file-list-card--content-padding-last"},uj={class:"kb-visually-hidden"},dj=["innerHTML"],pj={class:"kb-visually-hidden"},fj=["innerHTML"],mj={class:"kb-visually-hidden"},gj=["innerHTML"],hj=["href"],bj={class:"kb-visually-hidden"},vj=["innerHTML"];const yj={name:"FileListCard",props:{cardData:{type:Object,required:!0},cardButtonIcons:{type:Object,required:!0,default:!1}},setup:function(e){var t=Af(),n=bl(function(){var t=e.cardData.updateDate?e.cardData.updateDate:e.cardData.createdDate;return t?new Date(t).toLocaleDateString("da-DK",{year:"numeric",month:"short",day:"numeric"}):""});return{activeActionTarget:bl(function(){return"Dokument"==e.cardData.type?"_blank":null}),enterFunctions:function(e){var t=e.target.parentNode.querySelectorAll(".kb-js--file-function");if(!t.length)return!1;t[0].focus(),t.forEach(function(e,n){e.setAttribute("tabindex",0),t.length-1===n&&e.addEventListener("keydown",function(e){"Tab"===e.code&&!1===e.shiftKey&&t.forEach(function(e){e.setAttribute("tabindex",-1)})}),0===n&&e.addEventListener("keydown",function(e){"Tab"===e.code&&!0===e.shiftKey&&t.forEach(function(e){e.setAttribute("tabindex",-1)})})})},determineStartOverlayFunction:function(e,n,o){t.dispatch("frivillige/setActiveOverlayMode",{mode:o.type}),t.dispatch("frivillige/setActiveItemName",{name:o.name}),t.dispatch("frivillige/setEditModeActive",{mode:!0}
2),t.commit("frivillige/set_active_item_id",o.id),t.dispatch("frivillige/getActiveItemName"),"ConfirmDeleteOverlay"===n&&(t.commit("frivillige/set_delete_item_type",o.type),t.commit("frivillige/set_delete_item_id",o.id),t.commit("frivillige/set_delete_item_name",o.name)),t.dispatch("main/openPageOverlay",{overlayContent:n,returnTarget:e.currentTarget})},exitOnEscape:function(e){var t=e.target.parentNode.parentNode,n=t.querySelector(".kb-js--file-link"),o=t.querySelectorAll(".kb-js--file-function");n.focus(),o.forEach(function(e){e.setAttribute("tabindex",-1)})},getLabel:function(e,t){return dA({labelKey:e,labelCollection:"FileListCard",params:t})},getLabelOrEmpty:function(e,t){return dA({labelKey:e,labelCollection:"FileListCard",params:t,allowEmpty:!0})},date:n}}},_j=yj,Aj=(0,Hb.A)(_j,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",YU,[Mi("a",{href:e.cardData.activeActionLink,target:e.activeActionTarget,alt:"",class:"kb-file-list-card__main-content kb-file-list-card--content-padding kb-js--file-link",onKeydown:t[0]||(t[0]=cc(function(){return e.enterFunctions&&e.enterFunctions.apply(e,arguments)},["down"]))},[Mi("div",XU,[e.cardData.svgIcon?(Ai(),Si("div",QU,[Mi("div",{class:"kb-file-list-card__main-content-icon-circle",innerHTML:e.cardData.svgIcon},null,8,ej)])):zi("v-if",!0),Mi("div",tj,[Mi("p",nj,fe(e.getLabelOrEmpty("updateDate"))+fe(e.date),1),Mi("h4",oj,fe(e.cardData.name),1)])]),e.cardData.createdBy?(Ai(),Si("div",rj,[Mi("div",aj,[Mi("p",ij,fe(e.getLabel("createdTitle")),1),Mi("p",lj,fe(e.cardData.createdBy),1)])])):zi("v-if",!0),Mi("span",sj,fe(e.getLabel("helpTextMainLink")),1)],40,JU),Mi("div",cj,[Mi("button",{tabindex:"-1","aria-haspopup":"dialog",onClick:t[1]||(t[1]=function(t){return e.determineStartOverlayFunction(t,"CreateFolderOverlay",e.cardData)}),onKeydown:t[2]||(t[2]=cc(function(){return e.exitOnEscape&&e.exitOnEscape.apply(e,arguments)},["esc"])),class:"kb-button kb-button--border-color kb-js--file-function"},[Fi(fe(e.getLabel("renameButtonText"))+" ",1),Mi("p",uj,fe(e.getLabel("helpTextOverlayButtonsAndDownloadLink")),1),Mi("div",{class:"kb-button__icon-wrapper",innerHTML:e.cardButtonIcons.renameIcon},null,8,dj)],32),Mi("button",{tabindex:"-1","aria-haspopup":"dialog",onClick:t[3]||(t[3]=function(t){return e.determineStartOverlayFunction(t,"ConfirmDeleteOverlay",e.cardData)}),onKeydown:t[4]||(t[4]=cc(function(){return e.exitOnEscape&&e.exitOnEscape.apply(e,arguments)},["esc"])),class:"kb-button kb-button--border-color kb-js--file-function"},[Fi(fe(e.getLabel("deleteButtonText"))+" ",1),Mi("p",pj,fe(e.getLabel("helpTextOverlayButtonsAndDownloadLink")),1),Mi("div",{class:"kb-button__icon-wrapper",innerHTML:e.cardButtonIcons.deleteIcon},null,8,fj)],32),Mi("button",{tabindex:"-1","aria-haspopup":"dialog",onClick:t[5]||(t[5]=function(t){return e.determineStartOverlayFunction(t,"MoveFileOverlay",e.cardData)}),onKeydown:t[6]||(t[6]=cc(function(){return e.exitOnEscape&&e.exitOnEscape.apply(e,arguments)},["esc"])),class:"kb-button kb-button--border-color kb-js--file-function"},[Fi(fe(e.getLabel("moveButtonText"))+" ",1),Mi("p",mj,fe(e.getLabel("helpTextOverlayButtonsAndDownloadLink")),1),Mi("div",{class:"kb-button__icon-wrapper",innerHTML:e.cardButtonIcons.moveIcon},null,8,gj)],32),Mi("a",{href:e.cardData.downloadLink,tabindex:"-1",target:"_blank",onKeydown:t[7]||(t[7]=cc(function(){return e.exitOnEscape&&e.exitOnEscape.apply(e,arguments)},["esc"])),class:"kb-button kb-button--border-color kb-js--file-function"},[Fi(fe(e.getLabel("downloadButtonText"))+" ",1),Mi("p",bj,fe(e.getLabel("helpTextOverlayButtonsAndDownloadLink")),1),Mi("div",{class:"kb-button__icon-wrapper",innerHTML:e.cardButtonIcons.moveIcon},null,8,vj)],40,hj)])])}]]),kj=Aj,xj={name:"DocumentAndFolderList",components:{FileListCard:kj,FormInputDropdown:XB},props:{guid:{type:String,required:!0},cardButtonIcons:{type:Object,required:!0,default:!1},gruppeKode:{type:String,required:!0},fileTypeDropdownOptions:{type:Object,required:!0}},setup:function(e){var t=Af(),n=function(e){return t.getters["labels/getLabel"]({labelCollection:"DocumentAndFolderList",labelKey:e})},o=bl(function(){return t.state.search.is_searching}),r=bl(function(){return window.screen.width>768}),a=Object.freeze({CreatedDescending:n("sortingCreatedDescending"),CreatedAscending:n("sortingCreatedAscending"),Alphabetical:n("sortingAlphabetical")}),i=[{name:n("sortingCreatedDescending"),value:a.CreatedDescending},{name:n("sortingCreatedAscending"),value:a.CreatedAscending},{name:n("sortingAlphabetical"),value:a.Alphabetical}],l=Kt(a.CreatedDescending),s=Kt(!1),c=Kt(null),u=Kt(null),d=Kt(null),p=bl(function(){return!!u.value}),f=bl(function(){var n=t.state.search.results[e.guid];if(!n)return[];var o=n.slice();return l.value===a.CreatedDescending?o.sort(function(e,t){return new Date(t.createdDate)-new Date(e.createdDate)}):l.value===a.CreatedAscending?o.sort(function(e,t){return new Date(e.createdDate)-new Date(t.createdDate)}):l.value===a.Alphabetical&&o.sort(function(e,t){return e.name.localeCompare(t.name)}),o});Dr(function(){m(),t.commit("frivillige/set_file_type_dropdown_options",e.fileTypeDropdownOptions)});var m=function(){t.commit("search/set_replaceQueryInUrl",!1),t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:"api/frivillig/[pageId]/[gruppeKode]/dokumenter".replace("[gruppeKode]",e.gruppeKode)}
2),t.dispatch("frivillige/setGlobalGruppeKode",{gruppeKode:e.gruppeKode}),t.dispatch("search/performSearch",{guid:e.guid,query:""}).then(function(e){c.value=e.mappeName,u.value=e.parentMappeName,d.value=e.parentMappeUrl})};return{mappeName:c,parentMappeName:u,parentMappeUrl:d,hasParentMappe:p,getLabel:n,startOverlayFunction:function(e,n){"CreateFolderOverlay"===n?(t.dispatch("frivillige/setActiveOverlayMode",{mode:"Mappe"}),t.dispatch("frivillige/setEditModeActive",{mode:!1}),t.dispatch("main/openPageOverlay",{overlayContent:n,returnTarget:e.currentTarget})):(t.dispatch("frivillige/setActiveOverlayMode",{mode:"Dokument"}),t.dispatch("main/openPageOverlay",{overlayContent:n,returnTarget:e.currentTarget}))},files:f,isSearching:o,isDesktop:r,showSorting:s,toggleShowSorting:function(){s.value=!s.value},sortingOptions:i,sorting:l}}},wj=xj,Cj=(0,Hb.A)(wj,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputDropdown"),s=qr("FileListCard");return Ai(),Si(gi,null,[Mi("article",FU,[Mi("div",VU,[Mi("div",zU,[e.hasParentMappe?(Ai(),Si("div",UU,[t[5]||(t[5]=Mi("svg",{viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{d:"M3.875 9 1.158 6l2.717-3",stroke:"#3C3C3C","stroke-linejoin":"round"}),Mi("path",{d:"M4.19 6H13",stroke:"#3C3C3C"})],-1)),Mi("a",{href:e.parentMappeUrl},fe(e.parentMappeName),9,jU)])):zi("v-if",!0),Mi("div",HU,[Mi("div",qU,fe(e.mappeName),1),e.isDesktop?zi("v-if",!0):(Ai(),Si("div",{key:0,class:"kb-document-and-folder-list__header-top-title-sortingtoggle",onClick:t[0]||(t[0]=function(){return e.toggleShowSorting&&e.toggleShowSorting.apply(e,arguments)})},fe(e.getLabel("toggleSorting")),1))])]),e.showSorting||e.isDesktop?(Ai(),Si("div",GU,[Ni(l,{modelValue:e.sorting,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.sorting=t}),localValue:e.sorting,fieldName:"sorting",label:e.Sortering,selectOptions:e.sortingOptions,onChangeCallback:function(t){return e.sorting=t.target.value}},null,8,["modelValue","localValue","label","selectOptions","onChangeCallback"])])):zi("v-if",!0)]),Mi("ul",KU,[(Ai(!0),Si(gi,null,Yr(e.files,function(t,n){return Ai(),Si("li",{key:n,class:"kb-document-and-folder-list__wrapper-element"},[Ni(s,{cardData:t,cardButtonIcons:e.cardButtonIcons},null,8,["cardData","cardButtonIcons"])])}),128))]),Mi("div",ZU,[Mi("button",{onClick:t[2]||(t[2]=function(t){return e.startOverlayFunction(t,"CreateFolderOverlay")}),class:"kb-button kb-button--outline","aria-haspopup":"dialog"},fe(e.getLabel("newFolderButtonLabel")),1),e.hasParentMappe?(Ai(),Si("div",WU,[Mi("button",{onClick:t[3]||(t[3]=function(t){return e.startOverlayFunction(t,"CreateNewFileOverlay")}),class:"kb-button kb-button--outline","aria-haspopup":"dialog"},fe(e.getLabel("newFileButtonLabel")),1),Mi("button",{onClick:t[4]||(t[4]=function(t){return e.startOverlayFunction(t,"UploadNewFileOverlay")}),class:"kb-button kb-button--outline","aria-haspopup":"dialog"},fe(e.getLabel("uploadNewFileButtonLabel")),1)])):zi("v-if",!0)])]),e.isSearching?(Ai(),Si("div",$U,(i=t[6]||(t[6]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return RU(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return RU(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RU(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],64)}]]),Ej=Cj;function Sj(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Tj(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Tj(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Tj(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Tj(d,"constructor",c),Tj(c,"constructor",s),s.displayName="GeneratorFunction",Tj(c,r,"GeneratorFunction"),Tj(d),Tj(d,r,"Generator"),Tj(d,o,function(){return this}),Tj(d,"toString",function(){return"[object Generator]"}),(Sj=function(){return{w:a,m:p}})()}function Tj(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Tj=function(e,t,n,o){function a(t,n){Tj(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Tj(e,t,n,o)}function Ij(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Bj(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Ij(a,o,r,i,l,"next",e)}function l(e){Ij(a,o,r,i,l,"throw",e)}i(void 0)})}}const Oj={name:"DonationAmount",props:{showCustomDonation:{type:Boolean,required:!0}},setup:function(){var e=Kt(void 0),t=Kt(!1),n=Kt(null),o=function(){var e=Bj(Sj().m(function e(n){return Sj().w(function(e){for(;;)switch(e.n){case 0:t.value?a():r();case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),r=function(){var e=Bj(Sj().m(function e(){return Sj().w(function(e){for(;;)switch(e.n){case 0:return t.value=!0,e.n=1,Nn();case 1:n.value.focus();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),a=function(){e.value="",t.value=!1};return{inputFieldRef:n,customDonation:t,toggleCustomDonation:o,disableCustomDonation:a,customDonationAmountInput:e}}};function Lj(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Dj(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Dj(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Dj(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Dj(d,"constructor",c),Dj(c,"constructor",s),s.displayName="GeneratorFunction",Dj(c,r,"GeneratorFunction"),Dj(d),Dj(d,r,"Generator"),Dj(d,o,function(){return this}),Dj(d,"toString",function(){return"[object Generator]"}),(Lj=function(){return{w:a,m:p}})()}function Dj(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Dj=function(e,t,n,o){function a(t,n){Dj(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Dj(e,t,n,o)}function Mj(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Nj(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Mj(a,o,r,i,l,"next",e)}function l(e){Mj(a,o,r,i,l,"throw",e)}i(void 0)})}}var Pj=/^(?:\d{1,3}(?:\.\d{3})*|\d+)(?:,\d{1,2})?$/;function Rj(e){return!!e&&Pj.test(String(e).trim())}function Fj(e){if(!Rj(e))return null;var t=String(e).replace(/\./g,"").replace(",","."),n=Number(t);return Number.isFinite(n)?n:null}const Vj={name:"DonationAmountPicker",props:{donationAmounts:{type:Array,required:!1,default:function(){return[]}},minimumAmount:{type:Number,default:1},onAmountChangeCallback:{type:Function,required:!0},displayInputError:{type:Boolean,default:!1},errorMessage:{type:String,default:""},initialValue:{type:Number,default:null},customDonationButtonLabel:{type:String,default:"Eller donér et andet bel
2øb"},customAmountOnly:{type:Boolean,default:!1},validationCustomDonationFormatLabel:{type:String,default:"Indtast venligst et gyldigt beløb"},validationCustomDonationAmountLabel:{type:String,default:"Beløbet er for lavt"},type:{type:String,default:"default"}},setup:function(e){var t,n=e.donationAmounts.length>0?e.donationAmounts[Math.floor((e.donationAmounts.length-1)/2)]:null,o=Kt(null!==(t=e.initialValue)&&void 0!==t?t:n),r=Kt(!1),a=Kt(""),i=Kt(!1),l=Kt(null);Dr(function(){e.customAmountOnly?r.value=!0:null!=o.value&&e.onAmountChangeCallback(o.value)}),bo(function(){return e.initialValue},function(e){null!=e&&(o.value=e)});var s=bl(function(){var e,t;return!r.value||Rj(null!==(e=null===(t=a.value)||void 0===t?void 0:t.toString().trim())&&void 0!==e?e:"")}),c=bl(function(){var t,n;if(!r.value)return!0;var o=null!==(t=null===(n=a.value)||void 0===n?void 0:n.toString().trim())&&void 0!==t?t:"";if(!Rj(o))return!0;var i=Fj(o);return null!==i&&i>=e.minimumAmount}),u=function(){r.value=!1,a.value="",i.value=!1},d=function(){var t=Nj(Lj().m(function t(){var n;return Lj().w(function(t){for(;;)switch(t.n){case 0:return o.value=null,e.onAmountChangeCallback(null),t.n=1,Nn();case 1:null===(n=l.value)||void 0===n||n.focus();case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),p=function(){var t=Nj(Lj().m(function t(){return Lj().w(function(t){for(;;)switch(t.n){case 0:if(r.value=!r.value,!r.value){t.n=2;break}return t.n=1,d();case 1:t.n=3;break;case 2:u(),e.donationAmounts.length>0&&(o.value=e.donationAmounts[0],e.onAmountChangeCallback(o.value));case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return{selectedAmount:o,customDonation:r,customDonationAmountInput:a,customDonationAmountTouched:i,customDonationAmountFormatIsValid:s,customDonationAmountMinIsValid:c,valueinputfield:l,validateCustomDonationOnBlur:function(){if(i.value=!0,s.value&&c.value){var t=Fj(a.value);e.onAmountChangeCallback(t)}else e.onAmountChangeCallback(null)},disableCustomDonation:u,toggleCustomDonation:p,onAmountChange:function(){u(),e.onAmountChangeCallback(o.value)},customAmountOnly:e.customAmountOnly,type:e.type}}};var zj={class:"kb-donation-card__donation-container"},Uj={class:"kb-donation-card__donation-amount"},jj={key:0,class:"kb-donation-card__donation-note"},Hj={class:"kb-donation-card__donator"},qj={class:"kb-donation-card__donator__name"},Gj={class:"kb-donation-card__donator__quote"};const Kj={name:"DonationCard",props:{result:{type:Object,required:!0},modifierClass:{type:String,required:!1}},setup:function(){return{formatAmount:function(e){if(null==e)return"";var t=Number(e);return new Intl.NumberFormat("da-DK",{minimumFractionDigits:0,maximumFractionDigits:2}).format(t)}}}},Zj=(0,Hb.A)(Kj,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",{class:Y(["kb-donation-card",e.modifierClass])},[Mi("section",zj,[Mi("p",Uj,fe(e.formatAmount(e.result.amount))+" kr.",1),e.result.note?(Ai(),Si("p",jj,fe(e.result.note),1)):zi("v-if",!0)]),Mi("section",Hj,[Mi("h3",qj,fe(e.result.name),1),Mi("p",Gj,fe(e.result.quote),1)])],2)}]]);var Wj={class:"kb-donation-receipt-overlay","aria-live":"polite"},$j={class:"kb-donation-receipt-overlay__hero"},Yj={class:"kb-donation-receipt-overlay__hero__title-wrapper"},Jj={class:"kb-donation-receipt-overlay__hero__title-wrapper__title"},Xj={class:"kb-donation-receipt-overlay__success-text"},Qj={class:"kb-donation-receipt-overlay__content-container"},eH={class:"kb-donation-receipt-overlay__button-wrapper"},tH=["href"];const nH={name:"DonationReceiptOverlay",props:{readMoreUrl:{type:String,required:!0}},setup:function(e){var t,n,o=Af(),r=bl(function(){var t;return null!==(t=e.readMoreUrl)&&void 0!==t?t:o.state.main.page_overlay_content_data.readMoreUrl});return Dr(function(){t=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),n=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){t.focus()}},{persistent:!0});var e=new URLSearchParams(document.location.search).get("orderId");e&&o.dispatch("main/trackPurchaseData",{orderId:e})}),{readMoreUrl:r,cancelAction:function(){o.dispatch("main/closePageOverlay")},tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),n.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),n.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),t.focus())},getLabel:function(e){return o.getters["labels/getLabel"]({labelCollection:"DonationReceiptOverlay",labelKey:e})}}}}
2,oH=nH,rH=(0,Hb.A)(oH,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",Wj,[Mi("section",$j,[Mi("div",Yj,[t[3]||(t[3]=Mi("div",{class:"kb-donation-receipt-overlay__hero__hero-title-circle"},[Mi("div",{class:"kb-donation-receipt-overlay__hero__hero-title-icon"},[Mi("svg",{viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M1.7998 12L8.6998 19.2L20.1998 0.799988",stroke:"white","stroke-width":"2.3","stroke-linejoin":"round"})])])],-1)),Mi("h2",Jj,fe(e.getLabel("title")),1)]),t[4]||(t[4]=Mi("div",{class:"kb-donation-receipt-overlay__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",Xj,fe(e.getLabel("text")),1)]),t[5]||(t[5]=Mi("div",{class:"kb-donation-receipt-overlay__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",Qj,[Mi("div",eH,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.cancelAction&&e.cancelAction.apply(e,arguments)}),"data-order":"first",onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button kb-button--full-color-spot kb-donation-receipt-overlay__kb-button--full-color-spot"},fe(e.getLabel("cancelButton")),33),Mi("a",{href:e.readMoreUrl,"data-order":"last",onKeydown:t[2]||(t[2]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("readMoreButton")),41,tH)])])])}]]);var aH={class:"kb-dropdown-with-tags"},iH={class:"kb-stafet-step__input-wrapper kb-js--dropdown-with-tags-wrapper"},lH={key:0,class:"kb-dropdown-with-tags__tags-wrapper"},sH={class:"kb-dropdown-with-tags__tags-title",id:"tags-title"},cH={class:"kb-dropdown-with-tags__tags-list"},uH=["onClick","index"];const dH={name:"DropdownWithTags",components:{FormInputDropdown:XB},props:{initTags:{type:Array,required:!1,default:null},tagsTitle:{type:String,required:!0},onChangeCallback:{type:Function,required:!0,default:function(){}},fieldName:{type:String,required:!0},legend:{type:String,required:!1},isRequired:{type:Boolean,required:!1},label:{type:String,required:!0},placeholder:{type:String,required:!1},isValidationError:{type:Boolean,required:!1,default:null},errorMessageLabel:{type:String,required:!1},selectOptions:{type:Object,required:!1}},setup:function(e){var t=Kt(e.selectOptions.options),n=Kt(),o=Kt([]),r=Kt([]);Dr(function(){e.initTags&&e.initTags.length>0&&(o.value=e.initTags,r.value=o.value.map(function(t){return e.selectOptions.options.find(function(e){return e.name===t}).value}),e.onChangeCallback(r.value))});return{subjectOptions:t,tags:o,tagsDropdown:n,nonEmptyStringValidator:tE,handleSubjectsOptions:function(t){var n,a=t.target.value,i=(n=a,e.selectOptions.options.map(function(e){e.value===n&&(n=e.name)}),n);o.value.find(function(e){return e===i})||(o.value.push(i),r.value.push(a),e.onChangeCallback(r.value))},handleDeleteTag:function(t){o.value=o.value.filter(function(e){return e!==t}),r.value=o.value.map(function(t){return e.selectOptions.options.find(function(e){return e.name===t}).value}),e.onChangeCallback(r.value),document.querySelector(".kb-js--dropdown-with-tags-wrapper").querySelector("#dropdown").focus()}}}},pH=dH,fH=(0,Hb.A)(pH,[["render",function(e,t,n,o,r,a){var i=qr("FormInputDropdown");return Ai(),Si("article",aH,[Mi("div",iH,[Ni(i,{modelValue:e.tagsDropdown,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.tagsDropdown=t}),fieldName:"subjectTags",isRequired:e.isRequired,label:e.label,isValidationError:e.isValidationError,placeholder:e.placeholder,errorMessageLabel:e.errorMessageLabel,selectOptions:e.subjectOptions,onChangeCallback:function(t){return e.handleSubjectsOptions(t)}},null,8,["modelValue","isRequired","label","isValidationError","placeholder","errorMessageLabel","selectOptions","onChangeCallback"])]),e.tags.length>0?(Ai(),Si("div",lH,[Mi("p",sH,fe(e.tagsTitle),1),Mi("ul",cH,[(Ai(!0),Si(gi,null,Yr(e.tags,function(n,o){return Ai(),Si("li",{key:o,class:"kb-dropdown-with-tags__tags-tag-wrapper"},[Mi("button",{onClick:function(t){return e.handleDeleteTag(n)},"aria-labelledby":"tags-title",class:"kb-dropdown-with-tags__tags-tag",index:o},[Fi(fe(n)+" ",1),t[1]||(t[1]=Mi("span",{class:"kb-visually-hidden"},"- klik for at slette",-1)),t[2]||(t[2]=Mi("svg",{role:"presentation",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("g",{"clip-path":"url(#a)"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.293 3.897.146 7.043l.708.707L4 4.604 7.146 7.75l.708-.707-3.147-3.146L7.854.75 7.146.043 4 3.189.854.043.146.75l3.147 3.147Z",fill:"#3C3C3C"})]),Mi("defs",null,[Mi("clipPath",{id:"a"},[Mi("path",{fill:"#fff",d:"M0 0h8v8H0z"})])])],-1))],8,uH)])}),128))])])):zi("v-if",!0)])}]]),mH=fH;function gH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var hH={class:"kb-stafet-donation-flow kb-edit-frivillig-profile"},bH={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},vH={class:"kb-stafet-step__input-wrapper"},yH={class:"kb-stafet-step__step-section-title"},_H={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},AH={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},kH={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},xH=["href"],wH={class:"kb-stafet-step__input-wrapper"},CH={class:"kb-stafet-step__step-section-title"},EH={class:"kb-edit-frivillig-profile__actions"},SH={class:"kb-stafet-step__step-section-title"},TH={class:"kb-edit-frivillig-profile__fieldset"},IH={class:"kb-stafet-step__texts-description"},BH={class:"kb-edit-frivillig-profile__two-column"},OH={class:"kb-stafet-step__input-wrapper"},LH={class:"kb-stafet-step__step-section-title"},DH={class:"kb-edit-frivillig-profile__fieldset"},MH={class:"kb-stafet-step__texts-description"},NH={class:"kb-stafet-step__input-wrapper"},PH={class:"kb-edit-frivillig-profile__text-no-space"},RH={key:0,class:"kb-spinner-overlay"},FH={class:"kb-profile-picture"},VH={class:"kb-profile-picture__content"},zH={class:"kb-image-module kb-image-module--1-1 kb-profile-picture__content-profile-img"},UH={class:"kb-image-module__image-container"},jH={class:"kb-image-module__image"},HH=["src"],qH={class:"kb-profile-picture__content-texts"},GH={class:"kb-profile-picture__content-texts-title"},KH={class:"kb-profile-picture__content-texts-description"},ZH={class:"kb-stafet-donation-flow"},WH={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},$H={key:0,class:"kb-create-gallery__files"},YH={class:"kb-create-gallery__files-content-wrapper"},JH={class:"kb-create-gallery__files-content-wrapper-left"},XH={class:"kb-create-gallery__files-image kb-image-module kb-image-module--1-1"},QH={class:"kb-image-module__image-container"},eq={class:"kb-image-module__image"},tq=["src"],nq={class:"kb-create-gallery__files-content-wrapper-right"},oq={class:"kb-create-gallery__files-details-wrapper"},rq={class:"kb-form__file-upload-text-wrapper"},aq={class:"kb-form__file-upload-text"},iq={class:"kb-form__file-upload-format-types"},lq={key:0,class:"kb-forms Form__Element__ValidationError"};function sq(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return cq(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(cq(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,cq(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,cq(d,"constructor",c),cq(c,"constructor",s),s.displayName="GeneratorFunction",cq(c,r,"GeneratorFunction"),cq(d),cq(d,r,"Generator"),cq(d,o,function(){return this}),cq(d,"toString",function(){return"[object Generator]"}),(sq=function(){return{w:a,m:p}})()}function cq(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}cq=function(e,t,n,o){function a(t,n){cq(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},cq(e,t,n,o)}function uq(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function dq(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){uq(a,o,r,i,l,"next",e)}function l(e){uq(a,o,r,i,l,"throw",e)}i(void 0)})}}const pq={name:"ProfilePicture",props:{userId:{type:String,required:!0},content:{type:Object,required:!1,default:null},type:{type:String,required:!0},hasProfileImage:{type:Boolean,required:!1}},setup:function(e){var t=Af(),n=Kt(!1),o=Kt(!1),r=Kt(e.content),a=Kt(e.hasProfileImage),i=function(){var e=dq(sq().m(function e(t){var n;return sq().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=t.target.files,Array.from(n).forEach(function(e){r.value=e,r.value.url=URL.createObjectURL(e)}),setTimeout(function(){document.querySelector(".kb-js--delete-uploaded-file-card").focus()},100),e.n=1,s();case 1:a.value=!0,e.n=3;break;case 2:e.p=2,e.v,o.value=!0;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),l=function(){var i=dq(sq().m(function i(){var l,s,c,u;return sq().w(function(i){for(;;)switch(i.n){case 0:if(r.value={url:null==e?void 0:e.content.url},n.value=!1,o.value=!1,setTimeout(function(){document.querySelector(".kb-js--uploaded-file-label").focus()},100),"frivillig"!=e.type){i.n=2;break}return i.n=1,t.dispatch("frivilligprofil/removeFrivilligProfilePicture");case 1:i.n=3;break;case 2:return i.n=3,t.dispatch("forum/removeForumProfilePicture",{id:e.userId});case 3:c=null!==(l=r.value.url)&&void 0!==l?l:null==e||null===(s=e.content)||void 0===s?void 0:s.url,(u=new URL("".concat(window.location.origin).concat(c))).searchParams.append("hasProfileImage",!1),r.value={url:u.toString(),size:"",name:""},a.value=!1,t.dispatch("main/setUserProfileImage",r.value.url);case 4:return i.a(2)}},i)}));return function(){return i.apply(this,arguments)}}(),s=function(){var o=dq(sq().m(function o(){var a,i,l;return sq().w(function(o){for(;;)switch(o.n){case 0:if(n.value=!0,""===r.value){o.n=3;break}if((l=new FormData).append("file",r.value),"cancerforum"!=e.type){o.n=1;break}return o.n=1,t.dispatch("forum/submitForumProfilePicture",{formData:l,id:e.userId});case 1:if("frivillig"!=e.type){o.n=2;break}return o.n=2,t.dispatch("frivilligprofil/submitFrivilligProfilePicture",{formData:l,id:e.userId});case 2:t.dispatch("main/setUserProfileImage",null!==(a=r.value.url)&&void 0!==a?a:null==e||null===(i=e.content)||void 0===i?void 0:i.url);case 3:return o.a(2)}},o)}));return function(){return o.apply(this,arguments)}}();return{handleTab:function(e){e.target.querySelector("input").click()},getLabel:function(e,n){var o=t.getters["labels/getLabel"]({labelCollection:"profilePicture",labelKey:e});return n&&n.forEach(function(e,t){o=o.replace("{".concat(t,"}"),e)}),o},submitProfilePicture:s,onPictureChange:i,removeFile:l,hasProfileImage:a,profilePicture:r,showInputErrors:n,isSubmissionError:o}}},fq=pq,mq=(0,Hb.A)(fq,[["render",function(e,t,n,o,r,a){var i,l,s,c;return Ai(),Si("article",FH,[Mi("div",VH,[Mi("figure",zH,[Mi("div",UH,[Mi("picture",jH,[Mi("img",{src:null===(i=e.profilePicture)||void 0===i?void 0:i.url,alt:"profile picture"},null,8,HH)])])]),Mi("div",qH,[Mi("h4",GH,fe(e.getLabel("title")),1),Mi("p",KH,fe(e.getLabel("description")),1)])]),Mi("div",ZH,[Mi("section",WH,[null!==(l=e.profilePicture)&&void 0!==l&&l.url&&e.hasProfileImage?(Ai(),Si("div",$H,[Mi("div",YH,[Mi("div",JH,[Mi("figure",XH,[Mi("div",QH,[Mi("picture",eq,[Mi("img",{src:null!==(s=e.profilePicture.url)&&void 0!==s?s:null===(c=e.content)||void 0===c?void 0:c.url,alt:"profile image"},null,8,tq)])])])]),Mi("div",nq,[Mi("div",oq,[Mi("p",null,fe(e.profilePicture.name),1),Mi("p",null,fe(e.getLabel("fileSizeLabel"))+": "+fe((e.profilePicture.size/1024/1e3).toFixed(3))+" MB",1)]),Mi("button",{class:"kb-button kb-button--full-color-spot kb-create-gallery__files-delete-button kb-js--delete-uploaded-file-card",onClick:t[0]||(t[0]=function(){return e.removeFile(e.profilePicture.name)})},fe(e.getLabel("fileButtonRemove")),1)])])])):(Ai(),Si("div",{key:1,class:Y(["kb-create-gallery__file-upload",e.isSubmissionError&&e.showInputErrors?"kb-create-gallery__file-upload--error":""])},[Mi("label",{class:"kb-form__file-upload FormFileUpload kb-js--uploaded-file-label",for:"galleryImages",tabindex:"0",onKeydown:t[2]||(t[2]=cc(function(){return e.handleTab&&e.handleTab.a
2pply(e,arguments)},["enter"]))},[Mi("input",{class:"kb-form__file-upload-input FormFileUpload__Input",id:"galleryImages",type:"file",accept:"image/png, image/jpg, image/jpeg, .svg",onChange:t[1]||(t[1]=function(){return e.onPictureChange&&e.onPictureChange.apply(e,arguments)}),tabindex:"-1"},null,32),t[3]||(t[3]=Vi('<div class="kb-form__file-upload-svg"><svg viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity=".4" fill="#3C3C3C"><path d="m20.024 13.05.967-.405-.206-.481c-.84-2.002-.617-4.14.596-5.683 1.214-1.542 3.095-2.264 5.32-2.093l-1.49 1.438.73.75 2.016-1.961a1.008 1.008 0 0 0 0-1.44l-2.016-1.961-.73.75 1.396 1.357c-2.505-.133-4.674.757-6.049 2.518-1.451 1.856-1.72 4.375-.736 6.72l.203.49ZM18.141 24.419v1.046h-5.93v-1.046H.699v2.965a1.214 1.214 0 0 0 1.221 1.22h26.163a1.22 1.22 0 0 0 1.22-1.22v-2.965H18.142Zm10.116 2.965a.174.174 0 0 1-.174.174H1.92a.178.178 0 0 1-.125-.052.175.175 0 0 1-.05-.122v-1.919h9.42v1.047h8.023v-1.047h9.07v1.919ZM4.886 21.977H2.793V9.593a.174.174 0 0 1 .174-.174h14.128V8.372H2.967a1.22 1.22 0 0 0-1.22 1.221v13.43h3.139v-1.046Z"></path><path d="M28.256 23.023V9.593a1.22 1.22 0 0 0-1.22-1.22h-4.013v1.046h4.012a.174.174 0 0 1 .174.174v13.43h1.047Z"></path></g></svg></div>',1)),Mi("div",rq,[Mi("p",aq,fe(e.getLabel("uploadTitle")),1),Mi("small",iq,fe(e.getLabel("uploadFormats")),1)])],32),e.isSubmissionError&&e.showInputErrors?(Ai(),Si("p",lq,fe(e.getLabel("profilePictureErrorMessage")),1)):zi("v-if",!0)],2))])])])}]]),gq={name:"EditFrivilligProfile",components:{ProfilePicture:mq,FormInputTextField:mE,FormInputNameField:gL,FormAddressField:tS,FormInputEmailField:kL,FormInputTextarea:_D,FormInputDropdown:XB,FormCheckbox:dB},props:{interests:{type:Array,required:!0},userData:{type:Object,required:!0},notificationWhenCommentOnSavedPosts:{type:Boolean,required:!1,default:!1},notificationWhenDirectMessage:{type:Boolean,required:!1,default:!1},notificationWhenNewDocument:{type:Boolean,required:!1,default:!1},notificationWhenPostsOnGroups:{type:Boolean,required:!1,default:!1},addressVisible:{type:Boolean,required:!1,default:!1},phonenumberVisible:{type:Boolean,required:!1,default:!1},emailVisible:{type:Boolean,required:!1,default:!1},hasNewsletterSubscription:{type:Boolean,required:!1,default:!1},deleteProfileRedirectUrl:{type:String,required:!1},hasProfileImage:{type:Boolean,required:!1}},setup:function(e){var t,n,o,r,a,i,l,s,c=Af(),u=Kt(!1),d=Kt("123435678"),p=Kt(null!==(t=e.userData)&&void 0!==t?t:{}),f=Kt(null!==(n=e.userData.description)&&void 0!==n?n:""),m=bl(function(){return c.state.frivilligprofil.submitting}),g=Kt(null!==(o=e.userData.notificationFrequency)&&void 0!==o?o:""),h=Kt(null!==(r=e.hasNewsletterSubscription)&&void 0!==r&&r),b=Kt(null!==(a=e.notificationWhenCommentOnSavedPosts)&&void 0!==a?a:""),v=Kt(null!==(i=e.notificationWhenPostsOnGroups)&&void 0!==i?i:""),y=Kt(null!==(l=e.notificationWhenDirectMessage)&&void 0!==l?l:""),_=Kt(null!==(s=e.notificationWhenNewDocument)&&void 0!==s?s:""),A=bl(function(){return e.interests.filter(function(e){return e.isSelected}).map(function(e){return e.id})}),k=Kt(e.addressVisible),x=Kt(e.phonenumberVisible),w=Kt(e.emailVisible),C=Kt({name:"",url:"/".concat("api/frivillig/profil/image/?fpid=[id]".replace("[id]",p.value.id)),size:""});return{displayError:u,description:f,addressVisible:k,phoneNumberVisible:x,emailVisible:w,activeProfilePicture:C,notificationFrequency:g,notificationWhenCommentOnSavedPosts:b,notificationWhenPostsOnGroups:v,notificationWhenDirectMessage:y,notificationWhenNewDocument:_,gruppeemner:A,isSubscribedToNewsletter:h,userData:p,password:d,notificationfrequencyOptions:[{name:"Straks",value:"Immediately"},{name:"Dagligt",value:"Daily"},{name:"Ugentligt",value:"Weekly"}],isSubmitting:m,setInterest:function(t,n){return e.interests.find(function(e){return e.name===t}).isSelected=n},setNotification:function(t,n){return e.notificationSettings.find(function(e){return e.name===t}).value=n},setNewsletterSubscription:function(e){return h.value=e},saveProfile:function(){var e={profileImageSrc:C.value.url,description:f.value,addressVisible:k.value,phonenumberVisible:x.value,emailVisible:w.value,
2notificationFrequency:g.value?g.value:null,notificationWhenCommentOnSavedPosts:b.value,notificationWhenPostsOnGroups:v.value,notificationWhenDirectMessage:y.value,notificationWhenNewDocument:_.value,isSubscribedToNewsletter:h.value,gruppeemner:A.value};c.dispatch("frivilligprofil/editFrivilligprofil",{pageId:c.state.main.page_id,body:e})},startUserInfoOverlay:function(t){c.commit("main/set_page_overlay_content_data",{userId:e.userData.id,isFrivilligContext:!0}),c.dispatch("main/openPageOverlay",{overlayContent:"MemberOverlayProfileCard",returnTarget:t.currentTarget})},startDeleteUserOverlay:function(t){c.commit("main/set_page_overlay_content_data",{userProfileId:e.userData.userProfileId,continueUrl:e.deleteProfileRedirectUrl}),c.dispatch("main/openPageOverlay",{overlayContent:"FVLConfirmDeleteProfile",returnTarget:t.currentTarget})},getLabel:function(e){return dA({labelKey:e,labelCollection:"EditFrivilligProfile"})}}}},hq=gq,bq=(0,Hb.A)(hq,[["render",function(e,t,n,o,r,a){var i,l=qr("ProfilePicture"),s=qr("FormInputNameField"),c=qr("FormAddressField"),u=qr("FormInputTextField"),d=qr("FormInputTextarea"),p=qr("FormCheckbox"),f=qr("FormInputDropdown");return Ai(),Si("article",hH,[Mi("section",bH,[t[29]||(t[29]=Mi("div",{class:"kb-stafet-step__divider kb-stafet-step__divider--smaller"},null,-1)),Ni(l,{content:e.activeProfilePicture,userId:e.userData.id,hasProfileImage:e.hasProfileImage,type:"frivillig"},null,8,["content","userId","hasProfileImage"]),t[30]||(t[30]=Mi("div",{class:"kb-stafet-step__divider kb-stafet-step__divider--smaller"},null,-1)),Mi("div",vH,[Mi("h2",yH,fe(e.getLabel("userSettingsTitle")),1),Mi("div",_H,[Ni(s,{isRequired:"",readOnly:!0,modelValue:e.userData.firstName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.userData.firstName=t}),fieldName:"firstName",label:e.getLabel("firstNameLabel")},null,8,["modelValue","label"]),Ni(s,{isRequired:"",readOnly:!0,modelValue:e.userData.lastName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.userData.lastName=t}),fieldName:"lastName",label:e.getLabel("lastNameLabel")},null,8,["modelValue","label"])]),Ni(c,{disabled:!0,"address-line-value":e.userData.address,"onUpdate:addressLineValue":t[2]||(t[2]=function(t){return e.userData.address=t}),"zip-code-value":e.userData.postalCode,"onUpdate:zipCodeValue":t[3]||(t[3]=function(t){return e.userData.postalCode=t}),"city-value":e.userData.city,"onUpdate:cityValue":t[4]||(t[4]=function(t){return e.userData.city=t}),addressLabel:e.getLabel("addressLineLabel"),zipCodeLabel:e.getLabel("postalCodeLabel"),cityLabel:e.getLabel("cityLabel"),isValidationError:!1,errorMessageLabel:""},null,8,["address-line-value","zip-code-value","city-value","addressLabel","zipCodeLabel","cityLabel"]),Mi("div",AH,[Ni(u,{isRequired:"",readOnly:!0,modelValue:e.userData.phoneNumber,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.userData.phoneNumber=t}),fieldName:"phoneNumber",label:e.getLabel("phoneNumberLabel")},null,8,["modelValue","label"]),Ni(u,{isRequired:"",readOnly:!0,type:"email",modelValue:e.userData.email,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.userData.email=t}),fieldName:"email",label:e.getLabel("emailLabel")},null,8,["modelValue","label"])]),Mi("div",kH,[Ni(u,{isRequired:"",readOnly:!0,type:"password",modelValue:e.password,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.password=t}),fieldName:"password",label:e.getLabel("passwordLabel")},null,8,["modelValue","label"])]),Mi("a",{class:"kb-link",href:e.getLabel("editUserInformationLinkHref")},[Fi(fe(e.getLabel("editUserInformation"))+" ",1),t[23]||(t[23]=Mi("span",null,[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24"},[Mi("path",{fill:"#fff","fill-rule":"evenodd",d:"m20.214 3.835-6.055-.3-.05-.999 6.555.325c.275.013.51.248.524.524l.324 6.554-.998-.05-.3-6.054ZM6.758 16.583l10.1-10.1.707.707-10.1 10.1-.707-.707ZM2.75 4.75h-.5v17.5h17.5v-9.781h-1v8.781H3.25V5.75h8.781v-1H2.75Z","clip-rule":"evenodd"})])],-1))],8,xH)]),Mi("div",wH,[t[24]||(t[24]=Mi("div",{class:"kb-stafet-step__divider kb-stafet-step__divider--smaller"},null,-1)),Mi("h2",CH,fe(e.getLabel("visibleToOthersTitle")),1),Ni(d,{modelValue:e.description,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.description=t}),fieldName:"description",placeholder:e.getLabel("descriptionPlaceholder"),label:e.getLabel("descriptionLabel"),maxlength:300},null,8,["modelValue","placeholder","label"]),Ni(p,{fieldName:"addressVisible",modelValue:e.addressVisible.toString(),"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.addressVisible=t}),label:e.getLabel("addressVisibleLabel"),onChangeCallback:function(t){return e.addressVisible=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(p,{fieldName:"phoneNumberVisible",modelValue:e.phoneNumberVisible.toString(),"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.phoneNumberVisible=t}),label:e.getLabel("phoneNumberVisibleLabel"),onChangeCallback:function(t){return e.phoneNumberVisible=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(p,{fieldName:"emailVisible",modelValue:e.emailVisible.toString(),"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.emailVisible=t}),label:e.getLabel("emailVisibleLabel"),onChangeCallback:function(t){return e.emailVisible=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Mi("div",EH,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[12]||(t[12]=function(){return e.saveProfile&&e.saveProfile.apply(e,arguments)})},fe(e.getLabel("saveButtonText")),3),Mi("button",{class:"kb-link kb-stafet-flow-actions__link kb-stafet-flow-actions__link--text-link-color","aria-haspopup":"true",onClick:t[13]||(t[13]=function(){return e.startUserInfoOverlay&&e.startUserInfoOverlay.apply(e,arguments)})},fe(e.getLabel("userOverlayText")),1)]),t[25]||(t[25]=Mi("div",{class:"kb-stafet-step__divider"},null,-1)),Mi("h2",SH,fe(e.getLabel("interestsTitle")),1),Mi("fieldset",TH,[Mi("label",IH,fe(e.getLabel("interestsDescription")),1),Mi("div",BH,[(Ai(!0),Si(gi,null,Yr(e.interests,function(t,n){return Ai(),Si("div",{class:"kb-stafet-step__input-wrapper",key:n},[Ni(p,{fieldName:t.name,modelValue:t.isSelected.toString(),"onUpdate:modelValue":function(e){return t.isSelected=e},label:t.name,onChangeCallback:function(n){return e.setInterest(t.name,n.target.checked)}},null,8,["fieldName","modelValue","onUpdate:modelValue","label","onChangeCallback"])])}),128))])]),Mi("div",null,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[14]||(t[14]=function(){return e.saveProfile&&e.saveProfile.apply(e,arguments)})},fe(e.getLabel("saveButtonText")),3)])]),Mi("div",OH,[t[26]||(t[26]=Mi("div",{class:"kb-stafet-step__divider"},null,-1)),Mi("h2",LH,fe(e.getLabel("notificationSettingsTitle")),1),Mi("fieldset",DH,[Mi("label",MH,fe(e.getLabel("notificationsDescription")),1),Mi("div",null,[Mi("div",NH,[Ni(p,{fieldName:"notificationWhenCommentOnSavedPosts",modelValue:e.notificationWhenCommentOnSavedPosts.toString(),"onUpdate:modelValue":t[15]||(t[15]=function(t){return e.notificationWhenCommentOnSavedPosts=t}),label:e.getLabel("notificationWhenCommentOnSavedPostsLabel"),onChangeCallback:function(t){return e.notificationWhenCommentOnSavedPosts=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(p,{fieldName:"notificationWhenDirectMessage",modelValue:e.notificationWhenDirectMessage.toString(),"onUpdate:modelValue":t[16]||(t[16]=function(t){return e.notificationWhenDirectMessage=t}),label:e.getLabel("notificationWhenDirectMessageLabel"),onChangeCallback:function(t){return e.notificationWhenDirectMessage=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(p,{fieldName:"notificationWhenNewDocument",modelValue:e.notificationWhenNewDocument.toString(),"onUpdate:modelValue":t[17]||(t[17]=function(t){return e.notificationWhenNewDocument=t}),label:e.getLabel("notificationWhenNewDocumentLabel"),onChangeCallback:function(t){return e.notificationWhenNewDocument=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(p,{fieldName:"notificationWhenPostsOnGroups",modelValue:e.notificationWhenPostsOnGroups.toString(),"onUpdate:modelValue":t[18]||(t[18]=function(t){return e.notificationWhenPostsOnGroups=t}),label:e.getLabel("notificationWhenPostsOnGroupsLabel"),onChangeCallback:function(t){return e.notificationWhenPostsOnGroups=t.target.checked}},null,8,["modelValue","label","onChangeCallback"])])])]),Ni(f,{modelValue:e.notificationFrequency,"onUpdate:modelValue":t[19]||(t[19]=function(t){return e.notificationFrequency=t}),localValue:e.notificationFrequency,fieldName:"notificationFrequency",label:e.getLabel("notificationFrequencyLabel"),selectOptions:e.notificationfrequencyOptions,onChangeCallback:function(t){return e.notificationFrequency=t.target.value}},null,8,["modelValue","localValue","label","selectOptions","onChangeCallback"]),Ni(p,{fieldName:"newsletterBool",modelValue:e.isSubscribedToNewsletter.toString(),"onUpdate:modelValue":t[20]||(t[20]=function(t){return e.isSubscribedToNewsletter=t}),label:e.getLabel("newsletterBoolLabel"),onChangeCallback:function(t){return e.setNewsletterSubscription(t.target.checked)}},null,8,["modelValue","label","onChangeCallback"]),Mi("div",null,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[21]||(t[21]=function(){return e.saveProfile&&e.saveProfile.apply(e,arguments)})},fe(e.getLabel("saveButtonText")),3)]),t[27]||(t[27]=Mi("div",{class:"kb-stafet-step__divider kb-stafet-step__divider--smaller"},null,-1)),Mi("p",PH,[Fi(fe(e.getLabel("deleteProfileText"))+" ",1),Mi("button",{onClick:t[22]||(t[22]=function(){return e.startDeleteUserOverlay&&e.startDeleteUserOverlay.apply(e,arguments)}),class:"kb-link","aria-haspopup":"true"}
2,fe(e.getLabel("deleteProfileButton")),1)]),t[28]||(t[28]=Mi("div",{class:"kb-stafet-step__divider kb-stafet-step__divider--smaller"},null,-1))])]),e.isSubmitting?(Ai(),Si("div",RH,(i=t[31]||(t[31]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return gH(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return gH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gH(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])}]]),vq=bq;function yq(e){return yq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yq(e)}function _q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Aq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_q(Object(n),!0).forEach(function(t){kq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kq(e,t,n){return(t=function(e){var t=function(e){if("object"!=yq(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yq(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yq(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var wq={class:"kb-edit-profile-form"},Cq={class:"kb-edit-profile-form-title"},Eq={class:"kb-edit-profile-form-title__title"},Sq={class:"kb-edit-profile-form-title__description"},Tq={class:"kb-stafet-donation-flow__step"},Iq={class:"kb-stafet-step kb-optimizely-forms"},Bq={class:"kb-stafet-step__title"},Oq={class:"kb-stafet-step__input-wrapper"},Lq={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},Dq={key:0,class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},Mq={key:1,class:"kb-edit-profile-form__delete-wrapper"},Nq=["href"],Pq={class:"kb-rich-text"},Rq={class:"kb-rich-text__content",ref:"privacyPolicyWrapper"},Fq={class:"kb-fundraise-form__bottom-button-wrapper"},Vq=["onClick"],zq={key:2,class:"kb-spinner-overlay"};function Uq(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return jq(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(jq(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,jq(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,jq(d,"constructor",c),jq(c,"constructor",s),s.displayName="GeneratorFunction",jq(c,r,"GeneratorFunction"),jq(d),jq(d,r,"Generator"),jq(d,o,function(){return this}),jq(d,"toString",function(){return"[object Generator]"}),(Uq=function(){return{w:a,m:p}})()}function jq(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}jq=function(e,t,n,o){function a(t,n){jq(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},jq(e,t,n,o)}function Hq(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const qq={name:"EditProfileForm",components:{FormInputTextField:mE,FormAddressField:tS},props:{pageId:{type:Number,required:!0},userProfileId:{type:String,required:!0},userData:{type:Object,required:!0},deleteProfileUrl:{type:String,required:!0},isNewUser:{type:Boolean,required:!0},privacyPolicyHtml:{type:String,required:!1}},setup:function(e){var t,n,o,r,a,i,l=Af(),s=Kt(null),c=Kt(!1),u=Kt(!1),d=Kt(null!==(t=e.userData.firstname)&&void 0!==t?t:""),p=Kt(null!==(n=e.userData.lastname)&&void 0!==n?n:""),f=Kt(null!==(o=e.userData.telep
2hone)&&void 0!==o?o:""),m=Kt(null!==(r=e.userData.address)&&void 0!==r?r:""),g=Kt(null!==(a=e.userData.postalCode)&&void 0!==a?a:""),h=Kt(null!==(i=e.userData.city)&&void 0!==i?i:""),b=e.userData.hasCancerforumProfile||e.userData.hasFrivilligProfile||e.userData.hasStafetForLivetProfile||e.userData.hasMenopauseProfile,v={firstName:e.userData.hasFrivilligProfile||e.userData.hasStafetForLivetProfile,lastName:e.userData.hasFrivilligProfile||e.userData.hasStafetForLivetProfile,phone:e.userData.hasFrivilligProfile,address:e.userData.hasFrivilligProfile},y=bl(function(){return v.firstName?rE(d.value):""===d.value||rE(d.value)}),_=bl(function(){return v.lastName?rE(p.value):""===p.value||rE(p.value)}),A=bl(function(){return v.phone?oE(f.value):""===f.value||oE(f.value)}),k=bl(function(){return!v.address||""!==m.value});Dr(function(){var t,n,o=(t=e.privacyPolicyHtml,(n=document.createElement("textarea")).innerHTML=t,n.value);s.value.innerHTML=o});var x=function(){var t,n=(t=Uq().m(function t(){var n;return Uq().w(function(t){for(;;)switch(t.p=t.n){case 0:if(y.value&&_.value&&A.value&&k.value){t.n=1;break}return u.value=!0,t.a(2);case 1:return c.value=!0,u.value=!1,t.p=2,t.n=3,l.dispatch("main/updateUserProfile",{userProfileId:e.userProfileId,pageId:e.pageId,body:{firstname:d.value,lastname:p.value,phone:f.value,address:m.value,postalCode:g.value,city:h.value}});case 3:n=t.v,window.location.href=n,t.n=5;break;case 4:t.p=4,t.v,c.value=!1;case 5:return t.a(2)}},t,null,[[2,4]])}),function(){var e=this,n=arguments;return new Promise(function(o,r){var a=t.apply(e,n);function i(e){Hq(a,o,r,i,l,"next",e)}function l(e){Hq(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();return{getLabel:function(e){return l.getters["labels/getLabel"]({labelCollection:"EditProfileForm",labelKey:e})},displayError:u,firstName:d,lastName:p,phone:f,address:m,postalCode:g,city:h,isRequired:v,isFirstNameValid:y,isLastNameValid:_,isPhoneValid:A,isAddressValid:k,isSubmitting:c,cancel:function(){e.continueUrl?window.location.href=e.continueUrl:history.back()},submit:x,privacyPolicyWrapper:s,linkToDeleteConfirmationPage:b,openDeleteOverlay:function(t){l.commit("main/set_page_overlay_content_data",{userProfileId:e.userProfileId}),l.dispatch("main/openPageOverlay",{overlayContent:"DeleteGlobalProfileOverlay",returnTarget:t.currentTarget})}}}},Gq=qq,Kq=(0,Hb.A)(Gq,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputTextField"),s=qr("FormAddressField");return Ai(),Si("article",wq,[Mi("div",Cq,[Mi("h1",Eq,fe(e.getLabel("title")),1),t[8]||(t[8]=Mi("div",{class:"kb-edit-profile-form-title__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",Sq,fe(e.getLabel("description")),1)]),Mi("div",Tq,[Mi("section",Iq,[Mi("h2",Bq,fe(e.getLabel("subTitle")),1),Mi("div",Oq,[Mi("div",Lq,[Ni(l,{fieldName:"firstName",modelValue:e.firstName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstName=t}),label:e.getLabel("firstNameLabel"),isRequired:e.isRequired.firstName,isValidationError:e.displayError&&!e.isFirstNameValid,errorMessageLabel:e.getLabel("firstNameErrorLabel")},null,8,["modelValue","label","isRequired","isValidationError","errorMessageLabel"]),Ni(l,{fieldName:"lastName",modelValue:e.lastName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.lastName=t}),label:e.getLabel("lastNameLabel"),isRequired:e.isRequired.lastName,isValidationError:e.displayError&&!e.isLastNameValid,errorMessageLabel:e.getLabel("lastNameErrorLabel")},null,8,["modelValue","label","isRequired","isValidationError","errorMessageLabel"])]),Ni(l,{fieldName:"phone",modelValue:e.phone,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.phone=t}),label:e.getLabel("phoneLabel"),isRequired:e.isRequired.phone,isValidationError:e.displayError&&!e.isPhoneValid,errorMessageLabel:e.getLabel("phoneErrorLabel")},null,8,["modelValue","label","isRequired","isValidationError","errorMessageLabel"]),Ni(s,{"address-line-value":e.address,"onUpdate:addressLineValue":t[3]||(t[3]=function(t){return e.address=t}),"zip-code-value":e.postalCode,"onUpdate:zipCodeValue":t[4]||(t[4]=function(t){return e.postalCode=t}),"city-value":e.city,"onUpdate:cityValue":t[5]||(t[5]=function(t){return e.city=t}),addressLabel:e.getLabel("addressLabel"),addressPlaceholder:e.getLabel("addressPlaceholderL
2abel"),zipCodeLabel:e.getLabel("postalCodeLabel"),zipCodePlaceholder:e.getLabel("postalCodePlaceholderLabel"),cityLabel:e.getLabel("cityLabel"),cityPlaceholder:e.getLabel("cityPlaceholderLabel"),errorMessageLabel:e.getLabel("addressErrorLabel"),isValidationError:e.displayError&&!e.isAddressValid,isRequired:e.isRequired.address},null,8,["address-line-value","zip-code-value","city-value","addressLabel","addressPlaceholder","zipCodeLabel","zipCodePlaceholder","cityLabel","cityPlaceholder","errorMessageLabel","isValidationError","isRequired"])])]),e.deleteProfileUrl?(Ai(),Si("hr",Dq)):zi("v-if",!0),e.deleteProfileUrl?(Ai(),Si("div",Mq,[Fi(fe(e.getLabel("deleteProfileLabel"))+" ",1),e.linkToDeleteConfirmationPage?(Ai(),Si("a",{key:0,href:e.deleteProfileUrl},fe(e.getLabel("deleteProfileLinkText")),9,Nq)):(Ai(),Si("a",{key:1,onClick:t[6]||(t[6]=function(){return e.openDeleteOverlay&&e.openDeleteOverlay.apply(e,arguments)})},fe(e.getLabel("deleteProfileLinkText")),1))])):zi("v-if",!0),t[10]||(t[10]=Mi("hr",{class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},null,-1)),Mi("div",Pq,[Mi("div",Rq,null,512)]),Mi("div",Fq,[Mi("a",{onClick:e.cancel,class:"kb-fundraise-form__bottom-button kb-button"},fe(e.getLabel("cancelButtonText")),9,Vq),Mi("button",{onClick:t[7]||(t[7]=function(){return e.submit&&e.submit.apply(e,arguments)}),class:"kb-fundraise-form__bottom-button submit kb-button kb-button--full-color-spot"},fe(e.getLabel("submitButtonText")),1)]),e.isSubmitting?(Ai(),Si("div",zq,(i=t[9]||(t[9]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return xq(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return xq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xq(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])])}]]);var Zq={class:"kb-featured-groups"},Wq={class:"kb-featured-groups__content-wrapper"},$q={class:"kb-featured-groups__content-wrapper-left"},Yq={class:"kb-spot-card__box__content"},Jq={key:0,class:"kb-spot-card__box__title"},Xq={key:1,class:"kb-spot-card__box__title"},Qq={key:2,class:"kb-featured-groups__spot-card-list"},eG=["href"],tG=["href","target"],nG=["href","target"],oG={class:"kb-featured-groups__content-wrapper-right"};const rG={name:"FeaturedGroups",components:{ContentCarousel:iy},props:{colorTheme:{type:String,required:!1},groupsList:{type:Object,required:!1},hasGroupsButton:{type:Object,required:!0},noGroupsButton:{type:Object,required:!0},sliderContentJson:{type:Object,required:!0},sliderId:{type:String,required:!0}},setup:function(){var e=Af();return{getLabel:function(t,n){var o=e.getters["labels/getLabel"]({labelCollection:"FeaturedGroups",labelKey:t});return n&&n.forEach(function(e,t){o=o.replace("{".concat(t,"}"),e)}),o}}}},aG=rG,iG=(0,Hb.A)(aG,[["render",function(e,t,n,o,r,a){var i=qr("ContentCarousel");return Ai(),Si("section",Zq,[Mi("div",Wq,[Mi("div",$q,[Mi("article",{class:Y(["kb-spot-card kb-featured-post-spot-card kb-featured-groups__spot-card",e.colorTheme])},[t[1]||(t[1]=Mi("div",{class:"kb-spot-card-grid__box__decoration"},[Mi("svg",{width:"512",height:"445",viewBox:"0 0 512 445",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{d:"M-698.154 720.628C-614.642 775.767 -501.149 766.579 -427.628 693.059L103.706 162.567C312.897 -46.6237 652.06 -46.6237 861.245 162.567C1070.44 371.759 1070.44 710.921 861.245 920.107C652.054 1129.3 312.892 1129.3 103.706 920.107",stroke:"white","stroke-width":"130.892","stroke-miterlimit":"10"}),Fi(),Mi("path",{d:"M-958.539 919.683C-1167.73 710.492 -1167.73 371.329 -958.539 162.143C-749.348 -47.0478 -410.185 -47.0478 -200.999 162.143L330.335 693.478C414.361 777.504 550.59 777.504 634.615 693.478C718.641 609.452 718.641 473.223 634.615 389.197C550.59 305.171 414.361 305.171 330.335 389.197L-200.999 919.688C-250.11 968.799 -306.376 1006.38 -366.45 1032.43",stroke:"white","stroke-width":"130.892","stroke-miterlimit":"10"})])],-1)),Mi("div",Yq,[e.groupsList.length>0?(Ai(),Si("h2",Jq,fe(e.getLabel("title")),1)):(Ai(),Si("h2",Xq,fe(e.getLabel("noGroupsTitle")),1)),e.groupsList.length>0?(Ai(),Si("ul",Qq,[(Ai(!0),Si(gi,null,Yr(e.groupsList,function(e,n){return Ai(),Si("li",{key:n,class:"kb-featured-groups__spot-card-list-item"},[Mi("a",{href:e.href},[Fi(fe(e.groupTitle)+" ",1),t[0]||(t[0]=Vi('<div class="kb-featured-groups__spot-card-list-item-arrow-svg"><svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 10"><g stroke="#E8001D"><path d="m12.167 1 3.623 4-3.623 4" stroke-linejoin="round"></path><path d="M11.746 5H0"></path></g></svg></div>',1))],8,eG)])}),128))])):zi("v-if",!0),e.groupsList.length>0?(Ai(),Si("a",{key:3,href:e.hasGroupsButton.href,target:e.hasGroupsButton.target,class:"kb-button kb-button--border-color"},fe(e.getLabel("hasGroupsButtonText")),9,tG)):(Ai(),Si("a",{key:4,href:e.noGroupsButton.href,target:e.noGroupsButton.target,class:"kb-button kb-button--border-color"},fe(e.getLabel("noGroupsButtonText")),9,nG))])],2)]),Mi("div",oG,[Ni(i,{contentJson:e.sliderContentJson,type:"groups",carouselId:e.sliderId},null,8,["contentJson","carouselId"])])])])}]]);function lG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var sG={key:0,class:"kb-spot-card__box__decoration"},cG={class:"kb-spot-card__box__content-container"},uG={key:0,class:"kb-spot-card__box__icon-wrapper"},dG=["innerHTML"],pG={class:"kb-spot-card__box__content"},fG={class:"kb-group-post__contents-left-top-texts"},mG={class:"kb-group-post__contents-left-top-post-author-data"},gG={class:"kb-group-post__contents-left-top-post-author-data-name"},hG={class:"kb-spot-card__box__title"},bG=["innerHTML"],vG={class:"kb-spot-card__box__button-wrapper"},yG=["href","target"],_G=["innerHTML"];const AG={name:"FeaturedPostSpotCard",props:{spotCardData:{type:Object,required:!0}},setup:function(){return{getLabel:function(e){return dA({labelKey:e,labelCollection:"FeaturedPostSpotCard"})}}}},kG=(0,Hb.A)(AG,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",{class:Y(["kb-spot-card kb-featured-post-spot-card",e.spotCardData.colorTheme])},[zi(" v-if is to make sure decoration is shown if icon not active - icon and decoration cannot exit simultanously "),e.spotCardData.svgIcon?zi("v-if",!0):(Ai(),Si("div",sG,(i=t[0]||(t[0]=[Mi("svg",{width:"",height:"",viewBox:"0 0 946 257",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{d:"M-698.154 720.628C-614.642 775.767 -501.149 766.579 -427.628 693.059L103.706 162.567C312.897 -46.6238 652.06 -46.6238 861.245 162.567C1070.44 371.759 1070.44 710.921 861.245 920.107C652.054 1129.3 312.892 1129.3 103.706 920.107",stroke:"white","stroke-width":"130.892","stroke-miterlimit":"10"}),Mi("path",{d:"M-958.538 919.683C-1167.73 710.492 -1167.73 371.329 -958.538 162.143C-749.347 -47.0478 -410.184 -47.0478 -200.999 162.143L330.335 693.478C414.361 777.504 550.59 777.504 634.616 693.478C718.642 609.452 718.642 473.223 634.616 389.197C550.59 305.171 414.361 305.171 330.335 389.197L-200.999 919.688C-250.109 968.799 -306.376 1006.38 -366.449 1032.43",stroke:"white","stroke-width":"130.892","stroke-miterlimit":"10"})],-1)]),function(e){if(Array.isArray(e))return lG(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return lG(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lG(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))),Mi("div",cG,[e.spotCardData.svgIcon?(Ai(),Si("div",uG,[Mi("div",{class:"kb-spot-card__box__circle",innerHTML:e.spotCardData.svgIcon},null,8,dG)])):zi("v-if",!0),Mi("div",pG,[Mi("div",fG,[Mi("div",mG,[Mi("p",gG,fe("".concat(e.getLabel("authorLabel")," ").concat(e.spotCardData.author)),1
2)])]),Mi("h3",hG,fe(e.spotCardData.title),1),Mi("p",{class:"kb-spot-card__box__paragraph",innerHTML:e.spotCardData.text},null,8,bG),Mi("div",vG,[(Ai(!0),Si(gi,null,Yr(e.spotCardData.buttons,function(e,t){return Ai(),Si("a",{key:t,href:e.href,target:e.target,class:"kb-button kb-button--spot-border-color"},[Fi(fe(e.text)+" ",1),Mi("div",{class:"kb-button__icon-wrapper",innerHTML:e.svgIcon},null,8,_G)],8,yG)}),128))])])])],2);var i}]]),xG={name:"FeatureNavigationTeam",props:{teamId:{type:String,required:!0}},setup:function(e){var t=Af();return{openPageOverlay:function(n,o){var r=function(e){var t;return null!==(t={deltagere:"holdetsDeltagere",runderegistreringer:"holdetsRoundCounterOverlay",donationer:"holdetsDonationer",lysposer:"holdetsLys"}[e])&&void 0!==t?t:"holdetsDeltagere"}(n);t.commit("main/set_page_overlay_content_data",{teamId:e.teamId}),t.dispatch("main/openPageOverlay",{overlayContent:r,returnTarget:o.currentTarget})}}}};var wG={key:0,class:"kb-flow-edit-modal"},CG={class:"kb-flow-edit-modal__hero"},EG={class:"kb-flow-edit-modal__hero__title"},SG={class:"kb-flow-edit-modal__content-container"},TG={class:"kb-flow-edit-modal__content-container__text"},IG={class:"kb-flow-edit-modal__button-wrapper"},BG={key:1,class:"kb-flow-edit-modal"},OG={class:"kb-flow-edit-modal__hero"},LG={class:"kb-flow-edit-modal__hero__title"},DG={class:"kb-flow-edit-modal__content-container"},MG={class:"kb-flow-edit-modal__content-container__text"},NG={class:"kb-flow-edit-modal__button-wrapper"};const PG={name:"FlowEditModal",setup:function(){var e=Kt(!1),t=Af();return{getLabel:function(e){return dA({labelKey:e,labelCollection:"personalFundraising"})},saveChanges:function(t){e.value=!0},closeModal:function(e){t.dispatch("main/closePageOverlay")},changesSaved:e}}},RG=PG,FG=(0,Hb.A)(RG,[["render",function(e,t,n,o,r,a){return e.changesSaved?(Ai(),Si("article",BG,[Mi("section",OG,[Mi("h1",LG,fe(e.getLabel("savedChangesHeader")),1)]),t[4]||(t[4]=Mi("div",{class:"kb-flow-edit-modal__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("section",DG,[Mi("p",MG,fe(e.getLabel("SavedChangesTextContent")),1),Mi("div",NG,[Mi("button",{onClick:t[2]||(t[2]=function(){return e.closeModal&&e.closeModal.apply(e,arguments)}),id:"",name:"submit",type:"submit",value:"",class:"kb-button kb-button--full-color-spot"}
2,fe(e.getLabel("closeButton")),1)])])])):(Ai(),Si("article",wG,[Mi("section",CG,[Mi("h1",EG,fe(e.getLabel("header")),1)]),t[3]||(t[3]=Mi("div",{class:"kb-flow-edit-modal__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("section",SG,[Mi("p",TG,fe(e.getLabel("textContent")),1),Mi("div",IG,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.saveChanges&&e.saveChanges.apply(e,arguments)}),id:"",name:"submit",type:"submit",value:"",class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("saveChangesButton")),1),Mi("button",{onClick:t[1]||(t[1]=function(){return e.closeModal&&e.closeModal.apply(e,arguments)}),id:"",name:"submit",type:"submit",value:"",class:"kb-button"},fe(e.getLabel("noSaveButton")),1)])])]))}]]),VG={name:"FlowHeader",props:{isIndependent:{type:Boolean,required:!1},isStafet:{type:Boolean,required:!1}},setup:function(e){return{closeFlow:function(e){var t=document.referrer,n=window.location.host;t&&new URL(t).host===n?history.back():window.location=e},isIndependent:e.isIndependent,isStafet:e.isStafet}}};function zG(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return UG(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(UG(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,UG(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,UG(d,"constructor",c),UG(c,"constructor",s),s.displayName="GeneratorFunction",UG(c,r,"GeneratorFunction"),UG(d),UG(d,r,"Generator"),UG(d,o,function(){return this}),UG(d,"toString",function(){return"[object Generator]"}),(zG=function(){return{w:a,m:p}})()}function UG(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}UG=function(e,t,n,o){function a(t,n){UG(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},UG(e,t,n,o)}function jG(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function HG(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){jG(a,o,r,i,l,"next",e)}function l(e){jG(a,o,r,i,l,"throw",e)}i(void 0)})}}const qG={name:"FormAddressFieldGroup",props:{rootElement:{type:Object,required:!0}},setup:function(e){var t;Dr(HG(zG().m(function n(){var o,r,a,i,l;return zG().w(function(n){for(;;)switch(n.n){case 0:if(o=e.rootElement,r=o.querySelector(".kb-address-line"),a=o.querySelector(".kb-address-zipcode"),i=o.querySelector(".kb-address-city"),r){n.n=1;break}return n.a(2);case 1:return setTimeout(function(){r.attributes.autocomplete.value="chrome-off"},1),l=function(){null==a||a.removeAttribute("disabled"),null==i||i.removeAttribute("disabled")},n.n=2,zE();case 2:if(n.v){n.n=3;break}return l(),n.a(2);case 3:t=ZE(r,{onSelect:function(e){GG(a,e.zipCode),GG(i,e.city),r.dispatchEvent(new Event("change",{bubbles:!0}))},onError:l});case 4:return n.a(2)}},n)}))),Pr(function(){t&&t()})}};function GG(e,t){e&&(e.value=t,e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})))}const KG={name:"FormBooleanField",props:{checked:{type:Boolean,required:!1},elementId:{type:String,required:!0}},setup:function(e){var t,n=Kt(null!==(t=null==e?void 0:e.checked)&&void 0!==t&&t),o=function(){return document.getElementById(e.elementId)};return Dr(function(){var e=o();e&&(n.value="true"===e.value)}),{checked:n,handleChange:function(){var e;(e=o())&&(e.value=n.value?"true":"false",e.dispatchEvent(new Event("change",{bubbles:!0})))}}}};
2var ZG=["for"],WG=["autocomplete","id","type","aria-describedby","placeholder","readonly","disabled","required"],$G={key:0,class:"kb-form__input-helptext"},YG={key:1,class:"kb-forms Form__Element__ValidationError"};function JG(e){return JG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JG(e)}function XG(){XG=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var a=RegExp(e,o);return t.set(a,r||t.get(e)),QG(a,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce(function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var a=0;void 0===e[r[a]]&&a+1<r.length;)a++;t[n]=e[r[a]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QG(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=o(n,this);var r=n.indices;r&&(r.groups=o(r,this))}return n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var a=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)(>|$)/g,function(e,t,n){if(""===n)return e;var o=a[t];return Array.isArray(o)?"$"+o.join("$"):"number"==typeof o?"$"+o:""}))}if("function"==typeof r){var i=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=JG(e[e.length-1])&&(e=[].slice.call(e)).push(o(e,i)),r.apply(this,e)})}return e[Symbol.replace].call(this,n,r)},XG.apply(this,arguments)}function QG(e,t){return QG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QG(e,t)}function eK(e){var t=XG(/\b(\d{2})(\d{2})(\d{2})(-?)(\d{4})\b/,{Day:1,Month:2,Year:3,SequenceNumber:5}),n=e.match(t);if(!n)return!1;var o=parseInt(n.groups.Day),r=parseInt(n.groups.Month),a=parseInt(n.groups.Year),i=a<=(new Date).getFullYear()%100?2e3+a:1900+a;return!!function(e,t,n){var o=new Date(n,t-1,e);return o.getFullYear()===n&&o.getMonth()===t-1&&o.getDate()===e}(o,r,i)&&(!(i<2007)||function(e){var t=[4,3,2,7,6,5,4,3,2,1],n=e.replace("-","");if(!n||10!==n.length)return!1;var o=parseInt(n);if(isNaN(o))return!1;for(var r=Array.from(n).map(Number),a=0,i=0;i<10;i++)a+=r[i]*t[i];return a%11==0}(e))}const tK=wA("FormInputCprField",{validatorFunction:function(e){return eK(e)}}),nK=(0,Hb.A)(tK,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",{class:Y(["Form__Element FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},[Fi(fe(e.label)+" ",1),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)],8,ZG),io(Mi("input",{class:Y(["FormTextbox__Input",{"validation-error":e.isValidationError}]),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),autocomplete:e.autocomplete,id:e.fieldName,type:e.type,"aria-describedby":"".concat(e.fieldName,"__desc"),placeholder:e.placeholder,maxlength:"11",readonly:e.readOnly,disabled:e.readOnly,required:!!e.isRequired,onInput:t[1]||(t[1]=function(t){return e.$emit("update:modelValue",t.target.value)}),onChange:t[2]||(t[2]=function(){return e.formLink&&e.formLink.apply(e,arguments)})},null,42,WG),[[nc,e.localValue]]),e.helpMessageLabel?(Ai(),Si("p",$G,fe(e.helpMessageLabel),
21)):zi("v-if",!0),e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",YG,fe(e.errorMessageLabel),1)):zi("v-if",!0)],2)}]]);var oK=["for"],rK=["autocomplete","id","type","aria-describedby","placeholder","maxlength","readonly","disabled","required"],aK={key:0,class:"kb-form__input-helptext"},iK={key:1,class:"kb-forms Form__Element__ValidationError"};const lK=wA("FormInputCvrField",{validatorFunction:function(e){return lE(e)}}),sK=(0,Hb.A)(lK,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",{class:Y(["Form__Element FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},[Fi(fe(e.label)+" ",1),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0)],8,oK),io(Mi("input",{class:Y(["FormTextbox__Input",{"validation-error":e.isValidationError}]),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),autocomplete:e.autocomplete,id:e.fieldName,type:e.type,"aria-describedby":"".concat(e.fieldName,"__desc"),placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readOnly,disabled:e.readOnly,required:!!e.isRequired,onInput:t[1]||(t[1]=function(t){return e.$emit("update:modelValue",t.target.value)}),onChange:t[2]||(t[2]=function(){return e.formLink&&e.formLink.apply(e,arguments)})},null,42,rK),[[nc,e.localValue]]),e.helpMessageLabel?(Ai(),Si("p",aK,fe(e.helpMessageLabel),
21)):zi("v-if",!0),e.inputHasValidationErrors&&e.isValidationError?(Ai(),Si("p",iK,fe(e.errorMessageLabel),1)):zi("v-if",!0)],2)}]]);var cK=["for"],uK=["min","disabled","value","autocomplete","id","required","aria-describedby","aria-invalid","placeholder","maxlength"],dK={key:1,class:"kb-form__input-helptext"},pK={"aria-live":"assertive"},fK={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"};const mK=wA("FormInputDatefield",{validatorFunction:function(e){return!isNaN(new Date(d).getTime())}}),gK=(0,Hb.A)(mK,[["render",function(e,t,n,o,r,a){var i=qr("TooltipComponent");return Ai(),Si("div",{class:Y(["Form__Element FormTextbox",{ValidationRequired:e.isRequired}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},fe(e.label),9,cK),e.tooltipText?(Ai(),Ti(i,{key:0,tooltipText:e.tooltipText},null,8,["tooltipText"])):zi("v-if",!0),Mi("input",{class:Y(["FormTextbox__Input",{"validation-error":e.isValidationError}]),min:e.minDate,disabled:e.disabled?e.disabled:e.readOnly,value:e.modelValue,autocomplete:e.autocomplete,onInput:t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t.target.value)}),id:e.fieldName,type:"date",required:!!e.isRequired,"aria-describedby":"".concat(e.fieldName,"__desc"),"aria-invalid":e.isValidationError,placeholder:e.placeholder,maxlength:e.maxlength,onChange:t[1]||(t[1]=function(){return e.onChangeCallback&&e.onChangeCallback.apply(e,arguments)})},null,42,uK),e.helpMessageLabel?(Ai(),Si("p",dK,fe(e.helpMessageLabel),
21)):zi("v-if",!0),Mi("div",pK,[e.isValidationError?(Ai(),Si("p",fK,fe(e.errorMessageLabel),1)):zi("v-if",!0)])],2)}]]);var hK=["for"],bK={key:0,class:"kb-forms Form__Element__ValidationError"},vK=wA("FormInputRichText",{});vK.components.Editor=SO;const yK=vK,_K=(0,Hb.A)(yK,[["render",function(e,t,n,o,r,a){var i=qr("editor");return Ai(),Si("div",{class:Y(["Form__Element FormTextbox FormTextbox--RichText",{ValidationRequired:e.isRequired,ValidationError:e.isValidationError}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},fe(e.label),9,hK),Ni(i,{"api-key":"no-api-key",required:"","aria-required":"true","aria-describedby":"fundraiseReason_desc","aria-invalid":"false",init:{placeholder:e.placeholder,plugins:"emoticons autoresize autolink",toolbar:"emoticons",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",min_height:200,autoresize_bottom_margin:30,formats:{bold:{},italic:{},underline:{}},setup:function(t){t.on("init",function(){t.setContent(e.modelValue||"")}),t.on("change keyup",function(){e.$emit("update:modelValue",t.getContent())})}}},null,8,["init"]),e.isValidationError?(Ai(),Si("p",bK,fe(e.errorMessageLabel),
21)):zi("v-if",!0)],2)}]]);function AK(e){return AK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AK(e)}function kK(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return xK(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(xK(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xK(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,xK(d,"constructor",c),xK(c,"constructor",s),s.displayName="GeneratorFunction",xK(c,r,"GeneratorFunction"),xK(d),xK(d,r,"Generator"),xK(d,o,function(){return this}),xK(d,"toString",function(){return"[object Generator]"}),(kK=function(){return{w:a,m:p}})()}function xK(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}xK=function(e,t,n,o){function a(t,n){xK(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},xK(e,t,n,o)}function wK(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function CK(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){wK(a,o,r,i,l,"next",e)}function l(e){wK(a,o,r,i,l,"throw",e)}i(void 0)})}}function EK(e,t,n){return(t=function(e){var t=function(e){if("object"!=AK(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=AK(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==AK(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SK=Object.freeze({NONE:null,STAFET:"Stafet",HOLD:"Hold",DELTAGER:"Deltager"});const TK={name:"FormStafetSelector",props:{elementName:{type:String,required:!0},elementId:{type:String,required:!0},fieldNames:{type:Object,required:!0},labels:{type:Object,required:!0}},setup:function(e){var t=Af(),n=Kt(!1),o=Kt([]),r=Kt(""),a=Kt(null),i=Kt(!1),l=Kt(null),s=bl(function(){var e=r.value.trim().toLowerCase();return e?o.value.filter(function(t){return t.name.toLowerCase().includes(e)}):o.value}),c=Kt(!1),u=bl(function(){var e,t;return null!==(e=null===(t=a.value)||void 0===t?void 0:t.stafetKode)&&void 0!==e?e:null}),d=Kt(!1),p=bl(function(){return!c.value||!!u.value}),f=bl(function(){return(n.value||d.value)&&!p.value}),m=[{value:SK.STAFET,label:e.labels.supportTypeOptionStafet},{value:SK.HOLD,label:e.labels.supportTypeOptionHold},{value:SK.DELTAGER,label:e.labels.supportTypeOptionDeltager}],g=Kt(SK.STAFET),h=Kt(!1),b=bl(function(){return!c.value||!!g.value}),v=bl(function(){return(n.value||h.value)&&!b.value}),y=Kt([]),_=Kt(null),A=Kt(!1),k=bl(function(){return g.value===SK.HOLD||g.value===SK.DELTAGER}),x=bl(function(){return!c.value||!k.value||!!_.value}),w=bl(function(){return(n.value||A.value)&&!x.value}),C=Kt([]),E=Kt(null),S=Kt(!1),T=bl(function(){return g.value===SK.DELTAGER}),I=bl(function(){return!c.value||!T.value||!!E.value}),B=bl(function(){return(n.value||S.value)&&!I.value}),O=bl(function(){return c.value&&u.value}),L=bl(function(){return c.value&&k.value}),D=bl(function(){return c.value&&T.value}),M=function(){var t=document.getElementById(e.elementId);t&&(t.value=JSON.stringify(EK(EK(EK(EK(EK({},e.fieldNames.supportStafet,c.value),e.fieldNames.supportType,g.value),e.fieldNames.stafetkode,u.value),e.fieldNames.holdkode,_.value),e.fieldNames.deltagerId,E.value)))},N=function(){var e=CK(kK().m(function e(){var n,r,a,i,l;return kK().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=t.state.main.page_id,r="".concat(document.location.origin,"/").concat("api/stafetter/[pageId]".replace("[pageId]",n),"?take=100"),e.n=1,sm(r);case 1:return a=e.v,e.n=2,a.json();case 2:i=e.v,o.value=i.hits||[],e.n=4;break;case 3:e.p=3,l=e.v,console.error(l);case 4:return e.a(2)}},e,null,[[0,3]])}
2));return function(){return e.apply(this,arguments)}}(),P=function(){var e=CK(kK().m(function e(n){var o,r,a,i,l;return kK().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n){e.n=1;break}return y.value=[],e.a(2);case 1:return e.p=1,o=t.state.main.page_id,r="".concat(document.location.origin,"/").concat("api/holdList/[pageId]/[stafetId]".replace("[stafetId]",n).replace("[pageId]",o)),e.n=2,sm(r);case 2:return a=e.v,e.n=3,a.json();case 3:i=e.v,y.value=i.hits||[],e.n=5;break;case 4:e.p=4,l=e.v,console.error(l);case 5:return e.a(2)}},e,null,[[1,4]])}));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=CK(kK().m(function e(t){var n,o,r,a;return kK().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return C.value=[],e.a(2);case 1:return e.p=1,n="".concat(document.location.origin,"/").concat("api/hold/[teamId]/deltagere".replace("[teamId]",t)),e.n=2,sm(n);case 2:return o=e.v,e.n=3,o.json();case 3:r=e.v,C.value=r.hits||[],e.n=5;break;case 4:e.p=4,a=e.v,console.error(a);case 5:return e.a(2)}},e,null,[[1,4]])}));return function(t){return e.apply(this,arguments)}}(),F=function(e){l.value&&!l.value.contains(e.target)&&(i.value=!1),e.target.classList.contains("FormSubmitButton")&&(n.value=!0)};return Dr(function(){N(),M(),document.addEventListener("click",F,!0)}),Pr(function(){document.removeEventListener("click",F,!0)}),{SUPPORT_TYPE:SK,supportStafet:c,searchQuery:r,searchContainer:l,selectedStafet:a,showDropdown:i,filteredStafetter:s,showStafetError:f,supportType:g,supportTypeRadioOptions:m,showSupportType:O,showSupportTypeError:v,hold:y,holdkode:_,showHold:L,showHoldError:w,deltagere:C,deltagerId:E,showDeltager:D,showDeltagerError:B,handleCheckboxChange:function(){c.value||(r.value="",a.value=null,g.value=SK.NONE,_.value=null,E.value=null,y.value=[],C.value=[],d.value=!1,h.value=!1,A.value=!1,S.value=!1),M()},handleClearSearch:function(){r.value="",a.value=null,g.value=SK.NONE,_.value=null,E.value=null,y.value=[],C.value=[],i.value=!1,M()},handleSearchInput:function(){i.value=!0,a.value&&r.value!==a.value.name&&(a.value=null,g.value=SK.NONE,_.value=null,E.value=null,y.value=[],C.value=[],M())},handleSearchFocus:function(){i.value=!0},handleStafetSelect:function(e){a.value=e,r.value=e.name,i.value=!1,d.value=!0,g.value=SK.STAFET,_.value=null,E.value=null,C.value=[],P(e.stafetKode),M()},handleSupportTypeChange:function(e){var t=e.target.value||SK.NONE;g.value=t,h.value=!0,t===SK.HOLD||t===SK.DELTAGER||(_.value=null,y.value=[],A.value=!1),E.value=null,C.value=[],S.value=!1,t===SK.DELTAGER&&_.value&&R(_.value),M()},handleSupportTypeBlur:function(){h.value=!0},handleHoldChange:function(e){_.value=e.target.value||null,A.value=!0,E.value=null,R(_.value),M()},handleHoldBlur:function(){A.value=!0},handleDeltagerChange:function(e){E.value=e.target.value||null,S.value=!0,M()},handleDeltagerBlur:function(){S.value=!0}}}};function IK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var BK={class:"kb-form-step-submitting"},OK={key:0,class:"kb-spinner-overlay"},LK={key:1,class:"kb-single-content-spot kb-single-content-spot--no-icon"},DK={class:"kb-single-content-spot__content"},MK={class:"kb-single-content-spot__title"},NK={class:"kb-single-content-spot__text-content"},PK={class:"kb-single-content-spot__button-wrapper"};const RK={labels:{type:Object,required:!0},previousStepCallback:{type:Function,required:!0},nextStepCallback:{type:Function,required:!0},skipStepCallback:{type:Function,required:!1,default:function(){}},displayInputError:{type:Boolean,required:!0,default:!1},submitCallback:{type:Function,required:!0},updateBasketCallback:{type:Function,required:!1,default:function(){}},stafetId:{type:String,required:!0},holdId:{type:String,required:!1},tshirtSizes:{type:Array,required:!1,default:[]},donationAmounts:{type:Array,required:!1,default:[]},loggedIn:{type:Boolean,required:!1,default:!1},holdData:{type:Object,required:!1,default:{}},holdList:{type:Array,required:!1,default:[]},userData:{type:Object,required:!1,default:{}},redirectToEditProfile:{type:String,required:!1,default:""},editProfileLinkText:{type:String,required:!1,default:""},lysposeMinimumAmount:{type:Number,required:!1,default:50},donationMinimumAmount:{type:Number,required:!1,default:50},isSubmitting:{type:Boolean,required:!1,default:!1}};function FK(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return VK(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(VK(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,VK(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,VK(d,"constructor",c),VK(c,"constructor",s),s.displayName="GeneratorFunction",VK(c,r,"GeneratorFunction"),VK(d),VK(d,r,"Generator"),VK(d,o,function(){return this}),VK(d,"toString",function(){return"[object Generator]"}),(FK=function(){return{w:a,m:p}})()}function VK(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}VK=function(e,t,n,o){function a(t,n){VK(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},VK(e,t,n,o)}function zK(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function UK(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){zK(a,o,r,i,l,"next",e)}function l(e){zK(a,o,r,i,l,"throw",e)}i(void 0)})}}const jK={name:"FormStepSubmitting",props:RK,setup:function(e){var t=Af(),n=Kt(""),o=bl(function(){return e.isSubmitting});Dr(UK(FK().m(function e(){return FK().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,r();case 1:return e.a(2)}},e)})));var r=function(){var t=UK(FK().m(function t(){return FK().w(function(t){for(;;)switch(t.n){case 0:if(!e.submitCallback){t.n=1;break}return t.n=1,e.submitCallback();case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),a=function(){var e=UK(FK().m(function e(){return FK().w(function(e){for(;;)switch(e.n){case 0:return o.value=!0,n.value="",e.n=1,r();case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return{loading:o,errorMessage:n,submitRetry:a,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"formStepSubmitting",labelKey:e})}}}},HK=jK,qK=(0,Hb.A)(HK,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",BK,[e.loading?(Ai(),Si("div",OK,(i=t[2]||(t[2]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return IK(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return IK(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IK(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0),""!==e.errorMessage?(Ai(),Si("article",LK,[t[3]||(t[3]=Mi("div",{class:"kb-single-content-spot__decoration"},null,-1)),Mi("div",DK,[Mi("h2",MK,fe(e.labels.submitErrorTitle),1),Mi("p",NK,fe(e.labels.submitErrorMessage),1)]),Mi("div",PK,[Mi("div",null,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.previousStepCallback&&e.previousStepCallback.apply(e,arguments)}),class:"kb-button kb-button--full-color-spot"},fe(e.labels.submitReturnButtonText),1),Mi("button",{onClick:t[1]||(t[1]=function(){return e.submitRetry&&e.submitRetry.apply(e,arguments)}),class:"kb-button kb-button--spot-border-color kb-single-content-spot kb-button--spot-border-color"},fe(e.labels.submitRetryButtonText),1)])])])):zi("v-if",!0)]);var i}]]);var GK={class:"kb-form-step-zero"},KK={class:"kb-single-content-spot kb-single-content-spot--no-icon"},ZK={class:"kb-single-content-spot__content"},WK={class:"kb-single-content-spot__title"},$K={class:"kb-single-content-spot__text-content"},YK={class:"kb-single-content-spot__button-wrapper"},JK=["href"],XK={class:"kb-button kb-button--full-color-spot"};const QK={name:"FormStepZero",props:RK,setup:function(){var e=Af();return{getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"formStepZero",labelKey:t})}}}},eZ=QK,tZ=(0,Hb.A)(eZ,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",GK,[Mi("article",KK,[t[0]||(t[0]=Mi("div",{class:"kb-single-content-spot__decoration"},null,-1)),Mi("div",ZK,[Mi("h2",WK,fe(e.getLabel("errorTitle")),1),Mi("p",$K,fe(e.getLabel("errorMessage")),1)]),Mi("div",YK,[Mi("div",null,[Mi("a",{href:e.getLabel("returnButtonUrl")},[Mi("button",XK,fe(e.getLabel("returnButtonText")),1)],8,JK)])])])])}]]);var nZ={class:"kb-stafet-donation-flow kb-forum-edit-profile"},oZ={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},rZ={class:"kb-stafet-step__input-wrapper"},aZ={class:"kb-stafet-step__step-section-title"},iZ={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},lZ={class:"kb-stafet-step__input-wrapper"},sZ={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},cZ={class:"kb-stafet-step__input-wrapper"},uZ={class:"kb-stafet-flow-actions"},dZ={class:"kb-stafet-flow-actions__buttons-left-wrapper"},pZ={class:"kb-stafet-step__input-wrapper"},fZ={class:"kb-stafet-step__step-section-title"},mZ={class:"kb-stafet-step__input-wrapper-form-checkboxes"},gZ={class:"kb-stafet-step__input-wrapper-form-checkboxes-help-text"},hZ={class:"kb-stafet-flow-actions"},bZ={class:"kb-stafet-flow-actions__buttons-left-wrapper"},vZ={class:"kb-stafet-step__input-wrapper"},yZ={class:"kb-stafet-step__step-section-title"},_Z={class:"kb-stafet-step__input-wrapper"},AZ={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},kZ={class:"kb-stafet-flow-actions"},xZ={class:"kb-stafet-flow-actions__buttons-left-wrapper"},wZ=["href"],CZ={class:"kb-forum-edit-profile__delete"},EZ={class:"kb-forum-edit-profile__delete-text"};function SZ(e){return SZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SZ(e)}function TZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function IZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?TZ(Object(n),!0).forEach(function(t){BZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BZ(e,t,n){return(t=function(e){var t=function(e){if("object"!=SZ(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=SZ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==SZ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OZ={name:"ForumEditProfile",components:{FormInputTextField:mE,FormInputTextarea:_D,FormInputNameField:gL,FormInputEmailField:kL,FormInputDropdown:XB,FormCheckbox:dB,ProfilePicture:mq,DropdownWithTags:mH,Editor:SO},props:{content:{type:Object,required:!0},continueUrl:{type:String,required:!0},continueUrlWithData:{type:String,required:!0}},setup:function(e){var t,n,o,r,a,i,l,s,c,u,d,p,f=Af(),m=Kt({ProfileName:null!==(t=e.content.memberName)&&void 0!==t?t:"",relationToCancer:""===e.content.memberRoles?null:e.content.memberRoles,cancerType:null!==(n=e.content.memberDiagnosis)&&void 0!==n?n:[""],cancerTypeChanged:[""],region:""===e.content.memberRegion?null:e.content.memberRegion,dateOfBirth:e.content.memberDateOfBirth,gender:null!==(o=e.content.memberGender)&&void 0!==o?o:"",description:(p=null!==(d=e.content.memberProfileText)&&void 0!==d?d:"",p?"<p>"+p.replace(/\r\n|\n/g,"</p><p>")+"</p>":""),NotificationForNewPostInMyGroups:null!==(r=e.content.notifications.postInGroup)&&void 0!==r&&r,NotificationForDirectMessage:null!==(a=e.content.notifications.privateMessage)&&void 0!==a&&a,NotificationForCommentOnMySavedPosts:null!==(i=e.content.notifications.commentOnMyPost)&&void 0!==i&&i,NotificationForNewCommentInMyGroups:null!==(l=e.content.notifications.commentInMyGroups)&&void 0!==l&&l,NotificationFrequency:e.content.notifications.frequency}),g=Kt("true"===e.content.hasProfileImage),h=Kt({name:null!==(s=e.content.memberImgName)&&void 0!==s?s:"",url:null!==(c=e.content.memberImgSrc)&&void 0!==c?c:"",size:null!==(u=e.content.memberImgSize)&&void 0!==u?u:""}),b=e.content.changePasswordUrl,v=Kt(!1),y=bl(function(){return f.state.forum.is_submitting}),_=function(e){var t=(new DOMParser).parseFromString(e||"","text/html"),n=function(e){var t="";return e.childNodes.forEach(function(e){"BR"===e.nodeName?t+="\n":e.nodeType===Node.TEXT_NODE&&(t+=e.textContent)}),t},o=t.body.querySelectorAll("p");return(o.length>0?Array.from(o).map(n).join("\n"):n(t.body)).replace(/\u00a0/g," ").trim()};return{notificationfrequencyOptions:[{name:"Straks",value:"Immediately"},{name:"Dagligt",value:"Daily"},{name:"Ugentligt",value:"Weekly"}],genderOptions:[{name:"Kvinde",value:"Kvinde"},{name:"Mand",value:"Mand"},{name:"Andet",value:"Andet"}],hasProfilePicture:g,activeProfilePicture:h,personalInfo:m,changePasswordUrl:b,saveProfile:function(){var e=rE(m.value.ProfileName)&&cO(m.value.NotificationForNewPostInMyGroups)&&cO(m.value.NotificationForDirectMessage)&&cO(m.value.NotificationForCommentOnMySavedPosts)&&tE(m.value.NotificationFrequency);if(v.value=!e,e){var t=IZ(IZ({},m.value),{},{dateOfBirth:m.value.dateOfBirth||null,description:_(m.value.description)});f.dispatch("forum/submitSaveProfile",{body:t})}},nameValidator:rE,nonEmptyStringValidator:tE,startDeleteUserOverlay:function(t){f.commit("main/set_page_overlay_content_data",{cancerforumProfileId:e.content.id,continueUrl:e.continueUrl,continueUrlWithData:e.continueUrlWithData}),f.dispatch("main/openPageOverlay",{overlayContent:"DeleteCancerProfileModal",returnTarget:t.currentTarget})},displayError:v,isSubmitting:y,setCancerTypes:function(e){m.value.cancerType=e},startUserInfoOverlay:function(e){f.dispatch("main/openPageOverlay",{overlayContent:"MemberOverlay",returnTarget:e.currentTarget})},getLabel:function(e){return f.getters["labels/getLabel"]({labelCollection:"ForumEditProfile",labelKey:e})}}}},LZ=OZ,DZ=(0,Hb.A)(LZ,[["render",function(e,t,n,o,r,a){var i=qr("ProfilePicture"),l=qr("FormInputNameField"),s=qr("FormInputDropdown"),c=qr("DropdownWithTags"),u=qr("FormInputTextField"),d=qr("editor"),p=qr("FormCheckbox"),f=qr("FormInputEmailField");return Ai(),Si("article",nZ,[Mi("section",oZ,[t[19]||(t[19]=Mi("div",{class:"kb-stafet-step__divider"},null,-1)),Ni(i,{content:e.activeProfilePicture,userId:e.content.id,hasProfileImage:e.hasProfilePicture,type:"cancerforum"},null,8,["content","userId","hasProfileImage"]),t[20]||(t[20]=Mi("div",{class:"kb-stafet-step__divider"},null,-1)),Mi("div",rZ,[Mi("h2",aZ,fe(e.getLabel("aboutSectionTitle")),1),Mi("div",iZ,[Ni(l,{isRequired:"",modelValue:e.personalInfo.ProfileName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.personalInfo.ProfileName=t}
2),fieldName:"cancerForumName",label:e.getLabel("cancerForumNameLabel"),isValidationError:e.displayError&&!e.nameValidator(e.personalInfo.ProfileName),placeholder:e.getLabel("cancerForumNamePlaceholder"),errorMessageLabel:e.getLabel("cancerForumNameError")},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"]),Ni(s,{modelValue:e.personalInfo.relationToCancer,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.personalInfo.relationToCancer=t}),fieldName:"relationToCancer",label:e.getLabel("relationToCancerLabel"),placeholder:e.getLabel("relationToCancerPlaceholder"),selectOptions:e.content.relationToCancerOptions,onChangeCallback:function(t){return e.personalInfo.relationToCancer=t.target.value}},null,8,["modelValue","label","placeholder","selectOptions","onChangeCallback"])])]),Mi("div",lZ,[Ni(c,{modelValue:e.personalInfo.cancerType,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.personalInfo.cancerType=t}),fieldName:"cancerType",isRequired:!1,label:e.getLabel("cancerTypeLabel"),tagsTitle:e.getLabel("tagsTitle"),placeholder:e.getLabel("cancerTypePlaceholder"),selectOptions:{options:e.content.cancerTypeOptions},onChangeCallback:function(t){return e.setCancerTypes(t)},initTags:e.personalInfo.cancerType},null,8,["modelValue","label","tagsTitle","placeholder","selectOptions","onChangeCallback","initTags"])]),Mi("div",sZ,[Ni(s,{modelValue:e.personalInfo.region,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.personalInfo.region=t}),fieldName:"region",label:e.getLabel("regionLabel"),placeholder:e.getLabel("regionPlaceholder"),selectOptions:e.content.regionOptions,onChangeCallback:function(t){return e.personalInfo.region=t.target.value}},null,8,["modelValue","label","placeholder","selectOptions","onChangeCallback"]),Ni(u,{modelValue:e.personalInfo.dateOfBirth,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.personalInfo.dateOfBirth=t}),fieldName:"dateOfBirth",type:"date",label:e.getLabel("dateOfBirthLabel"),placeholder:e.getLabel("dateOfBirthPlaceholder")},null,8,["modelValue","label","placeholder"])]),Mi("div",cZ,[Ni(s,{modelValue:e.personalInfo.gender,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.personalInfo.gender=t}),fieldName:"gender",label:e.getLabel("genderLabel"),placeholder:e.getLabel("genderPlaceholder"),selectOptions:e.genderOptions,onChangeCallback:function(t){return e.personalInfo.gender=t.target.value}},null,8,["modelValue","label","placeholder","selectOptions","onChangeCallback"]),Ni(d,{"api-key":"no-api-key","model-value":e.personalInfo.description,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.personalInfo.description=t}),init:{plugins:"emoticons autoresize",toolbar:"emoticons",menubar:!1,statusbar:!1,branding:!1,contextmenu:!1,paste_as_text:!0,valid_elements:"p,br",forced_root_block:"p",content_style:"p { margin: 0; }",resize:!1,height:null,min_height:300,autoresize_bottom_margin:0}},null,8,["model-value"]),Mi("nav",uZ,[Mi("div",dZ,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[7]||(t[7]=function(){return e.saveProfile&&e.saveProfile.apply(e,arguments)})},fe(e.getLabel("saveButton")),3),Mi("button",{class:"kb-link","aria-haspopup":"true",onClick:t[8]||(t[8]=function(){return e.startUserInfoOverlay&&e.startUserInfoOverlay.apply(e,arguments)})},fe(e.getLabel("userOverlayText")),1)])])]),t[21]||(t[21]=Mi("div",{class:"kb-stafet-step__divider"},null,-1)),Mi("div",pZ,[Mi("h5",fZ,fe(e.getLabel("notificationsSectionTitle")),1),Mi("div",mZ,[Mi("p",gZ,fe(e.getLabel("notificationsCheckboxTitle")),1),Ni(p,{fieldName:"postInGroup",modelValue:e.personalInfo.NotificationForNewPostInMyGroups.toString(),"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.personalInfo.NotificationForNewPostInMyGroups=t}),label:e.getLabel("postInGroupLabel"),onChangeCallback:function(t){return e.personalInfo.NotificationForNewPostInMyGroups=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(p,{fieldName:"privateMessage",modelValue:e.personalInfo.NotificationForDirectMessage.toString(),"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.personalInfo.NotificationForDirectMessage=t}),label:e.getLabel("privateMessageLabel"),onChangeCallback:function(t){return e.personalInfo.NotificationForDirectMessage=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(p,{fieldName:"
2commentOnMyPost",modelValue:e.personalInfo.NotificationForCommentOnMySavedPosts.toString(),"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.personalInfo.NotificationForCommentOnMySavedPosts=t}),label:e.getLabel("commentOnMyPostLabel"),onChangeCallback:function(t){return e.personalInfo.NotificationForCommentOnMySavedPosts=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(p,{fieldName:"commentInMyGroups",modelValue:e.personalInfo.NotificationForNewCommentInMyGroups.toString(),"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.personalInfo.NotificationForNewCommentInMyGroups=t}),label:e.getLabel("commentInMyGroupsLabel"),onChangeCallback:function(t){return e.personalInfo.NotificationForNewCommentInMyGroups=t.target.checked}},null,8,["modelValue","label","onChangeCallback"])]),Ni(s,{isRequired:"",modelValue:e.personalInfo.NotificationFrequency,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.personalInfo.NotificationFrequency=t}),fieldName:"frequency",label:e.getLabel("frequencyLabel"),isValidationError:e.displayError&&!e.nonEmptyStringValidator(e.personalInfo.NotificationFrequency),placeholder:e.getLabel("frequencyPlaceholder"),errorMessageLabel:e.getLabel("frequencyError"),selectOptions:e.notificationfrequencyOptions,onChangeCallback:function(t){return e.personalInfo.NotificationFrequency=t.target.value}},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel","selectOptions","onChangeCallback"]),Mi("nav",hZ,[Mi("div",bZ,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitting}]),onClick:t[14]||(t[14]=function(){return e.saveProfile&&e.saveProfile.apply(e,arguments)})},fe(e.getLabel("saveButton")),3)])])]),t[22]||(t[22]=Mi("div",{class:"kb-stafet-step__divider"},null,-1)),Mi("div",vZ,[Mi("h5",yZ,fe(e.getLabel("userSettingsSectionTitle")),1),Mi("div",_Z,[Mi("div",AZ,[Ni(f,{disabled:"",isRequired:"",modelValue:e.content.email,"onUpdate:modelValue":t[15]||(t[15]=function(t){return e.content.email=t}),fieldName:"cancerForumEmail",label:e.getLabel("cancerForumUserEmailLabel"),placeholder:e.getLabel("cancerForumUserEmailPlaceholder")},null,8,["modelValue","label","placeholder"]),Ni(u,{readOnly:"",isRequired:"",modelValue:e.personalInfo.ProfileName,"onUpdate:modelValue":t[16]||(t[16]=function(t){return e.personalInfo.ProfileName=t}),fieldName:"cancerForumUserPassword",label:e.getLabel("cancerForumUserPasswordLabel"),type:"password",placeholder:e.getLabel("cancerForumUserPasswordPlaceholder")},null,8,["modelValue","label","placeholder"])])]),Mi("nav",kZ,[Mi("div",xZ,[Mi("a",{href:e.changePasswordUrl,class:"kb-link kb-stafet-flow-actions__link kb-stafet-flow-actions__link--text-link-color"},[Fi(fe(e.getLabel("cancerForumUserChangePasswordLinkText"))+" ",1),t[18]||(t[18]=Mi("div",{class:"kb-stafet-flow-actions__link-arrow","aria-hidden":"true"},[Mi("svg",{width:"17",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("g",{stroke:"#E8001D"},[Mi("path",{d:"m12.167 1 3.623 4-3.623 4","stroke-linejoin":"round"}),Mi("path",{d:"M11.746 5H0"})])])],-1))],8,wZ)])])]),zi(" delete profile "),Mi("div",CZ,[Mi("p",EZ,[Fi(fe(e.getLabel("deleteText"))+" ",1),zi(" needs to open delete modal CF13 "),Mi("span",{class:"kb-forum-edit-profile__delete-link kb-link","aria-haspopup":"true",onClick:t[17]||(t[17]=function(){return e.startDeleteUserOverlay&&e.startDeleteUserOverlay.apply(e,arguments)})},fe(e.getLabel("deleteButtonText")),1)])])])])}]]),MZ=DZ;var NZ={class:"kb-checkout-content"},PZ={class:"kb-checkout-content__wrapper"},RZ={class:"kb-checkout-content__wrapper-left"},FZ={class:"kb-checkout-content__step-indicator"},VZ=["aria-current","onClick"],zZ={class:"kb-checkout-content__step-indicator-title"},UZ={class:"kb-checkout-content__step-indicator-number"},jZ={class:"kb-visually-hidden"},HZ={class:"kb-checkout-content__title","aria-live":"polite"},qZ={class:"kb-checkout-content__wrapper-aside"},GZ={class:"kb-forms kb-checkout-step-one kb-frivillige-checkout-step-one"},KZ={class:"kb-checkout-step-one__customer-info"},ZZ={class:"kb-checkout-step-one__form-wrapper"},WZ={class:"kb-checkout-step-one__form-wrapper"},$Z={class:"kb-checkout-step-one__form-wrapper"},YZ={class:"kb-checkout-step-one__navigation"},JZ={class:"kb-checkout-step-one__navigation-button-wrapper"},XZ=["href"];function QZ(e){return QZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QZ(e)}function eW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?eW(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nW(e,t,n){return(t=function(e){var t=function(e){if("object"!=QZ(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QZ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QZ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oW={name:"FrivilligeCheckoutStepOne",components:{FormInputTextField:mE,FormAddressField:tS},setup:function(){var e,t=Af(),n=bl(function(){return t.state.checkout.purchaseData.invoice.userInformation}),o=bl(function(){return t.state.checkout.purchaseData.invoice.invoiceAddress}),r=Kt(!1),a=!!n.value.mobilePhone,i=Kt((null===(e=n.value)||void 0===e?void 0:e.mobilePhone)||""),l=bl(function(){return oE(i.value)});return{userInformation:n,phoneInput:i,phoneInputFilled:l,disablePhoneInput:a,displayErrorMessages:r,invoiceAddress:o,onSubmit:function(){if(r.value=!0,l.value){var e=tW(tW({},n.value),{},{mobilePhone:i.value});t.commit("checkout/set_active_delivery_address",o.value),t.commit("checkout/set_purchase_data_invoice",{userInformation:e,invoiceAddress:o.value}),t.commit("checkout/update_checkout_step_been_filled",1),t.commit("checkout/update_checkout_step",{nextStepNumber:2})}},getLabel:function(e){return dA({labelKey:e,labelCollection:"checkout"})}}}},rW=oW,aW=(0,Hb.A)(rW,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("FormAddressField");return Ai(),Si("article",GZ,[Mi("section",KZ,[Mi("div",ZZ,[Ni(i,{isRequired:"",modelValue:e.userInformation.contactFirstName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.userInformation.contactFirstName=t}),fieldName:"firstName",autocomplete:"given-name",label:e.getLabel("firstNameLabel"),placeholder:e.getLabel("firstNamePlaceholder"),disabled:"true"},null,8,["modelValue","label","placeholder"]),Ni(i,{isRequired:"",modelValue:e.userInformation.contactLastName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.userInformation.contactLastName=t}),fieldName:"lastName",autocomplete:"family-name",label:e.getLabel("lastNameLabel"),placeholder:e.getLabel("lastNamePlaceholder"),disabled:"true"},null,8,["modelValue","label","placeholder"])]),Mi("div",WZ,[Ni(i,{isRequired:"",modelValue:e.userInformation.email,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.userInformation.email=t}),fieldName:"email",autocomplete:"email",label:e.getLabel("emailLabel"),placeholder:e.getLabel("emailPlaceholder"),disabled:"true"},null,8,["modelValue","label","placeholder"]),Ni(i,{modelValue:e.phoneInput,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.phoneInput=t}),fieldName:"phone",autcomplete:"tel",isRequired:"",label:e.getLabel("phoneLabel"),placeholder:e.getLabel("phonePlaceholder"),isValidationError:!e.phoneInputFilled&&e.displayErrorMessages,errorMessageLabel:e.getLabel("validationPhone"),disabled:e.disablePhoneInput},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel","disabled"])]),Mi("div",$Z,[Ni(l,{"address-line-value":e.invoiceAddress.addressLine,"onUpdate:addressLineValue":t[4]||(t[4]=function(t){return e.invoiceAddress.addressLine=t}),"zip-code-value":e.invoiceAddress.postalCode,"onUpdate:zipCodeValue":t[5]||(t[5]=function(t){return e.invoiceAddress.postalCode=t}),"city-value":e.invoiceAddress.city,"onUpdate:cityValue":t[6]||(t[6]=function(t){return e.invoiceAddress.city=t}),addressLabel:e.getLabel("addressLineLabel"),zipCodeLabel:e.getLabel("postalCodeLabel"),addressPlaceholder:e.getLabel("addressLinePlaceholder"),zipCodePlaceholder:e.getLabel("postalCodePlaceholder"),cityPlaceholder:e.getLabel("cityPlaceholder"),cityLabel:e.getLabel("cityLabel"),isValidationError:!1,errorMessageLabel:e.getLabel("validationAddressLine"),disabled:!0},null,8,["address-line-value","zip-code-value","city-value","addressLabel","zipCodeLabel","addressPlaceholder","zipCodePlaceholder","cityPlaceholder","cityLabel","errorMessageLabel"])])]),Mi("div",YZ,[t[8]||(t[8]=Mi("div",{class:"kb-checkout-step-one__navigation-breaker"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 1","aria-hidden":"true",role:"presentation"},[Mi("path",{fill:"#DFDFDB",d:"M0 0h704v1H0z"})])],-1)),Mi("div",JZ,[Mi("a",{href:e.getLabel("cancelButtonUrl"),class:"kb-button"},fe(e.getLabel("cancelButtonText")),9,XZ),Mi("button",{onClick:t[7]||(t[7]=function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)}),class:"kb-checkout-step-one__bottom-button submit kb-button kb-button--full-color-spot"},fe(e.getLabel("submitButtonTextStep1")),1)])])])}]]);var iW={class:"kb-forms kb-frivillige-checkout-step-two"},lW={key:0,class:"kb-frivillige-checkout-content__message"},sW={class:"kb-checkout-step-one__form-wrapper"},cW={class:"kb-frivillige-checkout-content__message"};function uW(e,t){return e.setDate(e.getDate()+t),e.toISOString().split("T")[0]}const dW={name:"FrivilligeCheckoutStepTwo",components:{CheckoutStepTwo:$S,FormInputTextarea:_D,FormInputTextField:mE,FormInputDateField:gK},setup:function(){var e,t,n,o,r,a,i=Af(),l=Kt(null!==(e=null===(t=i.state.checkout.purchaseData)||void 0===t||null===(t=t.udlaansData)||void 0===t?void 0:t.startDate)&&void 0!==e?e:null),s=Kt(null!==(n=null===(o=i.state.checkout.purchaseData)||void 0===o||null===(o=o.udlaansData)||void 0===o?void 0:o.endDate)&&void 0!==n?n:null),c=Kt(null!==(r=null===(a=i.state.checkout.purchaseData)||void 0===a||null===(a=a.udlaansData)||void 0===a?void 0:a.comment)&&void 0!==r?r:null),u=uW(new Date,3),d=bl(function(){return l.value?uW(new Date(l.value),1):u}),p=Kt(!1),f=bl(function(){return i.state.basket.basketState.containsUdlaansvare}),m=function(e){return v(new Date)<=v(new Date(e))},g=function(e,t){return v(new Date)<v(new Date(t))&&v(new Date(e))<v(new Date(t))},h=bl(function(){return p.value&&!m(l.value)}),b=bl(function(){return p.value&&!g(l.value,s.value)}),v=function(e){return e?parseInt(new Date(e).toISOString().split("T")[0].replaceAll("-","")):null};return{containsUdlaansvare:f,udlaanStartDate:l,udlaanEndDate:s,udlaanComment:c,udlaanMinStartDate:u,udlaanMinEndDate:d,isUdlaanStartDateValid:h,isUdlaanEndDateValid:b,onSubmit:function(e){if(p.value=!0,e&&(!f.value||m(l.value)&&g(l.value,s.value))){i.commit("checkout/set_purchase_data_delivery",e),i.commit("checkout/set_active_delivery_address",e),i.commit("checkout/set_udlaans_data",{startDate:l.value,endD
2ate:s.value,comment:c.value});var t=i.state.checkout.stepTwo.showPickUpAddresses?"Afhentningssted":"Hjemmelevering";Jm(i.state.basket.basket.map(function(e,t){return Zm(e,t)}),t),i.commit("checkout/update_checkout_step",{nextStepNumber:3}),p.value=!1}},getLabel:function(e){return dA({labelKey:e,labelCollection:"checkout",allowEmpty:!0})}}}},pW=dW,fW=(0,Hb.A)(pW,[["render",function(e,t,n,o,r,a){var i=qr("FormInputDateField"),l=qr("FormInputTextarea"),s=qr("CheckoutStepTwo");return Ai(),Si("article",iW,[e.containsUdlaansvare?(Ai(),Si(gi,{key:0},[e.getLabel("udlaanText")?(Ai(),Si("div",lW,[Mi("p",null,fe(e.getLabel("udlaanText")),1)])):zi("v-if",!0),Mi("div",sW,[Ni(i,{isRequired:"",modelValue:e.udlaanStartDate,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.udlaanStartDate=t}),fieldName:"udlaanStartDate",minDate:e.udlaanMinStartDate,type:"date",label:e.getLabel("udlaanStartDateLabel"),isValidationError:e.isUdlaanStartDateValid,placeholder:e.getLabel("udlaanStartDatePlaceholder"),errorMessageLabel:e.getLabel("udlaanStartDateError")},null,8,["modelValue","minDate","label","isValidationError","placeholder","errorMessageLabel"]),Ni(i,{isRequired:"",modelValue:e.udlaanEndDate,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.udlaanEndDate=t}),fieldName:"udlaanEndDate",minDate:e.udlaanMinEndDate,type:"date",label:e.getLabel("udlaanEndDateLabel"),isValidationError:e.isUdlaanEndDateValid,placeholder:e.getLabel("udlaanEndDatePlaceholder"),errorMessageLabel:e.getLabel("udlaanEndDateError")},null,8,["modelValue","minDate","label","isValidationError","placeholder","errorMessageLabel"])]),Ni(l,{modelValue:e.udlaanComment,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.udlaanComment=t}),fieldName:"udlaanComment",label:e.getLabel("udlaanCommentLabel")},null,8,["modelValue","label"]),t[3]||(t[3]=Mi("hr",null,null,-1)),t[4]||(t[4]=Mi("h2",{class:"kb-checkout-content__title","aria-live":"polite"},"Levering",-1))],64)):zi("v-if",!0),Ni(s,{hideCompany:!0,hideDepartment:!0,onSubmitCallback:e.onSubmit},Jr({_:2},[e.containsUdlaansvare&&e.getLabel("udlaanDeliveryText")?{name:"pickupAddressMessage",fn:ao(function(){return[Mi("div",cW,[Mi("p",null,fe(e.getLabel("udlaanDeliveryText")),1)])]}),key:"0"}:void 0]),1032,["onSubmitCallback"])])}]]),mW={name:"FrivilligeCheckoutContent",components:{BasketAside:Yx,BasketCard:Zx,FrivilligeCheckoutStepOne:aW,FrivilligeCheckoutStepTwo:fW,CheckoutStepThree:XT},props:{userData:{type:Object,required:!0}},setup:function(e){var t=Af(),n=bl(function(){return t.state.basket.basketState.containsUdlaansvare}),o=bl(function(){return t.state.checkout.purchaseData.invoice}),r=bl(function(){return t.state.checkout.checkoutSteps}),a=bl(function(){return r.value.find(function(e){return!0===e.active})});Lr(function(){var n,a,i,l,s,c,u;t.dispatch("basket/fetchBasket").then(function(){var e;if(1===(null===(e=t.state.checkout.checkoutSteps.find(function(e){return e.active}))||void 0===e?void 0:e.stepNumber)){var n=t.state.basket.basket;n.length>0&&Ym(n.map(function(e,t){return Zm(e,t)}))}});var d=xm(o.value);d.userInformation.contactFirstName=null!==(n=e.userData.firstName)&&void 0!==n?n:"",d.userInformation.contactLastName=null!==(a=e.userData.lastName)&&void 0!==a?a:"",d.userInformation.email=null!==(i=e.userData.email)&&void 0!==i?i:"",d.userInformation.mobilePhone=null!==(l=e.userData.phoneNumber)&&void 0!==l?l:"",d.userInformation.customerType="frivillige",d.invoiceAddress.addressLine=null!==(s=e.userData.address)&&void 0!==s?s:"",d.invoiceAddress.postalCode=null!==(c=e.userData.postalCode)&&void 0!==c?c:"",d.invoiceAddress.city=null!==(u=e.userData.city)&&void 0!==u?u:"";var p=xm(r.value);p[1].stepTitle="Levering",t.commit("checkout/set_checkout_steps",p),t.commit("checkout/set_purchase_data_invoice",d)});var i=bl(function(){return n.value?t.getters["labels/getLabel"]({labelCollection:"checkout",labelKey:"udlaanCheckoutStepTitle"}):a.value.stepTitle});return{activeStep:a,checkoutSteps:r,checkoutDeliveryStepTitle:i,determineCheckoutStepContent:function(){switch(a.value.stepNumber){case 1:return"FrivilligeCheckoutStepOne";case 2:return"FrivilligeCheckoutStepTwo";case 3:return"CheckoutStepThree";case 4:return;default:console.warn("No active checkout step defined")}},handleStepClick:function(e){var n=e<a.value.stepNumber?e:a.value.stepNumber;t.commit("checkout/update_checkout_step",{nextStepNumber:n})}}}},gW=mW,hW=(0,Hb.A)(gW,[["render",function(e,t,n,o,r,a){var i=qr("BasketAside");return Ai(),Si("article",NZ,[Mi("div",PZ,[Mi("div",RZ,[Mi("ol",FZ,[(Ai(!0),Si(gi,null,Yr(e.checkoutSteps,function(n,o){return Ai(),Si("li",{key:o,class:"kb-checkout-content__step-indicator-list-item"},[Mi("button",{"aria-current":null!=n&&n.active?"step":null,onClick:function(t){return e.handleStepClick(n.stepNumber)},class:"kb-checkout-content__step-indicator-link"}
2,[Mi("h3",zZ,fe(n.stepTitle),1),Mi("div",{class:Y(["kb-checkout-content__step-indicator-circle",{"kb-checkout-content__step-indicator-circle--active-step":null==n?void 0:n.active}])},[Mi("p",UZ,[t[0]||(t[0]=Mi("span",{class:"kb-visually-hidden"},"step",-1)),Fi(fe(n.stepNumber),1),Mi("span",jZ,"ud af "+fe(e.checkoutSteps.length),1)])],2)],8,VZ)])}),128))]),Mi("h2",HZ,fe(e.checkoutDeliveryStepTitle),1),(Ai(),Ti(Kr(e.determineCheckoutStepContent()),{frivillige:!0}))]),Mi("div",qZ,[Ni(i,{miniBasket:!0,showPaymentOptions:!1})])])])}]]);function bW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var vW={class:"kb-posts-list"},yW={class:"kb-posts-list__container"},_W={class:"kb-posts-list__container-group"},AW={class:"kb-posts-list__container-group-element"},kW={class:"kb-posts-list__container-element"},xW=["href"],wW={class:"kb-posts-list__wrapper"},CW={class:"kb-posts-list__actions"},EW={class:"kb-posts-list__actions-element"},SW={key:0,class:"kb-spinner-overlay"};function TW(e){return function(e){if(Array.isArray(e))return IW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return IW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IW(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var BW={class:"kb-group-post"},OW={class:"kb-group-post__contents"},LW={class:"kb-group-post__contents-left"},DW={key:0,class:"kb-group-post__contents-left-top"},MW={class:"kb-image-module kb-image-module--1-1 kb-group-post__contents-left-top-profile-img"},NW={class:"kb-image-module__image-container"},PW={class:"kb-image-module__image"},RW=["src"],FW={key:1,class:"kb-image-module__image-container"},VW={class:"kb-image-module__image"},zW=["src"],UW=["aria-expanded"],jW={class:"kb-group-post__contents-left-top-post-author-data"},HW={class:"kb-group-post__contents-left-top-post-author-data-name"},qW={class:"kb-group-post__contents-left-top-post-author-data-date-wrapper"},GW={class:"kb-group-post__contents-left-top-post-author-data-date"},KW={key:0,class:"kb-group-post__contents-left-top-post-author-data-date kb-group-post__contents-left-top-post-author-data-date--edited"},ZW={key:1,class:"kb-group-post__contents-left-top-texts"},WW={class:"kb-group-post__contents-left-top-post-author-data"},$W={class:"kb-group-post__contents-left-top-post-author-data-name"},YW={class:"kb-group-post__contents-left-top-post-author-data-date-wrapper"},JW={class:"kb-group-post__contents-left-top-post-author-data-date"},XW={key:0,class:"kb-group-post__contents-left-top-post-author-data-date kb-group-post__contents-left-top-post-author-data-date--edited"},QW={key:1,class:"kb-group-post__contents-left-info-locked"},e$={key:0,class:"kb-group-post__contents-left-info-title"},t$={key:1,class:"kb-group-post__contents-left-info-no-title"},n$={key:2,class:"kb-group-post__contents-left-info-no-text"},o$={class:"kb-group-post__contents-left-info-tags"},r$={class:"kb-group-post__contents-left-info-tags-tag"},a$={key:0},i$={key:1,class:"kb-group-post__contents-left-info-tags-tag__skeleton"},l$={key:0,class:"kb-group-post__contents-right"},s$={class:"kb-group-post__contents-right-top"},c$={class:"kb-group-post__contents-right-top-header"},u$={class:"kb-group-post__contents-right-top-comment"},d$=["innerHTML"],p$={key:1,class:"kb-group-post__contents-right-top-comment__skeleton"},f$={class:"kb-group-post__contents-left-top"},m$={class:"kb-image-module kb-image-module--1-1 kb-group-post__contents-left-top-profile-img"},g$={class:"kb-image-module__image-container"},h$={class:"kb-image-module__image"},b$=["src"],v$={key:1,class:"kb-image-module__image-skeleton"},y$={key:1,class:"kb-image-module__image-container"},_$={class:"kb-image-module__image"},A$=["src"],k$={key:1,class:"kb-image-module__image-skeleton"},x$={class:"kb-group-post__contents-left-top-texts"},w$=["aria-expanded"],C$={class:"kb-group-post__contents-left-top-post-author-data-name"},E$={key:0},S$={key:1,class:"kb-group-post__contents-left-top-post-author-data__skeleton"},T$={class:"kb-group-post__contents-left-top-post-author-data-date-wrapper"},I$={class:"kb-group-post__contents-left-top-post-author-data-date"},B$={key:0},O$={key:1,class:"kb-group-post__contents-left-top-post-author-data__skeleton"},L$={key:1,class:"kb-group-post__contents-left-top-post-author-data"},D$={class:"kb-group-post__contents-left-top-post-author-data-name"},M$={key:0},N$={key:1,class:"kb-group-post__contents-left-top-post-author-data__skeleton"},P$={class:"kb-group-post__contents-left-top-post-author-data-date-wrapper"},R$={class:"kb-group-post__contents-left-top-post-author-data-date"},F$={key:0},V$={key:1,class:"kb-group-post__contents-left-top-post-author-data__skeleton"},z$={class:"kb-group-post__contents-right-top-header"},U$={class:"kb-group-post__contents-right-top-comment"};const j$={name:"GroupPost",props:{result:{type:Object,required:!0},isFrivilligContext:{type:Boolean,required:!1},handlePostClick:{type:Function,required:!0}},setup:function(e){var t=Af(),n=Kt(!1),o=bl(function(){return!e.result.postText}),r=bl(function(){return t.state.forum.post_latest_comment[e.result.id]}),a=bl(function(){return t.state.forum.post_statistics[e.result.id]}),i=bl(function(){var t;return e.result.hasComments?null===(t=a.value)||void 0===t?void 0:t.commentsCount:0}),l=e.isFrivilligContext?"MemberOverlayProfileCard":"MemberOverlay";return Dr(function(){e.result.hasComments&&(t.dispatch("forum/getPostLatestComment",{postId:e.result.id}
2),t.dispatch("forum/getPostStatistics",{postId:e.result.id}))}),{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"GroupPost",labelKey:e})},userInfoExpanded:n,isMasked:o,startUserInfoOverlay:function(n,o){o&&(t.commit("main/set_page_overlay_content_data",{userId:o,isFrivilligContext:e.isFrivilligContext}),t.dispatch("main/openPageOverlay",{overlayContent:l,returnTarget:n.currentTarget}))},latestComment:r,commentsCount:i}}},H$=j$,q$=(0,Hb.A)(H$,[["render",function(e,t,n,o,r,a){var i,l,s,c,u,d,p;return Ai(),Si("div",BW,[Mi("div",OW,[Mi("div",LW,[!e.isMasked&&e.result.author?(Ai(),Si("div",DW,[Mi("figure",MW,[e.result.authorId?(Ai(),Si("button",{key:0,onClick:t[0]||(t[0]=function(t){return e.startUserInfoOverlay(t,e.result.authorId)})},[Mi("div",NW,[Mi("picture",PW,[Mi("img",{src:e.result.imageUrl,alt:"ProfileImage"},null,8,RW)])])])):(Ai(),Si("div",FW,[Mi("picture",VW,[Mi("img",{src:e.result.imageUrl,alt:"ProfileImage"},null,8,zW)])]))]),e.result.authorId?(Ai(),Si("button",{key:0,class:"kb-group-post__contents-left-top-texts kb-group-post__contents-left-top-texts--button",onClick:t[1]||(t[1]=function(t){return e.startUserInfoOverlay(t,e.result.authorId)}),onKeydown:t[2]||(t[2]=cc(function(t){return e.startUserInfoOverlay(t,e.result.authorId)},["enter"])),"aria-haspopup":"true","aria-expanded":e.userInfoExpanded},[Mi("div",jW,[Mi("p",HW,fe(e.result.author),1),Mi("div",qW,[Mi("p",GW,fe(e.result.date),1),e.result.edited?(Ai(),Si("p",KW,[Fi(fe(e.getLabel("editedLabel"))+": "+fe(e.result.edited.date)+" ",1),Mi("span",null,fe(e.result.edited.author),1)])):zi("v-if",!0)])])],40,UW)):(Ai(),Si("div",ZW,[Mi("div",WW,[Mi("p",$W,fe(e.result.author),1),Mi("div",YW,[Mi("p",JW,fe(e.result.date),1),e.result.edited?(Ai(),Si("p",XW,[Fi(fe(e.getLabel("editedLabel"))+": "+fe(e.result.edited.date)+" ",1),Mi("span",null,fe(e.result.edited.author),1)])):zi("v-if",!0)])])]))])):zi("v-if",!0),e.isMasked?(Ai(),Si("div",QW,[t[6]||(t[6]=Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 16"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M10 3.5a3 3 0 0 0-6 0V5h.5V3.5a2.5 2.5 0 0 1 5 0v3h-9v9h11V14H11v1H1V7h12v8.5h.5v-9H10v-3ZM5.75 9.75a1.25 1.25 0 1 1 1.875 1.083l-.125.072V13h-1v-2.095l-.125-.072A1.25 1.25 0 0 1 5.75 9.75ZM7 8a1.75 1.75 0 0 0-1 3.186V13.5h2v-2.314A1.75 1.75 0 0 0 7 8Z","clip-rule":"evenodd"})],-1)),Mi("span",null,fe(e.getLabel("notLoggedInTitle")),1)])):zi("v-if",!0),Mi("button",{onClick:t[3]||(t[3]=function(t){return e.handlePostClick(t,e.result)}),class:"kb-group-post__contents-left-info"},[e.result.postTitle?(Ai(),Si("h3",e$,fe(e.result.postTitle),1)):zi("v-if",!0),e.result.postTitle?zi("v-if",!0):(Ai(),Si("div",t$,TW(t[7]||(t[7]=[Mi("span",null,null,-1)])))),e.isMasked?(Ai(),Si("div",n$,TW(t[8]||(t[8]=[Mi("span",null,null,-1),Mi("span",null,null,-1)])))):zi("v-if",!0),Mi("div",o$,[Mi("div",r$,[t[9]||(t[9]=Vi('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="#3C3C3C" fill-rule="evenodd" d="M10.706 8.744h.024a.649.649 0 0 0 .62-.644V1.393a.651.651 0 0 0-.651-.649H1.024a.651.651 0 0 0-.651.651v6.047h1.674v-.558H.931V1.395a.093.093 0 0 1 .093-.093H10.7a.093.093 0 0 1 .093.093V8.1a.09.09 0 0 1-.091.089H3.072C.842 8.186.373 9.45.373 10.512v.279h.558v-.28c0-1.209.68-1.767 2.14-1.767h7.635Zm4.272-3.349h-2.884v.558h2.884a.093.093 0 0 1 .093.093v5.489h-1.117v.558h1.675V6.046a.65.65 0 0 0-.651-.65Zm-4.795 7.442h2.748c2.229 0 2.698 1.265 2.698 2.326v.279h-.558v-.28c0-1.209-.68-1.767-2.14-1.767H5.296a.65.65 0 0 1-.646-.642V9.488h.558v3.26a.09.09 0 0 0 .092.09h4.883Z" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"></path></clipPath></defs></svg>',1)),null!==e.commentsCount&&void 0!==e.commentsCount?(Ai(),Si("span",a$,fe(e.commentsCount)+" "+fe(e.getLabel("commentsLabel")),1)):(Ai(),Si("span",i$))])])])]),e.isMasked?zi("v-if",!0):(Ai(),Si("div",l$,[Mi("div",s$,[e.result.hasComments?(Ai(),Si(gi,{key:0},[Mi("h4",c$,fe(e.getLabel("commentsTitle")),1),Mi("div",u$,[e.latestComment?(Ai(),Si("p",{key:0,innerHTML:null===(i=e.latestComment)||void 0===i?void 0:i.comment},null,8,d$)):(Ai(),Si("div",p$,TW(t[10]||(t[10]=[Mi("div",{class:"kb-group-post__contents-right-top-comment__skeleton-line"},null,-1),Mi("div",{class:"kb-group-post__contents-right-top-comment__skeleton-line"},null,-1)]))))]),Mi("div",f$,[Mi("figure",m$,[null!==(l=e.latestComment)&&void 0!==l&&l.authorId?(Ai(),Si("button",{key:0,onClick:t[4]||(t[4]=function(t){return e.startUserInfoOverlay(t,e.latestComment.authorId)})},[Mi("div",g$,[Mi("picture",h$,[e.latestComment?(Ai(),Si("img",{key:0,src:null===(s=e.latestComment)||void 0===s?void 0:s.imageUrl,alt:"ProfileImage"},null,8,b$)):(Ai(),Si("div",v$))])])])):(Ai(),Si("div",y$,[Mi("picture",_$,[e.latestComment?(Ai(),Si("img",{key:0,src:null===(c=e.latestComment)||void 0===c?void 0:c.imageUrl,alt:"ProfileImage"},null,8,A$)):(Ai(),Si("div",k$))])]))]),Mi("div",x$,[null!==(u=e.latestComment)&&void 0!==u&&u.authorId?(Ai(),Si("button",{key:0,class:"kb-group-post__contents-left-top-post-author-data kb-group-post__contents-left-top-post-author-data--button",onClick:t[5]||(t[5]=function(t){return e.startUserInfoOverlay(t,e.latestComment.authorId)}),"aria-haspopup":"true","aria-expanded":e.userInfoExpanded},[Mi("p",C$,[e.latestComment?(Ai(),Si("span",E$,fe(e.latestComment.author),1)):(Ai(),Si("span",S$))]),Mi("div",T$,[Mi("p",I$,[e.latestComment?(Ai(),Si("span",B$,fe(null===(d=e.latestComment)||void 0===d?void 0:d.date),1)):(Ai(),Si("span",O$))])])],8,w$)):(Ai(),Si("div",L$,[Mi("p",D$,[e.latestComment?(Ai(),Si("span",M$,fe(e.latestComment.author),1)):(Ai(),Si("span",N$))]),Mi("div",P$,[Mi("p",R$,[e.latestComment?(Ai(),Si("span",F$,fe(null===(p=e.latestComment)||void 0===p?void 0:p.date),1)):(Ai(),Si("span",V$))])])]))])])],64)):(Ai(),Si(gi,{key:1},[Mi("h4",z$,fe(e.getLabel("noCommentsTitle")),1),Mi("div",U$,[Mi("p",null,fe(e.getLabel("noCommentsDesc")),1
2)])],64))])]))])])}]]),G$=q$,K$={name:"FrivilligePostsList",components:{GroupPost:G$,FeaturedPostSpotCard:kG},props:{guid:{type:String,required:!0},groupId:{type:String,required:!0},featuredPostSpotCards:{type:Object,required:!1,default:null},isMember:{type:Boolean,required:!0,default:!1},isLoggedIn:{type:Boolean,required:!0,default:!1},skip:{type:Number,required:!0,default:0},take:{type:Number,required:!1,default:8},universId:{type:String,required:!0}},setup:function(e){var t,n,o=Af(),r=Kt(0),a=null!==(t=null===(n=e.featuredPostSpotCards)||void 0===n?void 0:n.length)&&void 0!==t?t:0,i=bl(function(){var t;return xm(null!==(t=o.state.search.results[e.guid])&&void 0!==t?t:[])}),l=bl(function(){var t;return null!==(t=a+o.state.search.scoped_total[e.guid])&&void 0!==t?t:0}),s=bl(function(){return o.state.search.search_inprogress[e.guid]});return Dr(function(){o.commit("search/set_replaceQueryInUrl",!1),o.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:"api/community/posts?groupId="+e.groupId+"&comments=1"}),o.dispatch("search/performSearch",{guid:e.guid,query:"",skip:e.skip,take:e.take})}),{numberOfItems:r,showSpinner:s,posts:i,totalAmount:l,handlePostClick:function(t,n){if(e.isMember)window.location.href=n.url;else{if(!e.isLoggedIn)return void o.dispatch("main/openPageOverlay",{overlayContent:"LoginOverlay",returnTarget:t.currentTarget});if(!e.isMember)return o.commit("main/set_page_overlay_content_data",{isFrivilligContext:!0}),void o.dispatch("main/openPageOverlay",{overlayContent:"ClosedGroupOverlay",returnTarget:t.currentTarget});window.location.href=n.url}},getMorePosts:function(){o.dispatch("search/performMoreSearch",{guid:e.guid})},getLabel:function(e,t){return dA({labelKey:e,labelCollection:"FrivilligePostsList",params:t})}}}},Z$=K$,W$=(0,Hb.A)(Z$,[["render",function(e,t,n,o,r,a){var i,l=qr("featuredPostSpotCard"),s=qr("GroupPost");return Ai(),Si(gi,null,[Mi("article",vW,[Mi("div",yW,[Mi("div",_W,[Mi("div",AW,fe(e.totalAmount)+" "+fe(e.getLabel("numberOfPostsLabel")),1)]),Mi("div",kW,[e.isMember?(Ai(),Si("a",{key:0,class:"kb-button",href:e.getLabel("createPostLink")},[Fi(fe(e.getLabel("createPostLinkText"))+" ",1),t[1]||(t[1]=Mi("span",{class:"kb-button__icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M15.238 1.688c.31-.538.998-.723 1.537-.412l2.598 1.5c.538.31.722.999.411 1.537l-9.936 17.21-.001.002-.453.784-3.586.96-.96-3.585L13.55 4.611 15.5 5.736l-.375.649-1.3-.75L6.6 18.15a1.496 1.496 0 0 1 1.47 1.204 1.496 1.496 0 0 1 1.777.67l9.288-16.086a.375.375 0 0 0-.137-.513l-2.598-1.5a.375.375 0 0 0-.513.138l-.562.974-.65-.375.563-.974Zm-6.04 19.461a.75.75 0 0 0-1.3-.75l-.65-.374a.75.75 0 1 0-1.298-.75l-.298.515.687 2.561 2.561-.686.297-.515Z","clip-rule":"evenodd"})])],-1))],8,xW)):zi("v-if",!0)])]),Mi("ul",wW,[(Ai(!0),Si(gi,null,Yr(e.featuredPostSpotCards,function(e,t){return Ai(),Si("li",{key:t,class:"kb-posts-list__wrapper-element"},[Ni(l,{spotCardData:e},null,8,["spotCardData"])])}),128)),(Ai(!0),Si(gi,null,Yr(e.posts,function(t,n){return Ai(),Si("li",{key:n,class:"kb-posts-list__wrapper-element"},[Ni(s,{result:t,comments:t.comments,isFrivilligContext:!0,handlePostClick:e.handlePostClick},null,8,["result","comments","handlePostClick"])])}),128))]),Mi("div",CW,[Mi("p",EW,fe(e.getLabel("resultOutForTitle",[e.posts.length+e.featuredPostSpotCards.length,e.totalAmount])),1),e.posts.length+e.featuredPostSpotCards.length<e.totalAmount?(Ai(),Si("button",{key:0,onClick:t[0]||(t[0]=function(){return e.getMorePosts&&e.getMorePosts.apply(e,arguments)}),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("getMoreButtonLabel")),1)):zi("v-if",!0)])]),e.showSpinner?(Ai(),Si("div",SW,(i=t[2]||(t[2]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return bW(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return bW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bW(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],64)}]]),$$=W$;var Y$={class:"kb-frivillige-shop-wrong-role-modal"},J$={class:"kb-frivillige-shop-wrong-role-modal__hero"},X$={class:"kb-frivillige-shop-wrong-role-modal__hero__title-wrapper"},Q$={class:"kb-frivillige-shop-wrong-role-modal__hero__title-wrapper__title"},eY={class:"kb-frivillige-shop-wrong-role-modal__description"},tY={class:"kb-frivillige-shop-wrong-role-modal__description-text"},nY={class:"kb-frivillige-shop-wrong-role-modal__body"};const oY={name:"FrivilligeShopWrongRoleModal",setup:function(){var e,t,n=Af();Dr(function(){e=document.querySelector('.kb-button[data-order="first"]'),t=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){e.focus()}},{persistent:!0})});var o=bl(function(){return n.state.main.page_overlay_content_data.rolePageUrl});return{tabTrap:function(n){if("Tab"===n.key&&"first"===n.target.dataset.order)return n.preventDefault(),void t.focus();e.focus()},redirect:function(){window.location.href=o.value},getLabel:function(e){return dA({labelKey:e,labelCollection:"FrivilligeShopWrongRoleModal"})}}}},rY=oY,aY=(0,Hb.A)(rY,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",Y$,[Mi("section",J$,[Mi("div",X$,[Mi("h2",Q$,fe(e.getLabel("title")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-frivillige-shop-wrong-role-modal__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",eY,[Mi("p",tY,fe(e.getLabel("text")),1)])]),t[4]||(t[4]=Mi("div",{class:"kb-frivillige-shop-wrong-role-modal__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",nY,[Mi("p",null,fe(e.getLabel("buttonDescriptionText")),1),Mi("button",{class:"kb-button kb-button--full-color-spot",onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",onClick:t[1]||(t[1]=function(){return e.redirect&&e.redirect.apply(e,arguments)})},[Fi(fe(e.getLabel("buttonLabel"))+" ",1),t[3]||(t[3]=Mi("span",{class:"kb-button__icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24"},[Mi("path",{fill:"#fff","fill-rule":"evenodd",d:"m20.214 3.835-6.055-.3-.05-.999 6.555.325c.275.013.51.248.524.524l.324 6.554-.998-.05-.3-6.054ZM6.758 16.583l10.1-10.1.707.707-10.1 10.1-.707-.707ZM2.75 4.75h-.5v17.5h17.5v-9.781h-1v8.781H3.25V5.75h8.781v-1H2.75Z","clip-rule":"evenodd"})])],-1))],32)])])}]]);function iY(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return lY(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(lY(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,lY(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,lY(d,"constructor",c),lY(c,"constructor",s),s.displayName="GeneratorFunction",lY(c,r,"GeneratorFunction"),lY(d),lY(d,r,"Generator"),lY(d,o,function(){return this}),lY(d,"toString",function(){return"[object Generator]"}),(iY=function(){return{w:a,m:p}})()}function lY(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}lY=function(e,t,n,o){function a(t,n){lY(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},lY(e,t,n,o)}function sY(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const cY={name:"FrivilligGroupHero",props:{isLoggedIn:{type:Boolean,required:!0},loginUrl:{type:String,required:!1},closedGroup:{type:Boolean,required:!1},gruppeKode:{type:String,required:!0}},setup:function(e){var t=Af(),n=function(){var n,o=(n=iY().m(function n(){return iY().w(function(n){for(;;)switch(n.n){case 0:if(e.isLoggedIn){n.n=1;break}return window.location.href=e.loginUrl,n.a(2);case 1:if(e.closedGroup){n.n=3;break}return n.n=2,t.dispatch("frivillige/joinGroup",{gruppeKode:e.gruppeKode});case 2:return window.location.reload(),n.a(2);case 3:t.commit("main/set_page_overlay_content_data",{isFrivilligContext:!0}),t.dispatch("main/openPageOverlay",{overlayContent:"ClosedGroupOverlay"});case 4:return n.a(2)}},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){sY(a,o,r,i,l,"next",e)}function l(e){sY(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return o.apply(this,arguments)}}();return{openCalendarOverlay:function(){t.dispatch("main/openPageOverlay",{overlayContent:"CalendarOverlay"})},openMedlemsOverlay:function(){t.commit("main/set_page_overlay_content_data",{groupId:e.gruppeKode}),t.dispatch("main/openPageOverlay",{overlayContent:"MemberListOverlayFrivillig"})},joinGroup:n}}},uY={name:"FrivilligjobAside",props:{jobId:{type:String,required:!0},redirectAfterDeleteUrl:{type:String,required:!1}},setup:function(e){var t=Af();return{openDeleteOverlay:function(n){if(!e.jobId)return!1;t.commit("main/set_page_overlay_content_data",{frivilligjobId:e.jobId,redirectAfterDeleteUrl:e.redirectAfterDeleteUrl}),t.dispatch("main/openPageOverlay",{overlayContent:"DeleteFrivilligjobOverlay",returnTarget:n.currentTarget})}}}};var dY=["id","href"],pY={class:"kb-frivilligjob-card__job-info"},fY={class:"kb-frivilligjob-card__job-info__data__wrapper"},mY={class:"kb-frivilligjob-card__job-info__data__icon-list"},gY={class:"kb-frivilligjob-card__job-info__data__container"},hY={key:0,class:"kb-frivilligjob-card__job-info__data__container"},bY={class:"kb-frivilligjob-card__texts-wrapper"},vY={class:"kb-frivilligjob-card__job-info__title"},yY=["innerHTML"],_Y={key:0,class:"kb-frivilligjob-card__job-info__tags"},AY={key:1,class:"kb-frivilligjob-card__job-info__tags kb-frivilligjob-card__job-info__tags__skeleton"},kY={class:"kb-frivilligjob-card__result-content-image-container"},xY={class:"kb-frivilligjob-card__result-content-image-type-wrapper"},wY={class:"kb-frivilligjob-card__result-content-image kb-frivilligjob-card__result-content-image--3-2"},CY=["src"];const EY={name:"FrivilligjobCard",props:{result:{type:Object,required:!0}},setup:function(e){var t=Af(),n=Kt([]),o=Kt(!1);return Dr(function(){t.dispatch("frivilligjob/getGruppeemner",e.result.id).then(function(e){n.value=e,o.value=!0})}),{tags:n,hasFetchedGruppeemner:o,getLabel:function(e,t){return dA({labelKey:e,labelCollection:"FrivilligjobCard",params:t})}}}},SY=EY,TY=(0,Hb.A)(SY,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{id:e.result.id,href:e.result.detailsPageUrl,class:"kb-frivilligjob-card"},[Mi("div",pY,[Mi("div",fY,[Mi("div",mY,[Mi("div",gY,[t[0]||(t[0]=Mi("div",{class:"kb-frivilligjob-card__job-info__data__icon-wrapper"},[Mi("svg",{viewBox:"0 0 10 15",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 5C0.75 2.65279 2.65279 0.75 5 0.75C7.34721 0.75 9.25 2.65279 9.25 5C9.25 6.94234 8.13878 9.10096 7.00812 10.787L6.14901 10.1493L5.85099 10.5507L7.12762 11.4984L7.27448 11.2847C8.4599 9.56044 9.75 7.18962 9.75 5C9.75 2.37665 7.62335 0.25 5 0.25C2.37665 0.25 0.25 2.37665 0.25 5C0.25 7.07894 1.41271 9.31976 2.54199 11.0137C3.11055 11.8665 3.67867 12.5924 4.10458 13.1051C4.31764 13.3615 4.49541 13.565 4.62023 13.7047C4.68264 13.7745 4.73184 13.8284 4.76562 13.8651C4.78251 13.8834 4.79554 13.8974 4.80445 13.907L4.81468 13.9179L4.81741 13.9208L4.81839 13.9218L5 14.1135L5.18305 13.9203L5.18703 13.9161L5.20201 13.9C5.21507 13.886 5.23419 13.8654 5.25885 13.8385C5.30818 13.7846 5.37973 13.7054 5.46951 13.6035C5.64904 13.3996 5.90163 13.1044 6.19525 12.7372L5.80475 12.4249C5.51675 12.7851 5.26934 13.0743 5.09428 13.273C5.05999 13.312 5.02848 13.3474 5 13.3793L4.99305 13.3715C4.87178 13.2358 4.69798 13.0369 4.48917 12.7856C4.07133 12.2826 3.51445 11.571 2.95801 10.7363C1.83729 9.05524 0.75 6.92106 0.75 5ZM5 13.75L4.81839 13.9218C4.81839 13.9218 4.81851 13.9219 5 13.75Z",fill:"#3C3C3C"}),Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.75C3.20507 1.75 1.75 3.20507 1.75 5C1.75 6.79493 3.20507 8.25 5 8.25C6.79493 8.25 8.25 6.79493 8.25 5C8.25 3.20507 6.79493 1.75 5 1.75ZM2.25 5C2.25 3.48122 3.48122 2.25 5 2.25C6.51878 2.25 7.75 3.48122 7.75 5C7.75 6.51878 6.51878 7.75 5 7.75C3.48122 7.75 2.25 6.51878 2.25 5Z",fill:"#3C3C3C"})])],-1)),Mi("p",null,fe(e.result.city),1)]),e.result.timeConsumption?(Ai(),Si("div",hY,[t[1]||(t[1]=Mi("div",{class:"kb-frivilligjob-card__job-info__data__icon-wrapper"},[Mi("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 2H2.5V3H1.5H1V4.5H1.5V3.5H2.5V4.5H3V3.5H6V4.5H6.5V3.5H9.5V4.5H10V3.5H13V4.5H13.5V3.5H14.5V6H1.5H1V6.5V13V13.5H15V13V6.5V6V3H14.5H13.5V2H13V3H10V2H9.5V3H6.5V2H6V3H3V2ZM14.5 13V6.5H1.5L1.5 13H14.5Z",fill:"#3C3C3C"})])],-1)),Mi("p",null,fe(e.result.timeConsumption),1)])):zi("v-if",!0)]),Mi("div",bY,[Mi("h3",vY,fe(e.result.title),
21),Mi("p",{class:"kb-frivilligjob-card__job-info__description",innerHTML:e.result.aboutJob},null,8,yY)]),e.tags&&e.hasFetchedGruppeemner?(Ai(),Si("div",_Y,[(Ai(!0),Si(gi,null,Yr(e.tags,function(e,t){return Ai(),Si("div",{key:t},fe(e.name),1)}),128))])):(Ai(),Si("div",AY))]),Mi("div",kY,[Mi("div",xY,[Mi("div",wY,[e.result.imageUrl?(Ai(),Si("img",{key:0,src:e.result.imageUrl,alt:""},null,8,CY)):zi("v-if",!0)])])])])],8,dY)}]]);function IY(e){var t=Array.isArray(window.__onScrollCallbacks)?window.__onScrollCallbacks:[];t.push(e),window.__onScrollCallbacks=t,window.onscroll=function(){t.forEach(function(e){return e()})}}function BY(){for(var e=[],t=1;t<=201;t++){var n=t/201;e.push(n)}return e}function OY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var LY={class:"kb-fundraise-form__title"},DY={class:"kb-fundraise-form__header"},MY={class:"kb-fundraise-form__donation-info"},NY={class:"kb-fundraise-form__donation-title"},PY={class:"kb-fundraise-form__radio"},RY={class:"kb-fundraise-form__radio__input"},FY={class:"kb-fundraise-form__radio__input"},VY={class:"kb-fundraise-form__radio"},zY={class:"kb-fundraise-form__radio__input"},UY={class:"kb-fundraise-form__radio__input"},jY={key:0,class:"kb-fundraise-form__form-wrapper kb-fundraise-form__form-wrapper--insert"},HY={key:1,class:"kb-fundraise-form__form-wrapper"},qY={key:2,class:"kb-fundraise-form__form-wrapper"},GY={key:5,class:"kb-sign-up-form__kb-form__checkbox-container"},KY={for:"taxDeductible",class:"kb-sign-up-form__kb-form__radio-label"},ZY={key:6,class:"kb-fundraise-form__form-wrapper kb-fundraise-form__form-wrapper--insert"},WY={key:7,class:"kb-fundraise-form__form-wrapper kb-fundraise-form__form-wrapper--insert"},$Y={class:"kb-fundraise-form__payment-section"},YY={class:"kb-fundraise-form__header"},JY={class:"kb-fundraise-form__header--span-required"},XY={class:"kb-fundraise-form__payment-option"},QY={class:"kb-fundraise-form__payment-option"},eJ={key:0,class:"kb-forms Form__Element__ValidationError"},tJ={class:"kb-fundraise-form__bottom-button-wrapper"},nJ=["href"],oJ={key:0,class:"kb-spinner-overlay"};function rJ(e){var t=document.createElement("div");return t.innerHTML=e,(t.textContent||t.innerText||"").trim()}var aJ={key:0,class:"kb-donation-amount-picker__donation-input"},iJ=["id","value"],lJ=["for"],sJ={class:"kb-donation-amount-picker__custom-donation"},cJ={key:1,class:"kb-donation-amount-picker__custom-donation-input-wrapper"},uJ={class:"Form__Element FormTextbox"},dJ={key:0,id:"customDonationAmountFormatError",class:"kb-forms Form__Element__ValidationError"},pJ={key:1,id:"customDonationAmountError",class:"kb-forms Form__Element__ValidationError"},fJ={key:1,class:"kb-forms Form__Element__ValidationError"};const mJ=Vj,gJ=(0,Hb.A)(mJ,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-donation-amount-picker","kb-donation-amount-picker--".concat(e.type),{"kb-donation-amount-picker--custom-amount-only":e.customAmountOnly}])},[e.customAmountOnly?zi("v-if",!0):(Ai(),Si("div",aJ,[(Ai(!0),Si(gi,null,Yr(e.donationAmounts,function(n){return Ai(),Si(gi,{key:n},[io(Mi("input",{id:"donation-amount-".concat(n),type:"radio",name:"donation-amount",autocomplete:"off",value:n,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.selectedAmount=t}),onChange:t[1]||(t[1]=function(){return e.onAmountChange&&e.onAmountChange.apply(e,arguments)})},null,40,iJ),[[Js,e.selectedAmount]]),Mi("label",{for:"donation-amount-".concat(n)},fe(n)+" kr.",9,lJ)],64)}),128))])),Mi("div",sJ,[e.customAmountOnly?zi("v-if",!0):(Ai(),Si("button",{key:0,id:"customdonationbutton",class:"kb-donation-amount-picker__custom-donation-button",type:"button",onClick:t[2]||(t[2]=function(){return e.toggleCustomDonation&&e.toggleCustomDonation.apply(e,arguments)})},fe(e.customDonationButtonLabel),1)),e.customAmountOnly||e.customDonation?(Ai(),Si("div",cJ,[Mi("div",uJ,[io(Mi("input",{"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.customDonationAmountInput=t}),"aria-labelledby":"otherAmountUnit customDonationAmountFormatError customDonationAmountError",ref:"valueinputfield",autocomplete:"off",type:"text",inputmode:"decimal",class:"FormTextbox__Input",placeholder:"",onBlur:t[4]||(t[4]=function(){return e.validateCustomDonationOnBlur&&e.validateCustomDonationOnBlur.apply(e,arguments)})},null,544),[[Ws,e.customDonationAmountInput]]),Mi("span",{id:"otherAmountUnit",class:"FormTextbox__Unit",style:G({top:"stafet"===e.type?"60%":"44%"})},"kr.",4)]),e.customDonationAmountTouched&&!e.customDonationAmountFormatIsValid?(Ai(),Si("p",dJ,fe(e.validationCustomDonationFormatLabel),
21)):zi("v-if",!0),e.customDonationAmountFormatIsValid&&!e.customDonationAmountMinIsValid?(Ai(),Si("p",pJ,fe(e.validationCustomDonationAmountLabel),1)):zi("v-if",!0)])):zi("v-if",!0)]),e.displayInputError&&e.errorMessage?(Ai(),Si("span",fJ,fe(e.errorMessage),1)):zi("v-if",!0)],2)}]]),hJ={name:"FundraiseForm",components:{FormInputTextField:mE,FormInputRichText:_K,TooltipComponent:yy,FormAddressField:tS,DonationAmountPicker:gJ},props:{fundraisingCampaignId:{type:String,required:!0},cancelUrl:{type:String,required:!1},isMindegave:{type:Boolean,required:!1},draft:{type:Object,required:!1},showUnsavedChangesWarning:{type:Boolean,required:!1},showPersonalInformationInput:{type:Boolean,required:!1},firstName:{type:String,required:!1},lastName:{type:String,required:!1},email:{type:String,required:!1},phone:{type:String,required:!1}},setup:function(e){var t,n,o,r,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,_,A,k,x,w,C,E,S,T,I=Af(),B=bl(function(){return I.state.fundraising.donation_settings}),O=bl(function(){return I.state.main.page_id}),L=bl(function(){return I.state.fundraising.isSubmitting}),D=bl(function(){return e.showPersonalInformationInput}),M=e.showUnsavedChangesWarning,N=function(e){I.state.fundraising.isEditing&&M&&(e.preventDefault(),e.returnValue="")};M?window.addEventListener("beforeunload",N):window.removeEventListener("beforeunload",N);var P=Kt(!0),R=Kt(null!==(t=null===(n=e.draft)||void 0===n?void 0:n.contactFirstName)&&void 0!==t?t:""),F=Kt(null!==(o=null===(r=e.draft)||void 0===r?void 0:r.contactLastName)&&void 0!==o?o:""),V=Kt(null!==(a=null===(i=e.draft)||void 0===i?void 0:i.mobilePhone)&&void 0!==a?a:""),z=Kt(null!==(l=null===(s=e.draft)||void 0===s?void 0:s.email)&&void 0!==l?l:""),U=bl(function(){return e.firstName?rE(e.firstName):!(!P.value||R.value)||rE(R.value)}),j=bl(function(){return e.lastName?rE(e.lastName):!(!P.value||F.value)||rE(F.value)}),H=bl(function(){return e.phone?oE(e.phone):!!P.value||oE(V.value)}),q=bl(function(){return e.email?nE(e.email):!!P.value||nE(z.value)}),G=Kt(null!==(c=null===(u=e.draft)||void 0===u?void 0:u.cprNo)&&void 0!==c?c:""),K=bl(function(){return!!P.value||eK(G.value)}),Z=Kt(null!==(d=null===(p=e.draft)||void 0===p?void 0:p.cvrNo)&&void 0!==d?d:""),W=bl(function(){return!!P.value||Z.value.length>2}),$=Kt(null!==(f=null===(m=e.draft)||void 0===m?void 0:m.addressLine1)&&void 0!==f?f:""),Y=bl(function(){return!!P.value||$.value.length>2&&aE($.value)}),J=Kt(null!==(g=null===(h=e.draft)||void 0===h?void 0:h.postalCode)&&void 0!==g?g:""),X=bl(function(){return!!P.value||4===J.value.length&&aE($.value)}),Q=Kt(null!==(b=null===(v=e.draft)||void 0===v?void 0:v.city)&&void 0!==b?b:""),ee=bl(function(){return!!P.value||Q.value.length>0&&aE($.value)}),te=Kt(null!==(y=null===(_=e.draft)||void 0===_?void 0:_.paymentMethod)&&void 0!==y?y:""),ne=bl(function(){return!!P.value||!!te.value}),oe=Kt(null!==(A=e.draft)&&void 0!==A&&A.isAnonymous?"1":"0"),re=bl(function(){return"1"===oe.value}),ae=Kt(0==(null===(k=e.draft)||void 0===k?void 0:k.customerType)?"Company":"Private"),ie=bl(function(){return"Private"===ae.value}),le=bl(function(){return"Company"===ae.value}),se=Kt(null!==(x=null===(w=e.draft)||void 0===w?void 0:w.companyName)&&void 0!==x?x:""),ce=bl(function(){return!(!P.value||se.value)||aE(se.value)}),ue=Kt(null!==(C=null===(E=e.draft)||void 0===E?void 0:E.comments)&&void 0!==C?C:""),de=bl(function(){var e=rJ(ue.value);return!(!P.value||ue.value)||!ue.value||!!e}),pe=Kt(null!==(S=null===(T=e.draft)||void 0===T?void 0:T.isTaxDeductible)&&void 0!==S&&S),fe=Kt(""),me=bl(function(){return!!P.value||fe.value}),ge=bl(function(){return le.value||e.isMindegave}),he=bl(function(){return ie.value&&pe.value}),be=bl(function(){return le.value});Dr(function(){var t,n,o,r,a,i;null!==(t=e.draft)&&void 0!==t&&t.totalPrice?B.value.presets.find(function(t){var n;return t==(null===(n=e.draft)||void 0===n?void 0:n.totalPrice)})?fe.value=null===(n=e.draft)||void 0===n?void 0:n.totalPrice:("number"==typeof(null===(o=e.draft)||void 0===o?void 0:o.totalPrice)?customDonationAmountInput.value=Number(e.draft.totalPrice).toLocaleStr
2ing("da-DK",{maximumFractionDigits:2}):"string"==typeof(null===(r=e.draft)||void 0===r?void 0:r.totalPrice)?customDonationAmountInput.value=e.draft.totalPrice:customDonationAmountInput.value="",customDonation.value=!0):fe.value=null!==(a=null===(i=e.draft)||void 0===i?void 0:i.totalPrice)&&void 0!==a?a:B.value.presets[B.value.defaultPreset]});var ve=bl(function(){return ie.value&&pe.value}),ye=bl(function(){return le.value||e.isMindegave});return{getLabel:function(e){return I.getters["labels/getLabel"]({labelCollection:"fundraiseForm",labelKey:e})},donationSettings:B,companyNameInput:se,firstNameInput:R,lastNameInput:F,phoneInput:V,emailInput:z,addressLineInput:$,postalCodeInput:J,cityInput:Q,cprNumberInput:G,cvrNumberInput:Z,paymentMethodInput:te,anonymousDonationInput:oe,isAnonymous:re,commentsInput:ue,taxDeductibleInput:pe,companyNameInputFilled:ce,firstNameInputFilled:U,lastNameInputFilled:j,phoneInputFilled:H,emailInputFilled:q,addressLineInputFilled:Y,postalCodeInputFilled:X,cityInputFilled:ee,cprNumberInputFilled:K,cvrNumberInputFilled:W,paymentMethodInputFilled:ne,donationAmountInput:fe,donationAmountInputFilled:me,setDonationAmountFromSelector:function(e){fe.value=null!=e?e:""},commentsInputFilled:de,cancelUrl:e.cancelUrl,onSubmit:function(){if(P.value=!1,t=Y.value&&X.value&&ee.value,n=!!fe.value,o=ie.value||ce.value,r=e.firstName?rE(e.firstName):U.value,a=e.lastName?rE(e.lastName):j.value,i=e.phone?oE(e.phone):H.value,l=e.email?nE(e.email):q.value,s=de.value,c=!he.value||K.value,u=!be.value||W.value,d=!ge.value||t,p=ne.value,f=[],n||f.push("donationAmount"),o||f.push("companyName"),r||f.push("firstName"),a||f.push("lastName"),i||f.push("phone"),l||f.push("email"),s||f.push("comments"),c||f.push("cpr"),u||f.push("cvr"),d||f.push("address"),p||f.push("paymentMethod"),f.length>0&&(console.log("Invalid fields:",f),1))return pN("validation-error"),!1;var t,n,o,r,a,i,l,s,c,u,d,p,f,m={pageId:O.value,paymentMethod:te.value,totalPrice:fe.value,addressLine1:ge.value?$.value:null,postalCode:ge.value?J.value:null,city:ge.value?Q.value:null,mobilePhone:e.phone?e.phone:D?V.value:null,email:e.email?e.email:D?z.value:null,contactFirstName:e.firstName?e.firstName:D?R.value:null,contactLastName:e.lastName?e.lastName:D?F.value:null,cprNo:he.value?G.value:null,cvrNo:be.value?Z.value:null,companyName:se.value,comments:rJ(ue.value),isTaxDeductible:pe.value,isAnonymous:re.value,customerType:ae.value,referrer:document.referrer};I.dispatch("fundraising/submitPersonalDonation2",{fundraisingCampaignId:e.fundraisingCampaignId,payload:m}),console.log("donationPayload",m)},showCpr:ve,isSubmitting:L,customerTypeInput:ae,isPrivate:ie,isCompany:le,showAddress:ye,showPersonalInformationInputValue:D}}},bJ=hJ,vJ=(0,Hb.A)(bJ,[["render",function(e,t,n,o,r,a){var i,l,s=qr("DonationAmountPicker"),c=qr("FormInputTextField"),u=qr("FormAddressField"),d=qr("FormInputRichText"),p=qr("TooltipComponent");return Ai(),Si("article",{class:Y(["kb-fundraise-form",{"kb-fundraise-form--submitting":e.isSubmitting}])},[Mi("h2",LY,fe(e.getLabel("donationAmountTitle")),1),Mi("p",DY,fe(e.getLabel("donationAmountText")),1),Ni(s,{donationAmounts:e.donationSettings.presets,minimumAmount:null!==(i=e.donationSettings.minimumAmount)&&void 0!==i?i:1,onAmountChangeCallback:e.setDonationAmountFromSelector,initialValue:e.donationAmountInput,customDonationButtonLabel:e.getLabel("customDonationAmountTitle"),validationCustomDonationFormatLabel:e.getLabel("validationCustomDonationFormat"),validationCustomDonationAmountLabel:e.getLabel("validationCustomDonationAmount")},null,8,["donationAmounts","minimumAmount","onAmountChangeCallback","initialValue","customDonationButtonLabel","validationCustomDonationFormatLabel","validationCustomDonationAmountLabel"]),Mi("section",MY,[Mi("p",NY,fe(e.getLabel("informationText")),1),Mi("div",PY,[Mi("label",RY,[io(Mi("input",{type:"radio",name:"__field_5897",value:"0","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.anonymousDonationInput=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":""},null,512),[[Js,e.anonymousDonationInput]]),Fi(" "+fe(e.getLabel("namedDonationTypeText")),1)]),Mi("label",FY,[io(Mi("input",{type:"radio",name:"__field_5897",value:"1","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.anonymousDonationInput=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":""},null,512),[[Js,e.anonymousDonationInput]]),Fi(" "+fe(e.getLabel("anonymousDonationTypeText")),1)])]),Mi("div",VY,[Mi("label",zY,[io(Mi("input",{type:"radio",name:"__field_5898",value:"Private","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.customerTypeInput=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":""},null,512),[[Js,e.customerTypeInput]]),Fi(" "+fe(e.getLabel("privateCustomerText")),1)]),Mi("label",UY,[io(Mi("input",{type:"radio",name:"__field_5898",value:"Company","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.customerTypeInput=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":""},null,512),[[Js,e.customerTypeInput]]),Fi(" "+fe(e.getLabel("companyCustomerText")),1)])]),e.isCompany?(Ai(),Si("div",jY,[Ni(c,{modelValue:e.companyNameInput,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.companyNameInput=t}
2),fieldName:"companyName",label:e.getLabel("companyNameLabel"),isValidationError:!e.companyNameInputFilled,errorMessageLabel:e.getLabel("validationCompanyName")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])):zi("v-if",!0),e.showPersonalInformationInput?(Ai(),Si("div",HY,[Ni(c,{modelValue:e.firstNameInput,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.firstNameInput=t}),fieldName:"firstName",autocomplete:"given-name",isRequired:"",label:e.getLabel("firstNameLabel"),isValidationError:!e.firstNameInputFilled,errorMessageLabel:e.getLabel("validationFirstName")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(c,{modelValue:e.lastNameInput,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.lastNameInput=t}),fieldName:"lastName",autocomplete:"family-name",isRequired:"",label:e.getLabel("lastNameLabel"),isValidationError:!e.lastNameInputFilled,errorMessageLabel:e.getLabel("validationLastName")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])):zi("v-if",!0),e.showPersonalInformationInput?(Ai(),Si("div",qY,[Ni(c,{modelValue:e.emailInput,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.emailInput=t}),fieldName:"email",autocomplete:"email",isRequired:"",label:e.getLabel("emailLabel"),isValidationError:!e.emailInputFilled,errorMessageLabel:e.getLabel("validationEmail")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(c,{modelValue:e.phoneInput,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.phoneInput=t}),fieldName:"phone",autcomplete:"tel",label:e.getLabel("phoneLabel"),isRequired:"",isValidationError:!e.phoneInputFilled,errorMessageLabel:e.getLabel("validationPhone")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])):zi("v-if",!0),e.showAddress?(Ai(),Ti(u,{key:3,fieldName:"addressFields","address-line-value":e.addressLineInput,"onUpdate:addressLineValue":t[9]||(t[9]=function(t){return e.addressLineInput=t}),isRequired:"","zip-code-value":e.postalCodeInput,"onUpdate:zipCodeValue":t[10]||(t[10]=function(t){return e.postalCodeInput=t}),"city-value":e.cityInput,"onUpdate:cityValue":t[11]||(t[11]=function(t){return e.cityInput=t}),addressLabel:e.getLabel("addressLineLabel"),zipCodeLabel:e.getLabel("postalCodeLabel"),cityLabel:e.getLabel("cityLabel"),isValidationError:!e.addressLineInputFilled,errorMessageLabel:e.getLabel("validationAddressLine")},null,8,["address-line-value","zip-code-value","city-value","addressLabel","zipCodeLabel","cityLabel","isValidationError","errorMessageLabel"])):zi("v-if",!0),e.isAnonymous?zi("v-if",!0):(Ai(),Ti(d,{key:4,modelValue:e.commentsInput,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.commentsInput=t}),label:e.getLabel("commentsLabel"),fieldName:"personalGreeting",placeholder:e.getLabel("placeholderGreeting"),errorMessageLabel:e.getLabel("validationComments"),isValidationError:!e.commentsInputFilled},null,8,["modelValue","label","placeholder","errorMessageLabel","isValidationError"])),e.isPrivate?(Ai(),Si("div",GY,[io(Mi("input",{"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.taxDeductibleInput=t}),id:"taxDeductible",type:"checkbox",name:"signup",class:"kb-sign-up-form__kb-form__radio-input"},null,512),[[$s,e.taxDeductibleInput]]),Mi("label",KY,fe(e.getLabel("taxDeductionLabel")),1),Ni(p,{tooltipText:e.getLabel("taxDeductionTooltipLabel")},null,8,["tooltipText"])])):zi("v-if",!0),e.showCpr?(Ai(),Si("div",ZY,[Ni(c,{modelValue:e.cprNumberInput,"onUpdate:modelValue":t[14]||(t[14]=function(t){return e.cprNumberInput=t}),fieldName:"cprNumber",label:e.getLabel("cprLabel"),isRequired:"",isValidationError:!e.cprNumberInputFilled,errorMessageLabel:e.getLabel("validationCpr")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])):zi("v-if",!0),e.isCompany?(Ai(),Si("div",WY,[Ni(c,{modelValue:e.cvrNumberInput,"onUpdate:modelValue":t[15]||(t[15]=function(t){return e.cvrNumberInput=t}),fieldName:"cvrNumber",label:e.getLabel("cvrLabel"),isRequired:"",isValidationError:!e.cvrNumberInputFilled,errorMessageLabel:e.getLabel("validationCvr")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])):zi("v-if",!0)]),Mi("section",$Y,[Mi("p",YY,[Mi("span",JY,fe(e.getLabel("paymentLabel")),1)]),Mi("div",XY,[io(Mi("input",{id:"first-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[16]||(t[16]=function(t){return e.paymentMethodInput=t}),value:"1"},null,512),[[Js,e.paymentMethodInput]]),t[19]||(t[19]=Vi('<label for="first-payment-method">MobilePay <div class="kb-personal-donation-step2a__icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 75 24"><path fill="#5A78FF" d="M9.03 23.993a2.03 2.03 0 0 1-1.875-1.252l-7-16.9A2.027 2.027 0 0 1 1.25 3.191L8.584.155a2.026 2.026 0 0 1 2.648 1.097l7 16.901a2.027 2.027 0 0 1-1.096 2.647l-7.333 3.038a2.016 2.016 0 0 1-.772.155ZM9.36 1.09a.933.933 0 0 0-.358.072L1.669 4.2a.935.935 0 0 0-.506 1.223l7 16.9a.937.937 0 0 0 1.223.507l7.332-3.039a.936.936 0 0 0 .506-1.222l-7-16.9a.937.937 0 0 0-.864-.578Z"></path><path fill="#5A78FF" d="M16.448 14.602c-2.27 0-4.347.439-5.958 1.334V8.718a12.482 12.482 0 0 1 5.958-1.334c2.27 0 4.389.42 5.958 1.336v7.218a12.475 12.475 0 0 0-5.957-1.336Zm11.596.007 1.837-5.806c.02-.08.088-.139.17-.146h.922a.226.226 0 0 1 .18.146l1.43 3.663c.028.073.101.08.126 0l1.419-3.663a.226.226 0 0 1 .18-.146h.922a.191.191 0 0 1 .17.146l1.817 5.806a.14.14 0 0 1-.136.198h-1.096a.16.16 0 0 1-.163-.125l-1.166-3.77c-.017-.074-.1-.074-.125 0l-1.391 3.742a.205.205 0 0 1-.198.153h-.644c-.1 0-.153-.056-.191-.153l-1.42-3.743c-.027-.073-.1-.073-.117 0l-1.194 3.77a.163.163 0 0 1-.17.126h-1.043a.136.136 0 0 1-.119-.198Zm9.52-2.087A2.435 2.435 0 1 1 40 14.908a2.354 2.354 0 0 1-2.435-2.386Zm3.618 0a1.196 1.196 0 1 0-1.183 1.276 1.228 1.228 0 0 0 1.176-1.276h.007Zm3.395 1.91c-.09-.074-.17-.046-.17.08v.118a.17.17 0 0 1-.164.17h-.85a.177.177 0 0 1-.17-.17V8.824a.177.177 0 0 1 .17-.17h.895a.17.17 0 0 1 .163.17v1.656c0 .118.08.153.209.063a1.986 1.986 0 0 1 1.186-.397c1.238 0 2.188 1.044 2.188 2.386a2.282 2.282 0 0 1-2.226 2.386 1.85 1.85 0 0 1-1.231-.487Zm2.226-1.9a1.197 1.197 0 1 0-2.386 0 1.21 1.21 0 0 0 1.186 1.256 1.228 1.228 0 0 0 1.2-1.266v.01Zm1.979-3.454a.696.696 0 1 1 1.391 0 .696.696 0 0 1-1.391 0Zm.062 5.566v-4.21a.17.17 0 0 1 .164-.17h.894a.177.177 0 0 1 .184.17v4.196a.177.177 0 0 1-.17.17h-.908a.17.17 0 0 1-.164-.17v.013Zm2.237-1.378V8.824a.
217.17 0 0 1 .163-.17h.894a.177.177 0 0 1 .17.17v4.47c0 .289.126.48.442.48a.17.17 0 0 1 .17.17v.741a.17.17 0 0 1-.17.164c-1.19 0-1.67-.39-1.67-1.583Zm2.174-.716a2.351 2.351 0 1 1 4.702.017c0 .163-.045.3-.208.3h-3.11c-.08 0-.108.044-.1.117.076.545.564.936 1.112.894.33.005.646-.138.86-.39a.348.348 0 0 1 .288-.145h.831c.146 0 .21.1.153.243a2.383 2.383 0 0 1-4.521-1.043l-.007.007Zm3.3-.418c.063 0 .091-.028.08-.1a1.043 1.043 0 0 0-1.043-.85c-.497 0-.929.341-1.043.825-.018.063 0 .125.073.125h1.934Zm2.154 2.498V8.824a.17.17 0 0 1 .163-.17h2.849c1.3 0 2.188.758 2.188 2.035 0 1.276-1.005 2.062-2.25 2.062h-1.51a.15.15 0 0 0-.164.17v1.709a.177.177 0 0 1-.17.17h-.94a.17.17 0 0 1-.166-.17Zm2.95-2.93a.98.98 0 0 0 .949-1.004.928.928 0 0 0-.953-.957h-1.52c-.108 0-.153.056-.153.164v1.645c0 .108.045.163.153.163l1.523-.01Zm2.688.822a2.3 2.3 0 0 1 2.243-2.386c.444.002.873.167 1.204.462.08.073.17.063.17-.045v-.118c0-.09.073-.164.164-.164h.849a.177.177 0 0 1 .17.17v2.985c0 .226.08.327.236.348a.157.157 0 0 1 .154.146v.786a.153.153 0 0 1-.154.153c-.598 0-.95-.17-1.147-.515-.056-.09-.119-.107-.21-.017-.381.393-.908.612-1.456.605a2.292 2.292 0 0 1-2.223-2.41Zm3.617 0a1.193 1.193 0 1 0-2.379 0 1.193 1.193 0 1 0 2.38 0Zm1.993 3.871v-.74a.17.17 0 0 1 .17-.164 1.27 1.27 0 0 0 1.302-.87.501.501 0 0 0-.035-.348l-1.663-3.763a.163.163 0 0 1 .146-.244h.894c.09 0 .146.073.181.164l1.044 2.407c.073.191.19.18.27 0l.996-2.414c.034-.09.08-.146.17-.146h.86a.157.157 0 0 1 .152.216l-1.711 4.048c-.623 1.475-1.283 2.025-2.605 2.025a.177.177 0 0 1-.17-.17Z"></path></svg></div></label>',1))]),Mi("div",QY,[io(Mi("input",{id:"second-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[17]||(t[17]=function(t){return e.paymentMethodInput=t}),value:"2"},null,512),[[Js,e.paymentMethodInput]]),t[20]||(t[20]=Vi('<label for="second-payment-method">Kreditkort <div class="kb-personal-donation-step2a__icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 330 40"><path fill="#FFF" d="M273 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 273 .5z"></path><path fill="#54B230" d="M308.389 20.111h2.85a1.716 1.716 0 0 1 .311.032l.019.004c.081.018.16.045.235.08l.048.023.047.025.047.027.047.031a.95.95 0 0 1 .141.112c.052.046.099.096.141.151.036.043.068.09.095.139.064.111.111.231.141.356.056.251.039.512-.047.754a1.383 1.383 0 0 1-.141.273.91.91 0 0 1-.095.12 1.187 1.187 0 0 1-.235.207l-.047.03-.047.028-.047.025a1.434 1.434 0 0 1-.236.09l-.047.011-.019.004a1.723 1.723 0 0 1-.264.03l-.047.002h-2.85v-2.554zm3.792-2.89c.052.234.036.478-.047.703a.968.968 0 0 1-.094.191 1.112 1.112 0 0 1-.188.23l-.047.042-.047.037a1.628 1.628 0 0 1-.236.138.663.663 0 0 1-.047.02l-.047.017-.047.015a1.607 1.607 0 0 1-.141.033l-.012.002a1.956 1.956 0 0 1-.271.022h-2.568v-2.357h2.588l.027.001c.063.002.126.007.188.015l.036.005.012.002c.047.01.094.021.141.034l.047.015.047.018c.049.018.096.04.141.066.05.026.097.057.142.091l.047.038.047.041a1.08 1.08 0 0 1 .329.581zM318.022 5h.019v24.205a4.72 4.72 0 0 1-.113 1.04 4.067 4.067 0 0 1-.188.639c-.016.04-.031.081-.048.121a4.827 4.827 0 0 1-.235.499l-.047.084-.047.08-.047.078a11.975 11.975 0 0 1-.189.28l-.047.064-.047.062-.047.06-.047.058-.047.056a9.42 9.42 0 0 1-.189.21l-.047.047-.047.048-.047.045-.047.045-.047.044-.047.042-.048.042-.047.04a.901.901 0 0 1-.047.
204l-.047.038-.047.038-.047.036-.047.036-.047.034a1.384 1.384 0 0 0-.047.034l-.047.033-.048.032-.047.031a1.864 1.864 0 0 1-.094.06l-.047.03-.047.028-.047.028-.047.027-.047.026-.048.026-.047.025-.047.024-.047.024-.047.023-.047.022-.047.022-.047.021-.047.02-.047.02-.048.02a.924.924 0 0 1-.047.019l-.047.018-.047.018-.047.017-.047.016-.047.017-.047.015-.047.015-.048.015-.047.013-.047.014-.047.013-.047.012-.047.012-.047.012-.047.01c-.016.004-.032.008-.047.01l-.047.011-.048.01-.047.008-.047.01-.047.007-.047.008-.047.007-.047.006-.047.007-.047.005-.048.005-.047.005-.047.005a.389.389 0 0 0-.047.004c-.016 0-.031.002-.047.003l-.047.003c-.016 0-.031.002-.047.003l-.047.001-.047.002-.047.001-.048.001h-7.214v-9.868h7.591l.047-.001.047-.001.048-.001.047-.002.047-.002.047-.003.047-.003.047-.004.047-.004.047-.005.047-.005.048-.006.047-.006.047-.007.047-.007.047-.008.047-.008.047-.009.047-.01.047-.01.095-.022.047-.012.047-.012.047-.014.047-.014.047-.014c.032-.01.063-.02.094-.032l.047-.016.048-.018.047-.018.047-.02.047-.02.047-.02.047-.023.047-.022.047-.024c.032-.016.063-.033.094-.051l.048-.027.047-.029.047-.03.047-.03.047-.033c.032-.022.064-.045.094-.07.032-.024.064-.049.094-.076l.048-.041.047-.044.047-.045.047-.05a1.868 1.868 0 0 0 .235-.296c.017-.024.032-.05.047-.075.017-.026.032-.054.048-.082a2.98 2.98 0 0 0 .094-.198 2.12 2.12 0 0 0 .162-.839c0-.235-.039-.469-.115-.692a2.565 2.565 0 0 0-.141-.312l-.048-.08a1.29 1.29 0 0 0-.094-.138 1.766 1.766 0 0 0-.188-.22l-.047-.047-.047-.044-.047-.042a3.056 3.056 0 0 0-.142-.113l-.047-.035a1.913 1.913 0 0 0-.047-.033l-.047-.031-.047-.03-.047-.029-.047-.027a2.88 2.88 0 0 0-.095-.052l-.047-.024a1.62 1.62 0 0 0-.094-.045l-.047-.022-.047-.02-.047-.02-.047-.018-.047-.018-.048-.018a2.59 2.59 0 0 0-.094-.032l-.047-.015-.047-.014-.047-.014-.047-.013-.047-.012-.047-.012a3.254 3.254 0 0 0-.095-.022l-.047-.01a.787.787 0 0 0-.047-.01l-.047-.008-.047-.009-.047-.008-.047-.007-.047-.007-.047-.006-.048-.006-.047-.005-.047-.005-.047-.005-.047-.004-.043-.003-.001-.056.044-.006.047-.008.047-.008.047-.01c.016-.002.032-.006.047-.009l.048-.01.047-.01.047-.013.047-.012.047-.013.047-.014c.048-.013.095-.029.141-.046l.047-.017.048-.018.047-.019.047-.02.047-.02.047-.023a1.722 1.722 0 0 0 .188-.099l.048-.028.047-.029.047-.03.047-.033.047-.034c.032-.023.064-.048.094-.074.05-.039.097-.082.141-.127l.048-.048.047-.05.047-.055a2.175 2.175 0 0 0 .33-.545c.038-.095.069-.193.094-.293.038-.164.057-.332.058-.501 0-.232-.036-.462-.105-.683a1.883 1.883 0 0 0-.377-.66l-.047-.052-.047-.05a5.7 5.7 0 0 0-.142-.129 1.716 1.716 0 0 0-.141-.109l-.047-.033-.047-.031-.047-.03-.047-.028a2.9 2.9 0 0 0-.095-.053l-.047-.025a1.165 1.165 0 0 0-.094-.046l-.047-.021-.047-.02-.047-.02-.047-.018a5.038 5.038 0 0 0-.236-.08l-.047-.015-.047-.013-.047-.012-.047-.012-.047-.011-.048-.01-.047-.01a.787.787 0 0 0-.047-.01l-.047-.009-.047-.008-.047-.008-.047-.007-.047-.007-.047-.006-.048-.005-.047-.005-.047-.005-.047-.004-.047-.004-.047-.003-.047-.003h-.019l-.028-.003-.047-.002-.047-.003-.048-.002-.047-.003-.047-.002-.047-.001-.047-.002h-.047l-.047-.001h-6.932V9.84c-.001-.648.13-1.29.384-1.886l.047-.106.047-.1c.016-.032.031-.064.048-.095.03-.059.061-.118.094-.175a3.19 3.19 0 0 1 .094-.16c.03-.05.061-.098.094-.146l.047-.07.047-.067.047-.064.095-.123.047-.058c.03-.039.061-.076.094-.112l.047-.053.047-.052.047-.05.047-.049.047-.048.095-.091.047-.044a.958.958 0 0 1 .047-.043l.047-.041.047-.041.047-.04.047-.038.047-.038.048-.037.047-.036c.03-.024.062-.047.094-.069l.047-.033.047-.032.047-.032.047-.03.047-.03.048-.03.047-.029.047-.027.047-.028.047-.026.047-.026.047-.025.047-.024.047-.024.047-.023.048-.023.047-.022.047-.021.047-.02.047-.021.047-.02.047-.018.047-.019.047-.018.048-.017.047-.017.047-.016.047-.015.047-.016.047-.014.047-.014.047-.014.047-.013.047-.013.048-.012.047-.011.047-.011.047-.01.047-.01.047-.01.047-.01.047-.008.047-.008.047-.008.048-.007.047-.007.047-.007.047-.005.047-.006.047-.005.047-.004.047-.004.047-.003.048-.003c.015-.001.031-.003.047-.003l.047-.002.047-.002.047-.002h.094l.012-.001h7.148z"></path><path fill="#006CB9" d="M279 21.797V9.84a4.844 4.844 0 0 1 .477-2.09l.047-.094.047-.09.047-.085.047-.082.047-.078.047-.075.047-.072.047-.069.047-.067.047-.064.047-.063.047-.06.
2047-.058.047-.057.047-.055.048-.053.047-.052.047-.05c.03-.034.061-.066.094-.097a1.36 1.36 0 0 1 .094-.092l.047-.043a.63.63 0 0 1 .047-.043l.047-.042.047-.04.047-.04c.03-.027.062-.052.094-.076.03-.026.062-.05.094-.073a.818.818 0 0 1 .047-.035l.047-.034c.03-.023.062-.045.094-.066l.047-.031.047-.03.047-.031.047-.03.047-.028.047-.028.047-.027a.55.55 0 0 1 .047-.026l.047-.026.047-.025.047-.025.047-.024.047-.023.047-.022.047-.022.047-.022.047-.02.047-.02.047-.02.047-.02.047-.018.047-.017.047-.018.047-.017.047-.016.047-.016.048-.015.047-.015.047-.013.047-.014.047-.013.047-.013.047-.012.047-.011.047-.012.047-.01.047-.01.047-.01.047-.01.047-.008.047-.008.047-.008.047-.007.047-.007.047-.006.047-.006.047-.006.047-.005.047-.004.047-.004.047-.004.047-.003c.016 0 .031-.002.047-.003l.047-.002.047-.002.047-.002h.094l.047-.001h7.14v24.205c.001.443-.059.884-.181 1.31a4.75 4.75 0 0 1-.517 1.186l-.047.076a2.943 2.943 0 0 1-.047.072l-.047.07c-.03.045-.061.09-.094.133l-.047.063-.047.061-.047.059-.047.057-.047.056-.047.053-.047.053-.047.05-.047.05-.047.048-.047.047-.047.045-.047.044-.047.044-.047.041-.047.042-.047.04-.047.038-.047.038a1.518 1.518 0 0 0-.047.037l-.047.036-.047.035-.048.035a1.989 1.989 0 0 1-.141.098l-.047.03-.047.031-.047.03-.047.029-.047.027-.047.028-.047.026a1.722 1.722 0 0 1-.094.052l-.047.024a1.661 1.661 0 0 1-.094.048l-.047.023-.047.022-.047.021-.047.021-.047.02-.047.02-.047.02-.047.018-.047.018-.047.018-.047.016-.047.017-.047.016-.047.015-.047.015-.047.014-.047.014-.047.013-.047.013-.047.012-.047.012-.047.011-.047.01-.047.011-.047.01-.047.01-.047.008-.047.008-.047.008-.047.008-.047.007-.047.006-.048.006-.047.006-.094.01-.047.004-.047.004-.047.003-.047.003-.047.002-.047.002-.047.002h-.047l-.047.001H279V23.845l.101.026.047.011.047.012.047.011.047.011.047.01.047.011.047.011.047.01.047.01.047.01.047.01.047.01.047.01.047.01.047.01.047.009.047.009.047.009.047.009.047.009.047.009.047.008.047.009.048.008.047.008.047.008.047.009.047.008.047.007.047.008.047.008.047.007.047.008.047.007.047.007.047.008.047.007.047.006.047.007.047.007.047.007.047.006.047.007.047.006.047.006.047.006.047.006.047.006.047.006.047.006.047.005.047.006.047.005.047.006.047.005.047.005.047.005.047.005.047.005.047.005.047.004.047.005.047.004.047.004.047.005.047.004.047.004.047.004.047.003.048.004.047.004.047.003.047.004.047.003.047.003.047.003.047.003.047.003.047.003.047.003.047.002.047.003.047.002.047.002.047.002.047.002.047.002.047.002.047.002.047.002.047.001.047.001.047.002.047.001.047.001.047.001h.047l.047.002h.094l.047.001h.094l.047.001h.141l.047-.001h.047l.047-.001h.047l.047-.002h.047l.047-.002.047-.001.047-.002.047-.001.048-.002.047-.002.047-.002.047-.002.047-.002.047-.003.047-.002.047-.003.047-.003.047-.003.047-.003.047-.003.047-.004.047-.003.047-.005.047-.004.047-.004.047-.004.047-.005.047-.005.047-.004.047-.006.047-.005.047-.005.047-.006.047-.006.047-.006.047-.006.047-.007.047-.007.047-.007.047-.007.047-.007.047-.008.047-.008.047-.008.047-.008.047-.01.047-.008.047-.009.047-.01.047-.01.047-.009.047-.01.047-.011.047-.01.048-.012.047-.011.047-.012.047-.012.047-.013.047-.012.047-.013.047-.014.047-.013.047-.015.047-.014.047-.015.047-.015.047-.016.047-.016.047-.017.047-.017.047-.017.047-.018.047-.019.047-.019.047-.02.047-.019.047-.02.047-.022.047-.021.047-.023.047-.023.047-.023.047-.024.047-.026.047-.025c.032-.017.063-.035.094-.054.032-.018.063-.037.094-.057l.047-.03.047-.03.047-.032.047-.033.047-.034c.032-.023.064-.047.094-.072.032-.024.064-.049.094-.076l.047-.04.047-.043.047-.043.048-.045.047-.047.047-.05.047-.051.047-.054.047-.056.047-.06.047-.062.047-.066.047-.07.047-.075c.052-.084.099-.17.141-.259.052-.111.099-.224.141-.339a3.62 3.62 0 0 0 .188-.872c.016-.158.023-.319.023-.482v-5.617h-4.161l-.036 5.617c.001.258-.035.514-.105.762a2.311 2.311 0 0 1-.282.609c-.043.066-.09.128-.141.188l-.047.053-.047.05-.047.048-.047.044-.047.042-.047.04-.047.036-.047.035-.047.034-.047.031-.047.03-.047.028-.047.027-.047.025a2.696 2.696 0 0 1-.189.088l-.047.02a1.387 1.387 0 0 1-.141.05 1.643 1.643 0 0 1-.188.056l-.047.011a3.091 3.091 0 0 1-.235.047l-.047.007-.047.006-.047.006-.047.005-.047.005-.047.004-.094.006-.047.002-.047.001-.047.002h-.141l-.047-.001-.047-.001-.047-.001-.047-.002-.047-.002-.047-.002-.047-.002-.047-.003-.047-.003-.047-.003-.047-.004-.047-.004-.047-.004-.047-.004-.047-.005-.047-.005-.048-.006-.047-.005-.047-.006-.047-.006-.047-.007-.047-.007-.047-.006-.047-.008-.047-.007-.047-.008-.047-.008-.047-.009-.047-.008-.047-.01-.047-.009-.047-.009-.047-.01-.047-.01-.047-.01-.047-.01-.047-.011-.047-.011-.047-.011-.047-.012-.047-.012-.047-.012-.047-.012-.047-.013-.047-.013-.047-.013-.047-.013-.047-.014-.047-.013-.047-.014-.047-.015-.047-.014-.047-.015-.047-.015-.047-.015-.047-.016-.047-.016-.047-.015-.047-.017-.047-.016-.047-.017-.047-.017-.048-.017-.047-.017-.047-.018-.047-.017-.047-.018-.047-.019-.047-.018-.047-.019-.047-.019-.047-.019-.047-.02-.047-.019-.047-.02-.047-.02-.047-.02-.047-.02-.047-.02-.047-.022-.047-.02-.047-.022-.047-.021-.047-.022-.047-.022-.047-.022-.101-.048z"></path><path fill="#E10238" d="M292.603 16.096a4.048 4.048 0 0 0-.101.083V9.841a4.834 4.834 0 0 1 .806-2.665l.047-.07.047-.067.047-.064.047-.062.047-.06.
2047-.059.047-.057.047-.055.047-.053.047-.052.047-.05.047-.049.047-.048.047-.046.047-.045.047-.044.047-.043.047-.041.047-.041.047-.04.048-.038c.03-.026.062-.051.094-.075.03-.024.062-.048.094-.07.03-.024.062-.047.094-.068.031-.022.062-.044.094-.064.031-.021.062-.041.094-.06l.047-.03.047-.029c.015-.01.031-.018.047-.027l.047-.028.047-.026.047-.026.047-.025.047-.025.047-.023.047-.024.047-.022.047-.022.047-.022.047-.02.047-.02.047-.02.047-.019.047-.019.047-.017.047-.018.047-.016.047-.017.047-.015.047-.016.047-.014.047-.014.047-.014.047-.013.047-.013.047-.012.047-.011.047-.012.048-.01.047-.01.047-.01.047-.01.047-.008.047-.008.047-.008.047-.007.047-.007.047-.006.047-.006.047-.006.047-.005.047-.004.047-.004.047-.004.047-.003c.016 0 .031-.002.047-.003l.047-.002.047-.002.047-.002h.094l.021-.001h7.167v24.205a4.888 4.888 0 0 1-.275 1.605l-.047.127-.048.117c-.015.036-.03.073-.047.109a3.877 3.877 0 0 1-.235.459c-.03.052-.061.104-.094.154-.03.049-.061.097-.094.144a2.43 2.43 0 0 1-.094.132c-.03.042-.061.084-.094.124-.03.04-.061.079-.094.116a1.238 1.238 0 0 1-.047.055l-.047.054-.047.053-.047.05-.047.05-.047.047-.047.047-.047.046-.047.044c-.016.014-.031.03-.047.043l-.047.042-.047.041-.047.04-.047.04-.047.037-.047.037-.047.036-.047.035-.047.034a1.384 1.384 0 0 0-.047.034l-.047.033-.047.032-.047.03-.047.031-.047.03-.047.028-.048.028a1.755 1.755 0 0 1-.094.054l-.047.026-.047.026-.047.024-.047.024-.047.023-.047.024-.047.021a.991.991 0 0 1-.047.
2022l-.047.02-.047.021-.047.02-.047.02c-.016.005-.031.012-.047.018l-.047.018-.047.018-.047.016-.047.017-.047.016-.047.015-.047.015-.047.014-.047.014-.047.013-.047.013-.047.012-.047.012-.047.011-.047.01-.047.011-.047.01-.047.01-.047.008-.047.008-.047.008-.047.008-.047.007-.047.006-.047.006-.047.006-.048.005-.047.005-.047.004-.047.004-.047.003-.047.003-.047.002-.047.002-.047.002h-.047l-.047.001h-7.201V22.87l.101.083.047.037c.031.025.062.049.094.072l.047.034c.031.023.062.045.094.066l.047.032.047.031.047.03.047.03.047.03.047.028.047.028.047.027.047.026.047.026.047.025.047.025.047.024.047.024.047.023.047.023.047.022.047.021.047.022.047.02.047.02.047.02.047.02.047.02.047.018.047.018.047.018.047.018.047.017.048.017.047.016.047.016.047.016.047.015.047.015.047.015.047.014.047.015.047.014.047.013.047.013.047.014.047.012.047.013.047.012.047.012.047.011.047.012.047.011.047.01.047.012.047.01.047.01.047.01.047.01.047.01.047.008.047.01.047.008.047.009.047.008.047.009.047.008.047.007.047.008.047.008.047.007.047.007.047.007.047.006.047.007.047.006.048.006.047.006.047.006.047.006.047.005.047.005.047.005.047.005.047.005.047.005.047.004.047.004.047.004.047.004.047.004.047.004.047.003.047.004.047.003.047.003.047.003.047.003.047.003.047.003.047.002.047.002.047.002.047.002.047.002.047.002.047.002.047.001.047.002h.047l.047.002.047.001h.047l.047.002h.047l.047.001h.094l.047.001h.283l.047-.002h.094l.047-.002h.047l.047-.002h.047l.047-.002.047-.001.047-.002.047-.001.047-.002.047-.002.047-.002.047-.002.047-.001.023-.001.024-.001.047-.003.047-.002.047-.003.047-.003.047-.003.047-.003.047-.003.047-.003.047-.004.047-.003.047-.004.047-.004.047-.004.047-.005.047-.004.047-.005.047-.004.048-.005.047-.005.047-.005.047-.005.047-.005.047-.006.047-.005.047-.006.047-.005.047-.006.047-.006.047-.006.047-.006.047-.007.047-.006.047-.007.047-.006.047-.007.047-.007.047-.007.047-.007.047-.007.047-.007.047-.007.047-.008.047-.007.047-.008.047-.008.047-.007.047-.008.047-.008.047-.008.047-.009.047-.008.047-.008.047-.009.047-.008.047-.009.047-.009.047-.008.047-.01.047-.008.048-.01.047-.009.047-.009.047-.01.047-.009.047-.01.047-.009.047-.01.047-.01.047-.01.047-.01.047-.01.047-.01.047-.01.047-.01.047-.011.047-.01.047-.012.047-.01.047-.012.047-.01.047-.012v-2.048l-.047.023-.047.023-.047.023-.047.023-.047.022-.047.022-.047.022-.047.022-.047.021-.047.022-.047.02-.047.021-.047.021-.047.02-.047.02-.047.02-.047.02-.047.02-.047.018-.047.019-.047.019-.048.018-.047.018-.047.018-.047.017-.047.018-.047.017-.047.016-.047.017-.047.016-.047.016-.047.016-.047.015-.047.015-.047.015-.047.015-.047.014-.047.014-.047.014-.047.014-.047.013-.047.013-.047.013-.047.012-.047.013-.047.011-.047.012-.047.012-.047.01-.047.012-.047.01-.047.01-.047.01-.047.01-.047.01-.047.01-.047.009-.047.009-.047.008-.047.008-.047.009-.047.007-.047.008-.048.007-.047.007-.047.007-.047.007-.047.006-.047.006-.047.006-.047.005-.047.006-.047.005-.047.005-.047.004-.047.004-.047.004-.047.004-.028.002-.019.002-.047.003-.047.003-.047.002-.047.003-.047.002-.047.002-.047.001-.047.001h-.047l-.047.001h-.141l-.047-.002-.047-.001-.047-.002-.047-.002-.047-.002-.047-.003-.047-.003-.047-.004-.047-.004-.047-.004-.047-.005-.048-.006-.047-.005-.047-.006-.047-.007-.047-.007-.047-.008-.047-.008-.047-.008-.047-.009-.047-.01-.047-.01-.047-.01-.047-.011-.047-.012-.047-.012-.047-.013-.047-.013-.047-.014-.047-.015-.047-.015-.047-.016-.047-.017-.047-.017-.047-.018-.047-.019-.047-.02a1.582 1.582 0 0 1-.094-.042 1.62 1.62 0 0 1-.094-.045l-.047-.024-.047-.024-.047-.027-.047-.026a1.322 1.322 0 0 1-.094-.058l-.047-.03a1.208 1.208 0 0 1-.094-.065l-.047-.034a1.314 1.314 0 0 1-.094-.073l-.047-.039-.048-.041-.047-.043-.047-.044-.047-.046-.047-.05-.047-.051-.047-.055-.047-.057-.047-.06-.047-.064-.047-.068-.047-.073a2.52 2.52 0 0 1-.141-.254 3.182 3.182 0 0 1-.282-.869 4.43 4.43 0 0 1 0-1.523 3.237 3.237 0 0 1 .376-1.046l.047-.078.047-.073.047-.068.047-.064.047-.06.047-.057.047-.054.047-.052.047-.05.047-.046.047-.044.047-.043.048-.041.047-.039c.03-.026.062-.05.094-.073l.047-.034c.03-.023.062-.045.094-.065a1.501 1.501 0 0 1 .141-.088l.047-.027c.031-.018.062-.035.094-.05.046-.025.093-.049.141-.07l.047-.021.047-.02.047-.02.047-.019.047-.018.047-.017.047-.017.047-.016.047-.015.047-.015.047-.014.047-.013c.016-.005.031-.01.047-.013l.047-.012.047-.012.047-.011.047-.01.047-.01.047-.01.047-.01.047-.008.047-.008.047-.007.047-.007.047-.007.047-.006.047-.006.048-.005.047-.005.047-.005.047-.003.047-.004.047-.003.047-.003.047-.003c.015 0 .031 0 .047-.002l.047-.001.047-.002h.047l.047-.001h.188l.047.002.047.001.047.002.047.002.047.002.047.003.047.003.047.003.019.001.028.002.047.004.047.004.047.004.047.005.047.005.047.005.047.005.047.005.047.006.047.006.047.006.047.007.047.006.047.007.048.008.047.007.047.008.047.008.047.008.047.008.047.01.047.008.047.01.047.009.047.01.047.01.047.01.047.01.047.011.047.012.047.011.047.012.047.012.047.012.047.012.047.013.047.013.047.013.047.014.047.014.047.014.047.014.047.015.047.014.047.016.047.015.047.016.047.016.047.016.047.017.047.016.047.017.047.018.047.017.047.018.047.019.048.018.047.018.047.02.047.019.047.02.047.019.047.02.047.02.047.02.047.021.047.021.047.021.047.022.047.022.047.021.047.023.047.022.047.023.047.022.047.024.047.023.047.023V15.2l-.047-.01-.047-.012-.047-.01-.047-.012-.047-.01-.047-.011-.047-.01-.047-.011-.047-.01-.047-.01-.047-.011-.047-.01-.047-.01-.047-.01-.047-.01-.047-.01-.047-.009-.047-.01-.047-.008-.047-.01-.047-.009-.048-.009-.047-.009-.047-.009-.047-.009-.047-.008-.047-.01-.047-.008-.047-.008-.047-.008-.047-.009-.047-.008-.047-.008-.047-.008-.047-.008-.047-.008-.047-.007-.047-.008-.047-.007-.047-.008-.047-.007-.047-.007-.047-.007-.047-.007-.047-.007-.047-.007-.047-.007-.047-.006-.047-.007-.047-.006-.047-.007-.047-.006-.047-.006-.047-.006-.047-.005-.047-.006-.047-.006-.047-.005-.047-.006-.047-.005-.047-.005-.047-.005-.047-.005-.048-.005-.047-.004-.047-.005-.047-.004-.047-.004-.047-.004-.047-.004-.047-.004-.047-.004-.047-.003-.047-.004-.047-.003-.047-.003-.047-.003-.047-.003-.047-.002-.047-.003-.047-.002-.024-.001h-.023l-.047-.003-.047-.002-.047-.002-.047-.001-.047-.002-.047-.002-.047-.001-.047-.001-.047-.002h-.047l-.047-.002h-.047l-.047-.002h-.094l-.047-.002h-.424l-.047.001-.047.001h-.047l-.047.002h-.047l-.047.002-.047.001-.047.002-.047.001-.047.002-.047.002-.047.002-.047.001-.047.003-.047.002-.047.002-.047.003-.047.003-.047.002-.047.003-.047.004-.047.003-.047.003-.047.004-.047.004-.047.003-.047.004-.047.004-.047.005-.047.004-.047.005-.047.005-.047.005-.047.005-.047.005-.047.005-.047.006-.047.006-.047.006-.048.006-.047.006-.047.007-.047.006-.047.007-.047.007-.047.007-.047.008-.047.007-.047.008-.047.008-.047.008-.047.009-.047.008-.047.01-.047.008-.047.01-.047.01-.047.009-.047.01-.047.01-.047.01-.047.011-.047.01-.047.012-.047.012-.047.011-.047.012-.047.012-.047.013-.047.013-.047.013-.047.013-.047.014-.047.013-.047.015-.047.014-.047.015-.047.015-.047.016-.047.015-.047.016-.047.017a.459.459 0 0 0-.048.017c-.015.005-.031.01-.047.017l-.047.017-.047.018-.047.018-.047.02-.047.018-.047.02-.047.02-.047.02-.047.02-.047.022-.047.021-.047.023-.047.022-.047.024-.047.023-.047.024-.047.025-.047.025-.047.026-.047.027-.047.027-.047.028-.047.028a1.845 1.845 0 0 0-.094.059l-.047.03-.047.031-.047.
2032c-.032.021-.063.044-.094.067l-.047.034a1.667 1.667 0 0 0-.094.072l-.047.037z"></path><path fill="none" stroke="#E7E7E4" d="M273 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 273 .5z"></path><path fill="#FFF" d="M5.667.5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4a3.5 3.5 0 0 1 3.5-3.5z"></path><path fill="#FFF" d="M23.179 7.25H39.86c6.77 0 12.26 5.51 12.26 12.308 0 6.8-5.49 12.308-12.26 12.308H23.177c-6.77 0-12.261-5.508-12.261-12.308 0-6.798 5.49-12.308 12.262-12.308z"></path><path fill="none" stroke="#C8C8C8" stroke-width=".5" d="M23.179 7.25H39.86c6.77 0 12.26 5.51 12.26 12.308 0 6.8-5.49 12.308-12.26 12.308H23.177c-6.77 0-12.261-5.508-12.261-12.308 0-6.798 5.49-12.308 12.262-12.308z"></path><path fill="#E2231A" d="m42.776 18.798 5.547 6.622a10.304 10.304 0 0 0 1.823-5.862 10.3 10.3 0 0 0-2.02-6.138l-5.35 5.378zm-15.719-5.937c4.143 0 7.264 1.058 7.585 4.561l4.36-4.562h8.68a10.255 10.255 0 0 0-7.822-3.627H23.179a10.25 10.25 0 0 0-7.824 3.628h11.702zm-6.824 4.416-1.48 4.083h5.969c1.764 0 2.297-.733 2.692-2.145.391-1.396-.59-1.938-1.796-1.938h-5.385zm18.804 8.7-4.61-5.849c-.852 3.988-3.643 5.848-8.875 5.848H15.127c1.887 2.38 4.795 3.908 8.053 3.908h16.68c3.258 0 6.165-1.528 8.051-3.907h-8.872z"></path><path fill="none" stroke="#E7E7E4" d="M5.667.5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4a3.5 3.5 0 0 1 3.5-3.5z"></path><path fill="#FFF" d="M206 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 206 .5z"></path><path fill="#6C6BBD" d="M237.281 28.977h-10.338V10.512h10.338v18.465z"></path><path fill="#EB001B" d="M227.605 19.743c0-3.746 1.765-7.082 4.513-9.232A11.808 11.808 0 0 0 224.815 8C218.29 8 213 13.257 213 19.743c0 6.485 5.29 11.743 11.815 11.743 2.757 0 5.293-.939 7.303-2.511-2.748-2.15-4.513-5.487-4.513-9.232z"></path><path fill="#0099DF" d="M251.225 19.743c0 6.485-5.29 11.743-11.815 11.743-2.757 0-5.293-.939-7.303-2.511 2.749-2.15 4.513-5.487 4.513-9.232 0-3.746-1.764-7.082-4.513-9.232A11.808 11.808 0 0 1 239.41 8c6.525 0 11.815 5.257 11.815 11.743z"></path><path fill="none" stroke="#E7E7E4" d="M206 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 206 .5z"></path><path fill="#FFF" d="M139 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 139 .5z"></path><path fill="#FF5F00" d="M170.281 28.977h-10.338V10.512h10.338v18.465z"></path><path fill="#EB001B" d="M160.605 19.743c0-3.746 1.765-7.082 4.513-9.232A11.808 11.808 0 0 0 157.815 8C151.29 8 146 13.257 146 19.743c0 6.485 5.29 11.743 11.815 11.743 2.757 0 5.293-.939 7.303-2.511-2.748-2.15-4.513-5.487-4.513-9.232z"></path><path fill="#F79E1B" d="M184.225 19.743c0 6.485-5.29 11.743-11.815 11.743-2.757 0-5.293-.939-7.303-2.511 2.749-2.15 4.513-5.487 4.513-9.232 0-3.746-1.764-7.082-4.513-9.232A11.808 11.808 0 0 1 172.41 8c6.525 0 11.815 5.257 11.815 11.743z"></path><path fill="none" stroke="#E7E7E4" d="M139 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 139 .5z"></path><path fill="#FFF" d="M72 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5H72a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 72 .5z"></path><path fill="#193AC3" d="M94.632 27.255h-3.857l2.412-14.001h3.857l-2.412 14zm13.981-13.659c-1.109-.4-2.28-.602-3.459-.596-3.809 0-6.491 1.906-6.507 4.632-.032 2.01 1.92 3.128 3.38 3.798 1.492.685 1.999 1.133 1.999 1.743-.015.938-1.206 1.37-2.316 1.37-1.54 0-2.365-.222-3.619-.744l-.508-.224-.539 3.143c.904.387 2.571.73 4.301.745 4.047 0 6.682-1.877 6.713-4.781.015-1.594-1.015-2.815-3.237-3.813-1.349-.64-2.176-1.073-2.176-1.728.016-.596.699-1.206 2.222-1.206a6.922 6.922 0 0 1 2.873.536l.349.148.524-3.023zm6.904-.342h2.983l3.112 14h-3.571s-.35-1.608-.46-2.1h-4.952l-.81 2.1h-4.047l5.729-12.839c.397-.908 1.096-1.161 2.016-1.161zm-.238 5.123s-1.222 3.113-1.54 3.918h3.206c-.158-.7-.889-4.052-.889-4.052l-.269-1.206c-.114.31-.278.738-.389 1.026-.075.195-.125.326-.119.314zm-41.216-5.123h6.206c.841.03
21.523.283 1.746 1.177l1.348 6.433.413 1.937 3.777-9.547h4.079L85.569 27.24h-4.078l-3.438-12.166c-1.186-.65-2.54-1.174-4.053-1.537l.063-.283z"></path><path fill="none" stroke="#E7E7E4" d="M72 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5H72a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 72 .5z"></path></svg></div></label>',1))]),e.paymentMethodInputFilled?zi("v-if",!0):(Ai(),Si("p",eJ,fe(e.getLabel("validationPaymentMethod")),1))]),Mi("div",tJ,[Mi("a",{href:e.cancelUrl,class:"kb-fundraise-form__bottom-button kb-button"},fe(e.getLabel("cancelButtonText")),9,nJ),Mi("button",{onClick:t[18]||(t[18]=function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)}),class:"kb-fundraise-form__bottom-button submit kb-button kb-button--full-color-spot"},fe(e.getLabel("submitButtonText")),1)]),e.isSubmitting?(Ai(),Si("div",oJ,(l=t[21]||(t[21]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return OY(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return OY(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OY(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)}]]);var yJ={class:"kb-aside kb-aside--fundraising-aside kb-fundraising-aside-vue"},_J={class:"kb-fundraising-aside__content-container"},AJ={class:"kb-fundraising-aside__title"},kJ={class:"kb-fundraising-aside__wrapper"},xJ={key:0,class:"kb-fundraising-aside__item"},wJ={class:"kb-fundraising-aside__item-content"},CJ={class:"kb-fundraising-aside__item-content-text"},EJ={key:1,class:"kb-fundraising-aside__item"},SJ={class:"kb-fundraising-aside__item-content"},TJ={class:"kb-fundraising-aside__item-content-text"},IJ={class:"kb-fundraising-aside__item-content"},BJ={class:"kb-fundraising-aside__item-content-text"},OJ={key:1,class:"kb-fundraising-aside__button-wrapper"},LJ=["href"],DJ={key:0,class:"kb-fundraising-aside__link-wrapper"},MJ=["href"],NJ={key:1,class:"kb-fundraising-aside__link-wrapper"},PJ={class:"kb-fundraising-aside__QR-img"},RJ=["src","alt"];
2const FJ={name:"FundraisingAsideVue",props:{isAuthenticated:{type:Boolean,required:!1},creatorProfile:{type:Object,required:!1},ownsPersonalFundraising:{type:Boolean,required:!1},detailItems:{type:Array,required:!1},loginLogoutButton:{type:Object,required:!1},editFundraising:{type:Object,required:!1},qrImgUrlBase:{type:String,required:!1},qrPrintPageLink:{type:String,required:!1},qrPrintPageLinkTarget:{type:String,required:!1},personalFundraisingGuid:{type:String,required:!0},useQrCode:{type:Boolean,required:!0},addressDetails:{type:Object,required:!1}},setup:function(e){var t=Af();return{openPageOverlay:function(n){t.commit("main/set_page_overlay_content_data",{qrImgUrlBase:null==e?void 0:e.qrImgUrlBase,qrPrintPageLink:"".concat(null==e?void 0:e.qrPrintPageLink,"?id=").concat(null==e?void 0:e.personalFundraisingGuid),qrPrintPageLinkTarget:null==e?void 0:e.qrPrintPageLinkTarget,fundraisingCampaignId:null==e?void 0:e.personalFundraisingGuid}),t.dispatch("main/openPageOverlay",{overlayContent:"FundraisingQrCodeOverlay",returnTarget:n.currentTarget})},getLabel:function(e,n){var o=t.getters["labels/getLabel"]({labelCollection:"FundraisingAsideVue",labelKey:e});return n&&n.forEach(function(e,t){o=o.replace("{".concat(t,"}"),e)}),o}}}},VJ=FJ,zJ=(0,Hb.A)(VJ,[["render",function(e,t,n,o,r,a){var i,l,s,c;return Ai(),Si("aside",yJ,[Mi("div",_J,[(null===(i=e.detailItems)||void 0===i?void 0:i.length)>0||e.creatorProfile?(Ai(),Si(gi,{key:0},[Mi("h2",AJ,fe(e.getLabel("title")),1),Mi("div",kJ,[null!==(l=e.creatorProfile)&&void 0!==l&&l.firstName&&null!==(s=e.creatorProfile)&&void 0!==s&&s.lastName?(Ai(),Si("ul",xJ,[t[1]||(t[1]=Mi("li",{class:"kb-fundraising-aside__item-icon kb-icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M5 4h1v2h6V4h1v2h6V4h1v2h6V4h1v2h2a1 1 0 0 1 1 1v19a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h2V4Zm21 3v2h1V7h2v4H3V7h2v2h1V7h6v2h1V7h6v2h1V7h6Zm3 5v14H3V12h26Z","clip-rule":"evenodd"})])],-1)),Mi("li",wJ,[Mi("h3",null,fe(e.getLabel("creatorProfileLabel")),1),Mi("p",CJ,fe(e.creatorProfile.firstName+" "+e.creatorProfile.lastName),1)])])):zi("v-if",!0),null!==(c=e.addressDetails)&&void 0!==c&&c.postalCode?(Ai(),Si("ul",EJ,[t[2]||(t[2]=Mi("li",{class:"kb-fundraising-aside__item-icon kb-icon"},[Mi("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.5 12C7.5 7.30558 11.3056 3.5 16 3.5C20.6944 3.5 24.5 7.30558 24.5 12C24.5 15.8847 22.2776 20.2019 20.0162 23.5739L18.298 22.2985L17.702 23.1015L20.2552 24.9967L20.549 24.5695C22.9198 21.1209 25.5 16.3792 25.5 12C25.5 6.75329 21.2467 2.5 16 2.5C10.7533 2.5 6.5 6.75329 6.5 12C6.5 16.1579 8.82542 20.6395 11.084 24.0273C12.2211 25.733 13.3573 27.1848 14.2092 28.2101C14.6353 28.7231 14.9908 29.13 15.2405 29.4093C15.3653 29.549 15.4637 29.6569 15.5312 29.7302C15.565 29.7668 15.5911 29.7949 15.6089 29.8139L15.6294 29.8357L15.6348 29.8415L15.6368 29.8436L16 30.227L16.3661 29.8406L16.3741 29.8321L16.404 29.8001C16.4301 29.772 16.4684 29.7308 16.5177 29.6769C16.6164 29.5692 16.7595 29.4109 16.939 29.207C17.2981 28.7993 17.8033 28.2087 18.3905 27.4744L17.6095 26.8498C17.0335 27.5701 16.5387 28.1485 16.1886 28.5461C16.12 28.624 16.057 28.6949 16 28.7585L15.9861 28.743C15.7436 28.4716 15.396 28.0738 14.9783 27.5711C14.1427 26.5652 13.0289 25.142 11.916 23.4727C9.67458 20.1105 7.5 15.8421 7.5 12ZM16 29.5L15.6368 29.8436C15.6368 29.8436 15.637 29.8439 16 29.5Z",fill:"#3C3C3C"}),Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 5.5C12.4101 5.5 9.5 8.41015 9.5 12C9.5 15.5899 12.4101 18.5 16 18.5C19.5899 18.5 22.5 15.5899 22.5 12C22.5 8.41015 19.5899 5.5 16 5.5ZM10.5 12C10.5 8.96243 12.9624 6.5 16 6.5C19.0376 6.5 21.5 8.96243 21.5 12C21.5 15.0376 19.0376 17.5 16 17.5C12.9624 17.5 10.5 15.0376 10.5 12Z",fill:"#3C3C3C"})])],-1)),Mi("li",SJ,[Mi("p",TJ,fe([e.addressDetails.postalCode,e.addressDetails.city].filter(Boolean).join(" ")),1)])])):zi("v-if",!0),(Ai(!0),Si(gi,null,Yr(e.detailItems,function(e,n){return Ai(),Si("ul",{key:n,class:"kb-fundraising-aside__item"},[t[3]||(t[3]=Mi("li",{class:"kb-fundraising-aside__item-icon kb-icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M5 4h1v2h6V4h1v2h6V4h1v2h6V4h1v2h2a1 1 0 0 1 1 1v19a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h2V4Zm21 3v2h1V7h2v4H3V7h2v2h1V7h6v2h1V7h6v2h1V7h6Zm3 5v14H3V12h26Z","clip-rule":"evenodd"}
2)])],-1)),Mi("li",IJ,[Mi("h3",null,fe(e.title),1),Mi("p",BJ,fe(e.description),1)])])}),128))])],64)):zi("v-if",!0),!e.isAuthenticated||e.ownsPersonalFundraising?(Ai(),Si("div",OJ,[Mi("a",{href:e.loginLogoutButton.link,class:"kb-button"},fe(e.isAuthenticated?e.getLabel("logoutButtonText"):e.getLabel("loginButtonText")),9,LJ)])):zi("v-if",!0)]),e.ownsPersonalFundraising?(Ai(),Si("div",DJ,[Mi("a",{href:e.editFundraising.link,class:"kb-fundraising-aside__link-wrapper__link"},[t[4]||(t[4]=Mi("span",{class:"kb-ui-icon kb-ui-icon--ui-chart"},null,-1)),Fi(fe(e.getLabel("editFundraisingText")),1)],8,MJ)])):zi("v-if",!0),e.useQrCode?(Ai(),Si("div",NJ,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.openPageOverlay&&e.openPageOverlay.apply(e,arguments)}),class:"kb-fundraising-aside__link-wrapper__link"},[Mi("div",PJ,[Mi("img",{src:"data:image/png;base64, ".concat(e.qrImgUrlBase),alt:e.getLabel("qrCodeImgAlt")},null,8,RJ)]),Fi(" "+fe(e.getLabel("qrCodeText")),1)])])):zi("v-if",!0)])}]]);var UJ=["href"],jJ={class:"kb-fundraising-card__image-container"},HJ=["src"],qJ={class:"kb-fundraising-card__content"},GJ={class:"kb-fundraising-card__content__title"},KJ={class:"kb-fundraising-card__content__fundraise-container"},ZJ={class:"kb-fundraising-card__content__price"},WJ={key:0,class:"kb-fundraising-card__progress-bar"},$J={key:1,class:"kb-fundraising-card__content__target"},YJ=Object.freeze({Default:"",Mindegave:"Mindegave Visning"});function JJ(e){if(null==e||""===String(e).trim())return YJ.Default;var t=String(e).trim(),n=Object.values(YJ).find(function(e){return e.toLowerCase()===t.toLowerCase()});return null!=n?n:YJ.Default}
2const XJ={name:"FundraisingCard",props:{result:{type:Object,required:!0,default:function(){return{imgUrl:"",name:"",target:0,current:0,hideTarget:!1,url:""}}},displayProperties:{type:Object,required:!1,default:null}},setup:function(e){return{target:bl(function(){return new Intl.NumberFormat("da-DK",{style:"currency",currency:"DKK",maximumFractionDigits:0}).format(e.result.target)}),current:bl(function(){return new Intl.NumberFormat("da-DK",{style:"currency",currency:"DKK",maximumFractionDigits:0}).format(e.result.current)}),progress:bl(function(){var t=100*e.result.current/e.result.target;return Math.min(t,100)}),isMindegaveLayout:bl(function(){var t;return(null===(t=e.displayProperties)||void 0===t?void 0:t.layout)===YJ.Mindegave})}}},QJ=(0,Hb.A)(XJ,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:e.result.url,class:"kb-fundraising-card"},[Mi("section",jJ,[Mi("img",{src:e.result.imgUrl,alt:""},null,8,HJ)]),Mi("section",qJ,[Mi("h3",GJ,fe(e.result.name),1),Mi("div",KJ,[Mi("p",ZJ,fe(e.current),1),e.isMindegaveLayout?zi("v-if",!0):(Ai(),Si("div",WJ,[Mi("div",{class:Y(["kb-fundraising-card__progress-bar__inner",{full:100===e.progress}]),style:G("width: "+e.progress+"%")},null,6)])),e.result.hideTarget?zi("v-if",!0):(Ai(),Si("p",$J," Indsamlingsmål: "+fe(e.target),1))])])],8,UJ)}]]);var eX={class:"kb-fund-raising-counter"},tX={class:"kb-fund-raising-counter__top"},nX={class:"kb-fund-raising-counter__container"},oX={class:"kb-fund-raising-counter__hashtag"},rX={class:"kb-fund-raising-counter__roller-groups"},aX={key:0,class:"kb-fund-raising-counter__separator"},iX=["innerHTML"],lX=["href","title","target"],sX={class:"kb-fund-raising-counter__curve"},cX={class:"kb-fund-raising-counter__bottom"},uX={class:"kb-fund-raising-counter__container--ambassadors kb-fund-raising-counter__ambassadors"},dX={class:"kb-fund-raising-counter__ambassador kb-fund-raising-counter__ambassador--high-raised"},pX=["src"],fX={class:"kb-fund-raising-counter__ambassador kb-fund-raising-counter__ambassador--raised"},mX=["src"],gX={class:"kb-fund-raising-counter__ambassador kb-fund-raising-counter__ambassador--center"},hX=["src"],bX={class:"kb-fund-raising-counter__ambassador kb-fund-raising-counter__ambassador--raised"},vX=["src"],yX={class:"kb-fund-raising-counter__ambassador kb-fund-raising-counter__ambassador--high-raised"},_X=["src"];function AX(e){return AX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AX(e)}function kX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function xX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kX(Object(n),!0).forEach(function(t){wX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wX(e,t,n){return(t=function(e){var t=function(e){if("object"!=AX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=AX(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==AX(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CX={props:{campaignId:String,title:String,description:String,centerImage:{type:Array,default:function(){return[]}},nonCenteredImages:{type:Array,default:function(){return[]}},linkUrl:String,linkText:String,linkTitle:String,linkTarget:{type:String,default:"_self"}},setup:function(e){var t,n=Af(),o=Kt(0),r=function(){n.dispatch("fundraising/GetHighlightedDonations",{fundraisingCampaignId:e.campaignId}).then(function(e){return o.value=Math.floor(e)}).catch(function(e){return console.error("Fetch error:",e)})},a=bl(function(){return(o.value.toString().match(/\d{1,3}(?=(?:\d{3})*$)/g)||[]).map(function(e,t){return 0===t?e:e.padStart(3,"0")})}),i=Kt(window.innerWidth),l=function(){return i.value=window.innerWidth},s=bl(function(){return i.value>800?0:i.value>768?1:2});return Dr(function(){window.addEventListener("resize",l),r(),t=setInterval(r,5e3)}),Rr(function(){clearTimeout(void 0),clearInterval(t),window.removeEventListener("resize",l)}),xX(xX({},e),{}
2,{fundraisingAmount:o,digitGroups:a,width:i,imageKey:s})}};function EX(e){return EX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EX(e)}function SX(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,TX(o.key),o)}}function TX(e){var t=function(e){if("object"!=EX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=EX(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==EX(t)?t:t+""}function IX(e){var t="function"==typeof Map?new Map:void 0;return IX=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(BX())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&OX(r,n.prototype),r}(e,arguments,LX(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),OX(n,e)},IX(e)}function BX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(BX=function(){return!!e})()}function OX(e,t){return OX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OX(e,t)}function LX(e){return LX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LX(e)}function DX(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function MX(e,t){return e.get(PX(e,t))}function NX(e,t,n){return e.set(PX(e,t),n),n}function PX(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function RX(e){return function(e){if(Array.isArray(e))return FX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return FX(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FX(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var VX="â",zX='\n :host { --roll-duration: 1s; }\n .digit {\n width: 1ch;\n overflow: hidden;\n display: inline-flex;\n position: relative;\n }\n .value { color: transparent; position: relative; }\n .scale {\n user-select: none;\n position: absolute;\n left: 0;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: transform var(--roll-duration);\n }\n .scale span:last-child { position: absolute; bottom: -10%; left: 0; }\n [data-value="'.concat(VX,'"] .scale { transform: translateY(10%); }\n [data-value="0"] .scale { transform: translateY(0); }\n [data-value="1"] .scale { transform: translateY(-10%); }\n [data-value="2"] .scale { transform: translateY(-20%); }\n [data-value="3"] .scale { transform: translateY(-30%); }\n [data-value="4"] .scale { transform: translateY(-40%); }\n [data-value="5"] .scale { transform: translateY(-50%); }\n [data-value="6"] .scale { transform: translateY(-60%); }\n [data-value="7"] .scale { transform: translateY(-70%); }\n [data-value="8"] .scale { transform: translateY(-80%); }\n [data-value="9"] .scale { transform: translateY(-90%); }\n [data-value="-"] .scale { transform: translateY(-100%); }
2\n'),UX="<span>0</span><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span><span>7</span>"+"<span>8</span><span>9</span><span>".concat(VX,"</span>");function jX(e,t){return'<span class="digit" data-value="'.concat(e,'" id="digit').concat(t,'">')+'<span class="scale" aria-hidden="true">'.concat(UX,"</span>")+'<span class="value">'.concat(e,"</span>")+"</span>"}var HX=new WeakMap,qX=new WeakMap,GX=new WeakMap,KX=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),DX(e=function(e,t,n){return t=LX(t),function(e,t){if(t&&("object"==EX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,BX()?Reflect.construct(t,n||[],LX(e).constructor):t.apply(e,n))}(this,t),HX,null),DX(e,qX,NaN),DX(e,GX,0);var n=e.attachShadow({mode:"open"});return n.innerHTML="<style>".concat(zX,'</style><span id="wrapper"></span>'),NX(HX,e,n.getElementById("wrapper")),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OX(e,t)}(t,e),n=t,r=[{key:"observedAttributes",get:function(){return["value"]}}],(o=[{key:"value",get:function(){return MX(qX,this)},set:function(e){var t=String(e),n=String(MX(qX,this));(function(e,t,n,o){var r=function(e,t,n){if(0===n)return Array(e.length).fill("0");if(e.length>n)return[].concat(RX(Array(e.length-n).fill(VX)),RX(Array(n).fill("0")));var o=Array(Math.max(0,e.length-t.length)).fill(VX);return[].concat(RX(o),RX(t.split("")))}(t,n,o);e.innerHTML=r.map(jX).join(""),requestAnimationFrame(function(){requestAnimationFrame(function(){t.split("").forEach(function(t,n){var o=e.querySelector("#digit".concat(n));o&&(o.dataset.value=t,o.querySelector(".value").textContent=t)})})})})(MX(HX,this),t,n,MX(GX,this)),NX(qX,this,e),NX(GX,this,t.length)}},{key:"attributeChangedCallback",value:function(e,t,n){"value"===e&&(this.value=n)}}])&&SX(n.prototype,o),r&&SX(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(IX(HTMLElement));function ZX(e){return ZX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZX(e)}function WX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function $X(e,t,n){return(t=function(e){var t=function(e){if("object"!=ZX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZX(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZX(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}customElements.define("layflags-rolling-number",KX);const YX=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WX(Object(n),!0).forEach(function(t){$X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"FundRaisingCounter"},CX),JX=(0,Hb.A)(YX,[["render",function(e,t,n,o,r,a){var i=qr("layflags-rolling-number");return Ai(),Si("article",eX,[Mi("section",tX,[Mi("div",nX,[Mi("h1",oX,fe(e.title),1),Mi("div",rX,[(Ai(!0),Si(gi,null,Yr(e.digitGroups,function(t,n){return Ai(),Si("div",{key:n,class:"kb-fund-raising-counter__roller-group"},[Ni(i,{value:t,class:"kb-fund-raising-counter__roller"},null,8,["value"]),n<e.digitGroups.length-1?(Ai(),Si("span",aX,".")):zi("v-if",!0)])}),128)),t[0]||(t[0]=Mi("span",{class:"kb-fund-raising-counter__roller-currency"},"â kr",-1))]),t[1]||(t[1]=Mi("p",{class:"kb-fund-raising-counter__label"},"Indsamlet",-1)),Mi("p",{class:"kb-fund-raising-counter__description",innerHTML:e.description},null,8,iX),Mi("a",{class:"kb-fund-raising-counter__button",href:e.linkUrl,title:e.linkTitle,target:e.linkTarget},fe(e.linkText),9,lX)])]),Mi("div",sX,[Mi("section",cX,[Mi("div",uX,[Mi("div",dX,[Mi("img",{src:e.nonCenteredImages[0][e.imageKey],class:"kb-fund-raising-counter__image"},null,8,pX)]),Mi("div",fX,[Mi("img",{src:e.nonCenteredImages[1][e.imageKey],class:"kb-fund-raising-counter__image"},null,8,mX)]),Mi("div",gX,[Mi("img",{src:e.centerImage[e.imageKey],class:"kb-fund-raising-counter__image"},null,8,hX)]),Mi("div",bX,[Mi("img",{src:e.nonCenteredImages[2][e.imageKey],class:"kb-fund-raising-counter__image"},null,8,vX)]),Mi("div",yX,[Mi("img",{src:e.nonCenteredImages[3][e.imageKey],class:"kb-fund-raising-counter__image"},null,8,_X)])])])])])}
2]]),XX={name:"FundraisingHero",setup:function(){}};var QX={class:"kb-overlay-styles__content-wrapper"},eQ={class:"kb-overlay-styles kb-fundraising-qr-code-overlay"},tQ={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},nQ={class:"kb-overlay-styles__hero"},oQ={class:"kb-overlay-styles__hero-wrapper"},rQ={class:"kb-overlay-styles__hero-title"},aQ={class:"kb-overlay-styles__hero-curve"},iQ={class:"kb-fundraising-qr-code-overlay__QR-img"},lQ=["src","alt"],sQ={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},cQ={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},uQ={class:"kb-stafet-step__texts-wrapper"},dQ=["innerHTML"],pQ=["href","target"];const fQ={name:"FundraisingQrCodeOverlay",setup:function(){var e=Af();return{getLabel:function(t,n){var o=e.getters["labels/getLabel"]({labelCollection:"FundraisingQrCodeOverlay",labelKey:t});return n&&n.forEach(function(e,t){o=o.replace("{".concat(t,"}"),e)}),o},handleRegret:function(){e.dispatch("main/closePageOverlay")},qrImgUrlBase:bl(function(){return e.state.main.page_overlay_content_data.qrImgUrlBase}),qrPrintPageLink:bl(function(){return e.state.main.page_overlay_content_data.qrPrintPageLink}),qrPrintPageLinkTarget:bl(function(){return e.state.main.page_overlay_content_data.qrPrintPageLinkTarget})}}},mQ=fQ,gQ=(0,Hb.A)(mQ,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",QX,[Mi("article",eQ,[Mi("div",tQ,[Mi("div",nQ,[Mi("div",oQ,[Mi("h2",rQ,fe(e.getLabel("title")),1)])]),Mi("div",aQ,[t[0]||(t[0]=Mi("div",{class:"kb-fundraising-qr-code-overlay__hero-curve-color-wrapper"},[Mi("div",{class:"kb-fundraising-qr-code-overlay__hero-curve-color-filler"}),Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",iQ,[Mi("img",{src:"data:image/png;base64, ".concat(e.qrImgUrlBase),alt:e.getLabel("imgBase64Alt")},null,8,lQ)])]),Mi("div",sQ,[Mi("section",cQ,[Mi("div",uQ,[Mi("p",{class:"kb-stafet-step__texts-description",innerHTML:e.getLabel("description")},null,8,dQ),e.qrPrintPageLink?(Ai(),Si("a",{key:0,class:"kb-link",href:e.qrPrintPageLink,target:e.qrPrintPageLinkTarget},fe(e.getLabel("printQrLinkText")),9,pQ)):zi("v-if",!0)])])])])])])}]]);function hQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var bQ={class:"kb-overlay-styles__content-wrapper"},vQ={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},yQ={class:"kb-overlay-styles__hero"},_Q={class:"kb-overlay-styles__hero-wrapper"},AQ={class:"kb-overlay-styles__hero-title"},kQ={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},xQ={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},wQ={class:"kb-stafet-step__texts-wrapper"},CQ={class:"kb-stafet-step__texts-description"},EQ={class:"kb-stafet-step__texts-warning"},SQ={class:"kb-stafet-flow-actions"},TQ={class:"kb-stafet-flow-actions__buttons-left-wrapper"},IQ={key:0,class:"kb-spinner-overlay"};const BQ={name:"FVLConfirmDeleteProfile",setup:function(){var e,t,n=Af(),o=bl(function(){return n.state.frivillige.is_submitting}),r=bl(function(){return n.state.main.page_overlay_content_data.continueUrl}),a=bl(function(){return n.state.main.page_overlay_content_data.userProfileId});return Dr(function(){e=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),t=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){e.focus()}},{persistent:!0})}),{isSubmitting:o,continueUrl:r,cancelAction:function(){n.dispatch("main/closePageOverlay")},confirmAction:function(){o.value=!0,n.dispatch("frivilligprofil/deleteFrivilligprofil",{pageId:n.state.main.page_id,id:a.value,continueUrl:r.value}),o.value=!1},tabTrap:function(n){n.shiftKey&&"first"===n.target.dataset.order&&(n.preventDefault(),t.focus()),n.shiftKey||"last"!==n.target.dataset.order||(n.preventDefault(),t.focus()),n.shiftKey||n.target.dataset.order||(n.preventDefault(),e.focus())},getLabel:function(e,t){return dA({labelKey:e,labelCollection:"FVLConfirmDeleteProfile",params:t})}}}},OQ=BQ,LQ=(0,Hb.A)(OQ,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",bQ,[Mi("article",{class:Y(["kb-overlay-styles kb-fvl-confirm-delete-profile",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",vQ,[Mi("div",yQ,[Mi("div",_Q,[Mi("h4",AQ,fe(e.getLabel("title")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",kQ,[Mi("section",xQ,[Mi("div",wQ,[Mi("p",CQ,fe(e.getLabel("description")),1),Mi("p",EQ,fe(e.getLabel("warning")),1)]),Mi("nav",SQ,[Mi("div",TQ,[Mi("button",{class:"kb-button kb-button--outline",onClick:t[0]||(t[0]=function(){return e.cancelAction&&e.cancelAction.apply(e,arguments)})},fe(e.getLabel("regretButtonText")),1),Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[1]||(t[1]=function(){return e.confirmAction&&e.confirmAction.apply(e,arguments)})},fe(e.getLabel("submitConfirmDeleteButtonText")),1)])])])])]),e.isSubmitting?(Ai(),Si("div",IQ,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return hQ(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return hQ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hQ(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)]);var i}]]);var DQ=["href"],MQ={class:"kb-gallery-card"},NQ={class:"kb-gallery-card__left"},PQ={class:"kb-gallery-card__left__date"},RQ={class:"kb-gallery-card__left__title"},FQ={class:"kb-gallery-card__left__description"},VQ={class:"kb-gallery-card__left__date kb-gallery-card__left__date--mobile"},zQ={class:"kb-gallery-card__right"},UQ={class:"kb-gallery-card__right__image-wrapper"},jQ=["src","alt"],HQ={class:"kb-gallery-card__right__image-wrapper-info"},qQ={class:"kb-gallery-card__right__image-wrapper-info-text"};const GQ={name:"GalleryCard",props:{result:{type:Object,required:!0,default:{}}},setup:function(){var e=Af();return{getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"GalleryCard",labelKey:t})}}}},KQ=GQ,ZQ=(0,Hb.A)(KQ,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:e.result.href,class:"kb-gallery-card-link"},[Mi("article",MQ,[Mi("div",NQ,[Mi("div",PQ,fe(e.result.numberOfImages)+" "+fe(e.getLabel("imagesLabel")),1),Mi("h3",RQ,fe(e.result.title),
21),Mi("p",FQ,fe(e.result.description),1),Mi("div",VQ,fe(e.result.numberOfImages)+" "+fe(e.getLabel("imagesLabel")),1)]),Mi("div",zQ,[Mi("div",UQ,[Mi("figure",null,[Mi("picture",null,[Mi("img",{class:"kb-gallery-card__right__image-wrapper-img",src:e.result.image.src,alt:e.result.image.alt},null,8,jQ)])]),Mi("div",HQ,[t[0]||(t[0]=Vi('<div class="kb-gallery-card__right__image-wrapper-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 25 24"><path fill="#fff" d="M22.546 9.21V6.42H16.91c-.41-.559-1.652-1.815-4.41-1.815-2.757 0-3.996 1.256-4.409 1.814H2.453v13.117h20.093v-8.93h-2.232v.837h1.395v7.255H3.29V7.257H21.71V9.21h.837ZM12.5 5.443c1.674 0 2.687.524 3.245.976h-6.49c.557-.452 1.57-.976 3.245-.976Z"></path><path fill="#fff" d="M7.895 12.978a4.605 4.605 0 1 0 9.209 0 4.605 4.605 0 0 0-9.21 0Zm8.372 0a3.767 3.767 0 1 1-7.535 0 3.767 3.767 0 0 1 7.535 0Z"></path><path fill="#fff" d="M12.5 16.186a3.21 3.21 0 1 0 0-6.418 3.21 3.21 0 0 0 0 6.418ZM20.315 8.373h-2.233v.837h2.233v-.837Z"></path></svg></div>',1)),Mi("div",qQ,fe(e.result.numberOfImages)+" "+fe(e.getLabel("imagesLabel")),1)])])])])],8,DQ)}]]);function WQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var $Q={key:0,class:"kb-general-search__results kb-general-search__results--title","aria-live":"polite"},YQ={key:0,class:"kb-general-search__results--number"},JQ={key:0,class:"kb-general-search__meta-top-container","aria-live":"polite"},XQ={key:1,class:"kb-general-search__cta"},QQ=["href"],e0={class:"kb-general-search__results__listHeader"},t0={key:1,"aria-label":"Valgte filtre",class:"kb-general-search__tags kb-general-search__active-facets"},n0={key:0},o0=["aria-label","onClick"],r0={key:0,class:"kb-general-search__meta-top-container","aria-live":"polite"},a0={key:0,class:"kb-general-search__cta"},i0=["href"],l0={class:"kb-general-search__no-results"},s0={class:"kb-general-search__no-results__summary"},c0=["href"],u0=["id"],d0={key:0,class:"kb-general-search__group__letter year"},p0={key:0},f0={key:1},m0={class:"kb-general-search__more-results"},g0={key:0,class:"kb-general-search__more-results__text"},h0={key:4,class:"kb-spinner-overlay"};function b0(e){return function(e){if(Array.isArray(e))return v0(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v0(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v0(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var y0=["href"],_0={class:"kb-general-search__result-content"},A0={class:"kb-general-search__result-content-text"},k0={key:0,class:"kb-general-search__result-date"},x0={key:1,class:"kb-general-search__breadcrumb-display"},w0={class:"crumb-text"},C0=["innerHTML"],E0={key:0,class:"kb-general-search__result-summary--hidable"},S0={key:1,class:"kb-general-search__result-summary"},T0={key:4,class:"kb-general-search__tags"},I0={class:"kb-general-search__tag"},B0={class:"kb-general-search__result-content-image-type-wrapper"},O0=["src"],L0={key:1,class:"kb-general-search__result-content-icon kb-ui-icon"},D0={key:2,class:"kb-general-search__result-content-icon kb-ui-icon"};const M0={name:"SearchResultCard",props:["result","displayProperties","imageType","imageRatio"]},N0=(0,Hb.A)(M0,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{class:"kb-general-search__standard-result",href:n.result.url},[Mi("div",_0,[Mi("div",A0,[n.displayProperties.date&&n.result.date?(Ai(),Si("p",k0,fe(n.result.date),1)):zi("v-if",!0),n.displayProperties.breadcrumbs?(Ai(),Si("div",x0,[(Ai(!0),Si(gi,null,Yr(n.result.breadcrumb,function(e,n){return Ai(),Si("span",{key:n},[Mi("span",w0,fe(e),1),t[0]||(t[0]=Mi("div",{role:"presentation",class:"kb-ui-icon kb-ui-icon--ui-chevron-down"},null,-1))])}),128))])):zi("v-if",!0),n.displayProperties.showCardTitle?(Ai(),Si("h2",{key:2,class:"kb-general-search__result-title",innerHTML:n.result.title},null,8,C0)):zi("v-if",!0),n.displayProperties.summary?(Ai(),Si(gi,{key:3},[n.displayProperties.summary.hidable?(Ai(),Si("p",E0,fe(n.result.summary),1)):(Ai(),Si("p",S0,fe(n.result.summary),1))],64)):zi("v-if",!0),n.result.tags&&n.result.tags.length?(Ai(),Si("ul",T0,[(Ai(!0),Si(gi,null,Yr(n.result.tags,function(e,t){return Ai(),Si("li",{key:t},[Mi("span",I0,fe(e.name),1)])}),128))])):zi("v-if",!0)]),n.displayProperties.image&&n.result.imageUrl?(Ai(),Si("div",{key:0,class:Y(["kb-general-search__result-content-image-container",n.imageRatio?"kb-general-search__result-content-image-container--".concat(n.imageType):null])},[Mi("div",B0,[Mi("div",{class:Y(["kb-general-search__result-content-image",n.imageRatio?"kb-general-search__result-content-image--".concat(n.imageRatio):null])},[Mi("img",{src:n.result.imageUrl,alt:""},null,8,O0)],2)])],2)):n.result.isExternalLink?(Ai(),Si("div",L0,b0(t[1]||(t[1]=[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[Mi("path",{fill:"#E8001D","fill-rule":"evenodd",d:"m16.349 3.275-4.962-.246-.05-.999 5.462.27c.276.014.51.249.524.525l.27 5.462-.998-.05-.246-4.962ZM5.156 13.76l8.417-8.417.707.707-8.417 8.417-.707-.707ZM1.875 3.875h-.5v14.75h14.75v-8.234h-1v7.234H2.375V4.875h7.234v-1H1.875Z","clip-rule":"evenodd"})],-1)])))):n.result.isExternalLink?(Ai(),Si("div",D0,b0(t[2]||(t[2]=[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[Mi("path",{fill:"#E8001D","fill-rule":"evenodd",d:"m16.349 3.275-4.962-.246-.05-.999 5.462.27c.276.014.51.249.524.525l.27 5.462-.998-.05-.246-4.962ZM5.156 13.76l8.417-8.417.707.707-8.417 8.417-.707-.707ZM1.875 3.875h-.5v14.75h14.75v-8.234h-1v7.234H2.375V4.875h7.234v-1H1.875Z","clip-rule":"evenodd"})],-1)])))):zi("v-if",!0)])],8,y0)}]]);var P0=["href"],R0=["src"],F0={class:"kb-general-search__result-content"},V0=["innerHTML"],z0={class:"kb-general-search__details"},U0={class:"kb-general-search__detail"},j0={class:"kb-general-search__detail__icon"};const H0={name:"RecipeCard",props:["result","displayProperties","imageRatio","imageType"],setup:function(){return{imageTransform:Pv,recipe_4_5:Rv}}}
2,q0=(0,Hb.A)(H0,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{class:"kb-general-search__recipe-result",href:n.result.url},[Mi("div",{class:Y(["kb-general-search__result-content-image",(n.imageType&&"kb-general-search__result-content-image--".concat(n.imageType),n.imageRatio?"kb-general-search__result-content-image--".concat(n.imageRatio):null)])},[Mi("img",{src:o.imageTransform(n.result.imageUrl,o.recipe_4_5),alt:""},null,8,R0)],2),Mi("div",F0,[Mi("h2",{class:"kb-general-search__result-title",innerHTML:n.result.title},null,8,V0),Mi("ul",z0,[(Ai(!0),Si(gi,null,Yr(n.result.details,function(e,t){return Ai(),Si("li",{key:t},[Mi("span",U0,[Mi("div",j0,[Mi("div",{class:Y("kb-ui-icon ".concat(e.icon))},null,2)]),Mi("p",null,fe(e.name),1)])])}),128))])])],8,P0)}]]);var G0={class:"kb-location-card__card"},K0=["href","target"],Z0={class:"kb-location-card__card__image-wrapper"},W0=["innerHTML"],$0={class:"kb-location-card__card__icon-text"},Y0=["src"],J0={class:"kb-location-card__card__content-wrapper"},X0={class:"kb-location-card__card__top"},Q0={class:"kb-location-card__card__small-title"},e1={class:"kb-location-card__card__title"},t1={class:"kb-rich-text__content kb-rich-text__content--location-card"},n1={class:"kb-rich-text__content--location-card-info"},o1={class:"kb-location-card__card__content-wrapper"},r1={class:"kb-location-card__card__bottom"},a1={class:"kb-location-card__card__contact-info"},i1=["href"];const l1={name:"LocationCard",props:{result:{type:Object,required:!0}},setup:function(){return{transformImage:function(e){return Pv(e,Fv)}}}},s1=(0,Hb.A)(l1,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",G0,[Mi("a",{href:e.result.url,target:e.result.urlTarget,class:"kb-location-card"},[Mi("div",Z0,[e.result.svgIcon?(Ai(),Si("div",{key:0,class:Y(["kb-location-card__card__icon-box",e.result.labelColorTheme])},[Mi("div",{class:"kb-location-card__card__icon-wrapper",innerHTML:e.result.svgIcon},null,8,W0),Mi("p",$0,fe(e.result.iconText),1)],2)):zi("v-if",!0),Mi("img",{src:e.transformImage(e.result.imgUrl,e.locationCard_5_4),alt:""},null,8,Y0)]),Mi("div",J0,[Mi("div",X0,[Mi("p",Q0,fe(e.result.smallTitle),1),Mi("h2",e1,fe(e.result.title),1),Mi("div",t1,[Mi("p",null,fe(e.result.location),1),Mi("p",null,fe(e.result.street),1),Mi("p",null,fe(e.result.city),1),Mi("p",n1,fe(e.result.locationInfo),1)])])])],8,K0),Mi("div",o1,[Mi("div",r1,[t[0]||(t[0]=Mi("hr",null,null,-1)),Mi("dl",a1,[Mi("dt",null,fe(e.result.phoneLabel),1),Mi("dd",null,fe(e.result.phoneNumber),1),Mi("dt",null,fe(e.result.emailLabel),1),Mi("dd",null,[Mi("a",{href:"mailto:"+e.result.emailAddress},fe(e.result.emailAddress),9,i1)]),Mi("dt",null,fe(e.result.daysOne),1),Mi("dd",null,fe(e.result.timeSlotOne),1),Mi("dt",null,fe(e.result.daysTwo),1),Mi("dd",null,fe(e.result.timeSlotTwo),1)])])])])}]]);var c1={class:"kb-sort-dropdown kb-forms"},u1={class:"Form__Element FormSelection-sorting"},d1={value:"",disabled:""},p1=["value"];const f1={name:"SortDropdown",props:{config:{type:Object,required:!0},guid:{type:String,required:!0},sortingHandler:{type:Function,required:!0}},setup:function(){return{sortingValue:Kt("")}}},m1=(0,Hb.A)(f1,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",c1,[Mi("div",u1,[io(Mi("select",{id:"sort-dropdown",onChange:t[0]||(t[0]=function(t){return e.sortingHandler(e.sortingValue)}),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.sortingValue=t})},[Mi("option",d1,fe(e.config.name),1),(Ai(!0),Si(gi,null,Yr(e.config.options,function(e,t){return Ai(),Si("option",{key:t,value:e.handler},fe(e.name),9,p1)}),128))],544),[[Xs,e.sortingValue]])])])}]]);function g1(e){return function(e){if(Array.isArray(e))return h1(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h1(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h1(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var b1=["src","alt"],v1=["innerHTML"],y1={class:"kb-simple-card__text"},_1={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},A1={key:1,viewBox:"0 0 21 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const k1={name:"SimpleCard",props:{result:{type:Object,required:!0}},setup:function(e){return{isInternalLink:bl(function(){var t,n;return null!==(t=e.result.isInternalLink)&&void 0!==t?t:null===(n=e.result.url)||void 0===n?void 0:n.startsWith(location.origin)}),hasLink:null!=e.result.url}}},x1=(0,Hb.A)(k1,[["render",function(e,t,n,o,r,a){return Ai(),Ti(Kr(e.hasLink?"a":"div"),qi(e.hasLink?{href:e.result.url,target:e.result.urlTarget}:{},{class:["kb-simple-card",{"kb-simple-card--no-link":!e.hasLink}]}),{default:ao(function(){return[e.result.imageUrl?(Ai(),Si("img",{key:0,src:e.result.imageUrl,alt:e.result.altText,class:"kb-simple-card__image"},null,8,b1)):zi("v-if",!0),Mi("h3",{class:"kb-simple-card__title",innerHTML:e.result.title},null,8,v1),Mi("p",y1,fe(e.result.summary),1),e.hasLink?(Ai(),Si("div",{key:1,class:Y({"kb-simple-card__link-icon":e.isInternalLink,"kb-simple-card__link-icon kb-simple-card__link-icon--external":!e.isInternalLink})},[e.isInternalLink?(Ai(),Si("svg",A1,g1(t[1]||(t[1]=[Mi("path",{d:"m15.208 1 4.528 5-4.528 5",stroke:"#E8001D","stroke-linejoin":"round"},null,-1),Mi("path",{d:"M14.683 6H0",stroke:"#E8001D"},null,-1)])))):(Ai(),Si("svg",_1,g1(t[0]||(t[0]=[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"m12.978 2.708-3.864-.191-.049-.987 4.37.217c.279.014.516.246.53.518l.216 4.37-1.011-.05-.192-3.877Zm-8.924 8.23 6.734-6.734.707.707-6.734 6.734-.707-.707ZM1.5 3H1v12h12V8.312h-1V14H2V4h5.688V3H1.5Z","clip-rule":"evenodd"},null,-1)]))))],2)):zi("v-if",!0)]}),_:1},16,["class"])}]]);function w1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C1=["href"],E1={key:0,class:"kb-spot-card-grid__box__decoration"},S1={class:"kb-spot-card-grid__box__content-container"},T1={key:0,class:"kb-spot-card-grid__box__icon-wrapper"},I1=["innerHTML"],B1={class:"kb-spot-card-grid__box__content"},O1={class:"kb-spot-card-grid__box__title"},L1={class:"kb-spot-card-grid__box__paragraph"},D1={key:0,class:"kb-spot-card-grid__box__button-wrapper"};const M1={name:"SpotCardGrid",props:{spotCardData:{type:Object,required:!0}},setup:function(){return{handleButtonClick:function(){this.$refs.linkRef.click()}}}},N1=(0,Hb.A)(M1,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:e.spotCardData.href,class:Y(["kb-spot-card-grid",e.spotCardData.colorTheme]),ref:"linkRef"},[e.spotCardData.svgIcon?zi("v-if",!0):(Ai(),Si("div",E1,(i=t[1]||(t[1]=[Mi("svg",{width:"512",height:"445",viewBox:"0 0 512 445",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},[Mi("path",{d:"M-698.154 720.628C-614.642 775.767 -501.149 766.579 -427.628 693.059L103.706 162.567C312.897 -46.6237 652.06 -46.6237 861.245 162.567C1070.44 371.759 1070.44 710.921 861.245 920.107C652.054 1129.3 312.892 1129.3 103.706 920.107",stroke:"white","stroke-width":"130.892","stroke-miterlimit":"10"}),Mi("path",{d:"M-958.539 919.683C-1167.73 710.492 -1167.73 371.329 -958.539 162.143C-749.348 -47.0478 -410.185 -47.0478 -200.999 162.143L330.335 693.478C414.361 777.504 550.59 777.504 634.615 693.478C718.641 609.452 718.641 473.223 634.615 389.197C550.59 305.171 414.361 305.171 330.335 389.197L-200.999 919.688C-250.11 968.799 -306.376 1006.38 -366.45 1032.43",stroke:"white","stroke-width":"130.892","stroke-miterlimit":"10"})],-1)]),function(e){if(Array.isArray(e))return w1(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return w1(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w1(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))),Mi("div",S1,[e.spotCardData.svgIcon?(Ai(),Si("div",T1,[Mi("div",{class:"kb-spot-card-grid__box__circle",innerHTML:e.spotCardData.svgIcon},null,8,I1)])):zi("v-if",!0),Mi("div",B1,[Mi("h3",O1,fe(e.spotCardData.title),1),Mi("p",L1,fe(e.spotCardData.text),1),e.spotCardData.buttonTitle?(Ai(),Si("div",D1,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.handleButtonClick&&e.handleButtonClick.apply(e,arguments)}),class:Y({"kb-button kb-button--spot-border-color":!e.spotCardData.buttonFill,"kb-button kb-button--full-color-spot":e.spotCardData.buttonFill})},fe(e.spotCardData.buttonTitle),3)])):zi("v-if",!0)])])],10,C1);var i}]]);function P1(e){return P1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P1(e)}function R1(e,t,n){return(t=function(e){var t=function(e){if("object"!=P1(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P1(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P1(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F1(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return V1(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V1(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function V1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var z1={fundraising:{name:"Sorter",options:[{name:"Senest oprettet",handler:"latest"},{name:"Flest indsamlet penge",handler:"highestCollected"}]}},U1={counselling:"COUNSELLING_SEARCH",events:"EVENT_SEARCH",fundraising:"FUNDRAISING_SEARCH",donations:"DONATION_SEARCH",gallery:"GALLERY_SEARCH",patientAssociations:"PATIENT_ASSOCIATIONS_SEARCH",jobs:"FRIVILLIGJOB_SEARCH",cancerforum:"CANCERFORUM_SEARCH"};const j1={name:"GeneralSearch",components:{SearchResultCard:N0,RecipeCard:q0,ActivityCard:fA,FrivilligjobCard:TY,LocationCard:s1,FundraisingCard:QJ,SortDropdown:m1,DonationCard:Zj,GalleryCard:ZQ,SimpleCard:x1,SpotCard:f_,SpotCardGrid:N1},props:{guid:{type:String,required:!0},type:{type:String,required:!1,default:"general"},firstPageSize:{type:Number,required:!1},showMorePageSize:{type:Number,required:!1},spotCardData:{type:Object,required:!1},hideNoResults:{type:Boolean,required:!1,default:!1},avoidSetQueryInUrl:{type:Boolean,required:!1,default:!1},isMultisearch:{type:Boolean,required:!1,default:!1},groupedContent:{type:String,required:!1,default:"false"},layoutStyle:{type:String,required:!1,default:""}},setup:function(e){var t,n=bl(function(){var t;return null!==(t=o.state.search.queries[e.guid])&&void 0!==t?t:""}),o=Af(),r=bl(function(){var t,n,r="events"===e.type?function(e){var t=new Map,n=[];e.forEach(function(e,o){var r,a=null==e?void 0:e.isSpotCard,i=null==e?void 0:e.year,l=null==e||null===(r=e.monthName)||void 0===r?void 0:r[0],s=a?"spotcard-".concat(o):"".concat(i,"-").concat(l);t.has(s)||(t.set(s,{month:a?null:l,year:a?null:i,entries:[],isSpotCard:a}),n.push(t.get(s))),t.get(s).entries.push(e)});var o=[].concat(n).filter(function(e){return!e.isSpotCard}).sort(function(e,t){return e.year===t.year?new Date("".concat(e.month," 1, 2000"))-new Date("".concat(t.month," 1, 2000")):e.year-t.year}),r=n.map(function(e){return e.isSpotCard?e:o.find(function(t){return t===e})});return r}(xm(null!==(t=o.state.search.results[e.guid])&&void 0!==t?t:[])):xm(null!==(n=o.state.search.results[e.guid])&&void 0!==n?n:[]);if("events"!==e.type||!e.groupedContent)return r;var a=r.filter(function(e){return null==e?void 0:e.isSpotCard}),i=r.filter(function(e){return!(null!=e&&e.isSpotCard)});if(!i.length)return a;var l,s=a.flatMap(function(e){var t;return null!==(t=null==e?void 0:e.entries)&&void 0!==t?t:[]}).slice().sort(function(e,t){return(Number(null==e?void 0:e.position)||999999)-(Number(null==t?void 0:t.position)||999999)}),c=i.reduce(function(e,t){var n,o;return e+(null!==(n=null==t||null===(o=t.entries)||void 0===o?void 0:o.length)&&void 0!==n?n:0)},0),u=function(e,t){var n,o=t,r=F1(i);try{for(r.s();!(n=r.n()).done;){var a,l=n.value,s=null!==(a=l.entries)&&void 0!==a?a:l.entries=[];if(o<=s.length)return void s.splice(o,0,e);o-=s.length}}catch(e){r.e(e)}finally{r.f()}i[i.length-1].entries.push(e)},d=0,p=F1(s);try{for(p.s();!(l=p.n()).done;){var f=l.value,m=Number(null==f?void 0:f.position);u(f,(Number.isFinite(m)&&m>0?Math.min(m-1,c):c)+d),d+=1}}catch(e){p.e(e)}finally{p.f()}return i}),a=bl(function(){return"events"===e.type&&!!e.groupedContent&&i.value&&0===s.value}),i=bl(function(){return!!r.value&&r.value.reduce(function(e,t){return Array.isArray(t.entries)?e+t.entries.length:e+1},0)>0}),l=bl(function(){return r.value.filter(function(e){return e.isSpotC
2ard}).length}),s=bl(function(){return r.value?r.value.reduce(function(e,t){return Array.isArray(t.entries)?e+t.entries.filter(function(e){return!e.isSpotCard}).length:t.isSpotCard?e:e+1},0):0}),c=bl(function(){var t;return null!==(t=o.state.search.scoped_total[e.guid]-l.value)&&void 0!==t?t:0});bo(c,function(t){o.commit("search/set_display_total",{guid:e.guid,data:t})},{immediate:!0});var u=bl(function(){var t;return null!==(t=o.getters["search/selectedTags"](e.guid))&&void 0!==t?t:[]}),d=bl(function(){return o.state.search.is_searching}),p=e.isMultisearch?"generalSearch-".concat(e.guid):"generalSearch",f=function(e,t){return o.getters["labels/getLabel"]({labelCollection:p,labelKey:e,params:t})},m=function(e){return o.getters["labels/existLabel"]({labelCollection:p,labelKey:e})};Dr(function(){e.avoidSetQueryInUrl&&o.commit("search/set_replaceQueryInUrl",!1),"dictionarySearch"===e.guid?o.dispatch("search/initSearchScope",{guid:e.guid,url:null}):function(e,t){var n,o,r;t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.firstPageSize,showMorePageSize:e.showMorePageSize,url:{POSTMETHOD:"POST",PUTMETHOD:"PUT",DELETEMETHOD:"DELETE",PATCHMETHOD:"PATCH",ENVIRONMENT:"PRODUCTION",GETMETHOD:"GET",GENERAL_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",EVENT_SEARCH:"da-DK/api/[pageId]/activityApi/search/[guid]",COUNSELLING_SEARCH:"da-DK/api/counsellingCenterApi/search/[guid]",PATIENT_ASSOCIATIONS_SEARCH:"da-DK/api/patientAssociationsApi/search/[guid]",DOCUMENT_LIST_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",AUTOCOMPLETE:"da-DK/api/searchApi/autocomplete",DICTIONARY_BASE_URL:"da-DK/api/dictionary/word",EVENTSIGNUP:"/api/activities/signup",FUNDRAISING_SEARCH:"da-DK/api/personalFundraising/search/[guid]",DONATION_SEARCH:"da-DK/api/personalFundraising/search/[guid]/donations",GALLERY_SEARCH:"",CREATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPDATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",DELETE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPLOAD_FUNDRAISEIMAGES:"da-DK/api/personalFundraising/[id]/image",SUBMIT_DONATION:"da-DK/api/[pageId]/fundraisingCampaignDonations",SUBMIT_PERSONAL_DONATION:"da-DK/api/personalFundraising/[guid]/donations",SUBMIT_PERSONAL_MOBILEPAY_DONATION:"da-DK/api/personalFundraising/[guid]/donations/mobilepay",DISCARDFUNDRAISEIMAGE:"/api/discard-fundraise-image.json",GET_PURCHASE_DATA:"da-DK/api/tracking/purchaseeventdata",PROJECTS_SEARCH:"da-DK/api/[pageId]/projectApi/search/[guid]",GET_USERPROFILE_FUNDRAISING_CAMPAIGNS:"da-DK/api/personalFundraising/search/userprofile/[userProfileId]",GET_PERSONAL_FUNDRAISING_DASHBOARD:"da-DK/api/personalFundraising/dashboard/[userProfileId]",GET_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",UPDATE_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",GET_DONATIONS:"da-dk/api/fundraisingDonations/[campaignAreaId]",GET_RELAY_LIST:"api/stafetter/[pageId]",GET_STAFET_PARTICIPANTS:"api/hold/[teamId]/deltagere",GET_STAFET_TEAM_LIST:"api/holdList/[pageId]/[stafetId]",SUBMIT_STAFET_CREATE_HOLD:"da-DK/api/[pageId]/hold/?stafetKode=[stafetKode]&previousHoldkode=[previousHoldkode]",SUBMIT_STAFET_EDIT_HOLD:"da-DK/api/[pageId]/hold/[holdKode]",SUBMIT_STAFET_DONATION:"da-DK/api/[pageId]/sfl/donation",SUBMIT_STAFET_STOT_LYS_DONATION:"da-DK/api/[pageId]/sfl/lyspose",SUBMIT_STAFET_DELTAG_PAA_HOLD:"da-DK/api/[pageId]/sfl/deltager",SUBMIT_STAFET_DELTAG_SOM_FIGHTER:"da-DK/api/[pageId]/sfl/fighter",SUBMIT_STAFET_ADD_DELTAGERE:"da-DK/api/[pageId]/sfl/add-deltagere",GET_STAFET_TEAM_LIGHTS:"api/hold/[holdKode]/lysposer?skip=[skip]&take=[take]",GET_STAFET_TEAM_DONATIONS:"api/hold/[holdKode]/donationer",GET_STAFET_TEAM_DONATIONS_PAGINATED:"api/hold/[holdKode]/donationerPaginated?offsetDonationer=[offsetDonationer]&offsetAdmissions=[offsetAdmissions]&limit=[limit]",GET_STAFET_TEAM_PARTICIPANT_DETAILS:"api/hold/[holdKode]/deltagere",GET_PREVIOUS_TEAMS_LIST:"/api/hold-list/profile/previous-hold?newStafetkode=[newStafetkode]",GET_PROFILE_TEAMS_LIST:"api/hold-list/profile/hold/[pageId]",SUBMIT_STAFET_PROFILE_CREATE:"da-DK/api/sfl/profile/create",SUBMIT_STAFET_PROFILE_UPDATED:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_PROFILE_DELETE:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_ROUND_COUNTER:"api/[pageId]/hold/[holdKode]/runderegistrering",SUBMIT_STAFET_SEND_EMAIL:"api/sfl/mailudsendelse",SUBMIT_STAFET_RESEND_EMAIL:"api/sfl/mailudsendelse/resend",STAFET_GET_MAILUDSENDELSE_ATTACHMENT:"api/sfl/mailudsendelse/attachment/[attachmentId]",STAFET_GET_PROFILE_HOL
2DKAPTAJN_HOLD:"api/hold-list/profile/[userProfileId]/holdkaptajn-hold",STAFET_GET_MAILUDSENDELSE_NEW_RECIPIENTS_COUNT:"api/sfl/mailudsendelse/[mailudsendelseId]/new-recipients-count",COMMUNITY_CHAT_SEARCH_USERS:"api/community/chat/users/search?p=[query]&take=[take]",COMMUNITY_GET_USER_CHATS:"api/community/user/[userId]/chats",COMMUNITY_GET_CHAT:"api/community/chat/[chatId]",COMMUNITY_CREATE_CHAT:"api/community/chat/create",COMMUNITY_FIND_CHAT_WITH_USER:"api/community/chat/find-with-user",COMMUNITY_GET_CHAT_MEMBER_PROFILE:"api/community/chat/member-profile",COMMUNITY_DELETE_CHAT:"api/community/chat/[chatId]/delete",COMMUNITY_CREATE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/create",COMMUNITY_EDIT_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/edit",COMMUNITY_DELETE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/delete",COMMUNITY_CREATE_COMMENT:"api/community/post/[postId]/comment/create",COMMUNITY_CREATE_SUBCOMMENT:"api/community/comment/[commentId]/subcomment/create",COMMUNITY_EDIT_COMMENT:"api/community/comment/[commentId]/edit",COMMUNITY_DELETE_COMMENT:"api/community/comment/[commentId]/delete",COMMUNITY_GET_NOTIFICATIONS:"api/community/notifications",COMMUNITY_GET_POSTS:"api/community/posts",COMMUNITY_CREATE_POST:"api/community/post/[postId]/create",COMMUNITY_EDIT_POST:"api/community/post/[postId]/edit",COMMUNITY_DELETE_POST:"api/community/post/[postId]/delete",COMMUNITY_SAVE_POST:"api/community/post/[postId]/save",COMMUNITY_GET_POST_LATEST_COMMENT:"api/community/post/[postId]/latest-comment",COMMUNITY_GET_POST_STATISTICS:"api/community/post/[postId]/statistics",COMMUNITY_GET_POST_COMMENTS:"api/community/post/[postId]/comments?pageId=[pageId]",COMMUNITY_GET_USER_GROUPS:"api/community/user/groups?pageId=[pageId]",COMMUNITY_LEAVE_GROUP:"api/community/user/groups/[groupId]/leave",COMMUNITY_GET_USER_POSTS:"api/community/user/posts",COMMUNITY_GET_USER_SAVED_POSTS:"api/community/user/posts/saved",GET_GROUP_SEARCH_RESULT:"da-DK/api/groupSearch/search/[pageId]/[guid]",SUBMIT_CREATE_GALLERY:"da-DK/api/createGallery/[id]",SUBMIT_EDIT_GALLERY:"da-DK/api/editGallery/[id]",FORUM_MEMBER_DATA:"da-DK/api/member-data/[id]",FORUM_MEMBER_LIST_DATA:"da-DK/api/member-list-data/[groupid]",SUBMIT_FORUM_MEMBER_APPLICATION:"da-DK/api/forumMemberApplication/[id]/[groupid]",FORUM_SUBMIT_EDIT_PROFILE:"da-DK/api/saveProfile",SUBMIT_FORUM_PROFILE_PICTURE:"da-DK/api/submitForumProfilePicture/[id]",FORUM_PROFILE_PICTURE:"da-DK/api/forumProfilePicture/[id]",GET_GRUPPEADGANGSANMODNINGER:"api/gruppeadgangsanmodninger",APPROVE_NOTIFICATION:"api/notifications/[id]/approve",REJECT_NOTIFICATION:"api/notifications/[id]/reject",APPROVE_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/approve",REJECT_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/reject",SUBMIT_CREATE_FORUM_PROFILE:"da-DK/api/cancerforum/profile/create",DELETE_CANCER_PROFILE:"da-DK/api/deleteForumProfile/[id]",DELETE_CANCER_PROFILE_AND_DATA:"da-DK/api/deleteForumProfileAndData/[id]",GET_THEME_STATISTICS:"da-DK/api/theme/[themeId]/statistics",GET_GROUP_STATISTICS:"da-DK/api/group/[groupId]/statistics",FORUM_JOIN_GROUP:"da-DK/api/join-open-group-redirect/[groupId]",CANCERFORUM_SEARCH:"da-DK/api/[pageId]/cancerforum/search",FRIVILLIGE_GROUPS_SEARCH:"api/frivillig/[pageId]/groups",FRIVILLIGE_GROUPS_HOVEDGRUPPE_SEARCH:"api/frivillig/[pageId]/hovedgruppe/[hovedgruppekode]/groups",FRIVILLIGE_MEMBER_LIST_DATA:"da-DK/api/getMemberListData/[group_id]",FRIVILLIGE_MEMBER_DATA:"da-DK/api/getMemberData/[id]",FRIVILLIGE_MEMBER_REQUEST_ROLES_DATA:"da-DK/api/getMemberRequestRolesData/[id]",FRIVILLIGE_MEMBER_REMOVE:"api/frivillig/groups/[gruppeKode]/medlemmer/[member_id]",FRIVILLIGE_FOLDER_DROPDOWN_OPTIONS:"api/frivillig/valid-move-options",GET_FILES_LIST:"api/frivillig/[pageId]/[gruppeKode]/dokumenter",SUBMIT_CREATE_NEW_FILE:"api/frivillig/dokumenter/template",SUBMIT_UPLOAD_NEW_FILE:"api/frivillig/dokumenter",SUBMIT_MOVE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_EDIT_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_DELETE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_CREATE_FOL
2DER:"api/frivillig/mapper",SUBMIT_EDIT_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_MOVE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_DELETE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_CONFIRM_DELETE_PROFILE:"da-DK/api/submitConfirmDeleteProfile/[group_id]/[member_id]",SUBMIT_CONFIRM_DELETE_MEMBER:"da-DK/api/submitConfirmDeleteMember/[group_id]/[member_id]",ORDRE_OVERVIEW:"da-DK/api/ordreOverview/[id]",CREATE_EVENT:"da-DK/api/createEvent",FRIVILLIGE_GROUP_EVENTS:"api/frivillig/[pageId]/groups/[groupId]/events",EDIT_EVENT:"da-DK/api/editEvent/[id]",CALENDAR_OVERLAY:"da-DK/api/calendarOverlay",EDIT_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil",CREATE_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil/create",GET_FRIVILLIGPROFIL_CARD_DATA:"da-DK/api/frivillig/[pageId]/profil/[id]/frivilligprofilCard",FRIVILLIGE_GROUP_EVENT:"api/frivillig/[pageId]/groupEvents/[eventId]",FRIVILLIG_PRODUCT_SEARCH:"da-DK/api/frivillig/[pageId]/productSearchApi/searchWithRoleInformation/[guid]",FRIVILLIG_PRODUCT_LIST_SEARCH:"da-DK/api/frivillig/[pageId]/productListSearchApi/searchWithRoleInformation/[guid]",FRIVILLIGE_GROUP_EVENT_EDIT:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIGE_GROUP_EVENT_GET:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIG_GROUP_MEDLEMMER_GET:"api/frivillig/[pageId]/groups/[groupId]/medlemmer",FRIVILLIGE_WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/frivillig/webshop/${pageId}/checkout/placeorder",FRIVILLIGPROFIL_ROLLER_GET:"da-DK/api/frivillig/profil/roller/[aktivitetsId]",FRIVILLIGPROFIL_GRUPPER_GET:"da-DK/api/frivillig/profil/grupper/[aktivitetsId]",DELETE_FRIVILLIGPROFIL:"da-DK/api/frivillig/[pageId]/profil/[guid]",FRIVILLIGPROFIL_AKTIVITETER_GET:"da-DK/api/frivillig/profil/aktiviteter",FRIVILLIGPROFIL_PICTURE_GET:"api/frivillig/profil/image/?fpid=[id]",SUBMIT_GROUP_ACCESS_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning",DELETE_ROLE_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning/[id]",SUBMIT_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling",DELETE_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling/[id]",FRIVILLIGE_JOIN_GROUP:"api/frivillig/groups/[gruppeKode]/join",SUBMIT_FRIVILLIG_PROFILE_PICTURE:"api/frivillig/profil/image",PROFILE_HAS_FRIVILLIG_ORDERS:"api/frivillig/profil/[userProfileId]/has-frivillig-orders",FRIVILLIGJOB_CREATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_UPDATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_IMAGE_UPDATE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_GET:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_SEARCH:"api/frivillig/frivilligjob/search",FRIVILLIGJOB_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]",FRIVILLIGJOB_GRUPPEEMNER_GET:"api/frivillig/frivilligjob/[frivilligjobId]/gruppeemner",LOTTERY_GET_RESULT:"api/lottery/round/[roundNumber]/ticket/[lotteryTicketId]",PRODUCT_RECOMMENDATIONS:"da-DK/api/webshop/product/[productSku]/recommendations?take=[take]",PRODUCT_SEARCH:"da-DK/api/productSearchApi/search/[guid]",PRODUCT_LIST_SEARCH:"da-DK/api/productListSearchApi/search/[guid]",WEBSHOP_BASKET:"da-DK/api/webshop/${pageId}/cart/",WEBSHOP_BASKET_LINE:"da-DK/api/webshop/${pageId}/cart/lines",WEBSHOP_BASKET_SHIPPING:"da-DK/api/webshop/${pageId}/cart/shipping",WEBSHOP_SERVICEPOINTS:"da-DK/api/webshop/delivery/servicepoints",WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/webshop/${pageId}/checkout/placeorder",MITID_LOGOUT:"api/mitid/logout",SOURCE_REFERENCES:"da-DK/api/source/[sourceId]/references?skip=[skip]&take=[take]"}[(o=e.type,null!==(r=U1[o])&&void 0!==r?r:"GENERAL_SEARCH").replace("[pageId]",t.state.main.page_id)]});var a=new URLSearchParams(document.location.search).get("q"),i=new URLSearchParams(document.location.search).get("skip"),l=null!==(n=new URLSearchParams(document.location.search).get("take"))&&void 0!==n?n:e.take;t.dispatch("search/performZeroSearch",{guid:e.guid}),t.dispatch("search/performSearch",{guid:e.guid,query:a,skip:i,take:l})}(e,o)});var g=bl(function(){return o.getters["search/canShowMore"](e.guid)}),h=null!==(t={news:{card:"SearchResultCard",grid:!1,date:!0,showCardTitle:!0,summary:{hidable:!0},image:!0,breadcrumbs:!1},recipe:{card:"RecipeCard",grid:!0,listType:"4col"},events:{card:"ActivityCard",grid:!1,listType:"fixed-header"},donations:{card:"DonationCard",grid:!1,hideTotalCount:!0,listType:"content-width"},gallery:{card:"GalleryCard",grid:!1,hideTotalCount:!1},fundraising:{card:"FundraisingCard",grid:!0,listType:"3col",sortOptions:z1.fundraising,layout:JJ(e.layoutStyle)}
2,counselling:{card:"LocationCard",grid:!0,hideTotalCount:!0,hideTags:!0,showSearchTitleCount:!0,listType:"3col"},patientAssociations:{card:"SimpleCard",grid:!0,listType:"3col"},documentList:{card:"SimpleCard",grid:!0,listType:"3col"},jobs:{card:"FrivilligjobCard",grid:!1,hideTotalCount:!1,hideTags:!1,showSearchTitleCount:!0,showCtaButton:!0}}[e.type])&&void 0!==t?t:{card:"SearchResultCard",grid:!1,date:!1,showCardTitle:!0,summary:!0,image:!0,breadcrumbs:!0},b=bl(function(){var e=h.grid&&h.listType?h.listType?"kb-general-search__results--grid-"+h.listType:"":null,t=!h.grid&&h.listType?"kb-general-search__results--list-"+h.listType:null;return e||t||""}),v=h.grid?N1:f_,y=bl(function(){return f("resultCountTitle").replace("{}",c.value)}),_=bl(function(){var e;return null===(e=f("searchTitleCount"))||void 0===e?void 0:e.replace("{}",c.value)}),A=bl(function(){return m("resultOutForTitle")?f("resultOutForTitle",[s.value,c.value,f("resultTypeTitle")]):"Viser ".concat(s.value," ud af ").concat(c.value," ").concat(f("resultTypeTitle"))});return R1(R1(R1(R1(R1(R1({displayProperties:h,results:r,resultCount:s,tags:u,getLabel:f,getMoreResults:function(){o.dispatch("search/performMoreSearch",{guid:e.guid})},clearFilterOnTag:function(t){o.dispatch("search/performSearch",{guid:e.guid,query:n.value,facet:t})},gridTypeList:function(){return"recipe"===e.type?"kb-grid-list kb-grid-list--recipe":(e.type,"kb-grid-list")},showSpinner:d,totalCount:c,totalCountLabel:y,searchTitleCountLabel:_,resultOutForLabel:A,canShowMore:g,sortingHandler:function(t){o.dispatch("search/performSearch",{guid:e.guid,sorting:t})},displayModifications:b,spotCardComponent:v},"canShowMore",g),"getResultImageRatio",function(e){var t;return e&&e.documentType&&null!==(t={NewsPage:"3-2",LongreadPage:"3-2",PodcastPage:"1-1",RecipePage:"4-5",ReportPage:"A4"}[e.documentType])&&void 0!==t?t:null}),"getResultImageType",function(e){var t;return e&&e.documentType&&null!==(t={PodcastPage:"podcast",RecipePage:"recipe",ReportPage:"report"}[e.documentType])&&void 0!==t?t:null}),"existLabel",m),"hasAnyResults",i),"isOnlySpotCardsInGroupedEvents",a)}},H1=j1,q1=(0,Hb.A)(H1,[["render",function(e,t,n,o,r,a){var i,l=qr("SortDropdown");return Ai(),Si(gi,null,[zi(" hide entire component if hideNoResults is set and there are no results (including spotcards) "),e.hideNoResults&&!e.hasAnyResults?(Ai(),Si(gi,{key:0},[],64)):(Ai(),Si(gi,{key:1},[e.existLabel("searchTitle")?(Ai(),Si("h1",$Q,[Fi(fe(e.getLabel("searchTitle"))+" ",1),e.resultCount&&e.displayProperties.showSearchTitleCount?(Ai(),Si("span",YQ,fe(e.searchTitleCountLabel),1)):zi("v-if",!0)])):zi("v-if",!0),Mi("section",{class:Y(["kb-general-search",e.gridTypeList()])},[e.hasAnyResults?(Ai(),Si(gi,{key:0},[!e.displayProperties.hideTotalCount||e.displayProperties.sortOptions||e.displayProperties.showCtaButton?(Ai(),Si("div",JQ,[e.displayProperties.hideTotalCount||e.isOnlySpotCardsInGroupedEvents?zi("v-if",!0):(Ai(),Si("div",{key:0,class:Y(["kb-general-search__results__result-number",{"kb-general-search__results__result-number--fixed-header":"fixed-header"===e.displayProperties.listType}])},fe(e.totalCountLabel),3)),e.displayProperties.showCtaButton&&e.getLabel("ctaLink")?(Ai(),Si("div",XQ,[Mi("a",{class:"kb-button kb-button--full-color-spot",href:e.getLabel("ctaLink")},fe(e.getLabel("ctaLinkText")),9,QQ)])):zi("v-if",!0),Mi("div",e0,fe(e.getLabel("listHeader")),1),e.displayProperties.sortOptions?(Ai(),Ti(l,{key:2,config:e.displayProperties.sortOptions,guid:e.guid,sortingHandler:e.sortingHandler},null,8,["config","guid","sortingHandler"])):zi("v-if",!0)])):zi("v-if",!0)],64)):zi("v-if",!0),e.tags.length&&!e.displayProperties.hideTags?(Ai(),Si("ul",t0,[(Ai(!0),Si(gi,null,Yr(e.tags,function(n,o){return Ai(),Si(gi,{key:o},[n.facetName?(Ai(),Si("li",n0,[Mi("button",{"aria-label":"Fjern filtrering på ".concat(n.facetName),class:"kb-general-search__tag",onClick:function(t){return e.clearFilterOnTag(n)}},[Fi(fe(n.facetName)+" ",1),t[1]||(t[1]=Vi('<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_489_1707)"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.29293 3.89701L0.146484 7.04346L0.853591 7.75056L4.00004 4.60412L7.14648 7.75056L7.85359 7.04346L4.70714 3.89701L7.85359
20.750564L7.14648 0.043457L4.00004 3.1899L0.853591 0.043457L0.146484 0.750564L3.29293 3.89701Z" fill="#3C3C3C"></path></g><defs><clipPath id="clip0_489_1707"><rect width="8" height="8" fill="white"></rect></clipPath></defs></svg>',1))],8,o0)])):zi("v-if",!0)],64)}),128))])):zi("v-if",!0),e.hasAnyResults||e.showSpinner||e.hideNoResults?(Ai(),Si(gi,{key:3},["fixed-header"===e.displayProperties.listType?(Ai(!0),Si(gi,{key:0},Yr(e.results,function(t,n){return Ai(),Si("div",{class:"kb-general-search__group",key:n},[Mi("h2",{class:"kb-general-search__group__letter",id:"month-".concat(t.key)},[Fi(fe(t.month)+" ",1),t.year?(Ai(),Si("span",d0,fe(t.year),1)):zi("v-if",!0)],8,u0),Mi("ul",{class:Y(["kb-general-search__results",e.displayModifications])},[(Ai(!0),Si(gi,null,Yr(t.entries,function(t,n){return Ai(),Si(gi,{key:n},[t.isSpotCard?(Ai(),Si("li",p0,[(Ai(),Ti(Kr(e.spotCardComponent),{spotCardData:t},null,8,["spotCardData"]))])):(Ai(),Si("li",f0,[(Ai(),Ti(Kr(e.displayProperties.card),{result:t,displayProperties:e.displayProperties,imageRatio:e.getResultImageRatio(t),imageType:e.getResultImageType(t)},null,8,["result","displayProperties","imageRatio","imageType"]))]))],64)}),128))],2)])}),128)):(Ai(),Si("ul",{key:1,class:Y(["kb-general-search__results",e.displayModifications])},[(Ai(!0),Si(gi,null,Yr(e.results,function(t,n){return Ai(),Si(gi,{key:n},[t.isSpotCard?(Ai(),Ti(Kr(e.spotCardComponent),{key:0,spotCardData:t},null,8,["spotCardData"])):(Ai(),Ti(Kr(e.displayProperties.card),{key:1,result:t,displayProperties:e.displayProperties,imageRatio:e.getResultImageRatio(t),imageType:e.getResultImageType(t)},null,8,["result","displayProperties","imageRatio","imageType"]))],64)}),128))],2))],64)):(Ai(),Si(gi,{key:2},[e.displayProperties.showCtaButton?(Ai(),Si("div",r0,[e.displayProperties.showCtaButton&&e.getLabel("ctaLink")?(Ai(),Si("div",a0,[Mi("a",{class:"kb-button kb-button--full-color-spot",href:e.getLabel("ctaLink")},fe(e.getLabel("ctaLinkText")),9,i0)])):zi("v-if",!0)])):zi("v-if",!0),Mi("div",l0,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",s0,fe(e.getLabel("noResultDesc")),1),Mi("a",{href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,c0)])],64)),Mi("div",m0,[e.resultCount?(Ai(),Si("span",g0,fe(e.resultOutForLabel),1)):zi("v-if",!0),e.canShowMore?(Ai(),Si("button",{key:1,onClick:t[0]||(t[0]=function(){return e.getMoreResults&&e.getMoreResults.apply(e,arguments)}),class:"kb-button kb-button--full-color"},fe(e.getLabel("showMoreButtonText")),1)):zi("v-if",!0)]),e.showSpinner?(Ai(),Si("div",h0,(i=t[2]||(t[2]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return WQ(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return WQ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WQ(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)],64))],2112)}]]);var G1=".kb-component--general-search",K1=document.querySelectorAll(G1),Z1=["id","href"],W1={class:"kb-group-card-b"},$1={class:"kb-group-card-b__title"},Y1={class:"kb-group-card-b__description"},J1={class:"kb-group-card-b__badges"},X1={class:"kb-group-card-b__badges-badge"},Q1={key:0},e2={key:1,class:"kb-group-card-b__badges-badge__skeleton"},t2={class:"kb-group-card-b__badges-badge"},n2={key:0},o2={key:1,class:"kb-group-card-b__badges-badge__skeleton"};const r2={name:"GroupCard",props:{content:{type:Object,default:{}}},setup:function(e){var t,n=Af(),o=null!==(t=e.content.groupId)&&void 0!==t?t:e.content.id,r=bl(function(){return n.state.forum.group_statistics[o]}),a=bl(function(){var e;return null===(e=r.value)||void 0===e?void 0:e.memberCount}),i=bl(function(){var e;return null===(e=r.value)||void 0===e?void 0:e.postsCount}),l=bl(function(){var t;return(null===(t=e.content.description)||void 0===t?void 0:t.split("\n"))||[]});return Dr(function(){n.dispatch("forum/getGroupStatistics",{groupId:o})}
2),{memberCount:a,postsCount:i,descriptionLines:l,getLabel:function(e){return n.getters["labels/getLabel"]({labelCollection:"GroupCard",labelKey:e})}}}},a2=r2,i2=(0,Hb.A)(a2,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{id:e.content.id,href:e.content.href},[Mi("article",W1,[Mi("h3",$1,fe(e.content.title),1),(Ai(!0),Si(gi,null,Yr(e.descriptionLines,function(e){return Ai(),Si("li",{key:e},[Mi("p",Y1,fe(e),1)])}),128)),Mi("div",J1,[Mi("p",X1,[t[0]||(t[0]=Mi("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M4.5 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm.5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm1 6.15c0-1.203.91-2.15 2-2.15 1.09 0 2 .947 2 2.15v2.85h.5V9.993A2.496 2.496 0 0 1 13 7.5c1.381 0 2.5 1.117 2.5 2.493V13h-1v.5H16V9.993A2.996 2.996 0 0 0 13 7a3 3 0 0 0-2.898 2.216C9.66 8.488 8.89 8 8 8c-.889 0-1.66.488-2.102 1.216A3 3 0 0 0 3 7C1.344 7 0 8.34 0 9.993V13.5h1.5V13h-1V9.993A2.496 2.496 0 0 1 3 7.5c1.381 0 2.5 1.117 2.5 2.493V13.5H6v-2.85ZM13 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0 .5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-3.75-.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm.5 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z","clip-rule":"evenodd"})],-1)),void 0!==e.memberCount?(Ai(),Si("span",Q1,fe(e.memberCount)+" "+fe(e.getLabel("membersLabel")),1)):(Ai(),Si("span",e2))]),Mi("p",t2,[t[1]||(t[1]=Mi("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},[Mi("g",{"clip-path":"url(#a)"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"M10.706 8.744h.024a.649.649 0 0 0 .62-.644V1.393a.651.651 0 0 0-.651-.649H1.024a.651.651 0 0 0-.651.651v6.047h1.674v-.558H.931V1.395a.093.093 0 0 1 .093-.093H10.7a.093.093 0 0 1 .093.093V8.1a.09.09 0 0 1-.091.089H3.072C.842 8.186.373 9.45.373 10.512v.279h.558v-.28c0-1.209.68-1.767 2.14-1.767h7.635Zm4.272-3.349h-2.884v.558h2.884a.093.093 0 0 1 .093.093v5.489h-1.117v.558h1.675V6.046a.65.65 0 0 0-.651-.65Zm-4.795 7.442h2.748c2.229 0 2.698 1.265 2.698 2.326v.279h-.558v-.28c0-1.209-.68-1.767-2.14-1.767H5.296a.65.65 0 0 1-.646-.642V9.488h.558v3.26a.09.09 0 0 0 .092.09h4.883Z","clip-rule":"evenodd"})]),Mi("defs",null,[Mi("clipPath",{id:"a"},[Mi("path",{fill:"#fff",d:"M0 0h16v16H0z"})])])],-1)),void 0!==e.postsCount?(Ai(),Si("span",n2,fe(e.postsCount)+" "+fe(e.getLabel("postsLabel")),1)):(Ai(),Si("span",o2))])])])],8,Z1)}]]);function l2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var s2={class:"kb-group-search-result"},c2={class:"kb-general-search__meta-top-container"},u2={class:"kb-general-search__results__result-number"},d2={class:"kb-group-search-result__cta"},p2=["href"],f2={class:"kb-group-search-result__list kb-list-results kb-list-results--grid-3col"},m2={key:0,class:"kb-active-groups__list-item"},g2={class:"kb-group-search-result__list"},h2={key:0,class:"kb-active-groups__list-item"},b2={key:0,class:"kb-general-search__more-results"},v2={class:"kb-general-search__more-results__text","aria-live":"polite"},y2={key:1,class:"kb-general-search__no-results"},_2={class:"kb-general-search__no-results__summary"},A2=["href"],k2={key:2,class:"kb-spinner-overlay"};function x2(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return w2(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(w2(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,w2(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,w2(d,"constructor",c),w2(c,"constructor",s),s.displayName="GeneratorFunction",w2(c,r,"GeneratorFunction"),w2(d),w2(d,r,"Generator"),w2(d,o,function(){return this}),w2(d,"toString",function(){return"[object Generator]"}),(x2=function(){return{w:a,m:p}})()}function w2(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}w2=function(e,t,n,o){function a(t,n){w2(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},w2(e,t,n,o)}function C2(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function E2(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){C2(a,o,r,i,l,"next",e)}function l(e){C2(a,o,r,i,l,"throw",e)}i(void 0)})}}const S2={name:"GroupSearchResult",components:{GroupCard:i2,SpotCardGrid:N1},props:{source:{type:String,required:!1},hovedgruppekode:{type:String,required:!1},guid:{type:String,required:!0},skip:{type:Number,required:!0,default:0},take:{type:Number,required:!0,default:10},spotCard:{type:Object,required:!1},disableInitialSearch:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=Af();Dr(function(){f()});var n=bl(function(){switch(e.source){case"frivillig-all":return"api/frivillig/[pageId]/groups".replace("[pageId]",t.state.main.page_id);case"frivillig-hovedgruppe":return"api/frivillig/[pageId]/hovedgruppe/[hovedgruppekode]/groups".replace("[pageId]",t.state.main.page_id).replace("[hovedgruppekode]",e.hovedgruppekode);default:return"da-DK/api/groupSearch/search/[pageId]/[guid]"}}),o=Kt(0),r="cancerforum"!=e.source,a=bl(function(){var n;return null!==(n=t.state.search.scoped_total[e.guid])&&void 0!==n?n:0}),i=bl(function(){var n;return null!==(n=t.state.search.queries[e.guid])&&void 0!==n?n:""}),l=bl(function(){var n;return null!==(n=t.state.search.results[e.guid])&&void 0!==n?n:[]}),s=bl(function(){var n;return null!==(n=t.getters["search/selectedTags"](e.guid))&&void 0!==n?n:[]}),c=bl(function(){return t.state.search.search_inprogress[e.guid]}),u=bl(function(){return t.state.search.show_results[e.guid]}),d=bl(function(){return l.value.length}),p=bl(function(){return u.value&&(r||i.value.length>0)}),f=function(){t.commit("search/set_replaceQueryInUrl",!1),t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:n.value}),!0!==e.disableInitialSearch&&t.dispatch("search/performSearch",{guid:e.guid,query:"",skip:e.skip,take:e.take})};bo(l,function(){var e=E2(x2().m(function e(t,n){var r;return x2().w(function(e){for(;;)switch(e.n){case 0:if(0!==o.value){e.n=1;break}return e.a(2);case 1:return r=t[o.value],e.n=2,Nn();case 2:document.getElementById(r.id).focus();case 3:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}());var m=function(){var n=E2(x2().m(function n(){var r,a=arguments;return x2().w(function(n){for(;;)switch(n.n){case 0:r=a.length>0&&void 0!==a[0]&&a[0],t.dispatch("search/performMoreSearch",{guid:e.guid}),r&&(o.value=l.value.length);case 1:return n.a(2)}},n)}));return function(){return n.apply(this,arguments)}}();return{isNotCancerforum:r,totalAmount:a,searchQuery:i,results:l,tags:s,showSpinner:c,showResults:u,resultCount:d,displaySearchResults:p,getMoreResults:m,getLabel:function(e,t){return dA({labelKey:e,labelCollection:"GroupSearchResult",params:t})}}}},T2=S2,I2=(0,Hb.A)(T2,[["render",function(e,t,n,o,r,a){var i,l=qr("SpotCardGrid"),s=qr("GroupCard");return io((Ai(),Si("article",s2,[Mi("div",c2,[Mi("div",u2,fe(e.totalAmount)+" "+fe(e.getLabel("resultCountTitle")),1),Mi("div",d2,[e.isNotCancerforum&&e.getLabel("ctaLink")?(Ai(),Si("a",{key:0,class:"kb-button kb-button--full-color-spot",href:e.getLabel("ctaLink")},fe(e.getLabel("ctaLinkText")),9,p2)):zi("v-if",!0)])]),Mi("ul",f2,[(Ai(!0),Si(gi,null,Yr(e.results,function(t,n){return Ai(),Si(gi,{key:n},[e.spotCard&&e.spotCard.position===n+1?(Ai(),Si("li",m2,[Ni(l,{spotCardData:e.spotCard},null,8,["spotCardData"])])):zi("v-if",!0),Mi("li",g2,[(Ai(),Ti(s,{content:t,key:t.
2id},null,8,["content"]))])],64)}),128)),e.spotCard&&e.spotCard.position>e.results.length?(Ai(),Si("li",h2,[Ni(l,{spotCardData:e.spotCard},null,8,["spotCardData"])])):zi("v-if",!0)]),e.results.length>0?(Ai(),Si("div",b2,[Mi("span",v2,fe(e.getLabel("resultOutForTitle",[e.results.length,e.totalAmount])),1),e.results.length<e.totalAmount?(Ai(),Si("button",{key:0,onClick:t[0]||(t[0]=function(){return e.getMoreResults()}),onKeydown:t[1]||(t[1]=cc(lc(function(t){return e.getMoreResults(!0)},["prevent"]),["enter"])),class:"kb-button kb-button--full-color"},fe(e.getLabel("showMoreButtonText")),33)):zi("v-if",!0)])):zi("v-if",!0),e.resultCount||e.showSpinner?zi("v-if",!0):(Ai(),Si("div",y2,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",_2,fe(e.getLabel("noResultDesc")),1),e.isNotCancerforum?(Ai(),Si("a",{key:0,href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,A2)):zi("v-if",!0)])),e.showSpinner?(Ai(),Si("div",k2,(i=t[2]||(t[2]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return l2(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return l2(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l2(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],512)),[[rs,e.displaySearchResults]])}]]);var B2={key:0,class:"kb-gruppeadgangsanmodning-list"},O2={class:"kb-gruppeadgangsanmodning-list__header"},L2={class:"kb-gruppeadgangsanmodning-list__title"},D2={class:"kb-gruppeadgangsanmodning-list__count"},M2={class:"kb-gruppeadgangsanmodning-list__items","aria-label":"Notifikationer"},N2=["aria-labelledby"],P2={class:"kb-gruppeadgangsanmodning-list__items-item-date"},R2={class:"kb-gruppeadgangsanmodning-list__items-item-text"},F2=["id"],V2=["id"],z2=["onClick"],U2=["onClick"];function j2(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return H2(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(H2(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,H2(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,H2(d,"constructor",c),H2(c,"constructor",s),s.displayName="GeneratorFunction",H2(c,r,"GeneratorFunction"),H2(d),H2(d,r,"Generator"),H2(d,o,function(){return this}),H2(d,"toString",function(){return"[object Generator]"}),(j2=function(){return{w:a,m:p}})()}function H2(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}H2=function(e,t,n,o){function a(t,n){H2(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},H2(e,t,n,o)}function q2(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function G2(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){q2(a,o,r,i,l,"next",e)}function l(e){q2(a,o,r,i,l,"throw",e)}i(void 0)})}}const K2={name:"GruppeadgangsanmodningList",props:{guid:{type:String,required:!0},skip:{type:Number,default:0},take:{type:Number,default:10}},setup:function(e){var t=Af(),n=bl(function(){var n;return null!==(n=t.state.search.results[e.guid])&&void 0!==n?n:[]}),o=bl(function(){var n;return null!==(n=t.state.search.scoped_total[e.guid])&&void 0!==n?n:0}),r=bl(function(){return t.state.search.search_inprogress[e.guid]});Dr(function(){t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:"api/gruppeadgangsanmodninger"}),t.dispatch("search/performSearch",{guid:e.guid,guery:"",skip:e.ski
2p,take:e.take})});var a=function(e){return t.getters["labels/getLabel"]({labelCollection:"gruppeadgangsanmodningList",labelKey:e})},i=function(){var e=G2(j2().m(function e(n){var o;return j2().w(function(e){for(;;)switch(e.n){case 0:return t.dispatch("forum/rejectGruppeadgangsanmodning",{gruppeadgangsanmodningId:n}),o=a("notificationRejectedLabel"),e.n=1,s(n,o);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=G2(j2().m(function e(n){var o;return j2().w(function(e){for(;;)switch(e.n){case 0:return t.dispatch("forum/approveGruppeadgangsanmodning",{gruppeadgangsanmodningId:n}),o=a("notificationConfirmedLabel"),e.n=1,s(n,o);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=G2(j2().m(function e(t,n){var o;return j2().w(function(e){for(;;)switch(e.n){case 0:return o=u(t),document.getElementById(o).innerHTML=n,e.n=1,new Promise(function(e){return setTimeout(e,2e3)});case 1:c();case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),c=function(){t.dispatch("search/performSearch",{guid:e.guid,guery:"",skip:0,take:n.value.length})},u=function(e){return"actions-"+e};return{notifications:n,totalNumberOfNotifications:o,showSpinner:r,getActionsElementId:u,getMoreNotifications:function(){t.dispatch("search/performMoreSearch",{guid:e.guid})},getLabel:a,rejectGruppeadgangsanmodning:i,approveGruppeadgangsanmodning:l}}},Z2=K2,W2=(0,Hb.A)(Z2,[["render",function(e,t,n,o,r,a){return e.notifications.length>0?(Ai(),Si("article",B2,[Mi("div",O2,[Mi("h2",L2,fe(e.getLabel("title")),1),Mi("span",D2,fe(e.notifications.length)+" "+fe(e.getLabel("resultCountTitle")),1)]),Mi("ul",M2,[(Ai(!0),Si(gi,null,Yr(e.notifications,function(t,n){return Ai(),Si("li",{class:"kb-gruppeadgangsanmodning-list__items-item",key:n},[Mi("article",{"aria-labelledby":t.id,class:"kb-gruppeadgangsanmodning-list__items-item-card"},[Mi("div",null,[Mi("time",P2,fe(t.date),1),Mi("p",R2,[Mi("strong",{id:t.id},fe(t.title),9,F2)])]),Mi("div",{id:e.getActionsElementId(t.id),class:"kb-gruppeadgangsanmodning-list__items-item-actions"},[Mi("button",{class:"kb-link",onClick:function(n){return e.approveGruppeadgangsanmodning(t.id)}},fe(e.getLabel("confirmNotificationLabel")),9,z2),Mi("button",{class:"kb-link",onClick:function(n){return e.rejectGruppeadgangsanmodning(t.id)}},fe(e.getLabel("rejectNotificationLabel")),9,U2)],8,V2)],8,N2)])}),128))])])):zi("v-if",!0)}]]),$2={name:"GtmTracker",props:{trackData:{type:String,required:!0}},setup:function(e){e.trackData&&window.dataLayer&&(window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e.trackData))}},Y2=(0,Hb.A)($2,[["render",function(e,t,n,o,r,a){return null}]]);function J2(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return X2(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(X2(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,X2(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,X2(d,"constructor",c),X2(c,"constructor",s),s.displayName="GeneratorFunction",X2(c,r,"GeneratorFunction"),X2(d),X2(d,r,"Generator"),X2(d,o,function(){return this}),X2(d,"toString",function(){return"[object Generator]"}),(J2=function(){return{w:a,m:p}})()}function X2(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}X2=function(e,t,n,o){function a(t,n){X2(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},X2(e,t,n,o)}function Q2(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function e4(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Q2(a,o,r,i,l,"next",e)}function l(e){Q2(a,o,r,i,l,"throw",e)}i(void 0)})}}const t4={name:"HeaderMegaMenu",setup:function(){var e=Af(),t=Kt(null),n=Kt(null),o=Kt(null),r=Kt(!1),a=Kt(null),i=Kt(null),l=Kt(!1),s=null,c=null,u=function(){var e=e4(J2().m(function e(n){var o;return J2().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Nn();case 1:null===(o=t.value)||void 0===o||null===(o=o.querySelector(n))||void 0===o||o.focus({preventScroll:!0});case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),d=function(){s&&window.clearTimeout(s),s=null},p=function(){var e=e4(J2().m(function e(){var t,s,u=arguments;return J2().w(function(e){for(;;)switch(e.n){case 0:if(t=u.length>0&&void 0!==u[0]&&u[0],d(),s=r.value?n.value:c,l.value=!1,o.value=null,r.value=!1,a.value=null,i.value=null,!t){e.n=2;break}return e.n=1,Nn();case 1:null==s||s.focus();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),f=function(){var e=e4(J2().m(function e(t){return J2().w(function(e){for(;;)switch(e.n){case 0:if(!r.value){e.n=2;break}return e.n=1,p(!1);case 1:case 3:return e.a(2);case 2:return l.value=!1,r.value=!0,a.value=null,i.value=null,t.currentTarget.blur(),e.n=3,u('[data-responsive-tab="0"]')}},e)}));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=e4(J2().m(function e(t,n){var o;return J2().w(function(e){for(;;)switch(e.n){case 0:if(!(o=window.matchMedia("(min-width: 768px)").matches)||a.value!==t){e.n=1;break}return l.value=!1,a.value=null,i.value=null,n.currentTarget.focu
2s({preventScroll:!0}),e.a(2);case 1:if(l.value=null!==a.value&&a.value!==t,a.value=t,i.value=null,!o){e.n=3;break}return e.n=2,u("#m15-responsive-tab-".concat(t," .kb-header-mega-menu__responsive-category > button"));case 2:case 4:return e.a(2);case 3:return e.n=4,u("#m15-responsive-tab-".concat(t," .kb-header-mega-menu__responsive-back"))}},e)}));return function(t,n){return e.apply(this,arguments)}}(),g=function(){var e=e4(J2().m(function e(){var t;return J2().w(function(e){for(;;)switch(e.n){case 0:return l.value=!1,t=a.value,a.value=null,i.value=null,e.n=1,u('[data-responsive-tab="'.concat(t,'"]'));case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),h=function(e){t.value&&!t.value.contains(e.target)&&p(!1)},b=function(){return p(!1)};return Dr(function(){document.addEventListener("pointerdown",h),window.addEventListener("resize",b)}),Pr(function(){document.removeEventListener("pointerdown",h),window.removeEventListener("resize",b),d()}),{root:t,menuToggle:n,openTab:o,responsiveMenuOpen:r,responsiveTab:a,responsiveCategory:i,motionSequenced:l,openMenu:function(e,t){d(),l.value=null!==o.value&&o.value!==e,o.value=e,t&&(c=t.currentTarget)},closeMenu:p,focusDesktopPanel:function(e){o.value=e,u("#m15-panel-".concat(e," a, #m15-panel-").concat(e," button"))},scheduleClose:function(){d(),s=window.setTimeout(function(){l.value=!1,o.value=null},150)},cancelClose:d,toggleResponsiveMenu:f,selectResponsiveTab:m,clearResponsiveTab:g,toggleCategory:function(e,t,n){var o="".concat(e,"-").concat(t);i.value=i.value===o?null:o,n.currentTarget.focus({preventScroll:!0})},startSearchoverlay:function(t){e.dispatch("main/openPageOverlay",{overlayContent:"SearchOverlay",returnTarget:t.currentTarget})}}}};function n4(e){return function(e){if(Array.isArray(e))return o4(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o4(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o4(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const r4={name:"HeroGeneralSearch",props:{guids:{type:Array,required:!0},primaryTagsDisplayed:{type:Number,required:!0}},setup:function(e){var t=Af(),n=Kt(!1),o=bl(function(){return"FilterOverlay"===t.state.main.page_overlay_content}),r=bl({get:function(){var n;return null!==(n=t.state.search.queries[e.guids[0]])&&void 0!==n?n:""},set:function(n){e.guids&&e.guids.length&&e.guids.forEach(function(e){return t.dispatch("search/setSearchQuery",{guid:e,query:n})})}}),a=bl(function(){var n=[];return e.guids.forEach(function(e){var o=t.getters["search/allPrimaryTags"](e);o&&n.push.apply(n,n4(o))}),n4(new Map(n.map(function(e){return[e.facetId,e]})).values()).slice(0,e.primaryTagsDisplayed)}),i=Hx(function(){e.guids.forEach(function(e){t.dispatch("search/performSearch",{guid:e,query:r.value})})},500);return Dr(function(){t.commit("search/set_filter_overlay_scopes",e.guids),n.value=!0}),{inputText:r,filterOnTag:function(n){e.guids.forEach(function(e){t.dispatch("search/performSearch",{guid:e,query:r.value,facet:n})})},startFilterOverlay:function(n){e.guids.forEach(function(e){t.dispatch("main/openPageOverlay",{overlayContent:"FilterOverlay",returnTarget:n.currentTarget})}),console.log("store.state.main.page_overlay_content",t.state.main.page_overlay_content),console.log('store.state.main.page_overlay_content === "FilterOverlay" ',"FilterOverlay"===t.state.main.page_overlay_content),console.log("tagMoreFiltersButtonStatus.value ",o.value)},tagDisplay:a,termInput:i,hasTags:n,tagMoreFiltersButtonStatus:o}}};var a4=".kb-component--hero-general-search",i4=document.querySelector(a4);function l4(e){return function(e){if(Array.isArray(e))return s4(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s4(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s4(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c4=["aria-label"],u4={class:"kb-image-module__image-container"},d4={class:"kb-image-module__image"},p4=["srcset"],f4=["srcset"],m4=["alt"],g4={key:1,class:"kb-image-gallery__thumbnail-list"},h4=["onClick","aria-label","aria-current"],b4={class:"kb-image-module__image-container"},v4={class:"kb-image-module__image"},y4=["srcset"],_4=["srcset"],A4=["alt"],k4={class:"glide kb-image-gallery__glide",id:"imageGalleryGlideId"},x4={class:"glide__track kb-image-gallery__glide__track","data-glide-el":"track"},w4={class:"glide__slides"},C4=["onClick","aria-label","aria-current"],E4={class:"kb-image-module__image-container"},S4={class:"kb-image-module__image"},T4=["srcset"],I4=["srcset"],B4=["alt"],O4={"data-glide-el":"controls[nav]",class:"kb-image-gallery__glide-control
2s glide__bullets"},L4=["data-glide-dir"],D4=["aria-label"],M4={class:"kb-image-module__image-container"},N4={class:"kb-image-module__image"},P4=["srcset"],R4=["srcset"],F4=["alt"],V4=["onClick"],z4=["onClick"],U4=["onClick"];function j4(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}j4(".vel-fade-enter-active,.vel-fade-leave-active{-webkit-transition:all .3s ease;transition:all .3s ease}.vel-fade-enter-from,.vel-fade-leave-to{opacity:0}.vel-img-swiper{display:block;position:relative}.vel-modal{background:rgba(0,0,0,.5);bottom:0;left:0;margin:0;position:fixed;right:0;top:0;z-index:9998}.vel-img-wrapper{left:50%;margin:0;position:absolute;top:50%;-webkit-transform:translate(-50% -50%);transform:translate(-50% -50%);-webkit-transition:.3s linear;transition:.3s linear;will-change:transform opacity}.vel-img,.vel-img-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vel-img{background-color:rgba(0,0,0,.7);-webkit-box-shadow:0 5px 20px 2px rgba(0,0,0,.7);box-shadow:0 5px 20px 2px rgba(0,0,0,.7);display:block;max-height:80vh;max-width:80vw;position:relative;-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}@media (max-width:750px){.vel-img{max-height:95vh;max-width:85vw}}.vel-btns-wrapper{position:static}.vel-btns-wrapper .btn__close,.vel-btns-wrapper .btn__next,.vel-btns-wrapper .btn__prev{-webkit-tap-highlight-color:transparent;color:#fff;cursor:pointer;font-size:32px;opacity:.6;outline:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:.15s linear;transition:.15s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vel-btns-wrapper .btn__close:hover,.vel-btns-wrapper .btn__next:hover,.vel-btns-wrapper .btn__prev:hover{opacity:1}.vel-btns-wrapper .btn__close.disable,.vel-btns-wrapper .btn__close.disable:hover,.vel-btns-wrapper .btn__next.disable,.vel-btns-wrapper .btn__next.disable:hover,.vel-btns-wrapper .btn__prev.disable,.vel-btns-wrapper .btn__prev.disable:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next{right:12px}.vel-btns-wrapper .btn__prev{left:12px}.vel-btns-wrapper .btn__close{right:10px;top:24px}@media (max-width:750px){.vel-btns-wrapper .btn__next,.vel-btns-wrapper .btn__prev{font-size:20px}.vel-btns-wrapper .btn__close{font-size:24px}.vel-btns-wrapper .btn__next{right:4px}.vel-btns-wrapper .btn__prev{left:4px}}.vel-modal.is-rtl .vel-btns-wrapper .btn__next{left:12px;right:auto}.vel-modal.is-rtl .vel-btns-wrapper .btn__prev{left:auto;right:12px}@media (max-width:750px){.vel-modal.is-rtl .vel-btns-wrapper .btn__next{left:4px;right:auto}.vel-modal.is-rtl .vel-btns-wrapper .btn__prev{left:auto;right:4px}}.vel-modal.is-rtl .vel-img-title{direction:rtl}"),j4('.vel-loading{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vel-loading .ring{display:inline-block;height:64px;width:64px}.vel-loading .ring:after{-webkit-animation:ring 1.2s linear infinite;animation:ring 1.2s linear infinite;border-color:hsla(0,0%,100%,.7) transparent;border-radius:50%;border-style:solid;border-width:5px;content:" ";display:block;height:46px;margin:1px;width:46px}@-webkit-keyframes ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}'),j4(".vel-on-error{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vel-on-error .icon{color:#aaa;font-size:80px}"),j4(".vel-img-title{bottom:60px;color:#ccc;cursor:default;font-size:12px;left:50%;line-height:1;max-width:80%;opacity:.8;overflow:hidden;position:absolute;text-align:center;text-overflow:ellipsis;-webkit-transform:translate(-50%);transform:translate(-50%);-webkit-transition:opacity .15s;transition:opacity .15s;white-space:nowrap}.vel-img-title:hover{opacity:1}"),j4(".vel-icon{fill:currentColor;height:1em;overflow:hidden;vertical-align:-.15em;width:1em}"),j4(".vel-toolbar{border-radius:4px;bottom:8px;display:-webkit-box;display:-ms-flexbox;display:flex;left:50%;opacity:.9;overflow:hidden;padding:0;position:absolute;-webkit-transform:translate(-50%);transform:translate(-50%)}.vel-toolbar,.vel-toolbar .toolbar-btn{background-color:#2d2d2d;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vel-toolbar .toolbar-btn{-ms-flex-negative:0;-webkit-tap-highlight-color:transparent;color:#fff;cursor:pointer;flex-shrink:0;font-size:20px;outline:none;padding:6px 10px}.vel-toolbar .toolbar-btn:active,.vel-toolbar .toolbar-btn:hover{background-color:#3d3d3d}");const H4="vel",q4=Ko({name:"SvgIcon",props:{type:{type:String,default:""}},setup:e=>()=>Ni("svg",{class:`${H4}-icon icon`,"aria-hidden":"true"},[Ni("use",{"xlink:href":`#icon-${e.type}`},null)])}),G4="undefined"!=typeof window,K4=()=>{};let Z4=!1;if(G4)try{const e={};Object.defineProperty(e,"passive",{get(){Z4=!0}}),window.addEventListener("test-passive",K4,e)}catch(Dhe){}const W4=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];G4&&e.addEventListener(t,n,!!Z4&&{capture:!1,passive:o})},$4=(e,t,n)=>{G4&&e.removeEventListener(t,n)},Y4=e=>{e.preventDefault()},J4=Object.prototype.toString,X4=e=>t=>J4.call(t).slice(8,-1)===e,Q4=e=>!!e&&X4("String")(e);function e3(e){return null!=e}const t3=Ko({name:"Toolbar",props:{zoomIn:{type:Function,default:K4},zoomOut:{type:Function,default:K4},rotateLeft:{type:Function,default:K4},rotateRight:{type:Function,default:K4},resize:{type:Function,default:K4},rotateDisabled:{type:Boolean,default:!1},zoomDisabled:{type:Boolean,default:!1}},setup:e=>()=>Ni("div",{class:`${H4}-toolbar`},[!e.zoomDisabled&&Ni(gi,null,[Ni("div",{role:"button","aria-label":"zoom in button",class:"toolbar-btn toolbar-btn__zoomin",onClick:e.zoomIn},[Ni(q4,{type:"zoomin"},null)]),Ni("div",{role:"button","aria-label":"zoom out button",class:"toolbar-btn toolbar-btn__zoomout",onClick:e.zoomOut},[Ni(q4,{type:"zoomout"},null)])]),Ni("div",{role:"button","aria-label":"resize image button",class:"toolbar-btn toolbar-btn__resize",onClick:e.resize},[Ni(q4,{type:"resize"},null)]),!e.rotateDisabled&&Ni(gi,null,[Ni("div",{role:"button","aria-label":"image rotate left button",class:"toolbar-btn toolbar-btn__rotate",onClick:e.rotateLeft},[Ni(q4,{type:"rotate-left"},null)]),Ni("div",{role:"button","aria-label":"image rotate right button",class:"toolbar-btn toolbar-btn__rotate",onClick:e.rotateRight},[Ni(q4,{type:"rotate-right"},null)])])])}),n3=()=>Ni("div",{class:`${H4}-loading`},[Ni("div",{class:"ring"},null)]),o3=()=>Ni("div",{class:`${H4}-on-error`},[Ni("div",{class:"ring"},null),Ni(q4,{type:"img-broken"},null)]),r3=(e,t)=>
2{let{slots:n}=t;return Ni("div",{class:`${H4}-img-title`},[n.default?n.default():""])},a3=Ko({name:"DefaultIcons",setup:()=>()=>Ni("svg",{"aria-hidden":!0,style:"position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden;"},[Ni("symbol",{id:"icon-rotate-right",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M275.199914 450.496179v20.031994c0.384-38.079988 12.543996-67.423979 36.479989-87.967973 22.431993-20.351994 49.215985-30.55999 80.319975-30.55999 32.06399 0 59.295981 10.175997 81.759974 30.55999 22.815993 20.543994 34.591989 49.887984 35.359989 87.967973v123.935961c-0.768 37.887988-12.543996 67.135979-35.359989 87.679973-22.431993 20.351994-49.695984 30.75199-81.759974 31.10399a120.255962 120.255962 0 0 1-72.991978-24.895992c-21.503993-15.839995-35.359989-38.751988-41.567987-68.735979h60.831981c9.247997 23.007993 27.167992 34.495989 53.759983 34.49599 37.535988-0.384 56.863982-21.407993 57.983982-63.071981v-38.751988c-28.095991 8.863997-54.303983 13.119996-78.623975 12.735996a91.263971 91.263971 0 0 1-68.447979-27.711991c-18.847994-18.303994-28.095991-47.231985-27.711991-86.847973z m62.55998 24.863992c7.103998 24.799992 25.215992 37.343988 54.271983 37.663989 27.103992-0.288 44.703986-11.327996 52.831984-33.11999 3.135999-8.383997 2.655999-29.599991-1.28-38.559988-8.607997-19.615994-25.791992-29.695991-51.551984-30.20799-28.383991 0.576-46.303986 12.639996-53.759983 36.159988a58.719982 58.719982 0 0 0-0.512 28.063991z m390.335878 115.711964v-116.895963c-1.12-41.311987-20.447994-62.335981-57.983981-63.07198-37.727988 0.768-56.959982 21.791993-57.695982 63.07198v116.895963c0.768 41.663987 19.999994 62.68798 57.695982 63.071981 37.535988-0.384 56.863982-21.407993 57.983981-63.071981z m-174.815945 3.391999v-123.935961c0.384-38.079988 12.543996-67.423979 36.479989-87.967973 22.431993-20.351994 49.215985-30.55999 80.319975-30.55999 32.06399 0 59.295981 10.175997 81.759974 30.55999 22.815993 20.543994 34.591989 49.887984 35.359989 87.967973v123.935961c-0.768 37.887988-12.543996 67.135979-35.359989 87.679973-22.431993 20.351994-49.695984 30.75199-81.759974 31.10399-31.10399-0.384-57.887982-10.751997-80.319975-31.10399-23.935993-20.543994-36.127989-49.791984-36.479989-87.679973z m282.559912-479.07185A509.887841 509.887841 0 0 0 511.99984 0.00032C229.215928 0.00032 0 229.216248 0 512.00016s229.215928 511.99984 511.99984 511.99984 511.99984-229.215928 511.99984-511.99984c0-3.743999-0.032-7.455998-0.128-11.167997-1.631999-11.295996-8.159997-27.103992-31.87199-27.103991-27.487991 0-31.67999 21.247993-32.03199 32.06399l0.032 4.127999a30.62399 30.62399 0 0 0 0.16 2.079999H959.9997c0 247.423923-200.575937 447.99986-447.99986 447.99986S63.99998 759.424083 63.99998 512.00016 264.575917 64.0003 511.99984 64.0003a446.079861 446.079861 0 0 1 277.439913 96.22397l-94.91197 91.679971c-25.439992 24.607992-17.439995 44.991986 17.887994 45.599986l188.031942 3.295999a64.31998 64.31998 0 0 0 65.055979-62.84798l3.295999-188.127942C969.407697 15.040315 949.311703 5.792318 923.871711 30.368311l-87.999972 85.023973z",fill:""},null)]),Ni("symbol",{id:"icon-rotate-left",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M275.199914 450.496179v20.031994c0.384-38.079988 12.543996-67.423979 36.479989-87.967973 22.431993-20.351994 49.215985-30.55999 80.319975-30.55999 32.06399 0 59.295981 10.175997 81.759974 30.55999 22.815993 20.543994 34.591989 49.887984 35.359989 87.967973v123.935961c-0.768 37.887988-12.543996 67.135979-35.359989 87.679973-22.431993 20.351994-49.695984 30.75199-81.759974 31.10399a120.255962 120.255962 0 0 1-72.991978-24.895992c-21.503993-15.839995-35.359989-38.751988-41.567987-68.735979h60.831981c9.247997 23.007993 27.167992 34.495989 53.759983 34.49599 37.535988-0.384 56.863982-21.407993 57.983982-63.071981v-38.751988c-28.095991 8.863997-54.303983 13.119996-78.623975 12.735996a91.263971 91.263971 0 0 1-68.447979-27.711991c-18.847994-18.303994-28.095991-47.231985-27.711991-86.847973z m62.55998 24.863992c7.103998 24.799992 25.215992 37.343988 54.271983 37.663989 27.103992-0.288 44.703986-11.327996 52.831984-33.11999 3.135999-8.383997 2.655999-29.599991-1.28-38.559988-8.607997-19.615994-25.791992-29.695991-51.551984-30.20799-28.383991 0.576-46.303986 12.639996-53.759983 36.159988a58.719982 58.719982 0 0 0-0.512 28.063991z m390.335878 115.711964v-116.895963c-1.12-41.311987-20.447994-62.335981-57.983981-63.07198-37.727988 0.768-56.959982 21.791993-57.695982 63.07198v116.895963c0.768 41.663987 19.999994 62.68798 57.695982 63.071981 37.535988-0.384 56.863982-21.407993 57.983981-63.071981z m-174.815945 3.391999v-123.935961c0.384-38.079988 12.543996-67.423979 36.479989-87.967973 22.431993-20.351994 49.215985-30.55999 80.319975-30.55999 32.06399 0 59.295981 10.175997 81.759974 30.55999 22.815993 20.543994 34.591989 49.887984 35.359989 87.967973v123.935961c-0.768 37.887988-12.543996 67.135979-35.359989 87.679973-22.431993 20.351994-49.695984 30.75199-81.759974 31.10399-31.10399-0.384-57.887982-10.751997-80.319975-31.10399-23.935993-20.543994-36.127989-49.791984-36.479989-87.679973zM188.159941 115.392284A509.887841 509.887841 0 0 1 511.99984 0.00032c282.783912 0 511.99984 229.215928 511.99984 511.99984s-229.215928 511.99984-511.99984 511.99984S0 794.784072 0 512.00016c0-3.743999 0.032-7.455998 0.128-11.167997 1.631999-11.295996 8.159997-27.103992 31.87199-27.103991 27.487991 0 31.67999 21.247993 32.03199 32.06399L63.99998 509.920161a30.62399 30.62399 0 0 1-0.16 2.079999H63.99998c0 247.423923 200.575937 447.99986 447.99986 447.99986s447.99986-200.5
275937 447.99986-447.99986S759.423763 64.0003 511.99984 64.0003a446.079861 446.079861 0 0 0-277.439913 96.22397l94.91197 91.679971c25.439992 24.607992 17.439995 44.991986-17.887994 45.599986L123.551961 300.800226a64.31998 64.31998 0 0 1-65.055979-62.84798l-3.295999-188.127942C54.591983 15.040315 74.687977 5.792318 100.127969 30.368311l87.999972 85.023973z",fill:""},null)]),Ni("symbol",{id:"icon-resize",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M456.036919 791.8108 270.553461 791.8108 460.818829 601.572038l-39.593763-39.567157L231.314785 751.915162l0.873903-183.953615c0-15.465227-12.515035-27.981285-27.981285-27.981285s-27.981285 12.515035-27.981285 27.981285l0 251.829516c0 8.3072 3.415796 14.975063 8.826016 19.564591 5.082762 5.192256 12.132318 8.416693 19.947308 8.416693l251.036453 0c15.46625 0 27.981285-12.514012 27.981285-27.981285C484.018204 804.325835 471.504192 791.8108 456.036919 791.8108zM838.945819 184.644347c-5.082762-5.191232-12.132318-8.416693-19.947308-8.416693L567.961034 176.227654c-15.46625 0-27.981285 12.515035-27.981285 27.981285 0 15.46625 12.514012 27.981285 27.981285 27.981285l185.483458 0L563.206754 422.427962l39.567157 39.567157 189.910281-189.910281-0.873903 183.953615c0 15.46625 12.514012 27.981285 27.981285 27.981285s27.981285-12.514012 27.981285-27.981285L847.772858 204.208938C847.771835 195.902762 844.356039 189.234899 838.945819 184.644347zM847.771835 64.303538 176.227142 64.303538c-61.809741 0-111.924115 50.115398-111.924115 111.924115l0 671.544693c0 61.809741 50.114374 111.924115 111.924115 111.924115l671.544693 0c61.809741 0 111.924115-50.114374 111.924115-111.924115l0-671.544693C959.69595 114.418936 909.581576 64.303538 847.771835 64.303538zM903.733381 847.772346c0 30.878265-25.056676 55.962569-55.962569 55.962569L176.227142 903.734916c-30.90487 0-55.962569-25.084305-55.962569-55.962569l0-671.544693c0-30.9325 25.056676-55.962569 55.962569-55.962569l671.544693 0c30.90487 0 55.962569 25.03007 55.962569 55.962569L903.734404 847.772346z"},null)]),Ni("symbol",{id:"icon-img-broken",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z"},null)]),Ni("symbol",{id:"icon-prev",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z"},null)]),Ni("symbol",{id:"icon-next",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z"},null)]),Ni("symbol",{id:"icon-zoomin",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z"},null),Ni("path",{d:"M235.712 369.92h390.72v127.104H235.712z"},null),Ni("path",{d:"M367.488 238.144h127.104v390.72H367.488z"},null)]),Ni("symbol",{id:"icon-close",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z"},null)]),Ni("symbol",{id:"icon-zoomout",viewBox:"0 0 1024 1024"},[Ni("path",{d:"M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z"},null),Ni("path",{d:"M235.712 369.92h390.72v127.104H235.712z"},null)])])}),i3=G4?window:r.g;let l3=Date.now();function s3(e){const t=Date.now(),n=Math.max(0,16-(t-l3)),o=setTimeout(e,n);return l3=t+n,o}function c3(e){return(i3.requestAnimationFrame||s3).call(i3,e)}function u3(e){(i3.cancelAnimationFrame||i3.clearTimeout).call(i3,e)}function d3(e,t){const n=e.clientX-t.clientX,o=e.clientY-t.clientY;return Math.sqrt(n*n+o*o)}function p3(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ii(e)}var f3=Ko({name:"VueEasyLightbox",props:{imgs:{type:[Array,String],default:()=>""},visible:{type:Boolean,default:!1},index:{type:Number,default:0},scrollDisabled:{type:Boolean,default:!0},escDisabled:{type:Boolean,default:!1},moveDisabled:{type:Boolean,default:!1},titleDisabled:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},teleport:{type:[String,Object],default:null},swipeTolerance:{type:Number,default:50},loop:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},zoomScale:{type:Number,default:.12},maxZoom:{type:Number,default:3},minZoom:{type:Number,default:.1},rotateDisabled:{type:Boolean,default:!1},zoomDisabled:{type:Boolean,default:!1},pinchDisabled:{type:Boolean,default:!1},dblclickDisabled:{type:Boolean,default:!1}},emits:{hide:()=>!0,"on-error":e=>!0,"on-prev":(e,t)=>!0,"on-next":(e,t)=>!0,"on-prev-click":(e,t)=>
2!0,"on-next-click":(e,t)=>!0,"on-index-change":(e,t)=>!0,"on-rotate":e=>!0},setup(e,t){let{emit:n,slots:o}=t;const{imgRef:r,imgState:a,setImgSize:i}=(()=>{const e=Kt(),t=Lt({width:0,height:0,maxScale:1});return{imgRef:e,imgState:t,setImgSize:()=>{if(e.value){const{width:n,height:o,naturalWidth:r}=e.value;t.maxScale=r/n,t.width=n,t.height=o}}}})(),l=Kt(e.index),s=Kt(""),c=Lt({scale:1,lastScale:1,rotateDeg:0,top:0,left:0,initX:0,initY:0,lastX:0,lastY:0,touches:[]}),u=Lt({loadError:!1,loading:!1,dragging:!1,gesturing:!1,wheeling:!1}),d=bl(()=>{return t=e.imgs,X4("Array")(t)?e.imgs.map(e=>"string"==typeof e?{src:e}:function(e){return(e=>!!e&&X4("Object")(e))(e)&&Q4(e.src)}(e)?e:void 0).filter(e3):Q4(e.imgs)?[{src:e.imgs}]:[];var t}),p=bl(()=>d.value[l.value]),f=bl(()=>d.value[l.value]?.src),m=bl(()=>d.value[l.value]?.title),g=bl(()=>d.value[l.value]?.alt),h=bl(()=>({cursor:u.loadError?"default":e.moveDisabled?u.dragging?"grabbing":"grab":"move",top:`calc(50% + ${c.top}px)`,left:`calc(50% + ${c.left}px)`,transition:u.dragging||u.gesturing?"none":"",transform:`translate(-50%, -50%) scale(${c.scale}) rotate(${c.rotateDeg}deg)`})),b=()=>{n("hide")},v=()=>{c.scale=1,c.lastScale=1,c.rotateDeg=0,c.top=0,c.left=0,u.loadError=!1,u.dragging=!1,u.loading=!0},y=(t,o)=>{const r=l.value;v(),l.value=t,d.value[l.value]===d.value[t]&&Nn(()=>{u.loading=!1}),e.visible&&r!==t&&(o&&o(r,t),n("on-index-change",r,t))},_=()=>{const t=l.value,o=e.loop?(t+1)%d.value.length:t+1;!e.loop&&o>d.value.length-1||y(o,(e,t)=>{n("on-next",e,t),n("on-next-click",e,t)})},A=()=>{const t=l.value;let o=t-1;if(0===t){if(!e.loop)return;o=d.value.length-1}y(o,(e,t)=>{n("on-prev",e,t),n("on-prev-click",e,t)})},k=e=>{Math.abs(1-e)<.05?e=1:Math.abs(a.maxScale-e)<.05&&(e=a.maxScale),c.lastScale=c.scale,c.scale=e},x=()=>{const t=c.scale+e.zoomScale;t<a.maxScale*e.maxZoom&&k(t)},w=()=>{const t=c.scale-e.zoomScale;t>e.minZoom&&k(t)},C=()=>{const e=c.rotateDeg%360;n("on-rotate",Math.abs(e<0?e+360:e))},E=()=>{c.rotateDeg-=90,C()},S=()=>{c.rotateDeg+=90,C()},T=()=>{c.scale=1,c.top=0,c.left=0},I=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return!e.moveDisabled&&0===t},{onMouseDown:B,onMouseMove:O,onMouseUp:L}=((e,t,n)=>{let o,r=!1;return{onMouseDown:n=>{e.initX=e.lastX=n.clientX,e.initY=e.lastY=n.clientY,t.dragging=!0,r=!1,n.stopPropagation()},onMouseUp:e=>{n(e.button)&&u3(o),t.dragging=!1,r=!1},onMouseMove:a=>{if(t.dragging)if(n(a.button)){if(r)return;r=!0,o=c3(()=>{const{top:t,left:n,lastY:o,lastX:i}=e;e.top=t-o+a.clientY,e.left=n-i+a.clientX,e.lastX=a.clientX,e.lastY=a.clientY,r=!1})}else e.lastX=a.clientX,e.lastY=a.clientY;a.stopPropagation()}}})(c,u,I),{onTouchStart:D,onTouchMove:M,onTouchEnd:N}=((e,t,n,o,r)=>{let a,i=!1;return{onTouchStart:e=>{const{touches:o}=e;o.length>1&&r()?(n.gesturing=!0,t.touches=o):(t.initX=t.lastX=o[0].clientX,t.initY=t.lastY=o[0].clientY,n.dragging=!0),e.stopPropagation()},onTouchMove:l=>{if(i)return;const{touches:s}=l,{lastX:c,lastY:u,left:d,top:p,scale:f}=t;if(!n.gesturing&&n.dragging){if(!s[0])return;const{clientX:e,clientY:n}=s[0];o()?a=c3(()=>{t.lastX=e,t.lastY=n,t.top=p-u+n,t.left=d-c+e,i=!1}):(t.lastX=e,t.lastY=n)}else n.gesturing&&t.touches.length>1&&s.length>1&&r()&&(a=c3(()=>{const n=(d3(t.touches[0],t.touches[1])-d3(s[0],s[1]))/e.width;t.touches=s;const o=f-1.3*n;o>.5&&o<1.5*e.maxScale&&(t.scale=o),i=!1}))},onTouchEnd:()=>{u3(a),n.dragging=!1,n.gesturing=!1,i=!1}}})(a,c,u,I,()=>!e.pinchDisabled),P=()=>{e.dblclickDisabled||(c.scale!==a.maxScale?(c.lastScale=c.scale,c.scale=a.maxScale):c.scale=c.lastScale)},R=t=>{u.loadError||u.gesturing||u.loading||u.dragging||u.wheeling||!e.scrollDisabled||e.zoomDisabled||(u.wheeling=!0,setTimeout(()=>{u.wheeling=!1},80),t.deltaY<0?x():w())},F=t=>{const n=t;e.visible&&(!e.escDisabled&&"Escape"===n.key&&e.visible&&b(),"ArrowLeft"===n.key&&(e.rtl?_():A()),"ArrowRight"===n.key&&(e.rtl?A():_()))},V=()=>{e.maskClosable&&b()},z=()=>{i()},U=()=>{u.loading=!1},j=e=>{u.loading=!1,u.loadError=!0,n("on-error",e)},H=()=>{e.visible&&i()};bo(()=>e.index,e=>{e<0||e>=d.value.length||y(e)}),bo(()=>u.dragging,(t,n)=>{const o=!t&&n;if(!I()&&o){const t=c.lastX-c.initX,n=c.lastY-c.initY,o=e.swipeTolerance;Math.abs(t)>Math.abs(n)&&(t<-1*o?_():t>o&&A())}}),bo(()=>e.visible,t=>{if(t){v();const t=d.value.length;if(0===t)return l.value=0,u.loading=!1,void Nn(()=>u.loadError=!0);l.value=e.index>=t?t-1:e.index<0?0:e.index,e.scrollDisabled&&q()}else e.scrollDisabled&&G()});const q=()=>
2{document&&(s.value=document.body.style.overflowY,document.body.style.overflowY="hidden")},G=()=>{document&&(document.body.style.overflowY=s.value)};Dr(()=>{W4(document,"keydown",F),W4(window,"resize",H)}),Pr(()=>{$4(document,"keydown",F),$4(window,"resize",H),e.scrollDisabled&&G()});const K=()=>{if(o["prev-btn"])return o["prev-btn"]({prev:A});if(d.value.length<=1)return;const t=!e.loop&&l.value<=0;return Ni("div",{role:"button","aria-label":"previous image button",class:"btn__prev "+(t?"disable":""),onClick:A},[e.rtl?Ni(q4,{type:"next"},null):Ni(q4,{type:"prev"},null)])},Z=()=>{if(o["next-btn"])return o["next-btn"]({next:_});if(d.value.length<=1)return;const t=!e.loop&&l.value>=d.value.length-1;return Ni("div",{role:"button","aria-label":"next image button",class:"btn__next "+(t?"disable":""),onClick:_},[e.rtl?Ni(q4,{type:"prev"},null):Ni(q4,{type:"next"},null)])},W=()=>{if(!(e.titleDisabled||u.loading||u.loadError))return o.title?o.title({currentImg:p.value}):m.value?Ni(r3,null,{default:()=>[m.value]}):void 0},$=()=>{let t;if(e.visible)return Ni("div",{onTouchmove:Y4,class:[`${H4}-modal`,e.rtl?"is-rtl":""],onClick:lc(V,["self"]),onWheel:R},[Ni(a3,null,null),Ni(jl,{name:`${H4}-fade`,mode:"out-in"},p3(t=u.loading?o.loading?o.loading({key:"loading"}):Ni(n3,{key:"img-loading"},null):u.loadError?o.onerror?o.onerror({key:"onerror"}):Ni(o3,{key:"img-on-error"},null):Ni("div",{class:`${H4}-img-wrapper`,style:h.value,key:"img-wrapper"},[Ni("img",{alt:g.value,ref:r,draggable:"false",class:`${H4}-img`,src:f.value,onMousedown:B,onMouseup:L,onMousemove:O,onTouchstart:D,onTouchmove:M,onTouchend:N,onLoad:z,onDblclick:P,onDragstart:e=>{e.preventDefault()}},null)]))?t:{default:()=>[t]}),Ni("img",{style:"display:none;",src:f.value,onError:j,onLoad:U},null),Ni("div",{class:`${H4}-btns-wrapper`},[K(),Z(),W(),o["close-btn"]?o["close-btn"]({close:b}):Ni("div",{role:"button","aria-label":"close image preview button",class:"btn__close",onClick:b},[Ni(q4,{type:"close"},null)]),o.toolbar?o.toolbar({toolbarMethods:{zoomIn:x,zoomOut:w,rotate:E,rotateLeft:E,rotateRight:S,resize:T},zoomIn:x,zoomOut:w,rotate:E,rotateLeft:E,rotateRight:S,resize:T}):Ni(t3,{zoomIn:x,zoomOut:w,resize:T,rotateLeft:E,rotateRight:S,rotateDisabled:e.rotateDisabled,zoomDisabled:e.zoomDisabled},null)])])};return()=>{let t;if(e.teleport){let t;return Ni(To,{to:e.teleport},{default:()=>[Ni(jl,{name:`${H4}-fade`},p3(t=$())?t:{default:()=>[t]})]})}return Ni(jl,{name:`${H4}-fade`},p3(t=$())?t:{default:()=>[t]})}}});const m3=Object.assign(f3,{install:e=>{e.component(f3.name,f3)}});function g3(e){return g3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g3(e)}function h3(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return b3(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(b3(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,b3(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,b3(d,"constructor",c),b3(c,"constructor",s),s.displayName="GeneratorFunction",b3(c,r,"GeneratorFunction"),b3(d),b3(d,r,"Generator"),b3(d,o,function(){return this}),b3(d,"toString",function(){return"[object Generator]"}),(h3=function(){return{w:a,m:p}})()}function b3(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}b3=function(e,t,n,o){function a(t,n){b3(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},b3(e,t,n,o)}function v3(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function y3(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){v3(a,o,r,i,l,"next",e)}function l(e){v3(a,o,r,i,l,"throw",e)}i(void 0)})}}function _3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function A3(e,t,n){return(t=function(e){var t=function(e){if("object"!=g3(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g3(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g3(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k3;const x3={name:"ImageGallery",components:{VueEasyLightbox:m3},props:{imgs:{type:Object,required:!0},type:{type:String,required:!1,default:"Product"}},setup:function(e){var t=bl(function(){return e.imgs.imgs}),n=bl(function(){return"Product"===e.type}),o=bl(function(){return n.value?"5-4":"2-3"}),r=Kt(!1),a=Kt(0),i=Kt(t.value),l=Kt(xm(t.value[0])),s=Kt(null),c=bl(function(){return n.value?"transform:fill,width:1000,height:800":"transform:fill,width:640,height:905"}),u=bl(function(){return n.value?"transform:fill,width:400,height:320":"transform:fill,width:430,height:608"}),d=Kt(!(window.innerWidth>475)),p=Kt([]),f=function(){return document.querySelector(".vel-modal")||document.querySelector(".vel-overlay")||document.querySelector(".vel")||null},m=function(e){e&&(p.value.includes(e)||(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true"),p.value.push(e)))},g=function(e){var t=document.querySelector("main.kb-page-frame")||document.querySelector("main")||document.querySelector("#app"),n=f();if(document.body.style.overflow=e?"hidden":"",!e)return p.value.forEach(function(e){e.removeAttribute("inert"),e.removeAttribute("aria-hidden")}),void(p.value=[]);t&&n&&(t.contains(n)?function(e,t){if(e&&t)for(var n=e;n&&n!==t;){var o=n.parentElement;if(!o)break;
2Array.from(o.children).forEach(function(e){e!==n&&m(e)}),n=o}}(n,t):m(t))},h=function(){var e,t=document.querySelector(".kb-image-module__lightbox-controls-close");if(null!=t&&t.focus)return t.focus();var n=f(),o=null==n?void 0:n.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');null==o||null===(e=o.focus)||void 0===e||e.call(o)};Dr(function(){k3=new Tb("#imageGalleryGlideId",{perView:1.15,gap:15,peek:{after:0,before:0}}),t.value.length>1&&k3.mount(),window.addEventListener("resize",function(){window.innerWidth>475?d.value=!1:window.innerWidth<=475&&(d.value=!0,t.value.length>1&&k3.mount())})});var b=function(){var e=y3(h3().m(function e(){return h3().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Nn();case 1:requestAnimationFrame(function(){var e={"zoom in button":"Zoom ind","zoom out button":"Zoom ud","resize image button":"Tilpas til original størrelse","image rotate left button":"Drej til venstre","image rotate right button":"Drej til højre"};document.querySelectorAll(".vel-toolbar [aria-label]").forEach(function(t){var n=t.getAttribute("aria-label");e[n]&&t.setAttribute("aria-label",e[n]),t.hasAttribute("tabindex")||t.setAttribute("tabindex","0"),t.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.click())})})});case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return bo(r,function(){var e=y3(h3().m(function e(t){return h3().w(function(e){for(;;)switch(e.n){case 0:if(!t){e.n=3;break}return e.n=1,Nn();case 1:return b(),g(!0),e.n=2,Nn();case 2:requestAnimationFrame(function(){return h()}),e.n=4;break;case 3:g(!1),requestAnimationFrame(function(){var e,t;null===(e=s.value)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e)});case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),{visibleRef:r,indexRef:a,imgsRef:i,showMultiple:function(e){s.value=(null==e?void 0:e.currentTarget)||document.activeElement,i.value=i.value;var t=i.value.findIndex(function(e){return e.src===l.value.src});a.value=t,r.value=!0},onHide:function(){return r.value=!1},imgs:t,imgRatio:o,activeImg:l,mobileSlider:d,updateActiveImg:function(e){l.value=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_3(Object(n),!0).forEach(function(t){A3(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)},transformationDesktop:c,transformationMobile:u,localizeToolbar:b}}},w3=x3,C3=(0,Hb.A)(w3,[["render",function(e,t,n,o,r,a){var i,l,s,c=qr("vue-easy-lightbox");return Ai(),Si(gi,null,[Mi("article",{class:Y(["kb-image-gallery",{"kb-image-gallery--hide":e.mobileSlider}])},[e.activeImg?(Ai(),Si("figure",{key:0,class:Y(["kb-image-module","kb-image-module--"+e.imgRatio])},[Mi("button",{type:"button",class:"kb-image-module__image-button",onClick:t[0]||(t[0]=function(){return e.showMultiple&&e.showMultiple.apply(e,arguments)}),"aria-label":e.activeImg.alt?"Ã
bn billedfremviser: ".concat(e.activeImg.alt):"Ã
bn billedfremviser"},[Mi("div",u4,[Mi("picture",d4,[Mi("source",{srcset:"".concat(e.activeImg.src,"?io=").concat(e.transformationDesktop),media:"(min-width:475px)"},null,8,p4),Mi("source",{srcset:"".concat(e.activeImg.src,"?io=").concat(e.transformationMobile),media:"(max-width:475px)"},null,8,f4),Mi("img",{alt:null!==(i=e.activeImg.alt)&&void 0!==i?i:""},null,8,m4)])])],8,c4)],2)):zi("v-if",!0),e.imgs.length>1?(Ai(),Si("ul",g4,[(Ai(!0),Si(gi,null,Yr(e.imgs,function(t,n){var o,r;return Ai(),Si("li",{key:n,class:"kb-image-gallery__thumbnail-list-item"},[Mi("figure",{class:Y("kb-image-module kb-image-module--"+e.imgRatio)},[Mi("button",{type:"button",class:"kb-image-module__thumb-button",onClick:function(n){return e.updateActiveImg(t)},"aria-label":t.alt?"Vælg billede: ".concat(t.alt):"Vælg billede ".concat(n+1),"aria-current":(null===(o=e.activeImg)||void 0===o?void 0:o.src)===t.src?"true":void 0},[Mi("div",b4,[Mi("picture",v4,[Mi("source",{srcset:"".concat(t.src,"?io=").concat(e.transformationDesktop),media:"(min-width:475px)"},null,8,y4),Mi("source",{srcset:"".concat(t.src,"?io=").concat(e.transformationMobile),media:"(max-width:475px)"},null,8,_4),Mi("img",{alt:null!==(r=t.alt)&&void 0!==r?r:""},null,8,A4)])])],8,h4)],2)])}),128))])):zi("v-if",!0)],2),e.imgs.length>1?(Ai(),Si("div",{key:0,class:Y(["kb-image-gallery__slider",{"kb-image-gallery__slider--hide":!e.mobileSlider}])},[Mi("div",k4,[Mi("div",x4,[Mi("ul",w4,[(Ai(!0),Si(gi,null,Yr(e.imgs,function(t,n){var o,r;return Ai(),Si("li",{key:n,class:"kb-image-gallery__slider__content glide__slide"},[Mi("figure",{class:Y("kb-image-module kb-image-module--"+e.imgRatio)},[Mi("button",{type:"button",class:"kb-image-module__thumb-button",onClick:function(n){return e.updateActiveImg(t)},"aria-label":t.alt?"Vælg billede: ".concat(t.alt):"Vælg billede ".concat(n+1),"aria-current":(null===(o=e.activeImg)||void 0===o?void 0:o.src)===t.src?"true":void 0},[Mi("div",E4,[Mi("picture",S4,[Mi("source",{srcset:"".concat(t.src,"?io=").concat(e.transformationDesktop),media:"(min-width:475px)"},null,8,T4),Mi("source",{srcset:"".concat(t.src,"?io=").concat(e.transformationMobile),media:"(max-width:475px)"},null,8,I4),Mi("img",{alt:null!==(r=t.alt)&&void 0!==r?r:""},null,8,B4)])])],8,C4)],2)])}),128))])]),zi(" OBS: Glide bullets er li/svg. Ideelt bør de være buttons, men jeg har ikke ændret dem her\r\n da det afhænger af glide-konfigurationen, som ikke er super nem at ændre pÃ¥. "),Mi("ul",O4,[(Ai(!0),Si(gi,null,Yr(e.imgs,function(e,n){return Ai(),Si("li",{key:n,class:"glide__bullet","data-glide-dir":"=".concat(n)},l4(t[2]||(t[2]=[Mi("svg",{width:"6",height:"6",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},[Mi("circle",{cx:"3",cy:"3",r:"3",fill:"#3C3C3C"})],-1)])),8,L4)}),128))])])],2)):zi("v-if",!0),1===e.imgs.length?(Ai(),Si("figure",{key:1,class:Y(["kb-image-module",["kb-image-module--"+e.imgRatio,{"kb-image-gallery__slider--hide":!e.mobileSlider}]])},[Mi("button",{type:"button",class:"kb-image-module__image-button",onClick:t[1]||(t[1]=function(){return e.showMultiple&&e.showMultiple.apply(e,arguments)}),"aria-label":null!==(l=e.activeImg)&&void 0!==l&&l.alt?"Ã
bn billedfremviser: ".concat(e.activeImg.alt):"Ã
bn billedfremviser"},[Mi("div",M4,[Mi("picture",N4,[Mi("source",{srcset:"".concat(e.activeImg.src,"?io=").concat(e.transformationDesktop),media:"(min-width:475px)"},null,8,P4),Mi("source",{srcset:"".concat(e.activeImg.src,"?io=").concat(e.transformationMobile),media:"(max-width:475px)"},null,8,R4),Mi("img",{alt:null!==(s=e.activeImg.alt)&&void 0!==s?s:""},null,8,F4)])])],8,D4)],2)):zi("v-if",!0),Ni(c,{visible:e.visibleRef,imgs:e.imgsRef,index:e.indexRef,onHide:e.onHide,loop:!0,onOnOpen:e.localizeToolbar},{"prev-btn":ao(function(e){return[Mi("button",{type:"button",onClick:e.prev,class:"kb-image-module__lightbox-controls-chevron kb-image-module__lightbox-controls-chevron-prev","aria-label":"Forrige"},l4(t[3]||(t[3]=[Mi("svg",{viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},[Mi("path",{d:"m15 12.5 4 4-4 4",stroke:"#3C3C3C","stroke-width":"1.5","stroke-linejoin":"round"}),Mi("circle",{cx:"16",cy:"16.5",r:"15.25",stroke:"#3C3C3C","stroke-width":"1.5"})],-1)])),8,V4)]}),"next-btn":ao(function(e){return[Mi("button",{type:"button",onClick:e.next,class:"kb-image-module__lightbox-controls-chevron kb-image-module__lightbox-controls-chevron-next","aria-label":"Næste"},l4(t[4]||(t[4]=[Mi("svg",{viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},[Mi("path",{d:"m15 12.5 4 4-4 4",stroke:"#3C3C3C","stroke-width":"1.5","stroke-linejoin":"round"}),Mi("circle",{cx:"16",cy:"16.5",r:"15.25",stroke:"#3C3C3C","stroke-width":"1.5"})],-1)])),8,z4)]}),"close-btn":ao(function(e){return[Mi("button",{type:"button",onClick:e.close,class:"kb-image-module__lightbox-controls-close","aria-label":"Luk"}
2,l4(t[5]||(t[5]=[Mi("svg",{viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m1.354 21.354 20-20-.707-.708L11 10.293 1.354.646l-.708.708L10.293 11 .646 20.646l.708.707Zm20-.708-7.5-7.5-.707.707 7.5 7.5.707-.707Z",fill:"#3C3C3C"})],-1)])),8,U4)]}),_:1},8,["visible","imgs","index","onHide","onOnOpen"])],64)}]]),E3={name:"TheHeader",setup:function(){var e=Af(),t=-1!==document.location.hash.indexOf("stafetTeamRoundCounter"),n=-1!==document.location.hash.indexOf("personalDonationReceipt"),o=-1!==document.location.hash.indexOf("stafetTeamSignupReceipt"),r=-1!==document.location.hash.indexOf("stafetTeamCreationReceipt"),a=-1!==document.location.hash.indexOf("stafetTeamUpdateReceipt"),i=-1!==document.location.hash.indexOf("createTeam"),l=-1!==document.location.hash.indexOf("profileDeleted"),s=-1!==document.location.hash.indexOf("changesSaved"),c=-1!==document.location.hash.indexOf("tilmeldProfilKvittering"),u=-1!==document.location.hash.indexOf("donationReceiptOverlay"),d=-1!==document.location.hash.indexOf("deleteCancerProfileModal"),p=-1!==document.location.hash.indexOf("DeletePostOverlay"),f=-1!==document.location.hash.indexOf("DeleteCommentOverlay"),m=-1!==document.location.hash.indexOf("deleteEventModal"),g=-1!==document.location.hash.indexOf("frivilligeShopWrongRoleModal"),h=-1!==document.location.hash.indexOf("calendarOverlay"),b=-1!==document.location.hash.indexOf("LoginOverlay"),v=-1!==document.location.hash.indexOf("ProfileEditedOverlay"),y=-1!==document.location.hash.indexOf("DeleteGlobalProfileOverlay"),_=-1!==document.location.hash.indexOf("stafetMailEditorOverlay");return n?(e.dispatch("fundraising/showReceipt"),e.dispatch("main/openPageOverlay",{overlayContent:"personalDonation"})):o?e.dispatch("main/openPageOverlay",{overlayContent:"tilmeldHoldKvittering"}):r?e.dispatch("main/openPageOverlay",{overlayContent:"HoldOprettelseKvittering"}):t?e.dispatch("main/openPageOverlay",{overlayContent:"HoldetsRoundCounterOverlay"}):a?e.dispatch("main/openPageOverlay",{overlayContent:"HoldRedigerKvittering"}):i?e.dispatch("main/openPageOverlay",{overlayContent:"OpretHoldOverlay"}):l?e.dispatch("main/openPageOverlay",{overlayContent:"ProfileDeleted"}):s?e.dispatch("main/openPageOverlay",{overlayContent:"ChangesSaved"}):c?e.dispatch("main/openPageOverlay",{overlayContent:"tilmeldProfilKvittering"}):u?e.dispatch("main/openPageOverlay",{overlayContent:"donationReceiptOverlay"}):d?e.dispatch("main/openPageOverlay",{overlayContent:"DeleteCancerProfileModal"}):p?e.dispatch("main/openPageOverlay",{overlayContent:"DeletePostOverlay"}):f?e.dispatch("main/openPageOverlay",{overlayContent:"DeleteCommentOverlay"}):m?e.dispatch("main/openPageOverlay",{overlayContent:"DeleteEventModal"}):g?e.dispatch("main/openPageOverlay",{overlayContent:"FrivilligeShopWrongRoleModal"}):h?e.dispatch("main/openPageOverlay",{overlayContent:"CalendarOverlay"}):b?e.dispatch("main/openPageOverlay",{overlayContent:"LoginOverlay"}):v?e.dispatch("main/openPageOverlay",{overlayContent:"ProfileEditedOverlay"}):y?e.dispatch("main/openPageOverlay",{overlayContent:"DeleteGlobalProfileOverlay"}):_&&e.dispatch("main/openPageOverlay",{overlayContent:"StafetMailEditorOverlay"}),{startBurgermenu:function(t){e.dispatch("main/openPageOverlay",{overlayContent:"BurgerMenu",returnTarget:t.currentTarget})},startProfileOverlay:function(t){e.dispatch("main/openPageOverlay",{overlayContent:"ProfileOverlay",returnTarget:t.currentTarget})},startSearchoverlay:function(t){e.dispatch("main/openPageOverlay",{overlayContent:"SearchOverlay",returnTarget:t.currentTarget})},startDonationFlow:function(t){e.dispatch("main/openPageOverlay",{overlayContent:"personalDonation",returnTarget:t.currentTarget})}}}},S3=Object.assign({},E3,{name:"IndependentHeader"});var T3=".kb-component--independent-header",I3=document.querySelector(T3);const B3={name:"InfoCarousel",setup:function(){var e=Kt(null),t={type:"slider",rewind:!1,startAt:0,perView:1,gap:32,peek:{after:150,before:0},breakpoints:{768:{gap:18,peek:{after:54,before:0}}}};return Dr(function(){var n=new Tb(e.value.parentNode,t);n.mount(),function(e){e.value.querySelectorAll(".glide__slide").forEach(function(e){e.style.height="auto"})}(e),e.value.parentNode.querySelectorAll("a").forEach(function(e){return e.addEventListener("focus",function(e){for(var t,o=e.target;o&&!o.hasAttribute("data-index");)o=o.parentNode;var r=null===(t=o)||void 0===t||null===(t=t.attributes["data-index"])||void 0===t?void 0:t.value;r&&n.go("="+r)})})}),{getLabel:dA,root:e}}};function O3(e){var t=document.querySelectorAll(".kb-component--info-carousel");t.length&&t.forEach(function(t){if(t.hasAttribute("data-v-app"))return!1;var n=t.innerHTML;B3.template=n,bc(B3).use(e).mount(t)})}var L3={class:"kb-login-overlay","aria-live":"polite"},D3={class:"kb-login-overlay__hero"},M3={class:"kb-login-overlay__hero__title-wrapper"},N3={class:"kb-login-overlay__hero__title-wrapper__title"},P3={class:"kb-rich-text"},R3={class:"kb-rich-text__content",ref:"descriptionWrapper"},F3={class:"kb-login-overlay__content-container"},V3={class:"kb-login-overlay__button-wrapper"},z3=["href"],U3=["href"];const j3={name:"LoginOverlay",props:{loginUrl:{type:String,required:!0},createProfileUrl:{type:String,required:!0}},setup:function(e){var t,n,o,r=Af(),a=bl(function(){var t;return null!==(t=e.loginUrl)&&void 0!==t?t:r.state.main.page_overlay_content_data.loginUrl}),i=bl(function(){var t;return null!==(t=e.createProfileUrl)&&void 0!==t?t:r.state.main.page_overlay_content_data.createProfileUrl}),l=!(null===(t=window)||void 0===t||null===(t=t.dataLayer)||void 0===t||!t.find(function(e){return e["gtm.start"]})),s=Kt(null),c=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value};Dr(function(){var e=u("text"),t=c(e);s.value.innerHTML=t,n=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),o=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){n.focus()}},{persistent:!0}),l&&new URLSearchParams(document.location.search).get("teamId")});var u=function(e){return r.getters["labels/getLabel"]({labelCollection:"LoginOverlay",labelKey:e})};return{loginUrl:a,createProfileUrl:i,descriptionWrapper:s,decodeHtml:c,tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),o.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),o.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),n.focus())},getLabel:u}}},H3=j3,q3=(0,Hb.A)(H3,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",L3,[Mi("section",D3,[Mi("div",M3,[Mi("h2",N3,fe(e.getLabel("title")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-login-overlay__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",P3,[Mi("div",R3,null,512)])]),t[3]||(t[3]=Mi("div",{class:"kb-login-overlay__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",F3,[Mi("div",V3,[Mi("a",{href:e.loginUrl,onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",class:"kb-button kb-button--full-color-spot kb-login-overlay__kb-button--full-color-spot"},fe(e.getLabel("confirmButton")),41,z3),Mi("a",{href:e.createProfileUrl,"data-order":"last",onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("createProfileButton")),41,U3)])])])}]]);function G3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var K3={class:"kb-stafet-donation-flow kb-lottery-form"},Z3={key:0,class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},W3={class:"kb-stafet-step__step-section-title"},$3=["innerHTML"],Y3={class:"kb-stafet-step__input-wrapper"},J3={class:"kb-stafet-step__texts-wrapper"},X3=["innerHTML"],Q3={class:"kb-lottery__actions"}
2,e7={key:1,class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},t7={class:"kb-stafet-step__step-section-title"},n7={class:"kb-lottery-form__highlighted"},o7={class:""},r7={class:"kb-stafet-step__texts-wrapper"},a7=["innerHTML"],i7={class:"kb-lottery__actions"},l7={key:2,class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},s7={class:"kb-stafet-step__step-section-title"},c7={class:"kb-lottery-form"},u7={class:"kb-lottery__actions"},d7={key:3,class:"kb-spinner-overlay"};const p7={name:"LotteryForm",props:{lotteryRounds:{type:Object,required:!0}},components:{FormInputDropdown:XB,FormInputTextField:mE},setup:function(e){var t=Af(),n=function(e,n){return t.getters["labels/getLabel"]({labelCollection:"lotteryForm",labelKey:e,params:n})},o=Kt(""),r=Kt(""),a=Kt(!1),i=Kt(!1),l=bl(function(){return t.state.lottery.submitting}),s=bl(function(){var e;return null!==(e=t.state.lottery.lottery_tickets)&&void 0!==e?e:[]}),c=bl(function(){return s.value.filter(function(e){return e.isWinningTicket})}),u=bl(function(){return c.value.length>0}),d=Kt(!1),p=bl(function(){return n(i?"validationMessage":n("controlNumberError"))}),f=bl(function(){return e.lotteryRounds.map(function(e){return{name:e.roundName,value:e.roundId}})});return{lotteryDropdown:o,controlNumber:r,displayFormValidationError:a,nonEmptyStringValidator:tE,showSpinner:l,lotteryTickets:s,winningTickets:c,hasWinnings:u,showResultPage:d,displayLotteryTicketError:i,controlNumberValidationErrorLabel:p,lotteryDropdownOptions:f,getLabel:n,onSubmit:function(){i.value=!1,tE(o.value)&&tE(r.value)?t.dispatch("lottery/getLotteryTicketResult",{roundNumber:o.value,lotteryTicketId:r.value}).then(function(e){d.value=!0}).catch(function(e){i.value=!0}):a.value=!0},clear:function(){a.value=!1,r.value="",o.value="",d.value=!1,t.commit("lottery/SET_LOTTERY_TICKETS",[])}}}},f7=p7,m7=(0,Hb.A)(f7,[["render",function(e,t,n,o,r,a){var i,l,s=qr("FormInputDropdown"),c=qr("FormInputTextField");return Ai(),Si("article",K3,[e.showResultPage?e.showResultPage&&e.hasWinnings?(Ai(),Si("section",e7,[Mi("h1",t7,fe(e.getLabel("winnerTitle")),1),(Ai(!0),Si(gi,null,Yr(e.winningTickets,function(t){return Ai(),Si("div",{key:t.lotteryTicketId,class:"kb-lottery-form__result"},[Mi("h2",n7,fe(e.getLabel("reward",[t.prize])),1),Mi("p",o7,fe(e.getLabel("winnerLotNumber",[t.lotteryTicketId])),1)])}),128)),Mi("div",r7,[Mi("div",{innerHTML:e.getLabel("WinnerDescriptionText")},null,8,a7)]),Mi("div",i7,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[3]||(t[3]=function(){return e.clear&&e.clear.apply(e,arguments)})},fe(e.getLabel("winnerReturnButtonLabel")),1)])])):e.showResultPage&&!e.hasWinnings?(Ai(),Si("section",l7,[Mi("h1",s7,fe(e.getLabel("noPrizeTitle")),1),Mi("p",c7,fe(e.getLabel("noPrizeDescriptionText",[null===(i=e.lotteryTickets[0])||void 0===i?void 0:i.lotteryTicketId])),1),Mi("div",u7,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[4]||(t[4]=function(){return e.clear&&e.clear.apply(e,arguments)})},fe(e.getLabel("noPrizeReturnButtonLabel")),1)])])):zi("v-if",!0):(Ai(),Si("section",Z3,[Mi("h1",W3,fe(e.getLabel("lotteryFormTitle")),1),Mi("div",{innerHTML:e.getLabel("lotteryFormDescriptionText")},null,8,$3),Mi("div",Y3,[Ni(s,{isRequired:"",modelValue:e.lotteryDropdown,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.lotteryDropdown=t}),fieldName:"lotteryDropdown",label:e.getLabel("lotteryRoundDropdownLabel"),isValidationError:e.displayFormValidationError&&!e.nonEmptyStringValidator(e.lotteryDropdown),placeholder:e.getLabel("lotteryRoundDropdownPlaceholder"),errorMessageLabel:e.getLabel("lotteryRoundDropdownError"),selectOptions:e.lotteryDropdownOptions,onChangeCallback:function(t){return e.lotteryDropdown=t.target.value}},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel","selectOptions","onChangeCallback"]),Ni(c,{fieldName:"controlNumber",type:"number",modelValue:e.controlNumber,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.controlNumber=t}),label:e.getLabel("controlNumberLabel"),isRequired:!0,isValidationError:e.displayFormValidationError&&!e.nonEmptyStringValidator(e.controlNumber)||e.displayLotteryTicketError,errorMessageLabel:e.controlNumberValidationErrorLabel,placeholder:e.getLabel("controlNumberPlaceholder")},null,8,["modelValue","label","isValidationError","errorMessageLabel","placeholder"])]),Mi("div",J3,[Mi("div",{innerHTML:e.getLabel("checkTicketDisclaimer")},null,8,X3)]),Mi("div",Q3,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.showSpinner}]),onClick:t[2]||(t[2]=function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)})},fe(e.getLabel("checkTicketButtonLabel")),3)])])),e.showSpinner?(Ai(),Si("div",d7,(l=t[5]||(t[5]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return G3(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return G3(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G3
2(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])}]]),g7=m7;function h7(e){return function(e){if(Array.isArray(e))return b7(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return b7(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b7(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var v7=["href"],y7={class:"kb-material-card__image kb-image-module kb-image-module--A4"},_7={class:"kb-image-module__image-container"},A7={class:"kb-image-module__image"},k7=["srcset"],x7=["srcset"],w7={class:"kb-material-card__content"},C7={class:"kb-material-card__title"},E7={class:"kb-material-card__content-wrapper"},S7={class:"kb-material-card__price-wrapper"},T7={class:"kb-material-card__price"},I7={key:0,class:"kb-product-card__price--before"},B7={class:"kb-product-card__price--before-line-through"},O7={key:1,class:"kb-product-card__cta kb-product-card__cta--disabled"},L7={key:0,class:"kb-spinner-overlay"};function D7(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return M7(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(M7(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,M7(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,M7(d,"constructor",c),M7(c,"constructor",s),s.displayName="GeneratorFunction",M7(c,r,"GeneratorFunction"),M7(d),M7(d,r,"Generator"),M7(d,o,function(){return this}),M7(d,"toString",function(){return"[object Generator]"}),(D7=function(){return{w:a,m:p}})()}function M7(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}M7=function(e,t,n,o){function a(t,n){M7(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},M7(e,t,n,o)}function N7(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const P7={name:"MaterialCard",props:{data:{type:Object,required:!0},showAddCta:{type:Boolean,default:!1}},setup:function(e){var t=Af(),n=bl(function(){return e.data.imageUrl+"?io=transform:fill,width:430,height:608"}),o=bl(function(){return e.data.imageUrl+"?io=transform:fill,width:215,height:304"}),r=Kt(!1),a=Kt(!1),i=function(){var n,o=(n=D7().m(function n(){return D7().w(function(n){for(;;)switch(n.n){case 0:if(e.data.sku){n.n=1;break}return window.location.href=e.data.url,n.a(2);case 1:if(!a.value&&!r.value){n.n=2;break}return n.a(2);case 2:return r.value=!0,n.n=3,t.dispatch("basket/addToBasket",{sku:e.data.sku,quantity:1});case 3:r.value=!1,a.value=!0;case 4:return n.a(2)}},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){N7(a,o,r,i,l,"next",e)}function l(e){N7(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return o.apply(this,arguments)}}();return{desktopImageUrl:n,mobileImageUrl:o,isAdded:a,isSubmitting:r,addToCart:i}
2}},R7=P7,F7=(0,Hb.A)(R7,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{class:"kb-material-card",href:e.data.url},[Mi("figure",y7,[Mi("div",_7,[Mi("picture",A7,[Mi("source",{srcset:e.desktopImageUrl,media:"(min-width: 475px)"},null,8,k7),Mi("source",{srcset:e.mobileImageUrl,media:"(max-width: 475px)"},null,8,x7),t[1]||(t[1]=Mi("img",null,null,-1))])]),e.data.saleLabelText?(Ai(),Si("div",{key:0,class:Y(["kb-product-card__sale-label",e.data.labelColorTheme])},fe(e.data.saleLabelText),3)):zi("v-if",!0)]),Mi("div",w7,[Mi("h3",C7,fe(e.data.title),1),Mi("div",E7,[Mi("div",S7,[Mi("p",T7,fe(e.data.displayPrice),1),e.data.displayBeforePrice?(Ai(),Si("p",I7,[t[2]||(t[2]=Fi(" Førpris ",-1)),Mi("span",B7,fe(e.data.displayBeforePrice),1)])):zi("v-if",!0)]),e.showAddCta?(Ai(),Si(gi,{key:0},[e.isAdded?(Ai(),Si("button",O7,h7(t[4]||(t[4]=[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:"32",height:"32"},[Mi("path",{d:"M8 17.739 14 24 24 8",stroke:"#3c3c3c","stroke-linejoin":"round","stroke-width":"2"})],-1)])))):(Ai(),Si("button",{key:0,class:"kb-product-card__cta",onClick:t[0]||(t[0]=lc(function(){return e.addToCart&&e.addToCart.apply(e,arguments)},["prevent"]))},h7(t[3]||(t[3]=[Mi("span",{class:"kb-visually-hidden"},"Tilføj vare til kurv",-1),Mi("svg",{role:"presentation",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M23.5 11.5h-22l3 16h17l2-16Zm0 0h7l-3 16H26M3 19.5h26M10.5 27.5l-2-16M16.5 11.5v16M10.5 9.5l1-5h9l1 5",stroke:"#3C3C3C"})],-1)]))))],64)):zi("v-if",!0)])]),e.isSubmitting?(Ai(),Si("div",L7,h7(t[5]||(t[5]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)])))):zi("v-if",!0)],8,v7)}]]);function V7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var z7={class:"kb-overlay-styles__content-wrapper",ref:"overlayRef"},U7={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},j7={class:"kb-overlay-styles__hero"},H7={class:"kb-overlay-styles__hero-wrapper kb-overlay-styles__hero-wrapper--member-list"},q7={class:"kb-member-list-overlay__title"},G7={class:"kb-overlay-styles__content-wrapper--member-list"},K7={class:"kb-member-list-overlay__member"},Z7={class:"kb-member-list-overlay-fvl__member-wrapper-toggle"},W7=["id","aria-controls"],$7={class:"kb-image-module kb-image-module--1-1 kb-member-list-overlay__member-profile-img"},Y7={class:"kb-image-module__image-container"},J7={class:"kb-image-module__image"},X7=["src","alt"],Q7={class:"kb-member-list-overlay__member-name"},e5={class:"kb-member-list-overlay__member-roles-wrapper"},t5={class:"kb-member-list-overlay__member-role"},n5=["id","aria-labelledby"],o5={key:0,class:"kb-member-list-overlay__content-member-contact"},r5={key:0,class:"kb-member-list-overlay__content-member-contact__phone"},a5=["href"],i5={key:1,class:"kb-member-list-overlay__content-member-contact__email"},l5=["href"],s5={class:"kb-member-list-overlay__content-member-details"},c5={class:"kb-member-list-overlay__content-member-details-profile-text"},u5={key:0},d5={class:"kb-member-list-overlay__content-member-details-actions-wrapper"},p5=["href"],f5=["onClick"],m5={class:"kb-member-list-overlay-fvl__actions-wrapper"},g5={key:0,class:"kb-member-list-overlay-fvl__show-more"},h5={key:0,class:"kb-spinner-overlay"};function b5(e,t){var n,o,r,a=[];function i(){e.value&&(a=e.value.querySelectorAll(['a[href]:not([tabindex="-1"])','map[name] area[href]:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','iframe:not([tabindex="-1"])','object:not([tabindex="-1"])','embed:not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])','[contentEditable=true]:not([tabindex="-1"])']),r=document.querySelector(".kb-page-overlay__close"),a.length&&(n=a[0],o=a[a.length-1],a.forEach(function(e){e.removeAttribute("data-order")}),n.dataset.order="first",n!==o&&(o.dataset.order="last"),"function"==typeof t&&t("setTabTargets")))}return Dr(function(){i(),_C({opening:function(){n?n.focus():r.focus()}},{persistent:!0})}),{setTabTargets:i,tabTrap:function(e){e.shiftKey&&e.target===n&&(e.preventDefault(),r.focus()),e.shiftKey||e.target!==o||(e.preventDefault(),r.focus())}}}function v5(e){return e?e.split(/\\n|\n/):[]}function y5(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return _5(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(_5(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_5(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,_5(d,"constructor",c),_5(c,"constructor",s),s.displayName="GeneratorFunction",_5(c,r,"GeneratorFunction"),_5(d),_5(d,r,"Generator"),_5(d,o,function(){return this}),_5(d,"toString",function(){return"[object Generator]"}),(y5=function(){return{w:a,m:p}})()}function _5(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}_5=function(e,t,n,o){function a(t,n){_5(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},_5(e,t,n,o)}function A5(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const k5={name:"MemberListOverlayFrivillig",emits:["setTabTargets"],props:{},setup:function(e){var t=e.emit,n=Af(),o=Kt(null),r=bl(function(){return n.state.main.page_overlay_content_data.groupId}),a=bl(function(){return n.state.frivillige.is_submitting}),i=bl(function(){return n.state.frivillige.member_list_data}),l=Kt(0),s=Kt(10),c=Kt(!1),u=Kt(!1),d=bl(function(){return n.state.frivillige.member_list_data_total}),p=bl(function(){var e;return(null===(e=i.value)||void 0===e?void 0:e.length)<d.value}),f=b5(o,t),m=f.setTabTargets,g=f.tabTrap,h=function(){n.dispatch("frivillige/fetchGruppemedlemmerData",{pageId:n.state.main.page_id,groupId:r.value,skip:l.value,take:s.value}).then(function(e){u.value=e.canRemoveMembers,c.value=e.canMessage,m()})};Dr(function(){h()});var b=function(){var e,t=(e=y5().m(function e(t){var o;return y5().w(function(e){for(;;)switch(e.n){case 0:return o={groupId:r.value,frivilligprofilId:t},e.n=1,n.dispatch("frivillige/removeMember",o);case 1:n.dispatch("main/closePageOverlay");case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){A5(a,o,r,i,l,"next",e)}function l(e){A5(a,o,r,i,l,"throw",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}();return{members:i,memberCount:d,isSubmitting:a,canRemove:u,canMessage:c,hasMore:p,overlayRef:o,toggleAccordion:function(e){var t=!("true"!==e.currentTarget.getAttribute("aria-expanded")),n=document.querySelector("#".concat(e.currentTarget.getAttribute("aria-controls")));e.currentTarget.querySelector(".kb-member-list-overlay__member-chevron").classList[t?"remove":"add"]("kb-member-list-overlay__member-chevron--open"),n.classList[t?"remove":"add"]("kb-member-list-overlay__content--open"),e.currentTarget.setAttribute("aria-expanded",t?"false":"true"),n.querySelectorAll("a").forEach(function(e){t?e.setAttribute("tabindex",-1):e.removeAttribute("tabindex")})},tabTrap:g,handleRemoveMember:b,getLabel:function(e,t){var o=n.getters["labels/getLabel"]({labelCollection:"MemberListOverlayFrivillig",labelKey:e});return t&&t.forEach(function(e,t){o=o.replace("{".concat(t,"}"),e)}),o},fetchGruppemedlemmer:h,loadMore:function(){l.value=s.value+l.value,h()},getRolleText:function(e){return e.map(function(e){return null==e.gruppeName?"".concat(e.rolleName):"".concat(e.rolleName," - ").concat(e.gruppeName)}).join(", ")},formatNewlines:v5}}},x5=k5,w5=(0,Hb.A)(x5,[["render",function(e,t,n,o,r,a){var i,l;return Ai(),Si("div",z7,[Mi("article",{class:Y(["kb-overlay-styles kb-member-list-overlay kb-member-list-overlay-fvl",{"kb-member-list-overlay--submitting":e.isSubmitting}])},[Mi("div",U7,[Mi("div",j7,[Mi("div",H7,[Mi("h2",q7,fe(e.getLabel("accordionTitle",[null!==(i=e.memberCount)&&void 0!==i?i:0])),1)])]),t[9]||(t[9]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",G7,[(Ai(!0),Si(gi,null,Yr(e.members,function(n,o){var r;return Ai(),Si("div",{key:o,class:"kb-member-list-overlay"},[Mi("h3",K7,[t[5]||(t[5]=Mi("svg",{role:"presentation",viewBox:"0 0 705 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M705 1H2a1 1 0 0 0-1 1v9",stroke:"#BFBFB7"})],-1)),Mi("div",Z7,[Mi("button",{class:"kb-member-list-overlay-fvl__member-wrapper",id:"acc-member".concat(n.frivilligprofilId),"aria-controls":"acc-content".concat(n.frivilligprofilId),"aria-expanded":"false",onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),onClick:t[1]||(t[1]=function(){return e.toggleAccordion&&e.toggleAccordion.apply(e,arguments)})},[Mi("figure",$7,[Mi("div",Y7,[Mi("picture",J7,[Mi("img",{src:n.imageSource,alt:n.imageAlt},null,8,X7)])])]),Mi("p",Q7,[Fi(fe(n.memberName)+" ",1),Mi("div",e5,[Mi("span",t5,fe(e.getRolleText(n.roller)),1)])]),t[4]||(t[4]=Mi("div",{class:"kb-member-list-overlay__member-chevron kb-ui-icon kb-ui-icon--ui-chevron-down"},null,-1))],40,W7)])]),Mi("div",{class:"kb-member-list-overlay__content",id:"acc-content".concat(n.frivilligprofilId),role:"region","aria-labelledby":"acc-member".concat(n.frivilligprofilId)},[n.phone||n.email?(Ai(),Si("section",o5,[n.phone?(Ai(),Si("div",r5,[t[6]||(t[6]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-phone"},null,-1)),Mi("a",{href:"tel:"+(null===(r=n.phone)||void 0===r?void 0:r.replace(/\s/g,""))},fe(n.phone),9,a5)])):zi("v-if",!0),n.email?(Ai(),Si("div",i5,[t[7]||(t[7]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-laptop"},null,-1)),Mi("a",{href:"mailto:"+n.email},fe(n.email),9,l5)])):zi("v-if",!0)])):zi("v-if",!0),Mi("section",s5,[Mi("p",c5,[(Ai(!0),Si(gi,null,Yr(e.formatNewlines(n.profileText),function(e,t){return Ai(),Si(gi,{key:t},[t>0?(Ai(),Si("br",u5)):zi("v-if",!0),Fi(fe(e),1)],64)}),128))]),Mi("div",d5,[e.canMessage?(Ai(),Si("a",{key:0,href:n.answerLink,class:"kb-button kb-button--full-color"},fe(e.getLabel("writeMessageButtonText")),9,p5)):zi("v-if",!0),e.canRemove?(Ai(),Si("button",{key:1,class:"kb-button kb-button--full-color-spot kb-member-list-overlay-fvl__delete-member",onClick:function(t){return e.handleRemoveMember(n.frivilligprofilId)}},fe(e.getLabel("removeMemberButtonText")),9,f5)):zi("v-if",!0)])])],8,n5)])}),128)),Mi("div",m5,[e.hasMore?(Ai(),Si("div",g5,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[2]||(t[2]=function(t){return e.loadMore()}),onKeydown:t[3]||(t[3]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))}
2,fe(e.getLabel("showMoreButtonText")),33)])):zi("v-if",!0)]),e.isSubmitting?(Ai(),Si("div",h5,(l=t[8]||(t[8]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return V7(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return V7(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V7(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])])],2)],512)}]]);function C5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var E5={class:"kb-overlay-styles__content-wrapper"},S5={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},T5={class:"kb-member-overlay__hero-wrapper"},I5={class:"kb-image-module kb-image-module--1-1 kb-member-overlay__member-profile-img"},B5={class:"kb-image-module__image-container"},O5={class:"kb-image-module__image"},L5=["src","alt"],D5={class:"kb-member-overlay__member-name"},M5={class:"kb-member-overlay__member-roles-wrapper"},N5={class:"kb-member-overlay__member-details"},P5={class:"kb-member-overlay__member-details-profile-text"},R5={key:0},F5={class:"kb-member-overlay__member-details-list"},V5=["href"],z5={key:0,class:"kb-spinner-overlay"};const U5={name:"MemberOverlay",setup:function(){var e,t,n=Af(),o=bl(function(){return n.state.forum.is_submitting}),r=bl(function(){return n.state.main.page_overlay_content_data.userId}),a=bl(function(){return n.state.forum.member_data});return Dr(function(){n.dispatch("forum/getMemberData",{userId:r.value}),e=document.querySelector('.kb-member-overlay__answers-link[data-order="first"]'),t=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){t.focus()}},{persistent:!0})}),{memberData:a,isSubmitting:o,getLabel:function(e){return n.getters["labels/getLabel"]({labelCollection:"MemberOverlay",labelKey:e})},tabTrap:function(n){n.shiftKey&&"first"===n.target.dataset.order&&(n.preventDefault(),t.focus()),n.shiftKey||"first"!==n.target.dataset.order||(n.preventDefault(),t.focus()),n.shiftKey||n.target.dataset.order||(n.preventDefault(),e.focus())},formatNewlines:v5}}},j5=U5,H5=(0,Hb.A)(j5,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",E5,[Mi("article",{class:Y(["kb-member-overlay",{"kb-member-overlay--submitting":e.isSubmitting}])},[Mi("div",S5,[Mi("div",T5,[Mi("figure",I5,[Mi("div",B5,[Mi("picture",O5,[Mi("img",{src:e.memberData.memberImgSrc,alt:e.memberData.memberImgAlt},null,8,L5)])])]),Mi("h2",D5,[Fi(fe(e.memberData.memberName)+" ",1),Mi("div",M5,[(Ai(!0),Si(gi,null,Yr(e.memberData.memberRoles,function(e,t){return Ai(),Si("span",{key:t,class:"kb-member-overlay__member-role"},fe(e),1)}),128))])])]),t[3]||(t[3]=Mi("div",{class:"kb-member-overlay__hero-curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("section",N5,[Mi("p",P5,[(Ai(!0),Si(gi,null,Yr(e.formatNewlines(e.memberData.memberProfileText),function(e,t){return Ai(),Si(gi,{key:t},[t>0?(Ai(),Si("br",R5)):zi("v-if",!0),Fi(fe(e),1)],64)}),128))]),t[1]||(t[1]=Mi("div",{class:"kb-member-overlay__member-details-divider"},null,-1)),Mi("ul",F5,[(Ai(!0),Si(gi,null,Yr(e.memberData.details,function(e,t){return Ai(),Si("li",{key:t},[Mi("p",null,fe(e.label),1),Mi("p",null,fe(e.detail),1)])}),128))]),t[2]||(t[2]=Mi("div",{class:"kb-member-overlay__member-details-divider"},null,-1)),Mi("a",{href:e.memberData.answerLink,onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-member-overlay__answers-link kb-button kb-button--full-color-spot","data-order":"first"},fe(e.getLabel("writeMessageButtonText")),41,V5)])]),e.isSubmitting?(Ai(),Si("div",z5,(i=t[4]||(t[4]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return C5(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return C5(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C5(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)]);var i}]]);function q5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var G5={class:"kb-overlay-styles__content-wrapper"},K5={key:0,class:"kb-overlay-styles__wrapper-for-scroll-bottom"},Z5={class:"kb-member-overlay__hero-wrapper"},W5={class:"kb-image-module kb-image-module--1-1 kb-member-overlay__member-profile-img"},$5={class:"kb-image-module__image-container"},Y5={class:"kb-image-module__image"},J5=["src","alt"],X5={class:"kb-member-overlay__member-name"},Q5={class:"kb-member-overlay__member-roles-wrapper"},e8={class:"kb-member-overlay__member-details"},t8={class:"kb-member-overlay__member-details-profile-text"},n8={key:0},o8={class:"kb-member-overlay__member-details-list"},r8=["href"],a8={key:1,class:"kb-spinner-overlay"};const i8={name:"MemberOverlayProfileCard",setup:function(){var e=Af(),t=bl(function(){return e.state.frivilligprofil.is_submitting}),n=bl(function(){return e.state.main.page_overlay_content_data.userId}),o=bl(function(){return e.state.frivilligprofil.member_data}),r=Kt(!1);return Dr(function(){e.dispatch("frivilligprofil/fetchMemberData",{pageId:e.state.main.page_id,userProfileId:n.value}).then(function(){return r.value=!0})}),{memberDataFetched:r,memberData:o,isSubmitting:t,getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"MemberOverlayProfileCard",labelKey:t})},formatNewlines:v5}}},l8=i8,s8=(0,Hb.A)(l8,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",G5,[Mi("article",{class:Y(["kb-member-overlay kb-member-overlay-profile-card",{"kb-member-overlay--submitting":e.isSubmitting}])},[e.memberDataFetched?(Ai(),Si("div",K5,[Mi("div",Z5,[Mi("figure",W5,[Mi("div",$5,[Mi("picture",Y5,[Mi("img",{src:e.memberData.imageSrc,alt:e.memberData.imageAlt},null,8,J5)])])]),Mi("p",X5,[Fi(fe(e.memberData.name)+" ",1),Mi("div",Q5,[(Ai(!0),Si(gi,null,Yr(e.memberData.memberRoles,function(e,t){return Ai(),Si("span",{key:t,class:"kb-member-overlay__member-role"},fe(e),1)}),128))])])]),t[2]||(t[2]=Mi("div",{class:"kb-member-overlay__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("section",e8,[Mi("p",t8,[(Ai(!0),Si(gi,null,Yr(e.formatNewlines(e.memberData.profileText),function(e,t){return Ai(),Si(gi,{key:t},[t>0?(Ai(),Si("br",n8)):zi("v-if",!0),Fi(fe(e),1)],64)}),128))]),t[0]||(t[0]=Mi("div",{class:"kb-member-overlay__member-details-divider"},null,-1)),Mi("ul",o8,[(Ai(!0),Si(gi,null,Yr(e.memberData.details,function(e,t){return Ai(),Si("li",{key:t},[Mi("p",null,fe(e.label),1),Mi("p",null,fe(e.detail),1)])}),128))]),t[1]||(t[1]=Mi("div",{class:"kb-member-overlay__member-details-divider"},null,-1)),Mi("a",{href:e.memberData.answerLink,class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("writeMessageButtonText")),9,r8)])])):zi("v-if",!0),e.isSubmitting?(Ai(),Si("div",a8,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return q5(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return q5(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q5(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)]);var i}]]),c8={name:"MitIdLogout",setup:function(){var e=Af();return{logout:function(){e.dispatch("mitid/logout").then(function(e){window.location.reload()})}}}};function u8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var d8={class:"kb-overlay-styles__content-wrapper"},p8={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},f8={class:"kb-overlay-styles__hero"},m8={class:"kb-overlay-styles__hero-wrapper"},g8={class:"kb-overlay-styles__hero-title"},h8={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},b8={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},v8={class:"kb-stafet-step__texts-wrapper"},y8={class:"kb-stafet-step__texts-description"},_8={class:"kb-stafet-step__input-wrapper"},A8={class:"kb-stafet-flow-actions"},k8={class:"kb-stafet-flow-actions__buttons-left-wrapper"},x8={key:0,class:"kb-spinner-overlay"};const w8={name:"MoveFileOverlay",components:{FormInputDropdown:XB},setup:function(){var e=Af(),t=bl(function(){return e.state.frivillige.active_overlay_mode});Lr(function(){e.dispatch("frivillige/getFolderDropdownOptions")});var n=bl(function(){return e.state.frivillige.active_file_name}),o=bl(function(){return e.state.frivillige.active_folder_name}),r=bl(function(){return"Dokument"===t?n.value:o.value}),a=Kt(),i=bl(function(){return e.state.frivillige.folder_dropdown_options}),l=bl(function(){return e.state.frivillige.is_submitting}),s=Kt(!1);return{getLabel:function(n,o){var r=e.getters["labels/getLabel"]({labelCollection:"Dokument"===t.value?"MoveFileOverlay":"Mappe"===t.value?"MoveFolderOverlay":void 0,labelKey:n});return o&&o.forEach(function(e,t){r=r.replace("{".concat(t,"}"),e)}),r},submitMoveFile:function(){var t=tE(a.value);s.value=!t,t&&e.dispatch("frivillige/submitMoveFileOrFolder",{mappeKode:a.value}).then(function(){e.dispatch("main/closePageOverlay"),e.dispatch("search/refreshSearches")})},nonEmptyStringValidator:tE,activeName:r,folderDropdown:a,folderDropdownOptions:i,isSubmitting:l}}},C8=w8,E8=(0,Hb.A)(C8,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputDropdown");return Ai(),Si("div",d8,[Mi("article",{class:Y(["kb-overlay-styles kb-move-file-overlay",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",p8,[Mi("div",f8,[Mi("div",m8,[Mi("h4",g8,fe(e.getLabel("title")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",h8,[Mi("section",b8,[Mi("div",v8,[Mi("p",y8,fe(e.getLabel("description",[e.activeName])),1)]),Mi("div",_8,[Ni(l,{isRequired:"",modelValue:e.folderDropdown,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.folderDropdown=t}),fieldName:"folderDropdown",label:e.getLabel("folderDropdownLabel"),isValidationError:e.displayError&&!e.nonEmptyStringValidator(e.folderDropdown),placeholder:e.getLabel("folderDropdownPlaceholder"),errorMessageLabel:e.getLabel("folderDropdownError"),selectOptions:e.folderDropdownOptions,onChangeCallback:function(t){return e.folderDropdown=t.target.value}},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel","selectOptions","onChangeCallback"])]),Mi("nav",A8,[Mi("div",k8,[Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[1]||(t[1]=function(){return e.submitMoveFile&&e.submitMoveFile.apply(e,arguments)})},fe(e.getLabel("submitMoveButtonText")),1)])])])])]),e.isSubmitting?(Ai(),Si("div",x8,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return u8(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return u8(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u8(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)])}]]),S8=E8;var T8={key:0,class:"kb-general-search__no-results","aria-live":"polite","aria-atomic":"true",role:"status"},I8={class:"kb-general-search__no-results__summary"},B8=["href"];const O8={name:"NoSearchResults",props:{guids:{type:Array,required:!0}},setup:function(e){var t=Af();return{totalCount:bl(function(){return e.guids.reduce(function(e,n){return e+t.state.search.scoped_total[n]},0)}),getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"noResults",labelKey:e})}}}},L8=O8,D8=(0,Hb.A)(L8,[["render",function(e,t,n,o,r,a){return 0===e.totalCount?(Ai(),Si("div",T8,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",I8,fe(e.getLabel("noResultDesc")),1
2),Mi("a",{href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,B8)])):zi("v-if",!0)}]]);function M8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var N8={class:"kb-notification-list"},P8={class:"kb-gruppeadgangsanmodning-list__header"},R8={class:"kb-gruppeadgangsanmodning-list__title"},F8={key:0,class:"kb-notification-list__count"},V8={class:"kb-notification-list__items","aria-label":"Notifikationer"},z8=["href","aria-labelledby"],U8={class:"kb-notification-list__items-item-date"},j8={class:"kb-notification-list__items-item-text"},H8={key:0,class:"kb-general-search__more-results"},q8={class:"kb-general-search__more-results__text"},G8={key:1,class:"kb-general-search__no-results"},K8={class:"kb-general-search__no-results__summary"},Z8=["href"],W8={key:2,class:"kb-spinner-overlay"};const $8={name:"NotificationList",props:{guid:{type:String,required:!0},skip:{type:Number,default:0},take:{type:Number,default:10}},setup:function(e){var t=Af(),n=bl(function(){var n;return null!==(n=t.state.search.results[e.guid])&&void 0!==n?n:[]}),o=bl(function(){var n;return null!==(n=t.state.search.scoped_total[e.guid])&&void 0!==n?n:0}),r=bl(function(){return t.state.search.search_inprogress[e.guid]});Dr(function(){t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:"api/community/notifications"}),t.dispatch("search/performSearch",{guid:e.guid,query:"",skip:e.skip,take:e.take})});var a=function(){t.dispatch("search/performSearch",{guid:e.guid,guery:"",skip:0,take:n.value.length})};return{notifications:n,totalNumberOfNotifications:o,showSpinner:r,getMoreNotifications:function(){t.dispatch("search/performMoreSearch",{guid:e.guid})},getLabel:function(e,t){var n=dA({labelKey:e,labelCollection:"notificationList"});return t&&t.forEach(function(e,t){n=n.replace("{".concat(t,"}"),e)}),n},rejectNotification:function(e){t.dispatch("forum/rejectNotification",{notificationId:e,callback:a})},approveNotification:function(e){t.dispatch("forum/approveNotification",{notificationId:e,callback:a})}}}},Y8=$8,J8=(0,Hb.A)(Y8,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",N8,[Mi("div",P8,[Mi("h2",R8,fe(e.getLabel("title")),1),e.notifications.length>0?(Ai(),Si("span",F8,fe(e.totalNumberOfNotifications)+" "+fe(e.getLabel("resultCountTitle")),1)):zi("v-if",!0)]),Mi("ul",V8,[(Ai(!0),Si(gi,null,Yr(e.notifications,function(e,t){return Ai(),Si("li",{class:"kb-notification-list__items-item",key:t},[Mi("a",{href:e.link,"aria-labelledby":e.id,class:"kb-notification-list__items-item-card"},[Mi("div",null,[Mi("time",U8,fe(e.date),1),Mi("p",j8,fe(e.text),1)])],8,z8)])}),128))]),e.notifications.length>
20?(Ai(),Si("div",H8,[Mi("span",q8,fe(e.getLabel("resultOutForTitle",[e.notifications.length,e.totalNumberOfNotifications])),1),e.totalNumberOfNotifications>e.notifications.length?(Ai(),Si("button",{key:0,onClick:t[0]||(t[0]=function(){return e.getMoreNotifications&&e.getMoreNotifications.apply(e,arguments)}),class:"kb-button kb-button--full-color"},fe(e.getLabel("showMoreButtonText")),1)):zi("v-if",!0)])):zi("v-if",!0),e.totalNumberOfNotifications||e.showSpinner||0!==e.notifications.length?zi("v-if",!0):(Ai(),Si("div",G8,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",K8,fe(e.getLabel("noResultDesc")),1),Mi("a",{href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,Z8)])),e.showSpinner?(Ai(),Si("div",W8,(i=t[1]||(t[1]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return M8(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return M8(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M8(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)]);var i}]]);var X8={class:"kb-online-donation-qr-print-page-content"},Q8={class:"kb-online-donation-qr-print-page-content__wrapper"},e6={class:"kb-online-donation-qr-print-page-content__header"},t6=["innerHTML"],n6={class:"kb-online-donation-qr-print-page-content__container"},o6={class:"kb-online-donation-qr-print-page-content__title"},r6={class:"kb-online-donation-qr-print-page-content__QR-box-wrapper"},a6={class:"kb-online-donation-qr-print-page-content__QR-box"},i6={class:"kb-online-donation-qr-print-page-content__QR-img"},l6=["src","alt"],s6=["innerHTML"],c6={class:"kb-online-donation-qr-print-page-content__thanks-text"};const u6={name:"OnlineDonationQRPrintPageContent",props:{svgLogo:{type:String,required:!1,default:'<svg viewBox="0 0 211 40" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)" fill="#E8001D"><path d="M64.453 5.519a18.525 18.525 0 0 0-26.198 0l-3.26 3.26-3.26-3.26a18.524 18.524 0 1 0 0 26.196l3.26-3.261 3.26 3.26A18.524 18.524 0 1 0 64.453 5.52ZM28.88 28.866a14.489 14.489 0 1 1 0-20.488l3.26 3.26-4.123 4.123-3.266-3.252a8.647 8.647 0 1 0 0 12.233l3.26-3.26 4.124 4.123-3.255 3.261Zm6.116-14.378 4.123 4.124-4.123 4.123-4.124-4.123 4.124-4.124Zm-9.84 4.124-3.259 3.266a4.61 4.61 0 1 1 0-6.521l3.26 3.25
25Zm36.442 10.254a14.501 14.501 0 0 1-20.481 0l-3.26-3.26 4.123-4.123 3.26 3.26a8.646 8.646 0 1 0 0-12.233l-3.26 3.26-4.124-4.125 3.26-3.259a14.488 14.488 0 0 1 23.779 15.777 14.488 14.488 0 0 1-3.297 4.703ZM48.094 15.362a4.61 4.61 0 1 1 0 6.521l-3.26-3.26 3.26-3.26ZM93.818 16.096h-1.997c-.355-3.079-1.77-5.743-4.245-6.908-.9.481-1.894.759-2.912.812v6.096H82.79V1.526h1.874V8.11c3.037-.23 6.096-3.413 6.47-6.575h1.915c-.333 2.413-1.728 4.785-3.642 6.43 2.414 1.619 3.91 4.26 4.411 8.131ZM102.741 5.193v1.749c-1.562.103-2.956.852-3.787 2.017v7.137h-1.772V7.087h-1.87V5.381h3.642v1.456c.749-1.082 2.059-1.644 3.787-1.644ZM122.295 11.271l-8.11.043c.208 2.062 1.872 3.287 3.683 3.287a3.621 3.621 0 0 0 2.974-1.52l1.25 1.333a5.588 5.588 0 0 1-4.292 1.932c-1.704 0-3.266-.707-4.261-1.978-1.099 1.394-2.749 1.956-4.308 1.956-3.099 0-5.409-2.266-5.409-5.596 0-3.329 2.31-5.576 5.368-5.576 1.1 0 2.352.375 3.162 1.186v-.936h1.767V6.4a5.03 5.03 0 0 1 3.372-1.248c2.913 0 4.826 2.206 4.826 5.618.002.167-.005.335-.022.502Zm-9.633 1.457a6.255 6.255 0 0 1-.312-2.017V8.44c-.562-.874-1.664-1.519-3.058-1.519-2.081 0-3.621 1.58-3.621 3.808 0 2.226 1.545 3.828 3.662 3.828a3.84 3.84 0 0 0 3.329-1.831v.002Zm7.74-3.079c-.188-1.664-1.27-2.767-2.933-2.767-1.687 0-3.038 1.082-3.288 2.767h6.221ZM139.435 15.258c-.729.708-1.787.999-2.749.999-1.936 0-3.413-1.186-3.413-3.33v-5.84h-5.68v9.01h-1.765v-9.01h-2.268V5.381h2.268V4.298c0-2.016 1.352-3.286 3.245-3.286a4.482 4.482 0 0 1 2.474.749l-.824 1.54a2.388 2.388 0 0 0-1.54-.561c-.874 0-1.582.54-1.582 1.558v1.083h5.68v-2.85h1.769v2.85h3.682v1.706h-3.682v5.66c0 1.31.833 1.81 1.787 1.81a2.253 2.253 0 0 0 1.747-.77l.851 1.47ZM151.123 11.29h-8.613c.166 2.061 1.956 3.308 3.787 3.308a3.986 3.986 0 0 0 3.286-1.665l1.248 1.332c-.706 1.02-2.412 2.081-4.536 2.081-3.392 0-5.659-2.226-5.659-5.635 0-3.143 2.164-5.577 5.305-5.577 3.08 0 5.201 2.289 5.201 5.68a4.73 4.73 0 0 1-.019.475Zm-1.934-1.643c-.189-1.707-1.582-2.81-3.247-2.81-1.768 0-3.141 1.125-3.436 2.81h6.683ZM162.938 9.792v6.304h-1.769V9.98c0-1.913-1.186-3.079-2.955-3.079-1.31 0-2.433.624-3.016 1.375v7.821h-1.769V5.375h1.769v.81a5.312 5.312 0 0 1 3.141-1.04c2.726.007 4.599 1.88 4.599 4.647ZM171.319 13.142c-.02-1.165-.811-1.436-2.662-1.894-1.852-.458-3.268-1.227-3.268-3.017 0-2.018 1.665-3.1 3.712-3.1 1.685 0 2.849.729 3.703 1.956l-1.375 1.144c-.521-.936-1.207-1.415-2.309-1.415-.962 0-1.935.458-1.935 1.394 0 .854.603 1.061 2.199 1.478 1.81.458 3.711 1.082 3.711 3.391 0 2.143-1.582 3.309-3.682 3.309-1.811 0-3.371-.833-4.261-2.207l1.374-1.143a3.273 3.273 0 0 0 2.887 1.664c1.033.006 1.927-.499 1.906-1.56ZM94.09 31.552c0 2.6-1.935 4.37-4.786 4.37h-6.49v-14.57h5.595c2.31 0 4.058 1.623 4.058 3.848a4.003 4.003 0 0 1-.915 2.474c1.582.674 2.538 2.068 2.538 3.878Zm-9.404-4.307h4.618a2.8 2.8 0 0 1 .412.021 2.66 2.66 0 0 0 .879-1.974c0-1.1-.708-2.143-2.455-2.143h-3.454v4.096Zm7.51 4.307c0-1.582-1.143-2.517-3.1-2.517h-4.41v5.097h4.41c1.957 0 3.1-.957 3.1-2.58ZM106.446 31.115h-8.614c.166 2.062 1.956 3.308 3.787 3.308a3.997 3.997 0 0 0 3.288-1.664l1.248 1.332c-.708 1.018-2.414 2.08-4.536 2.08-3.391 0-5.66-2.226-5.66-5.636 0-3.141 2.164-5.576 5.307-5.576 3.079 0 5.201 2.29 5.201 5.68 0 .08 0 .248-.021.476Zm-1.935-1.65c-.181-1.699-1.581-2.798-3.245-2.798-1.77 0-3.143 1.123-3.437 2.808l6.682-.01ZM118.134 35.922h-1.892c-.376-2.498-1.602-4.516-3.704-5.14a7.765 7.765 0 0 1-2.019.275v4.869h-1.767V21.149h1.763v8.176c2.83-.02 4.411-1.601 4.889-4.124h1.77c-.312 2.018-1.207 3.62-2.622 4.64 2.002 1.15 3.167 3.334 3.582 6.08ZM137.793 31.094l-8.109.041c.208 2.062 1.872 3.288 3.682 3.288a3.621 3.621 0 0 0 2.976-1.519l1.248 1.332a5.585 5.585 0 0 1-4.286 1.934c-1.706 0-3.266-.706-4.261-1.976-1.1 1.394-2.749 1.956-4.307 1.956-3.099 0-5.41-2.267-5.41-5.596 0-3.309 2.311-5.577 5.361-5.577 1.1 0 2.352.376 3.161 1.187v-.937h1.774v.998a5.02 5.02 0 0 1 3.37-1.248c2.913 0 4.828 2.2 4.828 5.618a4.16 4.16 0 0 1-.027.5Zm-9.633 1.457a6.264 6.264 0 0 1-.312-2.019v-2.267c-.562-.874-1.664-1.519-3.058-1.519-2.08 0-3.619 1.581-3.619 3.808s1.539 3.828 3.66 3.828a3.837 3.837 0 0 0 3.329-1.83Zm7.741-3.08c-.187-1.663-1.269-2.766-2.934-2.766-1.664 0-3.037 1.08-3.288 2.766h6.222ZM155.994 29.43v6.492h-1.768v-6.305c0-1.873-.962-2.887-2.474-2.887-1.332 0-2.268.603-2.83 1.352.103.444.152.898.146 1.353v6.492H147.3v-6.31c0-1.873-.962-2.887-2.474-2.887-1.331 0-2.371.603-2.954 1.375v7.822h-1.768v-10.72h1.768v.81a5.206 5.206 0 0 1 3.121-1.04c1.331 0 2.435.52 3.141 1.437 1.1-.938 2.352-1.437 3.746-1.437 2.47 0 4.114 1.728 4.114 4.453ZM169.097 30.554c0 3.33-2.31 5.596-5.389 5.596a5.306 5.306 0 0 1-3.142-.977v4.702h-1.769V25.227h1.769v.729a5.3 5.3 0 0 1 3.142-.979c3.079 0 5.389 2.268 5.389 5.577Zm-1.852 0c0-2.227-1.539-3.808-3.641-3.808-1.353 0-2.455.52-3.038 1.29v5.035c.583.77 1.665 1.311 3.038 1.311 2.102 0 3.641-1.582 3.641-3.828ZM181.245 31.115h-8.614c.166 2.062 1.956 3.308 3.787 3.308a4 4 0 0 0 3.288-1.664l1.248 1.332c-.708 1.018-2.414 2.08-4.536 2.08-3.392 0-5.66-2.226-5.66-5.636 0-3.141 2.164-5.576 5.306-5.576 3.079 0 5.202 2.29 5.202 5.68 0 .08 0 .248-.021.476Zm-1.935-1.65c-.187-1.699-1.578-2.798-3.246-2.798-1.769 0-3.142 1.123-3.436 2.808l6.682-.01ZM189.043 35.464a3.33 3.33 0 0 1-2.062.645c-1.603 0-2.81-.963-2.81-2.887V22.855h-1.872v-1.706h3.642v11.88c0 .963.499 1.415 1.186 1.415.426 0 .836-.163 1.143-.458l.773 1.478ZM196.426 32.966c-.021-1.164-.811-1.435-2.663-1.893-1.851-.457-3.267-1.227-3.267-3.017 0-2.018 1.666-3.1 3.711-3.1 1.685 0 2.85.728 3.703 1.957l-1.374 1.143c-.52-.936-1.207-1.414-2.31-1.414-.962 0-1.935.458-1.935 1.394 0 .853.604 1.06 2.199 1.477 1.811.457 3.703 1.082 3.703 3.391 0 2.143-1.582 3.31-3.682 3.31-1.81 0-3.37-.834-4.261-2.207l1.374-1.145a3.274 3.274 0 0 0 2.887 1.666c1.043 0 1.938-.5 1.915-1.562ZM210.446 31.115h-8.613c.167 2.062 1.956 3.308 3.787 3.308a3.994 3.994 0 0 0 3.287-1.664l1.249 1.332c-.708 1.018-2.413 2.08-4.536 2.08-3.391 0-5.659-2.226-5.659-5.636 0-3.141 2.164-5.576 5.306-5.576 3.079 0 5.201 2.29 5.201 5.68.001.159-.006.318-.022.476Zm-1.934-1.65c-.187-1.706-1.58-2.808-3.245-2.808-1.769 0-3.142 1.123-3.436 2.808h6.681Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h210.584v40H0z"/></clipPath></defs></svg>'},qrImgUrlBase:{type:String,required:!0},title:{type:String,required:!1}},setup:function(){var e=Af();return Dr(function(){window.print()}),{getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"OnlineDonationQRPrintPageContent",labelKey:t})},print:function(){return window.print()}}}},d6=u6,p6=(0,Hb.A)(d6,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",X8,[Mi("div",Q8,[Mi("header",e6,[Mi("div",{class:"kb-online-donation-qr-print-page-content__logo",innerHTML:e.svgLogo},null,8,t6)]),Mi("div",n6,[Mi("h1",o6,fe(e.getLabel("title")+" "+e.title),
21),Mi("div",r6,[Mi("div",a6,[Mi("div",i6,[Mi("img",{src:"data:image/png;base64, ".concat(e.qrImgUrlBase),alt:e.getLabel("qrCodeImgAlt")},null,8,l6)]),Mi("div",{class:"kb-online-donation-qr-print-page-content__QR-details",innerHTML:e.getLabel("qrCodeText")},null,8,s6)])]),Mi("p",c6,fe(e.getLabel("thanksText")),1)])])])}]]);function f6(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var m6={class:"kb-create-team","aria-live":"polite"},g6={class:"kb-tilmeld-hold-kvittering__hero"},h6={class:"kb-tilmeld-hold-kvittering__hero__title-wrapper"},b6={class:"kb-tilmeld-hold-kvittering__hero__title-wrapper__title"},v6={class:"kb-tilmeld-hold-kvittering__success-text"},y6={class:"kb-create-team__content-container kb-forms"},_6={key:0,class:"kb-create-team__spinner-container"},A6={class:"kb-forms__container"},k6={class:"kb-forms__fieldset"},x6={class:"kb-forms__legend"},w6=["data-order","value"],C6={class:"kb-create-team__button-wrapper"},E6=["data-order"],S6={class:"kb-create-team__button-wrapper"};const T6={name:"OpretHoldOverlay",props:{createHoldUrl:{type:String,required:!1}},setup:function(e){var t,n,o,r=Af(),a=(null===(t=window)||void 0===t||null===(t=t.dataLayer)||void 0===t||t.find(function(e){return e["gtm.start"]}),bl(function(){var t;return null!==(t=e.createHoldUrl)&&void 0!==t?t:r.state.main.page_overlay_content_data.createHoldUrl})),i=bl(function(){return"".concat(a.value,"?previous-holdkode=").concat(l.value)}),l=Kt(null),s=bl(function(){var e=r.state.stafet.previousTeams;return Array.isArray(e)?e:null}),c=bl(function(){return null===s.value});return Dr(function(){r.dispatch("stafet/getPreviousTeams"),n=document.querySelector('[data-order="first"]'),document.querySelector('[data-order="last"]'),o=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){n?n.focus():o.focus()}},{persistent:!0})}),Nr(function(){n=document.querySelector('[data-order="first"]'),document.querySelector('[data-order="last"]'),l.value=l.value?l.value:l.value=s.value[0].id}),{handleCreateTeam:function(){location.href=a.value},handleReactivateTeam:function(){location.href=i.value},tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),o.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),o.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),n.focus())},previousTeams:s,showSpinner:c,selectedPreviousTeam:l,getLabel:function(e){return r.getters["labels/getLabel"]({labelCollection:"OpretHoldOverlay",labelKey:e})}}}},I6=T6,B6=(0,Hb.A)(I6,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",m6,[Mi("section",g6,[Mi("div",h6,[t[11]||(t[11]=Mi("div",{class:"kb-tilmeld-hold-kvittering__hero__hero-title-circle"},[Mi("div",{class:"kb-tilmeld-hold-kvittering__hero__hero-title-icon"},[Mi("svg",{viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M1.7998 12L8.6998 19.2L20.1998 0.799988",stroke:"white","stroke-width":"2.3","stroke-linejoin":"round"})])])],-1)),Mi("h2",b6,fe(e.getLabel("title")),1)]),t[12]||(t[12]=Mi("div",{class:"kb-tilmeld-hold-kvittering__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",v6,fe(e.getLabel("text")),1)]),t[14]||(t[14]=Mi("div",{class:"kb-create-team__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",y6,[e.showSpinner?(Ai(),Si("div",_6,(i=t[13]||(t[13]=[Mi("div",{class:"kb-spinner-container kb-spinner-container--visible"},[Mi("div",{class:"kb-spinner-container__spinner"})],-1),Mi("p",null,"Vent venligst mens vi kontrollere om du har tidligere hold der kan genaktiveres.",-1)]),function(e){if(Array.isArray(e))return f6(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return f6(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f6(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0),zi(" multiple previous teams "),!e.showSpinner&&e.previousTeams.length>1?(Ai(),Si(gi,{key:1},[Mi("div",A6,[Mi("fieldset",k6,[Mi("legend",x6,fe(e.getLabel("reuseMotivationTitle")),1),(Ai(!0),Si(gi,null,Yr(e.previousTeams,function(n,o){return Ai(),Si("label",{key:o},[io(Mi("input",{"data-order":e.selectedPreviousTeam&&e.selectedPreviousTeam===n.id?"first":o,class:"FormChoice__Input--Radio","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.selectedPreviousTeam=t}),type:"radio",name:"previousteams",value:n.id},null,8,w6),[[Js,e.selectedPreviousTeam]]),Fi(" "+fe(n.name),1)])}),128))])]),Mi("div",C6,[Mi("button",{onClick:t[1]||(t[1]=function(){return e.handleReactivateTeam&&e.handleReactivateTeam.apply(e,arguments)}),onKeydown:t[2]||(t[2]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":e.previousTeams.length>1?e.previousTeams:"first",class:"kb-button kb-button--full-color-spot kb-create-team__kb-button--full-color-spot"},fe(e.getLabel("confirmButton")),41,E6),Mi("button",{onClick:t[3]||(t[3]=function(){return e.handleCreateTeam&&e.handleCreateTeam.apply(e,arguments)}),"data-order":"last",onKeydown:t[4]||(t[4]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("cancelButton")),33)])],64)):e.showSpinner||1!==e.previousTeams.length?e.showSpinner?zi("v-if",!0):(Ai(),Si(gi,{key:3},[zi(" no previous teams "),Mi("p",null,fe(e.getLabel("noPreviousTeamText")),1),Mi("button",{onClick:t[9]||(t[9]=function(){return e.handleCreateTeam&&e.handleCreateTeam.apply(e,arguments)}),"data-order":"last",onKeydown:t[10]||(t[10]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("cancelButton")),33)],64)):(Ai(),Si(gi,{key:2},[zi(" one single previous team "),Mi("p",null,fe(e.getLabel("reuseMotivationTitle")),1),Mi("p",null,fe(e.previousTeams[0].name),1),Mi("div",S6,[Mi("button",{onClick:t[5]||(t[5]=function(){return e.handleReactivateTeam&&e.handleReactivateTeam.apply(e,arguments)}),onKeydown:t[6]||(t[6]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",class:"kb-button kb-button--full-color-spot kb-create-team__kb-button--full-color-spot"},fe(e.getLabel("confirmButton")),33),Mi("button",{onClick:t[7]||(t[7]=function(){return e.handleCreateTeam&&e.handleCreateTeam.apply(e,arguments)}),"data-order":"last",onKeydown:t[8]||(t[8]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("cancelButton")),33)])],64))])]);var i}]]);var O6={class:"kb-ordre-overview"},L6={class:"kb-ordre-overview__header"},D6={class:"kb-ordre-overview__header__item"},M6={class:"kb-ordre-overview__header__item"},N6={class:"kb-ordre-overview__header__item"},P6={class:"kb-ordre-overview__list"},R6={class:"kb-ordre-overview__list__item-accordion"},F6={class:"kb-ordre-overview__list__item-accordion-header"},V6={class:"kb-ordre-overview__list__item-accordion-header-item"},z6={class:"kb-ordre-overview__list__item-accordion-header-item-title"},U6={class:"kb-ordre-overview__list__item-accordion-header-item"},j6={class:"kb-ordre-overview__list__item-accordion-header-item-title"},H6={class:"kb-ordre-overview__list__item-accordion-header-item"},q6={class:"kb-ordre-overview__list__item-accordion-header-item-title"},G6={class:"kb-ordre-overview__list__content"},K6={class:"kb-ordre-overview__list__content-table"},Z6={class:"h-desktop"};const W6={name:"OrdreOverview",props:{orders:{type:Object,required:!0}},setup:function(e){return Af(),{results:bl(function(){return e.orders}),getLabel:function(e){return dA({labelKey:e,labelCollection:"OrdreOverview"})}}}},$6=(0,Hb.A)(W6,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",O6,[Mi("div",L6,[Mi("div",D6,fe(e.getLabel("dateLabel")),1),Mi("div",M6,fe(e.getLabel("orderNumberLabel")),1),Mi("div",N6,fe(e.getLabel("priceLabel")),1)]),Mi("ul",P6,[(Ai(!0),Si(gi,null,Yr(e.results,function(n,o){return Ai(),Si("li",{key:o,class:"kb-ordre-overview__list__item"},[Mi("details",R6,[Mi("summary",F6,[Mi("div",V6,[Mi("span",z6,fe(e.getLabel("dateLabel")),1),Mi("span",null,fe(n.date),1)]),Mi("div",U6,[Mi("span",j6,fe(e.getLabel("orderNumberLabel")),1),Mi("span",null,fe(n.orderNumber),1)]),Mi("div",H6,[Mi("span",q6,fe(e.getLabel("priceLabel")),1),Mi("span",null,fe(n.price.toLocaleStr
2ing("da-DK",{style:"currency",currency:"DKK"})),1)]),t[0]||(t[0]=Mi("div",{class:"kb-ordre-overview__list__item-accordion-arrow"},[Mi("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 7"},[Mi("path",{stroke:"#3C3C3C","stroke-linejoin":"round","stroke-width":"1.5",d:"M13 1 7 6 1 1"})])],-1))]),Mi("div",G6,[Mi("table",K6,[Mi("thead",null,[Mi("tr",null,[Mi("th",null,fe(e.getLabel("productNameLabel")),1),Mi("th",null,fe(e.getLabel("productNumberLabel")),1),Mi("th",null,fe(e.getLabel("amountLabel")),1),Mi("th",null,fe(e.getLabel("priceLabel")),1)])]),Mi("tbody",null,[(Ai(!0),Si(gi,null,Yr(n.order,function(t,n){return Ai(),Si("tr",{key:n},[Mi("td",null,fe(t.productName),1),Mi("td",null,fe(t.productId),1),Mi("td",null,[Mi("span",Z6,fe(e.getLabel("amountLabel"))+":",1),Fi(" "+fe(t.quantity),1)]),Mi("td",null,fe(t.price.toLocaleString("da-DK",{style:"currency",currency:"DKK"})),1)])}),128))])])])])])}),128))])])}]]);function Y6(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var J6=["id"],X6=["href","aria-current","data-order"],Q6=["href"];function e9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var t9=["href"],n9={class:"kb-sub-navigation__login-info-user-name"},o9={class:"kb-visually-hidden"},r9={class:"kb-image-module kb-image-module--1-1 kb-group-post__contents-left-top-profile-img"},a9={class:"kb-image-module__image-container"},i9={class:"kb-image-module__image"},l9=["src"],s9={class:"kb-visually-hidden"},c9={class:"kb-visually-hidden"},u9=["title"];const d9={name:"SubNavProfile",props:{smallScreenMode:{type:Boolean,required:!1,default:!1}},setup:function(){var e=Af(),t=bl(function(){return e.state.main.user.user_has_notifications}),n=bl(function(){return e.state.main.user.show_user}),o=bl(function(){return e.state.main.user.user_authorized});return{userName:bl(function(){return e.state.main.user.user_name}),userHasNotifications:t,userProfileImg:bl(function(){return e.state.main.user.user_profile_img}),showUser:n,userAuthorized:o,userHasLoggedInAsFrivilligAdmin:bl(function(){return e.state.main.user.user_has_logged_in_as_frivillig_admin}),getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"subNavigationProfile",labelKey:t})}}}},p9=(0,Hb.A)(d9,[["render",function(e,t,n,o,r,a){return o.userAuthorized?(Ai(),Si("a",{key:0,href:o.getLabel("profileLink"),class:"kb-sub-navigation__login-info kb-sub-navigation__login-info-user"},[Mi("p",n9,fe(o.userName),1),Mi("span",o9,fe(o.getLabel("loginHelpText")),1),Mi("figure",r9,[Mi("div",a9,[Mi("picture",i9,[Mi("img",{src:o.userProfileImg,alt:""},null,8,l9)])]),o.userHasNotifications?(Ai(),Si(gi,{key:0},[Mi("p",s9,fe(o.getLabel("notificationsHelpText")),1),t[0]||(t[0]=Mi("div",{class:"kb-sub-navigation__login-info-user-notification-dot"},null,-1))],64)):zi("v-if",!0),o.userHasLoggedInAsFrivilligAdmin?(Ai(),Si(gi,{key:1},[Mi("p",c9,fe(o.getLabel("loggedInAsFrivilligAdminTooltip")),1),Mi("div",{class:"kb-sub-navigation__login-info-user-is-admin",title:o.getLabel("loggedInAsFrivilligAdminTooltip")},(i=t[1]||(t[1]=[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-exclamation-circle-fill",viewBox:"0 0 16 16"},[Mi("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4m.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2"})],-1)]),function(e){if(Array.isArray(e))return e9(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return e9(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e9(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),8,u9)],64)):zi("v-if",!0)])],8,t9)):zi("v-if",!0);var i}]]),f9={name:"SubNavigationMobile",components:{SubNavProfile:p9},props:{toggleMobileMenu:{type:Function,required:!0},id:{type:String,required:!0}},setup:function(e){var t,n,o,r,a,i=Af(),l=null!==(t=i.state.main.sub_navigation_links)&&void 0!==t&&null!==(t=t.generalLink)&&void 0!==t&&t.href?i.state.main.sub_navigation_links.generalLink:null,s=i.state.main.sub_navigation_links.subLinks.map(function(e,t,n){var o=xm(e);return 0===t?o.order="first":t===(n.length-1&&!l)?o.order="last":o.order=t,o});return Dr(function(){n=document.querySelector('.kb-sub-navigation__mobile-menu__link[data-order="first"]'),o=document.querySelector('.kb-sub-navigation__mobile-menu__general-link[data-order="last"]'),r=document.querySelector(".kb-sub-navigation__mobile-expand--close"),a=document.querySelector(".kb-sub-navigation__mobile-expand"),n.focus();var t=function(n){"Escape"===n.key&&(e.toggleMobileMenu(a),document.body.removeEventListener("keydown",t))};document.body.addEventListener("keydown",t)}),{links:{generalLink:l,subLinks:s},closeMobileMenu:function(e){document.querySelector(".kb-page-overlay--subnavigation").click(),window.location.href=e.srcElement.href},tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),r.focus()),e.shiftKey&&"close"===e.target.dataset.order&&(e.preventDefault(),o.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),r.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),n.focus())},originalTrigger:a}}},m9={name:"SubNavigation",components:{SubNavigationMobile:(0,Hb.A)(f9,[["render",function(e,t,n,o,r,a){var i,l=qr("sub-nav-profile");return Ai(),Si("div",{role:"dialog","aria-modal":"true",class:"kb-sub-navigation__mobile-menu kb-sub-navigation__mobile-menu--profile",id:n.id},[Mi("button",{onClick:t[0]||(t[0]=function(e){return n.toggleMobileMenu(o.originalTrigger)}),onKeydown:t[1]||(t[1]=cc(function(){return o.tabTrap&&o.tabTrap.apply(o,arguments)},["tab"])),"data-order":"close",class:"kb-sub-navigation__mobile-expand kb-sub-navigation__mobile-expand--close","aria-label":"Luk menupunkter"},(i=t[5]||(t[5]=[Mi("span",{class:"kb-sub-navigation__mobile-expand__icon","aria-hidden":"true"},[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-close"})],-1)]),function(e){if(Array.isArray(e))return Y6(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Y6(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y6(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),32),Mi("ul",null,[(Ai(!0),Si(gi,null,Yr(o.links.subLinks,function(e,n){return Ai(),Si("li",{key:n},[Mi("a",{class:"kb-sub-navigation__mobile-menu__link",onClick:t[2]||(t[2]=lc(function(){return o.closeMobileMenu&&o.closeMobileMenu.apply(o,arguments)},["prevent"])),href:e.href,onKeydown:t[3]||(t[3]=cc(function(){return o.tabTrap&&o.tabTrap.apply(o,arguments)},["tab"])),"aria-current":e.ariaCurrent,"data-order":e.order}
2,[Fi(fe(e.displayName)+" ",1),t[6]||(t[6]=Mi("svg",{class:"kb-sub-navigation__mobile-menu__icon",viewBox:"0 0 18 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation"},[Mi("path",{d:"m13.167 1 3.623 4-3.623 4",stroke:"#3C3C3C","stroke-linejoin":"round"}),Mi("path",{d:"M12.746 5H1v3.692",stroke:"#3C3C3C"})],-1))],40,X6)])}),128))]),Ni(l,{smallScreenMode:!0}),Mi("a",{class:"kb-sub-navigation__mobile-menu__general-link",href:o.links.generalLink.href,onKeydown:t[4]||(t[4]=cc(function(){return o.tabTrap&&o.tabTrap.apply(o,arguments)},["tab"])),"data-order":"last"},"GÃ¥ til "+fe(o.links.generalLink.displayName),41,Q6)],8,J6)}]]),SubNavProfile:p9},props:{userData:{type:Object,required:!1}},setup:function(e){var t=Af(),n=Kt(!1),o=document.createElement("div");o.classList.add("kb-page-overlay__cover","kb-page-overlay--subnavigation");var r=0,a=function(e,t){n.value=!n.value,o.classList.toggle("kb-page-overlay--subnavigation--visible"),n.value||t&&t.focus();var a=document.body,i=new ResizeObserver(function(e){r?(r=0,n.value=!1,o.classList.remove("kb-page-overlay--subnavigation--visible"),i.unobserve(a)):r=e[0].contentRect.width});i.observe(a)};return o.addEventListener("click",a),Lr(function(){var n,r,a;document.documentElement.classList.add("kb-has-subnav"),document.body.appendChild(o),n=Kt(0),r=document.querySelector(".kb-sub-navigation"),a="kb-sub-navigation--mobile-sticky",IY(function(){var e=window.scrollY-n.value>0?"down":"up";n.value=window.scrollY;var t=window.pageYOffset>250;return"up"===e&&t?r.classList.add(a):r.classList.contains(a)&&r.classList.remove(a),!1}),t.dispatch("main/setUserData",e.userData)}),{toggleMobileMenu:a,mobileMenuOpen:n}}};var g9=".kb-component--sub-navigation",h9=document.querySelector(g9);function b9(e){var t,n;if(h9&&!h9.hasAttribute("data-v-app")){var o={href:null===(t=h9.querySelector(":scope > A"))||void 0===t?void 0:t.href,displayName:null===(n=h9.querySelector(":scope > A"))||void 0===n?void 0:n.innerText},r=Array.from(h9.querySelectorAll(":scope > UL A")).map(function(e){return{href:null==e?void 0:e.href,displayName:null==e?void 0:e.innerText,ariaCurrent:null==e?void 0:e.ariaCurrent}});e.commit("main/set_sub_navigation_links",{generalLink:o,subLinks:r});var a={userData:h9.dataset.userData?JSON.parse(h9.dataset.userData):null},i=bc(m9,a).use(e),l=h9.outerHTML;m9.template=l,i.mount(g9)}}var v9=".kb-component--the-header",y9=document.querySelector(v9);function _9(e){if(y9&&!y9.hasAttribute("data-v-app")){var t=bc(E3).use(e),n=y9.querySelector(".kb-js--donate-button"),o=null==n?void 0:n.dataset.donationSettings;o&&e.commit("fundraising/set_donation_settings",JSON.parse(o));var r=y9.outerHTML;E3.template=r,t.mount(v9)}}var A9=document.querySelector(".kb-component--overlay-link-interceptor"),k9="[content-type=overlaylinks]",x9=function(e){return"hidden"!==window.getComputedStyle(e).getPropertyValue("visibility")&&"none"!==window.getComputedStyle(e).getPropertyValue("display")};function w9(e){if(A9&&!A9.hasAttribute("data-v-app")){var t=function(t){t.querySelector(".kb-page-overlay__container").classList.remove("open"),t.querySelector(".kb-page-overlay__container").classList.add("closed"),e.commit("main/set_article_overlay_open",!1),_C({closing:function(){t.querySelector(".kb-page-overlay__container").classList.remove("closed"),t.querySelector(".kb-page-overlay__container").classList.add("ready"),Xf()},statePropName:"article_overlay_open",parent:t})},n=document.createElement("div");n.classList.add("kb-page-overlay"),n.innerHTML='<div class="kb-page-overlay__container"> <div class="kb-page-overlay__cover"></div> <div class="kb-page-overlay__content"><button class="kb-page-overlay__close" aria-label="Luk artikel"><div class="kb-ui-icon kb-ui-icon--ui-close"></div></button><div class="kb-article-overlay kb-article-overlay--target"></div></div> </div>',n.querySelector(".kb-page-overlay__close").addEventListener("click",t.bind(this,n)),n.querySelector(".kb-page-overlay__cover").addEventListener("click",t.bind(this,n)),n.querySelector(".kb-page-overlay__container").addEventListener("keydown",function(e){"Escape"===e.key&&t(n)});var o=function(t){t.preventDefault();var o={POSTMETHOD:"POST",PUTMETHOD:"PUT",DELETEMETHOD:"DELETE",PATCHMETHOD:"PATCH",ENVIRONMENT:"PRODUCTION",GETMETHOD:"GET",GENERAL_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",
2EVENT_SEARCH:"da-DK/api/[pageId]/activityApi/search/[guid]",COUNSELLING_SEARCH:"da-DK/api/counsellingCenterApi/search/[guid]",PATIENT_ASSOCIATIONS_SEARCH:"da-DK/api/patientAssociationsApi/search/[guid]",DOCUMENT_LIST_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",AUTOCOMPLETE:"da-DK/api/searchApi/autocomplete",DICTIONARY_BASE_URL:"da-DK/api/dictionary/word",EVENTSIGNUP:"/api/activities/signup",FUNDRAISING_SEARCH:"da-DK/api/personalFundraising/search/[guid]",DONATION_SEARCH:"da-DK/api/personalFundraising/search/[guid]/donations",GALLERY_SEARCH:"",CREATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPDATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",DELETE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPLOAD_FUNDRAISEIMAGES:"da-DK/api/personalFundraising/[id]/image",SUBMIT_DONATION:"da-DK/api/[pageId]/fundraisingCampaignDonations",SUBMIT_PERSONAL_DONATION:"da-DK/api/personalFundraising/[guid]/donations",SUBMIT_PERSONAL_MOBILEPAY_DONATION:"da-DK/api/personalFundraising/[guid]/donations/mobilepay",DISCARDFUNDRAISEIMAGE:"/api/discard-fundraise-image.json",GET_PURCHASE_DATA:"da-DK/api/tracking/purchaseeventdata",PROJECTS_SEARCH:"da-DK/api/[pageId]/projectApi/search/[guid]",GET_USERPROFILE_FUNDRAISING_CAMPAIGNS:"da-DK/api/personalFundraising/search/userprofile/[userProfileId]",GET_PERSONAL_FUNDRAISING_DASHBOARD:"da-DK/api/personalFundraising/dashboard/[userProfileId]",GET_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",UPDATE_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",GET_DONATIONS:"da-dk/api/fundraisingDonations/[campaignAreaId]",GET_RELAY_LIST:"api/stafetter/[pageId]",GET_STAFET_PARTICIPANTS:"api/hold/[teamId]/deltagere",GET_STAFET_TEAM_LIST:"api/holdList/[pageId]/[stafetId]",SUBMIT_STAFET_CREATE_HOLD:"da-DK/api/[pageId]/hold/?stafetKode=[stafetKode]&previousHoldkode=[previousHoldkode]",SUBMIT_STAFET_EDIT_HOLD:"da-DK/api/[pageId]/hold/[holdKode]",SUBMIT_STAFET_DONATION:"da-DK/api/[pageId]/sfl/donation",SUBMIT_STAFET_STOT_LYS_DONATION:"da-DK/api/[pageId]/sfl/lyspose",SUBMIT_STAFET_DELTAG_PAA_HOLD:"da-DK/api/[pageId]/sfl/deltager",SUBMIT_STAFET_DELTAG_SOM_FIGHTER:"da-DK/api/[pageId]/sfl/fighter",SUBMIT_STAFET_ADD_DELTAGERE:"da-DK/api/[pageId]/sfl/add-deltagere",GET_STAFET_TEAM_LIGHTS:"api/hold/[holdKode]/lysposer?skip=[skip]&take=[take]",GET_STAFET_TEAM_DONATIONS:"api/hold/[holdKode]/donationer",GET_STAFET_TEAM_DONATIONS_PAGINATED:"api/hold/[holdKode]/donationerPaginated?offsetDonationer=[offsetDonationer]&offsetAdmissions=[offsetAdmissions]&limit=[limit]",GET_STAFET_TEAM_PARTICIPANT_DETAILS:"api/hold/[holdKode]/deltagere",GET_PREVIOUS_TEAMS_LIST:"/api/hold-list/profile/previous-hold?newStafetkode=[newStafetkode]",GET_PROFILE_TEAMS_LIST:"api/hold-list/profile/hold/[pageId]",SUBMIT_STAFET_PROFILE_CREATE:"da-DK/api/sfl/profile/create",SUBMIT_STAFET_PROFILE_UPDATED:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_PROFILE_DELETE:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_ROUND_COUNTER:"api/[pageId]/hold/[holdKode]/runderegistrering",SUBMIT_STAFET_SEND_EMAIL:"api/sfl/mailudsendelse",SUBMIT_STAFET_RESEND_EMAIL:"api/sfl/mailudsendelse/resend",STAFET_GET_MAILUDSENDELSE_ATTACHMENT:"api/sfl/mailudsendelse/attachment/[attachmentId]",STAFET_GET_PROFILE_HOLDKAPTAJN_HOLD:"api/hold-list/profile/[userProfileId]/holdkaptajn-hold",STAFET_GET_MAILUDSENDELSE_NEW_RECIPIENTS_COUNT:"api/sfl/mailudsendelse/[mailudsendelseId]/new-recipients-count",COMMUNITY_CHAT_SEARCH_USERS:"api/community/chat/users/search?p=[query]&take=[take]",COMMUNITY_GET_USER_CHATS:"api/community/user/[userId]/chats",COMMUNITY_GET_CHAT:"api/community/chat/[chatId]",COMMUNITY_CREATE_CHAT:"api/community/chat/create",COMMUNITY_FIND_CHAT_WITH_USER:"api/community/chat/find-with-user",COMMUNITY_GET_CHAT_MEMBER_PROFILE:"api/community/chat/member-profile",COMMUNITY_DELETE_CHAT:"api/community/chat/[chatId]/delete",COMMUNITY_CREATE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/create",COMMUNITY_EDIT_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/edit",COMMUNITY_DELETE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/delete",COMMUNITY_CREATE_COMMENT:"api/community/post/[postId]/comment/create",COMMUNITY_CREATE_SUBCOMMENT:"api/community/comment/[commentId]/subcomment/create",COMMUNITY_EDIT_COMMENT:"api/community/comment/[commentId]/edit",COMMUNITY_DELETE_COMMENT:"api/community/comment/[commentId]/delete",COMMUNITY_GET_NOTIFICATIONS:"api/community/notifications",COMMUNITY_GET_POSTS:"api/community/posts",COMMUNITY_CREATE_POST:"api/community/post/[postId]/create",COMMUNITY_EDIT_PO
2ST:"api/community/post/[postId]/edit",COMMUNITY_DELETE_POST:"api/community/post/[postId]/delete",COMMUNITY_SAVE_POST:"api/community/post/[postId]/save",COMMUNITY_GET_POST_LATEST_COMMENT:"api/community/post/[postId]/latest-comment",COMMUNITY_GET_POST_STATISTICS:"api/community/post/[postId]/statistics",COMMUNITY_GET_POST_COMMENTS:"api/community/post/[postId]/comments?pageId=[pageId]",COMMUNITY_GET_USER_GROUPS:"api/community/user/groups?pageId=[pageId]",COMMUNITY_LEAVE_GROUP:"api/community/user/groups/[groupId]/leave",COMMUNITY_GET_USER_POSTS:"api/community/user/posts",COMMUNITY_GET_USER_SAVED_POSTS:"api/community/user/posts/saved",GET_GROUP_SEARCH_RESULT:"da-DK/api/groupSearch/search/[pageId]/[guid]",SUBMIT_CREATE_GALLERY:"da-DK/api/createGallery/[id]",SUBMIT_EDIT_GALLERY:"da-DK/api/editGallery/[id]",FORUM_MEMBER_DATA:"da-DK/api/member-data/[id]",FORUM_MEMBER_LIST_DATA:"da-DK/api/member-list-data/[groupid]",SUBMIT_FORUM_MEMBER_APPLICATION:"da-DK/api/forumMemberApplication/[id]/[groupid]",FORUM_SUBMIT_EDIT_PROFILE:"da-DK/api/saveProfile",SUBMIT_FORUM_PROFILE_PICTURE:"da-DK/api/submitForumProfilePicture/[id]",FORUM_PROFILE_PICTURE:"da-DK/api/forumProfilePicture/[id]",GET_GRUPPEADGANGSANMODNINGER:"api/gruppeadgangsanmodninger",APPROVE_NOTIFICATION:"api/notifications/[id]/approve",REJECT_NOTIFICATION:"api/notifications/[id]/reject",APPROVE_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/approve",REJECT_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/reject",SUBMIT_CREATE_FORUM_PROFILE:"da-DK/api/cancerforum/profile/create",DELETE_CANCER_PROFILE:"da-DK/api/deleteForumProfile/[id]",DELETE_CANCER_PROFILE_AND_DATA:"da-DK/api/deleteForumProfileAndData/[id]",GET_THEME_STATISTICS:"da-DK/api/theme/[themeId]/statistics",GET_GROUP_STATISTICS:"da-DK/api/group/[groupId]/statistics",FORUM_JOIN_GROUP:"da-DK/api/join-open-group-redirect/[groupId]",CANCERFORUM_SEARCH:"da-DK/api/[pageId]/cancerforum/search",FRIVILLIGE_GROUPS_SEARCH:"api/frivillig/[pageId]/groups",FRIVILLIGE_GROUPS_HOVEDGRUPPE_SEARCH:"api/frivillig/[pageId]/hovedgruppe/[hovedgruppekode]/groups",FRIVILLIGE_MEMBER_LIST_DATA:"da-DK/api/getMemberListData/[group_id]",FRIVILLIGE_MEMBER_DATA:"da-DK/api/getMemberData/[id]",FRIVILLIGE_MEMBER_REQUEST_ROLES_DATA:"da-DK/api/getMemberRequestRolesData/[id]",FRIVILLIGE_MEMBER_REMOVE:"api/frivillig/groups/[gruppeKode]/medlemmer/[member_id]",FRIVILLIGE_FOLDER_DROPDOWN_OPTIONS:"api/frivillig/valid-move-options",GET_FILES_LIST:"api/frivillig/[pageId]/[gruppeKode]/dokumenter",SUBMIT_CREATE_NEW_FILE:"api/frivillig/dokumenter/template",SUBMIT_UPLOAD_NEW_FILE:"api/frivillig/dokumenter",SUBMIT_MOVE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_EDIT_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_DELETE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_CREATE_FOLDER:"api/frivillig/mapper",SUBMIT_EDIT_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_MOVE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_DELETE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_CONFIRM_DELETE_PROFILE:"da-DK/api/submitConfirmDeleteProfile/[group_id]/[member_id]",SUBMIT_CONFIRM_DELETE_MEMBER:"da-DK/api/submitConfirmDeleteMember/[group_id]/[member_id]",ORDRE_OVERVIEW:"da-DK/api/ordreOverview/[id]",CREATE_EVENT:"da-DK/api/createEvent",FRIVILLIGE_GROUP_EVENTS:"api/frivillig/[pageId]/groups/[groupId]/events",EDIT_EVENT:"da-DK/api/editEvent/[id]",CALENDAR_OVERLAY:"da-DK/api/calendarOverlay",EDIT_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil",CREATE_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil/create",GET_FRIVILLIGPROFIL_CARD_DATA:"da-DK/api/frivillig/[pageId]/profil/[id]/frivilligprofilCard",FRIVILLIGE_GROUP_EVENT:"api/frivillig/[pageId]/groupEvents/[eventId]",FRIVILLIG_PRODUCT_SEARCH:"da-DK/api/frivillig/[pageId]/productSearchApi/searchWithRoleInformation/[guid]",FRIVILLIG_PRODUCT_LIST_SEARCH:"da-DK/api/frivillig/[pageId]/productListSearchApi/searchWithRoleInformation/[guid]",FRIVILLIGE_GROUP_EVENT_EDIT:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIGE_GROUP_EVENT_GET:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIG_GROUP_MEDLEMMER_GET:"api/frivillig/[pageId]/groups/[groupId]/medlemmer",FRIVILLIGE_WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/frivillig/web
2shop/${pageId}/checkout/placeorder",FRIVILLIGPROFIL_ROLLER_GET:"da-DK/api/frivillig/profil/roller/[aktivitetsId]",FRIVILLIGPROFIL_GRUPPER_GET:"da-DK/api/frivillig/profil/grupper/[aktivitetsId]",DELETE_FRIVILLIGPROFIL:"da-DK/api/frivillig/[pageId]/profil/[guid]",FRIVILLIGPROFIL_AKTIVITETER_GET:"da-DK/api/frivillig/profil/aktiviteter",FRIVILLIGPROFIL_PICTURE_GET:"api/frivillig/profil/image/?fpid=[id]",SUBMIT_GROUP_ACCESS_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning",DELETE_ROLE_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning/[id]",SUBMIT_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling",DELETE_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling/[id]",FRIVILLIGE_JOIN_GROUP:"api/frivillig/groups/[gruppeKode]/join",SUBMIT_FRIVILLIG_PROFILE_PICTURE:"api/frivillig/profil/image",PROFILE_HAS_FRIVILLIG_ORDERS:"api/frivillig/profil/[userProfileId]/has-frivillig-orders",FRIVILLIGJOB_CREATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_UPDATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_IMAGE_UPDATE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_GET:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_SEARCH:"api/frivillig/frivilligjob/search",FRIVILLIGJOB_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]",FRIVILLIGJOB_GRUPPEEMNER_GET:"api/frivillig/frivilligjob/[frivilligjobId]/gruppeemner",LOTTERY_GET_RESULT:"api/lottery/round/[roundNumber]/ticket/[lotteryTicketId]",PRODUCT_RECOMMENDATIONS:"da-DK/api/webshop/product/[productSku]/recommendations?take=[take]",PRODUCT_SEARCH:"da-DK/api/productSearchApi/search/[guid]",PRODUCT_LIST_SEARCH:"da-DK/api/productListSearchApi/search/[guid]",WEBSHOP_BASKET:"da-DK/api/webshop/${pageId}/cart/",WEBSHOP_BASKET_LINE:"da-DK/api/webshop/${pageId}/cart/lines",WEBSHOP_BASKET_SHIPPING:"da-DK/api/webshop/${pageId}/cart/shipping",WEBSHOP_SERVICEPOINTS:"da-DK/api/webshop/delivery/servicepoints",WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/webshop/${pageId}/checkout/placeorder",MITID_LOGOUT:"api/mitid/logout",SOURCE_REFERENCES:"da-DK/api/source/[sourceId]/references?skip=[skip]&take=[take]"}.ARTICLEOVERLAY_DATA?{POSTMETHOD:"POST",PUTMETHOD:"PUT",DELETEMETHOD:"DELETE",PATCHMETHOD:"PATCH",ENVIRONMENT:"PRODUCTION",GETMETHOD:"GET",GENERAL_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",EVENT_SEARCH:"da-DK/api/[pageId]/activityApi/search/[guid]",COUNSELLING_SEARCH:"da-DK/api/counsellingCenterApi/search/[guid]",PATIENT_ASSOCIATIONS_SEARCH:"da-DK/api/patientAssociationsApi/search/[guid]",DOCUMENT_LIST_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",AUTOCOMPLETE:"da-DK/api/searchApi/autocomplete",DICTIONARY_BASE_URL:"da-DK/api/dictionary/word",EVENTSIGNUP:"/api/activities/signup",FUNDRAISING_SEARCH:"da-DK/api/personalFundraising/search/[guid]",DONATION_SEARCH:"da-DK/api/personalFundraising/search/[guid]/donations",GALLERY_SEARCH:"",CREATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPDATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",DELETE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPLOAD_FUNDRAISEIMAGES:"da-DK/api/personalFundraising/[id]/image",SUBMIT_DONATION:"da-DK/api/[pageId]/fundraisingCampaignDonations",SUBMIT_PERSONAL_DONATION:"da-DK/api/personalFundraising/[guid]/donations",SUBMIT_PERSONAL_MOBILEPAY_DONATION:"da-DK/api/personalFundraising/[guid]/donations/mobilepay",DISCARDFUNDRAISEIMAGE:"/api/discard-fundraise-image.json",GET_PURCHASE_DATA:"da-DK/api/tracking/purchaseeventdata",PROJECTS_SEARCH:"da-DK/api/[pageId]/projectApi/search/[guid]",GET_USERPROFILE_FUNDRAISING_CAMPAIGNS:"da-DK/api/personalFundraising/search/userprofile/[userProfileId]",GET_PERSONAL_FUNDRAISING_DASHBOARD:"da-DK/api/personalFundraising/dashboard/[userProfileId]",GET_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",UPDATE_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",GET_DONATIONS:"da-dk/api/fundraisingDonations/[campaignAreaId]",GET_RELAY_LIST:"api/stafetter/[pageId]",GET_STAFET_PARTICIPANTS:"api/hold/[teamId]/deltagere",GET_STAFET_TEAM_LIST:"api/holdList/[pageId]/[stafetId]",SUBMIT_STAFET_CREATE_HOLD:"da-DK/api/[pageId]/hold/?stafetKode=[stafetKode]&previousHoldkode=[previousHoldkode]",SUBMIT_STAFET_EDIT_HOLD:"da-DK/api/[pageId]/hold/[holdKode]",SUBMIT_STAFET_DONATION:"da-DK/api/[pageId]/sfl/donation",SUBMIT_STAFET_STOT_LYS_DONATION:"da-DK/api/[pageId]/sfl/lyspose",SUBMIT_STAFET_DELTAG_PAA_HOLD:"da-DK/api/[pageId]/sfl/deltager",SUBMIT_STAFET_DELTAG_SOM_FIGHTER:"da-DK/api/[pageId]/sfl/fighter",SUBMIT_STAFET_ADD_DELTAGERE:"da-DK/api/[pageId]/sfl/add-deltagere",GET_STAFET_TEAM_LIGHTS:"api/hold/[holdKode]/lysposer?skip=[skip]&take=[take]",GET_STAFET_TEAM_DONATIONS:"api/hold/[holdKode]/donationer",GET_STAFET_TEAM_DONATIONS_PAGINATED:"api/hold/[holdKode]/donationerPaginated?offsetDonationer=[offsetDonationer]&offsetAdmissions=[offsetAdmissions
2]&limit=[limit]",GET_STAFET_TEAM_PARTICIPANT_DETAILS:"api/hold/[holdKode]/deltagere",GET_PREVIOUS_TEAMS_LIST:"/api/hold-list/profile/previous-hold?newStafetkode=[newStafetkode]",GET_PROFILE_TEAMS_LIST:"api/hold-list/profile/hold/[pageId]",SUBMIT_STAFET_PROFILE_CREATE:"da-DK/api/sfl/profile/create",SUBMIT_STAFET_PROFILE_UPDATED:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_PROFILE_DELETE:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_ROUND_COUNTER:"api/[pageId]/hold/[holdKode]/runderegistrering",SUBMIT_STAFET_SEND_EMAIL:"api/sfl/mailudsendelse",SUBMIT_STAFET_RESEND_EMAIL:"api/sfl/mailudsendelse/resend",STAFET_GET_MAILUDSENDELSE_ATTACHMENT:"api/sfl/mailudsendelse/attachment/[attachmentId]",STAFET_GET_PROFILE_HOLDKAPTAJN_HOLD:"api/hold-list/profile/[userProfileId]/holdkaptajn-hold",STAFET_GET_MAILUDSENDELSE_NEW_RECIPIENTS_COUNT:"api/sfl/mailudsendelse/[mailudsendelseId]/new-recipients-count",COMMUNITY_CHAT_SEARCH_USERS:"api/community/chat/users/search?p=[query]&take=[take]",COMMUNITY_GET_USER_CHATS:"api/community/user/[userId]/chats",COMMUNITY_GET_CHAT:"api/community/chat/[chatId]",COMMUNITY_CREATE_CHAT:"api/community/chat/create",COMMUNITY_FIND_CHAT_WITH_USER:"api/community/chat/find-with-user",COMMUNITY_GET_CHAT_MEMBER_PROFILE:"api/community/chat/member-profile",COMMUNITY_DELETE_CHAT:"api/community/chat/[chatId]/delete",COMMUNITY_CREATE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/create",COMMUNITY_EDIT_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/edit",COMMUNITY_DELETE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/delete",COMMUNITY_CREATE_COMMENT:"api/community/post/[postId]/comment/create",COMMUNITY_CREATE_SUBCOMMENT:"api/community/comment/[commentId]/subcomment/create",COMMUNITY_EDIT_COMMENT:"api/community/comment/[commentId]/edit",COMMUNITY_DELETE_COMMENT:"api/community/comment/[commentId]/delete",COMMUNITY_GET_NOTIFICATIONS:"api/community/notifications",COMMUNITY_GET_POSTS:"api/community/posts",COMMUNITY_CREATE_POST:"api/community/post/[postId]/create",COMMUNITY_EDIT_POST:"api/community/post/[postId]/edit",COMMUNITY_DELETE_POST:"api/community/post/[postId]/delete",COMMUNITY_SAVE_POST:"api/community/post/[postId]/save",COMMUNITY_GET_POST_LATEST_COMMENT:"api/community/post/[postId]/latest-comment",COMMUNITY_GET_POST_STATISTICS:"api/community/post/[postId]/statistics",COMMUNITY_GET_POST_COMMENTS:"api/community/post/[postId]/comments?pageId=[pageId]",COMMUNITY_GET_USER_GROUPS:"api/community/user/groups?pageId=[pageId]",COMMUNITY_LEAVE_GROUP:"api/community/user/groups/[groupId]/leave",COMMUNITY_GET_USER_POSTS:"api/community/user/posts",COMMUNITY_GET_USER_SAVED_POSTS:"api/community/user/posts/saved",GET_GROUP_SEARCH_RESULT:"da-DK/api/groupSearch/search/[pageId]/[guid]",SUBMIT_CREATE_GALLERY:"da-DK/api/createGallery/[id]",SUBMIT_EDIT_GALLERY:"da-DK/api/editGallery/[id]",FORUM_MEMBER_DATA:"da-DK/api/member-data/[id]",FORUM_MEMBER_LIST_DATA:"da-DK/api/member-list-data/[groupid]",SUBMIT_FORUM_MEMBER_APPLICATION:"da-DK/api/forumMemberApplication/[id]/[groupid]",FORUM_SUBMIT_EDIT_PROFILE:"da-DK/api/saveProfile",SUBMIT_FORUM_PROFILE_PICTURE:"da-DK/api/submitForumProfilePicture/[id]",FORUM_PROFILE_PICTURE:"da-DK/api/forumProfilePicture/[id]",GET_GRUPPEADGANGSANMODNINGER:"api/gruppeadgangsanmodninger",APPROVE_NOTIFICATION:"api/notifications/[id]/approve",REJECT_NOTIFICATION:"api/notifications/[id]/reject",APPROVE_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/approve",REJECT_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/reject",SUBMIT_CREATE_FORUM_PROFILE:"da-DK/api/cancerforum/profile/create",DELETE_CANCER_PROFILE:"da-DK/api/deleteForumProfile/[id]",DELETE_CANCER_PROFILE_AND_DATA:"da-DK/api/deleteForumProfileAndData/[id]",GET_THEME_STATISTICS:"da-DK/api/theme/[themeId]/statistics",GET_GROUP_STATISTICS:"da-DK/api/group/[groupId]/statistics",FORUM_JOIN_GROUP:"da-DK/api/join-open-group-redirect/[groupId]",CANCERFORUM_SEARCH:"da-DK/api/[pageId]/cancerforum/search",FRIVILLIGE_GROUPS_SEARCH:"api/frivillig/[pageId]/groups",FRIVILLIGE_GROUPS_HOVEDGRUPPE_SEARCH:"api/frivillig/[pageId]/hovedgruppe/[hovedgruppekode]/groups",FRIVILLIGE_MEMBER_LIST_DATA:"da-DK/api/getMemberListData/[group_id]",FRIVILLIGE_MEMBER_DATA:"da-DK/api/getMemberData/[id]",FRIVILLIGE_MEMBER_REQUEST_ROLES_DATA:"da-DK/api/getMemberRequestRolesData/[id]",FRIVILLIGE_MEMBER_REMOVE:"api/frivillig/groups/[gruppeKode]/medlemmer/[member_id]",FRIVILLIGE_FOLDER_DROPDOWN_OPTIONS:"api/frivillig/valid-move-options",GET_FILES_LIST:"api/frivillig/[pageId]/[gruppeKode]/dokumenter",SUBMIT_CREATE_NEW_FILE:"api/frivillig/dokumenter/template",SUBMIT_UPLOAD_NEW_FILE:"api/frivillig/dokumenter",SUBMIT_MOVE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_EDIT_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_DELETE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_CREATE_FOL
2DER:"api/frivillig/mapper",SUBMIT_EDIT_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_MOVE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_DELETE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_CONFIRM_DELETE_PROFILE:"da-DK/api/submitConfirmDeleteProfile/[group_id]/[member_id]",SUBMIT_CONFIRM_DELETE_MEMBER:"da-DK/api/submitConfirmDeleteMember/[group_id]/[member_id]",ORDRE_OVERVIEW:"da-DK/api/ordreOverview/[id]",CREATE_EVENT:"da-DK/api/createEvent",FRIVILLIGE_GROUP_EVENTS:"api/frivillig/[pageId]/groups/[groupId]/events",EDIT_EVENT:"da-DK/api/editEvent/[id]",CALENDAR_OVERLAY:"da-DK/api/calendarOverlay",EDIT_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil",CREATE_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil/create",GET_FRIVILLIGPROFIL_CARD_DATA:"da-DK/api/frivillig/[pageId]/profil/[id]/frivilligprofilCard",FRIVILLIGE_GROUP_EVENT:"api/frivillig/[pageId]/groupEvents/[eventId]",FRIVILLIG_PRODUCT_SEARCH:"da-DK/api/frivillig/[pageId]/productSearchApi/searchWithRoleInformation/[guid]",FRIVILLIG_PRODUCT_LIST_SEARCH:"da-DK/api/frivillig/[pageId]/productListSearchApi/searchWithRoleInformation/[guid]",FRIVILLIGE_GROUP_EVENT_EDIT:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIGE_GROUP_EVENT_GET:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIG_GROUP_MEDLEMMER_GET:"api/frivillig/[pageId]/groups/[groupId]/medlemmer",FRIVILLIGE_WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/frivillig/webshop/${pageId}/checkout/placeorder",FRIVILLIGPROFIL_ROLLER_GET:"da-DK/api/frivillig/profil/roller/[aktivitetsId]",FRIVILLIGPROFIL_GRUPPER_GET:"da-DK/api/frivillig/profil/grupper/[aktivitetsId]",DELETE_FRIVILLIGPROFIL:"da-DK/api/frivillig/[pageId]/profil/[guid]",FRIVILLIGPROFIL_AKTIVITETER_GET:"da-DK/api/frivillig/profil/aktiviteter",FRIVILLIGPROFIL_PICTURE_GET:"api/frivillig/profil/image/?fpid=[id]",SUBMIT_GROUP_ACCESS_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning",DELETE_ROLE_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning/[id]",SUBMIT_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling",DELETE_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling/[id]",FRIVILLIGE_JOIN_GROUP:"api/frivillig/groups/[gruppeKode]/join",SUBMIT_FRIVILLIG_PROFILE_PICTURE:"api/frivillig/profil/image",PROFILE_HAS_FRIVILLIG_ORDERS:"api/frivillig/profil/[userProfileId]/has-frivillig-orders",FRIVILLIGJOB_CREATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_UPDATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_IMAGE_UPDATE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_GET:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_SEARCH:"api/frivillig/frivilligjob/search",FRIVILLIGJOB_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]",FRIVILLIGJOB_GRUPPEEMNER_GET:"api/frivillig/frivilligjob/[frivilligjobId]/gruppeemner",LOTTERY_GET_RESULT:"api/lottery/round/[roundNumber]/ticket/[lotteryTicketId]",PRODUCT_RECOMMENDATIONS:"da-DK/api/webshop/product/[productSku]/recommendations?take=[take]",PRODUCT_SEARCH:"da-DK/api/productSearchApi/search/[guid]",PRODUCT_LIST_SEARCH:"da-DK/api/productListSearchApi/search/[guid]",WEBSHOP_BASKET:"da-DK/api/webshop/${pageId}/cart/",WEBSHOP_BASKET_LINE:"da-DK/api/webshop/${pageId}/cart/lines",WEBSHOP_BASKET_SHIPPING:"da-DK/api/webshop/${pageId}/cart/shipping",WEBSHOP_SERVICEPOINTS:"da-DK/api/webshop/delivery/servicepoints",WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/webshop/${pageId}/checkout/placeorder",MITID_LOGOUT:"api/mitid/logout",SOURCE_REFERENCES:"da-DK/api/source/[sourceId]/references?skip=[skip]&take=[take]"}.ARTICLEOVERLAY_DATA:t.target.getAttribute("href");o||(o=t.target.closest("a").getAttribute("href")),e.dispatch("main/getArticleOverlayContent",o).then(function(t){!function(t,n){t.querySelector(".kb-article-overlay--target").innerHTML=n,t.querySelector(".kb-article-overlay--target").scrollTop=0;var o=function(e){var t=void 0;return Array.from(e.querySelectorAll("a")).map(function(e){var n=!0;x9(e)&&n&&(e.dataset.order="last",n=!1,t=e)}),t}(t),r=function(e){var t=void 0;return Array.from(e.querySelectorAll("a")).toReversed().map(function(e){var n=!0;x9(e)&&n&&(e.dataset.order="first",n=!1,t=e)}),t}(t);o.addEventListener("keydown",function(e){e.shiftKey||(e.preventDefault(),r.focus())}),r.addEventListener("keydown",function(e){e.shiftKey&&(e.preventDefault(),o.focus())}),function(e){ky(e),OV(e),ph(e),O3(e),b9(e),_9(e)}(e),t.querySelector(".kb-page-overlay__container").classList.add("open"),e.commit("main/set_article_overlay_open",!0),_C({opening:function(){Jf(),t.querySelector(".kb-page-overlay__close").focus()},statePropName:"article_overlay_open",parent:t})}(n,t)})};if(A9&&document.querySelector(k9)){var r=document.querySelector(k9),a=JSON.parse(r.textContent);document.body.contains(n)||document.body.appendChild(n),a.forEach(function(e){document.querySelectorAll(".kb-rich-text").forEach(function(t){t.querySelectorAll("a[href='".concat(e,"']")).forEac
2h(function(e){e.hasAttribute("target")||e.setAttribute("data-overlay-link",!0)})})}),document.querySelectorAll("[data-overlay-link]").forEach(function(e){return e.addEventListener("click",o)})}}}function C9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var E9={class:"kb-page-overlay__content"};function S9(e){return function(e){if(Array.isArray(e))return T9(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T9(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T9(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var I9={class:"kb-burger-menu__content"},B9={class:"kb-burger-menu__title"},O9={class:"kb-burger-menu__primary-links"},L9={class:"kb-burger-menu__primary-links__column"},D9={key:0},M9={class:"kb-burger-menu__primary-links__column"},N9={key:0},P9={key:1,class:"kb-burger-menu__primary-links__column"},R9={class:"kb-burger-menu__bottom-section"},F9={class:"kb-burger-menu__secondary-links"},V9={key:0,class:"kb-burger-menu__functional-buttons"},z9=["href"],U9=["href","target"],j9=["innerHTML"],H9={class:"kb-burger-menu__link-name"};const q9={name:"PrimaryLink",props:["link","order","tabTrap"]};var G9=["href","target"];const K9={name:"SecondaryLink",props:["link","order","tabTrap"]},Z9={name:"BurgerMenu",components:{PrimaryLink:(0,Hb.A)(q9,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{class:"kb-burger-menu__link",href:n.link.href,target:n.link.target,onKeydown:t[0]||(t[0]=cc(function(){return n.tabTrap&&n.tabTrap.apply(n,arguments)},["tab"]))},[Mi("div",{class:"kb-icon",innerHTML:n.link.svgIcon},null,8,j9),Mi("div",H9,[Fi(fe(n.link.text)+" ",1),t[1]||(t[1]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link"},null,-1))])],40,U9)}]]),SecondaryLink:(0,Hb.A)(K9,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{class:"kb-burger-menu__link",href:n.link.href,target:n.link.target,onKeydown:t[0]||(t[0]=cc(function(){return n.tabTrap&&n.tabTrap.apply(n,arguments)},["tab"]))},[Fi(fe(n.link.text)+" ",1),t[1]||(t[1]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link"},null,-1))],40,G9)}]])},setup:function(){var e,t,n=Af(),o=Kt(null);return{burgerMenuRef:o,linkData:bl(function(){return n.state.main.burger_menu_links}),tabTrap:b5(o).tabTrap,getLabel:function(e){return dA({labelKey:e,labelCollection:"burgerMenu"})},showFunctionalButtons:!1,isSimple:null===(e=document.querySelector("nav.kb-component--burger-menu"))||void 0===e?void 0:e.hasAttribute("is-simple"),isIndependent:document.querySelector("body").classList.contains("kb-independent-site"),showReturnLink:null===(t=document.querySelector("nav.kb-component--burger-menu"))||void 0===t?void 0:t.hasAttribute("show-return-link")}}},W9=Z9,$9=(0,Hb.A)(W9,[["render",function(e,t,n,o,r,a){var i=qr("PrimaryLink"),l=qr("SecondaryLink");return Ai(),Si("nav",{ref:"burgerMenuRef",class:Y(["kb-burger-menu",{"kb-burger-menu--simple":e.isSimple}]),"aria-label":"hovednavigation"},[Mi("div",I9,[Mi("h2",B9,fe(e.getLabel("burgerMenuTitle")),1),Mi("div",O9,[e.isSimple?(Ai(),Si("ul",P9,[(Ai(!0),Si(gi,null,Yr(e.linkData.primary,function(t,n){return Ai(),Si("li",{key:n},[Ni(i,{link:t,tabTrap:e.tabTrap},null,8,["link","tabTrap"])])}),128))])):(Ai(),Si(gi,{key:0},[Mi("ul",L9,[(Ai(!0),Si(gi,null,Yr(e.linkData.primary,function(t,n){return Ai(),Si(gi,{key:n},[1==t.column?(Ai(),Si("li",D9,[Ni(i,{link:t,tabTrap:e.tabTrap},null,8,["link","tabTrap"])])):zi("v-if",!0)],64)}),128))]),Mi("ul",M9,[(Ai(!0),Si(gi,null,Yr(e.linkData.primary,function(t,n){return Ai(),Si(gi,{key:n},[2==t.column?(Ai(),Si("li",N9,[Ni(i,{link:t,tabTrap:e.tabTrap},null,8,["link","tabTrap"])])):zi("v-if",!0)],64)}),128))])],64))]),Mi("div",R9,[Mi("ul",F9,[(Ai(!0),Si(gi,null,Yr(e.linkData.secondary,function(t,n){return Ai(),Si("li",{key:n},[Ni(l,{link:t,tabTrap:e.tabTrap},null,8,["link","tabTrap"])])}),128))]),e.showFunctionalButtons?(Ai(),Si("div",V9,[t[4]||(t[4]=Mi("a",{href:"",class:"kb-button"},[Fi(" Log ind "),Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-profile"})],-1)),Mi("a",{href:"",class:"kb-button kb-button--full-color",onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))},S9(t[3]||(t[3]=[Fi(" Webshop ",-1),Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-shoppingcart"},null,-1)])),32)])):zi("v-if",!0),e.isSimple&&e.linkData.simpleCta?(Ai(),Si("a",{key:1,href:e.linkData.simpleCta.href,class:"kb-button kb-button--full-color-spot",onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))},fe(e.linkData.simpleCta.text),41,z9)):zi("v-if",!0)]),e.showReturnLink?(Ai(),Si("a",{key:0,href:"https://www.cancer.dk/",class:"kb-burger-menu__parent-link",onKeydown:t[2]||(t[2]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))}
2,S9(t[5]||(t[5]=[Mi("div",{class:"kb-burger-menu__parent-link-item"},[Mi("svg",{role:"presentation",width:"6",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M1.167 1 4.79 5 1.167 9",stroke:"#3C3C3C","stroke-linejoin":"round"})]),Fi(" Til cancer.dk ")],-1),Mi("svg",{class:"kb-burger-menu__parent-link-logo",viewBox:"0 0 151 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Kræftens Bekæmpelse logo"},[Mi("path",{d:"M15.747 1.874a4.471 4.471 0 0 0-6.324 0l-.787.787-.787-.787a4.473 4.473 0 1 0 0 6.324l.787-.787.787.787a4.472 4.472 0 1 0 6.324-6.324ZM7.16 7.508a3.497 3.497 0 1 1 0-4.945l.783.785-.996.997-.787-.787a2.089 2.089 0 1 0 0 2.953l.787-.787.996.997-.783.787ZM8.636 4.04l.996.997-.996.997-.997-.997.997-.997Zm-2.374.997-.787.787a1.113 1.113 0 1 1 0-1.574l.787.787Zm8.797 2.469a3.5 3.5 0 0 1-4.946 0l-.787-.787.996-.996.787.787a2.089 2.089 0 1 0 0-2.953l-.787.787-.997-.995.787-.787a3.498 3.498 0 1 1 4.946 4.945l.001-.001Zm-3.261-3.256a1.113 1.113 0 1 1 0 1.574l-.787-.787.787-.787ZM28.317 9.288h-1.13c-.2-1.744-1.002-3.251-2.404-3.912-.51.273-1.073.43-1.65.46v3.452h-1.06V1.04h1.06v3.724c1.72-.13 3.453-1.932 3.664-3.724h1.082c-.19 1.367-.977 2.71-2.062 3.641 1.37.92 2.217 2.415 2.5 4.607ZM33.37 3.114v.994c-.883.058-1.673.483-2.144 1.139v4.041h-1.002V4.186h-1.06V3.22h2.062v.825c.425-.612 1.167-.931 2.145-.931ZM44.444 6.555l-4.594.024c.117 1.166 1.06 1.86 2.088 1.86a2.049 2.049 0 0 0 1.684-.854l.708.754a3.159 3.159 0 0 1-2.428 1.096c-.965 0-1.85-.401-2.415-1.12-.625.79-1.555 1.108-2.439 1.108-1.756 0-3.064-1.284-3.064-3.17 0-1.885 1.308-3.157 3.038-3.157.625 0 1.33.211 1.79.67v-.534h1.002v.57a2.848 2.848 0 0 1 1.91-.706c1.65 0 2.733 1.248 2.733 3.181 0 .093-.003.186-.013.278Zm-5.457.825a3.53 3.53 0 0 1-.178-1.14V4.954c-.318-.496-.942-.86-1.732-.86-1.178 0-2.05.895-2.05 2.155 0 1.261.872 2.169 2.074 2.169a2.176 2.176 0 0 0 1.886-1.037Zm4.383-1.745c-.106-.942-.72-1.566-1.662-1.566-.941 0-1.72.612-1.861 1.566h3.523ZM54.152 8.817c-.413.401-1.013.565-1.556.565-1.095 0-1.932-.671-1.932-1.884V4.186h-3.217v5.102h-1.002V4.186h-1.287V3.22h1.285v-.612c0-1.14.766-1.862 1.838-1.862.499 0 .986.148 1.402.424l-.475.872a1.351 1.351 0 0 0-.872-.318c-.495 0-.895.306-.895.884v.612h3.223V1.606h1.002V3.22h2.089v.966h-2.089v3.205c0 .743.475 1.026 1.014 1.026a1.276 1.276 0 0 0 .99-.437l.482.837ZM60.771 6.566h-4.878C55.988 7.733 57 8.44 58.038 8.44a2.263 2.263 0 0 0 1.862-.941l.706.753c-.4.578-1.367 1.179-2.568 1.179-1.921 0-3.206-1.261-3.206-3.193 0-1.78 1.226-3.159 3.005-3.159 1.744 0 2.943 1.296 2.943 3.217.003.047.003.141-.009.271Zm-1.095-.931c-.107-.965-.897-1.59-1.84-1.59-1 0-1.778.636-1.943 1.59h3.783ZM67.463 5.722v3.57H66.46V5.824c0-1.084-.672-1.744-1.673-1.744-.742 0-1.379.354-1.71.778v4.43h-1V3.22h1.002v.46a3.012 3.012 0 0 1 1.779-.59c1.544 0 2.604 1.061 2.604 2.632ZM72.21 7.62c-.013-.66-.46-.813-1.51-1.073-1.048-.259-1.85-.694-1.85-1.708 0-1.14.943-1.756 2.099-1.756.954 0 1.613.413 2.097 1.108l-.778.648c-.295-.53-.683-.802-1.308-.802-.542 0-1.096.26-1.096.79 0 .483.342.601 1.249.838 1.025.258 2.098.612 2.098 1.92 0 1.213-.896 1.873-2.089 1.873-1.025 0-1.909-.474-2.415-1.25l.778-.648a1.853 1.853 0 0 0 1.637.944c.592-.005 1.099-.288 1.087-.884ZM84.25 6.814c0 1.473-1.096 2.474-2.71 2.474h-3.677V1.04h3.17c1.308 0 2.297.92 2.297 2.184a2.267 2.267 0 0 1-.518 1.402c.896.373 1.438 1.163 1.438 2.188Zm-5.326-2.44h2.615a1.52 1.52 0 0 1 .237.013 1.508 1.508 0 0 0 .494-1.12c0-.624-.4-1.213-1.39-1.213h-1.956v2.32Zm4.253 2.44c0-.896-.648-1.424-1.756-1.424h-2.497v2.885h2.5c1.105 0 1.753-.542 1.753-1.46ZM91.247 6.566h-4.878c.095 1.167 1.108 1.873 2.145 1.873a2.263 2.263 0 0 0 1.861-.941l.708.753c-.402.578-1.367 1.179-2.57 1.179-1.92 0-3.204-1.261-3.204-3.193 0-1.78 1.225-3.159 3.004-3.159 1.744 0 2.943 1.296 2.943 3.217.003.047.003.141-.01.271Zm-1.096-.931c-.106-.965-.895-1.59-1.838-1.59-1.001 0-1.779.636-1.944 1.59h3.782ZM97.866 9.288h-1.071c-.213-1.413-.908-2.556-2.097-2.91a4.367 4.367 0 0 1-1.14.153v2.753h-1.001V.922h1.001v4.631c1.603-.012 2.498-.907 2.769-2.333h1.001c-.176 1.14-.682 2.05-1.484 2.628 1.127.648 1.787 1.885 2.022 3.44ZM109 6.555l-4.596.024c.118 1.166 1.061 1.86 2.089 1.86a2.053 2.053 0 0 0 1.685-.854l.706.754a3.156 3.156 0 0 1-2.426 1.096c-.967 0-1.851-.401-2.416-1.12-.625.79-1.555 1.108-2.439 1.108-1.756 0-3.064-1.284-3.064-3.17 0-1.885 1.308-3.157 3.038-3.157.625 0 1.329.211 1.791.67v-.534h1.002v.57a2.85 2.85 0 0 1 1.909-.706c1.649 0 2.733 1.248 2.733 3.181.001.093-.003.186-.012.278Zm-5.456.825a3.526 3.526 0 0 1-.176-1.14V4.954c-.318-.496-.943-.86-1.732-.86-1.179 0-2.05.895-2.05 2.155 0 1.261.871 2.169 2.073 2.169a2.178 2.178 0 0 0 1.885-1.037Zm4.383-1.745c-.106-.942-.718-1.566-1.661-1.566-.943 0-1.72.612-1.862 1.566h3.523ZM119.305 5.612v3.676h-1.002V5.722c0-1.06-.542-1.638-1.401-1.638-.76 0-1.285.342-1.603.766.058.251.086.508.082.766v3.676h-1.001v-3.57c0-1.06-.542-1.638-1.403-1.638-.754 0-1.342.342-1.673.777v4.431h-1.001V3.22h1.001v.46a2.957 2.957 0 0 1 1.768-.59c.754 0 1.379.295 1.779.813.625-.53 1.329-.812 2.121-.812 1.405 0 2.333.978 2.333 2.521ZM126.727 6.248c0 1.886-1.308 3.17-3.052 3.17a3.004 3.004 0 0 1-1.779-.554v2.663h-1.001V3.232h1.001v.412a3.007 3.007 0 0 1 1.779-.553c1.744 0 3.052 1.283 3.052 3.157Zm-1.044 0c0-1.26-.871-2.156-2.062-2.156-.765 0-1.39.295-1.72.73v2.849c.33.435.943.742 1.72.742 1.189.004 2.057-.888 2.057-2.165h.005ZM133.606 6.566h-4.878c.095 1.167 1.108 1.873 2.145 1.873a2.263 2.263 0 0 0 1.862-.941l.707.753c-.401.578-1.367 1.179-2.569 1.179-1.921 0-3.205-1.261-3.205-3.193 0-1.78 1.226-3.159 3.005-3.159 1.744 0 2.943 1.296 2.943 3.217.003.047.003.141-.01.271Zm-1.095-.931c-.106-.965-.896-1.59-1.838-1.59-1.002 0-1.779.636-1.945 1.59h3.783ZM138.024 9.029a1.888 1.888 0 0 1-1.166.366c-.908 0-1.591-.543-1.591-1.638V1.889h-1.058V.922h2.062v6.729c0 .542.285.8.672.8a.936.936 0 0 0 .648-.258l.433.836ZM142.206 7.62c-.012-.66-.459-.813-1.508-1.073-1.049-.259-1.851-.694-1.851-1.708 0-1.14.943-1.756 2.099-1.756.949 0 1.613.413 2.097 1.108l-.778.648c-.294-.53-.683-.802-1.308-.802-.542 0-1.096.26-1.096.79 0 .483.342.601 1.249.838 1.025.258 2.098.612 2.098 1.92 0 1.213-.896 1.873-2.089 1.873-1.
2025 0-1.909-.474-2.416-1.25l.779-.648a1.852 1.852 0 0 0 1.637.944c.59-.005 1.099-.288 1.087-.884ZM150.145 6.566h-4.878c.095 1.167 1.108 1.873 2.145 1.873a2.263 2.263 0 0 0 1.862-.941l.707.753c-.401.578-1.367 1.179-2.569 1.179-1.92 0-3.205-1.261-3.205-3.193 0-1.78 1.226-3.159 3.005-3.159 1.744 0 2.943 1.296 2.943 3.217.003.047.003.141-.01.271Zm-1.095-.931c-.106-.965-.895-1.59-1.838-1.59-1.002 0-1.779.636-1.945 1.59h3.783Z",fill:"#E8001D"})],-1)])),32)):zi("v-if",!0)])],2)}]]);function Y9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var J9={class:"kb-search-overlay kb-burger-menu","aria-label":"søgning"},X9={id:"overlaysearchheader",class:"kb-burger-menu__title"},Q9={class:"kb-general-search__input kb-search-overlay__input"},eee=["placeholder"],tee={class:"kb-general-search","aria-live":"polite"},nee=["href","data-order"];const oee={name:"SearchOverlay",setup:function(){var e,t,n,o=Af(),r=bl(function(){var e,t;return null!==(e=null===(t=o.state.search.autocomplete_result)||void 0===t?void 0:t.entries)&&void 0!==e?e:[]}),a=bl(function(){return o.state.search.autocomplete_inprogress}),i=Kt(""),l=Hx(function(){o.dispatch("search/getAutocomplete",{query:i.value})},500),s=function(e){return o.state.search.search_page_redirecturl+"?q="+e};return Dr(function(){o.dispatch("search/initAutocomplete"),e=document.querySelector('.kb-search-overlay [data-order="first"]'),t=document.querySelector('.kb-search-overlay__result[data-order="last"]'),n=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){e.focus()}},{persistent:!0})}),{getLabel:function(e){return dA({labelKey:e,labelCollection:"searchOverlay"})},redirectToSearchPage:function(){location.href=s(i.value)},searchPageUrl:s,results:r,showSpinner:a,termInput:function(){o.state.search.hide_autocomplete||l()},tabTrap:function(o){if(!r.value.length)return o.preventDefault(),n.focus(),!1;o.shiftKey&&"first"===o.target.dataset.order&&(o.preventDefault(),t.focus()),o.shiftKey||"last"!==o.target.dataset.order||(o.preventDefault(),n.focus()),o.shiftKey||o.target.dataset.order||(o.preventDefault(),e.focus())},inputText:i}}},ree=oee,aee=(0,Hb.A)(ree,[["render",function(e,t,n,o,r,a){return Ai(),Si("nav",J9,[Mi("h2",X9,fe(e.getLabel("searchOverlayOverskrift")),1),Mi("div",Q9,[io(Mi("input",{type:"search","aria-labelledby":"overlaysearchheader",placeholder:e.getLabel("searchOverlayPlaceholder"),onKeydown:[t[0]||(t[0]=cc(function(){return e.redirectToSearchPage&&e.redirectToSearchPage.apply(e,arguments)},["enter"])),t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))],onKeyup:t[2]||(t[2]=function(){return e.termInput&&e.termInput.apply(e,arguments)}),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.inputText=t}),"data-order":"first"},null,40,eee),[[Ws,e.inputText]]),Mi("button",{onClick:t[4]||(t[4]=function(){return e.redirectToSearchPage&&e.redirectToSearchPage.apply(e,arguments)}),class:"kb-general-search__input__button",title:"Søg"},(i=t[6]||(t[6]=[Mi("svg",{viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("circle",{cx:"10",cy:"10",r:"9.5",stroke:"#ffffff"}),Mi("path",{d:"M16 10a6 6 0 0 0-6-6M24.768 25.89l-6.718-6.718 2.122-2.122 7.778 7.778-1.82 1.82",stroke:"#ffffff"})],-1)]),function(e){if(Array.isArray(e))return Y9(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Y9(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y9(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))]),Mi("div",tee,[(Ai(!0),Si(gi,null,Yr(e.results,function(n,o){return Ai(),Si("a",{key:o,class:"kb-search-overlay__result",href:e.searchPageUrl(n.query),onKeydown:t[5]||(t[5]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":e.results.length-1===o?"last":o}
2,[Fi(fe(n.query)+" ",1),t[7]||(t[7]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link"},null,-1))],40,nee)}),128))])]);var i}]]);var iee={class:"kb-overlay-styles__content-wrapper"},lee={class:"kb-overlay-styles kb-profile-overlay"},see={class:"kb-overlay-styles__wrapper-for-scroll-bottom kb-profile-overlay__wrapper-for-scroll-bottom"},cee={class:"kb-overlay-styles__hero kb-profile-overlay__hero"},uee={class:"kb-overlay-styles__hero-wrapper kb-profile-overlay__hero-wrapper"},dee={class:"kb-overlay-styles__hero-title kb-profile-overlay__hero-wrapper-title"},pee={class:"kb-profile-overlay__hero-wrapper-block"},fee=["href"],mee={class:"kb-profile-overlay__link-label--small"},gee={class:"kb-profile-overlay__content"},hee={key:0,class:"kb-profile-overlay__content-block"},bee={class:"kb-profile-overlay__content-block-title"},vee=["href"],yee={class:"kb-profile-overlay__link-label--large"},_ee={key:1,class:"kb-profile-overlay__content-block"},Aee={class:"kb-profile-overlay__content-block-title"},kee=["href"],xee={class:"kb-profile-overlay__link-label--large"},wee={key:2,class:"kb-profile-overlay__content-block"},Cee={class:"kb-profile-overlay__content-block-title"},Eee=["href"],See={class:"kb-profile-overlay__link-label--large"},Tee={key:3},Iee={key:4,class:"kb-profile-overlay__content-block"},Bee={class:"kb-profile-overlay__content-block-title"},Oee=["href"],Lee={class:"kb-profile-overlay__link-label--small"},Dee={class:"kb-visually-hidden"},Mee=["href"],Nee={class:"kb-profile-overlay__link-label--small"},Pee={class:"kb-visually-hidden"},Ree=["href"],Fee={class:"kb-profile-overlay__link-label--small"},Vee=["href"],zee={class:"kb-button"};const Uee={name:"ProfileOverlay",setup:function(){var e,t,n=Af(),o=bl(function(){return n.state.main.page_overlay_content_data.userProfileId}),r=bl(function(){return n.state.main.page_overlay_content_data.userInformationUrl}),a=bl(function(){return n.state.main.page_overlay_content_data.frivilligOrdersUrl}),i=bl(function(){return n.state.main.page_overlay_content_data.frivilligUrl}),l=bl(function(){return n.state.main.page_overlay_content_data.cancerforumUrl}),s=bl(function(){return n.state.main.page_overlay_content_data.stafetForLivetUrl}),c=bl(function(){return n.state.main.page_overlay_content_data.logoutUrl}),u=bl(function(){return n.state.fundraising.userProfileFundraisingCampaigns}),d=bl(function(){return n.state.stafet.userProfileHoldkaptajnHold}),p=bl(function(){return null===u.value}),f=bl(function(){return n.state.frivilligprofil.has_frivillig_order}),m=bl(function(){var e;return null===(e=n.state.main.user_profile)||void 0===e?void 0:e.hasFrivilligProfile}),g=bl(function(){var e;return null===(e=n.state.main.user_profile)||void 0===e?void 0:e.hasFrivilligNotification}),h=bl(function(){var e;return null===(e=n.state.main.user_profile)||void 0===e?void 0:e.hasCancerforumProfile}),b=bl(function(){var e;return null===(e=n.state.main.user_profile)||void 0===e?void 0:e.hasCancerforumNotification}),v=bl(function(){var e;return null===(e=n.state.main.user_profile)||void 0===e?void 0:e.hasStafetForLivetProfile});return Dr(function(){n.dispatch("main/fetchUserProfile",o.value),n.dispatch("fundraising/getUserProfileFundraisingCampaigns",o.value),n.dispatch("stafet/getUserProfileHoldkaptajnHold",o.value),n.dispatch("frivilligprofil/getProfileHasFrivilligOrders",o.value),e=document.querySelector('.kb-profile-overlay__link[data-order="first"]'),document.querySelector('.kb-profile-overlay__logout[data-order="last"]'),t=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){t.focus()}},{persistent:!0})}),{getLabel:function(e){return dA({labelKey:e,labelCollection:"ProfileOverlay"})},hasFrivilligProfile:m,hasFrivilligNotification:g,hasFrivilligOrder:f,hasCancerforumProfile:h,hasCancerforumNotification:b,hasStafetForLivetProfile:v,fundraisingCampaigns:u,sflHoldkaptajnHold:d,userInformationUrl:r,frivilligOrdersUrl:a,frivilligUrl:i,cancerforumUrl:l,stafetForLivetUrl:s,logoutUrl:c,tabTrap:function(n){n.shiftKey&&"first"===n.target.dataset.order&&(n.preventDefault(),t.focus()),n.shiftKey||"last"!==n.target.dataset.order||(n.preventDefault(),t.focus()),n.shiftKey||n.target.dataset.order||(n.preventDefault(),e.focus())},showSpinner:p}}},jee=Uee,Hee=(0,Hb.A)(jee,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",iee,[Mi("article",lee,[Mi("div",see,[Mi("div",cee,[Mi("div",uee,[Mi("h4",dee,fe(e.getLabel("title")),1),Mi("div",pee,[Mi("a",{class:"kb-profile-overlay__link",href:e.userInformationUrl,"data-order":"first",onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))},[t[2]||(t[2]=Mi("svg",{class:"kb-ui-icon kb-ui-icon--user",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.5 8.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm1 0a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0ZM6 26.5c0-5.523 4.477-10 10-10s10 4.477 10 10v4h1v-4c0-6.075-4.925-11-11-11s-11 4.925-11 11V30a.5.5 0 0 0 .5.5H23v-3h-1v2H6v-3Z",fill:"#3C3C3C"})],-1)),Mi("div",mee,fe(e.getLabel("userInformationLabel")),1),t[3]||(t[3]=Mi("svg",{class:"kb-ui-icon kb-ui-icon--link kb-profile-overlay__link-icon-right",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"#3c3c3c",viewBox:"0 0 17 16"},[Mi("path",{d:"m12.167 4 3.622 4-3.622 4","stroke-linejoin":"round"}),Mi("path",{d:"M11.747 8H0"})],-1))],40,fee)])])]),t[13]||(t[13]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",gee,[e.fundraisingCampaigns.length>0?(Ai(),Si("div",hee,[Mi("div",bee,fe(e.getLabel("yourFundraisingsLabel")),1),(Ai(!0),Si(gi,null,Yr(e.fundraisingCampaigns,function(e,n){return Ai(),Si("a",{key:n,class:"kb-profile-overlay__link",href:e.url},[Mi("div",yee,fe(e.name),1),t[4]||(t[4]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link kb-profile-overlay__link-icon-right"},null,-1))],8,vee)}),128))])):zi("v-if",!0),e.sflHoldkaptajnHold.length>0?(Ai(),Si("div",_ee,[Mi("div",Aee,fe(e.getLabel("sflHoldLabel")),1),(Ai(!0),Si(gi,null,Yr(e.sflHoldkaptajnHold,function(e,n){return Ai(),Si("a",{key:n,class:"kb-profile-overlay__link",href:e.url},[Mi("div",xee,fe(e.name),1),t[5]||(t[5]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link kb-profile-overlay__link-icon-right"},null,-1))],8,kee)}),128))])):zi("v-if",!0),e.hasFrivilligOrder?(Ai(),Si("div",wee,[Mi("div",Cee,fe(e.getLabel("yourOrdersLabel")),1),Mi("a",{class:"kb-profile-overlay__link",href:e.frivilligOrdersUrl},[Mi("div",See,fe(e.getLabel("frivilligOrdersLabel")),1),t[6]||(t[6]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link kb-profile-overlay__link-icon-right"},null,-1))],8,Eee)])):zi("v-if",!0),(e.fundraisingCampaigns.length>0||e.sflHoldkaptajnHold.length>0||e.hasFrivilligOrder)&&(e.hasFrivilligProfile||e.hasCancerforumProfile||e.hasStafetForLivetProfile)?(Ai(),Si("hr",Tee)):zi("v-if",!0),e.hasFrivilligProfile||e.hasCancerforumProfile||e.hasStafetForLivetProfile?(Ai(),Si("div",Iee,[Mi("div",Bee,fe(e.getLabel("goToLabel")),1),e.hasFrivilligProfile?(Ai(),Si("a",{key:0,class:"kb-profile-overlay__link",href:e.frivilligUrl},[Mi("div",Lee,[Fi(fe(e.getLabel("frivilligLabel"))+" ",1),e.hasFrivilligNotification?(Ai(),Si(gi,{key:0},[Mi("p",Dee,fe(e.getLabel("frivilligNotificationHelpText")),1),t[7]||
2(t[7]=Mi("div",{class:"kb-profile-overlay__link-label-notification-dot"},null,-1))],64)):zi("v-if",!0)]),t[8]||(t[8]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link kb-profile-overlay__link-icon-right"},null,-1))],8,Oee)):zi("v-if",!0),e.hasCancerforumProfile?(Ai(),Si("a",{key:1,class:"kb-profile-overlay__link",href:e.cancerforumUrl},[Mi("div",Nee,[Fi(fe(e.getLabel("cancerforumLabel"))+" ",1),e.hasCancerforumNotification?(Ai(),Si(gi,{key:0},[Mi("p",Pee,fe(e.getLabel("cancerforumNotificationHelpText")),1),t[9]||(t[9]=Mi("div",{class:"kb-profile-overlay__link-label-notification-dot"},null,-1))],64)):zi("v-if",!0)]),t[10]||(t[10]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link kb-profile-overlay__link-icon-right"},null,-1))],8,Mee)):zi("v-if",!0),e.hasStafetForLivetProfile?(Ai(),Si("a",{key:2,class:"kb-profile-overlay__link",href:e.stafetForLivetUrl},[Mi("div",Fee,fe(e.getLabel("stafetForLivetLabel")),1),t[11]||(t[11]=Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-link kb-profile-overlay__link-icon-right"},null,-1))],8,Ree)):zi("v-if",!0)])):zi("v-if",!0)]),Mi("a",{class:"kb-profile-overlay__logout",href:e.logoutUrl,"data-order":"last",onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))},[Mi("button",zee,[Fi(fe(e.getLabel("logoutLabel"))+" ",1),t[12]||(t[12]=Mi("svg",{width:"20",height:"24",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5 5.25C14.5 2.76472 12.4853 0.75 10 0.75C7.51472 0.75 5.5 2.76472 5.5 5.25V7.5H6.25V5.25C6.25 3.17893 7.92893 1.5 10 1.5C12.0711 1.5 13.75 3.17893 13.75 5.25V9.75H0.25V23.25H16.75V21H16V22.5H1V10.5H19V23.25H19.75V9.75H14.5V5.25ZM8.125 14.625C8.125 13.5895 8.96447 12.75 10 12.75C11.0355 12.75 11.875 13.5895 11.875 14.625C11.875 15.3185 11.4986 15.9246 10.9372 16.2494L10.75 16.3577V19.5H9.25V16.3577L9.06277 16.2494C8.50136 15.9246 8.125 15.3185 8.125 14.625ZM10 12C8.55025 12 7.375 13.1753 7.375 14.625C7.375 15.5175 7.82057 16.3055 8.5 16.7794V20.25H11.5V16.7794C12.1794 16.3055 12.625 15.5175 12.625 14.625C12.625 13.1753 11.4497 12 10 12Z",fill:"#C60001"})],-1))])],40,Vee)])])])}]]);var qee={class:"kb-profile-edited-overlay","aria-live":"polite"},Gee={class:"kb-profile-edited-overlay__hero"},Kee={class:"kb-profile-edited-overlay__hero__title-wrapper"},Zee={class:"kb-profile-edited-overlay__hero__title-wrapper__title"},Wee={class:"kb-rich-text"},$ee={class:"kb-rich-text__content",ref:"descriptionWrapper"},Yee={class:"kb-profile-edited-overlay__content-container"},Jee={class:"kb-profile-edited-overlay__button-wrapper"},Xee=["href"];const Qee={name:"ProfileEditedOverlay",props:{profileSettingsPageUrl:{type:String,required:!0}},setup:function(e){var t=Af(),n=bl(function(){var n;return null!==(n=e.profileSettingsPageUrl)&&void 0!==n?n:t.state.main.page_overlay_content_data.profileSettingsPageUrl}),o=Kt(null);Dr(function(){var e,t,n=(e=r("description"),(t=document.createElement("textarea")).innerHTML=e,t.value);o.value.innerHTML=n});var r=function(e){return t.getters["labels/getLabel"]({labelCollection:"ProfileEditedOverlay",labelKey:e})};return{getLabel:r,hasLabel:function(e){return t.getters["labels/existLabel"]({labelCollection:"ProfileEditedOverlay",labelKey:e})},closeOverlay:function(){t.dispatch("main/closePageOverlay")},profileSettingsPageUrl:n,descriptionWrapper:o}}},ete=Qee,tte=(0,Hb.A)(ete,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",qee,[Mi("section",Gee,[Mi("div",Kee,[Mi("h2",Zee,fe(e.getLabel("title")),1)]),t[3]||(t[3]=Mi("div",{class:"kb-profile-edited-overlay__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",Wee,[Mi("div",$ee,null,512)])]),t[4]||(t[4]=Mi("div",{class:"kb-profile-edited-overlay__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",Yee,[Mi("div",Jee,[e.hasLabel("profileSettingsButtonText")?(Ai(),Si("a",{key:0,href:e.profileSettingsPageUrl,onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",class:"kb-button kb-button--full-color-spot kb-profile-edited-overlay__kb-button--full-color-spot"},fe(e.getLabel("profileSettingsButtonText")),41,Xee)):zi("v-if",!0),Mi("a",{onClick:t[1]||(t[1]=function(){return e.closeOverlay&&e.closeOverlay.apply(e,arguments)}),"data-order":"last",onKeydown:t[2]||(t[2]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"}
2,fe(e.getLabel("closeButtonText")),33)])])])}]]);function nte(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ote={class:"kb-delete-global-profile-overlay","aria-live":"polite"},rte={class:"kb-delete-global-profile-overlay__hero"},ate={class:"kb-delete-global-profile-overlay__hero__title-wrapper"},ite={class:"kb-delete-global-profile-overlay__hero__title-wrapper__title"},lte={class:"kb-delete-global-profile-overlay__content-container"},ste={class:"kb-delete-global-profile-overlay__content-text"},cte={class:"kb-delete-global-profile-overlay__actions"},ute={class:"kb-delete-global-profile-overlay__button-wrapper"},dte={class:"kb-rich-text"},pte=["innerHTML"],fte={key:0,class:"kb-spinner-overlay"};function mte(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return gte(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(gte(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,gte(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,gte(d,"constructor",c),gte(c,"constructor",s),s.displayName="GeneratorFunction",gte(c,r,"GeneratorFunction"),gte(d),gte(d,r,"Generator"),gte(d,o,function(){return this}),gte(d,"toString",function(){return"[object Generator]"}),(mte=function(){return{w:a,m:p}})()}function gte(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}gte=function(e,t,n,o){function a(t,n){gte(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},gte(e,t,n,o)}function hte(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const bte={name:"DeleteGlobalProfileOverlay",setup:function(){var e=Af(),t=bl(function(){return e.state.main.page_overlay_content_data.userProfileId}),n=bl(function(){return e.state.main.page_overlay_content_data.privacyPolicy}),o=bl(function(){return e.state.main.is_submitting}),r=function(){var n,o=(n=mte().m(function n(){return mte().w(function(n){for(;;)switch(n.n){case 0:e.dispatch("main/deleteUserProfile",{userProfileId:t.value,body:{isCancerforumSoftDelete:!0}}).then(function(e){return window.location.href=e});case 1:return n.a(2)}},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){hte(a,o,r,i,l,"next",e)}function l(e){hte(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return o.apply(this,arguments)}}();return{getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"DeleteGlobalProfileOverlay",labelKey:t})},closeOverlay:function(){e.dispatch("main/closePageOverlay")},submit:r,privacyPolicy:n,isSubmitting:o}}},vte=bte,yte=(0,Hb.A)(vte,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",ote,[Mi("section",rte,[Mi("div",ate,[Mi("h2",ite,fe
2(e.getLabel("title")),1)])]),t[5]||(t[5]=Mi("div",{class:"kb-delete-global-profile-overlay__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",lte,[Mi("div",ste,fe(e.getLabel("description")),1),Mi("div",cte,[Mi("div",ute,[Mi("a",{onClick:t[0]||(t[0]=function(){return e.submit&&e.submit.apply(e,arguments)}),onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",class:"kb-button kb-button--full-color-spot kb-delete-global-profile-overlay__kb-button--full-color-spot"},fe(e.getLabel("submitButtonText")),33),Mi("a",{onClick:t[2]||(t[2]=function(){return e.closeOverlay&&e.closeOverlay.apply(e,arguments)}),"data-order":"last",onKeydown:t[3]||(t[3]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("cancelButtonText")),33)]),Mi("div",dte,[Mi("div",{class:"kb-rich-text__content",innerHTML:e.privacyPolicy},null,8,pte)])])]),e.isSubmitting?(Ai(),Si("div",fte,(i=t[4]||(t[4]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return nte(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return nte(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nte(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)]);var i}]]);function _te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ate=["aria-label"],kte={id:"overlaysearchheader",class:"kb-burger-menu__title"},xte={class:"kb-general-search__input kb-search-overlay__input"},wte=["placeholder"],Cte=["title"],Ete={class:"kb-accordion__question kb-filter-overlay__facet-group__name"},Ste=["id","aria-controls"],Tte=["id","aria-labelledby"],Ite={class:"kb-filter-overlay__facet-values__column"},Bte=["onChange","checked"],Ote={class:"kb-form-element__label"},Lte={class:"kb-filter-overlay__button-container"};const Dte={name:"FilterOverlay",setup:function(){var e,t,n,o=Af(),r=bl(function(){return o.state.search.filter_overlay_scopes}),a=bl(function(){return r.value.reduce(function(e,t){var n,r=o.state.search.display_total[t];return e+(null!==(n=null!=r?r:o.state.search.scoped_total[t])&&void 0!==n?n:0)},0)}),i=bl({get:function(){var e;return null!==(e=o.state.search.queries[r.value[0]])&&void 0!==e?e:""},set:function(e){return o.dispatch("search/setSearchQuery",{guid:r.value[0],query:e})}}),l=Hx(function(){r.value.forEach(function(e){o.dispatch("search/performSearch",{guid:e,query:i.value})})},500),s=bl(function(){var e;return null!==(e=o.getters["search/getFacets"](r.value[0]))&&void 0!==e?e:[]});return Dr(function(){t=document.querySelector(".kb-page-overlay__close"),e=document.querySelector('input[data-order="first"]'),n=(n=document.querySelector('input[data-order="last"]'))||t,_C({opening:function(){e.focus()}},{persistent:!0})}),{facetGroups:s,filterResults:function(e){r.value.forEach(function(t){o.dispatch("search/performSearch",{guid:t,query:i.value,facet:e})})},getLabel:function(e,t){return dA({labelKey:e,params:t,labelCollection:"filterOverlay"})},inputText:i,closeOverlay:function(e){o.dispatch("main/closePageOverlay"),e.preventDefault()},termInput:l,toggleAccordion:function(e){var t=!("true"!==e.currentTarget.getAttribute("aria-expanded")),n=document.querySelector("#"+e.currentTarget.getAttribute("aria-controls"));e.currentTarget.querySelector(".kb-accordion__question__chevron").classList[t?"remove":"add"]("kb-accordion__question__chevron--open"),n.classList[t?"remove":"add"]("kb-accordion__answer--open"),e.currentTarget.setAttribute("aria-expanded",t?"false":"true")},totalResultCount:a,tabTrap:function(o){o.shiftKey&&"first"===o.target.dataset.order&&(o.preventDefault(),n.focus()),o.shiftKey||"last"!==o.target.dataset.order||(o.preventDefault(),t.focus()),o.shiftKey||o.target.dataset.order||(o.preventDefault(),e.focus())}}}},Mte=Dte,Nte=(0,Hb.A)(Mte,[["render",function(e,t,n,o,r,a){return Ai(),Si("nav",{class:"kb-filter-overlay kb-burger-menu","aria-label":e.getLabel("filterOverlayAriaLabel")},[Mi("h2",kte,fe(e.getLabel("filterOverlayOverskrift")),1),Mi("div",xte,[io(Mi("input",{type:"search","aria-labelledby":"overlaysearchheader",placeholder:e.getLabel("searchOverlayPlaceholder"),onKeydown:[t[0]||(t[0]=cc(function(){return e.closeOverlay&&e.closeOverlay.apply(e,arguments)},["enter"])),t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))],onKeyup:t[2]||(t[2]=function(){return e.termInput&&e.termInput.apply(e,arguments)}),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.inputText=t}),"data-order":"first"},null,40,wte),[[Ws,e.inputText]]),Mi("button",{class:"kb-general-search__input__button",title:e.getLabel("filterOverlaySearchButtonTitle")},(i=t[7]||(t[7]=[Mi("svg",{viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("circle",{cx:"10",cy:"10",r:"9.5",stroke:"#ffffff"}),Mi("path",{d:"M16 10a6 6 0 0 0-6-6M24.768 25.89l-6.718-6.718 2.122-2.122 7.778 7.778-1.82 1.82",stroke:"#ffffff"})],-1)]),function(e){if(Array.isArray(e))return _te(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return _te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_te(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),8,Cte)]),(Ai(!0),Si(gi,null,Yr(e.facetGroups,function(n,o){return Ai(),Si("div",{key:o,class:"kb-accordion kb-filter-overlay__facet-group","aria-live":"polite"},[Mi("h3",Ete,[t[9]||(t[9]=Mi("svg",{viewBox:"0 0 705 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M705 1H2a1 1 0 0 0-1 1v9",stroke:"#BFBFB7"})],-1)),Mi("button",{id:"acc-question".concat(o),"aria-controls":"acc-answer".concat(o),"aria-expanded":"true",onClick:t[4]||(t[4]=function(){return e.toggleAccordion&&e.toggleAccordion.apply(e,arguments)})},[Fi(fe(n.facetGroup)+" ",1),t[8]||(t[8]=Mi("div",{class:"kb-accordion__question__chevron kb-ui-icon kb-ui-icon--ui-chevron-down"},null,-1))],8,Ste)]),Mi("div",{class:"kb-accordion__answer kb-filter-overlay__facet-values kb-accordion__answer--open",id:"acc-answer".concat(o),role:"region","aria-labelledby":"acc-question".concat(o)},[Mi("div",Ite,[(Ai(!0),Si(gi,null,Yr(n.facetValues,function(n,o){return Ai(),Si("label",{key:o,class:"kb-form-element__checkbox"},[Mi("input",{onChange:function(t){return e.filterResults(n)},checked:n.selected,type:"checkbox",class:"kb-form-element__checkbox__input-field"},null,40,Bte),t[10]||(t[10]=Mi("span",{class:"kb-form-element__checkbox__checked-marker"},[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-checkmark"})],-1)),Mi("span",Ote,fe(n.facetName),1)])}),128))])],8,Tte)])}),128)),Mi("div",Lte,[Mi("a",{href:"",onClick:t[5]||(t[5]=lc(function(){return e.closeOverlay&&e.closeOverlay.apply(e,arguments)},["prevent"])),class:"kb-button kb-button--full-color-spot","data-order":"last",onKeydown:t[6]||(t[6]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))},fe(e.getLabel("filterOverlayCtaLabel",[e.totalResultCount])),33)])],8,Ate);var i}]]);var Pte={class:"kb-article-overlay"},Rte=["innerHTML"];const Fte={name:"ArticleOverlay",setup:function(){var e=Af(),t=bl(function(){return e.state.main.article_overlay_data});return Dr(function(){var e=document.querySelector(".kb-page-overlay__close");_C({opening:function(){e.focus()}})}),{html:t}}},Vte=Fte,zte=(0,Hb.A)(Vte,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",Pte,[Mi("div",{innerHTML:e.html},null,8,Rte)])}]]);function Ute(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var jte={class:"kb-sign-up-form__hero"},Hte={class:"kb-sign-up-form__hero__small-title"},qte={class:"kb-sign-up-form__hero__title"},Gte={class:"kb-sign-up-form__content-container","aria-live":"polite"},Kte={method:"post",class:"kb-sign-up-form__kb-form kb-forms"},Zte={for:"firstName",class:"kb-sign-up-form__kb-form__label"},Wte=["placeholder"],$te={key:0,class:"kb-forms Form__Element__ValidationError"},Yte={for:"lastName",class:"kb-sign-up-form__kb-form__label"},Jte=["placeholder"],Xte={key:1,class:"kb-forms Form__Element__ValidationError"},Qte={for:"phone",class:"kb-sign-up-form__kb-form__label"},ene=["placeholder"],tne={key:2,class:"kb-forms Form__Element__ValidationError"},nne={for:"email",class:"kb-sign-up-form__kb-form__label"},one=["placeholder"],rne={key:3,class:"kb-forms Form__Element__ValidationError kb-sign-up-form__validation-error"},ane={class:"kb-sign-up-form__kb-form__checkbox-container"},ine={for:"signup",class:"kb-sign-up-form__kb-form__radio-label"},lne={key:4,class:"kb-forms Form__Element__ValidationError kb-sign-up-form__validation-error"},sne={id:"signupInfo",class:"kb-sign-up-form__signup-info"},cne={class:"kb-sign-up-form__button-wrapper"},une={class:"kb-sign-up-form__privacy-policy-info"},dne=["innerHTML"],pne={key:0,class:"kb-spinner-container"},fne={class:"kb-success-page"},mne={class:"kb-success-page__hero"},gne={class:"kb-success-page__hero__title-wrapper"},hne={class:"kb-success-page__hero__title-wrapper__title"},bne={class:"kb-success-page__success-text"},vne={class:"kb-success-page__content-container"},yne={class:"kb-success-page__paragraph"},_ne={key:0,class:"kb-success-page__button-wrapper"},Ane=["href","target"],kne={class:"kb-success-page__privacy-policy-info"},xne=["innerHTML"];const wne={name:"SuccessPage",setup:function(){var e=Af();return{getLabel:dA,succesButtonData:bl(function(){var t=e.state.main.page_overlay_content_data;if(null===t)throw Error("Overlay content data was not set");return t}).value.successButtonData}}},Cne=wne,Ene=(0,Hb.A)(Cne,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",fne,[Mi("section",mne,[Mi("div",gne,[t[0]||(t[0]=Mi("div",{class:"kb-success-page__hero__hero-title-circle"},[Mi("div",{class:"kb-success-page__hero__hero-title-icon"},[Mi("svg",{viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0.5 6.58696L4.25 10.5L10.5 0.5",stroke:"white","stroke-width":"1.25","stroke-linejoin":"round"})])])],-1)),Mi("h1",hne,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"successTitle"})),1)]),t[1]||(t[1]=Mi("div",{class:"kb-success-page__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",bne,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"successConfirmation"})),1)]),t[2]||(t[2]=Mi("div",{class:"kb-success-page__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("section",vne,[Mi("p",yne,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"successParagraph",allowEmpty:!0})),1),e.succesButtonData?(Ai(),Si("div",_ne,[Mi("a",{href:e.succesButtonData.href,target:e.succesButtonData.target,class:"kb-button kb-button--full-color-spot"},fe(e.succesButtonData.title),9,Ane)])):zi("v-if",!0),Mi("div",kne,[Mi("p",{class:"kb-success-page__privacy-policy-info__text",innerHTML:e.getLabel({labelCollection:"signUpForm",labelKey:"privacyText"})},null,8,xne)])])])}]]),Sne={name:"SignUpForm",components:{SuccessPage:Ene},setup:function(){var e,t,n=Af(),o=Kt(!0),r=bl(function(){return n.state.events.signUpCompleteShowReceipt}),a=bl(function(){return n.state.events.isSubmitting}),i=bl(function(){return n.state.events.signUpEventId}),l=Kt(""),s=Kt(""),c=Kt(""),u=Kt(""),d=Kt(!1),p=bl(function(){return!!o.value||nE(u.value)}),f=bl(function(){return!(!o.value||l.value)||rE(l.value)}),m=bl(function(){return!(!o.value||s.value)||rE(s.value)}),g=bl(function(){return!!o.value||oE(c.value)}),h=bl(function(){return!!o.value||d.value});return Dr(function(){e=document.querySelector('.kb-sign-up-form [data-order="first"]'),t=document.querySelector('.kb-sign-up-form [data-order="last"]'),document.querySelector(".kb-page-overlay__close"),_C({opening:function(){e.focus()}},{persistent:!0})}),{firstName:l,lastName:s,phone:c,email:u,consent:d,isValidEmail:p,firstNameFilled:f,lastNameFilled:m,isValidPhone:g,consentChecked:h,showReceipt:r,isSubmitting:a,onSubmit:function(){o.value=!1,p.value&&f.value&&m.value&&g.value&&h.value&&n.dispatch("events/signUpToEvent",{eventId:i.value,firstName:l.value,lastName:s.value,email:u.value,phone:c.value,consent:d.value})}
2,getLabel:dA,tabTrap:function(n){n.shiftKey&&"first"===n.target.dataset.order&&(n.preventDefault(),t.focus()),n.shiftKey||"last"!==n.target.dataset.order||(n.preventDefault(),e.focus())},decodeHtml:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}}}},Tne=Sne,Ine=(0,Hb.A)(Tne,[["render",function(e,t,n,o,r,a){var i,l=qr("SuccessPage");return e.showReceipt?(Ai(),Ti(l,{key:0})):(Ai(),Si("article",{key:1,class:Y(["kb-sign-up-form",{"kb-sign-up-form--submitting":e.isSubmitting}])},[Mi("section",jte,[Mi("p",Hte,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"signupHeader"})),1),Mi("h1",qte,fe(e.decodeHtml(e.getLabel({labelCollection:"signUpForm",labelKey:"signupHeaderMain"}))),1)]),t[9]||(t[9]=Mi("div",{class:"kb-sign-up-form__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("section",Gte,[Mi("form",Kte,[Mi("label",Zte,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"signupLabelFirstName"})),1),io(Mi("input",{id:"firstName","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstName=t}),onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",name:"Fornavn",type:"text",class:"kb-sign-up-form__kb-form__input",placeholder:e.getLabel({labelCollection:"signUpForm",labelKey:"signupLabelFirstName"}),required:""},null,40,Wte),[[Ws,e.firstName]]),e.firstNameFilled?zi("v-if",!0):(Ai(),Si("p",$te,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"validationLabelFirstName"})),1)),Mi("label",Yte,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"signupLabelLastName"})),1),io(Mi("input",{id:"lastName","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.lastName=t}),name:"Efternavn",type:"text",class:"kb-sign-up-form__kb-form__input",placeholder:e.getLabel({labelCollection:"signUpForm",labelKey:"signupLabelLastName"}),required:""},null,8,Jte),[[Ws,e.lastName]]),e.lastNameFilled?zi("v-if",!0):(Ai(),Si("p",Xte,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"validationLabelLastName"})),1)),Mi("label",Qte,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"signupPhone"})),1),io(Mi("input",{id:"phone","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.phone=t}),name:"Telefon",type:"text",class:"kb-sign-up-form__kb-form__input",placeholder:e.getLabel({labelCollection:"signUpForm",labelKey:"signupPhone"}),required:""},null,8,ene),[[Ws,e.phone]]),e.isValidPhone?zi("v-if",!0):(Ai(),Si("p",tne,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"validationPhone"})),1)),Mi("label",nne,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"signupEmail"})),1),io(Mi("input",{id:"email","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.email=t}),name:"Email",type:"email",class:"kb-sign-up-form__kb-form__input",placeholder:e.getLabel({labelCollection:"signUpForm",labelKey:"signupEmail"}),required:""},null,8,one),[[Ws,e.email]]),e.isValidEmail?zi("v-if",!0):(Ai(),Si("p",rne,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"validationEmail"})),1)),Mi("div",ane,[io(Mi("input",{id:"signup","onUpdate:modelValue":t[5]||(t[5]=function(t){return e.consent=t}),type:"checkbox",name:"signup",class:"kb-sign-up-form__kb-form__radio-input",required:""},null,512),[[$s,e.consent]]),Mi("label",ine,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"signupConsent"})),1)]),e.consentChecked?zi("v-if",!0):(Ai(),Si("p",lne,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"validationConsent"})),1))]),Mi("p",sne,fe(e.getLabel({labelCollection:"signUpForm",labelKey:"signupParagraph"})),1),Mi("div",cne,[Mi("button",{onClick:t[6]||(t[6]=function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)}),id:"submit",name:"submit","data-order":"last",onKeydown:t[7]||(t[7]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),type:"submit",value:"",class:"kb-button kb-button--full-color-spot","aria-describedby":"signupInfo"},fe(e.getLabel({labelCollection:"signUpForm",labelKey:"signupButton"})),33)]),Mi("div",une,[Mi("p",{class:"kb-sign-up-form__privacy-policy-info__text",innerHTML:e.getLabel({labelCollection:"signUpForm",labelKey:"privacyText"})},null,8,dne)])]),e.isSubmitting?(Ai(),Si("div",pne,(i=t[8]||(t[8]=[Mi("div",{class:"kb-spinner-container__spinner"},null,-1)]),function(e){if(Array.isArray(e))return Ute(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Ute(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ute(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2))}]]);function Bne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var One={class:"kb-personal-donation-step2a__hero"},Lne={class:"kb-personal-donation-step2a__hero__title"},Dne={class:"kb-personal-donation-step2a__donation-container","aria-live":"polite"},Mne={class:"kb-personal-donation-step2a__donation-amount"},Nne={class:"kb-personal-donation-step2a__header",id:"donationheader"},Pne={class:"kb-personal-donation-step2a__donation-amount-wrapper"},Rne=["id","value"],Fne=["for"],Vne={class:"kb-personal-donation-step2a__custom-donation","aria-live":"polite"},zne=["aria-expanded"],Une={key:0,class:"kb-personal-donation-step2a__custom-donation-input-wrapper"},jne={class:"Form__Element FormTextbox amount-input kb-personal-donation-step2a__custom-donation-input"},Hne={key:0,class:"kb-forms Form__Element__ValidationError"},qne={class:"kb-personal-donation-step2a__donation-duration-section"},Gne={id:"personalDonationStep2a_howOften",class:"kb-personal-donation-step2a__header-duration"},Kne={class:"kb-personal-donation-step2a__radio"},Zne=["checked"],Wne={class:"kb-visually-hidden"},$ne={class:"kb-personal-donation-step2a__radio"},Yne=["checked"],Jne={class:"kb-visually-hidden"},Xne={class:"kb-personal-donation-step2a__form-wrapper"},Qne={class:"kb-personal-donation-step2a__form-wrapper"},eoe={class:"kb-personal-donation-step2a__consent-section"},toe={class:"kb-sign-up-form__kb-form__checkbox-container"},noe={for:"taxDeductible",class:"kb-sign-up-form__kb-form__radio-label"},ooe={key:0,class:"kb-personal-donation-step2a__form-wrapper"},roe={class:"kb-personal-donation-step2a__payment-section"},aoe={class:"kb-personal-donation-step2a__header"},ioe={key:0,class:"kb-personal-donation-step2a__payment-option"},loe={key:1,class:"kb-personal-donation-step2a__payment-option"},soe={key:2,class:"kb-personal-donation-step2a__payment-option"},coe={key:3,class:"kb-personal-donation-step2a__payment-option"},uoe={key:4,class:"kb-personal-donation-step2a__pbsinput-wrapper"},doe={class:"kb-personal-donation-step2a__pbsinput"},poe={class:"kb-personal-donation-step2a__pbsinput"},foe={class:"kb-personal-donation-step2a__pbsinput"},moe={key:0,class:"kb-forms Form__Element__ValidationError"},goe={class:"kb-personal-donation-step2a__button-wrapper"},hoe={key:0},boe={key:1},voe={class:"kb-visually-hidden"},yoe={key:0,class:"kb-spinner-container"},_oe={class:"kb-personal-donation-step3"},Aoe={class:"kb-personal-donation-step3__hero"},koe={class:"kb-personal-donation-step3__hero__title-wrapper"},xoe={class:"kb-personal-donation-step3__hero__title-wrapper__title"},woe={class:"kb-personal-donation-step3__success-text"},Coe={class:"kb-personal-donation-step3__button-container"},Eoe={class:"kb-personal-donation-step3__button-wrapper"},Soe=["href"];const Toe={name:"PersonalDonationStep3",setup:function(){var e=Af();return Dr(function(){var t=new URLSearchParams(document.location.search).get("orderId");t&&e.dispatch("main/trackPurchaseData",{orderId:t})}),{linkToInformationHowDonationBenefits:bl(function(){return e.state.fundraising.donation_settings.linkToInformationHowDonationBenefits}),getLabel:function(e){return dA({labelKey:e,labelCollection:"personalDonation"})}}}},Ioe=Toe,Boe=(0,Hb.A)(Ioe,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",_oe,[Mi("section",Aoe,[Mi("div",koe,[t[0]||(t[0]=Mi("div",{class:"kb-personal-donation-step3__hero__hero-title-circle"},[Mi("div",{class:"kb-personal-donation-step3__hero__hero-title-icon"},[Mi("svg",{viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M1.7998 12L8.6998 19.2L20.1998 0.799988",stroke:"white","stroke-width":"2.3","stroke-linejoin":"round"})])])],-1)),Mi("h1",xoe,fe(e.getLabel("personalDonationStep3__title")),1)]),t[1]||(t[1]=Mi("div",{class:"kb-personal-donation-step3__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",woe,fe(e.getLabel("personalDonationStep3_text")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-personal-donation-step3__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",Coe,[Mi("div",Eoe,[Mi("a",{href:e.linkToInformationHowDonationBenefits,class:"kb-button kb-button--full-color-spot kb-personal-donation-step3__kb-button--full-color-spot"}
2,fe(e.getLabel("personalDonationStep3_readBenefits")),9,Soe)])])])}]]);function Ooe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Loe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Loe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Loe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Loe(d,"constructor",c),Loe(c,"constructor",s),s.displayName="GeneratorFunction",Loe(c,r,"GeneratorFunction"),Loe(d),Loe(d,r,"Generator"),Loe(d,o,function(){return this}),Loe(d,"toString",function(){return"[object Generator]"}),(Ooe=function(){return{w:a,m:p}})()}function Loe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Loe=function(e,t,n,o){function a(t,n){Loe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Loe(e,t,n,o)}function Doe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const Moe={name:"PersonalDonationStep2a",components:{PersonalDonationStep3:Boe,FormInputTextField:mE,TooltipComponent:yy},setup:function(){var e,t,n,o,r,a,i,l,s,c,u,d,p,f,m,g,h,b=Af(),v=function(e){return b.getters["labels/getLabel"]({labelCollection:"personalDonation",labelKey:e})},y=bl(function(){return b.state.donation.personalDonationInput}).value,_=bl(function(){return b.state.fundraising.isSubmitting}),A=Kt(null!==(e=null==y?void 0:y.donationType)&&void 0!==e?e:v("personalDonationStep2a_default_radio_value")),k=bl(function(){return b.state.fundraising.donation_settings}),x=bl(function(){return"single"===A.value?k.value.single.presets:k.value.recurring.presets}),w=bl(function(){return"single"===A.value?k.value.single.presets[k.value.single.defaultPreset]:k.value.recurring.presets[k.value.recurring.defaultPreset]}),C=bl(function(){return k.value.recurring.showMobilepaySubscription}),E=bl(function(){return b.state.fundraising.personalDonationShowReceipt}),S=bl(function(){return b.state.main.page_id}),T=Kt(null!==(t=null==y?void 0:y.pbsFieldsVisible)&&void 0!==t&&t),I=Kt(null!==(n=null==y?void 0:y.donationPresetsSelectedIndex)&&void 0!==n?n:1),B=Kt(null!==(o=null==y?void 0:y.firstNameInput)&&void 0!==o?o:""),O=bl(function(){return!(!Y.value||B.value)||rE(B.value)}),L=Kt(null!==(r=null==y?void 0:y.lastNameInput)&&void 0!==r?r:""),D=bl(function(){return!(!Y.value||L.value)||rE(L.value)}),M=Kt(null!==(a=null==y?void 0:y.phoneInput)&&void 0!==a?a:""),N=bl(function(){return!!Y.value||oE(M.value)}),P=Kt(null!==(i=null==y?void 0:y.emailInput)&&void 0!==i?i:""),R=bl(function(){return!!Y.value||nE(P.value)}),F=Kt(null!==(l=null==y?void 0:y.donationAmountInput)&&void 0!==l?l:w.value),V=bl(function(){return!!Y.value||!!F.value}),z=Kt(null!==(s=null==y?void 0:y.customDonationAmountInput)&&void 0!==s?s:F.value),U=bl(function(){var e;return!(!Y.value||J.value)||z.value>=(null!==(e=k.value.minimumAmount)&&void 0!==e?e:1)}),j=Kt(null!==(c=null==y?void 0:y.cprNumberInput)&&void 0!==c?c:""),H=bl(function(){return!!Y.value||!te.value&&"4"!==q.value||eK(j.value)}),q=Kt(null!==(u=null==y?void 0:y.paymentMethod)&&void 0!==u?u:""),G=bl(function(){return!!Y.value||!!q.value}),K=Kt(null!==(d=null==y?void 0:y.pbsRegInput)&&void 0!==d?d:""),Z=bl(function(){return!!Y.value||4===K.value.toString().length}),W=Kt(null!==(p=null==y?void 0:y.pbsAccnumInput)&&void 0!==p?p:""),$=bl(function(){return!!Y.value||W.value.toString().length>=7&&W.value.toString().length<=10}),Y=Kt(!0),J=Kt(!1),X=Kt(null!==(f=null==y?void 0:y.customDonation)&&void 0!==f&&f),Q=Kt(null),ee=function(){var e,t=(e=Ooe().m(function e(){return Ooe().w(function(e){for(;;)switch(e.n){case 0:return J.value=!0,X.value=!0,F.value="",e.n=1,nextTick();case 1:Q.value.focus();case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Doe(a,o,r,i,l,"next",e)}function l(e){Doe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}(),te=Kt(null!==(m=null==y?void 0:y.taxDeductible)&&void 0!==m&&m),ne=bl(function(){return X.value?z.value:F.value}),oe=bl(function(){return ne.value+" kr "});return bo(F,function(){I.value="single"===A.value?k.value.single.presets.indexOf(F.value):k.value.recurring.presets.indexOf(F.value)}),bo(A,function(){q.value="",W.value="",K.value="",function(){if(!X.value){var e=k.value.single.presets[I.value],t=k.value.recurring.presets[I.value];if(e!=t)return z.value=F.value,void ee();F.value="single"===A.value?e:t}}()}),Dr(function(){var e;g=document.querySelectorAll('.kb-personal-donation-step2a__donation-input [data-order="first"]')[null!==(e=I.value)&&void 0!==e?e:1],document.querySelector('.kb-personal-donation-step2a [data-order="last"]'),h=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){g&&g.focu
2s()}},{persistent:!0})}),Pr(function(){var e={pbsFieldsVisible:T.value,firstNameInput:B.value,lastNameInput:L.value,phoneInput:M.value,emailInput:P.value,donationAmountInput:F.value,customDonationAmountInput:z.value,cprNumberInput:j.value,paymentMethod:q.value,pbsRegInput:K.value,pbsAccnumInput:W.value,customDonation:X.value,donationType:A.value,taxDeductible:te.value,donationPresetsSelectedIndex:I.value};b.commit("donation/store_personal_donation_input",e)}),{cprNumberInput:j,cprNumberInputFilled:H,customDonation:X,customDonationAmountInput:z,customDonationAmountInputIsValid:U,donationAmountInput:F,donationAmountInputFilled:V,donationPresets:x,donationType:A,emailInput:P,emailInputFilled:R,firstNameInput:B,firstNameInputFilled:O,isSubmitting:_,lastNameInput:L,lastNameInputFilled:D,paymentButtonTextAddition:oe,paymentMethod:q,paymentMethodFilled:G,paymentOptions:{single:["mobilepay","creditcard"],recurring:["mobilepaysubscription","betalingsservice"]},pbsAccnumInput:W,pbsAccnumInputFilled:$,pbsFieldsVisible:T,pbsRegInput:K,pbsRegInputFilled:Z,phoneInput:M,phoneInputFilled:N,showReceipt:E,taxDeductible:te,valueinputfield:Q,showMobilepaySubscription:C,disableCustomDonation:function(){X.value=!1,J.value=!1},enableCustomDonation:ee,getLabel:v,hidePBSfields:function(){T.value=!1},showPBSfields:function(){T.value=!0},submitDonation:function(){var e,t;if(Y.value=!1,!(G.value&&(!X.value||U.value)&&R.value&&N.value&&D.value&&O.value&&H.value&&q.value&&("4"!==q.value||Z.value&&$.value&&H.value)))return pN(),!1;var n={firstName:B.value,lastName:L.value,phone:M.value,email:P.value,donationAmount:ne.value,paymentMethod:q.value,taxDeductible:te.value,cprNo:j.value||null,recurringDonation:"recurring"===A.value,donationId:k.donationId,pbsData:K.value?{reg:null===(e=K.value)||void 0===e?void 0:e.toString(),acc:null===(t=W.value)||void 0===t?void 0:t.toString()}:null,pageId:S.value,isCustomAmount:!!X.value,referrer:document.referrer};b.dispatch("fundraising/submitPersonalDonation",n).then(function(e){e.success?console.log("Donation submitted successfully"):console.log("Donation submission failed")})},tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),h.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),h.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),g.focus())}}}},Noe=Moe,Poe=(0,Hb.A)(Noe,[["render",function(e,t,n,o,r,a){var i,l=qr("PersonalDonationStep3"),s=qr("FormInputTextField"),c=qr("TooltipComponent");return e.showReceipt?(Ai(),Ti(l,{key:0})):(Ai(),Si("article",{key:1,class:Y(["kb-personal-donation-step2a",{"kb-personal-donation-step2a--submitting":e.isSubmitting}])},[Mi("section",One,[Mi("h1",Lne,fe(e.getLabel("personalDonationStep2a_title")),1)]),t[30]||(t[30]=Mi("div",{class:"kb-personal-donation-step2a__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",Dne,[Mi("section",Mne,[Mi("p",Nne,fe(e.getLabel("personalDonationStep2a_desc")),1),Mi("div",Pne,[(Ai(!0),Si(gi,null,Yr(e.donationPresets,function(n,o){return Ai(),Si("div",{key:o,class:"kb-personal-donation-step2a__donation-input"},[io(Mi("input",{"aria-describedby":"donationheader",id:n,type:"radio",name:"donation-amount","data-order":"first",onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),value:n,onClick:t[1]||(t[1]=function(){return e.disableCustomDonation&&e.disableCustomDonation.apply(e,arguments)}),"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.donationAmountInput=t})},null,40,Rne),[[Js,e.donationAmountInput]]),Mi("label",{for:n},fe(n)+" kr",9,Fne)])}),128))]),Mi("div",Vne,[Mi("button",{class:"kb-personal-donation-step2a__custom-donation-button",id:"customdonationamountbutton","aria-expanded":e.customDonation,"aria-haspopup":"true",onClick:t[3]||(t[3]=function(){return e.enableCustomDonation&&e.enableCustomDonation.apply(e,arguments)})},fe(e.getLabel("personalDonationStep2a_enterAmount")),9,zne),e.customDonation?(Ai(),Si("div",Une,[Mi("div",jne,[io(Mi("input",{"aria-labelledby":"
2customdonationamountbutton",ref:"valueinputfield","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.customDonationAmountInput=t}),onFocus:t[5]||(t[5]=function(e){return e.target.select()}),type:"number",class:Y(["FormTextbox__Input",{"validation-error":!e.customDonationAmountInputIsValid}]),placeholder:""},null,34),[[Ws,e.customDonationAmountInput]])]),e.customDonationAmountInputIsValid?zi("v-if",!0):(Ai(),Si("p",Hne,fe(e.getLabel("validationCustomDonation")),1))])):zi("v-if",!0)])]),Mi("section",qne,[Mi("p",Gne,fe(e.getLabel("personalDonationStep2a_howOften")),1),Mi("label",Kne,[io(Mi("input",{type:"radio",name:"__field_5897",value:"single",checked:"single"===e.donationType,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.donationType=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":"","aria-describedby":"personalDonationStep2a_howOften"},null,8,Zne),[[Js,e.donationType]]),Fi(" "+fe(e.getLabel("personalDonationStep2a_once"))+" ",1),Mi("span",Wne,fe(e.paymentButtonTextAddition),1)]),Mi("label",$ne,[io(Mi("input",{type:"radio",name:"__field_5897",value:"recurring",checked:"recurring"===e.donationType,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.donationType=t}),class:"FormChoice__Input FormChoice__Input--Radio","data-f-datainput":"","aria-describedby":"personalDonationStep2a_howOften"},null,8,Yne),[[Js,e.donationType]]),Fi(" "+fe(e.getLabel("personalDonationStep2a_concurrent"))+" ",1),Mi("span",Jne,fe(e.paymentButtonTextAddition),1)])]),Mi("div",Xne,[Ni(s,{modelValue:e.firstNameInput,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.firstNameInput=t}),fieldName:"firstName",autocomplete:"given-name",label:e.getLabel("personalDonationStep2a_input_firstname"),isValidationError:!e.firstNameInputFilled,errorMessageLabel:e.getLabel("validationFirstname")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(s,{modelValue:e.lastNameInput,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.lastNameInput=t}),fieldName:"lastName",autocomplete:"family-name",label:e.getLabel("personalDonationStep2a_input_lastname"),isValidationError:!e.lastNameInputFilled,errorMessageLabel:e.getLabel("validationLastname")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])]),Mi("div",Qne,[Ni(s,{modelValue:e.emailInput,"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.emailInput=t}),fieldName:"email",autocomplete:"email",label:e.getLabel("personalDonationStep2a_input_email"),isValidationError:!e.emailInputFilled,errorMessageLabel:e.getLabel("validationEmail")},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(s,{modelValue:e.phoneInput,"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.phoneInput=t}),fieldName:"phone",autocomplete:"tel",label:e.getLabel("personalDonationStep2a_input_phone"),isValidationError:!e.phoneInputFilled,errorMessageLabel:e.getLabel("validationPhone")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])]),Mi("section",eoe,[Mi("div",toe,[io(Mi("input",{"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.taxDeductible=t}),id:"taxDeductible",type:"checkbox",name:"signup",class:"kb-sign-up-form__kb-form__radio-input"},null,512),[[$s,e.taxDeductible]]),Mi("label",noe,fe(e.getLabel("personalDonationStep2a_taxdeduction")),1),Ni(c,{tooltipName:e.getLabel("personalDonationStep2a_taxdeductionTooltipName"),tooltipText:e.getLabel("personalDonationStep2a_taxdeductionTooltip")},null,8,["tooltipName","tooltipText"])]),!e.taxDeductible||e.pbsFieldsVisible&&"4"===e.paymentMethod?zi("v-if",!0):(Ai(),Si("div",ooe,[Ni(s,{modelValue:e.cprNumberInput,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.cprNumberInput=t}),fieldName:"cpr",label:e.getLabel("personalDonationStep2a_input_cpr"),isValidationError:!e.cprNumberInputFilled,errorMessageLabel:e.getLabel("validationCpr")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])]))]),Mi("section",roe,[Mi("p",aoe,fe(e.getLabel("personalDonationStep2a_choose_paymentmethod")),1),(Ai(!0),Si(gi,null,Yr(e.paymentOptions[e.donationType],function(n,o){return Ai(),Si(gi,{key:o},["mobilepay"===n?(Ai(),Si("div",ioe,[io(Mi("input",{id:"first-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[14]||(t[14]=function(t){return e.paymentMethod=t}),value:"1"},null,512),[[Js,e.paymentMethod]]),t[25]||(t[25]=Vi('<label for="first-payment-method">MobilePay <div class="kb-personal-donation-step2a__icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 75 24"><path fill="#5A78FF" d="M9.03 23.993a2.03 2.03 0 0 1-1.875-1.252l-7-16.9A2.027 2.027 0 0 1 1.25 3.191L8.584.155a2.026 2.026 0 0 1 2.648 1.097l7 16.901a2.027 2.027 0 0 1-1.096 2.647l-7.333 3.038a2.016 2.016 0 0 1-.772.155ZM9.36 1.09a.933.933 0 0 0-.358.072L1.669 4.2a.935.935 0 0 0-.506 1.223l7 16.9a.937.937 0 0 0 1.223.507l7.332-3.039a.936.936 0 0 0 .506-1.222l-7-16.9a.937.937 0 0 0-.864-.578Z"></path><path fill="#5A78FF" d="M16.448 14.602c-2.27 0-4.347.439-5.958 1.334V8.718a12.482 12.482 0 0 1 5.958-1.334c2.27 0 4.389.42 5.958 1.336v7.218a12.475 12.475 0 0 0-5.957-1.336Zm11.596.007 1.837-5.806c.02-.08.088-.139.17-.146h.922a.226.226 0 0 1 .18.146l1.43 3.663c.028.073.101.08.126 0l1.419-3.663a.226.226 0 0 1 .18-.146h.922a.191.191 0 0 1 .17.146l1.817 5.806a.14.14 0 0 1-.136.198h-1.096a.16.16 0 0 1-.163-.125l-1.166-3.77c-.017-.074-.1-.074-.125 0l-1.391 3.742a.205.205 0 0 1-.198.153h-.644c-.1 0-.153-.056-.191-.153l-1.42-3.743c-.027-.073-.1-.073-.117 0l-1.194 3.77a.163.163 0 0 1-.17.126h-1.043a.136.136 0 0 1-.119-.198Zm9.52-2.087A2.435 2.435 0 1 1 40 14.908a2.354 2.354 0 0 1-2.435-2.386Zm3.618 0a1.196 1.196 0 1 0-1.183 1.276 1.228 1.228 0 0 0 1.176-1.276h.007Zm3.395 1.91c-.09-.074-.17-.046-.17.08v.118a.17.17 0 0 1-.164.17h-.85a.177.177 0 0 1-.17-.17V8.824a.177.177 0 0 1 .17-.17h.895a.17.17 0 0 1 .163.17v1.656c0 .118.08.153.209.063a1.986 1.986 0 0 1 1.186-.397c1.238 0 2.188 1.044 2.188 2.386a2.282 2.282 0 0 1-2.226 2.386 1.85 1.85 0 0 1-1.231-.487Zm2.226-1.9a1.197 1.197 0 1 0-2.386 0 1.21 1.21 0 0 0 1.186 1.256 1.228 1.228 0 0 0 1.2-1.266v.01Zm1.979-3.454a.696.696 0 1 1 1.391 0 .696.696 0 0 1-1.391 0Zm.062 5.566v-4.21a.17.17 0 0 1 .164-.17h.894a.177.177 0 0 1 .184.17v4.196a.177.177 0 0 1-.17.17h-.908a.17.17 0 0 1-.164-.17v.013Zm2.237-1.378V8.824a.
217.17 0 0 1 .163-.17h.894a.177.177 0 0 1 .17.17v4.47c0 .289.126.48.442.48a.17.17 0 0 1 .17.17v.741a.17.17 0 0 1-.17.164c-1.19 0-1.67-.39-1.67-1.583Zm2.174-.716a2.351 2.351 0 1 1 4.702.017c0 .163-.045.3-.208.3h-3.11c-.08 0-.108.044-.1.117.076.545.564.936 1.112.894.33.005.646-.138.86-.39a.348.348 0 0 1 .288-.145h.831c.146 0 .21.1.153.243a2.383 2.383 0 0 1-4.521-1.043l-.007.007Zm3.3-.418c.063 0 .091-.028.08-.1a1.043 1.043 0 0 0-1.043-.85c-.497 0-.929.341-1.043.825-.018.063 0 .125.073.125h1.934Zm2.154 2.498V8.824a.17.17 0 0 1 .163-.17h2.849c1.3 0 2.188.758 2.188 2.035 0 1.276-1.005 2.062-2.25 2.062h-1.51a.15.15 0 0 0-.164.17v1.709a.177.177 0 0 1-.17.17h-.94a.17.17 0 0 1-.166-.17Zm2.95-2.93a.98.98 0 0 0 .949-1.004.928.928 0 0 0-.953-.957h-1.52c-.108 0-.153.056-.153.164v1.645c0 .108.045.163.153.163l1.523-.01Zm2.688.822a2.3 2.3 0 0 1 2.243-2.386c.444.002.873.167 1.204.462.08.073.17.063.17-.045v-.118c0-.09.073-.164.164-.164h.849a.177.177 0 0 1 .17.17v2.985c0 .226.08.327.236.348a.157.157 0 0 1 .154.146v.786a.153.153 0 0 1-.154.153c-.598 0-.95-.17-1.147-.515-.056-.09-.119-.107-.21-.017-.381.393-.908.612-1.456.605a2.292 2.292 0 0 1-2.223-2.41Zm3.617 0a1.193 1.193 0 1 0-2.379 0 1.193 1.193 0 1 0 2.38 0Zm1.993 3.871v-.74a.17.17 0 0 1 .17-.164 1.27 1.27 0 0 0 1.302-.87.501.501 0 0 0-.035-.348l-1.663-3.763a.163.163 0 0 1 .146-.244h.894c.09 0 .146.073.181.164l1.044 2.407c.073.191.19.18.27 0l.996-2.414c.034-.09.08-.146.17-.146h.86a.157.157 0 0 1 .152.216l-1.711 4.048c-.623 1.475-1.283 2.025-2.605 2.025a.177.177 0 0 1-.17-.17Z"></path></svg></div></label>',1))])):zi("v-if",!0),"creditcard"===n?(Ai(),Si("div",loe,[io(Mi("input",{id:"second-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[15]||(t[15]=function(t){return e.paymentMethod=t}),value:"2"},null,512),[[Js,e.paymentMethod]]),t[26]||(t[26]=Vi('<label for="second-payment-method">Betalingskort <div class="kb-personal-donation-step2a__icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 330 40"><path d="M273 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 273 .5z" fill="#FFF"></path><path d="M308.389 20.111h2.85a1.716 1.716 0 0 1 .311.032l.019.004c.081.018.16.045.235.08l.048.023.047.025.047.027.047.031a.95.95 0 0 1 .141.112c.052.046.099.096.141.151.036.043.068.09.095.139.064.111.111.231.141.356.056.251.039.512-.047.754a1.383 1.383 0 0 1-.141.273.91.91 0 0 1-.095.12 1.187 1.187 0 0 1-.235.207l-.047.03-.047.028-.047.025a1.434 1.434 0 0 1-.236.09l-.047.011-.019.004a1.723 1.723 0 0 1-.264.03l-.047.002h-2.85v-2.554zm3.792-2.89c.052.234.036.478-.047.703a.968.968 0 0 1-.094.191 1.112 1.112 0 0 1-.188.23l-.047.042-.047.037a1.628 1.628 0 0 1-.236.138.663.663 0 0 1-.047.02l-.047.017-.047.015a1.607 1.607 0 0 1-.141.033l-.012.002a1.956 1.956 0 0 1-.271.022h-2.568v-2.357h2.588l.027.001c.063.002.126.007.188.015l.036.005.012.002c.047.01.094.021.141.034l.047.015.047.018c.049.018.096.04.141.066.05.026.097.057.142.091l.047.038.047.041a1.08 1.08 0 0 1 .329.581zM318.022 5h.019v24.205a4.72 4.72 0 0 1-.113 1.04 4.067 4.067 0 0 1-.188.639c-.016.04-.031.081-.048.121a4.827 4.827 0 0 1-.235.499l-.047.084-.047.08-.047.078a11.975 11.975 0 0 1-.189.28l-.047.064-.047.062-.047.06-.047.058-.047.056a9.42 9.42 0 0 1-.189.21l-.047.047-.047.048-.047.045-.047.045-.047.044-.047.042-.048.042-.047.04a.901.901 0 0 1-.047.
204l-.047.038-.047.038-.047.036-.047.036-.047.034a1.384 1.384 0 0 0-.047.034l-.047.033-.048.032-.047.031a1.864 1.864 0 0 1-.094.06l-.047.03-.047.028-.047.028-.047.027-.047.026-.048.026-.047.025-.047.024-.047.024-.047.023-.047.022-.047.022-.047.021-.047.02-.047.02-.048.02a.924.924 0 0 1-.047.019l-.047.018-.047.018-.047.017-.047.016-.047.017-.047.015-.047.015-.048.015-.047.013-.047.014-.047.013-.047.012-.047.012-.047.012-.047.01c-.016.004-.032.008-.047.01l-.047.011-.048.01-.047.008-.047.01-.047.007-.047.008-.047.007-.047.006-.047.007-.047.005-.048.005-.047.005-.047.005a.389.389 0 0 0-.047.004c-.016 0-.031.002-.047.003l-.047.003c-.016 0-.031.002-.047.003l-.047.001-.047.002-.047.001-.048.001h-7.214v-9.868h7.591l.047-.001.047-.001.048-.001.047-.002.047-.002.047-.003.047-.003.047-.004.047-.004.047-.005.047-.005.048-.006.047-.006.047-.007.047-.007.047-.008.047-.008.047-.009.047-.01.047-.01.095-.022.047-.012.047-.012.047-.014.047-.014.047-.014c.032-.01.063-.02.094-.032l.047-.016.048-.018.047-.018.047-.02.047-.02.047-.02.047-.023.047-.022.047-.024c.032-.016.063-.033.094-.051l.048-.027.047-.029.047-.03.047-.03.047-.033c.032-.022.064-.045.094-.07.032-.024.064-.049.094-.076l.048-.041.047-.044.047-.045.047-.05a1.868 1.868 0 0 0 .235-.296c.017-.024.032-.05.047-.075.017-.026.032-.054.048-.082a2.98 2.98 0 0 0 .094-.198 2.12 2.12 0 0 0 .162-.839c0-.235-.039-.469-.115-.692a2.565 2.565 0 0 0-.141-.312l-.048-.08a1.29 1.29 0 0 0-.094-.138 1.766 1.766 0 0 0-.188-.22l-.047-.047-.047-.044-.047-.042a3.056 3.056 0 0 0-.142-.113l-.047-.035a1.913 1.913 0 0 0-.047-.033l-.047-.031-.047-.03-.047-.029-.047-.027a2.88 2.88 0 0 0-.095-.052l-.047-.024a1.62 1.62 0 0 0-.094-.045l-.047-.022-.047-.02-.047-.02-.047-.018-.047-.018-.048-.018a2.59 2.59 0 0 0-.094-.032l-.047-.015-.047-.014-.047-.014-.047-.013-.047-.012-.047-.012a3.254 3.254 0 0 0-.095-.022l-.047-.01a.787.787 0 0 0-.047-.01l-.047-.008-.047-.009-.047-.008-.047-.007-.047-.007-.047-.006-.048-.006-.047-.005-.047-.005-.047-.005-.047-.004-.043-.003-.001-.056.044-.006.047-.008.047-.008.047-.01c.016-.002.032-.006.047-.009l.048-.01.047-.01.047-.013.047-.012.047-.013.047-.014c.048-.013.095-.029.141-.046l.047-.017.048-.018.047-.019.047-.02.047-.02.047-.023a1.722 1.722 0 0 0 .188-.099l.048-.028.047-.029.047-.03.047-.033.047-.034c.032-.023.064-.048.094-.074.05-.039.097-.082.141-.127l.048-.048.047-.05.047-.055a2.175 2.175 0 0 0 .33-.545c.038-.095.069-.193.094-.293.038-.164.057-.332.058-.501 0-.232-.036-.462-.105-.683a1.883 1.883 0 0 0-.377-.66l-.047-.052-.047-.05a5.7 5.7 0 0 0-.142-.129 1.716 1.716 0 0 0-.141-.109l-.047-.033-.047-.031-.047-.03-.047-.028a2.9 2.9 0 0 0-.095-.053l-.047-.025a1.165 1.165 0 0 0-.094-.046l-.047-.021-.047-.02-.047-.02-.047-.018a5.038 5.038 0 0 0-.236-.08l-.047-.015-.047-.013-.047-.012-.047-.012-.047-.011-.048-.01-.047-.01a.787.787 0 0 0-.047-.01l-.047-.009-.047-.008-.047-.008-.047-.007-.047-.007-.047-.006-.048-.005-.047-.005-.047-.005-.047-.004-.047-.004-.047-.003-.047-.003h-.019l-.028-.003-.047-.002-.047-.003-.048-.002-.047-.003-.047-.002-.047-.001-.047-.002h-.047l-.047-.001h-6.932V9.84c-.001-.648.13-1.29.384-1.886l.047-.106.047-.1c.016-.032.031-.064.048-.095.03-.059.061-.118.094-.175a3.19 3.19 0 0 1 .094-.16c.03-.05.061-.098.094-.146l.047-.07.047-.067.047-.064.095-.123.047-.058c.03-.039.061-.076.094-.112l.047-.053.047-.052.047-.05.047-.049.047-.048.095-.091.047-.044a.958.958 0 0 1 .047-.043l.047-.041.047-.041.047-.04.047-.038.047-.038.048-.037.047-.036c.03-.024.062-.047.094-.069l.047-.033.047-.032.047-.032.047-.03.047-.03.048-.03.047-.029.047-.027.047-.028.047-.026.047-.026.047-.025.047-.024.047-.024.047-.023.048-.023.047-.022.047-.021.047-.02.047-.021.047-.02.047-.018.047-.019.047-.018.048-.017.047-.017.047-.016.047-.015.047-.016.047-.014.047-.014.047-.014.047-.013.047-.013.048-.012.047-.011.047-.011.047-.01.047-.01.047-.01.047-.01.047-.008.047-.008.047-.008.048-.007.047-.007.047-.007.047-.005.047-.006.047-.005.047-.004.047-.004.047-.003.048-.003c.015-.001.031-.003.047-.003l.047-.002.047-.002.047-.002h.094l.012-.001h7.148z" fill="#54B230"></path><path d="M279 21.797V9.84a4.844 4.844 0 0 1 .477-2.09l.047-.094.047-.09.047-.085.047-.082.047-.078.047-.075.047-.072.047-.069.047-.067.047-.064.047-.063.047-.06.
2047-.058.047-.057.047-.055.048-.053.047-.052.047-.05c.03-.034.061-.066.094-.097a1.36 1.36 0 0 1 .094-.092l.047-.043a.63.63 0 0 1 .047-.043l.047-.042.047-.04.047-.04c.03-.027.062-.052.094-.076.03-.026.062-.05.094-.073a.818.818 0 0 1 .047-.035l.047-.034c.03-.023.062-.045.094-.066l.047-.031.047-.03.047-.031.047-.03.047-.028.047-.028.047-.027a.55.55 0 0 1 .047-.026l.047-.026.047-.025.047-.025.047-.024.047-.023.047-.022.047-.022.047-.022.047-.02.047-.02.047-.02.047-.02.047-.018.047-.017.047-.018.047-.017.047-.016.047-.016.048-.015.047-.015.047-.013.047-.014.047-.013.047-.013.047-.012.047-.011.047-.012.047-.01.047-.01.047-.01.047-.01.047-.008.047-.008.047-.008.047-.007.047-.007.047-.006.047-.006.047-.006.047-.005.047-.004.047-.004.047-.004.047-.003c.016 0 .031-.002.047-.003l.047-.002.047-.002.047-.002h.094l.047-.001h7.14v24.205c.001.443-.059.884-.181 1.31a4.75 4.75 0 0 1-.517 1.186l-.047.076a2.943 2.943 0 0 1-.047.072l-.047.07c-.03.045-.061.09-.094.133l-.047.063-.047.061-.047.059-.047.057-.047.056-.047.053-.047.053-.047.05-.047.05-.047.048-.047.047-.047.045-.047.044-.047.044-.047.041-.047.042-.047.04-.047.038-.047.038a1.518 1.518 0 0 0-.047.037l-.047.036-.047.035-.048.035a1.989 1.989 0 0 1-.141.098l-.047.03-.047.031-.047.03-.047.029-.047.027-.047.028-.047.026c-.031.018-.062.036-.094.052l-.047.024a1.661 1.661 0 0 1-.094.048l-.047.023-.047.022-.047.021-.047.021-.047.02-.047.02-.047.02-.047.018-.047.018-.047.018-.047.016-.047.017-.047.016-.047.015-.047.015-.047.014-.047.014-.047.013-.047.013-.047.012-.047.012-.047.011-.047.01-.047.011-.047.01-.047.01-.047.008-.047.008-.047.008-.047.008-.047.007-.047.006-.048.006-.047.006-.094.01-.047.004-.047.004-.047.003-.047.003-.047.002-.047.002-.047.002h-.047l-.047.001H279V23.845l.101.026.047.011.047.012.047.011.047.011.047.01.047.011.047.011.047.01.047.01.047.01.047.01.047.01.047.01.047.01.047.01.047.009.047.009.047.009.047.009.047.009.047.009.047.008.047.009.048.008.047.008.047.008.047.009.047.008.047.007.047.008.047.008.047.007.047.008.047.007.047.007.047.008.047.007.047.006.047.007.047.007.047.007.047.006.047.007.047.006.047.006.047.006.047.006.047.006.047.006.047.006.047.005.047.006.047.005.047.006.047.005.047.005.047.005.047.005.047.005.047.005.047.004.047.005.047.004.047.004.047.005.047.004.047.004.047.004.047.003.048.004.047.004.047.003.047.004.047.003.047.003.047.003.047.003.047.003.047.003.047.003.047.002.047.003.047.002.047.002.047.002.047.002.047.002.047.002.047.002.047.002.047.001.047.001.047.002.047.001.047.001.047.001h.047l.047.002h.094l.047.001h.094l.047.001h.141l.047-.001h.047l.047-.001h.047l.047-.002h.047l.047-.002.047-.001.047-.002.047-.001.048-.002.047-.002.047-.002.047-.002.047-.002.047-.003.047-.002.047-.003.047-.003.047-.003.047-.003.047-.003.047-.004.047-.003.047-.005.047-.004.047-.004.047-.004.047-.005.047-.005.047-.004.047-.006.047-.005.047-.005.047-.006.047-.006.047-.006.047-.006.047-.007.047-.007.047-.007.047-.007.047-.007.047-.008.047-.008.047-.008.047-.008.047-.01.047-.008.047-.009.047-.01.047-.01.047-.009.047-.01.047-.011.047-.01.048-.012.047-.011.047-.012.047-.012.047-.013.047-.012.047-.013.047-.014.047-.013.047-.015.047-.014.047-.015.047-.015.047-.016.047-.016.047-.017.047-.017.047-.017.047-.018.047-.019.047-.019.047-.02.047-.019.047-.02.047-.022.047-.021.047-.023.047-.023.047-.023.047-.024.047-.026.047-.025c.032-.017.063-.035.094-.054.032-.018.063-.037.094-.057l.047-.03.047-.03.047-.032.047-.033.047-.034c.032-.023.064-.047.094-.072.032-.024.064-.049.094-.076l.047-.04.047-.043.047-.043.048-.045.047-.047.047-.05.047-.051.047-.054.047-.056.047-.06.047-.062.047-.066.047-.07.047-.075c.052-.084.099-.17.141-.259.052-.111.099-.224.141-.339a3.62 3.62 0 0 0 .188-.872c.016-.158.023-.319.023-.482v-5.617h-4.161l-.036 5.617c.001.258-.035.514-.105.762a2.311 2.311 0 0 1-.282.609c-.043.066-.09.128-.141.188l-.047.053-.047.05-.047.048-.047.044-.047.042-.047.04-.047.036-.047.035-.047.034-.047.031-.047.03-.047.028-.047.027-.047.025a2.696 2.696 0 0 1-.189.088l-.047.02a1.387 1.387 0 0 1-.141.05 1.643 1.643 0 0 1-.188.056l-.047.011a3.091 3.091 0 0 1-.235.047l-.047.007-.047.006-.047.006-.047.005-.047.005-.047.004-.094.006-.047.002-.047.001-.047.002h-.141l-.047-.001-.047-.001-.047-.001-.047-.002-.047-.002-.047-.002-.047-.002-.047-.003-.047-.003-.047-.003-.047-.004-.047-.004-.047-.004-.047-.004-.047-.005-.047-.005-.048-.006-.047-.005-.047-.006-.047-.006-.047-.007-.047-.007-.047-.006-.047-.008-.047-.007-.047-.008-.047-.008-.047-.009-.047-.008-.047-.01-.047-.009-.047-.009-.047-.01-.047-.01-.047-.01-.047-.01-.047-.011-.047-.011-.047-.011-.047-.012-.047-.012-.047-.012-.047-.012-.047-.013-.047-.013-.047-.013-.047-.013-.047-.014-.047-.013-.047-.014-.047-.015-.047-.014-.047-.015-.047-.015-.047-.015-.047-.016-.047-.016-.047-.015-.047-.017-.047-.016-.047-.017-.047-.017-.048-.017-.047-.017-.047-.018-.047-.017-.047-.018-.047-.019-.047-.018-.047-.019-.047-.019-.047-.019-.047-.02-.047-.019-.047-.02-.047-.02-.047-.02-.047-.02-.047-.02-.047-.022-.047-.02-.047-.022-.047-.021-.047-.022-.047-.022-.047-.022-.101-.048z" fill="#006CB9"></path><path d="M292.603 16.096a4.048 4.048 0 0 0-.101.083V9.841a4.834 4.834 0 0 1 .806-2.665l.047-.07.047-.067.047-.064.047-.062.047-.06.
2047-.059.047-.057.047-.055.047-.053.047-.052.047-.05.047-.049.047-.048.047-.046.047-.045.047-.044.047-.043.047-.041.047-.041.047-.04.048-.038c.03-.026.062-.051.094-.075.03-.024.062-.048.094-.07.03-.024.062-.047.094-.068.031-.022.062-.044.094-.064.031-.021.062-.041.094-.06l.047-.03.047-.029c.015-.01.031-.018.047-.027l.047-.028.047-.026.047-.026.047-.025.047-.025.047-.023.047-.024.047-.022.047-.022.047-.022.047-.02.047-.02.047-.02.047-.019.047-.019.047-.017.047-.018.047-.016.047-.017.047-.015.047-.016.047-.014.047-.014.047-.014.047-.013.047-.013.047-.012.047-.011.047-.012.048-.01.047-.01.047-.01.047-.01.047-.008.047-.008.047-.008.047-.007.047-.007.047-.006.047-.006.047-.006.047-.005.047-.004.047-.004.047-.004.047-.003c.016 0 .031-.002.047-.003l.047-.002.047-.002.047-.002h.094l.021-.001h7.167v24.205a4.888 4.888 0 0 1-.275 1.605l-.047.127-.048.117c-.015.036-.03.073-.047.109a3.877 3.877 0 0 1-.235.459c-.03.052-.061.104-.094.154-.03.049-.061.097-.094.144a2.43 2.43 0 0 1-.094.132c-.03.042-.061.084-.094.124-.03.04-.061.079-.094.116a1.238 1.238 0 0 1-.047.055l-.047.054-.047.053-.047.05-.047.05-.047.047-.047.047-.047.046-.047.044c-.016.014-.031.03-.047.043l-.047.042-.047.041-.047.04-.047.04-.047.037-.047.037-.047.036-.047.035-.047.034a1.384 1.384 0 0 0-.047.034l-.047.033-.047.032-.047.03-.047.031-.047.03-.047.028-.048.028a1.755 1.755 0 0 1-.094.054l-.047.026-.047.026-.047.024-.047.024-.047.023-.047.024-.047.021a.991.991 0 0 1-.047.
2022l-.047.02-.047.021-.047.02-.047.02c-.016.005-.031.012-.047.018l-.047.018-.047.018-.047.016-.047.017-.047.016-.047.015-.047.015-.047.014-.047.014-.047.013-.047.013-.047.012-.047.012-.047.011-.047.01-.047.011-.047.01-.047.01-.047.008-.047.008-.047.008-.047.008-.047.007-.047.006-.047.006-.047.006-.048.005-.047.005-.047.004-.047.004-.047.003-.047.003-.047.002-.047.002-.047.002h-.047l-.047.001h-7.201V22.87l.101.083.047.037c.031.025.062.049.094.072l.047.034c.031.023.062.045.094.066l.047.032.047.031.047.03.047.03.047.03.047.028.047.028.047.027.047.026.047.026.047.025.047.025.047.024.047.024.047.023.047.023.047.022.047.021.047.022.047.02.047.02.047.02.047.02.047.02.047.018.047.018.047.018.047.018.047.017.048.017.047.016.047.016.047.016.047.015.047.015.047.015.047.014.047.015.047.014.047.013.047.013.047.014.047.012.047.013.047.012.047.012.047.011.047.012.047.011.047.01.047.012.047.01.047.01.047.01.047.01.047.01.047.008.047.01.047.008.047.009.047.008.047.009.047.008.047.007.047.008.047.008.047.007.047.007.047.007.047.006.047.007.047.006.048.006.047.006.047.006.047.006.047.005.047.005.047.005.047.005.047.005.047.005.047.004.047.004.047.004.047.004.047.004.047.004.047.003.047.004.047.003.047.003.047.003.047.003.047.003.047.003.047.002.047.002.047.002.047.002.047.002.047.002.047.002.047.001.047.002h.047l.047.002.047.001h.047l.047.002h.047l.047.001h.094l.047.001h.283l.047-.002h.094l.047-.002h.047l.047-.002h.047l.047-.002.047-.001.047-.002.047-.001.047-.002.047-.002.047-.002.047-.002.047-.001.023-.001.024-.001.047-.003.047-.002.047-.003.047-.003.047-.003.047-.003.047-.003.047-.003.047-.004.047-.003.047-.004.047-.004.047-.004.047-.005.047-.004.047-.005.047-.004.048-.005.047-.005.047-.005.047-.005.047-.005.047-.006.047-.005.047-.006.047-.005.047-.006.047-.006.047-.006.047-.006.047-.007.047-.006.047-.007.047-.006.047-.007.047-.007.047-.007.047-.007.047-.007.047-.007.047-.007.047-.008.047-.007.047-.008.047-.008.047-.007.047-.008.047-.008.047-.008.047-.009.047-.008.047-.008.047-.009.047-.008.047-.009.047-.009.047-.008.047-.01.047-.008.048-.01.047-.009.047-.009.047-.01.047-.009.047-.01.047-.009.047-.01.047-.01.047-.01.047-.01.047-.01.047-.01.047-.01.047-.01.047-.011.047-.01.047-.012.047-.01.047-.012.047-.01.047-.012v-2.048l-.047.023-.047.023-.047.023-.047.023-.047.022-.047.022-.047.022-.047.022-.047.021-.047.022-.047.02-.047.021-.047.021-.047.02-.047.02-.047.02-.047.02-.047.02-.047.018-.047.019-.047.019-.048.018-.047.018-.047.018-.047.017-.047.018-.047.017-.047.016-.047.017-.047.016-.047.016-.047.016-.047.015-.047.015-.047.015-.047.015-.047.014-.047.014-.047.014-.047.014-.047.013-.047.013-.047.013-.047.012-.047.013-.047.011-.047.012-.047.012-.047.01-.047.012-.047.01-.047.01-.047.01-.047.01-.047.01-.047.01-.047.009-.047.009-.047.008-.047.008-.047.009-.047.007-.047.008-.048.007-.047.007-.047.007-.047.007-.047.006-.047.006-.047.006-.047.005-.047.006-.047.005-.047.005-.047.004-.047.004-.047.004-.047.004-.028.002-.019.002-.047.003-.047.003-.047.002-.047.003-.047.002-.047.002-.047.001-.047.001h-.047l-.047.001h-.141l-.047-.002-.047-.001-.047-.002-.047-.002-.047-.002-.047-.003-.047-.003-.047-.004-.047-.004-.047-.004-.047-.005-.048-.006-.047-.005-.047-.006-.047-.007-.047-.007-.047-.008-.047-.008-.047-.008-.047-.009-.047-.01-.047-.01-.047-.01-.047-.011-.047-.012-.047-.012-.047-.013-.047-.013-.047-.014-.047-.015-.047-.015-.047-.016-.047-.017-.047-.017-.047-.018-.047-.019-.047-.02a1.582 1.582 0 0 1-.094-.042 1.62 1.62 0 0 1-.094-.045l-.047-.024-.047-.024-.047-.027-.047-.026a1.322 1.322 0 0 1-.094-.058l-.047-.03a1.208 1.208 0 0 1-.094-.065l-.047-.034a1.314 1.314 0 0 1-.094-.073l-.047-.039-.048-.041-.047-.043-.047-.044-.047-.046-.047-.05-.047-.051-.047-.055-.047-.057-.047-.06-.047-.064-.047-.068-.047-.073a2.52 2.52 0 0 1-.141-.254 3.182 3.182 0 0 1-.282-.869 4.43 4.43 0 0 1 0-1.523 3.237 3.237 0 0 1 .376-1.046l.047-.078.047-.073.047-.068.047-.064.047-.06.047-.057.047-.054.047-.052.047-.05.047-.046.047-.044.047-.043.048-.041.047-.039c.03-.026.062-.05.094-.073l.047-.034c.03-.023.062-.045.094-.065a1.501 1.501 0 0 1 .141-.088l.047-.027c.031-.018.062-.035.094-.05.046-.025.093-.049.141-.07l.047-.021.047-.02.047-.02.047-.019.047-.018.047-.017.047-.017.047-.016.047-.015.047-.015.047-.014.047-.013c.016-.005.031-.01.047-.013l.047-.012.047-.012.047-.011.047-.01.047-.01.047-.01.047-.01.047-.008.047-.008.047-.007.047-.007.047-.007.047-.006.047-.006.048-.005.047-.005.047-.005.047-.003.047-.004.047-.003.047-.003.047-.003c.015 0 .031 0 .047-.002l.047-.001.047-.002h.047l.047-.001h.188l.047.002.047.001.047.002.047.002.047.002.047.003.047.003.047.003.019.001.028.002.047.004.047.004.047.004.047.005.047.005.047.005.047.005.047.005.047.006.047.006.047.006.047.007.047.006.047.007.048.008.047.007.047.008.047.008.047.008.047.008.047.01.047.008.047.01.047.009.047.01.047.01.047.01.047.01.047.011.047.012.047.011.047.012.047.012.047.012.047.012.047.013.047.013.047.013.047.014.047.014.047.014.047.014.047.015.047.014.047.016.047.015.047.016.047.016.047.016.047.017.047.016.047.017.047.018.047.017.047.018.047.019.048.018.047.018.047.02.047.019.047.02.047.019.047.02.047.02.047.02.047.021.047.021.047.021.047.022.047.022.047.021.047.023.047.022.047.023.047.022.047.024.047.023.047.023V15.2l-.047-.01-.047-.012-.047-.01-.047-.012-.047-.01-.047-.011-.047-.01-.047-.011-.047-.01-.047-.01-.047-.011-.047-.01-.047-.01-.047-.01-.047-.01-.047-.01-.047-.009-.047-.01-.047-.008-.047-.01-.047-.009-.048-.009-.047-.009-.047-.009-.047-.009-.047-.008-.047-.01-.047-.008-.047-.008-.047-.008-.047-.009-.047-.008-.047-.008-.047-.008-.047-.008-.047-.008-.047-.007-.047-.008-.047-.007-.047-.008-.047-.007-.047-.007-.047-.007-.047-.007-.047-.007-.047-.007-.047-.007-.047-.006-.047-.007-.047-.006-.047-.007-.047-.006-.047-.006-.047-.006-.047-.005-.047-.006-.047-.006-.047-.005-.047-.006-.047-.005-.047-.005-.047-.005-.047-.005-.048-.005-.047-.004-.047-.005-.047-.004-.047-.004-.047-.004-.047-.004-.047-.004-.047-.004-.047-.003-.047-.004-.047-.003-.047-.003-.047-.003-.047-.003-.047-.002-.047-.003-.047-.002-.024-.001h-.023l-.047-.003-.047-.002-.047-.002-.047-.001-.047-.002-.047-.002-.047-.001-.047-.001-.047-.002h-.047l-.047-.002h-.047l-.047-.002h-.094l-.047-.002h-.424l-.047.001-.047.001h-.047l-.047.002h-.047l-.047.002-.047.001-.047.002-.047.001-.047.002-.047.002-.047.002-.047.001-.047.003-.047.002-.047.002-.047.003-.047.003-.047.002-.047.003-.047.004-.047.003-.047.003-.047.004-.047.004-.047.003-.047.004-.047.004-.047.005-.047.004-.047.005-.047.005-.047.005-.047.005-.047.005-.047.005-.047.006-.047.006-.047.006-.048.006-.047.006-.047.007-.047.006-.047.007-.047.007-.047.007-.047.008-.047.007-.047.008-.047.008-.047.008-.047.009-.047.008-.047.01-.047.008-.047.01-.047.01-.047.009-.047.01-.047.01-.047.01-.047.011-.047.01-.047.012-.047.012-.047.011-.047.012-.047.012-.047.013-.047.013-.047.013-.047.013-.047.014-.047.013-.047.015-.047.014-.047.015-.047.015-.047.016-.047.015-.047.016-.047.017a.459.459 0 0 0-.048.017c-.015.005-.031.01-.047.017l-.047.017-.047.018-.047.018-.047.02-.047.018-.047.02-.047.02-.047.02-.047.02-.047.022-.047.021-.047.023-.047.022-.047.024-.047.023-.047.024-.047.025-.047.025-.047.026-.047.027-.047.027-.047.028-.047.028a1.845 1.845 0 0 0-.094.059l-.047.03-.047.031-.047.
2032c-.032.021-.063.044-.094.067l-.047.034a1.667 1.667 0 0 0-.094.072l-.047.037z" fill="#E10238"></path><path d="M273 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 273 .5z" stroke="#E7E7E4" fill="none"></path><path d="M5.667.5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4a3.5 3.5 0 0 1 3.5-3.5z" fill="#FFF"></path><path d="M23.179 7.25H39.86c6.77 0 12.26 5.51 12.26 12.308 0 6.8-5.49 12.308-12.26 12.308H23.177c-6.77 0-12.261-5.508-12.261-12.308 0-6.798 5.49-12.308 12.262-12.308z" fill="#FFF"></path><path d="M23.179 7.25H39.86c6.77 0 12.26 5.51 12.26 12.308 0 6.8-5.49 12.308-12.26 12.308H23.177c-6.77 0-12.261-5.508-12.261-12.308 0-6.798 5.49-12.308 12.262-12.308z" stroke="#C8C8C8" stroke-width=".5" fill="none"></path><path d="m42.776 18.798 5.547 6.622a10.304 10.304 0 0 0 1.823-5.862 10.3 10.3 0 0 0-2.02-6.138l-5.35 5.378zm-15.719-5.937c4.143 0 7.264 1.058 7.585 4.561l4.36-4.562h8.68a10.255 10.255 0 0 0-7.822-3.627H23.179a10.25 10.25 0 0 0-7.824 3.628h11.702zm-6.824 4.416-1.48 4.083h5.969c1.764 0 2.297-.733 2.692-2.145.391-1.396-.59-1.938-1.796-1.938h-5.385zm18.804 8.7-4.61-5.849c-.852 3.988-3.643 5.848-8.875 5.848H15.127c1.887 2.38 4.795 3.908 8.053 3.908h16.68c3.258 0 6.165-1.528 8.051-3.907h-8.872z" fill="#E2231A"></path><path d="M5.667.5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4a3.5 3.5 0 0 1 3.5-3.5z" stroke="#E7E7E4" fill="none"></path><path d="M206 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 206 .5z" fill="#FFF"></path><path d="M237.281 28.977h-10.338V10.512h10.338v18.465z" fill="#6C6BBD"></path><path d="M227.605 19.743c0-3.746 1.765-7.082 4.513-9.232A11.808 11.808 0 0 0 224.815 8C218.29 8 213 13.257 213 19.743c0 6.485 5.29 11.743 11.815 11.743 2.757 0 5.293-.939 7.303-2.511-2.748-2.15-4.513-5.487-4.513-9.232z" fill="#EB001B"></path><path d="M251.225 19.743c0 6.485-5.29 11.743-11.815 11.743-2.757 0-5.293-.939-7.303-2.511 2.749-2.15 4.513-5.487 4.513-9.232 0-3.746-1.764-7.082-4.513-9.232A11.808 11.808 0 0 1 239.41 8c6.525 0 11.815 5.257 11.815 11.743z" fill="#0099DF"></path><path d="M206 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 206 .5z" stroke="#E7E7E4" fill="none"></path><path d="M139 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 139 .5z" fill="#FFF"></path><path d="M170.281 28.977h-10.338V10.512h10.338v18.465z" fill="#FF5F00"></path><path d="M160.605 19.743c0-3.746 1.765-7.082 4.513-9.232A11.808 11.808 0 0 0 157.815 8C151.29 8 146 13.257 146 19.743c0 6.485 5.29 11.743 11.815 11.743 2.757 0 5.293-.939 7.303-2.511-2.748-2.15-4.513-5.487-4.513-9.232z" fill="#EB001B"></path><path d="M184.225 19.743c0 6.485-5.29 11.743-11.815 11.743-2.757 0-5.293-.939-7.303-2.511 2.749-2.15 4.513-5.487 4.513-9.232 0-3.746-1.764-7.082-4.513-9.232A11.808 11.808 0 0 1 172.41 8c6.525 0 11.815 5.257 11.815 11.743z" fill="#F79E1B"></path><path d="M139 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5h-52a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 139 .5z" stroke="#E7E7E4" fill="none"></path><path d="M72 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5H72a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 72 .5z" fill="#FFF"></path><path d="M94.632 27.255h-3.857l2.412-14.001h3.857l-2.412 14zm13.981-13.659c-1.109-.4-2.28-.602-3.459-.596-3.809 0-6.491 1.906-6.507 4.632-.032 2.01 1.92 3.128 3.38 3.798 1.492.685 1.999 1.133 1.999 1.743-.015.938-1.206 1.37-2.316 1.37-1.54 0-2.365-.222-3.619-.744l-.508-.224-.539 3.143c.904.387 2.571.73 4.301.745 4.047 0 6.682-1.877 6.713-4.781.015-1.594-1.015-2.815-3.237-3.813-1.349-.64-2.176-1.073-2.176-1.728.016-.596.699-1.206 2.222-1.206a6.922 6.922 0 0 1 2.873.536l.349.148.524-3.023zM115.517 13.254h2.983l3.112 14h-3.571s-.35-1.608-.46-2.1h-4.952l-.81 2.1h-4.047l5.729-12.839c.397-.908 1.096-1.161 2.016-1.161zm-.238 5.123s-1.222 3.113-1.54 3.918h3.206c-.158-.7-.889-4.052-.889-4.052l-.269-1.206c-.114.31-.278.738-.389 1.026-.075.195-.125.326-.119.314zM74.063 13.254h6.206c.841.03
21.523.283 1.746 1.177l1.348 6.433.413 1.937 3.777-9.547h4.079L85.569 27.24h-4.078l-3.438-12.166c-1.186-.65-2.54-1.174-4.053-1.537l.063-.283z" fill="#193AC3"></path><path d="M72 .5h52a3.5 3.5 0 0 1 3.5 3.5v32a3.5 3.5 0 0 1-3.5 3.5H72a3.5 3.5 0 0 1-3.5-3.5V4A3.5 3.5 0 0 1 72 .5z" stroke="#E7E7E4" fill="none"></path></svg></div></label>',1))])):zi("v-if",!0),"mobilepaysubscription"===n&&e.showMobilepaySubscription?(Ai(),Si("div",soe,[io(Mi("input",{id:"first-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[16]||(t[16]=function(t){return e.paymentMethod=t}),value:"3",onClick:t[17]||(t[17]=function(){return e.hidePBSfields&&e.hidePBSfields.apply(e,arguments)})},null,512),[[Js,e.paymentMethod]]),t[27]||(t[27]=Vi('<label for="first-payment-method">MobilePay abonnement <div class="kb-personal-donation-step2a__icon-wrapper"><svg viewBox="0 0 94 30" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M11.29 29.99a2.537 2.537 0 0 1-2.345-1.564L.195 7.3a2.533 2.533 0 0 1 1.37-3.31L10.731.194a2.533 2.533 0 0 1 3.31 1.371l8.75 21.126A2.533 2.533 0 0 1 21.421 26l-9.166 3.798a2.522 2.522 0 0 1-.966.193Zm.41-28.626c-.153 0-.305.031-.447.09L2.087 5.25a1.17 1.17 0 0 0-.633 1.528l8.751 21.127c.248.596.931.879 1.528.633l9.166-3.799a1.17 1.17 0 0 0 .632-1.528l-8.75-21.124a1.171 1.171 0 0 0-1.08-.723Z" fill="#5A78FF"></path><path style="mix-blend-mode:multiply;" opacity=".7" d="m14.618 2.958-1.26.522 3.465 8.365 1.26-.522-3.464-8.365Z" fill="url(#b)"></path><path style="mix-blend-mode:multiply;" opacity=".7" d="m20.95 21.808 1.26-.522-3.922-9.468-1.26.522 3.921 9.468Z" fill="url(#c)"></path><path d="M19.358 15.532c-2.622 1.087-4.81 2.585-6.243 4.391L9.42 11a15.603 15.603 0 0 1 6.243-4.391c2.621-1.087 5.27-1.613 7.52-1.307l3.695 8.923a15.594 15.594 0 0 0-7.52 1.307Z" fill="#5A78FF"></path><g style="mix-blend-mode:multiply;" opacity=".4"><path opacity=".9" d="M19.358 15.532c-2.622 1.087-4.81 2.585-6.243 4.391L9.42 11a15.603 15.603 0 0 1 6.243-4.391c2.621-1.087 5.27-1.613 7.52-1.307l3.695 8.923a15.594 15.594 0 0 0-7.52 1.307Z" fill="url(#d)"></path><path opacity=".7" d="M19.358 15.532c-2.622 1.087-4.81 2.585-6.243 4.391L9.42 11a15.603 15.603 0 0 1 6.243-4.391c2.621-1.087 5.27-1.613 7.52-1.307l3.695 8.923a15.594 15.594 0 0 0-7.52 1.307Z" fill="url(#e)"></path></g><path d="M20.562 18.253c-2.837 0-5.435.548-7.448 1.667v-9.023a15.602 15.602 0 0 1 7.448-1.667c2.837 0 5.486.526 7.447 1.67v9.022a15.595 15.595 0 0 0-7.447-1.67Zm14.495.008 2.295-7.257a.24.24 0 0 1 .214-.182h1.152c.103.014.19.084.226.182l1.787 4.579c.035.09.126.1.156 0l1.774-4.579a.283.283 0 0 1 .226-.182h1.152a.24.24 0 0 1 .213.182l2.27 7.257a.174.174 0 0 1-.17.248h-1.369a.2.2 0 0 1-.204-.157l-1.457-4.713c-.022-.091-.126-.091-.156 0l-1.74 4.678a.256.256 0 0 1-.247.192h-.805c-.126 0-.191-.07-.239-.192l-1.774-4.678c-.035-.091-.126-.091-.148 0l-1.49 4.713a.204.204 0 0 1-.214.157h-1.304a.17.17 0 0 1-.148-.248Zm11.9-2.609A3.043 3.043 0 1 1 50 18.635a2.944 2.944 0 0 1-3.043-2.983Zm4.522 0A1.496 1.496 0 1 0 50 17.248a1.535 1.535 0 0 0 1.47-1.596h.009Zm4.243 2.387c-.113-.091-.213-.056-.213.1v.148c0 .114-.09.208-.204.213h-1.061a.222.222 0 0 1-.213-.213V11.03a.222.222 0 0 1 .213-.213h1.117a.213.213 0 0 1 .205.213v2.07c0 .148.1.191.26.078.428-.32.948-.494 1.483-.495 1.548 0 2.735 1.304 2.735 2.982a2.852 2.852 0 0 1-2.783 2.983 2.313 2.313 0 0 1-1.539-.609Zm2.783-2.374a1.496 1.496 0 1 0-2.983 0 1.513 1.513 0 0 0 1.483 1.57 1.535 1.535 0 0 0 1.5-1.583v.013Zm2.474-4.317a.87.87 0 1 1 1.739 0 .87.87 0 0 1-1.74 0Zm.078 6.956v-5.26c0-.115.09-.209.204-.214h1.118a.222.222 0 0 1 .23.213v5.244a.222.222 0 0 1-.213.213h-1.135a.213.213 0 0 1-.204-.213v.017Zm2.795-1.721V11.03c0-.114.09-.208.205-.213h1.117a.222.222 0 0 1 .213.213v5.587c0 .361.157.6.552.6a.213.213 0 0 1 .214.213v.927a.213.213 0 0 1-.214.204c-1.486 0-2.086-.487-2.086-1.978Zm2.718-.896a2.94 2.94 0 0 1 5.878.022c0 .204-.056.374-.26.374H68.3c-.1 0-.134.056-.126.147.097.681.706 1.17 1.392 1.118.412.006.806-.173 1.073-.487a.434.434 0 0 1 .361-.183h1.04c.182 0 .26.126.19.305a2.978 2.978 0 0 1-5.651-1.305l-.01.009Zm4.126-.522c.078 0 .113-.035.1-.126a1.304 1.304 0 0 0-1.304-1.06 1.34 1.34 0 0 0-1.305 1.03c-.021.078 0 .156.092.156h2.417Zm2.691 3.122V11.03c0-.114.09-.208.205-.213h3.56c1.627 0 2.735.948 2.735 2.544 0 1.595-1.256 2.578-2.813 2.578h-1.887a.187.187 0 0 0-.204.213v2.135a.222.222 0 0 1-.213.213h-1.174a.213.213 0 0 1-.209-.213Zm3.687-3.66a1.226 1.226 0 0 0 1.187-1.257 1.16 1.16 0 0 0-1.191-1.196h-1.9c-.135 0-.191.07-.191.204v2.057c0 .135.056.204.19.204l1.905-.013Zm3.361 1.025a2.874 2.874 0 0 1 2.805-2.982c.555.003 1.09.208 1.504.578.1.091.213.078.213-.057v-.148c0-.112.091-.204.204-.204h1.061a.222.222 0 0 1 .213.213v3.73c0 .283.1.41.296.435a.196.196 0 0 1 .191.183v.983a.191.191 0 0 1-.191.19c-.748 0-1.187-.212-1.435-.643-.07-.113-.148-.134-.26-.021a2.496 2.496 0 0 1-1.823.756 2.866 2.866 0 0 1-2.778-3.013Zm4.522 0a1.491 1.491 0 1 0-2.974 0 1.491 1.491 0 1 0 2.974 0Zm2.491 4.84v-.927a.213.213 0 0 1 .213-.204 1.587 1.587 0 0 0 1.626-1.087.626.626 0 0 0-.043-.435l-2.078-4.704a.204.204 0 0 1 .182-.305h1.118c.113 0 .182.092.226.205l1.304 3.009c.091.239.24.226.34 0l1.243-3.018c.043-.113.1-.182.213-.182h1.074a.196.196 0 0 1 .19.269l-2.138 5.06c-.779 1.844-1.605 2.531-3.257 2.531a.222.222 0 0 1-.213-.213Z" fill="#5A78FF"></path></g><defs>
2<linearGradient id="b" x1="16.606" y1="9.583" x2="16.04" y2="2.983" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".302" stop-color="#504678" stop-opacity=".616"></stop><stop offset=".608" stop-color="#504678" stop-opacity=".283"></stop><stop offset=".852" stop-color="#504678" stop-opacity=".076"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="c" x1="18.614" y1="14.345" x2="18.969" y2="21.74" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".302" stop-color="#504678" stop-opacity=".616"></stop><stop offset=".608" stop-color="#504678" stop-opacity=".283"></stop><stop offset=".852" stop-color="#504678" stop-opacity=".076"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="d" x1="11.812" y1="14.973" x2="18.735" y2="10.253" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".179" stop-color="#504678" stop-opacity=".872"></stop><stop offset=".526" stop-color="#504678" stop-opacity=".536"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="e" x1="17.752" y1="10.359" x2="17.445" y2="7.903" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".643" stop-color="#504678" stop-opacity=".332"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><clipPath id="a"><path fill="#fff" d="M0 0h93.478v30H0z"></path></clipPath></defs></svg></div></label>',1))])):zi("v-if",!0),"betalingsservice"===n?(Ai(),Si("div",coe,[io(Mi("input",{id:"second-payment-method",type:"radio",name:"payment-method","onUpdate:modelValue":t[18]||(t[18]=function(t){return e.paymentMethod=t}),value:"4",onClick:t[19]||(t[19]=function(){return e.showPBSfields&&e.showPBSfields.apply(e,arguments)})},null,512),[[Js,e.paymentMethod]]),t[28]||(t[28]=Vi('<label for="second-payment-method">Betalingsservice <div class="kb-personal-donation-step2a__icon-wrapper"><svg viewBox="0 0 144 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g fill="#B50000"><path d="M37.652 7.972a4.577 4.577 0 0 0-2.324-.773H2.742l-1.24 5.785H20.36c-.023-1.191-.49-2.336-1.627-3.245 1.127-.326 2.072-1.207 2.682-2.332a8.87 8.87 0 0 0-.066.947c-.027 1.723.726 2.948 1.812 3.82.22.165 1.19.81 3.099.81h13.15c.065-.477.109-.97.125-1.48.049-1.531-.774-2.68-1.886-3.532h.002ZM29.25.042c-.226.002-2.103.037-3.352.725-1.244.7-2.837 1.96-3.763 3.969.032-1.427-.497-2.86-1.804-3.865-.968-.688-2.516-.84-3.401-.865l-.68.003L4.272.05 3.046 5.775 40.51 5.77 41.762 0 29.25.042ZM0 20s12.528-.048 14.82-.048c1.763 0 4.279-2.33 5.194-4.95l-1.08 4.956h12.522c2.411 0 3.7-.493 3.893-.579 1.92-.928 3.179-2.679 3.78-4.965H1.196L0 20ZM48.487 6.697h2.952c.686 0 1.876.283 1.876 1.615 0 .948-.695 1.655-1.743 1.786v.02c.761.12 1.285.586 1.285 1.362 0 1.493-1.21 2.2-2.733 2.22l-3.028.04 1.391-7.043Zm.628 5.712h.476c.895 0 1.495-.263 1.495-.949 0-.616-.418-.706-1.219-.706h-.429l-.323 1.655Zm.582-2.927h.666c.743 0 1.18-.313 1.18-.797 0-.565-.437-.656-1.103-.656h-.458l-.285 1.453ZM55.428 6.697h4.675l-.257 1.332h-2.923l-.305 1.453h2.77l-.276 1.332H56.35l-.323 1.595h3.037l-.257 1.332H54l1.429-7.044ZM62.502 8.09h-1.656l.285-1.393h5.113L65.96 8.09h-1.657l-1.132 5.65h-1.8l1.132-5.65ZM68.88 6.697h2.229l1.085 7.044h-1.79l-.18-1.505h-2.581l-.79 1.505H64.93l3.952-7.044h-.001Zm.885 1.453h-.02l-1.409 2.755h1.714l-.285-2.755ZM74.491 6.697h1.8l-1.104 5.651h2.78l-.276 1.393h-4.58l1.38-7.044ZM80.015 6.697h1.79l-1.38 7.044h-1.79l1.38-7.044ZM83.813 6.697h2.218l1.362 4.884h.02l.933-4.884h1.677l-1.41 7.044h-2.209l-1.39-4.875h-.02l-.924 4.875h-1.676l1.42-7.044ZM97.096 8.352c-.581-.271-1.152-.383-1.924-.383-1.78 0-2.494 1.332-2.494 2.664 0 1.252.752 1.836 1.656 1.836.228 0 .458-.04.706-.12l.296-1.393h-1.057l.256-1.332h2.79l-.79 3.926c-.666.212-1.743.313-2.314.313-2.143 0-3.37-1.343-3.37-3.28 0-2.34 1.322-4.006 4.408-4.006.809 0 1.495.141 2.218.342l-.38 1.433ZM103.626 8.242c-.343-.172-.736-.294-1.423-.343-.702-.05-1.338.182-1.338.746 0 1 2.581.626 2.581 2.766 0 1.947-1.705 2.452-3.247 2.452-.685 0-1.475-.172-2.056-.364l.407-1.31c.465.221 1.112.344 1.692.344.58 0 1.375-.176 1.375-.902 0-1.131-2.58-.707-2.58-2.694 0-1.817 1.504-2.362 2.961-2.3
262.818 0 1.548.144 1.995.366l-.369 1.3.002.001ZM109.392 7.905a2.3 2.3 0 0 0-1.255-.342c-.657 0-1.381.262-1.403 1.099-.032 1.18 2.339 1.093 2.291 2.94-.028 1.06-.786 2.26-2.457 2.26-.807 0-1.379-.18-1.93-.402l.342-.93c.402.264.964.445 1.452.445 1.055 0 1.52-.666 1.536-1.252.037-1.433-2.341-1.083-2.29-3.04.033-1.282 1.207-2.008 2.351-2.008.577 0 1.142.11 1.665.333l-.302.899v-.002ZM111.818 6.697h3.61l-.198.888h-2.628l-.447 2.059h2.466l-.169.888h-2.495l-.506 2.32h2.79l-.189.889h-3.751l1.517-7.044ZM117.551 6.697h1.304c.934 0 2.486 0 2.471 1.716a1.973 1.973 0 0 1-1.635 1.907c.501.332.635 1.393.764 1.938l.348 1.483h-1.008l-.384-1.847c-.237-1.13-.399-1.282-.894-1.282h-.847l-.646 3.129h-.952l1.48-7.044h-.001Zm.315 3.028h.752c.677 0 1.687-.232 1.696-1.17.006-.737-.382-.968-1.114-.968h-.885l-.447 2.14-.002-.002ZM125.079 13.74h-1.143l-1.015-7.043h.953l.785 6.035h.02l3.403-6.035h1.049l-4.052 7.044ZM130.509 6.697h.962l-1.491 7.044h-.961l1.49-7.044ZM136.962 13.671a3.865 3.865 0 0 1-1.221.192c-1.771 0-3.113-.99-3.095-3.22.015-1.726 1.159-4.066 4.026-4.066.533 0 1.084.111 1.578.323l-.284.868a3.123 3.123 0 0 0-1.284-.302c-2.019 0-3.012 1.574-3.028 3.229-.013 1.543.952 2.28 2.246 2.28.4 0 .82-.08 1.193-.242l-.131.94v-.002ZM140.127 6.697h3.609l-.198.888h-2.627l-.447 2.059h2.466l-.169.888h-2.495l-.506 2.32h2.789l-.188.889h-3.752l1.518-7.044Z"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h143.736v20H0z"></path></clipPath></defs></svg></div></label>',1))])):zi("v-if",!0),e.pbsFieldsVisible&&"betalingsservice"===n?(Ai(),Si("div",uoe,[Mi("div",doe,[Ni(s,{modelValue:e.pbsRegInput,"onUpdate:modelValue":t[20]||(t[20]=function(t){return e.pbsRegInput=t}),fieldName:"pbsreg",label:e.getLabel("personalDonationStep2a_input_pbsreg"),isValidationError:!e.pbsRegInputFilled,errorMessageLabel:e.getLabel("validationPbsreg")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])]),Mi("div",poe,[Ni(s,{modelValue:e.pbsAccnumInput,"onUpdate:modelValue":t[21]||(t[21]=function(t){return e.pbsAccnumInput=t}),fieldName:"pbsaccnum",label:e.getLabel("personalDonationStep2a_input_pbsaccnum"),isValidationError:!e.pbsAccnumInputFilled,errorMessageLabel:e.getLabel("validationPbsaccnum")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])]),Mi("div",foe,[Ni(s,{modelValue:e.cprNumberInput,"onUpdate:modelValue":t[22]||(t[22]=function(t){return e.cprNumberInput=t}),fieldName:"cpr",label:e.getLabel("personalDonationStep2a_input_cpr"),isValidationError:!e.cprNumberInputFilled,errorMessageLabel:e.getLabel("validationCpr")},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])])):zi("v-if",!0)],64)}),128)),e.paymentMethodFilled?zi("v-if",!0):(Ai(),Si("p",moe,fe(e.getLabel("validationPaymentmethod")),1)),Mi("div",goe,[Mi("button",{class:"kb-button kb-button--full-color","data-order":"last",onKeydown:t[23]||(t[23]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),onClick:t[24]||(t[24]=function(){return e.submitDonation&&e.submitDonation.apply(e,arguments)})},["single"===e.donationType?(Ai(),Si("span",hoe,fe(e.getLabel("personalDonationStep2a_choose_continue")),1)):"recurring"===e.donationType?(Ai(),Si("span",boe,fe(e.getLabel("personalDonationStep2a_choose_continue2")),1)):zi("v-if",!0),Mi("span",voe,fe(e.paymentButtonTextAddition),1)],32)])])]),e.isSubmitting?(Ai(),Si("div",yoe,(i=t[29]||(t[29]=[Mi("div",{class:"kb-spinner-container__spinner"},null,-1)]),function(e){if(Array.isArray(e))return Bne(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Bne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bne(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2))}]]);function Roe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Foe={class:"kb-member-list-overlay__content-wrapper",ref:"overlayRef"},Voe={class:"kb-member-list-overlay__wrapper"},zoe={class:"kb-member-list-overlay__title"},Uoe={class:"kb-member-list-overlay__member"},joe=["id","aria-controls"],Hoe={class:"kb-image-module kb-image-module--1-1 kb-member-list-overlay__member-profile-img"},qoe={class:"kb-image-module__image-container"},Goe={class:"kb-image-module__image"},Koe=["src","alt"],Zoe={class:"kb-member-list-overlay__member-name"},Woe={class:"kb-member-overlay__member-roles-wrapper"},$oe=["id","aria-labelledby"],Yoe={class:"kb-member-list-overlay__content-member-details"},Joe={class:"kb-member-list-overlay__content-member-details-profile-text"},Xoe={key:0},Qoe={class:"kb-member-list-overlay__content-member-details-list"},ere=["href"],tre={class:"kb-member-list-overlay__actions-wrapper"},nre={key:0,class:"kb-member-list-overlay__show-more"},ore={key:0,class:"kb-spinner-overlay"};const rre={name:"MemberListOverlayCancerforum",emits:["setTabTargets"],props:{groupId:{type:String,required:!0}},setup:function(e,t){var n=t.emit,o=Af(),r=Kt(null),a=b5(r,n),i=a.setTabTargets,l=a.tabTrap,s=bl(function(){return o.state.forum.is_submitting}),c=bl(function(){var t;return null!==(t=e.groupId)&&void 0!==t?t:o.state.main.page_overlay_content_data.groupId}),u=bl(function(){return o.state.forum.member_list_data}),d=bl(function(){var e,t;return!(null===(e=u.value)||void 0===e||!e.memberList.length)&&(null===(t=u.value)||void 0===t?void 0:t.memberList.length)<o.state.forum.member_list_data.totalHits}),p=Kt(0),f=Kt(10),m=function(){o.dispatch("forum/getMemberListData",{id:c.value,skip:p.value,take:f.value}).then(function(){i()})};return Dr(function(){m()}),{showLoadMoreMembersButton:d,memberListData:u,toggleAccordion:function(e){var t=!("true"!==e.currentTarget.getAttribute("aria-expanded")),n=document.querySelector("#".concat(e.currentTarget.getAttribute("aria-controls")));e.currentTarget.querySelector(".kb-member-list-overlay__member-chevron").classList[t?"remove":"add"]("kb-member-list-overlay__member-chevron--open"),n.classList[t?"remove":"add"]("kb-member-list-overlay__content--open"),e.currentTarget.setAttribute("aria-expanded",t?"false":"true"),n.querySelectorAll("a").forEach(function(e){t?e.setAttribute("tabindex",-1):e.removeAttribute("tabindex")})},overlayRef:r,getLabel:function(e,t){var n=o.getters["labels/getLabel"]({labelCollection:"MemberListOverlayCancerforum",labelKey:e});return t&&t.forEach(function(e,t){n=n.replace("{".concat(t,"}"),e)}),n}
2,loadMore:function(){p.value=f.value+p.value,m()},tabTrap:l,isSubmitting:s,formatNewlines:v5}}},are=rre,ire=(0,Hb.A)(are,[["render",function(e,t,n,o,r,a){var i,l;return Ai(),Si("div",Foe,[Mi("article",{class:Y(["kb-member-list-overlay",{"kb-member-list-overlay--submitting":e.isSubmitting}])},[Mi("div",Voe,[Mi("h2",zoe,fe(e.getLabel("accordionTitle",[null===(i=e.memberListData.totalHits)||void 0===i?void 0:i.toString()])),1),(Ai(!0),Si(gi,null,Yr(e.memberListData.memberList,function(n,o){return Ai(),Si("div",{key:o,class:"kb-member-list-overlay"},[Mi("h3",Uoe,[t[5]||(t[5]=Mi("svg",{viewBox:"0 0 705 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M705 1H2a1 1 0 0 0-1 1v9",stroke:"#BFBFB7"})],-1)),Mi("button",{id:"acc-member".concat(n.id),class:"kb-member-list-overlay__member-button","aria-controls":"acc-content".concat(n.id),"aria-expanded":"false",onClick:t[0]||(t[0]=function(){return e.toggleAccordion&&e.toggleAccordion.apply(e,arguments)}),onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))},[Mi("figure",Hoe,[Mi("div",qoe,[Mi("picture",Goe,[Mi("img",{src:n.memberImgSrc,alt:n.memberImgAlt},null,8,Koe)])])]),Mi("p",Zoe,[Fi(fe(n.memberName)+" ",1),Mi("div",Woe,[(Ai(!0),Si(gi,null,Yr(n.memberRoles,function(e,t){return Ai(),Si("span",{key:t,class:"kb-member-overlay__member-role"},fe(e),1)}),128))])]),t[4]||(t[4]=Mi("div",{class:"kb-member-list-overlay__member-chevron kb-ui-icon kb-ui-icon--ui-chevron-down"},null,-1))],40,joe)]),Mi("div",{class:"kb-member-list-overlay__content",id:"acc-content".concat(n.id),role:"region","aria-labelledby":"acc-member".concat(n.id)},[Mi("article",Yoe,[Mi("p",Joe,[(Ai(!0),Si(gi,null,Yr(e.formatNewlines(n.memberProfileText),function(e,t){return Ai(),Si(gi,{key:t},[t>0?(Ai(),Si("br",Xoe)):zi("v-if",!0),Fi(fe(e),1)],64)}),128))]),Mi("ul",Qoe,[(Ai(!0),Si(gi,null,Yr(n.details,function(e,t){return Ai(),Si("li",{key:t},[Mi("p",null,fe(e.label),1),Mi("p",null,fe(e.detail),1)])}),128))]),Mi("a",{href:n.answerLink,class:"kb-button kb-button--full-color",tabindex:"-1"},fe(e.getLabel("writeMessageButtonText")),9,ere)])],8,$oe)])}),128)),Mi("div",tre,[e.showLoadMoreMembersButton?(Ai(),Si("div",nre,[Mi("button",{class:"kb-member-list-overlay__show-more-button kb-button kb-button--full-color-spot",onClick:t[2]||(t[2]=function(t){return e.loadMore()}),onKeydown:t[3]||(t[3]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"]))},fe(e.getLabel("showMoreButtonText")),33)])):zi("v-if",!0)])]),e.isSubmitting?(Ai(),Si("div",ore,(l=t[6]||(t[6]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return Roe(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return Roe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Roe(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)],512)}]]);var lre={class:"kb-member-list-overlay__content-wrapper"},sre={class:"kb-stafet-donation-flow kb-create-post kb-closed-group-overlay"},cre={class:"kb-stafet-flow-title"},ure={class:"kb-stafet-flow-title__title"},dre={class:"kb-stafet-flow-title__description"},pre={class:"kb-stafet-flow-title__description-text"},fre={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},mre={class:"kb-stafet-step__input-wrapper"},gre={class:"Form__Element__Caption"},hre={"aria-live":"assertive"},bre={key:0,role:"alert",class:"kb-forms Form__Element__ValidationError"},vre={class:"kb-stafet-flow-actions"},yre={class:"kb-stafet-flow-actions__buttons-right-wrapper"},_re=["disabled"];function Are(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return kre(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(kre(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,kre(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,kre(d,"constructor",c),kre(c,"constructor",s),s.displayName="GeneratorFunction",kre(c,r,"GeneratorFunction"),kre(d),kre(d,r,"Generator"),kre(d,o,function(){return this}),kre(d,"toString",function(){return"[object Generator]"}),(Are=function(){return{w:a,m:p}})()}function kre(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}kre=function(e,t,n,o){function a(t,n){kre(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},kre(e,t,n,o)}function xre(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const wre={name:"ClosedGroupOverlay",components:{Editor:SO},props:{groupId:{type:String,required:!0}},setup:function(e){var t,n=Af(),o=bl(function(){var t;return null!==(t=e.groupId)&&void 0!==t?t:n.state.main.page_overlay_content_data.groupId}),r=bl(function(){var e;return null!==(e=n.state.main.page_overlay_content_data.isFrivilligContext)&&void 0!==e&&e}),a=Kt(""),i=Kt(!1),l=bl(function(){var e;return!(null!==(e=a.value)&&void 0!==e&&e.length)}),s=Kt(null),c=function(){return"function"!=typeof s.value.getEditor?(console.error("Unable to get tinyMCE editor in ClosedGroupOverlay"),null):s.value.getEditor()},u=function(){var e,t=(e=Are().m(function e(){var t;return Are().w(function(e){for(;;)switch(e.n){case 0:if(i.value=!0,!l.value){e.n=1;break}return e.a(2);case 1:if(t={content:a.value},!r.value){e.n=3;break}return e.n=2,n.dispatch("frivillige/joinGroup",{reason:t.content,gruppeKode:o.value});case 2:e.n=4;break;case 3:if(!a.value){e.n=4;break}return e.n=4,n.dispatch("forum/submitMemberApplication",{body:t,id:o.value});case 4:window.location.reload();case 5:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){xre(a,o,r,i,l,"next",e)}function l(e){xre(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}(),d=bl(function(){return e=a.value.length,(t=document.createElement("textarea")).innerHTML=e,t.value>2e3;var e,t});return Dr(function(){t=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){t.focus()}},{persistent:!0})}),{tabTrap:function(e){e.shiftKey&&"last"===e.target.dataset.order&&(e.preventDefault(),c()&&c().focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),t.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),t.focus())},editorRef:s,submitMemberApplication:u,applicationContent:a,isInputError:l,getEditor:c,showInputErrors:i,getLabel:function(e){return n.getters["labels/getLabel"]({labelCollection:"ClosedGroupOverlay",labelKey:e})},editorInit:function(){return{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl"}},isDisabled:d}}},Cre=wre,Ere=(0,Hb.A)(Cre,[["render",function(e,t,n,o,r,a){var i=qr("editor");return Ai(),Si("div",lre,[Mi("article",sre,[Mi("section",cre,[Mi("h1",ure,fe(e.getLabel("title")),1),t[3]||(t[3]=Mi("div",{class:"kb-stafet-flow-title__breaker"},[Mi("svg",{role:"presentation",viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",dre,[Mi("p",pre,fe(e.getLabel("description")),1)])]),Mi("section",fre,[Mi("div",mre,[Mi("div",{class:Y(["kb-create-post__texteditor ValidationRequired",e.isInputError&&e.showInputErrors?"kb-create-post__texteditor--error":""])},[Mi("label",gre,fe(e.getLabel("applicationTextLabel")),1),Ni(i,{"api-key":"no-api-key",init:e.editorInit(),ref:"editorRef",modelValue:e.applicationContent,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.applicationContent=t})},null,8,["init","modelValue"]),Mi("div",hre,[e.isInputError&&e.showInputErrors?(Ai(),Si("p",bre,fe(e.getLabel("applicationTextErrorMessage")),1)):zi("v-if",!0)])],2)]),Mi("nav",vre,[Mi("div",yre,[Mi("button",{class:Y(["kb-stafet-flow-actions__button kb-button kb-button--full-color-spot kb-button--full-color-spot",{"kb-button--disabled":e.isDisabled}]),onClick:t[1]||(t[1]=function(){return e.submitMemberApplication&&e.submitMemberApplication.apply(e,arguments)}),"data-order":"last",onKeydown:t[2]||(t[2]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),disabled:e.isDisabled},fe(e.getLabel("requestJoinButtonText")),43,_re)])])])])])}]]);function Sre(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Tre={class:"kb-overlay-styles__content-wrapper"},Ire={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},Bre={class:"kb-overlay-styles__hero"},Ore={class:"kb-overlay-styles__hero-wrapper"},Lre={class:"kb-overlay-styles__hero-title"},Dre={class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},Mre={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},Nre={class:"kb-stafet-flow-actions"},Pre={class:"kb-stafet-flow-actions__buttons-left-wrapper"},Rre=["disabled"],Fre={"aria-live":"assertive"},Vre={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"},zre={key:0,class:"kb-spinner-overlay"};const Ure={name:"UploadNewFileOverlay",components:{AttachmentsEditor:hk},setup:function(){var e=Af(),t=Kt([]),n=bl(function(){return e.state.frivillige.is_submitting}),o=Kt(!1),r=bl(function(){return t.value.length>0});return{getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"UploadNewFileOverlay",labelKey:t})},isSubmitting:n,isSubmissionError:o,isValid:r,filesToUpload:t,submitUploadNewFile:function(){0!==t.value.length&&(o.value=!1,e.dispatch("frivillige/submitUploadNewFile",{files:t.value}).then(function(){e.dispatch("main/closePageOverlay"),e.dispatch("search/refreshSearches")}).catch(function(){o.value=!0}))}}}},jre=Ure,Hre=(0,Hb.A)(jre,[["render",function(e,t,n,o,r,a){var i,l=qr("AttachmentsEditor");return Ai(),Si("div",Tre,[Mi("article",{class:Y(["kb-overlay-styles kb-upload-new-file-overlay",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",Ire,[Mi("div",Bre,[Mi("div",Ore,[Mi("h4",Lre,fe(e.getLabel("title")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",Dre,[Mi("section",Mre,[Ni(l,{files:[],"onUpdate:filesToAdd":t[0]||(t[0]=function(t){return e.filesToUpload=t}),acceptedFileTypes:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.jpg,.jpeg,.png,.webp"}),Mi("nav",Nre,[Mi("div",Pre,[Mi("button",{class:Y(["kb-button kb-button--full-color-spot kb-button--full-color-spot",{"kb-button--disabled":!e.isValid}]),onClick:t[1]||(t[1]=function(){return e.submitUploadNewFile&&e.submitUploadNewFile.apply(e,arguments)}),disabled:!e.isValid},fe(e.getLabel("submitFileButtonText")),11,Rre)])]),Mi("div",Fre,[e.isSubmissionError?(Ai(),Si("p",Vre,fe(e.getLabel("fileUploadError")),1)):zi("v-if",!0)])])])]),e.isSubmitting?(Ai(),Si("div",zre,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return Sre(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Sre(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sre(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],2)])}]]);function qre(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Gre={class:"kb-holdets-lys"},Kre={class:"kb-holdets-lys__header"},Zre={class:"kb-holdets-lys__title"},Wre=["href"],$re={class:"kb-holdets-lys__list-item"},Yre={key:0,class:"kb-holdets-lys__footer"},Jre={key:0,class:"kb-spinner-overlay"};function Xre(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Qre(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Qre(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Qre(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Qre(d,"constructor",c),Qre(c,"constructor",s),s.displayName="GeneratorFunction",Qre(c,r,"GeneratorFunction"),Qre(d),Qre(d,r,"Generator"),Qre(d,o,function(){return this}),Qre(d,"toString",function(){return"[object Generator]"}),(Xre=function(){return{w:a,m:p}})()}function Qre(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Qre=function(e,t,n,o){function a(t,n){Qre(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Qre(e,t,n,o)}function eae(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function tae(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){eae(a,o,r,i,l,"next",e)}function l(e){eae(a,o,r,i,l,"throw",e)}i(void 0)})}}const nae={name:"HoldetsLys",props:{teamId:{type:String,required:!1},lysposeFormUrl:{type:String,required:!1}},components:{DonationCard:Zj},setup:function(e){var t=Af(),n=bl(function(){var n;return null!==(n=e.teamId)&&void 0!==n?n:t.state.main.page_overlay_content_data.teamId}),o=bl(function(){var n;return null!==(n=e.lysposeFormUrl)&&void 0!==n?n:t.state.main.page_overlay_content_data.lysposeFormUrl}),r=bl(function(){return t.state.stafet.teamLights}),a=bl(function(){return t.state.stafet.isSubmitting}),i=Kt(0),l=Kt(50);Dr(tae(Xre().m(function e(){return Xre().w(function(e){for(;;)switch(e.n){case 0:if(!(r.value.length>0)){e.n=1;break}return e.a(2);case 1:t.dispatch("stafet/getTeamLights",{teamId:n.value,skip:i.value,take:l.value});case 2:return e.a(2)}},e)})));var s=bl(function(){return t.state.stafet.teamLightsTotal>r.value.length});return{lysposeFormUrl:o,holdetsLys:r,loadMore:function(){i.value+=l.value,t.dispatch("stafet/getTeamLights",{teamId:n.value,skip:i.value,take:l.value})},showLoadMore:s,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"HoldetsLys",labelKey:e})},isSubmitting:a}}},oae=nae,rae=(0,Hb.A)(oae,[["render",function(e,t,n,o,r,a){var i,l=qr("DonationCard");return Ai(),Si(gi,null,[Mi("article",Gre,[Mi("div",Kre,[Mi("h2",Zre,fe(e.getLabel("title")),1),Mi("a",{href:e.lysposeFormUrl,class:"kb-button"},fe(e.getLabel("donate")),9,Wre)]),(Ai(!0),Si(gi,null,Yr(e.holdetsLys,function(e,t){return Ai(),Si("ul",{class:"kb-holdets-lys__list",key:t},[Mi("li",$re,[Ni(l,{modifierClass:"kb-holdets-lys--card-modifier",result:e},null,8,["result"])])])}),128)),e.showLoadMore?(Ai(),Si("div",Yre,[Mi("button",{class:"kb-button kb-button--full-color",onClick:t[0]||(t[0]=function(){return e.loadMore&&e.loadMore.apply(e,arguments)})},fe(e.getLabel("showMore")),1)])):zi("v-if",!0)]),e.isSubmitting?(Ai(),Si("div",Jre,(i=t[1]||(t[1]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return qre(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return qre(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qre(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],64)}]]);var aae={class:"kb-holdets-deltagere"},iae={class:"kb-holdets-deltagere__header"},lae={class:"kb-holdets-deltagere__title"},sae=["href"],cae={class:"kb-holdets-deltagere__header kb-holdets-deltagere__header--left-align"},uae=["href"],dae=["data-order"],pae={class:"kb-accordion kb-holdets-deltagere--accordion-modifier"},fae={class:"kb-accordion__question"},mae=["data-order","id","aria-controls"],gae=["id","aria-labelledby"],hae={class:"kb-holdets-deltagere__donation-table"},bae={scope:"row"},vae={scope:"row"},yae={scope:"row"},_ae={scope:"row"},Aae={class:"kb-holdets-deltagere__support-links"},kae=["href"],xae=["href"];function wae(e){return e.filter(function(e){return"Holdkaptajn"!==e.role}).filter(function(e){return e.email}).map(function(e){return e.email}).join(",")}const Cae={name:"HoldetsDeltagere",props:{teamId:{type:String,required:!1},addDeltagerFormUrl:{type:String,required:!1},donationFormUrl:{type:String,required:!1},lysposeFormUrl:{type:String,required:!1}},setup:function(e){var t,n,o=Af(),r=new Intl.NumberFormat("da-DK",{maximumFractionDigits:0}),a=bl(function(){var t;return null!==(t=e.teamId)&&void 0!==t?t:o.state.main.page_overlay_content_data.teamId}),i=bl(function(){var t;return null!==(t=e.addDeltagerFormUrl)&&void 0!==t?t:o.state.main.page_overlay_content_data.addDeltagerFormUrl}),l=bl(function(){var t;return null!==(t=e.donationFormUrl)&&void 0!==t?t:o.state.main.page_overlay_content_data.donationFormUrl}),s=bl(function(){var t;return null!==(t=e.lysposeFormUrl)&&void 0!==t?t:o.state.main.page_overlay_content_data.lysposeFormUrl}),c=bl(function(){return o.state.stafet.teamParticipantDetails}),u=bl(function(){return wae(o.state.stafet.teamParticipantDetails)}),d=function(e){return o.getters["labels/getLabel"]({labelCollection:"HoldetsDeltagere",labelKey:e})};return Dr(function(){t=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),n=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){t.focus()}},{persistent:!0}),o.dispatch("stafet/getTeamParticipantDetails",{teamId:a.value})}),{addDeltagerFormUrl:i,getDonateToParticipantUrl:function(e){return"".concat(l.value,"&deltagerId=").concat(e.id)},getLysposeToParticipantUrl:function(e){return"".concat(s.value,"&deltagerId=").concat(e.id)},tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),n.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),n.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),t.focus())},participantList:c,toggleAccordion:function(e){var t=!("true"!==e.currentTarget.getAttribute("aria-expanded")),n=document.querySelector("#".concat(e.currentTarget.getAttribute("aria-controls")));e.currentTarget.querySelector(".kb-accordion__question__chevron").classList[t?"remove":"add"]("kb-accordion__question__chevron--open"),n.classList[t?"remove":"add"]("kb-accordion__answer--open"),e.currentTarget.setAttribute("aria-expanded",t?"false":"true"),n.querySelectorAll("a").forEach(function(e){t?e.setAttribute("tabindex",-1):e.removeAttribute("tabindex")})},supportParticipantLabel:function(e,t){return"".concat(d(e)," ").concat(t.firstName)},getParticipantFullName:function(e){var t;return"".concat(e.firstName," ").concat(null!==(t=e.lastName)&&void 0!==t?t:"")},getLabel:d,participantEmails:u,openHoldkaptajnMailudsendelseOverlay:function(e){o.dispatch("main/closePageOverlay"),o.commit("main/set_page_overlay_content_data",{type:"Holdkaptajn"}),o.dispatch("main/openPageOverlay",{overlayContent:"StafetMailEditorOverlay",returnTarget:e.currentTarget})},formatInt:function(e){var t=Number(e);return Number.isFinite(t)?r.format(t):""}}}},Eae=Cae,Sae=(0,Hb.A)(Eae,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",aae,[Mi("div",iae,[Mi("h2",lae,fe(e.getLabel("title"))+" ("+fe(e.participantList.length)+") ",1),Mi("a",{href:"mailto:?subject=".concat(e.getLabel("sendMailSubject"),"&body=").concat(e.getLabel("sendMailBody")),class:"kb-link"},fe(e.getLabel("invite")),9,sae)]),Mi("div",cae,[e.addDeltagerFormUrl?(Ai(),Si(gi,{key:0},[Mi("a",{href:e.addDeltagerFormUrl,onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",class:"kb-button"},fe(e.getLabel("addParticipant")),41,uae),e.participantEmails.length>0?(Ai(),Si("button",{key:0,class:"kb-button","data-order":e.participantList.length?"":"last",onClick:t[1]||(t[1]=function(t){return e.openHoldkaptajnMailudsendelseOverlay(t)})},fe(e.getLabel("sendMail")),9,dae)):zi("v-if",!0)],64)):zi("v-if",!0)]),Mi("div",pae,[(Ai(!0),Si(gi,null,Yr(e.participantList,function(n,o){return Ai(),Si(gi,{key:o},[Mi("h3",fae,[t[5]||(t[5]=Mi("svg",{viewBox:"0 0 705 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M705 1H2a1 1 0 0 0-1 1v9",stroke:"#BFBFB7"})],-1)),Mi("button",{onKeydown:t[2]||(t[2]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":o+1===e.participantList.length?"last":o,id:"teamacc".concat(o),"aria-controls":"teamanswer".concat(o),"aria-expanded":"false",onClick:t[3]||(t[3]=function(){return e.toggleAccordion&&e.toggleAccordion.apply(e,arguments)})},[Fi(fe(e.getParticipantFullName(n))+" ",1),t[4]||(t[4]=Mi("div",{class:"kb-accordion__question__chevron kb-ui-icon kb-ui-icon--ui-chevron-down"},null,-1))],40,mae)]),Mi("div",{class:"kb-accordion__answer kb-holdets-deltagere--hidden",id:"teamanswer".concat(o),role:"region","aria-labelledby":"teamacc".concat(o)},[Mi("table",hae,[Mi("tr",null,[Mi("th",bae,fe(e.getLabel("totalAmount")),1),Mi("td",null,fe(e.formatInt(n.totalAmountCollected)),1)]),Mi("tr",null,[Mi("th",vae,fe(e.getLabel("participantFee")),1),Mi("td",null,fe(e.formatInt(n.deltagerFeeAmount)),1)]),Mi("tr",null,[Mi("th",yae,fe(e.getLabel("lights")),1),Mi("td",null,fe(e.formatInt(n.lysposerCount)),1)]),Mi("tr",null,[Mi("th",_ae,fe(e.getLabel("donations")),1),Mi("td",null,fe(e.formatInt(n.donationAmount)),1)])]),Mi("div",Aae,[Mi("a",{href:e.getDonateToParticipantUrl(n),class:"kb-button kb-button--full-color"},fe(e.supportParticipantLabel("support",n)),9,kae),Mi("a",{href:e.getLysposeToParticipantUrl(n),class:"kb-button kb-button"},fe(e.supportParticipantLabel("supportWithLight",n)),9,xae)])],8,gae)],64)}),128))])])}]]);function Tae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Iae={class:"kb-holdets-donationer"},Bae={class:"kb-holdets-donationer__header"},Oae={class:"kb-holdets-donationer__title"},Lae=["href"],Dae={class:"kb-holdets-donationer__list-item"},Mae={key:0,class:"kb-holdets-donationer__footer"},Nae=["disabled"],Pae={key:0,class:"kb-spinner-overlay"};function Rae(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Fae(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Fae(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Fae(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Fae(d,"constructor",c),Fae(c,"constructor",s),s.displayName="GeneratorFunction",Fae(c,r,"GeneratorFunction"),Fae(d),Fae(d,r,"Generator"),Fae(d,o,function(){return this}),Fae(d,"toString",function(){return"[object Generator]"}),(Rae=function(){return{w:a,m:p}})()}function Fae(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Fae=function(e,t,n,o){function a(t,n){Fae(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Fae(e,t,n,o)}function Vae(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const zae={name:"HoldetsDonationer",props:{teamId:{type:String,required:!1},donationFormUrl:{type:String,required:!1}},components:{DonationCard:Zj},setup:function(e){var t=Af(),n=bl(function(){var n;return null!==(n=e.teamId)&&void 0!==n?n:t.state.main.page_overlay_content_data.teamId}),o=bl(function(){var n;return null!==(n=e.donationFormUrl)&&void 0!==n?n:t.state.main.page_overlay_content_data.donationFormUrl}),r=bl(function(){return t.getters["stafet/teamDonationsPaginated"]}),a=bl(function(){return t.getters["stafet/teamDonationsPaginatedTotalHits"]}),i=Kt(0),l=Kt(0),s=Kt(50),c=Kt(!1),u=function(){var e,o=(e=Rae().m(function e(){var o,r,a,u;return Rae().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,c.value=!0,e.n=1,t.dispatch("stafet/getTeamDonationsPaginated",{teamId:n.value,offsetDonationer:i.value,offsetAdmissions:l.value,limit:s.value});case 1:o=e.v,r=o.nextOffsetDonationer,a=o.nextOffsetAdmissions,i.value=r,l.value=a,e.n=3;break;case 2:e.p=2,u=e.v,console.error(u);case 3:return e.p=3,c.value=!1,e.f(3);case 4:return e.a(2)}},e,null,[[0,2,3,4]])}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Vae(a,o,r,i,l,"next",e)}function l(e){Vae(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return o.apply(this,arguments)}}();Dr(u);var d=bl(function(){return r.value.length<a.value});return{donationFormUrl:o,listOfDonations:r,loadMore:function(){c.value||u()},showLoadMore:d,isLoadingMore:c,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"HoldetsDonationer",labelKey:e})}}}},Uae=zae,jae=(0,Hb.A)(Uae,[["render",function(e,t,n,o,r,a){var i,l=qr("DonationCard");return Ai(),Si(gi,null,[Mi("article",Iae,[Mi("div",Bae,[Mi("h2",Oae,fe(e.getLabel("title")),1),Mi("a",{href:e.donationFormUrl,class:"kb-button"},fe(e.getLabel("donate")),9,Lae)]),(Ai(!0),Si(gi,null,Yr(e.listOfDonations,function(e,t){return Ai(),Si("ul",{class:"kb-holdets-donationer__list",key:t},[Mi("li",Dae,[Ni(l,{modifierClass:"kb-holdets-donationer--card-modifier",result:e},null,8,["result"])])])}),128)),e.showLoadMore?(Ai(),Si("div",Mae,[Mi("button",{class:"kb-button kb-button--full-color",onClick:t[0]||(t[0]=function(){return e.loadMore&&e.loadMore.apply(e,arguments)}),disabled:e.isLoadingMore},fe(e.isLoadingMore?e.getLabel("loading"):e.getLabel("showMore")),9,Nae)])):zi("v-if",!0)]),e.isLoadingMore?(Ai(),Si("div",Pae,(i=t[1]||(t[1]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return Tae(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Tae(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tae(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],64)}]]);var Hae={class:"kb-tilmeld-hold-kvittering"},qae={class:"kb-tilmeld-hold-kvittering__hero"},Gae={class:"kb-tilmeld-hold-kvittering__hero__title-wrapper"},Kae={class:"kb-tilmeld-hold-kvittering__hero__title-wrapper__title"},Zae={class:"kb-tilmeld-hold-kvittering__success-text"},Wae={key:0,class:"kb-tilmeld-hold-kvittering__content-container"},$ae={class:"kb-tilmeld-hold-kvittering__sub-header"},Yae={class:"kb-tilmeld-hold-kvittering__button-wrapper"},Jae=["href"],Xae=["href"];const Qae={name:"TilmeldHoldKvittering",props:{hasProfile:{type:Boolean,required:!1}},setup:function(){var e,t,n,o=Af(),r=(null===(e=window)||void 0===e||null===(e=e.dataLayer)||void 0===e||e.find(function(e){return e["gtm.start"]}),o.state.main.page_overlay_content_data.loginUrl),a=o.state.main.page_overlay_content_data.createProfileUrl,i=o.state.main.page_overlay_content_data.hasProfile;return Dr(function(){t=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),n=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){t.focus()}},{persistent:!0});var e=new URLSearchParams(document.location.search).get("orderId");e&&o.dispatch("main/trackPurchaseData",{orderId:e})}),{loginUrl:r,createProfileUrl:a,hasProfile:i,tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),n.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),n.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),t.focus())},getLabel:function(e){return o.getters["labels/getLabel"]({labelCollection:"TilmeldHoldKvittering",labelKey:e})}}}},eie=Qae,tie=(0,Hb.A)(eie,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",Hae,[Mi("section",qae,[Mi("div",Gae,[t[2]||(t[2]=Mi("div",{class:"kb-tilmeld-hold-kvittering__hero__hero-title-circle"},[Mi("div",{class:"kb-tilmeld-hold-kvittering__hero__hero-title-icon"},[Mi("svg",{viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M1.7998 12L8.6998 19.2L20.1998 0.799988",stroke:"white","stroke-width":"2.3","stroke-linejoin":"round"})])])],-1)),Mi("h2",Kae,fe(e.getLabel("title")),1)]),t[3]||(t[3]=Mi("div",{class:"kb-tilmeld-hold-kvittering__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",Zae,fe(e.getLabel("text")),1)]),t[4]||(t[4]=Mi("div",{class:"kb-tilmeld-hold-kvittering__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),e.hasProfile?zi("v-if",!0):(Ai(),Si("div",Wae,[Mi("h3",$ae,fe(e.getLabel("loginMotivationTitle")),1),Mi("p",null,fe(e.getLabel("loginMotivation")),1),Mi("div",Yae,[Mi("a",{href:e.loginUrl,onKeydown:t[0]||(t[0]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"first",class:"kb-button kb-button--full-color-spot kb-tilmeld-hold-kvittering__kb-button--full-color-spot"},fe(e.getLabel("loginButton")),41,Jae),Mi("a",{href:e.createProfileUrl,"data-order":"last",onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("signupButton")),41,Xae)])]))])}]]);var nie={class:"kb-hold-oprettelse-kvittering"},oie={class:"kb-hold-oprettelse-kvittering__hero"},rie={class:"kb-hold-oprettelse-kvittering__hero__title-wrapper"},aie={class:"kb-hold-oprettelse-kvittering__hero__title-wrapper__title"},iie={class:"kb-hold-oprettelse-kvittering__success-text"},lie={key:0,class:"kb-hold-oprettelse-kvittering__content-container"},sie={class:"kb-hold-oprettelse-kvittering__sub-header"},cie={class:"kb-hold-oprettelse-kvittering__button-wrapper"};const uie={name:"HoldOprettelseKvittering",props:{teamId:{type:String,required:!1}},setup:function(e){var t,n=Af(),o=new URLSearchParams(document.location.search).get("previousHoldkode"),r=bl(function(){return o?wae(n.state.stafet.teamParticipantDetails):""}),a=!(null===(t=window)||void 0===t||null===(t=t.dataLayer)||void 0===t||!t.find(function(e){return e["gtm.start"]}));return Dr(function(){var e;n.dispatch("stafet/getTeamParticipantDetails",{teamId:o});var t=null!==(e=document.querySelector('.kb-hold-oprettelse-kvittering [data-order="first"]'))&&void 0!==e?e:document.querySelector(".kb-page-overlay__close");if(_C({opening:function(){t.focus()}},{persistent:!0}
2),a){var r=new URLSearchParams(document.location.search).get("holdKode");window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null});var i={event:"hold_oprettelse",holdKode:r};dataLayer.push(i)}}),{listOfRecipients:r,openGenoprettelseMailudsendelseOverlay:function(e){n.dispatch("main/closePageOverlay"),n.commit("main/set_page_overlay_content_data",{type:"Genoprettelse"}),n.dispatch("main/openPageOverlay",{overlayContent:"StafetMailEditorOverlay",returnTarget:e.currentTarget})},getLabel:function(e){return n.getters["labels/getLabel"]({labelCollection:"HoldOprettelseKvittering",labelKey:e})}}}},die=uie,pie=(0,Hb.A)(die,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",nie,[Mi("section",oie,[Mi("div",rie,[t[1]||(t[1]=Mi("div",{class:"kb-hold-oprettelse-kvittering__hero__hero-title-circle"},[Mi("div",{class:"kb-hold-oprettelse-kvittering__hero__hero-title-icon"},[Mi("svg",{viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M1.7998 12L8.6998 19.2L20.1998 0.799988",stroke:"white","stroke-width":"2.3","stroke-linejoin":"round"})])])],-1)),Mi("h2",aie,fe(e.getLabel("title")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-hold-oprettelse-kvittering__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",iie,fe(e.getLabel("text")),1)]),t[3]||(t[3]=Mi("div",{class:"kb-hold-oprettelse-kvittering__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),e.listOfRecipients?(Ai(),Si("div",lie,[Mi("h3",sie,fe(e.getLabel("inviteMotivationTitle")),1),Mi("p",null,fe(e.getLabel("inviteMotivation")),1),Mi("div",cie,[Mi("button",{class:"kb-button kb-button--full-color-spot kb-hold-oprettelse-kvittering__kb-button--full-color-spot",onClick:t[0]||(t[0]=function(t){return e.openGenoprettelseMailudsendelseOverlay(t)})},fe(e.getLabel("inviteButton")),1)])])):zi("v-if",!0)])}]]);var fie={class:"kb-hold-rediger-kvittering"},mie={class:"kb-hold-oprettelse-kvittering__hero"},gie={class:"kb-hold-oprettelse-kvittering__hero__title-wrapper"},hie={class:"kb-hold-oprettelse-kvittering__hero__title-wrapper__title"},bie={class:"kb-hold-oprettelse-kvittering__success-text"};const vie={name:"HoldRedigerKvittering",setup:function(){var e=Af();return{getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"HoldRedigerKvittering",labelKey:t})}}}},yie=vie,_ie=(0,Hb.A)(yie,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",fie,[Mi("section",mie,[Mi("div",gie,[t[0]||(t[0]=Mi("div",{class:"kb-hold-oprettelse-kvittering__hero__hero-title-circle"},[Mi("div",{class:"kb-hold-oprettelse-kvittering__hero__hero-title-icon"},[Mi("svg",{viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M1.7998 12L8.6998 19.2L20.1998 0.799988",stroke:"white","stroke-width":"2.3","stroke-linejoin":"round"})])])],-1)),Mi("h2",hie,fe(e.getLabel("title")),1)]),t[1]||(t[1]=Mi("div",{class:"kb-hold-oprettelse-kvittering__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",bie,fe(e.getLabel("text")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-hold-oprettelse-kvittering__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1))])}]]);function Aie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var kie={key:0,class:"kb-spinner-overlay"},xie={class:"kb-holdets-round-counter-overlay"},wie={class:"kb-holdets-round-counter-overlay__hero"},Cie={class:"kb-holdets-round-counter-overlay__hero__title"},Eie={key:0,class:"kb-holdets-round-counter-overlay__hero__global-counters"},Sie={class:"kb-holdets-round-counter-overlay__hero__global-counters__label"},Tie={class:"kb-holdets-round-counter-overlay__hero__global-counters__wrapper"},Iie={key:1},Bie={key:0,class:"kb-holdets-round-counter-overlay__participants"};function Oie(e){return function(e){if(Array.isArray(e))return Lie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Lie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lie(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Die={class:"kb-stafet-round-counter kb-optimizely-forms"},Mie={class:"kb-stafet-round-counter__content-wrapper"},Nie={class:"kb-stafet-round-counter__content-wrapper-left"},Pie={class:"kb-stafet-round-counter__title"}
2,Rie={class:"kb-stafet-round-counter__round-length-meters"},Fie={class:"kb-stafet-round-counter__controls-wrapper"},Vie={class:"kb-selector kb-amount-selector"},zie={class:"kb-selector__wrapper"},Uie=["id","value"],jie=["disabled"],Hie={class:"kb-stafet-round-counter__content-wrapper-right"},qie={class:"kb-stafet-round-counter__round-details-list"},Gie={class:"kb-stafet-round-counter__round-details-list-item"},Kie={class:"kb-stafet-round-counter__title kb-stafet-round-counter__round-details-title"},Zie={class:"kb-stafet-round-counter__round-details-list-item-detail"},Wie={class:"kb-stafet-round-counter__round-details-list-item"},$ie={class:"kb-stafet-round-counter__title kb-stafet-round-counter__round-details-list-item-title"},Yie={class:"kb-stafet-round-counter__round-details-list-item-detail"};const Jie={name:"StafetRoundCounter",components:{AmountSelector:OA},props:{rute:{type:Object,required:!0},deltagerId:{type:String,required:!1},maxRegistrationCount:{type:Number,required:!1,default:100}},setup:function(e){var t=Af(),n=new Intl.NumberFormat("da-DK",{maximumFractionDigits:0}),o=new Intl.NumberFormat("da-DK",{minimumFractionDigits:1,maximumFractionDigits:1}),r=bl(function(){var t,o=Number(null===(t=e.rute)||void 0===t?void 0:t.meters);return Number.isFinite(o)?n.format(o):""}),a=bl(function(){var t,n=Number(null===(t=e.rute)||void 0===t?void 0:t.detailsKm);return Number.isFinite(n)?o.format(n):""}),i=bl(function(){var t,o=Number(null===(t=e.rute)||void 0===t?void 0:t.detailsRounds);return Number.isFinite(o)?n.format(o):""}),l=Kt(0),s=bl(function(){var n,o=e.deltagerId,r=e.rute;return{count:o?t.getters["stafetRoundCounter/getDeltagerRuteAmount"]({deltagerId:o,ruteId:r.id}):null!==(n=t.state.stafetRoundCounter.ruteUpdates[r.id])&&void 0!==n?n:0,key:l.value}}),c=bl(function(){return t.getters["stafetRoundCounter/shouldDisableApplyButton"]({deltagerId:e.deltagerId,ruteId:e.rute.id})});return{amount:s,shouldDisableApplyButton:c,handleSetRoundCount:function(n){var o=parseInt(n.target.value);isNaN(o)?o=0:o>e.maxRegistrationCount&&(o=e.maxRegistrationCount),e.deltagerId?t.commit("stafetRoundCounter/set_deltager_counter",{deltagerId:e.deltagerId,ruteId:e.rute.id,count:o}):t.commit("stafetRoundCounter/set_rute_counter",{ruteId:e.rute.id,count:o}),l.value++},handleAddOneRound:function(){s.value.count>=e.maxRegistrationCount||(e.deltagerId?t.commit("stafetRoundCounter/increment_deltager_counter",{deltagerId:e.deltagerId,ruteId:e.rute.id}):t.commit("stafetRoundCounter/increment_rute_counter",e.rute.id))},handleRemoveOneRound:function(){e.deltagerId?t.commit("stafetRoundCounter/decrement_deltager_counter",{deltagerId:e.deltagerId,ruteId:e.rute.id}):t.commit("stafetRoundCounter/decrement_rute_counter",e.rute.id)},handleSubmit:function(){t.dispatch("stafetRoundCounter/stafetRoundCounterSubmit",{deltagerId:e.deltagerId,ruteId:e.rute.id})},metersFormatted:r,detailsKmFormatted:a,detailsRoundsFormatted:i,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"roundCounter",labelKey:e})}}}},Xie=Jie,Qie=(0,Hb.A)(Xie,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",Die,[Mi("div",Mie,[Mi("div",Nie,[Mi("h2",Pie,[Fi(fe(e.getLabel("rounds-title"))+" "+fe(e.rute.ruteName)+" ",1),Mi("span",Rie,fe("(".concat(e.metersFormatted," m)")),1)]),Mi("div",Fie,[Mi("div",Vie,[Mi("div",zie,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.handleRemoveOneRound&&e.handleRemoveOneRound.apply(e,arguments)}),class:"kb-stafet-round-counter__controls-wrapper-input-button kb-stafet-round-counter__controls-wrapper-input-button--left"},Oie(t[4]||(t[4]=[Vi('<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M0 9.5v1h20v-1H0Z" fill="#3C3C3C"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h20v20H0z"></path></clipPath></defs></svg>',1)]))),Mi("input",{onInput:t[1]||(t[1]=function(){return e.handleSetRoundCount&&e.handleSetRoundCount.apply(e,arguments)}),type:"number",id:e.rute.id,value:e.amount.count,required:"required"},null,40,Uie),Mi("button",{onClick:t[2]||(t[2]=function(){return e.handleAddOneRound&&e.handleAddOneRound.apply(e,arguments)}),class:"kb-stafet-round-counter__controls-wrapper-input-button"}
2,Oie(t[5]||(t[5]=[Vi('<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M9.5 9.5H0v1h9.5V20h1v-9.5H20v-1h-9.5V0h-1v9.5Z" fill="#3C3C3C"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h20v20H0z"></path></clipPath></defs></svg>',1)])))])]),Mi("button",{class:"kb-button kb-button--full-color kb-stafet-round-counter__add-button",disabled:e.shouldDisableApplyButton,onClick:t[3]||(t[3]=function(){return e.handleSubmit&&e.handleSubmit.apply(e,arguments)})},fe(e.getLabel("rounds-add-button-text")),9,jie)])]),Mi("div",Hie,[Mi("ul",qie,[Mi("li",Gie,[Mi("h3",Kie,fe(e.getLabel("details-title-km")),1),Mi("p",Zie,fe("".concat(e.detailsKmFormatted," ").concat(e.getLabel("details-suffix-km"))),1)]),Mi("li",Wie,[Mi("h3",$ie,fe(e.getLabel("details-title-rounds")),1),Mi("p",Yie,fe("".concat(e.detailsRoundsFormatted," ").concat(e.getLabel("details-suffix-rounds"))),1)])])])])])}]]);var ele={class:"kb-stafet-round-counter-accordion__wrapper"},tle={class:"kb-stafet-round-counter-accordion__title"},nle={class:"kb-stafet-round-counter-accordion__participant"},ole=["id","aria-controls"],rle={class:"kb-stafet-round-counter-accordion__participant-name"},ale={class:"kb-stafet-round-counter-accordion__participant-role"},ile=["id","aria-labelledby"];const lle={name:"StafetRoundCounterAccordion",components:{StafetRoundCounter:Qie},props:{participantData:{type:Object,required:!0},maxRegistrationCount:{type:Number,required:!1}},setup:function(){var e=Af();return{toggleAccordion:function(e){var t=!("true"!==e.currentTarget.getAttribute("aria-expanded")),n=document.querySelector("#".concat(e.currentTarget.getAttribute("aria-controls")));e.currentTarget.querySelector(".kb-stafet-round-counter-accordion__participant-chevron").classList[t?"remove":"add"]("kb-stafet-round-counter-accordion__participant-chevron--open"),n.classList[t?"remove":"add"]("kb-stafet-round-counter-accordion__content--open"),e.currentTarget.setAttribute("aria-expanded",t?"false":"true"),n.querySelectorAll("a").forEach(function(e){t?e.setAttribute("tabindex",-1):e.removeAttribute("tabindex")})},getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"roundCounterAccordion",labelKey:t})}}}},sle=lle,cle=(0,Hb.A)(sle,[["render",function(e,t,n,o,r,a){var i=qr("StafetRoundCounter");return Ai(),Si("div",ele,[Mi("h2",tle,fe(e.getLabel("accordionTitle")),1),(Ai(!0),Si(gi,null,Yr(e.participantData,function(n,o){return Ai(),Si("div",{key:o,class:"kb-stafet-round-counter-accordion"},[Mi("h3",nle,[t[2]||(t[2]=Mi("svg",{viewBox:"0 0 705 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M705 1H2a1 1 0 0 0-1 1v9",stroke:"#BFBFB7"})],-1)),Mi("button",{id:"acc-participant".concat(n.id),"aria-controls":"acc-content".concat(n.id),"aria-expanded":"false",onClick:t[0]||(t[0]=function(){return e.toggleAccordion&&e.toggleAccordion.apply(e,arguments)})},[Mi("p",rle,[Fi(fe(n.participantName)+" ",1),Mi("span",ale,fe(n.participantRole),1)]),t[1]||(t[1]=Mi("div",{class:"kb-stafet-round-counter-accordion__participant-chevron kb-ui-icon kb-ui-icon--ui-chevron-down"},null,-1))],8,ole)]),Mi("div",{class:"kb-stafet-round-counter-accordion__content",id:"acc-content".concat(n.id),role:"region","aria-labelledby":"acc-participant".concat(n.id)},[(Ai(!0),Si(gi,null,Yr(n.ruter,function(t){return Ai(),Ti(i,{rute:t,deltagerId:n.id,maxRegistrationCount:e.maxRegistrationCount},null,8,["rute","deltagerId","maxRegistrationCount"])}),256))],8,ile)])}),128))])}]]),ule={name:"HoldetsRoundCounterOverlay",components:{StafetRoundCounter:Qie,StafetRoundCounterAccordion:cle},setup:function(){var e=Af(),t=bl(function(){return e.state.stafetRoundCounter.isSubmitting}),n=bl(function(){return e.state.main.page_overlay_content_data.teamId}),o=bl(function(){return e.state.stafetRoundCounter.ruter}),r=bl(function(){return e.state.stafetRoundCounter.deltagere}),a=bl(function(){return e.state.main.page_overlay_content_data.maxRegistrationCount});return Dr(function(){e.commit("stafetRoundCounter/set_team_id",n.value),e.dispatch("stafetRoundCounter/getStafetRoundCounter")}),{ruter:o,deltagere:r,isSubmitting:t,maxRegistrationCount:a,getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"HoldetsRoundCounterOverlay",labelKey:t})}}}},dle=ule,ple=(0,Hb.A)(dle,[["render",function(e,t,n,o,r,a){var i,l=qr("StafetRoundCounter"),s=qr("StafetRoundCounterAccordion");return Ai(),Si(gi,null,[e.isSubmitting?(Ai(),Si("div",kie,(i=t[0]||(t[0]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return Aie(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Aie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Aie(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0),Mi("article",xie,[Mi("section",wie,[Mi("h2",Cie,fe(e.getLabel("title")),1),e.ruter.length?(Ai(),Si("div",Eie,[Mi("h3",Sie,fe(e.getLabel("globalRoundCounterLabel")),1),Mi("div",Tie,[(Ai(!0),Si(gi,null,Yr(e.ruter,function(t,n){return Ai(),Ti(l,{key:n,rute:t,maxRegistrationCount:e.maxRegistrationCount},null,8,["rute","maxRegistrationCount"])}),128))])])):(Ai(),Si("div",Iie,fe(e.getLabel("no-routes-text")),1))]),t[1]||(t[1]=Mi("div",{class:"kb-holdets-round-counter-overlay__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),e.ruter.length?(Ai(),Si("div",Bie,[Ni(s,{participantData:e.deltagere,maxRegistrationCount:e.maxRegistrationCount}
2,null,8,["participantData","maxRegistrationCount"])])):zi("v-if",!0)])],64)}]]);var fle={class:"kb-changes-saved","aria-live":"polite"},mle={class:"kb-changes-saved__hero"},gle={class:"kb-changes-saved__hero__title-wrapper"},hle={class:"kb-changes-saved__hero__title-wrapper__title"},ble={class:"kb-changes-saved__content-container"},vle=["innerHTML"];const yle={name:"ProfileDeleted",setup:function(){var e,t,n=Af();return Dr(function(){e=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),t=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){e.focus()}},{persistent:!0})}),{cancelAction:function(){n.dispatch("main/closePageOverlay")},tabTrap:function(n){n.shiftKey&&"first"===n.target.dataset.order&&(n.preventDefault(),t.focus()),n.shiftKey||"first"!==n.target.dataset.order||(n.preventDefault(),t.focus()),n.shiftKey||n.target.dataset.order||(n.preventDefault(),e.focus())},getLabel:function(e){return n.getters["labels/getLabel"]({labelCollection:"ProfileDeleted",labelKey:e})}}}},_le=yle,Ale=(0,Hb.A)(_le,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",fle,[Mi("section",mle,[Mi("div",gle,[Mi("h2",hle,fe(e.getLabel("title")),1)])]),t[2]||(t[2]=Mi("div",{class:"kb-changes-saved__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",ble,[Mi("p",{innerHTML:e.getLabel("text")},null,8,vle),Mi("button",{onClick:t[0]||(t[0]=function(){return e.cancelAction&&e.cancelAction.apply(e,arguments)}),"data-order":"first",onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),class:"kb-button"},fe(e.getLabel("cancelButton")),33)])])}]]);var kle={class:"kb-tilmeld-profil-kvittering"},xle={class:"kb-tilmeld-profil-kvittering__hero"},wle={class:"kb-tilmeld-profil-kvittering__hero__title-wrapper"},Cle={class:"kb-tilmeld-profil-kvittering__hero__title-wrapper__title"},Ele={class:"kb-tilmeld-profil-kvittering__success-text"};const Sle={name:"TilmeldProfilKvittering",setup:function(){var e,t,n,o=Af(),r=!(null===(e=window)||void 0===e||null===(e=e.dataLayer)||void 0===e||!e.find(function(e){return e["gtm.start"]}));return Dr(function(){t=document.querySelector('.kb-button[data-order="first"]'),document.querySelector('.kb-button[data-order="last"]'),n=document.querySelector(".kb-page-overlay__close"),_C({opening:function(){t.focus()}},{persistent:!0}),r&&(window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null}),dataLayer.push({event:"opret_sfl_profil"}))}),{tabTrap:function(e){e.shiftKey&&"first"===e.target.dataset.order&&(e.preventDefault(),n.focus()),e.shiftKey||"last"!==e.target.dataset.order||(e.preventDefault(),n.focus()),e.shiftKey||e.target.dataset.order||(e.preventDefault(),t.focus())},getLabel:function(e){return o.getters["labels/getLabel"]({labelCollection:"TilmeldProfilKvittering",labelKey:e})}}}},Tle=Sle,Ile=(0,Hb.A)(Tle,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",kle,[Mi("section",xle,[Mi("div",wle,[t[0]||(t[0]=Mi("div",{class:"kb-tilmeld-profil-kvittering__hero__hero-title-circle"},[Mi("div",{class:"kb-tilmeld-profil-kvittering__hero__hero-title-icon"},[Mi("svg",{viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M1.7998 12L8.6998 19.2L20.1998 0.799988",stroke:"white","stroke-width":"2.3","stroke-linejoin":"round"})])])],-1)),Mi("h2",Cle,fe(e.getLabel("title")),1)]),t[1]||(t[1]=Mi("div",{class:"kb-tilmeld-profil-kvittering__breaker"},[Mi("svg",{viewBox:"0 0 81 11",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("p",Ele,fe(e.getLabel("text")),1)]),t[2]||(t[2]=Mi("div",{class:"kb-tilmeld-profil-kvittering__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),t[3]||(t[3]=Mi("div",{class:"kb-tilmeld-profil-kvittering__content-container"},null,-1))])}]]);var Ble={class:"kb-calendar-overlay"},Ole={class:"kb-calendar-overlay__hero"},Lle={class:"kb-calendar-overlay__hero__title-wrapper"},Dle={class:"kb-calendar-overlay__hero__title-wrapper__title"},Mle={class:"kb-calendar-overlay__body"},Nle={class:"kb-calendar-overlay__list"},Ple={key:0,class:"kb-calendar-overlay__actions"},Rle=["href"],Fle={class:"kb-button kb-button--full-color"};const Vle={name:"CalendarOverlay",components:{ActivityCard:fA},props:{groupId:{type:String,required:!0},skip:{type:Number,required:!0,default:0},take:{type:Number,required:!0,default:10},createEventUrl:{type:String,required:!0},allowedToEdit:{type:Boolean,required:!0}},setup:function(e){var t=Af(),n="calendarEvents",o=bl(function(){return t.state.main.page_overlay_content_data.groupId}),r=bl(function(){return t.state.main.page_overlay_content_data.skip}),a=bl(function(){return t.state.main.page_overlay_content_data.take}),i=bl(function(){return t.state.main.page_overlay_content_data.createEventUrl}),l=bl(function(){return t.state.main.page_overlay_content_data.allowedToEdit}),s="api/frivillig/[pageId]/groups/[groupId]/events".replace("[pageId]",t.state.main.page_id).replace("[groupId]",o.value),
2c=bl(function(){var e;return xm(null!==(e=t.state.search.results[n])&&void 0!==e?e:[])});return Dr(function(){t.commit("search/set_replaceQueryInUrl",!1),t.dispatch("search/initSearchScope",{guid:n,firstPageSize:a.value,showMorePageSize:a.value,url:s}),t.dispatch("search/performSearch",{guid:n,query:"",skip:r.value,take:a.value})}),{activities:c,allowedToEdit:l,createEventUrl:i,deleteEvent:function(e,n){t.commit("main/set_page_overlay_content_data",{callback:function(){t.dispatch("frivillige/deleteEvent",{pageId:t.state.main.page_id,eventId:n}),t.dispatch("main/closePageOverlay")}}),t.dispatch("main/openPageOverlay",{overlayContent:"DeletePostOverlay",returnTarget:e.currentTarget})},getLabel:function(e){return dA({labelKey:e,labelCollection:"CalendarOverlay"})}}}},zle=Vle,Ule=(0,Hb.A)(zle,[["render",function(e,t,n,o,r,a){var i=qr("ActivityCard");return Ai(),Si("article",Ble,[Mi("section",Ole,[Mi("div",Lle,[Mi("h2",Dle,fe(e.getLabel("title")),1)])]),t[0]||(t[0]=Mi("div",{class:"kb-calendar-overlay__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",Mle,[Mi("ul",Nle,[(Ai(!0),Si(gi,null,Yr(e.activities,function(t,n){return Ai(),Si("li",{class:"kb-calendar-overlay__list__item",key:n},[e.allowedToEdit?(Ai(),Ti(i,{key:1,result:t,deleteCallback:e.deleteEvent,hideStatus:!0},null,8,["result","deleteCallback"])):(Ai(),Ti(i,{key:0,result:t,hideStatus:!0,hideEdit:!0},null,8,["result"]))])}),128))]),e.allowedToEdit?(Ai(),Si("div",Ple,[Mi("a",{href:e.createEventUrl},[Mi("button",Fle,fe(e.getLabel("createButtonText")),1)],8,Rle)])):zi("v-if",!0)])])}]]);function jle(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Hle={class:"kb-overlay-styles__content-wrapper"},qle={class:"kb-personal-fundraising-mobilepay-overlay kb-optimizely-forms kb-fundraise-form"},Gle={class:"kb-personal-fundraising-mobilepay-overlay__header"},Kle={class:"kb-stafet-step__step-section-title kb-personal-fundraising-mobilepay-overlay__title"},Zle={class:"kb-stafet-step kb-stafet-donation-flow__step"},Wle={key:0,class:"kb-stafet-step__texts-wrapper"},$le={class:"kb-stafet-step__texts-description"},Yle={key:1,class:"kb-personal-fundraising-mobilepay-overlay__amount"},Jle={class:"kb-fundraise-form__header"},Xle={class:"kb-fundraise-form__header--span-required"},Qle={key:2,class:"kb-personal-fundraising-mobilepay-overlay__identity"},ese={class:"kb-fundraise-form__donation-title"},tse={class:"kb-fundraise-form__radio"},nse={class:"kb-fundraise-form__radio__input"},ose={class:"kb-fundraise-form__radio__input"},rse={class:"kb-personal-fundraising-mobilepay-overlay__form-fields"},ase={key:1,class:"kb-sign-up-form__kb-form__checkbox-container"},ise={for:"mobilepay-tax-deduction",class:"kb-sign-up-form__kb-form__radio-label"},lse={key:3,class:"kb-personal-fundraising-mobilepay-overlay__submit-error",role:"alert"},sse=["disabled"],cse={key:0,class:"kb-spinner-overlay"},use=["for"],dse={key:0,class:"kb-forms Form__Element__ValidationError"};function pse(e){return pse="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pse(e)}function fse(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function mse(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fse(Object(n),!0).forEach(function(t){gse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fse(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gse(e,t,n){return(t=function(e){var t=function(e){if("object"!=pse(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pse(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pse(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hse=wA("FormInputRichText",{});hse.components.Editor=SO;var bse=hse.setup;hse.setup=function(e,t){var n=t.emit,o=bse(e),r=Kt(null);return mse(mse({},o),{},{rootRef:r,editorInit:function(){return{placeholder:e.placeholder,plugins:"emoticons autoresize autolink",toolbar:"emoticons",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",min_height:200,autoresize_bottom_margin:30,content_style:(t=r.value,o=null!=t?t:document.body,a=getComputedStyle(o),i=a.fontFamily,l=a.fontSize,s=getComputedStyle(document.documentElement).getPropertyValue("--kb-input-placeholder").trim(),["body { font-family: ".concat(i,"; font-size: ").concat(l,"; }"),".mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before { font-family: ".concat(i,"; font-size: ").concat(l,"; color: ").concat(s,"; }")].join(" ")),formats:{bold:{},italic:{},underline:{}},setup:function(t){t.on("init",function(){t.setContent(e.modelValue||""),function(e){var t=e.getDoc();
2null!=t&&t.fonts&&document.fonts&&document.fonts.forEach(function(e){try{t.fonts.add(e)}catch(e){}})}(t)}),t.on("change keyup",function(){n("update:modelValue",t.getContent())})}};var t,o,a,i,l,s}})};const vse=hse;function yse(e){return yse="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yse(e)}function _se(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Ase(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Ase(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ase(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Ase(d,"constructor",c),Ase(c,"constructor",s),s.displayName="GeneratorFunction",Ase(c,r,"GeneratorFunction"),Ase(d),Ase(d,r,"Generator"),Ase(d,o,function(){return this}),Ase(d,"toString",function(){return"[object Generator]"}),(_se=function(){return{w:a,m:p}})()}function Ase(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ase=function(e,t,n,o){function a(t,n){Ase(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Ase(e,t,n,o)}function kse(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function xse(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){kse(a,o,r,i,l,"next",e)}function l(e){kse(a,o,r,i,l,"throw",e)}i(void 0)})}}function wse(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Cse(e,t,n){return(t=function(e){var t=function(e){if("object"!=yse(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yse(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yse(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ese={name:"PersonalFundraisingMobilePayOverlay",components:{DonationAmountPicker:gJ,FormInputTextField:mE,PersonalFundraisingMobilePayOverlayRichText:(0,Hb.A)(vse,[["render",function(e,t,n,o,r,a){var i=qr("editor");return Ai(),Si("div",{ref:"rootRef",class:Y(["Form__Element FormTextbox FormTextbox--RichText kb-personal-fundraising-mobilepay-overlay__rich-text",{V
2alidationRequired:e.isRequired,ValidationError:e.isValidationError}])},[Mi("label",{for:e.fieldName,class:"Form__Element__Caption"},fe(e.label),9,use),Ni(i,{"api-key":"no-api-key",required:"","aria-required":"true","aria-describedby":"fundraiseReason_desc","aria-invalid":"false",init:e.editorInit()},null,8,["init"]),e.isValidationError?(Ai(),Si("p",dse,fe(e.errorMessageLabel),1)):zi("v-if",!0)],2)}]]),TooltipComponent:yy},setup:function(){var e=Af(),t=Kt(""),n=Kt(""),o=Kt(""),r=Kt(""),a=Kt(""),i=Kt(!1),l=Kt("0"),s=Kt(null),c=Kt(""),u=Kt(!0),d=function(t){return e.getters["labels/getLabel"]({labelCollection:"PersonalFundraisingMobilePayOverlay",labelKey:t})},p=bl(function(){var t;return null!==(t=e.state.main.page_overlay_content_data)&&void 0!==t?t:{}}),f=bl(function(){var e,t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wse(Object(n),!0).forEach(function(t){Cse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wse(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({hideIntroText:!1,hideDonationAmountSelector:!1,hideAnonymousOrPersonalDonation:!1,hidePersonalGreeting:!1,hideTaxDeduction:!1},null!==(e=p.value.fieldVisibility)&&void 0!==e?e:{});return{showIntroText:!t.hideIntroText,showDonationAmountSelector:!t.hideDonationAmountSelector,showAnonymousOrPersonalDonation:!t.hideAnonymousOrPersonalDonation,showPersonalGreeting:!t.hidePersonalGreeting,showTaxDeduction:!t.hideTaxDeduction}}),m=bl(function(){var e=p.value.donationAmounts;return Array.isArray(e)?e.map(function(e){return Number.parseInt(e,10)}).filter(function(e){return Number.isFinite(e)&&e>0}):[]}),g=bl(function(){return m.value.length>0}),h=bl(function(){return f.value.showDonationAmountSelector&&g.value}),b=bl(function(){return!f.value.showDonationAmountSelector}),v=bl(function(){return b.value||f.value.showDonationAmountSelector}),y=bl(function(){if(b.value)return null;var e=Number.parseInt(p.value.defaultDonationAmount,10);return Number.isFinite(e)&&m.value.includes(e)?e:null}),_=bl(function(){return p.value.fundraisingCampaignId}),A=bl(function(){return p.value.createDonationPageId}),k=bl(function(){return e.state.fundraising.isSubmitting}),x=bl(function(){return"1"===l.value}),w=bl(function(){return f.value.showTaxDeduction&&i.value}),C=bl(function(){return f.value.showPersonalGreeting&&!x.value}),E=bl(function(){return Number(s.value)>0}),S=bl(function(){return rE(t.value)}),T=bl(function(){return rE(n.value)}),I=bl(function(){return oE(r.value)}),B=bl(function(){return!w.value||eK(a.value)}),O=bl(function(){return!!_.value&&Number(A.value)>0}),L=bl(function(){return E.value&&S.value&&T.value&&I.value&&B.value&&O.value&&!k.value}),D=bl(function(){return!u.value&&!E.value}),M=bl(function(){return!u.value&&!S.value}),N=bl(function(){return!u.value&&!T.value}),P=bl(function(){return!u.value&&!I.value}),R=bl(function(){return!u.value&&!B.value}),F=function(){var e=xse(_se().m(function e(){var t,n,o,r,a;return _se().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Nn();case 1:if(o=document.querySelector(".kb-personal-fundraising-mobilepay-overlay"),r=null==o?void 0:o.querySelector(".Form__Element__ValidationError, .validation-error")){e.n=2;break}return e.a(2);case 2:r.scrollIntoView({behavior:"smooth",block:"center"}),(a=null!==(t=null===(n=r.closest(".Form__Element"))||void 0===n?void 0:n.querySelector('input, textarea, [contenteditable="true"]'))&&void 0!==t?t:null==o?void 0:o.querySelector('.kb-donation-amount-picker input:not([type="hidden"])'))&&"function"==typeof a.focus&&a.focus({preventScroll:!0});case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),V=function(){var l=xse(_se().m(function l(){var m;return _se().w(function(l){for(;;)switch(l.n){case 0:if(!k.value){l.n=1;break}return l.a(2);case 1:if(u.value=!1,L.value){l.n=3;break}return l.n=2,F();case 2:return l.a(2);case 3:return c.value="",m=f.value.showTaxDeduction&&i.value,l.n=4,e.dispatch("fundraising/submitPersonalMobilePayDonation",{fundraisingCampaignId:_.value,payload:{pageId:A.value,paymentMethod:5,useTestCreditCard:!!p.value.useTestCreditCard,totalPrice:Number(s.value),addressLine1:null,postalCode:null,city:null,mobilePhone:r.value,contactFirstName:t.value,contactLastName:n.value,cprNo:m?a.value:null,cvrNo:null,companyName:null,comments:C.value?rJ(o.value):null,isTaxDeductible:m,isAnonymous:!f.value.showAnonymousOrPersonalDonation||x.value,customerType:"Private",referrer:document.referrer}});case 4:l.v||(c.value=d("submitErrorLabel"));case 5:return l.a(2)}},l)}));return function(){return l.apply(this,arguments)}}();return{firstName:t,lastName:n,personalGreeting:o,phone:r,cprNumber:a,taxDeduction:i,anonymousDonation:l,donationAmount:s,donationAmounts:m,showDonationAmountSelector:h,showCustomAmountOnly:b,showDonationAmountSection:v,initialDonationAmount:y,fieldVisibility:f,isAnonymous:x,showCpr:w,showPersonalGreetingField:C,showAmountError:D,showFirstNameError:M,showLastNameError:N,showPhoneError:P,showCprError:R,isSubmitting:k,submitError:c,getLabel:d,setDonationAmount:function(e){s.value=e},goToMobilePay:V}}},Sse=Ese,Tse=(0,Hb.A)(Sse,[["render",function(e,t,n,o,r,a){var i,l=qr("DonationAmountPicker"),s=qr("FormInputTextField"),c=qr("PersonalFundraisingMobilePayOverlayRichText"),u=qr("TooltipComponent");return Ai(),Si("div",Hle,[Mi("article",qle,[Mi("header",Gle,[t[9]||(t[9]=Vi('<div class="kb-personal-fundraising-mobilepay-overlay__icon" aria-hidden="true"><svg width="24" height="24" viewBox="18 8 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M27.41 33a2.115 2.115 0 0 1-1.954-1.305l-7.295-17.61a2.112 2.112 0 0 1 1.143-2.76l7.64-3.164a2.111 2.111 0 0 1 2.76 1.143l7.295 17.61a2.112 2.112 0 0 1-1.143 2.76l-7.64 3.165c-.256.106-.53.16-.806.161Zm.343-23.864a.973.973 0 0 0-.373.075l-7.641 3.165a.975.975 0 0 0-.527 1.273l7.295 17.612a.976.976 0 0 0 1.273.528l7.641-3.167a.975.975 0 0 0 .527-1.274l-7.295-17.61a.976.976 0 0 0-.9-.602Z" fill="#5A78FF"></path><path style="mix-blend-mode:multiply;" opacity=".7" d="m30.186 10.465-1.051.435 2.888 6.973 1.05-.435-2.887-6.973Z" fill="url(#mp-overlay-a)"></path><path style="mix-blend-mode:multiply;" opacity=".7" d="m35.463 26.179 1.05-.435-3.27-7.893-1.05.435 3.27 7.893Z" fill="url(#mp-overlay-b)"></path><path d="M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z" fill="#5A78FF"></path><g style="mix-blend-mode:multiply;" opacity=".4"><path opacity=".9" d="M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z" fill="url(#mp-overlay-c)"></path><path opacity=".7" d="M34.136 20.947c-2.185.906-4.01 2.155-5.204 3.66l-3.08-7.438a13.006 13.006 0 0 1 5.204-3.661c2.186-.906 4.393-1.345 6.269-1.09l3.08 7.44a13.002 13.002 0 0 0-6.269 1.089Z" fill="url(#mp-overlay-d)"></path></g><path d="M35.14 23.215c-2.365 0-4.53.457-6.209 1.39v-7.522a13.007 13.007 0 0 1 6.21-1.39c2.364 0 4.572.439 6.207 1.392v7.521a13.002 13.002 0 0 0-6.208-1.391Z" fill="#5A78FF"></path><defs><linearGradient id="mp-overlay-a" x1="31.842" y1="15.988" x2="31.371" y2="10.486" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".302" stop-color="#504678" stop-opacity=".616"></stop><stop offset=".608" stop-color="#504678" stop-opacity=".283"></stop><stop offset=".852" stop-color="#504678" stop-opacity=".076"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="mp-overlay-b" x1="33.517" y1="19.957" x2="33.812" y2="26.122" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".302" stop-color="#504678" stop-opacity=".616"></stop><stop offset=".608" stop-color="#504678" stop-opacity=".283"></stop><stop offset=".852" stop-color="#504678" stop-opacity=".076"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="mp-overlay-c" x1="27.846" y1="20.481" x2="33.618" y2="16.546" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".179" stop-color="#504678" stop-opacity=".872"></stop><stop offset=".526" stop-color="#504678" stop-opacity=".536"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient><linearGradient id="mp-overlay-d" x1="32.798" y1="16.634" x2="32.542" y2="14.587" gradientUnits="userSpaceOnUse"><stop stop-color="#504678"></stop><stop offset=".643" stop-color="#504678" stop-opacity=".332"></stop><stop offset="1" stop-color="#504678" stop-opacity="0"></stop></linearGradient></defs></svg></div>',1)),Mi("h2",Kle,fe(e.getLabel("personalGreetingTitle")),1)]),Mi("section",Zle,[e.fieldVisibility.showIntroText?(Ai(),Si("div",Wle,[Mi("p",$le,fe(e.getLabel("introText")),1)])):zi("v-if",!0),e.showDonationAmountSection?(Ai(),Si("div",Yle,[Mi("p",Jle,[Mi("span",Xle,fe(e.getLabel("donationAmountText")),1)]),e.showDonationAmountSelector||e.showCustomAmountOnly?(Ai(),Ti(l,{key:0,donationAmounts:e.donationAmounts,minimumAmount:1,customAmountOnly:e.showCustomAmountOnly,onAmountChangeCallback:e.setDonationAmount,initialValue:e.initialDonationAmount,customDonationButtonLabel:e.getLabel("customDonationAmountTitle"),displayInputError:e.showAmountError,errorMessage:e.getLabel("donationAmountErrorLabel")||"Vælg et beløb"},null,8,["donationAmounts","customAmountOnly","onAmountChangeCallback","initialValue","customDonationButtonLabel","displayInputError","errorMessage"])):zi("v-if",!0)])):zi("v-if",!0),e.fieldVisibility.showAnonymousOrPersonalDonation?(Ai(),Si("div",Qle,[Mi("p",ese,fe(e.getLabel("anonymousOrPersonalDonationLabel")),1),Mi("div",tse,[Mi("label",nse,[io(Mi("input",{type:"radio",name:"mobilepay-donation-identity",value:"
20","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.anonymousDonation=t}),class:"FormChoice__Input FormChoice__Input--Radio"},null,512),[[Js,e.anonymousDonation]]),Fi(" "+fe(e.getLabel("namedDonationTypeText")),1)]),Mi("label",ose,[io(Mi("input",{type:"radio",name:"mobilepay-donation-identity",value:"1","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.anonymousDonation=t}),class:"FormChoice__Input FormChoice__Input--Radio"},null,512),[[Js,e.anonymousDonation]]),Fi(" "+fe(e.getLabel("anonymousDonationTypeText")),1)])])])):zi("v-if",!0),Mi("div",rse,[Ni(s,{modelValue:e.firstName,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.firstName=t}),fieldName:"mobilepay-first-name",autocomplete:"given-name",isRequired:"",label:e.getLabel("firstNameLabel"),isValidationError:e.showFirstNameError,errorMessageLabel:e.getLabel("firstNameErrorLabel")||"Indtast dit fornavn"},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Ni(s,{modelValue:e.lastName,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.lastName=t}),fieldName:"mobilepay-last-name",autocomplete:"family-name",isRequired:"",label:e.getLabel("lastNameLabel"),isValidationError:e.showLastNameError,errorMessageLabel:e.getLabel("lastNameErrorLabel")||"Indtast dit efternavn"},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),e.showPersonalGreetingField?(Ai(),Ti(c,{key:0,modelValue:e.personalGreeting,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.personalGreeting=t}),fieldName:"mobilepay-greeting",label:e.getLabel("personalGreetingText"),placeholder:e.getLabel("placeholderGreeting")},null,8,["modelValue","label","placeholder"])):zi("v-if",!0),Ni(s,{modelValue:e.phone,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.phone=t}),fieldName:"mobilepay-phone",autocomplete:"tel",type:"tel",isRequired:"",label:e.getLabel("phoneLabel"),isValidationError:e.showPhoneError,errorMessageLabel:e.getLabel("phoneErrorLabel")||"Indtast et gyldigt telefonnummer"},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),e.fieldVisibility.showTaxDeduction?(Ai(),Si("div",ase,[io(Mi("input",{id:"mobilepay-tax-deduction","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.taxDeduction=t}),type:"checkbox",name:"mobilepay-tax-deduction",class:"kb-sign-up-form__kb-form__radio-input"},null,512),[[$s,e.taxDeduction]]),Mi("label",ise,fe(e.getLabel("taxDeductionLabel")),1),Ni(u,{tooltipText:e.getLabel("taxDeductionTooltipLabel")},null,8,["tooltipText"])])):zi("v-if",!0),e.showCpr?(Ai(),Ti(s,{key:2,modelValue:e.cprNumber,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.cprNumber=t}),fieldName:"mobilepay-cpr",autocomplete:"off",isRequired:"",label:e.getLabel("cprLabel"),isValidationError:e.showCprError,errorMessageLabel:e.getLabel("cprErrorLabel")||"Indtast et gyldigt CPR-nummer"},null,8,["modelValue","label","isValidationError","errorMessageLabel"])):zi("v-if",!0)]),e.submitError?(Ai(),Si("p",lse,fe(e.submitError),1)):zi("v-if",!0),Mi("button",{type:"button",class:"kb-button kb-personal-fundraising-mobilepay-overlay__cta",disabled:e.isSubmitting,onClick:t[8]||(t[8]=function(){return e.goToMobilePay&&e.goToMobilePay.apply(e,arguments)})},fe(e.getLabel("ctaButtonText")),9,sse)]),e.isSubmitting?(Ai(),Si("div",cse,(i=t[10]||(t[10]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return jle(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return jle(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jle(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])])}]]);function Ise(e){return function(e){if(Array.isArray(e))return Bse(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Bse(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bse(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bse(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ose={class:"kb-overlay-styles__content-wrapper"},Lse={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},Dse={class:"kb-send-mail-editor-overlay__hero"},Mse={class:"kb-send-mail-editor-overlay__hero__title-wrapper"},Nse={class:"kb-send-mail-editor-overlay__hero__title-wrapper__title"},Pse={class:"kb-send-mail-editor-overlay__description"},Rse={class:"kb-send-mail-editor-overlay__description-text"},Fse={key:0,class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},Vse={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"},zse={class:"kb-stafet-step__input-wrapper"},Use={key:0,class:"kb-overlay-styles__form-group"},jse={class:"Form__Element__Caption"},Hse={key:0,class:"required-indicator"},qse={"aria-live":"assertive"},Gse={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"},Kse={key:1,class:"kb-overlay-styles__form-group"},Zse={class:"Form__Element__Caption"},Wse={key:0,class:"required-indicator"},$se={key:3},Yse={class:"Form__Element__Caption"},Jse={key:0},Xse={key:1,class:"kb-overlay-styles__form-group"},Qse={class:"kb-forms"},ece=["disabled"],tce={class:"kb-stafet-flow-actions"},nce={class:"kb-stafet-flow-actions__buttons-right-wrapper"},oce={"aria-live":"assertive"},rce={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"},ace={key:1,class:"kb-overlay-styles__form-content kb-stafet-donation-flow"},ice={class:"kb-send-mail-editor-overlay__body"},lce={class:"kb-send-mail-editor-overlay__receipt"},sce={key:2,class:"kb-spinner-overlay"},cce={key:1,class:"kb-send-mail-editor-overlay"},uce={class:"kb-send-mail-editor-overlay__hero"},dce={class:"kb-send-mail-editor-overlay__hero__title-wrapper"},pce={class:"kb-send-mail-editor-overlay__hero__title-wrapper__title"},fce={class:"kb-send-mail-editor-overlay__description"},mce={class:"kb-send-mail-editor-overlay__description-text"},gce={class:"kb-send-mail-editor-overlay__body"},hce={class:"kb-send-mail-editor-overlay__receipt"};function bce(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);
vendor: 2,314 bytes, line 2
2return vce(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(vce(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,vce(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,vce(d,"constructor",c),vce(c,"constructor",s),s.displayName="GeneratorFunction",vce(c,r,"GeneratorFunction"),vce(d),vce(d,r,"Generator"),vce(d,o,function(){return this}),vce(d,"toString",function(){return"[object Generator]"}),(bce=function(){return{w:a,m:p}})()}function vce(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}vce=function(e,t,n,o){function a(t,n){vce(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},vce(e,t,n,o)}function yce(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function _ce(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){yce(a,o,r,i,l,"next",e)}function l(e){yce(a,o,r,i,l,"throw",e)}i(void 0)})}}const Ace={name:"StafetMailEditorOverlay",components:{AttachmentsEditor:hk,AttachmentsViewer:Rk,FormRadioGroup:sO,Form
2Checkbox:dB,FormInputTextField:mE,FormInputTextarea:_D},props:{type:{type:String,required:!1},mailudsendelse:{type:Object,required:!1},stafetkode:{type:String,required:!1},holdkode:{type:String,required:!1},senderEmail:{type:String,required:!1},labels:{type:Array,required:!1},allowAttachments:{type:Boolean,required:!1},allowSelectParticipants:{type:Boolean,required:!1}},setup:function(){var e,t,n,o,r,a,i,l=Af(),s=l.state.main.page_overlay_content_data.type,c=l.state.main.page_overlay_content_data.mailudsendelse,u=null!==(e=l.state.main.page_overlay_content_data[s])&&void 0!==e?e:{};u.labels.forEach(function(e){l.commit("labels/set_labelCollection",e)});var d=null!=c,p=Kt(!1),f=Kt(!1),m=Kt(!1),g=Kt(!1),h=Kt(null!==(t=null==c?void 0:c.sendToDeltagere)&&void 0!==t&&t),b=Kt(null!==(n=null==c?void 0:c.sendToHoldkaptajner)&&void 0!==n&&n),v=Kt(null!==(o=null==c?void 0:c.sendToFightere)&&void 0!==o&&o),y=Kt(null!==(r=null==c?void 0:c.seasonChoice)&&void 0!==r?r:null),_=Kt(null!==(a=null==c?void 0:c.subject)&&void 0!==a?a:""),A=Kt(null!==(i=null==c?void 0:c.body)&&void 0!==i?i:""),k=Kt(!0),x=function(e,t){return l.getters["labels/getLabel"]({labelCollection:"StafetMailEditorOverlay",labelKey:e,params:t})}
2,w=bl(function(){return x(d?"titleReadonly":"title")}),C=bl(function(){return d?"".concat(x("sentDateLabel"),": ").concat(S(c.sentDate)):x("description")}),E=bl(function(){var e=[];h.value&&e.push(x("recipientsDeltagereLabel")),b.value&&e.push(x("recipientsHoldkaptajnerLabel")),v.value&&e.push(x("recipientsFightereLabel"));var t="";return(t=1===e.length?e[0]:2===e.length?e.join(" og "):"".concat(e.slice(0,-1).join(", ")," og ").concat(e.slice(-1))).charAt(0).toUpperCase()+t.slice(1).toLowerCase()}),S=function(e){var t=(e=new Date(e)).toLocaleDateString("da-DK",{year:"numeric",month:"short",day:"numeric"}),n=e.toLocaleTimeString("da-DK",{hour:"2-digit",minute:"2-digit"});return"".concat(t," kl. ").concat(n)},T=Kt(d?c.attachments.map(function(e){return{filename:e.filename,url:"".concat(document.location.origin,"/").concat("api/sfl/mailudsendelse/attachment/[attachmentId]").replace("[attachmentId]",e.id),filesize:e.filesizeBytes}}):[]),I=bl(function(){return null===O.value||0===O.value}),B=Kt(!1),O=Kt(null),L=Kt(!1),D=bl(function(){var e;return null===(e=x("resendText"))||void 0===e?void 0:e.replace("{0}",O.value)});Dr(_ce(bce().m(function e(){return bce().w(function(e){for(;;)switch(e.n){case 0:if(!c){e.n=2;break}return L.value=!0,e.n=1,l.dispatch("stafet/getMailudsendelseNewRecipientsCount",c.id);case 1:O.value=e.v,L.value=!1;case 2:return e.a(2)}},e)})));var M=Object.freeze({Current:"Current",Previous:"Previous"}),N=[{value:M.Current,label:x("seasonChoiceCurrentLabel")},{value:M.Previous,label:x("seasonChoicePreviousLabel")}];d&&(N=N.filter(function(e){return e.value===c.seasonChoice}));var P=bl(function(){return A.value.trim().length>0}),R=bl(function(){return _.value.trim().length>0}),F=bl(function(){return!u.allowSelectParticipants||h.value||b.value||v.value}),V=bl(function(){return!u.allowSelectSeason||null!==y.value}),z=bl(function(){return R.value&&P.value&&F.value&&V.value}),U=function(){var e=_ce(bce().m(function e(){var t,n;return bce().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!d){e.n=1;break}return e.a(2);case 1:if(p.value=!1,m.value=!1,z.value){e.n=2;break}return p.value=!0,e.a(2);case 2:return f.value=!0,e.p=3,(t=new FormData).append("type",s),t.append("stafetkode",u.stafetkode),t.append("holdkode",u.holdkode),t.append("senderemail",u.senderEmail),t.append("subject",_.value),t.append("body",A.value),u.allowSelectParticipants&&(t.append("deltagere",h.value),t.append("fightere",v.value),t.append("holdkaptajner",b.value)),u.allowSelectSeason&&t.append("seasonchoice",j(y.value)),T.value.forEach(function(e){t.append("attachments",e)}),e.n=4,l.dispatch("stafet/submitSendEmail",{formData:t});case 4:e.v?g.value=!0:m.value=!0,e.n=6;break;case 5:e.p=5,n=e.v,console.error(n);case 6:f.value=!1;case 7:return e.a(2)}},e,null,[[3,5]])}));return function(){return e.apply(this,arguments)}}(),j=function(e){return e==M.Current?0:1},H=function(){var e=_ce(bce().m(function e(){var t,n,o,r;return bce().w(function(e){for(;;)switch(e.n){case 0:return f.value=!0,(o=new FormData).append("previousMailudsendelseId",c.id),o.append("senderemail",null!==(t=null!==(n=u.senderEmail)&&void 0!==n?n:c.senderEmail)&&void 0!==t?t:""),e.n=1,l.dispatch("stafet/submitResendEmail",{formData:o});case 1:r=e.v,f.value=!1,r?l.dispatch("main/closePageOverlay"):(m.value=!0,B.value=!1);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return{getLabel:x,isReadonly:d,heroTitle:w,heroText:C,allowSelectParticipants:u.allowSelectParticipants,allowSelectSeason:u.allowSelectSeason,allowAttachments:u.allowAttachments,subject:_,subjectInputFilled:R,body:A,bodyInputFilled:P,recipientsDeltagere:h,recipientsHoldkaptajner:b,recipientsFightere:v,recipientsJoinedLabels:E,isRecipientsSelected:F,seasonChoice:y,seasonChoiceRadioOptions:N,isSeasonSelected:V,attachments:T,isSubmissionError:m,isSubmitting:f,showResendConfirm:B,showReceipt:g,displayError:p,trueRef:k,submit:U,openResendConfirm:function(){B.value=!0},cancelResend:function(){B.value=!1},confirmResend:H,numNewRecipientsCount:O,isLoadingNewRecipientsCount:L,isResendDisabled:I,resendInfoText:D,close:function(){l.dispatch("main/closePageOverlay")},reset:function(){B.value=!1,p.value=!1,m.value=!1,g.value=!1,h.value=!1,b.value=!1,v.value=!1,y.value=null,_.value="",A.value="",T.value=[]}}}},kce=Ace,xce=(0,Hb.A)(kce,[["render",function(e,t,n,o,r,a){var i=qr("FormCheckbox"),l=qr("FormRadioGroup"),s=qr("FormInputTextField"),c=qr("FormInputTextarea"),u=qr("AttachmentsEditor"),d=qr("AttachmentsViewer");return Ai(),Si("div",Ose,[Mi("article",{class:Y(["kb-overlay-styles",{"kb-overlay-styles--submitting":e.isSubmitting}])},[Mi("div",Lse,[e.showReceipt?(Ai(),Si("article",cce,[Mi("section",u
2ce,[Mi("div",dce,[t[19]||(t[19]=Mi("div",{class:"kb-send-mail-editor-overlay__hero__title-wrapper__icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[Mi("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0Zm0 .75C5.787.75.75 5.787.75 12S5.787 23.25 12 23.25 23.25 18.213 23.25 12 18.213.75 12 .75Zm4.924 7.015-5.625 9a.5.5 0 0 1-.785.08l-3.375-3.52.361-.346.361-.347 2.93 3.058 5.285-8.455.848.53Z"})])],-1)),Mi("h2",pce,fe(e.getLabel("receiptTitle")),1)]),t[20]||(t[20]=Mi("div",{class:"kb-send-mail-editor-overlay__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",fce,[Mi("p",mce,fe(e.getLabel("receiptDescription")),1)])]),t[21]||(t[21]=Mi("div",{class:"kb-send-mail-editor-overlay__hero__curve"},[Mi("svg",{viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Fi("kb-send-mail-editor-overlay__receipt "),Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",gce,[Mi("div",hce,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[13]||(t[13]=function(){return e.close&&e.close.apply(e,arguments)})},fe(e.getLabel("receiptCloseButtonLabel")),1),Mi("button",{class:"kb-button",onClick:t[14]||(t[14]=function(){return e.reset&&e.reset.apply(e,arguments)})},fe(e.getLabel("receiptResetButtonLabel")),1)])])])):(Ai(),Si(gi,{key:0},[Mi("section",Dse,[Mi("div",Mse,[Mi("h2",Nse,fe(e.heroTitle),1)]),e.heroText?(Ai(),Si(gi,{key:0},[t[15]||(t[15]=Mi("div",{class:"kb-send-mail-editor-overlay__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",Pse,[Mi("p",Rse,fe(e.heroText),1)])],64)):zi("v-if",!0)]),t[18]||(t[18]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),e.showResendConfirm?(Ai(),Si("div",ace,[Mi("div",ice,[Mi("div",lce,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[11]||(t[11]=function(){return e.confirmResend&&e.confirmResend.apply(e,arguments)})},fe(e.getLabel("resendConfirmTitle")),1),Mi("button",{class:"kb-button",onClick:t[12]||(t[12]=function(){return e.cancelResend&&e.cancelResend.apply(e,arguments)})},fe(e.getLabel("resendConfirmCancelLabel")),1)])])])):(Ai(),Si("div",Fse,[Mi("section",Vse,[Mi("div",zse,[e.allowSelectParticipants?(Ai(),Si("div",Use,[Mi("label",jse,[Fi(fe(e.getLabel("recipientsLabel")),1),e.isReadonly?zi("v-if",!0):(Ai(),Si("span",Hse,"*"))]),e.isReadonly?(Ai(),Ti(i,{key:0,modelValue:e.trueRef,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.trueRef=t}),label:e.recipientsJoinedLabels,readOnly:""},null,8,["modelValue","label"])):(Ai(),Si(gi,{key:1},[Ni(i,{fieldName:"recipientsDeltagere",modelValue:e.recipientsDeltagere,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.recipientsDeltagere=t}),label:e.getLabel("recipientsDeltagereLabel"),onChangeCallback:function(t){return e.recipientsDeltagere=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(i,{fieldName:"recipientsHoldkaptajner",modelValue:e.recipientsHoldkaptajner,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.recipientsHoldkaptajner=t}),label:e.getLabel("recipientsHoldkaptajnerLabel"),onChangeCallback:function(t){return e.recipientsHoldkaptajner=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Ni(i,{fieldName:"recipientsFightere",modelValue:e.recipientsFightere,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.recipientsFightere=t}),label:e.getLabel("recipientsFightereLabel"),onChangeCallback:function(t){return e.recipientsFightere=t.target.checked}},null,8,["modelValue","label","onChangeCallback"]),Mi("div",qse,[e.displayError&&!e.isRecipientsSelected?(Ai(),Si("p",Gse,fe(e.getLabel("recipientsErrorLabel")),1)):zi("v-if",!0)])],64))])):zi("v-if",!0),e.allowSelectSeason?(Ai(),Si("div",Kse,[Mi("label",Zse,[Fi(fe(e.getLabel("seasonChoiceLabel")),1),e.isReadonly?zi("v-if",!0):(Ai(),Si("span",Wse,"*"))]),Ni(l,{radioOptions:e.seasonChoiceRadioOptions,modelValue:e.seasonChoice,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.seasonChoice=t}),fieldName:"seasonChoice",label:e.getLabel("seasonChoiceLabel"),onChange:t[5]||
2(t[5]=function(t){return e.seasonChoice=t.target.value}),isValidationError:e.displayError&&!e.isSeasonSelected,errorMessageLabel:e.getLabel("seasonChoiceErrorLabel"),readOnly:e.isReadonly},null,8,["radioOptions","modelValue","label","isValidationError","errorMessageLabel","readOnly"])])):zi("v-if",!0),Ni(s,{isRequired:!e.isReadonly,modelValue:e.subject,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.subject=t}),fieldName:"subject",label:e.getLabel("subjectLabel"),isValidationError:e.displayError&&!e.subjectInputFilled,errorMessageLabel:e.getLabel("subjectErrorLabel"),readOnly:e.isReadonly,maxlength:"200"},null,8,["isRequired","modelValue","label","isValidationError","errorMessageLabel","readOnly"]),Ni(c,{isRequired:!e.isReadonly,modelValue:e.body,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.body=t}),fieldName:"body",label:e.getLabel("bodyLabel"),isValidationError:e.displayError&&!e.bodyInputFilled,errorMessageLabel:e.getLabel("bodyErrorLabel"),readOnly:e.isReadonly,maxlength:"10000"},null,8,["isRequired","modelValue","label","isValidationError","errorMessageLabel","readOnly"]),!e.isReadonly&&e.allowAttachments?(Ai(),Ti(u,{key:2,"onUpdate:filesToAdd":t[8]||(t[8]=function(t){return e.attachments=t}),acceptedFileTypes:".doc, .docx, .ppt, .pptx, .xls, .xlsx, .pdf, .bmp, .png, .jpg, .jpeg, .svg, .gif, .mp4, .mov, .mp3",maxAttachments:3,maxFileSizeBytes:26214400})):e.isReadonly&&e.attachments.length>0?(Ai(),Si("div",$se,[Mi("label",Yse,fe(e.getLabel("attachmentsLabel")),1),Ni(d,{files:e.attachments,showImagesAsFiles:""},null,8,["files"])])):zi("v-if",!0)]),e.isLoadingNewRecipientsCount?(Ai(),Si("div",Jse,Ise(t[16]||(t[16]=[Mi("div",{class:"kb-spinner-overlay"},[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"})],-1)])))):zi("v-if",!0),null!==e.numNewRecipientsCount&&e.numNewRecipientsCount>0?(Ai(),Si("div",Xse,[Mi("p",Qse,fe(e.resendInfoText),1),Mi("button",{class:"kb-button kb-button--full-color-spot",disabled:e.isResendDisabled,onClick:t[9]||(t[9]=function(){return e.openResendConfirm&&e.openResendConfirm.apply(e,arguments)})},fe(e.getLabel("resendCtaLabel")),9,ece)])):zi("v-if",!0),e.isReadonly?zi("v-if",!0):(Ai(),Si(gi,{key:2},[Mi("nav",tce,[Mi("div",nce,[Mi("button",{class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[10]||(t[10]=function(){return e.submit&&e.submit.apply(e,arguments)})},fe(e.getLabel("submit")),1)])]),Mi("div",oce,[e.isSubmissionError?(Ai(),Si("p",rce,fe(e.getLabel("submissionErrorLabel")),1)):zi("v-if",!0)])],64))])])),e.isSubmitting?(Ai(),Si("div",sce,Ise(t[17]||(t[17]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)])))):zi("v-if",!0)],64))])],2)])}]]),wce=xce;var Cce={class:"kb-product-added-overlay"},Ece={class:"kb-product-added-overlay-body"},Sce={class:"kb-product-added-overlay-body__title"},Tce=["href"];function Ice(e){return function(e){if(Array.isArray(e))return Bce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Bce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bce(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Oce={class:"kb-products-cards-slider","aria-roledescription":"carousel","aria-describedby":"products-cards-slider-title",ref:"componentRootEl"},Lce={class:"kb-products-cards-slider__title",id:"products-cards-slider-title"},Dce=["id"],Mce={class:"kb-products-cards-slider__controls","data-glide-el":"controls"},Nce={ref:"prevBtn",class:"kb-products-cards-slider__arrow","data-glide-dir":"<","aria-controls":"products-cards-slider-slides","aria-label":"Forrige"},Pce={ref:"nextBtn",class:"kb-products-cards-slider__arrow","data-glide-dir":">","aria-controls":"products-cards-slider-slides","aria-label":"Næste"},Rce={class:"glide__track","data-glide-el":"track",ref:"root"},Fce={class:"glide__slides","aria-live":"polite",id:"products-cards-slider-slides"},Vce=["aria-label","data-index"],zce={class:"kb-products-cards-slider__bottom"},Uce=["href","target"];function jce(e){return e<400?{perView:1.15,gap:14,peek:{after:50,before:0}}:e<500?{perView:1.45,gap:16,peek:{after:50,before:0}}:e<700?{perView:2.1,gap:20,peek:{after:75,before:0}}:e<800?{perView:2.9,gap:22,peek:{after:70,before:0}}:e<1e3?{perView:3.2,gap:32,peek:{after:70,before:0}}:e<1200?{perView:3.8,gap:32,peek:{after:160,before:0}}:null}function Hce(e){return function(e){if(Array.isArray(e))return qce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qce(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Gce=["href"],Kce={class:"kb-product-card__image kb-image-module--5-4"},Zce={class:"kb-image-module__image-container"},Wce={class:"kb-image-module__image"},$ce=["srcset"],Yce=["srcset"],Jce={class:"kb-product-card__content"},Xce={class:"kb-product-card__title"},Qce={class:"kb-product-card__content-wrapper"},eue={class:"kb-product-card__price-wrapper"},tue={class:"kb-product-card__price"},nue={key:0,class:"kb-product-card__price--before"},oue={class:"kb-product-card__price--before-line-through"},rue={key:1,class:"kb-product-card__cta kb-product-card__cta--disabled"},aue={key:0,class:"kb-product-card__message"},iue={key:1,class:"kb-spinner-overlay"};function lue(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return sue(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(sue(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,sue(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,sue(d,"constructor",c),sue(c,"constructor",s),s.displayName="GeneratorFunction",sue(c,r,"GeneratorFunction"),sue(d),sue(d,r,"Generator"),sue(d,o,function(){return this}),sue(d,"toString",function(){return"[object Generator]"}),(lue=function(){return{w:a,m:p}})()}function sue(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}sue=function(e,t,n,o){function a(t,n){sue(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},sue(e,t,n,o)}function cue(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const uue={name:"ProductCard",props:{data:{type:Object,required:!0},showAddCta:{type:Boolean,default:!1},listName:{type:String,required:!1,default:null}},setup:function(e){var t=Af(),n=bl(function(){return e.data.imageUrl+"?io=transform:fill,width:600,height:480"}),o=bl(function(){return e.data.imageUrl+"?io=transform:fill,width:400,height:320"}),r=Kt(!1),a=Kt(!1),i=function(){var n,o=(n=lue().m(function n(){return lue().w(function(n){for(;;)switch(n.n){case 0:if(e.data.sku){n.n=1;break}return window.location.href=e.data.url,n.a(2);case 1:if(!a.value&&!r.value){n.n=2;break}return n.a(2);case 2:return r.value=!0,n.n=3,t.dispatch("basket/addToBasket",{sku:e.data.sku,quantity:1});case 3:r.value=!1,a.value=!0;case 4:return n.a(2)}},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){cue(a,o,r,i,l,"next",e)}function l(e){cue(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return o.apply(this,arguments)}}();return{desktopImageUrl:n,mobileImageUrl:o,isAdded:a,isSubmitting:r,addToCart:i,handleCardClick:function(){var t;if(e.listName){var n,o,r=null!==(t=e.data.price)&&void 0!==t?t:0,a=e.data.beforePrice,i=a&&a>r?Math.round(100*(a-r))/100:0;n={item_id:e.data.sku,item_name:e.data.title,item_brand:"cancer.dk",price:r,discount:i,quantity:1,index:0},Gm({event:"select_item",ecommerce:{item_list_name:o=e.listName,item_list_id:o,items:[n]}})}}}}},due=uue,pue=(0,Hb.A)(due,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{class:"kb-product-card",href:e.data.url,onClick:t[1]||(t[1]=function(){return e.handleCardClick&&e.handleCardClick.apply(e,arguments)})},[Mi("figure",Kce,[Mi("div",Zce,[Mi("picture",Wce,[Mi("source",{srcset:e.desktopImageUrl,media:"(min-width: 475px)"},null,8,$ce),Mi("source",{srcset:e.mobileImageUrl,media:"(max-width: 475px)"},null,8,Yce),t[2]||(t[2]=Mi("img",null,null,-1))])]),e.data.saleLabelText?(Ai(),Si("div",{key:0,class:Y(["kb-product-card__sale-label",e.data.labelColorTheme])},fe(e.data.saleLabelText),3)):zi("v-if",!0)]),Mi("div",Jce,[Mi("h3",Xce,fe(e.data.title),1),Mi("div",Qce,[Mi("div",eue,[Mi("p",tue,fe
2(e.data.displayPrice),1),e.data.displayBeforePrice?(Ai(),Si("p",nue,[t[3]||(t[3]=Fi(" Førpris ",-1)),Mi("span",oue,fe(e.data.displayBeforePrice),1)])):zi("v-if",!0)]),e.showAddCta?(Ai(),Si(gi,{key:0},[e.isAdded?(Ai(),Si("button",rue,Hce(t[5]||(t[5]=[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:"32",height:"32"},[Mi("path",{d:"M8 17.739 14 24 24 8",stroke:"#3c3c3c","stroke-linejoin":"round","stroke-width":"2"})],-1)])))):(Ai(),Si("button",{key:0,class:"kb-product-card__cta",onClick:t[0]||(t[0]=lc(function(){return e.addToCart&&e.addToCart.apply(e,arguments)},["prevent"]))},Hce(t[4]||(t[4]=[Mi("span",{class:"kb-visually-hidden"},"Tilføj vare til kurv",-1),Mi("svg",{role:"presentation",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M23.5 11.5h-22l3 16h17l2-16Zm0 0h7l-3 16H26M3 19.5h26M10.5 27.5l-2-16M16.5 11.5v16M10.5 9.5l1-5h9l1 5",stroke:"#3C3C3C"})],-1)]))))],64)):zi("v-if",!0)])]),e.data.messageLabelText?(Ai(),Si("div",aue,[Mi("p",null,fe(e.data.messageLabelText),1)])):zi("v-if",!0),e.isSubmitting?(Ai(),Si("div",iue,Hce(t[6]||(t[6]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)])))):zi("v-if",!0)],8,Gce)}]]),fue={name:"ProductsCardsSlider",components:{ProductCard:pue,MaterialCard:F7,SpotCardGrid:N1},props:{glideBehaviour:{type:String,required:!1,default:"slider"},results:{type:Array,required:!0},spotCardData:{type:Object,required:!1},spotCardIndex:{type:Number,required:!1},type:{type:String,required:!1,default:"products"},link:{type:Object,required:!1},sliderId:{type:String,required:!1},showAddCta:{type:Boolean,default:!1},sizingFunction:{type:Function,required:!1}},setup:function(e){var t,n=Kt(null),o=Kt(null),r=Kt(null),a=Kt(null),i=Af(),l=Kt(0),s=null!==(t={products:{card:"ProductCard"},materials:{card:"MaterialCard"}}[e.type])&&void 0!==t?t:{card:"ProductCard"},c=function(){return function(e){var t=e.glideBehaviour,n=e.perView,o=e.startAt,r=e.sizingFunction,a={type:t,startAt:null!=o?o:0,perView:null!=n?n:3.55,gap:32,peek:{after:275,before:0}};"slider"===t&&(a.rewind=!1,a.bound=!0);var i=(r=r||jce)(document.documentElement.clientWidth)||{};return Object.assign(a,i)}({glideBehaviour:e.glideBehaviour,startAt:l.value,sizingFunction:e.sizingFunction})};return Dr(function(){var t;if(function(e){e.value.querySelectorAll(".glide__slide").forEach(function(e){e.style.height="auto"})}(n),document.querySelector("#".concat(e.sliderId))){var o=new Tb("#".concat(e.sliderId),c()),i=function(){var e=r.value,t=a.value;if(e&&t){var n=e.classList.contains("glide__arrow--disabled"),o=t.classList.contains("glide__arrow--disabled");e.setAttribute("aria-disabled",String(n)),t.setAttribute("aria-disabled",String(o)),e.tabIndex=n?-1:0,t.tabIndex=o?-1:0}};o.on("resize",function(){o.update(c()),i()}),o.on("move",function(){l.value=o.index}),o.on(["mount.after","run.after"],i),o.mount(),i(),null===(t=document.querySelector(".glide"))||void 0===t||t.addEventListener("keydown",function(e){if(9==e.keyCode){var t,n,r=null===(t=e.target)||void 0===t?void 0:t.parentNode;if(null==r)return;var a=e.shiftKey?r.previousSibling:r.nextSibling,i=null==a||null===(n=a.attributes["data-index"])||void 0===n?void 0:n.value;i&&o.go("="+i)}})}}),{displayProperties:s,componentRootEl:o,getLabel:function(t){return i.getters["labels/getLabel"]({labelCollection:"productsCardsSlider-".concat(e.sliderId),labelKey:t})},root:n,link:e.link,truncateSummary:function(e){return e.length>120?e.substring(0,117)+"...":e},shouldRenderSpotCard:function(t){return e.spotCardIndex-1===t},prevBtn:r,nextBtn:a}}},mue=fue,gue=(0,Hb.A)(mue,[["render",function(e,t,n,o,r,a){var i=qr("SpotCardGrid");return Ai(),Si("article",Oce,[Mi("h2",Lce,fe(e.getLabel("productsCardsSliderTitle")),1),Mi("div",{id:e.sliderId,class:"glide"},[Mi("div",Mce,[Mi("button",Nce,Ice(t[0]||(t[0]=[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-chevron-down"},null,-1)])),512),Mi("button",Pce,Ice(t[1]||(t[1]=[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-chevron-up"},null,-1)])),512)]),Mi("div",Rce,[Mi("div",Fce,[(Ai(!0),Si(gi,null,Yr(e.results,function(t,n){return Ai(),Si("p",{class:"glide__slide kb-products-cards-slider__card",role:"group","aria-roledescription":"karusselelement","aria-label":"".concat(n+1," af ").concat(e.results.length),"data-index":"".concat(n)}
2,[t.isSpotCard?(Ai(),Ti(i,{key:0,spotCardData:t},null,8,["spotCardData"])):(Ai(),Ti(Kr(e.displayProperties.card),{key:1,data:t,truncateSummary:e.truncateSummary,showAddCta:e.showAddCta,"list-name":"products-cards-slider-slides"},null,8,["data","truncateSummary","showAddCta"]))],8,Vce)}),256))])],512)],8,Dce),Mi("div",zce,[e.link.href?(Ai(),Si("a",{key:0,href:e.link.href,target:e.link.target,class:"kb-products-cards-slider__bottom__link"},[Mi("span",null,fe(e.getLabel("productsCardsSliderLinkText")),1),t[2]||(t[2]=Vi('<div class="kb-products-cards-slider__bottom__link-icon"><svg width="17" height="10" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke="#E8001D"><path d="m12.167 1 3.623 4-3.623 4" stroke-linejoin="round"></path><path d="M11.746 5H0"></path></g></svg></div>',1))],8,Uce)):zi("v-if",!0)])],512)}]]),hue={name:"ProductAddedOverlay",components:{ProductsCardsSlider:gue},setup:function(){var e=Af(),t=bl(function(){return e.state.main.page_overlay_content_data.variantSku}),n=bl(function(){return e.state.main.page_overlay_content_data.maxRecommendations}),o=bl(function(){return e.state.main.page_overlay_content_data.footerRightCtaUrl}),r=bl(function(){return e.state.basket.recommendations}),a=bl(function(){return r.value&&r.value.length>0?"Product"===r.value[0].type?"products":"materials":"products"});return Dr(function(){var o;e.dispatch("basket/getRecommendations",{variantCode:t.value,take:null!==(o=n.value)&&void 0!==o?o:10})}),Rr(function(){e.commit("basket/clear_recommendations")}),{getLabel:function(e){return dA({labelKey:e,labelCollection:"ProductAddedOverlay"})},sliderDisplayType:a,recommendations:r,maxRecommendations:n,footerRightCtaUrl:o,sliderSizingFunction:function(e){return e<=475?{perView:"products"===a.value?1.5:2,gap:30,peek:{after:40,before:0}}:e<=768?{perView:"products"===a.value?1.75:2.5,gap:40,peek:{after:50,before:0}}:{perView:"products"===a.value?2:3,gap:50,peek:{after:60,before:0}}},closeOverlay:function(){e.dispatch("main/closePageOverlay")}}}},bue=hue,vue=(0,Hb.A)(bue,[["render",function(e,t,n,o,r,a){var i,l,s=qr("ProductsCardsSlider");return Ai(),Si("article",Cce,[Mi("div",Ece,[Mi("div",Sce,[t[1]||(t[1]=Mi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"96",height:"96","aria-hidden":"true"},[Mi("circle",{cx:"16",cy:"16",r:"14",fill:"#16a34a"}),Mi("path",{d:"M9 17 14 22 22 10",stroke:"#ffffff","stroke-width":"1.5","stroke-linejoin":"round",fill:"none"})],-1)),Mi("h1",null,fe(e.getLabel("title")),1)]),(null===(i=e.recommendations)||void 0===i?void 0:i.length)>0?(Ai(),Ti(s,{key:0,sliderId:"recommended-products-slider",glideBehaviour:"slider",type:e.sliderDisplayType,link:{},showAddCta:!0,sizingFunction:e.sliderSizingFunction,results:e.recommendations},null,8,["type","sizingFunction","results"])):zi("v-if",!0)]),Mi("div",{class:Y(["kb-product-added-overlay-footer",{"kb-product-added-overlay-footer--has-recommendations":(null===(l=e.recommendations)||void 0===l?void 0:l.length)>0}])},[Mi("button",{class:"kb-button",onClick:t[0]||(t[0]=function(){return e.closeOverlay&&e.closeOverlay.apply(e,arguments)})},fe(e.getLabel("footerLeftCtaLabel")),1),Mi("a",{href:e.footerRightCtaUrl,class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("footerRightCtaLabel")),9,Tce)],2)])}]]);var yue={class:"kb-overlay-styles__content-wrapper"},_ue={class:"kb-overlay-styles kb-source-overlay"},Aue={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},kue={class:"kb-source-overlay__hero"},xue={class:"kb-source-overlay__hero-title"},wue={class:"kb-source-overlay__description"},Cue={class:"kb-source-overlay__description-text"},Eue={class:"kb-source-overlay__description-text"},Sue={class:"kb-source-overlay__content"},Tue={class:"kb-source-group-card"},Iue={class:"kb-source-group-card__content-container"},Bue={class:"kb-source-group-card__content"},Oue={class:"kb-source-group-card__title"},Lue={class:"kb-source-group-card__paragraph"},Due=["href"],Mue={class:"kb-source-group-card__link-text"};const Nue={name:"SourceGroupCard",props:{name:{type:String,required:!0},title:{type:String,required:!0},text:{type:String,required:!0},linkUrl:{type:String,required:!0},linkText:{type:String,required:!0}},setup:function(e){var t;return{text:null===(t=e.text)||void 0===t?void 0:t.replace("{navn}",e.name)}}},Pue=(0,Hb.A)(Nue,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",Tue,[Mi("div",Iue,[t[1]||(t[1]=Vi('<div class="kb-source-group-card__icon-wrapper"><div class="kb-source-group-card__circle"><svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19.1303 8.61624C18.4617 8.07477 17.693 7.67029 16.8681 7.42589C16.0432 7.1815 15.1782 7.10197 14.3226 7.19186C13.4669 7.28175 12.6374 7.53929 11.8813 7.94978C11.1251 8.36027 10.4573 8.91567 9.9158 9.58427C9.37433 10.2529 8.96985 11.0216 8.72545 11.8465C8.48106 12.6714 8.40153
213.5364 8.49142 14.392C8.58131 15.2477 8.83885 16.0772 9.24934 16.8333C9.65983 17.5895 10.2152 18.2573 10.8838 18.7988C11.7489 19.4965 12.2792 20.1348 12.2792 21.1709V21.6941H13.3257V21.1709C13.3257 19.6395 12.4675 18.729 11.5396 17.9825C10.7461 17.3396 10.146 16.4896 9.8055 15.5267C9.46504 14.5638 9.39758 13.5256 9.61057 12.5267C9.83348 11.501 10.3466 10.5611 11.0888 9.81889C11.831 9.0767 12.7709 8.56357 13.7966 8.34066C14.6094 8.15653 15.4533 8.15782 16.2655 8.34442C17.0777 8.53103 17.8375 8.89816 18.4885 9.41857C19.1294 9.93777 19.6453 10.5945 19.9979 11.3402C20.3505 12.0859 20.5308 12.9013 20.5255 13.7262C20.5201 14.551 20.3292 15.364 19.9669 16.1051C19.6047 16.8461 19.0803 17.4961 18.4327 18.0069C17.5257 18.7255 16.6885 19.5907 16.6885 21.0732V22.5H12.2827V23.5465H17.7175V21.0837C17.7175 20.0965 18.2094 19.5139 19.0641 18.8407C19.8346 18.2322 20.4584 17.4583 20.8894 16.5761C21.3204 15.6939 21.5475 14.7262 21.5538 13.7444C21.5602 12.7626 21.3457 11.7919 20.9262 10.9043C20.5067 10.0166 19.8929 9.23463 19.1303 8.61624Z" fill="#810010"></path><path d="M17.7139 24.2441H12.2825V25.2907H17.7139V24.2441Z" fill="#810010"></path><path d="M12.2825 27.0349H13.2906C13.3707 27.4292 13.5846 27.7837 13.8961 28.0383C14.2076 28.2929 14.5976 28.432 14.9999 28.432C15.4022 28.432 15.7922 28.2929 16.1037 28.0383C16.4152 27.7837 16.6292 27.4292 16.7092 27.0349H17.7174V25.9884H12.2825V27.0349Z" fill="#810010"></path><path d="M15 9.59302C13.8898 9.59302 12.8251 10.034 12.04 10.8191C11.255 11.6041 10.814 12.6689 10.814 13.7791V14.3023H11.8605V13.7791C11.8605 12.9464 12.1912 12.1479 12.78 11.5591C13.3688 10.9703 14.1674 10.6395 15 10.6395H15.5233V9.59302H15Z" fill="#810010"></path><path d="M15.5233 1.23145H14.4768V5.74191H15.5233V1.23145Z" fill="#810010"></path><path d="M27.3838 13.0919H22.8733V14.1384H27.3838V13.0919Z" fill="#810010"></path><path d="M7.12668 13.0919H2.61621V14.1384H7.12668V13.0919Z" fill="#810010"></path><path d="M23.3864 4.4897L20.197 7.67908L20.937 8.41907L24.1264 5.22969L23.3864 4.4897Z" fill="#810010"></path><path d="M9.06316 18.8121L5.87378 22.0015L6.61377 22.7415L9.80316 19.5521L9.06316 18.8121Z" fill="#810010"></path><path d="M20.9348 18.8119L20.1948 19.5519L23.3842 22.7413L24.1242 22.0013L20.9348 18.8119Z" fill="#810010"></path><path d="M6.61255 4.48852L5.87256 5.22852L9.06194 8.4179L9.80193 7.6779L6.61255 4.48852Z" fill="#810010"></path></svg></div></div>',1)),Mi("div",Bue,[Mi("h3",Oue,fe(e.title),1),Mi("p",Lue,fe(e.text),1),Mi("a",{class:"kb-source-group-card__link",href:e.linkUrl},[Mi("span",Mue,fe(e.linkText),1),t[0]||(t[0]=Mi("svg",{class:"kb-source-group-card__link-icon",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[Mi("path",{d:"M12.1674 4L15.7899 8L12.1674 12",stroke:"currentColor","stroke-linejoin":"round"}),Mi("path",{d:"M11.7465 8H0",stroke:"currentColor"})],-1))],8,Due)])])])}]]);var Rue={key:0,class:"kb-source-external-links"},Fue={class:"kb-source-external-links__title"},Vue={class:"kb-source-external-links__link-list"},zue=["href"];const Uue={name:"SourceExternalLinks",props:{name:{type:String,required:!0},links:{type:Array,default:function(){return[]}}},setup:function(e){var t,n=Af(),o=function(e){return n.getters["labels/getLabel"]({labelCollection:"SourceExternalLinks",labelKey:e})},r=null===(t=o("title"))||void 0===t?void 0:t.replace("{navn}",e.name);return{getLabel:o,title:r}}},jue=Uue,Hue=(0,Hb.A)(jue,[["render",function(e,t,n,o,r,a){return e.links&&e.links.length?(Ai(),Si("article",Rue,[Mi("h2",Fue," Læs mere om "+fe(e.name)+": ",1),Mi("div",Vue,[(Ai(!0),Si(gi,null,Yr(e.links,function(e,n){return Ai(),Si("a",{key:n,href:e.url,target:"_blank",class:"kb-source-external-links__link"},[Fi(fe(e.text)+" ",1),t[0]||(t[0]=Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",height:"16",viewBox:"0 0 16 16"},[Mi("path",{fill:"#3C3C3C","fill-rule":"evenodd",d:"m12.978 2.708-3.864-.191-.049-.987 4.37.217c.279.014.516.246.53.518l.216 4.37-1.011-.05-.192-3.877Zm-8.924 8.23 6.734-6.734.707.707-6.734 6.734-.707-.707ZM1.5 3H1v12h12V8.312h-1V14H2V4h5.688V3H1.5Z","clip-rule":"evenodd"})],-1))],8,zue)}),128))])])):zi("v-if",!0)}]]);function que(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Gue={class:"kb-source-references"},Kue={class:"kb-source-references__title"},Zue={class:"kb-source-references__results"},Wue=["href"],$ue={key:0},Yue={key:2,class:"kb-spinner-overlay"};const Jue={name:"SourceReferences",props:{sourceId:{type:Number,required:!0}},setup:function(e){var t=Af(),n=Kt(!1),o=bl(function(){return t.state.main.source_references_total}),r=bl(function(){return t.state.main.source_references}),a=function(){n.value||(n.value=!0,t.dispatch("main/getSourceReferences",{sourceId:e.sourceId,skip:r.value.length,take:5}).finally(function(){n.value=!1}))},i=bl(function(){return o.value>r.value.length});Dr(function(){t.state.main.source_references=[],t.state.main.source_references_total=null,a()});var l=function(e){return t.getters["labels/getLabel"]({labelCollection:"SourceReferences",labelKey:e})},s=bl(function(){var e;return null===(e=l("showing"))||void 0===e?void 0:e.replace("{antal}",r.value.length).replace("{total}",o.value)});return{references:r,totalHits:o,fetchReferences:a,showLoadMore:i,isLoading:n,getLabel:l,showingLabel:s}}},Xue=Jue,Que=(0,Hb.A)(Xue,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",Gue,[Mi("h2",Kue,fe(e.getLabel("title"))+": ",1),Mi("div",Zue,[(Ai(!0),Si(gi,null,Yr(e.references,function(e,n){return Ai(),Si("div",{key:n},[Mi("a",{href:e.url,class:"kb-source-references__result-link"},[Fi(fe(e.name)+" ",1),t[1]||(t[1]=Mi("svg",{width:"17",height:"9",viewBox:"0 0 17 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}
2,[Mi("path",{d:"M12.1674 0.370606L15.7899 4.37061L12.1674 8.37061",stroke:"#E8001D","stroke-linejoin":"round"}),Mi("path",{d:"M11.7465 4.37061H0",stroke:"#E8001D"})],-1))],8,Wue)])}),128))]),null!==e.totalHits?(Ai(),Si("p",$ue,fe(e.showingLabel),1)):zi("v-if",!0),e.showLoadMore?(Ai(),Si("button",{key:1,class:"kb-button",onClick:t[0]||(t[0]=function(){return e.fetchReferences&&e.fetchReferences.apply(e,arguments)})},fe(e.getLabel("showMore")),1)):zi("v-if",!0),e.isLoading?(Ai(),Si("div",Yue,(i=t[2]||(t[2]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return que(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return que(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?que(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)]);var i}]]),ede={name:"SourceOverlay",components:{SourceGroupCard:Pue,SourceExternalLinks:Hue,SourceReferences:Que},props:{labels:{type:Array,required:!1},source:{type:Object,required:!1}},setup:function(){var e,t=Af(),n=null!==(e=t.state.main.page_overlay_content_data)&&void 0!==e?e:{};return n.labels.forEach(function(e){t.commit("labels/set_labelCollection",e)}),{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"SourceOverlay",labelKey:e})},source:n.source}}},tde=ede,nde=(0,Hb.A)(tde,[["render",function(e,t,n,o,r,a){var i=qr("SourceGroupCard"),l=qr("SourceExternalLinks"),s=qr("SourceReferences");return Ai(),Si("div",yue,[Mi("article",_ue,[Mi("div",Aue,[Mi("section",kue,[Mi("h1",xue,fe(e.source.name),1),t[0]||(t[0]=Mi("div",{class:"kb-source-overlay__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",wue,[Mi("p",Cue,fe(e.source.title),1),Mi("p",Eue,fe(e.source.workPlace),1)])]),t[1]||(t[1]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])],-1)),Mi("div",Sue,[e.source.group?(Ai(),Ti(i,{key:0,name:e.source.name,title:e.source.group.title,text:e.source.group.description,linkUrl:e.source.group.linkUrl,linkText:e.source.group.linkText},null,8,["name","title","text","linkUrl","linkText"])):zi("v-if",!0),Ni(l,{name:e.source.name,links:e.source.externalLinks},null,8,["name","links"]),Ni(s,{sourceId:e.source.id},null,8,["sourceId"])])])])])}]]);var ode={class:"kb-overlay-styles__content-wrapper"},rde={class:"kb-overlay-styles kb-personal-fundraising-share-overlay"},ade={class:"kb-overlay-styles__wrapper-for-scroll-bottom"},ide={class:"kb-overlay-styles__hero"},lde={class:"kb-overlay-styles__hero-wrapper"},sde={class:"kb-overlay-styles__hero-title"},cde={key:0,class:"kb-overlay-styles__hero-description"},ude={class:"kb-overlay-styles__hero-description-text"},dde={class:"kb-overlay-styles__form-content"},pde={class:"kb-personal-fundraising-share-overlay__list"},fde=["href","target","rel"],mde={class:"kb-personal-fundraising-share-overlay__item-text"},gde={class:"kb-personal-fundraising-share-overlay__item-text"},hde={key:0,class:"kb-personal-fundraising-share-overlay__copied","aria-live":"polite"},bde=["href"];function vde(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return yde(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
vendor: 1,320 bytes, line 2
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(yde(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yde(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,yde(d,"constructor",c),yde(c,"constructor",s),s.displayName="GeneratorFunction",yde(c,r,"GeneratorFunction"),yde(d),yde(d,r,"Generator"),yde(d,o,function(){return this}),yde(d,"toString",function(){return"[object Generator]"}),(vde=function(){return{w:a,m:p}})()}function yde(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}yde=function(e,t,n,o){function a(t,n){yde(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},yde(e,t,n,o)}function _de(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}var Ade="{network}";
2const kde={name:"PersonalFundraisingShareOverlay",setup:function(){var e=Af(),t=Kt(!1),n=null,o=bl(function(){return e.state.main.page_overlay_content_data||{}}),r=bl(function(){return o.value.shareUrl||""}),a=bl(function(){return o.value.campaignUrl||""}),i=bl(function(){return o.value.title||""}),l=bl(function(){return o.value.description||""}),s=bl(function(){return o.value.copyLinkLabel||"Kopier link"}),c=bl(function(){return o.value.linkCopiedLabel||"Dit link er kopieret!"}),u=bl(function(){return o.value.goToCollectionLabel||"Gå til indsamlingen"}),d=function(e){return(o.value.networkTemplate||"Del på ".concat(Ade)).replace(Ade,e)},p=bl(function(){var e=encodeURIComponent(r.value);return[{id:"facebook",label:d("Facebook"),href:"https://www.facebook.com/sharer/sharer.php?u=".concat(e),target:"_blank",rel:"noopener noreferrer",iconClass:"kb-ui-icon--social-facebook"},{id:"x",label:d("X"),href:"https://twitter.com/intent/tweet?url=".concat(e),target:"_blank",rel:"noopener noreferrer",iconClass:"kb-ui-icon--social-x"},{id:"linkedin",label:d("LinkedIn"),href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(e),target:"_blank",rel:"noopener noreferrer",iconClass:"kb-ui-icon--social-linkedin"}]}),f=function(){var e,o=(e=vde().m(function e(){var o;return vde().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,navigator.clipboard.writeText(r.value);case 1:t.value=!0,n&&clearTimeout(n),n=setTimeout(function(){t.value=!1},2500),e.n=3;break;case 2:e.p=2,o=e.v,console.error(o);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){_de(a,o,r,i,l,"next",e)}function l(e){_de(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return o.apply(this,arguments)}}();return Pr(function(){n&&clearTimeout(n)}
2),{campaignUrl:a,copyLinkLabel:s,copyShareLink:f,description:l,goToCollectionLabel:u,linkCopiedLabel:c,shareLinks:p,showCopiedMessage:t,title:i}}},xde=kde,wde=(0,Hb.A)(xde,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",ode,[Mi("article",rde,[Mi("div",ade,[Mi("div",ide,[Mi("div",lde,[Mi("h2",sde,fe(e.title),1),t[1]||(t[1]=Mi("div",{class:"kb-overlay-styles__hero-breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),e.description?(Ai(),Si("div",cde,[Mi("p",ude,fe(e.description),1)])):zi("v-if",!0)])]),t[4]||(t[4]=Mi("div",{class:"kb-overlay-styles__hero-curve"},[Mi("div",{class:"kb-personal-fundraising-share-overlay__hero-curve-color-wrapper"},[Mi("div",{class:"kb-personal-fundraising-share-overlay__hero-curve-color-filler"}),Mi("svg",{role:"presentation",viewBox:"0 0 720 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M0 0V42.4078C238.547 71.2459 479.584 82.0555 720 74.8278V0H0Z"})])])],-1)),Mi("div",dde,[Mi("ul",pde,[(Ai(!0),Si(gi,null,Yr(e.shareLinks,function(e){return Ai(),Si("li",{key:e.id},[Mi("a",{class:"kb-personal-fundraising-share-overlay__item",href:e.href,target:e.target,rel:e.rel},[Mi("span",{class:Y(["kb-personal-fundraising-share-overlay__icon kb-ui-icon",e.iconClass]),"aria-hidden":"true"},null,2),Mi("span",mde,fe(e.label),1)],8,fde)])}),128)),Mi("li",null,[Mi("button",{type:"button",class:"kb-personal-fundraising-share-overlay__item",onClick:t[0]||(t[0]=function(){return e.copyShareLink&&e.copyShareLink.apply(e,arguments)})},[t[2]||(t[2]=Mi("span",{class:"kb-personal-fundraising-share-overlay__icon kb-personal-fundraising-share-overlay__icon--disc","aria-hidden":"true"},[Mi("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.32818 6.67089L7.99672 6.33944L8.32818 6.00798L8.65963 6.33944C9.48339 7.1632 9.48339 8.49878 8.65963 9.32254L5.34507 12.6371C4.52131 13.4609 3.18572 13.4609 2.36196 12.6371C1.5382 11.8133 1.5382 10.4778 2.36196 9.654L4.68216 7.33381L5.01361 7.66526L2.69342 9.98546C2.05271 10.6262 2.05271 11.6649 2.69342 12.3057C3.33412 12.9464 4.37291 12.9464 5.01361 12.3057L8.32818 8.99109C8.96888 8.35038 8.96888 7.3116 8.32818 6.67089Z",fill:"currentColor"}),Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.67089 8.32818L7.00235 8.65963L6.67089 8.99109L6.33944 8.65963C5.51568 7.83587 5.51568 6.50029 6.33944 5.67652L9.654 2.36196C10.4778 1.5382 11.8133 1.5382 12.6371 2.36196C13.4609 3.18572 13.4609 4.52131 12.6371 5.34507L10.3169 7.66526L9.98546 7.33381L12.3057 5.01361C12.9464 4.37291 12.9464 3.33412 12.3057 2.69342C11.6649 2.05271 10.6262 2.05271 9.98546 2.69342L6.6709 6.00798C6.03019 6.64869 6.03019 7.68747 6.67089 8.32818Z",fill:"currentColor"})])],-1)),Mi("span",gde,fe(e.copyLinkLabel),1)])])]),e.showCopiedMessage?(Ai(),Si("p",hde,fe(e.linkCopiedLabel),1)):zi("v-if",!0),e.campaignUrl?(Ai(),Si("a",{key:1,class:"kb-personal-fundraising-share-overlay__go",href:e.campaignUrl},[Mi("span",null,fe(e.goToCollectionLabel),1),t[3]||(t[3]=Mi("span",{class:"kb-ui-icon kb-ui-icon--ui-link","aria-hidden":"true"},null,-1))],8,bde)):zi("v-if",!0)])])])])}]]);var Cde;function Ede(e){return Ede="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ede(e)}function Sde(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ede(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ede(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ede(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tde={name:"PageOverlay",components:(Cde={BurgerMenu:$9,ConfirmChanges:_I,ConfirmDeleteProfile:KI,OpretHoldOverlay:B6,ChangesSaved:xC,SearchOverlay:aee,ProfileOverlay:Hee,ProfileEditedOverlay:tte,DeleteGlobalProfileOverlay:yte,LoginOverlay:q3,DonationReceiptOverlay:rH,FilterOverlay:Nte,HoldetsDeltagere:Sae,HoldetsDonationer:jae,HoldetsLys:rae,ArticleOverlay:zte,SignUpForm:Ine,ProfileDeleted:Ale,FlowEditModal:FG,PersonalDonation:Poe,MemberListOverlayCancerforum:ire,MemberListOverlayFrivillig:w5,MemberOverlay:H5,MemberOverlayProfileCard:s8,ClosedGroupOverlay:Ere,CreateFolderOverlay:WO,CreateNewFileOverlay:IM,UploadNewFileOverlay:Hre,ConfirmDeleteOverlay:RI,DeleteRoleOverlay:fV,MoveFileOverlay:S8},Sde(Sde(Sde(Sde(Sde(Sde(Sde(Sde(Sde(Sde(Cde,"ClosedGroupOverlay",Ere),"DeleteFrivilligjobOverlay",nF),"TilmeldHoldKvittering",tie),"TilmeldProfilKvittering",Ile),"HoldOprettelseKvittering",pie),"HoldetsRoundCounterOverlay",ple),"HoldRedigerKvittering",_ie),"DeleteCancerProfileModal",vR),"DeletePostOverlay",pF),"DeleteCommentOverlay",TR),Sde(Sde(Sde(Sde(Sde(Sde(Sde(Sde(Sde(Sde(Cde,"DeleteEventModal",FR),"FrivilligeShopWrongRoleModal",aY),"CalendarOverlay",Ule),"FVLConfirmDeleteProfile",LQ),"FundraisingQrCodeOverlay",gQ),"PersonalFundraisingMobilePayOverlay",Tse),"StafetMailEditorOverlay",wce),"SourceOverlay",nde),"PersonalFundraisingShareOverlay",wde),"ProductAddedOverlay",vue)),setup:function(){var e,t,n=Af(),o=bl(function(){return n.state.main.page_overlay_content}),r=bl(function(){return null===n.state.main.page_overlay_open?"ready":n.state.main.page_overlay_open?"open":"closed"}),a=bl(function(){return"open"===r.value}),i=Kt(null);function l(){document.querySelector(".kb-page-overlay__close"),e=document.querySelector('[data-order="first"]'),t=(t=document.querySelector('[data-order="last"]'))||e}return Nr(function(){l()}),Dr(function(){document.querySelector(".kb-page-overlay__close"),e=document.querySelector('[data-order="first"]'),t=(t=document.querySelector('[data-order="last"]'))||e,function(e){var t,n,o,r=document.querySelector('[draggable="true"]'),a=document.querySelector(".kb-page-overlay__content");r.addEventListener("touchstart",function(e){n=n||+getComputedStyle(a).getPropertyValue("top").replace("px",""),t=0}),r.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation(),o=e.touches[0].clientY,t&&t<o?(a.style.top=o-t+n+"px",a.style.transitionDuration="1ms"):t=o}),r.addEventListener("touchend",function(){t+100<o&&e.commit("main/close_page_overlay"),a.style.top="",a.style.transitionDuration=""})}(n),_C({closing:function(){n.commit("main/reset_page_overlay")}},{persistent:!0})}),{closeOverlay:function(){n.dispatch("main/closePageOverlay"),n.dispatch("frivillige/setActiveOverlayMode",{mode:""}),n.dispatch("frivillige/setEditModeActive",{mode:!1})},overlayContentRef:i,displayOverlayContent:a,tabTrap:function(n){var o;
2n.shiftKey||"close"!==n.target.dataset.order||(n.preventDefault(),e?e.focus():document.querySelector("[data-order=first]")?(e=document.querySelector("[data-order=first]")).focus():null!==(o=i.value)&&void 0!==o&&o.getEditor()&&i.value.getEditor().focus()),n.shiftKey&&"close"===n.target.dataset.order&&(n.preventDefault(),t?t.focus():document.querySelector("[data-order=last]")&&(t=document.querySelector("[data-order=last]")).focus())},overlayContent:o,setTabTargets:l,overlayState:r}}},Ide=Tde,Bde=(0,Hb.A)(Ide,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{role:"dialog","aria-modal":"true",class:Y(["kb-page-overlay__container",e.overlayState]),onKeydown:t[3]||(t[3]=cc(function(){return e.closeOverlay&&e.closeOverlay.apply(e,arguments)},["esc"]))},[Mi("div",{class:"kb-page-overlay__cover",onClick:t[0]||(t[0]=function(){return e.closeOverlay&&e.closeOverlay.apply(e,arguments)})}),Mi("div",E9,[t[5]||(t[5]=Mi("button",{class:"kb-page-overlay__close-slider-grip",draggable:"true","aria-label":"luk-artikel"},null,-1)),e.displayOverlayContent?(Ai(),Si(gi,{key:0},[Mi("button",{class:"kb-page-overlay__close","aria-label":"Luk artikel",onKeydown:t[1]||(t[1]=cc(function(){return e.tabTrap&&e.tabTrap.apply(e,arguments)},["tab"])),"data-order":"close",onClick:t[2]||(t[2]=function(){return e.closeOverlay&&e.closeOverlay.apply(e,arguments)})},(i=t[4]||(t[4]=[Mi("div",{class:"kb-ui-icon kb-ui-icon--ui-close"},null,-1)]),function(e){if(Array.isArray(e))return C9(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return C9(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C9(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),32),(Ai(),Ti(Kr(e.overlayContent),{ref:"overlayContentRef",onSetTabTargets:e.setTabTargets},null,40,["onSetTabTargets"]))],64)):zi("v-if",!0)])],34);var i}]]);var Ode=".kb-component--page-overlay",Lde=document.querySelector(Ode);function Dde(e){return function(e){if(Array.isArray(e))return Mde(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Mde(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mde(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mde(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Nde={class:"kb-personal-fundraising__about"},Pde={class:"kb-personal-fundraising__form-title"},Rde={class:"kb-personal-fundraising__form-wrapper","aria-live":"polite"},Fde={class:"kb-personal-fundraising__input-wrapper"},Vde={class:"kb-personal-fundraising__input-wrapper"},zde={class:"kb-personal-fundraising__form-wrapper","aria-live":"polite"},Ude={class:"kb-personal-fundraising__input-wrapper"},jde={key:0,class:"Form__Element FormTextbox ValidationRequired"},Hde={for:"personalFundraising__birth",class:"Form__Element__Caption kb-personal-fundraising__label"},qde={key:0,class:"kb-forms Form__Element__ValidationError"},Gde={class:"kb-personal-fundraising__input-wrapper"},Kde={key:0,class:"Form__Element FormTextbox ValidationRequired"},Zde={for:"personalFundraising__death",class:"Form__Element__Caption kb-personal-fundraising__label"},Wde={key:0,class:"kb-forms Form__Element__ValidationError"},$de={class:"kb-personal-fundraising__form-wrapper","aria-live":"polite"},Yde={key:0,class:"kb-personal-fundraising__input-wrapper"},Jde={key:1,class:"kb-personal-fundraising__input-wrapper"},Xde={class:"Form__Element FormTextbox ValidationRequired"},Qde={for:"personalFundraising__endDate",class:"Form__Element__Caption kb-personal-fundraising__label"},epe={key:0,class:"kb-forms Form__Element__ValidationError"},tpe={key:2,class:"kb-personal-fundraising__input-wrapper"},npe={key:3,class:"kb-personal-fundraising__input-wrapper"},ope={key:0,class:"kb-personal-fundraising__about__card"},rpe={class:"kb-personal-fundraising__about__card__content-container"},ape={class:"kb-personal-fundraising__about__card__content"},ipe={class:"kb-personal-fundraising__about__card__title"},lpe={class:"kb-personal-fundraising__about__card__paragraph"},spe={class:"kb-personal-fundraising__about__card__button-wrapper"},cpe=["href","title"],upe={class:"kb-personal-fundraising__personalization-section"},dpe={id:"fundraisingImageUploadDesc"},ppe={class:"Form__Element__Caption kb-personal-fundraising__upload-button-label kb-personal-fundraising__label"},fpe={class:"Form__Element FormFileUpload kb-personal-fundraising__upload-button"},mpe=["src"],gpe={class:"kb-personal-fundraising__upload-showcase__button-content"},hpe={key:0,class:"kb-personal-fundraising__upload-showcase__upload-text"},bpe={class:"kb-personal-fundraising__upload-showcase__remove-upload"},vpe={key:0,class:"kb-personal-fundraising__icon"},ype={key:1,class:"kb-personal-fundraising__label-content"},_pe={key:2,class:"kb-personal-fundraising__label-content"},Ape=["disabled"],kpe={key:0,class:"kb-forms Form__Element__ValidationError Form__Element__ValidationError--image-upload"},xpe={key:0,class:"Form__Element FormTextbox FormTextbox--Textarea"},wpe={for:"fundraiseElaboration",class:"Form__Element__Caption"},Cpe=["placeholder"],Epe={key:0,class:"kb-forms Form__Element__ValidationError"},Spe={key:0,class:"kb-personal-fundraising__postalcode"},Tpe={class:"kb-personal-fundraising__image-upload"},Ipe={id:"fundraisingImageUploadDesc2"},Bpe=["onClick"],Ope=["src"],Lpe={class:"kb-personal-fundraising__upload-showcase__button-content"},Dpe={key:0,class:"kb-personal-fundraising__upload-showcase__upload-text"},Mpe={class:"kb-personal-fundraising__upload-showcase__remove-upload"},Npe={class:"kb-personal-fundraising__upload-showcase"},Ppe={class:"Form__Element FormFileUpload kb-personal-fundraising__upload-button"},Rpe={key:0,class:"kb-forms Form__Element__ValidationError Form__Element__ValidationError--image-upload"},Fpe={key:1,class:"kb-forms Form__Element__ValidationError Form__Element__ValidationError--image-upload"},Vpe={key:1,class:"kb-personal-fundraising__user-consent"},zpe={class:"consent-checkbox-container kb-sign-up-form__kb-form__checkbox-container"},Upe={class:"consent-checkbox-container__right"},jpe={for:"user-consent",class:"kb-sign-up-form__kb-form__radio-label"},Hpe={key:0},qpe={class:"consent-checkbox-container__right__text-label"},Gpe=["label"],Kpe={key:0,class:"kb-forms Form__Element__ValidationError"},Zpe={class:"kb-personal-fundraising__notification"},Wpe={class:"kb-sign-up-form__kb-form__checkbox-container"},$pe={for:"notification-sms",class:"kb-sign-up-form__kb-form__radio-label"},Ype={key:0,class:"kb-personal-fundraising__input-wrapper"},Jpe={class:"kb-sign-up-form__kb-form__checkbox-container"},Xpe={for:"notification-email",class:"kb-sign-up-form__kb-form__radio-label"},Qpe={class:"kb-personal-fundraising__continue-info"},efe={class:"kb-personal-fundraising__continue-info__title"},tfe={class:"kb-personal-fundraising__continue-info__text"},nfe={class:"kb-personal-fundraising__navigation"},ofe=["disabled"],rfe={key:0,class:"kb-spinner-overlay"};function afe(e){return afe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},afe(e)}function ife(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function lfe(e){return ife(1,arguments),e instanceof Date||"object"===afe(e)&&"[object Date]"===Object.prototype.toString.call(e)}function sfe(e){ife(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===afe(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.
21 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function cfe(e){if(ife(1,arguments),!lfe(e)&&"number"!=typeof e)return!1;var t=sfe(e);return!isNaN(Number(t))}function ufe(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function dfe(e,t){return ife(2,arguments),function(e,t){ife(2,arguments);var n=sfe(e).getTime(),o=ufe(t);return new Date(n+o)}(e,-ufe(t))}function pfe(e){ife(1,arguments);var t=sfe(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function ffe(e){ife(1,arguments);var t=sfe(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=pfe(o),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var i=pfe(a);return t.getTime()>=r.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function mfe(e){ife(1,arguments);var t=sfe(e),n=pfe(t).getTime()-function(e){ife(1,arguments);var t=ffe(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),pfe(n)}(t).getTime();return Math.round(n/6048e5)+1}var gfe={};function hfe(){return gfe}function bfe(e,t){var n,o,r,a,i,l,s,c;ife(1,arguments);var u=hfe(),d=ufe(null!==(n=null!==(o=null!==(r=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==o?o:null===(s=u.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=sfe(e),f=p.getUTCDay(),m=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function vfe(e,t){var n,o,r,a,i,l,s,c;ife(1,arguments);var u=sfe(e),d=u.getUTCFullYear(),p=hfe(),f=ufe(null!==(n=null!==(o=null!==(r=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:p.firstWeekContainsDate)&&void 0!==o?o:null===(s=p.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,f),m.setUTCHours(0,0,0,0);var g=bfe(m,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var b=bfe(h,t);return u.getTime()>=g.getTime()?d+1:u.getTime()>=b.getTime()?d:d-1}function yfe(e,t){ife(1,arguments);var n=sfe(e),o=bfe(n,t).getTime()-function(e,t){var n,o,r,a,i,l,s,c;ife(1,arguments);var u=hfe(),d=ufe(null!==(n=null!==(o=null!==(r=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==o?o:null===(s=u.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=vfe(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),bfe(f,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function _fe(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}const Afe=function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return _fe("yy"===t?o%100:o,t.length)},kfe=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):_fe(n+1,2)},xfe=function(e,t){return _fe(e.getUTCDate(),t.length)},wfe=function(e,t){return _fe(e.getUTCHours()%12||12,t.length)},Cfe=function(e,t){return _fe(e.getUTCHours(),t.length)},Efe=function(e,t){return _fe(e.getUTCMinutes(),t.length)},Sfe=function(e,t){return _fe(e.getUTCSeconds(),t.length)},Tfe=function(e,t){var n=t.length,o=e.getUTCMilliseconds();return _fe(Math.floor(o*Math.pow(10,n-3)),t.length)};var Ife={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Afe(e,t)},Y:function(e,t,n,o){var r=vfe(e,o),a=r>0?r:1-r;return"YY"===t?_fe(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):_fe(a,t.length)},R:function(e,t){return _fe(ffe(e),t.length)},u:function(e,t){return _fe(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return _fe(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return _fe(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return kfe(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return _fe(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=yfe(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):_fe(r,t.length)},I:function(e,t,n){var o=mfe(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):_fe(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):xfe(e,t)},D:function(e,t,n){var o=function(e){ife(1,arguments);var t=sfe(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):_fe(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),a=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return _fe(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),a=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return _fe(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return _fe(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?"noon":0===r?"midnight":r/12>
vendor: 3,717 bytes, line 2
2=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return wfe(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Cfe(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):_fe(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):_fe(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Efe(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Sfe(e,t)},S:function(e,t){return Tfe(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ofe(r);case"XXXX":case"XX":return Lfe(r);default:return Lfe(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ofe(r);case"xxxx":case"xx":return Lfe(r);default:return Lfe(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Bfe(r,":");default:return"GMT"+Lfe(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Bfe(r,":");default:return"GMT"+Lfe(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return _fe(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return _fe((o._originalDate||e).getTime(),t.length)}};function Bfe(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),a=o%60;if(0===a)return n+String(r);var i=t||"";return n+String(r)+i+_fe(a,2)}function Ofe(e,t){return e%60==0?(e>0?"-":"+")+_fe(Math.abs(e)/60,2):Lfe(e,t)}function Lfe(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+_fe(Math.floor(r/60),2)+n+_fe(r%60,2)}const Dfe=Ife;var Mfe=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Nfe=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const Pfe={p:Nfe,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],a=o[2];if(!a)return Mfe(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Mfe(r,t)).replace("{{time}}",Nfe(a,t))}};function Rfe(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Ffe=["D","DD"],Vfe=["YY","YYYY"];function zfe(e){return-1!==Ffe.indexOf(e)}function Ufe(e){return-1!==Vfe.indexOf(e)}function jfe(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
vendor: 7,637 bytes, line 2
2concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Hfe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function qfe(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Gfe={date:qfe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:qfe({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:qfe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Kfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Zfe(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,a=null!=n&&n.width?String(n.width):r;o=e.formattingValues[a]||e.formattingValues[r]}else{var i=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[i]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const Wfe={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Zfe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Zfe({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Zfe({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Zfe({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Zfe({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function $fe(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;var i,l=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,function(e){return e.test(l)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,function(e){return e.test(l)});return i=e.valueCallback?e.valueCallback(c):c,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(l.length)}}}var Yfe,Jfe={ordinalNumber:(Yfe={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Yfe.matchPattern);if(!n)return null;var o=n[0],r=e.match(Yfe.parsePattern);if(!r)return null;var a=Yfe.valueCallback?Yfe.valueCallback(r[0]):r[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(o.length)}}),era:$fe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:$fe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:$fe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:$fe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:$fe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Xfe={code:"en-US",formatDistance:function(e,t,n){var o,r=Hfe[e];
2return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:Gfe,formatRelative:function(e,t,n,o){return Kfe[e]},localize:Wfe,match:Jfe,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Qfe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tme=/^'([^]*?)'?$/,nme=/''/g,ome=/[a-zA-Z]/;function rme(e,t,n){var o,r,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,_;ife(2,arguments);var A=String(t),k=hfe(),x=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:k.locale)&&void 0!==o?o:Xfe,w=ufe(null!==(a=null!==(i=null!==(l=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:k.firstWeekContainsDate)&&void 0!==i?i:null===(d=k.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=ufe(null!==(f=null!==(m=null!==(g=null!==(h=null==n?void 0:n.weekStartsOn)&&void 0!==h?h:null==n||null===(b=n.locale)||void 0===b||null===(v=b.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==g?g:k.weekStartsOn)&&void 0!==m?m:null===(y=k.locale)||void 0===y||null===(_=y.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==f?f:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var E=sfe(e);if(!cfe(E))throw new RangeError("Invalid time value");var S=dfe(E,Rfe(E)),T={firstWeekContainsDate:w,weekStartsOn:C,locale:x,_originalDate:E};return A.match(eme).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,Pfe[t])(e,x.formatLong):e}).join("").match(Qfe).map(function(o){if("''"===o)return"'";var r,a,i=o[0];if("'"===i)return(a=(r=o).match(tme))?a[1].replace(nme,"'"):r;var l=Dfe[i];if(l)return null!=n&&n.useAdditionalWeekYearTokens||!Ufe(o)||jfe(o,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!zfe(o)||jfe(o,t,String(e)),l(S,o,x.localize,T);if(i.match(ome))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return o}).join("")}function ame(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ime(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ame(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ame(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function lme(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function sme(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cme(e,t){return cme=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cme(e,t)}function ume(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cme(e,t)}function dme(e){return dme=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dme(e)}function pme(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pme=function(){return!!e})()}function fme(e){var t=pme();return function(){var n,o=dme(e);
vendor: 16,384 bytes, line 2
2if(t){var r=dme(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==afe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sme(e)}(this,n)}}function mme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gme(e){var t=function(e){if("object"!=afe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=afe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==afe(t)?t:t+""}function hme(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,gme(o.key),o)}}function bme(e,t,n){return t&&hme(e.prototype,t),n&&hme(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vme(e,t,n){return(t=gme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yme=function(){function e(){mme(this,e),vme(this,"priority",void 0),vme(this,"subPriority",0)}return bme(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),_me=function(e){ume(n,e);var t=fme(n);function n(e,o,r,a,i){var l;return mme(this,n),(l=t.call(this)).value=e,l.validateValue=o,l.setValue=r,l.priority=a,i&&(l.subPriority=i),l}return bme(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(yme),Ame=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",10),vme(sme(e),"subPriority",-1),e}return bme(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(yme),kme=function(){function e(){mme(this,e),vme(this,"incompatibleTokens",void 0),vme(this,"priority",void 0),vme(this,"subPriority",void 0)}return bme(e,[{key:"run",value:function(e,t,n,o){var r=this.parse(e,t,n,o);return r?{setter:new _me(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),xme=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",140),vme(sme(e),"incompatibleTokens",["R","u","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(kme),wme=(Math.pow(10,8),6e4),Cme=36e5,Eme=/^(1[0-2]|0?\d)/,Sme=/^(3[0-1]|[0-2]?\d)/,Tme=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ime=/^(5[0-3]|[0-4]?\d)/,Bme=/^(2[0-3]|[0-1]?\d)/,Ome=/^(2[0-4]|[0-1]?\d)/,Lme=/^(1[0-1]|0?\d)/,Dme=/^(1[0-2]|0?\d)/,Mme=/^[0-5]?\d/,Nme=/^[0-5]?\d/,Pme=/^\d/,Rme=/^\d{1,2}/,Fme=/^\d{1,3}/,Vme=/^\d{1,4}/,zme=/^-?\d+/,Ume=/^-?\d/,jme=/^-?\d{1,2}/,Hme=/^-?\d{1,3}/,qme=/^-?\d{1,4}/,Gme=/^([+-])(\d{2})(\d{2})?|Z/,Kme=/^([+-])(\d{2})(\d{2})|Z/,Zme=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wme=/^([+-])(\d{2}):(\d{2})|Z/,$me=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Yme(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Jme(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Xme(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var o="+"===n[1]?1:-1,r=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:o*(r*Cme+a*wme+1e3*i),rest:t.slice(n[0].length)}}function Qme(e){return Jme(zme,e)}function ege(e,t){switch(e){case 1:return Jme(Pme,t);case 2:return Jme(Rme,t);case 3:return Jme(Fme,t);case 4:return Jme(Vme,t);default:return Jme(new RegExp("^\\d{1,"+e+"}"),t)}}function tge(e,t){switch(e){case 1:return Jme(Ume,t);case 2:return Jme(jme,t);case 3:return Jme(Hme,t);case 4:return Jme(qme,t);default:return Jme(new RegExp("^-?\\d{1,"+e+"}"),t)}}function nge(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function oge(e,t){var n,o=t>0,r=o?t:1-t;if(r<=50)n=e||100;else{var a=r+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return o?n:1-n}function rge(e){return e%400==0||e%4==0&&e%100!=0}var age=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",130),vme(sme(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Yme(ege(4,e),o);case"yo":return Yme(n.ordinalNumber(e,{unit:"year"}),o);default:return Yme(ege(t.length,e),o)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var r=oge(n.year,o);return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(kme),ige=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",130),vme(sme(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Yme(ege(4,e),o);case"Yo":return Yme(n.ordinalNumber(e,{unit:"year"}),o);default:return Yme(ege(t.length,e),o)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,o){var r=vfe(e,o);if(n.isTwoDigitYear){var a=oge(n.year,r);return e.setUTCFullYear(a,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),bfe(e,o)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),bfe(e,o)}}]),n}(kme),lge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",130),vme(sme(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t){return tge("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),pfe(o)}}]),n}(kme),sge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",130),vme(sme(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t){return tge("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(kme),cge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",120),vme(sme(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return ege(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(kme),uge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",120),vme(sme(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return ege(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(kme),dge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),vme(sme(e),"priority",110),e}return bme(n,[{key:"parse",value:function(e,t,n){var o=function(e){return e-1};switch(t){case"M":return Yme(Jme(Eme,e),o);case"MM":return Yme(ege(2,e),o);case"Mo":return Yme(n.ordinalNumber(e,{unit:"month"}),o);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(kme),pge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",110),vme(sme(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){var o=function(e){return e-1};switch(t){case"L":return Yme(Jme(Eme,e),o);case"LL":return Yme(ege(2,e),o);case"Lo":return Yme(n.ordinalNumber(e,{unit:"month"}),o);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(kme),fge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",100),vme(sme(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Jme(Ime,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,o){return bfe(function(e,t,n){ife(2,arguments);var o=sfe(e),r=ufe(t),a=yfe(o,n)-r;return o.setUTCDate(o.getUTCDate()-7*a),o}(e,n,o),o)}}]),n}(kme),mge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",100),vme(sme(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Jme(Ime,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return pfe(function(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t),r=mfe(n)-o;return n.setUTCDate(n.getUTCDate()-7*r),n}(e,n))}}]),n}(kme),gge=[31,28,31,30,31,30,31,31,30,31,30,31],hge=[31,29,31,30,31,30,31,31,30,31,30,31],bge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",90),vme(sme(e),"subPriority",1),vme(sme(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Jme(Sme,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){var n=rge(e.getUTCFullYear()),o=e.getUTCMonth();return n?t>=1&&t<=hge[o]:t>=1&&t<=gge[o]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(kme),vge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",90),vme(sme(e),"subpriority",1),vme(sme(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Jme(Tme,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return rge(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(kme);function yge(e,t,n){var o,r,a,i,l,s,c,u;ife(2,arguments);var d=hfe(),p=ufe(null!==(o=null!==(r=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(l=n.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==o?o:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=sfe(e),m=ufe(t),g=((m%7+7)%7<p?7:0)+m-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+g),f}var _ge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",90),vme(sme(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=yge(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(kme),Age=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"pri
2ority",90),vme(sme(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Yme(ege(t.length,e),r);case"eo":return Yme(n.ordinalNumber(e,{unit:"day"}),r);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=yge(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(kme),kge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",90),vme(sme(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Yme(ege(t.length,e),r);case"co":return Yme(n.ordinalNumber(e,{unit:"day"}),r);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=yge(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(kme),xge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",90),vme(sme(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return ege(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Yme(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return Yme(n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Yme(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);default:return Yme(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){ife(2,arguments);var n=ufe(t);n%7==0&&(n-=7);var o=sfe(e),r=((n%7+7)%7<1?7:0)+n-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+r),o}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(kme),wge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",80),vme(sme(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(nge(n),0,0,0),e}}]),n}(kme),Cge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",80),vme(sme(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb"
vendor: 9,361 bytes, line 2
2:case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(nge(n),0,0,0),e}}]),n}(kme),Ege=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",80),vme(sme(e),"incompatibleTokens",["a","b","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(nge(n),0,0,0),e}}]),n}(kme),Sge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",70),vme(sme(e),"incompatibleTokens",["H","K","k","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Jme(Dme,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(kme),Tge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",70),vme(sme(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Jme(Bme,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(kme),Ige=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",70),vme(sme(e),"incompatibleTokens",["h","H","k","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Jme(Lme,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(kme),Bge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",70),vme(sme(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Jme(Ome,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e}}]),n}(kme),Oge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",60),vme(sme(e),"incompatibleTokens",["t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Jme(Mme,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(kme),Lge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",50),vme(sme(e),"incompatibleTokens",["t","T"]),e}return bme(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Jme(Nme,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ege(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(kme),Dge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",30),vme(sme(e),"incompatibleTokens",["t","T"]),e}return bme(n,[{key:"parse",value:function(e,t){return Yme(ege(t.length,e),function(e){return Math.floor(e*Math.pow(10,3-t.length))})}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(kme),Mge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",10),vme(sme(e),"incompatibleTokens",["t","T","x"]),e}return bme(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Xme(Gme,e);case"XX":return Xme(Kme,e);case"XXXX":return Xme(Zme,e);case"XXXXX":return Xme($me,e);default:return Xme(Wme,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(kme),Nge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",10),vme(sme(e),"incompatibleTokens",["t","T","X"]),e}return bme(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Xme(Gme,e);case"xx":return Xme(Kme,e);case"xxxx":return Xme(Zme,e);case"xxxxx":return Xme($me,e);default:return Xme(Wme,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(kme),Pge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",40),vme(sme(e),"incompatibleTokens","*"),e}return bme(n,[{key:"parse",value:function(e){return Qme(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(kme),Rge=function(e){ume(n,e);var t=fme(n);function n(){var e;mme(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return vme(sme(e=t.call.apply(t,[this].concat(r))),"priority",20),vme(sme(e),"incompatibleTokens","*"),e}return bme(n,[{key:"parse",value:function(e){return Qme(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(kme),Fge={G:new xme,y:new age,Y:new ige,R:new lge,u:new sge,Q:new cge,q:new uge,M:new dge,L:new pge,w:new fge,I:new mge,d:new bge,D:new vge,E:new _ge,e:new Age,c:new kge,i:new xge,a:new wge,b:new Cge,B:new Ege,h:new Sge,H:new Tge,K:new Ige,k:new Bge,m:new Oge,s:new Lge,S:new Dge,X:new Mge,x:new Nge,t:new Pge,T:new Rge},Vge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Uge=/^'([^]*?)'?$/,jge=/''/g,Hge=/\S/,qge=/[a-zA-Z]/;function Gge(e,t,n,o){var r,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,_,A;ife(3,arguments);var k=String(e),x=String(t),w=hfe(),C=null!==(r=null!==(a=null==o?void 0:o.locale)&&void 0!==a?a:w.locale)&&void 0!==r?r:Xfe;if(!C.match)throw new RangeError("locale must contain match property");var E=ufe(null!==(i=null!==(l=null!==(s=null!==(c=null==o?void 0:o.firstWeekContainsDate)&&void 0!==c?c:null==o||null===(u=o.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:w.firstWeekContainsDate)&&void 0!==l?l:null===(p=w.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=ufe(null!==(m=null!==(g=null!==(h=null!==(b=null==o?void 0:o.weekStartsOn)&&void 0!==b?b:null==o||null===(v=o.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==h?h:w.weekStartsOn)&&void 0!==g?g:null===(_=w.locale)||void 0===_||null===(A=_.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==m?m:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===x)return""===k?sfe(n):new Date(NaN);var T,I={firstWeekContainsDate:E,weekStartsOn:S,locale:C},B=[new Ame],O=x.match(zge).map(function(e){var t=e[0];return t in Pfe?(0,Pfe[t])(e,C.formatLong):e}).join("").match(Vge),L=[],D=ime(O);try{var M=function(){var t=T.value;null!=o&&o.useAdditionalWeekYearTokens||!Ufe(t)||jfe(t,x,e),null!=o&&o.useAdditionalDayOfYearTokens||!zfe(t)||jfe(t,x,e);var n=t[0],r=Fge[n];if(r){var a=r.incompatibleTokens;if(Array.isArray(a)){var i=L.find(function(e){return a.includes(e.token)||e.token===n});
2if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&L.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));L.push({token:n,fullToken:t});var l=r.run(k,t,C.match,I);if(!l)return{v:new Date(NaN)};B.push(l.setter),k=l.rest}else{if(n.match(qge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Uge)[1].replace(jge,"'")),0!==k.indexOf(t))return{v:new Date(NaN)};k=k.slice(t.length)}};for(D.s();!(T=D.n()).done;){var N=M();if("object"===afe(N))return N.v}}catch(e){D.e(e)}finally{D.f()}if(k.length>0&&Hge.test(k))return new Date(NaN);var P=B.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return B.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),R=sfe(n);if(isNaN(R.getTime()))return new Date(NaN);var F,V=dfe(R,Rfe(R)),z={},U=ime(P);try{for(U.s();!(F=U.n()).done;){var j=F.value;if(!j.validate(V,I))return new Date(NaN);var H=j.set(V,z,I);Array.isArray(H)?(V=H[0],lme(z,H[1])):V=H}}catch(e){U.e(e)}finally{U.f()}return V}function Kge(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t),r=n.getFullYear(),a=n.getDate(),i=new Date(0);i.setFullYear(r,o,15),i.setHours(0,0,0,0);var l=function(e){ife(1,arguments);var t=sfe(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(i);return n.setMonth(o,Math.min(a,l)),n}function Zge(e,t){if(ife(2,arguments),"object"!==afe(t)||null===t)throw new RangeError("values parameter must be an object");var n=sfe(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Kge(n,t.month)),null!=t.date&&n.setDate(ufe(t.date)),null!=t.hours&&n.setHours(ufe(t.hours)),null!=t.minutes&&n.setMinutes(ufe(t.minutes)),null!=t.seconds&&n.setSeconds(ufe(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(ufe(t.milliseconds)),n)}function Wge(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t);return n.setHours(o),n}function $ge(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t);return n.setMinutes(o),n}function Yge(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t);return n.setSeconds(o),n}function Jge(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t);return n.setMilliseconds(o),n}function Xge(e,t){ife(2,arguments);var n=sfe(e),o=sfe(t);return n.getTime()<o.getTime()}function Qge(e,t){ife(2,arguments);var n=sfe(e),o=sfe(t);return n.getTime()===o.getTime()}function ehe(e,t){ife(2,arguments);var n=sfe(e),o=sfe(t);return n.getTime()>o.getTime()}function the(e){return ife(1,arguments),sfe(e).getHours()}function nhe(e){return ife(1,arguments),sfe(e).getMinutes()}function ohe(e){return ife(1,arguments),sfe(e).getSeconds()}function rhe(e){return ife(1,arguments),sfe(e).getFullYear()}function ahe(e){return ife(1,arguments),sfe(e).getMonth()}var ihe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},lhe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,she=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,che=/^([+-])(\d{2})(?::?(\d{2}))?$/;function uhe(e){return e?parseInt(e):1}function dhe(e){return e&&parseFloat(e.replace(",","."))||0}var phe=[31,null,31,30,31,30,31,31,30,31,30,31];function fhe(e){return e%400==0||e%4==0&&e%100!=0}function mhe(e,t){var n;ife(1,arguments);var o=e||{},r=sfe(o.start),a=sfe(o.end).getTime();if(!(r.getTime()<=a))throw new RangeError("Invalid interval");var i=[],l=r;l.setHours(0,0,0,0);var s=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)i.push(sfe(l)),l.setDate(l.getDate()+s),l.setHours(0,0,0,0);return i}function ghe(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),a=new Date(n.getTime());return a.setMonth(n.getMonth()+o+1,0),r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function hhe(e,t){var n,o,r,a,i,l,s,c;ife(1,arguments);
2var u=hfe(),d=ufe(null!==(n=null!==(o=null!==(r=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==o?o:null===(s=u.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=sfe(e),f=p.getDay(),m=(f<d?7:0)+f-d;return p.setDate(p.getDate()-m),p.setHours(0,0,0,0),p}function bhe(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}function vhe(e,t){return ife(2,arguments),ghe(e,-ufe(t))}function yhe(e,t){return ife(2,arguments),ghe(e,12*ufe(t))}function _he(e,t){return ife(2,arguments),yhe(e,-ufe(t))}function Ahe(e,t){ife(2,arguments);var n=sfe(e),o=ufe(t);return isNaN(o)?new Date(NaN):o?(n.setDate(n.getDate()+o),n):n}function khe(e){ife(1,arguments);var t=sfe(e);return t.setHours(0,0,0,0),t}function xhe(e,t){if(ife(2,arguments),!t||"object"!==afe(t))return new Date(NaN);var n=t.years?ufe(t.years):0,o=t.months?ufe(t.months):0,r=t.weeks?ufe(t.weeks):0,a=t.days?ufe(t.days):0,i=t.hours?ufe(t.hours):0,l=t.minutes?ufe(t.minutes):0,s=t.seconds?ufe(t.seconds):0,c=sfe(e),u=o||n?ghe(c,o+12*n):c,d=a||r?Ahe(u,a+7*r):u,p=1e3*(s+60*(l+60*i));return new Date(d.getTime()+p)}function whe(e){return ife(1,arguments),hhe(e,{weekStartsOn:1})}function Che(){return Ai(),Si("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Mi("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),Mi("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),Mi("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),Mi("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function Ehe(){return Ai(),Si("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Mi("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),Mi("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function She(){return Ai(),Si("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Mi("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function The(){return Ai(),Si("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Mi("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Ihe(){return Ai(),Si("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Mi("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),Mi("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function Bhe(){return Ai(),Si("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
2currentColor","aria-hidden":"true",class:"dp__icon"},[Mi("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Ohe(){return Ai(),Si("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Mi("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function Lhe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Che.compatConfig={MODE:3},Ehe.compatConfig={MODE:3},She.compatConfig={MODE:3},The.compatConfig={MODE:3},Ihe.compatConfig={MODE:3},Bhe.compatConfig={MODE:3},Ohe.compatConfig={MODE:3};var Dhe,Mhe={exports:{}};(Dhe=Mhe).exports=function(e){return e&&e.__esModule?e:{default:e}},Dhe.exports.__esModule=!0,Dhe.exports.default=Dhe.exports;var Nhe=Mhe.exports,Phe={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default}(Phe,Phe.exports);const Rhe=Lhe(Phe.exports);var Fhe={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default}(Fhe,Fhe.exports);const Vhe=Lhe(Fhe.exports);var zhe={year:0,month:1,day:2,hour:3,minute:4,second:5},Uhe={};function jhe(e,t,n,o,r,a,i){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(o,r,a,i),l}var Hhe=36e5,qhe={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Ghe(e,t,n){var o,r,a;
2if(!e||(o=qhe.timezoneZ.exec(e)))return 0;if(o=qhe.timezoneHH.exec(e))return Zhe(a=parseInt(o[1],10))?-a*Hhe:NaN;if(o=qhe.timezoneHHMM.exec(e)){a=parseInt(o[1],10);var i=parseInt(o[2],10);return Zhe(a,i)?(r=Math.abs(a)*Hhe+6e4*i,a>0?-r:r):NaN}if(function(e){if(Whe[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Whe[e]=!0,!0}catch{return!1}}(e)){t=new Date(t||Date.now());var l=n?t:function(e){return jhe(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),s=Khe(l,e),c=n?s:function(e,t,n){var o=e.getTime()-t,r=Khe(new Date(o),n);if(t===r)return t;o-=r-t;var a=Khe(new Date(o),n);return r===a?r:Math.max(r,a)}(t,s,e);return-c}return NaN}function Khe(e,t){var n=function(e,t){var n=function(e){if(!Uhe[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"â06â/â25â/â2014â â00â:â00â:â00"===t;Uhe[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Uhe[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),o=[],r=0;r<n.length;r++){var a=zhe[n[r].type];a>=0&&(o[a]=parseInt(n[r].value,10))}return o}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[o[3],o[1],o[2],o[4],o[5],o[6]]}(n,e)}(e,t),o=jhe(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),a=r%1e3;return o-(r-(a>=0?a:1e3+a))}function Zhe(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var Whe={},$he=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Yhe=36e5,Jhe={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:$he};function Xhe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},o=null==n.additionalDigits?2:Rhe(n.additionalDigits);if(2!==o&&1!==o&&0!==o)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,n={},o=Jhe.dateTimePattern.exec(e);if(o?(n.date=o[1],t=o[3]):(o=Jhe.datePattern.exec(e))?(n.date=o[1],t=o[2]):(n.date=null,t=e),t){var r=Jhe.timeZone.exec(t);r?(n.time=t.replace(r[1],""),n.timeZone=r[1].trim()):n.time=t}return n}(e),a=function(e,t){var n,o=Jhe.YYY[t],r=Jhe.YYYYY[t];if(n=Jhe.YYYY.exec(e)||r.exec(e)){var a=n[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(n=Jhe.YY.exec(e)||o.exec(e)){var i=n[1];return{year:100*parseInt(i,10),restDateString:e.slice(i.length)}}return{year:null}}(r.date,o),i=a.year,l=function(e,t){if(null===t)return null;var n,o,r,a;if(0===e.length)return(o=new Date(0)).setUTCFullYear(t),o;if(n=Jhe.MM.exec(e))return o=new Date(0),obe(t,r=parseInt(n[1],10)-1)?(o.setUTCFullYear(t,r),o):new Date(NaN);if(n=Jhe.DDD.exec(e)){o=new Date(0);var i=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=nbe(e);return!(n&&t>366||!n&&t>365)}(t,i)?(o.setUTCFullYear(t,0,i),o):new Date(NaN)}if(n=Jhe.MMDD.exec(e)){o=new Date(0),r=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return obe(t,r,l)?(o.setUTCFullYear(t,r,l),o):new Date(NaN)}if(n=Jhe.Www.exec(e))return rbe(0,a=parseInt(n[1],10)-1)?Qhe(t,a):new Date(NaN);if(n=Jhe.WwwD.exec(e)){a=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return rbe(0,a,s)?Qhe(t,a,s):new Date(NaN)}return null}(a.restDateString,i);if(isNaN(l))return new Date(NaN);if(l){var s,c=l.getTime(),u=0;if(r.time&&(u=function(e){var t,n,o;if(t=Jhe.HH.exec(e))return abe(n=parseFloat(t[1].replace(",",".")))?n%24*Yhe:NaN;if(t=Jhe.HHMM.exec(e))return abe(n=parseInt(t[1],10),o=parseFloat(t[2].replace(",",".")))?n%24*Yhe+6e4*o:NaN;if(t=Jhe.HHMMSS.exec(e)){n=parseInt(t[1],10),o=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return abe(n,o,r)?n%24*Yhe+6e4*o+1e3*r:NaN}return null}(r.time),isNaN(u)))return new Date(NaN);if(r.timeZone||n.timeZone){if(s=Ghe(r.timeZone||n.timeZone,new Date(c+u)),isNaN(s))return new Date(NaN)}else s=Vhe(new Date(c+u)),s=Vhe(new Date(c+u+s));return new Date(c+u+s)}return new Date(NaN)}function Qhe(e,t,n){t=t||0,n=n||0;var o=new Date(0);o.setUTCFullYear(e,0,4);var r=7*t+n+1-(o.getUTCDay()||7);return o.setUTCDate(o.getUTCDate()+r),o}var ebe=[31,28,31,30,31,30,31,31,30,31,30,31],tbe=[31,29,31,30,31,30,31,31,30,31,30,31];function nbe(e){return e%400==0||e%4==0&&e%100!=0}function obe(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var o=nbe(e);if(o&&n>tbe[t]||!o&&n>ebe[t])return!1}return!0}function rbe(e,t,n){return!(t<0||t>52||null!=n&&(n<0||n>6))}function abe(e,t,n){return!(null!=e&&(e<0||e>=25)||null!=t&&(t<0||t>=60)||null!=n&&(n<0||n>=60))}var ibe={exports:{}},lbe={exports:{}};
2!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default}(lbe,lbe.exports);var sbe=lbe.exports;!function(e,t){var n=Nhe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)({},e)};var o=n(sbe);e.exports=t.default}(ibe,ibe.exports);const cbe=Lhe(ibe.exports);function ube(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}const dbe=(e,t)=>{const n=[];for(let t=+e[0];t<=+e[1];t++)n.push({value:+t,text:`${t}`});return t?n.reverse():n},pbe=(e,t,n)=>{const o=[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>new Date(`2017-${e<10?`0${e}`:e}-01T00:00:00+00:00`));if(null!==e)try{const t="long"===n?"MMMM":"MMM";return o.map((n,o)=>{const r=rme(n,t,{locale:e});return{text:r.charAt(0).toUpperCase()+r.substring(1),value:o}})}catch{}const r=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return o.map((e,t)=>{const n=r.format(e);return{text:n.charAt(0).toUpperCase()+n.substring(1),value:t}})},fbe=e=>{const t=Jt(e);return null!=t&&t.$el?null==t?void 0:t.$el:t},mbe=e=>!!Array.isArray(e)&&!!e[0]&&!!e[1],gbe=e=>`"${e}" prop must be enabled!`,hbe=e=>`You need to use array as "model-value" binding in order to support "${e}"`,bbe=e=>0===e?e:!e||isNaN(+e)?null:+e,vbe=e=>null===e,ybe=(e,t,n)=>{const o=n??0===n,r=t??0===t;if(!o&&!r)return!1;const a=+n,i=+t;return o&&r?+e>a||+e<i:o?+e>a:!!r&&+e<i},_be=(e,t)=>(e=>{const t=[],n=e=>e.filter(e=>e);for(let o=0;o<e.length;o+=3){const r=[e[o],e[o+1],e[o+2]];t.push(n(r))}return t})(e).map(e=>e.map(e=>{const{active:n,disabled:o,isBetween:r}=t(e);return{...e,active:n,disabled:o,className:{dp__overlay_cell_active:n,dp__overlay_cell:!n,dp__overlay_cell_disabled:o,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:o&&n,dp__cell_in_between:r}}})),Abe=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},kbe=(e,t,n,o,r)=>{const a=Gge(e,t.slice(0,e.length),new Date);return cfe(a)&&lfe(a)?o||r?a:Zge(a,{hours:+n.hours,minutes:+(null==n?void 0:n.minutes),seconds:+(null==n?void 0:n.seconds),milliseconds:0}):null},xbe=e=>e?new Date(e):new Date,wbe=e=>{let t=xbe(JSON.parse(JSON.stringify(e)));return t=Wge(t,0),t=$ge(t,0),t=Yge(t,0),t=Jge(t,0),t},Cbe=(e,t,n,o)=>{let r=e?xbe(e):xbe();return(t||0===t)&&(r=Wge(r,+t)),(n||0===n)&&(r=$ge(r,+n)),(o||0===o)&&(r=Yge(r,+o)),Jge(r,0)},Ebe=(e,t)=>!(!e||!t)&&Xge(wbe(e),wbe(t)),Sbe=(e,t)=>!(!e||!t)&&Qge(wbe(e),wbe(t)),Tbe=(e,t)=>!(!e||!t)&&ehe(wbe(e),wbe(t)),Ibe=(e,t,n)=>null!=e&&e[0]&&null!=e&&e[1]?Tbe(n,e[0])&&Ebe(n,e[1]):!(null==e||!e[0]||!t)&&(Tbe(n,e[0])&&Ebe(n,t)||Ebe(n,e[0])&&Tbe(n,t)),Bbe=e=>{const t=Zge(new Date(e),{date:1});return wbe(t)},Obe=(e,t,n)=>t&&(n||0===n)?Object.fromEntries(["hours","minutes","seconds"].map(o=>o===t?[o,n]:[o,isNaN(+e[o])?void 0:+e[o]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},Lbe=e=>({hours:the(e),minutes:nhe(e),seconds:ohe(e)}),Dbe=(e,t)=>
2{if(t){const n=rhe(xbe(t));if(n>e)return 12;if(n===e)return ahe(xbe(t))}},Mbe=(e,t)=>{if(t){const n=rhe(xbe(t));return n<e?-1:n===e?ahe(xbe(t)):void 0}},Nbe=e=>{if(e)return rhe(xbe(e))},Pbe=(e,t)=>t?function(e,t){var n=Xhe(e,void 0),o=Ghe(t,n,!0),r=new Date(n.getTime()-o),a=new Date(0);return a.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),a.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),a}(e,t):e,Rbe=(e,t)=>t?function(e,t,n){if("string"==typeof e&&!e.match($he)){var o=cbe(n);return o.timeZone=t,Xhe(e,o)}var r=Xhe(e,n),a=jhe(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()).getTime(),i=Ghe(t,new Date(a));return new Date(a+i)}(e,t):e,Fbe=e=>e instanceof Date?e:function(e,t){var n;ife(1,arguments);var o=ufe(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==o&&1!==o&&0!==o)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r,a=function(e){var t,n={},o=e.split(ihe.dateTimeDelimiter);if(o.length>2)return n;if(/:/.test(o[0])?t=o[0]:(n.date=o[0],t=o[1],ihe.timeZoneDelimiter.test(n.date)&&(n.date=e.split(ihe.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var r=ihe.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e);if(a.date){var i=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),o=e.match(n);if(!o)return{year:NaN,restDateString:""};var r=o[1]?parseInt(o[1]):null,a=o[2]?parseInt(o[2]):null;return{year:null===a?r:100*a,restDateString:e.slice((o[1]||o[2]).length)}}(a.date,o);r=function(e,t){if(null===t)return new Date(NaN);var n=e.match(lhe);if(!n)return new Date(NaN);var o=!!n[4],r=uhe(n[1]),a=uhe(n[2])-1,i=uhe(n[3]),l=uhe(n[4]),s=uhe(n[5])-1;if(o)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){var o=new Date(0);o.setUTCFullYear(e,0,4);var r=7*(t-1)+n+1-(o.getUTCDay()||7);return o.setUTCDate(o.getUTCDate()+r),o}(t,l,s):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(phe[t]||(fhe(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(fhe(e)?366:365)}(t,r)?(c.setUTCFullYear(t,a,Math.max(r,i)),c):new Date(NaN)}(i.restDateString,i.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var l,s=r.getTime(),c=0;if(a.time&&(c=function(e){var t=e.match(she);if(!t)return NaN;var n=dhe(t[1]),o=dhe(t[2]),r=dhe(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,r)?n*Cme+o*wme+1e3*r:NaN}(a.time),isNaN(c)))return new Date(NaN);if(!a.timezone){var u=new Date(s+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return l=function(e){if("Z"===e)return 0;var t=e.match(che);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,r)?n*(o*Cme+r*wme):NaN}(a.timezone),isNaN(l)?new Date(NaN):new Date(s+c+l)}(e),Vbe=(e,t)=>mhe({start:Tbe(e,t)?t:e,end:Tbe(t,e)?t:e}),zbe=e=>{const t=ghe(e,1);return{month:ahe(t),year:rhe(t)}},Ube=(e,t,n)=>{const o=hhe(Pbe(e,t),{weekStartsOn:+n}),r=function(e,t){var n,o,r,a,i,l,s,c;ife(1,arguments);var u=hfe(),d=ufe(null!==(n=null!==(o=null!==(r=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==o?o:null===(s=u.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=sfe(e),f=p.getDay(),m=6+(f<d?-7:0)-(f-d);return p.setDate(p.getDate()+m),p.setHours(23,59,59,999),p}(Pbe(e,t),{weekStartsOn:+n});return[o,r]},jbe=(e,t)=>{const n={hours:the(xbe()),minutes:nhe(xbe()),seconds:t?ohe(xbe()):0};return Object.assign(n,e)},Hbe=(e,t,n)=>[Zge(xbe(e),{date:1}),Zge(xbe(),{month:t,year:n,date:1}
2)],qbe=(e,t,n)=>{let o=e?xbe(e):xbe();return(t||0===t)&&(o=Kge(o,t)),n&&(o=bhe(o,n)),o},Gbe=(e,t,n,o,r)=>{if(!o||r&&!t||!r&&!n)return!1;const a=r?ghe(e,1):vhe(e,1),i=[ahe(a),rhe(a)];return r?!Zbe(...i,t):!Kbe(...i,n)},Kbe=(e,t,n)=>Ebe(...Hbe(n,e,t))||Sbe(...Hbe(n,e,t)),Zbe=(e,t,n)=>Tbe(...Hbe(n,e,t))||Sbe(...Hbe(n,e,t)),Wbe=(e,t,n,o,r,a)=>{if("function"==typeof t)return t(e);const i=n?{locale:n}:void 0;return Array.isArray(e)?`${rme(e[0],a,i)}${r&&!e[1]?"":o}${e[1]?rme(e[1],a,i):""}`:rme(e,a,i)},$be=e=>{if(e)return null;throw new Error(gbe("partial-range"))},Ybe=(e,t)=>{if(t)return e();throw new Error(gbe("range"))},Jbe=e=>Array.isArray(e)?cfe(e[0])&&(!e[1]||cfe(e[1])):!!e&&cfe(e),Xbe=(e,t,n,o)=>{if(!e)return!0;if(o){const o={seconds:0,milliseconds:0};return("max"===n?Xge(e,t):ehe(e,t))||Qge(Zge(e,o),Zge(t,o))}return"max"===n?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},Qbe=(e,t,n,o,r)=>{const a=e?(e=>Zge(xbe(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}))(e):xbe(t);return Array.isArray(o)?Xbe(o[0],a,n,!!t)&&Xbe(o[1],a,n,!!t)&&r:Xbe(o,a,n,!!t)&&r},eve=e=>Zge(xbe(),Lbe(e)),tve=Lt({menuFocused:!1,shiftKeyInMenu:!1}),nve=()=>({control:bl(()=>({shiftKeyInMenu:tve.shiftKeyInMenu,menuFocused:tve.menuFocused})),setMenuFocused:e=>{tve.menuFocused=e},setShiftKey:e=>{tve.shiftKeyInMenu!==e&&(tve.shiftKeyInMenu=e)}}),ove=Lt({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),rve=Kt(null),ave=Kt(!1),ive=Kt(!1),lve=Kt(!1),sve=Kt(!1),cve=Kt(0),uve=Kt(0),dve=()=>{const e=bl(()=>ave.value?[...ove.selectionGrid,ove.actionRow].filter(e=>e.length):ive.value?[...ove.timePicker[0],...ove.timePicker[1],sve.value?[]:[rve.value],ove.actionRow].filter(e=>e.length):lve.value?[...ove.monthPicker,ove.actionRow]:[ove.monthYear,...ove.calendar,ove.time,ove.actionRow].filter(e=>e.length)),t=t=>{cve.value=t?cve.value+1:cve.value-1;let n=null;e.value[uve.value]&&(n=e.value[uve.value][cve.value]),n||(cve.value=t?cve.value-1:cve.value+1)},n=t=>{0===uve.value&&!t||uve.value===e.value.length&&t||(uve.value=t?uve.value+1:uve.value-1,e.value[uve.value]?e.value[uve.value]&&!e.value[uve.value][cve.value]&&0!==cve.value&&(cve.value=e.value[uve.value].length-1):uve.value=t?uve.value-1:uve.value+1)},o=t=>{let n=null;e.value[uve.value]&&(n=e.value[uve.value][cve.value]),n?n.focus({preventScroll:!ave.value}):cve.value=t?cve.value-1:cve.value+1},r=()=>{cve.value=0,uve.value=0};return{buildMatrix:(e,t)=>{ove[t]=e},buildMultiLevelMatrix:(e,t)=>{ove[t]=e},setTimePickerBackRef:e=>{rve.value=e},setSelectionGrid:e=>{ave.value=e,r(),e||(ove.selectionGrid=[])},setTimePicker:(e,t=!1)=>{ive.value=e,sve.value=t,r(),e||(ove.timePicker[0]=[],ove.timePicker[1]=[])},setTimePickerElements:(e,t=0)=>{ove.timePicker[t]=e},arrowRight:()=>{t(!0),o(!0)},arrowLeft:()=>{t(!1),o(!1)},arrowUp:()=>{n(!1),o(!0)},arrowDown:()=>{n(!0),o(!0)},clearArrowNav:()=>{ove.monthYear=[],ove.calendar=[],ove.time=[],ove.actionRow=[],ove.selectionGrid=[],ove.timePicker[0]=[],ove.timePicker[1]=[],ave.value=!1,ive.value=!1,sve.value=!1,lve.value=!1,r(),rve.value=null},setMonthPicker:e=>{lve.value=e,r()},refSets:ove}},pve=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),fve=e=>e?"boolean"==typeof e?e?2:0:+e>=2?+e:2:0,mve=e=>{const t=()=>{const t=e.enableSeconds?":ss":"";return e.is24?`HH:mm${t}`:`hh:mm${t} aa`},n=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy",o=t=>jbe(t,e.enableSeconds),r=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[o(e.startTime[0]),o(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?o(e.startTime):null,a=bl(()=>(e=>{const t="object"==typeof e&&e,n={static:!0,solo:!1};if(!e)return{...n,count:fve(!1)};const o=t?e:{},r=t?o.count??!0:e,a=fve(r);return Object.assign(n,o,{count:a})})(e.multiCalendars)),i=bl(()=>r()),l=bl(()=>(e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>`Increment ${e}`,decrementValue:e=>`Decrement ${e}`,openTpOverlay:e=>`Open ${e} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:()=>"",...e??{}}))(e.ariaLabels)),s=bl(()=>(e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}))(e.filters)),c=bl(()=>(e=>
2"boolean"==typeof e?!!e&&pve({}):pve(e))(e.transitions)),u=bl(()=>(e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}))(e.actionRow)),d=bl(()=>((e,t,n)=>e||("string"==typeof n?n:t))(e.previewFormat,e.format,n())),p=bl(()=>(e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "};return"object"==typeof e?{...t,...e??{},enabled:!0}:{...t,enabled:e}})(e.textInput)),f=bl(()=>(e=>{const t={input:!1};return"object"==typeof e?{...t,...e??{},enabled:!0}:{enabled:e,...t}})(e.inline)),m=bl(()=>(e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,...e??{}}))(e.config));return{defaultedTransitions:c,defaultedMultiCalendars:a,defaultedStartTime:i,defaultedAriaLabels:l,defaultedFilters:s,defaultedActionRow:u,defaultedPreviewFormat:d,defaultedTextInput:p,defaultedInline:f,defaultedConfig:m,getDefaultPattern:n,getDefaultStartTime:r}},gve=(e,t,n)=>{const o=Kt(),{defaultedTextInput:r,getDefaultPattern:a}=mve(t),i=Kt(""),l=ln(t,"format");bo(o,()=>{e("internal-model-change",o.value)}),bo(l,()=>{g()});const s=e=>Rbe(e,t.timezone),c=e=>Pbe(e,t.timezone),u=(e,n)=>Wbe(e,t.format,t.formatLocale,r.value.rangeSeparator,t.modelAuto,n??a()),d=e=>{const n=e??xbe();return t.modelType?b(n):{hours:the(n),minutes:nhe(n),seconds:t.enableSeconds?ohe(n):0}},p=e=>t.modelType?b(e):{month:ahe(e),year:rhe(e)},f=(e,n)=>"string"!=typeof e&&"number"!=typeof e||!t.modelType?n:h(e),m=()=>{const e=o.value;return[b(e[0]),e[1]?b(e[1]):$be(t.partialRange)]},g=()=>{!t.format||"string"==typeof t.format||r.value.enabled&&"string"==typeof r.value.format?i.value=o.value?t.multiDates?o.value.map(e=>u(e)).join("; "):r.value.enabled&&"string"==typeof r.value.format&&n.value&&o.value?Array.isArray(o.value)?(()=>{const e=e=>rme(e,r.value.format);return`${e(o.value[0])} ${r.value.rangeSeparator} ${o.value[1]?e(o.value[1]):""}`})():rme(o.value,r.value.format):u(o.value):"":i.value=t.format(o.value)},h=e=>{if(t.utc){const n=new Date(e);return"preserve"===t.utc?new Date(n.getTime()+6e4*n.getTimezoneOffset()):n}return t.modelType?"date"===t.modelType||"timestamp"===t.modelType?c(new Date(e)):"format"!==t.modelType||"string"!=typeof t.format&&t.format?c(Gge(e,t.modelType,new Date)):Gge(e,a(),new Date):c(new Date(e))},b=e=>e?t.utc?((e,t,n)=>{if(t){const t=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),a=e.getMinutes().toString().padStart(2,"0"),i=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${t}-${o}T${r}:${a}:${i}.000Z`}const o=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(o).toISOString()})(e,"preserve"===t.utc,t.enableSeconds):t.modelType?"timestamp"===t.modelType?+s(e):"format"!==t.modelType||"string"!=typeof t.format&&t.format?u(s(e),t.modelType):u(s(e)):s(e):"",v=(n,o=!1)=>{if(e("update:model-value",n),t.emitTimezone&&o){const o=Array.isArray(n)?n.map(e=>Pbe(e),t.emitTimezone):Pbe(n,t.emitTimezone);e("update:model-timezone-value",o)}},y=e=>v((e=>Array.isArray(o.value)?t.multiDates?o.value.map(t=>e(t)):[e(o.value[0]),o.value[1]?e(o.value[1]):$be(t.partialRange)]:e(o.value))(e));return{inputValue:i,internalModelValue:o,checkBeforeEmit:()=>!!o.value&&(t.range?t.partialRange?o.value.length>=1:2===o.value.length:!!o.value),parseExternalModelValue:e=>{const n=(e=>!e||Array.isArray(e)&&!e.length?null:t.timePicker?(e=>Array.isArray(e)?[f(e[0],Cbe(null,+e[0].hours,+e[0].minutes,e[0].seconds)),f(e[1],Cbe(null,+e[1].hours,+e[1].minutes,e[1].seconds))]:f(e,Cbe(null,e.hours,e.minutes,e.seconds)))(e):t.monthPicker?(e=>Array.isArray(e)?t.multiDates?e.map(e=>f(e,qbe(null,+e.month,+e.year))):Ybe(()=>[f(e[0],qbe(null,+e[0].month,+e[0].year)),f(e[1],e[1]?qbe(null,+e[1].month,+e[1].year):$be(t.partialRange))],t.range):f(e,qbe(null,+e.month,+e.year)))(e):t.yearPicker?(e=>Array.isArray(e)?Ybe(()=>[bhe(xbe(),e[0]),e[1]?bhe(xbe(),e[1]):$be(t.partialRange)],t.range):bhe(xbe(),+e))(e):t.multiDates?(e=>{if(Array.isArray(e))return e.map(e=>h(e));throw new Error(hbe("multi-dates"))})(e):t.weekPicker?(e=>{if(Array.isArray(e))return[xbe(e[0]),xbe(e[1])];throw new Error(hbe("week-picker"))})(e):(e=>t.modelAuto?Array.isArray(e)?[h(e[0]),h(e[1])]:t.autoApply?[h(e)]:[h(e),null]:Array.isArray(e)?Ybe(()=>[h(e[0]),e[1]?h(e[1]):$be(t.partialRange)],t.range):h(e))(e))(e);Jbe(n)?(o.value=n,g()):(o.value=null,i.value="")},formatInputValue:g,emitModelValue:()=>(g(),t.monthPicker?y(p):t.timePicker?y(d):t.yearPicker?y(rhe):t.weekPicker?v(o.value,!0):v((Array.isArray(o.value)&&t.range&&1===o.value.length&&o.value.push($be(t.partialRange)),t.modelAuto?o.value[1]?m():b(o.value[0]):t.multiDates?(o.value||[]).map(e=>b(e)):Array.isArray(o.value)?Ybe(()=>m(),t.range):b(o.value)),!0))}};var hve=(e=>(e.center="center",e.left="left",e.right="right",e))(hve||{}),bve=(e=>(e.month="month",e.year="year",e))(bve||{}),vve=(e=>(e.top="top",e.bottom="bottom",e))(vve||{}),yve=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(yve||{}),_ve=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.
2seconds="seconds",e))(_ve||{});const Ave=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:o,inline:r,emit:a,props:i,slots:l})=>{const s=Kt({}),c=Kt(!1),u=Kt({top:"0",left:"0"}),d=Kt(!1),p=ln(i,"teleportCenter");bo(p,()=>{u.value=JSON.parse(JSON.stringify({})),b()});const f=(e,t)=>{u.value.left=e+t-s.value.width+"px"},m=e=>{u.value.left=`${e}px`},g=(e,t)=>{i.position===hve.left&&m(e),i.position===hve.right&&f(e,t),i.position===hve.center&&(u.value.left=e+t/2-s.value.width/2+"px")},h=e=>{const{width:t,height:n}=e.getBoundingClientRect(),{top:o,left:r}=i.altPosition?i.altPosition(e):(e=>{if(i.teleport){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}return{top:0,left:0}})(e);return{top:+o,left:+r,width:t,height:n}},b=(o=!0)=>{var l;if(!r.value.enabled){if(p.value)return u.value.left="50%",u.value.top="50%",u.value.transform="translate(-50%, -50%)",u.value.position="fixed",void delete u.value.opacity;if(null!==i.altPosition)return(()=>{const e=fbe(n),{top:t,left:o,transform:r}=i.altPosition(e);u.value={top:`${t}px`,left:`${o}px`,transform:r??""}})();if(o){const n=i.teleport?null==(l=t.value)?void 0:l.$el:e.value;n&&(s.value=n.getBoundingClientRect()),a("recalculate-position")}return A()}},v=({inputEl:e,left:t,width:n})=>{window.screen.width>768&&!c.value&&g(t,n),_(e)},y=e=>{const{top:t,left:n,height:o,width:r}=h(e);u.value.top=`${o+t+ +i.offset}px`,d.value=!1,c.value||(u.value.left=n+r/2-s.value.width/2+"px"),v({inputEl:e,left:n,width:r})},_=e=>{if(i.autoPosition){const{left:t,width:n}=h(e),{left:o,right:r}=s.value;if(!c.value){if(Math.abs(o)!==Math.abs(r)){if(o<=0)return c.value=!0,m(t);if(r>=document.documentElement.clientWidth)return c.value=!0,f(t,n)}return g(t,n)}}},A=()=>{const e=fbe(n);if(e)return i.autoPosition?(e=>(()=>{const e=fbe(n);if(e){const{height:t}=s.value,{top:n,height:o}=e.getBoundingClientRect(),r=window.innerHeight-n-o,a=n;return t<=r?vve.bottom:t>r&&t<=a?vve.top:r>=a?vve.bottom:vve.top}return vve.bottom})()===vve.bottom?y(e):(e=>{const{top:t,left:n,width:o}=h(e);u.value.top=t-+i.offset-s.value.height+"px",d.value=!0,v({inputEl:e,left:n,width:o})})(e))(e):y(e)},k=function(e){return e&&e!==document.body&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?function(e){if(e){const t=e.scrollHeight>e.clientHeight,n=-1!==window.getComputedStyle(e).overflowY.indexOf("hidden");return t&&!n}return!0}(e)?e:k(e.parentNode):window};return{openOnTop:d,menuStyle:u,xCorrect:c,setMenuPosition:b,getScrollableParent:k,shadowRender:(e,t)=>{var r,a,c;const u=document.createElement("div"),d=null==(r=fbe(n))?void 0:r.getBoundingClientRect();u.setAttribute("id","dp--temp-container");const p=null!=(a=o.value)&&a.clientWidth?o.value:document.body;p.append(u);const f=document.getElementById("dp--temp-container"),m=(e=>{if(e)switch(i.position){case hve.left:return{left:0,transform:"translateX(0)"};case hve.right:return{left:`${e.width}px`,transform:"translateX(-100%)"};default:return{left:e.width/2+"px",transform:"translateX(-50%)"}}return{}})(d),g=vl(e,{...t,shadow:!0,style:{opacity:0,position:"absolute",...m}},Object.fromEntries(Object.keys(l).map(e=>[e,l[e]])));gc(g,f),s.value=null==(c=g.el)?void 0:c.getBoundingClientRect(),gc(null,f),p.removeChild(f)}}},kve=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared"]},{name:"arrow-right",use:["month-year","calendar","shared"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]}],xve=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],wve={all:()=>kve,monthYear:()=>kve.filter(e=>e.use.includes("month-year")),input:()=>xve,timePicker:()=>kve.filter(e=>e.use.includes("time")),action:()=>kve.filter(e=>
2e.use.includes("action")),calendar:()=>kve.filter(e=>e.use.includes("calendar")),menu:()=>kve.filter(e=>e.use.includes("menu")),shared:()=>kve.filter(e=>e.use.includes("shared"))},Cve=(e,t,n)=>{const o=[];return wve[t]().forEach(t=>{e[t.name]&&o.push(t.name)}),null!=n&&n.length&&n.forEach(e=>{e.slot&&o.push(e.slot)}),o},Eve=e=>{const t=bl(()=>t=>e.value?t?e.value.open:e.value.close:""),n=bl(()=>t=>e.value?t?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Sve=(e,t)=>{const n=Kt([{month:ahe(xbe()),year:rhe(xbe())}]),o=Lt({hours:e.range?[the(xbe()),the(xbe())]:the(xbe()),minutes:e.range?[nhe(xbe()),nhe(xbe())]:nhe(xbe()),seconds:e.range?[0,0]:0}),r=bl({get:()=>e.internalModelValue,set:n=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",n)}}),a=bl(()=>e=>n.value[e]?n.value[e].month:0),i=bl(()=>e=>n.value[e]?n.value[e].year:0);return{calendars:n,time:o,modelValue:r,month:a,year:i}},Tve=e=>{const{defaultedFilters:t}=mve(e),n=()=>e.timezone?e.timezone:e.utc?"UTC":void 0,o=e=>{const t=wbe(r(xbe(e))).toISOString(),[n]=t.split("T");return n},r=t=>"preserve"===e.utc?Rbe(t,n()):Pbe(t,n()),a=n=>{var o;const a=!!e.maxDate&&Tbe(r(n),r(xbe(e.maxDate))),i=!!e.minDate&&Ebe(r(n),r(xbe(e.minDate))),l=s(r(n),null!=(o=e.arrMapValues)&&o.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),u=t.value.months.map(e=>+e).includes(ahe(n)),d=!!e.disabledWeekDays.length&&e.disabledWeekDays.some(e=>+e===function(e){return ife(1,arguments),sfe(e).getDay()}(n)),p=c(n),f=rhe(n),m=f<+e.yearRange[0]||f>+e.yearRange[1];return!(a||i||l||u||m||d||p)},i=(t,n)=>Ebe(...Hbe(e.minDate,t,n))||Sbe(...Hbe(e.minDate,t,n)),l=(t,n)=>Tbe(...Hbe(e.maxDate,t,n))||Sbe(...Hbe(e.maxDate,t,n)),s=(e,t)=>!e||(t instanceof Map?!!t.get(o(e)):Array.isArray(t)?t.some(t=>Sbe(r(xbe(t)),r(e))):!!t&&t(xbe(JSON.parse(JSON.stringify(e))))),c=t=>{var n,o,a,i,l;return!((!Array.isArray(e.allowedDates)||null!=(n=e.allowedDates)&&n.length)&&(null!=(o=e.arrMapValues)&&o.allowedDates?s(t,null==(a=e.arrMapValues)?void 0:a.allowedDates):null==(i=e.allowedDates)||!i.length||null!=(l=e.allowedDates)&&l.some(e=>Sbe(r(xbe(e)),r(t)))))},u=e=>!a(e),d=e=>new Map(e.map(e=>[o(e),!0])),p=e=>Array.isArray(e)&&e.length>0,f=(e,t,n)=>e.find(e=>+e.hours===the(t)&&"*"===e.minutes||+e.minutes===nhe(t))&&n,m=(t,n)=>e.disabledTimes?Array.isArray(e.disabledTimes)?((t,n)=>{const o=Array.isArray(n)?n:[n];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?((e,t,n)=>{const[o,r]=e,[a,i]=t;return!f(o,a,n)&&!f(r,i,n)&&n})(e.disabledTimes,o,t):!o.some(n=>f(e.disabledTimes,n,t)):t})(n,t):((t,n)=>{const o=Array.isArray(n)?[Lbe(n[0]),n[1]?Lbe(n[1]):void 0]:Lbe(n),r=!e.disabledTimes(o);return t&&r})(n,t):n;return{isDisabled:u,validateDate:a,validateMonthYearInRange:(t,n,o,r)=>{let a=!1;return r?e.minDate&&e.maxDate?a=((t,n,o)=>{let r=!1;return e.maxDate&&o&&l(t,n)&&(r=!0),e.minDate&&!o&&i(t,n)&&(r=!0),r})(t,n,o):(e.minDate&&i(t,n)||e.maxDate&&l(t,n))&&(a=!0):a=!0,a},isDateRangeAllowed:t=>!e.noDisabledRange||!mhe({start:t[0],end:t[1]}).some(e=>u(e)),checkMinMaxRange:(t,n,o=0)=>{if(Array.isArray(n)&&n[o]){const r=function(e,t){ife(2,arguments);var n=khe(e),o=khe(t),r=n.getTime()-Rfe(n),a=o.getTime()-Rfe(o);return Math.round((r-a)/864e5)}(t,n[o]),a=Vbe(n[o],t),i=1===a.length?0:a.filter(e=>u(e)).length,l=Math.abs(r)-i;if(e.minRange&&e.maxRange)return l>=+e.minRange&&l<=+e.maxRange;if(e.minRange)return l>=+e.minRange;if(e.maxRange)return l<=+e.maxRange}return!0},matchDate:s,mapDatesArrToMap:()=>{const t={disabledDates:null,allowedDates:null,highlightedDates:null};return p(e.allowedDates)&&(t.allowedDates=d(e.allowedDates)),p(e.highlight)&&(t.highlightedDates=d(e.highlight)),p(e.disabledDates)&&(t.disabledDates=d(e.disabledDates)),t},isValidTime:t=>{let n=!0;if(!t||!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation)return!0;const o=e.minDate||e.maxDate?t:(e=>Array.isArray(e)?[e[0]?eve(e[0]):null,e[1]?eve(e[1]):null]:eve(e))(t);return(e.maxTime||e.maxDate)&&(n=Qbe(e.maxTime,e.maxDate,"max",o,n)),(e.minTime||e.minDate)&&(n=Qbe(e.minTime,e.minDate,"min",o,n)),m(t,n)}}},Ive=()=>({hideNavigationButtons:bl(()=>(e,t)=>null==e?void 0:e.includes(t)),showLeftIcon:bl(()=>(e,t)=>!e.count||!!e.solo||0===t),showRightIcon:bl(()=>(e,t)=>!e.count||!!e.solo||t===e.count-1)}),Bve={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0}
2,monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function],default:null},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},allowPreventDefault:{type:Boolean,default:!1},closeOnClearValue:{type:Boolean,default:!0},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0}},Ove={...Bve,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})}},Lve={key:1,class:"dp__input_wrap"},Dve=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid","onKeydown"],Mve={key:2,class:"dp__clear_icon"},Nve=Ko({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Bve},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const o=e,{defaultedTextInput:r,defaultedAriaLabels:a,defaultedInline:i,defaultedConfig:l,getDefaultPattern:s,getDefaultStartTime:c}=mve(o),u=Kt(),d=Kt(null),p=Kt(!1),f=Kt(!1),m=bl(()=>({dp__pointer:!o.disabled&&!o.readonly&&!r.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:!!o.state,d
2p__input_invalid:!1===o.state,dp__input_focus:p.value||o.isMenuOpen,dp__input_reg:!r.value.enabled,[o.inputClassName]:!!o.inputClassName})),g=e=>{const t=c();return((e,t,n,o,r)=>{const a=Array.isArray(n)?n[0]:n;if("string"==typeof t)return kbe(e,t,a,o,r);if(Array.isArray(t)){let n=null;for(const i of t)if(n=kbe(e,i,a,o,r),n)break;return n}return"function"==typeof t?t(e):null})(e,r.value.format??s(),t??jbe({},o.enableSeconds),o.inputValue,f.value)},h=()=>{f.value=!0},b=e=>{if(o.range)(e=>{const{rangeSeparator:t}=r.value,[n,o]=e.split(`${t}`);if(n){const e=g(n.trim()),t=o?g(o.trim()):null,r=e&&t?[e,t]:[e];u.value=e?r:null}})(e);else if(o.multiDates){const t=e.split(";");u.value=t.map(e=>g(e.trim())).filter(e=>e)}else u.value=g(e)},v=e=>{var t;const a="string"==typeof e?e:null==(t=e.target)?void 0:t.value;""!==a?(r.value.openMenu&&!o.isMenuOpen&&n("open"),b(a),n("set-input-date",u.value)):(n("set-input-date",null),o.autoApply&&(n("set-empty-date"),u.value=null)),f.value=!1,n("update:input-value",a)},y=e=>{r.value.enabled?(b(e.target.value),r.value.enterSubmit&&Jbe(u.value)&&""!==o.inputValue?(n("set-input-date",u.value,!0),u.value=null):r.value.enterSubmit&&""===o.inputValue&&(u.value=null,n("clear"))):k(e)},_=e=>{r.value.enabled&&r.value.tabSubmit&&b(e.target.value),r.value.tabSubmit&&Jbe(u.value)&&""!==o.inputValue?(n("set-input-date",u.value,!0),u.value=null):r.value.tabSubmit&&""===o.inputValue&&(u.value=null,n("clear"))},A=()=>{p.value=!0,n("focus")},k=e=>{e.preventDefault(),Abe(e,l.value,!0),r.value.enabled&&r.value.openMenu&&!i.value.input&&!o.isMenuOpen?n("open"):r.value.enabled||n("toggle")},x=()=>{n("real-blur"),p.value=!1,(!o.isMenuOpen||i.value.enabled&&i.value.input)&&n("blur"),o.autoApply&&r.value.enabled&&u.value&&!o.isMenuOpen&&(n("set-input-date",u.value),n("select-date"),u.value=null)},w=e=>{Abe(e,l.value,!0),n("clear")},C=e=>{if(!r.value.enabled){if("Tab"===e.code)return;e.preventDefault()}};return t({focusInput:()=>{var e;null==(e=d.value)||e.focus({preventScroll:!0})},setParsedDate:e=>{u.value=e}}),(t,o)=>{var l;return Ai(),Si("div",{onClick:k},[!t.$slots.trigger||t.$slots["dp-input"]||Jt(i).enabled?zi("",!0):Xr(t.$slots,"trigger",{key:0}),t.$slots.trigger||Jt(i).enabled&&!Jt(i).input?zi("",!0):(Ai(),Si("div",Lve,[!t.$slots["dp-input"]||t.$slots.trigger||Jt(i).enabled?zi("",!0):Xr(t.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:v,onEnter:y,onTab:_,onClear:w,onBlur:x,onKeypress:C,onPaste:h}),t.$slots["dp-input"]?zi("",!0):(Ai(),Si("input",{key:1,ref_key:"inputRef",ref:d,id:t.uid?`dp-input-${t.uid}`:void 0,name:t.name,class:Y(m.value),inputmode:Jt(r).enabled?"text":"none",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,value:e.inputValue,autocomplete:t.autocomplete,"aria-label":null==(l=Jt(a))?void 0:l.input,"aria-disabled":t.disabled||void 0,"aria-invalid":!1===t.state||void 0,onInput:v,onKeydown:[cc(y,["enter"]),cc(_,["tab"]),C],onBlur:x,onFocus:A,onKeypress:C,onPaste:h},null,42,Dve)),Mi("div",{onClick:o[2]||(o[2]=e=>n("toggle"))},[t.$slots["input-icon"]&&!t.hideInputIcon?(Ai(),Si("span",{key:0,class:"dp__input_icon",onClick:o[0]||(o[0]=e=>n("toggle"))},[Xr(t.$slots,"input-icon")])):zi("",!0),t.$slots["input-icon"]||t.hideInputIcon||t.$slots["dp-input"]?zi("",!0):(Ai(),Ti(Jt(Che),{key:1,onClick:o[1]||(o[1]=e=>n("toggle")),class:"dp__input_icon dp__input_icons"}))]),t.$slots["clear-icon"]&&e.inputValue&&t.clearable&&!t.disabled&&!t.readonly?(Ai(),Si("span",Mve,[Xr(t.$slots,"clear-icon",{clear:w})])):zi("",!0),!t.clearable||t.$slots["clear-icon"]||!e.inputValue||t.disabled||t.readonly?zi("",!0):(Ai(),Ti(Jt(Ehe),{key:3,class:"dp__clear_icon dp__input_icons",onClick:o[3]||(o[3]=lc(e=>w(e),["prevent"]))}))]))])}}}),Pve=["title"],Rve={class:"dp__action_buttons"},Fve=["onKeydown","disabled"],Vve=Ko({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...Ove},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=e,{defaultedActionRow:o,defaultedPreviewFormat:r,defaultedMultiCalendars:a,defaultedTextInput:i,defaultedInline:l,getDefaultPattern:s}=mve(n),{isValidTime:c}=Tve(n),{buildMatrix:u}=dve(),d=Kt(null),p=Kt(null);Dr(()=>{n.arrowNavigation&&u([fbe(d),fbe(p)],"actionRow")});const f=bl(()=>!(n.range&&!n.partialRange&&n.internalModelValue)||2===n.internalModelValue.length),m=bl(()=>!g.value||!h.value||!f.value),g=bl(()=>!(n.enableTimePicker&&!n.ignoreTimeValidation)||c(n.internalModelValue)),h=bl(()=>!n.monthPicker||(n.range&&Array.isArray(n.internalModelValue)?!n.internalModelValue.filter(e=>!_(e)).length:_(n.internalModelValue))),b=e=>Wbe(e,r.value,n.formatLocale,i.value.rangeSeparator,n.modelAuto,s()),v=bl(()=>n.internalModelValue&&n.menuMount?"string"==typeof r.value?Array.isArray(n.internalModelValue)?2===n.internalModelValue.length&&n.internalModelValue[1]?(()=>{const e=n.internalModelValue;return a.value.count>0?`${b(e[0])} - ${b(e[1])}`:[b(e[0]),b(e[1])]})():n.multiDates?n.internalModelValue.map(e=>`${b(e)}`):n.modelAuto?`${b(n.internalModelValue[0])}`:`${b(n.internalModelValue[0])} -`:b(n.internalModelValue):(()=>{const e=r.value;return n.timePicker||n.monthPicker,e(n.internalModelValue)})():""),y=bl(()=>Array.isArray(v.value)?v.value.join(n.multiDates?"; ":" - "):v.value),_=e=>{if(!n.monthPicker)return!0;let t=!0;const o=xbe(Bbe(e));if(n.minDate&&n.maxDate){const e=xbe(Bbe(n.minDate)),t=xbe(Bbe(n.maxDate));return Tbe(o,e)&&Ebe(o,t)||Sbe(o,e)||Sbe(o,t)}if(n.minDate){const e=xbe(Bbe(n.minDate));t=Tbe(o,e)||Sbe(o,e)}if(n.maxDate){const e=xbe(Bbe(n.maxDate));t=Ebe(o,e)||Sbe(o,e)}return t},A=()=>{g.value&&h.value&&f.value?t("select-date"):t("invalid-select")};return(t,n)=>(Ai(),Si("div",{class:"dp__action_row",style:G(e.calendarWidth?{width:`${e.calendarWidth}px`}:{})}
2,[t.$slots["action-row"]?Xr(t.$slots,"action-row",J(qi({key:0},{internalModelValue:t.internalModelValue,disabled:m.value,selectDate:()=>t.$emit("select-date"),closePicker:()=>t.$emit("close-picker")}))):(Ai(),Si(gi,{key:1},[Jt(o).showPreview?(Ai(),Si("div",{key:0,class:"dp__selection_preview",title:y.value},[t.$slots["action-preview"]?Xr(t.$slots,"action-preview",{key:0,value:t.internalModelValue}):zi("",!0),t.$slots["action-preview"]?zi("",!0):(Ai(),Si(gi,{key:1},[Fi(fe(y.value),1)],64))],8,Pve)):zi("",!0),Mi("div",Rve,[t.$slots["action-buttons"]?Xr(t.$slots,"action-buttons",{key:0,value:t.internalModelValue}):zi("",!0),t.$slots["action-buttons"]?zi("",!0):(Ai(),Si(gi,{key:1},[!Jt(l).enabled&&Jt(o).showCancel?(Ai(),Si("button",{key:0,type:"button",ref_key:"cancelButtonRef",ref:d,class:"dp__action_button dp__action_cancel",onClick:n[0]||(n[0]=e=>t.$emit("close-picker")),onKeydown:[n[1]||(n[1]=cc(e=>t.$emit("close-picker"),["enter"])),n[2]||(n[2]=cc(e=>t.$emit("close-picker"),["space"]))]},fe(t.cancelText),545)):zi("",!0),Jt(o).showNow?(Ai(),Si("button",{key:1,type:"button",ref_key:"cancelButtonRef",ref:d,class:"dp__action_button dp__action_cancel",onClick:n[3]||(n[3]=e=>t.$emit("select-now")),onKeydown:[n[4]||(n[4]=cc(e=>t.$emit("select-now"),["enter"])),n[5]||(n[5]=cc(e=>t.$emit("select-now"),["space"]))]},fe(t.nowButtonLabel),545)):zi("",!0),Jt(o).showSelect?(Ai(),Si("button",{key:2,type:"button",class:"dp__action_button dp__action_select",onKeydown:[cc(A,["enter"]),cc(A,["space"])],onClick:A,disabled:m.value,ref_key:"selectButtonRef",ref:p},fe(t.selectText),41,Fve)):zi("",!0)],64))])],64))],4))}}),zve=["onKeydown"],Uve={class:"dp__selection_grid_header"},jve=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],Hve=["aria-label","onKeydown"],qve=Ko({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const o=e,{setSelectionGrid:r,buildMultiLevelMatrix:a,setMonthPicker:i}=dve(),{defaultedAriaLabels:l,defaultedTextInput:s,defaultedConfig:c}=mve(o),{hideNavigationButtons:u}=Ive(),d=Kt(!1),p=Kt(null),f=Kt(null),m=Kt([]),g=Kt(),h=Kt(null),b=Kt(0),v=Kt(null);Mr(()=>{p.value=null}),Dr(()=>{Nn().then(()=>E()),_(),y(!0)}),Rr(()=>y(!1));const y=e=>{var t;
2o.arrowNavigation&&(null!=(t=o.headerRefs)&&t.length?i(e):r(e))},_=()=>{var e;const t=fbe(f);t&&(s.value.enabled||(p.value?null==(e=p.value)||e.focus({preventScroll:!0}):t.focus({preventScroll:!0})),d.value=t.clientHeight<t.scrollHeight)},A=bl(()=>({dp__overlay:!0,"dp--overlay-absolute":!o.useRelative,"dp--overlay-relative":o.useRelative})),k=bl(()=>o.useRelative?{height:`${o.height}px`,width:"260px"}:void 0),x=bl(()=>({dp__overlay_col:!0})),w=bl(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:d.value,dp__button_bottom:o.isLast})),C=bl(()=>{var e,t;return{dp__overlay_container:!0,dp__container_flex:(null==(e=o.items)?void 0:e.length)<=6,dp__container_block:(null==(t=o.items)?void 0:t.length)>6}}),E=()=>{Nn().then(()=>{const e=fbe(p),t=fbe(f),n=fbe(h),o=fbe(v),r=n?n.getBoundingClientRect().height:0;t&&(b.value=t.getBoundingClientRect().height-r),e&&o&&(o.scrollTop=e.offsetTop-o.offsetTop-(b.value/2-e.getBoundingClientRect().height)-r)})},S=e=>{e.disabled||n("selected",e.value)},T=()=>{n("toggle"),n("reset-flow")},I=()=>{o.escClose&&T()},B=e=>{o.arrowNavigation||Abe(e,c.value,!0)};return t({focusGrid:_}),(e,t)=>{var r;return Ai(),Si("div",{ref_key:"gridWrapRef",ref:f,class:Y(A.value),style:G(k.value),role:"dialog",tabindex:"0",onKeydown:[cc(lc(I,["prevent"]),["esc"]),t[0]||(t[0]=cc(lc(e=>B(e),["prevent"]),["left"])),t[1]||(t[1]=cc(lc(e=>B(e),["prevent"]),["up"])),t[2]||(t[2]=cc(lc(e=>B(e),["prevent"]),["down"])),t[3]||(t[3]=cc(lc(e=>B(e),["prevent"]),["right"]))]},[Mi("div",{class:Y(C.value),ref_key:"containerRef",ref:v,role:"grid",style:G({height:`${b.value}px`})},[Mi("div",Uve,[Xr(e.$slots,"header")]),e.$slots.overlay?Xr(e.$slots,"overlay",{key:0}):(Ai(!0),Si(gi,{key:1},Yr(e.items,(t,r)=>(Ai(),Si("div",{class:Y(["dp__overlay_row",{dp__flex_row:e.items.length>=3}]),key:r,role:"row"},[(Ai(!0),Si(gi,null,Yr(t,(t,i)=>(Ai(),Si("div",{role:"gridcell",class:Y(x.value),key:t.value,"aria-selected":t.active,"aria-disabled":t.disabled||void 0,ref_for:!0,ref:e=>((e,t,n,r)=>{e&&(t.active&&(p.value=e),o.arrowNavigation&&(Array.isArray(m.value[n])?m.value[n][r]=e:m.value[n]=[e],(()=>{var e,t;const n=null!=(e=o.headerRefs)&&e.length?[o.headerRefs].concat(m.value):m.value.concat([o.skipButtonRef?[]:[h.value]]);a(n,null!=(t=o.headerRefs)&&t.length?"monthPicker":"selectionGrid")})()))})(e,t,r,i),tabindex:"0",onClick:e=>S(t),onKeydown:[cc(lc(e=>S(t),["prevent"]),["enter"]),cc(lc(e=>S(t),["prevent"]),["space"])],onMouseover:e=>(e=>{g.value=e,n("hover-value",e)})(t.value)},[Mi("div",{class:Y(t.className)},[e.$slots.item?Xr(e.$slots,"item",{key:0,item:t}):zi("",!0),e.$slots.item?zi("",!0):(Ai(),Si(gi,{key:1},[Fi(fe(t.text),1)],64))],2)],42,jve))),128))],2))),128))],6),e.$slots["button-icon"]?io((Ai(),Si("button",{key:0,type:"button","aria-label":null==(r=Jt(l))?void 0:r.toggleOverlay,class:Y(w.value),tabindex:"0",ref_key:"toggleButton",ref:h,onClick:T,onKeydown:[cc(T,["enter"]),cc(T,["tab"])]},[Xr(e.$slots,"button-icon")],42,Hve)),[[rs,!Jt(u)(e.hideNavigation,e.type)]]):zi("",!0)],46,zve)}}}),Gve=Ko({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean}},setup(e){const t=e,n=bl(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),o=bl(()=>({dp__instance_calendar:t.multiCalendars>0}));return(e,t)=>(Ai(),Si("div",{class:Y({dp__menu_inner:!e.stretch,"dp--menu--inner-stretched":e.stretch,dp__flex_display:e.multiCalendars>0})},[(Ai(!0),Si(gi,null,Yr(n.value,(t,n)=>(Ai(),Si("div",{key:t,class:Y(o.value)},[Xr(e.$slots,"default",{instance:t,index:n})],2))),128))],2))}}),Kve=["aria-label","aria-disabled"],Zve=Ko({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=Kt(null);return Dr(()=>t("set-ref",n)),(e,t)=>(Ai(),Si("button",{type:"button",class:"dp__btn dp--arrow-btn-nav",onClick:t[0]||(t[0]=t=>e.$emit("activate")),onKeydown:[t[1]||(t[1]=cc(lc(t=>e.$emit("activate"),["prevent"]),["enter"])),t[2]||(t[2]=cc(lc(t=>e.$emit("activate"),["prevent"]),["space"]))],tabindex:"0","aria-label":e.ariaLabel,"aria-disabled":e.disabled||void 0,ref_key:"elRef",ref:n},[Mi("span",{class:Y(["dp__inner_nav",{dp__inner_nav_disabled:e.disabled}])},[Xr(e.$slots,"default")],2)],40,Kve))}}
2),Wve=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(t=>Sbe(e,t))){const n=t.value.filter(t=>!Sbe(t,e));t.value=n.length?n:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},$ve=(e,t,n)=>{let o=e.value?e.value.slice():[];return 2===o.length&&null!==o[1]&&(o=[]),o.length?Ebe(t,o[0])?(o.unshift(t),n("range-start",o[0]),n("range-start",o[1])):(o[1]=t,n("range-end",t)):(o=[t],n("range-start",t)),e.value=o,o},Yve=(e,t,n,o)=>{e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&o&&n&&t("auto-apply")},Jve=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:o,defaultedTransitions:r,defaultedConfig:a}=mve(e),{modelValue:i,year:l,month:s,calendars:c}=Sve(e,t),u=bl(()=>pbe(e.formatLocale,e.locale,e.monthNameFormat)),d=bl(()=>dbe(e.yearRange,e.reverseYears)),p=Kt(null),f=()=>{for(let e=0;e<n.value.count;e++)if(0===e)c.value[e]=c.value[0];else{const t=Zge(xbe(),c.value[e-1]);c.value[e]={month:ahe(t),year:rhe(yhe(t,e))}}};Dr(()=>{(()=>{if(i.value){const t=Array.isArray(i.value)?(t=>e.focusStartDate?t[0]:t[1]?t[1]:t[0])(i.value):i.value;c.value[0]={month:ahe(t),year:rhe(t)}}})(),n.value.count&&f()});const m=bl(()=>(t,n)=>{const o=Zge(Bbe(new Date),{month:s.value(t),year:l.value(t)});return Gbe(o,e.maxDate,e.minDate,e.preventMinMaxNavigation,n)}),g=e=>e?{month:ahe(e),year:rhe(e)}:{month:null,year:null},h=()=>i.value?Array.isArray(i.value)?i.value.map(e=>g(e)):g(i.value):g(),b=(e,t,n)=>{var o,r;const a=h();return!!Array.isArray(a)&&l.value(t)===(null==(o=a[n])?void 0:o.year)&&e===(null==(r=a[n])?void 0:r.month)},v=bl(()=>t=>_be(u.value,n=>{const o=((e,t)=>{const n=c.value[e],o=h();return Array.isArray(o)?o.some(e=>e.year===(null==n?void 0:n.year)&&e.month===t):(null==n?void 0:n.year)===o.year&&t===o.month})(t,n.value),r=ybe(n.value,Dbe(l.value(t),e.minDate),Mbe(l.value(t),e.maxDate))||((e,t)=>Array.isArray(e)?e.map(e=>xbe(e)).filter(e=>rhe(xbe(e))===t).map(e=>ahe(e)):[])(e.disabledDates,l.value(t)).includes(n.value),a=((t,n)=>{if(e.range){const e=h();if(Array.isArray(i.value)&&Array.isArray(e)){const e=b(t,n,0)||b(t,n,1),o=qbe(Bbe(xbe()),t,l.value(n));return Ibe(i.value,p.value,o)&&!e}return!1}return!1})(n.value,t);return{active:o,disabled:r,isBetween:a}})),y=bl(()=>t=>_be(d.value,n=>({active:l.value(t)===n.value,disabled:ybe(n.value,Nbe(e.minDate),Nbe(e.maxDate))}))),_=(e,t)=>qbe(Bbe(xbe()),e,l.value(t));return{groupedMonths:v,groupedYears:y,year:l,isDisabled:m,defaultedMultiCalendars:n,defaultedAriaLabels:o,defaultedTransitions:r,defaultedConfig:a,setHoverDate:(e,t)=>{p.value=_(e,t)},selectMonth:(n,o)=>(c.value[o].month=n,e.multiDates?((n,o)=>{Wve(_(n,o),i,e.multiDatesLimit),t("auto-apply",!0)})(n,o):e.range?((n,o)=>{const r=$ve(i,_(n,o),t);Yve(r,t,e.autoApply,e.modelAuto)})(n,o):((e,n)=>{const o=i.value?i.value:Bbe(new Date);i.value=qbe(o,e,l.value(n)),t("auto-apply")})(n,o)),selectYear:(e,t)=>{c.value[t].year=e,n.value.count&&!n.value.solo&&(e=>{if(!e)return f();const t=Zge(xbe(),c.value[e]);c.value[0].year=rhe(_he(t,n.value.count-1)),f()})(t)}}},Xve={class:"dp__month_picker_header"},Qve=["aria-label","onClick","onKeydown"],eye=Ko({compatConfig:{MODE:3},__name:"MonthPicker",props:{...Ove},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply"],setup(e,{emit:t}){const n=e,{groupedMonths:o,groupedYears:r,year:a,isDisabled:i,defaultedMultiCalendars:l,defaultedAriaLabels:s,defaultedTransitions:c,defaultedConfig:u,setHoverDate:d,selectMonth:p,selectYear:f}=Jve(n,t),{transitionName:m,showTransition:g}=Eve(c),{showRightIcon:h,showLeftIcon:b}=Ive(),v=Kt([!1]),y=(e,t=!1)=>{if(!i.value(e,t)){const n=t?a.value(e)+1:a.value(e)-1;f(n,e)}},_=(e,n=!1,o)=>{n||t("reset-flow"),v.value[e]=void 0!==o?o:!v.value[e],v.value||t("overlay-closed")};return(e,t)=>(Ai(),Ti(Gve,{"multi-calendars":Jt(l).count,stretch:""},{default:ao(({instance:t})=>[e.$slots["month-year"]?Xr(e.$slots,"month-year",J(qi({key:0},{year:Jt(a),months:Jt(o)(t),years:Jt(r)(t),selectMonth:Jt(p),selectYear:Jt(f),instance:t}))):(Ai(),Ti(qve,{key:1,items:Jt(o)(t),"arrow-navigation":e.arrowNavigation,"is-last":e.autoApply&&!e.keepActionRow&&!Jt(u).keepActionRow,"esc-close":e.escClose,height:255!==e.modeHeight?e.modeHeight:Jt(u).modeHeight,config:e.config,onSelected:e=>Jt(p)(e,t),onHoverValue:e=>Jt(d)(e,t),"use-relative":"",type:"month"},{header:ao(()=>{var n,o,c;return[Mi("div",Xve,[Jt(b)(Jt(l),t)?(Ai(),Ti(Zve,{key:0,ref:"mpPrevIconRef","aria-label":null==(n=Jt(s))?void 0:n.prevYear,disabled:Jt(i)(t,!1),onActivate:e=>y(t,!1)},{default:ao(()=>[e.$slots["arrow-left"]?Xr(e.$slots,"arrow-left",{key:0}):zi("",!0),e.$slots["arrow-left"]?zi("",!0):(Ai(),Ti(Jt(She),{key:1}))]),_:2},1032,["aria-label","disabled","onActivate"])):zi("",!0),Mi("div",{class:"dp--year-select",role:"button",ref:"mpYearButtonRef","aria-label":null==(o=Jt(s))?void 0:o.openYearsOverlay,tabindex:"0",onClick:()=>_(t,!1),onKeydown:cc(()=>_(t,!1),["enter"])}
2,[e.$slots.year?Xr(e.$slots,"year",{key:0,year:Jt(a)(t)}):zi("",!0),e.$slots.year?zi("",!0):(Ai(),Si(gi,{key:1},[Fi(fe(Jt(a)(t)),1)],64))],40,Qve),Jt(h)(Jt(l),t)?(Ai(),Ti(Zve,{key:1,ref:"mpNextIconRef","aria-label":null==(c=Jt(s))?void 0:c.nextYear,disabled:Jt(i)(t,!1),onActivate:e=>y(t,!0)},{default:ao(()=>[e.$slots["arrow-right"]?Xr(e.$slots,"arrow-right",{key:0}):zi("",!0),e.$slots["arrow-right"]?zi("",!0):(Ai(),Ti(Jt(The),{key:1}))]),_:2},1032,["aria-label","disabled","onActivate"])):zi("",!0),Ni(jl,{name:Jt(m)(v.value[t]),css:Jt(g)},{default:ao(()=>[v.value[t]?(Ai(),Ti(qve,{key:0,items:Jt(r)(t),"text-input":e.textInput,"esc-close":e.escClose,config:e.config,onToggle:e=>_(t),onSelected:e=>((e,t)=>{f(e,t),_(t)})(e,t),"is-last":e.autoApply&&!e.keepActionRow&&!Jt(u).keepActionRow,type:"year"},Jr({"button-icon":ao(()=>[e.$slots["calendar-icon"]?Xr(e.$slots,"calendar-icon",{key:0}):zi("",!0),e.$slots["calendar-icon"]?zi("",!0):(Ai(),Ti(Jt(Che),{key:1}))]),_:2},[e.$slots["year-overlay-value"]?{name:"item",fn:ao(({item:t})=>[Xr(e.$slots,"year-overlay-value",{text:t.text,value:t.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","onToggle","onSelected","is-last"])):zi("",!0)]),_:2},1032,["name","css"])])]}),_:2},1032,["items","arrow-navigation","is-last","esc-close","height","config","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars"]))}}),tye=Ko({compatConfig:{MODE:3},__name:"YearPicker",props:{...Ove},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply"],setup(e,{emit:t}){const n=e,{groupedYears:o,selectYear:r,setHoverValue:a}=((e,t)=>{const{modelValue:n}=Sve(e,t),o=Kt(null),r=bl(()=>_be(dbe(e.yearRange,e.reverseYears),t=>{const r=(e=>Array.isArray(n.value)?n.value.some(t=>rhe(t)===e):!!n.value&&rhe(n.value)===e)(t.value),i=ybe(t.value,Nbe(e.minDate),Nbe(e.maxDate)),l=(t=>!(!e.range||!Array.isArray(n.value))&&Ibe(n.value,o.value,a(t)))(t.value);return{active:r,disabled:i,isBetween:l}})),a=e=>bhe(Bbe(new Date),e);return{groupedYears:r,setHoverValue:e=>{o.value=bhe(Bbe(new Date),e)},selectYear:o=>{if(e.multiDates)return Wve(a(o),n,e.multiDatesLimit),t("auto-apply",!0);if(e.range){const r=$ve(n,a(o),t);return Yve(r,t,e.autoApply,e.modelAuto)}n.value=a(o),t("auto-apply")}}})(n,t),{defaultedConfig:i}=mve(n);return(e,t)=>(Ai(),Si("div",null,[e.$slots["month-year"]?Xr(e.$slots,"month-year",J(qi({key:0},{years:Jt(o),selectYear:Jt(r)}))):(Ai(),Ti(qve,{key:1,items:Jt(o),"is-last":e.autoApply&&!e.keepActionRow&&!Jt(i).keepActionRow,height:255!==e.modeHeight?e.modeHeight:Jt(i).modeHeight,config:e.config,type:"year","use-relative":"",onSelected:Jt(r),onHoverValue:Jt(a)},Jr({_:2},[e.$slots["year-overlay-value"]?{name:"item",fn:ao(({item:t})=>[Xr(e.$slots,"year-overlay-value",{text:t.text,value:t.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","onSelected","onHoverValue"]))]))}}),nye={key:0,class:"dp__time_input"},oye=["aria-label","onKeydown","onClick"],rye=Mi("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),aye=Mi("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),iye=["aria-label","disabled","onKeydown","onClick"],lye=["aria-label","onKeydown","onClick"],sye=Mi("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),cye=Mi("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),uye={key:0},dye=["aria-label","onKeydown"],pye=Ko({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},...Ove},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const o=e,{setTimePickerElements:r,setTimePickerBackRef:a}=dve(),{defaultedAriaLabels:i,defaultedTransitions:l,defaultedFilters:s,defaultedConfig:c}=mve(o),{transitionName:u,showTransition:d}=Eve(l),p=Lt({hours:!1,minutes:!1,seconds:!1}),f=Kt("AM"),m=Kt(null),g=Kt([]);Dr(()=>{n("mounted")});const h=e=>Zge(new Date,{hours:e.hours,minutes:e.minutes,seconds:o.enableSeconds?e.
2seconds:0,milliseconds:0}),b=bl(()=>e=>S(e,o[e])),v=bl(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),y=bl(()=>e=>!I(+o[e]+ +o[`${e}Increment`],e)),_=bl(()=>e=>!I(+o[e]-+o[`${e}Increment`],e)),A=(e,t)=>xhe(Zge(xbe(),e),t),k=(e,t)=>function(e,t){if(ife(2,arguments),!t||"object"!==afe(t))return new Date(NaN);var n=t.years?ufe(t.years):0,o=t.months?ufe(t.months):0,r=t.weeks?ufe(t.weeks):0,a=t.days?ufe(t.days):0,i=t.hours?ufe(t.hours):0,l=t.minutes?ufe(t.minutes):0,s=t.seconds?ufe(t.seconds):0,c=function(e,t){return ife(2,arguments),Ahe(e,-ufe(t))}(vhe(e,o+12*n),a+7*r),u=1e3*(s+60*(l+60*i));return new Date(c.getTime()-u)}(Zge(xbe(),e),t),x=bl(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),w=bl(()=>{const e=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return o.enableSeconds?e.concat([{type:"",separator:!0},{type:"seconds"}]):e}),C=bl(()=>w.value.filter(e=>!e.separator)),E=bl(()=>e=>{if("hours"===e){const e=D(+o.hours);return{text:e<10?`0${e}`:`${e}`,value:e}}return{text:o[e]<10?`0${o[e]}`:`${o[e]}`,value:o[e]}}),S=(e,t)=>{var n;if(!o.disabledTimesConfig)return!1;const r=o.disabledTimesConfig(o.order,"hours"===e?t:void 0);return!r[e]||!(null==(n=r[e])||!n.includes(t))},T=e=>{const t=o.is24?24:12,n="hours"===e?t:60,r=+o[`${e}GridIncrement`],a=[];for(let t="hours"!==e||o.is24?0:r;t<n;t+=r)a.push({value:t,text:t<10?`0${t}`:`${t}`});return"hours"===e&&!o.is24&&a.push({value:0,text:"12"}),_be(a,t=>({active:!1,disabled:s.value.times[e].includes(t.value)||!I(t.value,e)||S(e,t.value)}))},I=(e,t)=>{const n=o.minTime?h(Obe(o.minTime)):null,r=o.maxTime?h(Obe(o.maxTime)):null,a=h(Obe(v.value,t,e));return n&&r?(Xge(a,r)||Qge(a,r))&&(ehe(a,n)||Qge(a,n)):n?ehe(a,n)||Qge(a,n):!r||Xge(a,r)||Qge(a,r)},B=e=>o[`no${e[0].toUpperCase()+e.slice(1)}Overlay`],O=e=>{B(e)||(p[e]=!p[e],p[e]||n("overlay-closed"))},L=(e,t=!0)=>{const r=t?A:k,a=t?+o[`${e}Increment`]:-+o[`${e}Increment`];I(+o[e]+a,e)&&n(`update:${e}`,(e=>"hours"===e?the:"minutes"===e?nhe:ohe)(e)(r({[e]:+o[e]},{[e]:+o[`${e}Increment`]})))},D=e=>o.is24?e:(f.value=e>=12?"PM":"AM",(e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e])(e)),M=()=>{"PM"===f.value?(f.value="AM",n("update:hours",o.hours-12)):(f.value="PM",n("update:hours",o.hours+12)),n("am-pm-change",f.value)},N=(e,t,n)=>{if(e&&o.arrowNavigation){Array.isArray(g.value[t])?g.value[t][n]=e:g.value[t]=[e];const i=g.value.reduce((e,t)=>t.map((n,o)=>[...e[o]||[],t[o]]),[]);a(o.closeTimePickerBtn),m.value&&(i[1]=i[1].concat(m.value)),r(i,o.order)}};return t({openChildCmp:e=>{p[e]=!0}}),(e,t)=>{var r;return e.disabled?zi("",!0):(Ai(),Si("div",nye,[(Ai(!0),Si(gi,null,Yr(w.value,(t,n)=>{var r,a,l;return Ai(),Si("div",{key:n,class:Y(x.value)},[t.separator?(Ai(),Si(gi,{key:0},[Fi(" : ")],64)):(Ai(),Si(gi,{key:1},[Mi("button",{type:"button",class:Y({dp__btn:!0,dp__inc_dec_button:!o.timePickerInline,dp__inc_dec_button_inline:o.timePickerInline,dp__tp_inline_btn_top:o.timePickerInline,dp__inc_dec_button_disabled:y.value(t.type)}),"aria-label":null==(r=Jt(i))?void 0:r.incrementValue(t.type),tabindex:"0",onKeydown:[cc(lc(e=>L(t.type),["prevent"]),["enter"]),cc(lc(e=>L(t.type),["prevent"]),["space"])],onClick:e=>L(t.type),ref_for:!0,ref:e=>N(e,n,0)},[o.timePickerInline?(Ai(),Si(gi,{key:1},[rye,aye],64)):(Ai(),Si(gi,{key:0},[e.$slots["arrow-up"]?Xr(e.$slots,"arrow-up",{key:0}):zi("",!0),e.$slots["arrow-up"]?zi("",!0):(Ai(),Ti(Jt(Bhe),{key:1}))],64))],42,oye),Mi("button",{type:"button","aria-label":null==(a=Jt(i))?void 0:a.openTpOverlay(t.type),class:Y({dp__time_display:!0,dp__time_display_block:!o.timePickerInline,dp__time_display_inline:o.timePickerInline,"dp--time-invalid":b.value(t.type),"dp--time-overlay-btn":!b.value(t.type)}),disabled:B(t.type),tabindex:"0",onKeydown:[cc(lc(e=>O(t.type),["prevent"]),["enter"]),cc(lc(e=>O(t.type),["prevent"]),["space"])],onClick:e=>O(t.type),ref_for:!0,ref:e=>N(e,n,1)},[e.$slots[t.type]?Xr(e.$slots,t.type,{key:0,text:E.value(t.type).text,value:E.value(t.type).value}):zi("",!0),e.$slots[t.type]?zi("",!0):(Ai(),Si(gi,{key:1},[Fi(fe(E.value(t.type).text),1)],64))],42,iye),Mi("button",{type:"button",class:Y({dp__btn:!0,dp__inc_dec_button:!o.timePickerInline,dp__inc_dec_button_inline:o.timePickerInline,dp__tp_inline_btn_bottom:o.timePickerInline,dp__inc_dec_button_disabled:_.value(t.type)}),"aria-label":null==(l=Jt(i))?void 0:l.decrementValue(t.type),tabindex:"0",onKeydown:[cc(lc(e=>L(t.type,!1),["prevent"]),["enter"]),cc(lc(e=>L(t.type,!1),["prevent"]),["space"])],onClick:e=>L(t.type,!1),ref_for:!0,ref:e=>N(e,n,2)},[o.timePickerInline?(Ai(),Si(gi,{key:1},[sye,cye],64)):(Ai(),Si(gi,{key:0},[e.$slots["arrow-down"]?Xr(e.$slots,"arrow-down",{key:0}):zi("",!0),e.$slots["arrow-down"]?zi("",!0):(Ai(),Ti(Jt(Ohe),{key:1}))],64))],42,lye)],64))],2)}
2),128)),e.is24?zi("",!0):(Ai(),Si("div",uye,[e.$slots["am-pm-button"]?Xr(e.$slots,"am-pm-button",{key:0,toggle:M,value:f.value}):zi("",!0),e.$slots["am-pm-button"]?zi("",!0):(Ai(),Si("button",{key:1,ref_key:"amPmButton",ref:m,type:"button",class:"dp__pm_am_button",role:"button","aria-label":null==(r=Jt(i))?void 0:r.amPmButton,tabindex:"0",onClick:M,onKeydown:[cc(lc(M,["prevent"]),["enter"]),cc(lc(M,["prevent"]),["space"])]},fe(f.value),41,dye))])),(Ai(!0),Si(gi,null,Yr(C.value,(r,a)=>(Ai(),Ti(jl,{key:a,name:Jt(u)(p[r.type]),css:Jt(d)},{default:ao(()=>[p[r.type]?(Ai(),Ti(qve,{key:0,items:T(r.type),"is-last":e.autoApply&&!e.keepActionRow&&!Jt(c).keepActionRow,"esc-close":e.escClose,type:r.type,"text-input":e.textInput,config:e.config,"arrow-navigation":e.arrowNavigation,onSelected:e=>((e,t)=>(O(e),"hours"!==e||o.is24?n(`update:${e}`,t):n(`update:${e}`,"PM"===f.value?t+12:t)))(r.type,e),onToggle:e=>O(r.type),onResetFlow:t[0]||(t[0]=t=>e.$emit("reset-flow"))},Jr({"button-icon":ao(()=>[e.$slots["clock-icon"]?Xr(e.$slots,"clock-icon",{key:0}):zi("",!0),e.$slots["clock-icon"]?zi("",!0):(Ai(),Ti(Jt(Ihe),{key:1}))]),_:2},[e.$slots[`${r.type}-overlay-value`]?{name:"item",fn:ao(({item:t})=>[Xr(e.$slots,`${r.type}-overlay-value`,{text:t.text,value:t.value})]),key:"0"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","onSelected","onToggle"])):zi("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),fye=["aria-label"],mye=["tabindex"],gye=["aria-label"],hye=Ko({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},...Ove},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const o=e,{buildMatrix:r,setTimePicker:a}=dve(),i=fa(),{defaultedTransitions:l,defaultedAriaLabels:s,defaultedTextInput:c,defaultedConfig:u}=mve(o),{transitionName:d,showTransition:p}=Eve(l),{hideNavigationButtons:f}=Ive(),m=Kt(null),g=Kt(null),h=Kt([]),b=Kt(null);Dr(()=>{n("mount"),!o.timePicker&&o.arrowNavigation?r([fbe(m.value)],"time"):a(!0,o.timePicker)});const v=bl(()=>!o.range||!o.modelAuto||mbe(o.internalModelValue)),y=Kt(!1),_=e=>({hours:Array.isArray(o.hours)?o.hours[e]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[e]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[e]:o.seconds}),A=bl(()=>{const e=[];if(o.range)for(let t=0;t<2;t++)e.push(_(t));else e.push(_(0));return e}),k=(e,t=!1,r="")=>{t||n("reset-flow"),y.value=e,n(e?"overlay-opened":"overlay-closed"),o.arrowNavigation&&a(e),Nn(()=>{""!==r&&h.value[0]&&h.value[0].openChildCmp(r)})},x=bl(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!o.keepActionRow&&!u.value.keepActionRow})),w=Cve(i,"timePicker"),C=(e,t,n)=>o.range?0===t?[e,A.value[1][n]]:[A.value[0][n],e]:e,E=e=>{n("update:hours",e)},S=e=>{n("update:minutes",e)},T=e=>{n("update:seconds",e)},I=()=>{if(b.value&&!c.value.enabled){const e=(e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]})(b.value);e&&e.focus({preventScroll:!0})}};return t({toggleTimePicker:k}),(t,n)=>{var r;return Ai(),Si("div",null,[t.timePicker||t.timePickerInline?zi("",!0):io((Ai(),Si("button",{key:0,type:"button",class:Y(x.value),"aria-label":null==(r=Jt(s))?void 0:r.openTimePicker,tabindex:"0",ref_key:"openTimePickerBtn",ref:m,onKeydown:[n[0]||(n[0]=cc(e=>k(!0),["enter"])),n[1]||(n[1]=cc(e=>k(!0),["space"]))],onClick:n[2]||(n[2]=e=>k(!0))},[t.$slots["clock-icon"]?Xr(t.$slots,"clock-icon",{key:0}):zi("",!0),t.$slots["clock-icon"]?zi("",!0):(Ai(),Ti(Jt(Ihe),{key:1}))],42,fye)),[[rs,!Jt(f)(t.hideNavigation,"time")]]),Ni(jl,{name:Jt(d)(y.value),css:Jt(p)&&!t.timePickerInline},{default:ao(()=>{var r;return[y.value||t.timePicker||t.timePickerInline?(Ai(),Si("div",{key:0,class:Y({dp__overlay:!t.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!t.timePickerInline,"dp--overlay-relative":o.timePicker}),style:G(t.timePicker?{height:`${255!==t.modeHeight?t.modeHeight:Jt(u).modeHeight}px`}:void 0),ref_key:"overlayRef",ref:b,tabindex:t.timePickerInline?void 0:0},[Mi("div",{class:Y(t.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}}
2,[t.$slots["time-picker-overlay"]?Xr(t.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:E,setMinutes:S,setSeconds:T}):zi("",!0),t.$slots["time-picker-overlay"]?zi("",!0):(Ai(),Si("div",{key:1,class:Y(t.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(Ai(!0),Si(gi,null,Yr(A.value,(o,r)=>io((Ai(),Ti(pye,qi({key:r},{...t.$props,order:r,hours:o.hours,minutes:o.minutes,seconds:o.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:0===r?t.fixedStart:t.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:h,"onUpdate:hours":e=>E(C(e,r,"hours")),"onUpdate:minutes":e=>S(C(e,r,"minutes")),"onUpdate:seconds":e=>T(C(e,r,"seconds")),onMounted:I,onOverlayClosed:I,onAmPmChange:n[3]||(n[3]=e=>t.$emit("am-pm-change",e))}),Jr({_:2},[Yr(Jt(w),(e,n)=>({name:e,fn:ao(n=>[Xr(t.$slots,e,J(Pi(n)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[rs,0===r||v.value]])),128))],2)),t.timePicker||t.timePickerInline?zi("",!0):io((Ai(),Si("button",{key:2,type:"button",ref_key:"closeTimePickerBtn",ref:g,class:Y(x.value),"aria-label":null==(r=Jt(s))?void 0:r.closeTimePicker,tabindex:"0",onKeydown:[n[4]||(n[4]=cc(e=>k(!1),["enter"])),n[5]||(n[5]=cc(e=>k(!1),["space"]))],onClick:n[6]||(n[6]=e=>k(!1))},[t.$slots["calendar-icon"]?Xr(t.$slots,"calendar-icon",{key:0}):zi("",!0),t.$slots["calendar-icon"]?zi("",!0):(Ai(),Ti(Jt(Che),{key:1}))],42,gye)),[[rs,!Jt(f)(t.hideNavigation,"time")]])],2)],14,mye)):zi("",!0)]}),_:3},8,["name","css"])])}}}),bye=(e,t,n,o)=>{const r=(e,n)=>Array.isArray(t[e])?t[e][n]:t[e],a=n=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[n]:t.seconds:0,i=(e,n)=>{t[e]=n},l=(r,a)=>{((o,r)=>{const a=Object.fromEntries(Object.keys(t).map(e=>e===o?[e,r]:[e,t[e]].slice()));if(e.range&&!e.disableTimeRangeValidation){const e=e=>n.value?Cbe(n.value[e],a.hours[e],a.minutes[e],a.seconds[e]):null,t=e=>Jge(n.value[e],0);return!(Sbe(e(0),e(1))&&(ehe(e(0),t(1))||Xge(e(1),t(0))))}return!0})(r,a)&&(i(r,a),o&&o())},s=e=>{l("hours",e)},c=e=>{l("minutes",e)},u=e=>{l("seconds",e)},d=bl(()=>(n,o)=>{var r;if(Array.isArray(e.disabledTimes)){const{disabledArr:a,hours:i}=((n,o)=>{const r={hours:Array.isArray(t.hours)?t.hours[n]:t.hours,disabledArr:[]};return(o||0===o)&&(r.hours=o),Array.isArray(e.disabledTimes)&&(r.disabledArr=e.range&&Array.isArray(e.disabledTimes[n])?e.disabledTimes[n]:e.disabledTimes),r})(n,o),l=a.filter(e=>+e.hours===i);return"*"===(null==(r=l[0])?void 0:r.minutes)?{hours:[i],minutes:void 0,seconds:void 0}:{hours:[],minutes:(null==l?void 0:l.map(e=>+e.minutes))??[],seconds:(null==l?void 0:l.map(e=>e.seconds?+e.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:i,updateHours:s,updateMinutes:c,updateSeconds:u,getSetDateTime:(e,n)=>e?void 0!==n?Cbe(e,r("hours",n),r("minutes",n),a(n)):Cbe(e,t.hours,t.minutes,a()):xbe(),updateTimeValues:(e,t,o,r)=>{t&&s(e),!t&&!o&&c(e),o&&u(e),n.value&&r(n.value)},getSecondsValue:a,assignStartTime:t=>{if(t){const n=Array.isArray(t),o=n?[+t[0].hours,+t[1].hours]:+t.hours,r=n?[+t[0].minutes,+t[1].minutes]:+t.minutes,a=n?[+t[0].seconds,+t[1].seconds]:+t.seconds;i("hours",o),i("minutes",r),e.enableSeconds&&i("seconds",a)}},disabledTimesConfig:d}},vye=(e,t)=>{const{modelValue:n,time:o}=Sve(e,t),{defaultedStartTime:r}=mve(e),{updateTimeValues:a,getSetDateTime:i,setTime:l,assignStartTime:s,disabledTimesConfig:c}=bye(e,o,n),u=e=>{const{hours:t,minutes:n,seconds:o}=e;return{hours:+t,minutes:+n,seconds:o?+o:0}},d=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const t=u(e.startTime[0]),n=u(e.startTime[1]);return[Zge(xbe(),t),Zge(xbe(),n)]}const t=u(e.startTime);return Zge(xbe(),t)}return e.range?[null,null]:null},p=(t,n,o)=>{l("hours",t),l("minutes",n),e.enableSeconds&&l("seconds",o)};Dr(()=>{if(!e.shadow)return s(r.value),n.value?(()=>{const[t,o]=(e=>Array.isArray(e)?[Lbe(xbe(e[0])),Lbe(xbe(e[1]))]:[Lbe(e??xbe())])(n.value);return e.range?p([t.hours,o.hours],[t.minutes,o.minutes],[t.seconds,o.minutes]):p(t.hours,t.minutes,t.seconds)})():(()=>{if(e.range){const[e,t]=d();n.value=[i(e,0),i(t,1)]}else n.value=i(d())})()});const f=()=>{Array.isArray(n.value)?n.value=n.value.map((e,t)=>e&&i(e,t)):n.value=i(n.value),t("time-update")};return{time:o,disabledTimesConfig:c,updateTime:(e,t=!0,n=!1)=>{a(e,t,n,f)}}},yye=Ko({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...Ove},emits:["update:internal-model-value","time-update","am-pm-change"],setup(e,{emit:t}){const n=e,o=fa(),r=Cve(o,"timePicker"),{time:a,disabledTimesConfig:i,updateTime:l}=vye(n,t);return(e,t)=>(Ai(),Ti(Gve,{"multi-calendars":0,stretch:""},{default:ao(()=>[Ni(hye,qi(e.$props,{hours:Jt(a).hours,minutes:Jt(a).minutes,seconds:Jt(a).seconds,"internal-model-value":e.internalModelValue,"disabled-times-config":Jt(i),"onUpdate:hours":t[0]||(t[0]=e=>Jt(l)(e)),"onUpdate:minutes":t[1]||(t[1]=e=>Jt(l)(e,!1)),"onUpdate:seconds":t[2]||(t[2]=e=>Jt(l)(e,!1,!0)),onAmPmChange:t[3]||(t[3]=t=>e.$emit("am-pm-change",t))}),Jr({_:2},[Yr(Jt(r),(t,n)=>({name:t,fn:ao(n=>[Xr(e.$slots,t,J(Pi(n)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config"])]),_:3}))}}),_ye={class:"dp__month_year_row"},Aye=["aria-label","onClick","onKeydown"],kye=Ko({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...Ove},emits:["update-month-year","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:n}){const o=e,{defaultedTransitions:r,defaultedAriaLabels:a,defaultedMultiCalendars:i,defaultedFilters:l,defaultedConfig:s}=mve(o),{transitionName:c,showTransition:u}=Eve(r),{buildMatrix:d}=dve(),{handleMonthYearChange:p,isDisabled:f,updateMonthYear:m}=((e,t)=>{const{defaultedFilters:n}=mve(e),{validateMonthYearInRange:o}=Tve(e),r=(e,t)=>{let o=e;return n.value.months.includes(ahe(o))?(o=t?ghe(e,1):vhe(e,1),r(o,t)):o},a=(e,t)=>{let o=e;return n.value.years.includes(rhe(o))?(o=t?yhe(e,1):_he(e,1),a(o,t)):o},i=(e,n,o)=>
2{t("update-month-year",{month:e,year:n,fromNav:o})},l=bl(()=>t=>Gbe(Zge(new Date,{month:e.month,year:e.year}),e.maxDate,e.minDate,e.preventMinMaxNavigation,t));return{handleMonthYearChange:(t,l=!1)=>{const s=Zge(new Date,{month:e.month,year:e.year});let c=t?ghe(s,1):vhe(s,1);e.disableYearSelect&&(c=bhe(c,e.year));let u=ahe(c),d=rhe(c);n.value.months.includes(u)&&(c=r(c,t),u=ahe(c),d=rhe(c)),n.value.years.includes(d)&&(c=a(c,t),d=rhe(c)),o(u,d,t,e.preventMinMaxNavigation)&&i(u,d,l)},isDisabled:l,updateMonthYear:i}})(o,n),{showLeftIcon:g,showRightIcon:h}=Ive(),b=Kt(!1),v=Kt(!1),y=Kt([null,null,null,null]);Dr(()=>{n("mount")});const _=e=>({get:()=>o[e],set:t=>{const r=e===bve.month?bve.year:bve.month;n("update-month-year",{[e]:t,[r]:o[r]}),e===bve.month?T(!0):I(!0)}}),A=bl(_(bve.month)),k=bl(_(bve.year)),x=bl(()=>e=>({month:o.month,year:o.year,items:e===bve.month?o.months:o.years,instance:o.instance,updateMonthYear:m,toggle:e===bve.month?T:I})),w=bl(()=>o.months.find(e=>e.value===o.month)||{text:"",value:0}),C=bl(()=>_be(o.months,e=>({active:o.month===e.value,disabled:ybe(e.value,Dbe(o.year,o.minDate),Mbe(o.year,o.maxDate))||l.value.months.includes(e.value)}))),E=bl(()=>_be(o.years,e=>({active:o.year===e.value,disabled:ybe(e.value,Nbe(o.minDate),Nbe(o.maxDate))||l.value.years.includes(e.value)}))),S=(e,t)=>{e.value=void 0!==t?t:!e.value,e.value||n("overlay-closed")},T=(e=!1,t)=>{B(e),S(b,t)},I=(e=!1,t)=>{B(e),S(v,t)},B=e=>{e||n("reset-flow")},O=(e,t)=>{o.arrowNavigation&&(y.value[t]=fbe(e),d(y.value,"monthYear"))},L=bl(()=>{var e,t;return[{type:bve.month,index:1,toggle:T,modelValue:A.value,updateModelValue:e=>A.value=e,text:w.value.text,showSelectionGrid:b.value,items:C.value,ariaLabel:null==(e=a.value)?void 0:e.openMonthsOverlay},{type:bve.year,index:2,toggle:I,modelValue:k.value,updateModelValue:e=>k.value=e,text:o.year,showSelectionGrid:v.value,items:E.value,ariaLabel:null==(t=a.value)?void 0:t.openYearsOverlay}]}),D=bl(()=>o.disableYearSelect?[L.value[0]]:L.value);return t({toggleMonthPicker:T,toggleYearPicker:I,handleMonthYearChange:p}),(t,n)=>{var r,l,d;return Ai(),Si("div",_ye,[t.$slots["month-year"]?Xr(t.$slots,"month-year",J(qi({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:Jt(m),handleMonthYearChange:Jt(p),instance:e.instance}))):(Ai(),Si(gi,{key:1},[Jt(g)(Jt(i),e.instance)&&!t.vertical?(Ai(),Ti(Zve,{key:0,"aria-label":null==(r=Jt(a))?void 0:r.prevMonth,disabled:Jt(f)(!1),onActivate:n[0]||(n[0]=e=>Jt(p)(!1,!0)),onSetRef:n[1]||(n[1]=e=>O(e,0))},{default:ao(()=>[t.$slots["arrow-left"]?Xr(t.$slots,"arrow-left",{key:0}):zi("",!0),t.$slots["arrow-left"]?zi("",!0):(Ai(),Ti(Jt(She),{key:1}))]),_:3},8,["aria-label","disabled"])):zi("",!0),Mi("div",{class:Y(["dp__month_year_wrap",{dp__year_disable_select:t.disableYearSelect}])},[(Ai(!0),Si(gi,null,Yr(D.value,(e,n)=>(Ai(),Si(gi,{key:e.type},[Mi("button",{type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":e.ariaLabel,ref_for:!0,ref:e=>O(e,n+1),onClick:e.toggle,onKeydown:[cc(lc(e.toggle,["prevent"]),["enter"]),cc(lc(e.toggle,["prevent"]),["space"])]},[t.$slots[e.type]?Xr(t.$slots,e.type,{key:0,text:e.text,value:o[e.type]}):zi("",!0),t.$slots[e.type]?zi("",!0):(Ai(),Si(gi,{key:1},[Fi(fe(e.text),1)],64))],40,Aye),Ni(jl,{name:Jt(c)(e.showSelectionGrid),css:Jt(u)},{default:ao(()=>[e.showSelectionGrid?(Ai(),Ti(qve,{key:0,items:e.items,"arrow-navigation":t.arrowNavigation,"hide-navigation":t.hideNavigation,"is-last":t.autoApply&&!t.keepActionRow&&!Jt(s).keepActionRow,"skip-button-ref":!1,config:t.config,type:e.type,"header-refs":[],"esc-close":t.escClose,"text-input":t.textInput,onSelected:e.updateModelValue,onToggle:e.toggle},Jr({"button-icon":ao(()=>[t.$slots["calendar-icon"]?Xr(t.$slots,"calendar-icon",{key:0}):zi("",!0),t.$slots["calendar-icon"]?zi("",!0):(Ai(),Ti(Jt(Che),{key:1}))]),_:2},[t.$slots[`${e.type}-overlay-val`]?{name:"item",fn:ao(({item:n})=>[Xr(t.$slots,`${e.type}-overlay-val`,{text:n.text,value:n.value})]),key:"0"}:void 0,t.$slots[`${e.type}-overlay`]?{name:"overlay",fn:ao(()=>[Xr(t.$slots,`${e.type}-overlay`,J(Pi(x.value(e.type))))]),key:"1"}:void 0,t.$slots[`${e.type}-overlay-header`]?{name:"header",fn:ao(()=>[Xr(t.$slots,`${e.type}-overlay-header`,{toggle:e.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","text-input","onSelected","onToggle"])):zi("",!0)]),_:2},1032,["name","css"])],64))),128))],2),Jt(g)(Jt(i),e.instance)&&t.vertical?(Ai(),Ti(Zve,{key:1,"aria-label":null==(l=Jt(a))?void 0:l.prevMonth,disabled:Jt(f)(!1),onActivate:n[2]||(n[2]=e=>Jt(p)(!1,!0))},{default:ao(()=>[t.$slots["arrow-up"]?Xr(t.$slots,"arrow-up",{key:0}):zi("",!0),t.$slots["arrow-up"]?zi("",!0):(Ai(),Ti(Jt(Bhe),{key:1}))]),_:3},8,["aria-label","disabled"])):zi("",!0),Jt(h)(Jt(i),e.instance)?(Ai(),Ti(Zve,{key:2,ref:"rightIcon",disabled:Jt(f)(!0),"aria-label":null==(d=Jt(a))?void 0:d.nextMonth,onActivate:n[3]||(n[3]=e=>Jt(p)(!0,!0)),onSetRef:n[4]||(n[4]=e=>O(e,t.disableYearSelect?2:3))},{default:ao(()=>[t.$slots[t.vertical?"arrow-down":"arrow-right"]?Xr(t.$slots,t.vertical?"arrow-down":"arrow-right",{key:0}):zi("",!0),t.$slots[t.vertical?"arrow-down":"arrow-right"]?zi("",!0):(Ai(),Ti(Kr(t.vertical?Jt(Ohe):Jt(The)),{key:1}))]),_:3},8,["disabled","aria-label"])):zi("",!0)],64))])}}}),xye=["aria-label"],wye={class:"dp__calendar_header",role:"row"},Cye={key:0,class:"dp__calendar_header_item",role:"gridcell"},Eye=Mi("div",{class:"dp__calendar_header_separator"},null,-1),Sye=["aria-label"],Tye={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},Iye={class:"dp__cell_inner"},Bye=["aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],Oye=Ko({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...Ove},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const o=e,{buildMultiLevelMatrix:r}=dve(),{defaultedTransitions:a,defaultedConfig:i,defaultedAriaLabels:l,defaultedMultiCalendars:s}=mve(o),c=Kt(null),u=Kt({bottom:"",left:"",transform:""}),d=Kt([]),p=Kt(null),f=Kt(!0),m=Kt(""),g=Kt({startX:0,endX:0,startY:0,endY:0}),h=Kt([]),b=Kt({left:"50%"}),v=bl(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),y=bl(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):((e,t,n)=>{const o=[1,2,3,4,5,6,7];let r;if(null!==e)try{r=o.map(function(e){return t=>rme(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}(e))}catch{r=o.map(ube(t))}else r=o.map(ube(t));const a=r.slice(0,n),i=r.slice(n+1,r.length);return[r[n]].concat(...i).concat(...a)})(o.formatLocale,o.locale,+o.weekStart));Dr(()=>{n("mount",{cmp:"calendar",refs:d}),!o.noSwipe&&!i.value.noSwipe&&p.value&&(p.value.addEventListener("touchstart",E,{passive:!1}),p.value.addEventListener("touchend",S,{passive:!1}),p.value.addEventListener("touchmove",T,{passive:!1}
2)),o.monthChangeOnScroll&&p.value&&p.value.addEventListener("wheel",B,{passive:!1})});const _=e=>e?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",A=bl(()=>({[o.calendarClassName]:!!o.calendarClassName})),k=bl(()=>e=>{const t=(e=>Object.assign({type:"dot"},e))(e);return{dp__marker_dot:"dot"===t.type,dp__marker_line:"line"===t.type}}),x=bl(()=>e=>Sbe(e,c.value)),w=bl(()=>({dp__calendar:!0,dp__calendar_next:s.value.count>0&&0!==o.instance})),C=bl(()=>e=>!o.hideOffsetDates||e.current),E=e=>{g.value.startX=e.changedTouches[0].screenX,g.value.startY=e.changedTouches[0].screenY},S=e=>{g.value.endX=e.changedTouches[0].screenX,g.value.endY=e.changedTouches[0].screenY,I()},T=e=>{o.vertical&&!o.inline&&e.preventDefault()},I=()=>{const e=o.vertical?"Y":"X";Math.abs(g.value[`start${e}`]-g.value[`end${e}`])>10&&n("handle-swipe",g.value[`start${e}`]>g.value[`end${e}`]?"right":"left")},B=e=>{o.monthChangeOnScroll&&(e.preventDefault(),n("handle-scroll",e))},O=e=>{const t=e[0];return"local"===o.weekNumbers?function(e,t){ife(1,arguments);var n=sfe(e),o=hhe(n,t).getTime()-function(e,t){var n,o,r,a,i,l,s,c;ife(1,arguments);var u=hfe(),d=ufe(null!==(n=null!==(o=null!==(r=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==o?o:null===(s=u.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=function(e,t){var n,o,r,a,i,l,s,c;ife(1,arguments);var u=sfe(e),d=u.getFullYear(),p=hfe(),f=ufe(null!==(n=null!==(o=null!==(r=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:p.firstWeekContainsDate)&&void 0!==o?o:null===(s=p.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setFullYear(d+1,0,f),m.setHours(0,0,0,0);var g=hhe(m,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var b=hhe(h,t);return u.getTime()>=g.getTime()?d+1:u.getTime()>=b.getTime()?d:d-1}(e,t),f=new Date(0);return f.setFullYear(p,0,d),f.setHours(0,0,0,0),hhe(f,t)}(n,t).getTime();return Math.round(o/6048e5)+1}(t.value,{weekStartsOn:+o.weekStart}):"iso"===o.weekNumbers?function(e){ife(1,arguments);var t=sfe(e),n=whe(t).getTime()-function(e){ife(1,arguments);var t=function(e){ife(1,arguments);var t=sfe(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=whe(o),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var i=whe(a);return t.getTime()>=r.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),whe(n)}(t).getTime();return Math.round(n/6048e5)+1}(t.value):"function"==typeof o.weekNumbers?o.weekNumbers(t.value):""},L=e=>{Abe(e,i.value)};return t({triggerTransition:(e,t)=>{if(o.transitions){const n=wbe(qbe(xbe(),o.month,o.year));m.value=Tbe(wbe(qbe(xbe(),e,t)),n)?a.value[_(!0)]:a.value[_(!1)],f.value=!1,Nn(()=>{f.value=!0})}}}),(e,t)=>{var a;return Ai(),Si("div",{class:Y(w.value)},[Mi("div",{ref_key:"calendarWrapRef",ref:p,role:"grid",class:Y(A.value),"aria-label":null==(a=Jt(l))?void 0:a.calendarWrap},[(Ai(),Si(gi,{key:0},[Mi("div",wye,[e.weekNumbers?(Ai(),Si("div",Cye,fe(e.weekNumName),1)):zi("",!0),(Ai(!0),Si(gi,null,Yr(y.value,(t,n)=>(Ai(),Si("div",{class:"dp__calendar_header_item",role:"gridcell",key:n},[e.$slots["calendar-header"]?Xr(e.$slots,"calendar-header",{key:0,day:t,index:n}):zi("",!0),e.$slots["calendar-header"]?zi("",!0):(Ai(),Si(gi,{key:1},[Fi(fe(t),1)],64))]))),128))]),Eye,Ni(jl,{name:m.value,css:!!e.transitions},{default:ao(()=>{var t;return[f.value?(Ai(),Si("div",{key:0,class:"dp__calendar",role:"grid","aria-label":(null==(t=Jt(l))?void 0:t.calendarDays)||void 0},[(Ai(!0),Si(gi,null,Yr(v.value,(t,a)=>(Ai(),Si("div",{class:"dp__calendar_row",role:"row",key:a},[e.weekNumbers?(Ai(),Si("div",Tye,[Mi("div",Iye,fe(O(t.days)),1)])):zi("",!0),(Ai(!0),Si(gi,null,Yr(t.days,(t,s)=>{var p,f,m;return Ai(),Si("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:e=>((e,t,n)=>{e&&(Array.isArray(d.value[t])?d.value[t][n]=e:d.value[t]=[e]),o.arrowNavigation&&r(d.value,"calendar")})(e,a,s),key:s+a,"aria-selected":t.classData.dp__active_date||t.classData.dp__range_start||t.classData.dp__range_start,"aria-disabled":t.classData.dp__cell_disabled||void 0,"aria-label":null==(f=null==(p=Jt(l))?void 0:p.day)?void 0:f.call(p,t),tabindex:"0",onClick:lc(e=>((e,t)=>{Abe(e,i.value),n("select-date",t)})(e,t),["prevent"]),onKeydown:[cc(n=>e.$emit("select-date",t),["enter"]),cc(n=>e.$emit("handle-space",t),["space"])],onMouseenter:e=>(async(e,t,o)=>{var r,a;if(n("set-hover-date",e),null!=(a=null==(r=e.marker)?void 0:r.tooltip)&&a.length){const r=fbe(d.value[t][o]);if(r){const{width:t,height:o}=r.getBoundingClientRect();c.value=e.value;let a={left:t/2+"px"},i=-50;if(await Nn(),h.value[0]){const{left:e,width:n}=h.value[0].getBoundingClientRect();e<0&&(a={left:"0"},i=0,b.value.left=t/2+"px"),window.innerWidth<e+n&&(a={right:"0"},i=0,b.value.left=n-t/2+"px")}u.value={bottom:`${o}px`,...a,transform:`translateX(${i}%)`},n("tooltip-open",e.marker)}}})(t,a,s),onMouseleave:e=>(e=>{c.value&&(c.value=null,u.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",e.marker))})(t)},[Mi("div",{class:Y(["dp__cell_inner",t.classData])},[e.$slots.day&&C.value(t)?Xr(e.$slots,"day",{key:0,day:+t.text,date:t.value}):zi("",!0),e.$slots.day?zi("",!0):(Ai(),Si(gi,{key:1},[Fi(fe(t.text),1)],64)),t.marker&&C.value(t)?(Ai(),Si(gi,{key:2},[e.$slots.marker?Xr(e.$slots,"marker",{key:0,marker:t.marker,day:+t.text,date:t.value}):(Ai(),Si("div",{key:1,class:Y(k.value(t.marker)),style:G(t.marker.color?{backgroundColor:t.marker.color}:{})},null,6))],64)):zi("",!0),x.value(t.value)?(Ai(),Si("div",{key:3,class:"dp__marker_tooltip",ref_for:!0,ref_key:"activeTooltip",ref:h,style:G(u.value)},[null!=(m=t.marker)&&m.tooltip?(Ai(),Si("div",{key:0,class:"dp__tooltip_content",onClick:L},[(Ai(!0),Si(gi,null,Yr(t.marker.tooltip,(n,o)=>(Ai(),Si("div",{key:o,class:"dp__tooltip_text"},[e.$slots["marker-tooltip"]?Xr(e.$slots,"marker-tooltip",{key:0,tooltip:n,day:t.value}):zi("",!0),e.$slots["marker-tooltip"]?zi("",!0):(Ai(),Si(gi,{key:1},[Mi("div",{class:"dp__tooltip_mark",style:G(n.color?{backgroundColor:n.color}:{})},null,4),Mi("div",null,fe(n.text),1)],64))]))),128)),Mi("div",{class:"dp__arrow_bottom_tp",style:G(b.value)},null,4)])):zi("",!0)],4)):zi("",!0)],2)],40,Bye)}),128))]))),128))],8,Sye)):zi("",!0)]}),_:3},8,["name","css"])],64))],10,xye)],2)}}}),Lye=e=>Array.isArray(e),Dye=(e,t,n,o)=>{const r=Kt([]),{modelValue:a,calendars:i,time:l}=Sve(e,t),{defaultedMultiCalendars:s,defaultedStartTime:c}=mve(e),{validateMonthYearInRange:u,isDisabled:d,isDateRangeAllowed:p,checkMinMaxRange:f}=Tve(e),{updateTimeValues:m,getSetDateTime:g,setTime:h,assignStartTime:b,disabledTimesConfig:v}=bye(e,l,a,o),y=bl(()=>e=>i.value[e]?i.value[e].month:0),_=bl(()=>e=>
2i.value[e]?i.value[e].year:0),A=(e,t,n)=>{var o,r;i.value[e]||(i.value[e]={month:0,year:0}),i.value[e].month=vbe(t)?null==(o=i.value[e])?void 0:o.month:t,i.value[e].year=vbe(n)?null==(r=i.value[e])?void 0:r.year:n},k=()=>{e.autoApply&&t("select-date")};bo(a,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&C()}),Dr(()=>{e.shadow||(a.value||(L(),c.value&&b(c.value)),C(!0),e.focusStartDate&&e.startDate&&L())});const x=bl(()=>{var t;return!(null!=(t=e.flow)&&t.length&&!e.partialFlow)||e.flowStep===e.flow.length}),w=()=>{e.autoApply&&x.value&&t("auto-apply",e.partialFlow)},C=(t=!1)=>a.value?Array.isArray(a.value)?(r.value=a.value,T(t)):S(a.value,t):s.value.count&&t&&!e.startDate?E(xbe(),t):void 0,E=(e,t=!1)=>{if((!s.value.count||!s.value.static||t)&&A(0,ahe(e),rhe(e)),s.value.count)for(let e=1;e<s.value.count;e++){const t=xhe(Zge(xbe(),{month:y.value(e-1),year:_.value(e-1)}),{months:1});i.value[e]={month:ahe(t),year:rhe(t)}}},S=(e,t)=>{E(e),h("hours",the(e)),h("minutes",nhe(e)),h("seconds",ohe(e)),s.value.count&&t&&O()},T=t=>{((t,n)=>{if((e.range||e.weekPicker)&&!e.multiDates)return((t,n)=>{t[1]&&e.showLastInRange?E(t[(e=>{if(s.value.count){if(s.value.solo)return 0;const t=ahe(e[0]),n=ahe(e[1]);return Math.abs(n-t)<s.value.count?0:1}return 1})(t)],n):E(t[0],n);const o=(e,n)=>[e(t[0]),t[1]?e(t[1]):l[n][1]];h("hours",o(the,"hours")),h("minutes",o(nhe,"minutes")),h("seconds",o(ohe,"seconds"))})(t,n);if(e.multiDates&&n){const e=t[t.length-1];S(e,n)}})(a.value,t),s.value.count&&s.value.solo&&O()},I=(t,o)=>{const r=Zge(xbe(),{month:y.value(o),year:_.value(o)}),a=t<0?ghe(r,1):vhe(r,1);u(ahe(a),rhe(a),t<0,e.preventMinMaxNavigation)&&(A(o,ahe(a),rhe(a)),s.value.count&&!s.value.solo&&B(o),n())},B=e=>{for(let t=e-1;t>=0;t--){const e=vhe(Zge(xbe(),{month:y.value(t+1),year:_.value(t+1)}),1);A(t,ahe(e),rhe(e))}for(let t=e+1;t<=s.value.count-1;t++){const e=ghe(Zge(xbe(),{month:y.value(t-1),year:_.value(t-1)}),1);A(t,ahe(e),rhe(e))}},O=()=>{if(Array.isArray(a.value)&&2===a.value.length){const e=xbe(xbe(a.value[1]?a.value[1]:ghe(a.value[0],1))),[t,n]=[ahe(a.value[0]),rhe(a.value[0])],[o,r]=[ahe(a.value[1]),rhe(a.value[1])];(t!==o||t===o&&n!==r)&&s.value.solo&&A(1,ahe(e),rhe(e))}else a.value&&!Array.isArray(a.value)&&(A(0,ahe(a.value),rhe(a.value)),E(xbe()))},L=()=>{e.startDate&&(A(0,ahe(xbe(e.startDate)),rhe(xbe(e.startDate))),s.value.count&&B(0))},D=(e,t)=>{I("right"===e?-1:1,t)},M=(t,n)=>{const o=xbe(t),r=[];for(let t=0;t<7;t++){const a=Ahe(o,t),i=ahe(a)!==n;r.push({text:e.hideOffsetDates&&i?"":a.getDate(),value:a,current:!i,classData:{}})}return r},N=t=>!!e.noDisabledRange&&Vbe(r.value[0],t).some(e=>d(e)),P=(n,o)=>(r.value=a.value?a.value.slice():[],2===r.value.length&&!e.fixedStart&&!e.fixedEnd&&(r.value=[]),e.autoRange?((t,n)=>{const o=[xbe(t.value),Ahe(xbe(t.value),+e.autoRange)];p(o)&&(n&&(e=>{const t=ahe(xbe(e)),n=rhe(xbe(e));if(A(0,t,n),s.value.count>0)for(let t=1;t<s.value.count;t++){const n=zbe(Zge(xbe(e),{year:y.value(t-1),month:_.value(t-1)}));A(t,n.month,n.year)}})(t.value),r.value=o)})(n,o):e.fixedStart||e.fixedEnd?(n=>{N(n.value)||!f(n.value,a.value,e.fixedStart?0:1)||(r.value=(n=>Array.isArray(a.value)&&2===a.value.length?e.fixedStart&&(Tbe(n,a.value[0])||Sbe(n,a.value[0]))?[a.value[0],n]:e.fixedEnd&&(Ebe(n,a.value[1])||Sbe(n,a.value[1]))?[n,a.value[1]]:(t("invalid-fixed-range",n),a.value):[])(xbe(n.value)))})(n):void(r.value[0]?f(xbe(n.value),a.value)&&!N(n.value)&&(Ebe(xbe(n.value),xbe(r.value[0]))?(r.value.unshift(xbe(n.value)),t("range-end",r.value[0])):(r.value[1]=xbe(n.value),t("range-end",r.value[1]))):(r.value[0]=xbe(n.value),t("range-start",r.value[0])))),R=(t=!0)=>e.enableSeconds?Array.isArray(l.seconds)?t?l.seconds[0]:l.seconds[1]:l.seconds:0,F=e=>{r.value[e]=Cbe(r.value[e],l.hours[e],l.minutes[e],R(1!==e))},V=()=>{if(Array.isArray(a.value))if(e.multiDates){const e=z();a.value[a.value.length-1]=g(e)}else a.value=a.value.map((e,t)=>e&&g(e,t));else a.value=g(a.value);t("time-update")},z=()=>Array.isArray(a.value)&&a.value.length?a.value[a.value.length-1]:null;return{calendars:i,modelValue:a,month:y,year:_,time:l,disabledTimesConfig:v,getCalendarDays:(t,n)=>{const o=[],r=xbe(Pbe(new Date(n,t),e.timezone)),a=xbe(Pbe(new Date(n,t+1,0),e.timezone)),i=e.weekStart,l=hhe(r,{weekStartsOn:i}),s=e=>{const n=M(e,t);if(o.push({days:n}),!o[o.length-1].days.some(e=>Sbe(wbe(e.value),wbe(a)))){const t=Ahe(e,7);s(t)}};return s(l),((t,n,o,r)=>{if(e.sixWeeks&&t.length<6){const a=6-t.length,i=(n.getDay()+7-r)%7,l=6-(o.getDay()+7-r)%7,[s,c]=((t,n)=>
2{switch(!0===e.sixWeeks?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[0==t,!0];case"fair":return[0==t||n>t,!0];default:return[!1,!1]}})(i,l);for(let e=1;e<=a;e++)if(c?!!(e%2)==s:s){const e=t[0].days[0],o=M(Ahe(e.value,-7),ahe(n));t.unshift({days:o})}else{const e=t[t.length-1],o=e.days[e.days.length-1],r=M(Ahe(o.value,1),ahe(n));t.push({days:r})}}return t})(o,r,a,i)},getMarker:t=>e.markers.find(e=>Sbe(Fbe(t.value),Fbe(e.date))),handleScroll:(t,n)=>{e.monthChangeOnScroll&&I("inverse"!==e.monthChangeOnScroll?-t.deltaY:t.deltaY,n)},handleSwipe:D,handleArrow:(t,n,o=!1)=>{e.monthChangeOnArrows&&e.vertical===o&&D(t,n)},selectDate:(n,i=!1)=>{if(!(d(n.value)||!n.current&&e.hideOffsetDates)){if(e.weekPicker)return(t=>(a.value=Ube(xbe(t.value),e.timezone,e.weekStart),w()))(n);if(!e.range)return(t=>{const n=Cbe(xbe(t.value),l.hours,l.minutes,R());e.multiDates?Wve(n,a,e.multiDatesLimit):a.value=n,o(),Nn().then(()=>{w()})})(n);Lye(l.hours)&&Lye(l.minutes)&&!e.multiDates&&(P(n,i),r.value.length&&(r.value[0]&&!r.value[1]?F(0):(F(0),F(1),o()),(()=>{var e,n;r.value[0]&&r.value[1]&&+(null==(e=r.value)?void 0:e[0])>+(null==(n=r.value)?void 0:n[1])&&(r.value.reverse(),t("range-start",r.value[0]),t("range-end",r.value[1]))})(),a.value=r.value.slice(),Yve(r.value,t,e.autoApply,e.modelAuto)))}},updateMonthYear:(r,a)=>{var i;A(r,a.month,a.year),s.value.count&&!s.value.solo&&B(r),t("update-month-year",{instance:r,month:a.month,year:a.year}),n(s.value.solo?r:void 0);const l=null!=(i=e.flow)&&i.length?e.flow[e.flowStep]:void 0;!a.fromNav&&(l===_ve.month||l===_ve.year)&&o()},presetDate:(t,n)=>{Array.isArray(t)&&t.length<=2&&e.range?a.value=t.map(t=>Pbe(xbe(t),n?void 0:e.timezone)):Array.isArray(t)||(a.value=Pbe(xbe(t),n?void 0:e.timezone)),k(),e.multiCalendars&&Nn().then(()=>C(!0))},selectCurrentDate:()=>{e.range?a.value&&Array.isArray(a.value)&&a.value[0]?a.value=Ebe(xbe(),a.value[0])?[xbe(),a.value[0]]:[a.value[0],xbe()]:a.value=[xbe()]:a.value=xbe(),k()},updateTime:(e,t=!0,n=!1)=>{m(e,t,n,V)}}},Mye={key:0},Nye=Ko({__name:"DatePicker",props:{...Ove},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year"],setup(e,{expose:t,emit:n}){const o=e,{calendars:r,month:a,year:i,modelValue:l,time:s,disabledTimesConfig:c,getCalendarDays:u,getMarker:d,handleArrow:p,handleScroll:f,handleSwipe:m,selectDate:g,updateMonthYear:h,presetDate:b,selectCurrentDate:v,updateTime:y}=Dye(o,n,function(e){var t;e||0===e?null==(t=E.value[e])||t.triggerTransition(a.value(e),i.value(e)):E.value.forEach((e,t)=>e.triggerTransition(a.value(t),i.value(t)))},function(){n("update-flow-step")}),_=fa(),{setHoverDate:A,getDayClassData:k,clearHoverDate:x}=((e,t)=>{const{defaultedMultiCalendars:n}=mve(t),{isDisabled:o,matchDate:r}=Tve(t),a=Kt(null),i=Kt(xbe()),l=(n,o=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&2===e.value.length?!(t.hideOffsetDates&&!n.current)&&Sbe(xbe(n.value),e.value[o?0:1]):!!t.range&&(((t,n)=>{const o=e.value&&Array.isArray(e.value)&&e.value?n?e.value[0]||null:e.value[1]:null;return Sbe(xbe(t.value),o)})(n,o)&&(t=>{const n=Array.isArray(e.value)?e.value[0]:null;return!t||!Ebe(a.value??null,n)})(o)||Sbe(n.value,Array.isArray(e.value)?e.value[0]:null)&&(n=>!(Array.isArray(e.value)&&t.range&&e.value[0]&&a.value)||(n?Tbe(a.value,e.value[0]):Ebe(a.value,e.value[0])))(o)),s=(t,n,o)=>!(!Array.isArray(e.value)||!e.value[0]||1!==e.value.length)&&!t&&(o?Tbe(e.value[0],n.value):Ebe(e.value[0],n.value)),c=n=>!(!e.value||t.hideOffsetDates&&!n.current)&&(t.range?!(!t.modelAuto||!Array.isArray(e.value))&&Sbe(n.value,e.value[0]?e.value[0]:i.value):t.multiDates&&Array.isArray(e.value)?e.value.some(e=>Sbe(e,n.value)):Sbe(n.value,e.value?e.value:i.value)),u=e=>{if(t.autoRange||t.weekPicker){if(a.value){if(t.hideOffsetDates&&!e.current)return!1;const n=Ahe(a.value,+t.autoRange),o=Ube(xbe(a.value),t.timezone,t.weekStart);return t.weekPicker?Sbe(o[1],xbe(e.value)):Sbe(n,xbe(e.value))}return!1}return!1},d=e=>{if(t.autoRange||t.weekPicker){if(a.value){const n=Ahe(a.value,+t.autoRange);
2if(t.hideOffsetDates&&!e.current)return!1;const o=Ube(xbe(a.value),t.timezone,t.weekStart);return t.weekPicker?Tbe(e.value,o[0])&&Ebe(e.value,o[1]):Tbe(e.value,a.value)&&Ebe(e.value,n)}return!1}return!1},p=e=>{if(t.autoRange||t.weekPicker){if(a.value){if(t.hideOffsetDates&&!e.current)return!1;const n=Ube(xbe(a.value),t.timezone,t.weekStart);return t.weekPicker?Sbe(n[0],e.value):Sbe(a.value,e.value)}return!1}return!1},f=()=>!t.modelAuto||mbe(t.internalModelValue),m=n=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const r=!t.range||!l(n)&&!l(n,!1);return!o(n.value)&&!c(n)&&!(!n.current&&t.hideOffsetDates)&&r},g=e=>t.range?!!t.modelAuto&&!(!t.modelAuto||!Array.isArray(t.internalModelValue)||!t.internalModelValue[0])&&c(e):c(e),h=e=>{var n;return!!t.highlight&&r(e.value,null!=(n=t.arrMapValues)&&n.highlightedDates?t.arrMapValues.highlightedDates:t.highlight)},b=e=>o(e.value)&&!1===t.highlightDisabledDays,v=e=>{var n;return null==(n=t.highlightWeekDays)?void 0:n.includes(e.value.getDay())},y=o=>!(!t.range&&!t.weekPicker||n.value.count>0&&!o.current||!f()||!o.current&&t.hideOffsetDates||c(o))&&(t=>Ibe(e.value,a.value,t.value))(o),_=e=>{const{isRangeStart:n,isRangeEnd:r}=k(e),a=!!t.range&&(n||r);return{dp__cell_offset:!e.current,dp__pointer:!(t.disabled||!e.current&&t.hideOffsetDates||o(e.value)),dp__cell_disabled:o(e.value),dp__cell_highlight:!b(e)&&(h(e)||v(e))&&!g(e)&&!a,dp__cell_highlight_active:!b(e)&&(h(e)||v(e))&&g(e),dp__today:!t.noToday&&Sbe(e.value,i.value)&&e.current}},A=e=>({dp__active_date:g(e),dp__date_hover:m(e)}),k=e=>({isRangeStart:n.value.count>0?e.current&&l(e)&&f():l(e)&&f(),isRangeEnd:n.value.count>0?e.current&&l(e,!1)&&f():l(e,!1)&&f()}),x=e=>{const{isRangeStart:n,isRangeEnd:o}=k(e);return{dp__range_start:n,dp__range_end:o,dp__range_between:y(e)&&!t.weekPicker,dp__date_hover_start:s(m(e),e,!0),dp__date_hover_end:s(m(e),e,!1)}},w=e=>({...x(e),dp__cell_auto_range:d(e),dp__cell_auto_range_start:p(e),dp__cell_auto_range_end:u(e)}),C=e=>t.range?t.autoRange?w(e):t.modelAuto?{...A(e),...x(e)}:x(e):t.weekPicker?(e=>({...x(e),...w(e),dp__range_between_week:y(e)&&t.weekPicker}))(e):A(e);return{setHoverDate:e=>{!e.current&&t.hideOffsetDates||(a.value=e.value)},clearHoverDate:()=>{a.value=null},getDayClassData:e=>t.hideOffsetDates&&!e.current?{}:{..._(e),...C(e),[t.dayClass?t.dayClass(e.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}})(l,o),{defaultedMultiCalendars:w}=mve(o),C=Kt([]),E=Kt([]),S=Kt(null),T=Cve(_,"calendar"),I=Cve(_,"monthYear"),B=Cve(_,"timePicker"),O=e=>{o.shadow||n("mount",e)};bo(r,()=>{o.shadow||setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const L=bl(()=>e=>u(a.value(e),i.value(e)).map(e=>({...e,days:e.days.map(e=>(e.marker=d(e),e.classData=k(e),e))})));return t({clearHoverDate:x,presetDate:b,selectCurrentDate:v,toggleMonthPicker:(e,t,n=0)=>{var o;null==(o=C.value[n])||o.toggleMonthPicker(e,t)},toggleYearPicker:(e,t,n=0)=>{var o;null==(o=C.value[n])||o.toggleYearPicker(e,t)},toggleTimePicker:(e,t,n)=>{var o;null==(o=S.value)||o.toggleTimePicker(e,t,n)},handleArrow:p,updateMonthYear:h,getSidebarProps:()=>({modelValue:l,month:a,year:i,time:s,updateTime:y,updateMonthYear:h,selectDate:g,presetDate:b})}),(e,t)=>(Ai(),Si(gi,null,[Ni(Gve,{"multi-calendars":Jt(w).count},{default:ao(({instance:r,index:l})=>[e.disableMonthYearSelect?zi("",!0):(Ai(),Ti(kye,qi({key:0,ref:e=>{e&&(C.value[l]=e)},months:Jt(pbe)(e.formatLocale,e.locale,e.monthNameFormat),years:Jt(dbe)(e.yearRange,e.reverseYears),month:Jt(a)(r),year:Jt(i)(r),instance:r},e.$props,{onMount:t[0]||(t[0]=e=>O(Jt(yve).header)),onResetFlow:t[1]||(t[1]=t=>e.$emit("reset-flow")),onUpdateMonthYear:e=>Jt(h)(r,e),onOverlayClosed:t[2]||(t[2]=t=>e.$emit("focus-menu"))}),Jr({_:2},[Yr(Jt(I),(t,n)=>({name:t,fn:ao(n=>[Xr(e.$slots,t,J(Pi(n)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),Ni(Oye,qi({ref:e=>{e&&(E.value[l]=e)},"mapped-dates":L.value(r),month:Jt(a)(r),year:Jt(i)(r)},e.$props,{onSelectDate:e=>Jt(g)(e,1!==r),onHandleSpace:e=>((e,t=!1)=>{g(e,t),o.spaceConfirm&&n("select-date")})(e,1!==r),onSetHoverDate:t[3]||(t[3]=e=>Jt(A)(e)),onHandleScroll:e=>Jt(f)(e,r),onHandleSwipe:e=>Jt(m)(e,r),onMount:t[4]||(t[4]=e=>O(Jt(yve).calendar)),onResetFlow:t[5]||(t[5]=t=>e.$emit("reset-flow")),onTooltipOpen:t[6]||(t[6]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[7]||(t[7]=t=>e.$emit("tooltip-close",t))}),Jr({_:2},[Yr(Jt(T),(t,n)=>({name:t,fn:ao(n=>[Xr(e.$slots,t,J(Pi({...n})))])}))]),1040,["mapped-dates","month","year","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars"]),e.enableTimePicker?(Ai(),Si("div",Mye,[e.$slots["time-picker"]?Xr(e.$slots,"time-picker",J(qi({ke
2y:0},{time:Jt(s),updateTime:Jt(y)}))):(Ai(),Ti(hye,qi({key:1,ref_key:"timePickerRef",ref:S},e.$props,{hours:Jt(s).hours,minutes:Jt(s).minutes,seconds:Jt(s).seconds,"internal-model-value":e.internalModelValue,"disabled-times-config":Jt(c),onMount:t[8]||(t[8]=e=>O(Jt(yve).timePicker)),"onUpdate:hours":t[9]||(t[9]=e=>Jt(y)(e)),"onUpdate:minutes":t[10]||(t[10]=e=>Jt(y)(e,!1)),"onUpdate:seconds":t[11]||(t[11]=e=>Jt(y)(e,!1,!0)),onResetFlow:t[12]||(t[12]=t=>e.$emit("reset-flow")),onOverlayClosed:t[13]||(t[13]=t=>e.$emit("time-picker-close")),onOverlayOpened:t[14]||(t[14]=t=>e.$emit("time-picker-open",t)),onAmPmChange:t[15]||(t[15]=t=>e.$emit("am-pm-change",t))}),Jr({_:2},[Yr(Jt(B),(t,n)=>({name:t,fn:ao(n=>[Xr(e.$slots,t,J(Pi(n)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config"]))])):zi("",!0)],64))}}),Pye=["id","onKeydown"],Rye={key:0,class:"dp__sidebar_left"},Fye={key:1,class:"dp--preset-dates"},Vye=["onClick","onKeydown"],zye={key:2,class:"dp__sidebar_right"},Uye={key:3,class:"dp__action_extra"},jye=Ko({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Bve,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const o=e,r=bl(()=>{const{openOnTop:e,...t}=o;return{...t,flowStep:x.value}}),{setMenuFocused:a,setShiftKey:i,control:l}=nve(),s=fa(),{defaultedTextInput:c,defaultedInline:u,defaultedConfig:d}=mve(o),p=Kt(null),f=Kt(0),m=Kt(null),g=Kt(null),h=Kt(!1),b=Kt(null);Dr(()=>{if(!o.shadow){h.value=!0,v(),window.addEventListener("resize",v);const e=fbe(m);if(e&&!c.value.enabled&&!u.value.enabled&&(a(!0),T()),e){const t=e=>{(o.allowPreventDefault||d.value.allowPreventDefault)&&e.preventDefault(),Abe(e,d.value,!0)};e.addEventListener("pointerdown",t),e.addEventListener("mousedown",t)}}}),Rr(()=>{window.removeEventListener("resize",v)});const v=()=>{const e=fbe(g);e&&(f.value=e.getBoundingClientRect().width)},{arrowRight:y,arrowLeft:_,arrowDown:A,arrowUp:k}=dve(),{flowStep:x,updateFlowStep:w,childMount:C,resetFlow:E}=((e,t,n)=>{const o=Kt(0),r=Lt({[yve.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[yve.calendar]:!1,[yve.header]:!1}),a=(t,r,...a)=>{e.flow[o.value]===t&&n.value&&n.value[r](...a)},i=()=>{a(_ve.month,"toggleMonthPicker",!0),a(_ve.year,"toggleYearPicker",!0),a(_ve.calendar,"toggleTimePicker",!1,!0),a(_ve.time,"toggleTimePicker",!0,!0);const t=e.flow[o.value];(t===_ve.hours||t===_ve.minutes||t===_ve.seconds)&&a(t,"toggleTimePicker",!0,!0,t)};return{childMount:t=>{var n;null!=(n=e.flow)&&n.length&&(r[t]=!0,Object.keys(r).filter(e=>!r[e]).length||i())},updateFlowStep:()=>{var n;null!=(n=e.flow)&&n.length&&-1!==o.value&&(o.value+=1,t("flow-step",o.value),i())},resetFlow:()=>{o.value=-1},flowStep:o}})(o,n,b),S=bl(()=>o.monthPicker?eye:o.yearPicker?tye:o.timePicker?yye:Nye),T=()=>{const e=fbe(m);e&&e.focus({preventScroll:!0})},I=bl(()=>{var e;return(null==(e=b.value)?void 0:e.getSidebarProps())||{}}),B=()=>{o.openOnTop&&n("recalculate-position")},O=Cve(s,"action"),L=bl(()=>o.monthPicker||o.yearPicker?Cve(s,"monthYear"):o.timePicker?Cve(s,"timePicker"):Cve(s,"shared")),D=bl(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),M=bl(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly})),N=bl(()=>({dp__menu:!0,dp__menu_index:!u.value.enabled,dp__relative:u.value.enabled,[o.menuClassName]:!!o.menuClassName})),P=e=>{Abe(e,d.value,!0)},R=()=>{o.escClose&&n("close-picker")},F=e=>{if(o.arrowNavigation){if("up"===e)return k();if("down"===e)return A();if("left"===e)return _();if("right"===e)return y()}else"left"===e||"up"===e?U("handleArrow","left",0,"up"===e):U("handleArrow","right",0,"down"===e)},V=e=>{i(e.shiftKey),!o.disableMonthYearSelect&&"Tab"===e.code&&e.target.classList.contains("dp__menu")&&l.value.shiftKeyInMenu&&(e.preventDefault(),Abe(e,d.value,!0),n("close-picker"))},z=()=>{T(),n("time-picker-close")},U=(e,...t)=>{var n,o;null!=(n=b.value)&&n[e]&&(null==(o=b.value)||o[e](...t))},j=()=>{U("selectCurrentDate")},H=(e,t)=>{U("presetDate",e,t)},q=()=>{U("clearHoverDate")};return t({updateMonthYear:(e,t)=>
2{U("updateMonthYear",e,t)},switchView:(e,t=0)=>{var n,o,r;return"month"===e?null==(n=b.value)?void 0:n.toggleMonthPicker(!1,!0,t):"year"===e?null==(o=b.value)?void 0:o.toggleYearPicker(!1,!0,t):"time"===e?null==(r=b.value)?void 0:r.toggleTimePicker(!0,!1):(e=>{var t,n,o;null==(t=b.value)||t.toggleTimePicker(!1,!1),null==(n=b.value)||n.toggleMonthPicker(!1,!1,e),null==(o=b.value)||o.toggleYearPicker(!1,!1,e)})(t)}}),(e,t)=>{var n;return Ai(),Si("div",{id:e.uid?`dp-menu-${e.uid}`:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:m,role:"dialog",class:Y(N.value),onMouseleave:q,onClick:P,onKeydown:[cc(R,["esc"]),t[15]||(t[15]=cc(lc(e=>F("left"),["prevent"]),["left"])),t[16]||(t[16]=cc(lc(e=>F("up"),["prevent"]),["up"])),t[17]||(t[17]=cc(lc(e=>F("down"),["prevent"]),["down"])),t[18]||(t[18]=cc(lc(e=>F("right"),["prevent"]),["right"])),V]},[(e.disabled||e.readonly)&&Jt(u).enabled?(Ai(),Si("div",{key:0,class:Y(M.value)},null,2)):zi("",!0),Jt(u).enabled||e.teleportCenter?zi("",!0):(Ai(),Si("div",{key:1,class:Y(D.value)},null,2)),Mi("div",{ref_key:"innerMenuRef",ref:g,class:Y({dp__menu_content_wrapper:(null==(n=e.presetDates)?void 0:n.length)||!!e.$slots["left-sidebar"]||!!e.$slots["right-sidebar"]}),style:G({"--dp-menu-width":`${f.value}px`})},[e.$slots["left-sidebar"]?(Ai(),Si("div",Rye,[Xr(e.$slots,"left-sidebar",J(Pi(I.value)))])):zi("",!0),e.presetDates.length?(Ai(),Si("div",Fye,[(Ai(!0),Si(gi,null,Yr(e.presetDates,(t,n)=>(Ai(),Si("div",{key:n,style:G(t.style||{}),class:"dp--preset-range"},[t.slot?Xr(e.$slots,t.slot,{key:0,presetDate:H,label:t.label,value:t.value}):(Ai(),Si("div",{key:1,role:"button",tabindex:"0",onClick:e=>H(t.value,t.noTz),onKeydown:[cc(lc(e=>H(t.value,t.noTz),["prevent"]),["enter"]),cc(lc(e=>H(t.value,t.noTz),["prevent"]),["space"])]},fe(t.label),41,Vye))],4))),128))])):zi("",!0),Mi("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:p,role:"document"},[(Ai(),Ti(Kr(S.value),qi({ref_key:"dynCmpRef",ref:b},r.value,{"flow-step":Jt(x),onMount:Jt(C),onUpdateFlowStep:Jt(w),onResetFlow:Jt(E),onFocusMenu:T,onSelectDate:t[0]||(t[0]=t=>e.$emit("select-date")),onTooltipOpen:t[1]||(t[1]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[2]||(t[2]=t=>e.$emit("tooltip-close",t)),onAutoApply:t[3]||(t[3]=t=>e.$emit("auto-apply",t)),onRangeStart:t[4]||(t[4]=t=>e.$emit("range-start",t)),onRangeEnd:t[5]||(t[5]=t=>e.$emit("range-end",t)),onInvalidFixedRange:t[6]||(t[6]=t=>e.$emit("invalid-fixed-range",t)),onTimeUpdate:t[7]||(t[7]=t=>e.$emit("time-update")),onAmPmChange:t[8]||(t[8]=t=>e.$emit("am-pm-change",t)),onTimePickerOpen:t[9]||(t[9]=t=>e.$emit("time-picker-open",t)),onTimePickerClose:z,onRecalculatePosition:B,onUpdateMonthYear:t[10]||(t[10]=t=>e.$emit("update-month-year",t)),"onUpdate:internalModelValue":t[11]||(t[11]=t=>e.$emit("update:internal-model-value",t))}),Jr({_:2},[Yr(L.value,(t,n)=>({name:t,fn:ao(n=>[Xr(e.$slots,t,J(Pi({...n})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),e.$slots["right-sidebar"]?(Ai(),Si("div",zye,[Xr(e.$slots,"right-sidebar",J(Pi(I.value)))])):zi("",!0),e.$slots["action-extra"]?(Ai(),Si("div",Uye,[e.$slots["action-extra"]?Xr(e.$slots,"action-extra",{key:0,selectCurrentDate:j}):zi("",!0)])):zi("",!0)],6),!e.autoApply||e.keepActionRow||Jt(d).keepActionRow?(Ai(),Ti(Vve,qi({key:2,"menu-mount":h.value},r.value,{"calendar-width":f.value,onClosePicker:t[12]||(t[12]=t=>e.$emit("close-picker")),onSelectDate:t[13]||(t[13]=t=>e.$emit("select-date")),onInvalidSelect:t[14]||(t[14]=t=>e.$emit("invalid-select")),onSelectNow:j}),Jr({_:2},[Yr(Jt(O),(t,n)=>({name:t,fn:ao(n=>[Xr(e.$slots,t,J(Pi({...n})))])}))]),1040,["menu-mount","calendar-width"])):zi("",!0)],42,Pye)}}}),Hye=typeof window<"u"?window:void 0,qye=()=>{},Gye=Ko({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Bve},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const o=e,r=fa(),a=Kt(!1),i=ln(o,"modelValue"),l=ln(o,"timezone"),s=Kt(null),c=Kt(null),u=Kt(null),d=Kt(!1),p=Kt(null),{setMenuFocused:f,setShiftKey:m}=nve(),{clearArrowNav:g}=dve(),{mapDatesArrToMap:h,validateDate:b,isValidTime:v}=Tve(o),{defaultedTransitions:y,defaultedTextInput:_,defaultedInline:A,defaultedConfig:k}=mve(o),{menuTransition:x,showTransition:w}=Eve(y);Dr(()=>{P(o.modelValue),Nn().then(()=>{A.value.enabled||(L(p.value).addEventListener("scroll",H),window.addEventListener("resize",q))}),A.value.enabled&&(a.value=!0)});const C=bl(()=>h());Rr(()=>{if(!A.value.enabled){const e=L(p.value);e&&e.removeEventListener("scroll",H),window.removeEventListener("resize",q)}});const E=Cve(r,"all",o.presetDates),S=Cve(r,"input");bo([i,l],()=>{P(i.value)},{deep:!0});const{openOnTop:T,menuStyle:I,xCorrect:B,setMenuPosition:O,getScrollableParent:L,shadowRender:D}=Ave({menuRef:s,menuRefInner:c,inputRef:u,pickerWrapperRef:p,inline:A,emit:n,props:o,slots:r}),{inputValue:M,internalModelValue:N,parseExternalModelValue:P,emitModelValue:R,formatInputValue:F,checkBeforeEmit:V}=gve(n,o,d),z=bl(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:A.value.enabled,dp__flex_display_with_input:A.value.input})),U=bl(()=>o.dark?"dp__theme_dark":"dp__theme_light"),j=bl(()=>o.teleport?{to:"boolean"==typeof o.teleport?"body":o.teleport,disabled:A.value.enabled}:{class:"dp__outer_menu_wrap"}),H=()=>{a.value&&(o.closeOnScroll||k.value.closeOnScroll?te():O())},q=()=>{a.value&&O()},G=()=>{!o.disabled&&!o.readonly&&(D(jye,o),O(!1),a.value=!0,a.value&&n("open"),a.value||ee(),P(o.modelValue))},K=()=>{M.value="",ee(),n("update:model-value",null),n("update:model-timezone-value",null),n("cleared"),(o.closeOnClearValue||k.value.closeOnClearValue)&&te()},Z=()=>{const e=N.value;return!(e&&(Array.isArray(e)||!b(e)))||!!Array.isArray(e)&&(!(2!==e.length||!b(e[0])||!b(e[1]))||!(!o.partialRange||o.timePicker)&&b(e[0]))},W=()=>{V()&&Z()?(R(),te()):n("invalid-select",N.value)},$=e=>{X(),R(),(o.closeOnAutoApply||k.value.closeOnAutoApply)&&!e&&te()},X=()=>{u.value&&_.value.enabled&&u.value.setParsedDate(N.value)},Q=(e=!1)=>{o.autoApply&&v(N.value)&&Z()&&(o.range&&Array.isArray(N.value)?(o.partialRange||2===N.value.length)&&$(e):$(e))},ee=()=>{_.value.enabled||(N.value=null)},te=()=>
2{A.value.enabled||(a.value&&(a.value=!1,B.value=!1,f(!1),m(!1),g(),n("closed"),M.value&&P(i.value)),ee(),n("blur"))},ne=(e,t)=>{e?(N.value=e,t&&(W(),n("text-submit"))):N.value=null},oe=()=>{o.autoApply&&v(N.value)&&R(),X()},re=()=>a.value?te():G(),ae=()=>{_.value.enabled&&(d.value=!0,F()),n("focus")},ie=()=>{_.value.enabled&&(d.value=!1,P(o.modelValue)),n("blur")};return((e,t,n,o={})=>{const{window:r=Hye,event:a="pointerdown"}=o;r&&((e,t,n,o)=>{if(!e)return qye;let r=qye;const a=bo(()=>Jt(e),e=>{r(),e&&(e.addEventListener(t,n,o),r=()=>{e.removeEventListener(t,n,o),r=qye})},{immediate:!0,flush:"post"}),i=()=>{a(),r()};(e=>{Ae()&&ke(e)})(i)})(r,a,o=>{const r=fbe(e),a=fbe(t);!r||!a||r===o.target||o.composedPath().includes(r)||o.composedPath().includes(a)||n(o)},{passive:!0})})(s,u,()=>{return e=Z,o.onClickOutside?o.onClickOutside(e):k.value.onClickOutside?k.value.onClickOutside(e):te();var e}),t({closeMenu:te,selectDate:W,clearValue:K,openMenu:G,onScroll:H,formatInputValue:F,updateInternalModelValue:e=>{N.value=e},setMonthYear:e=>{c.value&&c.value.updateMonthYear(0,{month:bbe(e.month),year:bbe(e.year)})},parseModel:e=>{P(e??o.modelValue)},switchView:(e,t)=>{var n;null==(n=c.value)||n.switchView(e,t)}}),(e,t)=>(Ai(),Si("div",{class:Y(z.value),ref_key:"pickerWrapperRef",ref:p},[Ni(Nve,qi({ref_key:"inputRef",ref:u,"is-menu-open":a.value,"input-value":Jt(M),"onUpdate:inputValue":t[0]||(t[0]=e=>Gt(M)?M.value=e:null)},e.$props,{onClear:K,onOpen:G,onSetInputDate:ne,onSetEmptyDate:Jt(R),onSelectDate:W,onToggle:re,onClose:te,onFocus:ae,onBlur:ie,onRealBlur:t[1]||(t[1]=e=>d.value=!1)}),Jr({_:2},[Yr(Jt(S),(t,n)=>({name:t,fn:ao(n=>[Xr(e.$slots,t,J(Pi(n)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),Ni(jl,{name:Jt(x)(Jt(T)),css:Jt(w)&&!Jt(A).enabled},{default:ao(()=>[a.value?(Ai(),Ti(Kr(e.teleport?To:"div"),qi({key:0,ref_key:"dpWrapMenuRef",ref:s},j.value,{class:{"dp--menu-wrapper":!Jt(A).enabled},style:Jt(A).enabled?void 0:Jt(I)}),{default:ao(()=>[Ni(jye,qi({ref_key:"dpMenuRef",ref:c,class:{[U.value]:!0,"dp--menu-wrapper":e.teleport},style:e.teleport?Jt(I):void 0,"open-on-top":Jt(T),"arr-map-values":C.value},e.$props,{"internal-model-value":Jt(N),"onUpdate:internalModelValue":t[2]||(t[2]=e=>Gt(N)?N.value=e:null),onClosePicker:te,onSelectDate:W,onAutoApply:Q,onTimeUpdate:oe,onFlowStep:t[3]||(t[3]=t=>e.$emit("flow-step",t)),onUpdateMonthYear:t[4]||(t[4]=t=>e.$emit("update-month-year",t)),onInvalidSelect:t[5]||(t[5]=t=>e.$emit("invalid-select",Jt(N))),onInvalidFixedRange:t[6]||(t[6]=t=>e.$emit("invalid-fixed-range",t)),onRecalculatePosition:Jt(O),onTooltipOpen:t[7]||(t[7]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[8]||(t[8]=t=>e.$emit("tooltip-close",t)),onTimePickerOpen:t[9]||(t[9]=t=>e.$emit("time-picker-open",t)),onTimePickerClose:t[10]||(t[10]=t=>e.$emit("time-picker-close",t)),onAmPmChange:t[11]||(t[11]=t=>e.$emit("am-pm-change",t)),onRangeStart:t[12]||(t[12]=t=>e.$emit("range-start",t)),onRangeEnd:t[13]||(t[13]=t=>e.$emit("range-end",t))}),Jr({_:2},[Yr(Jt(E),(t,n)=>({name:t,fn:ao(n=>[Xr(e.$slots,t,J(Pi({...n})))])}))]),1040,["class","style","open-on-top","arr-map-values","internal-model-value","onRecalculatePosition"])]),_:3},16,["class","style"])):zi("",!0)]),_:3},8,["name","css"])],2))}}),Kye=(()=>{const e=Gye;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),Zye=Object.freeze(Object.defineProperty({__proto__:null,default:Kye},Symbol.toStringTag,{value:"Module"}));Object.entries(Zye).forEach(([e,t])=>{"default"!==e&&(Kye[e]=t)});var Wye="personalFundraising__fundraisingTarget",$ye=function(e){return e?"".concat(e.split("#")[0],"#").concat(Wye):null};function Yye(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Jye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jye(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function Jye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Xye(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Qye(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Qye(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Qye(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Qye(d,"constructor",c),Qye(c,"constructor",s),s.displayName="GeneratorFunction",Qye(c,r,"GeneratorFunction"),Qye(d),Qye(d,r,"Generator"),Qye(d,o,function(){return this}),Qye(d,"toString",function(){return"[object Generator]"}),(Xye=function(){return{w:a,m:p}})()}function Qye(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Qye=function(e,t,n,o){function a(t,n){Qye(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Qye(e,t,n,o)}function e_e(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function t_e(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){e_e(a,o,r,i,l,"next",e)}function l(e){e_e(a,o,r,i,l,"throw",e)}i(void 0)})}}const n_e={name:"PersonalFundraising",components:{VueDatePicker:Kye,FormInputTextField:mE,FormInputRichText:_K,TooltipComponent:yy},props:{isMindegave:{type:Boolean,required:!1,default:!1},isUpdate:{type:Boolean,required:!1,default:!1},personalFundraising:{type:Object,required:!0},showUnsavedChangesWarning:{type:Boolean,required:!1,default:!1},userData:{type:Object,required:!0},privacyPolicyEncoded:{type:String,required:!1,default:""},showUserConsent:{type:Boolean,required:!1,default:!1},showPostalCodeInput:{type:Boolean,required:!1,default:!1},hideFundraisingTarget:{type:Boolean,required:!1,default:!1},hideFundraisingEndDate:{type:Boolean,required:!1,default:!1},showFundraiseCard:{type:Boolean,required:!1,default:!1}},setup:function(e){var t,n,o,r,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,_,A,k,x=Af(),w=function(e){return x.getters["labels/getLabel"]({labelCollection:"personalFundraising",labelKey:e})},C=Kt(null!==(t=null===(n=e.personalFundraising)||void 0===n?void 0:n.Headline)&&void 0!==t?t:""),E=Kt(null===(o=e.personalFundraising)||void 0===o?void 0:o.DateOfBirth),S=Kt(null!==(r=null===(a=e.personalFundraising)||void 0===a?void 0:a.FundraisingTarget)&&void 0!==r?r:""),T=Kt(null===(i=e.personalFundraising)||void 0===i?void 0:i.DateOfDeath),I=Kt(null!==(l=null===(s=e.personalFundraising)||void 0===s?void 0:s.EndDate)&&void 0!==l?l:""),B=Kt(null!==(c=null===(u=e.personalFundraising)||void 0===u?void 0:u.FundraiseReason)&&void 0!==c?c:""),O=Kt(null!==(d=null===(p=e.personalFundraising)||void 0===p?void 0:p.FundraisePersonDescription)&&void 0!==d?d:""),L=Kt(null!==(f=null===(m=e.personalFundraising)||void 0===m?void 0:m.personalStoryImages)&&void 0!==f?f:[]),D=Kt(null!==(g=null===(h=e.personalFundraising)||void 0===h?void 0:h.PostalCode)&&void 0!==g?g:""),M=Kt(!0),N=Kt(null===(b=e.personalFundraising)||void 0===b?void 0:b.fundraiseImage),P=Kt(),R=Kt(),F=Kt(),V=Kt(null!==(v=null===(y=e.personalFundraising)||void 0===y?void 0:y.SmsNotification)&&void 0!==v&&v),z=Kt(null!==(_=null===(A=e.personalFundraising)||void 0===A?void 0:A.EmailNotification)&&void 0!==_&&_),U=bl(function(){return x.state.fundraising.isSubmitting}),j=Kt(e.userData.firstname),H=Kt(e.userData.lastname),q=Kt(e.userData.email),G=Kt(e.userData.telephone),K=Kt({firstName:!!e.userData.firstname,lastName:!!e.userData.lastname,email:!0,phone:!!e.userData.telephone}),Z=bl(function(){return K.value.firstName||rE(j.value)}),W=bl(function(){return K.value.lastName||rE(H.value)}),$=bl(function(){return K.value.phone||!V.value||oE(G.value)}),Y=Kt(!(null===(k=e.personalFundraising)||void 0===k||!k.FundraisePersonDescription)),J=Kt(!1),X=Kt(null),Q=e.showUnsavedChangesWarning,ee=function(e){x.state.fundraising.isEditing&&Q&&(e.preventDefault(),e.returnValue="")};Q?window.addEventListener("beforeunload",ee):window.removeEventListener("beforeunload",ee);var te=bl(function(){return x.state.fundraising.isFundraiseImageUploading}),ne=bl(function(){return x.state.fundraising.personalStoryImagesUploading}),oe=bl(function(){return C.value.length>2&&C.value.length<=75&&rE(C.value)}),re=bl(function(){return!e.isMindegave||E.value}),ae=bl(function(){return e.hideFundraisingEndDate||I.value}),ie=bl(function(){return!e.isMindegave||T.value}),le=bl(function(){return e.hideFundraisingTarget||S.value>=100}),se=bl(function(){var e=rJ(B.value);return e.length>2&&e.length<=2e3}),ce=bl(function(){return e.isMindegave?!O.value||O.value.length>2&&O.value.length<=2e3&&aE(O.value):!Y.value||!!O.value}),ue=bl(function(){return!!L.value}),de=bl(function(){return N.value}),pe=bl(function(){return x.state.main.page_id}),fe=bl(function(){return x.state.fundraising.isFundraiseImageUploadError}),me=bl(function(){return x.state.fundraising.isPersonalStoryImageUploadError}),ge=function(){x.commit("fundraising/set_fundraise_image_upload_error",!1),x.commit("fundraising/set_personal_story_image_upload_error",!1);var t={content:{pageId:pe.value,headline:C.value,dateOfBirth:E.value,dateOfDeath:T.value,fundraisingTarget:e.hideFundraisingTarget?100:parseInt(S.value),endDate:e.hideFundraisingEndDate?null:I.value,fundraiseDescription:rJ(B.value),fundraisePersonDescription:(e.isMindegave||Y.value)&&O.value||null,coverImage:N.value,images:L.value,
2notificationSms:V.value,notificationEmail:z.value,firstName:j.value,lastName:H.value,phone:G.value,postalCode:D.value,city:null},id:e.personalFundraising.Id};e.isUpdate?x.dispatch("fundraising/updatePersonalfundraising",t):x.dispatch("fundraising/createPersonalfundraising",t)},he=function(){var t=t_e(Xye().m(function t(n){var o;return Xye().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,x.dispatch("fundraising/uploadFundraiseImage",{type:"fundraiseImage",file:n.target.files[0],id:e.personalFundraising.Id});case 1:(o=t.v)&&(N.value=o);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),be=function(){var e=t_e(Xye().m(function e(t){var n,o,r;return Xye().w(function(e){for(;;)switch(e.n){case 0:n=Yye(t.target.files);try{for(n.s();!(o=n.n()).done;)r=o.value,ve(r)}catch(e){n.e(e)}finally{n.f()}case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),ve=function(){var t=t_e(Xye().m(function t(n){var o;return Xye().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,x.dispatch("fundraising/uploadFundraiseImage",{type:"personalStoryImage",file:n,id:e.personalFundraising.Id});case 1:(o=t.v)&&L.value.push(o);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),ye=function(){var e=t_e(Xye().m(function e(){return Xye().w(function(e){for(;;)if(0===e.n)return e.a(2,Z.value&&W.value&&$.value&&oe.value&&re.value&&ae.value&&ie.value&&le.value&&se.value&&ue.value&&ce.value&&M.value)},e)}));return function(){return e.apply(this,arguments)}}(),_e=function(){var e=t_e(Xye().m(function e(){return Xye().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ye();case 1:if(e.v){e.n=2;break}return J.value=!0,pN("validation-error"),e.a(2);case 2:J.value=!1,ge();case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Ae=bl(function(){return te.value||ne.value>0}),ke=bl(function(){return V.value&&!e.userData.telephone});return Dr(t_e(Xye().m(function t(){var n,o;return Xye().w(function(t){for(;;)switch(t.n){case 0:if(window.location.hash.slice(1)===Wye&&!e.hideFundraisingTarget){t.n=1;break}return t.a(2);case 1:return t.n=2,Nn();case 2:if(n=document.getElementById(Wye)){t.n=3;break}return t.a(2);case 3:o=n.closest(".kb-personal-fundraising__input-wrapper")||n,requestAnimationFrame(function(){requestAnimationFrame(function(){var e=o.getBoundingClientRect().top+window.scrollY-200;window.scrollTo({top:Math.max(e,0),behavior:"smooth"}),n.focus({preventScroll:!0})})});case 4:return t.a(2)}},t)}))),{discardUploadedImage:function(e,t){"fundraiseImage"===e&&(N.value=null),"personalStoryImage"===e&&(L.value=L.value.filter(function(e){return e.id!==t}))},headline:C,dateOfbirth:E,fundraisingTarget:S,dateOfdeath:T,fundraiseReason:B,endDate:I,fundraisePersonDescription:O,personalStoryImage:L,fundraiseImage:N,fundraiseImageUploader:he,disableNextButton:Ae,headlineFilled:oe,postalCodeValid:M,dateOfbirthFilled:re,fundraisingTargetFilled:le,dateOfdeathFilled:ie,fundraiseImageFilled:de,personalStoryImageFilled:ue,fundraiseReasonFilled:se,fundraisePersonDescriptionFilled:ce,endDateFilled:ae,getLabel:w,selectEndDate:function(){F.value.selectDate()},datePickerRefEndDate:F,selectDateOfBirth:function(){P.value.selectDate()},datePickerRefDateOfBirth:P,selectDateOfDeath:function(){R.value.selectDate()},datePickerRefDateOfDeath:R,customPosition:function(){return{top:10,left:40}},personalStoryImageUploader:be,previousButtonPressed:function(){history.length<=1&&(document.location=defaultRedirectUrl);var e=document.referrer&&document.referrer.toLowerCase().includes("b2clogin.com")?-2:-1;history.go(e)},nextButtonPressed:_e,deleteButtonPressed:function(){window.confirm(w("deleteConfirmation"))&&x.dispatch("fundraising/deletePersonalfundraising",{id:e.personalFundraising.Id,pageId:pe.value})},formatFilesize:function(e){var t=(e/Math.pow(1024,2)).toFixed(0);return t>=1?t+" MB":(e/Math.pow(1024,1)).toFixed(0)+" KB"},isSubmitting:U,isUploadingFundraiseImage:te,personalStoryImagesUploading:ne,isFundraiseImageUploadError:fe,isPersonalStoryImageUploadError:me,notificationSms:V,notificationEmail
2:z,firstName:j,lastName:H,email:q,phone:G,isReadOnly:K,isFirstNameValid:Z,isLastNameValid:W,isPhoneValid:$,displayError:J,privacyPolicyWrapper:X,hasConsent:Y,showPhoneInput:ke,postalCode:D,postalCodeChanged:function(e){M.value=uO(e)}}}},o_e=n_e,r_e=(0,Hb.A)(o_e,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("VueDatePicker"),s=qr("FormInputRichText"),c=qr("TooltipComponent");return Ai(),Si("article",{class:Y(["kb-personal-fundraising",{"kb-personal-fundraising--submitting":e.isSubmitting}])},[Mi("div",null,[Mi("section",Nde,[Mi("h2",Pde,fe(e.getLabel("fundraiseAbout")),1),Mi("p",null,fe(e.getLabel("informationAboutFundraiseReason")),1),Mi("section",Rde,[Mi("div",Fde,[Ni(i,{fieldName:"firstName",modelValue:e.firstName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstName=t}),label:e.getLabel("firstNameLabel"),readOnly:e.isReadOnly.firstName,isValidationError:e.displayError&&!e.isFirstNameValid,errorMessageLabel:e.getLabel("firstNameErrorLabel"),isRequired:""},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel"])]),Mi("div",Vde,[Ni(i,{fieldName:"lastName",modelValue:e.lastName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.lastName=t}),label:e.getLabel("lastNameLabel"),readOnly:e.isReadOnly.lastName,isValidationError:e.displayError&&!e.isLastNameValid,errorMessageLabel:e.getLabel("lastNameErrorLabel"),isRequired:""},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel"])])]),Ni(i,{modelValue:e.headline,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.headline=t}),fieldName:"personalFundraising",isRequired:"",label:e.getLabel("fundraiseHeadline"),isValidationError:e.displayError&&!e.headlineFilled,errorMessageLabel:e.getLabel("validationHeadline"),maxlength:"75"},null,8,["modelValue","label","isValidationError","errorMessageLabel"]),Mi("section",zde,[Mi("div",Ude,[e.isMindegave?(Ai(),Si("div",jde,[Mi("label",Hde,fe(e.getLabel("dateOfbirth")),1),Ni(l,{ref:"datePickerRefDateOfBirth","arrow-navigation":"",modelValue:e.dateOfbirth,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.dateOfbirth=t}),locale:"da","select-text":"Vælg","cancel-text":"Annuller","model-type":"","enable-time-picker":!1,clearable:!1,"alt-position":e.customPosition,id:"personalFundraising__birth","aria-describedby":"personalFundraising__birthDesc",placeholder:"DD - MM - Ã
Ã
Ã
Ã
",format:"dd-MM-yyyy",class:Y({"dp__validation-error":e.displayError&&!e.dateOfbirthFilled})},{"input-icon":ao(function(){return Dde(t[24]||(t[24]=[Mi("div",{class:"input-slot-image"},[Mi("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.5 3H3.75V4.5H2.25H1.5V6.75H2.25V5.25H3.75V6.75H4.5V5.25H9V6.75H9.75V5.25H14.25V6.75H15V5.25H19.5V6.75H20.25V5.25H21.75V9H2.25H1.5V9.75V19.5V20.25H22.5V19.5V9.75V9V4.5H21.75H20.25V3H19.5V4.5H15V3H14.25V4.5H9.75V3H9V4.5H4.5V3ZM21.75 19.5V9.75H2.25L2.25 19.5H21.75Z",fill:"#3C3C3C"})])],-1)]))}),"action-select":ao(function(){return[Mi("button",{class:"custom-select",onClick:t[3]||(t[3]=function(){return e.selectDateOfBirth&&e.selectDateOfBirth.apply(e,arguments)})}," Vælg ")]}),_:1},8,["modelValue","alt-position","class"]),e.displayError&&!e.dateOfbirthFilled?(Ai(),Si("p",qde,fe(e.getLabel("validationDateOfbirth")),1)):zi("v-if",!0)])):zi("v-if",!0)]),Mi("div",Gde,[e.isMindegave?(Ai(),Si("div",Kde,[Mi("label",Zde,fe(e.getLabel("dateOfdeath")),1),Ni(l,{ref:"datePickerRefDateOfDeath",modelValue:e.dateOfdeath,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.dateOfdeath=t}),"model-type":"",locale:"da","select-text":"Vælg","cancel-text":"Annuller","enable-time-picker":!1,clearable:!1,"alt-position":e.customPosition,id:"personalFundraising__death","aria-describedby":"personalFundraising__deathDesc",placeholder:"DD - MM - Ã
Ã
Ã
Ã
",format:"dd-MM-yyyy",class:Y({"dp__validation-error":e.displayError&&!e.dateOfdeathFilled})},{"input-icon":ao(function(){return Dde(t[25]||(t[25]=[Mi("div",{class:"input-slot-image"},[Mi("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.5 3H3.75V4.5H2.25H1.5V6.75H2.25V5.25H3.75V6.75H4.5V5.25H9V6.75H9.7
25V5.25H14.25V6.75H15V5.25H19.5V6.75H20.25V5.25H21.75V9H2.25H1.5V9.75V19.5V20.25H22.5V19.5V9.75V9V4.5H21.75H20.25V3H19.5V4.5H15V3H14.25V4.5H9.75V3H9V4.5H4.5V3ZM21.75 19.5V9.75H2.25L2.25 19.5H21.75Z",fill:"#3C3C3C"})])],-1)]))}),"action-select":ao(function(){return[Mi("button",{class:"custom-select",onClick:t[5]||(t[5]=function(){return e.selectDateOfDeath&&e.selectDateOfDeath.apply(e,arguments)})}," Vælg ")]}),_:1},8,["modelValue","alt-position","class"]),e.displayError&&!e.dateOfdeathFilled?(Ai(),Si("p",Wde,fe(e.getLabel("validationDateOfdeath")),1)):zi("v-if",!0)])):zi("v-if",!0)])]),Mi("section",$de,[e.hideFundraisingTarget?zi("v-if",!0):(Ai(),Si("div",Yde,[Ni(i,{modelValue:e.fundraisingTarget,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.fundraisingTarget=t}),fieldName:"personalFundraising__fundraisingTarget",isRequired:"",label:e.getLabel("fundraiseTarget"),isValidationError:e.displayError&&!e.fundraisingTargetFilled,errorMessageLabel:e.getLabel("validationFundraisingTarget"),type:"number"},null,8,["modelValue","label","isValidationError","errorMessageLabel"])])),e.hideFundraisingEndDate?zi("v-if",!0):(Ai(),Si("div",Jde,[Mi("div",Xde,[Mi("label",Qde,fe(e.getLabel("endDate")),1),Ni(l,{ref:"datePickerRefEndDate",modelValue:e.endDate,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.endDate=t}),"model-type":"",locale:"da","select-text":"Vælg","cancel-text":"Annuller","enable-time-picker":!1,clearable:!1,"alt-position":e.customPosition,id:"personalFundraising__endDate","aria-describedby":"personalFundraising__endDateDesc",placeholder:"DD - MM - Ã
Ã
Ã
Ã
","min-date":new Date,format:"dd-MM-yyyy",class:Y({"dp__validation-error":e.displayError&&!e.endDateFilled})},{"input-icon":ao(function(){return Dde(t[26]||(t[26]=[Mi("div",{class:"input-slot-image"},[Mi("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.5 3H3.75V4.5H2.25H1.5V6.75H2.25V5.25H3.75V6.75H4.5V5.25H9V6.75H9.75V5.25H14.25V6.75H15V5.25H19.5V6.75H20.25V5.25H21.75V9H2.25H1.5V9.75V19.5V20.25H22.5V19.5V9.75V9V4.5H21.75H20.25V3H19.5V4.5H15V3H14.25V4.5H9.75V3H9V4.5H4.5V3ZM21.75 19.5V9.75H2.25L2.25 19.5H21.75Z",fill:"#3C3C3C"})])],-1)]))}),"action-select":ao(function(){return[Mi("button",{class:"custom-select",onClick:t[8]||(t[8]=function(){return e.selectEndDate&&e.selectEndDate.apply(e,arguments)})}," Vælg ")]}),_:1},8,["modelValue","alt-position","min-date","class"]),e.displayError&&!e.endDateFilled?(Ai(),Si("p",epe,fe(e.getLabel("validationEndDate")),1)):zi("v-if",!0)])])),e.hideFundraisingTarget?(Ai(),Si("div",tpe)):zi("v-if",!0),e.hideFundraisingEndDate?(Ai(),Si("div",npe)):zi("v-if",!0)]),e.showFundraiseCard?(Ai(),Si("section",ope,[Mi("div",rpe,[t[27]||(t[27]=Vi('<div class="kb-personal-fundraising__about__card__icon-wrapper"><div class="kb-personal-fundraising__about__card__circle"><svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="Information"><path id="Vector" d="M19.3442 15.8093C20.0454 15.8093 20.6139 15.2408 20.6139 14.5395C20.6139 13.8383 20.0454 13.2698 19.3442 13.2698C18.6429 13.2698 18.0744 13.8383 18.0744 14.5395C18.0744 15.2408 18.6429 15.8093 19.3442 15.8093Z" fill="#005B78"></path><path id="Vector_2" d="M19.3442 2.66504C15.9157 2.66504 12.5641 3.68171 9.71342 5.58649C6.86272 7.49128 4.64086 10.1986 3.32882 13.3662C2.01679 16.5337 1.6735 20.0192 2.34237 23.3818C3.01124 26.7444 4.66223 29.8332 7.08656 32.2575C9.51088 34.6819 12.5997 36.3329 15.9623 37.0017C19.3249 37.6706 22.8104 37.3273 25.9779 36.0153C29.1455 34.7032 31.8528 32.4814 33.7576 29.6307C35.6624 26.78 36.6791 23.4284 36.6791 19.9999C36.6741 15.4039 34.8462 10.9976 31.5963 7.74775C28.3465 4.49789 23.9402 2.66996 19.3442 2.66504ZM19.3442 35.9395C16.1916 35.9395 13.1099 35.0046 10.4886 33.2532C7.86739 31.5017 5.82438 29.0123 4.61796 26.0997C3.41153 23.1872 3.09588 19.9822 3.71091 16.8903C4.32594 13.7983 5.84403 10.9582 8.07322 8.72897C10.3024 6.49979 13.1426 4.98169 16.2345 4.36666C19.3265 3.75163 22.5314 4.06729 25.444 5.27371C28.3565 6.48014 30.8459 8.52315 32.5974 11.1444C34.3489 13.7656 35.2837 16.8474 35.2837 19.9999C35.28 24.2262 33.5995 28.2784 30.611 31.2668C27.6226 34.2552 23.5705 35.9358 19.3442 35.9395Z" fill="#005B78"></path>
2<path id="Vector_3" d="M31.3582 12.2046C29.9986 10.102 28.1133 8.39111 25.889 7.24134C23.6647 6.09157 21.1786 5.54285 18.677 5.64953C16.1754 5.75621 13.7451 6.51459 11.6268 7.84955C9.50847 9.18451 7.77566 11.0497 6.60002 13.2604L7.83258 13.9116C8.96456 11.7794 10.6689 10.0053 12.7539 8.78861C14.8389 7.57193 17.2219 6.96097 19.6351 7.02439C22.0483 7.08782 24.396 7.82312 26.4142 9.14764C28.4324 10.4722 30.0411 12.3334 31.0596 14.5221C32.078 16.7108 32.4657 19.1401 32.1792 21.5371C31.8926 23.9341 30.9431 26.2036 29.4374 28.0905C27.9317 29.9774 25.9296 31.4069 23.656 32.2184C21.3824 33.0298 18.9276 33.1909 16.5675 32.6837C9.68839 31.2046 5.34886 24.9302 6.42793 18.2139L8.24653 18.6046L8.53955 17.2418L5.33955 16.5488L5.19072 17.2325C3.53025 24.9674 8.39537 32.3535 16.2791 34.0465C17.2801 34.2629 18.3014 34.372 19.3256 34.3721C21.9061 34.3661 24.4373 33.6653 26.6534 32.3432C28.8694 31.0211 30.6885 29.1266 31.9195 26.8587C33.1506 24.5908 33.7481 22.0332 33.6493 19.4547C33.5505 16.8761 32.7591 14.3717 31.3582 12.2046Z" fill="#005B78"></path><path id="Vector_4" d="M16.2372 25.5721V26.9675H22.9535V25.5721H20.293V16.9814H16.5907V18.3768H18.8976V25.5721H16.2372Z" fill="#005B78"></path></g></svg></div></div>',1)),Mi("div",ape,[Mi("h2",ipe,fe(e.getLabel("cardTitle")),1),Mi("p",lpe,fe(e.getLabel("cardParagraph")),1)]),Mi("div",spe,[Mi("a",{href:e.getLabel("cardButtonHref"),title:e.getLabel("cardButtonTitle"),target:"_blank",class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("cardButtonContent")),9,cpe)])])])):zi("v-if",!0)]),Mi("section",upe,[Mi("h2",null,fe(e.getLabel("fundraiseSecondHeadline")),1),Mi("p",dpe,fe(e.getLabel("fundraiseDescriptionText")),1),Mi("div",ppe,[t[30]||(t[30]=Mi("span",{class:"kb-personal-fundraising__upload-button-label-span"}," Indsamlingsbillede ",-1)),Mi("div",fpe,[e.fundraiseImage?(Ai(),Si("button",{key:0,class:"kb-personal-fundraising__upload-showcase",onClick:t[10]||(t[10]=lc(function(t){return e.discardUploadedImage("fundraiseImage",e.fundraiseImage.id)},["prevent"]))},[Mi("img",{src:e.fundraiseImage.url,alt:"",class:"kb-personal-fundraising__upload-showcase__image"},null,8,mpe),Mi("div",gpe,[Fi(fe(e.fundraiseImage.name)+" ",1),e.fundraiseImage.size?(Ai(),Si("span",hpe," Filstørrelse "+fe(e.formatFilesize(e.fundraiseImage.size)),1)):zi("v-if",!0)]),Mi("span",bpe,fe(e.getLabel("removeUpload")),1)])):(Ai(),Si(gi,{key:1},[Mi("label",{for:"fundraisingImageUpload",class:Y(["Form__Element__Caption kb-personal-fundraising__upload-button-label",{"kb-personal-fundraising__upload-button-label--validation-error":e.isFundraiseImageUploadError}])},[e.isUploadingFundraiseImage?zi("v-if",!0):(Ai(),Si("div",vpe,Dde(t[28]||(t[28]=[Vi('<svg viewBox="0 0 30 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.0245 12.05L20.9907 11.6454L20.7849 11.164C19.9442 9.16166 20.1675 7.02329 21.3814 5.48143C22.5954 3.93957 24.4756 3.21748 26.7012 3.38841L25.2117 4.82562L25.9407 5.57562L27.957 3.61515C28.0529 3.52128 28.1291 3.40921 28.1811 3.28551C28.2331 3.16182 28.2599 3.02899 28.2599 2.8948C28.2599 2.76062 28.2331 2.62779 28.1811 2.50409C28.1291 2.3804 28.0529 2.26833 27.957 2.17445L25.9407 0.213989L25.2117 0.963989L26.607 2.32097C24.1024 2.18841 21.9326 3.07794 20.5582 4.83957C19.107 6.69538 18.8384 9.21399 19.8221 11.5582L20.0245 12.05Z" fill="#3C3C3C"></path><path d="M18.1411 23.4186V24.4651H12.2109V23.4186H0.699239V26.3837C0.698313 26.5443 0.729262 26.7035 0.790291 26.852C0.851321 27.0006 0.941219 27.1355 1.05478 27.2491C1.16834 27.3626 1.3033 27.4525 1.45185 27.5136C1.60039 27.5746 1.75958 27.6056 1.92017 27.6046H28.083C28.4068 27.6046 28.7173 27.476 28.9463 27.247C29.1753 27.0181 29.3039 26.7075 29.3039 26.3837V23.4186H18.1411ZM28.2574 26.3837C28.2574 26.43 28.239 26.4743 28.2063 26.507C28.1736 26.5397 28.1292 26.5581 28.083 26.5581H1.92017C1.87303 26.558 1.82786 26.5392 1.79459 26.5058C1.763 26.473 1.74548 26.4292 1.74575 26.3837V24.4651H11.1644V25.5116H19.1876V24.4651H28.2574V26.3837Z" fill="#3C3C3C"></path><path d="M4.88563 20.9767H2.79261V8.593C2.79261 8.54674 2.81098 8.50238 2.84369 8.46967C2.8764 8.43696 2.92077 8.41858 2.96702 8.41858H17.0949V7.37207H2.96702C2.64321 7.37207 2.33266 7.5007 2.1037 7.72967C1.87473 7.95864 1.74609 8.26919 1.74609 8.593V22.0232H4.88563V20.9767Z" fill="#3C3C3C"></path><path d="M28.256 22.0232V8.593C28.256 8.26919 28.1274 7.95864 27.8984 7.72967C27.6694 7.5007 27.3589 7.37207 27.0351 7.37207H23.0234V8.41858H27.0351C27.
20813 8.41858 27.1257 8.43696 27.1584 8.46967C27.1911 8.50238 27.2095 8.54674 27.2095 8.593V22.0232H28.256Z" fill="#3C3C3C"></path></svg>',1)])))),e.isUploadingFundraiseImage?(Ai(),Si("div",ype," Uploader billede ... ")):(Ai(),Si("div",_pe,Dde(t[29]||(t[29]=[Mi("span",{class:"kb-personal-fundraising__underline"},"Vælg fil",-1),Mi("span",{class:"kb-personal-fundraising__upload-button-label__label-text"},"Understøttede filer: JPG, PNG, GIF, WebP",-1)]))))],2),Mi("input",{disabled:e.isUploadingFundraiseImage,onChange:t[11]||(t[11]=function(){return e.fundraiseImageUploader&&e.fundraiseImageUploader.apply(e,arguments)}),id:"fundraisingImageUpload",type:"file",accept:".jpg,.jpeg,.png,.gif,.webp",class:"FormFileUpload__Input kb-personal-fundraising__upload-button-input",required:"","aria-describedby":"fundraisingImageUploadDesc"},null,40,Ape),e.isFundraiseImageUploadError?(Ai(),Si("p",kpe,fe(e.getLabel("errorMessageWrongFileFormat")),1)):zi("v-if",!0)],64))])]),Ni(s,{label:e.getLabel("fundraiseReason"),placeholder:e.getLabel("placeholderReason"),errorMessageLabel:e.getLabel("validationFundraiseReason"),isValidationError:e.displayError&&!e.fundraiseReasonFilled,fieldName:"fundraiseReason",isRequired:"",modelValue:e.fundraiseReason,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.fundraiseReason=t})},null,8,["label","placeholder","errorMessageLabel","isValidationError","modelValue"]),e.isMindegave?(Ai(),Si("div",xpe,[Mi("label",wpe,fe(e.getLabel("fundraiseElaboration")),1),io(Mi("textarea",{"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.fundraisePersonDescription=t}),id:"fundraiseElaboration",class:Y(["FormTextbox__Input",{"validation-error":e.displayError&&!e.fundraisePersonDescriptionFilled}]),placeholder:e.getLabel("placeholderElaboration"),required:"","aria-required":"true","aria-describedby":"fundraiseElaboration_desc","aria-invalid":"false",maxlength:"2000"},null,10,Cpe),[[Ws,e.fundraisePersonDescription]]),e.displayError&&!e.fundraisePersonDescriptionFilled?(Ai(),Si("p",Epe,fe(e.getLabel("validationElaboration")),1)):zi("v-if",!0)])):zi("v-if",!0)]),e.showPostalCodeInput?(Ai(),Si("section",Spe,[Ni(i,{modelValue:e.postalCode,"onUpdate:modelValue":t[14]||(t[14]=function(t){return e.postalCode=t}),fieldName:"personalFundraising",label:e.getLabel("fundraisePostalCode"),isValidationError:e.displayError&&!e.postalCodeValid,onChangeCallback:function(t){return e.postalCodeChanged(t.target.value)},errorMessageLabel:e.getLabel("validationPostalCode"),type:"number"},null,8,["modelValue","label","isValidationError","onChangeCallback","errorMessageLabel"])])):zi("v-if",!0),Mi("section",Tpe,[Mi("h2",null,fe(e.getLabel("fundraiseImageUploadTitle")),1),Mi("p",Ipe,fe(e.getLabel("fundraiseImageUploadText")),1),e.personalStoryImage.length?(Ai(!0),Si(gi,{key:0},Yr(e.personalStoryImage,function(t,n){return Ai(),Si("button",{onClick:function(n){return e.discardUploadedImage("personalStoryImage",t.id)},class:"kb-personal-fundraising__upload-showcase"},[Mi("img",{src:t.url,alt:"",class:"kb-personal-fundraising__upload-showcase__image"},null,8,Ope),Mi("div",Lpe,[Fi(fe(t.name)+" ",1),t.size?(Ai(),Si("span",Dpe," Filstørrelse: "+fe(e.formatFilesize(t.size)),1)):zi("v-if",!0)]),Mi("span",Mpe,fe(e.getLabel("removeUpload")),1)],8,Bpe)}),256)):zi("v-if",!0),(Ai(!0),Si(gi,null,Yr(e.personalStoryImagesUploading,function(e){return Ai(),Si("button",Npe,Dde(t[31]||(t[31]=[Mi("div",{class:"kb-personal-fundraising__upload-showcase__button-content"}," Uploader billede ... ",-1)])))}),256)),Mi("div",Ppe,[t[32]||(t[32]=Vi('<label for="personalStoryImageUpload" class="Form__Element__Caption kb-personal-fundraising__upload-button-label"><div class="kb-personal-fundraising__icon"><svg viewBox="0 0 30 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.0245 12.05L20.9907 11.6454L20.7849 11.164C19.9442 9.16166 20.1675 7.02329 21.3814 5.48143C22.5954 3.93957 24.4756 3.21748 26.7012 3.38841L25.2117 4.82562L25.9407 5.57562L27.957 3.61515C28.0529 3.52128 28.1291 3.40921 28.1811 3.28551C28.2331 3.16182 28.2599 3.02899 28.2599 2.8948C28.2599 2.76062 28.2331 2.62779 28.1811 2.50409C28.1291 2.3804 28.0529 2.26833 27.957 2.17445L25.9407 0.213989L25.2117 0.963989L26.607 2.32097C24.1024 2.18841 21.9326 3.07794 20.5582 4.83957C19.107 6.69538 18.8384 9.21399 19.8221 11.5582L20.0245 12.05Z" fill="#3C3C3C"></path><path d="M18.1411 23.4186V24.4651H12.2109V23.4186H0.699239V26.3837C0.698313 26.5443 0.729262 26.7035 0.790291 26.852C0.851321 27.0006 0.941219 27.1355 1.05478 27.2491C1.16834 27.3626 1.3033 27.4525 1.45185 27.5136C1.60039 27.5746 1.75958 27.6056 1.92017 27.6046H28.083C28.4068 27.6046 28.7173 27.476 28.9463 27.247C29.1753 27.0181 29.3039 26.7075 29.3039 26.3837V23.4186H18.1411ZM28.2574 26.3837C28.2574 26.43 28.239 26.4743 28.2063 26.507C28.1736 26.5397 28.1292 26.5581 28.083 26.5581H1.92017C1.87303 26.558 1.82786 26.5392 1.79459 26.5058C1.763 26.473 1.74548 26.4292 1.74575 26.3837V24.4651H11.1644V25.5116H19.1876V24.4651H28.2574V26.3837Z" fill="#3C3C3C"></path><path d="M4.88563 20.9767H2.79261V8.593C2.79261 8.54674 2.81098 8.50238 2.84369 8.46967C2.8764 8.43696 2.92077 8.41858 2.96702 8.41858H17.0949V7.37207H2.96702C2.64321 7.37207 2.33266 7.5007 2.1037 7.72967C1.87473 7.95864 1.74609 8.26919 1.74609 8.593V22.0232H4.88563V20.9767Z" fill="#3C3C3C"></path><path d="M28.256 22.0232V8.593C28.256 8.26919 28.1274 7.95864 27.8984 7.72967C27.6694 7.5007 27.3589 7.37207 27.0351 7.37207H23.0234V8.41858H27.0351C27.
20813 8.41858 27.1257 8.43696 27.1584 8.46967C27.1911 8.50238 27.2095 8.54674 27.2095 8.593V22.0232H28.256Z" fill="#3C3C3C"></path></svg></div><div class="kb-personal-fundraising__label-content"><span class="kb-personal-fundraising__underline">Vælg fil</span><span class="kb-personal-fundraising__upload-button-label__label-text">Understøttede filer: JPG, PNG, GIF, WebP</span></div></label>',1)),Mi("input",{onChange:t[15]||(t[15]=function(){return e.personalStoryImageUploader&&e.personalStoryImageUploader.apply(e,arguments)}),id:"personalStoryImageUpload",type:"file",multiple:"",accept:".jpg,.jpeg,.png,.gif,.webp",class:"FormFileUpload__Input kb-personal-fundraising__upload-button-input",required:"","aria-required":"true","aria-describedby":"fundraisingImageUploadDesc2"},null,32),e.displayError&&!e.personalStoryImageFilled?(Ai(),Si("p",Rpe,fe(e.getLabel("validationPersonalStoryImage")),1)):zi("v-if",!0),e.isPersonalStoryImageUploadError?(Ai(),Si("p",Fpe,fe(e.getLabel("errorMessageWrongFileFormat")),1)):zi("v-if",!0)])]),e.showUserConsent&&!e.isMindegave?(Ai(),Si("section",Vpe,[Mi("h2",null,fe(e.getLabel("userConsentTitle")),1),Mi("p",null,fe(e.getLabel("userConsentDescription")),1),Mi("div",zpe,[io(Mi("input",{id:"user-consent",type:"checkbox",name:"user-consent",class:"kb-sign-up-form__kb-form__radio-input","onUpdate:modelValue":t[16]||(t[16]=function(t){return e.hasConsent=t})},null,512),[[$s,e.hasConsent]]),Mi("div",Upe,[Mi("label",jpe,fe(e.getLabel("userConsentOption")),1),e.hasConsent?(Ai(),Si("div",Hpe,[Mi("label",qpe,[Fi(fe(e.getLabel("userConsentTextLabel"))+" ",1),Ni(c,{tooltipText:e.getLabel("userConsentTextTooltip")},null,8,["tooltipText"])]),io(Mi("textarea",{"onUpdate:modelValue":t[17]||(t[17]=function(t){return e.fundraisePersonDescription=t}),id:"userConsentText",class:Y(["FormTextbox__Input",{"validation-error":e.displayError&&!e.fundraisePersonDescriptionFilled}]),label:e.getLabel("userConsentTextLabel"),"aria-invalid":"false",maxlength:"35"},null,10,Gpe),[[Ws,e.fundraisePersonDescription]]),e.displayError&&!e.fundraisePersonDescriptionFilled?(Ai(),Si("p",Kpe,fe(e.getLabel("userConsentTextErrorLabel")),1)):zi("v-if",!0)])):zi("v-if",!0)])])])):zi("v-if",!0),Mi("section",Zpe,[Mi("h2",null,fe(e.getLabel("notificationTitle")),1),Mi("p",null,fe(e.getLabel("notificationText")),1),Mi("div",Wpe,[io(Mi("input",{"onUpdate:modelValue":t[18]||(t[18]=function(t){return e.notificationSms=t}),id:"notification-sms",type:"checkbox",name:"notification-sms",class:"kb-sign-up-form__kb-form__radio-input"},null,512),[[$s,e.notificationSms]]),Mi("label",$pe,fe(e.getLabel("notificationSms")),1)]),e.showPhoneInput?(Ai(),Si("div",Ype,[Ni(i,{fieldName:"phone",modelValue:e.phone,"onUpdate:modelValue":t[19]||(t[19]=function(t){return e.phone=t}),label:e.getLabel("phoneLabel"),readOnly:e.isReadOnly.phone,isValidationError:e.displayError&&!e.isPhoneValid,errorMessageLabel:e.getLabel("phoneErrorLabel"),isRequired:""},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel"])])):zi("v-if",!0),Mi("div",Jpe,[io(Mi("input",{"onUpdate:modelValue":t[20]||(t[20]=function(t){return e.notificationEmail=t}),id:"notification-email",type:"checkbox",name:"notification-email",class:"kb-sign-up-form__kb-form__radio-input"},null,512),[[$s,e.notificationEmail]]),Mi("label",Xpe,fe(e.getLabel("notificationEmail")),1)])]),Mi("section",Qpe,[Mi("h2",efe,fe(e.getLabel("continueInfoTitle")),1),Mi("p",tfe,fe(e.getLabel("continueInfoDescription")),1)])]),t[34]||(t[34]=Mi("section",{class:"kb-personal-fundraising__divider"},null,-1)),Mi("div",nfe,[e.isUpdate?(Ai(),Si("button",{key:0,onClick:t[21]||(t[21]=lc(function(){return e.deleteButtonPressed&&e.deleteButtonPressed.apply(e,arguments)},["prevent"])),class:"kb-button"},fe(e.getLabel("deleteButton")),1)):zi("v-if",!0),Mi("button",{onClick:t[22]||(t[22]=lc(function(){return e.previousButtonPressed&&e.previousButtonPressed.apply(e,arguments)},["prevent"])),class:"kb-button"},fe(e.getLabel("cancelButton")),1),Mi("button",{onClick:t[23]||(t[23]=function(){return e.nextButtonPressed&&e.nextButtonPressed.apply(e,arguments)}),disabled:e.disableNextButton,class:"kb-button kb-button--full-color-spot"}
2,fe(e.getLabel("submitButton")),9,ofe)]),e.isSubmitting?(Ai(),Si("div",rfe,Dde(t[33]||(t[33]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)])))):zi("v-if",!0)],2)}]]),a_e=r_e;var i_e=function(e){return{id:e.Id,name:e.Name,url:e.Url}},l_e={class:"kb-personal-fundraising-active-card__header"},s_e={class:"kb-personal-fundraising-active-card__title-row"},c_e={class:"kb-personal-fundraising-active-card__title"},u_e=["href"],d_e={class:"kb-personal-fundraising-active-card__title-text"},p_e={key:1,class:"kb-personal-fundraising-active-card__title-text"},f_e={class:"kb-personal-fundraising-active-card__actions"},m_e=["href"],g_e=["href"],h_e={key:2,class:"kb-personal-fundraising-active-card__menu"},b_e={class:"kb-personal-fundraising-active-card__body"},v_e={key:0,class:"kb-personal-fundraising-active-card__memorial-summary"},y_e={key:0,class:"kb-personal-fundraising-active-card__collected-label"},__e={class:"kb-personal-fundraising-active-card__collected-amount"},A_e={key:1,class:"kb-personal-fundraising-active-card__donor-count"},k_e={class:"kb-personal-fundraising-active-card__donor-count-value"},x_e={key:0,class:"kb-personal-fundraising-active-card__progress"},w_e=["aria-valuenow","aria-label"],C_e={class:"kb-personal-fundraising-active-card__progress-bubble"},E_e={class:"kb-personal-fundraising-active-card__progress-meta"},S_e={class:"kb-personal-fundraising-active-card__remaining"},T_e={class:"kb-personal-fundraising-active-card__remaining-amount"},I_e={class:"kb-personal-fundraising-active-card__target"},B_e={key:1,class:"kb-personal-fundraising-active-card__amount-only"},O_e={class:"kb-personal-fundraising-active-card__share"},L_e={key:0,class:"kb-personal-fundraising-active-card__share-subtext"};function D_e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var M_e=["aria-controls","aria-expanded"],N_e=["id","aria-label"],P_e={class:"kb-personal-fundraising-dashboard-menu__mobile-header",role:"none"},R_e=["aria-label"],F_e={key:0,role:"none"},V_e=["href"],z_e={key:1,role:"none"},U_e={key:2,role:"none"},j_e=["href"];function H_e(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return q_e(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(q_e(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,q_e(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,q_e(d,"constructor",c),q_e(c,"constructor",s),s.displayName="GeneratorFunction",q_e(c,r,"GeneratorFunction"),q_e(d),q_e(d,r,"Generator"),q_e(d,o,function(){return this}),q_e(d,"toString",function(){return"[object Generator]"}),(H_e=function(){return{w:a,m:p}})()}function q_e(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}q_e=function(e,t,n,o){function a(t,n){q_e(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},q_e(e,t,n,o)}function G_e(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function K_e(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){G_e(a,o,r,i,l,"next",e)}function l(e){G_e(a,o,r,i,l,"throw",e)}i(void 0)})}}var Z_e="(max-width: 768px)",W_e=0;const $_e={name:"PersonalFundraisingDashboardMenu",props:{editUrl:{type:String,default:null},campaignId:{type:String,default:null},qrCodeUrl:{type:String,default:null},qrCodeImage:{type:String,default:null},livestreamUrl:{type:String,default:null},isMemorial:{type:Boolean,default:!1},triggerLabel:{type:String,default:"Flere muligheder"},updateTargetLabel:{type:String,default:"Opdater indsamlingsmål"},qrCodeLabel:{type:String,default:"QR-kode"},livestreamLabel:{type:String,default:"Livestream"}},setup:function(e){var t=Af(),n=Kt(null),o=Kt(null),r=Kt(null),a=Kt(!1),i=Kt(!1),l=Kt(0),s="kb-personal-fundraising-dashboard-menu-".concat(++W_e),c=null,u=bl(function(){return!!e.qrCodeImage||!!e.livestreamUrl}),d=bl(function(){return $ye(e.editUrl)}),p=bl(function(){return!e.isMemorial&&!!d.value}),f=bl(function(){return{transform:l.value?"translateX(".concat(l.value,"px)"):void 0}}),m=function(){var e;return Array.from((null===(e=r.value)||void 0===e?void 0:e.querySelectorAll('[role="menuitem"]'))||[])},g=function(){window.matchMedia(Z_e).matches&&null===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden")},h=function(){return v()},b=function(){document.removeEventListener("pointerdown",y),document.removeEventListener("keydown",_),window.removeEventListener("resize",h),null!==c&&(document.body.style.overflow=c,c=null)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];
2a.value&&(a.value=!1,i.value=!1,l.value=0,b(),e&&Nn(function(){var e;return null===(e=o.value)||void 0===e?void 0:e.focus()}))},y=function(e){var t;null!==(t=n.value)&&void 0!==t&&t.contains(e.target)||v()},_=function(e){"Escape"===e.key&&(e.preventDefault(),v(!0))},A=function(){var e=K_e(H_e().m(function e(){var t,n,a,s,c,u;return H_e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Nn();case 1:if(r.value&&!window.matchMedia(Z_e).matches){e.n=2;break}return e.a(2);case 2:return n=o.value.getBoundingClientRect(),a=r.value.getBoundingClientRect(),s=window.innerHeight-n.bottom,c=n.top,i.value=a.bottom>window.innerHeight-16&&c>s,e.n=3,Nn();case 3:if(u=null===(t=r.value)||void 0===t?void 0:t.getBoundingClientRect()){e.n=4;break}return e.a(2);case 4:u.left<16?l.value=16-u.left:u.right>window.innerWidth-16&&(l.value=window.innerWidth-16-u.right);case 5:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=K_e(H_e().m(function e(){var t;return H_e().w(function(e){for(;;)switch(e.n){case 0:return a.value=!0,document.addEventListener("pointerdown",y),document.addEventListener("keydown",_),window.addEventListener("resize",h),g(),e.n=1,A();case 1:null===(t=m()[0])||void 0===t||t.focus();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return Pr(b),{closeMenu:v,fundraisingTargetUrl:d,handleFocusout:function(){window.setTimeout(function(){var e;null!==(e=n.value)&&void 0!==e&&e.contains(document.activeElement)||v()},0)},handleMenuKeydown:function(e){var t,n=m(),o=n.indexOf(document.activeElement),r=null;"ArrowDown"===e.key?r=(o+1)%n.length:"ArrowUp"===e.key?r=(o-1+n.length)%n.length:"Home"===e.key?r=0:"End"===e.key&&(r=n.length-1),null!==r&&(e.preventDefault(),null===(t=n[r])||void 0===t||t.focus())},hasMenu:u,horizontalOffset:l,isOpen:a,menuEl:r,menuId:s,menuStyle:f,openQrCodeOverlay:function(){v(),t.commit("main/set_page_overlay_content_data",{qrImgUrlBase:e.qrCodeImage,qrPrintPageLink:e.qrCodeUrl,qrPrintPageLinkTarget:"_blank",fundraisingCampaignId:e.campaignId}),t.dispatch("main/openPageOverlay",{overlayContent:"FundraisingQrCodeOverlay",returnTarget:o.value})},opensAbove:i,rootEl:n,showUpdateTarget:p,toggleMenu:function(){a.value?v(!0):k()},triggerEl:o}}},Y_e=$_e,J_e=(0,Hb.A)(Y_e,[["render",function(e,t,n,o,r,a){return e.hasMenu?(Ai(),Si("div",{key:0,ref:"rootEl",class:"kb-personal-fundraising-dashboard-menu",onFocusout:t[7]||(t[7]=function(){return e.handleFocusout&&e.handleFocusout.apply(e,arguments)})},[Mi("button",{ref:"triggerEl",type:"button",class:"kb-personal-fundraising-dashboard-menu__trigger","aria-haspopup":"menu","aria-controls":e.menuId,"aria-expanded":e.isOpen,onClick:t[0]||(t[0]=function(){return e.toggleMenu&&e.toggleMenu.apply(e,arguments)})},[t[8]||(t[8]=Mi("span",{class:"kb-personal-fundraising-dashboard-menu__ellipsis kb-ui-icon kb-ui-icon--ui-dots-horizontal","aria-hidden":"true"},null,-1)),Mi("span",null,fe(e.triggerLabel),1)],8,M_e),e.isOpen?(Ai(),Si("div",{key:0,class:"kb-personal-fundraising-dashboard-menu__backdrop","aria-hidden":"true",onClick:t[1]||(t[1]=function(t){return e.closeMenu(!0)})})):zi("v-if",!0),e.isOpen?(Ai(),Si("ul",{key:1,id:e.menuId,ref:"menuEl",class:Y(["kb-personal-fundraising-dashboard-menu__popover",{"kb-personal-fundraising-dashboard-menu__popover--above":e.opensAbove}]),style:G(e.menuStyle),role:"menu","aria-label":e.triggerLabel,onKeydown:t[6]||(t[6]=function(){return e.handleMenuKeydown&&e.handleMenuKeydown.apply(e,arguments)})},[Mi("li",P_e,[t[10]||(t[10]=Mi("span",{class:"kb-personal-fundraising-dashboard-menu__drawer-handle","aria-hidden":"true"},null,-1)),Mi("button",{type:"button",class:"kb-personal-fundraising-dashboard-menu__close","aria-label":"Luk ".concat(e.triggerLabel.toLowerCase()),onClick:t[2]||(t[2]=function(t){return e.closeMenu(!0)})},(i=t[9]||(t[9]=[Mi("span",{class:"kb-ui-icon kb-ui-icon--ui-close","aria-hidden":"true"},null,-1)]),function(e){if(Array.isArray(e))return D_e(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return D_e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D_e(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),8,R_e)]),e.showUpdateTarget?(Ai(),Si("li",F_e,[Mi("a",{class:"kb-personal-fundraising-dashboard-menu__menu-item",href:e.fundraisingTargetUrl,role:"menuitem",onClick:t[3]||(t[3]=function(t){return e.closeMenu()})},[Mi("span",null,fe(e.updateTargetLabel),1),t[11]||(t[11]=Mi("span",{class:"kb-ui-icon kb-ui-icon--ui-pen","aria-hidden":"true"},null,-1))],8,V_e)])):zi("v-if",!0),e.qrCodeImage?(Ai(),Si("li",z_e,[Mi("button",{type:"button",class:"kb-personal-fundraising-dashboard-menu__menu-item",role:"menuitem",onClick:t[4]||(t[4]=function(){return e.openQrCodeOverlay&&e.openQrCodeOverlay.apply(e,arguments)})},[Mi("span",null,fe(e.qrCodeLabel),1),t[12]||(t[12]=Mi("span",{class:"kb-ui-icon kb-ui-icon--ui-qr-code","aria-hidden":"true"},null,-1))])])):zi("v-if",!0),e.livestreamUrl?(Ai(),Si("li",U_e,[Mi("a",{class:"kb-personal-fundraising-dashboard-menu__menu-item",href:e.livestreamUrl,role:"menuitem",onClick:t[5]||(t[5]=function(t){return e.closeMenu()})},[Mi("span",null,fe(e.livestreamLabel),1),t[13]||(t[13]=Mi("span",{class:"kb-ui-icon kb-ui-icon--ui-livestream","aria-hidden":"true"},null,-1))],8,j_e)])):zi("v-if",!0)],46,N_e)):zi("v-if",!0)],544)):zi("v-if",!0);var i}]]);function X_e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q_e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q_e(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q_e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const eAe={name:"PersonalFundraisingActiveCard",components:{PersonalFundraisingDashboardMenu:J_e},props:{name:{type:String,required:!0},url:{type:String,default:null},editUrl:{type:String,default:null},campaignId:{type:String,default:null},qrCodeUrl:{type:String,default:null},qrCodeImage:{type:String,default:null},livestreamUrl:{type:String,default:null},amount:{type:Number,default:0},targetAmount:{type:Number,default:0},editLabel:{type:String,default:"Rediger indsamling"},moreOptionsLabel:{type:String,default:"Flere muligheder"},updateTargetLabel:{type:String,default:"Opdater indsamlingsmÃ¥l"},qrCodeLabel:{type:String,default:"QR-kode"},livestreamLabel:{type:String,default:"Livestream"},remainingLabelTemplate:{type:String,default:"Du er kun {amount} fra at nÃ¥ dit mÃ¥l"},shareCtaLabel:{type:String,default:"Del indsamlingen"},shareSubtext:{type:String,default:"Del igen og kom tættere pÃ¥ mÃ¥let"},endDate:{type:String,default:null},linkCopiedLabel:{type:String,default:"Dit link er kopieret!"},shareOverlayTitle:{type:String,default:"Del indsamlingen i dit netværk"},shareOverlayDescription:{type:String,default:""},shareNetworkTemplate:{type:String,default:"Del pÃ¥ {network}"},shareCopyLinkLabel:{type:String,default:"Kopier link"},shareGoToCollectionLabel:{type:String,default:"GÃ¥ til indsamlingen"},isMemorial:{type:Boolean,default:!1},donorCount:{type:Number,default:0},collectedAmountLabel:{type:String,default:"Du har indsamlet"},donorCountTemplate:{type:String,default:"{count} personer har doneret"}},setup:function(e){var t=Af(),n=bl(function(){var t,n=(null===(t=e.name)||void 0===t?void 0:t.trim())||"";return n.length<=60?n:"".concat(n.slice(0,60).trimEnd(),"â¦")}),o=bl(function(){return Number(e.targetAmount)>0}),r=bl(function(){return!(e.isMemorial||!e.qrCodeImage&&!e.livestreamUrl)}),a=bl(function(){return $ye(e.editUrl)}),i=bl(function(){return!r.value&&!e.isMemorial&&!!a.value}),l=bl(function(){return o.value?Math.min(100*Number(e.amount)/Number(e.targetAmount),100):0}),s=bl(function(){return l.value}),c=bl(function(){return l.value<=0?"start":l.value>=100?"end":null}),u=bl(function(){return"".concat(qx(e.amount,0)," kr.")}),d=bl(function(){return"".concat(qx(e.targetAmount,0)," kr.")}),p=bl(function(){var t=Math.max(0,Number(e.targetAmount)-Number(e.amount));return"".concat(qx(t,0)," kr.")}),f=bl(function(){var t=X_e((e.remainingLabelTemplate||"Du er {amount} fra at nÃ¥ dit mÃ¥l").split("{amount}"),2),n=t[0],o=void 0===n?"":n,r=t[1],a=void 0===r?"":r;return{before:o,amount:p.value,after:a}}),m=bl(function(){if(!e.endDate)return null;var t=new Date(e.endDate);if(Number.isNaN(t.getTime()))return null;var n=String(t.getDate()).padStart(2,"0"),o=String(t.getMonth()+1).padStart(2,"0");return"".concat(n,"/").concat(o)}),g=bl(function(){var t=e.shareSubtext||"",n=e.isMemorial?null:m.value;return t.replace("{date}",null!=n?n:"").replace(/\s{2,}/g," ").trim()}),h=bl(function(){if(!e.isMemorial)return null;var t=Math.max(0,Number(e.donorCount)||0),n=X_e((e.donorCountTemplate||"{count} personer har doneret").split("{count}"),2),o=n[0],r=void 0===o?"":o,a=n[1],i=void 0===a?"":a;return{before:r,count:String(t),after:i}}),b=bl(function(){if(!e.url)return"undefined"!=typeof window?window.location.href:"";try{return new URL(e.url,window.location.origin).toString()}catch(t){return e.url}});return{shareCtaLabel:bl(function(){return e.shareCtaLabel}),moreOptionsLabel:bl(function(){return e.moreOptionsLabel}),showMenu:r,showUpdateTargetLink:i,fundraisingTargetUrl:a,truncatedName:n,hasTarget:o,progress:l,progressMarkerPosition:s,progressMarkerEdge:c,formattedAmount:u,formattedTargetAmount:d,remainingLabelParts:f,resolvedShareSubtext:g,donorCountParts:h,isMemorial:bl(function(){return e.isMemorial}),collectedAmountLabel:bl(function(){return e.collectedAmountLabel}),openShareOverlay:function(){t.commit("main/set_page_overlay_content_data",{shareUrl:b.value,campaignUrl:e.url,title:e.shareOverlayTitle,de
2scription:e.shareOverlayDescription,networkTemplate:e.shareNetworkTemplate,copyLinkLabel:e.shareCopyLinkLabel,linkCopiedLabel:e.linkCopiedLabel,goToCollectionLabel:e.shareGoToCollectionLabel}),t.dispatch("main/openPageOverlay",{overlayContent:"PersonalFundraisingShareOverlay"})}}}},tAe=eAe,nAe=(0,Hb.A)(tAe,[["render",function(e,t,n,o,r,a){var i=qr("PersonalFundraisingDashboardMenu");return Ai(),Si("article",{class:Y(["kb-personal-fundraising-active-card",{"kb-personal-fundraising-active-card--memorial":e.isMemorial}])},[Mi("header",l_e,[Mi("div",s_e,[Mi("h3",c_e,[e.url?(Ai(),Si("a",{key:0,class:"kb-personal-fundraising-active-card__title-link",href:e.url,target:"_blank",rel:"noopener noreferrer"},[Mi("span",d_e,fe(e.truncatedName),1),t[1]||(t[1]=Mi("span",{class:"kb-personal-fundraising-active-card__title-arrow","aria-hidden":"true"},[Mi("svg",{width:"16",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false"},[Mi("path",{d:"M0 8h11.75",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}),Mi("path",{d:"m12.17 4 3.62 4-3.62 4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),t[2]||(t[2]=Mi("span",{class:"kb-visually-hidden"}," (Ã¥bner i ny fane)",-1))],8,u_e)):(Ai(),Si("span",p_e,fe(e.truncatedName),1))])]),Mi("div",f_e,[e.editUrl?(Ai(),Si("a",{key:0,class:"kb-personal-fundraising-active-card__action kb-personal-fundraising-active-card__edit",href:e.editUrl,target:"_blank",rel:"noopener noreferrer"},[t[3]||(t[3]=Mi("span",{class:"kb-personal-fundraising-active-card__edit-icon","aria-hidden":"true"},[Mi("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.317 2.25a1.5 1.5 0 0 1 2.049-.549l3.464 2a1.5 1.5 0 0 1 .55 2.05L13.13 28.697v.002l-.604 1.045-4.782 1.281-1.28-4.78L18.066 6.146l2.598 1.5-.5.866-1.732-1L8.799 24.2a1.995 1.995 0 0 1 1.96 1.605 1.995 1.995 0 0 1 2.37.895L25.513 5.25a.5.5 0 0 0-.183-.683l-3.464-2a.5.5 0 0 0-.683.183l-.75 1.3-.866-.5.75-1.3ZM12.264 28.2a1 1 0 0 0-1.733-1l-.866-.5a1 1 0 0 0-1.732-1l-.396.688.915 3.415 3.415-.915.396-.687v-.001Z",fill:"currentColor"})])],-1)),Mi("span",null,fe(e.editLabel),1)],8,m_e)):zi("v-if",!0),e.showUpdateTargetLink?(Ai(),Si("a",{key:1,class:"kb-personal-fundraising-active-card__action",href:e.fundraisingTargetUrl},[t[4]||(t[4]=Mi("span",{class:"kb-personal-fundraising-active-card__action-icon kb-ui-icon kb-ui-icon--ui-dots-horizontal","aria-hidden":"true"},null,-1)),Mi("span",null,fe(e.updateTargetLabel),1)],8,g_e)):zi("v-if",!0),e.showMenu?(Ai(),Si("div",h_e,[Ni(i,{"campaign-id":e.campaignId,"edit-url":e.editUrl,"qr-code-url":e.qrCodeUrl,"qr-code-image":e.qrCodeImage,"livestream-url":e.livestreamUrl,"is-memorial":e.isMemorial,"trigger-label":e.moreOptionsLabel,"update-target-label":e.updateTargetLabel,"qr-code-label":e.qrCodeLabel,"livestream-label":e.livestreamLabel},null,8,["campaign-id","edit-url","qr-code-url","qr-code-image","livestream-url","is-memorial","trigger-label","update-target-label","qr-code-label","livestream-label"])])):zi("v-if",!0)])]),Mi("div",b_e,[e.isMemorial?(Ai(),Si("div",v_e,[e.collectedAmountLabel?(Ai(),Si("p",y_e,fe(e.collectedAmountLabel),1)):zi("v-if",!0),Mi("p",__e,fe(e.formattedAmount),1),e.donorCountParts?(Ai(),Si("p",A_e,[Fi(fe(e.donorCountParts.before),1),Mi("span",k_e,fe(e.donorCountParts.count),1),Fi(fe(e.donorCountParts.after),1)])):zi("v-if",!0)])):(Ai(),Si(gi,{key:1},[e.hasTarget?(Ai(),Si("div",x_e,[Mi("div",{class:"kb-personal-fundraising-active-card__progress-track",role:"progressbar","aria-valuenow":Math.round(e.progress),"aria-valuemin":"0","aria-valuemax":"100","aria-label":e.formattedAmount},[Mi("div",{class:Y(["kb-personal-fundraising-active-card__progress-fill",{"kb-personal-fundraising-active-card__progress-fill--full":e.progress>=100}]),style:G({width:"".concat(e.progress,"%")})},null,6),Mi("div",{class:Y(["kb-personal-fundraising-active-card__progress-marker",{"kb-personal-fundraising-active-card__progress-marker--start":"start"===e.progressMarkerEdge,"kb-personal-fundraising-active-card__progress-marker--end":"end"===e.progressMarkerEdge}]),style:G({left:"".concat(e.progressMarkerPosition,"%")})},[Mi("div",C_e,fe(e.formattedAmount),1),t[5]||(t[5]=Mi("span",{class:"kb-personal-fundraising-active-card__progress-dot","aria-hidden":"true"},null,-1))],6)],8,w_e),Mi("div",E_e,[Mi("p",S_e,[Fi(fe(e.remainingLabelParts.before),1),Mi("span",T_e,fe(e.remainingLabelParts.amount),1),Fi(fe(e.remainingLabelParts.after),1)]),Mi("p",I_e,fe(e.formattedTargetAmount),1)])])):(Ai(),Si("div",B_e,fe(e.formattedAmount),1))],64)),Mi("div",O_e,[Mi("button",{type:"button",class:"kb-button kb-button--full-color-spot kb-personal-fundraising-active-card__share-button",onClick:t[0]||(t[0]=function(){return e.openShareOverlay&&e.openShareOverlay.apply(e,arguments)})},fe(e.shareCtaLabel),1),e.resolvedShareSubtext?(Ai(),Si("p",L_e,fe(e.resolvedShareSubtext),1)):zi("v-if",!0)])])],2)}]]);var oAe={class:"kb-personal-fundraising-list-item"},rAe=["href"],aAe={key:1,class:"kb-personal-fundraising-list-item__name"},iAe={class:"kb-personal-fundraising-list-item__amount"};const lAe={name:"PersonalFundraisingListItem",props:{name:{type:String,required:!0},amount:{type:Number,default:0},url:{type:String,default:null}},setup:function(e){return{formattedAmount:bl(function(){return"".concat(qx(e.amount,0)," kr.")}),isLink:bl(function(){return!!e.url})}}},sAe=(0,Hb.A)(lAe,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",oAe,[e.isLink?(Ai(),Si("a",{key:0,class:"kb-personal-fundraising-list-item__name kb-personal-fundraising-list-item__name--link",href:e.url},fe(e.name),9,rAe)):(Ai(),Si("span",aAe,fe(e.name),1)),Mi("span",iAe,fe(e.formattedAmount),1)])}]]);function cAe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return uAe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(uAe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,uAe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,uAe(d,"constructor",c),uAe(c,"constructor",s),s.displayName="GeneratorFunction",uAe(c,r,"GeneratorFunction"),uAe(d),uAe(d,r,"Generator"),uAe(d,o,function(){return this}),uAe(d,"toString",function(){return"[object Generator]"}),(cAe=function(){return{w:a,m:p}})()}function uAe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}uAe=function(e,t,n,o){function a(t,n){uAe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},uAe(e,t,n,o)}function dAe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}var pAe={createCtaLabel:"Opret ny indsamling",editCtaLabel:"Rediger indsamling",moreOptionsLabel:"Flere muligheder",updateTargetLabel:"Opdater indsamlingsmål",qrCodeLabel:"QR-kode",livestreamLabel:"Livestream",remainingLabelTemplate:"Du er kun {amount} fra at nå dit mål",shareCtaLabel:"Del indsamlingen",shareSubtext:"Del igen og kom tættere på målet",collectedAmountLabel:"Du har indsamlet",donorCountTemplate:"{count} personer har doneret",linkCopiedLabel:"Dit link er kopieret!",shareOverlayTitle:"Del indsamlingen i dit netværk",shareOverlayDescription:"Jo flere der ser din indsamling, jo tættere kommer du på dit mål. Del linket og giv dine venner, familie og netværk en kærlig påmindelse om at donere, før din indsamling slutter.",shareNetworkTemplate:"Del på {network}",shareCopyLinkLabel:"Kopier link",shareGoToCollectionLabel:"Gå til indsamlingen"};const fAe={name:"PersonalFundraisingDashboard",components:{PersonalFundraisingActiveCard:nAe,PersonalFundraisingListItem:sAe},props:{createUrl:{type:String,default:"#"},userProfileId:{type:String,default:null},campaignAreaId:{type:String,default:null},pageId:{type:[String,Number],default:null},collections:{type:Array,default:null},isMindegave:{type:Boolean,default:!1}},setup:function(e){var t=Af(),n=Kt(!1),o=function(e){return function(e){return t.getters["labels/getLabel"]({labelCollection:"PersonalFundraisingDashboard",labelKey:e})}(e)||pAe[e]||""},r=bl(function(){return t.state.fundraising.dashboardCollections||[]}),a=bl(function(){return Array.isArray(e.collections)}),i=bl(function(){return a.value?e.collections:r.value}),l=bl(function(){return i.value.filter(function(e){return e.isActive})}),s=bl(function(){return i.value.filter(function(e){return!e.isActive})}),c=bl(function(){return l.value.length>0}),u=bl(function(){if(a.value)return i.value.reduce(function(e,t){return e+(Number(t.amount)||0)},0);var e=t.state.fundraising.dashboardTotalAmount;return null!=e?Number(e)||0:i.value.reduce(function(e,t){return e+(Number(t.amount)||0)},0)}),d=bl(function(){return m.value?"".concat(qx(u.value,0)," kr."):""}),p=bl(function(){return s.value}),f=bl(function(){return!a.value&&!!t.state.fundraising.dashboardExpiredHasNextPage}),m=Kt(!1),g=bl(function(){return!m.value||t.state.fundraising.dashboardCollectionsLoading}),h=bl(function(){return!!t.state.fundraising.dashboardCollectionsError}),b=bl(function(){return o("editCtaLabel")}),v=bl(function(){return o("moreOptionsLabel")}),y=bl(function(){return o("updateTargetLabel")}),_=bl(function(){return o("qrCodeLabel")}),A=bl(function(){return o("livestreamLabel")}),k=bl(function(){return o("remainingLabelTemplate")}),x=bl(function(){return o("shareSubtext")}),w=bl(function(){return o("shareCtaLabel")}),C=bl(function(){return o("collectedAmountLabel")}),E=bl(function(){return o("donorCountTemplate")}),S=bl(function(){return o("linkCopiedLabel")}),T=bl(function(){return o("shareOverlayTitle")}),I=bl(function(){return o("shareOverlayDescription")}),B=bl(function(){return o("shareNetworkTemplate")}),O=bl(function(){return o("shareCopyLinkLabel")}),L=bl(function(){return o("shareGoToCollectionLabel")}),D=bl(function(){return!g.value&&!h.value&&s.value.length>0}),M=bl(function(){return!g.value&&!h.value&&c.value}),N=bl(function(){return!g.value&&!h.value&&!c.value}),P=bl(function(){return!g.value&&!h.value&&c.value}),R=function(){return{userProfileId:e.userProfileId,campaignAreaId:e.campaignAreaId,pageId:e.pageId}},F=function(){var e,o=(e=cAe().m(function e(){return cAe().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!a.value&&!n.value){e.n=1;break}return e.a(2);case 1:return n.value=!0,e.p=2,e.n=3,t.dispatch("fundraising/loadMoreExpiredDashboardCollections",R());case 3:return e.p=3,n.value=!1,e.f(3);case 4:return e.a(2)}},e,null,[[2,,3,4]])}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){dAe(a,o,r,i,l,"next",e)}function l(e){dAe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return o.apply(this,arguments)}}();return Dr(function(){a.value||!e.userProfileId||!e.campaignAreaId&&!e.pageId?m.value=!0:t.dispatch("fundraising/getPersonalFundraisingDashboard",R()).finally(function(){m.value=!0})}),{createUrl:bl(function(){return e.createUrl}),isLoading:g,hasError:h,formattedTotal:d,editLabel:b,moreOptionsLabel:v,updateTargetLabel:y,qrCodeLabel:_,livestreamLabel:A,remainingLabelTemplate:k,shareSubtext:x,shareCtaLabel:w,collectedAmountLabel:C,donorCountTemplate:E,linkCopiedLabel:S,shareOverlayTitle:T,shareOverlayDescription:I,shareNetworkTemplate:B,shareCopyLinkLabel:O,shareGoToCollectionLabel:L,isMemorial:bl(function(){if(a.value)return e.isMindegave;var n=t.state.fundraising.dashboardIsMindegave;return"boolean"==typeof n?n:e.isMindegave}),showActiveList:M,activeCollections:l,showHeroCta:N,showCreateLink:P,showExpiredList:D,visibleExpiredCollections:p,hasMoreExpired:f,showMore:F,retryLoad:function(){e.userProfileId&&(e.campaignAreaId||e.pageId)&&!a.value&&t.dis
2patch("fundraising/getPersonalFundraisingDashboard",R())}}}};var mAe="kb-hero-general__step-indicator-circle--active-step";const gAe={name:"PersonalFundraisingFlowStepHero",setup:function(){var e=Af(),t=Kt(null),n=Kt([]),o=Kt(null);bo(bl(function(){return e.state.fundraising.personalFundraisingFlowStep}),function(e){if(n.value.length){var t=e-1,a=n.value[t],i=a?r(a):null;if(i&&i.classList.add(mAe),null!==o.value){var l=n.value[o.value],s=l?r(l):null;s&&s.classList.remove(mAe)}o.value=t}});var r=function(e){return e.querySelector(".kb-hero-general__step-indicator-circle")};return Dr(function(){t.value&&(n.value=Array.from(t.value.children),o.value=n.value.findIndex(function(e){return"step"===e.getAttribute("aria-current")}))}),{stepWrapper:t}}},hAe={name:"PostAside",setup:function(){var e=Af();return{startUserInfoOverlay:function(t,n){e.commit("main/set_page_overlay_content_data",{userId:n}),e.dispatch("main/openPageOverlay",{overlayContent:"MemberOverlay",returnTarget:t.currentTarget})}}}};function bAe(e){return function(e){if(Array.isArray(e))return vAe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vAe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vAe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vAe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var yAe=["id"],_Ae=["aria-expanded"],AAe={class:"kb-image-module__image-container"},kAe={class:"kb-image-module__image"},xAe=["src"],wAe={class:"kb-post-comment__top-texts"},CAe={class:"kb-post-comment__top-post-author-data-name"},EAe={class:"kb-post-comment__top-post-author-data-date-wrapper"},SAe={class:"kb-post-comment__top-post-author-data-date"},TAe={key:0,class:"kb-post-comment__top-post-author-data-date kb-post-comment__top-post-author-data-date--edited"},IAe={class:"kb-post-comment__post"},BAe={key:0,class:"kb-post-comment__post-edit"},OAe=["innerHTML"],LAe={class:"kb-post-comment__post-bottom"},DAe={key:1,class:"kb-post-comment__post-editor"},MAe={class:"kb-post-comment__post-bottom"},NAe=["disabled"],PAe=["disabled"],RAe={class:"kb-post-comments__comment__sub-comments"},FAe={key:0,class:"kb-post-comments__comment__sub-comments-comment"},VAe={class:"kb-post-comment__new-comment kb-stafet-step",ref:"addSubCommentRef"},zAe={class:"kb-post-comment__new-comment-editor"},UAe={key:0,class:"kb-spinner-overlay"},jAe=["aria-label"];function HAe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return qAe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(qAe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,qAe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,qAe(d,"constructor",c),qAe(c,"constructor",s),s.displayName="GeneratorFunction",qAe(c,r,"GeneratorFunction"),qAe(d),qAe(d,r,"Generator"),qAe(d,o,function(){return this}),qAe(d,"toString",function(){return"[object Generator]"}),(HAe=function(){return{w:a,m:p}})()}function qAe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}qAe=function(e,t,n,o){function a(t,n){qAe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},qAe(e,t,n,o)}function GAe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}var KAe=null;function ZAe(){var e;return KAe||(KAe=(e=HAe().m(function e(){return HAe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then(r.t.bind(r,199,23));case 1:return e.n=2,Promise.resolve().then(r.t.bind(r,75,23));case 2:return e.n=3,Promise.resolve().then(r.t.bind(r,741,23));case 3:return e.n=4,Promise.resolve().then(r.t.bind(r,595,23));case 4:return e.n=5,Promise.resolve().then(r.bind(r,384));case 5:return e.n=6,Promise.resolve().then(r.t.bind(r,203,23));case 6:return e.n=7,Promise.resolve().then(r.t.bind(r,36,23));case 7:return e.n=8,Promise.resolve().then(r.t.bind(r,669,23));case 8:return e.n=9,Promise.resolve().then(r.t.bind(r,775,23));case 9:return e.n=10,Promise.resolve().then(r.t.bind(r,205,23));case 10:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);
2function i(e){GAe(a,o,r,i,l,"next",e)}function l(e){GAe(a,o,r,i,l,"throw",e)}i(void 0)})})()),KAe}function WAe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return $Ae(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):($Ae(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$Ae(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,$Ae(d,"constructor",c),$Ae(c,"constructor",s),s.displayName="GeneratorFunction",$Ae(c,r,"GeneratorFunction"),$Ae(d),$Ae(d,r,"Generator"),$Ae(d,o,function(){return this}),$Ae(d,"toString",function(){return"[object Generator]"}),(WAe=function(){return{w:a,m:p}})()}function $Ae(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}$Ae=function(e,t,n,o){function a(t,n){$Ae(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},$Ae(e,t,n,o)}function YAe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function JAe(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){YAe(a,o,r,i,l,"next",e)}function l(e){YAe(a,o,r,i,l,"throw",e)}i(void 0)})}}const XAe={name:"PostComment",components:{Editor:SO,AttachmentsEditor:hk,AttachmentsViewer:Rk},props:{comment:{type:Object,required:!0},canReply:{type:Boolean,default:!1},subComments:{type:Array,default:[]},postId:{type:String},groupId:{type:String},isFrivilligContext:{type:Boolean,default:!1}},setup:function(e){var t=Af(),n=Kt(e.comment.content),o=Kt([]),r=Kt([]),a=Kt(""),i=Kt([]),l=Kt([]),s=Kt(),c=Kt(!1),u=Kt(!1),d=Kt(null),p=Kt(!1),f=Kt(!1),m=Kt(!1),g=bl(function(){return 0===a.value.length||f.value}),h=e.isFrivilligContext?"MemberOverlayProfileCard":"MemberOverlay",b=function(){var e=JAe(WAe().m(function e(){return WAe().w(function(e){for(;;)switch(e.n){case 0:if(m.value){e.n=2;break}return e.n=1,ZAe();case 1:m.value=!0;case 2:u.value=!0;case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),v=function(){var a=JAe(WAe().m(function a(){var i;return WAe().w(function(a){for(;;)switch(a.n){case 0:return i=new FormData,n.value&&i.append("htmlComment",n.value),o.value.forEach(function(e){i.append("filesToAdd",e)}),r.value.forEach(function(e){i.append("filesToRemove",e)}),a.n=1,t.dispatch("forum/submitEditComment",{id:e.comment.id,body:i});case 1:"success"===a.v.status&&(u.value=!1);case 2:return a.a(2)}},a)}));return function(){return a.apply(this,arguments)}}(),y=function(){var e=JAe(WAe().m(function e(){return WAe().w(function(e){for(;;)switch(e.n){case 0:if(m.value){e.n=2;break}return e.n=1,ZAe();case 1:m.value=!0;case 2:c.value=!0,setTimeout(function(){var e;null===(e=d.value)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},100);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),_=function(){var n=JAe(WAe().m(function n(){var o,r,l,c,u,d,p,m,g,h,b,v,y,_;return WAe().w(function(n){for(;;)switch(n.n){case 0:if(a.value){n.n=1;break}return n.a(2);case 1:return f.value=!0,(l=new FormData).append("postId",e.postId),l.append("htmlComment",a.value),i.value.forEach(function(e){l.append("file",e)}
2),n.n=2,t.dispatch("forum/submitNewSubComment",{id:e.comment.id,body:l});case 2:return n.n=3,t.dispatch("forum/getPostComments",{postId:e.postId,pageId:t.state.main.page_id});case 3:return a.value="",null===(o=s.value)||void 0===o||o.clear(),f.value=!1,n.n=4,Nn();case 4:c=t.state.forum.post_comments[e.postId],u=null==c?void 0:c.find(function(t){return t.id===e.comment.id}),(d=null==u||null===(r=u.subcomments)||void 0===r?void 0:r[u.subcomments.length-1])&&(m=document.getElementById(d.id),(g=null!==(p=null==m?void 0:m.closest(".kb-post-comments__comment__sub-comments-comment"))&&void 0!==p?p:m)&&(v=null!==(h=null===(b=document.querySelector(".kb-header"))||void 0===b?void 0:b.offsetHeight)&&void 0!==h?h:0,(y=g.getBoundingClientRect()).top>=v&&y.bottom<=window.innerHeight||(_=y.top+window.scrollY-v,window.scrollTo({top:_,behavior:"smooth"}))));case 5:return n.a(2)}},n)}));return function(){return n.apply(this,arguments)}}();return{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"PostCommments",labelKey:e})},handleEditComment:b,handleDeleteComment:function(n){var o;t.commit("main/set_page_overlay_content_data",{callback:(o=JAe(WAe().m(function n(){return WAe().w(function(n){for(;;)switch(n.n){case 0:if(!f.value){n.n=1;break}return n.a(2);case 1:return f.value=!0,n.n=2,t.dispatch("forum/submitDeleteComment",{id:e.comment.id});case 2:n.v.success?location.reload():f.value=!1;case 3:return n.a(2)}},n)})),function(){return o.apply(this,arguments)})}),t.dispatch("main/openPageOverlay",{overlayContent:"DeleteCommentOverlay",returnTarget:n.currentTarget})},submitNewSubComment:_,handleSaveEditedComment:v,handleCancelEditedComment:function(){u.value=!1},startUserInfoOverlay:function(n){var o,r;null!=(null==e||null===(o=e.comment)||void 0===o?void 0:o.authorId)&&(t.commit("main/set_page_overlay_content_data",{userId:null==e||null===(r=e.comment)||void 0===r?void 0:r.authorId,isFrivilligContext:e.isFrivilligContext}),t.dispatch("main/openPageOverlay",{overlayContent:h,returnTarget:n.currentTarget}))},scrollToAddSubComment:y,editCommentContent:n,editCommentFilesToAdd:o,editCommentFilesToRemove:r,subCommentContent:a,subCommentFilesToAdd:i,isAddingSubcomment:c,isEditingComment:u,addSubCommentRef:d,userInfoExpanded:p,subCommentSubmitButtonDisabled:g,isSubmitting:f,subCommentAttachments:s,subCommentFilesToRemove:l,tinymceReady:m}}},QAe=XAe,eke=(0,Hb.A)(QAe,[["render",function(e,t,n,o,r,a){var i=qr("AttachmentsViewer"),l=qr("editor"),s=qr("AttachmentsEditor"),c=qr("PostComment",!0);return Ai(),Si("article",{class:"kb-post-comment",id:e.comment.id},[Mi("button",{class:"kb-post-comment__top",onClick:t[0]||(t[0]=function(t){return e.startUserInfoOverlay(t)}),"aria-haspopup":"true","aria-expanded":e.userInfoExpanded},[Mi("figure",{class:Y(["kb-image-module kb-image-module--1-1 kb-post-comment__top-profile-img",{"kb-post-comment__top-profile-img--disabled-click":null==e.comment.authorId}])},[Mi("div",AAe,[Mi("picture",kAe,[Mi("img",{src:e.comment.profileImage,alt:"Profile image",loading:"lazy",width:"40",height:"40"},null,8,xAe)])])],2),Mi("div",wAe,[Mi("div",{class:Y(["kb-post-comment__top-post-author-data",{"kb-post-comment__top-post-author-data--disabled-click":null==e.comment.authorId}])},[Mi("p",CAe,fe(e.comment.author),1),Mi("div",EAe,[Mi("p",SAe,fe(e.comment.timestamp),1),e.comment.edited?(Ai(),Si("p",TAe,[Fi(fe(e.getLabel("edited"))+": "+fe(e.comment.edited.timestamp)+" ",1),Mi("span",null,fe(e.comment.edited.author),1)])):zi("v-if",!0)])],2)])],8,_Ae),Mi("div",IAe,[e.isEditingComment?(Ai(),Si("div",DAe,[e.tinymceReady?(Ai(),Ti(l,{key:0,"api-key":"no-api-key",init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",valid_elements:"a[href|target],strong,em,u,ul,ol,li,p,br",formats:{bold:{inline:"strong"},italic:{inline:"em"},underline:{inline:"u"}},paste_webkit_styles:"none",paste_remove_styles:!0,paste_remove_spans:!0},modelValue:e.editCommentContent,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.editCommentContent=t})},null,8,["modelValue"])):zi("v-if",!0),Mi("div",MAe,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[5]||(t[5]=function(){return e.handleSaveEditedComment&&e.handleSaveEditedComment.apply(e,arguments)}),disabled:e.isSubmitting},fe(e.getLabel("saveEditComment")),9,NAe),Mi("button",{class:"kb-button kb-button--spot-border-color",onClick:t[6]||(t[6]=function(){return e.handleCancelEditedComment&&e.handleCancelEditedComment.apply(e,arguments)}),disabled:e.isSubmitting},fe(e.getLabel("cancelEditComment")),9,PAe)]),Ni(s,{files:e.comment.files,"onUpdate:filesToAdd":t[7]||(t[7]=function(t){return e.editCommentFilesToAdd=t}),"onUpdate:filesToRemove":t[8]||(t[8]=function(t){return e.editCommentFilesToRemove=t}),ref:"attachments"},null,8,["files"])])):(Ai(),Si(gi,{key:0},[e.comment.canEdit?(Ai(),Si("div",BAe,[Mi("button",{class:"kb-link",onClick:t[1]||(t[1]=function(){return e.handleDeleteComment&&e.handleDeleteComment.apply(e,arguments)})},fe(e.getLabel("deleteComment")),1),Mi("button",{class:"kb-link",onClick:t[2]||(t[2]=function(){return e.handleEditComment&&e.handleEditComment.apply(e,arguments)})},fe(e.getLabel("editComment")),1)])):zi("v-if",!0),Mi("div",{class:"kb-post-comment__post-text",innerHTML:e.comment.content},null,8,OAe),Ni(i,{files:e.comment.files},null,8,["files"]),Mi("div",LAe,[e.canReply?(Ai(),Si("button",{key:0,onClick:t[3]||(t[3]=function(){return e.scrollToAddSubComment&&e.scrollToAddSubComment.apply(e,arguments)}),class:"kb-button kb-button--full-color-spot"}
2,fe(e.getLabel("commentAnswerButton")),1)):zi("v-if",!0)])],64))]),Mi("div",RAe,[(Ai(!0),Si(gi,null,Yr(e.subComments,function(t,n){return Ai(),Si("div",{key:n,class:"kb-post-comments__comment__sub-comments-comment"},[Ni(c,{comment:t,groupId:e.groupId,canLike:e.canLike,isFrivilligContext:e.isFrivilligContext},null,8,["comment","groupId","canLike","isFrivilligContext"])])}),128)),e.isAddingSubcomment?(Ai(),Si("div",FAe,[Mi("div",VAe,[Mi("div",zAe,[e.tinymceReady?(Ai(),Ti(l,{key:0,"api-key":"no-api-key",init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",valid_elements:"a[href|target],strong,em,u,ul,ol,li,p,br",formats:{bold:{inline:"strong"},italic:{inline:"em"},underline:{inline:"u"}},paste_webkit_styles:"none",paste_remove_styles:!0,paste_remove_spans:!0},modelValue:e.subCommentContent,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.subCommentContent=t})},null,8,["modelValue"])):zi("v-if",!0),Ni(s,{files:[],"onUpdate:filesToAdd":t[10]||(t[10]=function(t){return e.subCommentFilesToAdd=t}),"onUpdate:filesToRemove":t[11]||(t[11]=function(t){return e.subCommentFilesToRemove=t}),ref:"subCommentAttachments"},null,512)]),e.isSubmitting?(Ai(),Si("div",UAe,bAe(t[13]||(t[13]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)])))):zi("v-if",!0),Mi("button",{"aria-label":e.getLabel("newCommentAriaLabel"),class:Y(["kb-post-comment__new-comment-button",{"kb-post-comment__new-comment-button--disabled":e.subCommentSubmitButtonDisabled,"kb-post-comment__new-comment-button--submitting":e.isSubmitting}]),onClick:t[12]||(t[12]=function(){return e.submitNewSubComment&&e.submitNewSubComment.apply(e,arguments)})},bAe(t[14]||(t[14]=[Mi("svg",{viewBox:"0 0 25 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"m18.251 1 5.434 6-5.434 6",stroke:"#fff","stroke-linejoin":"round"}),Mi("path",{d:"M17.62 7H0",stroke:"#fff"})],-1)])),10,jAe)],512)])):zi("v-if",!0)])],8,yAe)}]]),tke=eke;function nke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var oke={class:"kb-post-comments"},rke={key:0},ake={class:"kb-post-comments__title"},ike={key:1,class:"kb-spinner-overlay"};function lke(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return ske(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(ske(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ske(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,ske(d,"constructor",c),ske(c,"constructor",s),s.displayName="GeneratorFunction",ske(c,r,"GeneratorFunction"),ske(d),ske(d,r,"Generator"),ske(d,o,function(){return this}),ske(d,"toString",function(){return"[object Generator]"}),(lke=function(){return{w:a,m:p}})()}function ske(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ske=function(e,t,n,o){function a(t,n){ske(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},ske(e,t,n,o)}function cke(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const uke={name:"PostComments",components:{PostComment:tke},props:{canReply:{type:Boolean,default:!1},isFrivilligContext:{type:Boolean,default:!1},postId:{type:String,required:!0},groupId:{type:String,required:!0}},setup:function(e){var t=Af(),n=Kt(),o=bl(function(){return t.state.forum.post_comments[e.postId]}),r=function(e){var t=document.getElementById(e);
2t&&t.scrollIntoView({behavior:"smooth",alignToTop:!0})};return bo(o,function(){var e,t=(e=lke().m(function e(t){return lke().w(function(e){for(;;)switch(e.n){case 0:if(!t||!n.value){e.n=2;break}return e.n=1,Nn();case 1:r(n.value);case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){cke(a,o,r,i,l,"next",e)}function l(e){cke(a,o,r,i,l,"throw",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),{immediate:!0}),Dr(function(){t.dispatch("forum/getPostComments",{postId:e.postId,pageId:t.state.main.page_id});var o=new URLSearchParams(window.location.search);n.value=o.get("commentId")}),{comments:o,getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"PostCommments",labelKey:e})}}}},dke=uke,pke=(0,Hb.A)(dke,[["render",function(e,t,n,o,r,a){var i,l=qr("PostComment");return Ai(),Si("section",oke,[void 0!==e.comments?(Ai(),Si("div",rke,[Mi("h2",ake,fe(e.comments.length)+" "+fe(e.getLabel("title")),1),(Ai(!0),Si(gi,null,Yr(e.comments,function(t,n){return Ai(),Si("div",{key:n,class:"kb-post-comments__comment"},[Ni(l,{comment:t,canReply:e.canReply,subComments:t.subcomments,postId:e.postId,groupId:e.groupId,isFrivilligContext:e.isFrivilligContext},null,8,["comment","canReply","subComments","postId","groupId","isFrivilligContext"])])}),128))])):(Ai(),Si("div",ike,(i=t[0]||(t[0]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return nke(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return nke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nke(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())))])}]]);function fke(e){return fke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fke(e)}function mke(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return gke(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(gke(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,gke(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,gke(d,"constructor",c),gke(c,"constructor",s),s.displayName="GeneratorFunction",gke(c,r,"GeneratorFunction"),gke(d),gke(d,r,"Generator"),gke(d,o,function(){return this}),gke(d,"toString",function(){return"[object Generator]"}),(mke=function(){return{w:a,m:p}})()}function gke(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}gke=function(e,t,n,o){function a(t,n){gke(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},gke(e,t,n,o)}function hke(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function bke(e,t,n){return(t=function(e){var t=function(e){if("object"!=fke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vke={name:"PostHeader",props:bke(bke({postId:{type:String,required:!0},authorId:{type:String,required:!0},canEdit:{type:Boolean,default:!1},isFrivilligContext:{type:Boolean,default:!1}},"authorId",{type:String,required:!0}),"groupId",{type:String,required:!0}),setup:function(e){var t=Af(),n=Kt(!1),o=function(){var o,r=(o=mke().m(function o(r){return mke().w(function(o){for(;;)switch(o.n){case 0:return n.value=!0,r.target.classList.contains("kb-post-header__contents-bottom-right-button--filled")&&(n.value=!1),r.target.setAttribute("aria-pressed",n.value),o.n=1,t.dispatch("forum/submitSavePost",{save:n.value,id:e.postId});case 1:"success"===o.v.status&&r.target.classList.toggle("kb-post-header__contents-bottom-right-button--filled");case 2:return o.a(2)}},o)}),function(){var e=this,t=arguments;return new Promise(function(n,r){var a=o.apply(e,t);function i(e){hke(a,n,r,i,l,"next",e)}function l(e){hke(a,n,r,i,l,"throw",e)}i(void 0)})});return function(e){return r.apply(this,arguments)}}();return{startUserInfoOverlay:function(n){if(e.authorId){var o=e.isFrivilligContext?"MemberOverlayProfileCard":"MemberOverlay";t.commit("main/set_page_overlay_content_data",{userId:e.authorId,isFrivilligContext:e.isFrivilligContext}),t.dispatch("main/openPageOverlay",{overlayContent:o,returnTarget:n.currentTarget})}},startDeleteOverlay:function(n){t.commit("main/set_page_overlay_content_data",{callback:function(){t.dispatch("forum/deletePost",{id:e.postId})}}
2),t.dispatch("main/openPageOverlay",{overlayContent:"DeletePostOverlay",returnTarget:n.currentTarget})},handleSave:o,scrollToElement:function(e){var t=document.getElementById(e);null==t||t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},saveStatus:n}}};function yke(e){return yke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yke(e)}function _ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ake(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_ke(Object(n),!0).forEach(function(t){kke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kke(e,t,n){return(t=function(e){var t=function(e){if("object"!=yke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var wke={class:"kb-component--post-header-add-comment kb-post-header-add-comment kb-stafet-step",id:"postHeaderAddComment"},Cke={class:"kb-post-header-add-comment__title"},Eke={class:"kb-post-comment__new-comment-editor"},Ske={key:0,class:"kb-spinner-overlay"};function Tke(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return Ike(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Ike(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ike(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Ike(d,"constructor",c),Ike(c,"constructor",s),s.displayName="GeneratorFunction",Ike(c,r,"GeneratorFunction"),Ike(d),Ike(d,r,"Generator"),Ike(d,o,function(){return this}),Ike(d,"toString",function(){return"[object Generator]"}),(Tke=function(){return{w:a,m:p}})()}function Ike(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ike=function(e,t,n,o){function a(t,n){Ike(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Ike(e,t,n,o)}function Bke(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Oke(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){Bke(a,o,r,i,l,"next",e)}function l(e){Bke(a,o,r,i,l,"throw",e)}i(void 0)})}}const Lke={name:"PostHeaderAddComment",components:{AttachmentsEditor:hk,Editor:SO},props:{postId:{type:String,required:!0}},setup:function(e){var t=Af(),n=Kt(""),o=Kt([]),r=Kt(),a=Kt(!1),i=Kt(!1),l=bl(function(){return 0===n.value.length||a.value});Dr(Oke(Tke().m(function e(){return Tke().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ZAe();case 1:i.value=!0;case 2:return e.a(2)}},e)})));var s=function(){var i=Oke(Tke().m(function i(){var l,s,c,u,d,p,f,m,g,h,b,v;return Tke().w(function(i){for(;;)switch(i.n){case 0:if(""!==n.value){i.n=1;break}return i.a(2);case 1:return a.value=!0,s=new FormData,""!==n.value&&s.append("htmlComment",n.value),o.value.forEach(function(e){s.append("file",e)}
2),s.append("postId",e.postId),i.n=2,t.dispatch("forum/submitNewComment",{id:e.postId,body:s});case 2:return i.n=3,t.dispatch("forum/getPostComments",{postId:e.postId,pageId:t.state.main.page_id});case 3:return i.v,n.value="",null===(l=r.value)||void 0===l||l.clear(),a.value=!1,i.n=4,Nn();case 4:c=t.state.forum.post_comments[e.postId],(u=null==c?void 0:c[c.length-1])&&(p=document.getElementById(u.id),(f=null!==(d=null==p?void 0:p.closest(".kb-post-comments__comment"))&&void 0!==d?d:p)&&(h=null!==(m=null===(g=document.querySelector(".kb-header"))||void 0===g?void 0:g.offsetHeight)&&void 0!==m?m:0,(b=f.getBoundingClientRect()).top>=h&&b.bottom<=window.innerHeight||(v=b.top+window.scrollY-h,window.scrollTo({top:v,behavior:"smooth"}))));case 5:return i.a(2)}},i)}));return function(){return i.apply(this,arguments)}}();return{getLabel:function(e){return t.getters["labels/getLabel"]({labelCollection:"PostHeaderAddComment",labelKey:e})},submitNewComment:s,newCommentContent:n,newCommentFilesToAdd:o,isSubmitButtonDisabled:l,isSubmitting:a,attachmentsComponent:r,tinymceReady:i}}},Dke=Lke,Mke=(0,Hb.A)(Dke,[["render",function(e,t,n,o,r,a){var i,l=qr("Editor"),s=qr("AttachmentsEditor");return Ai(),Si("article",wke,[t[4]||(t[4]=Mi("hr",{class:"kb-stafet-step__breaker-line"},null,-1)),Mi("h2",Cke,fe(e.getLabel("createCommentLabel")),1),Mi("div",Eke,[e.tinymceReady?(Ai(),Ti(l,{key:0,"api-key":"no-api-key",modelValue:e.newCommentContent,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.newCommentContent=t}),disabled:e.isSubmitting,init:{plugins:"emoticons autoresize lists autolink",toolbar:"emoticons bold italic underline bullist numlist",toolbar_location:"bottom",menubar:!1,statusbar:!1,license_key:"gpl",valid_elements:"a[href|target],strong,em,u,ul,ol,li,p,br",formats:{bold:{inline:"strong"},italic:{inline:"em"},underline:{inline:"u"}},paste_webkit_styles:"none",paste_remove_styles:!0,paste_remove_spans:!0}},null,8,["modelValue","disabled"])):zi("v-if",!0)]),Ni(s,{files:[],"onUpdate:filesToAdd":t[1]||(t[1]=function(t){return e.newCommentFilesToAdd=t}),ref:"attachmentsComponent"},null,512),e.isSubmitting?(Ai(),Si("div",Ske,(i=t[3]||(t[3]=[Mi("div",{class:"kb-spinner-overlay__spinner kb-spinner-overlay__spinner--sticky"},null,-1)]),function(e){if(Array.isArray(e))return xke(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return xke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xke(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0),Mi("button",{onClick:t[2]||(t[2]=function(){return e.submitNewComment&&e.submitNewComment.apply(e,arguments)}),class:Y(["kb-button kb-button--full-color-spot",{"kb-button--disabled":e.isSubmitButtonDisabled}])},fe(e.getLabel("submitCommentCtaLabel")),3)])}]]);function Nke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Pke={class:"kb-posts-list"},Rke={class:"kb-posts-list__container"},Fke={class:"kb-posts-list__container-group"},Vke={class:"kb-posts-list__container-group-element"},zke={key:0,class:"kb-posts-list__container-group-element"},Uke={class:"kb-posts-list__wrapper"},jke={class:"kb-posts-list__actions"},Hke={class:"kb-posts-list__actions-element"},qke={key:0,class:"kb-spinner-overlay"};const Gke={name:"PostsList",components:{GroupPost:G$},props:{guid:{type:String,required:!0},groupId:{type:String,required:!0},isClosedGroup:{type:Boolean,required:!0},isLoggedIn:{type:Boolean,required:!0,default:!1},loginUrl:{type:String,required:!0},hasMemberAccess:{type:Boolean,required:!0,default:!1},skip:{type:Number,required:!0,default:0},take:{type:Number,required:!1,default:10},universId:{type:String,required:!0},numberOfMembers:{type:Number,required:!0,default:0}},setup:function(e){var t=Af(),n=Kt(0),o=bl(function(){var n;return null!==(n=t.state.search.results[e.guid])&&void 0!==n?n:[]}),r=bl(function(){var n;return null!==(n=t.state.search.scoped_total[e.guid])&&void 0!==n?n:0}),a=bl(function(){return t.state.search.search_inprogress[e.guid]});Dr(function(){i()});var i=function(){t.commit("search/set_replaceQueryInUrl",!1),t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:"api/community/posts?groupId="+e.groupId+"&universId="+e.universId}
2),t.dispatch("search/performSearch",{guid:e.guid,query:"",skip:e.skip,take:e.take})};return{openMemberOverlay:function(e){t.dispatch("main/openPageOverlay",{overlayContent:"MemberListOverlayCancerforum",returnTarget:e.currentTarget})},showSpinner:a,getLabel:function(e,t){var n=dA({labelKey:e,labelCollection:"PostsList"});return t&&t.forEach(function(e,t){n=n.replace("{".concat(t,"}"),e)}),n},numberOfItems:n,posts:o,totalAmount:r,getMorePosts:function(){t.dispatch("search/performMoreSearch",{guid:e.guid})},handlePostClick:function(n,o){e.isLoggedIn?e.isClosedGroup?e.hasMemberAccess?window.location.href=o.url:t.dispatch("main/openPageOverlay",{overlayContent:"ClosedGroupOverlay",returnTarget:n.currentTarget}):window.location.href=o.url:t.dispatch("main/openPageOverlay",{overlayContent:"LoginOverlay",returnTarget:n.currentTarget})}}}},Kke=Gke,Zke=(0,Hb.A)(Kke,[["render",function(e,t,n,o,r,a){var i,l=qr("GroupPost");return Ai(),Si(gi,null,[Mi("article",Pke,[Mi("div",Rke,[Mi("div",Fke,[Mi("div",Vke,fe(e.totalAmount)+" "+fe(e.getLabel("numberOfPostsLabel")),1),e.isLoggedIn?(Ai(),Si("div",zke,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.openMemberOverlay&&e.openMemberOverlay.apply(e,arguments)}),class:"kb-link"},fe(e.numberOfMembers)+" "+fe(e.getLabel("numberOfMembersLabel")),1)])):zi("v-if",!0)])]),Mi("ul",Uke,[(Ai(!0),Si(gi,null,Yr(e.posts,function(t,n){return Ai(),Si("li",{key:t.id,class:"kb-posts-list__wrapper-element"},[Ni(l,{result:t,isFrivilligContext:!1,handlePostClick:e.handlePostClick},null,8,["result","handlePostClick"])])}),128))]),Mi("div",jke,[Mi("p",Hke,fe(e.getLabel("resultOutForTitle",[e.posts.length,e.totalAmount])),1),e.posts.length<e.totalAmount?(Ai(),Si("button",{key:0,onClick:t[1]||(t[1]=function(){return e.getMorePosts&&e.getMorePosts.apply(e,arguments)}),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("getMoreButtonLabel")),1)):zi("v-if",!0)])]),e.showSpinner?(Ai(),Si("div",qke,(i=t[2]||(t[2]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return Nke(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Nke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nke(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)],64)}]]),Wke=Zke,$ke={name:"PreFooter",setup:function(){var e=Kt(),t=Kt(!1),n=bl(nE.bind(null,e.value)),o=bl(function(){return t.value&&n});return{consentCheckbox:t,emailInput:e,isValidEmail:n,sendInfomationToServer:function(){o.value&&console.log("Send information via XHR to server:",e.value)}}}};var Yke=".kb-component--pre-footer";const Jke={name:"ProductDetail",components:{BuySection:Dw},props:{isSoldOut:{type:Boolean,required:!0}},setup:function(e){return{isSoldOut:e.isSoldOut}}};function Xke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Qke={key:1,class:"kb-product-list"},exe={key:0,class:"kb-product-list__results-number"},txe={class:"kb-product-list__results-list-header"},nxe={key:0,class:"kb-product-list__results-number"},oxe={key:1,class:"kb-product-list__no-results"},rxe={class:"kb-product-list__no-results-summary"},axe=["href"],ixe={class:"kb-product-list__more-results"},lxe={key:0,class:"kb-product-list__more-results__text"},sxe={key:3,class:"kb-spinner-overlay"},cxe={products:"PRODUCT_LIST_SEARCH",productsSearch:"PRODUCT_SEARCH",materials:"PRODUCT_LIST_SEARCH",materialsSearch:"PRODUCT_SEARCH"},uxe={products:"FRIVILLIG_PRODUCT_LIST_SEARCH",productsSearch:"FRIVILLIG_PRODUCT_SEARCH",materials:"FRIVILLIG_PRODUCT_LIST_SEARCH",materialsSearch:"FRIVILLIG_PRODUCT_SEARCH"};const dxe={name:"ProductList",components:{SortDropdown:m1,SpotCardGrid:N1,ProductCard:pue,MaterialCard:F7,NoSearchResults:D8},props:{guid:{type:String,required:!0},type:{type:String,required:!1,default:"products"},firstPageSize:{type:Number,required:!1},showMorePageSize:{type:Number,required:!1},avoidSetQueryInUrl:{type:Boolean,required:!1,default:!1},hideNoResults:{type:Boolean,required:!1,default:!1},webshopContext:{type:String,required:!1,default:"webshop"}},setup:function(e){var t,n=Af(),o=bl(function(){var t;return null!==(t=n.state.search.results[e.guid])&&void 0!==t?t:[]}),r=bl(function(){return o.value.filter(function(e){return e.isSpotC
2ard}).length}),a=bl(function(){var t;return null!==(t=n.state.search.scoped_total[e.guid]-r.value)&&void 0!==t?t:0}),i=bl(function(){if("products"===u.gridType){var e=0;for(var t in o.value)o.value.hasOwnProperty(t)&&(e+=o.value[t].entries.length);return e}return o.value.length-r.value}),l=bl(function(){return n.state.search.search_inprogress[e.guid]}),s=function(t){return n.getters["labels/getLabel"]({labelCollection:null!==(o={materialsSearch:"webshopSearchMaterials",productsSearch:"webshopSearchProducts",products:"productList",materials:"productList"}[e.type])&&void 0!==o?o:console.error("search boolean or type missing in order to determine labelCollection"),labelKey:t});var o};Dr(function(){e.avoidSetQueryInUrl&&n.commit("search/set_replaceQueryInUrl",!1),function(e,t){var n,o,r,a,i;t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.firstPageSize,showMorePageSize:e.showMorePageSize,url:{POSTMETHOD:"POST",PUTMETHOD:"PUT",DELETEMETHOD:"DELETE",PATCHMETHOD:"PATCH",ENVIRONMENT:"PRODUCTION",GETMETHOD:"GET",GENERAL_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",EVENT_SEARCH:"da-DK/api/[pageId]/activityApi/search/[guid]",COUNSELLING_SEARCH:"da-DK/api/counsellingCenterApi/search/[guid]",PATIENT_ASSOCIATIONS_SEARCH:"da-DK/api/patientAssociationsApi/search/[guid]",DOCUMENT_LIST_SEARCH:"da-DK/api/[pageId]/searchApi/search/[guid]",AUTOCOMPLETE:"da-DK/api/searchApi/autocomplete",DICTIONARY_BASE_URL:"da-DK/api/dictionary/word",EVENTSIGNUP:"/api/activities/signup",FUNDRAISING_SEARCH:"da-DK/api/personalFundraising/search/[guid]",DONATION_SEARCH:"da-DK/api/personalFundraising/search/[guid]/donations",GALLERY_SEARCH:"",CREATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPDATE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",DELETE_PERSONALFUNDRAISING:"da-DK/api/personalFundraising/[id]",UPLOAD_FUNDRAISEIMAGES:"da-DK/api/personalFundraising/[id]/image",SUBMIT_DONATION:"da-DK/api/[pageId]/fundraisingCampaignDonations",SUBMIT_PERSONAL_DONATION:"da-DK/api/personalFundraising/[guid]/donations",SUBMIT_PERSONAL_MOBILEPAY_DONATION:"da-DK/api/personalFundraising/[guid]/donations/mobilepay",DISCARDFUNDRAISEIMAGE:"/api/discard-fundraise-image.json",GET_PURCHASE_DATA:"da-DK/api/tracking/purchaseeventdata",PROJECTS_SEARCH:"da-DK/api/[pageId]/projectApi/search/[guid]",GET_USERPROFILE_FUNDRAISING_CAMPAIGNS:"da-DK/api/personalFundraising/search/userprofile/[userProfileId]",GET_PERSONAL_FUNDRAISING_DASHBOARD:"da-DK/api/personalFundraising/dashboard/[userProfileId]",GET_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",UPDATE_USERPROFILE:"da-DK/api/userProfile/[userProfileId]",GET_DONATIONS:"da-dk/api/fundraisingDonations/[campaignAreaId]",GET_RELAY_LIST:"api/stafetter/[pageId]",GET_STAFET_PARTICIPANTS:"api/hold/[teamId]/deltagere",GET_STAFET_TEAM_LIST:"api/holdList/[pageId]/[stafetId]",SUBMIT_STAFET_CREATE_HOLD:"da-DK/api/[pageId]/hold/?stafetKode=[stafetKode]&previousHoldkode=[previousHoldkode]",SUBMIT_STAFET_EDIT_HOLD:"da-DK/api/[pageId]/hold/[holdKode]",SUBMIT_STAFET_DONATION:"da-DK/api/[pageId]/sfl/donation",SUBMIT_STAFET_STOT_LYS_DONATION:"da-DK/api/[pageId]/sfl/lyspose",SUBMIT_STAFET_DELTAG_PAA_HOLD:"da-DK/api/[pageId]/sfl/deltager",SUBMIT_STAFET_DELTAG_SOM_FIGHTER:"da-DK/api/[pageId]/sfl/fighter",SUBMIT_STAFET_ADD_DELTAGERE:"da-DK/api/[pageId]/sfl/add-deltagere",GET_STAFET_TEAM_LIGHTS:"api/hold/[holdKode]/lysposer?skip=[skip]&take=[take]",GET_STAFET_TEAM_DONATIONS:"api/hold/[holdKode]/donationer",GET_STAFET_TEAM_DONATIONS_PAGINATED:"api/hold/[holdKode]/donationerPaginated?offsetDonationer=[offsetDonationer]&offsetAdmissions=[offsetAdmissions]&limit=[limit]",GET_STAFET_TEAM_PARTICIPANT_DETAILS:"api/hold/[holdKode]/deltagere",GET_PREVIOUS_TEAMS_LIST:"/api/hold-list/profile/previous-hold?newStafetkode=[newStafetkode]",GET_PROFILE_TEAMS_LIST:"api/hold-list/profile/hold/[pageId]",SUBMIT_STAFET_PROFILE_CREATE:"da-DK/api/sfl/profile/create",SUBMIT_STAFET_PROFILE_UPDATED:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_PROFILE_DELETE:"da-DK/api/[pageId]/sfl/profile",SUBMIT_STAFET_ROUND_COUNTER:"api/[pageId]/hold/[holdKode]/runderegistrering",SUBMIT_STAFET_SEND_EMAIL:"api/sfl/mailudsendelse",SUBMIT_STAFET_RESEND_EMAIL:"api/sfl/mailudsendelse/resend",STAFET_GET_MAILUDSENDELSE_ATTACHMENT:"api/sfl/mailudsendelse/attachment/[attachmentId]",STAFET_GET_PROFILE_HOL
2DKAPTAJN_HOLD:"api/hold-list/profile/[userProfileId]/holdkaptajn-hold",STAFET_GET_MAILUDSENDELSE_NEW_RECIPIENTS_COUNT:"api/sfl/mailudsendelse/[mailudsendelseId]/new-recipients-count",COMMUNITY_CHAT_SEARCH_USERS:"api/community/chat/users/search?p=[query]&take=[take]",COMMUNITY_GET_USER_CHATS:"api/community/user/[userId]/chats",COMMUNITY_GET_CHAT:"api/community/chat/[chatId]",COMMUNITY_CREATE_CHAT:"api/community/chat/create",COMMUNITY_FIND_CHAT_WITH_USER:"api/community/chat/find-with-user",COMMUNITY_GET_CHAT_MEMBER_PROFILE:"api/community/chat/member-profile",COMMUNITY_DELETE_CHAT:"api/community/chat/[chatId]/delete",COMMUNITY_CREATE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/create",COMMUNITY_EDIT_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/edit",COMMUNITY_DELETE_DIRECT_MESSAGE:"api/community/chat/[chatId]/message/[commentId]/delete",COMMUNITY_CREATE_COMMENT:"api/community/post/[postId]/comment/create",COMMUNITY_CREATE_SUBCOMMENT:"api/community/comment/[commentId]/subcomment/create",COMMUNITY_EDIT_COMMENT:"api/community/comment/[commentId]/edit",COMMUNITY_DELETE_COMMENT:"api/community/comment/[commentId]/delete",COMMUNITY_GET_NOTIFICATIONS:"api/community/notifications",COMMUNITY_GET_POSTS:"api/community/posts",COMMUNITY_CREATE_POST:"api/community/post/[postId]/create",COMMUNITY_EDIT_POST:"api/community/post/[postId]/edit",COMMUNITY_DELETE_POST:"api/community/post/[postId]/delete",COMMUNITY_SAVE_POST:"api/community/post/[postId]/save",COMMUNITY_GET_POST_LATEST_COMMENT:"api/community/post/[postId]/latest-comment",COMMUNITY_GET_POST_STATISTICS:"api/community/post/[postId]/statistics",COMMUNITY_GET_POST_COMMENTS:"api/community/post/[postId]/comments?pageId=[pageId]",COMMUNITY_GET_USER_GROUPS:"api/community/user/groups?pageId=[pageId]",COMMUNITY_LEAVE_GROUP:"api/community/user/groups/[groupId]/leave",COMMUNITY_GET_USER_POSTS:"api/community/user/posts",COMMUNITY_GET_USER_SAVED_POSTS:"api/community/user/posts/saved",GET_GROUP_SEARCH_RESULT:"da-DK/api/groupSearch/search/[pageId]/[guid]",SUBMIT_CREATE_GALLERY:"da-DK/api/createGallery/[id]",SUBMIT_EDIT_GALLERY:"da-DK/api/editGallery/[id]",FORUM_MEMBER_DATA:"da-DK/api/member-data/[id]",FORUM_MEMBER_LIST_DATA:"da-DK/api/member-list-data/[groupid]",SUBMIT_FORUM_MEMBER_APPLICATION:"da-DK/api/forumMemberApplication/[id]/[groupid]",FORUM_SUBMIT_EDIT_PROFILE:"da-DK/api/saveProfile",SUBMIT_FORUM_PROFILE_PICTURE:"da-DK/api/submitForumProfilePicture/[id]",FORUM_PROFILE_PICTURE:"da-DK/api/forumProfilePicture/[id]",GET_GRUPPEADGANGSANMODNINGER:"api/gruppeadgangsanmodninger",APPROVE_NOTIFICATION:"api/notifications/[id]/approve",REJECT_NOTIFICATION:"api/notifications/[id]/reject",APPROVE_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/approve",REJECT_GRUPPEADGANGSANMODNING:"api/gruppeadgangsanmodninger/[id]/reject",SUBMIT_CREATE_FORUM_PROFILE:"da-DK/api/cancerforum/profile/create",DELETE_CANCER_PROFILE:"da-DK/api/deleteForumProfile/[id]",DELETE_CANCER_PROFILE_AND_DATA:"da-DK/api/deleteForumProfileAndData/[id]",GET_THEME_STATISTICS:"da-DK/api/theme/[themeId]/statistics",GET_GROUP_STATISTICS:"da-DK/api/group/[groupId]/statistics",FORUM_JOIN_GROUP:"da-DK/api/join-open-group-redirect/[groupId]",CANCERFORUM_SEARCH:"da-DK/api/[pageId]/cancerforum/search",FRIVILLIGE_GROUPS_SEARCH:"api/frivillig/[pageId]/groups",FRIVILLIGE_GROUPS_HOVEDGRUPPE_SEARCH:"api/frivillig/[pageId]/hovedgruppe/[hovedgruppekode]/groups",FRIVILLIGE_MEMBER_LIST_DATA:"da-DK/api/getMemberListData/[group_id]",FRIVILLIGE_MEMBER_DATA:"da-DK/api/getMemberData/[id]",FRIVILLIGE_MEMBER_REQUEST_ROLES_DATA:"da-DK/api/getMemberRequestRolesData/[id]",FRIVILLIGE_MEMBER_REMOVE:"api/frivillig/groups/[gruppeKode]/medlemmer/[member_id]",FRIVILLIGE_FOLDER_DROPDOWN_OPTIONS:"api/frivillig/valid-move-options",GET_FILES_LIST:"api/frivillig/[pageId]/[gruppeKode]/dokumenter",SUBMIT_CREATE_NEW_FILE:"api/frivillig/dokumenter/template",SUBMIT_UPLOAD_NEW_FILE:"api/frivillig/dokumenter",SUBMIT_MOVE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_EDIT_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_DELETE_FILE:"api/frivillig/dokumenter/[dokumentKode]",SUBMIT_CREATE_FOL
2DER:"api/frivillig/mapper",SUBMIT_EDIT_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_MOVE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_DELETE_FOLDER:"api/frivillig/mapper/[mappeKode]",SUBMIT_CONFIRM_DELETE_PROFILE:"da-DK/api/submitConfirmDeleteProfile/[group_id]/[member_id]",SUBMIT_CONFIRM_DELETE_MEMBER:"da-DK/api/submitConfirmDeleteMember/[group_id]/[member_id]",ORDRE_OVERVIEW:"da-DK/api/ordreOverview/[id]",CREATE_EVENT:"da-DK/api/createEvent",FRIVILLIGE_GROUP_EVENTS:"api/frivillig/[pageId]/groups/[groupId]/events",EDIT_EVENT:"da-DK/api/editEvent/[id]",CALENDAR_OVERLAY:"da-DK/api/calendarOverlay",EDIT_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil",CREATE_FRIVILLIG_PROFILE:"da-DK/api/frivillig/[pageId]/profil/create",GET_FRIVILLIGPROFIL_CARD_DATA:"da-DK/api/frivillig/[pageId]/profil/[id]/frivilligprofilCard",FRIVILLIGE_GROUP_EVENT:"api/frivillig/[pageId]/groupEvents/[eventId]",FRIVILLIG_PRODUCT_SEARCH:"da-DK/api/frivillig/[pageId]/productSearchApi/searchWithRoleInformation/[guid]",FRIVILLIG_PRODUCT_LIST_SEARCH:"da-DK/api/frivillig/[pageId]/productListSearchApi/searchWithRoleInformation/[guid]",FRIVILLIGE_GROUP_EVENT_EDIT:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIGE_GROUP_EVENT_GET:"api/frivillig/[pageId]/groups/[groupId]/events/[eventId]",FRIVILLIG_GROUP_MEDLEMMER_GET:"api/frivillig/[pageId]/groups/[groupId]/medlemmer",FRIVILLIGE_WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/frivillig/webshop/${pageId}/checkout/placeorder",FRIVILLIGPROFIL_ROLLER_GET:"da-DK/api/frivillig/profil/roller/[aktivitetsId]",FRIVILLIGPROFIL_GRUPPER_GET:"da-DK/api/frivillig/profil/grupper/[aktivitetsId]",DELETE_FRIVILLIGPROFIL:"da-DK/api/frivillig/[pageId]/profil/[guid]",FRIVILLIGPROFIL_AKTIVITETER_GET:"da-DK/api/frivillig/profil/aktiviteter",FRIVILLIGPROFIL_PICTURE_GET:"api/frivillig/profil/image/?fpid=[id]",SUBMIT_GROUP_ACCESS_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning",DELETE_ROLE_REQUEST:"da-DK/api/frivillig/profil/gruppeanmodning/[id]",SUBMIT_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling",DELETE_ROLE_ASSIGNMENT:"da-DK/api/frivillig/profil/rolletildeling/[id]",FRIVILLIGE_JOIN_GROUP:"api/frivillig/groups/[gruppeKode]/join",SUBMIT_FRIVILLIG_PROFILE_PICTURE:"api/frivillig/profil/image",PROFILE_HAS_FRIVILLIG_ORDERS:"api/frivillig/profil/[userProfileId]/has-frivillig-orders",FRIVILLIGJOB_CREATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_UPDATE:"api/frivillig/frivilligjob",FRIVILLIGJOB_IMAGE_UPDATE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_IMAGE_GET:"api/frivillig/frivilligjob/[frivilligjobId]/image",FRIVILLIGJOB_SEARCH:"api/frivillig/frivilligjob/search",FRIVILLIGJOB_DELETE:"api/frivillig/frivilligjob/[frivilligjobId]",FRIVILLIGJOB_GRUPPEEMNER_GET:"api/frivillig/frivilligjob/[frivilligjobId]/gruppeemner",LOTTERY_GET_RESULT:"api/lottery/round/[roundNumber]/ticket/[lotteryTicketId]",PRODUCT_RECOMMENDATIONS:"da-DK/api/webshop/product/[productSku]/recommendations?take=[take]",PRODUCT_SEARCH:"da-DK/api/productSearchApi/search/[guid]",PRODUCT_LIST_SEARCH:"da-DK/api/productListSearchApi/search/[guid]",WEBSHOP_BASKET:"da-DK/api/webshop/${pageId}/cart/",WEBSHOP_BASKET_LINE:"da-DK/api/webshop/${pageId}/cart/lines",WEBSHOP_BASKET_SHIPPING:"da-DK/api/webshop/${pageId}/cart/shipping",WEBSHOP_SERVICEPOINTS:"da-DK/api/webshop/delivery/servicepoints",WEBSHOP_CHECKOUT_PLACEORDER:"da-DK/api/webshop/${pageId}/checkout/placeorder",MITID_LOGOUT:"api/mitid/logout",SOURCE_REFERENCES:"da-DK/api/source/[sourceId]/references?skip=[skip]&take=[take]"}[(o=e.type,r=e.webshopContext,"frivilligwebshop"===r?null!==(i=uxe[o])&&void 0!==i?i:"FRIVILLIG_PRODUCT_SEARCH":null!==(a=cxe[o])&&void 0!==a?a:"PRODUCT_SEARCH")]});var l=new URLSearchParams(document.location.search).get("q"),s=new URLSearchParams(document.location.search).get("skip"),c=null!==(n=new URLSearchParams(document.location.search).get("take"))&&void 0!==n?n:e.take;t.dispatch("search/performSearch",{guid:e.guid,query:l,skip:s,take:c})}(e,n)});var c=bl(function(){return n.getters["search/canShowMore"](e.guid)}),u=null!==(t={products:{card:"ProductCard",gridType:"3col"},productsSearch:{card:"ProductCard",gridType:"3col"},materials:{card:"MaterialCard",gridType:"4col"},materialsSearch:{card:"MaterialCard",gridType:"4col"}}[e.type])&&void 0!==t?t:{card:"ProductCard"},d=bl(function(){return(u.gridType?u.gridType?"kb-product-list__results--grid-"+u.gridType:"":null)||""}),p=bl(function(){return s("resultCountTitle").replace("{}",a.value)});return{displayProperties:u,results:o,resultCount:i,totalCountLabel:p,getLabel:s,getMoreResults:function(){n.dispatch("search/performMoreSearch",{guid:e.guid})},showSpinner:l,totalCount:a,canShowMore:c,sortingHandler:function(t){n.dispatch("search/performSearch",{guid:e.guid,sorting:t})},displayModifications:d}}},pxe=dxe,fxe=(0,Hb.A)(pxe,[["render",function(e,t,n,o,r,a){var i,l=qr("SpotCardGrid");return Ai(),Si(gi,null,[zi(" hide entire component if hideNoResults is set and there are no results "),e.hideNoResults&&!e.resultCount?(Ai(),Si(gi,{key:0},[],64)):(Ai(),Si("section",Qke,[e.results.length&&!e.displayProperties.hideTotalCount?(Ai(),Si(gi,{key:0},[Mi("div",{class:Y(["kb-product-list__meta-top-container",{"kb-product-list__meta-top-container--hide":"productsSearch"===e.type||"materialsSearch"===e.type}]),"aria-live":"polite","aria-atomic":"true"},[e.displayProperties.hideTotalCount?zi("v-if",!0):(Ai(),Si("div",exe,fe(e.totalCountLabel),
21)),Mi("div",txe,fe(e.getLabel("listHeader")),1)],2),Mi("div",{class:Y(["kb-product-list__meta-top-container kb-product-list__meta-top-container--search",{"kb-product-list__meta-top-container--hide":"products"===e.type||"materials"===e.type}]),"aria-live":"polite","aria-atomic":"true"},[Mi("h3",null,[Fi(fe(e.getLabel("resultTypeTitle"))+" ",1),e.displayProperties.hideTotalCount?zi("v-if",!0):(Ai(),Si("span",nxe,fe(e.totalCountLabel),1))])],2)],64)):zi("v-if",!0),e.resultCount||e.showSpinner||e.hideNoResults?(Ai(),Si("ul",{key:2,class:Y(["kb-product-list__results kb-product-list__results--grid",e.displayModifications])},[(Ai(!0),Si(gi,null,Yr(e.results,function(t,n){return Ai(),Si("li",{key:n},[t.isSpotCard?(Ai(),Ti(l,{key:0,spotCardData:t},null,8,["spotCardData"])):(Ai(),Ti(Kr(e.displayProperties.card),{key:1,data:t,displayProperties:e.displayProperties,"list-name":"kb-product-list"},null,8,["data","displayProperties"]))])}),128))],2)):(Ai(),Si("div",oxe,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",rxe,fe(e.getLabel("noResultDesc")),1),Mi("a",{href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,axe)])),Mi("div",ixe,[e.resultCount?(Ai(),Si("span",lxe,"Viser "+fe(e.resultCount)+" ud af "+fe(e.totalCount)+" "+fe(e.getLabel("resultTypeTitle")),1)):zi("v-if",!0),e.canShowMore?(Ai(),Si("button",{key:1,onClick:t[0]||(t[0]=function(){return e.getMoreResults&&e.getMoreResults.apply(e,arguments)}),class:"kb-button kb-button--full-color"},fe(e.getLabel("showMoreButtonText")),1)):zi("v-if",!0)]),e.showSpinner?(Ai(),Si("div",sxe,(i=t[1]||(t[1]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return Xke(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Xke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xke(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)]))],2112)}]]);var mxe=".kb-component--product-list",gxe=document.querySelectorAll(mxe),hxe=document.querySelector(".kb-component--profile-overlay");const bxe={name:"ProfileSettingsHero",props:{userData:{type:Object,required:!0}},setup:function(e){return{name:bl(function(){return e.userData.firstname&&e.userData.lastname?"".concat(e.userData.firstname," ").concat(e.userData.lastname):null}),addressCombined:bl(function(){return e.userData.address&&e.userData.postalCode&&e.userData.city?"".concat(e.userData.address,", ").concat(e.userData.postalCode," ").concat(e.userData.city):null})}}};var vxe={class:"kb-project-card"},yxe=["href"],_xe={class:"kb-project-card__content-wrapper"},Axe=["innerHTML"],kxe={class:"kb-project-card__icon-text"},xxe={class:"kb-project-card__label-text"},wxe={class:"kb-project-card__texts-wrapper"},Cxe={class:"kb-project-card__title"},Exe={class:"kb-project-card__description"},Sxe={class:"kb-project-card__bottom-content"},Txe={key:0,class:"kb-project-card__funding-amount"},Ixe={key:1,class:"kb-project-card__funding-status-wrapper"},Bxe={class:"kb-project-card__funding-status-text"},Oxe={key:2,class:"kb-project-card__tags"};const Lxe={name:"ProjectCard",props:{result:{type:Object,required:!0}},setup:function(){}},Dxe=(0,Hb.A)(Lxe,[["render",function(e,t,n,o,r,a){var i,l,s;return Ai(),Si("article",vxe,[Mi("a",{href:e.result.url},[Mi("div",_xe,[null!==(i=e.result)&&void 0!==i&&null!==(i=i.category)&&void 0!==i&&i.svgIcon?(Ai(),Si("div",{key:0,class:Y(["kb-project-card__icon-wrapper",e.result.category.colorTheme?e.result.category.colorTheme:""])},[Mi("div",{class:"kb-project-card__icon-circle",innerHTML:e.result.category.svgIcon},null,8,Axe),Mi("p",kxe,fe(e.result.category.title),1)],2)):zi("v-if",!0),null!==e.result.label?(Ai(),Si("div",{key:1,class:Y(["kb-project-card__label-wrapper",e.result.label.colorTheme?e.result.label.colorTheme:""])}
2,[Mi("p",xxe,fe(e.result.label.title),1)],2)):zi("v-if",!0),Mi("div",wxe,[Mi("h2",Cxe,fe(e.result.title),1),Mi("p",Exe,fe(e.result.description),1)]),Mi("div",Sxe,[!e.result.fundingAmount||null!==(l=e.result)&&void 0!==l&&l.statusText?zi("v-if",!0):(Ai(),Si("p",Txe,fe(e.result.fundingAmount.formattedString),1)),!e.result.fundingAmount&&null!==(s=e.result)&&void 0!==s&&s.statusText?(Ai(),Si("div",Ixe,[Mi("p",Bxe,fe(e.result.statusText),1)])):zi("v-if",!0),e.result.tags?(Ai(),Si("div",Oxe,[(Ai(!0),Si(gi,null,Yr(e.result.tags,function(e,t){return Ai(),Si("div",{key:t,index:"index"},fe(e.name),1)}),128))])):zi("v-if",!0)])])],8,yxe)])}]]);function Mxe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Nxe={class:"kb-projects-list"},Pxe={class:"kb-projects-list__results-number"},Rxe={key:2,class:"kb-projects-list__no-results"},Fxe={class:"kb-projects-list__no-results-summary"},Vxe=["href"],zxe={class:"kb-projects-list__results kb-projects-list__results--grid-4col"},Uxe={key:0},jxe={key:1},Hxe={class:"kb-projects-list__more-results"},qxe={key:0,class:"kb-projects-list__more-results__text"},Gxe={key:3,class:"kb-spinner-overlay"},Kxe={key:0,class:"kb-search-filtered-tags"},Zxe={"aria-label":"Valgte filtre",class:"kb-general-search__tags kb-general-search__active-facets"},Wxe=["aria-label","onClick"];const $xe={name:"SearchFilteredTags",props:{guids:{type:Array,required:!0}},setup:function(e){var t=Af(),n=bl(function(){var n;return null!==(n=t.getters["search/selectedTags"](e.guids[0]))&&void 0!==n?n:[]}),o=bl(function(){return t.state.search.queries[e.guids[0]]});return{selectedTags:n,clearFilterOnTag:function(n){e.guids.forEach(function(e){t.dispatch("search/performSearch",{guid:e,query:o.value,facet:n})})}}}},Yxe=$xe,Jxe=(0,Hb.A)(Yxe,[["render",function(e,t,n,o,r,a){return e.selectedTags&&e.selectedTags.length>0?(Ai(),Si("article",Kxe,[Mi("ul",Zxe,[(Ai(!0),Si(gi,null,Yr(e.selectedTags,function(n){return Ai(),Si("li",{key:n.facetName},[Mi("button",{"aria-label":"Fjern filtrering på ".concat(n.facetName),class:"kb-general-search__tag",onClick:function(t){return e.clearFilterOnTag(n)}},[Fi(fe(n.facetName)+" ",1),t[0]||(t[0]=Mi("svg",{role:"presentation",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("g",{"clip-path":"url(#clip0_489_1707)"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.29293 3.89701L0.146484 7.04346L0.853591 7.75056L4.00004 4.60412L7.14648 7.75056L7.85359 7.04346L4.70714 3.89701L7.85359 0.750564L7.14648 0.043457L4.00004 3.1899L0.853591 0.043457L0.146484 0.750564L3.29293 3.89701Z",fill:"#3C3C3C"})]),Mi("defs",null,[Mi("clipPath",{id:"clip0_489_1707"},[Mi("rect",{width:"8",height:"8",fill:"white"})])])],-1))],8,Wxe)])}),128))])])):zi("v-if",!0)}]]),Xxe={name:"ProjectsList",components:{ProjectCard:Dxe,SearchFilteredTags:Jxe,SpotCardGrid:N1},props:{guid:{type:String,required:!0},firstPageSize:{type:Number,required:!1},showMorePageSize:{type:Number,required:!1},hideNoResults:{type:Boolean,required:!1,default:!1},hideTotalCount:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=Af();Dr(function(){c()});var n=bl(function(){var n;return xm(null!==(n=t.state.search.results[e.guid])&&void 0!==n?n:[])}),o=bl(function(){return n.value.filter(function(e){return e.isSpotCard}).length}),r=bl(function(){return t.state.search.scoped_total[e.guid]-o.value});bo(r,function(n){t.commit("search/set_display_total",{guid:e.guid,data:n})},{immediate:!0});var a=bl(function(){return n.value.length-o.value}),i=bl(function(){var n;return null!==(n=t.getters["search/selectedTags"](e.guid))&&void 0!==n?n:[]}),l=bl(function(){return t.getters["search/canShowMore"](e.guid)}),s=bl(function(){return t.state.search.search_inprogress[e.guid]}),c=function(){var n;t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.firstPageSize,showMorePageSize:e.showMorePageSize,url:"da-DK/api/[pageId]/projectApi/search/[guid]"});var o=new URLSearchParams(document.location.search).get("q"),r=new URLSearchParams(document.location.search).get("skip"),a=null!==(n=new URLSearchParams(document.location.search).get("take"))&&void 0!==n?n:e.firstPageSize;t.dispatch("search/performZeroSearch",{guid:e.guid}
2),t.dispatch("search/performSearch",{guid:e.guid,query:o,skip:r,take:a})};return{results:n,tags:i,totalCount:r,showSpinner:s,resultCount:a,canShowMore:l,getMoreResults:function(){t.dispatch("search/performMoreSearch",{guid:e.guid})},getLabel:function(e,n){return t.getters["labels/getLabel"]({labelCollection:"ProjectsList",labelKey:e,params:n})}}}},Qxe=Xxe,ewe=(0,Hb.A)(Qxe,[["render",function(e,t,n,o,r,a){var i,l,s,c=qr("SearchFilteredTags"),u=qr("SpotCardGrid"),d=qr("ProjectCard");return Ai(),Si("section",Nxe,[e.results&&(null===(i=e.results)||void 0===i?void 0:i.length)?(Ai(),Si(gi,{key:0},[e.hideTotalCount?zi("v-if",!0):(Ai(),Si("div",{key:0,class:Y(["kb-projects-list__meta-top-container",{"kb-projects-list__meta-top-container--hide":e.hideTotalCount}]),"aria-live":"polite"},[Mi("p",Pxe,[Mi("span",null,fe(e.totalCount),1),Fi(" "+fe(e.getLabel("resultTypeTitle")),1)])],2))],64)):zi("v-if",!0),(null!==(l=e.tags)&&void 0!==l?l:e.tags.length>0)?(Ai(),Ti(c,{key:1,guids:[e.guid]},null,8,["guids"])):zi("v-if",!0),e.resultCount||e.showSpinner||e.hideNoResults?zi("v-if",!0):(Ai(),Si("div",Rxe,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",Fxe,fe(e.getLabel("noResultDesc")),1),Mi("a",{href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"}
2,fe(e.getLabel("noResultButtonText")),9,Vxe)])),Mi("ul",zxe,[(Ai(!0),Si(gi,null,Yr(e.results,function(e,t){return Ai(),Si(gi,{key:t},[e.isSpotCard?(Ai(),Si("li",Uxe,[Ni(u,{spotCardData:e},null,8,["spotCardData"])])):(Ai(),Si("li",jxe,[Ni(d,{result:e},null,8,["result"])]))],64)}),128))]),Mi("div",Hxe,[e.resultCount?(Ai(),Si("span",qxe,fe(e.getLabel("resultOutForTitle",[e.resultCount,e.totalCount])),1)):zi("v-if",!0),e.canShowMore?(Ai(),Si("button",{key:1,onClick:t[0]||(t[0]=function(){return e.getMoreResults&&e.getMoreResults.apply(e,arguments)}),class:"kb-button kb-button--full-color"},fe(e.getLabel("showMoreButtonText")),1)):zi("v-if",!0)]),e.showSpinner?(Ai(),Si("div",Gxe,(s=t[1]||(t[1]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return Mxe(e)}(s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return Mxe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mxe(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])}]]);var twe={class:"kb-receipt-content"},nwe={class:"kb-receipt-content__main-content-wrapper"},owe={class:"kb-receipt-content__table"},rwe={class:"kb-receipt-content__table-head"},awe={role:"presentation"},iwe={class:"kb-receipt-content__table-head-title",colspan:"2"},lwe={class:"kb-receipt-content__table-head-title--result kb-receipt-content__table-head-title--margin-bottom-05-rem"},swe={role:"presentation"},cwe={class:"kb-receipt-content__table-head-title",colspan:"2"},uwe={class:"kb-receipt-content__table-head-title--result"},dwe={class:"kb-receipt-content__table-head--three-col"},pwe={class:"kb-receipt-content__table-head-title",colspan:"1"},fwe={class:"kb-receipt-content__table-head-title kb-receipt-content__table-head-title--text-align-center",colspan:"1"},mwe={class:"kb-receipt-content__table-head-title kb-receipt-content__table-head-title--text-align-right",colspan:"1"},gwe={class:"kb-receipt-content__table-body"},hwe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--product-name",colspan:"1"},bwe={key:0},vwe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--text-align-center",colspan:"1"},ywe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--text-align-right",colspan:"1"},_we={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--product-name",colspan:"1"},Awe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--text-align-right",colspan:"1"},kwe={class:"kb-receipt-content__table-body--row-total"},xwe={class:"kb-receipt-content__table-body-data",colspan:"2"},wwe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--text-align-right",colspan:"2"},Cwe={class:"kb-receipt-content__table-body-data"},Ewe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--pale",colspan:"2"},Swe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--pale kb-receipt-content__table-body-data--text-align-right",colspan:"2"},Twe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--pale",colspan:"2"},Iwe={class:"kb-receipt-content__table-body-data kb-receipt-content__table-body-data--pale kb-receipt-content__table-body-data--text-align-right",colspan:"2"},Bwe={class:"kb-basket-aside__button-wrapper",colspan:"4"},Owe={class:"kb-receipt-content__seller-address"},Lwe={class:"kb-receipt-content__seller-address-title"};const Dwe={name:"ReceiptContent",props:{receiptResults:{type:Object,required:!0}},setup:function(){var e=Af();return Kt("ReceiptPage.html"),Dr(function(){sessionStorage.removeItem("checkoutState")}),{getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"receiptContent",labelKey:t,allowEmpty:!0})},print:function(){return window.print()}}}},Mwe=Dwe,Nwe=(0,Hb.A)(Mwe,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",twe,[Mi("div",nwe,[Mi("table",owe,[Mi("thead",rwe,[Mi("tr",awe,[Mi("th",iwe,[Fi(fe(e.getLabel("orderDateTitle"))+" ",1),Mi("span",lwe,fe(e.receiptResults.orderNumber),1)])]),Mi("tr",swe,[Mi("th",cwe,[Fi(fe(e.getLabel("orderNumberTitle"))+" ",1),Mi("span",uwe,fe(e.receiptResults.orderDate),1)])])]),Mi("thead",dwe,[Mi("tr",null,[Mi("th",pwe,fe(e.getLabel("orderProductTitle")),1),Mi("th",fwe,fe(e.getLabel("orderAmountTitle")),1),Mi("th",mwe,fe(e.getLabel("orderPriceTitle")),1)])]),Mi("tbody",gwe,[t[2]||(t[2]=Mi("tr",null,[Mi("td",{class:"kb-receipt-content__table-body-data",colspan:"4"},[Mi("div",{class:"kb-receipt-content__table-horizontal-line"})])],-1)),(Ai(!0),Si(gi,null,Yr(e.receiptResults.products,function(t,n){return Ai(),Si("tr",{key:n},[Mi("td",hwe,[Fi(fe(t.productTitle)+" ",1),t.productTitleAdditional?(Ai(),Si(gi,{key:0},[Mi("span",null,fe(t.productTitleAdditional),1),t.isUdlaansvare&&e.getLabel("udlaansvareText")?(Ai(),Si("span",bwe,fe(e.getLabel("udlaansvareText")),1)):zi("v-if",!0)],64)):zi("v-if",!0)]),Mi("td",vwe,fe(t.productQuantity),1),Mi("td",ywe,fe(t.productPrice),1)])}),128)),t[3]||(t[3]=Mi("tr",null,[Mi("td",{class:"kb-receipt-content__table-body-data",colspan:"4"},[Mi("div",{class:"kb-receipt-content__table-horizontal-line"})])],-1)),Mi("tr",null,[Mi("td",_we,[Fi(fe(e.getLabel("deliveryTitle"))+" ",1),Mi("span",null,fe(e.receiptResults.deliveryAddress),1),Fi(" "+fe(e.receiptResults.deliveryType),1)]),t[1]||(t[1]=Mi("td",{class:"kb-receipt-content__table-body-data",colspan:"1"},null,-1)),Mi("td",Awe,fe(e.receiptResults.deliveryPrice),1)]),t[4]||(t[4]=Mi("tr",null,[Mi("td",{class:"kb-receipt-content__table-body-data",colspan:"4"},[Mi("div",{class:"kb-receipt-content__table-horizontal-line kb-receipt-content__table-horizontal-line--bottom"})])],-1)),Mi("tr",kwe,[Mi("td",xwe,fe(e.getLabel("totalTitle")),1),Mi("td",wwe,fe(e.receiptResults.total),1)]),Mi("tr",Cwe,[Mi("td",Ewe,fe(e.getLabel("VATTitle")),1),Mi("td",Swe,fe(e.receiptResults.VAT),1)]),Mi("tr",null,[Mi("td",Twe,fe(e.getLabel("discountTitle")),1),Mi("td",Iwe,fe(e.receiptResults.discount),1)]),Mi("tr",null,[Mi("td",Bwe,[Mi("button",{onClick:t[0]||(t[0]=function(){return e.print&&e.print.apply(e,arguments)}),id:"print_external",class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("printButtonText")),1)])])])])]),Mi("div",Owe,[Mi("p",Lwe,fe(e.getLabel("sellerAddressTitle")),1),Mi("p",null,fe(e.getLabel("sellerAddressName")),1),Mi("p",null,fe(e.getLabel("sellerAddressStreet")),1),Mi("p",null,fe(e.getLabel("sellerAddressCity")),1)])])}]]);function Pwe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Rwe={key:1,class:"kb-relay-list"},Fwe={class:"kb-relay-list__header"},Vwe={class:"kb-relay-list__header__count","aria-live":"polite"},zwe={key:1,class:"kb-relay-list__content"},Uwe=["href"],jwe={class:"kb-relay-list__content__item__link__title"},Hwe={class:"kb-relay-list__content__item__link__description"},qwe={key:2,class:"kb-general-search__more-results"},Gwe={key:0,class:"kb-general-search__more-results__text"},Kwe={key:3,class:"kb-general-search__no-results"},Zwe={class:"kb-general-search__no-results__summary"},Wwe=["href"],$we={key:4,class:"kb-spinner-overlay"};const Ywe={name:"RelayList",components:{SearchFilteredTags:Jxe},props:{guid:{type:String,required:!0},skip:{type:Number,required:!0,default:0},take:{type:Number,required:!0,default:10},hideNoResults:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=Af();Dr(function(){s()});var n=bl(function(){return t.state.search.scoped_total[e.guid]}),o=bl(function(){var n;return xm(null!==(n=t.state.search.results[e.guid])&&void 0!==n?n:[])}
2),r=bl(function(){var n;return null!==(n=t.getters["search/selectedTags"](e.guid))&&void 0!==n?n:[]}),a=bl(function(){return t.state.search.search_inprogress[e.guid]}),i=bl(function(){return o.value.length}),l=function(e,t){var n=dA({labelKey:e,labelCollection:"relayList"});return t&&t.forEach(function(e,t){n=n.replace("{".concat(t,"}"),e)}),n},s=function(){t.commit("search/set_replaceQueryInUrl",!1),t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:"api/stafetter/[pageId]"}),t.dispatch("search/performZeroSearch",{guid:e.guid}),t.dispatch("search/performSearch",{guid:e.guid,query:"",skip:e.skip,take:e.take})};return{tags:r,relays:o,showSpinner:a,resultCount:i,totalAmount:n,getLabel:l,getMoreResults:function(){t.dispatch("search/performMoreSearch",{guid:e.guid})},getRelayDescription:function(e){var t,n,o,r,a,i,s,c,u,d=(n=(t=e).startDate,o=t.endDate,r=new Date(n),a=new Date(o),i=r.getDate(),s=a.getDate(),c=r.toLocaleDateString("da-DK",{month:"long"}),u=a.toLocaleDateString("da-DK",{month:"long"}),i===s?"d. ".concat(i,". ").concat(c):c===u?"d. ".concat(i,". - ").concat(s,". ").concat(c):"d. ".concat(i,". ").concat(c," - ").concat(s,". ").concat(u));return"".concat(l("relayDateText")," ").concat(d,", kl. ").concat(e.activeTimeslot)},isRelayActiveOrUpcoming:function(e){if(e.disableAfviklet)return!0;var t=function(e){return new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Copenhagen"}).format(e)};return t(new Date(e.endDate))>=t(new Date)}}}},Jwe=Ywe,Xwe=(0,Hb.A)(Jwe,[["render",function(e,t,n,o,r,a){var i,l=qr("SearchFilteredTags");return Ai(),Si(gi,null,[zi(" hide entire component if hideNoResults is set and there are no results "),e.hideNoResults&&!e.resultCount?(Ai(),Si(gi,{key:0},[],64)):(Ai(),Si("article",Rwe,[Mi("div",Fwe,[Mi("p",Vwe,fe(e.totalAmount)+" "+fe(e.getLabel("resultCountTitle")),1)]),e.tags.length>0?(Ai(),Ti(l,{key:0,guids:[e.guid]},null,8,["guids"])):zi("v-if",!0),e.relays.length>0?(Ai(),Si("ul",zwe,[(Ai(!0),Si(gi,null,Yr(e.relays,function(n,o){return Ai(),Si("li",{key:o,class:"kb-relay-list__content__item"},[n.seasonStartDate&&new Date(n.seasonStartDate)<=new Date?(Ai(),Si("div",{key:0,class:Y(["kb-relay-list__content__item__status",e.isRelayActiveOrUpcoming(n)?"kb-relay-list__content__item__status--open":"kb-relay-list__content__item__status--afholdt"])},fe(e.isRelayActiveOrUpcoming(n)?e.getLabel("labelAabenTilmelding"):e.getLabel("labelAfholdt")),3)):zi("v-if",!0),Mi("a",{href:n.url,class:"kb-relay-list__content__item__link"},[Mi("h2",jwe,fe(n.name),1),Mi("div",Hwe,fe(e.getRelayDescription(n)),1),t[1]||(t[1]=Mi("div",{class:"kb-relay-list__content__item__link__arrow"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 21 20",role:"presentation"},[Mi("path",{stroke:"#E8001D","stroke-linejoin":"round",d:"m15.21 5 4.528 5-4.528 5"}),Mi("path",{stroke:"#E8001D",d:"M14.683 10H0"})])],-1))],8,Uwe)])}),128))])):zi("v-if",!0),e.relays.length>0?(Ai(),Si("div",qwe,[e.resultCount?(Ai(),Si("span",Gwe,fe(e.getLabel("resultOutForTitle",[e.relays.length,e.totalAmount])),1)):zi("v-if",!0),e.relays.length<e.totalAmount?(Ai(),Si("button",{key:1,onClick:t[0]||(t[0]=function(){return e.getMoreResults&&e.getMoreResults.apply(e,arguments)}),class:"kb-button kb-button--full-color"},fe(e.getLabel("ShowMoreButtonText")),1)):zi("v-if",!0)])):zi("v-if",!0),e.resultCount||e.showSpinner||e.hideNoResults?zi("v-if",!0):(Ai(),Si("div",Kwe,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",Zwe,fe(e.getLabel("noResultDesc")),1),Mi("a",{href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,Wwe)])),e.showSpinner?(Ai(),Si("div",$we,(i=t[2]||(t[2]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return Pwe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Pwe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pwe(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)]))],2112)}]]);var Qwe={class:"kb-request-role kb-optimizely-forms kb-stafet-step kb-stafet-donation-flow__step"},eCe={class:"kb-stafet-step__input-wrapper"},tCe={class:"kb-stafet-step__step-section-title"},nCe={class:"kb-visually-hidden"},oCe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},rCe={class:"kb-visually-hidden"},aCe={key:1,class:"kb-form-input-dropdown kb--js-Group-selector-reset"},iCe={class:"kb-visually-hidden"},lCe={key:0,class:"kb-stafet-step__input-wrapper"},sCe={key:1,class:"kb-stafet-step__input-wrapper"},cCe={key:2,class:"kb-stafet-flow-actions"},uCe={class:"kb-stafet-flow-actions__buttons-left-wrapper"};const dCe={name:"RequestRole",components:{FormInputTextField:mE,FormCheckbox:dB,FormInputDropdown:XB},setup:function(){var e=Af(),t=bl(function(){return e.state.frivilligprofil.aktivitet_list}),n=bl(function(){return e.state.frivilligprofil.rolle_list}),o=bl(function(){return e.state.frivilligprofil.gruppe_list});Lr(function(){e.dispatch("frivilligprofil/fetchAktiviteter")});var r=Kt(!1),a=Kt(""),i=Kt(""),l=Kt(""),s=Kt(!1),c=Kt(""),u=bl(function(){return t.value.map(function(e){return{name:e.name,value:e.id}})}),d=bl(function(){return o.value.map(function(e){return{name:e.name,value:e.kode}})}),p=bl(function(){return n.value.map(function(e){return{name:e.name,value:e.id}})}),f=Kt(tE(c.value));
2return bo(a,function(t,n){e.dispatch("frivilligprofil/fetchRoller",t),e.dispatch("frivilligprofil/fetchGrupper",t)}),{activities:t,roles:n,groups:o,roleActivityId:a,roleId:i,roleGroupId:l,roleGroupCheckbox:s,roleGroupTextField:c,displayError:r,roleGroupTextFieldFilled:f,activitySelectOptions:u,roleSelectOptions:p,groupSelectOptions:d,handleActivitiesSelector:function(e){a.value="",setTimeout(function(){a.value=e.target.value,r.value=!1},25),i.value="",l.value="",s.value=!1,c.value=""},handleRoleSelector:function(e){i.value=e.target.value,r.value=!1,l.value=""},handleGroupSelector:function(e){l.value=e.target.value,r.value=!1,c.value=""},handleGroupCheckbox:function(e){s.value=e.target.checked,r.value=!1,l.value=""},handleGroupTextField:function(e){c.value=e.target.value,l.value="",tE(e.target.value)&&(r.value=!1)},handleSubmitRoleRequest:function(){if(r.value=!0,!a||!i||!l&&!(s.value&&c.value?tE(c.value)&&c.value:void 0))return!1;r.value=!1;var t={aktivitetsId:a.value,rolleId:i.value,gruppekode:l.value,gruppeText:c.value};e.dispatch("frivilligprofil/submitRoleRequest",{body:t})},getLabel:function(t){return e.getters["labels/getLabel"]({labelCollection:"requestRole",labelKey:t})}}}},pCe=dCe,fCe=(0,Hb.A)(pCe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputDropdown"),l=qr("FormCheckbox"),s=qr("FormInputTextField");return Ai(),Si("article",Qwe,[Mi("div",eCe,[Mi("h5",tCe,fe(e.getLabel("requestRoleSectionTitle")),1),Mi("p",nCe,fe(e.getLabel("activitySelectorHelpMessage")),1),Ni(i,{isRequired:"",fieldName:"roleActivity",modelValue:e.roleActivityId,label:e.getLabel("activitySelectorLabel"),placeholder:e.getLabel("activitySelectorPlaceholder"),errorMessageLabel:e.getLabel("activitySelectorError"),selectOptions:e.activitySelectOptions,onChangeCallback:function(t){e.handleActivitiesSelector(t)}},null,8,["modelValue","label","placeholder","errorMessageLabel","selectOptions","onChangeCallback"])]),Mi("div",oCe,[e.roleActivityId?(Ai(),Si(gi,{key:0},[Mi("p",rCe,fe(e.getLabel("roleSelectorHelpMessage")),1),Ni(i,{isRequired:"",fieldName:"role",modelValue:e.roleId,label:e.getLabel("roleSelectorLabel"),placeholder:e.getLabel("roleSelectorPlaceholder"),errorMessageLabel:e.getLabel("roleSelectorError"),selectOptions:e.roleSelectOptions,onChangeCallback:function(t){e.handleRoleSelector(t)}},null,8,["modelValue","label","placeholder","errorMessageLabel","selectOptions","onChangeCallback"])],64)):zi("v-if",!0),e.roleActivityId&&!e.roleGroupCheckbox?(Ai(),Si("div",aCe,[Mi("p",iCe,fe(e.getLabel("groupSelectorHelpMessage")),1),Ni(i,{isRequired:"",fieldName:"roleGroup",modelValue:e.roleGroupId,label:e.getLabel("groupSelectorLabel"),placeholder:e.getLabel("groupSelectorPlaceholder"),errorMessageLabel:e.getLabel("groupSelectorError"),selectOptions:e.groupSelectOptions,onChangeCallback:function(t){e.handleGroupSelector(t)},isValidationError:e.displayError&&!e.roleGroup},null,8,["modelValue","label","placeholder","errorMessageLabel","selectOptions","onChangeCallback","isValidationError"])])):zi("v-if",!0)]),e.roleActivityId?(Ai(),Si("div",lCe,[Ni(l,{fieldName:"roleGroupCheckbox",modelValue:"roleGroupCheckbox",label:e.getLabel("groupCheckboxLabel"),placeholder:e.getLabel("groupCheckboxPlaceholder"),errorMessageLabel:e.getLabel("groupCheckboxError"),onChangeCallback:function(t){e.handleGroupCheckbox(t)}},null,8,["label","placeholder","errorMessageLabel","onChangeCallback"])])):zi("v-if",!0),e.roleGroupCheckbox?(Ai(),Si("div",sCe,[Ni(s,{fieldName:"roleGroup",modelValue:e.roleGroupTextField,label:e.getLabel("groupTextFieldLabel"),placeholder:e.getLabel("groupTextFieldPlaceholder"),errorMessageLabel:e.getLabel("groupTextFieldError"),onChangeCallback:function(t){e.handleGroupTextField(t)},isValidationError:e.displayError&&!e.roleGroupTextFieldFilled&&!e.roleGroup},null,8,["modelValue","label","placeholder","errorMessageLabel","onChangeCallback","isValidationError"])])):zi("v-if",!0),e.roleId?(Ai(),Si("nav",cCe,[Mi("div",uCe,[Mi("button",{class:"kb-button kb-button--full-color-spot",onClick:t[0]||(t[0]=function(){return e.handleSubmitRoleRequest&&e.handleSubmitRoleRequest.apply(e,arguments)})},fe(e.getLabel("submitButtonLabel")),1)])])):zi("v-if",!0)])}]]),mCe=fCe;var gCe={class:"kb-stafet-donation-flow kb-roles-form-content"},hCe={class:"kb-stafet-step kb-optimizely-forms kb-stafet-donation-flow__step"};const bCe={name:"RolesFormContent",components:{RequestRole:mCe,ActiveRolesList:U_},setup:function(){}},vCe=(0,Hb.A)(bCe,[["render",function(e,t,n,o,r,a){var i=qr("ActiveRolesList"),l=qr("RequestRole");return Ai(),Si("article",gCe,[Mi("section",hCe,[Ni(i),t[0]||(t[0]=Mi("hr",{role:"presentation",class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},null,-1)),Ni(l),t[1]||(t[1]=Mi("hr",{role:"presentation",class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},null,-1))])])}]]);function yCe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var _Ce={class:"kb-schema-markup"},ACe={key:0,class:"kb-spinner-container"},kCe={class:"kb-field"},xCe=["for"],wCe=["id","value","disabled"],CCe=["value"],ECe=0;const SCe={name:"SchemaMarkupDropdown",props:{modelValue:{type:[String,Number],default:""},label:{type:String,default:""},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit;return{fieldId:"kb-dropdown-".concat(++ECe),onChange:function(e){return n("update:modelValue",e.target.value)}}}},TCe=SCe,ICe=(0,Hb.A)(TCe,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",kCe,[e.label?(Ai(),Si("label",{key:0,for:e.fieldId,class:"kb-field__label"},fe(e.label),9,xCe)):zi("v-if",!0),Mi("select",{id:e.fieldId,class:"kb-field__input kb-field__select",value:e.modelValue,disabled:e.disabled,onChange:t[0]||(t[0]=function(){return e.onChange&&e.onChange.apply(e,arguments)})},[(Ai(!0),Si(gi,null,Yr(e.options,function(e){return Ai(),Si("option",{key:e.value,value:e.value},fe(e.label),9,CCe)}),128))],40,wCe)])}]]);var BCe={key:0,class:"kb-schema-markup__group"},OCe={class:"kb-schema-markup__heading"},LCe={key:1,class:"kb-schema-markup__group"},DCe={key:0,class:"kb-schema-markup__heading"},MCe={key:2,class:"kb-schema-markup__truncated"},NCe={key:0,class:"kb-schema-markup__truncated-label"},PCe={class:"kb-schema-markup__truncated-value"},RCe={key:4,class:"kb-field kb-field--textarea"},FCe={key:0,class:"kb-field__label"},VCe=["readonly"],zCe=["for"],UCe=["id","value","readonly"],jCe=0;const HCe={name:"SchemaMarkupTextField",props:{modelValue:{type:String,default:""},label:{type:String,default:""},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit;return{fieldId:"kb-text-".concat(++jCe),onInput:function(e){return n("update:modelValue",e.target.value)}}}},qCe=HCe;var GCe=["for"],KCe=["id","value","readonly"],ZCe=0;const WCe={name:"SchemaMarkupNumber",props:{modelValue:{type:[Number,String],default:""},label:{type:String,default:""},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit;return{fieldId:"kb-number-".concat(++ZCe),onInput:function(e){var t=e.target.value;n("update:modelValue",""===t?"":Number(t))}}}},$Ce=WCe;var YCe={class:"kb-checkbox__label"},JCe=["checked","disabled"],XCe={class:"kb-checkbox__text"};const QCe={name:"SchemaMarkupCheckbox",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit;return{onChange:function(e){return n("update:modelValue",e.target.checked)}}}},eEe=QCe;var tEe=["for"],nEe=["id","value","placeholder","readonly"],oEe=0;const rEe={name:"SchemaMarkupDate",props:{modelValue:{type:String,default:""},label:{type:String,default:""},format:{type:String,default:"dd-MM-yyyy"},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit;return{fieldId:"kb-date-".concat(++oEe),onInput:function(e){return n("update:modelValue",e.target.value)}}}},aEe=rEe,iEe={name:"SchemaLeaf",components:{SchemaMarkupTextField:(0,Hb.A)(qCe,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-field",{"kb-field--readonly":e.readonly}])},[e.label?(Ai(),Si("label",{key:0,for:e.fieldId,class:"kb-field__label"},fe(e.label),9,zCe)):zi("v-if",!0),Mi("input",{id:e.fieldId,class:"kb-field__input",type:"text",value:e.modelValue,readonly:e.readonly,onInput:t[0]||(t[0]=function(){return e.onInput&&e.onInput.apply(e,arguments)})},null,40,UCe)],2)}]]),SchemaMarkupNumber:(0,Hb.A)($Ce,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-field",{"kb-field--readonly":e.readonly}])},[e.label?(Ai(),Si("label",{key:0,for:e.fieldId,class:"kb-field__label"},fe(e.label),9,GCe)):zi("v-if",!0),Mi("input",{id:e.fieldId,class:"kb-field__input",type:"number",value:e.modelValue,readonly:e.readonly,onInput:t[0]||(t[0]=function(){return e.onInput&&e.onInput.apply(e,arguments)})},null,40,KCe)],2)}]]),SchemaMarkupCheckbox:(0,Hb.A)(eEe,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-checkbox",{"kb-checkbox--disabled":e.disabled}])},[Mi("label",YCe,[Mi("input",{class:"kb-checkbox__input",type:"checkbox",checked:e.modelValue,disabled:e.disabled,onChange:t[0]||(t[0]=function(){return e.onChange&&e.onChange.apply(e,arguments)})}
2,null,40,JCe),Mi("span",XCe,fe(e.label),1)])],2)}]]),SchemaMarkupDate:(0,Hb.A)(aEe,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-field",{"kb-field--readonly":e.readonly}])},[e.label?(Ai(),Si("label",{key:0,for:e.fieldId,class:"kb-field__label"},fe(e.label),9,tEe)):zi("v-if",!0),Mi("input",{id:e.fieldId,class:"kb-field__input",type:"text",value:e.modelValue,placeholder:e.format,readonly:e.readonly,onInput:t[0]||(t[0]=function(){return e.onInput&&e.onInput.apply(e,arguments)})},null,40,nEe)],2)}]]),SchemaMarkupDropdown:ICe},props:{field:{type:Object,required:!0}}};var lEe={type:"button",class:"kb-button"};const sEe={name:"SchemaMarkupButton",props:{label:{type:String,default:""}}};function cEe(e){return"@type"===e.key?"":"list"===e.control?"".concat(e.label||"elementer"," (").concat(e.items.length,")"):"fieldset"===e.control?e.label||e.meta&&e.meta.type||"â¦":null==e.value?"":String(e.value)}const uEe={name:"SchemaField",components:{SchemaLeaf:(0,Hb.A)(iEe,[["render",function(e,t,n,o,r,a){var i=qr("SchemaMarkupCheckbox"),l=qr("SchemaMarkupNumber"),s=qr("SchemaMarkupDate"),c=qr("SchemaMarkupDropdown"),u=qr("SchemaMarkupTextField");return"checkbox"===e.field.control?(Ai(),Ti(i,{key:0,modelValue:e.field.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.field.value=t}),label:e.field.label,disabled:e.field.readonly},null,8,["modelValue","label","disabled"])):"number"===e.field.control?(Ai(),Ti(l,{key:1,modelValue:e.field.value,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.field.value=t}),label:e.field.label,readonly:e.field.readonly},null,8,["modelValue","label","readonly"])):"date"===e.field.control?(Ai(),Ti(s,{key:2,modelValue:e.field.value,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.field.value=t}),label:e.field.label,format:e.field.format,readonly:e.field.readonly},null,8,["modelValue","label","format","readonly"])):"dropdown"===e.field.control?(Ai(),Ti(c,{key:3,modelValue:e.field.value,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.field.value=t}),label:e.field.label,options:e.field.options,disabled:e.field.readonly},null,8,["modelValue","label","options","disabled"])):"textarea"===e.field.control?(Ai(),Si("div",RCe,[e.field.label?(Ai(),Si("label",FCe,fe(e.field.label),1)):zi("v-if",!0),io(Mi("textarea",{class:"kb-field__input","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.field.value=t}),readonly:e.field.readonly},null,8,VCe),[[Ws,e.field.value]])])):(Ai(),Ti(u,{key:5,modelValue:e.field.value,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.field.value=t}),label:e.field.label,readonly:e.field.readonly},null,8,["modelValue","label","readonly"]))}]]),SchemaMarkupButton:(0,Hb.A)(sEe,[["render",function(e,t,n,o,r,a){return Ai(),Si("button",lEe,[Xr(e.$slots,"default",{},function(){return[Fi(fe(e.label),1)]})])}]])},props:{field:{type:Object,required:!0},depth:{type:Number,default:1}},setup:function(e){return{expanded:bl(function(){return e.depth<2||Boolean(e.field.kind)}),summary:bl(function(){return("list"===(t=e.field).control?t.items:t.fields).map(cEe).filter(Boolean).join("; ");var t}),addItem:function(e){var t=e.items[e.items.length-1]||e.meta&&e.meta.itemTemplate;e.items.push(function(e){if(!e)return{control:"text",key:null,label:"",value:"",readonly:!1,path:""};var t=JSON.parse(JSON.stringify(e)),n=function(e){"fieldset"===e.control?e.fields.forEach(n):"list"===e.control?e.items=[]:"@type"!==e.key&&(e.value="checkbox"!==e.control&&"")};return n(t),t}(t))},removeItem:function(e,t){e.items.splice(t,1)}}}};var dEe={name:"Navn",alternateName:"Alternativt navn",description:"Beskrivelse",disambiguatingDescription:"Præciserende beskrivelse",additionalType:"Yderligere type",identifier:"Identifikator",url:"URL",image:"Billede",sameAs:"Samme som (URL)",keywords:"Nøgleord",mainEntity:"Hovedenhed",mainEntityOfPage:"Hovedindhold pÃ¥ siden",subjectOf:"Omtalt i",headline:"Overskrift",articleBody:"Brødtekst",articleSection:"Artikelsektion",abstract:"Resumé",text:"Tekst",wordCount:"Antal ord",pagination:"Sidetal",pageStart:"Startside",pageEnd:"Slutside",inLanguage:"Sprog",about:"Handler om",audience:"MÃ¥lgruppe",citation:"Kildehenvisning",license:"Licens",isPartOf:"Del af",hasPart:"Indeholder",mainContentOfPage:"Sidens hovedindhold",primaryImageOfPage:"Primært billede",relatedLink:"Relateret link",significantLink:"Væsentligt link",breadcrumb:"Brødkrumme",speakable:"Oplæselige dele",creativeWorkStatus:"Status (indhold)",copyrightHolder:"Rettighedshaver",copyrightYear:"Copyright-Ã¥r",medicalAudience:"Medicinsk mÃ¥lgruppe",aspect:"Aspekt",datePublished:"Udgivelsesdato",dateModified:"Ãndringsdato",dateCreated:"Oprettelsesdato",lastReviewed:"Sidst gennemgÃ¥et",uploadDate:"Uploadet",startDate:"Startdato",endD
2ate:"Slutdato",author:"Forfatter",reviewedBy:"GennemgÃ¥et af",contributor:"Bidragydere",editor:"Redaktør",publisher:"Udgiver",jobTitle:"Jobtitel",address:"Adresse",telephone:"Telefon",email:"E-mail",faxNumber:"Faxnummer",openingHours:"Ã
bningstider",geo:"Geografisk placering",location:"Placering",areaServed:"DækningsomrÃ¥de",department:"Afdeling",availableService:"Tilgængelig ydelse",isAcceptingNewPatients:"Modtager nye patienter",healthPlanNetworkId:"Sundhedsnetværks-id",healthcareReportingData:"Sundhedsrapporteringsdata",logo:"Logo",founder:"Grundlægger",foundingDate:"Grundlæggelsesdato",priceRange:"Prisniveau",code:"Kode",codingSystem:"Kodningssystem",funding:"Finansiering",guideline:"Retningslinje",legalStatus:"Juridisk status",medicineSystem:"Medicinsk system",recognizingAuthority:"Anerkendende myndighed",relevantSpecialty:"Relevant speciale",medicalSpecialty:"Medicinsk speciale",specialty:"Speciale",study:"Studie",associatedAnatomy:"Tilknyttet anatomi",cause:"Ã
rsager",differentialDiagnosis:"Differentialdiagnose",distinguishingSign:"Kendetegn",drug:"Lægemiddel",epidemiology:"Epidemiologi",expectedPrognosis:"Forventet prognose",naturalProgression:"Naturligt forløb",pathophysiology:"Patofysiologi",possibleComplication:"Mulige komplikationer",possibleTreatment:"Mulige behandlinger",primaryPrevention:"Primær forebyggelse",riskFactor:"Risikofaktorer",secondaryPrevention:"Sekundær forebyggelse",signOrSymptom:"Tegn eller symptomer",stage:"Stadie",status:"Status",subtype:"Undertype",typicalTest:"Typisk undersøgelse",associatedPathophysiology:"Tilknyttet patofysiologi",bodyLocation:"Placering i kroppen",connectedTo:"Forbundet med",diagram:"Diagram",partOfSystem:"Del af system",relatedCondition:"Relateret tilstand",relatedTherapy:"Relateret behandling",subStructure:"Understruktur",identifyingExam:"Identificerende undersøgelse",identifyingTest:"Identificerende test",increasesRiskOf:"Ãger risiko for",affectedBy:"PÃ¥virkes af",normalRange:"NormalomrÃ¥de",signDetected:"PÃ¥vist tegn",usedToDiagnose:"Bruges til at diagnosticere",usesDevice:"Anvendt udstyr",adverseOutcome:"Bivirkning",contraindication:"Kontraindikation",duplicateTherapy:"Overlappende behandling",seriousAdverseOutcome:"Alvorlig bivirkning",indication:"Indikation",followup:"Opfølgning",howPerformed:"SÃ¥dan udføres det",preparation:"Forberedelse",procedureType:"Proceduretype",activeIngredient:"Aktivt stof",administrationRoute:"Indgivelsesvej",alcoholWarning:"Alkoholadvarsel",availableStrength:"Tilgængelig styrke",breastfeedingWarning:"Amningsadvarsel",clinicalPharmacology:"Klinisk farmakologi",dosageForm:"Doseringsform",doseSchedule:"Doseringsplan",drugClass:"Lægemiddelklasse",drugUnit:"Lægemiddelenhed",foodWarning:"Fødevareadvarsel",interactingDrug:"Interagerende lægemiddel",isAvailableGenerically:"Findes som generisk",isProprietary:"Er mærkevare",labelDetails:"Indlægsseddel",maximumIntake:"Maksimalt indtag",mechanismOfAction:"Virkningsmekanisme",nonProprietaryName:"Generisk navn",overdosage:"Overdosering",pregnancyCategory:"Graviditetskategori",pregnancyWarning:"Graviditetsadvarsel",prescribingInfo:"Ordinationsinformation",prescriptionStatus:"Receptstatus",proprietaryName:"Handelsnavn",relatedDrug:"Relateret lægemiddel",rxcui:"RxCUI-kode",warning:"Advarsel",evidenceLevel:"Evidensniveau",evidenceOrigin:"Evidensgrundlag",guidelineDate:"Retningslinjedato",guidelineSubject:"Emne for retningslinje",recommendationStrength:"Anbefalingsstyrke",healthCondition:"Sundhedstilstand",sponsor:"Sponsor",studyLocation:"Studiested",studySubject:"Studieemne",trialDesign:"Forsøgsdesign",phase:"Fase",studyDesign:"Studiedesign",background:"Baggrund",recommendedIntake:"Anbefalet indtag",safetyConsideration:"Sikkerhedshensyn",targetPopulation:"MÃ¥lgruppe (population)",dietFeatures:"Kostens kendetegn",endorsers:"Anbefalet af",expertConsiderations:"Ekspertvurderinger",physiologicalBenefits:"Fysiologiske fordele",risks:"Risici",recipeCategory:"Opskriftskategori",recipeCuisine:"Køkken",recipeIngredient:"Ingrediens",recipeInstructions:"FremgangsmÃ¥de",recipeYield:"Antal portioner",cookTime:"Tilberedningstid",prepTime:"Forberedelsestid",performTime:"Aktiv tid",totalTime:"Samlet tid",cookingMethod:"Tilberedningsmetode",nutrition:"Næringsindhold",suitableForDiet:"Egnet til diæt",step:"Trin",tool:"Redskab",supply:"Materialer",estimatedCost:"AnslÃ¥et pris",yield:"Udbytte",acceptedA
2nswer:"Accepteret svar",suggestedAnswer:"Foreslået svar",answerCount:"Antal svar",upvoteCount:"Antal upvotes",question:"Spørgsmål",answer:"Svar"};function pEe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var fEe={MedicalWebPage:"Medicinsk webside",MedicalScholarlyArticle:"Videnskabelig artikel",MedicalCondition:"Medicinsk tilstand",AnatomicalStructure:"Anatomisk struktur",MedicalSignOrSymptom:"Symptom eller tegn",MedicalRiskFactor:"Risikofaktor",MedicalTest:"Medicinsk undersøgelse",MedicalTherapy:"Behandling",MedicalProcedure:"Medicinsk procedure",Drug:"Lægemiddel",MedicalGuideline:"Medicinsk retningslinje",MedicalStudy:"Medicinsk studie",DietarySupplement:"Kosttilskud",Diet:"Diæt / kostråd",Recipe:"Opskrift",Hospital:"Hospital",MedicalClinic:"Klinik / behandlingssted",FAQPage:"Ofte stillede spørgsmål"},mEe=["MedicalWebPage","MedicalScholarlyArticle","MedicalCondition","AnatomicalStructure","MedicalSignOrSymptom","MedicalRiskFactor","MedicalTest","MedicalTherapy","MedicalProcedure","Drug","MedicalGuideline","MedicalStudy","DietarySupplement","Diet","Recipe","Hospital","MedicalClinic","FAQPage"];function gEe(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mEe;return(!e||n.includes(e)?n.slice():[e].concat((t=n,function(e){if(Array.isArray(e))return pEe(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return pEe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pEe(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))).map(function(e){return{label:(t=e,fEe[t]||t),value:e};var t})}var hEe={MedicalWebPage:["name","headline","description","datePublished","author","reviewedBy","lastReviewed","medicalAudience","about"],MedicalScholarlyArticle:["name","headline","description","articleBody","datePublished","dateModified","author","publisher","keywords","citation"],MedicalCondition:["name","alternateName","description","associatedAnatomy","signOrSymptom","cause","riskFactor","possibleTreatment","possibleComplication","primaryPrevention","secondaryPrevention","typicalTest","stage","expectedPrognosis","epidemiology","differentialDiagnosis","pathophysiology"],AnatomicalStructure:["name","description","associatedPathophysiology","bodyLocation","connectedTo","partOfSystem","relatedCondition","relatedTherapy","subStructure"],MedicalSignOrSymptom:["n
2ame","description","cause","possibleTreatment","associatedAnatomy","riskFactor"],MedicalRiskFactor:["name","description","increasesRiskOf"],MedicalTest:["name","description","usedToDiagnose","normalRange","signDetected","affectedBy","usesDevice"],MedicalTherapy:["name","description","indication","contraindication","adverseOutcome","seriousAdverseOutcome","duplicateTherapy"],MedicalProcedure:["name","description","procedureType","bodyLocation","howPerformed","preparation","followup","status"],Drug:["name","alternateName","description","activeIngredient","administrationRoute","dosageForm","doseSchedule","drugClass","mechanismOfAction","nonProprietaryName","prescriptionStatus","interactingDrug","pregnancyCategory","warning"],MedicalGuideline:["name","description","evidenceLevel","evidenceOrigin","guidelineDate","guidelineSubject","recommendationStrength"],MedicalStudy:["name","description","healthCondition","sponsor","status","studyLocation","studySubject","studyDesign","phase","trialDesign"],DietarySupplement:["name","description","activeIngredient","dosageForm","mechanismOfAction","nonProprietaryName","recommendedIntake","maximumIntake","safetyConsideration","targetPopulation","background"],Diet:["name","description","dietFeatures","endorsers","expertConsiderations","physiologicalBenefits","risks"],Recipe:["name","description","recipeCategory","recipeCuisine","recipeIngredient","recipeInstructions","recipeYield","prepTime","cookTime","totalTime","nutrition","suitableForDiet"],Hospital:["name","description","address","telephone","email","openingHours","medicalSpecialty","availableService","isAcceptingNewPatients"],MedicalClinic:["name","description","address","telephone","email","openingHours","medicalSpecialty","availableService","isAcceptingNewPatients"],FAQPage:["name","description","mainEntity"]},bEe=["cause","riskFactor","possibleTreatment","signOrSymptom","typicalTest","possibleComplication","differentialDiagnosis","primaryPrevention","secondaryPrevention","increasesRiskOf","associatedAnatomy","connectedTo","relatedCondition","relatedTherapy","subStructure","bodyLocation","partOfSystem","signDetected","usedToDiagnose","affectedBy","usesDevice","indication","contraindication","adverseOutcome","seriousAdverseOutcome","duplicateTherapy","interactingDrug","activeIngredient","administrationRoute","drugClass","warning","guidelineSubject","healthCondition","sponsor","studyLocation","studySubject","safetyConsideration","targetPopulation","availableService","medicalSpecialty","openingHours","medicalAudience","recipeIngredient","recipeInstructions","suitableForDiet","dietFeatures","endorsers","expertConsiderations","physiologicalBenefits","risks","keywords","citation","about"];function vEe(e,t,n){return(t=function(e){var t=function(e){if("object"!=xEe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xEe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xEe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yEe(e){return function(e){if(Array.isArray(e))return kEe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AEe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _Ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=AEe(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function AEe(e,t){if(e){if("string"==typeof e)return kEe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kEe(e,t):void 0}}function kEe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function xEe(e){return xEe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xEe(e)}var wEe=["datePublished","dateModified","dateCreated","lastReviewed","uploadDate","startDate","endDate"],CEe=/^\d{4}-\d{2}-\d{2}/,EEe="inLanguage",SEe=["author","reviewedBy","contributor","editor","publisher"],TEe=["distinguishingSign"],IEe=function(e){return null!==e&&"object"===xEe(e)&&!Array.isArray(e)}
2,BEe=["name","alternateName"];function OEe(e){var t=function(e){var t=BEe.indexOf(e.key);return-1===t?BEe.length:t};return e.map(function(e,t){return{field:e,index:t}}).sort(function(e,n){return t(e.field)-t(n.field)||e.index-n.index}).map(function(e){return e.field})}function LEe(e){var t=String(e).replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function DEe(e){return dEe[e]||LEe(e)}function MEe(e){return e?DEe(e):""}function NEe(e){return Object.keys(e).filter(function(e){return"@context"!==e&&"@type"!==e})}function PEe(e){var t=NEe(e);return 1===t.length&&"name"===t[0]}function REe(e,t){var n=t.key,o=t.path,r=t.readonly,a=void 0!==r&&r;if("boolean"==typeof e)return{control:"checkbox",key:n,label:MEe(n),value:e,readonly:a,path:o};if("number"==typeof e)return{control:"number",key:n,label:MEe(n),value:e,readonly:a,path:o};var i=null==e?"":String(e);return function(e){return wEe.includes(e)}(n)||CEe.test(i)?{control:"date",key:n,label:MEe(n),value:i,readonly:a||"dateModified"===n,format:"yyyy-MM-dd",path:o}:i.length>120?{control:"textarea",key:n,label:MEe(n),value:i,readonly:a,path:o,meta:{}}:{control:"text",key:n,label:MEe(n),value:i,readonly:a,path:o}}function FEe(e){return Array.isArray(e)?e.map(FEe).filter(Boolean).join("\n"):IEe(e)?null==e.name?"":String(e.name):null==e?"":String(e)}function VEe(e,t){var n=t.key,o=t.path,r=t.editableType,a=void 0!==r&&r;if(function(e,t){return"Person"===e["@type"]||"jobTitle"in e||SEe.includes(t)}(e,n))return function(e,t){var n=t.key,o=t.path;return{control:"fieldset",kind:"person",key:n,label:MEe(n),meta:{type:e["@type"]||"Person"},fields:[{control:"text",key:"name",label:DEe("name"),value:e.name||"",readonly:!1,path:"".concat(o,".name")},{control:"text",key:"jobTitle",label:DEe("jobTitle"),value:e.jobTitle||"",readonly:!1,path:"".concat(o,".jobTitle")}]}}(e,t);if(PEe(e)&&!a){var i=REe(e.name,{key:n,path:"".concat(o,".name")});return i.meta={type:e["@type"]},i}var l=[];void 0!==e["@type"]&&l.push(function(e,t){var n=t.path;return t.editable?{control:"dropdown",key:"@type",label:"Type",value:e,readonly:!0,options:gEe(e,t.options||[]),path:"".concat(n,".@type")}:{control:"text",key:"@type",label:"Type",value:e,readonly:!0,path:"".concat(n,".@type")}}(e["@type"],{path:o,editable:a,options:t.typeOptions}));var s,c=_Ee(NEe(e));try{for(c.s();!(s=c.n()).done;){var u=s.value;l.push(UEe(e[u],{key:u,path:"".concat(o,".").concat(u)}))}}catch(e){c.e(e)}finally{c.f()}return{control:"fieldset",key:n,label:MEe(n),meta:{type:e["@type"]},fields:l}}function zEe(e,t){var n,o,r=t.key,a=t.path,i=dEe[r]||(n=LEe(r),/[^aeiou]y$/i.test(n)?n.replace(/y$/i,"ies"):/(s|x|z|ch|sh)$/i.test(n)?"".concat(n,"es"):"".concat(n,"s")),l=LEe(r),s={};if(e.length>0&&e.every(IEe)){var c=yEe(new Set(e.map(function(e){return e["@type"]}).filter(Boolean))),u=c.length>1;e.every(PEe)?(o=e.map(function(e,t){return REe(e.name,{key:null,path:"".concat(a,"[").concat(t,"].name")})}),s={type:c[0]}):(o=e.map(function(e,t){return VEe(e,{key:null,path:"".concat(a,"[").concat(t,"]"),editableType:u,typeOptions:c})}),u&&(s={types:c}))}else o=e.map(function(e,t){return REe(e,{key:null,path:"".concat(a,"[").concat(t,"]")})});return{control:"list",key:r,label:i,itemLabel:l,items:o,meta:s}}function UEe(e,t){return TEe.includes(t.key)?function(e,t){var n=t.key,o=t.path,r=t.readonly,a=void 0!==r&&r,i={};if(Array.isArray(e)){i.wasArray=!0,i.itemsAreObjects=e.length>0&&e.every(IEe);var l=e.find(function(e){return IEe(e)&&e["@type"]});l&&(i.itemType=l["@type"])}return{control:"textarea",key:n,label:MEe(n),value:FEe(e),readonly:a,path:o,meta:i}}(e,t):Array.isArray(e)?zEe(e,t):IEe(e)?VEe(e,t):REe(e,t)}function jEe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Map(t.map(function(e){return[e.key,e]})),r=hEe[e]||[];if(!r.length)return OEe(t);var a=n?t.map(function(e){return e.key}).filter(function(e){return!r.includes(e)}):[];return OEe([].concat(yEe(r),yEe(a)).map(function(e){return o.get(e)||function(e){return SEe.includes(e)?{control:"list",key:e,label:MEe(e),itemLabel:LEe(e),items:[],meta:{type:"Person",itemTemplate:{control:"fieldset",kind:"person",key:null,label:"",meta:{type:"Person"},fields:[{control:"text",key:"name",label:DEe("name"),value:"",readonly:!1,path:""},{control:"text",key:"jobTitle",label:DEe("jobTitle"),value:"",readonly:!1,path:""}]}}}:"mainEntity"===e?{control:"list",key:e,label:"Spørgsmål og svar",itemLabel:"Spørgsmål",items:[],meta:{itemTemplate:{control:"fieldset",kind:"faq",key:null,label:"",meta:{type:"Question"},fields:[{control:"textarea",key:"name",label:"Spørgsmål",value:"",readonly:!1,path:"",meta:{}}
2,{control:"textarea",key:"acceptedAnswer",label:"Svar",value:"",readonly:!1,path:"",meta:{type:"Answer",nameProp:"text"}}]}}}:bEe.includes(e)?zEe([],{key:e,path:e}):REe("",{key:e,path:e})}(e)}))}function HEe(e){return Array.isArray(e)?e.length>0:!(""===e||null==e)}function qEe(e){return"textarea"===e.control?function(e){var t,n,o=String(null!==(t=e.value)&&void 0!==t?t:"").split("\n").map(function(e){return e.trim()}).filter(Boolean);if(null===(n=e.meta)||void 0===n||!n.wasArray){var r,a,i=null!==(r=e.value)&&void 0!==r?r:"";return null!==(a=e.meta)&&void 0!==a&&a.type?HEe(i)?vEe({"@type":e.meta.type},e.meta.nameProp||"name",i):"":i}return e.meta.itemsAreObjects?o.map(function(t){return e.meta.itemType?{"@type":e.meta.itemType,name:t}:{name:t}}):o}(e):"fieldset"===e.control?function(e){var t,n,o={},r=_Ee(e.fields);try{for(r.s();!(n=r.n()).done;){var a=n.value;"@type"===a.key&&(t=a.value)}}catch(e){r.e(e)}finally{r.f()}var i=t||e.meta&&e.meta.type;HEe(i)&&(o["@type"]=i);var l,s=_Ee(e.fields);try{for(s.s();!(l=s.n()).done;){var c=l.value;if("@type"!==c.key){var u=qEe(c);HEe(u)&&(o[c.key]=u)}}}catch(e){s.e(e)}finally{s.f()}return o}(e):"list"===e.control?function(e){var t=e.meta&&e.meta.type;return e.items.map(function(e){if(t&&"fieldset"!==e.control&&"list"!==e.control){var n=null==e.value?"":e.value;return HEe(n)?{"@type":t,name:n}:""}return qEe(e)}).filter(HEe)}(e):function(e){var t;if("checkbox"===e.control)return Boolean(e.value);if("number"===e.control){if(!HEe(e.value))return"";var n=Number(e.value);return Number.isNaN(n)?e.value:n}var o=null==e.value?"":e.value;return null!==(t=e.meta)&&void 0!==t&&t.type?HEe(o)?vEe({"@type":e.meta.type},e.meta.nameProp||"name",o):"":o}(e)}const GEe=function(e){var t=function(e){if(!e)return null;if("object"===xEe(e))return e;try{return JSON.parse(e)}catch(e){return null}}(e);if(!IEe(t))return{type:"",typeOptions:gEe(""),fields:[]};var n=t["@type"]||"",o=jEe(n,NEe(t).filter(function(e){return e!==EEe}).map(function(e){return UEe(t[e],{key:e,path:e})}),!0);return{type:n,typeOptions:gEe(n),fields:o}};function KEe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return ZEe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(ZEe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ZEe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,ZEe(d,"constructor",c),ZEe(c,"constructor",s),s.displayName="GeneratorFunction",ZEe(c,r,"GeneratorFunction"),ZEe(d),ZEe(d,r,"Generator"),ZEe(d,o,function(){return this}),ZEe(d,"toString",function(){return"[object Generator]"}),(KEe=function(){return{w:a,m:p}})()}function ZEe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ZEe=function(e,t,n,o){function a(t,n){ZEe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},ZEe(e,t,n,o)}function WEe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const $Ee={name:"SchemaMarkup",components:{SchemaMarkupDropdown:ICe,SchemaField:(0,Hb.A)(uEe,[["render",function(e,t,n,o,r,a){var i=qr("SchemaField",!0),l=qr("SchemaMarkupButton"),s=qr("SchemaLeaf");return"list"===e.field.control&&e.expanded?(Ai(),Si("fieldset",BCe,[Mi("legend",OCe,fe(e.field.label),1),(Ai(!0),Si(gi,null,Yr(e.field.items,function(t,n){return Ai(),Si("div",{key:n,class:"kb-schema-markup__list-item"},[Ni(i,{field:t,depth:e.depth+1},null,8,["field","depth"]),Ni(l,{class:"kb-schema-markup__remove",label:"â",onClick:function(t){return e.removeItem(e.field,n)}},null,8,["onClick"])])}),128)),Ni(l,{label:"Tilføj",onClick:t[0]||(t[0]=function(t){return e.addItem(e.field)})})])):"fieldset"===e.field.control&&e.expanded?(Ai(),Si("fieldset",LCe,[e.field.label?(Ai(),Si("legend",DCe,fe(e.field.label),1)):zi("v-if",!0),(Ai(!0),Si(gi,null,Yr(e.field.fields,function(t,n){return Ai(),Ti(i,{key:n,field:t,depth:e.depth+1},null,8,["field","depth"])}),128))])):"list"===e.field.control||"fieldset"===e.field.control?
2(Ai(),Si("p",MCe,[e.field.label?(Ai(),Si("span",NCe,fe(e.field.label),1)):zi("v-if",!0),Mi("span",PCe,fe(e.summary),1)])):(Ai(),Ti(s,{key:3,field:e.field},null,8,["field"]))}]])},props:{schemaJson:{type:String,required:!1,default:""},contentId:{type:String,required:!1,default:""},pageUrl:{type:String,required:!1,default:""}},setup:function(e){var t=Lt(GEe(e.schemaJson)),n=bl(function(){return t.fields.find(function(e){return"name"===e.key})||null}),o=bl(function(){return t.fields.filter(function(e){return"name"!==e.key})}),r=function(){if(e.contentId){var n=JSON.stringify(function(e){var t={"@context":"https://schema.org"};HEe(e.type)&&(t["@type"]=e.type),t[EEe]="da";var n,o=_Ee(e.fields);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r.key!==EEe){var a=qEe(r);HEe(a)&&(t[r.key]=a)}}}catch(e){o.e(e)}finally{o.f()}return t}(t),null,2);dm("/api/schema-markup",JSON.stringify({contentLink:e.contentId,schemaJson:n}))}},a=Kt(!1),i=function(e){window.parent&&window.parent!==window&&window.parent.postMessage({type:"kb.schemamarkup.busy",value:e},window.location.origin)},l=function(){var n,o=(n=KEe().m(function n(){var o,r,l,s,c,u,d,p,f;return KEe().w(function(n){for(;;)switch(n.p=n.n){case 0:if(e.pageUrl){n.n=1;break}return n.a(2);case 1:return a.value=!0,i(!0),n.p=2,n.n=3,fetch(e.pageUrl,{credentials:"same-origin"});case 3:if((l=n.v).ok){n.n=4;break}return n.a(2);case 4:return n.n=5,l.text();case 5:return s=n.v,c=(new DOMParser).parseFromString(s,"text/html"),u=null!==(o=c.querySelector("#maincontent"))&&void 0!==o?o:c.body,d=(null!==(r=null==u?void 0:u.textContent)&&void 0!==r?r:"").replace(/\s+/g," ").trim(),n.n=6,dm("/api/schema-markup/restore",JSON.stringify({contentLink:e.contentId,pageText:d,type:t.type}));case 6:null!=(p=n.v)&&p.schemaJson&&(f=GEe(p.schemaJson),t.type=f.type,t.typeOptions=f.typeOptions,t.fields=f.fields);case 7:return n.p=7,a.value=!1,i(!1),n.f(7);case 8:return n.a(2)}},n,null,[[2,,7,8]])}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){WEe(a,o,r,i,l,"next",e)}function l(e){WEe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return o.apply(this,arguments)}}();Dr(function(){e.schemaJson||l()});var s=function(e){var t,n;e.origin===window.location.origin&&("kb.schemamarkup.save"===(null===(t=e.data)||void 0===t?void 0:t.type)?r():"kb.schemamarkup.restore"===(null===(n=e.data)||void 0===n?void 0:n.type)&&l())};return window.addEventListener("message",s),Pr(function(){return window.removeEventListener("message",s)}),{schema:t,nameField:n,bodyFields:o,save:r,restore:l,isRestoring:a,onTypeChange:function(e){t.type=e,t.fields=jEe(e,t.fields)}}}},YEe=$Ee,JEe=(0,Hb.A)(YEe,[["render",function(e,t,n,o,r,a){var i,l=qr("SchemaField"),s=qr("SchemaMarkupDropdown");return Ai(),Si("article",_Ce,[e.isRestoring?(Ai(),Si("div",ACe,(i=t[1]||(t[1]=[Mi("div",{class:"kb-spinner-container__spinner"},null,-1)]),function(e){if(Array.isArray(e))return yCe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return yCe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yCe(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):(Ai(),Si("form",{key:1,class:"kb-schema-markup__form",onSubmit:t[0]||(t[0]=lc(function(){return e.save&&e.save.apply(e,arguments)},["prevent"]))},[e.nameField?(Ai(),Ti(l,{key:0,field:e.nameField,depth:1},null,8,["field"])):zi("v-if",!0),Ni(s,{label:"Type","model-value":e.schema.type,"onUpdate:modelValue":e.onTypeChange,options:e.schema.typeOptions},null,8,["model-value","onUpdate:modelValue","options"]),(Ai(!0),Si(gi,null,Yr(e.bodyFields,function(e,t){return Ai(),Ti(l,{key:t,field:e,depth:1},null,8,["field"])}),128))],32))])}]]),XEe={name:"SearchAndCTA",props:{guid:{type:String,required:!0}},setup:function(e){var t=Af(),n=Kt(""),o=Hx(function(){t.dispatch("search/performSearch",{guid:e.guid,query:n.value})},500);return{openPageOverlay:function(e,n){var o={Login:"loginOverlay",CreateHold:"opretHoldOverlay"}[e];t.dispatch("main/openPageOverlay",{overlayContent:o,returnTarget:n.currentTarget})},createFundraise:function(e){var t=location.href;localStorage.setItem("flowheader__returnurl",t),location.href=e.target.href},inputText:n,termInput:o}}};function QEe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return eSe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(eSe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,eSe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,eSe(d,"constructor",c),eSe(c,"constructor",s),s.displayName="GeneratorFunction",eSe(c,r,"GeneratorFunction"),eSe(d),eSe(d,r,"Generator"),eSe(d,o,function(){return this}),eSe(d,"toString",function(){return"[object Generator]"}),(QEe=function(){return{w:a,m:p}})()}function eSe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}eSe=function(e,t,n,o){function a(t,n){eSe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},eSe(e,t,n,o)}function tSe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const nSe={name:"SearchAndCTACancerforum",props:{guid:{type:String,required:!1,default:""},groupId:{type:String,required:!0},isLoggedIn:{type:Boolean,required:!0},isClosedGroup:{type:Boolean,required:!0},isUserAwaitingAccess:{type:Boolean,required:!0},loginUrl:{type:String,required:!1,default:""}},setup:function(e){var t=Af(),n=Kt(""),o=Kt(!1),r=Hx(function(){t.dispatch("search/performSearch",{guid:e.guid,query:n.value})},500),a=function(){var n,r=(n=QEe().m(function n(r){var a;return QEe().w(function(n){for(;;)switch(n.n){case 0:if(e.isLoggedIn){n.n=1;break}return window.location.href=e.loginUrl,n.a(2);case 1:if(!e.isClosedGroup){n.n=2;break}return t.dispatch("main/openPageOverlay",{overlayContent:"ClosedGroupOverlay",returnTarget:r.currentTarget}),n.a(2);case 2:return o.value=!0,a="".concat(document.location.origin,"/").concat("da-DK/api/join-open-group-redirect/[groupId]").replace("[groupId]",e.groupId),n.n=3,dm(a,null);case 3:o.value=!1,window.location.reload();case 4:return n.a(2)}},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){tSe(a,o,r,i,l,"next",e)}function l(e){tSe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(e){return r.apply(this,arguments)}}();return{inputText:n,termInput:r,createFundraise:function(e){var t=location.href;localStorage.setItem("flowheader__returnurl",t),location.href=e.target.href},handleClick:a,isSubmitting:o}}};var oSe=document.querySelector(".kb-component--search-overlay");function rSe(e){return JSON.parse(sessionStorage.getItem(e))}function aSe(e){return function(e){if(Array.isArray(e))return iSe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return iSe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iSe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iSe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function lSe(e,t){var n=rSe(e);if(n){var o=cSe(n,t),r=[].concat(aSe(o),aSe(t));sSe(e,r)}else sSe(e,t)}var sSe=function(e,t){sessionStorage.setItem(e,JSON.stringify(t))},cSe=function(e,t){var n=[];return e.map(function(e){t.find(function(t){return t.name===e.name})||n.push(e)}),n};const uSe={name:"SessionStorageFormularTest",setup:function(){var e=Kt("testFormular"),t=Kt(null),n=Kt(null),o=Kt(null),r=Kt(null),a=Kt(null),i=Kt(!1),l=bl(function(){return s.state.forms.forms}),s=Af();Dr(function(){var i=rSe(e.value);i&&(c(),t.value=i.firstName,n.value=i.lastName,o.value=i.email,r.value=i.phone,a.value=i.fighter)});var c=function(){s.dispatch("forms/setForm",{name:e.value,data:rSe(e.value)})};return{formularName:e,firstName:t,lastName:n,email:o,phone:r,fighter:a,teams:l,handleFighterCheck:function(e){i.value=e.target.checked},submitFormular:function(){lSe(e.value,{firstName:t.value,lastName:n.value,email:o.value,phone:r.value}),c()},submitFormular2:function(){lSe(e.value,{fighter:i.value}),c()},clearFormular:function(){var t;t=e.value,sessionStorage.removeItem(t)}}}},dSe={name:"SignUpButton",props:{eventId:{type:String,required:!0},successButtonData:{type:Object,required:!1}},setup:function(e){var t=Af();return{startSignUp:function(n){if(!e.eventId)return!1;t.commit("events/set_signUpEventId",e.eventId),t.commit("main/set_page_overlay_content_data",{successButtonData:e.successButtonData}
2),t.dispatch("main/openPageOverlay",{overlayContent:"SignUpForm",returnTarget:n.currentTarget})}}}};var pSe=document.querySelectorAll(".kb-component--spot-card"),fSe=document.querySelectorAll(".kb-component--spot-card-grid"),mSe={class:"kb-stafet-flow-actions"},gSe={class:"kb-stafet-flow-actions__buttons-wrapper"},hSe={class:"kb-stafet-flow-actions__buttons-right-wrapper"};const bSe={name:"StafetActions",props:{nextStepCallback:{type:Function,required:!1},previousStepCallback:{type:Function,required:!1},nextStepLabel:{type:String,required:!1,default:"Videre"},previousStepLabel:{type:String,required:!1,default:"Tilbage"},skipStepCallback:{type:Function,required:!1},skipStepLabel:{type:String,required:!1,default:"Spring over"}},setup:function(){}},vSe=(0,Hb.A)(bSe,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",mSe,[Mi("div",gSe,[e.previousStepCallback?(Ai(),Si("button",{key:0,class:"kb-button",onClick:t[0]||(t[0]=function(){return e.previousStepCallback&&e.previousStepCallback.apply(e,arguments)})},fe(e.previousStepLabel),1)):zi("v-if",!0),Mi("div",hSe,[e.skipStepCallback?(Ai(),Si("button",{key:0,class:"kb-link kb-stafet-flow-actions__link",onClick:t[1]||(t[1]=function(){return e.skipStepCallback&&e.skipStepCallback.apply(e,arguments)})},fe(e.skipStepLabel),1)):zi("v-if",!0),e.nextStepCallback?(Ai(),Si("button",{key:1,class:"kb-button kb-button--full-color-spot kb-button--full-color-spot",onClick:t[2]||(t[2]=function(){return e.nextStepCallback&&e.nextStepCallback.apply(e,arguments)})},fe(e.nextStepLabel),1)):zi("v-if",!0)])])])}]]);var ySe={class:"kb-stafet-flow-add-participants kb-optimizely-forms"},_Se={class:"kb-stafet-step__input-wrapper"},ASe={class:"kb-stafet-step__input-wrapper"},kSe={class:"kb-stafet-step__input-wrapper"};const xSe={name:"StafetAddDeltager",components:{FormInputDropdown:XB,FormInputTextField:mE},props:{labels:{type:Object,required:!0},displayInputError:{type:Boolean,required:!1,default:!1},onChangeCallback:{type:Function,required:!0},data:{type:Object,required:!1},excludeMail:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=Kt(0),n=Kt(0),o=Kt([]),r=Kt([]),a=Kt({}),i=bl(function(){return t.value+n.value});Lr(function(){var a,i,s,u,d,p;e.data&&(t.value=null!==(a=null===(i=e.data.adults)||void 0===i?void 0:i.length)&&void 0!==a?a:0,n.value=null!==(s=null===(u=e.data.children)||void 0===u?void 0:u.length)&&void 0!==s?s:0,o.value=null!==(d=e.data.adults)&&void 0!==d?d:[],r.value=null!==(p=e.data.children)&&void 0!==p?p:[],l(),c())});var l=function(){var e=t.value+n.value>0,i=!0,l=!0;o.value.length>0&&(s(o.value),i=o.value.every(function(e){return e.isValid})),r.value.length>0&&(s(r.value),l=r.value.every(function(e){return e.isValid})),a.value.adults=o.value,a.value.children=r.value,a.value.isValid=e&&i&&l},s=function(t){t.forEach(function(t){e.excludeMail?t.isValid=tE(t.firstName):t.isValid=tE(t.firstName)&&(!t.email||nE(t.email))})},c=function(){e.onChangeCallback&&e.onChangeCallback(a.value)};return Nr(function(){l(),c()}),{numberOfAdults:t,numberOfChildren:n,totalNumberOfParticipants:i,adults:o,children:r,setNumberOfAdults:function(e){var n=parseInt(e);t.value=n&&n>0?n:0,function(e){if(o.value.length>e)o.value=o.value.slice(0,e);else if(0===e)o.value=[];else for(var t=e-o.value.length,n=0;n<t;n++)o.value.push({firstName:"",lastName:"",email:"",isValid:!1})}(n)},setNumberOfChildren:function(e){var t=parseInt(e);n.value=t&&t>0?t:0,function(e){if(r.value.length>e)r.value=r.value.slice(0,e);else if(0===e)r.value=[];else for(var t=e-r.value.length,n=0;n<t;n++)r.value.push({firstName:"",lastName:"",email:"",isValid:!1})}(t)},nonEmptyStringValidator:tE,emailValidator:nE}}},wSe=(0,Hb.A)(xSe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField");return Ai(),Si("article",ySe,[Mi("div",_Se,[Ni(i,{modelValue:e.numberOfAdults.toString(),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.numberOfAdults=t}),fieldName:"numberOfAdults",label:e.labels.registerDeltagereSelectAdultNumberLabel,placeholder:e.labels.registerDeltagereSelectAdultNumberLabel,onInput:t[1]||(t[1]=function(t){return e.setNumberOfAdults(t.target.value)}),type:"number",isValidationError:0===e.totalNumberOfParticipants&&e.displayInputError,errorMessageLabel:e.labels.registerDeltagereSelectAdultNumberErrorMessage},null,8,["modelValue","label","placeholder","isValidationError","errorMessageLabel"]),Ni(i,{modelValue:e.numberOfChildren.toString(),"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.numberOfChildren=t}),localValue:e.numberOfChildren,fieldName:"numberOfChildren",label:e.labels.registerDeltagereSelectChildNumberLabel,placeholder:e.labels.registerDeltagereSelectChildNumberLabel,onInput:t[3]||(t[3]=function(t){return e.setNumberOfChildren(t.target.value)}),type:"number",isValidationError:0===e.totalNumberOfParticipants&&e.displayInputError,errorMessageLabel:e.labels.registerDeltagereSelectChildNumberErrorMessage},null,8,["modelValue","localValue","label","placeholder","isValidationError","errorMessageLabel"]),(Ai(!0),Si(gi,null,Yr(e.adults,function(t,n){return Ai(),Si("div",ASe,[Mi("h3",null,fe(e.labels.registerDeltagereAdultTitle)+" "+fe(n+1),1),Ni(i,{modelValue:t.firstName,"onUpdate:modelValue":function(e){return t.firstName=e},fieldName:"adultFirstName",label:e.labels.registerDeltagereFirstNameLabel,placeholder:e.labels.registerDeltagereFirstNameLabel,isRequired:!0,isValidationError:!e.nonEmptyStringValidator(t.firstName)&&e.displayInputError,errorMessageLabel:e.labels.registerDeltagereFirstNameErrorMessage},null,8,["modelValue","onUpdate:modelValue","label","placeholder","isValidationError","errorMessageLabel"]),Ni(i,{modelValue:t.lastName,"onUpdate:modelValue":function(e){return t.lastName=e},fieldName:"adultLastName",label:e.labels.registerDeltagereLastNameLabel,placeholder:e.labels.registerDeltagereLastNameLabel,isValidationError:!1,isRequired:!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder"]),e.excludeMail?zi("v-if",!0):(Ai(),Ti(i,{key:0,modelValue:t.email,"onUpdate:modelValue":function(e){return t.email=e},fieldName:"adultEmail",label:e.labels.registerDeltagereEmailLabel,placeholder:e.labels.registerDeltagereEmailLabel,isRequired:!1,isValidationError:!!t.email&&!e.emailValidator(t.email)&&e.displayInputError,errorMessageLabel:e.labels.registerDeltagereEmailErrorMessage},null,8,["modelValue","onUpdate:modelValue","label","placeholder","isValidationError","errorMessageLabel"]))])}),256)),(Ai(!0),Si(gi,null,Yr(e.children,function(t,n){return Ai(),Si("div",kSe,[Mi("h3",null,fe(e.labels.registerDeltagereChildTitle)+" "+fe(n+1),1),Ni(i,{modelValue:t.firstName,"onUpdate:modelValue":function(e){return t.firstName=e}
2,fieldName:"childrenFirstName",label:e.labels.registerDeltagereFirstNameLabel,placeholder:e.labels.registerDeltagereFirstNameLabel,isRequired:!0,isValidationError:!e.nonEmptyStringValidator(t.firstName)&&e.displayInputError,errorMessageLabel:e.labels.registerDeltagereFirstNameErrorMessage},null,8,["modelValue","onUpdate:modelValue","label","placeholder","isValidationError","errorMessageLabel"])])}),256))])])}]]);var CSe={class:"kb-stafet-donation-flow__step kb-stafet-add-more-deltager-flow"},ESe={class:"kb-stafet-step"},SSe={class:"kb-stafet-flow-title"},TSe={key:0,class:"kb-stafet-flow-title__step-indicator"},ISe=["aria-label"],BSe={class:"kb-stafet-flow-title__title"},OSe={class:"kb-stafet-flow-title__description"},LSe={class:"kb-stafet-flow-title__description-text"};const DSe={name:"StafetHeader",props:{steps:{type:Array,required:!0,default:[]},title:{type:String,required:!0,default:""},description:{type:String,required:!0,default:""}}},MSe=(0,Hb.A)(DSe,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",SSe,[e.steps.length>0?(Ai(),Si("ul",TSe,[(Ai(!0),Si(gi,null,Yr(e.steps,function(e,t){return Ai(),Si("li",{key:t,class:"kb-stafet-flow-title__step-indicator-list-item"},[Mi("div",{role:"img","aria-label":"".concat(e.active?"Nuværende ":"","Trin: ").concat(e.number),class:Y(["kb-stafet-flow-title__step-indicator-circle",e.active?"kb-stafet-flow-title__step-indicator-circle--active-step":""])},[Mi("p",null,fe(e.number),1)],10,ISe),Mi("strong",null,fe(e.title),1)])}),128))])):zi("v-if",!0),Mi("h1",BSe,fe(e.title),1),t[0]||(t[0]=Mi("div",{class:"kb-stafet-flow-title__breaker"},[Mi("svg",{viewBox:"0 0 81 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{d:"M2 .5h79v1H2v-1ZM1.5 2v9h-1V2h1Zm.5-.5a.5.5 0 0 0-.5.5h-1A1.5 1.5 0 0 1 2 .5v1Z"})])],-1)),Mi("div",OSe,[Mi("p",LSe,fe(e.description),1)])])}]]);var NSe={class:"kb-stafet-flow-payment"},PSe={class:"kb-stafet-step__title"},RSe={key:0,class:"kb-stafet-flow-payment__list"},FSe={class:"kb-stafet-flow-payment__list-item kb-stafet-flow-payment__list-item--total"};const VSe={name:"StafetPayment",props:{basket:{type:Array,required:!0,default:[]},title:{type:String,required:!0,default:""},inTotalLabel:{type:String,required:!0,default:""},inTotalPrice:{type:String,required:!0,default:0}},setup:function(){}},zSe=(0,Hb.A)(VSe,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",NSe,[Mi("h2",PSe,fe(e.title),1),e.basket.length>0?(Ai(),Si("ul",RSe,[(Ai(!0),Si(gi,null,Yr(e.basket,function(e,t){return Ai(),Si("li",{key:t,class:"kb-stafet-flow-payment__list-item"},[Mi("p",null,fe(e.label),1),Mi("p",null,fe(e.amount),1),Mi("p",null,fe(e.price),1)])}),128)),Mi("li",FSe,[Mi("p",null,fe(e.inTotalLabel),1),t[0]||(t[0]=Mi("p",null,null,-1)),Mi("p",null,fe(e.inTotalPrice)+" kr.",1)])])):zi("v-if",!0)])}]]),USe={name:"StafetAddMoreDeltagerFlow",components:{StafetHeader:MSe,StafetAddDeltager:wSe,StafetPayment:zSe,StafetActions:vSe},props:{stafetId:{type:String,required:!0},holdkode:{type:String,required:!1},userData:{type:Object,required:!1},adultPrice:{type:Number,required:!0},childPrice:{type:Number,required:!0}},setup:function(e){var t=Af(),n=Kt(!1),o=Kt({adults:[],children:[]}),r=bl(function(){return t.state.labels.collections.SFLAddDeltagereLabels}),a=bl(function(){return t.state.stafet.basket}),i=bl(function(){return t.state.stafet.basketTotalPrice});return{displayInputError:n,labels:r,participants:o,basket:a,basketTotalPrice:i,updateAddParticipants:function(n){var a,i;o.value=n,function(e,t,n,o,r){var a=e.adults,i=e.children,l=[];l.push({label:t.yourInformationTotalNewAdultDeltagereLabel,amount:"".concat(a.length," ").concat(t.yourInformationTotalDeltagereLabel," (á ").concat(o," kr.)"),price:"".concat(a.length*o," kr."),intPrice:a.length*o}),l.push({label:t.yourInformationTotalNewChildDeltagereLabel,amount:"".concat(i.length," ").concat(t.yourInformationTotalDeltagereLabel," (á ").concat(r," kr.)"),price:"".concat(i.length*r," kr."),intPrice:i.length*r}),n.dispatch("stafet/basket",{basket:l})}(o.value,r.value,t,e.adultPrice,e.childPrice),a={name:"deltagere",isValid:o.value.isValid,value:o.value.adults},i={name:"childDeltagere",isValid:o.value.isValid,value:o.value.children},t.dispatch("stafet/userInputs",{inputs:[a,i]})},goToPayment:function(){o.value&&!0===o.value.isValid?(n.value=!1,t.dispatch("stafet/addDeltagereSubmit",{stafetId:e.stafetId,teamId:e.holdkode,userData:e.userData})):(n.value=!0,pN())}}}}
2,jSe=USe,HSe=(0,Hb.A)(jSe,[["render",function(e,t,n,o,r,a){var i=qr("StafetHeader"),l=qr("StafetAddDeltager"),s=qr("StafetPayment"),c=qr("StafetActions");return Ai(),Si("article",CSe,[Ni(i,{steps:[],title:e.labels.title,description:e.labels.description},null,8,["title","description"]),Mi("div",ESe,[Ni(l,{labels:e.labels,displayInputError:e.displayInputError,onChangeCallback:e.updateAddParticipants,data:e.participants,excludeMail:!0},null,8,["labels","displayInputError","onChangeCallback","data"])]),Ni(s,{title:e.labels.yourInformationTotalTitle,basket:e.basket,inTotalLabel:e.labels.yourInformationTotal,inTotalPrice:e.basketTotalPrice.toString()},null,8,["title","basket","inTotalLabel","inTotalPrice"]),Ni(c,{nextStepCallback:e.goToPayment,nextStepLabel:e.labels.formNavigationLastStep},null,8,["nextStepCallback","nextStepLabel"])])}]]);var qSe={class:"kb-stafet-join-a-team-flow"},GSe={class:"kb-stafet-donation-flow__step"},KSe={class:"kb-stafet-step kb-stafet-join-a-team-step-select-team kb-optimizely-forms"},ZSe={class:"kb-stafet-step__title"},WSe={class:"kb-stafet-step__input-wrapper"},$Se={class:"kb-stafet-step__input-wrapper"},YSe={class:"kb-stafet-step__input-wrapper"},JSe={class:"kb-cta-box-checkbox"},XSe={class:"kb-cta-box-checkbox__box-content-container"},QSe={class:"kb-cta-box-checkbox__box-content"},eTe={class:"kb-cta-box-checkbox__box-title"},tTe={class:"kb-cta-box-checkbox__box-description"},nTe={class:"kb-cta-box-checkbox__box-input"},oTe={class:"kb-stafet-step__title"},rTe={class:"kb-stafet-step__description"},aTe={class:"kb-stafet-step__input-wrapper"},iTe={class:"kb-stafet-step__title"},lTe={class:"kb-stafet-step__description"},sTe={class:"kb-stafet-step__input-wrapper"},cTe={key:0};const uTe=[{name:"teamName",value:"",isValid:!1,validator:tE},{name:"isFighter",value:!1,isValid:!1,validator:cO},{dependentField:"isFighter",dependentFieldValue:!1,dependentFieldValidator:function(e){return!1===e},name:"shirtSize",value:"",isValid:!1,validator:tE},{name:"isFighterFreeLunch",value:!1,isValid:!1,validator:cO},{name:"isChild",value:!1,isValid:!1,validator:cO}];function dTe(e){return e.validator?e.dependentField&&e.dependentFieldValidator(e.dependentFieldValue)?e.isValid=!0:(e.dependentField&&e.dependentFieldValue,e.isValid=e.validator(e.value)):e.isValid=!0}const pTe=Object.freeze({STAFET_JOIN_A_TEAM:"stafetJoinATeamUserInputs",STAFET_DONATION:"stafetDonationUserInputs",STAFET_JOIN_AS_FIGHTER:"stafetJoinAsFighterUserInputs",STAFET_CREATE_A_TEAM:"stafetCreateATeamUserInputs",ADD_DELTAGERE:"addDeltagereUserInputs"});function fTe(e){return function(e){if(Array.isArray(e))return mTe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return mTe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mTe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mTe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const gTe={name:"StafetDeltagPaaHoldStepSelectTeam",components:{FormInputTextField:mE,FormInputDropdown:XB,FormCheckbox:dB,StafetActions:vSe,StafetAddDeltager:wSe},props:RK,setup:function(e){var t=Af(),n=Kt(""),o=Kt(!1),r=Kt(""),a=Kt(!1),i=Kt(!1),l=Kt(!1),s=Kt({}),c=bl(function(){var t=[];
2return e.tshirtSizes.forEach(function(e){t.push({name:e.displayName,value:e.value})}),t}),u=bl(function(){var t=[];return e.holdList&&e.holdList.forEach(function(e){return t.push({name:e.name,value:e.holdKode})}),t});Lr(function(){var o=rSe(pTe.STAFET_JOIN_A_TEAM);if(o&&d([{name:"teamName",value:Mg(o,"teamName")},{name:"isFighter",value:Mg(o,"isFighter")},{name:"shirtSize",value:Mg(o,"shirtSize")},{name:"isFighterFreeLunch",value:Mg(o,"isFighterFreeLunch")},{name:"isChild",value:Mg(o,"isChild")}]),e.holdId&&u.value.some(function(t){return String(t.value)===String(e.holdId)})&&(n.value=e.holdId,uTe.find(function(e){return"teamName"===e.name}).value=e.holdId),t.dispatch("donation/teams",{stafetId:e.stafetId}),o){var r=[],a=[];Mg(o,"deltagere")&&(r=Mg(o,"deltagere")),Mg(o,"childDeltagere")&&(a=Mg(o,"childDeltagere")),s.value.adults=r,s.value.children=a;var i=r.length+a.length;l.value=i>0}});var d=function(e){e.forEach(function(e){if(void 0!==e.value&&null!==e.value)switch(uTe.find(function(t){return t.name===e.name}).value=e.value,e.name){case"teamName":return void(n.value=e.value);case"isFighter":return void(o.value=e.value);case"shirtSize":return void(r.value=e.value);case"isFighterFreeLunch":return void(a.value=e.value);case"isChild":return void(i.value=e.value);default:return}})},p=bl(function(){var e=[];return l.value&&(e.push({name:"deltagere",value:s.value.adults,isValid:s.value.isValid,validator:function(){return s.value.isValid}}),e.push({name:"childDeltagere",value:s.value.children,isValid:s.value.isValid,validator:function(){return s.value.isValid}})),e}),f=bl(function(){return[].concat(fTe(uTe),fTe(p.value))});return{teamName:n,isFighter:o,shirtSize:r,tshirtSizes:c,isFighterFreeLunch:a,isChild:i,teams:u,addMoreParticipants:l,participants:s,stepModel:f,validateField:function(e,t){d([{name:e,value:t}]);var n=uTe.find(function(t){return t.name===e});if(n){if(n.dependentField){var o=uTe.find(function(e){return e.name===n.dependentField});o&&(n.dependentFieldValue=o.value)}n.value=t,dTe(n)}},handleErrorMessage:function(t){var n=uTe.find(function(e){return e.name===t});return!(null!=n&&n.isValid)&&e.displayInputError},toggleAddMoreParticipants:function(e){l.value=e},updateAddParticipants:function(e){s.value=e}}}},hTe=gTe,bTe=(0,Hb.A)(hTe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputDropdown"),l=qr("FormCheckbox"),s=qr("StafetAddDeltager"),c=qr("StafetActions");return Ai(),Si("article",KSe,[Mi("h2",ZSe,fe(e.labels.selectYourHoldTitle),1),Mi("div",WSe,[Ni(i,{modelValue:e.teamName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.teamName=t}),label:e.labels.selectYourHoldLabel,placeholder:e.labels.selectYourHoldLabel,isRequired:!0,fieldName:"teamName",selectOptions:e.teams,onChangeCallback:function(t){return e.validateField("teamName",t.target.value)},errorMessageLabel:e.labels.selectYourHoldErrorMessage,isValidationError:e.handleErrorMessage("teamName")},null,8,["modelValue","label","placeholder","selectOptions","onChangeCallback","errorMessageLabel","isValidationError"])]),Mi("div",$Se,[Ni(l,{modelValue:e.isChild.toString(),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.isChild=t}),label:e.labels.isChildBoolLabel,fieldName:"isChild",onChangeCallback:function(t){return e.validateField("isChild",t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])]),Mi("div",YSe,[Mi("section",JSe,[Mi("div",XSe,[Mi("div",QSe,[t[6]||(t[6]=Mi("div",{class:"kb-cta-box-checkbox__box-circle"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 67 69"},[Mi("path",{fill:"#3C3C3C",d:"M27.15 35.49a9.491 9.491 0 0 0-1.94 1.08 116.119 116.119 0 0 0-.85-12.13l-3 .34v.18a95.5 95.5 0 0 1 .77 13.14 14.897 14.897 0 0 1-1.75 3.8c-.33.51-.51.84-.54.9l2.59 1.51.55-.92c1.05-1.62 3.09-4.25 5.24-5.11A11.85 11.85 0 0 1 41 40.21l.18.18c.56.54 1.55 1.52 1.84 1.86.29.34 1.25 1.74 1.75 2.49l2.57-1.55a17.292 17.292 0 0 0-1.59-2.3c-.16-.22-.31-.42-.43-.56-.28-.34-.89-.95-1.37-1.43a13.26 13.26 0 0 1 6.38-4.71c3.39-1.27 8.56-1.78 13.94 3l2-2.24c-7-6.21-13.83-4.85-17.29-3.48A16.73 16.73 0 0 0 41.59 37a14.53 14.53 0 0 0-14.44-1.51Z"}),Mi("path",{fill:"#3C3C3C",d:"M65.83 65.72c-7.45 1.33-17.74-3.25-17.84-3.3l-.57-.25-.58.22c-.23.09-22.31 8.28-39.25-9.06a3 3 0 0 0-1.87-.69 2.72 2.72 0 0 1-1.66-.54c-.59-.72-.35-2.08-.26-2.6a203.32 203.32 0 0 1 6.58-26.61c1-3.24 2-6.58 3.1-10.53l17.78-8.15c1.
261 1.08 3.63 4.43 4.83 7-2 3.39-4.58 6.42-5.49 6.43A8.331 8.331 0 0 1 27.84 16l-1.16-1-1.09 1a3.411 3.411 0 0 0-.46.47c-.19.22-.63.74-4.63.89l.11 3c3.92-.14 5.37-.66 6.23-1.36a8.83 8.83 0 0 0 3.24 1.59c1.15.21 4.33-.22 9-8.56l.37-.65-.3-.68c-.59-1.36-3.7-8.21-7.33-9.57l-.58-.22L11 10.22l-.19.67c-1.16 4.2-2.22 7.72-3.26 11.13A205.997 205.997 0 0 0 .84 49c-.14.79-.57 3.21.89 5a5.2 5.2 0 0 0 3.62 1.62h.31c16.66 16.79 37.83 11 41.65 9.74 2 .84 9 3.56 15.57 3.56a19.82 19.82 0 0 0 3.47-.29l-.52-2.91Z"})])],-1)),Mi("div",null,[Mi("h2",eTe,fe(e.labels.joinAsFighterTitle),1),Mi("p",tTe,fe(e.labels.joinAsFighterDescription),1),Mi("div",nTe,[Ni(l,{modelValue:e.isFighter.toString(),"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.isFighter=t}),label:e.labels.joinAsFighterBoolLabel,fieldName:"isFighter",onChangeCallback:function(t){return e.validateField("isFighter",t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])])])])])])]),e.isFighter?(Ai(),Si(gi,{key:0},[Mi("div",null,[Mi("h2",oTe,fe(e.labels.selectYourFighterTshirtTitle),1),Mi("p",rTe,fe(e.labels.selectYourFighterTshirtDescription),1)]),Mi("div",aTe,[Ni(i,{modelValue:e.shirtSize,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.shirtSize=t}),label:e.labels.selectYourFighterTshirtLabel,fieldName:"shirtSize",selectOptions:e.tshirtSizes,isRequired:!0,errorMessageLabel:e.labels.selectYourFighterTshirtErrorMessage,placeholder:e.labels.selectYourFighterTshirtLabel,onChangeCallback:function(t){return e.validateField("shirtSize",t.target.value)},isValidationError:e.handleErrorMessage("shirtSize")},null,8,["modelValue","label","selectOptions","errorMessageLabel","placeholder","onChangeCallback","isValidationError"])]),Mi("div",null,[Mi("h2",iTe,fe(e.labels.fighterArrangementTitle),1),Mi("p",lTe,fe(e.labels.fighterArrangementDescription),1)]),Ni(l,{modelValue:e.isFighterFreeLunch.toString(),"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.isFighterFreeLunch=t}),label:e.labels.fighterArrangementBoolLabel,fieldName:"isFighterFreeLunch",onChangeCallback:function(t){return e.validateField("isFighterFreeLunch",t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])],64)):zi("v-if",!0),Mi("div",sTe,[Ni(l,{modelValue:e.addMoreParticipants.toString(),"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.addMoreParticipants=t}),label:e.labels.registerDeltagereBoolLabel,fieldName:"addMoreParticipants",onChangeCallback:function(t){return e.toggleAddMoreParticipants(t.target.checked)}},null,8,["modelValue","label","onChangeCallback"]),e.addMoreParticipants?(Ai(),Si("div",cTe,[Ni(s,{labels:e.labels,onChangeCallback:e.updateAddParticipants,data:e.participants,displayInputError:e.displayInputError,excludeMail:!1},null,8,["labels","onChangeCallback","data","displayInputError"])])):zi("v-if",!0)]),Ni(c,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationNextStep1},null,8,["nextStepCallback","nextStepLabel"])])}]]),vTe=bTe;var yTe={class:"kb-stafet-step kb-stafet-join-a-team-step-your-information kb-optimizely-forms"},_Te={class:"kb-stafet-step__title"},ATe={class:"kb-stafet-step__input-wrapper"},kTe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},xTe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},wTe={class:"kb-stafet-step__input-wrapper"},CTe=["href"];const ETe=[{name:"firstTimeFighter",value:!1,isValid:!1,validator:cO},{name:"firstName",value:"",isValid:!1,validator:rE},{name:"lastName",value:"",isValid:!1,validator:rE},{name:"email",value:"",isValid:!1,validator:nE},{name:"phone",value:"",isValid:!1,validator:function(e){return""===e||oE(e)}},{name:"consent",value:!1,isValid:!1,validator:function(e){return!0===e}},{name:"newsletter",value:!1,isValid:!1,validator:cO},{name:"fighterNewsletter",value:!1,isValid:!1,validator:cO}],STe={name:"StafetDeltagPaaHoldStepYourInformation",components:{FormInputTextField:mE,FormCheckbox:dB,StafetActions:vSe,StafetPayment:zSe},props:RK,setup:function(e){var t=Af(),n=Kt(!1),o=Kt(""),r=Kt(""),a=Kt(""),i=Kt(""),l=Kt(!1),s=Kt(!1),c=Kt(!1),u=Kt({firstName:!1,lastName:!1,email:!1,phone:!1}),d=function(e){ETe.find(function(t){return t.name===e}).validator=function(e){return!0}},p=bl(function(){return t.state.stafet.basket}),f=bl(function(){return t.state.stafet.basketTotalPrice}),m=bl(function(){var e;return null===(e=t.state.stafet.userInputs.find(function(e){return"isFighter"===e.name}))||void 0===e?void 0:e.value});Lr(function(){e.userData&&(e.userData.firstName&&(o.value=e.userData.firstName,u.value.firstName=!0,d("firstName")),e.userData.lastName&&(r.value=e.userData.lastName,u.value.lastName=!0,d("lastName")),e.userData.email&&(a.value=e.userData.email,u.value.email=!0,d("email")),e.userData.phoneNumber&&(i.value=e.userData.phoneNumber,u.value.phone=!0,d("phone")));var t,p,f,m,h,b,v,y,_=rSe(pTe.STAFET_JOIN_A_TEAM);_&&g([{name:"firstTimeFighter",value:null!==(t=Mg(_,"firstTimeFighter"))&&void 0!==t?t:n.value},{name:"firstName",value:null!==(p=Mg(_,"firstName"))&&void 0!==p?p:o.value}
2,{name:"lastName",value:null!==(f=Mg(_,"lastName"))&&void 0!==f?f:r.value},{name:"email",value:null!==(m=Mg(_,"email"))&&void 0!==m?m:a.value},{name:"phone",value:null!==(h=Mg(_,"phone"))&&void 0!==h?h:i.value},{name:"consent",value:null!==(b=Mg(_,"consent"))&&void 0!==b?b:l.value},{name:"newsletter",value:null!==(v=Mg(_,"newsletter"))&&void 0!==v?v:s.value},{name:"fighterNewsletter",value:null!==(y=Mg(_,"fighterNewsletter"))&&void 0!==y?y:c.value}])});var g=function(e){e.forEach(function(e){if(void 0!==e.value&&null!==e.value)switch(ETe.find(function(t){return t.name===e.name}).value=e.value,e.name){case"firstTimeFighter":return void(n.value=e.value);case"firstName":return void(o.value=e.value);case"lastName":return void(r.value=e.value);case"email":return void(a.value=e.value);case"phone":return void(i.value=e.value);case"consent":return void(l.value=e.value);case"newsletter":return void(s.value=e.value);case"fighterNewsletter":return void(c.value=e.value);default:return}})},h=function(e,t){ETe.find(function(t){return t.name===e}).value=t;var n=ETe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},b=bl(function(){return A("firstName",o.value)}),v=bl(function(){return A("lastName",r.value)}),y=bl(function(){return A("email",a.value)}),_=bl(function(){return A("phone",i.value)}),A=function(t,n){return!ETe.find(function(e){return e.name===t}).validator(n)&&e.displayInputError},k=bl(function(){return!1===l.value&&e.displayInputError}),x=bl(function(){return ETe});return{firstTimeFighter:n,firstName:o,lastName:r,email:a,phone:i,consent:l,newsletter:s,fighterNewsletter:c,readOnly:u,stepModel:x,basket:p,isFighter:m,basketTotalPrice:f,validateField:h,setFirstTimeFighter:function(e){n.value=e,h("firstTimeFighter",e)},setConsent:function(e){l.value=e,h("consent",e)},showFirstNameErrorMessage:b,showLastNameErrorMessage:v,showPhoneErrorMessage:_,showEmailErrorMessage:y,showConsentErrorMessage:k}}},TTe=STe,ITe=(0,Hb.A)(TTe,[["render",function(e,t,n,o,r,a){var i=qr("FormCheckbox"),l=qr("FormInputTextField"),s=qr("StafetPayment"),c=qr("StafetActions");return Ai(),Si("article",yTe,[Mi("h2",_Te,fe(e.labels.yourInformationTitle),1),Mi("div",ATe,[e.isFighter?(Ai(),Ti(i,{key:0,fieldName:"firstTimeFighter",modelValue:e.firstTimeFighter.toString(),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstTimeFighter=t}),label:e.labels.yourInformationFirstTimeFighterBoolLabel,onChangeCallback:function(t){return e.setFirstTimeFighter(t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])):zi("v-if",!0),Mi("div",kTe,[Ni(l,{fieldName:"firstName",modelValue:e.firstName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.firstName=t}),label:e.labels.yourInformationFirstNameLabel,isRequired:!0,readOnly:e.readOnly.firstName,isValidationError:e.showFirstNameErrorMessage,errorMessageLabel:e.labels.yourInformationFirstNameErrorMessage,onChangeCallback:function(t){return e.validateField("firstName",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(l,{fieldName:"lastName",modelValue:e.lastName,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.lastName=t}),label:e.labels.yourInformationLastNameLabel,isRequired:!0,readOnly:e.readOnly.lastName,isValidationError:e.showLastNameErrorMessage,errorMessageLabel:e.labels.yourInformationLastNameErrorMessage,onChangeCallback:function(t){return e.validateField("lastName",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"])]),Mi("div",xTe,[Ni(l,{fieldName:"email",modelValue:e.email,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.email=t}),label:e.labels.yourInformationEmailLabel,isRequired:!0,readOnly:e.readOnly.email,isValidationError:e.showEmailErrorMessage,errorMessageLabel:e.labels.yourInformationEmailErrorMessage,onChangeCallback:function(t){return e.validateField("email",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(l,{fieldName:"phone",modelValue:e.phone,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.phone=t}),readOnly:e.readOnly.phone,isValidationError:e.showPhoneErrorMessage,label:e.labels.yourInformationPhoneNumberLabel,errorMessageLabel:e.labels.yourInformationPhoneNumberErrorMessage,onChangeCallback:function(t){return e.validateField("phone",t.target.value)}},null,8,["modelValue","readOnly","isValidationError","label","errorMessageLabel","onChangeCallback"])])]),Mi("div",wTe,[Ni(i,{fieldName:"
2consent",modelValue:e.consent.toString(),"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.consent=t}),label:e.labels.yourInformationConsentBoolLabel,isRichText:!0,isRequired:!0,isValidationError:e.showConsentErrorMessage,errorMessageLabel:e.labels.yourInformationConsentBoolErrorMessage,onChangeCallback:function(t){return e.setConsent(t.target.checked)}},null,8,["modelValue","label","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(i,{fieldName:"newsletter",modelValue:e.newsletter.toString(),"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.newsletter=t}),label:e.labels.yourInformationNewsLetterBoolLabel,onChangeCallback:function(t){return e.validateField("newsletter",t.target.checked)}},null,8,["modelValue","label","onChangeCallback"]),e.isFighter?(Ai(),Ti(i,{key:0,fieldName:"fighterNewsletter",modelValue:e.fighterNewsletter.toString(),"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.fighterNewsletter=t}),label:e.labels.yourInformationFighterNewsletterBoolLabel,onChangeCallback:function(t){return e.validateField("fighterNewsletter",t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])):zi("v-if",!0)]),e.loggedIn?(Ai(),Si("a",{key:0,href:e.redirectToEditProfile,class:"kb-link"},fe(e.editProfileLinkText),9,CTe)):zi("v-if",!0),Ni(s,{title:e.labels.yourInformationTotalYourDeltagergebyrLabel,basket:e.basket,inTotalLabel:e.labels.yourInformationTotal,inTotalPrice:e.basketTotalPrice.toString()},null,8,["title","basket","inTotalLabel","inTotalPrice"]),Ni(c,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationNextStep4,previousStepCallback:e.previousStepCallback,previousStepLabel:e.labels.formNavigationPrevStep},null,8,["nextStepCallback","nextStepLabel","previousStepCallback","previousStepLabel"])])}]]),BTe=ITe;function OTe(e,t,n){var o=[];return e.forEach(function(e){e.hidden||o.push({title:n[e.label],number:e.step,active:e.step===t})}),o}function LTe(e){var t=bl(function(){return e.userInputs}),n=bl(function(){return e.steps}),o=bl(function(){return e.currentStep}),r=n.value.toReversed().name,a=bl(function(){return!(0!==n.value.filter(function(e){return!e.completed}).length)}),i=bl(function(){return a.value?r:n.value.find(function(e){return!e.completed}).name});return{userInputs:t,steps:n,currentStep:o,currentStepName:i}}const DTe=[{step:1,name:"StafetDeltagPaaHoldStepSelectTeam",completed:!1,label:"formStepLabelSelectTeam",hidden:!1},{step:2,name:"StafetDeltagPaaHoldStepYourInformation",completed:!1,label:"formStepLabelYourInformation",hidden:!1},{step:3,name:"FormStepSubmitting",completed:!1,skipped:!0,label:"formStepSubmission",hidden:!1}];function MTe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return NTe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(NTe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,NTe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,NTe(d,"constructor",c),NTe(c,"constructor",s),s.displayName="GeneratorFunction",NTe(c,r,"GeneratorFunction"),NTe(d),NTe(d,r,"Generator"),NTe(d,o,function(){return this}),NTe(d,"toString",function(){return"[object Generator]"}),(MTe=function(){return{w:a,m:p}})()}function NTe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}NTe=function(e,t,n,o){function a(t,n){NTe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},NTe(e,t,n,o)}function PTe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const RTe={name:"StafetDeltagPaaHoldFlow",components:{StafetHeader:MSe,StafetDeltagPaaHoldStepSelectTeam:vTe,StafetDeltagPaaHoldStepYourInformation:BTe,FormStepSubmitting:qK},props:{stafetId:{type:String,required:!0},holdId:{type:String,required:!1},tshirtSizes:{type:Array,required:!0,default:[]},holdList:{type:Array,required:!0,default:[]},donationAmounts:{type:Array,required:!0,default:[]},redirectToEditProfile:{type:String,required:!1,default:""},editProfileLinkText:{type:String,required:!1,default:""},userData:{type:Object,required:!1,default:{}}
2,adultPrice:{type:Number,required:!0},childPrice:{type:Number,required:!0},loggedIn:{type:Boolean,required:!0}},setup:function(e){var t=Af(),n=Kt(!1),o=bl(function(){return t.state.labels.collections.SFLJoinHoldLabels}),r=bl(function(){return OTe(s.value,c.value,o.value)}),a=bl(function(){return t.state.stafet.isSubmitting}),i=LTe(t.state.stafet),l=i.userInputs,s=i.steps,c=i.currentStep,u=i.currentStepName;Dr(function(){t.dispatch("stafet/stafetId",{stafetId:e.stafetId}),t.dispatch("stafet/steps",{steps:DTe})});var d=function(){s.value.find(function(e){return e.step===c.value}).completed=!0,t.dispatch("stafet/steps",{steps:s.value});var e=s.value.filter(function(e){return!e.skipped}).filter(function(e){return!e.completed});e.length>0&&t.dispatch("stafet/currentStep",{step:e[0].step})},p=function(){var e,n=(e=MTe().m(function e(){return MTe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.dispatch("stafet/joinATeamSubmit");case 1:return e.a(2,"submitted")}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){PTe(a,o,r,i,l,"next",e)}function l(e){PTe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();return{headerSteps:r,labels:o,currentStepName:u,displayInputError:n,isSubmitting:a,nextStepCallback:function(r){r.forEach(function(e){if(e.dependentField){var t=r.find(function(t){return t.name===e.dependentField});t&&(e.dependentFieldValue=t.value)}dTe(e)}),r.every(function(e){return e.isValid})?(n.value=!1,d(),t.dispatch("stafet/userInputs",{inputs:r}),lSe(pTe.STAFET_JOIN_A_TEAM,r),function(e,t,n,o,r){var a=[],i=e.find(function(e){return"isFighter"===e.name}),l=e.find(function(e){return"donationAmount"===e.name}),s=e.find(function(e){return"donationPerLightBag"===e.name}),c=e.find(function(e){return"deltagere"===e.name}),u=e.find(function(e){return"childDeltagere"===e.name}),d=e.find(function(e){return"isChild"===e.name});a.push({label:t.yourInformationTotalYourDeltagergebyrLabel,amount:"",price:"".concat(d.value?r:o," kr."),intPrice:d.value?r:o}),i&&i.value&&a.push({label:t.yourInformationTotalFighterLabel,amount:"",price:"0 kr.",intPrice:0}),l&&l.value&&s&&s.value&&a.push({label:t.yourInformationTotalTaendteLysLabel,amount:"".concat(l.value," ").concat(t.taendEtLysUnitLabel," (á ").concat(s.value," kr.)"),price:"".concat(l.value*s.value," kr."),intPrice:l.value*s.value}),c&&c.value.length>0&&a.push({label:t.yourInformationTotalNewAdultDeltagereLabel,amount:"".concat(c.value.length," ").concat(t.yourInformationTotalDeltagereLabel," (á ").concat(o," kr.)"),price:"".concat(c.value.length*o," kr."),intPrice:c.value.length*o}),u&&u.value.length>0&&a.push({label:t.yourInformationTotalNewChildDeltagereLabel,amount:"".concat(u.value.length," ").concat(t.yourInformationTotalDeltagereLabel," (á ").concat(r," kr.)"),price:"".concat(u.value.length*r," kr."),intPrice:u.value.length*r}),n.dispatch("stafet/basket",{basket:a})}(l.value,o.value,t,e.adultPrice,e.childPrice),scrollTo(0,0)):(n.value=!0,pN())},previousStepCallback:function(){c.value>1&&(t.dispatch("stafet/currentStep",{step:c.value-1}),s.value.find(function(e){return e.step===c.value}).completed=!1,t.dispatch("stafet/steps",{steps:s.value}),scrollTo(0,0))},submitCallback:p,skipStepCallback:function(){d()}}}},FTe=RTe,VTe=(0,Hb.A)(FTe,[["render",function(e,t,n,o,r,a){var i=qr("StafetHeader");return Ai(),Si("article",qSe,[Ni(i,{steps:e.headerSteps,title:e.labels.title,description:e.labels.description},null,8,["steps","title","description"]),Mi("div",GSe,[(Ai(),Ti(Kr(e.currentStepName),{labels:e.labels,nextStepCallback:e.nextStepCallback,skipStepCallback:e.skipStepCallback,previousStepCallback:e.previousStepCallback,displayInputError:e.displayInputError,submitCallback:e.submitCallback,stafetId:e.stafetId,holdId:e.holdId,tshirtSizes:e.tshirtSizes,donationAmounts:e.donationAmounts,redirectToEditProfile:e.redirectToEditProfile,editProfileLinkText:e.editProfileLinkText,holdList:e.holdList,userData:e.userData,isSubmitting:e.isSubmitting,loggedIn:e.loggedIn},null,8,["labels","nextStepCallback","skipStepCallback","previousStepCallback","displayInputError","submitCallback","stafetId","holdId","tshirt
2Sizes","donationAmounts","redirectToEditProfile","editProfileLinkText","holdList","userData","isSubmitting","loggedIn"]))])])}]]);var zTe={class:"kb-stafet-deltag-som-fighter-flow"},UTe={class:"kb-stafet-donation-flow__step"},jTe={class:"kb-stafet-step kb-stafet-deltag-som-fighter-step-one kb-optimizely-forms"},HTe={class:"kb-stafet-step__title"},qTe={class:"kb-stafet-step__input-wrapper"},GTe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},KTe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},ZTe=["href"];const WTe=[{name:"firstTimeFighter",value:!1,isValid:!1,validator:cO},{name:"firstName",value:"",isValid:!1,validator:rE},{name:"lastName",value:"",isValid:!1,validator:rE},{name:"email",value:"",isValid:!1,validator:nE},{name:"phone",value:"",isValid:!1,validator:function(e){return""===e||oE(e)}},{name:"consent",value:!1,isValid:!1,validator:function(e){return!0===e}},{name:"fighterNewsletter",value:!1,isValid:!1,validator:cO}],$Te={name:"StafetDeltagSomFighterStepOne",components:{StafetActions:vSe,FormInputTextField:mE,FormCheckbox:dB},props:RK,setup:function(e){var t=Kt(!1),n=Kt(""),o=Kt(""),r=Kt(""),a=Kt(""),i=Kt(!1),l=Kt(!1),s=Kt({firstName:!1,lastName:!1,email:!1,phone:!1}),c=function(e){WTe.find(function(t){return t.name===e}).validator=function(e){return!0}};Lr(function(){e.userData&&(e.userData.firstName&&(n.value=e.userData.firstName,s.value.firstName=!0,c("firstName")),e.userData.lastName&&(o.value=e.userData.lastName,s.value.lastName=!0,c("lastName")),e.userData.email&&(r.value=e.userData.email,s.value.email=!0,c("email")),e.userData.phoneNumber&&(a.value=e.userData.phoneNumber,s.value.phone=!0,c("phone")));var i=rSe(pTe.STAFET_JOIN_AS_FIGHTER);u(i?[{name:"firstTimeFighter",value:Mg(i,"firstTimeFighter")},{name:"firstName",value:Mg(i,"firstName")},{name:"lastName",value:Mg(i,"lastName")},{name:"email",value:Mg(i,"email")},{name:"phone",value:Mg(i,"phone")},{name:"consent",value:Mg(i,"consent")},{name:"fighterNewsletter",value:Mg(i,"fighterNewsletter")}]:[{name:"firstTimeFighter",value:t.value},{name:"firstName",value:n.value},{name:"lastName",value:o.value},{name:"email",value:r.value},{name:"phone",value:a.value}])});var u=function(e){e.forEach(function(e){if(void 0!==e.value&&null!==e.value)switch(WTe.find(function(t){return t.name===e.name}).value=e.value,e.name){case"firstTimeFighter":return void(t.value=e.value);case"firstName":return void(n.value=e.value);case"lastName":return void(o.value=e.value);case"email":return void(r.value=e.value);case"phone":return void(a.value=e.value);case"consent":return void(i.value=e.value);case"fighterNewsletter":return void(l.value=e.value);default:return}})},d=function(e,t){WTe.find(function(t){return t.name===e}).value=t;var n=WTe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},p=bl(function(){return h("firstName",n.value)}),f=bl(function(){return h("lastName",o.value)}),m=bl(function(){return h("email",r.value)}),g=bl(function(){return h("phone",a.value)}),h=function(t,n){return!WTe.find(function(e){return e.name===t}).validator(n)&&e.displayInputError},b=bl(function(){return!1===i.value&&e.displayInputError}),v=bl(function(){return WTe});return{firstTimeFighter:t,firstName:n,lastName:o,email:r,phone:a,consent:i,fighterNewsletter:l,readOnly:s,showFirstNameErrorMessage:p,showLastNameErrorMessage:f,showEmailErrorMessage:m,showPhoneErrorMessage:g,showConsentErrorMessage:b,stepModel:v,setFirstTimeFighter:function(e){t.value=e,d("firstTimeFighter",e)},setConsent:function(e){i.value=e,d("consent",e)},setFighterNewsletter:function(e){l.value=e,d("fighterNewsletter",e)},validateField:d}}},YTe=(0,Hb.A)($Te,[["render",function(e,t,n,o,r,a){var i=qr("FormCheckbox"),l=qr("FormInputTextField"),s=qr("StafetActions");return Ai(),Si("article",jTe,[Mi("h2",HTe,fe(e.labels.yourInformationTitle),1),Mi("div",qTe,[Ni(i,{fieldName:"firstTimeFighter",modelValue:e.firstTimeFighter.toString(),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstTimeFighter=t}),label:e.labels.yourInformationFirstTimeFighterBoolLabel,onChangeCallback:function(t){return e.setFirstTimeFighter(t.target.checked)}},null,8,["modelValue","label","onChangeCallback"]),Mi("div",GTe,[Ni(l,{fieldName:"firstName",modelValue:e.firstName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.firstName=t}),label:e.labels.yourInformationFirstNameLabel,isRequired:!0,readOnly:e.readOnly.firstName,isValidationError:e.showFirstNameErrorMessage,errorMessageLabel:e.labels.yourInformationFirstNameErrorMessage,onChangeCallback:function(t){return e.validateField("firstName",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(l,{fieldName:"lastName",modelValue:e.lastName,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.lastName=t}),label:e.labels.yourInformationLastNameLabel,isRequired:!0,readOnly:e.readOnly.lastName,isValidationError:e.showLastNameErrorMessage,errorMessageLabel:e.labels.yourInformationLastNameErrorMessage,onChangeCallback:function(t){return e.validateField("lastName",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"])]),Mi("div",KTe,[Ni(l,{fieldName:"email",modelValue:e.email,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.email=t}),label:e.labels.yourInformationEmailLabel,isRequired:!0,readOnly:e.readOnly.email,isValidationError:e.showEmailErrorMessage,errorMessageLabel:e.labels.yourInformationEmailErrorMessage,onChangeCallback:function(t){return e.validateField("email",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(l,{fieldName:"phone",modelValue:e.phone,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.phone=t}),readOnly:e.readOnly.phone,label:e.labels.yourInformationPhoneNumberLabel,isValidationError:e.showPhoneErrorMessage,errorMessageLabel:e.labels.yourInformationPhoneNumberErrorMessage,onChangeCallback:function(t){return e.validateField("phone",t.target.value)}},null,8,["modelValue","readOnly","label","isValidationError","errorMessageLabel","onChangeCallback"])]),Ni(i,{fieldName:"
2consent",modelValue:e.consent.toString(),"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.consent=t}),label:e.labels.yourInformationConsentBoolLabel,isRichText:!0,isRequired:!0,isValidationError:e.showConsentErrorMessage,errorMessageLabel:e.labels.yourInformationConsentBoolErrorMessage,onChangeCallback:function(t){return e.setConsent(t.target.checked)}},null,8,["modelValue","label","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(i,{fieldName:"fighterNewsletter",modelValue:e.fighterNewsletter.toString(),"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.fighterNewsletter=t}),label:e.labels.yourInformationFighterNewsletterBoolLabel,onChangeCallback:function(t){return e.validateField("fighterNewsletter",t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])]),e.loggedIn?(Ai(),Si("a",{key:0,href:e.redirectToEditProfile,class:"kb-link"},fe(e.editProfileLinkText),9,ZTe)):zi("v-if",!0),Ni(s,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationNextStep1},null,8,["nextStepCallback","nextStepLabel"])])}]]),JTe=YTe;var XTe={class:"kb-stafet-step kb-stafet-deltag-som-fighter-step-two kb-optimizely-forms"},QTe={class:"kb-stafet-step__title"},eIe={class:"kb-stafet-step__description"},tIe={class:"kb-stafet-step__input-wrapper"},nIe={class:"kb-stafet-step__title"},oIe={class:"kb-stafet-step__description"},rIe={class:"kb-stafet-step__input-wrapper"};const aIe=[{name:"tshirtSize",value:0,isValid:!1,validator:tE},{name:"participateInFreeLunch",value:!1,isValid:!1,validator:cO}],iIe={name:"StafetDeltagSomFighterStepTwo",components:{StafetActions:vSe,FormInputDropdown:XB,FormCheckbox:dB},props:RK,setup:function(e){var t=Kt(""),n=Kt(!1),o=bl(function(){var t=[];
2return e.tshirtSizes.forEach(function(e){t.push({name:e.displayName,value:e.value})}),t});Lr(function(){var e=rSe(pTe.STAFET_JOIN_AS_FIGHTER);e&&r([{name:"tshirtSize",value:Mg(e,"tshirtSize")},{name:"participateInFreeLunch",value:Mg(e,"participateInFreeLunch")}])});var r=function(e){e.forEach(function(e){if(void 0!==e.value&&null!==e.value)switch(aIe.find(function(t){return t.name===e.name}).value=e.value,e.name){case"tshirtSize":return void(t.value=e.value);case"participateInFreeLunch":return void(n.value=e.value);default:return}})},a=function(e,t){aIe.find(function(t){return t.name===e}).value=t;var n=aIe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},i=bl(function(){return!tE(t.value)&&e.displayInputError}),l=bl(function(){return aIe});return{tshirtSize:t,tshirtSizes:o,participateInFreeLunch:n,stepModel:l,validateField:a,setParticipateInFreeLunch:function(e){n.value=e,a("participateInFreeLunch",e)},setTshirtSize:function(e){t.value=e,a("tshirtSize",e)},showTshirtSizeErrorMessage:i}}},lIe=(0,Hb.A)(iIe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputDropdown"),l=qr("FormCheckbox"),s=qr("StafetActions");return Ai(),Si("article",XTe,[Mi("div",null,[Mi("h2",QTe,fe(e.labels.selectYourFighterTshirtTitle),1),Mi("p",eIe,fe(e.labels.selectYourFighterTshirtDescription),1)]),Mi("div",tIe,[Ni(i,{fieldName:"tshirtSize",modelValue:e.tshirtSize,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.tshirtSize=t}),selectOptions:e.tshirtSizes,placeholder:e.labels.selectYourFighterTshirtLabel,label:e.labels.selectYourFighterTshirtLabel,isRequired:!0,isValidationError:e.showTshirtSizeErrorMessage,errorMessageLabel:e.labels.selectYourFighterTshirtErrorMessage,onChangeCallback:function(t){return e.setTshirtSize(t.target.value)}},null,8,["modelValue","selectOptions","placeholder","label","isValidationError","errorMessageLabel","onChangeCallback"])]),Mi("div",null,[Mi("h2",nIe,fe(e.labels.fighterArrangementTitle),1),Mi("p",oIe,fe(e.labels.fighterArrangementDescription),1)]),Mi("div",rIe,[Ni(l,{fieldName:"participateInFreeLunch",modelValue:e.participateInFreeLunch.toString(),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.participateInFreeLunch=t}),label:e.labels.fighterArrangementBoolLabel,onChangeCallback:function(t){return e.setParticipateInFreeLunch(t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])]),Ni(s,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationNextStep2,previousStepCallback:e.previousStepCallback,previousStepLabel:e.labels.formNavigationPreviousStep},null,8,["nextStepCallback","nextStepLabel","previousStepCallback","previousStepLabel"])])}]]),sIe=lIe;var cIe={class:"kb-stafet-step kb-stafet-deltag-som-fighter-step-three kb-optimizely-forms"},uIe={class:"kb-stafet-step__title"},dIe={class:"kb-stafet-step__description"},pIe={class:"kb-stafet-step__input-wrapper"};const fIe=[{name:"joinATeam",value:!1,isValid:!1,validator:cO},{name:"isChild",value:!1,isValid:!1,validator:cO},{dependentField:"joinATeam",dependentFieldValue:!1,dependentFieldValidator:function(e){return!1===e},name:"teamName",value:"",isValid:!1,validator:tE},{name:"newsletter",value:!1,isValid:!1,validator:cO}],mIe={name:"StafetDeltagSomFighterStepThree",components:{FormCheckbox:dB,FormInputDropdown:XB,StafetPayment:zSe,StafetActions:vSe},props:RK,setup:function(e){var t=Af(),n=Kt(!1),o=Kt(!1),r=Kt(""),a=Kt(!1),i=bl(function(){return t.state.stafet.basket}),l=bl(function(){return t.state.stafet.basketTotalPrice}),s=bl(function(){var t=[];return e.holdList&&e.holdList.forEach(function(e){return t.push({name:e.name,value:e.holdKode})}),t});Lr(function(){var n,o=rSe(pTe.STAFET_JOIN_AS_FIGHTER);o&&c([{name:"joinATeam",value:Mg(o,"joinATeam")},{name:"isChild",value:Mg(o,"isChild")},{name:"teamName",value:Mg(o,"teamName")},{name:"newsletter",value:null!==(n=Mg(o,"newsletter"))&&void 0!==n?n:a.value}]),t.dispatch("donation/teams",{stafetId:e.stafetId})});var c=function(e){e.forEach(function(e){if(void 0!==e.value&&null!==e.value)switch(fIe.find(function(t){return t.name===e.name}).value=e.value,e.name){case"joinATeam":return void(n.value=e.value);case"isChild":return void(o.value=e.value);case"teamName":return void(r.value=e.value);case"newsletter":return void(a.value=e.value);default:return}})},u=function(e,t){c([{name:e,value:t}]);
2var n=fIe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},d=bl(function(){return fIe});return{joinATeam:n,isChild:o,teamName:r,teams:s,basket:i,basketTotalPrice:l,stepModel:d,setJoinATeam:function(o){n.value=o,t.dispatch("stafet/userInputs",{inputs:[{name:"joinATeam",isValid:!0,value:n.value}]}),u("joinATeam",o),e.updateBasketCallback&&e.updateBasketCallback()},newsletter:a,setIsChild:function(n){o.value=n,t.dispatch("stafet/userInputs",{inputs:[{name:"isChild",isValid:!0,value:o.value}]}),e.updateBasketCallback&&e.updateBasketCallback(),u("isChild",n)},validateField:u,handleErrorMessage:function(t){var n=fIe.find(function(e){return e.name===t});return!(null!=n&&n.isValid)&&e.displayInputError}}}},gIe=mIe,hIe=(0,Hb.A)(gIe,[["render",function(e,t,n,o,r,a){var i=qr("FormCheckbox"),l=qr("FormInputDropdown"),s=qr("StafetPayment"),c=qr("StafetActions");return Ai(),Si("article",cIe,[Mi("div",null,[Mi("h2",uIe,fe(e.labels.fighterJoinHoldTitle),1),Mi("p",dIe,fe(e.labels.fighterJoinHoldDescription),1)]),Mi("div",pIe,[Ni(i,{fieldName:"joinATeam",modelValue:e.joinATeam.toString(),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.joinATeam=t}),label:e.labels.fighterJoinHoldCheckboxLabel,errorMessageLabel:e.labels.fighterJoinHoldCheckboxErrorMessage,onChangeCallback:function(t){return e.setJoinATeam(t.target.checked)}},null,8,["modelValue","label","errorMessageLabel","onChangeCallback"]),Ni(i,{fieldName:"isChild",modelValue:e.isChild.toString(),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.isChild=t}),label:e.labels.fighterIsChildCheckboxLabel,onChangeCallback:function(t){return e.setIsChild(t.target.checked)}},null,8,["modelValue","label","onChangeCallback"]),e.joinATeam?(Ai(),Ti(l,{key:0,modelValue:e.teamName,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.teamName=t}),label:e.labels.fighterJoinHoldDropdownLabel,placeholder:e.labels.fighterJoinHoldDropdownLabel,isRequired:!0,fieldName:"teamName",selectOptions:e.teams,onChangeCallback:function(t){return e.validateField("teamName",t.target.value)},errorMessageLabel:e.labels.fighterJoinHoldDropdownErrorMessage,isValidationError:e.handleErrorMessage("teamName")},null,8,["modelValue","label","placeholder","selectOptions","onChangeCallback","errorMessageLabel","isValidationError"])):zi("v-if",!0),e.joinATeam?(Ai(),Ti(i,{key:1,fieldName:"newsletter",modelValue:e.newsletter.toString(),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.newsletter=t}),label:e.labels.yourInformationNewsletterBoolLabel,onChangeCallback:function(t){return e.validateField("newsletter",t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])):zi("v-if",!0)]),Ni(s,{title:e.labels.fighterJoinHoldTotalTitle,basket:e.basket,inTotalLabel:e.labels.fighterJoinHoldTotal,inTotalPrice:e.basketTotalPrice.toString()},null,8,["title","basket","inTotalLabel","inTotalPrice"]),Ni(c,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationLastStep,previousStepCallback:e.previousStepCallback,previousStepLabel:e.labels.formNavigationPreviousStep},null,8,["nextStepCallback","nextStepLabel","previousStepCallback","previousStepLabel"])])}]]),bIe=hIe,vIe=[{step:1,name:"StafetDeltagSomFighterStepOne",completed:!1,label:"formStepLabel1",hidden:!1},{step:2,name:"StafetDeltagSomFighterStepTwo",completed:!1,label:"formStepLabel2",hidden:!1},{step:3,name:"StafetDeltagSomFighterStepThree",completed:!1,label:"formStepLabel3",hidden:!1},{step:4,name:"FormStepSubmitting",completed:!1,label:"",hidden:!0}];function yIe(e,t,n,o,r){var a=[],i=e.find(function(e){return"isChild"===e.name}),l=e.find(function(e){return"joinATeam"===e.name});a.push({label:t.fighterJoinHoldTotalFighter,amount:"",price:"0 kr.",intPrice:0}),l&&l.value&&(i&&i.value?a.push({label:t.fighterJoinHoldTotalDeltagergebyr,amount:"",price:"".concat(r," kr."),intPrice:r}):a.push({label:t.fighterJoinHoldTotalDeltagergebyr,amount:"",price:"".concat(o," kr."),intPrice:o})),n.dispatch("stafet/basket",{basket:a})}function _Ie(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return AIe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(AIe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,AIe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,AIe(d,"constructor",c),AIe(c,"constructor",s),s.displayName="GeneratorFunction",AIe(c,r,"GeneratorFunction"),AIe(d),AIe(d,r,"Generator"),AIe(d,o,function(){return this}),AIe(d,"toString",function(){return"[object Generator]"}),(_Ie=function(){return{w:a,m:p}})()}function AIe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}AIe=function(e,t,n,o){function a(t,n){AIe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},AIe(e,t,n,o)}function kIe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const xIe={name:"StafetDeltagSomFighterFlow",components:{StafetHeader:MSe,FormStepSubmitting:qK,StafetDeltagSomFighterStepOne:JTe,StafetDeltagSomFighterStepTwo:sIe,StafetDeltagSomFighterStepThree:bIe},props:{stafetId:{type:String,required:!0},tshirtSizes:{type:Array,required:!1,default:[]},donationAmount:{type:Array,required:!1,default:[]},loggedIn:{type:Boolean,required:!1,default:!1},redirectToEditProfile:{type:String,required:!1,default:""},editProfileLinkText:{type:String,required:!1,default:""},holdList:{type:Array,required:!1,default:[]},userData:{type:Object,required:!1,default:{}},adultPrice:{type:Number,required:!0},childPrice:{type:Number,required:!0}},setup:function(e){var t=Af(),n=Kt(!1),o=bl(function(){return t.state.labels.collections.SFLJoinAsFighterLabels}),r=bl(function(){return t.state.stafet.isSubmitting}),a=bl(function(){return OTe(s.value,c.value,o.value)}),i=LTe(t.state.stafet),l=i.userInputs,s=i.steps,c=i.currentStep,u=i.currentStepName;Dr(function(){t.dispatch("stafet/stafetId",{stafetId:e.stafetId}),t.dispatch("stafet/steps",{steps:vIe})});var d=function(){var e,n=(e=_Ie().m(function e(){return _Ie().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.dispatch("stafet/joinAsAFighterSubmit");case 1:return e.a(2,"submitted")}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){kIe(a,o,r,i,l,"next",e)}function l(e){kIe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();return{labels:o,headerSteps:a,currentStepName:u,displayInputError:n,isSubmitting:r,nextStepCallback:function(r){r.forEach(function(e){if(e.dependentField){var t=r.find(function(t){return t.name===e.dependentField});t&&(e.dependentFieldValue=t.value)}dTe(e)}),r.every(function(e){return e.isValid})?(n.value=!1,function(){s.value.find(function(e){return e.step===c.value}).completed=!0,t.dispatch("stafet/steps",{steps:s.value});var e=s.value.filter(function(e){return!e.completed});e.length>0&&t.dispatch("stafet/currentStep",{step:e[0].step})}(),t.dispatch("stafet/userInputs",{inputs:r}),lSe(pTe.STAFET_JOIN_AS_FIGHTER,r),yIe(l.value,o.value,t,e.adultPrice,e.childPrice),scrollTo(0,0)):(n.value=!0,pN())},previousStepCallback:function(){c.value>1&&(t.dispatch("stafet/currentStep",{step:c.value-1}),s.value.find(function(e){return e.step===c.value}).completed=!1,t.dispatch("stafet/steps",{steps:s.value}),scrollTo(0,0))},submitCallback:d,updateBasketCallback:function(){yIe(l.value,o.value,t,e.adultPrice,e.childPrice)}}}},wIe=xIe,CIe=(0,Hb.A)(wIe,[["render",function(e,t,n,o,r,a){var i=qr("StafetHeader");return Ai(),Si("article",zTe,[Ni(i,{steps:e.headerSteps,title:e.labels.title,description:e.labels.description},null,8,["steps","title","description"]),Mi("div",UTe,[(Ai(),Ti(Kr(e.currentStepName),{labels:e.labels,nextStepCallback:e.nextStepCallback,previousStepCallback:e.previousStepCallback,displayInputError:e.displayInputError,submitCallback:e.submitCallback,updateBasketCallback:e.updateBasketCallback,stafetId:e.stafetId,tshirtSizes:e.tshirtSizes,loggedIn:e.loggedIn,redirectToEditProfile:e.redirectToEditProfile,editProfileLinkText:e.editProfileLinkText,holdList:e.holdList,userData:e.userData,isSubmitting:e.isSubmitting},null,8,["labels","nextStepCallback","previousStepCallback","displayInputError","submitCallback","updateBasketCallback","stafetId","tshirt
2Sizes","loggedIn","redirectToEditProfile","editProfileLinkText","holdList","userData","isSubmitting"]))])])}]]);function EIe(e){return EIe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EIe(e)}function SIe(e,t,n){return(t=function(e){var t=function(e){if("object"!=EIe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=EIe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==EIe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TIe={class:"kb-stafet-donation-flow"},IIe={class:"kb-stafet-donation-flow__step"},BIe={class:"kb-stafet-step kb-stafet-donation-step-one kb-optimizely-forms"},OIe={class:"kb-stafet-step__title"},LIe={class:"kb-stafet-step__input-wrapper"},DIe={class:"kb-stafet-step__input-wrapper"},MIe={class:"kb-stafet-donation-step-one__donation-description"},NIe={class:"kb-support-selector kb-optimizely-forms"},PIe={key:0,class:"kb-support-selector__group"},RIe=["for"],FIe=["name","id","title","aria-required","onChange","onBlur"],VIe=["value","selected"],zIe=["value","selected"],UIe={key:0,class:"kb-forms Form__Element__ValidationError"};const jIe=Object.freeze({NONE:"none",TEAM:"team",STAFET:"stafet",DELTAGER:"participant"});function HIe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return qIe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(qIe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,qIe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,qIe(d,"constructor",c),qIe(c,"constructor",s),s.displayName="GeneratorFunction",qIe(c,r,"GeneratorFunction"),qIe(d),qIe(d,r,"Generator"),qIe(d,o,function(){return this}),qIe(d,"toString",function(){return"[object Generator]"}),(HIe=function(){return{w:a,m:p}})()}function qIe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}qIe=function(e,t,n,o){function a(t,n){qIe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},qIe(e,t,n,o)}function GIe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return KIe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KIe(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KIe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ZIe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const WIe={name:"SupportSelector",props:{stafetId:{type:String,required:!0},labels:{type:Object,required:!0},displayInputError:{type:Boolean,required:!1,default:!1},onChangeCallback:{type:Function,required:!0},holdList:{type:Array,required:!1,default:[]}},setup:function(e){var t=Af(),n=bl(function(){return t.state.donation.donationFor}),o=bl(function(){return t.state.donation.donationTeam}),r=bl(function(){return t.state.donation.donationParticipant}),a=bl(function(){var n=[];return e.holdList.length>0?e.holdList.forEach(function(e){return n.push({name:e.name,value:e.holdKode,selected:e.holdKode===o.value})}):t.state.donation.teams.map(function(e){n.push({name:e.name,value:e.id,selected:e.id===o.value})}),n}),i=bl(function(){var e=[];return t.state.donation.participants.map(function(t){var n;e.push({selected:t.id===r.value,name:"".concat(t.firstName," ").concat(null!==(n=t.lastName)&&void 0!==n?n:""),value:t.id})}),e}),l=bl(function(){return n.value===jIe.TEAM}),s=bl(function(){return n.value===jIe.DELTAGER}),c=bl(function(){return function(e){return e!==jIe.NONE}(n.value)}),u=bl(function(){return function(e,t){return e===jIe.STAFET||""!==t}(n.value,o.value)}),d=bl(function(){return function(e,t,n){return e!==jIe.DELTAGER||""!==t&&""!==n}(n.value,o.value,r.value)});bo([n,o],function(){var e,n=(e=HIe().m(function e(n){var o,r,a;return HIe().w(function(e){for(;;)switch(e.n){case 0:if(o=GIe(n,2),r=o[0],a=o[1],r===jIe.TEAM||r===jIe.DELTAGER){e.n=2;break}return e.n=1,t.dispatch("donation/participants");case 1:case 3:return e.a(2);case 2:return e.n=3,t.dispatch("donation/participants",{teamId:""!==a?a:void 0})}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){ZIe(a,o,r,i,l,"next",e)}function l(e){ZIe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}(),{immediate:!0});var p=function(e){t.dispatch("donation/donationFor",{donationFor:e.target.value})},f=function(e){t.dispatch("donation/participants"),t.dispatch("donation/donationParticipant",{participant:""}),t.dispatch("donation/donationTeam",{team:e.target.value})},m=function(e){t.dispatch("donation/donationParticipant",{participant:e.target.value})},g=bl(function(){return[{id:"support-selector",label:e.labels.yourSupportSelectorDropdownLabel,shown:!0,required:!0,isValid:c.value,errorMessage:e.labels.yourSupportSelectorDropdownErrorMessage,handler:p,defaultOption:{name:e.labels.yourSupportSelectorDropdownPlaceholder,value:jIe.NONE},options:[{name:e.labels.yourSupportSelectorDropdownOptionStafet,value:jIe.STAFET,selected:jIe.STAFET===n.value},{name:e.labels.yourSupportSelectorDropdownOptionHold,value:jIe.TEAM,selected:jIe.TEAM===n.value},{name:e.labels.yourSupportSelectorDropdownOptionDeltager,value:jIe.DELTAGER,selected:jIe.DELTAGER===n.value}]},{id:"team-selector",label:e.labels.yourSupportSelectorDropdownHoldLabel,shown:l.value||s.value,required:!0,isValid:u.value,errorMessage:e.labels.yourSupportSelectorDropdownHoldErrorMessage,handler:f,defaultOption:{name:e.labels.yourSupportSelectorDropdownHoldPlaceholder,value:""},options:a.value},{id:"participant-selector",label:e.labels.yourSupportSelectorDropdownDeltagerLabel,shown:s.value,required:!0,isValid:d.value,errorMessage:e.labels.yourSupportSelectorDropdownDeltagerErrorMessage,handler:m,defaultOption:{name:e.labels.yourSupportSelectorDropdownDeltagerPlaceholder,value:""},options:i.value}]}),h=function(){e.onChangeCallback&&e.onChangeCallback({donationFor:n.value,donationTeam:o.value,donationParticipant:r.value,isValid:c.value&&u.value&&d.value})};return Dr(function(){h()}),Nr(function(){h()}),{supportSelectorConfig:g,donationFor:n,donationTeam:o,donationParticipant:r}}},$Ie=WIe,YIe=(0,Hb.A)($Ie,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",NIe,[(Ai(!0),Si(gi,null,Yr(e.supportSelectorConfig,function(t,n){return Ai(),Si(gi,{key:n},[t.shown?(Ai(),Si("div",PIe,[Mi("div",{class:Y(["kb-support-selector__group__select Form__Element FormSelection",t.required?"ValidationRequired":""])},[Mi("label",{for:t.id,class:"Form__Element__Caption"},fe(t.label),9,RIe),Mi("select",{name:t.id,id:t.id,title:t.label,"aria-required":t.required,onChange:t.handler,onBlur:t.validator,class:Y(!t.isValid&&e.displayInputError?"validation-error":"")},[Mi("option",{value:t.defaultOption.value,selected:t.defaultOption.selected},fe(t.defaultOption.name),9,VIe),(Ai(!0),Si(gi,null,Yr(t.options,function(e,t){return Ai(),Si("option",{key:t,value:e.value,selected:e.selected},fe(e.name),9,zIe)}),128))],42,FIe)],2),!t.isValid&&e.displayInputError?(Ai(),Si("span",UIe,fe(t.errorMessage),1)):zi("v-if",!0)])):zi("v-if",!0)],64)}),128))])}]]),JIe={name:"StafetDonationStepOne",components:{DonationAmountPicker:gJ,SupportSelector:YIe,FormInputTextarea:_D,FormRadioGroup:sO,StafetActions:vSe},props:RK,setup:function(e){var t=Af(),n=Object.freeze({PRIVATE:"Privat",COMPANY:"Virksomhed"}),o=Kt(n.PRIVATE),r=Kt(null),a=Kt({}
2),i=Kt(""),l=[{value:n.PRIVATE,label:e.labels.yourSupportPrivateSupportRadioLabel},{value:n.COMPANY,label:e.labels.yourSupportCompanySupportRadioLabel}];Lr(function(){var e=rSe(pTe.STAFET_DONATION);e&&(Mg(e,"type")&&(o.value=Mg(e,"type")),Mg(e,"amount")&&(r.value=Mg(e,"amount")),Mg(e,"donationFor")&&t.dispatch("donation/donationFor",{donationFor:Mg(e,"donationFor")}),Mg(e,"donationTeam")&&t.dispatch("donation/donationTeam",{team:Mg(e,"donationTeam").toString()}),Mg(e,"donationParticipant")&&t.dispatch("donation/donationParticipant",{participant:Mg(e,"donationParticipant")}),Mg(e,"comment")&&(i.value=Mg(e,"comment")))});var s=function(t){return t&&t>=e.donationMinimumAmount&&t<=99999999},c=bl(function(){return!s(r.value)&&e.displayInputError}),u=bl(function(){return[{name:"amount",value:parseInt(r.value),isValid:!1,validator:s},{name:"donationFor",value:a.value.donationFor,isValid:a.value.isValid,validator:function(){return a.value.isValid}},{name:"holdKode",value:a.value.donationTeam,isValid:a.value.isValid,validator:function(){return a.value.isValid}},{name:"deltagerId",value:a.value.donationParticipant,isValid:a.value.isValid,validator:function(){return a.value.isValid}},{name:"comment",value:i.value,isValid:!0,validator:function(){return!0}},{name:"type",value:o.value,isValid:!0,validator:tE}]});return{radioOptions:l,donationType:o,donationAmount:r,donationAmounts:e.donationAmounts,comment:i,showDonationAmountErrorMessage:c,stepModel:u,setDonationAmount:function(e){r.value=e},updateSupportSelector:function(e){a.value=e},updateComment:function(e){i.value=e},updateDonationType:function(e){o.value=e}}}},XIe=JIe,QIe=(0,Hb.A)(XIe,[["render",function(e,t,n,o,r,a){var i=qr("FormRadioGroup"),l=qr("SupportSelector"),s=qr("DonationAmountPicker"),c=qr("FormInputTextarea"),u=qr("StafetActions");return Ai(),Si("article",BIe,[Mi("h2",OIe,fe(e.labels.yourSupportTitle),1),Mi("div",LIe,[Ni(i,{radioOptions:e.radioOptions,modelValue:e.donationType,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.donationType=t}),fieldName:"donationType",label:"",errorMessageLabel:e.labels.yourSupportPrivateSupportRadioErrorMessage,onChange:t[1]||(t[1]=function(t){return e.updateDonationType(t.target.value)})},null,8,["radioOptions","modelValue","errorMessageLabel"])]),Ni(l,{stafetId:e.stafetId,labels:e.labels,displayInputError:e.displayInputError,onChangeCallback:e.updateSupportSelector,holdList:e.holdList},null,8,["stafetId","labels","displayInputError","onChangeCallback","holdList"]),Mi("div",DIe,[Mi("label",MIe,fe(e.labels.donationDescriptionLabel),1),Ni(s,{type:"stafet",donationAmounts:e.donationAmounts,minimumAmount:e.donationMinimumAmount,onAmountChangeCallback:e.setDonationAmount,displayInputError:e.showDonationAmountErrorMessage,errorMessage:e.labels.yourSupportAmountErrorMessage,initialValue:e.donationAmount,customDonationButtonLabel:e.labels.yourSupportCustomDonationButtonLabel,validationCustomDonationFormatLabel:e.labels.validationCustomDonationFormat,validationCustomDonationAmountLabel:e.labels.validationCustomDonationAmount},null,8,["donationAmounts","minimumAmount","onAmountChangeCallback","displayInputError","errorMessage","initialValue","customDonationButtonLabel","validationCustomDonationFormatLabel","validationCustomDonationAmountLabel"]),Ni(c,{fieldName:"comment",modelValue:e.comment,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.comment=t}),label:e.labels.yourSupportCommentLabel,maxlength:250,placeholder:e.labels.yourSupportCommentPlaceholder,errorMessageLabel:e.labels.yourSupportCommentErrorMessage,onInput:t[3]||(t[3]=function(t){return e.updateComment(t.target.value)})},null,8,["modelValue","label","placeholder","errorMessageLabel"])]),Ni(u,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationNextStep1},null,8,["nextStepCallback","nextStepLabel"])])}]]);var eBe={class:"kb-stafet-step kb-stafet-donation-step-two kb-optimizely-forms"},tBe={class:"kb-stafet-step kb-stafet-donation-step-privat kb-optimizely-forms"},nBe={class:"kb-stafet-step__title"},oBe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},rBe={class:"kb-stafet-step__input-wrapper"};const aBe=[{name:"firstName",value:"",isValid:!1,validator:rE},{name:"lastName",value:"",isValid:!1,validator:rE},{name:"email",value:"",isValid:!1,validator:nE},{name:"isAnonymous",value:!1,isValid:!1,validator:cO}
2,{name:"taxDeduction",value:!1,isValid:!1,validator:cO},{dependentField:"taxDeduction",dependentFieldValue:!1,dependentFieldValidator:function(e){return!1===e},name:"cpr",value:"",isValid:!1,validator:eK}],iBe={name:"StafetDonationStepPrivat",components:{FormInputTextField:mE,FormCheckbox:dB,StafetPayment:zSe,StafetActions:vSe},props:RK,setup:function(e){var t,n,o,r,a,i,l=Af(),s=Kt(null!==(t=null===(n=e.userData)||void 0===n?void 0:n.firstName)&&void 0!==t?t:""),c=Kt(null!==(o=null===(r=e.userData)||void 0===r?void 0:r.lastName)&&void 0!==o?o:""),u=Kt(null!==(a=null===(i=e.userData)||void 0===i?void 0:i.email)&&void 0!==a?a:""),d=Kt(!1),p=Kt(!1),f=Kt(""),m=bl(function(){return l.state.donation.basket}),g=bl(function(){return l.state.donation.basketTotalPrice});Lr(function(){var e=rSe(pTe.STAFET_DONATION);e&&(Mg(e,"firstName")&&(s.value=Mg(e,"firstName")),Mg(e,"lastName")&&(c.value=Mg(e,"lastName")),Mg(e,"email")&&(u.value=Mg(e,"email")),Mg(e,"isAnonymous")&&(d.value=Mg(e,"isAnonymous")),Mg(e,"taxDeduction")&&(p.value=Mg(e,"taxDeduction")),Mg(e,"cpr")&&(f.value=Mg(e,"cpr"))),_("lastName",c.value),_("email",u.value),_("isAnonymous",d.value),_("taxDeduction",p.value),_("cpr",f.value),_("firstName",s.value)});var h=bl(function(){return!rE(s.value)&&e.displayInputError}),b=bl(function(){return!rE(c.value)&&e.displayInputError}),v=bl(function(){return!nE(u.value)&&e.displayInputError}),y=bl(function(){return!eK(f.value)&&e.displayInputError}),_=function(e,t){aBe.find(function(t){return t.name===e}).value=t;var n=aBe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},A=bl(function(){return aBe});return{firstName:s,lastName:c,email:u,isAnonymous:d,taxDeduction:p,cpr:f,basket:m,basketTotalPrice:g,stepModel:A,validateField:_,setTaxDeduction:function(e){p.value=e,_("taxDeduction",e)},showFirstNameErrorMessage:h,showLastNameErrorMessage:b,showEmailErrorMessage:v,showCprErrorMessage:y}}},lBe=iBe,sBe=(0,Hb.A)(lBe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("FormCheckbox"),s=qr("StafetPayment"),c=qr("StafetActions");return Ai(),Si("article",tBe,[Mi("h2",nBe,fe(e.labels.yourSupportTitle),1),Mi("div",null,[Mi("div",oBe,[Ni(i,{modelValue:e.firstName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstName=t}),fieldName:"firstName",label:e.labels.yourInformationFirstNameLabel,isRequired:!0,onChangeCallback:function(t){return e.validateField("firstName",t.target.value)},errorMessageLabel:e.labels.yourInformationFirstNameErrorMessage,isValidationError:e.showFirstNameErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"]),Ni(i,{modelValue:e.lastName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.lastName=t}),fieldName:"lastName",label:e.labels.yourInformationLastNameLabel,isRequired:!0,onChangeCallback:function(t){return e.validateField("lastName",t.target.value)},errorMessageLabel:e.labels.yourInformationLastNameErrorMessage,isValidationError:e.showLastNameErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"])]),Ni(i,{modelValue:e.email,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.email=t}),fieldName:"email",label:e.labels.yourInformationEmailLabel,isRequired:!0,type:"email",errorMessageLabel:e.labels.yourInformationEmailErrorMessage,onChangeCallback:function(t){return e.validateField("email",t.target.value)},isValidationError:e.showEmailErrorMessage},null,8,["modelValue","label","errorMessageLabel","onChangeCallback","isValidationError"])]),Mi("div",rBe,[Ni(l,{fieldName:"isAnonymous",modelValue:e.isAnonymous.toString(),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.isAnonymous=t}),label:e.labels.yourInformationAnonymousCheckbox,errorMessageLabel:e.labels.yourInformationAnonymousCheckboxErrorMessage,onChangeCallback:function(t){return e.validateField("isAnonymous",t.target.checked)}},null,8,["modelValue","label","errorMessageLabel","onChangeCallback"]),Ni(l,{fieldName:"taxDeduction",modelValue:e.taxDeduction.toString(),"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.taxDeduction=t}),label:e.labels.yourInformationTaxDeductionCheckbox,errorMessageLabel:e.labels.yourInformationTaxDeductionCheckboxErrorMessage,tooltipText:e.labels.yourInformationTaxDeductionCheckboxTooltip,onChangeCallback:function(t){return e.setTaxDeduction(t.target.checked)}},null,8,["modelValue","label","errorMessageLabel","tooltipText","onChangeCallback"]),e.taxDeduction?(Ai(),Ti(i,{key:0,modelValue:e.cpr,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.cpr=t}
2),fieldName:"cpr",label:e.labels.yourInformationCprLabel,isRequired:!0,maxlength:11,errorMessageLabel:e.labels.yourInformationCprErrorMessage,onChangeCallback:function(t){return e.validateField("cpr",t.target.value)},isValidationError:e.showCprErrorMessage},null,8,["modelValue","label","errorMessageLabel","onChangeCallback","isValidationError"])):zi("v-if",!0)]),Ni(s,{title:e.labels.yourInformationTotalTitle,basket:e.basket,inTotalLabel:e.labels.yourInformationTotal,inTotalPrice:e.basketTotalPrice.toString()},null,8,["title","basket","inTotalLabel","inTotalPrice"]),Ni(c,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationLastStep,previousStepCallback:function(){return e.previousStepCallback(e.stepModel)},previousStepLabel:e.labels.formNavigationPreviousStep},null,8,["nextStepCallback","nextStepLabel","previousStepCallback","previousStepLabel"])])}]]),cBe=sBe;var uBe={class:"kb-stafet-step kb-stafet-donation-step-virksomhed kb-forms"},dBe={class:"kb-stafet-step__title"},pBe={class:"kb-stafet-step__input-wrapper"},fBe={class:"kb-stafet-step__input-wrapper"},mBe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},gBe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},hBe={class:"kb-stafet-step__input-wrapper"},bBe={key:0,class:"kb-stafet-step__input-wrapper"},vBe={class:"kb-form__file-upload FormFileUpload",for:"uploadLogo"},yBe={class:"kb-form__file-upload-text-wrapper"},_Be={class:"kb-form__file-upload-text"},ABe={key:0,class:"kb-form__file-upload-text-file"},kBe={class:"kb-form__file-upload-format-types"},xBe={class:"kb-stafet-step__input-wrapper"};const wBe=[{name:"companyName",value:"",isValid:!1,validator:tE},{name:"firstName",value:"",isValid:!1,validator:rE},{name:"lastName",value:"",isValid:!1,validator:rE},{name:"email",value:"",isValid:!1,validator:nE},{name:"phone",value:"",isValid:!1,validator:function(e){return""===e||oE(e)}},{name:"companyAddress",value:"",isValid:!1,validator:tE},{name:"companyPostalCode",value:"",isValid:!1,validator:tE},{name:"companyCity",value:"",isValid:!1,validator:tE},{name:"companyWebsite",value:"",isValid:!1,validator:function(){return!0}},{name:"companyLogo",value:[],isValid:!1,validator:function(){return!0}},{name:"isAnonymous",value:!1,isValid:!1,validator:cO},{name:"taxDeduction",value:!1,isValid:!1,validator:cO},{dependentField:"taxDeduction",dependentFieldValue:!1,dependentFieldValidator:function(e){return!1===e},name:"cvr",value:"",isValid:!1,validator:lE}],CBe={name:"StafetDonationStepVirksomhed",components:{FormInputTextField:mE,FormCheckbox:dB,StafetPayment:zSe,StafetActions:vSe,FormAddressField:tS},props:RK,setup:function(e){var t,n,o,r,a,i,l,s,c=Af(),u=Kt(""),d=Kt(null!==(t=null===(n=e.userData)||void 0===n?void 0:n.firstName)&&void 0!==t?t:""),p=Kt(null!==(o=null===(r=e.userData)||void 0===r?void 0:r.lastName)&&void 0!==o?o:""),f=Kt(null!==(a=null===(i=e.userData)||void 0===i?void 0:i.email)&&void 0!==a?a:""),m=Kt(null!==(l=null===(s=e.userData)||void 0===s?void 0:s.phone)&&void 0!==l?l:""),g=Kt(""),h=Kt(""),b=Kt(""),v=Kt(""),y=Kt([]),_=Kt(!1),A=Kt(!1),k=Kt(""),x=bl(function(){return c.state.donation.basket}),w=bl(function(){return c.state.donation.basketTotalPrice}),C=bl(function(){return c.state.donation.donationFor});Lr(function(){var e=rSe(pTe.STAFET_DONATION);
2e&&(Mg(e,"companyName")&&(u.value=Mg(e,"companyName")),Mg(e,"firstName")&&(d.value=Mg(e,"firstName")),Mg(e,"lastName")&&(p.value=Mg(e,"lastName")),Mg(e,"email")&&(f.value=Mg(e,"email")),Mg(e,"phone")&&(m.value=Mg(e,"phone")),Mg(e,"companyAddress")&&(g.value=Mg(e,"companyAddress")),Mg(e,"companyPostalCode")&&(h.value=Mg(e,"companyPostalCode")),Mg(e,"companyCity")&&(b.value=Mg(e,"companyCity")),Mg(e,"companyWebsite")&&(v.value=Mg(e,"companyWebsite")),Mg(e,"isAnonymous")&&(_.value=Mg(e,"isAnonymous")),Mg(e,"taxDeduction")&&(A.value=Mg(e,"taxDeduction")),Mg(e,"cvr")&&(k.value=Mg(e,"cvr"))),D("firstName",d.value),D("cvr",k.value),D("taxDeduction",A.value),D("isAnonymous",_.value),D("companyWebsite",v.value),D("companyAddress",g.value),D("companyPostalCode",h.value),D("companyCity",b.value),D("phone",m.value),D("email",f.value),D("lastName",p.value),D("companyName",u.value)});var E=bl(function(){return!rE(d.value)&&e.displayInputError}),S=bl(function(){return!rE(p.value)&&e.displayInputError}),T=bl(function(){return!nE(f.value)&&e.displayInputError}),I=bl(function(){return""!==m.value&&e.displayInputError&&!oE(m.value)}),B=bl(function(){return!lE(k.value)&&e.displayInputError}),O=bl(function(){return!tE(u.value)&&e.displayInputError}),L=bl(function(){return D("companyAddress",g.value),D("companyPostalCode",h.value),D("companyCity",b.value),!M(g.value,h.value,b.value)&&e.displayInputError}),D=function(e,t){wBe.find(function(t){return t.name===e}).value=t;var n=wBe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},M=function(e,t,n){return e&&t&&n},N=bl(function(){return wBe});return{companyName:u,firstName:d,lastName:p,email:f,phone:m,companyAddress:g,companyPostalCode:h,companyCity:b,companyWebsite:v,companyLogo:y,isAnonymous:_,taxDeduction:A,cvr:k,basket:x,basketTotalPrice:w,showFirstNameErrorMessage:E,showLastNameErrorMessage:S,showEmailErrorMessage:T,showPhoneErrorMessage:I,showCvrErrorMessage:B,showCompanyNameErrorMessage:O,showCompanyAddressErrorMessage:L,stepModel:N,donationFor:C,onFileChange:function(e){var t=e.target.files;y.value=t,D("companyLogo",t)},setTaxDeduction:function(e){A.value=e,D("taxDeduction",e)},validateField:D,addressValidator:M}}},EBe=CBe,SBe=(0,Hb.A)(EBe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("FormAddressField"),s=qr("FormCheckbox"),c=qr("StafetPayment"),u=qr("StafetActions");return Ai(),Si("article",uBe,[Mi("h2",dBe,fe(e.labels.yourInformationCompanyTitle),1),Mi("div",pBe,[Mi("div",fBe,[Ni(i,{modelValue:e.companyName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.companyName=t}),fieldName:"companyName",label:e.labels.yourInformationCompanyNameLabel,isRequired:!0,onChangeCallback:function(t){return e.validateField("companyName",t.target.value)},errorMessageLabel:e.labels.yourInformationCompanyNameErrorMessage,isValidationError:e.showCompanyNameErrorMessage,maxlength:50},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"])]),Mi("div",mBe,[Ni(i,{modelValue:e.firstName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.firstName=t}),fieldName:"firstName",label:e.labels.yourInformationFirstNameLabel,isRequired:!0,onChangeCallback:function(t){return e.validateField("firstName",t.target.value)},errorMessageLabel:e.labels.yourInformationFirstNameErrorMessage,isValidationError:e.showFirstNameErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"]),Ni(i,{modelValue:e.lastName,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.lastName=t}),fieldName:"lastName",label:e.labels.yourInformationLastNameLabel,isRequired:!0,onChangeCallback:function(t){return e.validateField("lastName",t.target.value)},errorMessageLabel:e.labels.yourInformationLastNameErrorMessage,isValidationError:e.showLastNameErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"])]),Mi("div",gBe,[Ni(i,{modelValue:e.email,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.email=t}),fieldName:"email",label:e.labels.yourInformationEmailLabel,isRequired:!0,onChangeCallback:function(t){return e.validateField("email",t.target.value)},errorMessageLabel:e.labels.yourInformationEmailErrorMessage,isValidationError:e.showEmailErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"]),Ni(i,{modelValue:e.phone,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.phone=t}),fieldName:"phone",label:e.labels.yourInformationPhoneNumberLabel,onChangeCallback:function(t){return e.validateField("phone",t.target.value)},errorMessageLabel:e.labels.yourInformationPhoneNumberErrorMessage,isValidationError:e.showPhoneErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"])]),Mi("div",hBe,[Ni(l,{"address-line-value":e.companyAddress,"onUpdate:addressLineValue":t[5]||(t[5]=function(t){return e.companyAddress=t}),"zip-code-value":e.companyPostalCode,"onUpdate:zipCodeValue":t[6]||(t[6]=function(t){return e.companyPostalCode=t}),"city-value":e.companyCity,"onUpdate:cityValue":t[7]||(t[7]=function(t){return e.companyCity=t}),addressPlaceholder:"",zipCodePlaceholder:"",cityPlaceholder:"",addressLabel:e.labels.yourInformationCompanyAddressLabel,zipCodeLabel:e.labels.yourInformationCompanyZipCodeLabel,cityLabel:e.labels.yourInformationCompanyCityLabel,errorMessageLabel:e.labels.yourInformationCompanyAddressErrorMessage,isValidationError:e.showCompanyAddressErrorMessage},null,8,["address-line-value","zip-code-value","city-value","addressLabel","zipCodeLabel","cityLabel","errorMessageLabel","isValidationError"]),"stafet"===e.donationFor?(Ai(),Ti(i,{key:0,modelValue:e.companyWebsite,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.companyWebsite=t}
2),fieldName:"companyWebsite",label:e.labels.yourInformationCompanyWebAddressLabel,onChangeCallback:function(t){return e.validateField("companyWebsite",t.target.value)},errorMessageLabel:e.labels.yourInformationCompanyWebAddressErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel"])):zi("v-if",!0)])]),"stafet"===e.donationFor?(Ai(),Si("div",bBe,[Mi("label",vBe,[Mi("input",{class:"kb-form__file-upload-input FormFileUpload__Input",id:"uploadLogo",type:"file",accept:"image/png, image/jpg, image/jpeg, .svg",onChange:t[9]||(t[9]=function(){return e.onFileChange&&e.onFileChange.apply(e,arguments)})},null,32),t[13]||(t[13]=Vi('<div class="kb-form__file-upload-svg"><svg viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity=".4" fill="#3C3C3C"><path d="m20.024 13.05.967-.405-.206-.481c-.84-2.002-.617-4.14.596-5.683 1.214-1.542 3.095-2.264 5.32-2.093l-1.49 1.438.73.75 2.016-1.961a1.008 1.008 0 0 0 0-1.44l-2.016-1.961-.73.75 1.396 1.357c-2.505-.133-4.674.757-6.049 2.518-1.451 1.856-1.72 4.375-.736 6.72l.203.49ZM18.141 24.419v1.046h-5.93v-1.046H.699v2.965a1.214 1.214 0 0 0 1.221 1.22h26.163a1.22 1.22 0 0 0 1.22-1.22v-2.965H18.142Zm10.116 2.965a.174.174 0 0 1-.174.174H1.92a.178.178 0 0 1-.125-.052.175.175 0 0 1-.05-.122v-1.919h9.42v1.047h8.023v-1.047h9.07v1.919ZM4.886 21.977H2.793V9.593a.174.174 0 0 1 .174-.174h14.128V8.372H2.967a1.22 1.22 0 0 0-1.22 1.221v13.43h3.139v-1.046Z"></path><path d="M28.256 23.023V9.593a1.22 1.22 0 0 0-1.22-1.22h-4.013v1.046h4.012a.174.174 0 0 1 .174.174v13.43h1.047Z"></path></g></svg></div>',1)),Mi("div",yBe,[Mi("p",_Be,fe(e.labels.yourInformationCompanyLogoLabel),1),e.companyLogo[0]?(Ai(),Si("p",ABe,fe(e.companyLogo[0]?e.companyLogo[0].name:""),1)):zi("v-if",!0),Mi("small",kBe,fe(e.labels.yourInformationCompanyLogoFileFormats),1)])])])):zi("v-if",!0),Mi("div",xBe,[Ni(s,{fieldName:"isAnonymous",modelValue:e.isAnonymous.toString(),"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.isAnonymous=t}),label:e.labels.yourInformationAnonymousCheckbox,errorMessageLabel:e.labels.yourInformationAnonymousCheckboxErrorMessage,onChangeCallback:function(t){return e.validateField("isAnonymous",t.target.checked)}},null,8,["modelValue","label","errorMessageLabel","onChangeCallback"]),Ni(s,{fieldName:"taxDeduction",modelValue:e.taxDeduction.toString(),"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.taxDeduction=t}),label:e.labels.yourInformationTaxDeductionCheckbox,errorMessageLabel:e.labels.yourInformationTaxDeductionCheckboxErrorMessage,onChangeCallback:function(t){return e.setTaxDeduction(t.target.checked)}},null,8,["modelValue","label","errorMessageLabel","onChangeCallback"]),e.taxDeduction?(Ai(),Ti(i,{key:0,modelValue:e.cvr,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.cvr=t}),fieldName:"cvr",label:e.labels.yourInformationCvrLabel,isRequired:!0,maxlength:8,errorMessageLabel:e.labels.yourInformationCvrErrorMessage,onChangeCallback:function(t){return e.validateField("cvr",t.target.value)},isValidationError:e.showCvrErrorMessage},null,8,["modelValue","label","errorMessageLabel","onChangeCallback","isValidationError"])):zi("v-if",!0)]),Ni(c,{title:e.labels.yourInformationTotalTitle,basket:e.basket,inTotalLabel:e.labels.yourInformationTotal,inTotalPrice:e.basketTotalPrice.toString()},null,8,["title","basket","inTotalLabel","inTotalPrice"]),Ni(u,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationLastStep,previousStepCallback:function(){return e.previousStepCallback(e.stepModel)},previousStepLabel:e.labels.formNavigationPreviousStep},null,8,["nextStepCallback","nextStepLabel","previousStepCallback","previousStepLabel"])])}]]),TBe=SBe,IBe={name:"StafetDonationStepTwo",components:{StafetDonationStepPrivat:cBe,StafetDonationStepVirksomhed:TBe},props:RK,setup:function(e){var t=Af(),n=Kt(""),o=bl(function(){return t.state.donation.userInputs});return Lr(function(){var t=o.value.find(function(e){return"type"===e.name});if(t)switch(t.value){case"Privat":n.value="StafetDonationStepPrivat";break;case"Virksomhed":n.value="StafetDonationStepVirksomhed";break;default:e.previousStepCallback&&e.previousStepCallback()}}),{componentName:n}}},BBe=IBe,OBe=(0,Hb.A)(BBe,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",eBe,[(Ai(),Ti(Kr(e.componentName),{labels:e.labels,nextStepCallback:e.nextStepCallback,previousStepCallback:e.previousStepCallback,displayInputError:e.displayInputError,submitCallback:e.submitCallback,stafetId:e.stafetId,userData:e.userData},null,8,["labels","nextStepCallback","previousStepCallback","displayInputError","submitCallback","stafetId","userData"]))])}]]),LBe=[{hidden:!1,step:1,name:"StafetDonationStepOne",label:"formStepLabel1",completed:!1},{hidden:!1,step:2,name:"StafetDonationStepTwo",label:"formStepLabel2",completed:!1}
2,{hidden:!0,step:3,name:"FormStepSubmitting",completed:!1}];function DBe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return MBe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(MBe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,MBe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,MBe(d,"constructor",c),MBe(c,"constructor",s),s.displayName="GeneratorFunction",MBe(c,r,"GeneratorFunction"),MBe(d),MBe(d,r,"Generator"),MBe(d,o,function(){return this}),MBe(d,"toString",function(){return"[object Generator]"}),(DBe=function(){return{w:a,m:p}})()}function MBe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}MBe=function(e,t,n,o){function a(t,n){MBe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},MBe(e,t,n,o)}function NBe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const PBe={name:"StafetDonationFlow",components:{StafetHeader:MSe,StafetDonationStepOne:QIe,StafetDonationStepTwo:OBe,FormStepSubmitting:qK},props:{stafetId:{type:String,required:!0},loggedIn:{type:Boolean,required:!1,default:!1},holdList:{type:Array,required:!1,default:[]},userData:{type:Object,required:!1,default:{}},holdId:{type:String,required:!1,default:""},deltagerId:{type:String,required:!1,default:""},minimumDonationAmount:{type:Number,required:!1,default:50},donationAmounts:{type:Array,required:!1,default:function(){return[]}}},setup:function(e){var t=Af(),n=Kt(!1),o=bl(function(){return t.state.labels.collections.SFLSupportWithDonationLabels}),r=Kt(!e.formUnavailable||e.formUnavailable),a=bl(function(){return OTe(c.value.slice(0,c.value.length-1),u.value,o.value)}),i=bl(function(){return t.state.donation.isSubmitting});Dr(function(){t.dispatch("donation/stafetId",{stafetId:e.stafetId}),t.dispatch("donation/steps",{steps:LBe}),t.dispatch("donation/donationFor",{donationFor:""!==e.deltagerId?"participant":e.holdId?"team":"none"}),t.dispatch("donation/donationTeam",{team:e.holdId}),t.dispatch("donation/donationParticipant",{participant:e.deltagerId})});var l=LTe(t.state.donation),s=l.userInputs,c=l.steps,u=l.currentStep,d=l.currentStepName,p=function(){var e,n=(e=DBe().m(function e(){var n;return DBe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.dispatch("donation/donationSubmit");case 1:return n=e.v,e.a(2,n)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){NBe(a,o,r,i,l,"next",e)}function l(e){NBe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();return{isFormUnavailable:r,headerSteps:a,labels:o,currentStepName:d,displayInputError:n,isSubmitting:i,nextStepCallback:function(e){e.forEach(function(t){if(t.dependentField){var n=e.find(function(e){return e.name===t.dependentField});n&&(t.dependentFieldValue=n.value)}dTe(t)}),e.every(function(e){return e.isValid})?(n.value=!1,function(){c.value.find(function(e){return e.step===u.value}).completed=!0,t.dispatch("donation/steps",{steps:c.value});var e=c.value.filter(function(e){return!e.completed});e.length>0&&t.dispatch("donation/currentStep",{step:e[0].step})}(),t.dispatch("donation/userInputs",{inputs:e}),lSe(pTe.STAFET_DONATION,e),function(e,t,n){var o=[],r="",a=n.state.donation.donationFor,i=e.find(function(e){return"amount"===e.name});switch(a){case"team":r=t.yourInformationTotalDonationHold;break;case"participant":r=t.yourInformationTotalDonationDeltager;break;default:r=t.yourInformationTotalDonationStafet}o.push({label:r,amount:"",price:"".concat(i?i.value:0," kr."),intPrice:i.value}),n.dispatch("donation/basket",{basket:o})}(s.value,o.value,t),scrollTo(0,0)):(n.value=!0,pN())},previousStepCallback:function(e){u.value>1&&(t.dispatch("donation/currentStep",{step:u.value-1}),c.value.find(function(e){return e.step===u.value}).completed=!1,t.dispatch("donation/steps",{steps:c.value}),lSe(pTe.STAFET_DONATION,e),t.dispatch("donation/userInputs",{inputs:e}),scrollTo(0,0))},submitCallback:p,donationAmounts:e.donationAmounts}}},RBe=PBe,FBe=(0,Hb.A)(RBe,[["render",function(e,t,n,o,r,a){var i=qr("StafetHeader");return Ai(),Si("article",TIe,[Ni(i,{steps:e.headerSteps,title:e.labels.title,de
2scription:e.labels.description},null,8,["steps","title","description"]),Mi("div",IIe,[(Ai(),Ti(Kr(e.currentStepName),{labels:e.labels,nextStepCallback:e.nextStepCallback,previousStepCallback:e.previousStepCallback,displayInputError:e.displayInputError,submitCallback:e.submitCallback,stafetId:e.stafetId,donationMinimumAmount:e.minimumDonationAmount,donationAmounts:e.donationAmounts,holdList:e.holdList,userData:e.userData,isSubmitting:e.isSubmitting},null,8,["labels","nextStepCallback","previousStepCallback","displayInputError","submitCallback","stafetId","donationMinimumAmount","donationAmounts","holdList","userData","isSubmitting"]))])])}]]);var VBe={class:"kb-stafet-donation-flow"},zBe={class:"kb-stafet-donation-flow__step"},UBe={class:"kb-stafet-step kb-stafet-donation-step-one kb-optimizely-forms"},jBe={class:"kb-stafet-step__title"},HBe={class:"kb-stafet-step__title"},qBe={class:"kb-stafet-step__input-wrapper"};const GBe={name:"StafetDonationTaendLysStepOne",components:{SupportSelector:YIe,FormInputTextField:mE,FormInputDropdown:XB,StafetActions:vSe},props:RK,setup:function(e){var t=Af(),n=Kt(0),o=Kt(e.lysposeMinimumAmount),r=Kt({});Lr(function(){var e=rSe(pTe.STAFET_DONATION);e&&(Mg(e,"donationAmount")&&(n.value=Mg(e,"donationAmount")),Mg(e,"amount")&&(o.value=Mg(e,"amount")),Mg(e,"donationFor")&&t.dispatch("donation/donationFor",{donationFor:Mg(e,"donationFor")}),Mg(e,"donationTeam")&&t.dispatch("donation/donationTeam",{team:Mg(e,"donationTeam").toString()}),Mg(e,"donationParticipant")&&t.dispatch("donation/donationParticipant",{participant:Mg(e,"donationParticipant")}))});var a=bl(function(){return[{name:"donationAmount",value:parseInt(n.value),isValid:!1,validator:function(e){return e>0}},{name:"amount",value:parseInt(o.value),isValid:!1,validator:function(t){return!(n.value>0)||t>=e.lysposeMinimumAmount}},{name:"donationFor",value:r.value.donationFor,isValid:r.value.isValid,validator:function(){return r.value.isValid}},{name:"donationTeam",value:r.value.donationTeam,isValid:r.value.isValid,validator:function(){return r.value.isValid}},{name:"donationParticipant",value:r.value.donationParticipant,isValid:r.value.isValid,validator:function(){return r.value.isValid}}]}),i=bl(function(){return e.displayInputError&&n.value<=0}),l=bl(function(){return e.displayInputError&&o.value<e.lysposeMinimumAmount});return{donationAmount:n,amount:o,stepModel:a,updateSupportSelector:function(e){r.value=e},setDonationPerLightBag:function(e){o.value=e},showDonationAmoutErrorMessage:i,showDonationPerLightBagErrorMessage:l}}},KBe=GBe,ZBe=(0,Hb.A)(KBe,[["render",function(e,t,n,o,r,a){var i=qr("SupportSelector"),l=qr("FormInputTextField"),s=qr("StafetActions");return Ai(),Si("article",UBe,[Mi("h2",jBe,fe(e.labels.yourSupportSelectorDropdownLabel),1),Ni(i,{stafetId:e.stafetId,labels:e.labels,displayInputError:e.displayInputError,onChangeCallback:e.updateSupportSelector,holdList:e.holdList},null,8,["stafetId","labels","displayInputError","onChangeCallback","holdList"]),Mi("h2",HBe,fe(e.labels.taendEtLysTitle),1),Mi("div",qBe,[Ni(l,{modelValue:e.donationAmount.toString(),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.donationAmount=t}),isRequired:!0,fieldName:"donationAmount",label:e.labels.taendEtLysSelectQuantityLabel,type:"number",isValidationError:e.showDonationAmoutErrorMessage,placeholder:e.labels.taendEtLysSelectQuantityLabel,errorMessageLabel:e.labels.taendEtLysSelectQuantityErrorMessage},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel"]),Ni(l,{modelValue:e.amount.toString(),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.amount=t}),label:e.labels.taendEtLysSelectAmountLabel,isRequired:!0,fieldName:"amount",type:"number",isValidationError:e.showDonationPerLightBagErrorMessage,placeholder:e.labels.taendEtLysSelectAmountPlaceholder,errorMessageLabel:e.labels.taendEtLysSelectAmountErrorMessage,onChangeCallback:function(t){return e.setDonationPerLightBag(t.target.value)}},null,8,["modelValue","label","isValidationError","placeholder","errorMessageLabel","onChangeCallback"])]),Ni(s,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationNextStep1},null,8,["nextStepCallback","nextStepLabel"])])}
2]]),WBe=ZBe;var $Be={class:"kb-stafet-step kb-stafet-donation-step-two"},YBe={class:"kb-stafet-step__title"},JBe={class:"kb-stafet-flow-light-bags-meta-list kb-optimizely-forms kb-stafet-step"},XBe={class:"kb-stafet-step__input-wrapper"},QBe={key:0},eOe={class:"kb-stafet-step__input-wrapper"},tOe={class:"kb-stafet-step__title"},nOe={class:"kb-stafet-step__title"};const oOe={name:"StafetFlowLightBagsMetaList",components:{FormCheckbox:dB,FormInputDropdown:XB,FormInputTextField:mE,FormInputTextarea:_D},props:{labels:{type:Object,required:!0},numberOfDonations:{type:Number,required:!0},onChangeCallback:{type:Function,required:!0},displayInputError:{type:Boolean,required:!1,default:!1},data:{type:Object,required:!1},isLysposerDedicated:{type:Boolean,required:!1,default:!1},addPersonalNote:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=Kt(e.isLysposerDedicated),n=Kt(e.addPersonalNote),o=Kt(""),r=Kt(""),a=Kt(""),i=Kt([]),l=[{name:e.labels.inMemoryOf,value:"TilMindeFor"},{name:e.labels.inSupportOf,value:"TilStoetteFor"}];bo(function(){return e.numberOfDonations},function(e,t){if(e<t)i.value=i.value.slice(0,e);else for(var n=e-t,o=0;o<n;o++)i.value.push({lysposeDedicatedTo:"",personalNote:"",lysposeDedicatedType:""})}),Lr(function(){var t;if(e.isLysposerDedicated&&(o.value=e.data[0].lysposeDedicatedType,r.value=e.data[0].lysposeDedicatedTo,a.value=e.data[0].personalNote),(null===(t=e.data)||void 0===t?void 0:t.length)>0)i.value=e.data;else for(var n=0;n<e.numberOfDonations;n++)i.value.push({lysposeDedicatedTo:"",personalNote:"",lysposeDedicatedType:""});if(i.value.length<e.numberOfDonations)for(var l=e.numberOfDonations-i.value.length,c=0;c<l;c++)i.value.push({lysposeDedicatedTo:"",personalNote:"",lysposeDedicatedType:""});else i.value=i.value.slice(0,e.numberOfDonations);s()}),Nr(function(){s()});var s=function(){var a,l;e.onChangeCallback&&e.onChangeCallback({isLysposerDedicated:t.value,addPersonalNote:n.value,donationItems:i.value,isValid:(a=t.value?tE(o.value):i.value.every(function(e){return tE(e.lysposeDedicatedType)}),l=t.value?tE(r.value):i.value.every(function(e){return tE(e.lysposeDedicatedTo)}),a&&l)})};return{isLysposerDedicated:t,addPersonalNote:n,donationAmountList:i,dedicationTypeOptions:l,dedicatedTypeAll:o,lysposeDedicatedToAll:r,lightPersonalNoteAll:a,setDedicationTypeAll:function(e){i.value.forEach(function(t){t.lysposeDedicatedType=e}),o.value=e,s()},setLightDedicatedToAll:function(e){i.value.forEach(function(t){t.lysposeDedicatedTo=e}),r.value=e,s()},setPersonalNoteAll:function(e){i.value.forEach(function(t){t.personalNote=e}),a.value=e,s()},toggleAddPersonalNote:function(e){n.value=e,s()},toggleDedicatedLightBag:function(e){t.value=e,e&&(o.value=i.value[0].lysposeDedicatedType,r.value=i.value[0].lysposeDedicatedTo,a.value=i.value[0].personalNote),i.value.forEach(function(e){e.lysposeDedicatedType=o.value,e.lysposeDedicatedTo=r.value,e.personalNote=a.value}),s()},updateLightDedicatedTo:function(e,t){i.value[e].lysposeDedicatedTo=t,s()},updatePersonalNote:function(e,t){i.value[e].personalNote=t,s()},updateDedicationType:function(e,t){i.value[e].lysposeDedicatedType=t,s()}}}},rOe=(0,Hb.A)(oOe,[["render",function(e,t,n,o,r,a){var i=qr("FormCheckbox"),l=qr("FormInputDropdown"),s=qr("FormInputTextField"),c=qr("FormInputTextarea");return Ai(),Si("article",JBe,[Mi("div",XBe,[Ni(i,{modelValue:e.isLysposerDedicated.toString(),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isLysposerDedicated=t}),fieldName:"isLysposerDedicated",onChangeCallback:function(t){return e.toggleDedicatedLightBag(t.target.checked)},label:e.labels.isLysposeDedicatedCheckboxLabel,validatorFunction:function(){return!1}},null,8,["modelValue","onChangeCallback","label"]),Ni(i,{modelValue:e.addPersonalNote.toString(),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.addPersonalNote=t}),fieldName:"addPersonalNote",onChangeCallback:function(t){return e.toggleAddPersonalNote(t.target.checked)},label:e.labels.personalNoteCheckboxLabel,validatorFunction:function(){return!1}}
2,null,8,["modelValue","onChangeCallback","label"])]),e.isLysposerDedicated?(Ai(),Si("div",QBe,[Mi("div",eOe,[Mi("h3",tOe,fe(e.labels.personalizeLightBagsTitle),1),Ni(l,{fieldName:"dedicatedTypeAll",modelValue:e.dedicatedTypeAll,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.dedicatedTypeAll=t}),label:e.labels.dedicationTypeTextLabel,placeholder:e.labels.dedicationTypePlaceholder,isRequired:!0,selectOptions:e.dedicationTypeOptions,onChange:t[3]||(t[3]=function(t){return e.setDedicationTypeAll(t.target.value)}),isValidationError:""===e.dedicatedTypeAll&&e.displayInputError,errorMessageLabel:e.labels.dedicationTypeErrorMessage},null,8,["modelValue","label","placeholder","selectOptions","isValidationError","errorMessageLabel"]),Ni(s,{fieldName:"lysposeDedicatedToAll",modelValue:e.lysposeDedicatedToAll,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.lysposeDedicatedToAll=t}),label:e.labels.lightDedicatedToTextLabel,isRequired:!0,onInput:t[5]||(t[5]=function(t){return e.setLightDedicatedToAll(t.target.value)}),isValidationError:""===e.lysposeDedicatedToAll&&e.displayInputError,errorMessageLabel:e.labels.lightDedicatedToErrorMessage,helpMessageLabel:e.labels.lightDedicatedToHelpTextLabel},null,8,["modelValue","label","isValidationError","errorMessageLabel","helpMessageLabel"]),Ni(c,{fieldName:"lightPersonalNoteAll",modelValue:e.lightPersonalNoteAll,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.lightPersonalNoteAll=t}),label:e.labels.personalNoteTextLabel,maxlength:200,errorMessageLabel:e.labels.personalNoteErrorMessage,helpMessageLabel:e.labels.personalNoteHelpTextLabel,onInput:t[7]||(t[7]=function(t){return e.setPersonalNoteAll(t.target.value)})},null,8,["modelValue","label","errorMessageLabel","helpMessageLabel"])])])):(Ai(!0),Si(gi,{key:1},Yr(e.donationAmountList,function(t,n){return Ai(),Si("div",{key:n,class:"kb-stafet-step__input-wrapper"},[Mi("h3",nOe,fe(e.labels.personalizeLightBagsTitle)+" "+fe(n+1),1),Ni(l,{fieldName:"lysposeDedicatedType",modelValue:t.lysposeDedicatedType,"onUpdate:modelValue":function(e){return t.lysposeDedicatedType=e},label:e.labels.dedicationTypeTextLabel,placeholder:e.labels.dedicationTypePlaceholder,isRequired:!0,selectOptions:e.dedicationTypeOptions,onChange:function(t){return e.updateDedicationType(n,t.target.value)},isValidationError:""===t.lysposeDedicatedType&&e.displayInputError,errorMessageLabel:e.labels.dedicationTypeErrorMessage},null,8,["modelValue","onUpdate:modelValue","label","placeholder","selectOptions","onChange","isValidationError","errorMessageLabel"]),Ni(s,{fieldName:"lysposeDedicatedTo",modelValue:t.lysposeDedicatedTo,"onUpdate:modelValue":function(e){return t.lysposeDedicatedTo=e},label:e.labels.lightDedicatedToTextLabel,isRequired:!0,onInput:function(t){return e.updateLightDedicatedTo(n,t.target.value)},isValidationError:""===t.lysposeDedicatedTo&&e.displayInputError,errorMessageLabel:e.labels.lightDedicatedToErrorMessage,helpMessageLabel:e.labels.lightDedicatedToHelpTextLabel},null,8,["modelValue","onUpdate:modelValue","label","onInput","isValidationError","errorMessageLabel","helpMessageLabel"]),Ni(c,{fieldName:"lightPersonalNote",modelValue:t.personalNote,"onUpdate:modelValue":function(e){return t.personalNote=e},label:e.labels.personalNoteTextLabel,maxlength:200,errorMessageLabel:e.labels.personalNoteErrorMessage,helpMessageLabel:e.labels.personalNoteHelpTextLabel,onInput:function(t){return e.updatePersonalNote(n,t.target.value)}},null,8,["modelValue","onUpdate:modelValue","label","errorMessageLabel","helpMessageLabel","onInput"])])}),128))])}]]),aOe=rOe,iOe={name:"StafetDonationTaendLysStepTwo",components:{FormCheckbox:dB,FormInputDropdown:XB,FormInputTextField:mE,FormInputTextarea:_D,StafetLysPoserList:aOe,StafetActions:vSe},props:RK,setup:function(e){var t=Af(),n=Kt(e.lysposeMinimumAmount),o=Kt(!1),r=Kt(!1),a=Kt([]),i=Kt({}),l=bl(function(){var e=t.state.donation.userInputs.find(function(e){return"donationAmount"===e.name});return e?e.value:0});Lr(function(){var e=rSe(pTe.STAFET_DONATION);
2e&&(Mg(e,"lysposeSubmissionModels")&&(a.value=Mg(e,"lysposeSubmissionModels")),Mg(e,"isLysposerDedicated")&&(o.value=Mg(e,"isLysposerDedicated")),Mg(e,"ownTextLysposer")&&(r.value=Mg(e,"ownTextLysposer")))});var s={isLysposeDedicatedCheckboxLabel:e.labels.taendEtLysCustomizeLysposeBoolDedicatedLabel,personalNoteCheckboxLabel:e.labels.taendEtLysCustomizeLysposeBoolOwnNoteLabel,personalizeLightBagsTitle:e.labels.taendEtLysLysposeTitle,lightDedicatedToTextLabel:e.labels.taendEtLysLysposeDedicatedToLabel,lightDedicatedToErrorMessage:e.labels.taendEtLysLysposeDedicatedToErrorMessage,lightDedicatedToHelpTextLabel:e.labels.taendEtLysLysposeDedicatedToSubtext,personalNoteTextLabel:e.labels.taendEtLysLysposePersonalNoteLabel,personalNoteHelpTextLabel:e.labels.taendEtLysLysposePersonalNoteSubtext,personalNoteErrorMessage:e.labels.taendEtLysLysposePersonalNoteErrorMessage,dedicationTypeTextLabel:e.labels.taendEtLysLysposeDedicatedTypeLabel,dedicationTypePlaceholder:e.labels.taendEtLysLysposeDedicatedTypePlaceholder,dedicationTypeErrorMessage:e.labels.taendEtLysLysposeDedicatedTypeErrorMessage,inMemoryOf:e.labels.taendEtLysLysposeDedicatedTypeInMemoryOf,inSupportOf:e.labels.taendEtLysLysposeDedicatedTypeInSupportOf},c=bl(function(){var e=[];return l.value>0&&(e.push({name:"lysposeSubmissionModels",value:i.value.donationItems,isValid:i.value.isValid,validator:function(){return i.value.isValid}}),e.push({name:"isLysposerDedicated",value:i.value.isLysposerDedicated,isValid:!0,validator:cO}),e.push({name:"ownTextLysposer",value:i.value.addPersonalNote,isValid:!0,validator:cO})),e});return{donationPerLightBag:n,isLysposerDedicated:o,addPersonalNote:r,lysposeSubmissionModels:a,donationAmount:l,lightBagMeta:i,stepModel:c,StafetFlowLightBagsMetaListLabels:s,updateLightBagMeta:function(e){i.value=e}}}},lOe=iOe,sOe=(0,Hb.A)(lOe,[["render",function(e,t,n,o,r,a){var i=qr("StafetLysPoserList"),l=qr("StafetActions");return Ai(),Si("article",$Be,[Mi("h2",YBe,fe(e.labels.taendEtLysCustomizeLysposeTitle),1),Ni(i,{labels:e.StafetFlowLightBagsMetaListLabels,numberOfDonations:e.donationAmount,onChangeCallback:e.updateLightBagMeta,displayInputError:e.displayInputError,data:e.lysposeSubmissionModels,isLysposerDedicated:e.isLysposerDedicated,addPersonalNote:e.addPersonalNote},null,8,["labels","numberOfDonations","onChangeCallback","displayInputError","data","isLysposerDedicated","addPersonalNote"]),Ni(l,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationNextStep,previousStepCallback:function(){return e.previousStepCallback(e.stepModel)},previousStepLabel:e.labels.formNavigationPrevStep},null,8,["nextStepCallback","nextStepLabel","previousStepCallback","previousStepLabel"])])}]]);var cOe={class:"kb-stafet-step kb-stafet-donation-step-three kb-optimizely-forms"},uOe={class:"kb-stafet-step__title"},dOe={class:"kb-stafet-step__input-wrapper"},pOe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"};const fOe=[{name:"firstName",value:"",isValid:!1,validator:rE},{name:"lastName",value:"",isValid:!1,validator:rE},{name:"email",value:"",isValid:!1,validator:nE},{name:"isAnonymous",value:!1,isValid:!0,validator:cO}],mOe={name:"StafetDonationTaendLysStepThree",components:{FormInputTextField:mE,FormCheckbox:dB,StafetActions:vSe,StafetPayment:zSe},props:RK,setup:function(e){var t,n,o,r,a,i,l,s,c,u=Af(),d=!(null===(t=window)||void 0===t||null===(t=t.dataLayer)||void 0===t||!t.find(function(e){return e["gtm.start"]})),p=Kt(null!==(n=null===(o=e.userData)||void 0===o?void 0:o.firstName)&&void 0!==n?n:""),f=Kt(null!==(r=null===(a=e.userData)||void 0===a?void 0:a.lastName)&&void 0!==r?r:""),m=Kt(null!==(i=null===(l=e.userData)||void 0===l?void 0:l.email)&&void 0!==i?i:""),g=Kt(null!==(s=null===(c=e.userData)||void 0===c?void 0:c.isAnonymous)&&void 0!==s&&s),h=bl(function(){return u.state.donation.basket}),b=bl(function(){return u.state.donation.basketTotalPrice});Lr(function(){var e,t,n,o,r=rSe(pTe.STAFET_DONATION);if(r&&v([{name:"firstName",value:null!==(e=Mg(r,"firstName"))&&void 0!==e?e:p.value},{name:"lastName",value:null!==(t=Mg(r,"lastName"))&&void 0!==t?t:f.value},{name:"email",value:null!==(n=Mg(r,"email"))&&void 0!==n?n:m.value},{name:"isAnonymous",value:null!==(o=Mg(r,"isAnonymous"))&&void 0!==o?o:g.value}]),d){var a=new URLSearchParams(document.location.search).get("orderId");a&&u.dispatch("main/getTrackingData",{orderId:a})}});var v=function(e){e.forEach(function(e){if(void 0!==e.value&&null!==e.value)switch(fOe.find(function(t){return t.name===e.name}).value=e.value,e.name){case"firstName":return void(p.value=e.value);case"lastName":return void(f.value=e.value);case"email":return void(m.value=e.value);case"isAnonymous":return void(g.value=e.value);default:return}})},y=bl(function(){return!rE(p.value)&&e.displayInputError}),_=bl(function(){return!rE(f.value)&&e.displayInputError}),A=bl(function(){return!nE(m.value)&&e.displayInputError}),k=bl(function(){return fOe});return{firstName:p,lastName:f,email:m,isAnonymous:g,basket:h,basketTotalPrice:b,stepModel:k,validateField:function(e,t){fOe.find(function(t){return t.name===e}).value=t;var n=fOe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},showFirstNameErrorMessage:y,showLastNameErrorMessage:_,showEmailErrorMessage:A}}},gOe=mOe,hOe=(0,Hb.A)(gOe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("FormCheckbox"),s=qr("StafetPayment"),c=qr("StafetActions");return Ai(),Si("article",cOe,[Mi("h2",uOe,fe(e.labels.yourInformationTitle),
21),Mi("div",dOe,[Mi("div",pOe,[Ni(i,{modelValue:e.firstName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstName=t}),fieldName:"firstName",label:e.labels.yourInformationFirstNameLabel,isRequired:!0,onChangeCallback:function(t){return e.validateField("firstName",t.target.value)},errorMessageLabel:e.labels.yourInformationFirstNameErrorMessage,isValidationError:e.showFirstNameErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"]),Ni(i,{modelValue:e.lastName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.lastName=t}),fieldName:"lastName",label:e.labels.yourInformationLastNameLabel,isRequired:!0,onChangeCallback:function(t){return e.validateField("lastName",t.target.value)},errorMessageLabel:e.labels.yourInformationLastNameErrorMessage,isValidationError:e.showLastNameErrorMessage},null,8,["modelValue","label","onChangeCallback","errorMessageLabel","isValidationError"])]),Ni(i,{modelValue:e.email,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.email=t}),fieldName:"email",label:e.labels.yourInformationEmailLabel,isRequired:!0,type:"email",errorMessageLabel:e.labels.yourInformationEmailErrorMessage,onChangeCallback:function(t){return e.validateField("email",t.target.value)},isValidationError:e.showEmailErrorMessage},null,8,["modelValue","label","errorMessageLabel","onChangeCallback","isValidationError"]),Ni(l,{modelValue:e.isAnonymous,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.isAnonymous=t}),fieldName:"isAnonymous",label:e.labels.yourInformationAnonymousLabel,onChangeCallback:function(t){return e.validateField("isAnonymous",t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])]),Ni(s,{title:e.labels.yourInformationTotalTitle,basket:e.basket,inTotalLabel:e.labels.yourInformationTotal,inTotalPrice:e.basketTotalPrice.toString()},null,8,["title","basket","inTotalLabel","inTotalPrice"]),Ni(c,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationLastStep,previousStepCallback:function(){return e.previousStepCallback(e.stepModel)},previousStepLabel:e.labels.formNavigationPreviousStep},null,8,["nextStepCallback","nextStepLabel","previousStepCallback","previousStepLabel"])])}]]),bOe=hOe,vOe=[{hidden:!1,step:1,name:"StafetDonationTaendLysStepOne",label:"formStepLabel1",completed:!1},{hidden:!1,step:2,name:"StafetDonationTaendLysStepTwo",label:"formStepLabel2",completed:!1},{hidden:!1,step:3,name:"StafetDonationTaendLysStepThree",label:"formStepLabel3",completed:!1},{hidden:!0,step:4,name:"FormStepSubmitting",label:"submitErrorTitle",completed:!1}];function yOe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return _Oe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(_Oe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_Oe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,_Oe(d,"constructor",c),_Oe(c,"constructor",s),s.displayName="GeneratorFunction",_Oe(c,r,"GeneratorFunction"),_Oe(d),_Oe
2(d,r,"Generator"),_Oe(d,o,function(){return this}),_Oe(d,"toString",function(){return"[object Generator]"}),(yOe=function(){return{w:a,m:p}})()}function _Oe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}_Oe=function(e,t,n,o){function a(t,n){_Oe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},_Oe(e,t,n,o)}function AOe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const kOe={name:"StafetDonationTaendLysFlow",components:{StafetHeader:MSe,StafetDonationTaendLysStepOne:WBe,StafetDonationTaendLysStepTwo:sOe,StafetDonationTaendLysStepThree:bOe,FormStepSubmitting:qK},props:{stafetId:{type:String,required:!0},loggedIn:{type:Boolean,required:!1,default:!1},holdList:{type:Array,required:!1,default:[]},userData:{type:Object,required:!1,default:{}},lysposeMinimumAmount:{type:Number,required:!1,default:50},holdId:{type:String,required:!1,default:""},deltagerId:{type:String,required:!1,default:""}},setup:function(e){var t=Af(),n=Kt(!1),o=bl(function(){return t.state.labels.collections.SFLSupportWithLysposeLabels}),r=bl(function(){return t.state.donation.isSubmitting}),a=bl(function(){return OTe(s.value,c.value,o.value)});Dr(function(){t.dispatch("donation/stafetId",{stafetId:e.stafetId}),t.dispatch("donation/steps",{steps:vOe}),t.dispatch("donation/donationFor",{donationFor:""!==e.deltagerId?"participant":e.holdId?"team":"none"}),t.dispatch("donation/donationTeam",{team:e.holdId}),t.dispatch("donation/donationParticipant",{participant:e.deltagerId})});var i=LTe(t.state.donation),l=i.userInputs,s=i.steps,c=i.currentStep,u=i.currentStepName,d=function(){var e,n=(e=yOe(
2).m(function e(){var n;return yOe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.dispatch("donation/donationStotLysSubmit");case 1:return n=e.v,e.a(2,n)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){AOe(a,o,r,i,l,"next",e)}function l(e){AOe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();return{headerSteps:a,labels:o,currentStepName:u,displayInputError:n,isSubmitting:r,nextStepCallback:function(e){e.forEach(function(t){if(t.dependentField){var n=e.find(function(e){return e.name===t.dependentField});n&&(t.dependentFieldValue=n.value)}dTe(t)}),e.every(function(e){return e.isValid})?(n.value=!1,function(){s.value.find(function(e){return e.step===c.value}).completed=!0,t.dispatch("donation/steps",{steps:s.value});var e=s.value.filter(function(e){return!e.completed});e.length>0&&t.dispatch("donation/currentStep",{step:e[0].step})}(),t.dispatch("donation/userInputs",{inputs:e}),lSe(pTe.STAFET_DONATION,e),function(e,t,n){var o=[],r=e.find(function(e){return"donationAmount"===e.name}),a=e.find(function(e){return"amount"===e.name});r&&r.value&&a&&a.value&&o.push({label:t.yourInformationTotalTaendteLysLabel,amount:"".concat(r.value," ").concat(t.taendEtLysUnitLabel," (á ").concat(a.value," kr.)"),price:"".concat(r.value*a.value," kr."),intPrice:r.value*a.value}),n.dispatch("donation/basket",{basket:o})}(l.value,o.value,t),scrollTo(0,0)):(n.value=!0,pN())},previousStepCallback:function(e){c.value>1&&(t.dispatch("donation/currentStep",{step:c.value-1}),s.value.find(function(e){return e.step===c.value}).completed=!1,t.dispatch("donation/steps",{steps:s.value}),t.dispatch("donation/userInputs",{inputs:e}),lSe(pTe.STAFET_DONATION,e),scrollTo(0,0))},submitCallback:d}}},xOe=kOe,wOe=(0,Hb.A)(xOe,[["render",function(e,t,n,o,r,a){var i=qr("StafetHeader");return Ai(),Si("article",VBe,[Ni(i,{steps:e.headerSteps,title:e.labels.title,description:e.labels.description},null,8,["steps","title","description"]),Mi("div",zBe,[(Ai(),Ti(Kr(e.currentStepName),{labels:e.labels,nextStepCallback:e.nextStepCallback,previousStepCallback:e.previousStepCallback,displayInputError:e.displayInputError,submitCallback:e.submitCallback,stafetId:e.stafetId,holdList:e.holdList,lysposeMinimumAmount:e.lysposeMinimumAmount,userData:e.userData,isSubmitting:e.isSubmitting},null,8,["labels","nextStepCallback","previousStepCallback","displayInputError","submitCallback","stafetId","holdList","lysposeMinimumAmount","userData","isSubmitting"]))])])}]]),COe={name:"StafetDownloadLinks",setup:function(){}};var EOe={class:"kb-stafet-edit-hold-flow"},SOe={class:"kb-stafet-donation-flow__step"},TOe={class:"kb-stafet-step kb-stafet-opret-hold-step-one kb-optimizely-forms"},IOe={class:"kb-stafet-step__title"},BOe={class:"kb-stafet-step__input-wrapper"},OOe={class:"kb-stafet-step__title"},LOe=["innerHTML"],DOe={class:"kb-form__file-upload-text-wrapper"},MOe={class:"kb-form__file-upload-text"},NOe={key:0,class:"kb-form__file-upload-text-file"},POe={class:"kb-form__file-upload-format-types"},ROe={"aria-live":"assertive"},FOe={key:0,class:"kb-forms Form__Element__ValidationError",role:"alert"},VOe={class:"kb-stafet-step__input-wrapper"};const zOe=[{name:"teamName",value:"",isValid:!1,validator:tE},{name:"donationGoal",value:0,isValid:!1,validator:function(e){return e>0}},{name:"logo",value:null,isValid:!1,validator:function(e){return!e||0===e.length||e[0].size<=10485760}},{name:"description",value:"",isValid:!1,validator:function(e){return e.length<=250}},{name:"slogan",value:"",isValid:!1,validator:function(e){return e.length<=100}}],UOe={name:"StafetOpretHoldStepOne",components:{FormInputTextField:mE,FormInputTextarea:_D,StafetActions:vSe},props:RK,setup:function(e){var t=Kt(""),n=Kt(0),o=Kt(null),r=Kt(""),a=Kt("");Lr(function(){var o=rSe(pTe.STAFET_CREATE_A_TEAM);e.holdData&&(e.holdData.teamName&&(t.value=e.holdData.teamName,i("teamName",t.value)),e.holdData.donationGoal&&(n.value=e.holdData.donationGoal,i("donationGoal",n.value)),e.holdData.description&&(r.value=e.holdData.description,i("description",r.value)),e.holdData.slogan&&(a.value=e.holdData.slogan,i("slogan",a.value))),o&&(Mg(o,"teamName")&&(t.value=Mg
2(o,"teamName"),i("teamName",t.value)),Mg(o,"donationGoal")&&(n.value=Mg(o,"donationGoal"),i("donationGoal",n.value)),Mg(o,"description")&&(r.value=Mg(o,"description"),i("description",r.value)),Mg(o,"slogan")&&(a.value=Mg(o,"slogan"),i("slogan",a.value)))});var i=function(e,t){zOe.find(function(t){return t.name===e}).value=t;var n=zOe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},l=bl(function(){return!zOe.find(function(e){return"description"===e.name}).validator(r.value)&&e.displayInputError}),s=bl(function(){return!tE(t.value)&&e.displayInputError}),c=bl(function(){return n.value<=0&&e.displayInputError}),u=bl(function(){return!zOe.find(function(e){return"slogan"===e.name}).validator(a.value)&&e.displayInputError}),d=bl(function(){return!zOe.find(function(e){return"logo"===e.name}).validator(o.value)&&e.displayInputError}),p=bl(function(){return zOe});return{teamName:t,donationGoal:n,logo:o,description:r,slogan:a,showTeamNameErrorMessage:s,showDonationGoalErrorMessage:c,showDescriptionErrorMessage:l,showSloganErrorMessage:u,showLogoErrorMessage:d,stepModel:p,validateField:i,onFileChange:function(e){var t=e.target.files;o.value=t,i("logo",t)}}}},jOe=UOe,HOe=(0,Hb.A)(jOe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("FormInputTextarea"),s=qr("StafetActions");return Ai(),Si("article",TOe,[Mi("h2",IOe,fe(e.labels.aboutYourHoldTitle),1),Mi("div",BOe,[Ni(i,{fieldName:"teamName",modelValue:e.teamName.toString(),"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.teamName=t}),label:e.labels.aboutYourHoldHoldnavnLabel,isRequired:!0,isValidationError:e.showTeamNameErrorMessage,errorMessageLabel:e.labels.aboutYourHoldHoldnavnErrorMessage,onChangeCallback:function(t){return e.validateField("teamName",t.target.value)}},null,8,["modelValue","label","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(i,{fieldName:"donationGoal",modelValue:e.donationGoal.toString(),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.donationGoal=t}),type:"number",label:e.labels.aboutYourHoldDonationGoalLabel,isRequired:!0,isValidationError:e.showDonationGoalErrorMessage,errorMessageLabel:e.labels.aboutYourHoldDonationGoalErrorMessage,onChangeCallback:function(t){return e.validateField("donationGoal",t.target.value)},helpMessageLabel:e.labels.aboutYourHoldDonationGoalSubtext},null,8,["modelValue","label","isValidationError","errorMessageLabel","onChangeCallback","helpMessageLabel"])]),t[6]||(t[6]=Mi("hr",{class:"kb-stafet-step__breaker-line"},null,-1)),Mi("div",null,[Mi("h2",OOe,fe(e.labels.personalizeYourHoldTitle),1),Mi("div",{innerHTML:e.labels.personalizeYourHoldDescription,class:"kb-stafet-step__description kb-sfl-richtext"},null,8,LOe)]),Mi("label",{class:Y(["kb-form__file-upload FormFileUpload",{"validation-error":e.showLogoErrorMessage}]),for:"uploadLogo"},[Mi("input",{class:"kb-form__file-upload-input FormFileUpload__Input",id:"uploadLogo",type:"file",accept:"image/png, image/jpg, image/jpeg, .svg",onChange:t[2]||(t[2]=function(){return e.onFileChange&&e.onFileChange.apply(e,arguments)})},null,32),t[5]||(t[5]=Vi('<div class="kb-form__file-upload-svg"><svg viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity=".4" fill="#3C3C3C"><path d="m20.024 13.05.967-.405-.206-.481c-.84-2.002-.617-4.14.596-5.683 1.214-1.542 3.095-2.264 5.32-2.093l-1.49 1.438.73.75 2.016-1.961a1.008 1.008 0 0 0 0-1.44l-2.016-1.961-.73.75 1.396 1.357c-2.505-.133-4.674.757-6.049 2.518-1.451 1.856-1.72 4.375-.736 6.72l.203.49ZM18.141 24.419v1.046h-5.93v-1.046H.699v2.965a1.214 1.214 0 0 0 1.221 1.22h26.163a1.22 1.22 0 0 0 1.22-1.22v-2.965H18.142Zm10.116 2.965a.174.174 0 0 1-.174.174H1.92a.178.178 0 0 1-.125-.052.175.175 0 0 1-.05-.122v-1.919h9.42v1.047h8.023v-1.047h9.07v1.919ZM4.886 21.977H2.793V9.593a.174.174 0 0 1 .174-.174h14.128V8.372H2.967a1.22 1.22 0 0 0-1.22 1.221v13.43h3.139v-1.046Z"></path><path d="M28.256 23.023V9.593a1.22 1.22 0 0 0-1.22-1.22h-4.013v1.046h4.012a.174.174 0 0 1 .174.174v13.43h1.047Z"></path></g></svg></div>',1)),Mi("div",DOe,[Mi("p",MOe,fe(e.labels.personalizeYourHoldLogoLabel),1),e.logo&&e.logo[0]?(Ai(),Si("p",NOe,fe(e.logo[0]?e.logo[0].name:""),1)):zi("v-if",!0),Mi("small",POe,fe(e.labels.personalizeYourHoldLogoFileFormats),1)])],2),Mi("div",ROe,[e.showLogoErrorMessage?(Ai(),Si("p",FOe,fe
2(e.labels.personalizeYourHoldLogoErrorMessage),1)):zi("v-if",!0)]),Mi("div",VOe,[Ni(l,{fieldName:"description",modelValue:e.description,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.description=t}),label:e.labels.personalizeYourHoldReasonLabel,maxlength:250,isValidationError:e.showDescriptionErrorMessage,errorMessageLabel:e.labels.personalizeYourHoldReasonErrorMessage,onChangeCallback:function(t){return e.validateField("description",t.target.value)}},null,8,["modelValue","label","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(i,{fieldName:"slogan",modelValue:e.slogan,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.slogan=t}),label:e.labels.personalizeYourHoldSloganLabel,maxlength:100,isValidationError:e.showSloganErrorMessage,errorMessageLabel:e.labels.personalizeYourHoldSloganErrorMessage,onChangeCallback:function(t){return e.validateField("slogan",t.target.value)}},null,8,["modelValue","label","isValidationError","errorMessageLabel","onChangeCallback"])]),Ni(s,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationNextStep1},null,8,["nextStepCallback","nextStepLabel"])])}]]),qOe=HOe,GOe=[{hidden:!1,step:1,name:"StafetOpretHoldStepOne",label:"formStepLabel1",completed:!1},{hidden:!0,step:2,name:"FormStepSubmitting",label:"submitErrorTitle",completed:!1}];function KOe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return ZOe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(ZOe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ZOe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,ZOe(d,"constructor",c),ZOe(c,"constructor",s),s.displayName="GeneratorFunction",ZOe(c,r,"GeneratorFunction"),ZOe(d),ZOe(d,r,"Generator"),ZOe(d,o,function(){return this}),ZOe(d,"toString",function(){return"[object Generator]"}),(KOe=function(){return{w:a,m:p}})()}function ZOe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ZOe=function(e,t,n,o){function a(t,n){ZOe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},ZOe(e,t,n,o)}function WOe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const $Oe={name:"StafetEditHoldFlow",components:{StafetHeader:MSe,StafetOpretHoldStepOne:qOe,FormStepSubmitting:qK},props:{stafetId:{type:String,required:!0,default:null},holdList:{type:Array,required:!0,default:[]},holdData:{type:Object,required:!1,default:{}},userData:{type:Object,required:!1,default:{}},loggedIn:{type:Boolean,required:!0,default:!1}},setup:function(e){var t=Af(),n=Kt(!1),o=e.holdData.holdKode,r=bl(function(){return t.state.labels.collections.SFLCreateHoldLabels}),a=bl(function(){return t.state.stafet.isSubmitting}),i=bl(function(){return OTe(s.value,c.value,r.value)});Dr(function(){t.dispatch("stafet/stafetId",{stafetId:e.stafetId}
2),t.dispatch("stafet/steps",{steps:GOe})});var l=LTe(t.state.stafet),s=(l.userInputs,l.steps),c=l.currentStep,u=l.currentStepName,d=function(){var n,r=(n=KOe().m(function n(){var r;return KOe().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,t.dispatch("stafet/editTeamSubmit",{stafetKode:e.stafetId,holdKode:o});case 1:return r=n.v,n.a(2,r)}},n)}),function(){var e=this,t=arguments;return new Promise(function(o,r){var a=n.apply(e,t);function i(e){WOe(a,o,r,i,l,"next",e)}function l(e){WOe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return r.apply(this,arguments)}}();return{displayInputError:n,labels:r,headerSteps:i,currentStepName:u,isSubmitting:a,nextStepCallback:function(e){e.forEach(function(t){if(t.dependentField){var n=e.find(function(e){return e.name===t.dependentField});n&&(t.dependentFieldValue=n.value)}dTe(t)}),e.every(function(e){return e.isValid})?(n.value=!1,function(){s.value.find(function(e){return e.step===c.value}).completed=!0,t.dispatch("stafet/steps",{steps:s.value});var e=s.value.filter(function(e){return!e.completed});e.length>0&&t.dispatch("stafet/currentStep",{step:e[0].step})}(),t.dispatch("stafet/userInputs",{inputs:e}),lSe(pTe.STAFET_CREATE_A_TEAM,e),scrollTo(0,0)):(n.value=!0,pN())},previousStepCallback:function(){c.value>1&&(t.dispatch("stafet/currentStep",{step:c.value-1}),s.value.find(function(e){return e.step===c.value}).completed=!1,t.dispatch("stafet/steps",{steps:s.value}),scrollTo(0,0))},submitCallback:d}}},YOe=$Oe,JOe=(0,Hb.A)(YOe,[["render",function(e,t,n,o,r,a){var i=qr("StafetHeader");return Ai(),Si("article",EOe,[Ni(i,{steps:e.headerSteps,title:e.labels.title,description:e.labels.description},null,8,["steps","title","description"]),Mi("div",SOe,[(Ai(),Ti(Kr(e.currentStepName),{labels:e.labels,nextStepCallback:e.nextStepCallback,previousStepCallback:e.previousStepCallback,displayInputError:e.displayInputError,submitCallback:e.submitCallback,stafetId:e.stafetId,loggedIn:e.loggedIn,userData:e.userData,holdData:e.holdData,isSubmitting:e.isSubmitting},null,8,["labels","nextStepCallback","previousStepCallback","displayInputError","submitCallback","stafetId","loggedIn","userData","holdData","isSubmitting"]))])])}]]),XOe={name:"StafetEditPageHero",setup:function(){var e=Af();return{openMailudsendelseOverlay:function(t){e.commit("main/set_page_overlay_content_data",{type:"Stafet",mailudsendelse:null}),e.dispatch("main/openPageOverlay",{overlayContent:"StafetMailEditorOverlay",returnTarget:t.currentTarget})}}}};function QOe(e){return QOe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QOe(e)}var eLe={class:"kb-stafet-mailudsendelse-list"},tLe=["onClick"],nLe={key:0},oLe={key:0};const rLe={name:"StafetMailudsendelseList",props:{mailudsendelser:{type:Array,required:!0}},setup:function(e){var t=Af(),n=function(e){return t.getters["labels/getLabel"]({labelCollection:"StafetMailudsendelseList",labelKey:e})};return{openMailudsendelseOverlay:function(n,o){var r=e.mailudsendelser.find(function(e){return e.id===n});r&&(t.commit("main/set_page_overlay_content_data",{type:"Stafet",mailudsendelse:r}),t.dispatch("main/openPageOverlay",{overlayContent:"StafetMailEditorOverlay",returnTarget:o.currentTarget}))},formatDate:function(e){return e?(e=new Date(e)).toLocaleDateString("da-DK",{year:"numeric",month:"short",day:"numeric"}):n("beingSentLabel")},getLabel:n}}},aLe=rLe,iLe=(0,Hb.A)(aLe,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",eLe,[(Ai(!0),Si(gi,null,Yr(e.mailudsendelser,function(n){return Ai(),Si("p",{key:n.id,class:"kb-stafet-mailudsendelse-list__link",onClick:function(t){return e.openMailudsendelseOverlay(n.id,t)}},[Mi("span",null,[Fi(fe(e.formatDate(n.sentDate))+": "+fe(n.subject)+" ",1),n.isResend?(Ai(),Si("span",nLe,"("+fe(e.getLabel("resendMarkerLabel"))+")",1)):zi("v-if",!0)]),t[0]||(t[0]=Mi("div",{class:"kb-stafet-mailudsendelse-list__link-icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"#3c3c3c",viewBox:"0 0 17 16"},[Mi("path",{d:"m12.167 4 3.622 4-3.622 4","stroke-linejoin":"round"}),Mi("path",{d:"M11.747 8H0"})])],-1))],8,tLe)}),128)),0==e.mailudsendelser.length?(Ai(),Si("div",oLe,[Mi("p",null,fe(e.getLabel("mailudsendelserEmptyLabel")),1)])):zi("v-if",!0)])}]]),lLe=iLe;var sLe={class:"kb-stafet-opret-hold-flow"},cLe={class:"kb-stafet-donation-flow__step"},uLe={class:"kb-stafet-step kb-stafet-opret-hold-step-two kb-optimizely-forms"},dLe={class:"kb-stafet-step__title"},pLe={class:"kb-stafet-step__input-wrapper"},fLe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},mLe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},gLe={class:"kb-stafet-step__input-wrapper"};const hLe=[{name:"firstName",value:"",isValid:!1,validator:rE},{name:"lastName",value:"",isValid:!1,validator:rE},{name:"email",value:"",isValid:!1,validator:nE},{name:"phone",value:"",isValid:!1,validator:function(e){return""===e||oE(e)}},{name:"consent",value:!1,isValid:!1,validator:function(e){return!0===e}},{name:"newsletter",value:!1,isValid:!1,validator:cO}],bLe={name:"StafetOpretHoldStepTwo",components:{FormInputTextField:mE,FormCheckbox:dB,StafetActions:vSe},props:RK,setup:function(e){var t=Kt(""),n=Kt(""),o=Kt(""),r=Kt(""),a=Kt(!1),i=Kt(!1),l=Kt({firstName:!1,lastName:!1,email:!1,phone:!1,consent:!1,newsletter:!1});Lr(function(){var u=rSe(pTe.STAFET_CREATE_A_TEAM);e.userData&&(e.userData.firstName&&(t.value=e.userData.firstName,c("firstName",t.value),l.value.firstName=!0,s("firstName")),e.userData.lastName&&(n.value=e.userData.lastName,c("lastName",n.value),l.value.lastName=!0,s("lastName")),e.userData.email&&(o.value=e.userData.email,c("email",o.value),l.value.email=!0,s("email")),e.userData.phoneNumber&&(r.value=e.userData.phoneNumber,c("phone",r.value),l.value.phone=!0,s("phone")),e.userData.consentBool&&(a.value=e.userData.consentBool,c("consent",a.value),l.value.consent=!0,s("consent")),e.userData.newsLetterBool&&(i.value=e.userData.newsLetterBool,c("newsletter",i.value),l.value.newsletter=!0,s("newsletter"))),u&&(Mg(u,"phone")&&(r.value=Mg
2(u,"phone"),c("phone",r.value)),Mg(u,"consent")&&(a.value=Mg(u,"consent"),c("consent",a.value)),Mg(u,"newsletter")&&(i.value=Mg(u,"newsletter"),c("newsletter",i.value)))});var s=function(e){hLe.find(function(t){return t.name===e}).validator=function(e){return!0}},c=function(e,t){hLe.find(function(t){return t.name===e}).value=t;var n=hLe.find(function(t){return t.name===e});n&&(n.value=t,dTe(n))},u=bl(function(){return g("firstName",t.value)}),d=bl(function(){return g("lastName",n.value)}),p=bl(function(){return g("email",o.value)}),f=bl(function(){return g("phone",r.value)}),m=bl(function(){return g("consent",a.value)}),g=function(t,n){return!hLe.find(function(e){return e.name===t}).validator(n)&&e.displayInputError},h=bl(function(){return hLe});return{firstName:t,lastName:n,email:o,phone:r,consent:a,newsletter:i,readOnly:l,showFirstNameErrorMessage:u,showLastNameErrorMessage:d,showEmailErrorMessage:p,showPhoneErrorMessage:f,showConsentErrorMessage:m,stepModel:h,validateField:c}}},vLe=(0,Hb.A)(bLe,[["render",function(e,t,n,o,r,a){var i=qr("FormInputTextField"),l=qr("FormCheckbox"),s=qr("StafetActions");return Ai(),Si("article",uLe,[Mi("h2",dLe,fe(e.labels.yourInformationTitle),1),Mi("div",pLe,[Mi("div",fLe,[Ni(i,{fieldName:"firstName",modelValue:e.firstName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.firstName=t}),label:e.labels.yourInformationFirstNameLabel,isRequired:!0,readOnly:e.readOnly.firstName,isValidationError:e.showFirstNameErrorMessage,errorMessageLabel:e.labels.yourInformationFirstNameErrorMessage,onChangeCallback:function(t){return e.validateField("firstName",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(i,{fieldName:"lastName",modelValue:e.lastName,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.lastName=t}),label:e.labels.yourInformationLastNameLabel,isRequired:!0,readOnly:e.readOnly.lastName,isValidationError:e.showLastNameErrorMessage,errorMessageLabel:e.labels.yourInformationLastNameErrorMessage,onChangeCallback:function(t){return e.validateField("lastName",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"])]),Mi("div",mLe,[Ni(i,{fieldName:"email",modelValue:e.email,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.email=t}),label:e.labels.yourInformationEmailLabel,isRequired:!0,readOnly:e.readOnly.email,isValidationError:e.showEmailErrorMessage,errorMessageLabel:e.labels.yourInformationEmailErrorMessage,onChangeCallback:function(t){return e.validateField("email",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(i,{fieldName:"phone",modelValue:e.phone,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.phone=t}),label:e.labels.yourInformationPhoneNumberLabel,readOnly:e.readOnly.phone,isValidationError:e.showPhoneErrorMessage,errorMessageLabel:e.labels.yourInformationPhoneNumberErrorMessage,onChangeCallback:function(t){return e.validateField("phone",t.target.value)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"])])]),Mi("div",gLe,[Ni(l,{fieldName:"consent",modelValue:e.consent.toString(),"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.consent=t}),label:e.labels.yourInformationConsentBoolLabel,isRichText:!0,isRequired:!0,readOnly:e.readOnly.consent,isValidationError:e.showConsentErrorMessage,errorMessageLabel:e.labels.yourInformationConsentBoolErrorMessage,onChangeCallback:function(t){return e.validateField("consent",t.target.checked)}},null,8,["modelValue","label","readOnly","isValidationError","errorMessageLabel","onChangeCallback"]),Ni(l,{fieldName:"newsletter",modelValue:e.newsletter.toString(),"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.newsletter=t}),readOnly:e.readOnly.newsletter,label:e.labels.yourInformationNewsLetterBoolLabel,onChangeCallback:function(t){return e.validateField("newsletter",t.target.checked)}},null,8,["modelValue","readOnly","label","onChangeCallback"])]),Ni(s,{nextStepCallback:function(){return e.nextStepCallback(e.stepModel)},nextStepLabel:e.labels.formNavigationLastStep,previousStepCallback:e.previousStepCallback,previousStepLabel:e.labels.formNavigationPreviousStep},null,8,["nextStepCallback","nextStepLabel","previousStepCallback","previousStepLabel"])])}]]),yLe=vLe,_Le=[{hidden:!1,step:1,name:"StafetOpretHoldStepOne",label:"formStepLabel1",completed:!1},{hidden:!1,step:2,name:"StafetOpretHoldStepTwo",label:"formStepLabel2",completed:!1}
2,{hidden:!0,step:3,name:"FormStepSubmitting",label:"submitErrorTitle",completed:!1}];function ALe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return kLe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(kLe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,kLe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,kLe(d,"constructor",c),kLe(c,"constructor",s),s.displayName="GeneratorFunction",kLe(c,r,"GeneratorFunction"),kLe(d),kLe(d,r,"Generator"),kLe(d,o,function(){return this}),kLe(d,"toString",function(){return"[object Generator]"}),(ALe=function(){return{w:a,m:p}})()}function kLe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}kLe=function(e,t,n,o){function a(t,n){kLe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},kLe(e,t,n,o)}function xLe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}const wLe={name:"StafetOpretHoldFlow",components:{StafetHeader:MSe,StafetOpretHoldStepOne:qOe,StafetOpretHoldStepTwo:yLe,FormStepSubmitting:qK},props:{stafetId:{type:String,required:!0,default:null},holdList:{type:Array,required:!0,default:[]},holdData:{type:Object,required:!1,default:{}},userData:{type:Object,required:!1,default:{}},loggedIn:{type:Boolean,required:!0,default:!1}},setup:function(e){var t=Af(),n=Kt(!1),o=bl(function(){return t.state.labels.collections.SFLCreateHoldLabels}),r=bl(function(){return t.state.stafet.isSubmitting}),a=bl(function(){return OTe(l.value,s.value,o.value)});Dr(function(){t.dispatch("stafet/stafetId",{stafetId:e.stafetId}),t.dispatch("stafet/steps",{steps:_Le})});var i=LTe(t.state.stafet),l=(i.userInputs,i.steps),s=i.currentStep,c=i.currentStepName,u=function(){var e,n=(e=ALe().m(function e(){var n;return ALe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.dispatch("stafet/createTeamSubmit");case 1:return n=e.v,e.a(2,n)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){xLe(a,o,r,i,l,"next",e)}function l(e){xLe(a,o,r,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();return{displayInputError:n,labels:o,headerSteps:a,currentStepName:c,isSubmitting:r,nextStepCallback:function(e){e.forEach(function(t){if(t.dependentField){var n=e.find(function(e){return e.name===t.dependentField});n&&(t.dependentFieldValue=n.value)}dTe(t)}),e.every(function(e){return e.isValid})?(n.value=!1,function(){l.value.find(function(e){return e.step===s.value}).completed=!0,t.dispatch("stafet/steps",{steps:l.value});var e=l.value.filter(function(e){return!e.completed});e.length>0&&t.dispatch("stafet/currentStep",{step:e[0].step})}(),t.dispatch("stafet/userInputs",{inputs:e}),lSe(pTe.STAFET_CREATE_A_TEAM,e),scrollTo(0,0)):(n.value=!0,pN())},previousStepCallback:function(){s.value>1&&(t.dispatch("stafet/currentStep",{step:s.value-1}),l.value.find(function(e){return e.step===s.value}).completed=!1,t.dispatch("stafet/steps",{steps:l.value}),scrollTo(0,0))},submitCallback:u}}},CLe=wLe,ELe=(0,Hb.A)(CLe,[["render",function(e,t,n,o,r,a){var i=qr("StafetHeader");return Ai(),Si("article",sLe,[Ni(i,{steps:e.headerSteps,title:e.labels.title,de
2scription:e.labels.description},null,8,["steps","title","description"]),Mi("div",cLe,[(Ai(),Ti(Kr(e.currentStepName),{labels:e.labels,nextStepCallback:e.nextStepCallback,previousStepCallback:e.previousStepCallback,displayInputError:e.displayInputError,submitCallback:e.submitCallback,stafetId:e.stafetId,loggedIn:e.loggedIn,userData:e.userData,holdData:e.holdData,isSubmitting:e.isSubmitting},null,8,["labels","nextStepCallback","previousStepCallback","displayInputError","submitCallback","stafetId","loggedIn","userData","holdData","isSubmitting"]))])])}]]);var SLe={class:"kb-stafet-profile-form kb-stafet-donation-flow__step kb-optimizely-forms"},TLe={class:"kb-stafet-step"},ILe={class:"kb-stafet-step__title"},BLe={class:"kb-stafet-step__input-wrapper"},OLe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},LLe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},DLe={class:"kb-stafet-step__input-wrapper kb-stafet-step__input-wrapper--half-half"},MLe=["href"],NLe={class:"kb-stafet-step__input-wrapper"},PLe=["href"],RLe={class:"kb-stafet-step__title"};const FLe={name:"StafetProfileForm",components:{FormInputTextField:mE,FormInputPhoneField:IL,FormInputEmailField:kL,FormCheckbox:dB},props:{stafetId:{type:String,default:null},userData:{type:Object,default:{}},editProfileLink:{type:String,default:null},removeProfileLink:{type:String,default:null},editPasswordLink:{type:String,default:null}},setup:function(e){var t,n,o=Af(),r=Kt(null!==(t=e.userData.newsletter)&&void 0!==t&&t),a=Kt(null!==(n=e.userData.fighterNewsletter)&&void 0!==n&&n);return{labels:bl(function(){return o.state.labels.collections.SFLEditStafetLabels}),mailSettingsBool:r,setMailSettingBool:function(e){r.value=e},mailSettingsFighterNewsletterBool:a,setMailSettingFighterNewsletterBool:function(e){a.value=e},saveChanges:function(){setTimeout(function(){o.dispatch("stafet/stafetProfileUpdatedSubmit",{body:{mailSettingsBool:r.value,mailSettingsFighterNewsletterBool:a.value}})},300)},openConfirmPageOverlay:function(t){o.commit("main/set_page_overlay_content_data",{callback:function(){o.dispatch("stafet/submitUpdateStafetProfile",{userId:e.userData.userId,body:{sflNewsletter:r.value,fighterNewsletter:a.value}})}}),o.dispatch("main/openPageOverlay",{overlayContent:"ConfirmChanges",returnTarget:t.currentTarget})},openDeletePageOverlay:function(t){o.commit("main/set_page_overlay_content_data",{callback:function(){o.dispatch("stafet/submitDeleteStafetProfile",{userId:e.userData.userId})}}),o.dispatch("main/openPageOverlay",{overlayContent:"ConfirmDeleteProfile",returnTarget:t.currentTarget})}}}},VLe=FLe,zLe=(0,Hb.A)(VLe,[["render",function(e,t,n,o,r,a){var i,l=qr("FormInputTextField"),s=qr("FormCheckbox");return Ai(),Si("article",SLe,[Mi("div",TLe,[Mi("h2",ILe,fe(e.labels.yourInformationTitle),1),Mi("div",BLe,[Mi("div",OLe,[Ni(l,{modelValue:e.userData.firstName.toString(),fieldName:"firstName",readOnly:!0,label:e.labels.yourInformationFirstNameLabel},null,8,["modelValue","label"]),Ni(l,{modelValue:e.userData.lastName.toString(),fieldName:"lastName",readOnly:!0,label:e.labels.yourInformationLastNameLabel},null,8,["modelValue","label"])]),Mi("div",LLe,[Ni(l,{modelValue:null===(i=e.userData.phoneNumber)||void 0===i?void 0:i.toString(),fieldName:"phoneNumber",readOnly:!0,label:e.labels.yourInformationPhoneNumberLabel},null,8,["modelValue","label"]),Ni(l,{modelValue:e.userData.email.toString(),fieldName:"email",readOnly:!0,label:e.labels.yourInformationEmailLabel},null,8,["modelValue","label"])]),Mi("div",DLe,[Mi("a",{class:"kb-link",href:e.editPasswordLink},fe(e.labels.editProfilePasswordLinkLabel),9,MLe)]),Mi("div",NLe,[Mi("a",{class:"kb-link",href:e.editProfileLink},[Fi(fe(e.labels.editProfileInformationLinkLabel)+" ",1),t[4]||(t[4]=Mi("span",null,[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"},[Mi("path",{fill:"#500778","fill-rule":"evenodd",d:"m12.978 2.708-3.864-.191-.049-.986 4.37.216c.279.014.516.246.53.518l.216 4.37-1.011-.05-.192-3.877Zm-8.924 8.23 6.734-6.734.707.707-6.734 6.734-.707-.707ZM1.5 3H1v12h12V8.313h-1V14H2V4h5.688V3H1.5Z","clip-rule":"evenodd"}
2)])],-1))],8,PLe)])]),t[7]||(t[7]=Mi("hr",{class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},null,-1)),Mi("h2",RLe,fe(e.labels.emailSettingsTitle),1),Mi("div",null,[Mi("p",null,fe(e.labels.emailSettingsDescription),1),Ni(s,{fieldName:"mailSettingsBool",modelValue:e.mailSettingsBool,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.mailSettingsBool=t}),label:e.labels.emailSettingsCheckboxNewsletterLabel,onChangeCallback:function(t){return e.setMailSettingBool(t.target.checked)}},null,8,["modelValue","label","onChangeCallback"]),Ni(s,{fieldName:"mailSettingsFighterNewsletterBool",modelValue:e.mailSettingsFighterNewsletterBool,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.mailSettingsFighterNewsletterBool=t}),label:e.labels.emailSettingsCheckboxFighterNewsletterLabel,onChangeCallback:function(t){return e.setMailSettingFighterNewsletterBool(t.target.checked)}},null,8,["modelValue","label","onChangeCallback"])]),Mi("div",null,[Mi("button",{onClick:t[2]||(t[2]=function(){return e.openConfirmPageOverlay&&e.openConfirmPageOverlay.apply(e,arguments)}),class:"kb-button kb-button kb-button--full-color-spot"},fe(e.labels.emailSettingsSaveChangesLabel),1)]),Mi("div",null,[t[5]||(t[5]=Mi("hr",{class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},null,-1)),Mi("p",null,[Fi(fe(e.labels.deleteProfileDescription)+" ",1),Mi("button",{class:"kb-link",onClick:t[3]||(t[3]=function(){return e.openDeletePageOverlay&&e.openDeletePageOverlay.apply(e,arguments)})},fe(e.labels.deleteProfileButtonLabel),1)]),t[6]||(t[6]=Mi("hr",{class:"kb-stafet-step__breaker-line kb-stafet-step__breaker-line--smaller"},null,-1))])])])}]]),ULe=zLe,jLe={name:"StickySliderElement",setup:function(){var e=Kt("40px"),t=Kt(40),n=function(e){var t=e.closest(".kb-sticky-slider-element");t.classList.forEach(function(e){e.includes("kb-colortheme")&&t.classList.remove(e)}),e.dataset.theme&&t.classList.add(e.dataset.theme)},o=function(e){var t=document.querySelectorAll(".kb-js--sticky-slider-image-container"),n=e.querySelector(".kb-js--sticky-slider-image-container");t.forEach(function(e){return e.classList.remove("kb-sticky-slider-element__left-container--shown")}),n.classList.add("kb-sticky-slider-element__left-container--shown")},r=function(e){e.forEach(function(e){if(e.isIntersecting&&t.value&&e.intersectionRect.top<=t.value){if(!e.target)return;n(e.target),o(e.target)}else if(!e.isIntersecting&&e.boundingClientRect.top<0){var r=(a=e.target,i=document.querySelectorAll(".kb-js--content-container"),(l=Array.from(i).indexOf(a))>=0&&l<i.length-1?i[l+1]:a);if(!r)return;n(r),o(r)}var a,i,l})},a=function(e){e.forEach(function(e){var t=e.target.closest(".kb-js--content-container"),n=e.contentRect.height,o=t.querySelector(".kb-js--sticky-slider-element").getBoundingClientRect().height;t&&n&&(t.style.height="".concat(o>n?o:n,"px"))})};Dr(function(){var n=document.querySelectorAll(".kb-sticky-slider-element__content-container"),o=document.querySelector(".kb-js--sticky-slider-element");o&&function(n){e.value=window.getComputedStyle(n).top,t.value=parseFloat(e.value.replace("px",""))}(o);var i=new IntersectionObserver(r,{rootMargin:"-".concat(e.value)});n.forEach(function(e){return i.observe(e)});var l=new ResizeObserver(a);n.forEach(function(e){var t=e.querySelector(".kb-js--sticky-container-right"),n=t.children[0];l.observe(n||t)})})}};var HLe=".kb-component--sticky-slider-element",qLe={class:"kb-stream-donation-overview-wrapper"},GLe={key:0,class:"kb-stream-donation-overview-donations kb-stream-donation-overview-donations--above"},KLe={class:"kb-stream-donation-overview__title"},ZLe={class:"kb-stream-donation-overview__row"},WLe={class:"kb-stream-donation-overview__raised"},$Le={class:"kb-stream-donation-overview__goal"},YLe={class:"kb-stream-donation-overview__goal-value"},JLe={class:"kb-stream-donation-overview__progress"},XLe=["innerHTML"],QLe={key:1,class:"kb-stream-donation-overview-donations kb-stream-donation-overview-donations--below"};function eDe(e){return eDe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eDe(e)}function tDe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return nDe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(nDe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nDe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,nDe(d,"constructor",c),nDe(c,"constructor",s),s.displayName="GeneratorFunction",nDe(c,r,"GeneratorFunction"),nDe(d),nDe(d,r,"Generator"),nDe(d,o,function(){return this}),nDe(d,"toString",function(){return"[object Generator]"}),(tDe=function(){return{w:a,m:p}})()}function nDe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}nDe=function(e,t,n,o){function a(t,n){nDe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},nDe(e,t,n,o)}function oDe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function rDe(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){oDe(a,o,r,i,l,"next",e)}function l(e){oDe(a,o,r,i,l,"throw",e)}i(void 0)})}}function aDe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function iDe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aDe(Object(n),!0).forEach(function(t){lDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aDe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lDe(e,t,n){return(t=function(e){var t=function(e){if("object"!=eDe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eDe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eDe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sDe(e){return function(e){if(Array.isArray(e))return cDe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return cDe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cDe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cDe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var uDe=1e3;const dDe={name:"StreamDonationOverview",props:{variation:{type:String,default:"dark"},donationPosition:{type:String,default:"above"},fundraisingId:{type:String,default:""},footerText:{type:String,default:""},minNyDonationSek:{type:Number,default:2},maxNyDonationSek:{type:Number,default:10},donationStyle:{type:String,default:"normal"}},setup:function(e){var t=Kt(null),n=Kt(0),o=Kt([]),r=Kt(null),a=Kt([]),i=new Set,l=!1,s=0,c=0,u=null,d=null,p=!1,f=bl(function(){var e,n;return null!==(e=null===(n=t.value)||void 0===n||null===(n=n.details)||void 0===n?void 0:n.name)&&void 0!==e?e:""}),m=bl(function(){var e;return qx(n.value||(null===(e=t.value)||void 0===e||null===(e=e.details)||void 0===e?void 0:e.totalAmount)||0,0)}),g=bl(function(){var e,n;return qx(null!==(e=null===(n=t.value)||void 0===n||null===(n=n.details)||void 0===n?void 0:n.targetAmount)&&void 0!==e?e:0,0)}),h=bl(function(){var e,o,r,a=n.value||(null===(e=t.value)||void 0===e||null===(e=e.details)||void 0===e?void 0:e.totalAmount)||0,i=null!==(o=null===(r=t.value)||void 0===r||null===(r=r.details)||void 0===r?void 0:r.targetAmount)&&void 0!==o?o:0;return i<=0?1:Math.min(a/i*100,100).toFixed(2)});function b(e){return{id:++s,amount:e.amount,donorName:[e.firstName,e.lastName].filter(
2Boolean).join(" ")||"Anonym"}}function v(){var t=1e3*e.maxNyDonationSek,n=Date.now(),o=a.value.filter(function(e){return n-e.shownAt<t});o.length!==a.value.length&&(a.value=o)}function y(){r.value&&(a.value=[iDe(iDe({},r.value),{},{shownAt:Date.now()})].concat(sDe(a.value)).slice(0,4),r.value=null);var e=o.value.shift();e&&(r.value=e,c=Date.now())}function _(){var t=o.value.length>0;if(r.value){var n=Date.now()-c;n>=1e3*e.maxNyDonationSek?r.value=null:t&&n>=1e3*e.minNyDonationSek&&y()}else t&&y()}function A(){return k.apply(this,arguments)}function k(){return(k=rDe(tDe().m(function n(){var o,r;return tDe().w(function(n){for(;;)switch(n.n){case 0:if(e.fundraisingId){n.n=1;break}return n.a(2);case 1:return o="".concat(document.location.origin,"/da/api/personalFundraising/").concat(e.fundraisingId),n.n=2,um(o);case 2:(r=n.v)&&(t.value=r);case 3:return n.a(2)}},n)}))).apply(this,arguments)}function x(){return w.apply(this,arguments)}function w(){return(w=rDe(tDe().m(function t(){var r,a,s,c,u;return tDe().w(function(t){for(;;)switch(t.n){case 0:if(e.fundraisingId){t.n=1;break}return t.a(2);case 1:return r="".concat(document.location.origin,"/da/api/personalFundraising/").concat(e.fundraisingId,"/donations"),t.n=2,um(r);case 2:if(a=t.v,Array.isArray(a)){t.n=3;break}return t.a(2);case 3:if(n.value=a.reduce(function(e,t){var n;return e+(null!==(n=t.amount)&&void 0!==n?n:0)},0),l){t.n=4;break}return a.forEach(function(e){return i.add(e.donationId)}),l=!0,t.a(2);case 4:for(s=[],c=a.length-1;c>=0;c--)u=a[c],i.has(u.donationId)||(i.add(u.donationId),s.push(b(u)));s.length&&(o.value=[].concat(sDe(o.value),s));case 5:return t.a(2)}},t)}))).apply(this,arguments)}function C(){return E.apply(this,arguments)}function E(){return(E=rDe(tDe().m(function e(){return tDe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,A();case 1:p||(u=setTimeout(C,uDe));case 2:return e.a(2)}},e)}))).apply(this,arguments)}function S(){return T.apply(this,arguments)}function T(){return(T=rDe(tDe().m(function e(){return tDe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,x();case 1:_(),v(),p||(d=setTimeout(S,uDe));case 2:return e.a(2)}},e)}))).apply(this,arguments)}function I(e){var t=e.detail||{};o.value=[].concat(sDe(o.value),[b(t)]),_(),v()}return Dr(rDe(tDe().m(function e(){return tDe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,A();case 1:return e.n=2,x();case 2:u=setTimeout(C,uDe),d=setTimeout(S,uDe),window.addEventListener("kb-fake-donation",I);case 3:return e.a(2)}},e)}))),Rr(function(){p=!0,clearTimeout(u),clearTimeout(d),window.removeEventListener("kb-fake-donation",I)}),{name:f,totalAmount:m,targetAmount:g,progressPercent:h,footerText:e.footerText,currentNew:r,previousDonations:a,donationStyle:e.donationStyle}}};var pDe={class:"kb-stream-donation-overview-new-donation__amount"},fDe={class:"kb-stream-donation-overview-new-donation__from"};const mDe={name:"StreamDonationOverviewNewDonation",props:{previous:{type:Boolean,default:!1},amount:{type:Number,default:null},donorName:{type:String,default:null},donationStyle:{type:String,default:"normal"}},setup:function(){}},gDe=(0,Hb.A)(mDe,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-stream-donation-overview-new-donation",[{"kb-stream-donation-overview-new-donation--previous":e.previous},"kb-stream-donation-overview-new-donation--style-".concat(e.donationStyle)]])},[t[0]||(t[0]=Mi("div",{class:"kb-stream-donation-overview-new-donation__icon"},[Mi("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[Mi("path",{d:"M16.5 2.5C18.0913 2.5 19.617 3.13259 20.7422 4.25781C21.8674 5.38303 22.5 6.9087 22.5 8.5C22.5 11.015 20.8405 12.8941 19.3525 14.3525L19.3535 14.3535L12.3535 21.3535C12.1583 21.5488 11.8417 21.5488 11.6465 21.3535L4.65234 14.3594C3.14954 12.9066 1.5 11.0265 1.5 8.5L1.50781 8.20215C1.58146 6.7193 2.203 5.31262 3.25781 4.25781C4.38303 3.13259 5.9087 2.5 7.5 2.5C8.43006 2.5 9.25134 2.63302 10.0469 2.97949C10.7186 3.27204 11.3492 3.70756 12 4.30762C12.6508 3.70756 13.2814 3.27204 13.9531 2.97949C14.7487 2.63302 15.5699 2.5 16.5 2.5Z",fill:"white",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),Mi("span",pDe,fe(e.amount)+" kr",1),Mi("span",fDe,"fra "+fe(e.donorName),1)],2)}]]);function hDe(e){return function(e){if(Array.isArray(e))return bDe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bDe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bDe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bDe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var vDe={class:"kb-stream-donation-overview-previous-donation__icon"},yDe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},_De={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},ADe={class:"kb-stream-donation-overview-previous-donation__amount"},kDe={class:"kb-stream-donation-overview-previous-donation__from"};const xDe={name:"StreamDonationOverviewPreviousDonation",props:{variation:{type:String,default:"dark"},amount:{type:Number,default:null},donorName:{type:String,default:null},donationStyle:{type:String,default:"normal"},index:{type:Number,default:0}},setup:function(){}},wDe=(0,Hb.A)(xDe,[["render",function(e,t,n,o,r,a){return Ai(),Si("div",{class:Y(["kb-stream-donation-overview-previous-donation",["kb-stream-donation-overview-previous-donation--".concat(e.variation),"kb-stream-donation-overview-previous-donation--style-".concat(e.donationStyle),"kb-stream-donation-overview-previous-donation--idx-".concat(e.index)]])},[Mi("div",vDe,["light"===e.variation&&"normal"===e.donationStyle?(Ai(),Si("svg",yDe,hDe(t[0]||(t[0]=[Mi("path",{d:"M19 14C20.49 12.54 22 10.79 22 8.5C22 7.04131 21.4205 5.64236 20.3891 4.61091C19.3576 3.57946 17.9587 3 16.5 3C14.74 3 13.5 3.5 12 5C10.5 3.5 9.26 3 7.5 3C6.04131 3 4.64236 3.57946 3.61091 4.61091C2.57946 5.64236 2 7.04131 2 8.5C2 10.8 3.5 12.55 5 14L12 21L19 14Z",fill:"#3C3C3C","fill-opacity":"0.7"},null,-1),Mi("path",{d:"M16.5 2.5C18.0913 2.5 19.617 3.13259 20.7422 4.25781C21.8674 5.38303 22.5 6.9087 22.5 8.5C22.5 11.015 20.8405 12.8941 19.3525 14.3525L19.3535 14.3535L12.3535 21.3535C12.1583 21.5488 11.8417 21.5488 11.6465 21.3535L4.65234 14.3594C3.14954 12.9066 1.5 11.0265 1.5 8.5L1.50781 8.20215C1.58146 6.7193 2.203 5.31262 3.25781 4.25781C4.38303 3.13259 5.9087 2.5 7.5 2.5C8.43006 2.5 9.25134 2.63302 10.0469 2.97949C10.7186 3.27204 11.3492 3.70756 12 4.30762C12.6508 3.70756 13.2814 3.27204 13.9531 2.97949C14.7487 2.63302 15.5699 2.5 16.5 2.5Z",stroke:"#3C3C3C","stroke-opacity":"0.7","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))):(Ai(),Si("svg",_De,hDe(t[1]||(t[1]=[Mi("path",{d:"M19 14C20.49 12.54 22 10.79 22 8.5C22 7.04131 21.4205 5.64236 20.3891 4.61091C19.3576 3.57946 17.9587 3 16.5 3C14.74 3 13.5 3.5 12 5C10.5 3.5 9.26 3 7.5 3C6.04131 3 4.64236 3.57946 3.61091 4.61091C2.57946 5.64236 2 7.04131 2 8.5C2 10.8 3.5 12.55 5 14L12 21L19 14Z",fill:"white","fill-opacity":"0.7"},null,-1),Mi("path",{d:"M16.5 2.5C18.0913 2.5 19.617 3.13259 20.7422 4.25781C21.8674 5.38303 22.5 6.9087 22.5 8.5C22.5 11.015 20.8405 12.8941 19.3525 14.3525L19.3535 14.3535L12.3535 21.3535C12.1583 21.5488 11.8417 21.5488 11.6465 21.3535L4.65234 14.3594C3.14954 12.9066 1.5 11.0265 1.5 8.5L1.50781 8.20215C1.58146 6.7193 2.203 5.31262 3.25781 4.25781C4.38303 3.13259 5.9087 2.5 7.5 2.5C8.43006 2.5 9.25134 2.63302 10.0469 2.97949C10.7186 3.27204 11.3492 3.70756 12 4.30762C12.6508 3.70756 13.2814 3.27204 13.9531 2.97949C14.7487 2.63302 15.5699 2.5 16.5 2.5Z",stroke:"white","stroke-opacity":"0.7","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))))]),Mi("span",ADe,fe(e.amount)+" kr",1),Mi("span",kDe,"fra "+fe(e.donorName),1)],2)}]]);function CDe(e){return CDe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CDe(e)}function EDe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function SDe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?EDe(Object(n),!0).forEach(function(t){TDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EDe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TDe(e,t,n){return(t=function(e){var t=function(e){if("object"!=CDe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=CDe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==CDe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const IDe=SDe(SDe({},dDe),{},{components:{StreamDonationOverviewNewDonation:gDe,StreamDonationOverviewPreviousDonation:wDe}}),BDe=(0,Hb.A)(IDe,[["render",function(e,t,n,o,r,a){var i=qr("StreamDonationOverviewPreviousDonation"),l=qr("StreamDonationOverviewNewDonation");return Ai(),Si("div",qLe,["above"===e.donationPosition?(Ai(),Si("div",GLe,[(Ai(),Si(gi,null,Yr([3,2,1,0],function(t){return Ai(),Si(gi,{key:t},[e.previousDonations[t]?(Ai(),Ti(i,{key:e.previousDonations[t].id,variation:e.variation,"donation-style":e.donationStyle,index:t,amount:e.previousDonations[t].amount,"donor-name":e.previousDonations[t].donorName},null,8,["variation","donation-style","index","amount","donor-name"])):zi("v-if",!0)],64)}),64)),e.currentNew?(Ai(),Ti(l,{key:e.currentNew.id,"donation-style":e.donationStyle,amount:e.currentNew.amount,"donor-name":e.currentNew.donorName},null,8,["donation-style","amount","donor-name"])):zi("v-if",!0)])):zi("v-if",!0),Mi("article",{class:Y(["kb-stream-donation-overview","kb-stream-donation-overview--".concat(e.variation)])},[Mi("h2",KLe,fe(e.name),1),Mi("div",ZLe,[Mi("span",WLe,fe(e.totalAmount)+" kr.",1),Mi("span",$Le,[t[0]||(t[0]=Mi("span",{class:"kb-stream-donation-overview__goal-label"},"Mål: ",-1)),Mi("span",YLe,fe(e.targetAmount)+" kr.",1)])]),Mi("div",JLe,[Mi("div",{class:"kb-stream-donation-overview__progress-fill",style:G("width: ".concat(e.progressPercent,"%;"))},null,4)]),Mi("p",{class:"kb-stream-donation-overview__footer",innerHTML:e.footerText},null,8,XLe)],2),"below"===e.donationPosition?(Ai(),Si("div",QLe,[e.currentNew?(Ai(),Ti(l,{key:e.currentNew.id,"donation-style":e.donationStyle,amount:e.currentNew.amount,"donor-name":e.currentNew.donorName},null,8,["donation-style","amount","donor-name"])):zi("v-if",!0),(Ai(),Si(gi,null,Yr([0,1,2,3],function(t){return Ai(),Si(gi,{key:t},[e.previousDonations[t]?(Ai(),Ti(i,{key:e.previousDonations[t].id,variation:e.variation,"donation-style":e.donationStyle,index:t,amount:e.previousDonations[t].amount,"donor-name":e.previousDonations[t].donorName},null,8,["variation","donation-style","index","amount","donor-name"])):zi("v-if",!0)],64)}),64))])):zi("v-if",!0)])}]]);var ODe={class:"kb-stream-donation-qr-code__qr"},LDe=["src"],DDe={key:1,class:"kb-stream-donation-qr-code__spinner"};function MDe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return NDe(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(NDe(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,NDe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,NDe(d,"constructor",c),NDe(c,"constructor",s),s.displayName="GeneratorFunction",NDe(c,r,"GeneratorFunction"),NDe(d),NDe(d,r,"Generator"),NDe(d,o,function(){return this}),NDe(d,"toString",function(){return"[object Generator]"}),(MDe=function(){return{w:a,m:p}})()}function NDe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}NDe=function(e,t,n,o){function a(t,n){NDe(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},NDe(e,t,n,o)}function PDe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function RDe(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){PDe(a,o,r,i,l,"next",e)}function l(e){PDe(a,o,r,i,l,"throw",e)}i(void 0)})}}const FDe={name:"StreamDonationQrCode",props:{fundraisingId:{type:String,default:""},variation:{type:String,default:"dark"},border:{type:String,default:""}},setup:function(e){var t=Kt("");return Dr(RDe(MDe().m(function n(){var o,r,a;return MDe().w(function(n){for(;;)switch(n.n){case 0:if(e.fundraisingId){n.n=1;break}return n.a(2);case 1:return r="".concat(document.location.origin,"/da/api/personalFundraising/").concat(e.fundraisingId),n.n=2,um(r);case 2:null!=(a=n.v)&&null!==(o=a.details)&&void 0!==o&&o.livestreamQrCode&&(t.value=a.details.livestreamQrCode);case 3:return n.a(2)}},n)}))),{qrImgUrlBase:t}}},VDe=(0,Hb.A)(FDe,[["render",function(e,t,n,o,r,a){return Ai(),Si("article",{class:Y(["kb-stream-donation-qr-code",["kb-stream-donation-qr-code--".concat(e.variation),e.border?"kb-stream-donation-qr-code--".concat(e.border):null]])},[t[0]||(t[0]=Mi("h2",{class:"kb-stream-donation-qr-code__title"},"Støt her",-1)),Mi("div",ODe,[e.qrImgUrlBase?(Ai(),Si("img",{key:0,src:"data:image/png;base64, ".concat(e.qrImgUrlBase),alt:"QR-kode"},null,8,LDe)):(Ai(),Si("div",DDe))])],2)}]]),zDe=Object.assign({},E3,{name:"SubbrandHeader"});var UDe=".kb-component--subbrand-header",jDe=document.querySelector(UDe);function HDe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var qDe={class:"kb-team-list"},GDe={class:"kb-team-list__meta-top-container"},KDe={class:"kb-team-list__meta-top-container-count","aria-live":"polite"},ZDe={class:"kb-team-list__container"},WDe={class:"kb-team-list__container-list"},$De={key:0},YDe={key:0,class:"kb-team-list__container-show-more"},JDe={class:"kb-team-list__container-show-more-text"},XDe={key:0,class:"kb-general-search__no-results"},QDe={class:"kb-general-search__no-results__summary"},eMe=["href"],tMe={key:1,class:"kb-spinner-overlay"},nMe=["href"],oMe={class:"kb-team-list-card__image-container"},rMe=["src","alt"],aMe={class:"kb-team-list-card__content"},iMe={class:"kb-team-list-card__content-captain"},lMe={class:"kb-team-list-card__content-team"},sMe={class:"kb-team-list-card__content-fundraise-container"},cMe={class:"kb-team-list-card__content-price"},uMe={class:"kb-team-list-card__progress-bar"},dMe={class:"kb-team-list-card__content-target"},pMe={class:"kb-team-list-card__tag"};const fMe={name:"TeamListCard",props:{participantsText:{type:String,required:!0},captainText:{type:String,required:!0},captains:{type:Array,required:!0},url:{type:String,required:!0},imageUrl:{type:String,required:!0},imageAlt:{type:String,required:!0},name:{type:String,required:!0},membersCount:{type:Number,required:!0},donationGoals:{type:Number,required:!0},donationGoalsText:{type:String,required:!0},currencyText:{type:String,required:!0},donationTotal:{type:Number,required:!0}},setup:function(e){var t=function(e){return null==e?"":new Intl.NumberFormat("da-DK",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(e))},n=bl(function(){return t(e.donationTotal)}),o=bl(function(){return t(e.donationGoals)});return{progress:bl(function(){var t=100*e.donationTotal/e.donationGoals;return Math.min(t,100)}),donationTotalFormatted:n,donationGoalsFormatted:o}}},mMe=fMe,gMe=(0,Hb.A)(mMe,[["render",function(e,t,n,o,r,a){return Ai(),Si("a",{href:e.url,class:"kb-team-list-card"},[Mi("section",oMe,[Mi("img",{src:e.imageUrl,alt:e.imageAlt},null,8,rMe)]),Mi("section",aMe,[Mi("p",iMe,[Fi(fe(e.captainText)+" ",1),(Ai(!0),Si(gi,null,Yr(e.captains,function(t,n){return Ai(),Si("span",{key:n},fe(t)+fe(n+1<e.captains.length?", ":""),1)}),128))]),Mi("h2",lMe,fe(e.name),1),Mi("div",sMe,[Mi("p",cMe,fe("".concat(e.donationTotalFormatted," ").concat(e.currencyText)),1
2),Mi("div",uMe,[Mi("div",{class:Y(["kb-team-list-card__progress-bar-inner",{full:100===e.progress}]),style:G("width: "+e.progress+"%")},null,6)]),Mi("p",dMe,fe("".concat(e.donationGoalsText," ").concat(e.donationGoalsFormatted," ").concat(e.currencyText)),1)]),Mi("div",pMe,[t[0]||(t[0]=Mi("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Mi("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.5 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm.5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm1 6.15c0-1.203.91-2.15 2-2.15 1.09 0 2 .947 2 2.15v2.85h.5V9.993A2.496 2.496 0 0 1 13 7.5c1.381 0 2.5 1.117 2.5 2.493V13h-1v.5H16V9.993A2.996 2.996 0 0 0 13 7a3 3 0 0 0-2.898 2.216C9.66 8.488 8.89 8 8 8c-.889 0-1.66.488-2.102 1.216A3 3 0 0 0 3 7C1.344 7 0 8.34 0 9.993V13.5h1.5V13h-1V9.993A2.496 2.496 0 0 1 3 7.5c1.381 0 2.5 1.117 2.5 2.493V13.5H6v-2.85ZM13 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0 .5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-3.75-.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm.5 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z",fill:"#3C3C3C"})],-1)),Mi("p",null,fe("".concat(e.membersCount," ").concat(e.participantsText)),1)])])],8,nMe)}]]),hMe={name:"TeamList",components:{TeamListCard:gMe,SortDropdown:m1},props:{source:{type:String,required:!0},stafetId:{type:String,required:!0},guid:{type:String,required:!0},take:{type:Number,default:18},hideNoResults:{type:Boolean,required:!1,default:!1},filterShown:{type:Boolean,required:!1,default:!0}},setup:function(e){var t=Af(),n=Kt(e.take);Dr(function(){var n=("profil"===e.source?"api/hold-list/profile/hold/[pageId]":"api/holdList/[pageId]/[stafetId]").replace("[stafetId]",e.stafetId).replace("[pageId]",t.state.main.page_id);t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:n}),t.dispatch("search/performZeroSearch",{guid:e.guid}),t.dispatch("search/performSearch",{guid:e.guid,skip:0,take:e.take})});var o=function(e,n){var o=t.getters["labels/getLabel"]({labelCollection:"teamList",labelKey:e});return n&&n.map(function(e,t){o=o.replace("{".concat(t,"}"),e)}),o},r={name:"Sorter",options:[{name:o("sortListAlphabetical"),handler:"alphabetical"},{name:o("sortListIndsamlet"),handler:"highestCollected"},{name:o("sortListSenestOprettet"),handler:"latest"}]},a=bl(function(){var o,r=null!==(o=t.state.search.results[e.guid])&&void 0!==o?o:[];return n.value=r.length,r}),i=bl(function(){var n;return null!==(n=t.state.search.scoped_total[e.guid])&&void 0!==n?n:0}),l=bl(function(){return t.state.search.search_inprogress[e.guid]});return{sortOptions:r,sortingHandler:function(n){t.dispatch("search/performSearch",{guid:e.guid,sorting:n})},getLabel:o,teams:a,teamsShownAmount:n,totalAmount:i,getMoreResults:function(){t.dispatch("search/performMoreSearch",{guid:e.guid})},showSpinner:l}}},bMe=hMe,vMe=(0,Hb.A)(bMe,[["render",function(e,t,n,o,r,a){var i,l=qr("SortDropdown"),s=qr("TeamListCard");return Ai(),Si("article",qDe,[Mi("div",GDe,[Mi("div",KDe,[Mi("span",null,fe(e.totalAmount),1),Fi(" "+fe(e.getLabel("resultTypeTitle")),1)]),e.sortOptions&&e.filterShown?(Ai(),Ti(l,{key:0,config:e.sortOptions,guid:"required-but-not-relevant",sortingHandler:e.sortingHandler},null,8,["config","sortingHandler"])):zi("v-if",!0)]),Mi("div",ZDe,[Mi("ul",WDe,[(Ai(!0),Si(gi,null,Yr(e.teams,function(t,n){return Ai(),Si(gi,{key:n}
2,[n<e.teamsShownAmount?(Ai(),Si("li",$De,[Ni(s,{captainText:e.getLabel("captainText"),participantsText:e.getLabel("participantsText"),captains:t.captains,imageUrl:t.imageUrl,imageAlt:t.imageAlt,url:t.url,name:t.name,membersCount:t.numberOfDeltagere,currencyText:e.getLabel("currencyText"),donationGoalsText:e.getLabel("donationGoalsText"),donationGoals:t.donationGoals,donationTotal:t.donationTotal},null,8,["captainText","participantsText","captains","imageUrl","imageAlt","url","name","membersCount","currencyText","donationGoalsText","donationGoals","donationTotal"])])):zi("v-if",!0)],64)}),128))]),e.teamsShownAmount&&!e.showSpinner?(Ai(),Si("div",YDe,[Mi("p",JDe,fe(e.getLabel("resultCountTitle",[e.teamsShownAmount.toString(),e.totalAmount.toString()])),1),e.teamsShownAmount<e.totalAmount?(Ai(),Si("button",{key:0,onClick:t[0]||(t[0]=function(){return e.getMoreResults&&e.getMoreResults.apply(e,arguments)}),class:"kb-button kb-button--full-color"},fe(e.getLabel("showMoreButtonText")),1)):zi("v-if",!0)])):zi("v-if",!0)]),e.teamsShownAmount||e.showSpinner||e.hideNoResults?zi("v-if",!0):(Ai(),Si("div",XDe,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",QDe,fe(e.getLabel("noResultDesc")),1),Mi("a",{href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,eMe)])),e.showSpinner?(Ai(),Si("div",tMe,(i=t[1]||(t[1]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return HDe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return HDe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HDe(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])}]]);function yMe(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return _Me(c,"_invoke",function(n,o,r){var a,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,o){for(l=n,s=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],f=p.p,m=a[2];n>3?(r=m===o)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((r=n<2&&f<a[1])?(l=0,p.v=o,p.n=a[1]):f<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,p.n=m,l=0))}if(r||n>1)return i;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,a){if(l||(r="next"),t=a[r]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(o,p))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(_Me(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_Me(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,_Me(d,"constructor",c),_Me(c,"constructor",s),s.displayName="GeneratorFunction",_Me(c,r,"GeneratorFunction"),_Me(d),_Me(d,r,"Generator"),_Me(d,o,function(){return this}),_Me(d,"toString",function(){return"[object Generator]"}),(yMe=function(){return{w:a,m:p}})()}function _Me(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}_Me=function(e,t,n,o){function a(t,n){_Me(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},_Me(e,t,n,o)}function AMe(e,t,n,o,r,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function kMe(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){AMe(a,o,r,i,l,"next",e)}function l(e){AMe(a,o,r,i,l,"throw",e)}i(void 0)})}}const xMe={name:"TextEditor",components:{Editor:SO},props:{initContent:{type:String,default:""}},setup:function(e){var t=Kt(e.initContent),n=Kt(!1);return Dr(kMe(yMe().m(function e(){return yMe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ZAe();case 1:n.value=!0;case 2:return e.a(2)}},e)}))),{content:t,tinymceReady:n}}},wMe={name:"TheAside",setup:function(e){var t=Af();return{openSourceOverlay:function(e,n){t.commit("main/set_page_overlay_content_data",{source:n}
2),t.dispatch("main/openPageOverlay",{overlayContent:"SourceOverlay",returnTarget:e.currentTarget})}}}};function CMe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var EMe={class:"kb-user-posts-list"},SMe={key:0,class:"kb-user-posts-list__title"},TMe={class:"kb-user-posts-list__items"},IMe={key:1,class:"kb-general-search__more-results"},BMe={class:"kb-general-search__more-results__text"},OMe={key:2,class:"kb-general-search__no-results"},LMe={class:"kb-general-search__no-results__summary"},DMe=["href"],MMe={key:3,class:"kb-spinner-overlay"};const NMe={name:"UserPostsList",components:{GroupPost:G$},props:{guid:{type:String,required:!0},groupId:{type:String,required:!0},skip:{type:Number,default:0},take:{type:Number,default:10},userData:{type:Object,default:null},type:{type:String,default:null}},setup:function(e){var t=Af(),n=bl(function(){var e;return null!==(e=t.state.main.user.user_authorized)&&void 0!==e&&e}),o=bl(function(){var n;return null!==(n=t.state.search.results[e.guid])&&void 0!==n?n:[]}),r=bl(function(){var n;return null!==(n=t.state.search.scoped_total[e.guid])&&void 0!==n?n:0}),a=bl(function(){return t.state.search.search_inprogress[e.guid]});return Dr(function(){var n="saved"===e.type?"api/community/user/posts/saved":"api/community/user/posts";t.dispatch("search/initSearchScope",{guid:e.guid,firstPageSize:e.take,showMorePageSize:e.take,url:n}),t.dispatch("search/performSearch",{guid:e.guid,guery:"",skip:e.skip,take:e.take})}),{isLoggedIn:n,posts:o,totalNumberOfPosts:r,showSpinner:a,getLabel:function(e,t){var n=dA({labelKey:e,labelCollection:"UserPostsList"});return t&&t.forEach(function(e,t){n=n.replace("{".concat(t,"}"),e)}),n},handlePostClick:function(e,t){window.location.href=t.url},getMorePosts:function(){t.dispatch("search/performMoreSearch",{guid:e.guid})}}}},PMe=NMe,RMe=(0,Hb.A)(PMe,[["render",function(e,t,n,o,r,a){var i,l=qr("GroupPost");return Ai(),Si("article",EMe,[e.posts.length>0?(Ai(),Si("span",SMe,fe(e.posts.length)+" "+fe(e.getLabel("resultCountTitle")),1)):zi("v-if",!0),Mi("ul",TMe,[(Ai(!0),Si(gi,null,Yr(e.posts,function(t,n){return Ai(),Si("li",{class:"kb-user-posts-list__items-item",key:n},[Ni(l,{result:t,groupId:t.groupId,handlePostClick:e.handlePostClick},null,8,["result","groupId","handlePostClick"])])}),128))]),e.posts.length>0?(Ai(),Si("div",IMe,[Mi("span",BMe,fe(e.getLabel("resultOutForTitle",[e.posts.length,e.totalNumberOfPosts])),1),e.totalNumberOfPosts>e.posts.length?(Ai(),Si("button",{key:0,onClick:t[0]||(t[0]=function(){return e.getMorePosts&&e.getMorePosts.apply(e,arguments)}),class:"kb-button kb-button--full-color"},fe(e.getLabel("showMoreButtonText")),1)):zi("v-if",!0)])):zi("v-if",!0),e.totalNumberOfPosts||e.showSpinner||0!==e.posts.length?zi("v-if",!0):(Ai(),Si("div",OMe,[Mi("h2",null,fe(e.getLabel("noResultTitle")),1),Mi("p",LMe,fe(e.getLabel("noResultDesc")),1),Mi("a",{href:e.getLabel("noResultButtonHref"),class:"kb-button kb-button--full-color-spot"},fe(e.getLabel("noResultButtonText")),9,DMe)])),e.showSpinner?(Ai(),Si("div",MMe,(i=t[1]||(t[1]=[Mi("div",{class:"kb-spinner-overlay__spinner"},null,-1)]),function(e){if(Array.isArray(e))return CMe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return CMe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CMe(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):zi("v-if",!0)])}]]),FMe=RMe,VMe={name:"WebshopHeader",setup:function(){var e=Af(),t=bl(function(){var t;return null===(t=e.state.basket)||void 0===t?void 0:t.initialItemsCount}),n=bl(function(){var n;return(null===(n=e.state.basket)||void 0===n||null===(n=n.totals)||void 0===n?void 0:n.productsAmount)||t.value}),o=bl(function(){return n.value>99?"99+":n.value.toString()});return{itemsCount:n,itemsCountString:o,startBurgermenu:function(t){console.log("burger icon clicket"),e.dispatch("main/openPageOverlay",{overlayContent:"BurgerMenu",returnTarget:t.currentTarget})},startSearchoverlay:function(t){e.dispatch("main/openPageOverlay",{overlayContent:"SearchOverlay",returnTarget:t.currentTarget})},startMegaMenu:function(t){e.dispatch("main/openPageOverlay",{overlayContent:"megaMenu",returnTarget:t.currentTarget})},startProfileOverlay:function(t){e.dispatch("main/openPageOverlay",{overlayContent:"ProfileOverlay",returnTarget:t.currentTarget})}}}};
2var zMe=document.querySelector(".kb-component--webshop-header");document.querySelectorAll("[data-labels]").forEach(function(e){var t=JSON.parse(e.dataset.labels);Array.isArray(t)?t.forEach(function(e){uh.commit("labels/set_labelCollection",e)}):uh.commit("labels/set_labelCollection",t)}),r(804),r(917),function(e){ph(e),function(e){var t=document.querySelectorAll(".kb-component--secondary-article-spots");t&&t.length&&t.forEach(function(t){var n={contentJson:t.dataset.contentjson?JSON.parse(t.dataset.contentjson):[],link:t.dataset.link?JSON.parse(t.dataset.link):null,carouselId:t.id};bc(cy,n).use(e).mount(t)})}(e),_y.forEach(function(e){if(!e.hasAttribute("data-v-app")){var t=e.dataset.tooltip,n=e.dataset.tooltipname;bc(yy,{tooltipText:t,tooltipName:n}).mount(e)}}),function(e){var t=document.querySelectorAll(".kb-component--page-id-init");if(!t||t.length<1)return console.warn("No page id init found. The page id from the store will therefore not be set"),!1;if(t.length>1)throw new Error("Found multiple page id inits");e.dispatch("main/setPageId",t[0].dataset.pageId)}(e),ky(e),function(e){var t=document.querySelectorAll(".kb-component--action-response-box");t.length&&t.forEach(function(t){var n={actionResponseText:t.dataset.actionResponseText,lifeTime:Number(t.dataset.lifeTime),fadeDuration:Number(t.dataset.fadeDuration)};bc(Sy,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--active-groups");t.length&&t.forEach(function(t){var n={guid:t.dataset.guid};bc(__,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--active-role-list-card");t.length&&t.forEach(function(t){var n=t.dataset.roleCard?JSON.parse(t.dataset.roleCard):null;bc(O_,{roleCardData:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--active-roles-list");t.length&&t.forEach(function(t){var n=t.dataset.rolesData?JSON.parse(t.dataset.rolesData):null;bc(U_,{rolesData:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--activity-card");t.length&&t.forEach(function(t){bc(fA).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--advanced-radio");t&&t.length&&t.forEach(function(t){var n={type:t.dataset.type,tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,legend:t.dataset.legend,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname,radioOptions:JSON.parse(t.dataset.radiooptions)};bc(EA,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--amount-selector");t&&t.length&&t.forEach(function(t){bc(OA).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--article-anchors");t.length&&t.forEach(function(t){if(t.hasAttribute("data-v-app"))return!1;bc(PA).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--community-attachments-editor");t.length&&t.forEach(function(t){var n={acceptedFileTypes:t.dataset.acceptedFileTypes,files:JSON.parse(t.dataset.files),maxAttachments:parseInt(t.dataset.maxAttachments)};bc(hk,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--community-attachments-viewer");t.length&&t.forEach(function(t){var n={files:JSON.parse(t.dataset.files)};bc(Rk,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--basket");t.length&&t.forEach(function(t){var n=t.dataset.asideResults?JSON.parse(t.dataset.asideResults):{};bc(Qx,{asideResults:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--basket-aside");t.length&&t.forEach(function(t){bc(Yx,{asideResults}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--basket-card");t.length&&t.forEach(function(t){bc(Zx).use(e).mount(t)})}(e),function(e){nw&&!nw.hasAttribute("data-v-app")&&bc(ew).use(e).mount(tw)}(e),function(e){if(ow){var t=function(e){return{column:e.dataset.column,href:e.href,text:e.text,target:e.target,svgIcon:e.querySelector(".kb-icon")?e.querySelector(".kb-icon").innerHTML:null}},n=Array.from(ow.querySelectorAll('[data-nav="primary"]')).map(t),o=Array.from(ow.querySelectorAll('[data-nav="secondary"]')).map(t),r=ow.querySelector('[data-nav="simple-cta"]'),a=r?{href:r.href,text:r.text}:null;e.commit("main/set_burger_menu_links",{primary:n,secondary:o,simpleCta:a})}}(e),function(e){var t=document.querySelectorAll(".kb-component--buy-section");t&&t.length&&t.forEach(function(t){var n,o,r,a,i,l={variants:null!==(n=t.dataset.variants)&&void 0!==n?n:"",currentVariantSku:t.dataset.currentVariantSku,pdf:null!==(o=t.dataset.pdf)&&void 0!==o?o:"",soldOutText:null!==(r=t.dataset.soldOutText)&&void 0!==r?r:"",basketPageUrl:null!==(a=t.dataset.basketPageUrl)&&void 0!==a?a:"",hasRequiredRights:t.dataset.hasRequiredRights,rolePageUrl:null!==(i=t.dataset.rolePageUrl)&&void 0!==i?i:"",openRecommendationOverlay:"true"===t.dataset.openRecommendationOverlay};bc(Dw,l).use(e).mount(t)})}(e),function(){var e=document.querySelectorAll("[data-content=CalendarOverlay]");e.length&&e.forEach(function(e){var t,n,o=e.dataset.groupId,r=null!==(t=parseInt(e.dataset.ski
2p))&&void 0!==t?t:0,a=null!==(n=parseInt(e.dataset.take))&&void 0!==n?n:10,i=e.dataset.createEventUrl,l="true"===e.dataset.allowedToEdit;uh.commit("main/set_page_overlay_content_data",{groupId:o,skip:r,take:a,createEventUrl:i,allowedToEdit:l})})}(),function(e){var t=document.querySelectorAll(".kb-component--case-card");t&&t.length&&t.forEach(function(t){bc(Bv).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--case-carousel");t&&t.length&&t.forEach(function(t){var n={carouselId:t.id,contentJson:t.dataset.contentjson?JSON.parse(t.dataset.contentjson):[],link:t.dataset.link?JSON.parse(t.dataset.link):null,type:t.dataset.type};bc(qw,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--case-module");t&&t.length&&t.forEach(function(t){var n=t.innerHTML;Gw.template=n;var o=t.querySelector(".glide").id;bc(Gw,{glideId:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--category-picker");t.length&&t.forEach(function(t){var n=t.dataset.categories?JSON.parse(t.dataset.categories):[];bc(mC,{categories:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--changes-saved");t.length&&t.forEach(function(t){bc(xC).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--checkout-content");t.length&&t.forEach(function(t){bc(tI).use(e).mount(t)})}(e),function(e){if(oI&&!oI.hasAttribute("data-v-app")){var t=oI.outerHTML;nI.template=t,bc(nI).use(e).mount(oI)}}(e),function(e){var t=document.querySelectorAll(".kb-component--checkout-step-one");t.length&&t.forEach(function(t){bc(oS).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--checkout-step-three");t.length&&t.forEach(function(t){bc(XT).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--checkout-step-two");t.length&&t.forEach(function(t){var n=t.dataset.addressResults?JSON.parse(t.dataset.addressResults):null;bc($S,{addressResults:n}).use(e).mount(t)})}(e),function(){var e=document.querySelectorAll("[data-content=ClosedGroupOverlay]");e.length&&e.forEach(function(e){var t=e.dataset.groupId;uh.commit("main/set_page_overlay_content_data",{groupId:t})})}(),function(e){dI&&bc(cI).use(e).mount(uI)}(e),function(e){var t=document.querySelectorAll(".kb-component--confirm-changes");t.length&&t.forEach(function(t){bc(_I).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--confirm-delete-overlay");t.length&&t.forEach(function(t){bc(RI).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--confirm-delete-profile");t.length&&t.forEach(function(t){bc(KI).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--contact-banner");t.length&&t.forEach(function(t){if(t.hasAttribute("data-v-app"))return!1;bc(ZI).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--content-carousel");t&&t.forEach(function(t){if(t.hasAttribute("data-v-app"))return!1;var n={carouselId:t.id,contentJson:t.dataset.contentjson?JSON.parse(t.dataset.contentjson):[],glideBehaviour:t.dataset.glideBehaviour,type:t.dataset.type,link:t.dataset.link?JSON.parse(t.dataset.link):null};bc(iy,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--contribution-selector");t.length&&t.forEach(function(t){var n=t.outerHTML,o=JSON.parse(t.dataset.data);WI.template=n,bc(WI,{data:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-cancer-forum-profile");t.length&&t.forEach(function(t){bc(vB).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-event");t.length&&t.forEach(function(t){var n=LO(OO,t);bc(OO,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-folder-overlay");t.length&&t.forEach(function(t){var n,o={groupId:null!==(n=WO.dataset.groupId)&&void 0!==n?n:"",content:WO.dataset.content?JSON.parse(WO.dataset.content):null};bc(WO,o).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-frivillige-profile");t.length&&t.forEach(function(t){var n=LO(PL,t);bc(PL,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-frivillig-job");t.length&&t.forEach(function(t){var n=LO(OD,t);bc(OD,MD(MD({},n),{},{isEditContext:t.hasAttribute("is-edit-context")})).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-gallery");t.length&&t.forEach(function(t){var n,o,r={groupName:null!==(n=t.dataset.groupName)&&void 0!==n?n:"",groupId:null!==(o=t.dataset.groupId)&&void 0!==o?o:"",content:t.dataset.content?JSON.parse(t.dataset.content):null};bc(pM,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-new-file-overlay");t.length&&t.forEach(function(t){bc(IM).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-post");t.length&&t.forEach(function(t){var n,o,r,a,i={groupName:null!==(n=t.dataset.groupName)&&void 0!==n?n:"",groupDescription:null!==(o=t.dataset.groupDescription)&&void 0!==o?o:"",groupId:null!==(r=t.dataset.groupId)&&void 0!==r?r:"",postId:null!==(a=t.dataset.postId)&&void 0!==a?a:"",content:t.dataset.content?JSON.parse(t.dataset.content):null};bc(YM,i).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--create-stafet-profile");t.length&&t.forEach(function(t){var n,o,r,a,i,l,s={userProfileId:null!==(n=t.dataset.userProfileId)&&void 0!==n?n:null,email:null!==(o=t.dataset.email)&&void 0!==o?o:null,firstName:null!==(r=t.dataset.f
2irstName)&&void 0!==r?r:null,lastName:null!==(a=t.dataset.lastName)&&void 0!==a?a:null,phone:null!==(i=t.dataset.phone)&&void 0!==i?i:null,informationRichText:null!==(l=t.dataset.informationRichText)&&void 0!==l?l:null};bc(gN,s).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--cta-box");t.length&&t.forEach(function(t){var n=JSON.parse(t.dataset.result),o=t.dataset.ctaId;bc(SN,{result:n,ctaId:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--danmarks-kort");t.length&&t.forEach(function(t){var n,o,r,a=t.dataset,i={title:null!==(n=a.title)&&void 0!==n?n:"",flow:null!==(o=a.flow)&&void 0!==o?o:"municipality",groupData:a.groupData?JSON.parse(a.groupData):[],municipalityDataUrl:null!==(r=a.municipalityDataUrl)&&void 0!==r?r:"/api/map-data-{key}.json",legend:a.legend?JSON.parse(a.legend):void 0};rR.forEach(function(e){a[e]&&(i[e]=a[e])}),bc(oR,i).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--delete-cancer-profile-modal");t.length&&t.forEach(function(t){var n={continueUrl:t.dataset.continueUrl,continueUrlWithData:t.dataset.continueUrlWithData};bc(vR,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--delete-event-modal");t.length&&t.forEach(function(t){bc(FR).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--delete-frivilligjob-overlay");t.length&&t.forEach(function(t){bc(nF).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll("[data-content=DeleteGlobalProfileOverlay]");t.length&&t.forEach(function(t){var n=t.dataset.userProfileId,o=t.dataset.privacyPolicy;e.commit("main/set_page_overlay_content_data",{userProfileId:n,privacyPolicy:o})})}(e),function(e){var t=document.querySelectorAll(".kb-component--delete-profile-flow");t.length&&t.forEach(function(t){var n={userProfileId:t.dataset.userProfileId,userData:JSON.parse(t.dataset.userData)};bc($F,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--delete-role-overlay");t.length&&t.forEach(function(t){bc(fV).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--delivery-address");t.length&&t.forEach(function(t){bc(OS).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--delivery-card");t.length&&t.forEach(function(t){var n=t.dataset.type,o=t.dataset.svgIcon;bc(xS,{type:n,svgIcon:o}).use(e).mount(t)})}(e),OV(e),function(e){var t=document.querySelectorAll(".kb-component--dictionary-list");t.length&&t.forEach(function(t){if(t.hasAttribute("data-v-app"))return!1;var n=Array.from(t.querySelectorAll(".kb-dictionary-list__group")).map(function(e){return{letter:e.querySelector(".kb-dictionary-list__group__letter").textContent,words:Array.from(e.querySelectorAll(".kb-dictionary-list__group__word A")).map(function(e){return{word:e.textContent,href:e.getAttribute("href")}})}}),o=t.dataset.showfilter;bc(UV,{dictionary:n,showFilter:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--direct-message-navigation");t.length&&t.forEach(function(t){var n=JSON.parse(t.dataset.external),o={guid:t.dataset.guid,userData:null==n?void 0:n.userData,chatId:null==n?void 0:n.chatId,messagesPerLoad:null==n?void 0:n.messagesPerLoad};bc(bz,o).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--direct-messages-content");t.length&&t.forEach(function(t){var n=JSON.parse(t.dataset.external),o={guid:t.dataset.guid,chatId:null==n?void 0:n.chatId,userData:null==n?void 0:n.userData};bc(PU,o).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--direct-message-thread");t.length&&t.forEach(function(t){var n=JSON.parse(t.dataset.external),o={chatId:null==n?void 0:n.chatId,userData:null==n?void 0:n.userData};bc(MU,o).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--document-and-folder-list");t.length&&t.forEach(function(t){var n,o,r={guid:null!==(n=t.dataset.guid)&&void 0!==n?n:"",gruppeKode:null!==(o=t.dataset.gruppeKode)&&void 0!==o?o:"",cardButtonIcons:t.dataset.cardButtonIcons?JSON.parse(t.dataset.cardButtonIcons):{}
2,fileTypeDropdownOptions:JSON.parse(t.dataset.fileTypeDropdownOptions)};bc(Ej,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--donation-amount");t.length&&t.forEach(function(t){var n=t.outerHTML;Oj.template=n;var o=t.hasAttribute("show-custom-Donation");bc(Oj,{showCustomDonation:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--donation-amount-picker");t.length&&t.forEach(function(t){var n=t.outerHTML;Vj.template=n,bc(Vj).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--donation-card");t.length&&t.forEach(function(t){bc(Zj).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll("[data-content=DonationReceiptOverlay]");t.length&&t.forEach(function(t){var n=t.dataset.readMoreUrl;e.commit("main/set_page_overlay_content_data",{readMoreUrl:n})})}(e),function(e){var t=document.querySelectorAll(".kb-component--dropdown-with-tags");t.length&&t.forEach(function(t){var n={tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,tagsTitle:t.dataset.tagstitle,label:t.dataset.label,legend:t.dataset.legend,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname,selectOptions:JSON.parse(t.dataset.selectoptions)};bc(mH,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--edit-frivillig-profile");t.length&&t.forEach(function(t){var n=t.hasAttribute("notification-when-comment-on-saved-posts"),o=t.hasAttribute("notification-when-direct-message"),r=t.hasAttribute("notification-when-new-document"),a=t.hasAttribute("notification-when-posts-on-group"),i=t.hasAttribute("address-visible"),l=t.hasAttribute("phonenumber-visible"),s=t.hasAttribute("email-visible"),c=t.hasAttribute("subscribed-to-newsletter"),u=LO(vq,t);bc(vq,Aq(Aq({},u),{},{notificationWhenCommentOnSavedPosts:n,notificationWhenDirectMessage:o,notificationWhenNewDocument:r,notificationWhenPostsOnGroups:a,addressVisible:i,phonenumberVisible:l,emailVisible:s,hasNewsletterSubscription:c})).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--edit-profile-form");t.length&&t.forEach(function(t){var n={pageId:t.dataset.pageId,userProfileId:t.dataset.userProfileId,userData:JSON.parse(t.dataset.userData),deleteProfileUrl:t.dataset.deleteProfileUrl,isNewUser:"true"===t.dataset.isNewUser,privacyPolicyHtml:t.dataset.privacyPolicyHtml};bc(Kq,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--featured-groups");t.length&&t.forEach(function(t){var n=LO(iG,t);bc(iG,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--featured-post-spot-card");t.length&&t.forEach(function(t){var n=t.dataset.spotCard?JSON.parse(t.dataset.spotCard):null;bc(kG,{spotCardData:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--feature-navigation-team");t.length&&t.forEach(function(t){var n=t.outerHTML;xG.template=n;var o=t.dataset.teamId;bc(xG,{teamId:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--file-list-card");t.length&&t.forEach(function(t){var n=t.dataset.card?JSON.parse(t.dataset.card):null,o=t.dataset.cardButtonIcons?JSON.parse(t.dataset.cardButtonIcons):{};bc(kj,{cardData:n,cardButtonIcons:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--flow-edit-modal");t.length&&t.forEach(function(t){bc(FG).use(e).mount(t)})}(e),function(e){var t=document.querySelector(".kb-component--flow-header");if(t){var n=t.innerHTML;VG.template=n;var o=t.hasAttribute("is-stafet"),r=t.hasAttribute("is-independent");bc(VG,{isIndependent:r,isStafet:o}).use(e).mount(t)}}(e),function(e){var t=document.querySelectorAll(".kb-component--form-address-field");t&&t.length&&t.forEach(function(t){bc(tS).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-address-field-group");t.length&&t.forEach(function(t){var n=t.innerHTML;qG.template=n,bc(qG,{rootElement:t}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-boolean-field");t.length&&t.forEach(function(t){var n={checked:"true"===t.dataset.checked,elementId:t.dataset.elementId};bc(KG,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-checkbox");t.length&&t.forEach(function(t){var n={type:t.dataset.type,tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.f
2ieldname};bc(dB,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-combobox");t&&t.length&&t.forEach(function(t){if(!t.hasAttribute("data-v-app")){var n={fieldId:t.dataset.fieldid,ariaLabel:t.dataset.arialabel,placeholder:t.dataset.placeholder,buttonLabel:t.dataset.buttonlabel,noResultsLabel:t.dataset.noresultslabel,options:JSON.parse(t.dataset.options||"[]")};bc(QP,n).use(e).mount(t)}})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-cpr-field");t.length&&t.forEach(function(t){var n={type:t.dataset.type,tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname};bc(nK,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-cvr-field");t.length&&t.forEach(function(t){var n={type:t.dataset.type,tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname};bc(sK,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-date-field");t.length&&t.forEach(function(t){bc(gK).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-dropdown");t&&t.length&&t.forEach(function(t){var n={tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,legend:t.dataset.legend,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname,selectOptions:JSON.parse(t.dataset.selectoptions)};bc(XB,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-email-field");t&&t.length&&t.forEach(function(t){var n={tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname};bc(kL,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-name-field");t.length&&t.forEach(function(t){var n={type:t.dataset.type,tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname};bc(gL,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-phone-field");t&&t.length&&t.forEach(function(t){var n={tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname};bc(IL,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-rich-text");t.length&&t.forEach(function(t){var n={errorMessageLabel:t.dataset.errormessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:"true"===t.dataset.isrequired,fieldName:t.dataset.fieldname,isValidationError:t.dataset.isValidationError};bc(_K,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-textarea");t&&t.length&&t.forEach(function(t){var n={type:t.dataset.type,tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname};bc(_D,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-input-text-field");t&&t.length&&t.forEach(function(t){var n={type:t.dataset.type,tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.f
2ieldname};bc(mE,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-radio-group");t&&t.length&&t.forEach(function(t){var n={type:t.dataset.type,tooltipText:t.dataset.tooltiptext,errorMessageLabel:t.dataset.errormessagelabel,helpMessageLabel:t.dataset.helpmessagelabel,placeholder:t.dataset.placeholder,label:t.dataset.label,legend:t.dataset.legend,isRequired:!("true"!==t.dataset.isrequired),fieldName:t.dataset.fieldname,radioOptions:JSON.parse(t.dataset.radiooptions),localValue:t.dataset.localValue};bc(sO,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-stafet-selector");t.length&&t.forEach(function(t){var n={elementName:t.dataset.elementName,elementId:t.dataset.elementId,fieldNames:JSON.parse(t.dataset.fieldNames),labels:JSON.parse(t.dataset.labels)};bc(TK,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-step-submitting");t.length&&t.forEach(function(t){bc(qK).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--form-step-zero");t.length&&t.forEach(function(t){bc(tZ).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--forum-edit-profile");t.length&&t.forEach(function(t){var n={content:t.dataset.content?JSON.parse(t.dataset.content):{},continueUrl:t.dataset.continueUrl,continueUrlWithData:t.dataset.continueUrlWithData};uh.commit("main/set_page_overlay_content_data",{userId:t.dataset.userId}),bc(MZ,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--frivillige-checkout-content");t.length&&t.forEach(function(t){var n,o=t.dataset.external?JSON.parse(t.dataset.external):null,r={userData:null!==(n=null==o?void 0:o.userData)&&void 0!==n?n:{}};bc(hW,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--frivillige-checkout-step-one");t.length&&t.forEach(function(t){var n={fields:t.dataset.fields?JSON.parse(t.dataset.fields):{}};bc(aW,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--frivillige-checkout-step-two");t.length&&t.forEach(function(t){bc(fW).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--frivillige-posts-list");t.length&&t.forEach(function(t){var n={isMember:t.hasAttribute("is-member"),isLoggedIn:t.hasAttribute("is-logged-in"),guid:t.dataset.guid,groupId:t.dataset.groupId,featuredPostSpotCards:t.dataset.featuredPostSpotCards?JSON.parse(t.dataset.featuredPostSpotCards):null};bc($$,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--frivillige-shop-wrong-role-modal");t.length&&t.forEach(function(t){bc(aY).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--frivillig-group-hero");t.length&&t.forEach(function(t){cY.template=t.innerHtml;var n={gruppeKode:t.dataset.gruppeKode,isLoggedIn:"true"===t.dataset.isLoggedIn,loginUrl:t.dataset.loginUrl,closedGroup:"true"===t.dataset.gruppeIsClosed};bc(cY,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--frivilligjob-aside");t.length&&t.forEach(function(t){var n=t.innerHTML;uY.template=n;var o={jobId:t.dataset.jobId,redirectAfterDeleteUrl:t.dataset.deleteRedirectUrl};bc(uY,o).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--frivilligjob-card");t.length&&t.forEach(function(t){bc(TY).use(e).mount(t)})}(e),function(){var e=document.querySelectorAll(".kb-component--fullscreen-media");e&&e.length&&e.forEach(function(e){e.parentElement.replaceWith(e);var t=window.scrollY,n=window.scrollY,o=document.documentElement.clientWidth*(document.documentElement.clientWidth/document.documentElement.clientHeight>1.8?.9:1),r=e.querySelector("#fullscreen-media"),a=r.getBoundingClientRect().width,i=r.getBoundingClientRect().height;e.querySelector("#fullscreen-media-sensor").style.height="99vh";var l=Math.round(window.scrollY+r.getBoundingClientRect().top),s=l-window.scrollY>0?0:-1*(l-window.scrollY);function c(e,n){e.forEach(function(e){var n,i,l,s=e.intersectionRatio,c=t<window.scrollY,u=t>window.scrollY;(c||u)&&(n={ratioModifierFunction:function(){return s}},i=(n=Object.assign({currentRatio:s,minBoxWidth:a,maxScreenWidth:o,element:r,ratioModifierFunction:null},n)).ratioModifierFunction(),l=n.minBoxWidth+(n.maxScreenWidth-n.minBoxWidth)*i,n.element.style.maxWidth=s<1&&l<=o?l+"px":o+"px")})}IY(function(){if(window.innerWidth<769)return r.style.opacity=1,!0;var e=r.getBoundingClientRect().top<=0,t=getComputedStyle(r).getPropertyValue("opacity"),o=n<window.scrollY,a=n>window.scrollY;s=l-window.scrollY>0?0:-1*(l-window.scrollY),e&&o?(t=1-(100*s/i<100?100*s/i:100)/60,n=window.scrollY):t=e&&a?1-(100*s/i<100?100*s/i:100)/60:1,r.style.opacity=t,n=window.scrollY}),window.addEventListener("load",function(e){var t=document.querySelector("#fullscreen-media-sensor"),n={root:null,rootMargin:"0px",threshold:BY()};new IntersectionObserver(c,n).observe(t)},!1)})}(),function(e){var t=document.querySelectorAll(".kb-component--fundraise-form");t.length&&t.forEach(function(t){var n,o=t.dataset.guid,r=t.dataset.cancelUrl,a=t.dataset.draft?JSON.parse(t.dataset.draft):null,i=null===(n=t.dataset)||void 0===n?void 0:n.donationSettings;i&&e.commit("fundraising/set_donation_settings",JSON.parse(i));
2var l=t.dataset.firstname,s=t.dataset.lastname,c=t.dataset.email,u=t.dataset.phone,d="True"===t.dataset.showpersonalinformationinput,p=t.hasAttribute("is-mindegave"),f=t.hasAttribute("show-unsaved-changes-warning");bc(vJ,{fundraisingCampaignId:o,cancelUrl:r,isMindegave:p,showUnsavedChangesWarning:f,draft:a,showPersonalInformationInput:d,firstName:l,lastName:s,email:c,phone:u}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--fundraising-aside-vue");t.length&&t.forEach(function(t){var n=LO(zJ,t);bc(zJ,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--fundraising-card");t.length&&t.forEach(function(t){bc(QJ).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--fund-raising-counter");t.length&&t.forEach(function(t){var n=t.dataset,o={title:n.title,description:n.description,centerImage:JSON.parse(n.centerImage||"[]"),nonCenteredImages:JSON.parse(n.noncenteredImages||"[]"),linkUrl:n.linkUrl,linkText:n.linkText,linkTitle:n.linkTitle,linkTarget:n.linkTarget,campaignId:n.campaignId};bc(JX,o).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--fundraising-hero");t.length&&t.forEach(function(t){var n=t.outerHTML;XX.template=n,bc(XX).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--fundraising-qr-code-overlay");t.length&&t.forEach(function(t){var n=LO(gQ,t);bc(gQ,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--fvl-confirm-delete-profile");t.length&&t.forEach(function(t){bc(LQ).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--gallery-card");t.length&&t.forEach(function(t){var n,o={result:null!==(n=JSON.parse(t.dataset.result))&&void 0!==n?n:{}};bc(ZQ,o).use(e).mount(t)})}(e),function(e){K1&&K1.length&&K1.forEach(function(t){var n,o,r=t.dataset.guid,a=t.dataset.groupedContent,i=t.dataset.type,l=null!==(n=parseInt(t.dataset.firstPageSize))&&void 0!==n?n:10,s=null!==(o=parseInt(t.dataset.showMorePageSize))&&void 0!==o?o:10,c=t.dataset.spotCard?JSON.parse(t.dataset.spotCard):null,u=t.dataset.layoutStyle||"",d=t.hasAttribute("hide-no-results"),p=t.hasAttribute("avoid-set-query-in-url"),f=t.hasAttribute("is-multisearch"),m=bc(q1,{guid:r,type:i,firstPageSize:l,showMorePageSize:s,spotCardData:c,hideNoResults:d,avoidSetQueryInUrl:p,isMultisearch:f,groupedContent:a,layoutStyle:u}).use(e),g=t.id?"#".concat(t.id):G1;m.mount(g)})}(e),function(e){var t=document.querySelectorAll(".kb-component--group-card");t.length&&t.forEach(function(t){var n={content:t.dataset.content?JSON.parse(t.dataset.content):{}};bc(i2,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--group-details");t.length&&t.forEach(function(t){var n={id:t.dataset.id,svgIcon:t.dataset.svgIcon,colorTheme:t.dataset.colorTheme,title:t.dataset.title,type:t.dataset.type,updates:t.dataset.updates?parseInt(t.dataset.updates):0,numberOfMembers:t.dataset.numberOfMembers?parseInt(t.dataset.numberOfMembers):0,numberOfPosts:t.dataset.numberOfPosts?parseInt(t.dataset.numberOfPosts):0,link:t.dataset.link};bc(e_,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--group-post");t.length&&t.forEach(function(t){var n={result:t.dataset.result?JSON.parse(t.dataset.result):{},comments:t.dataset.comments?JSON.parse(t.dataset.comments):null,isFrivilligContext:t.dataset.isFrivilligContext,groupId:t.dataset.groupId};bc(G$,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--group-search-result");t.length&&t.forEach(function(t){var n,o,r={source:t.dataset.source,hovedgruppekode:t.dataset.hovedgruppekode,guid:t.dataset.guid,spotCard:t.dataset.spotCard?JSON.parse(t.dataset.spotCard):null,skip:null!==(n=parseInt(t.dataset.skip))&&void 0!==n?n:0,take:null!==(o=parseInt(t.dataset.take))&&void 0!==o?o:10,disableInitialSearch:"true"===t.dataset.disableInitialSearch};bc(I2,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--gruppeadgangsanmodning-list");t.length&&t.forEach(function(t){var n,o,r={guid:t.dataset.searchGuid,skip:null!==(n=parseInt(t.dataset.ski
2p))&&void 0!==n?n:0,take:null!==(o=parseInt(t.dataset.take))&&void 0!==o?o:10};bc(W2,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--gtm-tracker");t.length&&t.forEach(function(t){var n=t.dataset.trackJson,o=n?JSON.parse(n):null;bc(Y2,{trackData:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelector(".kb-component--header-mega-menu");t&&!t.hasAttribute("data-v-app")&&(t4.template=t.outerHTML,bc(t4).use(e).mount(t))}(e),function(e){if(i4){var t;t=i4.dataset.guid.length&&i4.dataset.guid.startsWith("[")?JSON.parse(i4.dataset.guid):[i4.dataset.guid];var n=i4.dataset.numberOfPrimaryTags?parseInt(i4.dataset.numberOfPrimaryTags):3,o=bc(r4,{guids:t,primaryTagsDisplayed:n}).use(e),r=i4.outerHTML;r4.template=r,o.mount(a4)}}(e),function(){var e=document.querySelectorAll("[data-content=HoldetsDeltagere]");e.length&&e.forEach(function(e){var t=e.dataset.teamid,n=e.dataset.addDeltagerFormUrl,o=e.dataset.donationFormUrl,r=e.dataset.lysposeFormUrl;uh.commit("main/set_page_overlay_content_data",{teamId:t,addDeltagerFormUrl:n,donationFormUrl:o,lysposeFormUrl:r})})}(),function(){var e=document.querySelectorAll("[data-content=HoldetsDonationer]");e.length&&e.forEach(function(e){var t=e.dataset.teamid,n=e.dataset.donationFormUrl;uh.commit("main/set_page_overlay_content_data",{teamId:t,donationFormUrl:n})})}(),function(){var e=document.querySelectorAll("[data-content=HoldetsLys]");e.length&&e.forEach(function(e){var t=e.dataset.teamid,n=e.dataset.lysposeFormUrl;uh.commit("main/set_page_overlay_content_data",{teamId:t,lysposeFormUrl:n})})}(),function(){var e=document.querySelectorAll("[data-content=HoldetsRoundCounterOverlay]");e.length&&e.forEach(function(e){if(e.dataset.teamid){var t=e.dataset.teamid,n=parseInt(e.dataset.maxRegistrationCount);uh.commit("main/set_page_overlay_content_data",{teamId:t,maxRegistrationCount:n})}})}(),function(){var e=document.querySelectorAll("[data-content=HoldOprettelseKvittering]");e.length&&e.forEach(function(e){if(e.dataset.teamid){var t=e.dataset.teamid;uh.commit("main/set_page_overlay_content_data",{teamId:t})}})}(),function(e){var t=document.querySelectorAll(".kb-component--image-gallery");t.length&&t.forEach(function(t){var n=JSON.parse(t.dataset.imgs),o=t.dataset.type;bc(C3,{imgs:n,type:o}).use(e).mount(t)})}(e),function(e){if(I3){var t=I3.innerHTML;S3.template=t,bc(S3).use(e).mount(T3)}}(e),O3(e),function(e){var t=document.querySelectorAll(".kb-component--location-card");t.length&&t.forEach(function(t){bc(s1).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll("[data-content=LoginOverlay]");t.length&&t.forEach(function(t){var n=t.dataset.loginUrl,o=t.dataset.createProfileUrl;e.commit("main/set_page_overlay_content_data",{loginUrl:n,createProfileUrl:o})})}(e),function(e){var t=document.querySelectorAll(".kb-component--lottery-form");t.length&&t.forEach(function(t){var n={lotteryRounds:JSON.parse(t.dataset.lotteryDropdownOptions)};bc(g7,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--material-card");t.length&&t.forEach(function(t){bc(F7).use(e).mount(t)})}(e),function(){var e=document.querySelectorAll("[data-content=MemberListOverlayCancerforum]");e.length&&e.forEach(function(e){var t=e.dataset.groupId;uh.commit("main/set_page_overlay_content_data",{groupId:t})})}(),function(e){var t=document.querySelectorAll(".kb-component--member-list-overlay-fvl");t.length&&t.forEach(function(t){bc(w5).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--member-overlay");t.length&&t.forEach(function(t){bc(H5).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--member-overlay-profile-card");t.length&&t.forEach(function(t){bc(s8).use(e).mount(t)})}(e),function(e){var t=document.querySelector(".kb-component--mit-id-logout");if(t){var n=t.outerHTML;c8.template=n,bc(c8).use(e).mount(t)}}(e),function(e){var t=document.querySelectorAll(".kb-component--move-file-overlay");t.length&&t.forEach(function(t){bc(S8).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--no-search-results");t.length&&t.forEach(function(t){var n=t.dataset.guids?JSON.parse(t.dataset.guids):[];bc(D8,{guids:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--notification-list");t.length&&t.forEach(function(t){var n,o,r={skip:null!==(n=parseInt(t.dataset.ski
2p))&&void 0!==n?n:0,take:null!==(o=parseInt(t.dataset.take))&&void 0!==o?o:10};bc(J8,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--online-donation-qr-print-page-content");t.length&&t.forEach(function(t){var n=LO(p6,t);bc(p6,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll("[data-content=OpretHoldOverlay]");t.length&&t.forEach(function(t){var n=t.dataset.stafetkode,o=t.dataset.createHoldUrl;e.commit("stafet/set_stafet_id",n),e.commit("main/set_page_overlay_content_data",{createHoldUrl:o})})}(e),function(e){var t=document.querySelectorAll(".kb-component--ordre-overview");t.length&&t.forEach(function(t){var n={orders:JSON.parse(t.dataset.orders)};bc($6,n).use(e).mount(t)})}(e),w9(e),function(e){if(Lde&&!Lde.hasAttribute("data-v-app")){var t=bc(Bde).use(e),n=!!Lde.dataset.test,o=Lde.dataset.content;t.mount(Ode),n&&(e.commit("main/set_page_overlay_content",o),setTimeout(function(){return e.commit("main/open_page_overlay")},500))}}(e),function(e){var t=document.querySelectorAll(".kb-component--personal-donation-step2-a");t.length&&t.forEach(function(t){bc(Poe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--fundraise-step3");t.length&&t.forEach(function(t){bc(Boe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--personal-fundraising");t&&t.length&&t.forEach(function(t){var n=t.dataset.pageId;n&&e.commit("main/set_page_id",n);var o=t.hasAttribute("is-mindegave"),r=t.hasAttribute("is-update"),a=JSON.parse(t.dataset.personalFundraising),i=t.hasAttribute("show-unsaved-changes-warning"),l=t.hasAttribute("show-user-consent"),s=t.hasAttribute("show-postalcode-input"),c=t.hasAttribute("hide-fundraising-target"),u=t.hasAttribute("hide-fundraising-enddate"),d=t.hasAttribute("show-fundraise-card");null!=a&&a.Images&&(a.personalStoryImages=a.Images.map(function(e){return i_e(e)})),null!=a&&a.CoverImage&&(a.fundraiseImage=i_e(a.CoverImage));var p=JSON.parse(t.dataset.userData),f=t.dataset.privacyPolicyEncoded;bc(a_e,{isUpdate:r,isMindegave:o,personalFundraising:a,showUnsavedChangesWarning:i,userData:p,privacyPolicyEncoded:f,showUserConsent:l,showPostalCodeInput:s,hideFundraisingTarget:c,hideFundraisingEndDate:u,showFundraiseCard:d}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--personal-fundraising-active-card");t.length&&t.forEach(function(t){var n=t.dataset.name||"",o=t.dataset.url||null,r=t.dataset.editUrl||null,a=Number(t.dataset.amount)||0,i=Number(t.dataset.targetAmount)||0,l=t.dataset.editLabel||"Rediger indsamling",s=t.dataset.remainingLabelTemplate||"Du er {amount} fra at nå dit mål",c=t.dataset.shareSubtext||"Del igen og kom tættere på målet",u=t.dataset.linkCopiedLabel||"Dit link er kopieret!";bc(nAe,{name:n,url:o,editUrl:r,amount:a,targetAmount:i,editLabel:l,remainingLabelTemplate:s,shareSubtext:c,linkCopiedLabel:u}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--personal-fundraising-dashboard");t.length&&t.forEach(function(t){var n=t.dataset.createUrl||"#",o=t.dataset.userProfileId,r=o&&""!==o.trim()?o.trim():null,a=t.dataset.campaignAreaId,i=a&&""!==a.trim()?a.trim():null,l=t.dataset.pageId,s=l&&""!==l.trim()?l.trim():null,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return t;try{return JSON.parse(e)}catch(e){return console.error("PersonalFundraisingDashboard: invalid JSON in dataset",e),t}}(t.dataset.collections,null),u="true"===t.dataset.isMindegave||t.hasAttribute("is-mindegave");fAe.template=t.outerHTML,bc(fAe,{createUrl:n,userProfileId:r,campaignAreaId:i,pageId:s,collections:c,isMindegave:u}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--personal-fundraising-dashboard-menu");t.length&&t.forEach(function(t){var n=t.dataset.editUrl||null,o=t.dataset.qrCodeUrl||null,r=t.dataset.livestreamUrl||null;bc(J_e,{editUrl:n,qrCodeUrl:o,livestreamUrl:r}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--personal-fundraising-flow-step-hero");t.length&&t.forEach(function(t){gAe.template=t.innerHTML,bc(gAe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--personal-fundraising-list-item");t.length&&t.forEach(function(t){var n=t.dataset.name||"",o=Number.parseInt(t.dataset.amount,10)||0,r=t.dataset.url||null;bc(sAe,{name:n,amount:o,url:r}).use(e).mount(t)})}(e),function(e){var t=function(t,n){var o,r,a,i,l,s=document.querySelector('[data-content="PersonalFundraisingMobilePayOverlay"]'),c=[],u=null,d=null;try{var p;c=JSON.parse((null==s||null===(p=s.dataset)||void 0===p?void 0:p.donationAmounts)||"[]")}catch(e){c=[]}try{var f;d=JSON.parse((null==s||null===(f=s.dataset)||void 0===f?void 0:f.fieldVisibility)||"null")}catch(e){d=null}var m=Number.parseInt((null==s||null===(o=s.dataset)||void 0===o?void 0:o.defaultDonationAmount)||"",10);Number.isFinite(m)&&m>0&&(u=m);var g=Number.parseInt(t.dataset.createDonationPageId||"",10),h=null!==(r=null!==(a=null==s||null===(i=s.getAttribute)||void 0===i?void 0:i.call(s,"data-use-test-credit-card"))&&void 0!==a?a:null==s||null===(l=s.dataset)||void 0===l?void 0:l.useTestCreditCard)&&void 0!==r?r:"";e.commit("main/set_page_overlay_content_data",{fundraisingCampaignId:t.dataset.fundraisingCampaignId||null,createDonationPageId:Number.isFinite(g)?g:null,donationAmounts:c,defaultDonationAmount:u,fieldVisibility:d,useTestCreditCard:"true"==="".concat(h).trim().toLowerCase()}),e.dispatch("main/openPageOverlay",{overlayContent:"PersonalFundraisingMobilePayOverlay",returnTarget:n})};document.querySelectorAll(".kb-component--personal-fundraising-mobilepay-cta").forEach(function(e){e.addEventListener("click",function(n){t(e,n.currentTarget)})});var n=new URLSearchParams(document.location.search);if("1"===n.get("openMobilePay")){var o=document.querySelector(".kb-component--personal-fundraising-mobilepay-cta");
2if(o){t(o,o),n.delete("openMobilePay");var r=n.toString(),a="".concat(window.location.pathname).concat(r?"?".concat(r):"").concat(window.location.hash);window.history.replaceState({},"",a)}}}(e),function(e){var t=document.querySelectorAll(".kb-component--pick-up-address");t.length&&t.forEach(function(t){bc(KS).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--podcast-slider-card");t&&t.length&&t.forEach(function(t){var n=t.dataset.data?JSON.parse(t.dataset.data):null;bc(kv,{data:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--post-aside");t.length&&t.forEach(function(t){var n=t.outerHTML;hAe.template=n,bc(hAe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--post-comment");t.length&&t.forEach(function(t){var n,o,r,a={isFrivilligContext:null!==(n=t.dataset.isFrivilligContext)&&void 0!==n&&n,canReply:!!t.dataset.canReply&&JSON.parse(t.dataset.canReply),postId:null!==(o=t.dataset.postId)&&void 0!==o?o:"",groupId:null!==(r=t.dataset.groupId)&&void 0!==r?r:"",comment:!!t.dataset.comment&&JSON.parse(t.dataset.comment)};bc(tke,a).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--post-comments");t.length&&t.forEach(function(t){var n,o,r=t.hasAttribute("is-frivillig-context"),a={canReply:t.hasAttribute("can-reply"),isFrivilligContext:r,postId:null!==(n=t.dataset.postId)&&void 0!==n?n:"",groupId:null!==(o=t.dataset.groupId)&&void 0!==o?o:""};bc(pke,a).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--post-header");t.length&&t.forEach(function(t){var n=t.hasAttribute("is-frivillig-context"),o={postId:t.dataset.postId,canEdit:!!t.dataset.canEdit&&JSON.parse(t.dataset.canEdit),authorId:t.dataset.authorId},r=t.innerHTML;vke.template=r,bc(vke,Ake(Ake({},o),{},{isFrivilligContext:n})).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--post-header-add-comment");t.length&&t.forEach(function(t){var n={postId:t.dataset.postId};bc(Mke,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--posts-list");t.length&&t.forEach(function(t){var n,o,r,a,i=JSON.parse(t.dataset.group),l={guid:null!==(n=t.dataset.guid)&&void 0!==n?n:"",numberOfMembers:null!==(o=i.numberOfMembers)&&void 0!==o?o:0,groupId:null!==(r=i.id)&&void 0!==r?r:"",isClosedGroup:i.isClosedGroup,universId:null!==(a=t.dataset.universId)&&void 0!==a?a:"",isLoggedIn:"true"===t.dataset.isLoggedIn,loginUrl:t.dataset.loginUrl,hasMemberAccess:"true"===t.dataset.hasMemberAccess,take:parseInt(t.dataset.take)};bc(Wke,l).use(e).mount(t)})}(e),function(e){var t=document.querySelector(Yke);if(t){if(t.hasAttribute("data-v-app"))return!1;var n=t.outerHTML;$ke.template=n,bc($ke).use(e).mount(Yke)}}(e),function(){var e=document.querySelectorAll("[data-content=ProductAddedOverlay]");e.length&&e.forEach(function(e){var t=e.dataset.maxRecommendations,n=e.dataset.footerRightCtaUrl;uh.commit("main/set_page_overlay_content_data",{footerRightCtaUrl:n,maxRecommendations:t})})}(),function(e){var t=document.querySelectorAll(".kb-component--product-card");t.length&&t.forEach(function(t){var n={data:t.dataset.product?JSON.parse(t.dataset.product):{}};bc(pue,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--product-detail");t.length&&t.forEach(function(t){var n=t.outerHTML;Jke.template=n;var o=t.hasAttribute("is-sold-out");bc(Jke,{isSoldOut:o}).use(e).mount(t)})}(e),function(e){gxe&&gxe.length&&gxe.forEach(function(t){var n,o,r=t.dataset.guid,a=t.dataset.type,i=null!==(n=parseInt(t.dataset.firstPageSize))&&void 0!==n?n:20,l=null!==(o=parseInt(t.dataset.showMorePageSize))&&void 0!==o?o:20,s=t.hasAttribute("avoid-set-query-in-url"),c=t.hasAttribute("hide-no-results"),u=t.dataset.webshopContext,d=bc(fxe,{guid:r,type:a,firstPageSize:i,showMorePageSize:l,avoidSetQueryInUrl:s,hideNoResults:c,webshopContext:u}).use(e),p=t.id?"#".concat(t.id):mxe;d.mount(p)})}(e),function(e){var t=document.querySelectorAll(".kb-component--products-cards-slider");t&&t.forEach(function(t){if(t.hasAttribute("data-v-app"))return!1;var n={sliderId:t.id,results:t.dataset.contentjson?JSON.parse(t.dataset.contentjson):[],glideBehaviour:t.dataset.glideBehaviour,type:t.dataset.type,link:t.dataset.link?JSON.parse(t.dataset.link):null,showAddCta:t.hasAttribute("data-show-add-cta")};bc(gue,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--profile-deleted");t.length&&t.forEach(function(t){bc(Ale).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll("[data-content=ProfileEditedOverlay]");t.length&&t.forEach(function(t){var n=t.dataset.profileSettingsPageUrl;e.commit("main/set_page_overlay_content_data",{profileSettingsPageUrl:n})})}(e),function(e){if(hxe){var t=hxe.dataset.userProfileId,n=hxe.dataset.userInformationUrl,o=hxe.dataset.frivilligOrdersUrl,r=hxe.dataset.frivilligUrl,a=hxe.dataset.cancerforumUrl,i=hxe.dataset.stafetForLivetUrl,l=hxe.dataset.logoutUrl;e.commit("main/set_page_overlay_content_data",{userProfileId:t,userInformationUrl:n,frivilligOrdersUrl:o,frivilligUrl:r,cancerforumUrl:a,stafetForLivetUrl:i,logoutUrl:l})}}(e),function(e){var t=document.querySelectorAll(".kb-component--profile-picture");t.length&&t.forEach(function(t){var n,o,r={userId:null!==(n=t.dataset.userId)&&void 0!==n?n:"",content:t.dataset.content?JSON.parse(t.dataset.content):null,type:null!==(o=t.dataset.type)&&void 0!==o?o:"cancerforum"};bc(mq,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--profile-settings-hero");t.length&&t.forEach(function(t){bxe.template=t.innerHTML;var n={userData:JSON.parse(t.dataset.userData),editProfileInformationUrl:t.dataset.editProfileInformationUrl,editPasswordUrl:t.dataset.editPasswordUrl,editEmailUrl:t.dataset.editEmailUrl};bc(bxe,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--project-card");t.length&&t.forEach(function(t){var n=JSON.parse(t.dataset.result);bc(Dxe,{result:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--projects-list");t.length&&t.forEach(function(t){var n,o,r={guid:t.dataset.guid,firstPageSize:null!==(n=parseInt(t.dataset.f
2irstPageSize))&&void 0!==n?n:20,showMorePageSize:null!==(o=parseInt(t.dataset.showMorePageSize))&&void 0!==o?o:20,hideNoResults:"true"===t.dataset.hideNoResults,hideTotalCount:"true"===t.dataset.hideTotalCount};bc(ewe,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--receipt-content");t.length&&t.forEach(function(t){document.body.classList.add("kb-receipt-page");var n=t.dataset.receiptResults?JSON.parse(t.dataset.receiptResults):{};bc(Nwe,{receiptResults:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--relay-list");t.length&&t.forEach(function(t){var n,o,r={guid:t.dataset.guid,skip:null!==(n=parseInt(t.dataset.skip))&&void 0!==n?n:0,take:null!==(o=parseInt(t.dataset.take))&&void 0!==o?o:10,hideNoResults:t.hasAttribute("hide-no-results")};bc(Xwe,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--report-card");t&&t.length&&t.forEach(function(t){var n=t.dataset.data?JSON.parse(t.dataset.data):null;bc(Uv,{data:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--request-role");t.length&&t.forEach(function(t){bc(mCe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--roles-form-content");t.length&&t.forEach(function(t){bc(vCe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--schema-markup");t.length&&t.forEach(function(t){var n={schemaJson:t.dataset.schemaJson,contentId:t.dataset.contentId,pageUrl:t.dataset.pageUrl};bc(JEe,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--search-and-cta");t.length&&t.forEach(function(t){var n=t.outerHTML;XEe.template=n,bc(XEe,{guid:t.dataset.guid}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--search-and-cta-cancerforum");t.length&&t.forEach(function(t){var n=t.outerHTML;nSe.template=n,bc(nSe,{guid:t.dataset.guid,groupId:t.dataset.groupId,loginUrl:t.dataset.loginUrl,isLoggedIn:t.hasAttribute("is-logged-in"),isClosedGroup:t.hasAttribute("is-closed-group"),isUserAwaitingAccess:t.hasAttribute("is-awaiting-access")}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--search-filtered-tags");t.length&&t.forEach(function(t){var n=t.dataset.guids?JSON.parse(t.dataset.guids):[];bc(Jxe,{guids:n}).use(e).mount(t)})}(e),function(e){var t;oSe&&(e.commit("search/set_search_page_redirecturl",oSe.dataset.searchpageurl),e.commit("search/set_hide_autocomplete","true"===(null===(t=oSe.dataset.hideautocomplete)||void 0===t?void 0:t.toLowerCase())))}(e),function(e){var t=document.querySelectorAll(".kb-component--session-storage-formular-test");t.length&&t.forEach(function(t){var n=t.outerHTML;uSe.template=n,bc(uSe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--sign-up-button");t.length&&t.forEach(function(t){var n=t.dataset.eventId,o=t.dataset.successButtonData?JSON.parse(t.dataset.successButtonData):null,r=t.innerHTML;dSe.template=r,bc(dSe,{eventId:n,successButtonData:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--sign-up-form");t.length&&t.forEach(function(t){bc(Ine).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--simple-card");t&&t.length&&t.forEach(function(t){var n=JSON.parse(t.dataset.result);bc(x1,{result:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--sort-dropdown");t.length&&t.forEach(function(t){var n=JSON.parse(t.dataset.config);bc(m1,{config:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--source-external-links");t.length&&t.forEach(function(t){var n={name:t.dataset.name,links:JSON.parse(t.dataset.links)};bc(Hue,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--source-group-card");t.length&&t.forEach(function(t){var n={name:t.dataset.name,title:t.dataset.title,text:t.dataset.text,linkUrl:t.dataset.linkUrl,linkText:t.dataset.linkText};bc(Pue,n).use(e).mount(t)})}(e),function(){var e=document.querySelectorAll("[data-content=SourceOverlay]");e.length&&e.forEach(function(e){var t={labels:JSON.parse(e.dataset.labels)};uh.commit("main/set_page_overlay_content_data",t)})}(),function(e){var t=document.querySelectorAll(".kb-component--source-references");t.length&&t.forEach(function(t){var n={sourceId:t.dataset.sourceId};bc(Que,n).use(e).mount(t)})}(e),function(e){pSe&&pSe.length&&pSe.forEach(function(t){var n=t.dataset.spotCard?JSON.parse(t.dataset.spotCard):null;bc(f_,{spotCardData:n}).use(e).mount(t)})}(e),function(e){fSe&&fSe.length&&fSe.forEach(function(t){var n=t.dataset.spotCard?JSON.parse(t.dataset.spotCard):null;bc(N1,{spotCardData:n}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-flow-actions");t.length&&t.forEach(function(t){bc(vSe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-flow-add-participants");t.length&&t.forEach(function(t){bc(wSe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-add-more-deltager-flow");t.length&&t.forEach(function(t){var n,o=t.dataset.external?JSON.parse(t.dataset.external):null,r={stafetId:null!==(n=o.stafetId)&&void 0!==n?n:null,holdkode:Qf(o.holdkode)?o.holdkode:null,userData:Qf(o.userData)?o.userData:null,loggedIn:Qf(o.userData),adultPrice
2:o.adultPrice,childPrice:o.childPrice};bc(HSe,r).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-join-a-team-flow");t.length&&t.forEach(function(t){var n,o,r,a,i,l=t.dataset.external?JSON.parse(t.dataset.external):null,s={stafetId:null!==(n=l.stafetId)&&void 0!==n?n:null,holdId:null!==(o=l.holdId)&&void 0!==o?o:null,tshirtSizes:null!==(r=l.tshirtSizes)&&void 0!==r?r:[],holdList:null!==(a=l.holdList)&&void 0!==a?a:[],userData:Qf(l.userData)?l.userData:null,donationAmounts:null!==(i=l.amounts)&&void 0!==i?i:[],loggedIn:Qf(l.userData),adultPrice:l.adultPrice,childPrice:l.childPrice,redirectToEditProfile:l.redirectToEditProfile,editProfileLinkText:l.editProfileLinkText};bc(VTe,s).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-join-a-team-step-select-team");t.length&&t.forEach(function(t){bc(vTe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-join-a-team-step-your-information");t.length&&t.forEach(function(t){bc(BTe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-deltag-som-fighter-flow");t.length&&t.forEach(function(t){var n,o,r,a,i,l=t.dataset.external?JSON.parse(t.dataset.external):null,s=SIe(SIe({stafetId:null!==(n=l.stafetId)&&void 0!==n?n:null,tshirtSizes:null!==(o=l.tshirtSizes)&&void 0!==o?o:[],holdList:null!==(r=l.holdList)&&void 0!==r?r:[],userData:Qf(l.userData)?l.userData:null,donationAmounts:null!==(a=l.amounts)&&void 0!==a?a:[],loggedIn:Qf(l.userData),redirectToEditProfile:null!==(i=t.dataset.redirectToEditProfile)&&void 0!==i?i:"",adultPrice:l.adultPrice,childPrice:l.childPrice},"redirectToEditProfile",l.redirectToEditProfile),"editProfileLinkText",l.editProfileLinkText);bc(CIe,s).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-deltag-som-fighter-step-one");t.length&&t.forEach(function(t){bc(JTe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-deltag-som-fighter-step-three");t.length&&t.forEach(function(t){bc(bIe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-deltag-som-fighter-step-two");t.length&&t.forEach(function(t){bc(sIe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-flow");t.length&&t.forEach(function(t){var n,o,r,a,i,l,s,c=t.dataset.external?JSON.parse(t.dataset.external):null,u={stafetId:null!==(n=c.stafetId)&&void 0!==n?n:null,holdList:null!==(o=c.holdList)&&void 0!==o?o:null,userData:null!==(r=c.userData)&&void 0!==r?r:null,loggedIn:Qf(c.userData),minimumDonationAmount:null!==(a=c.minimumDonationAmount)&&void 0!==a?a:1,holdId:null!==(i=c.holdId)&&void 0!==i?i:"",deltagerId:null!==(l=c.deltagerId)&&void 0!==l?l:"",donationAmounts:null!==(s=c.donationAmounts)&&void 0!==s?s:[]};bc(FBe,u).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-step-one");t.length&&t.forEach(function(t){bc(QIe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-step-privat");t.length&&t.forEach(function(t){bc(cBe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-step-two");t.length&&t.forEach(function(t){bc(OBe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-step-virksomhed");t.length&&t.forEach(function(t){bc(TBe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-taend-lys-flow");t.length&&t.forEach(function(t){var n,o,r,a,i,l=t.dataset.external?JSON.parse(t.dataset.external):null,s={stafetId:null!==(n=l.stafetId)&&void 0!==n?n:null,loggedIn:Qf(l.userData),holdList:null!==(o=l.holdList)&&void 0!==o?o:null,userData:Qf(l.userData)?l.userData:null,lysposeMinimumAmount:null!==(r=l.lysposeMinimumAmount)&&void 0!==r?r:50,holdId:null!==(a=l.holdId)&&void 0!==a?a:"",deltagerId:null!==(i=l.deltagerId)&&void 0!==i?i:""};bc(wOe,s).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-taend-lys-step-one");t.length&&t.forEach(function(t){bc(WBe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-taend-lys-step-three");t.length&&t.forEach(function(t){bc(bOe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-donation-taend-lys-step-two");t.length&&t.forEach(function(t){bc(sOe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-download-l
2inks");t.length&&t.forEach(function(t){bc(COe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-edit-hold-flow");t.length&&t.forEach(function(t){var n,o,r,a,i=t.dataset.external?JSON.parse(t.dataset.external):null,l={stafetId:null!==(n=i.stafetId)&&void 0!==n?n:null,holdList:null!==(o=i.holdnavne)&&void 0!==o?o:[],holdData:null!==(r=i.holdData)&&void 0!==r?r:{},userData:null!==(a=i.userData)&&void 0!==a?a:{},loggedIn:Qf(i.userData)};bc(JOe,l).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-edit-page-hero");t.length&&t.forEach(function(t){bc(XOe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-flow-title");t.length&&t.forEach(function(t){bc(MSe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-flow-light-bags-meta-list");t.length&&t.forEach(function(t){bc(aOe).use(e).mount(t)})}(e),function(){var e=document.querySelectorAll("[data-content=StafetMailEditorOverlay]");e.length&&e.forEach(function(e){var t=e.dataset.type,n={labels:JSON.parse(e.dataset.labels),isReadonly:"true"===e.dataset.isReadonly,stafetkode:e.dataset.stafetkode,holdkode:e.dataset.holdkode,senderEmail:e.dataset.senderEmail,allowSelectParticipants:"true"===e.dataset.allowSelectParticipants,allowSelectSeason:"true"===e.dataset.allowSelectSeason,allowAttachments:"true"===e.dataset.allowAttachments};uh.commit("main/set_page_overlay_content_data",function(e,t,n){return(t=function(e){var t=function(e){if("object"!=QOe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QOe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QOe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n))})}(),function(e){var t=document.querySelectorAll(".kb-component--stafet-mailudsendelse-list");t.length&&t.forEach(function(t){var n,o,r=JSON.parse((n=t.dataset.mailudsendelser,(o=document.createElement("textarea")).innerHTML=n,o.value));bc(lLe,{mailudsendelser:r}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-opret-hold-flow");t.length&&t.forEach(function(t){var n,o,r,a,i=t.dataset.external?JSON.parse(t.dataset.external):null,l={stafetId:null!==(n=i.stafetId)&&void 0!==n?n:null,holdList:null!==(o=i.holdnavne)&&void 0!==o?o:[],holdData:null!==(r=i.holdData)&&void 0!==r?r:{},userData:null!==(a=i.userData)&&void 0!==a?a:{},loggedIn:Qf(i.userData)};bc(ELe,l).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-opret-hold-step-one");t.length&&t.forEach(function(t){bc(qOe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-opret-hold-step-two");t.length&&t.forEach(function(t){bc(yLe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-flow-payment");t.length&&t.forEach(function(t){bc(zSe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-profile-form");t.length&&t.forEach(function(t){var n,o,r,a,i,l=t.dataset.external?JSON.parse(t.dataset.external):null,s={stafetId:null!==(n=l.stafetId)&&void 0!==n?n:null,userData:null!==(o=l.userData)&&void 0!==o?o:{},editProfileLink:null!==(r=t.dataset.editProfileLink)&&void 0!==r?r:null,removeProfileLink:null!==(a=t.dataset.removeProfileLink)&&void 0!==a?a:null,editPasswordLink:null!==(i=t.dataset.editPasswordLink)&&void 0!==i?i:null};bc(ULe,s).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-round-counter");t.length&&t.forEach(function(t){var n=t.dataset.data?JSON.parse(t.dataset.data):null,o=t.dataset.maxRegistrationCount;bc(Qie,{rute:n,maxRegistrationCount:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stafet-round-counter-accordion");t.length&&t.forEach(function(t){var n=t.dataset.data?JSON.parse(t.dataset.data):null,o=t.dataset.maxRegistrationCount;bc(cle,{participantData:n,maxRegistrationCount:o}).use(e).mount(t)})}(e),function(e){var t=document.querySelector(HLe);if(t){var n=t.innerHTML;jLe.template=n,bc(jLe).use(e).mount(HLe)}}(e),function(e){var t=document.querySelectorAll(".kb-component--stream-donation-overview");t.length&&t.forEach(function(t){var n=t.dataset.variation||"dark",o=t.dataset.donationPosition||"above",r=t.dataset.fundraisingId||"",a=t.dataset.footerText||"",i=parseInt(t.dataset.minNyDonationSek,10)||2,l=parseInt(t.dataset.maxNyDonationSek,10)||10,s=t.dataset.donationStyle||"normal";bc(BDe,{variation:n,donationPosition:o,fundraisingId:r,footerText:a,minNyDonationSek:i,maxNyDonationSek:l,donationStyle:s}).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stream-donation-overview-new-donation");t.length&&t.forEach(function(t){bc(gDe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stream-donation-overview-previous-donation");t.length&&t.forEach(function(t){bc(wDe).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--stream-donation-qr-code");t.length&&t.forEach(function(t){var n=t.dataset.fundraisingId||"",o=t.dataset.variation||"dark",r=t.dataset.border||"";bc(VDe,{fundraisingId:n,variation:o,border:r}).use(e).mount(t)})}(e),function(e){if(jDe){var t=jDe.innerHTML;zDe.template=t,bc(zDe).use(e).mount(UDe)}}(e),b9(e),function(e){var t=document.querySelectorAll(".kb-component--success-page");t.length&&t.forEach(function(t){bc(Ene).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--support-selector");t.length&&t.forEach(function(t){var n={stafetId:t.dataset.stafetId,labels:t.dataset.labels?JSON.parse(t.dataset.labels):{}};bc(YIe,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--team-list");t.length&&t.forEach(function(t){var n={source:t.dataset.source,stafetId:t.dataset.stafetId,take:t.dataset.take?parseInt(t.dataset.take):18,guid:t.dataset.guid,filterShown:!t.dataset.f
2ilterShown||"true"===t.dataset.filterShown};bc(vMe,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--team-list-card");t.length&&t.forEach(function(t){var n={captains:t.dataset.captains?JSON.parse(t.dataset.captains):[],imageUrl:t.dataset.imageUrl,imageAlt:t.dataset.imageAlt,url:t.dataset.url,name:t.dataset.name,membersCount:t.dataset.membersCount,donationGoals:t.dataset.donationGoals,donationTotal:t.dataset.donationTotal};bc(gMe,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--text-editor");t.length&&t.forEach(function(t){var n={initContent:t.dataset.content},o=t.outerHTML.replace(/(<editor\s)/gi,'<editor v-if="tinymceReady" ');xMe.template=o,bc(xMe,n).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--the-aside");t.length&&t.forEach(function(t){var n=t.outerHTML;wMe.template=n,bc(wMe).use(e).mount(t)})}(e),_9(e),function(e){var t=document.querySelectorAll(".kb-component--theme-card");t.length&&t.forEach(function(t){var n={content:t.dataset.content?JSON.parse(t.dataset.content):{}};bc(Xv,n).use(e).mount(t)})}(e),function(){var e=document.querySelectorAll("[data-content=TilmeldHoldKvittering]");e.length&&e.forEach(function(e){var t=e.dataset.loginurl,n=e.dataset.createprofileurl,o="True"===e.dataset.hasprofile;uh.commit("main/set_page_overlay_content_data",{loginUrl:t,createProfileUrl:n,hasProfile:o})})}(),function(e){var t=document.querySelectorAll(".kb-component--tilmeld-profil-kvittering");t.length&&t.forEach(function(t){bc(Ile).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--upload-new-file-overlay");t.length&&t.forEach(function(t){bc(Hre).use(e).mount(t)})}(e),function(e){var t=document.querySelectorAll(".kb-component--user-posts-list");t.length&&t.forEach(function(t){var n,o,r,a,i=t.dataset.exturnal?JSON.parse(t.dataset.exturnal):null,l={guid:t.dataset.guid,groupId:t.dataset.groupId,skip:null!==(n=parseInt(t.dataset.skip))&&void 0!==n?n:0,take:null!==(o=parseInt(t.dataset.take))&&void 0!==o?o:10,userData:null!==(r=null==i?void 0:i.userData)&&void 0!==r?r:null,type:null!==(a=t.dataset.type)&&void 0!==a?a:null};bc(FMe,l).use(e).mount(t)})}(e),function(e){if(zMe&&!zMe.hasAttribute("data-v-app")){var t=zMe.outerHTML;VMe.template=t,e.commit("basket/SET_INITIAL_BASKET_TOTALS_PRODUCTS_AMOUNT",zMe.dataset.initialItemsCount),bc(VMe).use(e).mount(zMe)}}(e),function(e){var t=document.querySelectorAll(".kb-component--webshop-payment-selector");t.length&&t.forEach(function(t){bc(ZT).use(e).mount(t)})}(e)}(uh)})()})(); 3//# sourceMappingURL=app.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.