@26lights/orcha 0.42.199 → 0.42.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";var s0=Object.defineProperty;var a0=(t,e,n)=>e in t?s0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>(a0(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),$r=require("vue-router"),wo=require("vuedraggable");const l0=r.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.unref($r.RouterView),r.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),te=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},c0={},u0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d0(t,e){return r.openBlock(),r.createElementBlock("svg",u0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const f0=te(c0,[["render",d0]]),p0={},m0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h0(t,e){return r.openBlock(),r.createElementBlock("svg",m0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const g0=te(p0,[["render",h0]]),v0={},_0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y0(t,e){return r.openBlock(),r.createElementBlock("svg",_0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const C0=te(v0,[["render",y0]]),b0={},k0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w0(t,e){return r.openBlock(),r.createElementBlock("svg",k0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const E0=te(b0,[["render",w0]]),S0={},x0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A0(t,e){return r.openBlock(),r.createElementBlock("svg",x0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const T0=te(S0,[["render",A0]]),N0={},D0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $0(t,e){return r.openBlock(),r.createElementBlock("svg",D0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const B0=te(N0,[["render",$0]]),M0={},L0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O0(t,e){return r.openBlock(),r.createElementBlock("svg",L0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const V0=te(M0,[["render",O0]]),I0={},P0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F0(t,e){return r.openBlock(),r.createElementBlock("svg",P0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const R0=te(I0,[["render",F0]]),z0={},U0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H0(t,e){return r.openBlock(),r.createElementBlock("svg",U0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const q0=te(z0,[["render",H0]]),j0={},W0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z0(t,e){return r.openBlock(),r.createElementBlock("svg",W0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const K0=te(j0,[["render",Z0]]),G0={},Y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J0(t,e){return r.openBlock(),r.createElementBlock("svg",Y0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const X0=te(G0,[["render",J0]]),Q0={},ev={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tv(t,e){return r.openBlock(),r.createElementBlock("svg",ev,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const nv=te(Q0,[["render",tv]]),ov={},rv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iv(t,e){return r.openBlock(),r.createElementBlock("svg",rv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const sv=te(ov,[["render",iv]]),av={},lv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cv(t,e){return r.openBlock(),r.createElementBlock("svg",lv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const uv=te(av,[["render",cv]]),dv={},fv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pv(t,e){return r.openBlock(),r.createElementBlock("svg",fv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const mv=te(dv,[["render",pv]]),hv={},gv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vv(t,e){return r.openBlock(),r.createElementBlock("svg",gv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const _v=te(hv,[["render",vv]]),yv={},Cv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bv(t,e){return r.openBlock(),r.createElementBlock("svg",Cv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const kv=te(yv,[["render",bv]]),wv={},Ev={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sv(t,e){return r.openBlock(),r.createElementBlock("svg",Ev,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const xv=te(wv,[["render",Sv]]),Av={},Tv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nv(t,e){return r.openBlock(),r.createElementBlock("svg",Tv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const Dv=te(Av,[["render",Nv]]),$v={},Bv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mv(t,e){return r.openBlock(),r.createElementBlock("svg",Bv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const Lv=te($v,[["render",Mv]]),Ov={},Vv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Iv(t,e){return r.openBlock(),r.createElementBlock("svg",Vv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const Pv=te(Ov,[["render",Iv]]),Fv={},Rv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zv(t,e){return r.openBlock(),r.createElementBlock("svg",Rv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const Uv=te(Fv,[["render",zv]]),Hv={},qv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jv(t,e){return r.openBlock(),r.createElementBlock("svg",qv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const Wv=te(Hv,[["render",jv]]),Zv={},Kv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gv(t,e){return r.openBlock(),r.createElementBlock("svg",Kv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const Yv=te(Zv,[["render",Gv]]),Jv={},Xv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qv(t,e){return r.openBlock(),r.createElementBlock("svg",Xv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const e2=te(Jv,[["render",Qv]]),t2={},n2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o2(t,e){return r.openBlock(),r.createElementBlock("svg",n2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const r2=te(t2,[["render",o2]]),i2={},s2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a2(t,e){return r.openBlock(),r.createElementBlock("svg",s2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",fill:"black"},null,-1),r.createElementVNode("path",{d:"M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",fill:"black"},null,-1)])])}const l2=te(i2,[["render",a2]]),c2={},u2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d2(t,e){return r.openBlock(),r.createElementBlock("svg",u2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const f2=te(c2,[["render",d2]]),p2={},m2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h2(t,e){return r.openBlock(),r.createElementBlock("svg",m2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const g2=te(p2,[["render",h2]]),v2={},_2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y2(t,e){return r.openBlock(),r.createElementBlock("svg",_2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const C2=te(v2,[["render",y2]]),b2={},k2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w2(t,e){return r.openBlock(),r.createElementBlock("svg",k2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const E2=te(b2,[["render",w2]]),S2={},x2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A2(t,e){return r.openBlock(),r.createElementBlock("svg",x2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const T2=te(S2,[["render",A2]]),N2={},D2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $2(t,e){return r.openBlock(),r.createElementBlock("svg",D2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const B2=te(N2,[["render",$2]]),M2={},L2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O2(t,e){return r.openBlock(),r.createElementBlock("svg",L2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const V2=te(M2,[["render",O2]]),I2={},P2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F2(t,e){return r.openBlock(),r.createElementBlock("svg",P2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const R2=te(I2,[["render",F2]]),z2={},U2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2(t,e){return r.openBlock(),r.createElementBlock("svg",U2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const q2=te(z2,[["render",H2]]),j2={},W2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z2(t,e){return r.openBlock(),r.createElementBlock("svg",W2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const K2=te(j2,[["render",Z2]]),G2={},Y2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J2(t,e){return r.openBlock(),r.createElementBlock("svg",Y2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const X2=te(G2,[["render",J2]]),Q2={},e_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t_(t,e){return r.openBlock(),r.createElementBlock("svg",e_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const n_=te(Q2,[["render",t_]]),o_={},r_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i_(t,e){return r.openBlock(),r.createElementBlock("svg",r_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const s_=te(o_,[["render",i_]]),a_={},l_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c_(t,e){return r.openBlock(),r.createElementBlock("svg",l_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const u_=te(a_,[["render",c_]]),d_=r.defineComponent({name:"LoadingIcon"});const f_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p_(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("svg",f_,[...e[0]||(e[0]=[r.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),r.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),r.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const m_=te(d_,[["render",p_],["__scopeId","data-v-ad6da4a9"]]),h_={},g_={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function v_(t,e){return r.openBlock(),r.createElementBlock("svg",g_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const __=te(h_,[["render",v_]]),y_={},C_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b_(t,e){return r.openBlock(),r.createElementBlock("svg",C_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const k_=te(y_,[["render",b_]]),w_={},E_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S_(t,e){return r.openBlock(),r.createElementBlock("svg",E_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const x_=te(w_,[["render",S_]]),A_={},T_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N_(t,e){return r.openBlock(),r.createElementBlock("svg",T_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const D_=te(A_,[["render",N_]]),$_={},B_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M_(t,e){return r.openBlock(),r.createElementBlock("svg",B_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const L_=te($_,[["render",M_]]),O_={},V_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I_(t,e){return r.openBlock(),r.createElementBlock("svg",V_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const P_=te(O_,[["render",I_]]),F_={},R_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z_(t,e){return r.openBlock(),r.createElementBlock("svg",R_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const U_=te(F_,[["render",z_]]),H_={},q_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j_(t,e){return r.openBlock(),r.createElementBlock("svg",q_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const W_=te(H_,[["render",j_]]),Z_={},K_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G_(t,e){return r.openBlock(),r.createElementBlock("svg",K_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const Y_=te(Z_,[["render",G_]]),J_={},X_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q_(t,e){return r.openBlock(),r.createElementBlock("svg",X_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const ey=te(J_,[["render",Q_]]),ty={},ny={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oy(t,e){return r.openBlock(),r.createElementBlock("svg",ny,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const ry=te(ty,[["render",oy]]),iy={},sy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ay(t,e){return r.openBlock(),r.createElementBlock("svg",sy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const ly=te(iy,[["render",ay]]),cy={},uy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dy(t,e){return r.openBlock(),r.createElementBlock("svg",uy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const fy=te(cy,[["render",dy]]),py={},my={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hy(t,e){return r.openBlock(),r.createElementBlock("svg",my,[...e[0]||(e[0]=[r.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const gy=te(py,[["render",hy]]),vy={},_y={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yy(t,e){return r.openBlock(),r.createElementBlock("svg",_y,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const Cy=te(vy,[["render",yy]]),by={},ky={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wy(t,e){return r.openBlock(),r.createElementBlock("svg",ky,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const Ey=te(by,[["render",wy]]),Sy={},xy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ay(t,e){return r.openBlock(),r.createElementBlock("svg",xy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const Ty=te(Sy,[["render",Ay]]),Ny={},Dy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $y(t,e){return r.openBlock(),r.createElementBlock("svg",Dy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const By=te(Ny,[["render",$y]]),My={},Ly={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Oy(t,e){return r.openBlock(),r.createElementBlock("svg",Ly,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const Vy=te(My,[["render",Oy]]),Iy={},Py={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fy(t,e){return r.openBlock(),r.createElementBlock("svg",Py,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const Ry=te(Iy,[["render",Fy]]),zy={},Uy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hy(t,e){return r.openBlock(),r.createElementBlock("svg",Uy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const qy=te(zy,[["render",Hy]]),jy={},Wy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zy(t,e){return r.openBlock(),r.createElementBlock("svg",Wy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const Ky=te(jy,[["render",Zy]]),Gy={},Yy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jy(t,e){return r.openBlock(),r.createElementBlock("svg",Yy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const Xy=te(Gy,[["render",Jy]]),Qy={},e3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t3(t,e){return r.openBlock(),r.createElementBlock("svg",e3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const n3=te(Qy,[["render",t3]]),o3={},r3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i3(t,e){return r.openBlock(),r.createElementBlock("svg",r3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const s3=te(o3,[["render",i3]]),a3={},l3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c3(t,e){return r.openBlock(),r.createElementBlock("svg",l3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const u3=te(a3,[["render",c3]]),d3={},f3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p3(t,e){return r.openBlock(),r.createElementBlock("svg",f3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const m3=te(d3,[["render",p3]]),h3={},g3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v3(t,e){return r.openBlock(),r.createElementBlock("svg",g3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const _3=te(h3,[["render",v3]]),y3=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:f0,AccountCircle:g0,AccountTreeOutlineRounded:C0,AccountTreeRounded:E0,Add:T0,AddBoxOutlineRounded:B0,ArchiveOutlineRounded:V0,ArrowBackRounded:R0,ArrowDropDownRounded:q0,ArrowForwardRounded:K0,AssignmentOutlineRounded:X0,AttachFileRounded:nv,CalendarTodayOutlineRounded:sv,CancelRounded:uv,ChatOutline:mv,CheckBoxOutlineBlank:_v,CheckBoxOutlineBlankSharp:kv,CheckBoxOutlineRounded:xv,CheckSmallRounded:Dv,ChecklistRounded:Lv,ChevronLeft:Pv,ChevronRight:Uv,CloseRounded:Wv,ContactsOutlineRounded:Yv,ContentCopyOutline:e2,DeleteOutlineRounded:r2,DownloadRounded:l2,DragIndicator:f2,EditDocumentRounded:g2,EditOutline:C2,ErrorOutlineRounded:E2,FilterListRounded:T2,FlagRounded:B2,FlowsheetOutlineRounded:V2,GifBox:R2,GroupsOutline:q2,HomeOutlineRounded:K2,ImageRounded:X2,Info:n_,KeyboardArrowDown:s_,KeyboardArrowUp:u_,Loading:m_,Lock:__,LogoutRounded:k_,Menu:x_,MoreHoriz:D_,MoreTimeRounded:L_,MoreVert:P_,MountainFlagOutlineRounded:U_,PersonAddOutlineRounded:W_,PictureAsPdfRounded:Y_,RadioButtonChecked:ey,RadioButtonCheckedOutline:ry,RadioButtonUnchecked:ly,RemoveRounded:fy,SearchRounded:gy,SelectCheckBox:Cy,SendRounded:Ey,Settings:Ty,SlideshowRounded:By,Target:Vy,TaskOutlineRounded:Ry,TextSnippetRounded:qy,TimerOutline:Ky,ViewComfyAltRounded:Xy,ViewCompactAltRounded:n3,ViewTimelineRounded:s3,WarningOutlineRounded:u3,WarningRounded:m3,WaterfallChartRounded:_3},Symbol.toStringTag,{value:"Module"})),C3={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Ta={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Xc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},b3={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Xc,...b3});const kp={ROUND:"round",ROUNDED:"rounded"},k3={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ke=r.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Ta.MD}},setup(t){const e=t,n=r.computed(()=>y3[e.name]);return(o,i)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:r.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const w3=["type"],E3={key:0,class:"ao-button__label"},de=r.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>C3.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Ta.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>kp.ROUNDED}},setup(t){const e=t,n=r.computed(()=>e.size),o=r.computed(()=>e.isLoading?"Loading":e.iconName);return(i,s)=>(r.openBlock(),r.createElementBlock("button",{type:t.type,class:r.normalizeClass(["ao-button",`ao-button--${t.variant}`,t.color?`ao-button--${t.color}`:"",`ao-button--${t.corners}`,t.footer?"ao-button--footer":"",t.size?`ao-button--${t.size}`:"",t.iconName&&t.iconPosition?`ao-button--icon-${t.iconPosition}`:"",i.$attrs.disabled?"ao-button--is-disabled":""])},[r.renderSlot(i.$slots,"default",{},()=>[t.label?(r.openBlock(),r.createElementBlock("span",E3,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createBlock(ke,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):r.createCommentVNode("",!0)],10,w3))}});function S3(t){const e=r.ref(!1),n=r.ref(""),o=r.computed(()=>"value"in t.value?"value":"innerHTML"),i=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await r.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await r.nextTick(()=>{c(d,u)})};return r.watch(e,async c=>{await r.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:i,onUpdate:l,onDiscard:a}}const gt=r.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(t,{emit:e}){const n=r.ref(null),o=t,i=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=S3(n),u=r.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=r.computed(()=>o.isEditable?s.value?{change:f,click:y=>y.stopPropagation(),blur:m}:{click:g,focus:g}:{}),f=l((y,C)=>{const v=C.target.value;i("update:title",v)}),p=c(),m=async()=>{s.value&&a(!1)},h=()=>{i("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return r.watch(()=>o.isEditable,y=>{y||p()}),(y,C)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.value),r.mergeProps({id:t.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${t.level}`,{[`ao-title--${t.color}`]:!!t.color,"ao-title--editable":t.isEditable,"ao-field__input ao-title--editing":r.unref(s),"ao-title--readonly":!r.unref(s)}],type:r.unref(s)?"text":null,value:r.unref(s)?t.title:null,tabindex:"0",onKeyup:r.withKeys(h,["enter"])},r.toHandlers(d.value),{onKeydown:r.withKeys(r.unref(p),["esc"])}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const x3={key:0,class:"ao-card-horiz__drag ao-card__drag"},A3={class:"ao-card-horiz__header"},T3={key:0,class:"ao-card-horiz__avatar"},N3={class:"ao-card-horiz__title-group"},D3={key:0,class:"ao-card-horiz__subtitle"},$3={key:1,class:"ao-card-horiz__header"},B3={key:1,class:"ao-card-horiz__body"},M3={key:2,class:"ao-card-horiz__footer"},L3={key:3,class:"ao-card-horiz__secondary"},wp=r.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(t,{emit:e}){const n=e,o=i=>{n("update:title",i)};return(i,s)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:r.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:r.withCtx(()=>[t.isDraggable?(r.openBlock(),r.createElementBlock("div",x3,[r.createVNode(ke,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):r.createCommentVNode("",!0),r.createElementVNode("div",A3,[t.icon?(r.openBlock(),r.createElementBlock("div",T3,[r.createVNode(ke,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):r.createCommentVNode("",!0),r.createElementVNode("div",N3,[r.createVNode(gt,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),r.renderSlot(i.$slots,"subtitle",{},()=>[t.subtitle?(r.openBlock(),r.createElementBlock("span",D3,r.toDisplayString(t.subtitle),1)):r.createCommentVNode("",!0)])]),i.$slots.header?(r.openBlock(),r.createElementBlock("div",$3,[r.renderSlot(i.$slots,"header")])):r.createCommentVNode("",!0)]),i.$slots.default?(r.openBlock(),r.createElementBlock("div",B3,[r.renderSlot(i.$slots,"default")])):r.createCommentVNode("",!0),i.$slots.footer?(r.openBlock(),r.createElementBlock("div",M3,[r.renderSlot(i.$slots,"footer")])):r.createCommentVNode("",!0),i.$slots.secondary?(r.openBlock(),r.createElementBlock("div",L3,[r.renderSlot(i.$slots,"secondary")])):r.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Ii=r.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=r.computed(()=>e.clickable?"button":"span"),o=r.computed(()=>n.value==="button"?{type:"button"}:{});return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:r.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),r.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>i.$emit("click",a))}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.variant===r.unref(k3).SOLID_ICON&&t.iconName?(r.openBlock(),r.createBlock(ke,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):r.createCommentVNode("",!0)]),_:1},16)),t.closable?(r.openBlock(),r.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>i.$emit("close",a))},[r.createVNode(ke,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):r.createCommentVNode("",!0)],6))}});const Pi={todo:"todo",done:"done",archived:"archived"},O3={months:"months",weeks:"weeks",days:"days"},V3={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},Ep={BEFORE:"before",AFTER:"after"},Sp={START:"start",end:"end"},xp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},je={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var Ap=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(Ap||{});const I3={add:"add",remove:"remove",moved:"moved"};var Tp=(t=>(t.HOURS="hours",t.DAYS="days",t))(Tp||{});const an={project:"projectId",assignee:"assigneeId",sprint:"sprintId",milestone:"milestoneId"};function Ys(t){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ys(t)}function Zn(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function nt(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Tt(t){nt(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Ys(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 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 P3(t,e){nt(2,arguments);var n=Tt(t).getTime(),o=Zn(e);return new Date(n+o)}var F3={};function Xi(){return F3}function Fi(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function xd(t){nt(1,arguments);var e=Tt(t);return e.setHours(0,0,0,0),e}var R3=864e5;function z3(t,e){nt(2,arguments);var n=xd(t),o=xd(e),i=n.getTime()-Fi(n),s=o.getTime()-Fi(o);return Math.round((i-s)/R3)}function U3(t,e){nt(2,arguments);var n=Tt(t),o=Tt(e),i=n.getTime()-o.getTime();return i<0?-1:i>0?1:i}var Np=6e4,Dp=36e5;function H3(t){return nt(1,arguments),t instanceof Date||Ys(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function $p(t){if(nt(1,arguments),!H3(t)&&typeof t!="number")return!1;var e=Tt(t);return!isNaN(Number(e))}function uc(t,e){nt(2,arguments);var n=Zn(e);return P3(t,-n)}var q3=864e5;function j3(t){nt(1,arguments);var e=Tt(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),i=n-o;return Math.floor(i/q3)+1}function Js(t){nt(1,arguments);var e=1,n=Tt(t),o=n.getUTCDay(),i=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Bp(t){nt(1,arguments);var e=Tt(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var i=Js(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Js(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function W3(t){nt(1,arguments);var e=Bp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Js(n);return o}var Z3=6048e5;function K3(t){nt(1,arguments);var e=Tt(t),n=Js(e).getTime()-W3(e).getTime();return Math.round(n/Z3)+1}function Xs(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Xi(),f=Zn((n=(o=(i=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Tt(t),m=p.getUTCDay(),h=(m<f?7:0)+m-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Mp(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Tt(t),f=d.getUTCFullYear(),p=Xi(),m=Zn((n=(o=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&o!==void 0?o:(c=p.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,m),h.setUTCHours(0,0,0,0);var g=Xs(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Xs(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function G3(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Xi(),f=Zn((n=(o=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=Mp(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Xs(m,e);return h}var Y3=6048e5;function J3(t,e){nt(1,arguments);var n=Tt(t),o=Xs(n,e).getTime()-G3(n,e).getTime();return Math.round(o/Y3)+1}function Oe(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var X3={y:function(e,n){var o=e.getUTCFullYear(),i=o>0?o:1-o;return Oe(n==="yy"?i%100:i,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Oe(o+1,2)},d:function(e,n){return Oe(e.getUTCDate(),n.length)},a:function(e,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h:function(e,n){return Oe(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Oe(e.getUTCHours(),n.length)},m:function(e,n){return Oe(e.getUTCMinutes(),n.length)},s:function(e,n){return Oe(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,i=e.getUTCMilliseconds(),s=Math.floor(i*Math.pow(10,o-3));return Oe(s,n.length)}};const so=X3;var mr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Q3={G:function(e,n,o){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"});case"GGGGG":return o.era(i,{width:"narrow"});case"GGGG":default:return o.era(i,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var i=e.getUTCFullYear(),s=i>0?i:1-i;return o.ordinalNumber(s,{unit:"year"})}return so.y(e,n)},Y:function(e,n,o,i){var s=Mp(e,i),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Oe(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Oe(a,n.length)},R:function(e,n){var o=Bp(e);return Oe(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Oe(o,n.length)},Q:function(e,n,o){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Oe(i,2);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,o){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Oe(i,2);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,o){var i=e.getUTCMonth();switch(n){case"M":case"MM":return so.M(e,n);case"Mo":return o.ordinalNumber(i+1,{unit:"month"});case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,o){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Oe(i+1,2);case"Lo":return o.ordinalNumber(i+1,{unit:"month"});case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,o,i){var s=J3(e,i);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Oe(s,n.length)},I:function(e,n,o){var i=K3(e);return n==="Io"?o.ordinalNumber(i,{unit:"week"}):Oe(i,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):so.d(e,n)},D:function(e,n,o){var i=j3(e);return n==="Do"?o.ordinalNumber(i,{unit:"dayOfYear"}):Oe(i,n.length)},E:function(e,n,o){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"});case"EEEE":default:return o.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,o,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Oe(a,2);case"eo":return o.ordinalNumber(a,{unit:"day"});case"eee":return o.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(s,{width:"short",context:"formatting"});case"eeee":default:return o.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,o,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Oe(a,n.length);case"co":return o.ordinalNumber(a,{unit:"day"});case"ccc":return o.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(s,{width:"narrow",context:"standalone"});case"cccccc":return o.day(s,{width:"short",context:"standalone"});case"cccc":default:return o.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,o){var i=e.getUTCDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return Oe(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(i,{width:"short",context:"formatting"});case"iiii":default:return o.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,o){var i=e.getUTCHours(),s=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,o){var i=e.getUTCHours(),s;switch(i===12?s=mr.noon:i===0?s=mr.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,o){var i=e.getUTCHours(),s;switch(i>=17?s=mr.evening:i>=12?s=mr.afternoon:i>=4?s=mr.morning:s=mr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),o.ordinalNumber(i,{unit:"hour"})}return so.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):so.H(e,n)},K:function(e,n,o){var i=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},k:function(e,n,o){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?o.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):so.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):so.s(e,n)},S:function(e,n){return so.S(e,n)},X:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Td(a);case"XXXX":case"XX":return Oo(a);case"XXXXX":case"XXX":default:return Oo(a,":")}},x:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Td(a);case"xxxx":case"xx":return Oo(a);case"xxxxx":case"xxx":default:return Oo(a,":")}},O:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ad(a,":");case"OOOO":default:return"GMT"+Oo(a,":")}},z:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ad(a,":");case"zzzz":default:return"GMT"+Oo(a,":")}},t:function(e,n,o,i){var s=i._originalDate||e,a=Math.floor(s.getTime()/1e3);return Oe(a,n.length)},T:function(e,n,o,i){var s=i._originalDate||e,a=s.getTime();return Oe(a,n.length)}};function Ad(t,e){var n=t>0?"-":"+",o=Math.abs(t),i=Math.floor(o/60),s=o%60;if(s===0)return n+String(i);var a=e||"";return n+String(i)+a+Oe(s,2)}function Td(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Oe(Math.abs(t)/60,2)}return Oo(t,e)}function Oo(t,e){var n=e||"",o=t>0?"-":"+",i=Math.abs(t),s=Oe(Math.floor(i/60),2),a=Oe(i%60,2);return o+s+n+a}const e5=Q3;var Nd=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Lp=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},t5=function(e,n){var o=e.match(/(P+)(p+)?/)||[],i=o[1],s=o[2];if(!s)return Nd(e,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Nd(i,n)).replace("{{time}}",Lp(s,n))},n5={p:Lp,P:t5};const o5=n5;var r5=["D","DD"],i5=["YY","YYYY"];function s5(t){return r5.indexOf(t)!==-1}function a5(t){return i5.indexOf(t)!==-1}function Dd(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) 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(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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 l5={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"}},c5=function(e,n,o){var i,s=l5[e];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+i:i+" ago":i};const u5=c5;function bl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var d5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},f5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},p5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},m5={date:bl({formats:d5,defaultWidth:"full"}),time:bl({formats:f5,defaultWidth:"full"}),dateTime:bl({formats:p5,defaultWidth:"full"})};const h5=m5;var g5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},v5=function(e,n,o,i){return g5[e]};const _5=v5;function fi(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",i;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return i[u]}}var y5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},C5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},b5={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"]},k5={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"]},w5={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"}},E5={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"}},S5=function(e,n){var o=Number(e),i=o%100;if(i>20||i<10)switch(i%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},x5={ordinalNumber:S5,era:fi({values:y5,defaultWidth:"wide"}),quarter:fi({values:C5,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:fi({values:b5,defaultWidth:"wide"}),day:fi({values:k5,defaultWidth:"wide"}),dayPeriod:fi({values:w5,defaultWidth:"wide",formattingValues:E5,defaultFormattingWidth:"wide"})};const A5=x5;function pi(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?N5(l,function(f){return f.test(a)}):T5(l,function(f){return f.test(a)}),u;u=t.valueCallback?t.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(a.length);return{value:u,rest:d}}}function T5(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function N5(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function D5(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(t.matchPattern);if(!o)return null;var i=o[0],s=e.match(t.parsePattern);if(!s)return null;var a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(i.length);return{value:a,rest:l}}}var $5=/^(\d+)(th|st|nd|rd)?/i,B5=/\d+/i,M5={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},L5={any:[/^b/i,/^(a|c)/i]},O5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},V5={any:[/1/i,/2/i,/3/i,/4/i]},I5={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},P5={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]},F5={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},R5={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]},z5={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},U5={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}},H5={ordinalNumber:D5({matchPattern:$5,parsePattern:B5,valueCallback:function(e){return parseInt(e,10)}}),era:pi({matchPatterns:M5,defaultMatchWidth:"wide",parsePatterns:L5,defaultParseWidth:"any"}),quarter:pi({matchPatterns:O5,defaultMatchWidth:"wide",parsePatterns:V5,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:pi({matchPatterns:I5,defaultMatchWidth:"wide",parsePatterns:P5,defaultParseWidth:"any"}),day:pi({matchPatterns:F5,defaultMatchWidth:"wide",parsePatterns:R5,defaultParseWidth:"any"}),dayPeriod:pi({matchPatterns:z5,defaultMatchWidth:"any",parsePatterns:U5,defaultParseWidth:"any"})};const q5=H5;var j5={code:"en-US",formatDistance:u5,formatLong:h5,formatRelative:_5,localize:A5,match:q5,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Op=j5;var W5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K5=/^'([^]*?)'?$/,G5=/''/g,Y5=/[a-zA-Z]/;function Qc(t,e,n){var o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,_,v,b;nt(2,arguments);var w=String(e),k=Xi(),T=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&o!==void 0?o:Op,A=Zn((s=(a=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Zn((m=(h=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(C=n.locale)===null||C===void 0||(_=C.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&g!==void 0?g:k.weekStartsOn)!==null&&h!==void 0?h:(v=k.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&m!==void 0?m:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var E=Tt(t);if(!$p(E))throw new RangeError("Invalid time value");var D=Fi(E),x=uc(E,D),$={firstWeekContainsDate:A,weekStartsOn:S,locale:T,_originalDate:E},B=w.match(Z5).map(function(V){var I=V[0];if(I==="p"||I==="P"){var W=o5[I];return W(V,T.formatLong)}return V}).join("").match(W5).map(function(V){if(V==="''")return"'";var I=V[0];if(I==="'")return J5(V);var W=e5[I];if(W)return!(n!=null&&n.useAdditionalWeekYearTokens)&&a5(V)&&Dd(V,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&s5(V)&&Dd(V,e,String(t)),W(x,V,T.localize,$);if(I.match(Y5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return V}).join("");return B}function J5(t){var e=t.match(K5);return e?e[1].replace(G5,"'"):t}function X5(t,e,n){var o,i,s,a,l,c,u,d,f,p;nt(2,arguments);var m=Tt(t),h=Tt(e),g=Xi(),y=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:g.locale)!==null&&o!==void 0?o:Op,C=Zn((s=(a=(l=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&a!==void 0?a:(f=g.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&s!==void 0?s:0);if(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var _=z3(m,h);if(isNaN(_))throw new RangeError("Invalid time value");var v;_<-6?v="other":_<-1?v="lastWeek":_<0?v="yesterday":_<1?v="today":_<2?v="tomorrow":_<7?v="nextWeek":v="other";var b=uc(m,Fi(m)),w=uc(h,Fi(h)),k=y.formatRelative(v,b,w,{locale:y,weekStartsOn:C});return Qc(m,k,{locale:y,weekStartsOn:C})}function Br(t,e){var n;nt(1,arguments);var o=Zn((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=nC(t),s;if(i.date){var a=oC(i.date,o);s=rC(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(i.time&&(c=iC(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(u=sC(i.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(l+c+u)}var Ss={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Q5=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,eC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function nC(t){var e={},n=t.split(Ss.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],Ss.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Ss.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var i=Ss.timezone.exec(o);i?(e.time=o.replace(i[1],""),e.timezone=i[1]):e.time=o}return e}function oC(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var i=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function rC(t,e){if(e===null)return new Date(NaN);var n=t.match(Q5);if(!n)return new Date(NaN);var o=!!n[4],i=mi(n[1]),s=mi(n[2])-1,a=mi(n[3]),l=mi(n[4]),c=mi(n[5])-1;if(o)return dC(e,l,c)?aC(e,l,c):new Date(NaN);var u=new Date(0);return!cC(e,s,a)||!uC(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}function mi(t){return t?parseInt(t):1}function iC(t){var e=t.match(eC);if(!e)return NaN;var n=kl(e[1]),o=kl(e[2]),i=kl(e[3]);return fC(n,o,i)?n*Dp+o*Np+i*1e3:NaN}function kl(t){return t&&parseFloat(t.replace(",","."))||0}function sC(t){if(t==="Z")return 0;var e=t.match(tC);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return pC(o,i)?n*(o*Dp+i*Np):NaN}function aC(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var i=o.getUTCDay()||7,s=(e-1)*7+n+1-i;return o.setUTCDate(o.getUTCDate()+s),o}var lC=[31,null,31,30,31,30,31,31,30,31,30,31];function Vp(t){return t%400===0||t%4===0&&t%100!==0}function cC(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(lC[e]||(Vp(t)?29:28))}function uC(t,e){return e>=1&&e<=(Vp(t)?366:365)}function dC(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function fC(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function pC(t,e){return e>=0&&e<=59}var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mC(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function hC(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(e,i);return new s}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return t[o]}})}),n}var Xe={},Ip={},hi={},Qi={},Wr={},Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.lexoHelper=void 0;Na.lexoHelper={arrayCopy:gC};function gC(t,e,n,o,i){let s=o;const a=e+i;for(let l=e;l<a;l++)n[s]=t[l],++s}var es={};Object.defineProperty(es,"__esModule",{value:!0});class vC{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}es.default=vC;Object.defineProperty(Wr,"__esModule",{value:!0});Wr.LexoInteger=void 0;const xs=Na,_C=es;class _e{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,i=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),i=-1);const s=new Array(o.length);let a=s.length-1;for(let l=0;a>=0;++l)s[l]=n.toDigit(o.charAt(a)),--a;return _e.make(n,i,s)}static zero(e){return new _e(e,0,_e.ZERO_MAG)}static one(e){return _e.make(e,1,_e.ONE_MAG)}static make(e,n,o){let i;for(i=o.length;i>0&&o[i-1]===0;--i);if(i===0)return _e.zero(e);if(i===o.length)return new _e(e,n,o);const s=new Array(i).fill(0);return xs.lexoHelper.arrayCopy(o,0,s,0,i),new _e(e,n,s)}static add(e,n,o){const i=Math.max(n.length,o.length),s=new Array(i).fill(0);let a=0;for(let l=0;l<i;++l){const c=l<n.length?n[l]:0,u=l<o.length?o[l]:0;let d=c+u+a;for(a=0;d>=e.getBase();d-=e.getBase())++a;s[l]=d}return _e.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return xs.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const i=_e.complement(e,o,n.length),s=_e.add(e,n,i);return s[s.length-1]=0,_e.add(e,s,_e.ONE_MAG)}static multiply(e,n,o){const i=new Array(n.length+o.length).fill(0);for(let s=0;s<n.length;++s)for(let a=0;a<o.length;++a){const l=s+a;for(i[l]+=n[s]*o[a];i[l]>=e.getBase();i[l]-=e.getBase())++i[l+1]}return i}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const i=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)i[s]=e.getBase()-1-n[s];return i}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=_e.add(this.sys,this.mag,e.mag);return _e.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=_e.compare(this.mag,e.mag);return n===0?_e.zero(this.sys):n<0?_e.make(this.sys,this.sign===-1?1:-1,_e.subtract(this.sys,e.mag,this.mag)):_e.make(this.sys,this.sign===-1?-1:1,_e.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?_e.make(this.sys,1,e.mag):_e.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?_e.make(this.sys,1,this.mag):_e.make(this.sys,-1,this.mag);const n=_e.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?_e.make(this.sys,1,n):_e.make(this.sys,-1,n)}negate(){return this.isZero()?this:_e.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return xs.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),_e.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return _e.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return xs.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),_e.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return _e.make(this.sys,this.sign,_e.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=_e.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?_e.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new _C.default,n=this.mag,o=n.length;for(let i=0;i<o;++i){const s=n[i];e.insert(0,this.sys.toChar(s))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}Wr.LexoInteger=_e;_e.ZERO_MAG=[0];_e.ONE_MAG=[1];_e.NEGATIVE_SIGN=-1;_e.ZERO_SIGN=0;_e.POSITIVE_SIGN=1;Object.defineProperty(Qi,"__esModule",{value:!0});Qi.LexoDecimal=void 0;const gi=Wr,yC=es;class Zt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Zt.make(gi.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Zt.make(gi.LexoInteger.parse(e,n),0);const i=e.substring(0,o)+e.substring(o+1);return Zt.make(gi.LexoInteger.parse(i,n),e.length-1-o)}static from(e){return Zt.make(e,0)}static make(e,n){if(e.isZero())return new Zt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const i=e.shiftRight(o),s=n-o;return new Zt(i,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,i=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)i=i.shiftLeft(),++s;return Zt.make(n.add(i),o)}subtract(e){let n=this.mag,o=this.sig,i=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)i=i.shiftLeft(),++s;return Zt.make(n.subtract(i),o)}multiply(e){return Zt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(gi.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let i=this.mag.shiftRight(o);return n&&(i=i.add(gi.LexoInteger.one(i.getSystem()))),Zt.make(i,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new yC.default(e),o=n[0],i=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(i&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),i&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}Qi.LexoDecimal=Zt;var As={},$d;function Pp(){if($d)return As;$d=1,Object.defineProperty(As,"__esModule",{value:!0});const t=Wr,e=Rp();class n{constructor(i){this.value=t.LexoInteger.parse(i,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new n("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new n("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new n("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[n.BUCKET_0,n.BUCKET_1,n.BUCKET_2]),this._VALUES}static max(){return n.VALUES[n.VALUES.length-1]}static from(i){const s=t.LexoInteger.parse(i,e.LexoRank.NUMERAL_SYSTEM),a=n.VALUES,l=a.length;for(let c=0;c<l;++c){const u=a[c];if(u.value.equals(s))return u}throw new Error("Unknown bucket: "+i)}static resolve(i){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(i.toString())))return c}throw new Error("No bucket found with id "+i)}format(){return this.value.format()}next(){return this.equals(n.BUCKET_0)?n.BUCKET_1:this.equals(n.BUCKET_1)?n.BUCKET_2:this.equals(n.BUCKET_2)?n.BUCKET_0:n.BUCKET_2}prev(){return this.equals(n.BUCKET_0)?n.BUCKET_2:this.equals(n.BUCKET_1)?n.BUCKET_0:this.equals(n.BUCKET_2)?n.BUCKET_1:n.BUCKET_0}equals(i){return this===i?!0:i?this.value.equals(i.value):!1}}return As.default=n,As}var eu={},Fp={};Object.defineProperty(Fp,"__esModule",{value:!0});var Da={};Object.defineProperty(Da,"__esModule",{value:!0});Da.LexoNumeralSystem10=void 0;class CC{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}Da.LexoNumeralSystem10=CC;var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.LexoNumeralSystem36=void 0;class bC{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}$a.LexoNumeralSystem36=bC;var Ba={};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.LexoNumeralSystem64=void 0;class kC{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Ba.LexoNumeralSystem64=kC;(function(t){var e=Bt&&Bt.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=Bt&&Bt.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Fp,t),n(Da,t),n($a,t),n(Ba,t)})(eu);var Bd;function Rp(){if(Bd)return hi;Bd=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.LexoRank=void 0;const t=Qi,e=Pp(),n=es,o=eu;class i{constructor(a,l){this.value=a.format()+"|"+i.formatDecimal(l),this.bucket=a,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=t.LexoDecimal.parse("0",i.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",i.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",i.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=i.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",i.NUMERAL_SYSTEM).subtract(i.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=i.between(i.MIN_DECIMAL,i.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",i.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(i.NUMERAL_SYSTEM.toChar(i.NUMERAL_SYSTEM.getBase()-2)+"00000",i.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return i.from(e.default.BUCKET_0,i.MIN_DECIMAL)}static middle(){const a=i.min();return a.between(i.max(a.bucket))}static max(a=e.default.BUCKET_0){return i.from(a,i.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?i.from(a,i.INITIAL_MIN_DECIMAL):i.from(a,i.INITIAL_MAX_DECIMAL)}static between(a,l){if(a.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=a,u=l,d;if(a.getScale()<l.getScale()){if(d=l.setScale(a.getScale(),!1),a.compareTo(d)>=0)return i.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return i.mid(a,l);c=d}let f;for(let h=c.getScale();h>0;u=f){const g=h-1,y=c.setScale(g,!0);if(f=u.setScale(g,!1),y.compareTo(f)===0)return i.checkMid(a,l,y);if(y.compareTo(f)>0)break;h=g,c=y}let p=i.middleInternal(a,l,c,u),m;for(let h=p.getScale();h>0;h=m){m=h-1;const g=p.setScale(m);if(a.compareTo(g)>=0||g.compareTo(l)>=0)break;p=g}return p}static parse(a){const l=a.split("|"),c=e.default.from(l[0]),u=t.LexoDecimal.parse(l[1],i.NUMERAL_SYSTEM);return new i(c,u)}static from(a,l){if(l.getSystem().getBase()!==i.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new i(a,l)}static middleInternal(a,l,c,u){const d=i.mid(c,u);return i.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?i.mid(a,l):c}static mid(a,l){const u=a.add(l).multiply(t.LexoDecimal.half(a.getSystem())),d=a.getScale()>l.getScale()?a.getScale():l.getScale();if(u.getScale()>d){const f=u.setScale(d,!1);if(f.compareTo(a)>0)return f;const p=u.setScale(d,!0);if(p.compareTo(l)<0)return p}return u}static formatDecimal(a){const l=a.format(),c=new n.default(l);let u=l.indexOf(i.NUMERAL_SYSTEM.getRadixPointChar());const d=i.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(i.NUMERAL_SYSTEM.getRadixPointChar()));u<6;)c.insert(0,d),++u;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new i(this.bucket,i.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(i.EIGHT_DECIMAL);return c.compareTo(i.MIN_DECIMAL)<=0&&(c=i.between(i.MIN_DECIMAL,this.decimal)),new i(this.bucket,c)}genNext(){if(this.isMin())return new i(this.bucket,i.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(i.EIGHT_DECIMAL);return c.compareTo(i.MAX_DECIMAL)>=0&&(c=i.between(this.decimal,i.MAX_DECIMAL)),new i(this.bucket,c)}between(a){if(!this.bucket.equals(a.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(a.decimal);if(l>0)return new i(this.bucket,i.between(a.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+a+" this.decimal="+this.decimal+" other.decimal="+a.decimal);return new i(this.bucket,i.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return i.from(this.bucket.next(),this.decimal)}inPrevBucket(){return i.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(i.MIN_DECIMAL)}isMax(){return this.decimal.equals(i.MAX_DECIMAL)}format(){return this.value}equals(a){return this===a?!0:a?this.value===a.value:!1}toString(){return this.value}compareTo(a){return this===a?0:a?this.value.localeCompare(a.value):1}}return hi.LexoRank=i,hi}(function(t){var e=Bt&&Bt.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=Bt&&Bt.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Rp(),t),n(Pp(),t),n(Qi,t),n(Wr,t)})(Ip);(function(t){var e=Bt&&Bt.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=Bt&&Bt.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Ip,t),n(eu,t)})(Xe);const Ei=60,wC=8,Md=Ei*wC;function Ma(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Md),i=Math.floor(t%Md/Ei);if(o>0&&i>0)return`${o}d ${i}h`;if(o>0)return`${o}d`;{const s=t%Ei;return s>0?`${i}h ${s}m`:`${i}h`}}else{const o=Math.floor(t/Ei),i=t%Ei;return o>0&&i>0?`${o}h ${i}m`:o>0?`${o}h`:`${i}m`}}function zp(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.activities)==null?void 0:o.length)??0)},0))??0}function EC(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.milestones)==null?void 0:o.length)??0)},0))??0}function SC(t){return(t==null?void 0:t.reduce((e,n)=>{var i;const o=(i=n.milestones)!=null&&i.length?zp(n.milestones):0;return e+o},0))??0}function xC(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function ts(t,e){if(t.moved)return Mr(e,t.moved.newIndex)}function Mr(t,e){if(e===0)if(t.length>1){const n=t[e+1];return Xe.LexoRank.parse(n.rank).genPrev().format()}else return Xe.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return Xe.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return Xe.LexoRank.parse(o.rank).between(Xe.LexoRank.parse(n.rank)).format()}}function ns(t){if(t.length===0)return Xe.LexoRank.middle().format();const e=t[0];return Xe.LexoRank.parse(e.rank).genPrev().format()}function tu(t,e){if(e===0)return[];let n;if(t.length===0)n=Xe.LexoRank.middle();else{const i=t[t.length-1];n=Xe.LexoRank.parse(i.rank).genNext()}const o=[];for(let i=0;i<e;i++)o.push(n.format()),n=n.genNext();return o}function La(t,e="dd/MM/yyyy"){if(!t)return"";const n=Br(t);return $p(n)?Qc(n,e):""}function nu(t,e){return t.status.id===e.id}function AC(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!nu(n,e))}function TC(t,e){return{...t,status:AC(t,e)?Pi.done:Pi.todo}}const Up=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function NC(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${i}, ${s}, ${e})`}function DC(t,e=.15){var n;if(t.startsWith("#"))return NC(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(i=>i.trim());if(o&&o.length>=3){const[i,s,a]=o;return`rgba(${i}, ${s}, ${a}, ${e})`}}return t}function Hp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Ld(t,e){const n=e.filter(i=>i.firstName||i.lastName).map(i=>({id:i.id,name:Hp(i)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(i=>i[1]);return Array.from(new Set(n.filter(i=>o.includes(i.name)).map(i=>i.id)))}const $C=["title"],BC={key:0,className:"ao-avatar__initials"},MC=["src"],Xn=r.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Ta.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=xC(n.userName),a=l=>{o("close",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",{role:"img",class:r.normalizeClass(i.value),title:t.userName},[t.avatarUrl?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",BC,r.toDisplayString(r.unref(s)),1)),t.avatarUrl?(r.openBlock(),r.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,MC)):r.createCommentVNode("",!0),t.isClosable?(r.openBlock(),r.createBlock(de,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:r.withModifiers(a,["stop"])},null,8,["color"])):r.createCommentVNode("",!0)],10,$C))}});const LC={class:"ao-card-template__subitems"},OC={class:"ao-card-template__subitem"},VC={class:"ao-card-template__subitem-number"},IC={class:"ao-card-template__subitem"},PC={class:"ao-card-template__subitem"},FC={class:"ao-card-template__body"},RC={class:"ao-card-template__col ao-card-template__col--phases"},zC={class:"ao-card-template__col-title"},UC={class:"ao-card-template__col-label"},HC={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},qC={class:"ao-card-template__footer"},jC={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},WC={class:"ao-card-template__col-title"},ZC={class:"ao-card-template__col-label"},KC={class:"ao-card-template__col-body"},GC={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},YC={class:"ao-card-template__col-title"},JC={class:"ao-card-template__col-label"},XC={class:"ao-card-template__col-body"},QC={class:"ao-card-template-item__secondary"},wl=5,e7=r.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,i=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=r.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,wl))??[]}),l=r.computed(()=>n.phases&&n.phases.length>wl?n.phases.length-wl:0);return(c,u)=>(r.openBlock(),r.createBlock(wp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":i},r.createSlots({subtitle:r.withCtx(()=>[r.createElementVNode("ul",LC,[r.createElementVNode("li",OC,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",VC,r.toDisplayString(t.milestones),1)]),r.createElementVNode("li",IC,[r.createVNode(ke,{name:"TaskOutlineRounded",size:"sm"}),r.createElementVNode("span",PC,r.toDisplayString(t.activities),1)])])]),default:r.withCtx(()=>[r.createElementVNode("div",FC,[r.createElementVNode("div",RC,[r.createElementVNode("div",zC,[r.createVNode(ke,{name:"WaterfallChartRounded",size:"sm"}),r.createElementVNode("span",UC,r.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(r.openBlock(),r.createElementBlock("ul",HC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,d=>(r.openBlock(),r.createBlock(Ii,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(r.openBlock(),r.createBlock(Ii,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)])])]),secondary:r.withCtx(()=>[r.createElementVNode("div",QC,[r.createVNode(de,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=r.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:r.withCtx(()=>[r.createElementVNode("div",qC,[t.updatedAt?(r.openBlock(),r.createElementBlock("div",jC,[r.createElementVNode("div",WC,[r.createElementVNode("span",ZC,r.toDisplayString(c.$t("template.updatedAt.label")),1)]),r.createElementVNode("div",KC,[r.createElementVNode("span",null,r.toDisplayString(t.updatedAt),1)])])):r.createCommentVNode("",!0),t.updatedBy?(r.openBlock(),r.createElementBlock("div",GC,[r.createElementVNode("div",YC,[r.createElementVNode("span",JC,r.toDisplayString(c.$t("template.updatedBy.label")),1)]),r.createElementVNode("div",XC,[r.createVNode(Xn,{"user-name":t.updatedBy},null,8,["user-name"])])])):r.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const t7={class:"ao-page-header"},n7={class:"ao-page-header-main"},o7={key:0,class:"ao-page-header-secondary"},os=r.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",t7,[r.createElementVNode("div",n7,[t.canGoBack?(r.openBlock(),r.createBlock(de,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(r.openBlock(),r.createElementBlock("div",o7,[r.renderSlot(e.$slots,"secondary")])):r.createCommentVNode("",!0)]))}});const r7=["type"],i7={key:0,class:"ao-button-card__label"},Eo=r.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Xc.BLACK},size:{default:()=>Ta.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>kp.ROUNDED}},setup(t){const e=t,n=r.computed(()=>e.size),o=r.computed(()=>e.isLoading?"Loading":e.iconName);return(i,s)=>(r.openBlock(),r.createElementBlock("button",{type:t.type,class:r.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,i.$attrs.disabled?"ao-button-card--is-disabled":""])},[r.renderSlot(i.$slots,"default",{},()=>[t.label?(r.openBlock(),r.createElementBlock("span",i7,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createBlock(ke,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):r.createCommentVNode("",!0)],10,r7))}});const s7={class:"ao-card-template-item__footer"},a7={key:0,class:"ao-card-template-item__subitem"},l7={class:"ao-card-template-item__subitem-number"},c7={class:"ao-card-template-item__secondary"},ou=r.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(t,{emit:e}){const n=e,o=l=>{n("update:title",l)},i=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(r.openBlock(),r.createBlock(wp,{"onUpdate:title":o},{footer:r.withCtx(()=>[r.createElementVNode("ul",s7,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(i,u=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:u},[l.$props[u]?(r.openBlock(),r.createElementBlock("li",a7,[r.createVNode(ke,{name:s[u],size:"sm"},null,8,["name"]),r.createElementVNode("span",l7,r.toDisplayString(l.$props[u]),1)])):r.createCommentVNode("",!0)],64))),64))])]),secondary:r.withCtx(()=>[r.createElementVNode("div",c7,[r.createVNode(de,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:r.withModifiers(a,["stop"])})])]),_:1}))}});const u7=r.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=r.computed(()=>{var i;return(i=e.milestones)==null?void 0:i.length}),o=r.computed(()=>e.milestones?zp(e.milestones):0);return(i,s)=>(r.openBlock(),r.createBlock(ou,r.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},i.$attrs),{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),d7=r.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=r.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,i)=>(r.openBlock(),r.createBlock(ou,{activities:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),f7={class:"ao-list__footer"},p7=r.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("addMilestone",{phaseId:n.phase.id})},s=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},a=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const u=ts(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(r.openBlock(),r.createBlock(r.unref(wo),{key:0,"model-value":t.phase.milestones,class:"ao-templates__list",title:c.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:r.withCtx(()=>[r.createVNode(gt,{title:"Milestones",level:3,class:"ao-list__title"})]),item:r.withCtx(({element:d})=>[(r.openBlock(),r.createBlock(d7,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":t.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":f=>a({id:d.id,name:f}),onClick:f=>c.$router.push({params:{milestoneId:d.id}}),onRemove:()=>s(d.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:r.withCtx(()=>[r.createElementVNode("div",f7,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),m7=r.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=r.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,i)=>(r.openBlock(),r.createBlock(ou,{tasks:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),h7={class:"ao-list__footer"},g7=r.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=ts(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(r.openBlock(),r.createBlock(r.unref(wo),{key:0,"model-value":t.milestone.activities,title:c.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:r.withCtx(()=>[r.createVNode(gt,{title:"Activities",level:3,class:"ao-list__title"})]),item:r.withCtx(({element:d})=>[(r.openBlock(),r.createBlock(m7,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":t.activityId===d.id,"is-draggable":!0,"onUpdate:title":f=>s({id:d.id,name:f}),onClick:f=>c.$router.push({params:{activityId:d.id}}),onRemove:()=>a(d.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:r.withCtx(()=>[r.createElementVNode("div",h7,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),v7={class:"ao-modal"},_7={key:0,class:"ao-modal__header"},y7={class:"ao-modal__header-meta"},C7={class:"ao-modal__title-group"},b7={class:"ao-modal__body"},k7={key:1,class:"ao-modal__footer"},Oa=r.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),r.createElementVNode("div",v7,[e.$slots.header?(r.openBlock(),r.createElementBlock("div",_7,[r.createElementVNode("div",y7,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),r.createElementVNode("header",C7,[r.renderSlot(e.$slots,"header")])])):r.createCommentVNode("",!0),r.createElementVNode("div",b7,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",k7,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])],2))}});const Ri=Math.min,Kt=Math.max,Qs=Math.round,Ts=Math.floor,_o=t=>({x:t,y:t}),w7={left:"right",right:"left",bottom:"top",top:"bottom"},E7={start:"end",end:"start"};function ru(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Va(t){return t.split("-")[1]}function S7(t){return t==="x"?"y":"x"}function qp(t){return t==="y"?"height":"width"}function iu(t){return["top","bottom"].includes(Lr(t))?"y":"x"}function jp(t){return S7(iu(t))}function x7(t,e,n){n===void 0&&(n=!1);const o=Va(t),i=jp(t),s=qp(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=ea(a)),[a,ea(a)]}function A7(t){const e=ea(t);return[dc(t),e,dc(e)]}function dc(t){return t.replace(/start|end/g,e=>E7[e])}function T7(t,e,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:a;default:return[]}}function N7(t,e,n,o){const i=Va(t);let s=T7(Lr(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(dc)))),s}function ea(t){return t.replace(/left|right|bottom|top/g,e=>w7[e])}function D7(t){return{top:0,right:0,bottom:0,left:0,...t}}function $7(t){return typeof t!="number"?D7(t):{top:t,right:t,bottom:t,left:t}}function ta(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Od(t,e,n){let{reference:o,floating:i}=t;const s=iu(e),a=jp(e),l=qp(a),c=Lr(e),u=s==="y",d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-i.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Va(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const B7=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:f}=Od(u,o,c),p=o,m={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:C}=l[g],{x:_,y:v,data:b,reset:w}=await C({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=_??d,f=v??f,m={...m,[y]:{...m[y],...b}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):w.rects),{x:d,y:f}=Od(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:i,middlewareData:m}};async function Wp(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=ru(e,t),h=$7(m),y=l[p?f==="floating"?"reference":"floating":f],C=ta(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),_=f==="floating"?{...a.floating,x:o,y:i}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},w=ta(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:v,strategy:c}):_);return{top:(C.top-w.top+h.top)/b.y,bottom:(w.bottom-C.bottom+h.bottom)/b.y,left:(C.left-w.left+h.left)/b.x,right:(w.right-C.right+h.right)/b.x}}const M7=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=ru(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Lr(i),_=Lr(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=p||(_||!g?[ea(l)]:A7(l));!p&&h!=="none"&&b.push(...N7(l,g,h,v));const w=[l,...b],k=await Wp(e,y),T=[];let A=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&T.push(k[C]),f){const x=x7(i,a,v);T.push(k[x[0]],k[x[1]])}if(A=[...A,{placement:i,overflows:T}],!T.every(x=>x<=0)){var S,E;const x=(((S=s.flip)==null?void 0:S.index)||0)+1,$=w[x];if($)return{data:{index:x,overflows:A},reset:{placement:$}};let B=(E=A.filter(V=>V.overflows[0]<=0).sort((V,I)=>V.overflows[1]-I.overflows[1])[0])==null?void 0:E.placement;if(!B)switch(m){case"bestFit":{var D;const V=(D=A.map(I=>[I.placement,I.overflows.filter(W=>W>0).reduce((W,P)=>W+P,0)]).sort((I,W)=>I[1]-W[1])[0])==null?void 0:D[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}},L7=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:s}=e,{apply:a=()=>{},...l}=ru(t,e),c=await Wp(e,l),u=Lr(n),d=Va(n),f=iu(n)==="y",{width:p,height:m}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const y=m-c[h],C=p-c[g],_=!e.middlewareData.shift;let v=y,b=C;if(f){const k=p-c.left-c.right;b=d||_?Ri(C,k):k}else{const k=m-c.top-c.bottom;v=d||_?Ri(y,k):k}if(_&&!d){const k=Kt(c.left,0),T=Kt(c.right,0),A=Kt(c.top,0),S=Kt(c.bottom,0);f?b=p-2*(k!==0||T!==0?k+T:Kt(c.left,c.right)):v=m-2*(A!==0||S!==0?A+S:Kt(c.top,c.bottom))}await a({...e,availableWidth:b,availableHeight:v});const w=await i.getDimensions(s.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function yo(t){return Zp(t)?(t.nodeName||"").toLowerCase():"#document"}function Ut(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qn(t){var e;return(e=(Zp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zp(t){return t instanceof Node||t instanceof Ut(t).Node}function Kn(t){return t instanceof Element||t instanceof Ut(t).Element}function $n(t){return t instanceof HTMLElement||t instanceof Ut(t).HTMLElement}function Vd(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ut(t).ShadowRoot}function rs(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=en(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function O7(t){return["table","td","th"].includes(yo(t))}function su(t){const e=au(),n=en(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function V7(t){let e=Or(t);for(;$n(e)&&!Ia(e);){if(su(e))return e;e=Or(e)}return null}function au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ia(t){return["html","body","#document"].includes(yo(t))}function en(t){return Ut(t).getComputedStyle(t)}function Pa(t){return Kn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Or(t){if(yo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vd(t)&&t.host||Qn(t);return Vd(e)?e.host:e}function Kp(t){const e=Or(t);return Ia(e)?t.ownerDocument?t.ownerDocument.body:t.body:$n(e)&&rs(e)?e:Kp(e)}function zi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Kp(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=Ut(i);return s?e.concat(a,a.visualViewport||[],rs(i)?i:[],a.frameElement&&n?zi(a.frameElement):[]):e.concat(i,zi(i))}function Gp(t){const e=en(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=$n(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,l=Qs(n)!==s||Qs(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function lu(t){return Kn(t)?t:t.contextElement}function Er(t){const e=lu(t);if(!$n(e))return _o(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Gp(e);let a=(s?Qs(n.width):n.width)/o,l=(s?Qs(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const I7=_o(0);function Yp(t){const e=Ut(t);return!au()||!e.visualViewport?I7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function P7(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ut(t)?!1:e}function Go(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=lu(t);let a=_o(1);e&&(o?Kn(o)&&(a=Er(o)):a=Er(t));const l=P7(s,n,o)?Yp(s):_o(0);let c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(s){const p=Ut(s),m=o&&Kn(o)?Ut(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=Er(h),y=h.getBoundingClientRect(),C=en(h),_=y.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,v=y.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=_,u+=v,h=Ut(h).frameElement}}return ta({width:d,height:f,x:c,y:u})}function F7(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=$n(n),s=Qn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=_o(1);const c=_o(0);if((i||!i&&o!=="fixed")&&((yo(n)!=="body"||rs(s))&&(a=Pa(n)),$n(n))){const u=Go(n);l=Er(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}}function R7(t){return Array.from(t.getClientRects())}function Jp(t){return Go(Qn(t)).left+Pa(t).scrollLeft}function z7(t){const e=Qn(t),n=Pa(t),o=t.ownerDocument.body,i=Kt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Kt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Jp(t);const l=-n.scrollTop;return en(o).direction==="rtl"&&(a+=Kt(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:l}}function U7(t,e){const n=Ut(t),o=Qn(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;const u=au();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l,y:c}}function H7(t,e){const n=Go(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=$n(t)?Er(t):_o(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Id(t,e,n){let o;if(e==="viewport")o=U7(t,n);else if(e==="document")o=z7(Qn(t));else if(Kn(e))o=H7(e,n);else{const i=Yp(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ta(o)}function Xp(t,e){const n=Or(t);return n===e||!Kn(n)||Ia(n)?!1:en(n).position==="fixed"||Xp(n,e)}function q7(t,e){const n=e.get(t);if(n)return n;let o=zi(t,[],!1).filter(l=>Kn(l)&&yo(l)!=="body"),i=null;const s=en(t).position==="fixed";let a=s?Or(t):t;for(;Kn(a)&&!Ia(a);){const l=en(a),c=su(a);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rs(a)&&!c&&Xp(t,a))?o=o.filter(d=>d!==a):i=l,a=Or(a)}return e.set(t,o),o}function j7(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?q7(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Id(e,d,i);return u.top=Kt(f.top,u.top),u.right=Ri(f.right,u.right),u.bottom=Ri(f.bottom,u.bottom),u.left=Kt(f.left,u.left),u},Id(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function W7(t){return Gp(t)}function Z7(t,e,n){const o=$n(e),i=Qn(e),s=n==="fixed",a=Go(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=_o(0);if(o||!o&&!s)if((yo(e)!=="body"||rs(i))&&(l=Pa(e)),o){const u=Go(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=Jp(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Pd(t,e){return!$n(t)||en(t).position==="fixed"?null:e?e(t):t.offsetParent}function Qp(t,e){const n=Ut(t);if(!$n(t))return n;let o=Pd(t,e);for(;o&&O7(o)&&en(o).position==="static";)o=Pd(o,e);return o&&(yo(o)==="html"||yo(o)==="body"&&en(o).position==="static"&&!su(o))?n:o||V7(t)||n}const K7=async function(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||Qp,s=this.getDimensions;return{reference:Z7(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}};function G7(t){return en(t).direction==="rtl"}const Y7={convertOffsetParentRelativeRectToViewportRelativeRect:F7,getDocumentElement:Qn,getClippingRect:j7,getOffsetParent:Qp,getElementRects:K7,getClientRects:R7,getDimensions:W7,getScale:Er,isElement:Kn,isRTL:G7};function J7(t,e){let n=null,o;const i=Qn(t);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:f,height:p}=t.getBoundingClientRect();if(l||e(),!f||!p)return;const m=Ts(d),h=Ts(i.clientWidth-(u+f)),g=Ts(i.clientHeight-(d+p)),y=Ts(u),_={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Kt(0,Ri(1,c))||1};let v=!0;function b(w){const k=w[0].intersectionRatio;if(k!==c){if(!v)return a();k?a(!1,k):o=setTimeout(()=>{a(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(b,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,_)}n.observe(t)}return a(!0),s}function X7(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=lu(t),d=i||s?[...u?zi(u):[],...zi(e)]:[];d.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?J7(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(C=>{let[_]=C;_&&_.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let h,g=c?Go(t):null;c&&y();function y(){const C=Go(t);g&&(C.x!==g.x||C.y!==g.y||C.width!==g.width||C.height!==g.height)&&n(),g=C,h=requestAnimationFrame(y)}return n(),()=>{d.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const Q7=(t,e,n)=>{const o=new Map,i={platform:Y7,...n},s={...i.platform,_c:o};return B7(t,e,{...i,platform:s})},eb=t=>{const e=r.ref(!1),n=r.ref(),o=r.ref(),i=r.ref(0);function s(){const f=r.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=r.ref(()=>{});function c(f){f.relatedTarget&&o.value&&o.value.contains(f.relatedTarget)||t.multiselect.value.deactivate()}function u(){const f=t.multiselect.value.$el,p=f.querySelector(".multiselect-dropdown");if(!p||!f||e.value===!0)return;o.value=p,n.value=f,getComputedStyle(p).getPropertyValue("display")==="none"&&(p.style.display="flex"),i.value=p.offsetHeight,p.style.removeProperty("display"),Object.assign(p.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(p),t.multiselect.value.handleFocusOut=c;const h=X7(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||Q7(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[M7({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),L7({apply({availableWidth:f,availableHeight:p,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${i.value}px`,width:`${h.reference.width}px`,maxWidth:`${f}px`,maxHeight:`${p}px`})}})]}).then(({x:f,y:p})=>{Object.assign(o.value.style,{left:`${f}px`,top:`${p}px`})})}r.onMounted(()=>{u()}),r.onBeforeUnmount(()=>{l.value()}),r.onUnmounted(()=>{l.value()})};function wn(t){return[null,void 0].indexOf(t)!==-1}function tb(t,e,n){const{object:o,valueProp:i,mode:s}=r.toRefs(t),a=r.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const m=u(f);e.emit("change",m,a),p&&(e.emit("input",m),e.emit("update:modelValue",m))},u=f=>o.value||wn(f)?f:Array.isArray(f)?f.map(p=>p[i.value]):f[i.value],d=f=>wn(f)?s.value==="single"?{}:[]:f;return{update:c}}function nb(t,e){const{value:n,modelValue:o,mode:i,valueProp:s}=r.toRefs(t),a=r.ref(i.value!=="single"?[]:{}),l=r.computed(()=>o&&o.value!==void 0?o.value:n.value),c=r.computed(()=>i.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=r.computed(()=>i.value!=="single"?a.value.map(d=>d[s.value]).join(","):a.value[s.value]);return{iv:a,internalValue:a,ev:l,externalValue:l,textValue:u,plainValue:c}}function ob(t,e,n){const{regex:o}=r.toRefs(t),i=r.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=r.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(o&&o.value){let m=o.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(o&&o.value){let h=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),h.split("").every(y=>!!y.match(g))||p.preventDefault()}e.emit("paste",p,i)};return r.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,i)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function rb(t,e,n){const{groupSelect:o,mode:i,groups:s,disabledProp:a}=r.toRefs(t),l=r.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(i.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function El(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function ib(t){return Object.prototype.toString.call(t)==="[object Object]"}function sb(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,i){return o===n[i]})}function ab(t,e,n){const{options:o,mode:i,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:m,object:h,loading:g,delay:y,resolveOnLoad:C,minChars:_,filterResults:v,clearOnSearch:b,clearOnSelect:w,valueProp:k,allowAbsent:T,groupLabel:A,canDeselect:S,max:E,strict:D,closeOnSelect:x,closeOnDeselect:$,groups:B,reverse:V,infinite:I,groupOptions:W,groupHideEmpty:P,groupSelect:H,onCreate:Q,disabledProp:le,searchStart:oe,searchFilter:Ne}=r.toRefs(t),ce=r.getCurrentInstance().proxy,ne=n.iv,z=n.ev,F=n.search,se=n.clearSearch,Ee=n.update,Ue=n.pointer,we=n.setPointer,Ce=n.clearPointer,yt=n.focus,R=n.deactivate,re=n.close,he=n.localize,pe=r.ref([]),Ke=r.ref([]),De=r.ref(!1),$e=r.ref(null),Fe=r.ref(I.value&&a.value===-1?10:a.value),Ye=r.computed(()=>c.value||u.value||!1),Je=r.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Me=r.computed(()=>{if(B.value){let L=Ot.value||[],Y=[];return L.forEach(be=>{si(be[W.value]).forEach(He=>{Y.push(Object.assign({},He,be[le.value]?{[le.value]:!0}:{}))})}),Y}else{let L=si(Ke.value||[]);return pe.value.length&&(L=L.concat(pe.value)),L}}),Ct=r.computed(()=>{let L=Me.value;return V.value&&(L=L.reverse()),j.value.length&&(L=j.value.concat(L)),ii(L)}),st=r.computed(()=>{let L=Ct.value;return Fe.value>0&&(L=L.slice(0,Fe.value)),L}),Ot=r.computed(()=>{if(!B.value)return[];let L=[],Y=Ke.value||[];return pe.value.length&&L.push({[A.value]:" ",[W.value]:[...pe.value],__CREATE__:!0}),L.concat(Y)}),on=r.computed(()=>{let L=[...Ot.value].map(Y=>({...Y}));return j.value.length&&(L[0]&&L[0].__CREATE__?L[0][W.value]=[...j.value,...L[0][W.value]]:L=[{[A.value]:" ",[W.value]:[...j.value],__CREATE__:!0}].concat(L)),L}),yn=r.computed(()=>{if(!B.value)return[];let L=on.value;return Do((L||[]).map((Y,be)=>{const He=si(Y[W.value]);return{...Y,index:be,group:!0,[W.value]:ii(He,!1).map(In=>Object.assign({},In,Y[le.value]?{[le.value]:!0}:{})),__VISIBLE__:ii(He).map(In=>Object.assign({},In,Y[le.value]?{[le.value]:!0}:{}))}}))}),Cn=r.computed(()=>{switch(i.value){case"single":return!wn(ne.value[k.value]);case"multiple":case"tags":return!wn(ne.value)&&ne.value.length>0}}),bn=r.computed(()=>m!==void 0&&m.value!==void 0?m.value(ne.value,ce):ne.value&&ne.value.length>1?`${ne.value.length} options selected`:"1 option selected"),to=r.computed(()=>!Me.value.length&&!De.value&&!j.value.length),M=r.computed(()=>Me.value.length>0&&st.value.length==0&&(F.value&&B.value||!B.value)),j=r.computed(()=>Ye.value===!1||!F.value?[]:ys(F.value)!==-1?[]:[{[k.value]:F.value,[ae.value[0]]:F.value,[d.value]:F.value,__CREATE__:!0}]),ae=r.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),Re=r.computed(()=>{switch(i.value){case"single":return null;case"multiple":case"tags":return[]}}),ot=r.computed(()=>g.value||De.value),bt=L=>{switch(typeof L!="object"&&(L=Pt(L)),i.value){case"single":Ee(L);break;case"multiple":case"tags":Ee(ne.value.concat(L));break}e.emit("select",Et(L),L,ce)},ve=L=>{switch(typeof L!="object"&&(L=Pt(L)),i.value){case"single":ni();break;case"tags":case"multiple":Ee(Array.isArray(L)?ne.value.filter(Y=>L.map(be=>be[k.value]).indexOf(Y[k.value])===-1):ne.value.filter(Y=>Y[k.value]!=L[k.value]));break}e.emit("deselect",Et(L),L,ce)},Et=L=>h.value?L:L[k.value],no=L=>{ve(L)},vs=(L,Y)=>{if(Y.button!==0){Y.preventDefault();return}no(L)},ni=()=>{Ee(Re.value),e.emit("clear",ce)},Vt=L=>{if(L.group!==void 0)return i.value==="single"?!1:_s(L[W.value])&&L[W.value].length;switch(i.value){case"single":return!wn(ne.value)&&ne.value[k.value]==L[k.value];case"tags":case"multiple":return!wn(ne.value)&&ne.value.map(Y=>Y[k.value]).indexOf(L[k.value])!==-1}},dr=L=>L[le.value]===!0,oo=()=>E===void 0||E.value===-1||!Cn.value&&E.value>0?!1:ne.value.length>=E.value,fr=L=>{if(!dr(L)){if(Q&&Q.value&&!Vt(L)&&L.__CREATE__&&(L={...L},delete L.__CREATE__,L=Q.value(L,ce),L instanceof Promise)){De.value=!0,L.then(Y=>{De.value=!1,It(Y)});return}It(L)}},It=L=>{switch(L.__CREATE__&&(L={...L},delete L.__CREATE__),i.value){case"single":if(L&&Vt(L)){S.value&&ve(L),$.value&&(Ce(),re());return}L&&No(L),w.value&&se(),x.value&&(Ce(),re()),L&&bt(L);break;case"multiple":if(L&&Vt(L)){ve(L),$.value&&(Ce(),re());return}if(oo()){e.emit("max",ce);return}L&&(No(L),bt(L)),w.value&&se(),l.value&&Ce(),x.value&&re();break;case"tags":if(L&&Vt(L)){ve(L),$.value&&(Ce(),re());return}if(oo()){e.emit("max",ce);return}L&&No(L),w.value&&se(),L&&bt(L),l.value&&Ce(),x.value&&re();break}x.value||yt()},ro=L=>{if(!(dr(L)||i.value==="single"||!H.value)){switch(i.value){case"multiple":case"tags":gl(L[W.value])?ve(L[W.value]):bt(L[W.value].filter(Y=>ne.value.map(be=>be[k.value]).indexOf(Y[k.value])===-1).filter(Y=>!Y[le.value]).filter((Y,be)=>ne.value.length+1+be<=E.value||E.value===-1)),l.value&&Ue.value&&we(yn.value.filter(Y=>!Y[le.value])[Ue.value.index]);break}x.value&&R()}},No=L=>{Pt(L[k.value])===void 0&&Ye.value&&(e.emit("tag",L[k.value],ce),e.emit("option",L[k.value],ce),e.emit("create",L[k.value],ce),Je.value&&vl(L),se())},oi=()=>{i.value!=="single"&&bt(st.value.filter(L=>!L.disabled&&!Vt(L)))},gl=L=>L.find(Y=>!Vt(Y)&&!Y[le.value])===void 0,_s=L=>L.find(Y=>!Vt(Y))===void 0,Pt=L=>Me.value[Me.value.map(Y=>String(Y[k.value])).indexOf(String(L))],ys=L=>Me.value.findIndex(Y=>ae.value.some(be=>(parseInt(Y[be])==Y[be]?parseInt(Y[be]):Y[be])===(parseInt(L)==L?parseInt(L):L))),ri=L=>["tags","multiple"].indexOf(i.value)!==-1&&l.value&&Vt(L),vl=L=>{pe.value.push(L)},Do=L=>P.value?L.filter(Y=>F.value?Y.__VISIBLE__.length:Y[W.value].length):L.filter(Y=>F.value?Y.__VISIBLE__.length:!0),ii=(L,Y=!0)=>{let be=L;if(F.value&&v.value){let He=Ne.value;He||(He=(In,sn,ci)=>ae.value.some(Pn=>{let bs=El(he(In[Pn]),D.value);return oe.value?bs.startsWith(El(sn,D.value)):bs.indexOf(El(sn,D.value))!==-1})),be=be.filter(In=>He(In,F.value,ce))}return l.value&&Y&&(be=be.filter(He=>!ri(He))),be},si=L=>{let Y=L;return ib(Y)&&(Y=Object.keys(Y).map(be=>{let He=Y[be];return{[k.value]:be,[ae.value[0]]:He,[d.value]:He}})),Y=Y.map(be=>typeof be=="object"?be:{[k.value]:be,[ae.value[0]]:be,[d.value]:be}),Y},Ve=()=>{wn(z.value)||(ne.value=io(z.value))},rn=L=>(De.value=!0,new Promise((Y,be)=>{o.value(F.value,ce).then(He=>{Ke.value=He||[],typeof L=="function"&&L(He),De.value=!1}).catch(He=>{console.error(He),Ke.value=[],De.value=!1}).finally(()=>{Y()})})),ai=()=>{if(Cn.value)if(i.value==="single"){let L=Pt(ne.value[k.value]);if(L!==void 0){let Y=L[d.value];ne.value[d.value]=Y,h.value&&(z.value[d.value]=Y)}}else ne.value.forEach((L,Y)=>{let be=Pt(ne.value[Y][k.value]);if(be!==void 0){let He=be[d.value];ne.value[Y][d.value]=He,h.value&&(z.value[Y][d.value]=He)}})},Cs=L=>{rn(L)},io=L=>wn(L)?i.value==="single"?{}:[]:h.value?L:i.value==="single"?Pt(L)||(T.value?{[d.value]:L,[k.value]:L,[ae.value[0]]:L}:{}):L.filter(Y=>!!Pt(Y)||T.value).map(Y=>Pt(Y)||{[d.value]:Y,[k.value]:Y,[ae.value[0]]:Y}),li=()=>{$e.value=r.watch(F,L=>{L.length<_.value||!L&&_.value!==0||(De.value=!0,b.value&&(Ke.value=[]),setTimeout(()=>{L==F.value&&o.value(F.value,ce).then(Y=>{(L==F.value||!F.value)&&(Ke.value=Y,Ue.value=st.value.filter(be=>be[le.value]!==!0)[0]||null,De.value=!1)}).catch(Y=>{console.error(Y)})},y.value))},{flush:"sync"})};if(i.value!=="single"&&!wn(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${i.value}" mode`);return o&&typeof o.value=="function"?C.value?rn(Ve):h.value==!0&&Ve():(Ke.value=o.value,Ve()),y.value>-1&&li(),r.watch(y,(L,Y)=>{$e.value&&$e.value(),L>=0&&li()}),r.watch(z,L=>{if(wn(L)){Ee(io(L),!1);return}switch(i.value){case"single":(h.value?L[k.value]!=ne.value[k.value]:L!=ne.value[k.value])&&Ee(io(L),!1);break;case"multiple":case"tags":sb(h.value?L.map(Y=>Y[k.value]):L,ne.value.map(Y=>Y[k.value]))||Ee(io(L),!1);break}},{deep:!0}),r.watch(o,(L,Y)=>{typeof t.options=="function"?C.value&&(!Y||L&&L.toString()!==Y.toString())&&rn():(Ke.value=t.options,Object.keys(ne.value).length||Ve(),ai())}),r.watch(d,ai),r.watch(a,(L,Y)=>{Fe.value=I.value&&L===-1?10:L}),{pfo:Ct,fo:st,filteredOptions:st,hasSelected:Cn,multipleLabelText:bn,eo:Me,extendedOptions:Me,eg:Ot,extendedGroups:Ot,fg:yn,filteredGroups:yn,noOptions:to,noResults:M,resolving:De,busy:ot,offset:Fe,select:bt,deselect:ve,remove:no,selectAll:oi,clear:ni,isSelected:Vt,isDisabled:dr,isMax:oo,getOption:Pt,handleOptionClick:fr,handleGroupClick:ro,handleTagRemove:vs,refreshOptions:Cs,resolveOptions:rn,refreshLabels:ai}}function lb(t,e,n){const{valueProp:o,showOptions:i,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=r.toRefs(t),p=n.fo,m=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,y=n.search,C=n.pointer,_=n.setPointer,v=n.clearPointer,b=n.multiselect,w=n.isOpen,k=r.computed(()=>p.value.filter(z=>!z[d.value])),T=r.computed(()=>m.value.filter(z=>!z[d.value])),A=r.computed(()=>c.value!=="single"&&u.value),S=r.computed(()=>C.value&&C.value.group),E=r.computed(()=>ce(C.value)),D=r.computed(()=>{const z=S.value?C.value:ce(C.value),F=T.value.map(Ee=>Ee[a.value]).indexOf(z[a.value]);let se=T.value[F-1];return se===void 0&&(se=$.value),se}),x=r.computed(()=>{let z=T.value.map(F=>F.label).indexOf(S.value?C.value[a.value]:ce(C.value)[a.value])+1;return T.value.length<=z&&(z=0),T.value[z]}),$=r.computed(()=>[...T.value].slice(-1)[0]),B=r.computed(()=>C.value.__VISIBLE__.filter(z=>!z[d.value])[0]),V=r.computed(()=>{const z=E.value.__VISIBLE__.filter(F=>!F[d.value]);return z[z.map(F=>F[o.value]).indexOf(C.value[o.value])-1]}),I=r.computed(()=>{const z=ce(C.value).__VISIBLE__.filter(F=>!F[d.value]);return z[z.map(F=>F[o.value]).indexOf(C.value[o.value])+1]}),W=r.computed(()=>[...D.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),P=r.computed(()=>[...$.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),H=z=>C.value&&(!z.group&&C.value[o.value]===z[o.value]||z.group!==void 0&&C.value[a.value]===z[a.value])?!0:void 0,Q=()=>{_(k.value[0]||null)},le=()=>{!C.value||C.value[d.value]===!0||(S.value?g(C.value):h(C.value))},oe=()=>{if(C.value===null)_((l.value&&A.value?T.value[0].__CREATE__?k.value[0]:T.value[0]:k.value[0])||null);else if(l.value&&A.value){let z=S.value?B.value:I.value;z===void 0&&(z=x.value,z.__CREATE__&&(z=z[f.value][0])),_(z||null)}else{let z=k.value.map(F=>F[o.value]).indexOf(C.value[o.value])+1;k.value.length<=z&&(z=0),_(k.value[z]||null)}r.nextTick(()=>{ne()})},Ne=()=>{if(C.value===null){let z=k.value[k.value.length-1];l.value&&A.value&&(z=P.value,z===void 0&&(z=$.value)),_(z||null)}else if(l.value&&A.value){let z=S.value?W.value:V.value;z===void 0&&(z=S.value?D.value:E.value,z.__CREATE__&&(z=W.value,z===void 0&&(z=D.value))),_(z||null)}else{let z=k.value.map(F=>F[o.value]).indexOf(C.value[o.value])-1;z<0&&(z=k.value.length-1),_(k.value[z]||null)}r.nextTick(()=>{ne()})},ce=z=>T.value.find(F=>F.__VISIBLE__.map(se=>se[o.value]).indexOf(z[o.value])!==-1),ne=()=>{let z=b.value.querySelector("[data-pointed]");if(!z)return;let F=z.parentElement.parentElement;l.value&&(F=S.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>F.clientHeight+F.scrollTop&&(F.scrollTop=z.offsetTop+z.offsetHeight-F.clientHeight),z.offsetTop<F.scrollTop&&(F.scrollTop=z.offsetTop)};return r.watch(y,z=>{s.value&&(z.length&&i.value?Q():v())}),r.watch(w,z=>{if(z){let F=b.value.querySelectorAll("[data-selected]")[0];if(!F)return;let se=F.parentElement.parentElement;r.nextTick(()=>{se.scrollTop>0||(se.scrollTop=F.offsetTop)})}}),{pointer:C,canPointGroups:A,isPointed:H,setPointerFirst:Q,selectPointer:le,forwardPointer:oe,backwardPointer:Ne}}function Ht(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Yo(t){var e=Ht(t).Element;return t instanceof e||t instanceof Element}function Xt(t){var e=Ht(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function cu(t){if(typeof ShadowRoot>"u")return!1;var e=Ht(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var qo=Math.max,na=Math.min,Vr=Math.round;function fc(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function em(){return!/^((?!chrome|android).)*safari/i.test(fc())}function Ir(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),i=1,s=1;e&&Xt(t)&&(i=t.offsetWidth>0&&Vr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Vr(o.height)/t.offsetHeight||1);var a=Yo(t)?Ht(t):window,l=a.visualViewport,c=!em()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/i,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/i,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function uu(t){var e=Ht(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function cb(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ub(t){return t===Ht(t)||!Xt(t)?uu(t):cb(t)}function Bn(t){return t?(t.nodeName||"").toLowerCase():null}function So(t){return((Yo(t)?t.ownerDocument:t.document)||window.document).documentElement}function du(t){return Ir(So(t)).left+uu(t).scrollLeft}function Gn(t){return Ht(t).getComputedStyle(t)}function fu(t){var e=Gn(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function db(t){var e=t.getBoundingClientRect(),n=Vr(e.width)/t.offsetWidth||1,o=Vr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function fb(t,e,n){n===void 0&&(n=!1);var o=Xt(e),i=Xt(e)&&db(e),s=So(e),a=Ir(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Bn(e)!=="body"||fu(s))&&(l=ub(e)),Xt(e)?(c=Ir(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=du(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function tm(t){var e=Ir(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Fa(t){return Bn(t)==="html"?t:t.assignedSlot||t.parentNode||(cu(t)?t.host:null)||So(t)}function nm(t){return["html","body","#document"].indexOf(Bn(t))>=0?t.ownerDocument.body:Xt(t)&&fu(t)?t:nm(Fa(t))}function Ni(t,e){var n;e===void 0&&(e=[]);var o=nm(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Ht(o),a=i?[s].concat(s.visualViewport||[],fu(o)?o:[]):o,l=e.concat(a);return i?l:l.concat(Ni(Fa(a)))}function pb(t){return["table","td","th"].indexOf(Bn(t))>=0}function Fd(t){return!Xt(t)||Gn(t).position==="fixed"?null:t.offsetParent}function mb(t){var e=/firefox/i.test(fc()),n=/Trident/i.test(fc());if(n&&Xt(t)){var o=Gn(t);if(o.position==="fixed")return null}var i=Fa(t);for(cu(i)&&(i=i.host);Xt(i)&&["html","body"].indexOf(Bn(i))<0;){var s=Gn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ra(t){for(var e=Ht(t),n=Fd(t);n&&pb(n)&&Gn(n).position==="static";)n=Fd(n);return n&&(Bn(n)==="html"||Bn(n)==="body"&&Gn(n).position==="static")?e:n||mb(t)||e}var un="top",Mn="bottom",Co="right",jn="left",pu="auto",za=[un,Mn,Co,jn],Pr="start",Ui="end",hb="clippingParents",om="viewport",vi="popper",gb="reference",Rd=za.reduce(function(t,e){return t.concat([e+"-"+Pr,e+"-"+Ui])},[]),vb=[].concat(za,[pu]).reduce(function(t,e){return t.concat([e,e+"-"+Pr,e+"-"+Ui])},[]),_b="beforeRead",yb="read",Cb="afterRead",bb="beforeMain",kb="main",wb="afterMain",Eb="beforeWrite",Sb="write",xb="afterWrite",Ab=[_b,yb,Cb,bb,kb,wb,Eb,Sb,xb];function Tb(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),o}function Nb(t){var e=Tb(t);return Ab.reduce(function(n,o){return n.concat(e.filter(function(i){return i.phase===o}))},[])}function Db(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function $b(t){var e=t.reduce(function(n,o){var i=n[o.name];return n[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function Bb(t,e){var n=Ht(t),o=So(t),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var u=em();(u||!u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+du(t),y:c}}function Mb(t){var e,n=So(t),o=uu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=qo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=qo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-o.scrollLeft+du(t),c=-o.scrollTop;return Gn(i||n).direction==="rtl"&&(l+=qo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Lb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&cu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function pc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ob(t,e){var n=Ir(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function zd(t,e,n){return e===om?pc(Bb(t,n)):Yo(e)?Ob(e,n):pc(Mb(So(t)))}function Vb(t){var e=Ni(Fa(t)),n=["absolute","fixed"].indexOf(Gn(t).position)>=0,o=n&&Xt(t)?Ra(t):t;return Yo(o)?e.filter(function(i){return Yo(i)&&Lb(i,o)&&Bn(i)!=="body"}):[]}function Ib(t,e,n,o){var i=e==="clippingParents"?Vb(t):[].concat(e),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,u){var d=zd(t,u,o);return c.top=qo(d.top,c.top),c.right=na(d.right,c.right),c.bottom=na(d.bottom,c.bottom),c.left=qo(d.left,c.left),c},zd(t,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mo(t){return t.split("-")[0]}function Fr(t){return t.split("-")[1]}function rm(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function im(t){var e=t.reference,n=t.element,o=t.placement,i=o?mo(o):null,s=o?Fr(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case un:c={x:a,y:e.y-n.height};break;case Mn:c={x:a,y:e.y+e.height};break;case Co:c={x:e.x+e.width,y:l};break;case jn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=i?rm(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Pr:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Ui:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function sm(){return{top:0,right:0,bottom:0,left:0}}function Pb(t){return Object.assign({},sm(),t)}function Fb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function mu(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?hb:l,u=n.rootBoundary,d=u===void 0?om:u,f=n.elementContext,p=f===void 0?vi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=Pb(typeof y!="number"?y:Fb(y,za)),_=p===vi?gb:vi,v=t.rects.popper,b=t.elements[h?_:p],w=Ib(Yo(b)?b:b.contextElement||So(t.elements.popper),c,d,a),k=Ir(t.elements.reference),T=im({reference:k,element:v,strategy:"absolute",placement:i}),A=pc(Object.assign({},v,T)),S=p===vi?A:k,E={top:w.top-S.top+C.top,bottom:S.bottom-w.bottom+C.bottom,left:w.left-S.left+C.left,right:S.right-w.right+C.right},D=t.modifiersData.offset;if(p===vi&&D){var x=D[i];Object.keys(E).forEach(function($){var B=[Co,Mn].indexOf($)>=0?1:-1,V=[un,Mn].indexOf($)>=0?"y":"x";E[$]+=x[V]*B})}return E}var Ud={placement:"bottom",modifiers:[],strategy:"absolute"};function Hd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Rb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?Ud:i;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ud,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(C){var _=typeof C=="function"?C(d.options):C;g(),d.options=Object.assign({},s,d.options,_),d.scrollParents={reference:Yo(l)?Ni(l):l.contextElement?Ni(l.contextElement):[],popper:Ni(c)};var v=Nb($b([].concat(o,d.options.modifiers)));return d.orderedModifiers=v.filter(function(b){return b.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,_=C.reference,v=C.popper;if(Hd(_,v)){d.rects={reference:fb(_,Ra(v),d.options.strategy==="fixed"),popper:tm(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(E){return d.modifiersData[E.name]=Object.assign({},E.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var w=d.orderedModifiers[b],k=w.fn,T=w.options,A=T===void 0?{}:T,S=w.name;typeof k=="function"&&(d=k({state:d,options:A,name:S,instance:m})||d)}}}},update:Db(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Hd(l,c))return m;m.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function h(){d.orderedModifiers.forEach(function(y){var C=y.name,_=y.options,v=_===void 0?{}:_,b=y.effect;if(typeof b=="function"){var w=b({state:d,name:C,instance:m,options:v}),k=function(){};f.push(w||k)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var Ns={passive:!0};function zb(t){var e=t.state,n=t.instance,o=t.options,i=o.scroll,s=i===void 0?!0:i,a=o.resize,l=a===void 0?!0:a,c=Ht(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ns)}),l&&c.addEventListener("resize",n.update,Ns),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ns)}),l&&c.removeEventListener("resize",n.update,Ns)}}var Ub={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zb,data:{}};function Hb(t){var e=t.state,n=t.name;e.modifiersData[n]=im({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var qb={name:"popperOffsets",enabled:!0,phase:"read",fn:Hb,data:{}},jb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wb(t,e){var n=t.x,o=t.y,i=e.devicePixelRatio||1;return{x:Vr(n*i)/i||0,y:Vr(o*i)/i||0}}function qd(t){var e,n=t.popper,o=t.popperRect,i=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=a.x,m=p===void 0?0:p,h=a.y,g=h===void 0?0:h,y=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var C=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),v=jn,b=un,w=window;if(u){var k=Ra(n),T="clientHeight",A="clientWidth";if(k===Ht(n)&&(k=So(n),Gn(k).position!=="static"&&l==="absolute"&&(T="scrollHeight",A="scrollWidth")),k=k,i===un||(i===jn||i===Co)&&s===Ui){b=Mn;var S=f&&k===w&&w.visualViewport?w.visualViewport.height:k[T];g-=S-o.height,g*=c?1:-1}if(i===jn||(i===un||i===Mn)&&s===Ui){v=Co;var E=f&&k===w&&w.visualViewport?w.visualViewport.width:k[A];m-=E-o.width,m*=c?1:-1}}var D=Object.assign({position:l},u&&jb),x=d===!0?Wb({x:m,y:g},Ht(n)):{x:m,y:g};if(m=x.x,g=x.y,c){var $;return Object.assign({},D,($={},$[b]=_?"0":"",$[v]=C?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",$))}return Object.assign({},D,(e={},e[b]=_?g+"px":"",e[v]=C?m+"px":"",e.transform="",e))}function Zb(t){var e=t.state,n=t.options,o=n.gpuAcceleration,i=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:mo(e.placement),variation:Fr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qd(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qd(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Kb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zb,data:{}};function Gb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Xt(s)||!Bn(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Yb(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var i=e.elements[o],s=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Xt(i)||!Bn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}var Jb={name:"applyStyles",enabled:!0,phase:"write",fn:Gb,effect:Yb,requires:["computeStyles"]},Xb=[Ub,qb,Kb,Jb],Qb=Rb({defaultModifiers:Xb});function ek(t){return t==="x"?"y":"x"}function qs(t,e,n){return qo(t,na(e,n))}function tk(t,e,n){var o=qs(t,e,n);return o>n?n:o}function nk(t){var e=t.state,n=t.options,o=t.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,h=n.tetherOffset,g=h===void 0?0:h,y=mu(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=mo(e.placement),_=Fr(e.placement),v=!_,b=rm(C),w=ek(b),k=e.modifiersData.popperOffsets,T=e.rects.reference,A=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,E=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(k){if(s){var $,B=b==="y"?un:jn,V=b==="y"?Mn:Co,I=b==="y"?"height":"width",W=k[b],P=W+y[B],H=W-y[V],Q=m?-A[I]/2:0,le=_===Pr?T[I]:A[I],oe=_===Pr?-A[I]:-T[I],Ne=e.elements.arrow,ce=m&&Ne?tm(Ne):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:sm(),z=ne[B],F=ne[V],se=qs(0,T[I],ce[I]),Ee=v?T[I]/2-Q-se-z-E.mainAxis:le-se-z-E.mainAxis,Ue=v?-T[I]/2+Q+se+F+E.mainAxis:oe+se+F+E.mainAxis,we=e.elements.arrow&&Ra(e.elements.arrow),Ce=we?b==="y"?we.clientTop||0:we.clientLeft||0:0,yt=($=D==null?void 0:D[b])!=null?$:0,R=W+Ee-yt-Ce,re=W+Ue-yt,he=qs(m?na(P,R):P,W,m?qo(H,re):H);k[b]=he,x[b]=he-W}if(l){var pe,Ke=b==="x"?un:jn,De=b==="x"?Mn:Co,$e=k[w],Fe=w==="y"?"height":"width",Ye=$e+y[Ke],Je=$e-y[De],Me=[un,jn].indexOf(C)!==-1,Ct=(pe=D==null?void 0:D[w])!=null?pe:0,st=Me?Ye:$e-T[Fe]-A[Fe]-Ct+E.altAxis,Ot=Me?$e+T[Fe]+A[Fe]-Ct-E.altAxis:Je,on=m&&Me?tk(st,$e,Ot):qs(m?st:Ye,$e,m?Ot:Je);k[w]=on,x[w]=on-$e}e.modifiersData[o]=x}}var ok={name:"preventOverflow",enabled:!0,phase:"main",fn:nk,requiresIfExists:["offset"]},rk={left:"right",right:"left",bottom:"top",top:"bottom"};function js(t){return t.replace(/left|right|bottom|top/g,function(e){return rk[e]})}var ik={start:"end",end:"start"};function jd(t){return t.replace(/start|end/g,function(e){return ik[e]})}function sk(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?vb:c,d=Fr(o),f=d?l?Rd:Rd.filter(function(h){return Fr(h)===d}):za,p=f.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=f);var m=p.reduce(function(h,g){return h[g]=mu(t,{placement:g,boundary:i,rootBoundary:s,padding:a})[mo(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function ak(t){if(mo(t)===pu)return[];var e=js(t);return[jd(t),e,jd(e)]}function lk(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,g=n.allowedAutoPlacements,y=e.options.placement,C=mo(y),_=C===y,v=c||(_||!h?[js(y)]:ak(y)),b=[y].concat(v).reduce(function(ce,ne){return ce.concat(mo(ne)===pu?sk(e,{placement:ne,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):ne)},[]),w=e.rects.reference,k=e.rects.popper,T=new Map,A=!0,S=b[0],E=0;E<b.length;E++){var D=b[E],x=mo(D),$=Fr(D)===Pr,B=[un,Mn].indexOf(x)>=0,V=B?"width":"height",I=mu(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),W=B?$?Co:jn:$?Mn:un;w[V]>k[V]&&(W=js(W));var P=js(W),H=[];if(s&&H.push(I[x]<=0),l&&H.push(I[W]<=0,I[P]<=0),H.every(function(ce){return ce})){S=D,A=!1;break}T.set(D,H)}if(A)for(var Q=h?3:1,le=function(ne){var z=b.find(function(F){var se=T.get(F);if(se)return se.slice(0,ne).every(function(Ee){return Ee})});if(z)return S=z,"break"},oe=Q;oe>0;oe--){var Ne=le(oe);if(Ne==="break")break}e.placement!==S&&(e.modifiersData[o]._skip=!0,e.placement=S,e.reset=!0)}}var ck={name:"flip",enabled:!0,phase:"main",fn:lk,requiresIfExists:["offset"],data:{_skip:!1}};function uk(t,e,n){const{disabled:o,appendTo:i,appendToBody:s,openDirection:a}=r.toRefs(t),l=r.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=r.ref(!1),f=r.ref(null),p=r.ref(null),m=r.computed(()=>i.value||s.value),h=r.computed(()=>a.value==="top"&&p.value==="bottom"||a.value==="bottom"&&p.value!=="top"?"bottom":"top"),g=()=>{d.value||o.value||(d.value=!0,e.emit("open",l),m.value&&r.nextTick(()=>{C()}))},y=()=>{d.value&&(d.value=!1,e.emit("close",l))},C=()=>{if(!f.value)return;let v=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?v:b)*-1]}}]})),f.value.update()},_=v=>{for(;v&&v!==document.body;){if(getComputedStyle(v).position==="fixed")return!0;v=v.parentElement}return!1};return r.onMounted(()=>{m.value&&(f.value=Qb(c.value,u.value,{strategy:_(c.value)?"fixed":void 0,placement:a.value,modifiers:[ok,ck,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:v})=>{v.styles.popper.width=`${v.rects.reference.width}px`},effect:({state:v})=>{v.elements.popper.style.width=`${v.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:v}){p.value=v.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:h,updatePopper:C}}function dk(t,e,n){const{searchable:o,disabled:i,clearOnBlur:s}=r.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,m=r.ref(!1),h=r.ref(!1),g=r.computed(()=>o.value||i.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},C=()=>{o.value&&!i.value&&a.value.focus()},_=(A=!0)=>{i.value||(m.value=!0,A&&l())},v=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:m,mouseClicked:h,blur:y,focus:C,activate:_,deactivate:v,handleFocusIn:A=>{A.target.closest("[data-tags]")&&A.target.nodeName!=="INPUT"||A.target.closest("[data-clear]")||_(h.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),y()},handleMousedown:A=>{h.value=!0,d.value&&(A.target.isEqualNode(f.value)||A.target.isEqualNode(p.value))?setTimeout(()=>{v()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&_(),setTimeout(()=>{h.value=!1},0)}}}function fk(t,e,n){const{mode:o,addTagOn:i,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=r.toRefs(t),h=r.getCurrentInstance().proxy,g=n.iv,y=n.update,C=n.deselect,_=n.search,v=n.setPointer,b=n.selectPointer,w=n.backwardPointer,k=n.forwardPointer,T=n.multiselect,A=n.wrapper,S=n.tags,E=n.isOpen,D=n.open,x=n.blur,$=n.fo,B=r.computed(()=>f.value||p.value||!1),V=r.computed(()=>i.value!==void 0?i.value:d.value!==void 0?d.value:["enter"]),I=()=>{o.value==="tags"&&!l.value&&B.value&&a.value&&!u.value&&v($.value[$.value.map(H=>H[c.value]).indexOf(_.value)])};return{handleKeydown:H=>{e.emit("keydown",H,h);let Q,le;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(H.key)!==-1&&o.value==="tags"&&(Q=[...T.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==S.value),le=Q.findIndex(oe=>oe===document.activeElement)),H.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(_.value)===-1||g.value.length===0)return;let oe=g.value.filter(Ne=>!Ne.disabled&&Ne.remove!==!1);oe.length&&C(oe[oe.length-1]);break;case"Enter":if(H.preventDefault(),H.keyCode===229)return;if(le!==-1&&le!==void 0){y([...g.value].filter((Ne,ce)=>ce!==le)),le===Q.length-1&&(Q.length-1?Q[Q.length-2].focus():a.value?S.value.querySelector("input").focus():A.value.focus());return}if(V.value.indexOf("enter")===-1&&B.value)return;I(),b();break;case" ":if(!B.value&&!a.value){H.preventDefault(),I(),b();return}if(!B.value)return!1;if(V.value.indexOf("space")===-1&&B.value)return;H.preventDefault(),I(),b();break;case"Tab":case";":case",":if(V.value.indexOf(H.key.toLowerCase())===-1||!B.value)return;I(),b(),H.preventDefault();break;case"Escape":x();break;case"ArrowUp":if(H.preventDefault(),!l.value)return;E.value||D(),w();break;case"ArrowDown":if(H.preventDefault(),!l.value)return;E.value||D(),k();break;case"ArrowLeft":if(a.value&&S.value&&S.value.querySelector("input").selectionStart||H.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;H.preventDefault(),le===-1?Q[Q.length-1].focus():le>0&&Q[le-1].focus();break;case"ArrowRight":if(le===-1||H.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;H.preventDefault(),Q.length>le+1?Q[le+1].focus():a.value?S.value.querySelector("input").focus():a.value||A.value.focus();break}},handleKeyup:H=>{e.emit("keyup",H,h)},preparePointer:I}}function pk(t,e,n){const{classes:o,disabled:i,showOptions:s,breakTags:a}=r.toRefs(t),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,m=n.resolving,h=n.fo,g=n.placement,y=r.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),C=r.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:r.computed(()=>{const v=y.value;return{container:[v.container].concat(i.value?v.containerDisabled:[]).concat(C.value&&g.value==="top"?v.containerOpenTop:[]).concat(C.value&&g.value!=="top"?v.containerOpen:[]).concat(f.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(i.value?v.tagDisabled:[]),tagWrapper:[v.tagWrapper,a.value?v.tagWrapperBreak:null],tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(l.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(g.value==="top"?v.dropdownTop:[]).concat(!l.value||!s.value||!C.value?v.dropdownHidden:[]),options:[v.options].concat(g.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:b=>{let w=[v.groupLabel];return c(b)?w.push(u(b)?v.groupLabelSelectedPointed:v.groupLabelPointed):u(b)&&p.value?w.push(d(b)?v.groupLabelSelectedDisabled:v.groupLabelSelected):d(b)&&w.push(v.groupLabelDisabled),p.value&&w.push(v.groupLabelPointable),w},groupOptions:v.groupOptions,option:(b,w)=>{let k=[v.option];return c(b)?k.push(u(b)?v.optionSelectedPointed:v.optionPointed):u(b)?k.push(d(b)?v.optionSelectedDisabled:v.optionSelected):(d(b)||w&&d(w))&&k.push(v.optionDisabled),k},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:C}}function mk(t,e,n){const{limit:o,infinite:i}=r.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=r.ref(null),f=r.ref(null),p=r.computed(()=>a.value<c.value.length),m=g=>{const{isIntersecting:y,target:C}=g[0];if(y){const _=C.offsetParent,v=_.scrollTop;a.value+=o.value==-1?10:o.value,r.nextTick(()=>{_.scrollTop=v})}},h=()=>{s.value&&a.value<c.value.length?d.value.observe(f.value):!s.value&&d.value&&d.value.disconnect()};return r.watch(s,()=>{i.value&&h()}),r.watch(l,()=>{i.value&&(a.value=o.value,h())},{flush:"post"}),r.watch(u,()=>{i.value&&h()},{immediate:!1,flush:"post"}),r.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function hk(t,e,n){const{placeholder:o,id:i,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(t),f=n.pointer,p=n.iv,m=n.hasSelected,h=n.multipleLabelText,g=r.ref(null),y=r.computed(()=>{let x=[];return i&&i.value&&x.push(i.value),x.push("assist"),x.join("-")}),C=r.computed(()=>{let x=[];return i&&i.value&&x.push(i.value),x.push("multiselect-options"),x.join("-")}),_=r.computed(()=>{let x=[];if(i&&i.value&&x.push(i.value),f.value)return x.push(f.value.group?"multiselect-group":"multiselect-option"),x.push(f.value.group?f.value.index:f.value[s.value]),x.join("-")}),v=r.computed(()=>o.value),b=r.computed(()=>l.value!=="single"),w=r.computed(()=>{let x="";return l.value==="single"&&m.value&&(x+=p.value[a.value]),l.value==="multiple"&&m.value&&(x+=h.value),l.value==="tags"&&m.value&&(x+=p.value.map($=>$[a.value]).join(", ")),x}),k=r.computed(()=>{let x={...u.value};return d.value&&(x["aria-labelledby"]=x["aria-labelledby"]?`${y.value} ${x["aria-labelledby"]}`:y.value,w.value&&x["aria-label"]&&(x["aria-label"]=`${w.value}, ${x["aria-label"]}`)),x}),T=x=>{let $=[];return i&&i.value&&$.push(i.value),$.push("multiselect-option"),$.push(x[s.value]),$.join("-")},A=x=>{let $=[];return i&&i.value&&$.push(i.value),$.push("multiselect-group"),$.push(x.index),$.join("-")},S=x=>{let $=[];return $.push(x),$.join(" ")},E=x=>{let $=[];return $.push(x),$.join(" ")},D=x=>`${x} ❎`;return r.onMounted(()=>{if(i&&i.value&&document&&document.querySelector){let x=document.querySelector(`[for="${i.value}"]`);g.value=x?x.innerText:null}}),{arias:k,ariaLabel:w,ariaAssist:y,ariaControls:C,ariaPlaceholder:v,ariaMultiselectable:b,ariaActiveDescendant:_,ariaOptionId:T,ariaOptionLabel:S,ariaGroupId:A,ariaGroupLabel:E,ariaTagLabel:D}}function gk(t,e,n){const{locale:o,fallbackLocale:i}=r.toRefs(t);return{localize:a=>!a||typeof a!="object"?a:a&&a[o.value]?a[o.value]:a&&o.value&&a[o.value.toUpperCase()]?a[o.value.toUpperCase()]:a&&a[i.value]?a[i.value]:a&&i.value&&a[i.value.toUpperCase()]?a[i.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function vk(t,e,n){const o=r.ref(null),i=r.ref(null),s=r.ref(null),a=r.ref(null),l=r.ref(null);return{multiselect:o,wrapper:i,tags:s,input:a,dropdown:l}}function _k(t,e,n,o={}){return n.forEach(i=>{i&&(o={...o,...i(t,e,o)})}),o}var co={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return _k(t,e,[vk,gk,nb,rb,uk,ob,tb,dk,ab,mk,lb,fk,pk,hk])},beforeMount(){var t,e;((e=(t=this.$root.constructor)==null?void 0:t.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const yk=["id","dir"],Ck=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],bk=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],kk=["onKeyup","aria-label"],wk=["onClick"],Ek=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Sk=["innerHTML"],xk=["id"],Ak=["id"],Tk=["id","aria-label","aria-selected"],Nk=["data-pointed","onMouseenter","onMousedown"],Dk=["innerHTML"],$k=["aria-label"],Bk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Mk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Lk=["innerHTML"],Ok=["innerHTML"],Vk=["value"],Ik=["name","value"],Pk=["name","value"],Fk=["id"];function Rk(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",{ref:"multiselect",class:r.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...a)=>t.handleFocusIn&&t.handleFocusIn(...a)),onFocusout:e[11]||(e[11]=(...a)=>t.handleFocusOut&&t.handleFocusOut(...a)),onKeyup:e[12]||(e[12]=(...a)=>t.handleKeyup&&t.handleKeyup(...a)),onKeydown:e[13]||(e[13]=(...a)=>t.handleKeydown&&t.handleKeydown(...a))},[r.createElementVNode("div",r.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...a)=>t.handleMousedown&&t.handleMousedown(...a)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[r.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[1]||(e[1]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[2]||(e[2]=r.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,bk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(t.classList.tags),"data-tags":""},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.iv,(a,l,c)=>r.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:r.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagWrapper)},r.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(t.classList.tagRemove),onClick:r.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,wk)):r.createCommentVNode("v-if",!0)],42,kk))])),256)),r.createElementVNode("div",{class:r.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[r.createCommentVNode(" Used for measuring search width "),r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagsSearchCopy)},r.toDisplayString(t.search),3),r.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[4]||(e[4]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[5]||(e[5]=r.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,Ek)):r.createCommentVNode("v-if",!0)],2)],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?r.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.singleLabel)},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.singleLabelText)},r.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?r.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,Sk)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?r.renderSlot(t.$slots,"placeholder",{key:4},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},r.toDisplayString(n.placeholder),3)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Spinner "),n.loading||t.resolving?r.renderSlot(t.$slots,"spinner",{key:5},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?r.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[r.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:r.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=r.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.clearIcon)},null,2)],34)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Caret "),n.caret&&n.showOptions?r.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0)],16,Ck),r.createCommentVNode(" Options "),(r.openBlock(),r.createBlock(r.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[r.createElementVNode("div",{id:`${n.id}-dropdown`,class:r.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[r.renderSlot(t.$slots,"beforelist",{options:t.fo}),r.createElementVNode("ul",{class:r.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(t.fg,(a,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.group),key:c,id:t.ariaGroupId(a),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),"aria-selected":t.isSelected(a),role:"option"},[a.__CREATE__?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:r.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[r.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[r.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,Dk)])],42,Nk)),r.createElementVNode("ul",{class:r.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.__VISIBLE__,(u,d,f)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.option(u,a)),"data-pointed":t.isPointed(u),"data-selected":t.isSelected(u)||void 0,key:f,onMouseenter:p=>t.setPointer(u),onMousedown:r.withModifiers(p=>t.handleOptionClick(u),["prevent"]),id:t.ariaOptionId(u),"aria-selected":t.isSelected(u),"aria-label":t.ariaOptionLabel(t.localize(u[n.label])),role:"option"},[r.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[r.createElementVNode("span",null,r.toDisplayString(t.localize(u[n.label])),1)])],42,Bk))),128))],10,$k)],10,Tk))),128)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.fo,(a,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.option(a)),"data-pointed":t.isPointed(a),"data-selected":t.isSelected(a)||void 0,key:c,onMouseenter:u=>t.setPointer(a),onMousedown:r.withModifiers(u=>t.handleOptionClick(a),["prevent"]),id:t.ariaOptionId(a),"aria-selected":t.isSelected(a),"aria-label":t.ariaOptionLabel(t.localize(a[n.label])),role:"option"},[r.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[r.createElementVNode("span",null,r.toDisplayString(t.localize(a[n.label])),1)])],42,Mk))),128))],10,Ak),t.noOptions?r.renderSlot(t.$slots,"nooptions",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,Lk)]):r.createCommentVNode("v-if",!0),t.noResults?r.renderSlot(t.$slots,"noresults",{key:1},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,Ok)]):r.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[r.renderSlot(t.$slots,"infinite",{},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):r.createCommentVNode("v-if",!0),r.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,xk)],8,["to","disabled"])),r.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(r.openBlock(),r.createElementBlock("input",{key:0,class:r.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,Vk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Native input support "),n.nativeSupport?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n.mode=="single"?(r.openBlock(),r.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,Ik)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.plainValue,(a,l)=>(r.openBlock(),r.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,Pk))),128))],64)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},r.toDisplayString(t.ariaLabel),11,Fk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(t.classList.spacer)},null,2)],42,yk)}co.render=Rk;co.__file="src/Multiselect.vue";const ft=r.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{},closeOnSelect:{type:Boolean},clearOnSelect:{type:Boolean}},setup(t){const e=t,n=r.toRef(()=>e.appendTo),o=r.ref();return e.detached&&eb({multiselect:o,appendTo:n.value}),(i,s)=>(r.openBlock(),r.createBlock(r.unref(co),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect","close-on-select":e.closeOnSelect,"clear-on-select":e.clearOnSelect},r.createSlots({_:2},[r.renderList(i.$slots,(a,l)=>({name:l,fn:r.withCtx(c=>[r.renderSlot(i.$slots,l,r.normalizeProps(r.guardReactiveProps(c??{})))])}))]),1032,["close-on-select","clear-on-select"]))}});var Wd;function Nt(){const t=zk(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function zk(){const t=r.getCurrentInstance();if(!t)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return t}r.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let i,s=0;for(;(i=Wd.exec(n))!==null;){o.push(n.substring(s,i.index));const a=e[i[1]];a?o.push(...a()):o.push(i[0]),s=Wd.lastIndex}return o.push(n.substring(s)),o}}});async function Wn(t,e){if(e&&t&&t.length-e.length===1){const n=new Set(e.map(l=>l.id)),o=t.filter(l=>!n.has(l.id));if(o.length!==1)return;const i=o[0].id;await r.nextTick();const s=document.getElementById(i);s==null||s.focus(),await r.nextTick();const a=document.getElementById(i);a==null||a.select()}}const Uk={class:"ao-tasks__list"},Hk=["id","value","readonly","onChange","onKeydown"],qk={class:"ao-tasks__list-footer"},jk=r.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=r.ref(null);let a=null,l=null;const c=v=>{v.style.height="auto",v.style.height=`${v.scrollHeight}px`},u=v=>{c(v.target)},d=()=>{var v;(v=s.value)==null||v.querySelectorAll(".ao-subtask__field").forEach(c)},f=()=>{l!==null&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{d(),l=null})};r.watch(()=>o.tasks,(v,b)=>{Wn(v,b),f()},{deep:!0}),r.onMounted(()=>{f(),s.value&&(a=new ResizeObserver(()=>{f()}),a.observe(s.value))}),r.onBeforeUnmount(()=>{a==null||a.disconnect(),l!==null&&cancelAnimationFrame(l)});const p=r.computed(()=>{var v;return((v=o.users)==null?void 0:v.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))??[]}),m=()=>{const v=o.tasks.length;i("add",{name:n("task.defaultName",{idx:v+1}),activityId:o.activityId})},h=(v,b)=>{const w=v.target;i("update",{id:b,name:w.value})},g=(v,b)=>{o.isEditable&&i("update",{id:v,isDone:b})},y=v=>{i("delete",{id:v})},C=(v,b)=>{i("update",{id:b,assigneeId:v[0]??null})},_=v=>{v.target.blur()};return(v,b)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tasksRoot",ref:s,class:"ao-tasks"},[r.createElementVNode("ul",Uk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tasks,w=>{var k,T;return r.openBlock(),r.createElementBlock("li",{key:w.id,class:"ao-subtask"},[((k=t.isCheckable)==null?void 0:k.call(t,w))??!1?(r.openBlock(),r.createBlock(de,{key:0,class:"ao-subtask__check","icon-name":w.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>g(w.id,!w.isDone)},null,8,["icon-name","disabled","onClick"])):r.createCommentVNode("",!0),r.createElementVNode("textarea",{id:w.id,value:w.name,readonly:!t.isEditable,class:r.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":w.isDone}]),rows:"1",onInput:u,onChange:A=>h(A,w.id),onKeydown:r.withKeys(r.withModifiers(_,["prevent"]),["enter"])},null,42,Hk),!t.isTemplate&&t.users?(r.openBlock(),r.createBlock(ft,{key:1,value:(T=w.assignee)!=null&&T.id?[w.assignee.id]:[],options:p.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:v.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,detached:"","append-to":"body",onChange:A=>C(A,w.id)},{tag:r.withCtx(({option:A,handleTagRemove:S})=>[r.createVNode(Xn,{"user-name":A.label,"avatar-url":A.avatar,"is-closable":!0,onClose:E=>S(A,E)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):r.createCommentVNode("",!0),t.isEditable?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>y(w.id)},null,8,["onClick"])):r.createCommentVNode("",!0)])}),128))]),r.createElementVNode("div",qk,[t.isEditable?(r.openBlock(),r.createBlock(de,{key:0,label:v.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:m},null,8,["label"])):r.createCommentVNode("",!0)])],512))}});const Wk={class:"ao-files__placeholder"},Zk={key:0,class:"ao-files__list"},Kk=["onClick"],Gk={class:"ao-file__title"},Yk={class:"ao-file__actions"},Jk={key:0},Xk={class:"ao-files__input"},Qk={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},e9={class:"ao-button__label"},t9={class:"ao-files__dropzone"},n9={class:"ao-files__dropzone-label"},o9=r.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove","preview"],setup(t,{emit:e}){const n=e,o=t,i=r.ref(!1),s=["dragenter","dragover","dragleave","drop"];function a(m){n("remove",m)}function l(m){if(!m.url)return;const h=document.createElement("a");h.href=m.url,h.download=m.name,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),h.remove()}function c(m){const h=m.target,g=Array.from(h.files??[]);g.length&&n("add",g),h.value=""}function u(m){m.preventDefault()}r.onMounted(()=>{s.forEach(m=>{document.body.addEventListener(m,u)})}),r.onUnmounted(()=>{s.forEach(m=>{document.body.removeEventListener(m,u)})});function d(){o.isEditable&&(i.value=!0)}function f(){i.value=!1}r.watch(i,m=>{n("toggleIsDropActive",m)});function p(m){var g;if(f(),!o.isEditable)return;const h=Array.from(((g=m.dataTransfer)==null?void 0:g.files)??[]);h.length&&n("add",h)}return(m,h)=>{var g;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:r.withModifiers(p,["prevent"]),onDragenter:r.withModifiers(d,["prevent"]),onDragover:r.withModifiers(d,["prevent"]),onDragleave:r.withModifiers(f,["prevent"])},[r.renderSlot(m.$slots,"default",{},()=>[r.createElementVNode("span",Wk,r.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(r.openBlock(),r.createElementBlock("ul",Zk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.attachments,(y,C)=>(r.openBlock(),r.createElementBlock("li",{key:y.id,class:"ao-file"},[r.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:_=>n("preview",C)},[r.createVNode(ke,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Gk,r.toDisplayString(y.name),1)],8,Kk),r.createElementVNode("div",Yk,[r.createVNode(de,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:r.withModifiers(_=>l(y),["stop"])},null,8,["onClick"]),t.isEditable?(r.openBlock(),r.createBlock(de,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:r.withModifiers(_=>a(y),["stop"])},null,8,["onClick"])):r.createCommentVNode("",!0)])]))),128)),t.isEditable?(r.openBlock(),r.createElementBlock("li",Jk,[r.createElementVNode("label",Xk,[r.createElementVNode("div",Qk,[r.createVNode(ke,{name:"Add",size:"sm"}),r.createElementVNode("span",e9,r.toDisplayString(m.$t("activity.attachment.button.resting")),1)]),r.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:c},null,32)])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",t9,[r.createElementVNode("span",n9,r.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[r.vShow,i.value]])],34)}}});var Be={};const r9="Á",i9="á",s9="Ă",a9="ă",l9="∾",c9="∿",u9="∾̳",d9="Â",f9="â",p9="´",m9="А",h9="а",g9="Æ",v9="æ",_9="⁡",y9="𝔄",C9="𝔞",b9="À",k9="à",w9="ℵ",E9="ℵ",S9="Α",x9="α",A9="Ā",T9="ā",N9="⨿",D9="&",$9="&",B9="⩕",M9="⩓",L9="∧",O9="⩜",V9="⩘",I9="⩚",P9="∠",F9="⦤",R9="∠",z9="⦨",U9="⦩",H9="⦪",q9="⦫",j9="⦬",W9="⦭",Z9="⦮",K9="⦯",G9="∡",Y9="∟",J9="⊾",X9="⦝",Q9="∢",e4="Å",t4="⍼",n4="Ą",o4="ą",r4="𝔸",i4="𝕒",s4="⩯",a4="≈",l4="⩰",c4="≊",u4="≋",d4="'",f4="⁡",p4="≈",m4="≊",h4="Å",g4="å",v4="𝒜",_4="𝒶",y4="≔",C4="*",b4="≈",k4="≍",w4="Ã",E4="ã",S4="Ä",x4="ä",A4="∳",T4="⨑",N4="≌",D4="϶",$4="‵",B4="∽",M4="⋍",L4="∖",O4="⫧",V4="⊽",I4="⌅",P4="⌆",F4="⌅",R4="⎵",z4="⎶",U4="≌",H4="Б",q4="б",j4="„",W4="∵",Z4="∵",K4="∵",G4="⦰",Y4="϶",J4="ℬ",X4="ℬ",Q4="Β",e8="β",t8="ℶ",n8="≬",o8="𝔅",r8="𝔟",i8="⋂",s8="◯",a8="⋃",l8="⨀",c8="⨁",u8="⨂",d8="⨆",f8="★",p8="▽",m8="△",h8="⨄",g8="⋁",v8="⋀",_8="⤍",y8="⧫",C8="▪",b8="▴",k8="▾",w8="◂",E8="▸",S8="␣",x8="▒",A8="░",T8="▓",N8="█",D8="=⃥",$8="≡⃥",B8="⫭",M8="⌐",L8="𝔹",O8="𝕓",V8="⊥",I8="⊥",P8="⋈",F8="⧉",R8="┐",z8="╕",U8="╖",H8="╗",q8="┌",j8="╒",W8="╓",Z8="╔",K8="─",G8="═",Y8="┬",J8="╤",X8="╥",Q8="╦",e6="┴",t6="╧",n6="╨",o6="╩",r6="⊟",i6="⊞",s6="⊠",a6="┘",l6="╛",c6="╜",u6="╝",d6="└",f6="╘",p6="╙",m6="╚",h6="│",g6="║",v6="┼",_6="╪",y6="╫",C6="╬",b6="┤",k6="╡",w6="╢",E6="╣",S6="├",x6="╞",A6="╟",T6="╠",N6="‵",D6="˘",$6="˘",B6="¦",M6="𝒷",L6="ℬ",O6="⁏",V6="∽",I6="⋍",P6="⧅",F6="\\",R6="⟈",z6="•",U6="•",H6="≎",q6="⪮",j6="≏",W6="≎",Z6="≏",K6="Ć",G6="ć",Y6="⩄",J6="⩉",X6="⩋",Q6="∩",ew="⋒",tw="⩇",nw="⩀",ow="ⅅ",rw="∩︀",iw="⁁",sw="ˇ",aw="ℭ",lw="⩍",cw="Č",uw="č",dw="Ç",fw="ç",pw="Ĉ",mw="ĉ",hw="∰",gw="⩌",vw="⩐",_w="Ċ",yw="ċ",Cw="¸",bw="¸",kw="⦲",ww="¢",Ew="·",Sw="·",xw="𝔠",Aw="ℭ",Tw="Ч",Nw="ч",Dw="✓",$w="✓",Bw="Χ",Mw="χ",Lw="ˆ",Ow="≗",Vw="↺",Iw="↻",Pw="⊛",Fw="⊚",Rw="⊝",zw="⊙",Uw="®",Hw="Ⓢ",qw="⊖",jw="⊕",Ww="⊗",Zw="○",Kw="⧃",Gw="≗",Yw="⨐",Jw="⫯",Xw="⧂",Qw="∲",eE="”",tE="’",nE="♣",oE="♣",rE=":",iE="∷",sE="⩴",aE="≔",lE="≔",cE=",",uE="@",dE="∁",fE="∘",pE="∁",mE="ℂ",hE="≅",gE="⩭",vE="≡",_E="∮",yE="∯",CE="∮",bE="𝕔",kE="ℂ",wE="∐",EE="∐",SE="©",xE="©",AE="℗",TE="∳",NE="↵",DE="✗",$E="⨯",BE="𝒞",ME="𝒸",LE="⫏",OE="⫑",VE="⫐",IE="⫒",PE="⋯",FE="⤸",RE="⤵",zE="⋞",UE="⋟",HE="↶",qE="⤽",jE="⩈",WE="⩆",ZE="≍",KE="∪",GE="⋓",YE="⩊",JE="⊍",XE="⩅",QE="∪︀",eS="↷",tS="⤼",nS="⋞",oS="⋟",rS="⋎",iS="⋏",sS="¤",aS="↶",lS="↷",cS="⋎",uS="⋏",dS="∲",fS="∱",pS="⌭",mS="†",hS="‡",gS="ℸ",vS="↓",_S="↡",yS="⇓",CS="‐",bS="⫤",kS="⊣",wS="⤏",ES="˝",SS="Ď",xS="ď",AS="Д",TS="д",NS="‡",DS="⇊",$S="ⅅ",BS="ⅆ",MS="⤑",LS="⩷",OS="°",VS="∇",IS="Δ",PS="δ",FS="⦱",RS="⥿",zS="𝔇",US="𝔡",HS="⥥",qS="⇃",jS="⇂",WS="´",ZS="˙",KS="˝",GS="`",YS="˜",JS="⋄",XS="⋄",QS="⋄",ex="♦",tx="♦",nx="¨",ox="ⅆ",rx="ϝ",ix="⋲",sx="÷",ax="÷",lx="⋇",cx="⋇",ux="Ђ",dx="ђ",fx="⌞",px="⌍",mx="$",hx="𝔻",gx="𝕕",vx="¨",_x="˙",yx="⃜",Cx="≐",bx="≑",kx="≐",wx="∸",Ex="∔",Sx="⊡",xx="⌆",Ax="∯",Tx="¨",Nx="⇓",Dx="⇐",$x="⇔",Bx="⫤",Mx="⟸",Lx="⟺",Ox="⟹",Vx="⇒",Ix="⊨",Px="⇑",Fx="⇕",Rx="∥",zx="⤓",Ux="↓",Hx="↓",qx="⇓",jx="⇵",Wx="̑",Zx="⇊",Kx="⇃",Gx="⇂",Yx="⥐",Jx="⥞",Xx="⥖",Qx="↽",eA="⥟",tA="⥗",nA="⇁",oA="↧",rA="⊤",iA="⤐",sA="⌟",aA="⌌",lA="𝒟",cA="𝒹",uA="Ѕ",dA="ѕ",fA="⧶",pA="Đ",mA="đ",hA="⋱",gA="▿",vA="▾",_A="⇵",yA="⥯",CA="⦦",bA="Џ",kA="џ",wA="⟿",EA="É",SA="é",xA="⩮",AA="Ě",TA="ě",NA="Ê",DA="ê",$A="≖",BA="≕",MA="Э",LA="э",OA="⩷",VA="Ė",IA="ė",PA="≑",FA="ⅇ",RA="≒",zA="𝔈",UA="𝔢",HA="⪚",qA="È",jA="è",WA="⪖",ZA="⪘",KA="⪙",GA="∈",YA="⏧",JA="ℓ",XA="⪕",QA="⪗",eT="Ē",tT="ē",nT="∅",oT="∅",rT="◻",iT="∅",sT="▫",aT=" ",lT=" ",cT=" ",uT="Ŋ",dT="ŋ",fT=" ",pT="Ę",mT="ę",hT="𝔼",gT="𝕖",vT="⋕",_T="⧣",yT="⩱",CT="ε",bT="Ε",kT="ε",wT="ϵ",ET="≖",ST="≕",xT="≂",AT="⪖",TT="⪕",NT="⩵",DT="=",$T="≂",BT="≟",MT="⇌",LT="≡",OT="⩸",VT="⧥",IT="⥱",PT="≓",FT="ℯ",RT="ℰ",zT="≐",UT="⩳",HT="≂",qT="Η",jT="η",WT="Ð",ZT="ð",KT="Ë",GT="ë",YT="€",JT="!",XT="∃",QT="∃",eN="ℰ",tN="ⅇ",nN="ⅇ",oN="≒",rN="Ф",iN="ф",sN="♀",aN="ffi",lN="ff",cN="ffl",uN="𝔉",dN="𝔣",fN="fi",pN="◼",mN="▪",hN="fj",gN="♭",vN="fl",_N="▱",yN="ƒ",CN="𝔽",bN="𝕗",kN="∀",wN="∀",EN="⋔",SN="⫙",xN="ℱ",AN="⨍",TN="½",NN="⅓",DN="¼",$N="⅕",BN="⅙",MN="⅛",LN="⅔",ON="⅖",VN="¾",IN="⅗",PN="⅜",FN="⅘",RN="⅚",zN="⅝",UN="⅞",HN="⁄",qN="⌢",jN="𝒻",WN="ℱ",ZN="ǵ",KN="Γ",GN="γ",YN="Ϝ",JN="ϝ",XN="⪆",QN="Ğ",eD="ğ",tD="Ģ",nD="Ĝ",oD="ĝ",rD="Г",iD="г",sD="Ġ",aD="ġ",lD="≥",cD="≧",uD="⪌",dD="⋛",fD="≥",pD="≧",mD="⩾",hD="⪩",gD="⩾",vD="⪀",_D="⪂",yD="⪄",CD="⋛︀",bD="⪔",kD="𝔊",wD="𝔤",ED="≫",SD="⋙",xD="⋙",AD="ℷ",TD="Ѓ",ND="ѓ",DD="⪥",$D="≷",BD="⪒",MD="⪤",LD="⪊",OD="⪊",VD="⪈",ID="≩",PD="⪈",FD="≩",RD="⋧",zD="𝔾",UD="𝕘",HD="`",qD="≥",jD="⋛",WD="≧",ZD="⪢",KD="≷",GD="⩾",YD="≳",JD="𝒢",XD="ℊ",QD="≳",e$="⪎",t$="⪐",n$="⪧",o$="⩺",r$=">",i$=">",s$="≫",a$="⋗",l$="⦕",c$="⩼",u$="⪆",d$="⥸",f$="⋗",p$="⋛",m$="⪌",h$="≷",g$="≳",v$="≩︀",_$="≩︀",y$="ˇ",C$=" ",b$="½",k$="ℋ",w$="Ъ",E$="ъ",S$="⥈",x$="↔",A$="⇔",T$="↭",N$="^",D$="ℏ",$$="Ĥ",B$="ĥ",M$="♥",L$="♥",O$="…",V$="⊹",I$="𝔥",P$="ℌ",F$="ℋ",R$="⤥",z$="⤦",U$="⇿",H$="∻",q$="↩",j$="↪",W$="𝕙",Z$="ℍ",K$="―",G$="─",Y$="𝒽",J$="ℋ",X$="ℏ",Q$="Ħ",eB="ħ",tB="≎",nB="≏",oB="⁃",rB="‐",iB="Í",sB="í",aB="⁣",lB="Î",cB="î",uB="И",dB="и",fB="İ",pB="Е",mB="е",hB="¡",gB="⇔",vB="𝔦",_B="ℑ",yB="Ì",CB="ì",bB="ⅈ",kB="⨌",wB="∭",EB="⧜",SB="℩",xB="IJ",AB="ij",TB="Ī",NB="ī",DB="ℑ",$B="ⅈ",BB="ℐ",MB="ℑ",LB="ı",OB="ℑ",VB="⊷",IB="Ƶ",PB="⇒",FB="℅",RB="∞",zB="⧝",UB="ı",HB="⊺",qB="∫",jB="∬",WB="ℤ",ZB="∫",KB="⊺",GB="⋂",YB="⨗",JB="⨼",XB="⁣",QB="⁢",eM="Ё",tM="ё",nM="Į",oM="į",rM="𝕀",iM="𝕚",sM="Ι",aM="ι",lM="⨼",cM="¿",uM="𝒾",dM="ℐ",fM="∈",pM="⋵",mM="⋹",hM="⋴",gM="⋳",vM="∈",_M="⁢",yM="Ĩ",CM="ĩ",bM="І",kM="і",wM="Ï",EM="ï",SM="Ĵ",xM="ĵ",AM="Й",TM="й",NM="𝔍",DM="𝔧",$M="ȷ",BM="𝕁",MM="𝕛",LM="𝒥",OM="𝒿",VM="Ј",IM="ј",PM="Є",FM="є",RM="Κ",zM="κ",UM="ϰ",HM="Ķ",qM="ķ",jM="К",WM="к",ZM="𝔎",KM="𝔨",GM="ĸ",YM="Х",JM="х",XM="Ќ",QM="ќ",eL="𝕂",tL="𝕜",nL="𝒦",oL="𝓀",rL="⇚",iL="Ĺ",sL="ĺ",aL="⦴",lL="ℒ",cL="Λ",uL="λ",dL="⟨",fL="⟪",pL="⦑",mL="⟨",hL="⪅",gL="ℒ",vL="«",_L="⇤",yL="⤟",CL="←",bL="↞",kL="⇐",wL="⤝",EL="↩",SL="↫",xL="⤹",AL="⥳",TL="↢",NL="⤙",DL="⤛",$L="⪫",BL="⪭",ML="⪭︀",LL="⤌",OL="⤎",VL="❲",IL="{",PL="[",FL="⦋",RL="⦏",zL="⦍",UL="Ľ",HL="ľ",qL="Ļ",jL="ļ",WL="⌈",ZL="{",KL="Л",GL="л",YL="⤶",JL="“",XL="„",QL="⥧",eO="⥋",tO="↲",nO="≤",oO="≦",rO="⟨",iO="⇤",sO="←",aO="←",lO="⇐",cO="⇆",uO="↢",dO="⌈",fO="⟦",pO="⥡",mO="⥙",hO="⇃",gO="⌊",vO="↽",_O="↼",yO="⇇",CO="↔",bO="↔",kO="⇔",wO="⇆",EO="⇋",SO="↭",xO="⥎",AO="↤",TO="⊣",NO="⥚",DO="⋋",$O="⧏",BO="⊲",MO="⊴",LO="⥑",OO="⥠",VO="⥘",IO="↿",PO="⥒",FO="↼",RO="⪋",zO="⋚",UO="≤",HO="≦",qO="⩽",jO="⪨",WO="⩽",ZO="⩿",KO="⪁",GO="⪃",YO="⋚︀",JO="⪓",XO="⪅",QO="⋖",eV="⋚",tV="⪋",nV="⋚",oV="≦",rV="≶",iV="≶",sV="⪡",aV="≲",lV="⩽",cV="≲",uV="⥼",dV="⌊",fV="𝔏",pV="𝔩",mV="≶",hV="⪑",gV="⥢",vV="↽",_V="↼",yV="⥪",CV="▄",bV="Љ",kV="љ",wV="⇇",EV="≪",SV="⋘",xV="⌞",AV="⇚",TV="⥫",NV="◺",DV="Ŀ",$V="ŀ",BV="⎰",MV="⎰",LV="⪉",OV="⪉",VV="⪇",IV="≨",PV="⪇",FV="≨",RV="⋦",zV="⟬",UV="⇽",HV="⟦",qV="⟵",jV="⟵",WV="⟸",ZV="⟷",KV="⟷",GV="⟺",YV="⟼",JV="⟶",XV="⟶",QV="⟹",eI="↫",tI="↬",nI="⦅",oI="𝕃",rI="𝕝",iI="⨭",sI="⨴",aI="∗",lI="_",cI="↙",uI="↘",dI="◊",fI="◊",pI="⧫",mI="(",hI="⦓",gI="⇆",vI="⌟",_I="⇋",yI="⥭",CI="‎",bI="⊿",kI="‹",wI="𝓁",EI="ℒ",SI="↰",xI="↰",AI="≲",TI="⪍",NI="⪏",DI="[",$I="‘",BI="‚",MI="Ł",LI="ł",OI="⪦",VI="⩹",II="<",PI="<",FI="≪",RI="⋖",zI="⋋",UI="⋉",HI="⥶",qI="⩻",jI="◃",WI="⊴",ZI="◂",KI="⦖",GI="⥊",YI="⥦",JI="≨︀",XI="≨︀",QI="¯",eP="♂",tP="✠",nP="✠",oP="↦",rP="↦",iP="↧",sP="↤",aP="↥",lP="▮",cP="⨩",uP="М",dP="м",fP="—",pP="∺",mP="∡",hP=" ",gP="ℳ",vP="𝔐",_P="𝔪",yP="℧",CP="µ",bP="*",kP="⫰",wP="∣",EP="·",SP="⊟",xP="−",AP="∸",TP="⨪",NP="∓",DP="⫛",$P="…",BP="∓",MP="⊧",LP="𝕄",OP="𝕞",VP="∓",IP="𝓂",PP="ℳ",FP="∾",RP="Μ",zP="μ",UP="⊸",HP="⊸",qP="∇",jP="Ń",WP="ń",ZP="∠⃒",KP="≉",GP="⩰̸",YP="≋̸",JP="ʼn",XP="≉",QP="♮",eF="ℕ",tF="♮",nF=" ",oF="≎̸",rF="≏̸",iF="⩃",sF="Ň",aF="ň",lF="Ņ",cF="ņ",uF="≇",dF="⩭̸",fF="⩂",pF="Н",mF="н",hF="–",gF="⤤",vF="↗",_F="⇗",yF="↗",CF="≠",bF="≐̸",kF="​",wF="​",EF="​",SF="​",xF="≢",AF="⤨",TF="≂̸",NF="≫",DF="≪",$F=`
2
- `,BF="∄",MF="∄",LF="𝔑",OF="𝔫",VF="≧̸",IF="≱",PF="≱",FF="≧̸",RF="⩾̸",zF="⩾̸",UF="⋙̸",HF="≵",qF="≫⃒",jF="≯",WF="≯",ZF="≫̸",KF="↮",GF="⇎",YF="⫲",JF="∋",XF="⋼",QF="⋺",eR="∋",tR="Њ",nR="њ",oR="↚",rR="⇍",iR="‥",sR="≦̸",aR="≰",lR="↚",cR="⇍",uR="↮",dR="⇎",fR="≰",pR="≦̸",mR="⩽̸",hR="⩽̸",gR="≮",vR="⋘̸",_R="≴",yR="≪⃒",CR="≮",bR="⋪",kR="⋬",wR="≪̸",ER="∤",SR="⁠",xR=" ",AR="𝕟",TR="ℕ",NR="⫬",DR="¬",$R="≢",BR="≭",MR="∦",LR="∉",OR="≠",VR="≂̸",IR="∄",PR="≯",FR="≱",RR="≧̸",zR="≫̸",UR="≹",HR="⩾̸",qR="≵",jR="≎̸",WR="≏̸",ZR="∉",KR="⋵̸",GR="⋹̸",YR="∉",JR="⋷",XR="⋶",QR="⧏̸",ez="⋪",tz="⋬",nz="≮",oz="≰",rz="≸",iz="≪̸",sz="⩽̸",az="≴",lz="⪢̸",cz="⪡̸",uz="∌",dz="∌",fz="⋾",pz="⋽",mz="⊀",hz="⪯̸",gz="⋠",vz="∌",_z="⧐̸",yz="⋫",Cz="⋭",bz="⊏̸",kz="⋢",wz="⊐̸",Ez="⋣",Sz="⊂⃒",xz="⊈",Az="⊁",Tz="⪰̸",Nz="⋡",Dz="≿̸",$z="⊃⃒",Bz="⊉",Mz="≁",Lz="≄",Oz="≇",Vz="≉",Iz="∤",Pz="∦",Fz="∦",Rz="⫽⃥",zz="∂̸",Uz="⨔",Hz="⊀",qz="⋠",jz="⊀",Wz="⪯̸",Zz="⪯̸",Kz="⤳̸",Gz="↛",Yz="⇏",Jz="↝̸",Xz="↛",Qz="⇏",eU="⋫",tU="⋭",nU="⊁",oU="⋡",rU="⪰̸",iU="𝒩",sU="𝓃",aU="∤",lU="∦",cU="≁",uU="≄",dU="≄",fU="∤",pU="∦",mU="⋢",hU="⋣",gU="⊄",vU="⫅̸",_U="⊈",yU="⊂⃒",CU="⊈",bU="⫅̸",kU="⊁",wU="⪰̸",EU="⊅",SU="⫆̸",xU="⊉",AU="⊃⃒",TU="⊉",NU="⫆̸",DU="≹",$U="Ñ",BU="ñ",MU="≸",LU="⋪",OU="⋬",VU="⋫",IU="⋭",PU="Ν",FU="ν",RU="#",zU="№",UU=" ",HU="≍⃒",qU="⊬",jU="⊭",WU="⊮",ZU="⊯",KU="≥⃒",GU=">⃒",YU="⤄",JU="⧞",XU="⤂",QU="≤⃒",eH="<⃒",tH="⊴⃒",nH="⤃",oH="⊵⃒",rH="∼⃒",iH="⤣",sH="↖",aH="⇖",lH="↖",cH="⤧",uH="Ó",dH="ó",fH="⊛",pH="Ô",mH="ô",hH="⊚",gH="О",vH="о",_H="⊝",yH="Ő",CH="ő",bH="⨸",kH="⊙",wH="⦼",EH="Œ",SH="œ",xH="⦿",AH="𝔒",TH="𝔬",NH="˛",DH="Ò",$H="ò",BH="⧁",MH="⦵",LH="Ω",OH="∮",VH="↺",IH="⦾",PH="⦻",FH="‾",RH="⧀",zH="Ō",UH="ō",HH="Ω",qH="ω",jH="Ο",WH="ο",ZH="⦶",KH="⊖",GH="𝕆",YH="𝕠",JH="⦷",XH="“",QH="‘",eq="⦹",tq="⊕",nq="↻",oq="⩔",rq="∨",iq="⩝",sq="ℴ",aq="ℴ",lq="ª",cq="º",uq="⊶",dq="⩖",fq="⩗",pq="⩛",mq="Ⓢ",hq="𝒪",gq="ℴ",vq="Ø",_q="ø",yq="⊘",Cq="Õ",bq="õ",kq="⨶",wq="⨷",Eq="⊗",Sq="Ö",xq="ö",Aq="⌽",Tq="‾",Nq="⏞",Dq="⎴",$q="⏜",Bq="¶",Mq="∥",Lq="∥",Oq="⫳",Vq="⫽",Iq="∂",Pq="∂",Fq="П",Rq="п",zq="%",Uq=".",Hq="‰",qq="⊥",jq="‱",Wq="𝔓",Zq="𝔭",Kq="Φ",Gq="φ",Yq="ϕ",Jq="ℳ",Xq="☎",Qq="Π",ej="π",tj="⋔",nj="ϖ",oj="ℏ",rj="ℎ",ij="ℏ",sj="⨣",aj="⊞",lj="⨢",cj="+",uj="∔",dj="⨥",fj="⩲",pj="±",mj="±",hj="⨦",gj="⨧",vj="±",_j="ℌ",yj="⨕",Cj="𝕡",bj="ℙ",kj="£",wj="⪷",Ej="⪻",Sj="≺",xj="≼",Aj="⪷",Tj="≺",Nj="≼",Dj="≺",$j="⪯",Bj="≼",Mj="≾",Lj="⪯",Oj="⪹",Vj="⪵",Ij="⋨",Pj="⪯",Fj="⪳",Rj="≾",zj="′",Uj="″",Hj="ℙ",qj="⪹",jj="⪵",Wj="⋨",Zj="∏",Kj="∏",Gj="⌮",Yj="⌒",Jj="⌓",Xj="∝",Qj="∝",eW="∷",tW="∝",nW="≾",oW="⊰",rW="𝒫",iW="𝓅",sW="Ψ",aW="ψ",lW=" ",cW="𝔔",uW="𝔮",dW="⨌",fW="𝕢",pW="ℚ",mW="⁗",hW="𝒬",gW="𝓆",vW="ℍ",_W="⨖",yW="?",CW="≟",bW='"',kW='"',wW="⇛",EW="∽̱",SW="Ŕ",xW="ŕ",AW="√",TW="⦳",NW="⟩",DW="⟫",$W="⦒",BW="⦥",MW="⟩",LW="»",OW="⥵",VW="⇥",IW="⤠",PW="⤳",FW="→",RW="↠",zW="⇒",UW="⤞",HW="↪",qW="↬",jW="⥅",WW="⥴",ZW="⤖",KW="↣",GW="↝",YW="⤚",JW="⤜",XW="∶",QW="ℚ",eZ="⤍",tZ="⤏",nZ="⤐",oZ="❳",rZ="}",iZ="]",sZ="⦌",aZ="⦎",lZ="⦐",cZ="Ř",uZ="ř",dZ="Ŗ",fZ="ŗ",pZ="⌉",mZ="}",hZ="Р",gZ="р",vZ="⤷",_Z="⥩",yZ="”",CZ="”",bZ="↳",kZ="ℜ",wZ="ℛ",EZ="ℜ",SZ="ℝ",xZ="ℜ",AZ="▭",TZ="®",NZ="®",DZ="∋",$Z="⇋",BZ="⥯",MZ="⥽",LZ="⌋",OZ="𝔯",VZ="ℜ",IZ="⥤",PZ="⇁",FZ="⇀",RZ="⥬",zZ="Ρ",UZ="ρ",HZ="ϱ",qZ="⟩",jZ="⇥",WZ="→",ZZ="→",KZ="⇒",GZ="⇄",YZ="↣",JZ="⌉",XZ="⟧",QZ="⥝",eK="⥕",tK="⇂",nK="⌋",oK="⇁",rK="⇀",iK="⇄",sK="⇌",aK="⇉",lK="↝",cK="↦",uK="⊢",dK="⥛",fK="⋌",pK="⧐",mK="⊳",hK="⊵",gK="⥏",vK="⥜",_K="⥔",yK="↾",CK="⥓",bK="⇀",kK="˚",wK="≓",EK="⇄",SK="⇌",xK="‏",AK="⎱",TK="⎱",NK="⫮",DK="⟭",$K="⇾",BK="⟧",MK="⦆",LK="𝕣",OK="ℝ",VK="⨮",IK="⨵",PK="⥰",FK=")",RK="⦔",zK="⨒",UK="⇉",HK="⇛",qK="›",jK="𝓇",WK="ℛ",ZK="↱",KK="↱",GK="]",YK="’",JK="’",XK="⋌",QK="⋊",eG="▹",tG="⊵",nG="▸",oG="⧎",rG="⧴",iG="⥨",sG="℞",aG="Ś",lG="ś",cG="‚",uG="⪸",dG="Š",fG="š",pG="⪼",mG="≻",hG="≽",gG="⪰",vG="⪴",_G="Ş",yG="ş",CG="Ŝ",bG="ŝ",kG="⪺",wG="⪶",EG="⋩",SG="⨓",xG="≿",AG="С",TG="с",NG="⊡",DG="⋅",$G="⩦",BG="⤥",MG="↘",LG="⇘",OG="↘",VG="§",IG=";",PG="⤩",FG="∖",RG="∖",zG="✶",UG="𝔖",HG="𝔰",qG="⌢",jG="♯",WG="Щ",ZG="щ",KG="Ш",GG="ш",YG="↓",JG="←",XG="∣",QG="∥",eY="→",tY="↑",nY="­",oY="Σ",rY="σ",iY="ς",sY="ς",aY="∼",lY="⩪",cY="≃",uY="≃",dY="⪞",fY="⪠",pY="⪝",mY="⪟",hY="≆",gY="⨤",vY="⥲",_Y="←",yY="∘",CY="∖",bY="⨳",kY="⧤",wY="∣",EY="⌣",SY="⪪",xY="⪬",AY="⪬︀",TY="Ь",NY="ь",DY="⌿",$Y="⧄",BY="/",MY="𝕊",LY="𝕤",OY="♠",VY="♠",IY="∥",PY="⊓",FY="⊓︀",RY="⊔",zY="⊔︀",UY="√",HY="⊏",qY="⊑",jY="⊏",WY="⊑",ZY="⊐",KY="⊒",GY="⊐",YY="⊒",JY="□",XY="□",QY="⊓",eJ="⊏",tJ="⊑",nJ="⊐",oJ="⊒",rJ="⊔",iJ="▪",sJ="□",aJ="▪",lJ="→",cJ="𝒮",uJ="𝓈",dJ="∖",fJ="⌣",pJ="⋆",mJ="⋆",hJ="☆",gJ="★",vJ="ϵ",_J="ϕ",yJ="¯",CJ="⊂",bJ="⋐",kJ="⪽",wJ="⫅",EJ="⊆",SJ="⫃",xJ="⫁",AJ="⫋",TJ="⊊",NJ="⪿",DJ="⥹",$J="⊂",BJ="⋐",MJ="⊆",LJ="⫅",OJ="⊆",VJ="⊊",IJ="⫋",PJ="⫇",FJ="⫕",RJ="⫓",zJ="⪸",UJ="≻",HJ="≽",qJ="≻",jJ="⪰",WJ="≽",ZJ="≿",KJ="⪰",GJ="⪺",YJ="⪶",JJ="⋩",XJ="≿",QJ="∋",eX="∑",tX="∑",nX="♪",oX="¹",rX="²",iX="³",sX="⊃",aX="⋑",lX="⪾",cX="⫘",uX="⫆",dX="⊇",fX="⫄",pX="⊃",mX="⊇",hX="⟉",gX="⫗",vX="⥻",_X="⫂",yX="⫌",CX="⊋",bX="⫀",kX="⊃",wX="⋑",EX="⊇",SX="⫆",xX="⊋",AX="⫌",TX="⫈",NX="⫔",DX="⫖",$X="⤦",BX="↙",MX="⇙",LX="↙",OX="⤪",VX="ß",IX=" ",PX="⌖",FX="Τ",RX="τ",zX="⎴",UX="Ť",HX="ť",qX="Ţ",jX="ţ",WX="Т",ZX="т",KX="⃛",GX="⌕",YX="𝔗",JX="𝔱",XX="∴",QX="∴",eQ="∴",tQ="Θ",nQ="θ",oQ="ϑ",rQ="ϑ",iQ="≈",sQ="∼",aQ="  ",lQ=" ",cQ=" ",uQ="≈",dQ="∼",fQ="Þ",pQ="þ",mQ="˜",hQ="∼",gQ="≃",vQ="≅",_Q="≈",yQ="⨱",CQ="⊠",bQ="×",kQ="⨰",wQ="∭",EQ="⤨",SQ="⌶",xQ="⫱",AQ="⊤",TQ="𝕋",NQ="𝕥",DQ="⫚",$Q="⤩",BQ="‴",MQ="™",LQ="™",OQ="▵",VQ="▿",IQ="◃",PQ="⊴",FQ="≜",RQ="▹",zQ="⊵",UQ="◬",HQ="≜",qQ="⨺",jQ="⃛",WQ="⨹",ZQ="⧍",KQ="⨻",GQ="⏢",YQ="𝒯",JQ="𝓉",XQ="Ц",QQ="ц",eee="Ћ",tee="ћ",nee="Ŧ",oee="ŧ",ree="≬",iee="↞",see="↠",aee="Ú",lee="ú",cee="↑",uee="↟",dee="⇑",fee="⥉",pee="Ў",mee="ў",hee="Ŭ",gee="ŭ",vee="Û",_ee="û",yee="У",Cee="у",bee="⇅",kee="Ű",wee="ű",Eee="⥮",See="⥾",xee="𝔘",Aee="𝔲",Tee="Ù",Nee="ù",Dee="⥣",$ee="↿",Bee="↾",Mee="▀",Lee="⌜",Oee="⌜",Vee="⌏",Iee="◸",Pee="Ū",Fee="ū",Ree="¨",zee="_",Uee="⏟",Hee="⎵",qee="⏝",jee="⋃",Wee="⊎",Zee="Ų",Kee="ų",Gee="𝕌",Yee="𝕦",Jee="⤒",Xee="↑",Qee="↑",ete="⇑",tte="⇅",nte="↕",ote="↕",rte="⇕",ite="⥮",ste="↿",ate="↾",lte="⊎",cte="↖",ute="↗",dte="υ",fte="ϒ",pte="ϒ",mte="Υ",hte="υ",gte="↥",vte="⊥",_te="⇈",yte="⌝",Cte="⌝",bte="⌎",kte="Ů",wte="ů",Ete="◹",Ste="𝒰",xte="𝓊",Ate="⋰",Tte="Ũ",Nte="ũ",Dte="▵",$te="▴",Bte="⇈",Mte="Ü",Lte="ü",Ote="⦧",Vte="⦜",Ite="ϵ",Pte="ϰ",Fte="∅",Rte="ϕ",zte="ϖ",Ute="∝",Hte="↕",qte="⇕",jte="ϱ",Wte="ς",Zte="⊊︀",Kte="⫋︀",Gte="⊋︀",Yte="⫌︀",Jte="ϑ",Xte="⊲",Qte="⊳",ene="⫨",tne="⫫",nne="⫩",one="В",rne="в",ine="⊢",sne="⊨",ane="⊩",lne="⊫",cne="⫦",une="⊻",dne="∨",fne="⋁",pne="≚",mne="⋮",hne="|",gne="‖",vne="|",_ne="‖",yne="∣",Cne="|",bne="❘",kne="≀",wne=" ",Ene="𝔙",Sne="𝔳",xne="⊲",Ane="⊂⃒",Tne="⊃⃒",Nne="𝕍",Dne="𝕧",$ne="∝",Bne="⊳",Mne="𝒱",Lne="𝓋",One="⫋︀",Vne="⊊︀",Ine="⫌︀",Pne="⊋︀",Fne="⊪",Rne="⦚",zne="Ŵ",Une="ŵ",Hne="⩟",qne="∧",jne="⋀",Wne="≙",Zne="℘",Kne="𝔚",Gne="𝔴",Yne="𝕎",Jne="𝕨",Xne="℘",Qne="≀",eoe="≀",toe="𝒲",noe="𝓌",ooe="⋂",roe="◯",ioe="⋃",soe="▽",aoe="𝔛",loe="𝔵",coe="⟷",uoe="⟺",doe="Ξ",foe="ξ",poe="⟵",moe="⟸",hoe="⟼",goe="⋻",voe="⨀",_oe="𝕏",yoe="𝕩",Coe="⨁",boe="⨂",koe="⟶",woe="⟹",Eoe="𝒳",Soe="𝓍",xoe="⨆",Aoe="⨄",Toe="△",Noe="⋁",Doe="⋀",$oe="Ý",Boe="ý",Moe="Я",Loe="я",Ooe="Ŷ",Voe="ŷ",Ioe="Ы",Poe="ы",Foe="¥",Roe="𝔜",zoe="𝔶",Uoe="Ї",Hoe="ї",qoe="𝕐",joe="𝕪",Woe="𝒴",Zoe="𝓎",Koe="Ю",Goe="ю",Yoe="ÿ",Joe="Ÿ",Xoe="Ź",Qoe="ź",ere="Ž",tre="ž",nre="З",ore="з",rre="Ż",ire="ż",sre="ℨ",are="​",lre="Ζ",cre="ζ",ure="𝔷",dre="ℨ",fre="Ж",pre="ж",mre="⇝",hre="𝕫",gre="ℤ",vre="𝒵",_re="𝓏",yre="‍",Cre="‌",bre={Aacute:r9,aacute:i9,Abreve:s9,abreve:a9,ac:l9,acd:c9,acE:u9,Acirc:d9,acirc:f9,acute:p9,Acy:m9,acy:h9,AElig:g9,aelig:v9,af:_9,Afr:y9,afr:C9,Agrave:b9,agrave:k9,alefsym:w9,aleph:E9,Alpha:S9,alpha:x9,Amacr:A9,amacr:T9,amalg:N9,amp:D9,AMP:$9,andand:B9,And:M9,and:L9,andd:O9,andslope:V9,andv:I9,ang:P9,ange:F9,angle:R9,angmsdaa:z9,angmsdab:U9,angmsdac:H9,angmsdad:q9,angmsdae:j9,angmsdaf:W9,angmsdag:Z9,angmsdah:K9,angmsd:G9,angrt:Y9,angrtvb:J9,angrtvbd:X9,angsph:Q9,angst:e4,angzarr:t4,Aogon:n4,aogon:o4,Aopf:r4,aopf:i4,apacir:s4,ap:a4,apE:l4,ape:c4,apid:u4,apos:d4,ApplyFunction:f4,approx:p4,approxeq:m4,Aring:h4,aring:g4,Ascr:v4,ascr:_4,Assign:y4,ast:C4,asymp:b4,asympeq:k4,Atilde:w4,atilde:E4,Auml:S4,auml:x4,awconint:A4,awint:T4,backcong:N4,backepsilon:D4,backprime:$4,backsim:B4,backsimeq:M4,Backslash:L4,Barv:O4,barvee:V4,barwed:I4,Barwed:P4,barwedge:F4,bbrk:R4,bbrktbrk:z4,bcong:U4,Bcy:H4,bcy:q4,bdquo:j4,becaus:W4,because:Z4,Because:K4,bemptyv:G4,bepsi:Y4,bernou:J4,Bernoullis:X4,Beta:Q4,beta:e8,beth:t8,between:n8,Bfr:o8,bfr:r8,bigcap:i8,bigcirc:s8,bigcup:a8,bigodot:l8,bigoplus:c8,bigotimes:u8,bigsqcup:d8,bigstar:f8,bigtriangledown:p8,bigtriangleup:m8,biguplus:h8,bigvee:g8,bigwedge:v8,bkarow:_8,blacklozenge:y8,blacksquare:C8,blacktriangle:b8,blacktriangledown:k8,blacktriangleleft:w8,blacktriangleright:E8,blank:S8,blk12:x8,blk14:A8,blk34:T8,block:N8,bne:D8,bnequiv:$8,bNot:B8,bnot:M8,Bopf:L8,bopf:O8,bot:V8,bottom:I8,bowtie:P8,boxbox:F8,boxdl:R8,boxdL:z8,boxDl:U8,boxDL:H8,boxdr:q8,boxdR:j8,boxDr:W8,boxDR:Z8,boxh:K8,boxH:G8,boxhd:Y8,boxHd:J8,boxhD:X8,boxHD:Q8,boxhu:e6,boxHu:t6,boxhU:n6,boxHU:o6,boxminus:r6,boxplus:i6,boxtimes:s6,boxul:a6,boxuL:l6,boxUl:c6,boxUL:u6,boxur:d6,boxuR:f6,boxUr:p6,boxUR:m6,boxv:h6,boxV:g6,boxvh:v6,boxvH:_6,boxVh:y6,boxVH:C6,boxvl:b6,boxvL:k6,boxVl:w6,boxVL:E6,boxvr:S6,boxvR:x6,boxVr:A6,boxVR:T6,bprime:N6,breve:D6,Breve:$6,brvbar:B6,bscr:M6,Bscr:L6,bsemi:O6,bsim:V6,bsime:I6,bsolb:P6,bsol:F6,bsolhsub:R6,bull:z6,bullet:U6,bump:H6,bumpE:q6,bumpe:j6,Bumpeq:W6,bumpeq:Z6,Cacute:K6,cacute:G6,capand:Y6,capbrcup:J6,capcap:X6,cap:Q6,Cap:ew,capcup:tw,capdot:nw,CapitalDifferentialD:ow,caps:rw,caret:iw,caron:sw,Cayleys:aw,ccaps:lw,Ccaron:cw,ccaron:uw,Ccedil:dw,ccedil:fw,Ccirc:pw,ccirc:mw,Cconint:hw,ccups:gw,ccupssm:vw,Cdot:_w,cdot:yw,cedil:Cw,Cedilla:bw,cemptyv:kw,cent:ww,centerdot:Ew,CenterDot:Sw,cfr:xw,Cfr:Aw,CHcy:Tw,chcy:Nw,check:Dw,checkmark:$w,Chi:Bw,chi:Mw,circ:Lw,circeq:Ow,circlearrowleft:Vw,circlearrowright:Iw,circledast:Pw,circledcirc:Fw,circleddash:Rw,CircleDot:zw,circledR:Uw,circledS:Hw,CircleMinus:qw,CirclePlus:jw,CircleTimes:Ww,cir:Zw,cirE:Kw,cire:Gw,cirfnint:Yw,cirmid:Jw,cirscir:Xw,ClockwiseContourIntegral:Qw,CloseCurlyDoubleQuote:eE,CloseCurlyQuote:tE,clubs:nE,clubsuit:oE,colon:rE,Colon:iE,Colone:sE,colone:aE,coloneq:lE,comma:cE,commat:uE,comp:dE,compfn:fE,complement:pE,complexes:mE,cong:hE,congdot:gE,Congruent:vE,conint:_E,Conint:yE,ContourIntegral:CE,copf:bE,Copf:kE,coprod:wE,Coproduct:EE,copy:SE,COPY:xE,copysr:AE,CounterClockwiseContourIntegral:TE,crarr:NE,cross:DE,Cross:$E,Cscr:BE,cscr:ME,csub:LE,csube:OE,csup:VE,csupe:IE,ctdot:PE,cudarrl:FE,cudarrr:RE,cuepr:zE,cuesc:UE,cularr:HE,cularrp:qE,cupbrcap:jE,cupcap:WE,CupCap:ZE,cup:KE,Cup:GE,cupcup:YE,cupdot:JE,cupor:XE,cups:QE,curarr:eS,curarrm:tS,curlyeqprec:nS,curlyeqsucc:oS,curlyvee:rS,curlywedge:iS,curren:sS,curvearrowleft:aS,curvearrowright:lS,cuvee:cS,cuwed:uS,cwconint:dS,cwint:fS,cylcty:pS,dagger:mS,Dagger:hS,daleth:gS,darr:vS,Darr:_S,dArr:yS,dash:CS,Dashv:bS,dashv:kS,dbkarow:wS,dblac:ES,Dcaron:SS,dcaron:xS,Dcy:AS,dcy:TS,ddagger:NS,ddarr:DS,DD:$S,dd:BS,DDotrahd:MS,ddotseq:LS,deg:OS,Del:VS,Delta:IS,delta:PS,demptyv:FS,dfisht:RS,Dfr:zS,dfr:US,dHar:HS,dharl:qS,dharr:jS,DiacriticalAcute:WS,DiacriticalDot:ZS,DiacriticalDoubleAcute:KS,DiacriticalGrave:GS,DiacriticalTilde:YS,diam:JS,diamond:XS,Diamond:QS,diamondsuit:ex,diams:tx,die:nx,DifferentialD:ox,digamma:rx,disin:ix,div:sx,divide:ax,divideontimes:lx,divonx:cx,DJcy:ux,djcy:dx,dlcorn:fx,dlcrop:px,dollar:mx,Dopf:hx,dopf:gx,Dot:vx,dot:_x,DotDot:yx,doteq:Cx,doteqdot:bx,DotEqual:kx,dotminus:wx,dotplus:Ex,dotsquare:Sx,doublebarwedge:xx,DoubleContourIntegral:Ax,DoubleDot:Tx,DoubleDownArrow:Nx,DoubleLeftArrow:Dx,DoubleLeftRightArrow:$x,DoubleLeftTee:Bx,DoubleLongLeftArrow:Mx,DoubleLongLeftRightArrow:Lx,DoubleLongRightArrow:Ox,DoubleRightArrow:Vx,DoubleRightTee:Ix,DoubleUpArrow:Px,DoubleUpDownArrow:Fx,DoubleVerticalBar:Rx,DownArrowBar:zx,downarrow:Ux,DownArrow:Hx,Downarrow:qx,DownArrowUpArrow:jx,DownBreve:Wx,downdownarrows:Zx,downharpoonleft:Kx,downharpoonright:Gx,DownLeftRightVector:Yx,DownLeftTeeVector:Jx,DownLeftVectorBar:Xx,DownLeftVector:Qx,DownRightTeeVector:eA,DownRightVectorBar:tA,DownRightVector:nA,DownTeeArrow:oA,DownTee:rA,drbkarow:iA,drcorn:sA,drcrop:aA,Dscr:lA,dscr:cA,DScy:uA,dscy:dA,dsol:fA,Dstrok:pA,dstrok:mA,dtdot:hA,dtri:gA,dtrif:vA,duarr:_A,duhar:yA,dwangle:CA,DZcy:bA,dzcy:kA,dzigrarr:wA,Eacute:EA,eacute:SA,easter:xA,Ecaron:AA,ecaron:TA,Ecirc:NA,ecirc:DA,ecir:$A,ecolon:BA,Ecy:MA,ecy:LA,eDDot:OA,Edot:VA,edot:IA,eDot:PA,ee:FA,efDot:RA,Efr:zA,efr:UA,eg:HA,Egrave:qA,egrave:jA,egs:WA,egsdot:ZA,el:KA,Element:GA,elinters:YA,ell:JA,els:XA,elsdot:QA,Emacr:eT,emacr:tT,empty:nT,emptyset:oT,EmptySmallSquare:rT,emptyv:iT,EmptyVerySmallSquare:sT,emsp13:aT,emsp14:lT,emsp:cT,ENG:uT,eng:dT,ensp:fT,Eogon:pT,eogon:mT,Eopf:hT,eopf:gT,epar:vT,eparsl:_T,eplus:yT,epsi:CT,Epsilon:bT,epsilon:kT,epsiv:wT,eqcirc:ET,eqcolon:ST,eqsim:xT,eqslantgtr:AT,eqslantless:TT,Equal:NT,equals:DT,EqualTilde:$T,equest:BT,Equilibrium:MT,equiv:LT,equivDD:OT,eqvparsl:VT,erarr:IT,erDot:PT,escr:FT,Escr:RT,esdot:zT,Esim:UT,esim:HT,Eta:qT,eta:jT,ETH:WT,eth:ZT,Euml:KT,euml:GT,euro:YT,excl:JT,exist:XT,Exists:QT,expectation:eN,exponentiale:tN,ExponentialE:nN,fallingdotseq:oN,Fcy:rN,fcy:iN,female:sN,ffilig:aN,fflig:lN,ffllig:cN,Ffr:uN,ffr:dN,filig:fN,FilledSmallSquare:pN,FilledVerySmallSquare:mN,fjlig:hN,flat:gN,fllig:vN,fltns:_N,fnof:yN,Fopf:CN,fopf:bN,forall:kN,ForAll:wN,fork:EN,forkv:SN,Fouriertrf:xN,fpartint:AN,frac12:TN,frac13:NN,frac14:DN,frac15:$N,frac16:BN,frac18:MN,frac23:LN,frac25:ON,frac34:VN,frac35:IN,frac38:PN,frac45:FN,frac56:RN,frac58:zN,frac78:UN,frasl:HN,frown:qN,fscr:jN,Fscr:WN,gacute:ZN,Gamma:KN,gamma:GN,Gammad:YN,gammad:JN,gap:XN,Gbreve:QN,gbreve:eD,Gcedil:tD,Gcirc:nD,gcirc:oD,Gcy:rD,gcy:iD,Gdot:sD,gdot:aD,ge:lD,gE:cD,gEl:uD,gel:dD,geq:fD,geqq:pD,geqslant:mD,gescc:hD,ges:gD,gesdot:vD,gesdoto:_D,gesdotol:yD,gesl:CD,gesles:bD,Gfr:kD,gfr:wD,gg:ED,Gg:SD,ggg:xD,gimel:AD,GJcy:TD,gjcy:ND,gla:DD,gl:$D,glE:BD,glj:MD,gnap:LD,gnapprox:OD,gne:VD,gnE:ID,gneq:PD,gneqq:FD,gnsim:RD,Gopf:zD,gopf:UD,grave:HD,GreaterEqual:qD,GreaterEqualLess:jD,GreaterFullEqual:WD,GreaterGreater:ZD,GreaterLess:KD,GreaterSlantEqual:GD,GreaterTilde:YD,Gscr:JD,gscr:XD,gsim:QD,gsime:e$,gsiml:t$,gtcc:n$,gtcir:o$,gt:r$,GT:i$,Gt:s$,gtdot:a$,gtlPar:l$,gtquest:c$,gtrapprox:u$,gtrarr:d$,gtrdot:f$,gtreqless:p$,gtreqqless:m$,gtrless:h$,gtrsim:g$,gvertneqq:v$,gvnE:_$,Hacek:y$,hairsp:C$,half:b$,hamilt:k$,HARDcy:w$,hardcy:E$,harrcir:S$,harr:x$,hArr:A$,harrw:T$,Hat:N$,hbar:D$,Hcirc:$$,hcirc:B$,hearts:M$,heartsuit:L$,hellip:O$,hercon:V$,hfr:I$,Hfr:P$,HilbertSpace:F$,hksearow:R$,hkswarow:z$,hoarr:U$,homtht:H$,hookleftarrow:q$,hookrightarrow:j$,hopf:W$,Hopf:Z$,horbar:K$,HorizontalLine:G$,hscr:Y$,Hscr:J$,hslash:X$,Hstrok:Q$,hstrok:eB,HumpDownHump:tB,HumpEqual:nB,hybull:oB,hyphen:rB,Iacute:iB,iacute:sB,ic:aB,Icirc:lB,icirc:cB,Icy:uB,icy:dB,Idot:fB,IEcy:pB,iecy:mB,iexcl:hB,iff:gB,ifr:vB,Ifr:_B,Igrave:yB,igrave:CB,ii:bB,iiiint:kB,iiint:wB,iinfin:EB,iiota:SB,IJlig:xB,ijlig:AB,Imacr:TB,imacr:NB,image:DB,ImaginaryI:$B,imagline:BB,imagpart:MB,imath:LB,Im:OB,imof:VB,imped:IB,Implies:PB,incare:FB,in:"∈",infin:RB,infintie:zB,inodot:UB,intcal:HB,int:qB,Int:jB,integers:WB,Integral:ZB,intercal:KB,Intersection:GB,intlarhk:YB,intprod:JB,InvisibleComma:XB,InvisibleTimes:QB,IOcy:eM,iocy:tM,Iogon:nM,iogon:oM,Iopf:rM,iopf:iM,Iota:sM,iota:aM,iprod:lM,iquest:cM,iscr:uM,Iscr:dM,isin:fM,isindot:pM,isinE:mM,isins:hM,isinsv:gM,isinv:vM,it:_M,Itilde:yM,itilde:CM,Iukcy:bM,iukcy:kM,Iuml:wM,iuml:EM,Jcirc:SM,jcirc:xM,Jcy:AM,jcy:TM,Jfr:NM,jfr:DM,jmath:$M,Jopf:BM,jopf:MM,Jscr:LM,jscr:OM,Jsercy:VM,jsercy:IM,Jukcy:PM,jukcy:FM,Kappa:RM,kappa:zM,kappav:UM,Kcedil:HM,kcedil:qM,Kcy:jM,kcy:WM,Kfr:ZM,kfr:KM,kgreen:GM,KHcy:YM,khcy:JM,KJcy:XM,kjcy:QM,Kopf:eL,kopf:tL,Kscr:nL,kscr:oL,lAarr:rL,Lacute:iL,lacute:sL,laemptyv:aL,lagran:lL,Lambda:cL,lambda:uL,lang:dL,Lang:fL,langd:pL,langle:mL,lap:hL,Laplacetrf:gL,laquo:vL,larrb:_L,larrbfs:yL,larr:CL,Larr:bL,lArr:kL,larrfs:wL,larrhk:EL,larrlp:SL,larrpl:xL,larrsim:AL,larrtl:TL,latail:NL,lAtail:DL,lat:$L,late:BL,lates:ML,lbarr:LL,lBarr:OL,lbbrk:VL,lbrace:IL,lbrack:PL,lbrke:FL,lbrksld:RL,lbrkslu:zL,Lcaron:UL,lcaron:HL,Lcedil:qL,lcedil:jL,lceil:WL,lcub:ZL,Lcy:KL,lcy:GL,ldca:YL,ldquo:JL,ldquor:XL,ldrdhar:QL,ldrushar:eO,ldsh:tO,le:nO,lE:oO,LeftAngleBracket:rO,LeftArrowBar:iO,leftarrow:sO,LeftArrow:aO,Leftarrow:lO,LeftArrowRightArrow:cO,leftarrowtail:uO,LeftCeiling:dO,LeftDoubleBracket:fO,LeftDownTeeVector:pO,LeftDownVectorBar:mO,LeftDownVector:hO,LeftFloor:gO,leftharpoondown:vO,leftharpoonup:_O,leftleftarrows:yO,leftrightarrow:CO,LeftRightArrow:bO,Leftrightarrow:kO,leftrightarrows:wO,leftrightharpoons:EO,leftrightsquigarrow:SO,LeftRightVector:xO,LeftTeeArrow:AO,LeftTee:TO,LeftTeeVector:NO,leftthreetimes:DO,LeftTriangleBar:$O,LeftTriangle:BO,LeftTriangleEqual:MO,LeftUpDownVector:LO,LeftUpTeeVector:OO,LeftUpVectorBar:VO,LeftUpVector:IO,LeftVectorBar:PO,LeftVector:FO,lEg:RO,leg:zO,leq:UO,leqq:HO,leqslant:qO,lescc:jO,les:WO,lesdot:ZO,lesdoto:KO,lesdotor:GO,lesg:YO,lesges:JO,lessapprox:XO,lessdot:QO,lesseqgtr:eV,lesseqqgtr:tV,LessEqualGreater:nV,LessFullEqual:oV,LessGreater:rV,lessgtr:iV,LessLess:sV,lesssim:aV,LessSlantEqual:lV,LessTilde:cV,lfisht:uV,lfloor:dV,Lfr:fV,lfr:pV,lg:mV,lgE:hV,lHar:gV,lhard:vV,lharu:_V,lharul:yV,lhblk:CV,LJcy:bV,ljcy:kV,llarr:wV,ll:EV,Ll:SV,llcorner:xV,Lleftarrow:AV,llhard:TV,lltri:NV,Lmidot:DV,lmidot:$V,lmoustache:BV,lmoust:MV,lnap:LV,lnapprox:OV,lne:VV,lnE:IV,lneq:PV,lneqq:FV,lnsim:RV,loang:zV,loarr:UV,lobrk:HV,longleftarrow:qV,LongLeftArrow:jV,Longleftarrow:WV,longleftrightarrow:ZV,LongLeftRightArrow:KV,Longleftrightarrow:GV,longmapsto:YV,longrightarrow:JV,LongRightArrow:XV,Longrightarrow:QV,looparrowleft:eI,looparrowright:tI,lopar:nI,Lopf:oI,lopf:rI,loplus:iI,lotimes:sI,lowast:aI,lowbar:lI,LowerLeftArrow:cI,LowerRightArrow:uI,loz:dI,lozenge:fI,lozf:pI,lpar:mI,lparlt:hI,lrarr:gI,lrcorner:vI,lrhar:_I,lrhard:yI,lrm:CI,lrtri:bI,lsaquo:kI,lscr:wI,Lscr:EI,lsh:SI,Lsh:xI,lsim:AI,lsime:TI,lsimg:NI,lsqb:DI,lsquo:$I,lsquor:BI,Lstrok:MI,lstrok:LI,ltcc:OI,ltcir:VI,lt:II,LT:PI,Lt:FI,ltdot:RI,lthree:zI,ltimes:UI,ltlarr:HI,ltquest:qI,ltri:jI,ltrie:WI,ltrif:ZI,ltrPar:KI,lurdshar:GI,luruhar:YI,lvertneqq:JI,lvnE:XI,macr:QI,male:eP,malt:tP,maltese:nP,Map:"⤅",map:oP,mapsto:rP,mapstodown:iP,mapstoleft:sP,mapstoup:aP,marker:lP,mcomma:cP,Mcy:uP,mcy:dP,mdash:fP,mDDot:pP,measuredangle:mP,MediumSpace:hP,Mellintrf:gP,Mfr:vP,mfr:_P,mho:yP,micro:CP,midast:bP,midcir:kP,mid:wP,middot:EP,minusb:SP,minus:xP,minusd:AP,minusdu:TP,MinusPlus:NP,mlcp:DP,mldr:$P,mnplus:BP,models:MP,Mopf:LP,mopf:OP,mp:VP,mscr:IP,Mscr:PP,mstpos:FP,Mu:RP,mu:zP,multimap:UP,mumap:HP,nabla:qP,Nacute:jP,nacute:WP,nang:ZP,nap:KP,napE:GP,napid:YP,napos:JP,napprox:XP,natural:QP,naturals:eF,natur:tF,nbsp:nF,nbump:oF,nbumpe:rF,ncap:iF,Ncaron:sF,ncaron:aF,Ncedil:lF,ncedil:cF,ncong:uF,ncongdot:dF,ncup:fF,Ncy:pF,ncy:mF,ndash:hF,nearhk:gF,nearr:vF,neArr:_F,nearrow:yF,ne:CF,nedot:bF,NegativeMediumSpace:kF,NegativeThickSpace:wF,NegativeThinSpace:EF,NegativeVeryThinSpace:SF,nequiv:xF,nesear:AF,nesim:TF,NestedGreaterGreater:NF,NestedLessLess:DF,NewLine:$F,nexist:BF,nexists:MF,Nfr:LF,nfr:OF,ngE:VF,nge:IF,ngeq:PF,ngeqq:FF,ngeqslant:RF,nges:zF,nGg:UF,ngsim:HF,nGt:qF,ngt:jF,ngtr:WF,nGtv:ZF,nharr:KF,nhArr:GF,nhpar:YF,ni:JF,nis:XF,nisd:QF,niv:eR,NJcy:tR,njcy:nR,nlarr:oR,nlArr:rR,nldr:iR,nlE:sR,nle:aR,nleftarrow:lR,nLeftarrow:cR,nleftrightarrow:uR,nLeftrightarrow:dR,nleq:fR,nleqq:pR,nleqslant:mR,nles:hR,nless:gR,nLl:vR,nlsim:_R,nLt:yR,nlt:CR,nltri:bR,nltrie:kR,nLtv:wR,nmid:ER,NoBreak:SR,NonBreakingSpace:xR,nopf:AR,Nopf:TR,Not:NR,not:DR,NotCongruent:$R,NotCupCap:BR,NotDoubleVerticalBar:MR,NotElement:LR,NotEqual:OR,NotEqualTilde:VR,NotExists:IR,NotGreater:PR,NotGreaterEqual:FR,NotGreaterFullEqual:RR,NotGreaterGreater:zR,NotGreaterLess:UR,NotGreaterSlantEqual:HR,NotGreaterTilde:qR,NotHumpDownHump:jR,NotHumpEqual:WR,notin:ZR,notindot:KR,notinE:GR,notinva:YR,notinvb:JR,notinvc:XR,NotLeftTriangleBar:QR,NotLeftTriangle:ez,NotLeftTriangleEqual:tz,NotLess:nz,NotLessEqual:oz,NotLessGreater:rz,NotLessLess:iz,NotLessSlantEqual:sz,NotLessTilde:az,NotNestedGreaterGreater:lz,NotNestedLessLess:cz,notni:uz,notniva:dz,notnivb:fz,notnivc:pz,NotPrecedes:mz,NotPrecedesEqual:hz,NotPrecedesSlantEqual:gz,NotReverseElement:vz,NotRightTriangleBar:_z,NotRightTriangle:yz,NotRightTriangleEqual:Cz,NotSquareSubset:bz,NotSquareSubsetEqual:kz,NotSquareSuperset:wz,NotSquareSupersetEqual:Ez,NotSubset:Sz,NotSubsetEqual:xz,NotSucceeds:Az,NotSucceedsEqual:Tz,NotSucceedsSlantEqual:Nz,NotSucceedsTilde:Dz,NotSuperset:$z,NotSupersetEqual:Bz,NotTilde:Mz,NotTildeEqual:Lz,NotTildeFullEqual:Oz,NotTildeTilde:Vz,NotVerticalBar:Iz,nparallel:Pz,npar:Fz,nparsl:Rz,npart:zz,npolint:Uz,npr:Hz,nprcue:qz,nprec:jz,npreceq:Wz,npre:Zz,nrarrc:Kz,nrarr:Gz,nrArr:Yz,nrarrw:Jz,nrightarrow:Xz,nRightarrow:Qz,nrtri:eU,nrtrie:tU,nsc:nU,nsccue:oU,nsce:rU,Nscr:iU,nscr:sU,nshortmid:aU,nshortparallel:lU,nsim:cU,nsime:uU,nsimeq:dU,nsmid:fU,nspar:pU,nsqsube:mU,nsqsupe:hU,nsub:gU,nsubE:vU,nsube:_U,nsubset:yU,nsubseteq:CU,nsubseteqq:bU,nsucc:kU,nsucceq:wU,nsup:EU,nsupE:SU,nsupe:xU,nsupset:AU,nsupseteq:TU,nsupseteqq:NU,ntgl:DU,Ntilde:$U,ntilde:BU,ntlg:MU,ntriangleleft:LU,ntrianglelefteq:OU,ntriangleright:VU,ntrianglerighteq:IU,Nu:PU,nu:FU,num:RU,numero:zU,numsp:UU,nvap:HU,nvdash:qU,nvDash:jU,nVdash:WU,nVDash:ZU,nvge:KU,nvgt:GU,nvHarr:YU,nvinfin:JU,nvlArr:XU,nvle:QU,nvlt:eH,nvltrie:tH,nvrArr:nH,nvrtrie:oH,nvsim:rH,nwarhk:iH,nwarr:sH,nwArr:aH,nwarrow:lH,nwnear:cH,Oacute:uH,oacute:dH,oast:fH,Ocirc:pH,ocirc:mH,ocir:hH,Ocy:gH,ocy:vH,odash:_H,Odblac:yH,odblac:CH,odiv:bH,odot:kH,odsold:wH,OElig:EH,oelig:SH,ofcir:xH,Ofr:AH,ofr:TH,ogon:NH,Ograve:DH,ograve:$H,ogt:BH,ohbar:MH,ohm:LH,oint:OH,olarr:VH,olcir:IH,olcross:PH,oline:FH,olt:RH,Omacr:zH,omacr:UH,Omega:HH,omega:qH,Omicron:jH,omicron:WH,omid:ZH,ominus:KH,Oopf:GH,oopf:YH,opar:JH,OpenCurlyDoubleQuote:XH,OpenCurlyQuote:QH,operp:eq,oplus:tq,orarr:nq,Or:oq,or:rq,ord:iq,order:sq,orderof:aq,ordf:lq,ordm:cq,origof:uq,oror:dq,orslope:fq,orv:pq,oS:mq,Oscr:hq,oscr:gq,Oslash:vq,oslash:_q,osol:yq,Otilde:Cq,otilde:bq,otimesas:kq,Otimes:wq,otimes:Eq,Ouml:Sq,ouml:xq,ovbar:Aq,OverBar:Tq,OverBrace:Nq,OverBracket:Dq,OverParenthesis:$q,para:Bq,parallel:Mq,par:Lq,parsim:Oq,parsl:Vq,part:Iq,PartialD:Pq,Pcy:Fq,pcy:Rq,percnt:zq,period:Uq,permil:Hq,perp:qq,pertenk:jq,Pfr:Wq,pfr:Zq,Phi:Kq,phi:Gq,phiv:Yq,phmmat:Jq,phone:Xq,Pi:Qq,pi:ej,pitchfork:tj,piv:nj,planck:oj,planckh:rj,plankv:ij,plusacir:sj,plusb:aj,pluscir:lj,plus:cj,plusdo:uj,plusdu:dj,pluse:fj,PlusMinus:pj,plusmn:mj,plussim:hj,plustwo:gj,pm:vj,Poincareplane:_j,pointint:yj,popf:Cj,Popf:bj,pound:kj,prap:wj,Pr:Ej,pr:Sj,prcue:xj,precapprox:Aj,prec:Tj,preccurlyeq:Nj,Precedes:Dj,PrecedesEqual:$j,PrecedesSlantEqual:Bj,PrecedesTilde:Mj,preceq:Lj,precnapprox:Oj,precneqq:Vj,precnsim:Ij,pre:Pj,prE:Fj,precsim:Rj,prime:zj,Prime:Uj,primes:Hj,prnap:qj,prnE:jj,prnsim:Wj,prod:Zj,Product:Kj,profalar:Gj,profline:Yj,profsurf:Jj,prop:Xj,Proportional:Qj,Proportion:eW,propto:tW,prsim:nW,prurel:oW,Pscr:rW,pscr:iW,Psi:sW,psi:aW,puncsp:lW,Qfr:cW,qfr:uW,qint:dW,qopf:fW,Qopf:pW,qprime:mW,Qscr:hW,qscr:gW,quaternions:vW,quatint:_W,quest:yW,questeq:CW,quot:bW,QUOT:kW,rAarr:wW,race:EW,Racute:SW,racute:xW,radic:AW,raemptyv:TW,rang:NW,Rang:DW,rangd:$W,range:BW,rangle:MW,raquo:LW,rarrap:OW,rarrb:VW,rarrbfs:IW,rarrc:PW,rarr:FW,Rarr:RW,rArr:zW,rarrfs:UW,rarrhk:HW,rarrlp:qW,rarrpl:jW,rarrsim:WW,Rarrtl:ZW,rarrtl:KW,rarrw:GW,ratail:YW,rAtail:JW,ratio:XW,rationals:QW,rbarr:eZ,rBarr:tZ,RBarr:nZ,rbbrk:oZ,rbrace:rZ,rbrack:iZ,rbrke:sZ,rbrksld:aZ,rbrkslu:lZ,Rcaron:cZ,rcaron:uZ,Rcedil:dZ,rcedil:fZ,rceil:pZ,rcub:mZ,Rcy:hZ,rcy:gZ,rdca:vZ,rdldhar:_Z,rdquo:yZ,rdquor:CZ,rdsh:bZ,real:kZ,realine:wZ,realpart:EZ,reals:SZ,Re:xZ,rect:AZ,reg:TZ,REG:NZ,ReverseElement:DZ,ReverseEquilibrium:$Z,ReverseUpEquilibrium:BZ,rfisht:MZ,rfloor:LZ,rfr:OZ,Rfr:VZ,rHar:IZ,rhard:PZ,rharu:FZ,rharul:RZ,Rho:zZ,rho:UZ,rhov:HZ,RightAngleBracket:qZ,RightArrowBar:jZ,rightarrow:WZ,RightArrow:ZZ,Rightarrow:KZ,RightArrowLeftArrow:GZ,rightarrowtail:YZ,RightCeiling:JZ,RightDoubleBracket:XZ,RightDownTeeVector:QZ,RightDownVectorBar:eK,RightDownVector:tK,RightFloor:nK,rightharpoondown:oK,rightharpoonup:rK,rightleftarrows:iK,rightleftharpoons:sK,rightrightarrows:aK,rightsquigarrow:lK,RightTeeArrow:cK,RightTee:uK,RightTeeVector:dK,rightthreetimes:fK,RightTriangleBar:pK,RightTriangle:mK,RightTriangleEqual:hK,RightUpDownVector:gK,RightUpTeeVector:vK,RightUpVectorBar:_K,RightUpVector:yK,RightVectorBar:CK,RightVector:bK,ring:kK,risingdotseq:wK,rlarr:EK,rlhar:SK,rlm:xK,rmoustache:AK,rmoust:TK,rnmid:NK,roang:DK,roarr:$K,robrk:BK,ropar:MK,ropf:LK,Ropf:OK,roplus:VK,rotimes:IK,RoundImplies:PK,rpar:FK,rpargt:RK,rppolint:zK,rrarr:UK,Rrightarrow:HK,rsaquo:qK,rscr:jK,Rscr:WK,rsh:ZK,Rsh:KK,rsqb:GK,rsquo:YK,rsquor:JK,rthree:XK,rtimes:QK,rtri:eG,rtrie:tG,rtrif:nG,rtriltri:oG,RuleDelayed:rG,ruluhar:iG,rx:sG,Sacute:aG,sacute:lG,sbquo:cG,scap:uG,Scaron:dG,scaron:fG,Sc:pG,sc:mG,sccue:hG,sce:gG,scE:vG,Scedil:_G,scedil:yG,Scirc:CG,scirc:bG,scnap:kG,scnE:wG,scnsim:EG,scpolint:SG,scsim:xG,Scy:AG,scy:TG,sdotb:NG,sdot:DG,sdote:$G,searhk:BG,searr:MG,seArr:LG,searrow:OG,sect:VG,semi:IG,seswar:PG,setminus:FG,setmn:RG,sext:zG,Sfr:UG,sfr:HG,sfrown:qG,sharp:jG,SHCHcy:WG,shchcy:ZG,SHcy:KG,shcy:GG,ShortDownArrow:YG,ShortLeftArrow:JG,shortmid:XG,shortparallel:QG,ShortRightArrow:eY,ShortUpArrow:tY,shy:nY,Sigma:oY,sigma:rY,sigmaf:iY,sigmav:sY,sim:aY,simdot:lY,sime:cY,simeq:uY,simg:dY,simgE:fY,siml:pY,simlE:mY,simne:hY,simplus:gY,simrarr:vY,slarr:_Y,SmallCircle:yY,smallsetminus:CY,smashp:bY,smeparsl:kY,smid:wY,smile:EY,smt:SY,smte:xY,smtes:AY,SOFTcy:TY,softcy:NY,solbar:DY,solb:$Y,sol:BY,Sopf:MY,sopf:LY,spades:OY,spadesuit:VY,spar:IY,sqcap:PY,sqcaps:FY,sqcup:RY,sqcups:zY,Sqrt:UY,sqsub:HY,sqsube:qY,sqsubset:jY,sqsubseteq:WY,sqsup:ZY,sqsupe:KY,sqsupset:GY,sqsupseteq:YY,square:JY,Square:XY,SquareIntersection:QY,SquareSubset:eJ,SquareSubsetEqual:tJ,SquareSuperset:nJ,SquareSupersetEqual:oJ,SquareUnion:rJ,squarf:iJ,squ:sJ,squf:aJ,srarr:lJ,Sscr:cJ,sscr:uJ,ssetmn:dJ,ssmile:fJ,sstarf:pJ,Star:mJ,star:hJ,starf:gJ,straightepsilon:vJ,straightphi:_J,strns:yJ,sub:CJ,Sub:bJ,subdot:kJ,subE:wJ,sube:EJ,subedot:SJ,submult:xJ,subnE:AJ,subne:TJ,subplus:NJ,subrarr:DJ,subset:$J,Subset:BJ,subseteq:MJ,subseteqq:LJ,SubsetEqual:OJ,subsetneq:VJ,subsetneqq:IJ,subsim:PJ,subsub:FJ,subsup:RJ,succapprox:zJ,succ:UJ,succcurlyeq:HJ,Succeeds:qJ,SucceedsEqual:jJ,SucceedsSlantEqual:WJ,SucceedsTilde:ZJ,succeq:KJ,succnapprox:GJ,succneqq:YJ,succnsim:JJ,succsim:XJ,SuchThat:QJ,sum:eX,Sum:tX,sung:nX,sup1:oX,sup2:rX,sup3:iX,sup:sX,Sup:aX,supdot:lX,supdsub:cX,supE:uX,supe:dX,supedot:fX,Superset:pX,SupersetEqual:mX,suphsol:hX,suphsub:gX,suplarr:vX,supmult:_X,supnE:yX,supne:CX,supplus:bX,supset:kX,Supset:wX,supseteq:EX,supseteqq:SX,supsetneq:xX,supsetneqq:AX,supsim:TX,supsub:NX,supsup:DX,swarhk:$X,swarr:BX,swArr:MX,swarrow:LX,swnwar:OX,szlig:VX,Tab:IX,target:PX,Tau:FX,tau:RX,tbrk:zX,Tcaron:UX,tcaron:HX,Tcedil:qX,tcedil:jX,Tcy:WX,tcy:ZX,tdot:KX,telrec:GX,Tfr:YX,tfr:JX,there4:XX,therefore:QX,Therefore:eQ,Theta:tQ,theta:nQ,thetasym:oQ,thetav:rQ,thickapprox:iQ,thicksim:sQ,ThickSpace:aQ,ThinSpace:lQ,thinsp:cQ,thkap:uQ,thksim:dQ,THORN:fQ,thorn:pQ,tilde:mQ,Tilde:hQ,TildeEqual:gQ,TildeFullEqual:vQ,TildeTilde:_Q,timesbar:yQ,timesb:CQ,times:bQ,timesd:kQ,tint:wQ,toea:EQ,topbot:SQ,topcir:xQ,top:AQ,Topf:TQ,topf:NQ,topfork:DQ,tosa:$Q,tprime:BQ,trade:MQ,TRADE:LQ,triangle:OQ,triangledown:VQ,triangleleft:IQ,trianglelefteq:PQ,triangleq:FQ,triangleright:RQ,trianglerighteq:zQ,tridot:UQ,trie:HQ,triminus:qQ,TripleDot:jQ,triplus:WQ,trisb:ZQ,tritime:KQ,trpezium:GQ,Tscr:YQ,tscr:JQ,TScy:XQ,tscy:QQ,TSHcy:eee,tshcy:tee,Tstrok:nee,tstrok:oee,twixt:ree,twoheadleftarrow:iee,twoheadrightarrow:see,Uacute:aee,uacute:lee,uarr:cee,Uarr:uee,uArr:dee,Uarrocir:fee,Ubrcy:pee,ubrcy:mee,Ubreve:hee,ubreve:gee,Ucirc:vee,ucirc:_ee,Ucy:yee,ucy:Cee,udarr:bee,Udblac:kee,udblac:wee,udhar:Eee,ufisht:See,Ufr:xee,ufr:Aee,Ugrave:Tee,ugrave:Nee,uHar:Dee,uharl:$ee,uharr:Bee,uhblk:Mee,ulcorn:Lee,ulcorner:Oee,ulcrop:Vee,ultri:Iee,Umacr:Pee,umacr:Fee,uml:Ree,UnderBar:zee,UnderBrace:Uee,UnderBracket:Hee,UnderParenthesis:qee,Union:jee,UnionPlus:Wee,Uogon:Zee,uogon:Kee,Uopf:Gee,uopf:Yee,UpArrowBar:Jee,uparrow:Xee,UpArrow:Qee,Uparrow:ete,UpArrowDownArrow:tte,updownarrow:nte,UpDownArrow:ote,Updownarrow:rte,UpEquilibrium:ite,upharpoonleft:ste,upharpoonright:ate,uplus:lte,UpperLeftArrow:cte,UpperRightArrow:ute,upsi:dte,Upsi:fte,upsih:pte,Upsilon:mte,upsilon:hte,UpTeeArrow:gte,UpTee:vte,upuparrows:_te,urcorn:yte,urcorner:Cte,urcrop:bte,Uring:kte,uring:wte,urtri:Ete,Uscr:Ste,uscr:xte,utdot:Ate,Utilde:Tte,utilde:Nte,utri:Dte,utrif:$te,uuarr:Bte,Uuml:Mte,uuml:Lte,uwangle:Ote,vangrt:Vte,varepsilon:Ite,varkappa:Pte,varnothing:Fte,varphi:Rte,varpi:zte,varpropto:Ute,varr:Hte,vArr:qte,varrho:jte,varsigma:Wte,varsubsetneq:Zte,varsubsetneqq:Kte,varsupsetneq:Gte,varsupsetneqq:Yte,vartheta:Jte,vartriangleleft:Xte,vartriangleright:Qte,vBar:ene,Vbar:tne,vBarv:nne,Vcy:one,vcy:rne,vdash:ine,vDash:sne,Vdash:ane,VDash:lne,Vdashl:cne,veebar:une,vee:dne,Vee:fne,veeeq:pne,vellip:mne,verbar:hne,Verbar:gne,vert:vne,Vert:_ne,VerticalBar:yne,VerticalLine:Cne,VerticalSeparator:bne,VerticalTilde:kne,VeryThinSpace:wne,Vfr:Ene,vfr:Sne,vltri:xne,vnsub:Ane,vnsup:Tne,Vopf:Nne,vopf:Dne,vprop:$ne,vrtri:Bne,Vscr:Mne,vscr:Lne,vsubnE:One,vsubne:Vne,vsupnE:Ine,vsupne:Pne,Vvdash:Fne,vzigzag:Rne,Wcirc:zne,wcirc:Une,wedbar:Hne,wedge:qne,Wedge:jne,wedgeq:Wne,weierp:Zne,Wfr:Kne,wfr:Gne,Wopf:Yne,wopf:Jne,wp:Xne,wr:Qne,wreath:eoe,Wscr:toe,wscr:noe,xcap:ooe,xcirc:roe,xcup:ioe,xdtri:soe,Xfr:aoe,xfr:loe,xharr:coe,xhArr:uoe,Xi:doe,xi:foe,xlarr:poe,xlArr:moe,xmap:hoe,xnis:goe,xodot:voe,Xopf:_oe,xopf:yoe,xoplus:Coe,xotime:boe,xrarr:koe,xrArr:woe,Xscr:Eoe,xscr:Soe,xsqcup:xoe,xuplus:Aoe,xutri:Toe,xvee:Noe,xwedge:Doe,Yacute:$oe,yacute:Boe,YAcy:Moe,yacy:Loe,Ycirc:Ooe,ycirc:Voe,Ycy:Ioe,ycy:Poe,yen:Foe,Yfr:Roe,yfr:zoe,YIcy:Uoe,yicy:Hoe,Yopf:qoe,yopf:joe,Yscr:Woe,yscr:Zoe,YUcy:Koe,yucy:Goe,yuml:Yoe,Yuml:Joe,Zacute:Xoe,zacute:Qoe,Zcaron:ere,zcaron:tre,Zcy:nre,zcy:ore,Zdot:rre,zdot:ire,zeetrf:sre,ZeroWidthSpace:are,Zeta:lre,zeta:cre,zfr:ure,Zfr:dre,ZHcy:fre,zhcy:pre,zigrarr:mre,zopf:hre,Zopf:gre,Zscr:vre,zscr:_re,zwj:yre,zwnj:Cre};var am=bre,hu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Zr={},Zd={};function kre(t){var e,n,o=Zd[t];if(o)return o;for(o=Zd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function Ua(t,e,n){var o,i,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Ua.defaultChars),typeof n>"u"&&(n=!0),l=kre(e),o=0,i=t.length;o<i;o++){if(s=t.charCodeAt(o),n&&s===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){c+=t.slice(o,o+3),o+=2;continue}if(s<128){c+=l[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<i&&(a=t.charCodeAt(o+1),a>=56320&&a<=57343)){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(t[o])}return c}Ua.defaultChars=";/?:@&=+$,-_.!~*'()#";Ua.componentChars="-_.!~*'()";var wre=Ua,Kd={};function Ere(t){var e,n,o=Kd[t];if(o)return o;for(o=Kd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function Ha(t,e){var n;return typeof e!="string"&&(e=Ha.defaultChars),n=Ere(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,s,a,l,c,u,d,f="";for(i=0,s=o.length;i<s;i+=3){if(a=parseInt(o.slice(i+1,i+3),16),a<128){f+=n[a];continue}if((a&224)===192&&i+3<s&&(l=parseInt(o.slice(i+4,i+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?f+="��":f+=String.fromCharCode(d),i+=3;continue}if((a&240)===224&&i+6<s&&(l=parseInt(o.slice(i+4,i+6),16),c=parseInt(o.slice(i+7,i+9),16),(l&192)===128&&(c&192)===128)){d=a<<12&61440|l<<6&4032|c&63,d<2048||d>=55296&&d<=57343?f+="���":f+=String.fromCharCode(d),i+=6;continue}if((a&248)===240&&i+9<s&&(l=parseInt(o.slice(i+4,i+6),16),c=parseInt(o.slice(i+7,i+9),16),u=parseInt(o.slice(i+10,i+12),16),(l&192)===128&&(c&192)===128&&(u&192)===128)){d=a<<18&1835008|l<<12&258048|c<<6&4032|u&63,d<65536||d>1114111?f+="����":(d-=65536,f+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}f+="�"}return f})}Ha.defaultChars=";/?:@&=+$,#";Ha.componentChars="";var Sre=Ha,xre=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function oa(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Are=/^([a-z0-9.+-]+:)/i,Tre=/:[0-9]*$/,Nre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Dre=["<",">",'"',"`"," ","\r",`
3
- `," "],$re=["{","}","|","\\","^","`"].concat(Dre),Bre=["'"].concat($re),Gd=["%","/","?",";","#"].concat(Bre),Yd=["/","?","#"],Mre=255,Jd=/^[+a-z0-9A-Z_-]{0,63}$/,Lre=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Xd={javascript:!0,"javascript:":!0},Qd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ore(t,e){if(t&&t instanceof oa)return t;var n=new oa;return n.parse(t,e),n}oa.prototype.parse=function(t,e){var n,o,i,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=Nre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=Are.exec(l);if(u&&(u=u[0],i=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&Xd[u])&&(l=l.substr(2),this.slashes=!0)),!Xd[u]&&(a||u&&!Qd[u])){var d=-1;for(n=0;n<Yd.length;n++)s=l.indexOf(Yd[n]),s!==-1&&(d===-1||s<d)&&(d=s);var f,p;for(d===-1?p=l.lastIndexOf("@"):p=l.lastIndexOf("@",d),p!==-1&&(f=l.slice(0,p),l=l.slice(p+1),this.auth=f),d=-1,n=0;n<Gd.length;n++)s=l.indexOf(Gd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var m=l.slice(0,d);l=l.slice(d),this.parseHost(m),this.hostname=this.hostname||"";var h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var y=g[n];if(y&&!y.match(Jd)){for(var C="",_=0,v=y.length;_<v;_++)y.charCodeAt(_)>127?C+="x":C+=y[_];if(!C.match(Jd)){var b=g.slice(0,n),w=g.slice(n+1),k=y.match(Lre);k&&(b.push(k[1]),w.unshift(k[2])),w.length&&(l=w.join(".")+l),this.hostname=b.join(".");break}}}}this.hostname.length>Mre&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var T=l.indexOf("#");T!==-1&&(this.hash=l.substr(T),l=l.slice(0,T));var A=l.indexOf("?");return A!==-1&&(this.search=l.substr(A),l=l.slice(0,A)),l&&(this.pathname=l),Qd[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};oa.prototype.parseHost=function(t){var e=Tre.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Vre=Ore;Zr.encode=wre;Zr.decode=Sre;Zr.format=xre;Zr.parse=Vre;var $o={},Sl,e1;function lm(){return e1||(e1=1,Sl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Sl}var xl,t1;function cm(){return t1||(t1=1,xl=/[\0-\x1F\x7F-\x9F]/),xl}var Al,n1;function Ire(){return n1||(n1=1,Al=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Al}var Tl,o1;function um(){return o1||(o1=1,Tl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Tl}var r1;function Pre(){return r1||(r1=1,$o.Any=lm(),$o.Cc=cm(),$o.Cf=Ire(),$o.P=hu,$o.Z=um()),$o}(function(t){function e(B){return Object.prototype.toString.call(B)}function n(B){return e(B)==="[object String]"}var o=Object.prototype.hasOwnProperty;function i(B,V){return o.call(B,V)}function s(B){var V=Array.prototype.slice.call(arguments,1);return V.forEach(function(I){if(I){if(typeof I!="object")throw new TypeError(I+"must be object");Object.keys(I).forEach(function(W){B[W]=I[W]})}}),B}function a(B,V,I){return[].concat(B.slice(0,V),I,B.slice(V+1))}function l(B){return!(B>=55296&&B<=57343||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534||B>=0&&B<=8||B===11||B>=14&&B<=31||B>=127&&B<=159||B>1114111)}function c(B){if(B>65535){B-=65536;var V=55296+(B>>10),I=56320+(B&1023);return String.fromCharCode(V,I)}return String.fromCharCode(B)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=am;function h(B,V){var I;return i(m,V)?m[V]:V.charCodeAt(0)===35&&p.test(V)&&(I=V[1].toLowerCase()==="x"?parseInt(V.slice(2),16):parseInt(V.slice(1),10),l(I))?c(I):B}function g(B){return B.indexOf("\\")<0?B:B.replace(u,"$1")}function y(B){return B.indexOf("\\")<0&&B.indexOf("&")<0?B:B.replace(f,function(V,I,W){return I||h(V,W)})}var C=/[&<>"]/,_=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function b(B){return v[B]}function w(B){return C.test(B)?B.replace(_,b):B}var k=/[.?*+^$[\]\\(){}|-]/g;function T(B){return B.replace(k,"\\$&")}function A(B){switch(B){case 9:case 32:return!0}return!1}function S(B){if(B>=8192&&B<=8202)return!0;switch(B){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var E=hu;function D(B){return E.test(B)}function x(B){switch(B){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function $(B){return B=B.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(B=B.replace(/ẞ/g,"ß")),B.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Zr,t.lib.ucmicro=Pre(),t.assign=s,t.isString=n,t.has=i,t.unescapeMd=g,t.unescapeAll=y,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=a,t.isSpace=A,t.isWhiteSpace=S,t.isMdAsciiPunct=x,t.isPunctChar=D,t.escapeRE=T,t.normalizeReference=$})(Be);var qa={},Fre=function(e,n,o){var i,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,i=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)i++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},i1=Be.unescapeAll,Rre=function(e,n,o){var i,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(i=e.charCodeAt(a),i===10||i===60)return l;if(i===62)return l.pos=a+1,l.str=i1(e.slice(n+1,a)),l.ok=!0,l;if(i===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(i=e.charCodeAt(a),!(i===32||i<32||i===127));){if(i===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(i===40&&(s++,s>32))return l;if(i===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=i1(e.slice(n,a)),l.pos=a,l.ok=!0),l},zre=Be.unescapeAll,Ure=function(e,n,o){var i,s,a=0,l=n,c={ok:!1,pos:0,lines:0,str:""};if(l>=o||(s=e.charCodeAt(l),s!==34&&s!==39&&s!==40))return c;for(l++,s===40&&(s=41);l<o;){if(i=e.charCodeAt(l),i===s)return c.pos=l+1,c.lines=a,c.str=zre(e.slice(n+1,l)),c.ok=!0,c;if(i===40&&s===41)return c;i===10?a++:i===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};qa.parseLinkLabel=Fre;qa.parseLinkDestination=Rre;qa.parseLinkTitle=Ure;var Hre=Be.assign,qre=Be.unescapeAll,Jo=Be.escapeHtml,On={};On.code_inline=function(t,e,n,o,i){var s=t[e];return"<code"+i.renderAttrs(s)+">"+Jo(s.content)+"</code>"};On.code_block=function(t,e,n,o,i){var s=t[e];return"<pre"+i.renderAttrs(s)+"><code>"+Jo(t[e].content)+`</code></pre>
4
- `};On.fence=function(t,e,n,o,i){var s=t[e],a=s.info?qre(s.info).trim():"",l="",c="",u,d,f,p,m;return a&&(f=a.split(/(\s+)/g),l=f[0],c=f.slice(2).join("")),n.highlight?u=n.highlight(s.content,l,c)||Jo(s.content):u=Jo(s.content),u.indexOf("<pre")===0?u+`
1
+ "use strict";var a0=Object.defineProperty;var l0=(t,e,n)=>e in t?a0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>(l0(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),$r=require("vue-router"),wo=require("vuedraggable");const c0=r.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.unref($r.RouterView),r.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),te=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},u0={},d0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f0(t,e){return r.openBlock(),r.createElementBlock("svg",d0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const p0=te(u0,[["render",f0]]),m0={},h0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g0(t,e){return r.openBlock(),r.createElementBlock("svg",h0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const v0=te(m0,[["render",g0]]),_0={},y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C0(t,e){return r.openBlock(),r.createElementBlock("svg",y0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const b0=te(_0,[["render",C0]]),k0={},w0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E0(t,e){return r.openBlock(),r.createElementBlock("svg",w0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const S0=te(k0,[["render",E0]]),x0={},T0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A0(t,e){return r.openBlock(),r.createElementBlock("svg",T0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const N0=te(x0,[["render",A0]]),D0={},$0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B0(t,e){return r.openBlock(),r.createElementBlock("svg",$0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const M0=te(D0,[["render",B0]]),L0={},O0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V0(t,e){return r.openBlock(),r.createElementBlock("svg",O0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const I0=te(L0,[["render",V0]]),P0={},F0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R0(t,e){return r.openBlock(),r.createElementBlock("svg",F0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const z0=te(P0,[["render",R0]]),U0={},H0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q0(t,e){return r.openBlock(),r.createElementBlock("svg",H0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const j0=te(U0,[["render",q0]]),W0={},Z0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K0(t,e){return r.openBlock(),r.createElementBlock("svg",Z0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const G0=te(W0,[["render",K0]]),Y0={},J0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X0(t,e){return r.openBlock(),r.createElementBlock("svg",J0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const Q0=te(Y0,[["render",X0]]),ev={},tv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nv(t,e){return r.openBlock(),r.createElementBlock("svg",tv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const ov=te(ev,[["render",nv]]),rv={},iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sv(t,e){return r.openBlock(),r.createElementBlock("svg",iv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const av=te(rv,[["render",sv]]),lv={},cv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uv(t,e){return r.openBlock(),r.createElementBlock("svg",cv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const dv=te(lv,[["render",uv]]),fv={},pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mv(t,e){return r.openBlock(),r.createElementBlock("svg",pv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const hv=te(fv,[["render",mv]]),gv={},vv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _v(t,e){return r.openBlock(),r.createElementBlock("svg",vv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const yv=te(gv,[["render",_v]]),Cv={},bv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kv(t,e){return r.openBlock(),r.createElementBlock("svg",bv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const wv=te(Cv,[["render",kv]]),Ev={},Sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xv(t,e){return r.openBlock(),r.createElementBlock("svg",Sv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const Tv=te(Ev,[["render",xv]]),Av={},Nv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dv(t,e){return r.openBlock(),r.createElementBlock("svg",Nv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const $v=te(Av,[["render",Dv]]),Bv={},Mv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lv(t,e){return r.openBlock(),r.createElementBlock("svg",Mv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const Ov=te(Bv,[["render",Lv]]),Vv={},Iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pv(t,e){return r.openBlock(),r.createElementBlock("svg",Iv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const Fv=te(Vv,[["render",Pv]]),Rv={},zv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uv(t,e){return r.openBlock(),r.createElementBlock("svg",zv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const Hv=te(Rv,[["render",Uv]]),qv={},jv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wv(t,e){return r.openBlock(),r.createElementBlock("svg",jv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const Zv=te(qv,[["render",Wv]]),Kv={},Gv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yv(t,e){return r.openBlock(),r.createElementBlock("svg",Gv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const Jv=te(Kv,[["render",Yv]]),Xv={},Qv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e2(t,e){return r.openBlock(),r.createElementBlock("svg",Qv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const t2=te(Xv,[["render",e2]]),n2={},o2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r2(t,e){return r.openBlock(),r.createElementBlock("svg",o2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const i2=te(n2,[["render",r2]]),s2={},a2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l2(t,e){return r.openBlock(),r.createElementBlock("svg",a2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",fill:"black"},null,-1),r.createElementVNode("path",{d:"M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",fill:"black"},null,-1)])])}const c2=te(s2,[["render",l2]]),u2={},d2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2(t,e){return r.openBlock(),r.createElementBlock("svg",d2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const p2=te(u2,[["render",f2]]),m2={},h2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g2(t,e){return r.openBlock(),r.createElementBlock("svg",h2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const v2=te(m2,[["render",g2]]),_2={},y2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C2(t,e){return r.openBlock(),r.createElementBlock("svg",y2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const b2=te(_2,[["render",C2]]),k2={},w2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E2(t,e){return r.openBlock(),r.createElementBlock("svg",w2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const S2=te(k2,[["render",E2]]),x2={},T2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A2(t,e){return r.openBlock(),r.createElementBlock("svg",T2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const N2=te(x2,[["render",A2]]),D2={},$2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B2(t,e){return r.openBlock(),r.createElementBlock("svg",$2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const M2=te(D2,[["render",B2]]),L2={},O2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V2(t,e){return r.openBlock(),r.createElementBlock("svg",O2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const I2=te(L2,[["render",V2]]),P2={},F2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R2(t,e){return r.openBlock(),r.createElementBlock("svg",F2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const z2=te(P2,[["render",R2]]),U2={},H2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q2(t,e){return r.openBlock(),r.createElementBlock("svg",H2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const j2=te(U2,[["render",q2]]),W2={},Z2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K2(t,e){return r.openBlock(),r.createElementBlock("svg",Z2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const G2=te(W2,[["render",K2]]),Y2={},J2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X2(t,e){return r.openBlock(),r.createElementBlock("svg",J2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const Q2=te(Y2,[["render",X2]]),e_={},t_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n_(t,e){return r.openBlock(),r.createElementBlock("svg",t_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const o_=te(e_,[["render",n_]]),r_={},i_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s_(t,e){return r.openBlock(),r.createElementBlock("svg",i_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const a_=te(r_,[["render",s_]]),l_={},c_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u_(t,e){return r.openBlock(),r.createElementBlock("svg",c_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const d_=te(l_,[["render",u_]]),f_=r.defineComponent({name:"LoadingIcon"});const p_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m_(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("svg",p_,[...e[0]||(e[0]=[r.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),r.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),r.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const h_=te(f_,[["render",m_],["__scopeId","data-v-ad6da4a9"]]),g_={},v_={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function __(t,e){return r.openBlock(),r.createElementBlock("svg",v_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const y_=te(g_,[["render",__]]),C_={},b_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k_(t,e){return r.openBlock(),r.createElementBlock("svg",b_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const w_=te(C_,[["render",k_]]),E_={},S_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x_(t,e){return r.openBlock(),r.createElementBlock("svg",S_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const T_=te(E_,[["render",x_]]),A_={},N_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D_(t,e){return r.openBlock(),r.createElementBlock("svg",N_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const $_=te(A_,[["render",D_]]),B_={},M_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L_(t,e){return r.openBlock(),r.createElementBlock("svg",M_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const O_=te(B_,[["render",L_]]),V_={},I_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P_(t,e){return r.openBlock(),r.createElementBlock("svg",I_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const F_=te(V_,[["render",P_]]),R_={},z_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U_(t,e){return r.openBlock(),r.createElementBlock("svg",z_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const H_=te(R_,[["render",U_]]),q_={},j_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W_(t,e){return r.openBlock(),r.createElementBlock("svg",j_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const Z_=te(q_,[["render",W_]]),K_={},G_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y_(t,e){return r.openBlock(),r.createElementBlock("svg",G_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const J_=te(K_,[["render",Y_]]),X_={},Q_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ey(t,e){return r.openBlock(),r.createElementBlock("svg",Q_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const ty=te(X_,[["render",ey]]),ny={},oy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ry(t,e){return r.openBlock(),r.createElementBlock("svg",oy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const iy=te(ny,[["render",ry]]),sy={},ay={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ly(t,e){return r.openBlock(),r.createElementBlock("svg",ay,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const cy=te(sy,[["render",ly]]),uy={},dy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fy(t,e){return r.openBlock(),r.createElementBlock("svg",dy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const py=te(uy,[["render",fy]]),my={},hy={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gy(t,e){return r.openBlock(),r.createElementBlock("svg",hy,[...e[0]||(e[0]=[r.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const vy=te(my,[["render",gy]]),_y={},yy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cy(t,e){return r.openBlock(),r.createElementBlock("svg",yy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const by=te(_y,[["render",Cy]]),ky={},wy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ey(t,e){return r.openBlock(),r.createElementBlock("svg",wy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const Sy=te(ky,[["render",Ey]]),xy={},Ty={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ay(t,e){return r.openBlock(),r.createElementBlock("svg",Ty,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const Ny=te(xy,[["render",Ay]]),Dy={},$y={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function By(t,e){return r.openBlock(),r.createElementBlock("svg",$y,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const My=te(Dy,[["render",By]]),Ly={},Oy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vy(t,e){return r.openBlock(),r.createElementBlock("svg",Oy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const Iy=te(Ly,[["render",Vy]]),Py={},Fy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ry(t,e){return r.openBlock(),r.createElementBlock("svg",Fy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const zy=te(Py,[["render",Ry]]),Uy={},Hy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qy(t,e){return r.openBlock(),r.createElementBlock("svg",Hy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const jy=te(Uy,[["render",qy]]),Wy={},Zy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ky(t,e){return r.openBlock(),r.createElementBlock("svg",Zy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const Gy=te(Wy,[["render",Ky]]),Yy={},Jy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xy(t,e){return r.openBlock(),r.createElementBlock("svg",Jy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const Qy=te(Yy,[["render",Xy]]),e3={},t3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n3(t,e){return r.openBlock(),r.createElementBlock("svg",t3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const o3=te(e3,[["render",n3]]),r3={},i3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s3(t,e){return r.openBlock(),r.createElementBlock("svg",i3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const a3=te(r3,[["render",s3]]),l3={},c3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u3(t,e){return r.openBlock(),r.createElementBlock("svg",c3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const d3=te(l3,[["render",u3]]),f3={},p3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m3(t,e){return r.openBlock(),r.createElementBlock("svg",p3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const h3=te(f3,[["render",m3]]),g3={},v3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _3(t,e){return r.openBlock(),r.createElementBlock("svg",v3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const y3=te(g3,[["render",_3]]),C3=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:p0,AccountCircle:v0,AccountTreeOutlineRounded:b0,AccountTreeRounded:S0,Add:N0,AddBoxOutlineRounded:M0,ArchiveOutlineRounded:I0,ArrowBackRounded:z0,ArrowDropDownRounded:j0,ArrowForwardRounded:G0,AssignmentOutlineRounded:Q0,AttachFileRounded:ov,CalendarTodayOutlineRounded:av,CancelRounded:dv,ChatOutline:hv,CheckBoxOutlineBlank:yv,CheckBoxOutlineBlankSharp:wv,CheckBoxOutlineRounded:Tv,CheckSmallRounded:$v,ChecklistRounded:Ov,ChevronLeft:Fv,ChevronRight:Hv,CloseRounded:Zv,ContactsOutlineRounded:Jv,ContentCopyOutline:t2,DeleteOutlineRounded:i2,DownloadRounded:c2,DragIndicator:p2,EditDocumentRounded:v2,EditOutline:b2,ErrorOutlineRounded:S2,FilterListRounded:N2,FlagRounded:M2,FlowsheetOutlineRounded:I2,GifBox:z2,GroupsOutline:j2,HomeOutlineRounded:G2,ImageRounded:Q2,Info:o_,KeyboardArrowDown:a_,KeyboardArrowUp:d_,Loading:h_,Lock:y_,LogoutRounded:w_,Menu:T_,MoreHoriz:$_,MoreTimeRounded:O_,MoreVert:F_,MountainFlagOutlineRounded:H_,PersonAddOutlineRounded:Z_,PictureAsPdfRounded:J_,RadioButtonChecked:ty,RadioButtonCheckedOutline:iy,RadioButtonUnchecked:cy,RemoveRounded:py,SearchRounded:vy,SelectCheckBox:by,SendRounded:Sy,Settings:Ny,SlideshowRounded:My,Target:Iy,TaskOutlineRounded:zy,TextSnippetRounded:jy,TimerOutline:Gy,ViewComfyAltRounded:Qy,ViewCompactAltRounded:o3,ViewTimelineRounded:a3,WarningOutlineRounded:d3,WarningRounded:h3,WaterfallChartRounded:y3},Symbol.toStringTag,{value:"Module"})),b3={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Aa={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Xc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},k3={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Xc,...k3});const wp={ROUND:"round",ROUNDED:"rounded"},w3={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ke=r.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Aa.MD}},setup(t){const e=t,n=r.computed(()=>C3[e.name]);return(o,i)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:r.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const E3=["type"],S3={key:0,class:"ao-button__label"},de=r.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>b3.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Aa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>wp.ROUNDED}},setup(t){const e=t,n=r.computed(()=>e.size),o=r.computed(()=>e.isLoading?"Loading":e.iconName);return(i,s)=>(r.openBlock(),r.createElementBlock("button",{type:t.type,class:r.normalizeClass(["ao-button",`ao-button--${t.variant}`,t.color?`ao-button--${t.color}`:"",`ao-button--${t.corners}`,t.footer?"ao-button--footer":"",t.size?`ao-button--${t.size}`:"",t.iconName&&t.iconPosition?`ao-button--icon-${t.iconPosition}`:"",i.$attrs.disabled?"ao-button--is-disabled":""])},[r.renderSlot(i.$slots,"default",{},()=>[t.label?(r.openBlock(),r.createElementBlock("span",S3,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createBlock(ke,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):r.createCommentVNode("",!0)],10,E3))}});function x3(t){const e=r.ref(!1),n=r.ref(""),o=r.computed(()=>"value"in t.value?"value":"innerHTML"),i=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await r.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await r.nextTick(()=>{c(d,u)})};return r.watch(e,async c=>{await r.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:i,onUpdate:l,onDiscard:a}}const gt=r.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(t,{emit:e}){const n=r.ref(null),o=t,i=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=x3(n),u=r.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=r.computed(()=>o.isEditable?s.value?{change:f,click:y=>y.stopPropagation(),blur:m}:{click:g,focus:g}:{}),f=l((y,C)=>{const _=C.target.value;i("update:title",_)}),p=c(),m=async()=>{s.value&&a(!1)},h=()=>{i("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return r.watch(()=>o.isEditable,y=>{y||p()}),(y,C)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.value),r.mergeProps({id:t.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${t.level}`,{[`ao-title--${t.color}`]:!!t.color,"ao-title--editable":t.isEditable,"ao-field__input ao-title--editing":r.unref(s),"ao-title--readonly":!r.unref(s)}],type:r.unref(s)?"text":null,value:r.unref(s)?t.title:null,tabindex:"0",onKeyup:r.withKeys(h,["enter"])},r.toHandlers(d.value),{onKeydown:r.withKeys(r.unref(p),["esc"])}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const T3={key:0,class:"ao-card-horiz__drag ao-card__drag"},A3={class:"ao-card-horiz__header"},N3={key:0,class:"ao-card-horiz__avatar"},D3={class:"ao-card-horiz__title-group"},$3={key:0,class:"ao-card-horiz__subtitle"},B3={key:1,class:"ao-card-horiz__header"},M3={key:1,class:"ao-card-horiz__body"},L3={key:2,class:"ao-card-horiz__footer"},O3={key:3,class:"ao-card-horiz__secondary"},Ep=r.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(t,{emit:e}){const n=e,o=i=>{n("update:title",i)};return(i,s)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:r.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:r.withCtx(()=>[t.isDraggable?(r.openBlock(),r.createElementBlock("div",T3,[r.createVNode(ke,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):r.createCommentVNode("",!0),r.createElementVNode("div",A3,[t.icon?(r.openBlock(),r.createElementBlock("div",N3,[r.createVNode(ke,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):r.createCommentVNode("",!0),r.createElementVNode("div",D3,[r.createVNode(gt,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),r.renderSlot(i.$slots,"subtitle",{},()=>[t.subtitle?(r.openBlock(),r.createElementBlock("span",$3,r.toDisplayString(t.subtitle),1)):r.createCommentVNode("",!0)])]),i.$slots.header?(r.openBlock(),r.createElementBlock("div",B3,[r.renderSlot(i.$slots,"header")])):r.createCommentVNode("",!0)]),i.$slots.default?(r.openBlock(),r.createElementBlock("div",M3,[r.renderSlot(i.$slots,"default")])):r.createCommentVNode("",!0),i.$slots.footer?(r.openBlock(),r.createElementBlock("div",L3,[r.renderSlot(i.$slots,"footer")])):r.createCommentVNode("",!0),i.$slots.secondary?(r.openBlock(),r.createElementBlock("div",O3,[r.renderSlot(i.$slots,"secondary")])):r.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Ii=r.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=r.computed(()=>e.clickable?"button":"span"),o=r.computed(()=>n.value==="button"?{type:"button"}:{});return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:r.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),r.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>i.$emit("click",a))}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.variant===r.unref(w3).SOLID_ICON&&t.iconName?(r.openBlock(),r.createBlock(ke,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):r.createCommentVNode("",!0)]),_:1},16)),t.closable?(r.openBlock(),r.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>i.$emit("close",a))},[r.createVNode(ke,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):r.createCommentVNode("",!0)],6))}});const Pi={todo:"todo",done:"done",archived:"archived"},V3={months:"months",weeks:"weeks",days:"days"},I3={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},Sp={BEFORE:"before",AFTER:"after"},xp={START:"start",end:"end"},Tp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},je={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var Ap=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(Ap||{});const P3={add:"add",remove:"remove",moved:"moved"};var Np=(t=>(t.HOURS="hours",t.DAYS="days",t))(Np||{});const an={project:"projectId",assignee:"assigneeId",sprint:"sprintId",milestone:"milestoneId"};function Ys(t){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ys(t)}function Zn(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function nt(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function At(t){nt(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Ys(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 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 F3(t,e){nt(2,arguments);var n=At(t).getTime(),o=Zn(e);return new Date(n+o)}var R3={};function Xi(){return R3}function Fi(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function xd(t){nt(1,arguments);var e=At(t);return e.setHours(0,0,0,0),e}var z3=864e5;function U3(t,e){nt(2,arguments);var n=xd(t),o=xd(e),i=n.getTime()-Fi(n),s=o.getTime()-Fi(o);return Math.round((i-s)/z3)}function H3(t,e){nt(2,arguments);var n=At(t),o=At(e),i=n.getTime()-o.getTime();return i<0?-1:i>0?1:i}var Dp=6e4,$p=36e5;function q3(t){return nt(1,arguments),t instanceof Date||Ys(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Bp(t){if(nt(1,arguments),!q3(t)&&typeof t!="number")return!1;var e=At(t);return!isNaN(Number(e))}function uc(t,e){nt(2,arguments);var n=Zn(e);return F3(t,-n)}var j3=864e5;function W3(t){nt(1,arguments);var e=At(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),i=n-o;return Math.floor(i/j3)+1}function Js(t){nt(1,arguments);var e=1,n=At(t),o=n.getUTCDay(),i=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Mp(t){nt(1,arguments);var e=At(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var i=Js(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Js(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Z3(t){nt(1,arguments);var e=Mp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Js(n);return o}var K3=6048e5;function G3(t){nt(1,arguments);var e=At(t),n=Js(e).getTime()-Z3(e).getTime();return Math.round(n/K3)+1}function Xs(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Xi(),f=Zn((n=(o=(i=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=At(t),m=p.getUTCDay(),h=(m<f?7:0)+m-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Lp(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=At(t),f=d.getUTCFullYear(),p=Xi(),m=Zn((n=(o=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&o!==void 0?o:(c=p.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,m),h.setUTCHours(0,0,0,0);var g=Xs(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Xs(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Y3(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Xi(),f=Zn((n=(o=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=Lp(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Xs(m,e);return h}var J3=6048e5;function X3(t,e){nt(1,arguments);var n=At(t),o=Xs(n,e).getTime()-Y3(n,e).getTime();return Math.round(o/J3)+1}function Oe(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Q3={y:function(e,n){var o=e.getUTCFullYear(),i=o>0?o:1-o;return Oe(n==="yy"?i%100:i,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Oe(o+1,2)},d:function(e,n){return Oe(e.getUTCDate(),n.length)},a:function(e,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h:function(e,n){return Oe(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Oe(e.getUTCHours(),n.length)},m:function(e,n){return Oe(e.getUTCMinutes(),n.length)},s:function(e,n){return Oe(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,i=e.getUTCMilliseconds(),s=Math.floor(i*Math.pow(10,o-3));return Oe(s,n.length)}};const so=Q3;var mr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},e5={G:function(e,n,o){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"});case"GGGGG":return o.era(i,{width:"narrow"});case"GGGG":default:return o.era(i,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var i=e.getUTCFullYear(),s=i>0?i:1-i;return o.ordinalNumber(s,{unit:"year"})}return so.y(e,n)},Y:function(e,n,o,i){var s=Lp(e,i),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Oe(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Oe(a,n.length)},R:function(e,n){var o=Mp(e);return Oe(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Oe(o,n.length)},Q:function(e,n,o){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Oe(i,2);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,o){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Oe(i,2);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,o){var i=e.getUTCMonth();switch(n){case"M":case"MM":return so.M(e,n);case"Mo":return o.ordinalNumber(i+1,{unit:"month"});case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,o){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Oe(i+1,2);case"Lo":return o.ordinalNumber(i+1,{unit:"month"});case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,o,i){var s=X3(e,i);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Oe(s,n.length)},I:function(e,n,o){var i=G3(e);return n==="Io"?o.ordinalNumber(i,{unit:"week"}):Oe(i,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):so.d(e,n)},D:function(e,n,o){var i=W3(e);return n==="Do"?o.ordinalNumber(i,{unit:"dayOfYear"}):Oe(i,n.length)},E:function(e,n,o){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"});case"EEEE":default:return o.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,o,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Oe(a,2);case"eo":return o.ordinalNumber(a,{unit:"day"});case"eee":return o.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(s,{width:"short",context:"formatting"});case"eeee":default:return o.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,o,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Oe(a,n.length);case"co":return o.ordinalNumber(a,{unit:"day"});case"ccc":return o.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(s,{width:"narrow",context:"standalone"});case"cccccc":return o.day(s,{width:"short",context:"standalone"});case"cccc":default:return o.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,o){var i=e.getUTCDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return Oe(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(i,{width:"short",context:"formatting"});case"iiii":default:return o.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,o){var i=e.getUTCHours(),s=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,o){var i=e.getUTCHours(),s;switch(i===12?s=mr.noon:i===0?s=mr.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,o){var i=e.getUTCHours(),s;switch(i>=17?s=mr.evening:i>=12?s=mr.afternoon:i>=4?s=mr.morning:s=mr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),o.ordinalNumber(i,{unit:"hour"})}return so.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):so.H(e,n)},K:function(e,n,o){var i=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},k:function(e,n,o){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?o.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):so.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):so.s(e,n)},S:function(e,n){return so.S(e,n)},X:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Ad(a);case"XXXX":case"XX":return Oo(a);case"XXXXX":case"XXX":default:return Oo(a,":")}},x:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Ad(a);case"xxxx":case"xx":return Oo(a);case"xxxxx":case"xxx":default:return Oo(a,":")}},O:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Td(a,":");case"OOOO":default:return"GMT"+Oo(a,":")}},z:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Td(a,":");case"zzzz":default:return"GMT"+Oo(a,":")}},t:function(e,n,o,i){var s=i._originalDate||e,a=Math.floor(s.getTime()/1e3);return Oe(a,n.length)},T:function(e,n,o,i){var s=i._originalDate||e,a=s.getTime();return Oe(a,n.length)}};function Td(t,e){var n=t>0?"-":"+",o=Math.abs(t),i=Math.floor(o/60),s=o%60;if(s===0)return n+String(i);var a=e||"";return n+String(i)+a+Oe(s,2)}function Ad(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Oe(Math.abs(t)/60,2)}return Oo(t,e)}function Oo(t,e){var n=e||"",o=t>0?"-":"+",i=Math.abs(t),s=Oe(Math.floor(i/60),2),a=Oe(i%60,2);return o+s+n+a}const t5=e5;var Nd=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Op=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},n5=function(e,n){var o=e.match(/(P+)(p+)?/)||[],i=o[1],s=o[2];if(!s)return Nd(e,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Nd(i,n)).replace("{{time}}",Op(s,n))},o5={p:Op,P:n5};const r5=o5;var i5=["D","DD"],s5=["YY","YYYY"];function a5(t){return i5.indexOf(t)!==-1}function l5(t){return s5.indexOf(t)!==-1}function Dd(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) 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(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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 c5={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"}},u5=function(e,n,o){var i,s=c5[e];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+i:i+" ago":i};const d5=u5;function bl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var f5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},p5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},m5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},h5={date:bl({formats:f5,defaultWidth:"full"}),time:bl({formats:p5,defaultWidth:"full"}),dateTime:bl({formats:m5,defaultWidth:"full"})};const g5=h5;var v5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_5=function(e,n,o,i){return v5[e]};const y5=_5;function fi(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",i;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return i[u]}}var C5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},b5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},k5={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"]},w5={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"]},E5={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"}},S5={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"}},x5=function(e,n){var o=Number(e),i=o%100;if(i>20||i<10)switch(i%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},T5={ordinalNumber:x5,era:fi({values:C5,defaultWidth:"wide"}),quarter:fi({values:b5,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:fi({values:k5,defaultWidth:"wide"}),day:fi({values:w5,defaultWidth:"wide"}),dayPeriod:fi({values:E5,defaultWidth:"wide",formattingValues:S5,defaultFormattingWidth:"wide"})};const A5=T5;function pi(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?D5(l,function(f){return f.test(a)}):N5(l,function(f){return f.test(a)}),u;u=t.valueCallback?t.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(a.length);return{value:u,rest:d}}}function N5(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function D5(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function $5(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(t.matchPattern);if(!o)return null;var i=o[0],s=e.match(t.parsePattern);if(!s)return null;var a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(i.length);return{value:a,rest:l}}}var B5=/^(\d+)(th|st|nd|rd)?/i,M5=/\d+/i,L5={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},O5={any:[/^b/i,/^(a|c)/i]},V5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},I5={any:[/1/i,/2/i,/3/i,/4/i]},P5={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},F5={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]},R5={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},z5={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]},U5={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},H5={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}},q5={ordinalNumber:$5({matchPattern:B5,parsePattern:M5,valueCallback:function(e){return parseInt(e,10)}}),era:pi({matchPatterns:L5,defaultMatchWidth:"wide",parsePatterns:O5,defaultParseWidth:"any"}),quarter:pi({matchPatterns:V5,defaultMatchWidth:"wide",parsePatterns:I5,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:pi({matchPatterns:P5,defaultMatchWidth:"wide",parsePatterns:F5,defaultParseWidth:"any"}),day:pi({matchPatterns:R5,defaultMatchWidth:"wide",parsePatterns:z5,defaultParseWidth:"any"}),dayPeriod:pi({matchPatterns:U5,defaultMatchWidth:"any",parsePatterns:H5,defaultParseWidth:"any"})};const j5=q5;var W5={code:"en-US",formatDistance:d5,formatLong:g5,formatRelative:y5,localize:A5,match:j5,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Vp=W5;var Z5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G5=/^'([^]*?)'?$/,Y5=/''/g,J5=/[a-zA-Z]/;function Qc(t,e,n){var o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b;nt(2,arguments);var w=String(e),k=Xi(),A=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&o!==void 0?o:Vp,T=Zn((s=(a=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Zn((m=(h=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(C=n.locale)===null||C===void 0||(v=C.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&g!==void 0?g:k.weekStartsOn)!==null&&h!==void 0?h:(_=k.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&m!==void 0?m:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var E=At(t);if(!Bp(E))throw new RangeError("Invalid time value");var D=Fi(E),x=uc(E,D),$={firstWeekContainsDate:T,weekStartsOn:S,locale:A,_originalDate:E},B=w.match(K5).map(function(V){var I=V[0];if(I==="p"||I==="P"){var W=r5[I];return W(V,A.formatLong)}return V}).join("").match(Z5).map(function(V){if(V==="''")return"'";var I=V[0];if(I==="'")return X5(V);var W=t5[I];if(W)return!(n!=null&&n.useAdditionalWeekYearTokens)&&l5(V)&&Dd(V,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&a5(V)&&Dd(V,e,String(t)),W(x,V,A.localize,$);if(I.match(J5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return V}).join("");return B}function X5(t){var e=t.match(G5);return e?e[1].replace(Y5,"'"):t}function Q5(t,e,n){var o,i,s,a,l,c,u,d,f,p;nt(2,arguments);var m=At(t),h=At(e),g=Xi(),y=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:g.locale)!==null&&o!==void 0?o:Vp,C=Zn((s=(a=(l=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&a!==void 0?a:(f=g.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&s!==void 0?s:0);if(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var v=U3(m,h);if(isNaN(v))throw new RangeError("Invalid time value");var _;v<-6?_="other":v<-1?_="lastWeek":v<0?_="yesterday":v<1?_="today":v<2?_="tomorrow":v<7?_="nextWeek":_="other";var b=uc(m,Fi(m)),w=uc(h,Fi(h)),k=y.formatRelative(_,b,w,{locale:y,weekStartsOn:C});return Qc(m,k,{locale:y,weekStartsOn:C})}function Br(t,e){var n;nt(1,arguments);var o=Zn((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=oC(t),s;if(i.date){var a=rC(i.date,o);s=iC(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(i.time&&(c=sC(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(u=aC(i.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(l+c+u)}var Ss={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},eC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function oC(t){var e={},n=t.split(Ss.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],Ss.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Ss.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var i=Ss.timezone.exec(o);i?(e.time=o.replace(i[1],""),e.timezone=i[1]):e.time=o}return e}function rC(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var i=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function iC(t,e){if(e===null)return new Date(NaN);var n=t.match(eC);if(!n)return new Date(NaN);var o=!!n[4],i=mi(n[1]),s=mi(n[2])-1,a=mi(n[3]),l=mi(n[4]),c=mi(n[5])-1;if(o)return fC(e,l,c)?lC(e,l,c):new Date(NaN);var u=new Date(0);return!uC(e,s,a)||!dC(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}function mi(t){return t?parseInt(t):1}function sC(t){var e=t.match(tC);if(!e)return NaN;var n=kl(e[1]),o=kl(e[2]),i=kl(e[3]);return pC(n,o,i)?n*$p+o*Dp+i*1e3:NaN}function kl(t){return t&&parseFloat(t.replace(",","."))||0}function aC(t){if(t==="Z")return 0;var e=t.match(nC);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return mC(o,i)?n*(o*$p+i*Dp):NaN}function lC(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var i=o.getUTCDay()||7,s=(e-1)*7+n+1-i;return o.setUTCDate(o.getUTCDate()+s),o}var cC=[31,null,31,30,31,30,31,31,30,31,30,31];function Ip(t){return t%400===0||t%4===0&&t%100!==0}function uC(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(cC[e]||(Ip(t)?29:28))}function dC(t,e){return e>=1&&e<=(Ip(t)?366:365)}function fC(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function pC(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function mC(t,e){return e>=0&&e<=59}var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hC(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gC(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(e,i);return new s}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return t[o]}})}),n}var Xe={},Pp={},hi={},Qi={},Wr={},Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.lexoHelper=void 0;Na.lexoHelper={arrayCopy:vC};function vC(t,e,n,o,i){let s=o;const a=e+i;for(let l=e;l<a;l++)n[s]=t[l],++s}var es={};Object.defineProperty(es,"__esModule",{value:!0});class _C{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}es.default=_C;Object.defineProperty(Wr,"__esModule",{value:!0});Wr.LexoInteger=void 0;const xs=Na,yC=es;class _e{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,i=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),i=-1);const s=new Array(o.length);let a=s.length-1;for(let l=0;a>=0;++l)s[l]=n.toDigit(o.charAt(a)),--a;return _e.make(n,i,s)}static zero(e){return new _e(e,0,_e.ZERO_MAG)}static one(e){return _e.make(e,1,_e.ONE_MAG)}static make(e,n,o){let i;for(i=o.length;i>0&&o[i-1]===0;--i);if(i===0)return _e.zero(e);if(i===o.length)return new _e(e,n,o);const s=new Array(i).fill(0);return xs.lexoHelper.arrayCopy(o,0,s,0,i),new _e(e,n,s)}static add(e,n,o){const i=Math.max(n.length,o.length),s=new Array(i).fill(0);let a=0;for(let l=0;l<i;++l){const c=l<n.length?n[l]:0,u=l<o.length?o[l]:0;let d=c+u+a;for(a=0;d>=e.getBase();d-=e.getBase())++a;s[l]=d}return _e.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return xs.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const i=_e.complement(e,o,n.length),s=_e.add(e,n,i);return s[s.length-1]=0,_e.add(e,s,_e.ONE_MAG)}static multiply(e,n,o){const i=new Array(n.length+o.length).fill(0);for(let s=0;s<n.length;++s)for(let a=0;a<o.length;++a){const l=s+a;for(i[l]+=n[s]*o[a];i[l]>=e.getBase();i[l]-=e.getBase())++i[l+1]}return i}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const i=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)i[s]=e.getBase()-1-n[s];return i}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=_e.add(this.sys,this.mag,e.mag);return _e.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=_e.compare(this.mag,e.mag);return n===0?_e.zero(this.sys):n<0?_e.make(this.sys,this.sign===-1?1:-1,_e.subtract(this.sys,e.mag,this.mag)):_e.make(this.sys,this.sign===-1?-1:1,_e.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?_e.make(this.sys,1,e.mag):_e.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?_e.make(this.sys,1,this.mag):_e.make(this.sys,-1,this.mag);const n=_e.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?_e.make(this.sys,1,n):_e.make(this.sys,-1,n)}negate(){return this.isZero()?this:_e.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return xs.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),_e.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return _e.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return xs.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),_e.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return _e.make(this.sys,this.sign,_e.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=_e.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?_e.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new yC.default,n=this.mag,o=n.length;for(let i=0;i<o;++i){const s=n[i];e.insert(0,this.sys.toChar(s))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}Wr.LexoInteger=_e;_e.ZERO_MAG=[0];_e.ONE_MAG=[1];_e.NEGATIVE_SIGN=-1;_e.ZERO_SIGN=0;_e.POSITIVE_SIGN=1;Object.defineProperty(Qi,"__esModule",{value:!0});Qi.LexoDecimal=void 0;const gi=Wr,CC=es;class Zt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Zt.make(gi.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Zt.make(gi.LexoInteger.parse(e,n),0);const i=e.substring(0,o)+e.substring(o+1);return Zt.make(gi.LexoInteger.parse(i,n),e.length-1-o)}static from(e){return Zt.make(e,0)}static make(e,n){if(e.isZero())return new Zt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const i=e.shiftRight(o),s=n-o;return new Zt(i,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,i=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)i=i.shiftLeft(),++s;return Zt.make(n.add(i),o)}subtract(e){let n=this.mag,o=this.sig,i=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)i=i.shiftLeft(),++s;return Zt.make(n.subtract(i),o)}multiply(e){return Zt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(gi.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let i=this.mag.shiftRight(o);return n&&(i=i.add(gi.LexoInteger.one(i.getSystem()))),Zt.make(i,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new CC.default(e),o=n[0],i=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(i&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),i&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}Qi.LexoDecimal=Zt;var Ts={},$d;function Fp(){if($d)return Ts;$d=1,Object.defineProperty(Ts,"__esModule",{value:!0});const t=Wr,e=zp();class n{constructor(i){this.value=t.LexoInteger.parse(i,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new n("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new n("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new n("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[n.BUCKET_0,n.BUCKET_1,n.BUCKET_2]),this._VALUES}static max(){return n.VALUES[n.VALUES.length-1]}static from(i){const s=t.LexoInteger.parse(i,e.LexoRank.NUMERAL_SYSTEM),a=n.VALUES,l=a.length;for(let c=0;c<l;++c){const u=a[c];if(u.value.equals(s))return u}throw new Error("Unknown bucket: "+i)}static resolve(i){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(i.toString())))return c}throw new Error("No bucket found with id "+i)}format(){return this.value.format()}next(){return this.equals(n.BUCKET_0)?n.BUCKET_1:this.equals(n.BUCKET_1)?n.BUCKET_2:this.equals(n.BUCKET_2)?n.BUCKET_0:n.BUCKET_2}prev(){return this.equals(n.BUCKET_0)?n.BUCKET_2:this.equals(n.BUCKET_1)?n.BUCKET_0:this.equals(n.BUCKET_2)?n.BUCKET_1:n.BUCKET_0}equals(i){return this===i?!0:i?this.value.equals(i.value):!1}}return Ts.default=n,Ts}var eu={},Rp={};Object.defineProperty(Rp,"__esModule",{value:!0});var Da={};Object.defineProperty(Da,"__esModule",{value:!0});Da.LexoNumeralSystem10=void 0;class bC{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}Da.LexoNumeralSystem10=bC;var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.LexoNumeralSystem36=void 0;class kC{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}$a.LexoNumeralSystem36=kC;var Ba={};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.LexoNumeralSystem64=void 0;class wC{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Ba.LexoNumeralSystem64=wC;(function(t){var e=Bt&&Bt.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=Bt&&Bt.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Rp,t),n(Da,t),n($a,t),n(Ba,t)})(eu);var Bd;function zp(){if(Bd)return hi;Bd=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.LexoRank=void 0;const t=Qi,e=Fp(),n=es,o=eu;class i{constructor(a,l){this.value=a.format()+"|"+i.formatDecimal(l),this.bucket=a,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=t.LexoDecimal.parse("0",i.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",i.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",i.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=i.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",i.NUMERAL_SYSTEM).subtract(i.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=i.between(i.MIN_DECIMAL,i.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",i.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(i.NUMERAL_SYSTEM.toChar(i.NUMERAL_SYSTEM.getBase()-2)+"00000",i.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return i.from(e.default.BUCKET_0,i.MIN_DECIMAL)}static middle(){const a=i.min();return a.between(i.max(a.bucket))}static max(a=e.default.BUCKET_0){return i.from(a,i.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?i.from(a,i.INITIAL_MIN_DECIMAL):i.from(a,i.INITIAL_MAX_DECIMAL)}static between(a,l){if(a.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=a,u=l,d;if(a.getScale()<l.getScale()){if(d=l.setScale(a.getScale(),!1),a.compareTo(d)>=0)return i.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return i.mid(a,l);c=d}let f;for(let h=c.getScale();h>0;u=f){const g=h-1,y=c.setScale(g,!0);if(f=u.setScale(g,!1),y.compareTo(f)===0)return i.checkMid(a,l,y);if(y.compareTo(f)>0)break;h=g,c=y}let p=i.middleInternal(a,l,c,u),m;for(let h=p.getScale();h>0;h=m){m=h-1;const g=p.setScale(m);if(a.compareTo(g)>=0||g.compareTo(l)>=0)break;p=g}return p}static parse(a){const l=a.split("|"),c=e.default.from(l[0]),u=t.LexoDecimal.parse(l[1],i.NUMERAL_SYSTEM);return new i(c,u)}static from(a,l){if(l.getSystem().getBase()!==i.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new i(a,l)}static middleInternal(a,l,c,u){const d=i.mid(c,u);return i.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?i.mid(a,l):c}static mid(a,l){const u=a.add(l).multiply(t.LexoDecimal.half(a.getSystem())),d=a.getScale()>l.getScale()?a.getScale():l.getScale();if(u.getScale()>d){const f=u.setScale(d,!1);if(f.compareTo(a)>0)return f;const p=u.setScale(d,!0);if(p.compareTo(l)<0)return p}return u}static formatDecimal(a){const l=a.format(),c=new n.default(l);let u=l.indexOf(i.NUMERAL_SYSTEM.getRadixPointChar());const d=i.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(i.NUMERAL_SYSTEM.getRadixPointChar()));u<6;)c.insert(0,d),++u;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new i(this.bucket,i.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(i.EIGHT_DECIMAL);return c.compareTo(i.MIN_DECIMAL)<=0&&(c=i.between(i.MIN_DECIMAL,this.decimal)),new i(this.bucket,c)}genNext(){if(this.isMin())return new i(this.bucket,i.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(i.EIGHT_DECIMAL);return c.compareTo(i.MAX_DECIMAL)>=0&&(c=i.between(this.decimal,i.MAX_DECIMAL)),new i(this.bucket,c)}between(a){if(!this.bucket.equals(a.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(a.decimal);if(l>0)return new i(this.bucket,i.between(a.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+a+" this.decimal="+this.decimal+" other.decimal="+a.decimal);return new i(this.bucket,i.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return i.from(this.bucket.next(),this.decimal)}inPrevBucket(){return i.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(i.MIN_DECIMAL)}isMax(){return this.decimal.equals(i.MAX_DECIMAL)}format(){return this.value}equals(a){return this===a?!0:a?this.value===a.value:!1}toString(){return this.value}compareTo(a){return this===a?0:a?this.value.localeCompare(a.value):1}}return hi.LexoRank=i,hi}(function(t){var e=Bt&&Bt.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=Bt&&Bt.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(zp(),t),n(Fp(),t),n(Qi,t),n(Wr,t)})(Pp);(function(t){var e=Bt&&Bt.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=Bt&&Bt.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Pp,t),n(eu,t)})(Xe);const Ei=60,EC=8,Md=Ei*EC;function Ma(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Md),i=Math.floor(t%Md/Ei);if(o>0&&i>0)return`${o}d ${i}h`;if(o>0)return`${o}d`;{const s=t%Ei;return s>0?`${i}h ${s}m`:`${i}h`}}else{const o=Math.floor(t/Ei),i=t%Ei;return o>0&&i>0?`${o}h ${i}m`:o>0?`${o}h`:`${i}m`}}function Up(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.activities)==null?void 0:o.length)??0)},0))??0}function SC(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.milestones)==null?void 0:o.length)??0)},0))??0}function xC(t){return(t==null?void 0:t.reduce((e,n)=>{var i;const o=(i=n.milestones)!=null&&i.length?Up(n.milestones):0;return e+o},0))??0}function TC(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function ts(t,e){if(t.moved)return Mr(e,t.moved.newIndex)}function Mr(t,e){if(e===0)if(t.length>1){const n=t[e+1];return Xe.LexoRank.parse(n.rank).genPrev().format()}else return Xe.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return Xe.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return Xe.LexoRank.parse(o.rank).between(Xe.LexoRank.parse(n.rank)).format()}}function ns(t){if(t.length===0)return Xe.LexoRank.middle().format();const e=t[0];return Xe.LexoRank.parse(e.rank).genPrev().format()}function tu(t,e){if(e===0)return[];let n;if(t.length===0)n=Xe.LexoRank.middle();else{const i=t[t.length-1];n=Xe.LexoRank.parse(i.rank).genNext()}const o=[];for(let i=0;i<e;i++)o.push(n.format()),n=n.genNext();return o}function La(t,e="dd/MM/yyyy"){if(!t)return"";const n=Br(t);return Bp(n)?Qc(n,e):""}function nu(t,e){return t.status.id===e.id}function AC(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!nu(n,e))}function NC(t,e){return{...t,status:AC(t,e)?Pi.done:Pi.todo}}const Hp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function DC(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${i}, ${s}, ${e})`}function $C(t,e=.15){var n;if(t.startsWith("#"))return DC(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(i=>i.trim());if(o&&o.length>=3){const[i,s,a]=o;return`rgba(${i}, ${s}, ${a}, ${e})`}}return t}function qp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Ld(t,e){const n=e.filter(i=>i.firstName||i.lastName).map(i=>({id:i.id,name:qp(i)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(i=>i[1]);return Array.from(new Set(n.filter(i=>o.includes(i.name)).map(i=>i.id)))}const BC=["title"],MC={key:0,className:"ao-avatar__initials"},LC=["src"],Xn=r.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Aa.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=TC(n.userName),a=l=>{o("close",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",{role:"img",class:r.normalizeClass(i.value),title:t.userName},[t.avatarUrl?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",MC,r.toDisplayString(r.unref(s)),1)),t.avatarUrl?(r.openBlock(),r.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,LC)):r.createCommentVNode("",!0),t.isClosable?(r.openBlock(),r.createBlock(de,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:r.withModifiers(a,["stop"])},null,8,["color"])):r.createCommentVNode("",!0)],10,BC))}});const OC={class:"ao-card-template__subitems"},VC={class:"ao-card-template__subitem"},IC={class:"ao-card-template__subitem-number"},PC={class:"ao-card-template__subitem"},FC={class:"ao-card-template__subitem"},RC={class:"ao-card-template__body"},zC={class:"ao-card-template__col ao-card-template__col--phases"},UC={class:"ao-card-template__col-title"},HC={class:"ao-card-template__col-label"},qC={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},jC={class:"ao-card-template__footer"},WC={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},ZC={class:"ao-card-template__col-title"},KC={class:"ao-card-template__col-label"},GC={class:"ao-card-template__col-body"},YC={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},JC={class:"ao-card-template__col-title"},XC={class:"ao-card-template__col-label"},QC={class:"ao-card-template__col-body"},e7={class:"ao-card-template-item__secondary"},wl=5,t7=r.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,i=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=r.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,wl))??[]}),l=r.computed(()=>n.phases&&n.phases.length>wl?n.phases.length-wl:0);return(c,u)=>(r.openBlock(),r.createBlock(Ep,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":i},r.createSlots({subtitle:r.withCtx(()=>[r.createElementVNode("ul",OC,[r.createElementVNode("li",VC,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",IC,r.toDisplayString(t.milestones),1)]),r.createElementVNode("li",PC,[r.createVNode(ke,{name:"TaskOutlineRounded",size:"sm"}),r.createElementVNode("span",FC,r.toDisplayString(t.activities),1)])])]),default:r.withCtx(()=>[r.createElementVNode("div",RC,[r.createElementVNode("div",zC,[r.createElementVNode("div",UC,[r.createVNode(ke,{name:"WaterfallChartRounded",size:"sm"}),r.createElementVNode("span",HC,r.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(r.openBlock(),r.createElementBlock("ul",qC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,d=>(r.openBlock(),r.createBlock(Ii,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(r.openBlock(),r.createBlock(Ii,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)])])]),secondary:r.withCtx(()=>[r.createElementVNode("div",e7,[r.createVNode(de,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=r.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:r.withCtx(()=>[r.createElementVNode("div",jC,[t.updatedAt?(r.openBlock(),r.createElementBlock("div",WC,[r.createElementVNode("div",ZC,[r.createElementVNode("span",KC,r.toDisplayString(c.$t("template.updatedAt.label")),1)]),r.createElementVNode("div",GC,[r.createElementVNode("span",null,r.toDisplayString(t.updatedAt),1)])])):r.createCommentVNode("",!0),t.updatedBy?(r.openBlock(),r.createElementBlock("div",YC,[r.createElementVNode("div",JC,[r.createElementVNode("span",XC,r.toDisplayString(c.$t("template.updatedBy.label")),1)]),r.createElementVNode("div",QC,[r.createVNode(Xn,{"user-name":t.updatedBy},null,8,["user-name"])])])):r.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const n7={class:"ao-page-header"},o7={class:"ao-page-header-main"},r7={key:0,class:"ao-page-header-secondary"},os=r.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",n7,[r.createElementVNode("div",o7,[t.canGoBack?(r.openBlock(),r.createBlock(de,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(r.openBlock(),r.createElementBlock("div",r7,[r.renderSlot(e.$slots,"secondary")])):r.createCommentVNode("",!0)]))}});const i7=["type"],s7={key:0,class:"ao-button-card__label"},Eo=r.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Xc.BLACK},size:{default:()=>Aa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>wp.ROUNDED}},setup(t){const e=t,n=r.computed(()=>e.size),o=r.computed(()=>e.isLoading?"Loading":e.iconName);return(i,s)=>(r.openBlock(),r.createElementBlock("button",{type:t.type,class:r.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,i.$attrs.disabled?"ao-button-card--is-disabled":""])},[r.renderSlot(i.$slots,"default",{},()=>[t.label?(r.openBlock(),r.createElementBlock("span",s7,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createBlock(ke,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):r.createCommentVNode("",!0)],10,i7))}});const a7={class:"ao-card-template-item__footer"},l7={key:0,class:"ao-card-template-item__subitem"},c7={class:"ao-card-template-item__subitem-number"},u7={class:"ao-card-template-item__secondary"},ou=r.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(t,{emit:e}){const n=e,o=l=>{n("update:title",l)},i=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(r.openBlock(),r.createBlock(Ep,{"onUpdate:title":o},{footer:r.withCtx(()=>[r.createElementVNode("ul",a7,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(i,u=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:u},[l.$props[u]?(r.openBlock(),r.createElementBlock("li",l7,[r.createVNode(ke,{name:s[u],size:"sm"},null,8,["name"]),r.createElementVNode("span",c7,r.toDisplayString(l.$props[u]),1)])):r.createCommentVNode("",!0)],64))),64))])]),secondary:r.withCtx(()=>[r.createElementVNode("div",u7,[r.createVNode(de,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:r.withModifiers(a,["stop"])})])]),_:1}))}});const d7=r.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=r.computed(()=>{var i;return(i=e.milestones)==null?void 0:i.length}),o=r.computed(()=>e.milestones?Up(e.milestones):0);return(i,s)=>(r.openBlock(),r.createBlock(ou,r.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},i.$attrs),{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),f7=r.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=r.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,i)=>(r.openBlock(),r.createBlock(ou,{activities:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),p7={class:"ao-list__footer"},m7=r.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("addMilestone",{phaseId:n.phase.id})},s=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},a=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const u=ts(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(r.openBlock(),r.createBlock(r.unref(wo),{key:0,"model-value":t.phase.milestones,class:"ao-templates__list",title:c.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:r.withCtx(()=>[r.createVNode(gt,{title:"Milestones",level:3,class:"ao-list__title"})]),item:r.withCtx(({element:d})=>[(r.openBlock(),r.createBlock(f7,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":t.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":f=>a({id:d.id,name:f}),onClick:f=>c.$router.push({params:{milestoneId:d.id}}),onRemove:()=>s(d.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:r.withCtx(()=>[r.createElementVNode("div",p7,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),h7=r.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=r.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,i)=>(r.openBlock(),r.createBlock(ou,{tasks:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),g7={class:"ao-list__footer"},v7=r.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=ts(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(r.openBlock(),r.createBlock(r.unref(wo),{key:0,"model-value":t.milestone.activities,title:c.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:r.withCtx(()=>[r.createVNode(gt,{title:"Activities",level:3,class:"ao-list__title"})]),item:r.withCtx(({element:d})=>[(r.openBlock(),r.createBlock(h7,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":t.activityId===d.id,"is-draggable":!0,"onUpdate:title":f=>s({id:d.id,name:f}),onClick:f=>c.$router.push({params:{activityId:d.id}}),onRemove:()=>a(d.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:r.withCtx(()=>[r.createElementVNode("div",g7,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),_7={class:"ao-modal"},y7={key:0,class:"ao-modal__header"},C7={class:"ao-modal__header-meta"},b7={class:"ao-modal__title-group"},k7={class:"ao-modal__body"},w7={key:1,class:"ao-modal__footer"},Oa=r.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),r.createElementVNode("div",_7,[e.$slots.header?(r.openBlock(),r.createElementBlock("div",y7,[r.createElementVNode("div",C7,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),r.createElementVNode("header",b7,[r.renderSlot(e.$slots,"header")])])):r.createCommentVNode("",!0),r.createElementVNode("div",k7,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",w7,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])],2))}});const Ri=Math.min,Kt=Math.max,Qs=Math.round,As=Math.floor,_o=t=>({x:t,y:t}),E7={left:"right",right:"left",bottom:"top",top:"bottom"},S7={start:"end",end:"start"};function ru(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Va(t){return t.split("-")[1]}function x7(t){return t==="x"?"y":"x"}function jp(t){return t==="y"?"height":"width"}function iu(t){return["top","bottom"].includes(Lr(t))?"y":"x"}function Wp(t){return x7(iu(t))}function T7(t,e,n){n===void 0&&(n=!1);const o=Va(t),i=Wp(t),s=jp(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=ea(a)),[a,ea(a)]}function A7(t){const e=ea(t);return[dc(t),e,dc(e)]}function dc(t){return t.replace(/start|end/g,e=>S7[e])}function N7(t,e,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:a;default:return[]}}function D7(t,e,n,o){const i=Va(t);let s=N7(Lr(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(dc)))),s}function ea(t){return t.replace(/left|right|bottom|top/g,e=>E7[e])}function $7(t){return{top:0,right:0,bottom:0,left:0,...t}}function B7(t){return typeof t!="number"?$7(t):{top:t,right:t,bottom:t,left:t}}function ta(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Od(t,e,n){let{reference:o,floating:i}=t;const s=iu(e),a=Wp(e),l=jp(a),c=Lr(e),u=s==="y",d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-i.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Va(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const M7=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:f}=Od(u,o,c),p=o,m={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:C}=l[g],{x:v,y:_,data:b,reset:w}=await C({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=v??d,f=_??f,m={...m,[y]:{...m[y],...b}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):w.rects),{x:d,y:f}=Od(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:i,middlewareData:m}};async function Zp(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=ru(e,t),h=B7(m),y=l[p?f==="floating"?"reference":"floating":f],C=ta(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v=f==="floating"?{...a.floating,x:o,y:i}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},w=ta(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:_,strategy:c}):v);return{top:(C.top-w.top+h.top)/b.y,bottom:(w.bottom-C.bottom+h.bottom)/b.y,left:(C.left-w.left+h.left)/b.x,right:(w.right-C.right+h.right)/b.x}}const L7=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=ru(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Lr(i),v=Lr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=p||(v||!g?[ea(l)]:A7(l));!p&&h!=="none"&&b.push(...D7(l,g,h,_));const w=[l,...b],k=await Zp(e,y),A=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&A.push(k[C]),f){const x=T7(i,a,_);A.push(k[x[0]],k[x[1]])}if(T=[...T,{placement:i,overflows:A}],!A.every(x=>x<=0)){var S,E;const x=(((S=s.flip)==null?void 0:S.index)||0)+1,$=w[x];if($)return{data:{index:x,overflows:T},reset:{placement:$}};let B=(E=T.filter(V=>V.overflows[0]<=0).sort((V,I)=>V.overflows[1]-I.overflows[1])[0])==null?void 0:E.placement;if(!B)switch(m){case"bestFit":{var D;const V=(D=T.map(I=>[I.placement,I.overflows.filter(W=>W>0).reduce((W,P)=>W+P,0)]).sort((I,W)=>I[1]-W[1])[0])==null?void 0:D[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}},O7=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:s}=e,{apply:a=()=>{},...l}=ru(t,e),c=await Zp(e,l),u=Lr(n),d=Va(n),f=iu(n)==="y",{width:p,height:m}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const y=m-c[h],C=p-c[g],v=!e.middlewareData.shift;let _=y,b=C;if(f){const k=p-c.left-c.right;b=d||v?Ri(C,k):k}else{const k=m-c.top-c.bottom;_=d||v?Ri(y,k):k}if(v&&!d){const k=Kt(c.left,0),A=Kt(c.right,0),T=Kt(c.top,0),S=Kt(c.bottom,0);f?b=p-2*(k!==0||A!==0?k+A:Kt(c.left,c.right)):_=m-2*(T!==0||S!==0?T+S:Kt(c.top,c.bottom))}await a({...e,availableWidth:b,availableHeight:_});const w=await i.getDimensions(s.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function yo(t){return Kp(t)?(t.nodeName||"").toLowerCase():"#document"}function Ut(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qn(t){var e;return(e=(Kp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kp(t){return t instanceof Node||t instanceof Ut(t).Node}function Kn(t){return t instanceof Element||t instanceof Ut(t).Element}function $n(t){return t instanceof HTMLElement||t instanceof Ut(t).HTMLElement}function Vd(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ut(t).ShadowRoot}function rs(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=en(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function V7(t){return["table","td","th"].includes(yo(t))}function su(t){const e=au(),n=en(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function I7(t){let e=Or(t);for(;$n(e)&&!Ia(e);){if(su(e))return e;e=Or(e)}return null}function au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ia(t){return["html","body","#document"].includes(yo(t))}function en(t){return Ut(t).getComputedStyle(t)}function Pa(t){return Kn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Or(t){if(yo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vd(t)&&t.host||Qn(t);return Vd(e)?e.host:e}function Gp(t){const e=Or(t);return Ia(e)?t.ownerDocument?t.ownerDocument.body:t.body:$n(e)&&rs(e)?e:Gp(e)}function zi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Gp(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=Ut(i);return s?e.concat(a,a.visualViewport||[],rs(i)?i:[],a.frameElement&&n?zi(a.frameElement):[]):e.concat(i,zi(i))}function Yp(t){const e=en(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=$n(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,l=Qs(n)!==s||Qs(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function lu(t){return Kn(t)?t:t.contextElement}function Er(t){const e=lu(t);if(!$n(e))return _o(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Yp(e);let a=(s?Qs(n.width):n.width)/o,l=(s?Qs(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const P7=_o(0);function Jp(t){const e=Ut(t);return!au()||!e.visualViewport?P7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function F7(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ut(t)?!1:e}function Go(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=lu(t);let a=_o(1);e&&(o?Kn(o)&&(a=Er(o)):a=Er(t));const l=F7(s,n,o)?Jp(s):_o(0);let c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(s){const p=Ut(s),m=o&&Kn(o)?Ut(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=Er(h),y=h.getBoundingClientRect(),C=en(h),v=y.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,_=y.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=v,u+=_,h=Ut(h).frameElement}}return ta({width:d,height:f,x:c,y:u})}function R7(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=$n(n),s=Qn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=_o(1);const c=_o(0);if((i||!i&&o!=="fixed")&&((yo(n)!=="body"||rs(s))&&(a=Pa(n)),$n(n))){const u=Go(n);l=Er(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}}function z7(t){return Array.from(t.getClientRects())}function Xp(t){return Go(Qn(t)).left+Pa(t).scrollLeft}function U7(t){const e=Qn(t),n=Pa(t),o=t.ownerDocument.body,i=Kt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Kt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Xp(t);const l=-n.scrollTop;return en(o).direction==="rtl"&&(a+=Kt(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:l}}function H7(t,e){const n=Ut(t),o=Qn(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;const u=au();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l,y:c}}function q7(t,e){const n=Go(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=$n(t)?Er(t):_o(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Id(t,e,n){let o;if(e==="viewport")o=H7(t,n);else if(e==="document")o=U7(Qn(t));else if(Kn(e))o=q7(e,n);else{const i=Jp(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ta(o)}function Qp(t,e){const n=Or(t);return n===e||!Kn(n)||Ia(n)?!1:en(n).position==="fixed"||Qp(n,e)}function j7(t,e){const n=e.get(t);if(n)return n;let o=zi(t,[],!1).filter(l=>Kn(l)&&yo(l)!=="body"),i=null;const s=en(t).position==="fixed";let a=s?Or(t):t;for(;Kn(a)&&!Ia(a);){const l=en(a),c=su(a);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rs(a)&&!c&&Qp(t,a))?o=o.filter(d=>d!==a):i=l,a=Or(a)}return e.set(t,o),o}function W7(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?j7(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Id(e,d,i);return u.top=Kt(f.top,u.top),u.right=Ri(f.right,u.right),u.bottom=Ri(f.bottom,u.bottom),u.left=Kt(f.left,u.left),u},Id(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Z7(t){return Yp(t)}function K7(t,e,n){const o=$n(e),i=Qn(e),s=n==="fixed",a=Go(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=_o(0);if(o||!o&&!s)if((yo(e)!=="body"||rs(i))&&(l=Pa(e)),o){const u=Go(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=Xp(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Pd(t,e){return!$n(t)||en(t).position==="fixed"?null:e?e(t):t.offsetParent}function em(t,e){const n=Ut(t);if(!$n(t))return n;let o=Pd(t,e);for(;o&&V7(o)&&en(o).position==="static";)o=Pd(o,e);return o&&(yo(o)==="html"||yo(o)==="body"&&en(o).position==="static"&&!su(o))?n:o||I7(t)||n}const G7=async function(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||em,s=this.getDimensions;return{reference:K7(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}};function Y7(t){return en(t).direction==="rtl"}const J7={convertOffsetParentRelativeRectToViewportRelativeRect:R7,getDocumentElement:Qn,getClippingRect:W7,getOffsetParent:em,getElementRects:G7,getClientRects:z7,getDimensions:Z7,getScale:Er,isElement:Kn,isRTL:Y7};function X7(t,e){let n=null,o;const i=Qn(t);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:f,height:p}=t.getBoundingClientRect();if(l||e(),!f||!p)return;const m=As(d),h=As(i.clientWidth-(u+f)),g=As(i.clientHeight-(d+p)),y=As(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Kt(0,Ri(1,c))||1};let _=!0;function b(w){const k=w[0].intersectionRatio;if(k!==c){if(!_)return a();k?a(!1,k):o=setTimeout(()=>{a(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(t)}return a(!0),s}function Q7(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=lu(t),d=i||s?[...u?zi(u):[],...zi(e)]:[];d.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?X7(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(C=>{let[v]=C;v&&v.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let h,g=c?Go(t):null;c&&y();function y(){const C=Go(t);g&&(C.x!==g.x||C.y!==g.y||C.width!==g.width||C.height!==g.height)&&n(),g=C,h=requestAnimationFrame(y)}return n(),()=>{d.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const eb=(t,e,n)=>{const o=new Map,i={platform:J7,...n},s={...i.platform,_c:o};return M7(t,e,{...i,platform:s})},tb=t=>{const e=r.ref(!1),n=r.ref(),o=r.ref(),i=r.ref(0);function s(){const f=r.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=r.ref(()=>{});function c(f){f.relatedTarget&&o.value&&o.value.contains(f.relatedTarget)||t.multiselect.value.deactivate()}function u(){const f=t.multiselect.value.$el,p=f.querySelector(".multiselect-dropdown");if(!p||!f||e.value===!0)return;o.value=p,n.value=f,getComputedStyle(p).getPropertyValue("display")==="none"&&(p.style.display="flex"),i.value=p.offsetHeight,p.style.removeProperty("display"),Object.assign(p.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(p),t.multiselect.value.handleFocusOut=c;const h=Q7(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||eb(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[L7({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),O7({apply({availableWidth:f,availableHeight:p,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${i.value}px`,width:`${h.reference.width}px`,maxWidth:`${f}px`,maxHeight:`${p}px`})}})]}).then(({x:f,y:p})=>{Object.assign(o.value.style,{left:`${f}px`,top:`${p}px`})})}r.onMounted(()=>{u()}),r.onBeforeUnmount(()=>{l.value()}),r.onUnmounted(()=>{l.value()})};function wn(t){return[null,void 0].indexOf(t)!==-1}function nb(t,e,n){const{object:o,valueProp:i,mode:s}=r.toRefs(t),a=r.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const m=u(f);e.emit("change",m,a),p&&(e.emit("input",m),e.emit("update:modelValue",m))},u=f=>o.value||wn(f)?f:Array.isArray(f)?f.map(p=>p[i.value]):f[i.value],d=f=>wn(f)?s.value==="single"?{}:[]:f;return{update:c}}function ob(t,e){const{value:n,modelValue:o,mode:i,valueProp:s}=r.toRefs(t),a=r.ref(i.value!=="single"?[]:{}),l=r.computed(()=>o&&o.value!==void 0?o.value:n.value),c=r.computed(()=>i.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=r.computed(()=>i.value!=="single"?a.value.map(d=>d[s.value]).join(","):a.value[s.value]);return{iv:a,internalValue:a,ev:l,externalValue:l,textValue:u,plainValue:c}}function rb(t,e,n){const{regex:o}=r.toRefs(t),i=r.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=r.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(o&&o.value){let m=o.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(o&&o.value){let h=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),h.split("").every(y=>!!y.match(g))||p.preventDefault()}e.emit("paste",p,i)};return r.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,i)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function ib(t,e,n){const{groupSelect:o,mode:i,groups:s,disabledProp:a}=r.toRefs(t),l=r.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(i.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function El(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function sb(t){return Object.prototype.toString.call(t)==="[object Object]"}function ab(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,i){return o===n[i]})}function lb(t,e,n){const{options:o,mode:i,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:m,object:h,loading:g,delay:y,resolveOnLoad:C,minChars:v,filterResults:_,clearOnSearch:b,clearOnSelect:w,valueProp:k,allowAbsent:A,groupLabel:T,canDeselect:S,max:E,strict:D,closeOnSelect:x,closeOnDeselect:$,groups:B,reverse:V,infinite:I,groupOptions:W,groupHideEmpty:P,groupSelect:H,onCreate:Q,disabledProp:le,searchStart:oe,searchFilter:Ne}=r.toRefs(t),ce=r.getCurrentInstance().proxy,ne=n.iv,z=n.ev,F=n.search,se=n.clearSearch,Ee=n.update,Ue=n.pointer,we=n.setPointer,Ce=n.clearPointer,yt=n.focus,R=n.deactivate,re=n.close,he=n.localize,pe=r.ref([]),Ke=r.ref([]),De=r.ref(!1),$e=r.ref(null),Fe=r.ref(I.value&&a.value===-1?10:a.value),Ye=r.computed(()=>c.value||u.value||!1),Je=r.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Me=r.computed(()=>{if(B.value){let L=Ot.value||[],Y=[];return L.forEach(be=>{si(be[W.value]).forEach(He=>{Y.push(Object.assign({},He,be[le.value]?{[le.value]:!0}:{}))})}),Y}else{let L=si(Ke.value||[]);return pe.value.length&&(L=L.concat(pe.value)),L}}),Ct=r.computed(()=>{let L=Me.value;return V.value&&(L=L.reverse()),j.value.length&&(L=j.value.concat(L)),ii(L)}),st=r.computed(()=>{let L=Ct.value;return Fe.value>0&&(L=L.slice(0,Fe.value)),L}),Ot=r.computed(()=>{if(!B.value)return[];let L=[],Y=Ke.value||[];return pe.value.length&&L.push({[T.value]:" ",[W.value]:[...pe.value],__CREATE__:!0}),L.concat(Y)}),on=r.computed(()=>{let L=[...Ot.value].map(Y=>({...Y}));return j.value.length&&(L[0]&&L[0].__CREATE__?L[0][W.value]=[...j.value,...L[0][W.value]]:L=[{[T.value]:" ",[W.value]:[...j.value],__CREATE__:!0}].concat(L)),L}),yn=r.computed(()=>{if(!B.value)return[];let L=on.value;return Do((L||[]).map((Y,be)=>{const He=si(Y[W.value]);return{...Y,index:be,group:!0,[W.value]:ii(He,!1).map(In=>Object.assign({},In,Y[le.value]?{[le.value]:!0}:{})),__VISIBLE__:ii(He).map(In=>Object.assign({},In,Y[le.value]?{[le.value]:!0}:{}))}}))}),Cn=r.computed(()=>{switch(i.value){case"single":return!wn(ne.value[k.value]);case"multiple":case"tags":return!wn(ne.value)&&ne.value.length>0}}),bn=r.computed(()=>m!==void 0&&m.value!==void 0?m.value(ne.value,ce):ne.value&&ne.value.length>1?`${ne.value.length} options selected`:"1 option selected"),to=r.computed(()=>!Me.value.length&&!De.value&&!j.value.length),M=r.computed(()=>Me.value.length>0&&st.value.length==0&&(F.value&&B.value||!B.value)),j=r.computed(()=>Ye.value===!1||!F.value?[]:ys(F.value)!==-1?[]:[{[k.value]:F.value,[ae.value[0]]:F.value,[d.value]:F.value,__CREATE__:!0}]),ae=r.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),Re=r.computed(()=>{switch(i.value){case"single":return null;case"multiple":case"tags":return[]}}),ot=r.computed(()=>g.value||De.value),bt=L=>{switch(typeof L!="object"&&(L=Pt(L)),i.value){case"single":Ee(L);break;case"multiple":case"tags":Ee(ne.value.concat(L));break}e.emit("select",Et(L),L,ce)},ve=L=>{switch(typeof L!="object"&&(L=Pt(L)),i.value){case"single":ni();break;case"tags":case"multiple":Ee(Array.isArray(L)?ne.value.filter(Y=>L.map(be=>be[k.value]).indexOf(Y[k.value])===-1):ne.value.filter(Y=>Y[k.value]!=L[k.value]));break}e.emit("deselect",Et(L),L,ce)},Et=L=>h.value?L:L[k.value],no=L=>{ve(L)},vs=(L,Y)=>{if(Y.button!==0){Y.preventDefault();return}no(L)},ni=()=>{Ee(Re.value),e.emit("clear",ce)},Vt=L=>{if(L.group!==void 0)return i.value==="single"?!1:_s(L[W.value])&&L[W.value].length;switch(i.value){case"single":return!wn(ne.value)&&ne.value[k.value]==L[k.value];case"tags":case"multiple":return!wn(ne.value)&&ne.value.map(Y=>Y[k.value]).indexOf(L[k.value])!==-1}},dr=L=>L[le.value]===!0,oo=()=>E===void 0||E.value===-1||!Cn.value&&E.value>0?!1:ne.value.length>=E.value,fr=L=>{if(!dr(L)){if(Q&&Q.value&&!Vt(L)&&L.__CREATE__&&(L={...L},delete L.__CREATE__,L=Q.value(L,ce),L instanceof Promise)){De.value=!0,L.then(Y=>{De.value=!1,It(Y)});return}It(L)}},It=L=>{switch(L.__CREATE__&&(L={...L},delete L.__CREATE__),i.value){case"single":if(L&&Vt(L)){S.value&&ve(L),$.value&&(Ce(),re());return}L&&No(L),w.value&&se(),x.value&&(Ce(),re()),L&&bt(L);break;case"multiple":if(L&&Vt(L)){ve(L),$.value&&(Ce(),re());return}if(oo()){e.emit("max",ce);return}L&&(No(L),bt(L)),w.value&&se(),l.value&&Ce(),x.value&&re();break;case"tags":if(L&&Vt(L)){ve(L),$.value&&(Ce(),re());return}if(oo()){e.emit("max",ce);return}L&&No(L),w.value&&se(),L&&bt(L),l.value&&Ce(),x.value&&re();break}x.value||yt()},ro=L=>{if(!(dr(L)||i.value==="single"||!H.value)){switch(i.value){case"multiple":case"tags":gl(L[W.value])?ve(L[W.value]):bt(L[W.value].filter(Y=>ne.value.map(be=>be[k.value]).indexOf(Y[k.value])===-1).filter(Y=>!Y[le.value]).filter((Y,be)=>ne.value.length+1+be<=E.value||E.value===-1)),l.value&&Ue.value&&we(yn.value.filter(Y=>!Y[le.value])[Ue.value.index]);break}x.value&&R()}},No=L=>{Pt(L[k.value])===void 0&&Ye.value&&(e.emit("tag",L[k.value],ce),e.emit("option",L[k.value],ce),e.emit("create",L[k.value],ce),Je.value&&vl(L),se())},oi=()=>{i.value!=="single"&&bt(st.value.filter(L=>!L.disabled&&!Vt(L)))},gl=L=>L.find(Y=>!Vt(Y)&&!Y[le.value])===void 0,_s=L=>L.find(Y=>!Vt(Y))===void 0,Pt=L=>Me.value[Me.value.map(Y=>String(Y[k.value])).indexOf(String(L))],ys=L=>Me.value.findIndex(Y=>ae.value.some(be=>(parseInt(Y[be])==Y[be]?parseInt(Y[be]):Y[be])===(parseInt(L)==L?parseInt(L):L))),ri=L=>["tags","multiple"].indexOf(i.value)!==-1&&l.value&&Vt(L),vl=L=>{pe.value.push(L)},Do=L=>P.value?L.filter(Y=>F.value?Y.__VISIBLE__.length:Y[W.value].length):L.filter(Y=>F.value?Y.__VISIBLE__.length:!0),ii=(L,Y=!0)=>{let be=L;if(F.value&&_.value){let He=Ne.value;He||(He=(In,sn,ci)=>ae.value.some(Pn=>{let bs=El(he(In[Pn]),D.value);return oe.value?bs.startsWith(El(sn,D.value)):bs.indexOf(El(sn,D.value))!==-1})),be=be.filter(In=>He(In,F.value,ce))}return l.value&&Y&&(be=be.filter(He=>!ri(He))),be},si=L=>{let Y=L;return sb(Y)&&(Y=Object.keys(Y).map(be=>{let He=Y[be];return{[k.value]:be,[ae.value[0]]:He,[d.value]:He}})),Y=Y.map(be=>typeof be=="object"?be:{[k.value]:be,[ae.value[0]]:be,[d.value]:be}),Y},Ve=()=>{wn(z.value)||(ne.value=io(z.value))},rn=L=>(De.value=!0,new Promise((Y,be)=>{o.value(F.value,ce).then(He=>{Ke.value=He||[],typeof L=="function"&&L(He),De.value=!1}).catch(He=>{console.error(He),Ke.value=[],De.value=!1}).finally(()=>{Y()})})),ai=()=>{if(Cn.value)if(i.value==="single"){let L=Pt(ne.value[k.value]);if(L!==void 0){let Y=L[d.value];ne.value[d.value]=Y,h.value&&(z.value[d.value]=Y)}}else ne.value.forEach((L,Y)=>{let be=Pt(ne.value[Y][k.value]);if(be!==void 0){let He=be[d.value];ne.value[Y][d.value]=He,h.value&&(z.value[Y][d.value]=He)}})},Cs=L=>{rn(L)},io=L=>wn(L)?i.value==="single"?{}:[]:h.value?L:i.value==="single"?Pt(L)||(A.value?{[d.value]:L,[k.value]:L,[ae.value[0]]:L}:{}):L.filter(Y=>!!Pt(Y)||A.value).map(Y=>Pt(Y)||{[d.value]:Y,[k.value]:Y,[ae.value[0]]:Y}),li=()=>{$e.value=r.watch(F,L=>{L.length<v.value||!L&&v.value!==0||(De.value=!0,b.value&&(Ke.value=[]),setTimeout(()=>{L==F.value&&o.value(F.value,ce).then(Y=>{(L==F.value||!F.value)&&(Ke.value=Y,Ue.value=st.value.filter(be=>be[le.value]!==!0)[0]||null,De.value=!1)}).catch(Y=>{console.error(Y)})},y.value))},{flush:"sync"})};if(i.value!=="single"&&!wn(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${i.value}" mode`);return o&&typeof o.value=="function"?C.value?rn(Ve):h.value==!0&&Ve():(Ke.value=o.value,Ve()),y.value>-1&&li(),r.watch(y,(L,Y)=>{$e.value&&$e.value(),L>=0&&li()}),r.watch(z,L=>{if(wn(L)){Ee(io(L),!1);return}switch(i.value){case"single":(h.value?L[k.value]!=ne.value[k.value]:L!=ne.value[k.value])&&Ee(io(L),!1);break;case"multiple":case"tags":ab(h.value?L.map(Y=>Y[k.value]):L,ne.value.map(Y=>Y[k.value]))||Ee(io(L),!1);break}},{deep:!0}),r.watch(o,(L,Y)=>{typeof t.options=="function"?C.value&&(!Y||L&&L.toString()!==Y.toString())&&rn():(Ke.value=t.options,Object.keys(ne.value).length||Ve(),ai())}),r.watch(d,ai),r.watch(a,(L,Y)=>{Fe.value=I.value&&L===-1?10:L}),{pfo:Ct,fo:st,filteredOptions:st,hasSelected:Cn,multipleLabelText:bn,eo:Me,extendedOptions:Me,eg:Ot,extendedGroups:Ot,fg:yn,filteredGroups:yn,noOptions:to,noResults:M,resolving:De,busy:ot,offset:Fe,select:bt,deselect:ve,remove:no,selectAll:oi,clear:ni,isSelected:Vt,isDisabled:dr,isMax:oo,getOption:Pt,handleOptionClick:fr,handleGroupClick:ro,handleTagRemove:vs,refreshOptions:Cs,resolveOptions:rn,refreshLabels:ai}}function cb(t,e,n){const{valueProp:o,showOptions:i,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=r.toRefs(t),p=n.fo,m=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,y=n.search,C=n.pointer,v=n.setPointer,_=n.clearPointer,b=n.multiselect,w=n.isOpen,k=r.computed(()=>p.value.filter(z=>!z[d.value])),A=r.computed(()=>m.value.filter(z=>!z[d.value])),T=r.computed(()=>c.value!=="single"&&u.value),S=r.computed(()=>C.value&&C.value.group),E=r.computed(()=>ce(C.value)),D=r.computed(()=>{const z=S.value?C.value:ce(C.value),F=A.value.map(Ee=>Ee[a.value]).indexOf(z[a.value]);let se=A.value[F-1];return se===void 0&&(se=$.value),se}),x=r.computed(()=>{let z=A.value.map(F=>F.label).indexOf(S.value?C.value[a.value]:ce(C.value)[a.value])+1;return A.value.length<=z&&(z=0),A.value[z]}),$=r.computed(()=>[...A.value].slice(-1)[0]),B=r.computed(()=>C.value.__VISIBLE__.filter(z=>!z[d.value])[0]),V=r.computed(()=>{const z=E.value.__VISIBLE__.filter(F=>!F[d.value]);return z[z.map(F=>F[o.value]).indexOf(C.value[o.value])-1]}),I=r.computed(()=>{const z=ce(C.value).__VISIBLE__.filter(F=>!F[d.value]);return z[z.map(F=>F[o.value]).indexOf(C.value[o.value])+1]}),W=r.computed(()=>[...D.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),P=r.computed(()=>[...$.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),H=z=>C.value&&(!z.group&&C.value[o.value]===z[o.value]||z.group!==void 0&&C.value[a.value]===z[a.value])?!0:void 0,Q=()=>{v(k.value[0]||null)},le=()=>{!C.value||C.value[d.value]===!0||(S.value?g(C.value):h(C.value))},oe=()=>{if(C.value===null)v((l.value&&T.value?A.value[0].__CREATE__?k.value[0]:A.value[0]:k.value[0])||null);else if(l.value&&T.value){let z=S.value?B.value:I.value;z===void 0&&(z=x.value,z.__CREATE__&&(z=z[f.value][0])),v(z||null)}else{let z=k.value.map(F=>F[o.value]).indexOf(C.value[o.value])+1;k.value.length<=z&&(z=0),v(k.value[z]||null)}r.nextTick(()=>{ne()})},Ne=()=>{if(C.value===null){let z=k.value[k.value.length-1];l.value&&T.value&&(z=P.value,z===void 0&&(z=$.value)),v(z||null)}else if(l.value&&T.value){let z=S.value?W.value:V.value;z===void 0&&(z=S.value?D.value:E.value,z.__CREATE__&&(z=W.value,z===void 0&&(z=D.value))),v(z||null)}else{let z=k.value.map(F=>F[o.value]).indexOf(C.value[o.value])-1;z<0&&(z=k.value.length-1),v(k.value[z]||null)}r.nextTick(()=>{ne()})},ce=z=>A.value.find(F=>F.__VISIBLE__.map(se=>se[o.value]).indexOf(z[o.value])!==-1),ne=()=>{let z=b.value.querySelector("[data-pointed]");if(!z)return;let F=z.parentElement.parentElement;l.value&&(F=S.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>F.clientHeight+F.scrollTop&&(F.scrollTop=z.offsetTop+z.offsetHeight-F.clientHeight),z.offsetTop<F.scrollTop&&(F.scrollTop=z.offsetTop)};return r.watch(y,z=>{s.value&&(z.length&&i.value?Q():_())}),r.watch(w,z=>{if(z){let F=b.value.querySelectorAll("[data-selected]")[0];if(!F)return;let se=F.parentElement.parentElement;r.nextTick(()=>{se.scrollTop>0||(se.scrollTop=F.offsetTop)})}}),{pointer:C,canPointGroups:T,isPointed:H,setPointerFirst:Q,selectPointer:le,forwardPointer:oe,backwardPointer:Ne}}function Ht(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Yo(t){var e=Ht(t).Element;return t instanceof e||t instanceof Element}function Xt(t){var e=Ht(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function cu(t){if(typeof ShadowRoot>"u")return!1;var e=Ht(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var qo=Math.max,na=Math.min,Vr=Math.round;function fc(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function tm(){return!/^((?!chrome|android).)*safari/i.test(fc())}function Ir(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),i=1,s=1;e&&Xt(t)&&(i=t.offsetWidth>0&&Vr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Vr(o.height)/t.offsetHeight||1);var a=Yo(t)?Ht(t):window,l=a.visualViewport,c=!tm()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/i,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/i,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function uu(t){var e=Ht(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function ub(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function db(t){return t===Ht(t)||!Xt(t)?uu(t):ub(t)}function Bn(t){return t?(t.nodeName||"").toLowerCase():null}function So(t){return((Yo(t)?t.ownerDocument:t.document)||window.document).documentElement}function du(t){return Ir(So(t)).left+uu(t).scrollLeft}function Gn(t){return Ht(t).getComputedStyle(t)}function fu(t){var e=Gn(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function fb(t){var e=t.getBoundingClientRect(),n=Vr(e.width)/t.offsetWidth||1,o=Vr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function pb(t,e,n){n===void 0&&(n=!1);var o=Xt(e),i=Xt(e)&&fb(e),s=So(e),a=Ir(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Bn(e)!=="body"||fu(s))&&(l=db(e)),Xt(e)?(c=Ir(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=du(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function nm(t){var e=Ir(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Fa(t){return Bn(t)==="html"?t:t.assignedSlot||t.parentNode||(cu(t)?t.host:null)||So(t)}function om(t){return["html","body","#document"].indexOf(Bn(t))>=0?t.ownerDocument.body:Xt(t)&&fu(t)?t:om(Fa(t))}function Ni(t,e){var n;e===void 0&&(e=[]);var o=om(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Ht(o),a=i?[s].concat(s.visualViewport||[],fu(o)?o:[]):o,l=e.concat(a);return i?l:l.concat(Ni(Fa(a)))}function mb(t){return["table","td","th"].indexOf(Bn(t))>=0}function Fd(t){return!Xt(t)||Gn(t).position==="fixed"?null:t.offsetParent}function hb(t){var e=/firefox/i.test(fc()),n=/Trident/i.test(fc());if(n&&Xt(t)){var o=Gn(t);if(o.position==="fixed")return null}var i=Fa(t);for(cu(i)&&(i=i.host);Xt(i)&&["html","body"].indexOf(Bn(i))<0;){var s=Gn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ra(t){for(var e=Ht(t),n=Fd(t);n&&mb(n)&&Gn(n).position==="static";)n=Fd(n);return n&&(Bn(n)==="html"||Bn(n)==="body"&&Gn(n).position==="static")?e:n||hb(t)||e}var un="top",Mn="bottom",Co="right",jn="left",pu="auto",za=[un,Mn,Co,jn],Pr="start",Ui="end",gb="clippingParents",rm="viewport",vi="popper",vb="reference",Rd=za.reduce(function(t,e){return t.concat([e+"-"+Pr,e+"-"+Ui])},[]),_b=[].concat(za,[pu]).reduce(function(t,e){return t.concat([e,e+"-"+Pr,e+"-"+Ui])},[]),yb="beforeRead",Cb="read",bb="afterRead",kb="beforeMain",wb="main",Eb="afterMain",Sb="beforeWrite",xb="write",Tb="afterWrite",Ab=[yb,Cb,bb,kb,wb,Eb,Sb,xb,Tb];function Nb(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),o}function Db(t){var e=Nb(t);return Ab.reduce(function(n,o){return n.concat(e.filter(function(i){return i.phase===o}))},[])}function $b(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Bb(t){var e=t.reduce(function(n,o){var i=n[o.name];return n[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function Mb(t,e){var n=Ht(t),o=So(t),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var u=tm();(u||!u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+du(t),y:c}}function Lb(t){var e,n=So(t),o=uu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=qo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=qo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-o.scrollLeft+du(t),c=-o.scrollTop;return Gn(i||n).direction==="rtl"&&(l+=qo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Ob(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&cu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function pc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vb(t,e){var n=Ir(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function zd(t,e,n){return e===rm?pc(Mb(t,n)):Yo(e)?Vb(e,n):pc(Lb(So(t)))}function Ib(t){var e=Ni(Fa(t)),n=["absolute","fixed"].indexOf(Gn(t).position)>=0,o=n&&Xt(t)?Ra(t):t;return Yo(o)?e.filter(function(i){return Yo(i)&&Ob(i,o)&&Bn(i)!=="body"}):[]}function Pb(t,e,n,o){var i=e==="clippingParents"?Ib(t):[].concat(e),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,u){var d=zd(t,u,o);return c.top=qo(d.top,c.top),c.right=na(d.right,c.right),c.bottom=na(d.bottom,c.bottom),c.left=qo(d.left,c.left),c},zd(t,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mo(t){return t.split("-")[0]}function Fr(t){return t.split("-")[1]}function im(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function sm(t){var e=t.reference,n=t.element,o=t.placement,i=o?mo(o):null,s=o?Fr(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case un:c={x:a,y:e.y-n.height};break;case Mn:c={x:a,y:e.y+e.height};break;case Co:c={x:e.x+e.width,y:l};break;case jn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=i?im(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Pr:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Ui:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function am(){return{top:0,right:0,bottom:0,left:0}}function Fb(t){return Object.assign({},am(),t)}function Rb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function mu(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?gb:l,u=n.rootBoundary,d=u===void 0?rm:u,f=n.elementContext,p=f===void 0?vi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=Fb(typeof y!="number"?y:Rb(y,za)),v=p===vi?vb:vi,_=t.rects.popper,b=t.elements[h?v:p],w=Pb(Yo(b)?b:b.contextElement||So(t.elements.popper),c,d,a),k=Ir(t.elements.reference),A=sm({reference:k,element:_,strategy:"absolute",placement:i}),T=pc(Object.assign({},_,A)),S=p===vi?T:k,E={top:w.top-S.top+C.top,bottom:S.bottom-w.bottom+C.bottom,left:w.left-S.left+C.left,right:S.right-w.right+C.right},D=t.modifiersData.offset;if(p===vi&&D){var x=D[i];Object.keys(E).forEach(function($){var B=[Co,Mn].indexOf($)>=0?1:-1,V=[un,Mn].indexOf($)>=0?"y":"x";E[$]+=x[V]*B})}return E}var Ud={placement:"bottom",modifiers:[],strategy:"absolute"};function Hd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function zb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?Ud:i;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ud,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(C){var v=typeof C=="function"?C(d.options):C;g(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:Yo(l)?Ni(l):l.contextElement?Ni(l.contextElement):[],popper:Ni(c)};var _=Db(Bb([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(b){return b.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,v=C.reference,_=C.popper;if(Hd(v,_)){d.rects={reference:pb(v,Ra(_),d.options.strategy==="fixed"),popper:nm(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(E){return d.modifiersData[E.name]=Object.assign({},E.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var w=d.orderedModifiers[b],k=w.fn,A=w.options,T=A===void 0?{}:A,S=w.name;typeof k=="function"&&(d=k({state:d,options:T,name:S,instance:m})||d)}}}},update:$b(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Hd(l,c))return m;m.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function h(){d.orderedModifiers.forEach(function(y){var C=y.name,v=y.options,_=v===void 0?{}:v,b=y.effect;if(typeof b=="function"){var w=b({state:d,name:C,instance:m,options:_}),k=function(){};f.push(w||k)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var Ns={passive:!0};function Ub(t){var e=t.state,n=t.instance,o=t.options,i=o.scroll,s=i===void 0?!0:i,a=o.resize,l=a===void 0?!0:a,c=Ht(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ns)}),l&&c.addEventListener("resize",n.update,Ns),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ns)}),l&&c.removeEventListener("resize",n.update,Ns)}}var Hb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ub,data:{}};function qb(t){var e=t.state,n=t.name;e.modifiersData[n]=sm({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var jb={name:"popperOffsets",enabled:!0,phase:"read",fn:qb,data:{}},Wb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zb(t,e){var n=t.x,o=t.y,i=e.devicePixelRatio||1;return{x:Vr(n*i)/i||0,y:Vr(o*i)/i||0}}function qd(t){var e,n=t.popper,o=t.popperRect,i=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=a.x,m=p===void 0?0:p,h=a.y,g=h===void 0?0:h,y=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var C=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),_=jn,b=un,w=window;if(u){var k=Ra(n),A="clientHeight",T="clientWidth";if(k===Ht(n)&&(k=So(n),Gn(k).position!=="static"&&l==="absolute"&&(A="scrollHeight",T="scrollWidth")),k=k,i===un||(i===jn||i===Co)&&s===Ui){b=Mn;var S=f&&k===w&&w.visualViewport?w.visualViewport.height:k[A];g-=S-o.height,g*=c?1:-1}if(i===jn||(i===un||i===Mn)&&s===Ui){_=Co;var E=f&&k===w&&w.visualViewport?w.visualViewport.width:k[T];m-=E-o.width,m*=c?1:-1}}var D=Object.assign({position:l},u&&Wb),x=d===!0?Zb({x:m,y:g},Ht(n)):{x:m,y:g};if(m=x.x,g=x.y,c){var $;return Object.assign({},D,($={},$[b]=v?"0":"",$[_]=C?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",$))}return Object.assign({},D,(e={},e[b]=v?g+"px":"",e[_]=C?m+"px":"",e.transform="",e))}function Kb(t){var e=t.state,n=t.options,o=n.gpuAcceleration,i=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:mo(e.placement),variation:Fr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qd(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qd(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Gb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kb,data:{}};function Yb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Xt(s)||!Bn(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Jb(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var i=e.elements[o],s=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Xt(i)||!Bn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}var Xb={name:"applyStyles",enabled:!0,phase:"write",fn:Yb,effect:Jb,requires:["computeStyles"]},Qb=[Hb,jb,Gb,Xb],ek=zb({defaultModifiers:Qb});function tk(t){return t==="x"?"y":"x"}function qs(t,e,n){return qo(t,na(e,n))}function nk(t,e,n){var o=qs(t,e,n);return o>n?n:o}function ok(t){var e=t.state,n=t.options,o=t.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,h=n.tetherOffset,g=h===void 0?0:h,y=mu(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=mo(e.placement),v=Fr(e.placement),_=!v,b=im(C),w=tk(b),k=e.modifiersData.popperOffsets,A=e.rects.reference,T=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,E=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(k){if(s){var $,B=b==="y"?un:jn,V=b==="y"?Mn:Co,I=b==="y"?"height":"width",W=k[b],P=W+y[B],H=W-y[V],Q=m?-T[I]/2:0,le=v===Pr?A[I]:T[I],oe=v===Pr?-T[I]:-A[I],Ne=e.elements.arrow,ce=m&&Ne?nm(Ne):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:am(),z=ne[B],F=ne[V],se=qs(0,A[I],ce[I]),Ee=_?A[I]/2-Q-se-z-E.mainAxis:le-se-z-E.mainAxis,Ue=_?-A[I]/2+Q+se+F+E.mainAxis:oe+se+F+E.mainAxis,we=e.elements.arrow&&Ra(e.elements.arrow),Ce=we?b==="y"?we.clientTop||0:we.clientLeft||0:0,yt=($=D==null?void 0:D[b])!=null?$:0,R=W+Ee-yt-Ce,re=W+Ue-yt,he=qs(m?na(P,R):P,W,m?qo(H,re):H);k[b]=he,x[b]=he-W}if(l){var pe,Ke=b==="x"?un:jn,De=b==="x"?Mn:Co,$e=k[w],Fe=w==="y"?"height":"width",Ye=$e+y[Ke],Je=$e-y[De],Me=[un,jn].indexOf(C)!==-1,Ct=(pe=D==null?void 0:D[w])!=null?pe:0,st=Me?Ye:$e-A[Fe]-T[Fe]-Ct+E.altAxis,Ot=Me?$e+A[Fe]+T[Fe]-Ct-E.altAxis:Je,on=m&&Me?nk(st,$e,Ot):qs(m?st:Ye,$e,m?Ot:Je);k[w]=on,x[w]=on-$e}e.modifiersData[o]=x}}var rk={name:"preventOverflow",enabled:!0,phase:"main",fn:ok,requiresIfExists:["offset"]},ik={left:"right",right:"left",bottom:"top",top:"bottom"};function js(t){return t.replace(/left|right|bottom|top/g,function(e){return ik[e]})}var sk={start:"end",end:"start"};function jd(t){return t.replace(/start|end/g,function(e){return sk[e]})}function ak(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?_b:c,d=Fr(o),f=d?l?Rd:Rd.filter(function(h){return Fr(h)===d}):za,p=f.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=f);var m=p.reduce(function(h,g){return h[g]=mu(t,{placement:g,boundary:i,rootBoundary:s,padding:a})[mo(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function lk(t){if(mo(t)===pu)return[];var e=js(t);return[jd(t),e,jd(e)]}function ck(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,g=n.allowedAutoPlacements,y=e.options.placement,C=mo(y),v=C===y,_=c||(v||!h?[js(y)]:lk(y)),b=[y].concat(_).reduce(function(ce,ne){return ce.concat(mo(ne)===pu?ak(e,{placement:ne,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):ne)},[]),w=e.rects.reference,k=e.rects.popper,A=new Map,T=!0,S=b[0],E=0;E<b.length;E++){var D=b[E],x=mo(D),$=Fr(D)===Pr,B=[un,Mn].indexOf(x)>=0,V=B?"width":"height",I=mu(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),W=B?$?Co:jn:$?Mn:un;w[V]>k[V]&&(W=js(W));var P=js(W),H=[];if(s&&H.push(I[x]<=0),l&&H.push(I[W]<=0,I[P]<=0),H.every(function(ce){return ce})){S=D,T=!1;break}A.set(D,H)}if(T)for(var Q=h?3:1,le=function(ne){var z=b.find(function(F){var se=A.get(F);if(se)return se.slice(0,ne).every(function(Ee){return Ee})});if(z)return S=z,"break"},oe=Q;oe>0;oe--){var Ne=le(oe);if(Ne==="break")break}e.placement!==S&&(e.modifiersData[o]._skip=!0,e.placement=S,e.reset=!0)}}var uk={name:"flip",enabled:!0,phase:"main",fn:ck,requiresIfExists:["offset"],data:{_skip:!1}};function dk(t,e,n){const{disabled:o,appendTo:i,appendToBody:s,openDirection:a}=r.toRefs(t),l=r.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=r.ref(!1),f=r.ref(null),p=r.ref(null),m=r.computed(()=>i.value||s.value),h=r.computed(()=>a.value==="top"&&p.value==="bottom"||a.value==="bottom"&&p.value!=="top"?"bottom":"top"),g=()=>{d.value||o.value||(d.value=!0,e.emit("open",l),m.value&&r.nextTick(()=>{C()}))},y=()=>{d.value&&(d.value=!1,e.emit("close",l))},C=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:b)*-1]}}]})),f.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(f.value=ek(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[rk,uk,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:h,updatePopper:C}}function fk(t,e,n){const{searchable:o,disabled:i,clearOnBlur:s}=r.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,m=r.ref(!1),h=r.ref(!1),g=r.computed(()=>o.value||i.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},C=()=>{o.value&&!i.value&&a.value.focus()},v=(T=!0)=>{i.value||(m.value=!0,T&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:m,mouseClicked:h,blur:y,focus:C,activate:v,deactivate:_,handleFocusIn:T=>{T.target.closest("[data-tags]")&&T.target.nodeName!=="INPUT"||T.target.closest("[data-clear]")||v(h.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),y()},handleMousedown:T=>{h.value=!0,d.value&&(T.target.isEqualNode(f.value)||T.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&v(),setTimeout(()=>{h.value=!1},0)}}}function pk(t,e,n){const{mode:o,addTagOn:i,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=r.toRefs(t),h=r.getCurrentInstance().proxy,g=n.iv,y=n.update,C=n.deselect,v=n.search,_=n.setPointer,b=n.selectPointer,w=n.backwardPointer,k=n.forwardPointer,A=n.multiselect,T=n.wrapper,S=n.tags,E=n.isOpen,D=n.open,x=n.blur,$=n.fo,B=r.computed(()=>f.value||p.value||!1),V=r.computed(()=>i.value!==void 0?i.value:d.value!==void 0?d.value:["enter"]),I=()=>{o.value==="tags"&&!l.value&&B.value&&a.value&&!u.value&&_($.value[$.value.map(H=>H[c.value]).indexOf(v.value)])};return{handleKeydown:H=>{e.emit("keydown",H,h);let Q,le;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(H.key)!==-1&&o.value==="tags"&&(Q=[...A.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==S.value),le=Q.findIndex(oe=>oe===document.activeElement)),H.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let oe=g.value.filter(Ne=>!Ne.disabled&&Ne.remove!==!1);oe.length&&C(oe[oe.length-1]);break;case"Enter":if(H.preventDefault(),H.keyCode===229)return;if(le!==-1&&le!==void 0){y([...g.value].filter((Ne,ce)=>ce!==le)),le===Q.length-1&&(Q.length-1?Q[Q.length-2].focus():a.value?S.value.querySelector("input").focus():T.value.focus());return}if(V.value.indexOf("enter")===-1&&B.value)return;I(),b();break;case" ":if(!B.value&&!a.value){H.preventDefault(),I(),b();return}if(!B.value)return!1;if(V.value.indexOf("space")===-1&&B.value)return;H.preventDefault(),I(),b();break;case"Tab":case";":case",":if(V.value.indexOf(H.key.toLowerCase())===-1||!B.value)return;I(),b(),H.preventDefault();break;case"Escape":x();break;case"ArrowUp":if(H.preventDefault(),!l.value)return;E.value||D(),w();break;case"ArrowDown":if(H.preventDefault(),!l.value)return;E.value||D(),k();break;case"ArrowLeft":if(a.value&&S.value&&S.value.querySelector("input").selectionStart||H.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;H.preventDefault(),le===-1?Q[Q.length-1].focus():le>0&&Q[le-1].focus();break;case"ArrowRight":if(le===-1||H.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;H.preventDefault(),Q.length>le+1?Q[le+1].focus():a.value?S.value.querySelector("input").focus():a.value||T.value.focus();break}},handleKeyup:H=>{e.emit("keyup",H,h)},preparePointer:I}}function mk(t,e,n){const{classes:o,disabled:i,showOptions:s,breakTags:a}=r.toRefs(t),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,m=n.resolving,h=n.fo,g=n.placement,y=r.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),C=r.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:r.computed(()=>{const _=y.value;return{container:[_.container].concat(i.value?_.containerDisabled:[]).concat(C.value&&g.value==="top"?_.containerOpenTop:[]).concat(C.value&&g.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(i.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,a.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(g.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!C.value?_.dropdownHidden:[]),options:[_.options].concat(g.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let w=[_.groupLabel];return c(b)?w.push(u(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(b)&&p.value?w.push(d(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(b)&&w.push(_.groupLabelDisabled),p.value&&w.push(_.groupLabelPointable),w},groupOptions:_.groupOptions,option:(b,w)=>{let k=[_.option];return c(b)?k.push(u(b)?_.optionSelectedPointed:_.optionPointed):u(b)?k.push(d(b)?_.optionSelectedDisabled:_.optionSelected):(d(b)||w&&d(w))&&k.push(_.optionDisabled),k},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:C}}function hk(t,e,n){const{limit:o,infinite:i}=r.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=r.ref(null),f=r.ref(null),p=r.computed(()=>a.value<c.value.length),m=g=>{const{isIntersecting:y,target:C}=g[0];if(y){const v=C.offsetParent,_=v.scrollTop;a.value+=o.value==-1?10:o.value,r.nextTick(()=>{v.scrollTop=_})}},h=()=>{s.value&&a.value<c.value.length?d.value.observe(f.value):!s.value&&d.value&&d.value.disconnect()};return r.watch(s,()=>{i.value&&h()}),r.watch(l,()=>{i.value&&(a.value=o.value,h())},{flush:"post"}),r.watch(u,()=>{i.value&&h()},{immediate:!1,flush:"post"}),r.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function gk(t,e,n){const{placeholder:o,id:i,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(t),f=n.pointer,p=n.iv,m=n.hasSelected,h=n.multipleLabelText,g=r.ref(null),y=r.computed(()=>{let x=[];return i&&i.value&&x.push(i.value),x.push("assist"),x.join("-")}),C=r.computed(()=>{let x=[];return i&&i.value&&x.push(i.value),x.push("multiselect-options"),x.join("-")}),v=r.computed(()=>{let x=[];if(i&&i.value&&x.push(i.value),f.value)return x.push(f.value.group?"multiselect-group":"multiselect-option"),x.push(f.value.group?f.value.index:f.value[s.value]),x.join("-")}),_=r.computed(()=>o.value),b=r.computed(()=>l.value!=="single"),w=r.computed(()=>{let x="";return l.value==="single"&&m.value&&(x+=p.value[a.value]),l.value==="multiple"&&m.value&&(x+=h.value),l.value==="tags"&&m.value&&(x+=p.value.map($=>$[a.value]).join(", ")),x}),k=r.computed(()=>{let x={...u.value};return d.value&&(x["aria-labelledby"]=x["aria-labelledby"]?`${y.value} ${x["aria-labelledby"]}`:y.value,w.value&&x["aria-label"]&&(x["aria-label"]=`${w.value}, ${x["aria-label"]}`)),x}),A=x=>{let $=[];return i&&i.value&&$.push(i.value),$.push("multiselect-option"),$.push(x[s.value]),$.join("-")},T=x=>{let $=[];return i&&i.value&&$.push(i.value),$.push("multiselect-group"),$.push(x.index),$.join("-")},S=x=>{let $=[];return $.push(x),$.join(" ")},E=x=>{let $=[];return $.push(x),$.join(" ")},D=x=>`${x} ❎`;return r.onMounted(()=>{if(i&&i.value&&document&&document.querySelector){let x=document.querySelector(`[for="${i.value}"]`);g.value=x?x.innerText:null}}),{arias:k,ariaLabel:w,ariaAssist:y,ariaControls:C,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:v,ariaOptionId:A,ariaOptionLabel:S,ariaGroupId:T,ariaGroupLabel:E,ariaTagLabel:D}}function vk(t,e,n){const{locale:o,fallbackLocale:i}=r.toRefs(t);return{localize:a=>!a||typeof a!="object"?a:a&&a[o.value]?a[o.value]:a&&o.value&&a[o.value.toUpperCase()]?a[o.value.toUpperCase()]:a&&a[i.value]?a[i.value]:a&&i.value&&a[i.value.toUpperCase()]?a[i.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function _k(t,e,n){const o=r.ref(null),i=r.ref(null),s=r.ref(null),a=r.ref(null),l=r.ref(null);return{multiselect:o,wrapper:i,tags:s,input:a,dropdown:l}}function yk(t,e,n,o={}){return n.forEach(i=>{i&&(o={...o,...i(t,e,o)})}),o}var co={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return yk(t,e,[_k,vk,ob,ib,dk,rb,nb,fk,lb,hk,cb,pk,mk,gk])},beforeMount(){var t,e;((e=(t=this.$root.constructor)==null?void 0:t.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Ck=["id","dir"],bk=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],kk=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],wk=["onKeyup","aria-label"],Ek=["onClick"],Sk=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],xk=["innerHTML"],Tk=["id"],Ak=["id"],Nk=["id","aria-label","aria-selected"],Dk=["data-pointed","onMouseenter","onMousedown"],$k=["innerHTML"],Bk=["aria-label"],Mk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Lk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Ok=["innerHTML"],Vk=["innerHTML"],Ik=["value"],Pk=["name","value"],Fk=["name","value"],Rk=["id"];function zk(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",{ref:"multiselect",class:r.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...a)=>t.handleFocusIn&&t.handleFocusIn(...a)),onFocusout:e[11]||(e[11]=(...a)=>t.handleFocusOut&&t.handleFocusOut(...a)),onKeyup:e[12]||(e[12]=(...a)=>t.handleKeyup&&t.handleKeyup(...a)),onKeydown:e[13]||(e[13]=(...a)=>t.handleKeydown&&t.handleKeydown(...a))},[r.createElementVNode("div",r.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...a)=>t.handleMousedown&&t.handleMousedown(...a)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[r.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[1]||(e[1]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[2]||(e[2]=r.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,kk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(t.classList.tags),"data-tags":""},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.iv,(a,l,c)=>r.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:r.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagWrapper)},r.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(t.classList.tagRemove),onClick:r.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,Ek)):r.createCommentVNode("v-if",!0)],42,wk))])),256)),r.createElementVNode("div",{class:r.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[r.createCommentVNode(" Used for measuring search width "),r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagsSearchCopy)},r.toDisplayString(t.search),3),r.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[4]||(e[4]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[5]||(e[5]=r.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,Sk)):r.createCommentVNode("v-if",!0)],2)],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?r.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.singleLabel)},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.singleLabelText)},r.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?r.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,xk)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?r.renderSlot(t.$slots,"placeholder",{key:4},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},r.toDisplayString(n.placeholder),3)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Spinner "),n.loading||t.resolving?r.renderSlot(t.$slots,"spinner",{key:5},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?r.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[r.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:r.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=r.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.clearIcon)},null,2)],34)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Caret "),n.caret&&n.showOptions?r.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0)],16,bk),r.createCommentVNode(" Options "),(r.openBlock(),r.createBlock(r.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[r.createElementVNode("div",{id:`${n.id}-dropdown`,class:r.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[r.renderSlot(t.$slots,"beforelist",{options:t.fo}),r.createElementVNode("ul",{class:r.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(t.fg,(a,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.group),key:c,id:t.ariaGroupId(a),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),"aria-selected":t.isSelected(a),role:"option"},[a.__CREATE__?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:r.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[r.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[r.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,$k)])],42,Dk)),r.createElementVNode("ul",{class:r.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.__VISIBLE__,(u,d,f)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.option(u,a)),"data-pointed":t.isPointed(u),"data-selected":t.isSelected(u)||void 0,key:f,onMouseenter:p=>t.setPointer(u),onMousedown:r.withModifiers(p=>t.handleOptionClick(u),["prevent"]),id:t.ariaOptionId(u),"aria-selected":t.isSelected(u),"aria-label":t.ariaOptionLabel(t.localize(u[n.label])),role:"option"},[r.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[r.createElementVNode("span",null,r.toDisplayString(t.localize(u[n.label])),1)])],42,Mk))),128))],10,Bk)],10,Nk))),128)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.fo,(a,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.option(a)),"data-pointed":t.isPointed(a),"data-selected":t.isSelected(a)||void 0,key:c,onMouseenter:u=>t.setPointer(a),onMousedown:r.withModifiers(u=>t.handleOptionClick(a),["prevent"]),id:t.ariaOptionId(a),"aria-selected":t.isSelected(a),"aria-label":t.ariaOptionLabel(t.localize(a[n.label])),role:"option"},[r.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[r.createElementVNode("span",null,r.toDisplayString(t.localize(a[n.label])),1)])],42,Lk))),128))],10,Ak),t.noOptions?r.renderSlot(t.$slots,"nooptions",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,Ok)]):r.createCommentVNode("v-if",!0),t.noResults?r.renderSlot(t.$slots,"noresults",{key:1},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,Vk)]):r.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[r.renderSlot(t.$slots,"infinite",{},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):r.createCommentVNode("v-if",!0),r.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,Tk)],8,["to","disabled"])),r.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(r.openBlock(),r.createElementBlock("input",{key:0,class:r.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,Ik)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Native input support "),n.nativeSupport?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n.mode=="single"?(r.openBlock(),r.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,Pk)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.plainValue,(a,l)=>(r.openBlock(),r.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,Fk))),128))],64)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},r.toDisplayString(t.ariaLabel),11,Rk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(t.classList.spacer)},null,2)],42,Ck)}co.render=zk;co.__file="src/Multiselect.vue";const ft=r.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{},closeOnSelect:{type:Boolean},clearOnSelect:{type:Boolean}},setup(t){const e=t,n=r.toRef(()=>e.appendTo),o=r.ref();return e.detached&&tb({multiselect:o,appendTo:n.value}),(i,s)=>(r.openBlock(),r.createBlock(r.unref(co),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect","close-on-select":e.closeOnSelect,"clear-on-select":e.clearOnSelect},r.createSlots({_:2},[r.renderList(i.$slots,(a,l)=>({name:l,fn:r.withCtx(c=>[r.renderSlot(i.$slots,l,r.normalizeProps(r.guardReactiveProps(c??{})))])}))]),1032,["close-on-select","clear-on-select"]))}});var Wd;function Nt(){const t=Uk(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function Uk(){const t=r.getCurrentInstance();if(!t)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return t}r.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let i,s=0;for(;(i=Wd.exec(n))!==null;){o.push(n.substring(s,i.index));const a=e[i[1]];a?o.push(...a()):o.push(i[0]),s=Wd.lastIndex}return o.push(n.substring(s)),o}}});async function Wn(t,e){if(e&&t&&t.length-e.length===1){const n=new Set(e.map(l=>l.id)),o=t.filter(l=>!n.has(l.id));if(o.length!==1)return;const i=o[0].id;await r.nextTick();const s=document.getElementById(i);s==null||s.focus(),await r.nextTick();const a=document.getElementById(i);a==null||a.select()}}const Hk={class:"ao-tasks__list"},qk=["id","value","readonly","onChange","onKeydown"],jk={class:"ao-tasks__list-footer"},Wk=r.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=r.ref(null);let a=null,l=null;const c=_=>{_.style.height="auto",_.style.height=`${_.scrollHeight}px`},u=_=>{c(_.target)},d=()=>{var _;(_=s.value)==null||_.querySelectorAll(".ao-subtask__field").forEach(c)},f=()=>{l!==null&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{d(),l=null})};r.watch(()=>o.tasks,(_,b)=>{Wn(_,b),f()},{deep:!0}),r.onMounted(()=>{f(),s.value&&(a=new ResizeObserver(()=>{f()}),a.observe(s.value))}),r.onBeforeUnmount(()=>{a==null||a.disconnect(),l!==null&&cancelAnimationFrame(l)});const p=r.computed(()=>{var _;return((_=o.users)==null?void 0:_.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))??[]}),m=()=>{const _=o.tasks.length;i("add",{name:n("task.defaultName",{idx:_+1}),activityId:o.activityId})},h=(_,b)=>{const w=_.target;i("update",{id:b,name:w.value})},g=(_,b)=>{o.isEditable&&i("update",{id:_,isDone:b})},y=_=>{i("delete",{id:_})},C=(_,b)=>{i("update",{id:b,assigneeId:_[0]??null})},v=_=>{_.target.blur()};return(_,b)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tasksRoot",ref:s,class:"ao-tasks"},[r.createElementVNode("ul",Hk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tasks,w=>{var k,A;return r.openBlock(),r.createElementBlock("li",{key:w.id,class:"ao-subtask"},[((k=t.isCheckable)==null?void 0:k.call(t,w))??!1?(r.openBlock(),r.createBlock(de,{key:0,class:"ao-subtask__check","icon-name":w.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>g(w.id,!w.isDone)},null,8,["icon-name","disabled","onClick"])):r.createCommentVNode("",!0),r.createElementVNode("textarea",{id:w.id,value:w.name,readonly:!t.isEditable,class:r.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":w.isDone}]),rows:"1",onInput:u,onChange:T=>h(T,w.id),onKeydown:r.withKeys(r.withModifiers(v,["prevent"]),["enter"])},null,42,qk),!t.isTemplate&&t.users?(r.openBlock(),r.createBlock(ft,{key:1,value:(A=w.assignee)!=null&&A.id?[w.assignee.id]:[],options:p.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:_.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,detached:"","append-to":"body",onChange:T=>C(T,w.id)},{tag:r.withCtx(({option:T,handleTagRemove:S})=>[r.createVNode(Xn,{"user-name":T.label,"avatar-url":T.avatar,"is-closable":!0,onClose:E=>S(T,E)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):r.createCommentVNode("",!0),t.isEditable?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>y(w.id)},null,8,["onClick"])):r.createCommentVNode("",!0)])}),128))]),r.createElementVNode("div",jk,[t.isEditable?(r.openBlock(),r.createBlock(de,{key:0,label:_.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:m},null,8,["label"])):r.createCommentVNode("",!0)])],512))}});const Zk={class:"ao-files__placeholder"},Kk={key:0,class:"ao-files__list"},Gk=["onClick"],Yk={class:"ao-file__title"},Jk={class:"ao-file__actions"},Xk={key:0},Qk={class:"ao-files__input"},e9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},t9={class:"ao-button__label"},n9={class:"ao-files__dropzone"},o9={class:"ao-files__dropzone-label"},r9=r.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove","preview"],setup(t,{emit:e}){const n=e,o=t,i=r.ref(!1),s=["dragenter","dragover","dragleave","drop"];function a(m){n("remove",m)}function l(m){if(!m.url)return;const h=document.createElement("a");h.href=m.url,h.download=m.name,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),h.remove()}function c(m){const h=m.target,g=Array.from(h.files??[]);g.length&&n("add",g),h.value=""}function u(m){m.preventDefault()}r.onMounted(()=>{s.forEach(m=>{document.body.addEventListener(m,u)})}),r.onUnmounted(()=>{s.forEach(m=>{document.body.removeEventListener(m,u)})});function d(){o.isEditable&&(i.value=!0)}function f(){i.value=!1}r.watch(i,m=>{n("toggleIsDropActive",m)});function p(m){var g;if(f(),!o.isEditable)return;const h=Array.from(((g=m.dataTransfer)==null?void 0:g.files)??[]);h.length&&n("add",h)}return(m,h)=>{var g;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:r.withModifiers(p,["prevent"]),onDragenter:r.withModifiers(d,["prevent"]),onDragover:r.withModifiers(d,["prevent"]),onDragleave:r.withModifiers(f,["prevent"])},[r.renderSlot(m.$slots,"default",{},()=>[r.createElementVNode("span",Zk,r.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(r.openBlock(),r.createElementBlock("ul",Kk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.attachments,(y,C)=>(r.openBlock(),r.createElementBlock("li",{key:y.id,class:"ao-file"},[r.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:v=>n("preview",C)},[r.createVNode(ke,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Yk,r.toDisplayString(y.name),1)],8,Gk),r.createElementVNode("div",Jk,[r.createVNode(de,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:r.withModifiers(v=>l(y),["stop"])},null,8,["onClick"]),t.isEditable?(r.openBlock(),r.createBlock(de,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:r.withModifiers(v=>a(y),["stop"])},null,8,["onClick"])):r.createCommentVNode("",!0)])]))),128)),t.isEditable?(r.openBlock(),r.createElementBlock("li",Xk,[r.createElementVNode("label",Qk,[r.createElementVNode("div",e9,[r.createVNode(ke,{name:"Add",size:"sm"}),r.createElementVNode("span",t9,r.toDisplayString(m.$t("activity.attachment.button.resting")),1)]),r.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:c},null,32)])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",n9,[r.createElementVNode("span",o9,r.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[r.vShow,i.value]])],34)}}});var Be={};const i9="Á",s9="á",a9="Ă",l9="ă",c9="∾",u9="∿",d9="∾̳",f9="Â",p9="â",m9="´",h9="А",g9="а",v9="Æ",_9="æ",y9="⁡",C9="𝔄",b9="𝔞",k9="À",w9="à",E9="ℵ",S9="ℵ",x9="Α",T9="α",A9="Ā",N9="ā",D9="⨿",$9="&",B9="&",M9="⩕",L9="⩓",O9="∧",V9="⩜",I9="⩘",P9="⩚",F9="∠",R9="⦤",z9="∠",U9="⦨",H9="⦩",q9="⦪",j9="⦫",W9="⦬",Z9="⦭",K9="⦮",G9="⦯",Y9="∡",J9="∟",X9="⊾",Q9="⦝",e4="∢",t4="Å",n4="⍼",o4="Ą",r4="ą",i4="𝔸",s4="𝕒",a4="⩯",l4="≈",c4="⩰",u4="≊",d4="≋",f4="'",p4="⁡",m4="≈",h4="≊",g4="Å",v4="å",_4="𝒜",y4="𝒶",C4="≔",b4="*",k4="≈",w4="≍",E4="Ã",S4="ã",x4="Ä",T4="ä",A4="∳",N4="⨑",D4="≌",$4="϶",B4="‵",M4="∽",L4="⋍",O4="∖",V4="⫧",I4="⊽",P4="⌅",F4="⌆",R4="⌅",z4="⎵",U4="⎶",H4="≌",q4="Б",j4="б",W4="„",Z4="∵",K4="∵",G4="∵",Y4="⦰",J4="϶",X4="ℬ",Q4="ℬ",e8="Β",t8="β",n8="ℶ",o8="≬",r8="𝔅",i8="𝔟",s8="⋂",a8="◯",l8="⋃",c8="⨀",u8="⨁",d8="⨂",f8="⨆",p8="★",m8="▽",h8="△",g8="⨄",v8="⋁",_8="⋀",y8="⤍",C8="⧫",b8="▪",k8="▴",w8="▾",E8="◂",S8="▸",x8="␣",T8="▒",A8="░",N8="▓",D8="█",$8="=⃥",B8="≡⃥",M8="⫭",L8="⌐",O8="𝔹",V8="𝕓",I8="⊥",P8="⊥",F8="⋈",R8="⧉",z8="┐",U8="╕",H8="╖",q8="╗",j8="┌",W8="╒",Z8="╓",K8="╔",G8="─",Y8="═",J8="┬",X8="╤",Q8="╥",e6="╦",t6="┴",n6="╧",o6="╨",r6="╩",i6="⊟",s6="⊞",a6="⊠",l6="┘",c6="╛",u6="╜",d6="╝",f6="└",p6="╘",m6="╙",h6="╚",g6="│",v6="║",_6="┼",y6="╪",C6="╫",b6="╬",k6="┤",w6="╡",E6="╢",S6="╣",x6="├",T6="╞",A6="╟",N6="╠",D6="‵",$6="˘",B6="˘",M6="¦",L6="𝒷",O6="ℬ",V6="⁏",I6="∽",P6="⋍",F6="⧅",R6="\\",z6="⟈",U6="•",H6="•",q6="≎",j6="⪮",W6="≏",Z6="≎",K6="≏",G6="Ć",Y6="ć",J6="⩄",X6="⩉",Q6="⩋",ew="∩",tw="⋒",nw="⩇",ow="⩀",rw="ⅅ",iw="∩︀",sw="⁁",aw="ˇ",lw="ℭ",cw="⩍",uw="Č",dw="č",fw="Ç",pw="ç",mw="Ĉ",hw="ĉ",gw="∰",vw="⩌",_w="⩐",yw="Ċ",Cw="ċ",bw="¸",kw="¸",ww="⦲",Ew="¢",Sw="·",xw="·",Tw="𝔠",Aw="ℭ",Nw="Ч",Dw="ч",$w="✓",Bw="✓",Mw="Χ",Lw="χ",Ow="ˆ",Vw="≗",Iw="↺",Pw="↻",Fw="⊛",Rw="⊚",zw="⊝",Uw="⊙",Hw="®",qw="Ⓢ",jw="⊖",Ww="⊕",Zw="⊗",Kw="○",Gw="⧃",Yw="≗",Jw="⨐",Xw="⫯",Qw="⧂",eE="∲",tE="”",nE="’",oE="♣",rE="♣",iE=":",sE="∷",aE="⩴",lE="≔",cE="≔",uE=",",dE="@",fE="∁",pE="∘",mE="∁",hE="ℂ",gE="≅",vE="⩭",_E="≡",yE="∮",CE="∯",bE="∮",kE="𝕔",wE="ℂ",EE="∐",SE="∐",xE="©",TE="©",AE="℗",NE="∳",DE="↵",$E="✗",BE="⨯",ME="𝒞",LE="𝒸",OE="⫏",VE="⫑",IE="⫐",PE="⫒",FE="⋯",RE="⤸",zE="⤵",UE="⋞",HE="⋟",qE="↶",jE="⤽",WE="⩈",ZE="⩆",KE="≍",GE="∪",YE="⋓",JE="⩊",XE="⊍",QE="⩅",eS="∪︀",tS="↷",nS="⤼",oS="⋞",rS="⋟",iS="⋎",sS="⋏",aS="¤",lS="↶",cS="↷",uS="⋎",dS="⋏",fS="∲",pS="∱",mS="⌭",hS="†",gS="‡",vS="ℸ",_S="↓",yS="↡",CS="⇓",bS="‐",kS="⫤",wS="⊣",ES="⤏",SS="˝",xS="Ď",TS="ď",AS="Д",NS="д",DS="‡",$S="⇊",BS="ⅅ",MS="ⅆ",LS="⤑",OS="⩷",VS="°",IS="∇",PS="Δ",FS="δ",RS="⦱",zS="⥿",US="𝔇",HS="𝔡",qS="⥥",jS="⇃",WS="⇂",ZS="´",KS="˙",GS="˝",YS="`",JS="˜",XS="⋄",QS="⋄",ex="⋄",tx="♦",nx="♦",ox="¨",rx="ⅆ",ix="ϝ",sx="⋲",ax="÷",lx="÷",cx="⋇",ux="⋇",dx="Ђ",fx="ђ",px="⌞",mx="⌍",hx="$",gx="𝔻",vx="𝕕",_x="¨",yx="˙",Cx="⃜",bx="≐",kx="≑",wx="≐",Ex="∸",Sx="∔",xx="⊡",Tx="⌆",Ax="∯",Nx="¨",Dx="⇓",$x="⇐",Bx="⇔",Mx="⫤",Lx="⟸",Ox="⟺",Vx="⟹",Ix="⇒",Px="⊨",Fx="⇑",Rx="⇕",zx="∥",Ux="⤓",Hx="↓",qx="↓",jx="⇓",Wx="⇵",Zx="̑",Kx="⇊",Gx="⇃",Yx="⇂",Jx="⥐",Xx="⥞",Qx="⥖",eT="↽",tT="⥟",nT="⥗",oT="⇁",rT="↧",iT="⊤",sT="⤐",aT="⌟",lT="⌌",cT="𝒟",uT="𝒹",dT="Ѕ",fT="ѕ",pT="⧶",mT="Đ",hT="đ",gT="⋱",vT="▿",_T="▾",yT="⇵",CT="⥯",bT="⦦",kT="Џ",wT="џ",ET="⟿",ST="É",xT="é",TT="⩮",AT="Ě",NT="ě",DT="Ê",$T="ê",BT="≖",MT="≕",LT="Э",OT="э",VT="⩷",IT="Ė",PT="ė",FT="≑",RT="ⅇ",zT="≒",UT="𝔈",HT="𝔢",qT="⪚",jT="È",WT="è",ZT="⪖",KT="⪘",GT="⪙",YT="∈",JT="⏧",XT="ℓ",QT="⪕",eA="⪗",tA="Ē",nA="ē",oA="∅",rA="∅",iA="◻",sA="∅",aA="▫",lA=" ",cA=" ",uA=" ",dA="Ŋ",fA="ŋ",pA=" ",mA="Ę",hA="ę",gA="𝔼",vA="𝕖",_A="⋕",yA="⧣",CA="⩱",bA="ε",kA="Ε",wA="ε",EA="ϵ",SA="≖",xA="≕",TA="≂",AA="⪖",NA="⪕",DA="⩵",$A="=",BA="≂",MA="≟",LA="⇌",OA="≡",VA="⩸",IA="⧥",PA="⥱",FA="≓",RA="ℯ",zA="ℰ",UA="≐",HA="⩳",qA="≂",jA="Η",WA="η",ZA="Ð",KA="ð",GA="Ë",YA="ë",JA="€",XA="!",QA="∃",eN="∃",tN="ℰ",nN="ⅇ",oN="ⅇ",rN="≒",iN="Ф",sN="ф",aN="♀",lN="ffi",cN="ff",uN="ffl",dN="𝔉",fN="𝔣",pN="fi",mN="◼",hN="▪",gN="fj",vN="♭",_N="fl",yN="▱",CN="ƒ",bN="𝔽",kN="𝕗",wN="∀",EN="∀",SN="⋔",xN="⫙",TN="ℱ",AN="⨍",NN="½",DN="⅓",$N="¼",BN="⅕",MN="⅙",LN="⅛",ON="⅔",VN="⅖",IN="¾",PN="⅗",FN="⅜",RN="⅘",zN="⅚",UN="⅝",HN="⅞",qN="⁄",jN="⌢",WN="𝒻",ZN="ℱ",KN="ǵ",GN="Γ",YN="γ",JN="Ϝ",XN="ϝ",QN="⪆",eD="Ğ",tD="ğ",nD="Ģ",oD="Ĝ",rD="ĝ",iD="Г",sD="г",aD="Ġ",lD="ġ",cD="≥",uD="≧",dD="⪌",fD="⋛",pD="≥",mD="≧",hD="⩾",gD="⪩",vD="⩾",_D="⪀",yD="⪂",CD="⪄",bD="⋛︀",kD="⪔",wD="𝔊",ED="𝔤",SD="≫",xD="⋙",TD="⋙",AD="ℷ",ND="Ѓ",DD="ѓ",$D="⪥",BD="≷",MD="⪒",LD="⪤",OD="⪊",VD="⪊",ID="⪈",PD="≩",FD="⪈",RD="≩",zD="⋧",UD="𝔾",HD="𝕘",qD="`",jD="≥",WD="⋛",ZD="≧",KD="⪢",GD="≷",YD="⩾",JD="≳",XD="𝒢",QD="ℊ",e$="≳",t$="⪎",n$="⪐",o$="⪧",r$="⩺",i$=">",s$=">",a$="≫",l$="⋗",c$="⦕",u$="⩼",d$="⪆",f$="⥸",p$="⋗",m$="⋛",h$="⪌",g$="≷",v$="≳",_$="≩︀",y$="≩︀",C$="ˇ",b$=" ",k$="½",w$="ℋ",E$="Ъ",S$="ъ",x$="⥈",T$="↔",A$="⇔",N$="↭",D$="^",$$="ℏ",B$="Ĥ",M$="ĥ",L$="♥",O$="♥",V$="…",I$="⊹",P$="𝔥",F$="ℌ",R$="ℋ",z$="⤥",U$="⤦",H$="⇿",q$="∻",j$="↩",W$="↪",Z$="𝕙",K$="ℍ",G$="―",Y$="─",J$="𝒽",X$="ℋ",Q$="ℏ",eB="Ħ",tB="ħ",nB="≎",oB="≏",rB="⁃",iB="‐",sB="Í",aB="í",lB="⁣",cB="Î",uB="î",dB="И",fB="и",pB="İ",mB="Е",hB="е",gB="¡",vB="⇔",_B="𝔦",yB="ℑ",CB="Ì",bB="ì",kB="ⅈ",wB="⨌",EB="∭",SB="⧜",xB="℩",TB="IJ",AB="ij",NB="Ī",DB="ī",$B="ℑ",BB="ⅈ",MB="ℐ",LB="ℑ",OB="ı",VB="ℑ",IB="⊷",PB="Ƶ",FB="⇒",RB="℅",zB="∞",UB="⧝",HB="ı",qB="⊺",jB="∫",WB="∬",ZB="ℤ",KB="∫",GB="⊺",YB="⋂",JB="⨗",XB="⨼",QB="⁣",eM="⁢",tM="Ё",nM="ё",oM="Į",rM="į",iM="𝕀",sM="𝕚",aM="Ι",lM="ι",cM="⨼",uM="¿",dM="𝒾",fM="ℐ",pM="∈",mM="⋵",hM="⋹",gM="⋴",vM="⋳",_M="∈",yM="⁢",CM="Ĩ",bM="ĩ",kM="І",wM="і",EM="Ï",SM="ï",xM="Ĵ",TM="ĵ",AM="Й",NM="й",DM="𝔍",$M="𝔧",BM="ȷ",MM="𝕁",LM="𝕛",OM="𝒥",VM="𝒿",IM="Ј",PM="ј",FM="Є",RM="є",zM="Κ",UM="κ",HM="ϰ",qM="Ķ",jM="ķ",WM="К",ZM="к",KM="𝔎",GM="𝔨",YM="ĸ",JM="Х",XM="х",QM="Ќ",eL="ќ",tL="𝕂",nL="𝕜",oL="𝒦",rL="𝓀",iL="⇚",sL="Ĺ",aL="ĺ",lL="⦴",cL="ℒ",uL="Λ",dL="λ",fL="⟨",pL="⟪",mL="⦑",hL="⟨",gL="⪅",vL="ℒ",_L="«",yL="⇤",CL="⤟",bL="←",kL="↞",wL="⇐",EL="⤝",SL="↩",xL="↫",TL="⤹",AL="⥳",NL="↢",DL="⤙",$L="⤛",BL="⪫",ML="⪭",LL="⪭︀",OL="⤌",VL="⤎",IL="❲",PL="{",FL="[",RL="⦋",zL="⦏",UL="⦍",HL="Ľ",qL="ľ",jL="Ļ",WL="ļ",ZL="⌈",KL="{",GL="Л",YL="л",JL="⤶",XL="“",QL="„",eO="⥧",tO="⥋",nO="↲",oO="≤",rO="≦",iO="⟨",sO="⇤",aO="←",lO="←",cO="⇐",uO="⇆",dO="↢",fO="⌈",pO="⟦",mO="⥡",hO="⥙",gO="⇃",vO="⌊",_O="↽",yO="↼",CO="⇇",bO="↔",kO="↔",wO="⇔",EO="⇆",SO="⇋",xO="↭",TO="⥎",AO="↤",NO="⊣",DO="⥚",$O="⋋",BO="⧏",MO="⊲",LO="⊴",OO="⥑",VO="⥠",IO="⥘",PO="↿",FO="⥒",RO="↼",zO="⪋",UO="⋚",HO="≤",qO="≦",jO="⩽",WO="⪨",ZO="⩽",KO="⩿",GO="⪁",YO="⪃",JO="⋚︀",XO="⪓",QO="⪅",eV="⋖",tV="⋚",nV="⪋",oV="⋚",rV="≦",iV="≶",sV="≶",aV="⪡",lV="≲",cV="⩽",uV="≲",dV="⥼",fV="⌊",pV="𝔏",mV="𝔩",hV="≶",gV="⪑",vV="⥢",_V="↽",yV="↼",CV="⥪",bV="▄",kV="Љ",wV="љ",EV="⇇",SV="≪",xV="⋘",TV="⌞",AV="⇚",NV="⥫",DV="◺",$V="Ŀ",BV="ŀ",MV="⎰",LV="⎰",OV="⪉",VV="⪉",IV="⪇",PV="≨",FV="⪇",RV="≨",zV="⋦",UV="⟬",HV="⇽",qV="⟦",jV="⟵",WV="⟵",ZV="⟸",KV="⟷",GV="⟷",YV="⟺",JV="⟼",XV="⟶",QV="⟶",eI="⟹",tI="↫",nI="↬",oI="⦅",rI="𝕃",iI="𝕝",sI="⨭",aI="⨴",lI="∗",cI="_",uI="↙",dI="↘",fI="◊",pI="◊",mI="⧫",hI="(",gI="⦓",vI="⇆",_I="⌟",yI="⇋",CI="⥭",bI="‎",kI="⊿",wI="‹",EI="𝓁",SI="ℒ",xI="↰",TI="↰",AI="≲",NI="⪍",DI="⪏",$I="[",BI="‘",MI="‚",LI="Ł",OI="ł",VI="⪦",II="⩹",PI="<",FI="<",RI="≪",zI="⋖",UI="⋋",HI="⋉",qI="⥶",jI="⩻",WI="◃",ZI="⊴",KI="◂",GI="⦖",YI="⥊",JI="⥦",XI="≨︀",QI="≨︀",eP="¯",tP="♂",nP="✠",oP="✠",rP="↦",iP="↦",sP="↧",aP="↤",lP="↥",cP="▮",uP="⨩",dP="М",fP="м",pP="—",mP="∺",hP="∡",gP=" ",vP="ℳ",_P="𝔐",yP="𝔪",CP="℧",bP="µ",kP="*",wP="⫰",EP="∣",SP="·",xP="⊟",TP="−",AP="∸",NP="⨪",DP="∓",$P="⫛",BP="…",MP="∓",LP="⊧",OP="𝕄",VP="𝕞",IP="∓",PP="𝓂",FP="ℳ",RP="∾",zP="Μ",UP="μ",HP="⊸",qP="⊸",jP="∇",WP="Ń",ZP="ń",KP="∠⃒",GP="≉",YP="⩰̸",JP="≋̸",XP="ʼn",QP="≉",eF="♮",tF="ℕ",nF="♮",oF=" ",rF="≎̸",iF="≏̸",sF="⩃",aF="Ň",lF="ň",cF="Ņ",uF="ņ",dF="≇",fF="⩭̸",pF="⩂",mF="Н",hF="н",gF="–",vF="⤤",_F="↗",yF="⇗",CF="↗",bF="≠",kF="≐̸",wF="​",EF="​",SF="​",xF="​",TF="≢",AF="⤨",NF="≂̸",DF="≫",$F="≪",BF=`
2
+ `,MF="∄",LF="∄",OF="𝔑",VF="𝔫",IF="≧̸",PF="≱",FF="≱",RF="≧̸",zF="⩾̸",UF="⩾̸",HF="⋙̸",qF="≵",jF="≫⃒",WF="≯",ZF="≯",KF="≫̸",GF="↮",YF="⇎",JF="⫲",XF="∋",QF="⋼",eR="⋺",tR="∋",nR="Њ",oR="њ",rR="↚",iR="⇍",sR="‥",aR="≦̸",lR="≰",cR="↚",uR="⇍",dR="↮",fR="⇎",pR="≰",mR="≦̸",hR="⩽̸",gR="⩽̸",vR="≮",_R="⋘̸",yR="≴",CR="≪⃒",bR="≮",kR="⋪",wR="⋬",ER="≪̸",SR="∤",xR="⁠",TR=" ",AR="𝕟",NR="ℕ",DR="⫬",$R="¬",BR="≢",MR="≭",LR="∦",OR="∉",VR="≠",IR="≂̸",PR="∄",FR="≯",RR="≱",zR="≧̸",UR="≫̸",HR="≹",qR="⩾̸",jR="≵",WR="≎̸",ZR="≏̸",KR="∉",GR="⋵̸",YR="⋹̸",JR="∉",XR="⋷",QR="⋶",ez="⧏̸",tz="⋪",nz="⋬",oz="≮",rz="≰",iz="≸",sz="≪̸",az="⩽̸",lz="≴",cz="⪢̸",uz="⪡̸",dz="∌",fz="∌",pz="⋾",mz="⋽",hz="⊀",gz="⪯̸",vz="⋠",_z="∌",yz="⧐̸",Cz="⋫",bz="⋭",kz="⊏̸",wz="⋢",Ez="⊐̸",Sz="⋣",xz="⊂⃒",Tz="⊈",Az="⊁",Nz="⪰̸",Dz="⋡",$z="≿̸",Bz="⊃⃒",Mz="⊉",Lz="≁",Oz="≄",Vz="≇",Iz="≉",Pz="∤",Fz="∦",Rz="∦",zz="⫽⃥",Uz="∂̸",Hz="⨔",qz="⊀",jz="⋠",Wz="⊀",Zz="⪯̸",Kz="⪯̸",Gz="⤳̸",Yz="↛",Jz="⇏",Xz="↝̸",Qz="↛",eU="⇏",tU="⋫",nU="⋭",oU="⊁",rU="⋡",iU="⪰̸",sU="𝒩",aU="𝓃",lU="∤",cU="∦",uU="≁",dU="≄",fU="≄",pU="∤",mU="∦",hU="⋢",gU="⋣",vU="⊄",_U="⫅̸",yU="⊈",CU="⊂⃒",bU="⊈",kU="⫅̸",wU="⊁",EU="⪰̸",SU="⊅",xU="⫆̸",TU="⊉",AU="⊃⃒",NU="⊉",DU="⫆̸",$U="≹",BU="Ñ",MU="ñ",LU="≸",OU="⋪",VU="⋬",IU="⋫",PU="⋭",FU="Ν",RU="ν",zU="#",UU="№",HU=" ",qU="≍⃒",jU="⊬",WU="⊭",ZU="⊮",KU="⊯",GU="≥⃒",YU=">⃒",JU="⤄",XU="⧞",QU="⤂",eH="≤⃒",tH="<⃒",nH="⊴⃒",oH="⤃",rH="⊵⃒",iH="∼⃒",sH="⤣",aH="↖",lH="⇖",cH="↖",uH="⤧",dH="Ó",fH="ó",pH="⊛",mH="Ô",hH="ô",gH="⊚",vH="О",_H="о",yH="⊝",CH="Ő",bH="ő",kH="⨸",wH="⊙",EH="⦼",SH="Œ",xH="œ",TH="⦿",AH="𝔒",NH="𝔬",DH="˛",$H="Ò",BH="ò",MH="⧁",LH="⦵",OH="Ω",VH="∮",IH="↺",PH="⦾",FH="⦻",RH="‾",zH="⧀",UH="Ō",HH="ō",qH="Ω",jH="ω",WH="Ο",ZH="ο",KH="⦶",GH="⊖",YH="𝕆",JH="𝕠",XH="⦷",QH="“",eq="‘",tq="⦹",nq="⊕",oq="↻",rq="⩔",iq="∨",sq="⩝",aq="ℴ",lq="ℴ",cq="ª",uq="º",dq="⊶",fq="⩖",pq="⩗",mq="⩛",hq="Ⓢ",gq="𝒪",vq="ℴ",_q="Ø",yq="ø",Cq="⊘",bq="Õ",kq="õ",wq="⨶",Eq="⨷",Sq="⊗",xq="Ö",Tq="ö",Aq="⌽",Nq="‾",Dq="⏞",$q="⎴",Bq="⏜",Mq="¶",Lq="∥",Oq="∥",Vq="⫳",Iq="⫽",Pq="∂",Fq="∂",Rq="П",zq="п",Uq="%",Hq=".",qq="‰",jq="⊥",Wq="‱",Zq="𝔓",Kq="𝔭",Gq="Φ",Yq="φ",Jq="ϕ",Xq="ℳ",Qq="☎",ej="Π",tj="π",nj="⋔",oj="ϖ",rj="ℏ",ij="ℎ",sj="ℏ",aj="⨣",lj="⊞",cj="⨢",uj="+",dj="∔",fj="⨥",pj="⩲",mj="±",hj="±",gj="⨦",vj="⨧",_j="±",yj="ℌ",Cj="⨕",bj="𝕡",kj="ℙ",wj="£",Ej="⪷",Sj="⪻",xj="≺",Tj="≼",Aj="⪷",Nj="≺",Dj="≼",$j="≺",Bj="⪯",Mj="≼",Lj="≾",Oj="⪯",Vj="⪹",Ij="⪵",Pj="⋨",Fj="⪯",Rj="⪳",zj="≾",Uj="′",Hj="″",qj="ℙ",jj="⪹",Wj="⪵",Zj="⋨",Kj="∏",Gj="∏",Yj="⌮",Jj="⌒",Xj="⌓",Qj="∝",eW="∝",tW="∷",nW="∝",oW="≾",rW="⊰",iW="𝒫",sW="𝓅",aW="Ψ",lW="ψ",cW=" ",uW="𝔔",dW="𝔮",fW="⨌",pW="𝕢",mW="ℚ",hW="⁗",gW="𝒬",vW="𝓆",_W="ℍ",yW="⨖",CW="?",bW="≟",kW='"',wW='"',EW="⇛",SW="∽̱",xW="Ŕ",TW="ŕ",AW="√",NW="⦳",DW="⟩",$W="⟫",BW="⦒",MW="⦥",LW="⟩",OW="»",VW="⥵",IW="⇥",PW="⤠",FW="⤳",RW="→",zW="↠",UW="⇒",HW="⤞",qW="↪",jW="↬",WW="⥅",ZW="⥴",KW="⤖",GW="↣",YW="↝",JW="⤚",XW="⤜",QW="∶",eZ="ℚ",tZ="⤍",nZ="⤏",oZ="⤐",rZ="❳",iZ="}",sZ="]",aZ="⦌",lZ="⦎",cZ="⦐",uZ="Ř",dZ="ř",fZ="Ŗ",pZ="ŗ",mZ="⌉",hZ="}",gZ="Р",vZ="р",_Z="⤷",yZ="⥩",CZ="”",bZ="”",kZ="↳",wZ="ℜ",EZ="ℛ",SZ="ℜ",xZ="ℝ",TZ="ℜ",AZ="▭",NZ="®",DZ="®",$Z="∋",BZ="⇋",MZ="⥯",LZ="⥽",OZ="⌋",VZ="𝔯",IZ="ℜ",PZ="⥤",FZ="⇁",RZ="⇀",zZ="⥬",UZ="Ρ",HZ="ρ",qZ="ϱ",jZ="⟩",WZ="⇥",ZZ="→",KZ="→",GZ="⇒",YZ="⇄",JZ="↣",XZ="⌉",QZ="⟧",eK="⥝",tK="⥕",nK="⇂",oK="⌋",rK="⇁",iK="⇀",sK="⇄",aK="⇌",lK="⇉",cK="↝",uK="↦",dK="⊢",fK="⥛",pK="⋌",mK="⧐",hK="⊳",gK="⊵",vK="⥏",_K="⥜",yK="⥔",CK="↾",bK="⥓",kK="⇀",wK="˚",EK="≓",SK="⇄",xK="⇌",TK="‏",AK="⎱",NK="⎱",DK="⫮",$K="⟭",BK="⇾",MK="⟧",LK="⦆",OK="𝕣",VK="ℝ",IK="⨮",PK="⨵",FK="⥰",RK=")",zK="⦔",UK="⨒",HK="⇉",qK="⇛",jK="›",WK="𝓇",ZK="ℛ",KK="↱",GK="↱",YK="]",JK="’",XK="’",QK="⋌",eG="⋊",tG="▹",nG="⊵",oG="▸",rG="⧎",iG="⧴",sG="⥨",aG="℞",lG="Ś",cG="ś",uG="‚",dG="⪸",fG="Š",pG="š",mG="⪼",hG="≻",gG="≽",vG="⪰",_G="⪴",yG="Ş",CG="ş",bG="Ŝ",kG="ŝ",wG="⪺",EG="⪶",SG="⋩",xG="⨓",TG="≿",AG="С",NG="с",DG="⊡",$G="⋅",BG="⩦",MG="⤥",LG="↘",OG="⇘",VG="↘",IG="§",PG=";",FG="⤩",RG="∖",zG="∖",UG="✶",HG="𝔖",qG="𝔰",jG="⌢",WG="♯",ZG="Щ",KG="щ",GG="Ш",YG="ш",JG="↓",XG="←",QG="∣",eY="∥",tY="→",nY="↑",oY="­",rY="Σ",iY="σ",sY="ς",aY="ς",lY="∼",cY="⩪",uY="≃",dY="≃",fY="⪞",pY="⪠",mY="⪝",hY="⪟",gY="≆",vY="⨤",_Y="⥲",yY="←",CY="∘",bY="∖",kY="⨳",wY="⧤",EY="∣",SY="⌣",xY="⪪",TY="⪬",AY="⪬︀",NY="Ь",DY="ь",$Y="⌿",BY="⧄",MY="/",LY="𝕊",OY="𝕤",VY="♠",IY="♠",PY="∥",FY="⊓",RY="⊓︀",zY="⊔",UY="⊔︀",HY="√",qY="⊏",jY="⊑",WY="⊏",ZY="⊑",KY="⊐",GY="⊒",YY="⊐",JY="⊒",XY="□",QY="□",eJ="⊓",tJ="⊏",nJ="⊑",oJ="⊐",rJ="⊒",iJ="⊔",sJ="▪",aJ="□",lJ="▪",cJ="→",uJ="𝒮",dJ="𝓈",fJ="∖",pJ="⌣",mJ="⋆",hJ="⋆",gJ="☆",vJ="★",_J="ϵ",yJ="ϕ",CJ="¯",bJ="⊂",kJ="⋐",wJ="⪽",EJ="⫅",SJ="⊆",xJ="⫃",TJ="⫁",AJ="⫋",NJ="⊊",DJ="⪿",$J="⥹",BJ="⊂",MJ="⋐",LJ="⊆",OJ="⫅",VJ="⊆",IJ="⊊",PJ="⫋",FJ="⫇",RJ="⫕",zJ="⫓",UJ="⪸",HJ="≻",qJ="≽",jJ="≻",WJ="⪰",ZJ="≽",KJ="≿",GJ="⪰",YJ="⪺",JJ="⪶",XJ="⋩",QJ="≿",eX="∋",tX="∑",nX="∑",oX="♪",rX="¹",iX="²",sX="³",aX="⊃",lX="⋑",cX="⪾",uX="⫘",dX="⫆",fX="⊇",pX="⫄",mX="⊃",hX="⊇",gX="⟉",vX="⫗",_X="⥻",yX="⫂",CX="⫌",bX="⊋",kX="⫀",wX="⊃",EX="⋑",SX="⊇",xX="⫆",TX="⊋",AX="⫌",NX="⫈",DX="⫔",$X="⫖",BX="⤦",MX="↙",LX="⇙",OX="↙",VX="⤪",IX="ß",PX=" ",FX="⌖",RX="Τ",zX="τ",UX="⎴",HX="Ť",qX="ť",jX="Ţ",WX="ţ",ZX="Т",KX="т",GX="⃛",YX="⌕",JX="𝔗",XX="𝔱",QX="∴",eQ="∴",tQ="∴",nQ="Θ",oQ="θ",rQ="ϑ",iQ="ϑ",sQ="≈",aQ="∼",lQ="  ",cQ=" ",uQ=" ",dQ="≈",fQ="∼",pQ="Þ",mQ="þ",hQ="˜",gQ="∼",vQ="≃",_Q="≅",yQ="≈",CQ="⨱",bQ="⊠",kQ="×",wQ="⨰",EQ="∭",SQ="⤨",xQ="⌶",TQ="⫱",AQ="⊤",NQ="𝕋",DQ="𝕥",$Q="⫚",BQ="⤩",MQ="‴",LQ="™",OQ="™",VQ="▵",IQ="▿",PQ="◃",FQ="⊴",RQ="≜",zQ="▹",UQ="⊵",HQ="◬",qQ="≜",jQ="⨺",WQ="⃛",ZQ="⨹",KQ="⧍",GQ="⨻",YQ="⏢",JQ="𝒯",XQ="𝓉",QQ="Ц",eee="ц",tee="Ћ",nee="ћ",oee="Ŧ",ree="ŧ",iee="≬",see="↞",aee="↠",lee="Ú",cee="ú",uee="↑",dee="↟",fee="⇑",pee="⥉",mee="Ў",hee="ў",gee="Ŭ",vee="ŭ",_ee="Û",yee="û",Cee="У",bee="у",kee="⇅",wee="Ű",Eee="ű",See="⥮",xee="⥾",Tee="𝔘",Aee="𝔲",Nee="Ù",Dee="ù",$ee="⥣",Bee="↿",Mee="↾",Lee="▀",Oee="⌜",Vee="⌜",Iee="⌏",Pee="◸",Fee="Ū",Ree="ū",zee="¨",Uee="_",Hee="⏟",qee="⎵",jee="⏝",Wee="⋃",Zee="⊎",Kee="Ų",Gee="ų",Yee="𝕌",Jee="𝕦",Xee="⤒",Qee="↑",ete="↑",tte="⇑",nte="⇅",ote="↕",rte="↕",ite="⇕",ste="⥮",ate="↿",lte="↾",cte="⊎",ute="↖",dte="↗",fte="υ",pte="ϒ",mte="ϒ",hte="Υ",gte="υ",vte="↥",_te="⊥",yte="⇈",Cte="⌝",bte="⌝",kte="⌎",wte="Ů",Ete="ů",Ste="◹",xte="𝒰",Tte="𝓊",Ate="⋰",Nte="Ũ",Dte="ũ",$te="▵",Bte="▴",Mte="⇈",Lte="Ü",Ote="ü",Vte="⦧",Ite="⦜",Pte="ϵ",Fte="ϰ",Rte="∅",zte="ϕ",Ute="ϖ",Hte="∝",qte="↕",jte="⇕",Wte="ϱ",Zte="ς",Kte="⊊︀",Gte="⫋︀",Yte="⊋︀",Jte="⫌︀",Xte="ϑ",Qte="⊲",ene="⊳",tne="⫨",nne="⫫",one="⫩",rne="В",ine="в",sne="⊢",ane="⊨",lne="⊩",cne="⊫",une="⫦",dne="⊻",fne="∨",pne="⋁",mne="≚",hne="⋮",gne="|",vne="‖",_ne="|",yne="‖",Cne="∣",bne="|",kne="❘",wne="≀",Ene=" ",Sne="𝔙",xne="𝔳",Tne="⊲",Ane="⊂⃒",Nne="⊃⃒",Dne="𝕍",$ne="𝕧",Bne="∝",Mne="⊳",Lne="𝒱",One="𝓋",Vne="⫋︀",Ine="⊊︀",Pne="⫌︀",Fne="⊋︀",Rne="⊪",zne="⦚",Une="Ŵ",Hne="ŵ",qne="⩟",jne="∧",Wne="⋀",Zne="≙",Kne="℘",Gne="𝔚",Yne="𝔴",Jne="𝕎",Xne="𝕨",Qne="℘",eoe="≀",toe="≀",noe="𝒲",ooe="𝓌",roe="⋂",ioe="◯",soe="⋃",aoe="▽",loe="𝔛",coe="𝔵",uoe="⟷",doe="⟺",foe="Ξ",poe="ξ",moe="⟵",hoe="⟸",goe="⟼",voe="⋻",_oe="⨀",yoe="𝕏",Coe="𝕩",boe="⨁",koe="⨂",woe="⟶",Eoe="⟹",Soe="𝒳",xoe="𝓍",Toe="⨆",Aoe="⨄",Noe="△",Doe="⋁",$oe="⋀",Boe="Ý",Moe="ý",Loe="Я",Ooe="я",Voe="Ŷ",Ioe="ŷ",Poe="Ы",Foe="ы",Roe="¥",zoe="𝔜",Uoe="𝔶",Hoe="Ї",qoe="ї",joe="𝕐",Woe="𝕪",Zoe="𝒴",Koe="𝓎",Goe="Ю",Yoe="ю",Joe="ÿ",Xoe="Ÿ",Qoe="Ź",ere="ź",tre="Ž",nre="ž",ore="З",rre="з",ire="Ż",sre="ż",are="ℨ",lre="​",cre="Ζ",ure="ζ",dre="𝔷",fre="ℨ",pre="Ж",mre="ж",hre="⇝",gre="𝕫",vre="ℤ",_re="𝒵",yre="𝓏",Cre="‍",bre="‌",kre={Aacute:i9,aacute:s9,Abreve:a9,abreve:l9,ac:c9,acd:u9,acE:d9,Acirc:f9,acirc:p9,acute:m9,Acy:h9,acy:g9,AElig:v9,aelig:_9,af:y9,Afr:C9,afr:b9,Agrave:k9,agrave:w9,alefsym:E9,aleph:S9,Alpha:x9,alpha:T9,Amacr:A9,amacr:N9,amalg:D9,amp:$9,AMP:B9,andand:M9,And:L9,and:O9,andd:V9,andslope:I9,andv:P9,ang:F9,ange:R9,angle:z9,angmsdaa:U9,angmsdab:H9,angmsdac:q9,angmsdad:j9,angmsdae:W9,angmsdaf:Z9,angmsdag:K9,angmsdah:G9,angmsd:Y9,angrt:J9,angrtvb:X9,angrtvbd:Q9,angsph:e4,angst:t4,angzarr:n4,Aogon:o4,aogon:r4,Aopf:i4,aopf:s4,apacir:a4,ap:l4,apE:c4,ape:u4,apid:d4,apos:f4,ApplyFunction:p4,approx:m4,approxeq:h4,Aring:g4,aring:v4,Ascr:_4,ascr:y4,Assign:C4,ast:b4,asymp:k4,asympeq:w4,Atilde:E4,atilde:S4,Auml:x4,auml:T4,awconint:A4,awint:N4,backcong:D4,backepsilon:$4,backprime:B4,backsim:M4,backsimeq:L4,Backslash:O4,Barv:V4,barvee:I4,barwed:P4,Barwed:F4,barwedge:R4,bbrk:z4,bbrktbrk:U4,bcong:H4,Bcy:q4,bcy:j4,bdquo:W4,becaus:Z4,because:K4,Because:G4,bemptyv:Y4,bepsi:J4,bernou:X4,Bernoullis:Q4,Beta:e8,beta:t8,beth:n8,between:o8,Bfr:r8,bfr:i8,bigcap:s8,bigcirc:a8,bigcup:l8,bigodot:c8,bigoplus:u8,bigotimes:d8,bigsqcup:f8,bigstar:p8,bigtriangledown:m8,bigtriangleup:h8,biguplus:g8,bigvee:v8,bigwedge:_8,bkarow:y8,blacklozenge:C8,blacksquare:b8,blacktriangle:k8,blacktriangledown:w8,blacktriangleleft:E8,blacktriangleright:S8,blank:x8,blk12:T8,blk14:A8,blk34:N8,block:D8,bne:$8,bnequiv:B8,bNot:M8,bnot:L8,Bopf:O8,bopf:V8,bot:I8,bottom:P8,bowtie:F8,boxbox:R8,boxdl:z8,boxdL:U8,boxDl:H8,boxDL:q8,boxdr:j8,boxdR:W8,boxDr:Z8,boxDR:K8,boxh:G8,boxH:Y8,boxhd:J8,boxHd:X8,boxhD:Q8,boxHD:e6,boxhu:t6,boxHu:n6,boxhU:o6,boxHU:r6,boxminus:i6,boxplus:s6,boxtimes:a6,boxul:l6,boxuL:c6,boxUl:u6,boxUL:d6,boxur:f6,boxuR:p6,boxUr:m6,boxUR:h6,boxv:g6,boxV:v6,boxvh:_6,boxvH:y6,boxVh:C6,boxVH:b6,boxvl:k6,boxvL:w6,boxVl:E6,boxVL:S6,boxvr:x6,boxvR:T6,boxVr:A6,boxVR:N6,bprime:D6,breve:$6,Breve:B6,brvbar:M6,bscr:L6,Bscr:O6,bsemi:V6,bsim:I6,bsime:P6,bsolb:F6,bsol:R6,bsolhsub:z6,bull:U6,bullet:H6,bump:q6,bumpE:j6,bumpe:W6,Bumpeq:Z6,bumpeq:K6,Cacute:G6,cacute:Y6,capand:J6,capbrcup:X6,capcap:Q6,cap:ew,Cap:tw,capcup:nw,capdot:ow,CapitalDifferentialD:rw,caps:iw,caret:sw,caron:aw,Cayleys:lw,ccaps:cw,Ccaron:uw,ccaron:dw,Ccedil:fw,ccedil:pw,Ccirc:mw,ccirc:hw,Cconint:gw,ccups:vw,ccupssm:_w,Cdot:yw,cdot:Cw,cedil:bw,Cedilla:kw,cemptyv:ww,cent:Ew,centerdot:Sw,CenterDot:xw,cfr:Tw,Cfr:Aw,CHcy:Nw,chcy:Dw,check:$w,checkmark:Bw,Chi:Mw,chi:Lw,circ:Ow,circeq:Vw,circlearrowleft:Iw,circlearrowright:Pw,circledast:Fw,circledcirc:Rw,circleddash:zw,CircleDot:Uw,circledR:Hw,circledS:qw,CircleMinus:jw,CirclePlus:Ww,CircleTimes:Zw,cir:Kw,cirE:Gw,cire:Yw,cirfnint:Jw,cirmid:Xw,cirscir:Qw,ClockwiseContourIntegral:eE,CloseCurlyDoubleQuote:tE,CloseCurlyQuote:nE,clubs:oE,clubsuit:rE,colon:iE,Colon:sE,Colone:aE,colone:lE,coloneq:cE,comma:uE,commat:dE,comp:fE,compfn:pE,complement:mE,complexes:hE,cong:gE,congdot:vE,Congruent:_E,conint:yE,Conint:CE,ContourIntegral:bE,copf:kE,Copf:wE,coprod:EE,Coproduct:SE,copy:xE,COPY:TE,copysr:AE,CounterClockwiseContourIntegral:NE,crarr:DE,cross:$E,Cross:BE,Cscr:ME,cscr:LE,csub:OE,csube:VE,csup:IE,csupe:PE,ctdot:FE,cudarrl:RE,cudarrr:zE,cuepr:UE,cuesc:HE,cularr:qE,cularrp:jE,cupbrcap:WE,cupcap:ZE,CupCap:KE,cup:GE,Cup:YE,cupcup:JE,cupdot:XE,cupor:QE,cups:eS,curarr:tS,curarrm:nS,curlyeqprec:oS,curlyeqsucc:rS,curlyvee:iS,curlywedge:sS,curren:aS,curvearrowleft:lS,curvearrowright:cS,cuvee:uS,cuwed:dS,cwconint:fS,cwint:pS,cylcty:mS,dagger:hS,Dagger:gS,daleth:vS,darr:_S,Darr:yS,dArr:CS,dash:bS,Dashv:kS,dashv:wS,dbkarow:ES,dblac:SS,Dcaron:xS,dcaron:TS,Dcy:AS,dcy:NS,ddagger:DS,ddarr:$S,DD:BS,dd:MS,DDotrahd:LS,ddotseq:OS,deg:VS,Del:IS,Delta:PS,delta:FS,demptyv:RS,dfisht:zS,Dfr:US,dfr:HS,dHar:qS,dharl:jS,dharr:WS,DiacriticalAcute:ZS,DiacriticalDot:KS,DiacriticalDoubleAcute:GS,DiacriticalGrave:YS,DiacriticalTilde:JS,diam:XS,diamond:QS,Diamond:ex,diamondsuit:tx,diams:nx,die:ox,DifferentialD:rx,digamma:ix,disin:sx,div:ax,divide:lx,divideontimes:cx,divonx:ux,DJcy:dx,djcy:fx,dlcorn:px,dlcrop:mx,dollar:hx,Dopf:gx,dopf:vx,Dot:_x,dot:yx,DotDot:Cx,doteq:bx,doteqdot:kx,DotEqual:wx,dotminus:Ex,dotplus:Sx,dotsquare:xx,doublebarwedge:Tx,DoubleContourIntegral:Ax,DoubleDot:Nx,DoubleDownArrow:Dx,DoubleLeftArrow:$x,DoubleLeftRightArrow:Bx,DoubleLeftTee:Mx,DoubleLongLeftArrow:Lx,DoubleLongLeftRightArrow:Ox,DoubleLongRightArrow:Vx,DoubleRightArrow:Ix,DoubleRightTee:Px,DoubleUpArrow:Fx,DoubleUpDownArrow:Rx,DoubleVerticalBar:zx,DownArrowBar:Ux,downarrow:Hx,DownArrow:qx,Downarrow:jx,DownArrowUpArrow:Wx,DownBreve:Zx,downdownarrows:Kx,downharpoonleft:Gx,downharpoonright:Yx,DownLeftRightVector:Jx,DownLeftTeeVector:Xx,DownLeftVectorBar:Qx,DownLeftVector:eT,DownRightTeeVector:tT,DownRightVectorBar:nT,DownRightVector:oT,DownTeeArrow:rT,DownTee:iT,drbkarow:sT,drcorn:aT,drcrop:lT,Dscr:cT,dscr:uT,DScy:dT,dscy:fT,dsol:pT,Dstrok:mT,dstrok:hT,dtdot:gT,dtri:vT,dtrif:_T,duarr:yT,duhar:CT,dwangle:bT,DZcy:kT,dzcy:wT,dzigrarr:ET,Eacute:ST,eacute:xT,easter:TT,Ecaron:AT,ecaron:NT,Ecirc:DT,ecirc:$T,ecir:BT,ecolon:MT,Ecy:LT,ecy:OT,eDDot:VT,Edot:IT,edot:PT,eDot:FT,ee:RT,efDot:zT,Efr:UT,efr:HT,eg:qT,Egrave:jT,egrave:WT,egs:ZT,egsdot:KT,el:GT,Element:YT,elinters:JT,ell:XT,els:QT,elsdot:eA,Emacr:tA,emacr:nA,empty:oA,emptyset:rA,EmptySmallSquare:iA,emptyv:sA,EmptyVerySmallSquare:aA,emsp13:lA,emsp14:cA,emsp:uA,ENG:dA,eng:fA,ensp:pA,Eogon:mA,eogon:hA,Eopf:gA,eopf:vA,epar:_A,eparsl:yA,eplus:CA,epsi:bA,Epsilon:kA,epsilon:wA,epsiv:EA,eqcirc:SA,eqcolon:xA,eqsim:TA,eqslantgtr:AA,eqslantless:NA,Equal:DA,equals:$A,EqualTilde:BA,equest:MA,Equilibrium:LA,equiv:OA,equivDD:VA,eqvparsl:IA,erarr:PA,erDot:FA,escr:RA,Escr:zA,esdot:UA,Esim:HA,esim:qA,Eta:jA,eta:WA,ETH:ZA,eth:KA,Euml:GA,euml:YA,euro:JA,excl:XA,exist:QA,Exists:eN,expectation:tN,exponentiale:nN,ExponentialE:oN,fallingdotseq:rN,Fcy:iN,fcy:sN,female:aN,ffilig:lN,fflig:cN,ffllig:uN,Ffr:dN,ffr:fN,filig:pN,FilledSmallSquare:mN,FilledVerySmallSquare:hN,fjlig:gN,flat:vN,fllig:_N,fltns:yN,fnof:CN,Fopf:bN,fopf:kN,forall:wN,ForAll:EN,fork:SN,forkv:xN,Fouriertrf:TN,fpartint:AN,frac12:NN,frac13:DN,frac14:$N,frac15:BN,frac16:MN,frac18:LN,frac23:ON,frac25:VN,frac34:IN,frac35:PN,frac38:FN,frac45:RN,frac56:zN,frac58:UN,frac78:HN,frasl:qN,frown:jN,fscr:WN,Fscr:ZN,gacute:KN,Gamma:GN,gamma:YN,Gammad:JN,gammad:XN,gap:QN,Gbreve:eD,gbreve:tD,Gcedil:nD,Gcirc:oD,gcirc:rD,Gcy:iD,gcy:sD,Gdot:aD,gdot:lD,ge:cD,gE:uD,gEl:dD,gel:fD,geq:pD,geqq:mD,geqslant:hD,gescc:gD,ges:vD,gesdot:_D,gesdoto:yD,gesdotol:CD,gesl:bD,gesles:kD,Gfr:wD,gfr:ED,gg:SD,Gg:xD,ggg:TD,gimel:AD,GJcy:ND,gjcy:DD,gla:$D,gl:BD,glE:MD,glj:LD,gnap:OD,gnapprox:VD,gne:ID,gnE:PD,gneq:FD,gneqq:RD,gnsim:zD,Gopf:UD,gopf:HD,grave:qD,GreaterEqual:jD,GreaterEqualLess:WD,GreaterFullEqual:ZD,GreaterGreater:KD,GreaterLess:GD,GreaterSlantEqual:YD,GreaterTilde:JD,Gscr:XD,gscr:QD,gsim:e$,gsime:t$,gsiml:n$,gtcc:o$,gtcir:r$,gt:i$,GT:s$,Gt:a$,gtdot:l$,gtlPar:c$,gtquest:u$,gtrapprox:d$,gtrarr:f$,gtrdot:p$,gtreqless:m$,gtreqqless:h$,gtrless:g$,gtrsim:v$,gvertneqq:_$,gvnE:y$,Hacek:C$,hairsp:b$,half:k$,hamilt:w$,HARDcy:E$,hardcy:S$,harrcir:x$,harr:T$,hArr:A$,harrw:N$,Hat:D$,hbar:$$,Hcirc:B$,hcirc:M$,hearts:L$,heartsuit:O$,hellip:V$,hercon:I$,hfr:P$,Hfr:F$,HilbertSpace:R$,hksearow:z$,hkswarow:U$,hoarr:H$,homtht:q$,hookleftarrow:j$,hookrightarrow:W$,hopf:Z$,Hopf:K$,horbar:G$,HorizontalLine:Y$,hscr:J$,Hscr:X$,hslash:Q$,Hstrok:eB,hstrok:tB,HumpDownHump:nB,HumpEqual:oB,hybull:rB,hyphen:iB,Iacute:sB,iacute:aB,ic:lB,Icirc:cB,icirc:uB,Icy:dB,icy:fB,Idot:pB,IEcy:mB,iecy:hB,iexcl:gB,iff:vB,ifr:_B,Ifr:yB,Igrave:CB,igrave:bB,ii:kB,iiiint:wB,iiint:EB,iinfin:SB,iiota:xB,IJlig:TB,ijlig:AB,Imacr:NB,imacr:DB,image:$B,ImaginaryI:BB,imagline:MB,imagpart:LB,imath:OB,Im:VB,imof:IB,imped:PB,Implies:FB,incare:RB,in:"∈",infin:zB,infintie:UB,inodot:HB,intcal:qB,int:jB,Int:WB,integers:ZB,Integral:KB,intercal:GB,Intersection:YB,intlarhk:JB,intprod:XB,InvisibleComma:QB,InvisibleTimes:eM,IOcy:tM,iocy:nM,Iogon:oM,iogon:rM,Iopf:iM,iopf:sM,Iota:aM,iota:lM,iprod:cM,iquest:uM,iscr:dM,Iscr:fM,isin:pM,isindot:mM,isinE:hM,isins:gM,isinsv:vM,isinv:_M,it:yM,Itilde:CM,itilde:bM,Iukcy:kM,iukcy:wM,Iuml:EM,iuml:SM,Jcirc:xM,jcirc:TM,Jcy:AM,jcy:NM,Jfr:DM,jfr:$M,jmath:BM,Jopf:MM,jopf:LM,Jscr:OM,jscr:VM,Jsercy:IM,jsercy:PM,Jukcy:FM,jukcy:RM,Kappa:zM,kappa:UM,kappav:HM,Kcedil:qM,kcedil:jM,Kcy:WM,kcy:ZM,Kfr:KM,kfr:GM,kgreen:YM,KHcy:JM,khcy:XM,KJcy:QM,kjcy:eL,Kopf:tL,kopf:nL,Kscr:oL,kscr:rL,lAarr:iL,Lacute:sL,lacute:aL,laemptyv:lL,lagran:cL,Lambda:uL,lambda:dL,lang:fL,Lang:pL,langd:mL,langle:hL,lap:gL,Laplacetrf:vL,laquo:_L,larrb:yL,larrbfs:CL,larr:bL,Larr:kL,lArr:wL,larrfs:EL,larrhk:SL,larrlp:xL,larrpl:TL,larrsim:AL,larrtl:NL,latail:DL,lAtail:$L,lat:BL,late:ML,lates:LL,lbarr:OL,lBarr:VL,lbbrk:IL,lbrace:PL,lbrack:FL,lbrke:RL,lbrksld:zL,lbrkslu:UL,Lcaron:HL,lcaron:qL,Lcedil:jL,lcedil:WL,lceil:ZL,lcub:KL,Lcy:GL,lcy:YL,ldca:JL,ldquo:XL,ldquor:QL,ldrdhar:eO,ldrushar:tO,ldsh:nO,le:oO,lE:rO,LeftAngleBracket:iO,LeftArrowBar:sO,leftarrow:aO,LeftArrow:lO,Leftarrow:cO,LeftArrowRightArrow:uO,leftarrowtail:dO,LeftCeiling:fO,LeftDoubleBracket:pO,LeftDownTeeVector:mO,LeftDownVectorBar:hO,LeftDownVector:gO,LeftFloor:vO,leftharpoondown:_O,leftharpoonup:yO,leftleftarrows:CO,leftrightarrow:bO,LeftRightArrow:kO,Leftrightarrow:wO,leftrightarrows:EO,leftrightharpoons:SO,leftrightsquigarrow:xO,LeftRightVector:TO,LeftTeeArrow:AO,LeftTee:NO,LeftTeeVector:DO,leftthreetimes:$O,LeftTriangleBar:BO,LeftTriangle:MO,LeftTriangleEqual:LO,LeftUpDownVector:OO,LeftUpTeeVector:VO,LeftUpVectorBar:IO,LeftUpVector:PO,LeftVectorBar:FO,LeftVector:RO,lEg:zO,leg:UO,leq:HO,leqq:qO,leqslant:jO,lescc:WO,les:ZO,lesdot:KO,lesdoto:GO,lesdotor:YO,lesg:JO,lesges:XO,lessapprox:QO,lessdot:eV,lesseqgtr:tV,lesseqqgtr:nV,LessEqualGreater:oV,LessFullEqual:rV,LessGreater:iV,lessgtr:sV,LessLess:aV,lesssim:lV,LessSlantEqual:cV,LessTilde:uV,lfisht:dV,lfloor:fV,Lfr:pV,lfr:mV,lg:hV,lgE:gV,lHar:vV,lhard:_V,lharu:yV,lharul:CV,lhblk:bV,LJcy:kV,ljcy:wV,llarr:EV,ll:SV,Ll:xV,llcorner:TV,Lleftarrow:AV,llhard:NV,lltri:DV,Lmidot:$V,lmidot:BV,lmoustache:MV,lmoust:LV,lnap:OV,lnapprox:VV,lne:IV,lnE:PV,lneq:FV,lneqq:RV,lnsim:zV,loang:UV,loarr:HV,lobrk:qV,longleftarrow:jV,LongLeftArrow:WV,Longleftarrow:ZV,longleftrightarrow:KV,LongLeftRightArrow:GV,Longleftrightarrow:YV,longmapsto:JV,longrightarrow:XV,LongRightArrow:QV,Longrightarrow:eI,looparrowleft:tI,looparrowright:nI,lopar:oI,Lopf:rI,lopf:iI,loplus:sI,lotimes:aI,lowast:lI,lowbar:cI,LowerLeftArrow:uI,LowerRightArrow:dI,loz:fI,lozenge:pI,lozf:mI,lpar:hI,lparlt:gI,lrarr:vI,lrcorner:_I,lrhar:yI,lrhard:CI,lrm:bI,lrtri:kI,lsaquo:wI,lscr:EI,Lscr:SI,lsh:xI,Lsh:TI,lsim:AI,lsime:NI,lsimg:DI,lsqb:$I,lsquo:BI,lsquor:MI,Lstrok:LI,lstrok:OI,ltcc:VI,ltcir:II,lt:PI,LT:FI,Lt:RI,ltdot:zI,lthree:UI,ltimes:HI,ltlarr:qI,ltquest:jI,ltri:WI,ltrie:ZI,ltrif:KI,ltrPar:GI,lurdshar:YI,luruhar:JI,lvertneqq:XI,lvnE:QI,macr:eP,male:tP,malt:nP,maltese:oP,Map:"⤅",map:rP,mapsto:iP,mapstodown:sP,mapstoleft:aP,mapstoup:lP,marker:cP,mcomma:uP,Mcy:dP,mcy:fP,mdash:pP,mDDot:mP,measuredangle:hP,MediumSpace:gP,Mellintrf:vP,Mfr:_P,mfr:yP,mho:CP,micro:bP,midast:kP,midcir:wP,mid:EP,middot:SP,minusb:xP,minus:TP,minusd:AP,minusdu:NP,MinusPlus:DP,mlcp:$P,mldr:BP,mnplus:MP,models:LP,Mopf:OP,mopf:VP,mp:IP,mscr:PP,Mscr:FP,mstpos:RP,Mu:zP,mu:UP,multimap:HP,mumap:qP,nabla:jP,Nacute:WP,nacute:ZP,nang:KP,nap:GP,napE:YP,napid:JP,napos:XP,napprox:QP,natural:eF,naturals:tF,natur:nF,nbsp:oF,nbump:rF,nbumpe:iF,ncap:sF,Ncaron:aF,ncaron:lF,Ncedil:cF,ncedil:uF,ncong:dF,ncongdot:fF,ncup:pF,Ncy:mF,ncy:hF,ndash:gF,nearhk:vF,nearr:_F,neArr:yF,nearrow:CF,ne:bF,nedot:kF,NegativeMediumSpace:wF,NegativeThickSpace:EF,NegativeThinSpace:SF,NegativeVeryThinSpace:xF,nequiv:TF,nesear:AF,nesim:NF,NestedGreaterGreater:DF,NestedLessLess:$F,NewLine:BF,nexist:MF,nexists:LF,Nfr:OF,nfr:VF,ngE:IF,nge:PF,ngeq:FF,ngeqq:RF,ngeqslant:zF,nges:UF,nGg:HF,ngsim:qF,nGt:jF,ngt:WF,ngtr:ZF,nGtv:KF,nharr:GF,nhArr:YF,nhpar:JF,ni:XF,nis:QF,nisd:eR,niv:tR,NJcy:nR,njcy:oR,nlarr:rR,nlArr:iR,nldr:sR,nlE:aR,nle:lR,nleftarrow:cR,nLeftarrow:uR,nleftrightarrow:dR,nLeftrightarrow:fR,nleq:pR,nleqq:mR,nleqslant:hR,nles:gR,nless:vR,nLl:_R,nlsim:yR,nLt:CR,nlt:bR,nltri:kR,nltrie:wR,nLtv:ER,nmid:SR,NoBreak:xR,NonBreakingSpace:TR,nopf:AR,Nopf:NR,Not:DR,not:$R,NotCongruent:BR,NotCupCap:MR,NotDoubleVerticalBar:LR,NotElement:OR,NotEqual:VR,NotEqualTilde:IR,NotExists:PR,NotGreater:FR,NotGreaterEqual:RR,NotGreaterFullEqual:zR,NotGreaterGreater:UR,NotGreaterLess:HR,NotGreaterSlantEqual:qR,NotGreaterTilde:jR,NotHumpDownHump:WR,NotHumpEqual:ZR,notin:KR,notindot:GR,notinE:YR,notinva:JR,notinvb:XR,notinvc:QR,NotLeftTriangleBar:ez,NotLeftTriangle:tz,NotLeftTriangleEqual:nz,NotLess:oz,NotLessEqual:rz,NotLessGreater:iz,NotLessLess:sz,NotLessSlantEqual:az,NotLessTilde:lz,NotNestedGreaterGreater:cz,NotNestedLessLess:uz,notni:dz,notniva:fz,notnivb:pz,notnivc:mz,NotPrecedes:hz,NotPrecedesEqual:gz,NotPrecedesSlantEqual:vz,NotReverseElement:_z,NotRightTriangleBar:yz,NotRightTriangle:Cz,NotRightTriangleEqual:bz,NotSquareSubset:kz,NotSquareSubsetEqual:wz,NotSquareSuperset:Ez,NotSquareSupersetEqual:Sz,NotSubset:xz,NotSubsetEqual:Tz,NotSucceeds:Az,NotSucceedsEqual:Nz,NotSucceedsSlantEqual:Dz,NotSucceedsTilde:$z,NotSuperset:Bz,NotSupersetEqual:Mz,NotTilde:Lz,NotTildeEqual:Oz,NotTildeFullEqual:Vz,NotTildeTilde:Iz,NotVerticalBar:Pz,nparallel:Fz,npar:Rz,nparsl:zz,npart:Uz,npolint:Hz,npr:qz,nprcue:jz,nprec:Wz,npreceq:Zz,npre:Kz,nrarrc:Gz,nrarr:Yz,nrArr:Jz,nrarrw:Xz,nrightarrow:Qz,nRightarrow:eU,nrtri:tU,nrtrie:nU,nsc:oU,nsccue:rU,nsce:iU,Nscr:sU,nscr:aU,nshortmid:lU,nshortparallel:cU,nsim:uU,nsime:dU,nsimeq:fU,nsmid:pU,nspar:mU,nsqsube:hU,nsqsupe:gU,nsub:vU,nsubE:_U,nsube:yU,nsubset:CU,nsubseteq:bU,nsubseteqq:kU,nsucc:wU,nsucceq:EU,nsup:SU,nsupE:xU,nsupe:TU,nsupset:AU,nsupseteq:NU,nsupseteqq:DU,ntgl:$U,Ntilde:BU,ntilde:MU,ntlg:LU,ntriangleleft:OU,ntrianglelefteq:VU,ntriangleright:IU,ntrianglerighteq:PU,Nu:FU,nu:RU,num:zU,numero:UU,numsp:HU,nvap:qU,nvdash:jU,nvDash:WU,nVdash:ZU,nVDash:KU,nvge:GU,nvgt:YU,nvHarr:JU,nvinfin:XU,nvlArr:QU,nvle:eH,nvlt:tH,nvltrie:nH,nvrArr:oH,nvrtrie:rH,nvsim:iH,nwarhk:sH,nwarr:aH,nwArr:lH,nwarrow:cH,nwnear:uH,Oacute:dH,oacute:fH,oast:pH,Ocirc:mH,ocirc:hH,ocir:gH,Ocy:vH,ocy:_H,odash:yH,Odblac:CH,odblac:bH,odiv:kH,odot:wH,odsold:EH,OElig:SH,oelig:xH,ofcir:TH,Ofr:AH,ofr:NH,ogon:DH,Ograve:$H,ograve:BH,ogt:MH,ohbar:LH,ohm:OH,oint:VH,olarr:IH,olcir:PH,olcross:FH,oline:RH,olt:zH,Omacr:UH,omacr:HH,Omega:qH,omega:jH,Omicron:WH,omicron:ZH,omid:KH,ominus:GH,Oopf:YH,oopf:JH,opar:XH,OpenCurlyDoubleQuote:QH,OpenCurlyQuote:eq,operp:tq,oplus:nq,orarr:oq,Or:rq,or:iq,ord:sq,order:aq,orderof:lq,ordf:cq,ordm:uq,origof:dq,oror:fq,orslope:pq,orv:mq,oS:hq,Oscr:gq,oscr:vq,Oslash:_q,oslash:yq,osol:Cq,Otilde:bq,otilde:kq,otimesas:wq,Otimes:Eq,otimes:Sq,Ouml:xq,ouml:Tq,ovbar:Aq,OverBar:Nq,OverBrace:Dq,OverBracket:$q,OverParenthesis:Bq,para:Mq,parallel:Lq,par:Oq,parsim:Vq,parsl:Iq,part:Pq,PartialD:Fq,Pcy:Rq,pcy:zq,percnt:Uq,period:Hq,permil:qq,perp:jq,pertenk:Wq,Pfr:Zq,pfr:Kq,Phi:Gq,phi:Yq,phiv:Jq,phmmat:Xq,phone:Qq,Pi:ej,pi:tj,pitchfork:nj,piv:oj,planck:rj,planckh:ij,plankv:sj,plusacir:aj,plusb:lj,pluscir:cj,plus:uj,plusdo:dj,plusdu:fj,pluse:pj,PlusMinus:mj,plusmn:hj,plussim:gj,plustwo:vj,pm:_j,Poincareplane:yj,pointint:Cj,popf:bj,Popf:kj,pound:wj,prap:Ej,Pr:Sj,pr:xj,prcue:Tj,precapprox:Aj,prec:Nj,preccurlyeq:Dj,Precedes:$j,PrecedesEqual:Bj,PrecedesSlantEqual:Mj,PrecedesTilde:Lj,preceq:Oj,precnapprox:Vj,precneqq:Ij,precnsim:Pj,pre:Fj,prE:Rj,precsim:zj,prime:Uj,Prime:Hj,primes:qj,prnap:jj,prnE:Wj,prnsim:Zj,prod:Kj,Product:Gj,profalar:Yj,profline:Jj,profsurf:Xj,prop:Qj,Proportional:eW,Proportion:tW,propto:nW,prsim:oW,prurel:rW,Pscr:iW,pscr:sW,Psi:aW,psi:lW,puncsp:cW,Qfr:uW,qfr:dW,qint:fW,qopf:pW,Qopf:mW,qprime:hW,Qscr:gW,qscr:vW,quaternions:_W,quatint:yW,quest:CW,questeq:bW,quot:kW,QUOT:wW,rAarr:EW,race:SW,Racute:xW,racute:TW,radic:AW,raemptyv:NW,rang:DW,Rang:$W,rangd:BW,range:MW,rangle:LW,raquo:OW,rarrap:VW,rarrb:IW,rarrbfs:PW,rarrc:FW,rarr:RW,Rarr:zW,rArr:UW,rarrfs:HW,rarrhk:qW,rarrlp:jW,rarrpl:WW,rarrsim:ZW,Rarrtl:KW,rarrtl:GW,rarrw:YW,ratail:JW,rAtail:XW,ratio:QW,rationals:eZ,rbarr:tZ,rBarr:nZ,RBarr:oZ,rbbrk:rZ,rbrace:iZ,rbrack:sZ,rbrke:aZ,rbrksld:lZ,rbrkslu:cZ,Rcaron:uZ,rcaron:dZ,Rcedil:fZ,rcedil:pZ,rceil:mZ,rcub:hZ,Rcy:gZ,rcy:vZ,rdca:_Z,rdldhar:yZ,rdquo:CZ,rdquor:bZ,rdsh:kZ,real:wZ,realine:EZ,realpart:SZ,reals:xZ,Re:TZ,rect:AZ,reg:NZ,REG:DZ,ReverseElement:$Z,ReverseEquilibrium:BZ,ReverseUpEquilibrium:MZ,rfisht:LZ,rfloor:OZ,rfr:VZ,Rfr:IZ,rHar:PZ,rhard:FZ,rharu:RZ,rharul:zZ,Rho:UZ,rho:HZ,rhov:qZ,RightAngleBracket:jZ,RightArrowBar:WZ,rightarrow:ZZ,RightArrow:KZ,Rightarrow:GZ,RightArrowLeftArrow:YZ,rightarrowtail:JZ,RightCeiling:XZ,RightDoubleBracket:QZ,RightDownTeeVector:eK,RightDownVectorBar:tK,RightDownVector:nK,RightFloor:oK,rightharpoondown:rK,rightharpoonup:iK,rightleftarrows:sK,rightleftharpoons:aK,rightrightarrows:lK,rightsquigarrow:cK,RightTeeArrow:uK,RightTee:dK,RightTeeVector:fK,rightthreetimes:pK,RightTriangleBar:mK,RightTriangle:hK,RightTriangleEqual:gK,RightUpDownVector:vK,RightUpTeeVector:_K,RightUpVectorBar:yK,RightUpVector:CK,RightVectorBar:bK,RightVector:kK,ring:wK,risingdotseq:EK,rlarr:SK,rlhar:xK,rlm:TK,rmoustache:AK,rmoust:NK,rnmid:DK,roang:$K,roarr:BK,robrk:MK,ropar:LK,ropf:OK,Ropf:VK,roplus:IK,rotimes:PK,RoundImplies:FK,rpar:RK,rpargt:zK,rppolint:UK,rrarr:HK,Rrightarrow:qK,rsaquo:jK,rscr:WK,Rscr:ZK,rsh:KK,Rsh:GK,rsqb:YK,rsquo:JK,rsquor:XK,rthree:QK,rtimes:eG,rtri:tG,rtrie:nG,rtrif:oG,rtriltri:rG,RuleDelayed:iG,ruluhar:sG,rx:aG,Sacute:lG,sacute:cG,sbquo:uG,scap:dG,Scaron:fG,scaron:pG,Sc:mG,sc:hG,sccue:gG,sce:vG,scE:_G,Scedil:yG,scedil:CG,Scirc:bG,scirc:kG,scnap:wG,scnE:EG,scnsim:SG,scpolint:xG,scsim:TG,Scy:AG,scy:NG,sdotb:DG,sdot:$G,sdote:BG,searhk:MG,searr:LG,seArr:OG,searrow:VG,sect:IG,semi:PG,seswar:FG,setminus:RG,setmn:zG,sext:UG,Sfr:HG,sfr:qG,sfrown:jG,sharp:WG,SHCHcy:ZG,shchcy:KG,SHcy:GG,shcy:YG,ShortDownArrow:JG,ShortLeftArrow:XG,shortmid:QG,shortparallel:eY,ShortRightArrow:tY,ShortUpArrow:nY,shy:oY,Sigma:rY,sigma:iY,sigmaf:sY,sigmav:aY,sim:lY,simdot:cY,sime:uY,simeq:dY,simg:fY,simgE:pY,siml:mY,simlE:hY,simne:gY,simplus:vY,simrarr:_Y,slarr:yY,SmallCircle:CY,smallsetminus:bY,smashp:kY,smeparsl:wY,smid:EY,smile:SY,smt:xY,smte:TY,smtes:AY,SOFTcy:NY,softcy:DY,solbar:$Y,solb:BY,sol:MY,Sopf:LY,sopf:OY,spades:VY,spadesuit:IY,spar:PY,sqcap:FY,sqcaps:RY,sqcup:zY,sqcups:UY,Sqrt:HY,sqsub:qY,sqsube:jY,sqsubset:WY,sqsubseteq:ZY,sqsup:KY,sqsupe:GY,sqsupset:YY,sqsupseteq:JY,square:XY,Square:QY,SquareIntersection:eJ,SquareSubset:tJ,SquareSubsetEqual:nJ,SquareSuperset:oJ,SquareSupersetEqual:rJ,SquareUnion:iJ,squarf:sJ,squ:aJ,squf:lJ,srarr:cJ,Sscr:uJ,sscr:dJ,ssetmn:fJ,ssmile:pJ,sstarf:mJ,Star:hJ,star:gJ,starf:vJ,straightepsilon:_J,straightphi:yJ,strns:CJ,sub:bJ,Sub:kJ,subdot:wJ,subE:EJ,sube:SJ,subedot:xJ,submult:TJ,subnE:AJ,subne:NJ,subplus:DJ,subrarr:$J,subset:BJ,Subset:MJ,subseteq:LJ,subseteqq:OJ,SubsetEqual:VJ,subsetneq:IJ,subsetneqq:PJ,subsim:FJ,subsub:RJ,subsup:zJ,succapprox:UJ,succ:HJ,succcurlyeq:qJ,Succeeds:jJ,SucceedsEqual:WJ,SucceedsSlantEqual:ZJ,SucceedsTilde:KJ,succeq:GJ,succnapprox:YJ,succneqq:JJ,succnsim:XJ,succsim:QJ,SuchThat:eX,sum:tX,Sum:nX,sung:oX,sup1:rX,sup2:iX,sup3:sX,sup:aX,Sup:lX,supdot:cX,supdsub:uX,supE:dX,supe:fX,supedot:pX,Superset:mX,SupersetEqual:hX,suphsol:gX,suphsub:vX,suplarr:_X,supmult:yX,supnE:CX,supne:bX,supplus:kX,supset:wX,Supset:EX,supseteq:SX,supseteqq:xX,supsetneq:TX,supsetneqq:AX,supsim:NX,supsub:DX,supsup:$X,swarhk:BX,swarr:MX,swArr:LX,swarrow:OX,swnwar:VX,szlig:IX,Tab:PX,target:FX,Tau:RX,tau:zX,tbrk:UX,Tcaron:HX,tcaron:qX,Tcedil:jX,tcedil:WX,Tcy:ZX,tcy:KX,tdot:GX,telrec:YX,Tfr:JX,tfr:XX,there4:QX,therefore:eQ,Therefore:tQ,Theta:nQ,theta:oQ,thetasym:rQ,thetav:iQ,thickapprox:sQ,thicksim:aQ,ThickSpace:lQ,ThinSpace:cQ,thinsp:uQ,thkap:dQ,thksim:fQ,THORN:pQ,thorn:mQ,tilde:hQ,Tilde:gQ,TildeEqual:vQ,TildeFullEqual:_Q,TildeTilde:yQ,timesbar:CQ,timesb:bQ,times:kQ,timesd:wQ,tint:EQ,toea:SQ,topbot:xQ,topcir:TQ,top:AQ,Topf:NQ,topf:DQ,topfork:$Q,tosa:BQ,tprime:MQ,trade:LQ,TRADE:OQ,triangle:VQ,triangledown:IQ,triangleleft:PQ,trianglelefteq:FQ,triangleq:RQ,triangleright:zQ,trianglerighteq:UQ,tridot:HQ,trie:qQ,triminus:jQ,TripleDot:WQ,triplus:ZQ,trisb:KQ,tritime:GQ,trpezium:YQ,Tscr:JQ,tscr:XQ,TScy:QQ,tscy:eee,TSHcy:tee,tshcy:nee,Tstrok:oee,tstrok:ree,twixt:iee,twoheadleftarrow:see,twoheadrightarrow:aee,Uacute:lee,uacute:cee,uarr:uee,Uarr:dee,uArr:fee,Uarrocir:pee,Ubrcy:mee,ubrcy:hee,Ubreve:gee,ubreve:vee,Ucirc:_ee,ucirc:yee,Ucy:Cee,ucy:bee,udarr:kee,Udblac:wee,udblac:Eee,udhar:See,ufisht:xee,Ufr:Tee,ufr:Aee,Ugrave:Nee,ugrave:Dee,uHar:$ee,uharl:Bee,uharr:Mee,uhblk:Lee,ulcorn:Oee,ulcorner:Vee,ulcrop:Iee,ultri:Pee,Umacr:Fee,umacr:Ree,uml:zee,UnderBar:Uee,UnderBrace:Hee,UnderBracket:qee,UnderParenthesis:jee,Union:Wee,UnionPlus:Zee,Uogon:Kee,uogon:Gee,Uopf:Yee,uopf:Jee,UpArrowBar:Xee,uparrow:Qee,UpArrow:ete,Uparrow:tte,UpArrowDownArrow:nte,updownarrow:ote,UpDownArrow:rte,Updownarrow:ite,UpEquilibrium:ste,upharpoonleft:ate,upharpoonright:lte,uplus:cte,UpperLeftArrow:ute,UpperRightArrow:dte,upsi:fte,Upsi:pte,upsih:mte,Upsilon:hte,upsilon:gte,UpTeeArrow:vte,UpTee:_te,upuparrows:yte,urcorn:Cte,urcorner:bte,urcrop:kte,Uring:wte,uring:Ete,urtri:Ste,Uscr:xte,uscr:Tte,utdot:Ate,Utilde:Nte,utilde:Dte,utri:$te,utrif:Bte,uuarr:Mte,Uuml:Lte,uuml:Ote,uwangle:Vte,vangrt:Ite,varepsilon:Pte,varkappa:Fte,varnothing:Rte,varphi:zte,varpi:Ute,varpropto:Hte,varr:qte,vArr:jte,varrho:Wte,varsigma:Zte,varsubsetneq:Kte,varsubsetneqq:Gte,varsupsetneq:Yte,varsupsetneqq:Jte,vartheta:Xte,vartriangleleft:Qte,vartriangleright:ene,vBar:tne,Vbar:nne,vBarv:one,Vcy:rne,vcy:ine,vdash:sne,vDash:ane,Vdash:lne,VDash:cne,Vdashl:une,veebar:dne,vee:fne,Vee:pne,veeeq:mne,vellip:hne,verbar:gne,Verbar:vne,vert:_ne,Vert:yne,VerticalBar:Cne,VerticalLine:bne,VerticalSeparator:kne,VerticalTilde:wne,VeryThinSpace:Ene,Vfr:Sne,vfr:xne,vltri:Tne,vnsub:Ane,vnsup:Nne,Vopf:Dne,vopf:$ne,vprop:Bne,vrtri:Mne,Vscr:Lne,vscr:One,vsubnE:Vne,vsubne:Ine,vsupnE:Pne,vsupne:Fne,Vvdash:Rne,vzigzag:zne,Wcirc:Une,wcirc:Hne,wedbar:qne,wedge:jne,Wedge:Wne,wedgeq:Zne,weierp:Kne,Wfr:Gne,wfr:Yne,Wopf:Jne,wopf:Xne,wp:Qne,wr:eoe,wreath:toe,Wscr:noe,wscr:ooe,xcap:roe,xcirc:ioe,xcup:soe,xdtri:aoe,Xfr:loe,xfr:coe,xharr:uoe,xhArr:doe,Xi:foe,xi:poe,xlarr:moe,xlArr:hoe,xmap:goe,xnis:voe,xodot:_oe,Xopf:yoe,xopf:Coe,xoplus:boe,xotime:koe,xrarr:woe,xrArr:Eoe,Xscr:Soe,xscr:xoe,xsqcup:Toe,xuplus:Aoe,xutri:Noe,xvee:Doe,xwedge:$oe,Yacute:Boe,yacute:Moe,YAcy:Loe,yacy:Ooe,Ycirc:Voe,ycirc:Ioe,Ycy:Poe,ycy:Foe,yen:Roe,Yfr:zoe,yfr:Uoe,YIcy:Hoe,yicy:qoe,Yopf:joe,yopf:Woe,Yscr:Zoe,yscr:Koe,YUcy:Goe,yucy:Yoe,yuml:Joe,Yuml:Xoe,Zacute:Qoe,zacute:ere,Zcaron:tre,zcaron:nre,Zcy:ore,zcy:rre,Zdot:ire,zdot:sre,zeetrf:are,ZeroWidthSpace:lre,Zeta:cre,zeta:ure,zfr:dre,Zfr:fre,ZHcy:pre,zhcy:mre,zigrarr:hre,zopf:gre,Zopf:vre,Zscr:_re,zscr:yre,zwj:Cre,zwnj:bre};var lm=kre,hu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Zr={},Zd={};function wre(t){var e,n,o=Zd[t];if(o)return o;for(o=Zd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function Ua(t,e,n){var o,i,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Ua.defaultChars),typeof n>"u"&&(n=!0),l=wre(e),o=0,i=t.length;o<i;o++){if(s=t.charCodeAt(o),n&&s===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){c+=t.slice(o,o+3),o+=2;continue}if(s<128){c+=l[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<i&&(a=t.charCodeAt(o+1),a>=56320&&a<=57343)){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(t[o])}return c}Ua.defaultChars=";/?:@&=+$,-_.!~*'()#";Ua.componentChars="-_.!~*'()";var Ere=Ua,Kd={};function Sre(t){var e,n,o=Kd[t];if(o)return o;for(o=Kd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function Ha(t,e){var n;return typeof e!="string"&&(e=Ha.defaultChars),n=Sre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,s,a,l,c,u,d,f="";for(i=0,s=o.length;i<s;i+=3){if(a=parseInt(o.slice(i+1,i+3),16),a<128){f+=n[a];continue}if((a&224)===192&&i+3<s&&(l=parseInt(o.slice(i+4,i+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?f+="��":f+=String.fromCharCode(d),i+=3;continue}if((a&240)===224&&i+6<s&&(l=parseInt(o.slice(i+4,i+6),16),c=parseInt(o.slice(i+7,i+9),16),(l&192)===128&&(c&192)===128)){d=a<<12&61440|l<<6&4032|c&63,d<2048||d>=55296&&d<=57343?f+="���":f+=String.fromCharCode(d),i+=6;continue}if((a&248)===240&&i+9<s&&(l=parseInt(o.slice(i+4,i+6),16),c=parseInt(o.slice(i+7,i+9),16),u=parseInt(o.slice(i+10,i+12),16),(l&192)===128&&(c&192)===128&&(u&192)===128)){d=a<<18&1835008|l<<12&258048|c<<6&4032|u&63,d<65536||d>1114111?f+="����":(d-=65536,f+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}f+="�"}return f})}Ha.defaultChars=";/?:@&=+$,#";Ha.componentChars="";var xre=Ha,Tre=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function oa(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Are=/^([a-z0-9.+-]+:)/i,Nre=/:[0-9]*$/,Dre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,$re=["<",">",'"',"`"," ","\r",`
3
+ `," "],Bre=["{","}","|","\\","^","`"].concat($re),Mre=["'"].concat(Bre),Gd=["%","/","?",";","#"].concat(Mre),Yd=["/","?","#"],Lre=255,Jd=/^[+a-z0-9A-Z_-]{0,63}$/,Ore=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Xd={javascript:!0,"javascript:":!0},Qd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Vre(t,e){if(t&&t instanceof oa)return t;var n=new oa;return n.parse(t,e),n}oa.prototype.parse=function(t,e){var n,o,i,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=Dre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=Are.exec(l);if(u&&(u=u[0],i=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&Xd[u])&&(l=l.substr(2),this.slashes=!0)),!Xd[u]&&(a||u&&!Qd[u])){var d=-1;for(n=0;n<Yd.length;n++)s=l.indexOf(Yd[n]),s!==-1&&(d===-1||s<d)&&(d=s);var f,p;for(d===-1?p=l.lastIndexOf("@"):p=l.lastIndexOf("@",d),p!==-1&&(f=l.slice(0,p),l=l.slice(p+1),this.auth=f),d=-1,n=0;n<Gd.length;n++)s=l.indexOf(Gd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var m=l.slice(0,d);l=l.slice(d),this.parseHost(m),this.hostname=this.hostname||"";var h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var y=g[n];if(y&&!y.match(Jd)){for(var C="",v=0,_=y.length;v<_;v++)y.charCodeAt(v)>127?C+="x":C+=y[v];if(!C.match(Jd)){var b=g.slice(0,n),w=g.slice(n+1),k=y.match(Ore);k&&(b.push(k[1]),w.unshift(k[2])),w.length&&(l=w.join(".")+l),this.hostname=b.join(".");break}}}}this.hostname.length>Lre&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=l.indexOf("#");A!==-1&&(this.hash=l.substr(A),l=l.slice(0,A));var T=l.indexOf("?");return T!==-1&&(this.search=l.substr(T),l=l.slice(0,T)),l&&(this.pathname=l),Qd[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};oa.prototype.parseHost=function(t){var e=Nre.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Ire=Vre;Zr.encode=Ere;Zr.decode=xre;Zr.format=Tre;Zr.parse=Ire;var $o={},Sl,e1;function cm(){return e1||(e1=1,Sl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Sl}var xl,t1;function um(){return t1||(t1=1,xl=/[\0-\x1F\x7F-\x9F]/),xl}var Tl,n1;function Pre(){return n1||(n1=1,Tl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Tl}var Al,o1;function dm(){return o1||(o1=1,Al=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Al}var r1;function Fre(){return r1||(r1=1,$o.Any=cm(),$o.Cc=um(),$o.Cf=Pre(),$o.P=hu,$o.Z=dm()),$o}(function(t){function e(B){return Object.prototype.toString.call(B)}function n(B){return e(B)==="[object String]"}var o=Object.prototype.hasOwnProperty;function i(B,V){return o.call(B,V)}function s(B){var V=Array.prototype.slice.call(arguments,1);return V.forEach(function(I){if(I){if(typeof I!="object")throw new TypeError(I+"must be object");Object.keys(I).forEach(function(W){B[W]=I[W]})}}),B}function a(B,V,I){return[].concat(B.slice(0,V),I,B.slice(V+1))}function l(B){return!(B>=55296&&B<=57343||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534||B>=0&&B<=8||B===11||B>=14&&B<=31||B>=127&&B<=159||B>1114111)}function c(B){if(B>65535){B-=65536;var V=55296+(B>>10),I=56320+(B&1023);return String.fromCharCode(V,I)}return String.fromCharCode(B)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=lm;function h(B,V){var I;return i(m,V)?m[V]:V.charCodeAt(0)===35&&p.test(V)&&(I=V[1].toLowerCase()==="x"?parseInt(V.slice(2),16):parseInt(V.slice(1),10),l(I))?c(I):B}function g(B){return B.indexOf("\\")<0?B:B.replace(u,"$1")}function y(B){return B.indexOf("\\")<0&&B.indexOf("&")<0?B:B.replace(f,function(V,I,W){return I||h(V,W)})}var C=/[&<>"]/,v=/[&<>"]/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function b(B){return _[B]}function w(B){return C.test(B)?B.replace(v,b):B}var k=/[.?*+^$[\]\\(){}|-]/g;function A(B){return B.replace(k,"\\$&")}function T(B){switch(B){case 9:case 32:return!0}return!1}function S(B){if(B>=8192&&B<=8202)return!0;switch(B){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var E=hu;function D(B){return E.test(B)}function x(B){switch(B){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function $(B){return B=B.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(B=B.replace(/ẞ/g,"ß")),B.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Zr,t.lib.ucmicro=Fre(),t.assign=s,t.isString=n,t.has=i,t.unescapeMd=g,t.unescapeAll=y,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=a,t.isSpace=T,t.isWhiteSpace=S,t.isMdAsciiPunct=x,t.isPunctChar=D,t.escapeRE=A,t.normalizeReference=$})(Be);var qa={},Rre=function(e,n,o){var i,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,i=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)i++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},i1=Be.unescapeAll,zre=function(e,n,o){var i,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(i=e.charCodeAt(a),i===10||i===60)return l;if(i===62)return l.pos=a+1,l.str=i1(e.slice(n+1,a)),l.ok=!0,l;if(i===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(i=e.charCodeAt(a),!(i===32||i<32||i===127));){if(i===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(i===40&&(s++,s>32))return l;if(i===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=i1(e.slice(n,a)),l.pos=a,l.ok=!0),l},Ure=Be.unescapeAll,Hre=function(e,n,o){var i,s,a=0,l=n,c={ok:!1,pos:0,lines:0,str:""};if(l>=o||(s=e.charCodeAt(l),s!==34&&s!==39&&s!==40))return c;for(l++,s===40&&(s=41);l<o;){if(i=e.charCodeAt(l),i===s)return c.pos=l+1,c.lines=a,c.str=Ure(e.slice(n+1,l)),c.ok=!0,c;if(i===40&&s===41)return c;i===10?a++:i===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};qa.parseLinkLabel=Rre;qa.parseLinkDestination=zre;qa.parseLinkTitle=Hre;var qre=Be.assign,jre=Be.unescapeAll,Jo=Be.escapeHtml,On={};On.code_inline=function(t,e,n,o,i){var s=t[e];return"<code"+i.renderAttrs(s)+">"+Jo(s.content)+"</code>"};On.code_block=function(t,e,n,o,i){var s=t[e];return"<pre"+i.renderAttrs(s)+"><code>"+Jo(t[e].content)+`</code></pre>
4
+ `};On.fence=function(t,e,n,o,i){var s=t[e],a=s.info?jre(s.info).trim():"",l="",c="",u,d,f,p,m;return a&&(f=a.split(/(\s+)/g),l=f[0],c=f.slice(2).join("")),n.highlight?u=n.highlight(s.content,l,c)||Jo(s.content):u=Jo(s.content),u.indexOf("<pre")===0?u+`
5
5
  `:a?(d=s.attrIndex("class"),p=s.attrs?s.attrs.slice():[],d<0?p.push(["class",n.langPrefix+l]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+l),m={attrs:p},"<pre><code"+i.renderAttrs(m)+">"+u+`</code></pre>
6
6
  `):"<pre><code"+i.renderAttrs(s)+">"+u+`</code></pre>
7
7
  `};On.image=function(t,e,n,o,i){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,n,o),i.renderToken(t,e,n)};On.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
@@ -9,54 +9,54 @@
9
9
  `};On.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
10
10
  `:`<br>
11
11
  `:`
12
- `};On.text=function(t,e){return Jo(t[e].content)};On.html_block=function(t,e){return t[e].content};On.html_inline=function(t,e){return t[e].content};function Kr(){this.rules=Hre({},On)}Kr.prototype.renderAttrs=function(e){var n,o,i;if(!e.attrs)return"";for(i="",n=0,o=e.attrs.length;n<o;n++)i+=" "+Jo(e.attrs[n][0])+'="'+Jo(e.attrs[n][1])+'"';return i};Kr.prototype.renderToken=function(e,n,o){var i,s="",a=!1,l=e[n];return l.hidden?"":(l.block&&l.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
12
+ `};On.text=function(t,e){return Jo(t[e].content)};On.html_block=function(t,e){return t[e].content};On.html_inline=function(t,e){return t[e].content};function Kr(){this.rules=qre({},On)}Kr.prototype.renderAttrs=function(e){var n,o,i;if(!e.attrs)return"";for(i="",n=0,o=e.attrs.length;n<o;n++)i+=" "+Jo(e.attrs[n][0])+'="'+Jo(e.attrs[n][1])+'"';return i};Kr.prototype.renderToken=function(e,n,o){var i,s="",a=!1,l=e[n];return l.hidden?"":(l.block&&l.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
13
13
  `),s+=(l.nesting===-1?"</":"<")+l.tag,s+=this.renderAttrs(l),l.nesting===0&&o.xhtmlOut&&(s+=" /"),l.block&&(a=!0,l.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===l.tag)&&(a=!1))),s+=a?`>
14
14
  `:">",s)};Kr.prototype.renderInline=function(t,e,n){for(var o,i="",s=this.rules,a=0,l=t.length;a<l;a++)o=t[a].type,typeof s[o]<"u"?i+=s[o](t,a,e,n,this):i+=this.renderToken(t,a,e);return i};Kr.prototype.renderInlineAsText=function(t,e,n){for(var o="",i=0,s=t.length;i<s;i++)t[i].type==="text"?o+=t[i].content:t[i].type==="image"?o+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(o+=`
15
- `);return o};Kr.prototype.render=function(t,e,n){var o,i,s,a="",l=this.rules;for(o=0,i=t.length;o<i;o++)s=t[o].type,s==="inline"?a+=this.renderInline(t[o].children,e,n):typeof l[s]<"u"?a+=l[s](t,o,e,n,this):a+=this.renderToken(t,o,e,n);return a};var jre=Kr;function gn(){this.__rules__=[],this.__cache__=null}gn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};gn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};gn.prototype.at=function(t,e,n){var o=this.__find__(t),i=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=i.alt||[],this.__cache__=null};gn.prototype.before=function(t,e,n,o){var i=this.__find__(t),s=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};gn.prototype.after=function(t,e,n,o){var i=this.__find__(t),s=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};gn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};gn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!0,n.push(o)},this),this.__cache__=null,n};gn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};gn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!1,n.push(o)},this),this.__cache__=null,n};gn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var gu=gn,Wre=/\r\n?|\n/g,Zre=/\0/g,Kre=function(e){var n;n=e.src.replace(Wre,`
16
- `),n=n.replace(Zre,"�"),e.src=n},Gre=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Yre=function(e){var n=e.tokens,o,i,s;for(i=0,s=n.length;i<s;i++)o=n[i],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Jre=Be.arrayReplaceAt;function Xre(t){return/^<a[>\s]/i.test(t)}function Qre(t){return/^<\/a\s*>/i.test(t)}var eie=function(e){var n,o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,_=e.tokens,v;if(e.md.options.linkify){for(o=0,i=_.length;o<i;o++)if(!(_[o].type!=="inline"||!e.md.linkify.pretest(_[o].content)))for(s=_[o].children,h=0,n=s.length-1;n>=0;n--){if(l=s[n],l.type==="link_close"){for(n--;s[n].level!==l.level&&s[n].type!=="link_open";)n--;continue}if(l.type==="html_inline"&&(Xre(l.content)&&h>0&&h--,Qre(l.content)&&h++),!(h>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(d=l.content,v=e.md.linkify.match(d),c=[],m=l.level,p=0,v.length>0&&v[0].index===0&&n>0&&s[n-1].type==="text_special"&&(v=v.slice(1)),u=0;u<v.length;u++)g=v[u].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(C=v[u].text,v[u].schema?v[u].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),f=v[u].index,f>p&&(a=new e.Token("text","",0),a.content=d.slice(p,f),a.level=m,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",y]],a.level=m++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=C,a.level=m,c.push(a),a=new e.Token("link_close","a",-1),a.level=--m,a.markup="linkify",a.info="auto",c.push(a),p=v[u].lastIndex);p<d.length&&(a=new e.Token("text","",0),a.content=d.slice(p),a.level=m,c.push(a)),_[o].children=s=Jre(s,n,c)}}}},dm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tie=/\((c|tm|r)\)/i,nie=/\((c|tm|r)\)/ig,oie={c:"©",r:"®",tm:"™"};function rie(t,e){return oie[e.toLowerCase()]}function iie(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(nie,rie)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function sie(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&dm.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var aie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(tie.test(e.tokens[n].content)&&iie(e.tokens[n].children),dm.test(e.tokens[n].content)&&sie(e.tokens[n].children))},s1=Be.isWhiteSpace,a1=Be.isPunctChar,l1=Be.isMdAsciiPunct,lie=/['"]/,c1=/['"]/g,u1="’";function Ds(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function cie(t,e){var n,o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,_,v,b,w,k;for(b=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,_=b.length-1;_>=0&&!(b[_].level<=c);_--);if(b.length=_+1,o.type==="text"){i=o.content,a=0,l=i.length;e:for(;a<l&&(c1.lastIndex=a,s=c1.exec(i),!!s);){if(y=C=!0,a=s.index+1,v=s[0]==="'",d=32,s.index-1>=0)d=i.charCodeAt(s.index-1);else for(_=n-1;_>=0&&!(t[_].type==="softbreak"||t[_].type==="hardbreak");_--)if(t[_].content){d=t[_].content.charCodeAt(t[_].content.length-1);break}if(f=32,a<l)f=i.charCodeAt(a);else for(_=n+1;_<t.length&&!(t[_].type==="softbreak"||t[_].type==="hardbreak");_++)if(t[_].content){f=t[_].content.charCodeAt(0);break}if(p=l1(d)||a1(String.fromCharCode(d)),m=l1(f)||a1(String.fromCharCode(f)),h=s1(d),g=s1(f),g?y=!1:m&&(h||p||(y=!1)),h?C=!1:p&&(g||m||(C=!1)),f===34&&s[0]==='"'&&d>=48&&d<=57&&(C=y=!1),y&&C&&(y=p,C=m),!y&&!C){v&&(o.content=Ds(o.content,s.index,u1));continue}if(C){for(_=b.length-1;_>=0&&(u=b[_],!(b[_].level<c));_--)if(u.single===v&&b[_].level===c){u=b[_],v?(w=e.md.options.quotes[2],k=e.md.options.quotes[3]):(w=e.md.options.quotes[0],k=e.md.options.quotes[1]),o.content=Ds(o.content,s.index,k),t[u.token].content=Ds(t[u.token].content,u.pos,w),a+=k.length-1,u.token===n&&(a+=w.length-1),i=o.content,l=i.length,b.length=_;continue e}}y?b.push({token:n,pos:s.index,single:v,level:c}):C&&v&&(o.content=Ds(o.content,s.index,u1))}}}}var uie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!lie.test(e.tokens[n].content)||cie(e.tokens[n].children,e)},die=function(e){var n,o,i,s,a,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(i=c[n].children,a=i.length,s=0;s<a;s++)i[s].type==="text_special"&&(i[s].type="text");for(s=l=0;s<a;s++)i[s].type==="text"&&s+1<a&&i[s+1].type==="text"?i[s+1].content=i[s].content+i[s+1].content:(s!==l&&(i[l]=i[s]),l++);s!==l&&(i.length=l)}};function Gr(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Gr.prototype.attrIndex=function(e){var n,o,i;if(!this.attrs)return-1;for(n=this.attrs,o=0,i=n.length;o<i;o++)if(n[o][0]===e)return o;return-1};Gr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Gr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i};Gr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};Gr.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var vu=Gr,fie=vu;function fm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}fm.prototype.Token=fie;var pie=fm,mie=gu,Nl=[["normalize",Kre],["block",Gre],["inline",Yre],["linkify",eie],["replacements",aie],["smartquotes",uie],["text_join",die]];function _u(){this.ruler=new mie;for(var t=0;t<Nl.length;t++)this.ruler.push(Nl[t][0],Nl[t][1])}_u.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};_u.prototype.State=pie;var hie=_u,Dl=Be.isSpace;function $l(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function d1(t){var e=[],n=0,o=t.length,i,s=!1,a=0,l="";for(i=t.charCodeAt(n);n<o;)i===124&&(s?(l+=t.substring(a,n-1),a=n):(e.push(l+t.substring(a,n)),l="",a=n+1)),s=i===92,n++,i=t.charCodeAt(n);return e.push(l+t.substring(a)),e}var gie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,_,v,b,w,k;if(n+2>o||(d=n+1,e.sCount[d]<e.blkIndent)||e.sCount[d]-e.blkIndent>=4||(l=e.bMarks[d]+e.tShift[d],l>=e.eMarks[d])||(w=e.src.charCodeAt(l++),w!==124&&w!==45&&w!==58)||l>=e.eMarks[d]||(k=e.src.charCodeAt(l++),k!==124&&k!==45&&k!==58&&!Dl(k))||w===45&&Dl(k))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Dl(s))return!1;l++}for(a=$l(e,n+1),f=a.split("|"),h=[],c=0;c<f.length;c++){if(g=f[c].trim(),!g){if(c===0||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?h.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?h.push("left"):h.push("")}if(a=$l(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=d1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==h.length))return!1;if(i)return!0;for(_=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=y=[n,0],m=e.push("thead_open","thead",1),m.map=[n,n+1],m=e.push("tr_open","tr",1),m.map=[n,n+1],c=0;c<f.length;c++)m=e.push("th_open","th",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(v=!1,c=0,u=b.length;c<u;c++)if(b[c](e,d,o,!0)){v=!0;break}if(v||(a=$l(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=d1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===n+2&&(m=e.push("tbody_open","tbody",1),m.map=C=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[d,d+1],c=0;c<p;c++)m=e.push("td_open","td",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c]?f[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return C&&(m=e.push("tbody_close","tbody",-1),C[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=_,e.line=d,!0},vie=function(e,n,o){var i,s,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=i=n+1;i<o;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,s=i;continue}break}return e.line=s,a=e.push("code_block","code",0),a.content=e.getLines(n,s,4+e.blkIndent,!1)+`
17
- `,a.map=[n,e.line],!0},_ie=function(e,n,o,i){var s,a,l,c,u,d,f,p=!1,m=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>h||(s=e.src.charCodeAt(m),s!==126&&s!==96)||(u=m,m=e.skipChars(m,s),a=m-u,a<3)||(f=e.src.slice(u,m),l=e.src.slice(m,h),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(c=n;c++,!(c>=o||(m=u=e.bMarks[c]+e.tShift[c],h=e.eMarks[c],m<h&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(m)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(m=e.skipChars(m,s),!(m-u<a)&&(m=e.skipSpaces(m),!(m<h)))){p=!0;break}return a=e.sCount[n],e.line=c+(p?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(n+1,c,a,!0),d.markup=f,d.map=[n,e.line],!0},yie=Be.isSpace,Cie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,_,v,b,w,k,T,A,S=e.lineMax,E=e.bMarks[n]+e.tShift[n],D=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(E)!==62)return!1;if(i)return!0;for(h=[],g=[],_=[],v=[],k=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",p=n;p<o&&(A=e.sCount[p]<e.blkIndent,E=e.bMarks[p]+e.tShift[p],D=e.eMarks[p],!(E>=D));p++){if(e.src.charCodeAt(E++)===62&&!A){for(c=e.sCount[p]+1,e.src.charCodeAt(E)===32?(E++,c++,s=!1,b=!0):e.src.charCodeAt(E)===9?(b=!0,(e.bsCount[p]+c)%4===3?(E++,c++,s=!1):s=!0):b=!1,m=c,h.push(e.bMarks[p]),e.bMarks[p]=E;E<D&&(a=e.src.charCodeAt(E),yie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;E++}d=E>=D,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(b?1:0),_.push(e.sCount[p]),e.sCount[p]=m-c,v.push(e.tShift[p]),e.tShift[p]=E-e.bMarks[p];continue}if(d)break;for(w=!1,l=0,u=k.length;l<u;l++)if(k[l](e,p,o,!0)){w=!0;break}if(w){e.lineMax=p,e.blkIndent!==0&&(h.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),_.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),_.push(e.sCount[p]),e.sCount[p]=-1}for(y=e.blkIndent,e.blkIndent=0,T=e.push("blockquote_open","blockquote",1),T.markup=">",T.map=f=[n,0],e.md.block.tokenize(e,n,p),T=e.push("blockquote_close","blockquote",-1),T.markup=">",e.lineMax=S,e.parentType=C,f[1]=e.line,l=0;l<v.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=v[l],e.sCount[l+n]=_[l],e.bsCount[l+n]=g[l];return e.blkIndent=y,!0},bie=Be.isSpace,kie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(a=1;u<d;){if(l=e.src.charCodeAt(u++),l!==s&&!bie(l))return!1;l===s&&a++}return a<3?!1:(i||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(a+1).join(String.fromCharCode(s))),!0)},pm=Be.isSpace;function f1(t,e){var n,o,i,s;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(s=t.src.charCodeAt(o),!pm(s))?-1:o}function p1(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,s=t.eMarks[e];if(i+1>=s||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=s)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<s&&(n=t.src.charCodeAt(i),!pm(n))?-1:i}function wie(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var Eie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,_,v,b,w,k,T,A,S,E,D,x,$,B,V,I=n,W=!1,P=!0;if(e.sCount[I]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[I]-e.listIndent>=4&&e.sCount[I]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[I]>=e.blkIndent&&(W=!0),(E=p1(e,I))>=0){if(f=!0,x=e.bMarks[I]+e.tShift[I],C=Number(e.src.slice(x,E-1)),W&&C!==1)return!1}else if((E=f1(e,I))>=0)f=!1;else return!1;if(W&&e.skipSpaces(E)>=e.eMarks[I])return!1;if(i)return!0;for(y=e.src.charCodeAt(E-1),g=e.tokens.length,f?(V=e.push("ordered_list_open","ol",1),C!==1&&(V.attrs=[["start",C]])):V=e.push("bullet_list_open","ul",1),V.map=h=[I,0],V.markup=String.fromCharCode(y),D=!1,B=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";I<o;){for(S=E,_=e.eMarks[I],d=v=e.sCount[I]+E-(e.bMarks[I]+e.tShift[I]);S<_;){if(s=e.src.charCodeAt(S),s===9)v+=4-(v+e.bsCount[I])%4;else if(s===32)v++;else break;S++}if(a=S,a>=_?u=1:u=v-d,u>4&&(u=1),c=d+u,V=e.push("list_item_open","li",1),V.markup=String.fromCharCode(y),V.map=p=[I,0],f&&(V.info=e.src.slice(x,E-1)),A=e.tight,T=e.tShift[I],k=e.sCount[I],b=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[I]=a-e.bMarks[I],e.sCount[I]=v,a>=_&&e.isEmpty(I+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,I,o,!0),(!e.tight||D)&&(P=!1),D=e.line-I>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=b,e.tShift[I]=T,e.sCount[I]=k,e.tight=A,V=e.push("list_item_close","li",-1),V.markup=String.fromCharCode(y),I=e.line,p[1]=I,I>=o||e.sCount[I]<e.blkIndent||e.sCount[I]-e.blkIndent>=4)break;for($=!1,l=0,m=B.length;l<m;l++)if(B[l](e,I,o,!0)){$=!0;break}if($)break;if(f){if(E=p1(e,I),E<0)break;x=e.bMarks[I]+e.tShift[I]}else if(E=f1(e,I),E<0)break;if(y!==e.src.charCodeAt(E-1))break}return f?V=e.push("ordered_list_close","ol",-1):V=e.push("bullet_list_close","ul",-1),V.markup=String.fromCharCode(y),h[1]=I,e.line=I,e.parentType=w,P&&wie(e,g),!0},Sie=Be.normalizeReference,$s=Be.isSpace,xie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,_,v,b,w=0,k=e.bMarks[n]+e.tShift[n],T=e.eMarks[n],A=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(k)!==91)return!1;for(;++k<T;)if(e.src.charCodeAt(k)===93&&e.src.charCodeAt(k-1)!==92){if(k+1===T||e.src.charCodeAt(k+1)!==58)return!1;break}for(c=e.lineMax,v=e.md.block.ruler.getRules("reference"),h=e.parentType,e.parentType="reference";A<c&&!e.isEmpty(A);A++)if(!(e.sCount[A]-e.blkIndent>3)&&!(e.sCount[A]<0)){for(_=!1,d=0,f=v.length;d<f;d++)if(v[d](e,A,c,!0)){_=!0;break}if(_)break}for(C=e.getLines(n,A,e.blkIndent,!1).trim(),T=C.length,k=1;k<T;k++){if(s=C.charCodeAt(k),s===91)return!1;if(s===93){m=k;break}else s===10?w++:s===92&&(k++,k<T&&C.charCodeAt(k)===10&&w++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(k=m+2;k<T;k++)if(s=C.charCodeAt(k),s===10)w++;else if(!$s(s))break;if(g=e.md.helpers.parseLinkDestination(C,k,T),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(k=g.pos,w+=g.lines,a=k,l=w,y=k;k<T;k++)if(s=C.charCodeAt(k),s===10)w++;else if(!$s(s))break;for(g=e.md.helpers.parseLinkTitle(C,k,T),k<T&&y!==k&&g.ok?(b=g.str,k=g.pos,w+=g.lines):(b="",k=a,w=l);k<T&&(s=C.charCodeAt(k),!!$s(s));)k++;if(k<T&&C.charCodeAt(k)!==10&&b)for(b="",k=a,w=l;k<T&&(s=C.charCodeAt(k),!!$s(s));)k++;return k<T&&C.charCodeAt(k)!==10||(p=Sie(C.slice(1,m)),!p)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:b,href:u}),e.parentType=h,e.line=n+w+1),!0)},Aie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ja={},Tie="[a-zA-Z_:][a-zA-Z0-9:._-]*",Nie="[^\"'=<>`\\x00-\\x20]+",Die="'[^']*'",$ie='"[^"]*"',Bie="(?:"+Nie+"|"+Die+"|"+$ie+")",Mie="(?:\\s+"+Tie+"(?:\\s*=\\s*"+Bie+")?)",mm="<[A-Za-z][A-Za-z0-9\\-]*"+Mie+"*\\s*\\/?>",hm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Lie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Oie="<[?][\\s\\S]*?[?]>",Vie="<![A-Z]+\\s+[^>]*>",Iie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Pie=new RegExp("^(?:"+mm+"|"+hm+"|"+Lie+"|"+Oie+"|"+Vie+"|"+Iie+")"),Fie=new RegExp("^(?:"+mm+"|"+hm+")");ja.HTML_TAG_RE=Pie;ja.HTML_OPEN_CLOSE_TAG_RE=Fie;var Rie=Aie,zie=ja.HTML_OPEN_CLOSE_TAG_RE,hr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Rie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(zie.source+"\\s*$"),/^$/,!1]],Uie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(c=e.src.slice(u,d),s=0;s<hr.length&&!hr[s][0].test(c);s++);if(s===hr.length)return!1;if(i)return hr[s][2];if(a=n+1,!hr[s][1].test(c)){for(;a<o&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],c=e.src.slice(u,d),hr[s][1].test(c)){c.length!==0&&a++;break}}return e.line=a,l=e.push("html_block","",0),l.map=[n,a],l.content=e.getLines(n,a,e.blkIndent,!0),!0},m1=Be.isSpace,Hie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=d))return!1;for(a=1,s=e.src.charCodeAt(++u);s===35&&u<d&&a<=6;)a++,s=e.src.charCodeAt(++u);return a>6||u<d&&!m1(s)?!1:(i||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&m1(e.src.charCodeAt(l-1))&&(d=l),e.line=n+1,c=e.push("heading_open","h"+String(a),1),c.markup="########".slice(0,a),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(u,d).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(a),-1),c.markup="########".slice(0,a)),!0)},qie=function(e,n,o){var i,s,a,l,c,u,d,f,p,m=n+1,h,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<o&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(u=e.bMarks[m]+e.tShift[m],d=e.eMarks[m],u<d&&(p=e.src.charCodeAt(u),(p===45||p===61)&&(u=e.skipChars(u,p),u=e.skipSpaces(u),u>=d)))){f=p===61?1:2;break}if(!(e.sCount[m]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,m,o,!0)){s=!0;break}if(s)break}}return f?(i=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+1,c=e.push("heading_open","h"+String(f),1),c.markup=String.fromCharCode(p),c.map=[n,e.line],c=e.push("inline","",0),c.content=i,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(f),-1),c.markup=String.fromCharCode(p),e.parentType=h,!0):!1},jie=function(e,n,o){var i,s,a,l,c,u,d=n+1,f=e.md.block.ruler.getRules("paragraph");for(u=e.parentType,e.parentType="paragraph";d<o&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(s=!1,a=0,l=f.length;a<l;a++)if(f[a](e,d,o,!0)){s=!0;break}if(s)break}return i=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=i,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},gm=vu,Wa=Be.isSpace;function Vn(t,e,n,o){var i,s,a,l,c,u,d,f;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,a=l=u=d=0,c=s.length;l<c;l++){if(i=s.charCodeAt(l),!f)if(Wa(i)){u++,i===9?d+=4-d%4:d++;continue}else f=!0;(i===10||l===c-1)&&(i!==10&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),f=!1,u=0,d=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Vn.prototype.push=function(t,e,n){var o=new gm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Vn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Vn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Vn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Wa(n));e++);return e};Vn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Wa(this.src.charCodeAt(--e)))return e+1;return e};Vn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Vn.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Vn.prototype.getLines=function(e,n,o,i){var s,a,l,c,u,d,f,p=e;if(e>=n)return"";for(d=new Array(n-e),s=0;p<n;p++,s++){for(a=0,f=c=this.bMarks[p],p+1<n||i?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),Wa(l))l===9?a+=4-(a+this.bsCount[p])%4:a++;else if(c-f<this.tShift[p])a++;else break;c++}a>o?d[s]=new Array(a-o+1).join(" ")+this.src.slice(c,u):d[s]=this.src.slice(c,u)}return d.join("")};Vn.prototype.Token=gm;var Wie=Vn,Zie=gu,Bs=[["table",gie,["paragraph","reference"]],["code",vie],["fence",_ie,["paragraph","reference","blockquote","list"]],["blockquote",Cie,["paragraph","reference","blockquote","list"]],["hr",kie,["paragraph","reference","blockquote","list"]],["list",Eie,["paragraph","reference","blockquote"]],["reference",xie],["html_block",Uie,["paragraph","reference","blockquote"]],["heading",Hie,["paragraph","reference","blockquote"]],["lheading",qie],["paragraph",jie]];function Za(){this.ruler=new Zie;for(var t=0;t<Bs.length;t++)this.ruler.push(Bs[t][0],Bs[t][1],{alt:(Bs[t][2]||[]).slice()})}Za.prototype.tokenize=function(t,e,n){for(var o,i,s,a=this.ruler.getRules(""),l=a.length,c=e,u=!1,d=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=d){t.line=n;break}for(s=t.line,i=0;i<l;i++)if(o=a[i](t,c,n,!1),o){if(s>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),c=t.line,c<n&&t.isEmpty(c)&&(u=!0,c++,t.line=c)}};Za.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Za.prototype.State=Wie;var Kie=Za;function Gie(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var Yie=function(e,n){for(var o=e.pos;o<e.posMax&&!Gie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Jie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Xie=function(e,n){var o,i,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,i=e.posMax,o+3>i)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(Jie),!s)||(a=s[1],l=e.md.linkify.matchAtStart(e.src.slice(o-a.length)),!l)||(c=l.url,c.length<=a.length)||(c=c.replace(/\*+$/,""),u=e.md.normalizeLink(c),!e.md.validateLink(u))?!1:(n||(e.pending=e.pending.slice(0,-a.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(c),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=c.length-a.length,!0)},Qie=Be.isSpace,ese=function(e,n){var o,i,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,i=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(s=o-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&Qie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},tse=Be.isSpace,yu=[];for(var h1=0;h1<256;h1++)yu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){yu[t.charCodeAt(0)]=1});var nse=function(e,n){var o,i,s,a,l,c=e.pos,u=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=u))return!1;if(o=e.src.charCodeAt(c),o===10){for(n||e.push("hardbreak","br",0),c++;c<u&&(o=e.src.charCodeAt(c),!!tse(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(i=e.src.charCodeAt(c+1),i>=56320&&i<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&yu[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},ose=function(e,n){var o,i,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,i=e.posMax;f<i&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(o,f),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return n||(e.pending+=s),e.pos+=u,!0;for(c=f;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<i&&e.src.charCodeAt(c)===96;)c++;if(d=c-l,d===u)return n||(a=e.push("code_inline","code",0),a.markup=s,a.content=e.src.slice(f,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[d]=l}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=u,!0},Ka={};Ka.tokenize=function(e,n){var o,i,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(i=e.scanDelims(e.pos,!0),a=i.length,l=String.fromCharCode(u),a<2))return!1;for(a%2&&(s=e.push("text","",0),s.content=l,a--),o=0;o<a;o+=2)s=e.push("text","",0),s.content=l+l,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function g1(t,e){var n,o,i,s,a,l=[],c=e.length;for(n=0;n<c;n++)i=e[n],i.marker===126&&i.end!==-1&&(s=e[i.end],a=t.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&l.push(s.token-1));for(;l.length;){for(n=l.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(a=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=a)}}Ka.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(g1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&g1(e,o[n].delimiters)};var Ga={};Ga.tokenize=function(e,n){var o,i,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(i=e.scanDelims(e.pos,l===42),o=0;o<i.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function v1(t,e){var n,o,i,s,a,l,c=e.length;for(n=c-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],l=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1,a=String.fromCharCode(o.marker),s=t.tokens[o.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?a+a:a,s.content="",s=t.tokens[i.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?a+a:a,s.content="",l&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Ga.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(v1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&v1(e,o[n].delimiters)};var rse=Be.normalizeReference,Bl=Be.isSpace,ise=function(e,n){var o,i,s,a,l,c,u,d,f,p="",m="",h=e.pos,g=e.posMax,y=e.pos,C=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(c=a+1,c<g&&e.src.charCodeAt(c)===40){for(C=!1,c++;c<g&&(i=e.src.charCodeAt(c),!(!Bl(i)&&i!==10));c++);if(c>=g)return!1;if(y=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",y=c;c<g&&(i=e.src.charCodeAt(c),!(!Bl(i)&&i!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&y!==c&&u.ok)for(m=u.str,c=u.pos;c<g&&(i=e.src.charCodeAt(c),!(!Bl(i)&&i!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(C=!0),c++}if(C){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(y=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(y,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[rse(s)],!d)return e.pos=h,!1;p=d.href,m=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},sse=Be.normalizeReference,Ml=Be.isSpace,ase=function(e,n){var o,i,s,a,l,c,u,d,f,p,m,h,g,y="",C=e.pos,_=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(u=l+1,u<_&&e.src.charCodeAt(u)===40){for(u++;u<_&&(i=e.src.charCodeAt(u),!(!Ml(i)&&i!==10));u++);if(u>=_)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),g=u;u<_&&(i=e.src.charCodeAt(u),!(!Ml(i)&&i!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<_&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<_&&(i=e.src.charCodeAt(u),!(!Ml(i)&&i!==10));u++);else p="";if(u>=_||e.src.charCodeAt(u)!==41)return e.pos=C,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<_&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?a=e.src.slice(g,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),d=e.env.references[sse(a)],!d)return e.pos=C,!1;y=d.href,p=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,h=[]),m=e.push("image","img",0),m.attrs=o=[["src",y],["alt",""]],m.children=h,m.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=_,!0},lse=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,cse=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,use=function(e,n){var o,i,s,a,l,c,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c||(a=e.src.charCodeAt(u),a===60))return!1;if(a===62)break}return o=e.src.slice(l+1,u),cse.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):lse.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):!1},dse=ja.HTML_TAG_RE;function fse(t){return/^<a[>\s]/i.test(t)}function pse(t){return/^<\/a\s*>/i.test(t)}function mse(t){var e=t|32;return e>=97&&e<=122}var hse=function(e,n){var o,i,s,a,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(o=e.src.charCodeAt(l+1),o!==33&&o!==63&&o!==47&&!mse(o))||(i=e.src.slice(l).match(dse),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=i[0],fse(a.content)&&e.linkLevel++,pse(a.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},_1=am,gse=Be.has,vse=Be.isValidEntityCode,y1=Be.fromCodePoint,_se=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,yse=/^&([a-z][a-z0-9]{1,31});/i,Cse=function(e,n){var o,i,s,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=c)return!1;if(o=e.src.charCodeAt(l+1),o===35){if(s=e.src.slice(l).match(_se),s)return n||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=vse(i)?y1(i):y1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(yse),s&&gse(_1,s[1]))return n||(a=e.push("text_special","",0),a.content=_1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function C1(t){var e,n,o,i,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,m=[];for(e=0;e<d;e++)if(o=t[e],m.push(0),(t[f].marker!==o.marker||p!==o.token-1)&&(f=e),p=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),s=u[o.marker][(o.open?3:0)+o.length%3],n=f-m[f]-1,a=n;n>s;n-=m[n]+1)if(i=t[n],i.marker===o.marker&&i.open&&i.end<0&&(l=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?m[n-1]+1:0,m[e]=e-n+c,m[n]=c,o.open=!1,i.end=e,i.close=!1,a=-1,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var bse=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(C1(e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&C1(o[n].delimiters)},kse=function(e){var n,o,i=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&i--,s[n].level=i,s[n].nesting>0&&i++,s[n].type==="text"&&n+1<a&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==o&&(s[o]=s[n]),o++);n!==o&&(s.length=o)},Cu=vu,b1=Be.isWhiteSpace,k1=Be.isPunctChar,w1=Be.isMdAsciiPunct;function is(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}is.prototype.pushPending=function(){var t=new Cu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};is.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Cu(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};is.prototype.scanDelims=function(t,e){var n=t,o,i,s,a,l,c,u,d,f,p=!0,m=!0,h=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===g;)n++;return s=n-t,i=n<h?this.src.charCodeAt(n):32,u=w1(o)||k1(String.fromCharCode(o)),f=w1(i)||k1(String.fromCharCode(i)),c=b1(o),d=b1(i),d?p=!1:f&&(c||u||(p=!1)),c?m=!1:u&&(d||f||(m=!1)),e?(a=p,l=m):(a=p&&(!m||u),l=m&&(!p||f)),{can_open:a,can_close:l,length:s}};is.prototype.Token=Cu;var wse=is,E1=gu,Ll=[["text",Yie],["linkify",Xie],["newline",ese],["escape",nse],["backticks",ose],["strikethrough",Ka.tokenize],["emphasis",Ga.tokenize],["link",ise],["image",ase],["autolink",use],["html_inline",hse],["entity",Cse]],Ol=[["balance_pairs",bse],["strikethrough",Ka.postProcess],["emphasis",Ga.postProcess],["fragments_join",kse]];function ss(){var t;for(this.ruler=new E1,t=0;t<Ll.length;t++)this.ruler.push(Ll[t][0],Ll[t][1]);for(this.ruler2=new E1,t=0;t<Ol.length;t++)this.ruler2.push(Ol[t][0],Ol[t][1])}ss.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),s=i.length,a=t.md.options.maxNesting,l=t.cache;if(typeof l[o]<"u"){t.pos=l[o];return}if(t.level<a){for(n=0;n<s;n++)if(t.level++,e=i[n](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,l[o]=t.pos};ss.prototype.tokenize=function(t){for(var e,n,o,i=this.ruler.getRules(""),s=i.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(o=t.pos,t.level<l){for(n=0;n<s;n++)if(e=i[n](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ss.prototype.parse=function(t,e,n,o){var i,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,i=0;i<a;i++)s[i](l)};ss.prototype.State=wse;var Ese=ss,Vl,S1;function Sse(){return S1||(S1=1,Vl=function(t){var e={};t=t||{},e.src_Any=lm().source,e.src_Cc=cm().source,e.src_Z=um().source,e.src_P=hu.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Vl}function mc(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function Ya(t){return Object.prototype.toString.call(t)}function xse(t){return Ya(t)==="[object String]"}function Ase(t){return Ya(t)==="[object Object]"}function Tse(t){return Ya(t)==="[object RegExp]"}function x1(t){return Ya(t)==="[object Function]"}function Nse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var vm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Dse(t){return Object.keys(t||{}).reduce(function(e,n){return e||vm.hasOwnProperty(n)},!1)}var $se={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},Bse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Mse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Lse(t){t.__index__=-1,t.__text_cache__=""}function Ose(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function A1(){return function(t,e){e.normalize(t)}}function ra(t){var e=t.re=Sse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Bse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function s(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){var c=t.__schemas__[l];if(c!==null){var u={validate:null,link:null};if(t.__compiled__[l]=u,Ase(c)){Tse(c.validate)?u.validate=Ose(c.validate):x1(c.validate)?u.validate=c.validate:s(l,c),x1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=A1();return}if(xse(c)){i.push(l);return}s(l,c)}}),i.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:A1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(Nse).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Lse(t)}function Vse(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}function hc(t,e){var n=new Vse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function qt(t,e){if(!(this instanceof qt))return new qt(t,e);e||Dse(t)&&(e=t,t={}),this.__opts__=mc({},vm,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=mc({},$se,t),this.__compiled__={},this.__tlds__=Mse,this.__tlds_replaced__=!1,this.re={},ra(this)}qt.prototype.add=function(e,n){return this.__schemas__[e]=n,ra(this),this};qt.prototype.set=function(e){return this.__opts__=mc(this.__opts__,e),this};qt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,s,a,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],c.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0};qt.prototype.pretest=function(e){return this.re.pretest.test(e)};qt.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};qt.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(hc(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(hc(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};qt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,hc(this,0)):null};qt.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,s){return o!==s[i-1]}).reverse(),ra(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ra(this),this)};qt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};qt.prototype.onCompile=function(){};var Ise=qt;const Sr=2147483647,An=36,bu=1,Hi=26,Pse=38,Fse=700,_m=72,ym=128,Cm="-",Rse=/^xn--/,zse=/[^\0-\x7F]/,Use=/[\x2E\u3002\uFF0E\uFF61]/g,Hse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Il=An-bu,Tn=Math.floor,Pl=String.fromCharCode;function lo(t){throw new RangeError(Hse[t])}function qse(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function bm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Use,".");const i=t.split("."),s=qse(i,e).join(".");return o+s}function ku(t){const e=[];let n=0;const o=t.length;for(;n<o;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((i&1023)<<10)+(s&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const km=t=>String.fromCodePoint(...t),jse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:An},T1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},wm=function(t,e,n){let o=0;for(t=n?Tn(t/Fse):t>>1,t+=Tn(t/e);t>Il*Hi>>1;o+=An)t=Tn(t/Il);return Tn(o+(Il+1)*t/(t+Pse))},wu=function(t){const e=[],n=t.length;let o=0,i=ym,s=_m,a=t.lastIndexOf(Cm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&lo("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,f=An;;f+=An){l>=n&&lo("invalid-input");const p=jse(t.charCodeAt(l++));p>=An&&lo("invalid-input"),p>Tn((Sr-o)/d)&&lo("overflow"),o+=p*d;const m=f<=s?bu:f>=s+Hi?Hi:f-s;if(p<m)break;const h=An-m;d>Tn(Sr/h)&&lo("overflow"),d*=h}const u=e.length+1;s=wm(o-c,u,c==0),Tn(o/u)>Sr-i&&lo("overflow"),i+=Tn(o/u),o%=u,e.splice(o++,0,i)}return String.fromCodePoint(...e)},Eu=function(t){const e=[];t=ku(t);const n=t.length;let o=ym,i=0,s=_m;for(const c of t)c<128&&e.push(Pl(c));const a=e.length;let l=a;for(a&&e.push(Cm);l<n;){let c=Sr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>Tn((Sr-i)/u)&&lo("overflow"),i+=(c-o)*u,o=c;for(const d of t)if(d<o&&++i>Sr&&lo("overflow"),d===o){let f=i;for(let p=An;;p+=An){const m=p<=s?bu:p>=s+Hi?Hi:p-s;if(f<m)break;const h=f-m,g=An-m;e.push(Pl(T1(m+h%g,0))),f=Tn(h/g)}e.push(Pl(T1(f,0))),s=wm(i,u,l===a),i=0,++l}++i,++o}return e.join("")},Em=function(t){return bm(t,function(e){return Rse.test(e)?wu(e.slice(4).toLowerCase()):e})},Sm=function(t){return bm(t,function(e){return zse.test(e)?"xn--"+Eu(e):e})},Wse={version:"2.1.0",ucs2:{decode:ku,encode:km},decode:wu,encode:Eu,toASCII:Sm,toUnicode:Em},Zse=Object.freeze(Object.defineProperty({__proto__:null,decode:wu,default:Wse,encode:Eu,toASCII:Sm,toUnicode:Em,ucs2decode:ku,ucs2encode:km},Symbol.toStringTag,{value:"Module"})),Kse=hC(Zse);var Gse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Yse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Jse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Di=Be,Xse=qa,Qse=jre,eae=hie,tae=Kie,nae=Ese,oae=Ise,Ro=Zr,xm=Kse,rae={default:Gse,zero:Yse,commonmark:Jse},iae=/^(vbscript|javascript|file|data):/,sae=/^data:image\/(gif|png|jpeg|webp);/;function aae(t){var e=t.trim().toLowerCase();return iae.test(e)?!!sae.test(e):!0}var Am=["http:","https:","mailto:"];function lae(t){var e=Ro.parse(t,!0);if(e.hostname&&(!e.protocol||Am.indexOf(e.protocol)>=0))try{e.hostname=xm.toASCII(e.hostname)}catch{}return Ro.encode(Ro.format(e))}function cae(t){var e=Ro.parse(t,!0);if(e.hostname&&(!e.protocol||Am.indexOf(e.protocol)>=0))try{e.hostname=xm.toUnicode(e.hostname)}catch{}return Ro.decode(Ro.format(e),Ro.decode.defaultChars+"%")}function tn(t,e){if(!(this instanceof tn))return new tn(t,e);e||Di.isString(t)||(e=t||{},t="default"),this.inline=new nae,this.block=new tae,this.core=new eae,this.renderer=new Qse,this.linkify=new oae,this.validateLink=aae,this.normalizeLink=lae,this.normalizeLinkText=cae,this.utils=Di,this.helpers=Di.assign({},Xse),this.options={},this.configure(t),e&&this.set(e)}tn.prototype.set=function(t){return Di.assign(this.options,t),this};tn.prototype.configure=function(t){var e=this,n;if(Di.isString(t)&&(n=t,t=rae[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};tn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};tn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};tn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};tn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};tn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};tn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};tn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var uae=tn,dae=uae;const fae=mC(dae);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function N1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function pae(t){if(Array.isArray(t))return t}function mae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function hae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gae(t,e){return pae(t)||mae(t,e)||vae(t,e)||hae()}function vae(t,e){if(t){if(typeof t=="string")return N1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N1(t,e):void 0}}const Tm=Object.entries,D1=Object.setPrototypeOf,_ae=Object.isFrozen,yae=Object.getPrototypeOf,Cae=Object.getOwnPropertyDescriptor;let mt=Object.freeze,vt=Object.seal,Cr=Object.create,Nm=typeof Reflect<"u"&&Reflect,gc=Nm.apply,vc=Nm.construct;mt||(mt=function(e){return e});vt||(vt=function(e){return e});gc||(gc=function(e,n){for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];return e.apply(n,i)});vc||(vc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return new e(...o)});const gr=et(Array.prototype.forEach),bae=et(Array.prototype.lastIndexOf),$1=et(Array.prototype.pop),vr=et(Array.prototype.push),kae=et(Array.prototype.splice),uo=Array.isArray,Si=et(String.prototype.toLowerCase),Fl=et(String.prototype.toString),B1=et(String.prototype.match),_i=et(String.prototype.replace),M1=et(String.prototype.indexOf),wae=et(String.prototype.trim),Eae=et(Number.prototype.toString),Sae=et(Boolean.prototype.toString),L1=typeof BigInt>"u"?null:et(BigInt.prototype.toString),O1=typeof Symbol>"u"?null:et(Symbol.prototype.toString),lt=et(Object.prototype.hasOwnProperty),yi=et(Object.prototype.toString),at=et(RegExp.prototype.test),Bo=xae(TypeError);function et(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return gc(t,e,o)}}function xae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return vc(t,n)}}function Se(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si;if(D1&&D1(t,null),!uo(e))return t;let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const s=n(i);s!==i&&(_ae(e)||(e[o]=s),i=s)}t[i]=!0}return t}function Aae(t){for(let e=0;e<t.length;e++)lt(t,e)||(t[e]=null);return t}function kt(t){const e=Cr(null);for(const o of Tm(t)){var n=gae(o,2);const i=n[0],s=n[1];lt(t,i)&&(uo(s)?e[i]=Aae(s):s&&typeof s=="object"&&s.constructor===Object?e[i]=kt(s):e[i]=s)}return e}function Tae(t){switch(typeof t){case"string":return t;case"number":return Eae(t);case"boolean":return Sae(t);case"bigint":return L1?L1(t):"0";case"symbol":return O1?O1(t):"Symbol()";case"undefined":return yi(t);case"function":case"object":{if(t===null)return yi(t);const e=t,n=ln(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:yi(o)}return yi(t)}default:return yi(t)}}function ln(t,e){for(;t!==null;){const o=Cae(t,e);if(o){if(o.get)return et(o.get);if(typeof o.value=="function")return et(o.value)}t=yae(t)}function n(){return null}return n}function Nae(t){try{return at(t,""),!0}catch{return!1}}const V1=mt(["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","search","section","select","shadow","slot","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"]),Rl=mt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zl=mt(["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"]),Dae=mt(["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"]),Ul=mt(["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"]),$ae=mt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I1=mt(["#text"]),P1=mt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Hl=mt(["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","dominant-baseline","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","mask-type","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-orientation","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"]),F1=mt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),Ms=mt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Bae=vt(/{{[\w\W]*|^[\w\W]*}}/g),Mae=vt(/<%[\w\W]*|^[\w\W]*%>/g),Lae=vt(/\${[\w\W]*/g),Oae=vt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vae=vt(/^aria-[\-\w]+$/),R1=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Iae=vt(/^(?:\w+script|data):/i),Pae=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fae=vt(/^html$/i),Rae=vt(/^[a-z][.\w]*(-[.\w]+)+$/i),z1=vt(/<[/\w!]/g),U1=vt(/<[/\w]/g),zae=vt(/<\/no(script|embed|frames)/i),Uae=vt(/\/>/i),Ft={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Hae=function(){return typeof window>"u"?null:window},qae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},H1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ao=function(e,n,o,i){return lt(e,n)&&uo(e[n])?Se(i.base?kt(i.base):{},e[n],i.transform):o};function Dm(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hae();const e=J=>Dm(J);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Ft.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,i=o.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,f=t.trustedTypes,p=l.prototype,m=ln(p,"cloneNode"),h=ln(p,"remove"),g=ln(p,"nextSibling"),y=ln(p,"childNodes"),C=ln(p,"parentNode"),_=ln(p,"shadowRoot"),v=ln(p,"attributes"),b=a&&a.prototype?ln(a.prototype,"nodeType"):null,w=a&&a.prototype?ln(a.prototype,"nodeName"):null,k=a&&a.prototype?ln(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let T,A="",S,E=!1,D=0;const x=function(){if(D>0)throw Bo('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},$=function(N){x(),D++;try{return T.createHTML(N)}finally{D--}},B=function(N){x(),D++;try{return T.createScriptURL(N)}finally{D--}},V=function(){return E||(S=qae(f,i),E=!0),S},I=n,W=I.implementation,P=I.createNodeIterator,H=I.createDocumentFragment,Q=I.getElementsByTagName,le=o.importNode;let oe=H1();e.isSupported=typeof Tm=="function"&&typeof C=="function"&&W&&W.createHTMLDocument!==void 0;const Ne=Bae,ce=Mae,ne=Lae,z=Oae,F=Vae,se=Iae,Ee=Pae,Ue=Rae;let we=R1,Ce=null;const yt=Se({},[...V1,...Rl,...zl,...Ul,...I1]);let R=null;const re=Se({},[...P1,...Hl,...F1,...Ms]);let he=Object.seal(Cr(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}})),pe=null,Ke=null;const De=Object.seal(Cr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,Fe=!0,Ye=!1,Je=!0,Me=!1,Ct=!0,st=!1,Ot=!1,on=null,yn=null,Cn=!1,bn=!1,to=!1,M=!1,j=!0,ae=!1;const Re="user-content-";let ot=!0,bt=!1,ve={},Et=null;const no=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let vs=null;const ni=Se({},["audio","video","img","source","image","track"]);let Vt=null;const dr=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oo="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let ro=It,No=!1,oi=null;const gl=Se({},[oo,fr,It],Fl),_s=mt(["mi","mo","mn","ms","mtext"]);let Pt=Se({},_s);const ys=mt(["annotation-xml"]);let ri=Se({},ys);const vl=Se({},["title","style","font","a","script"]);let Do=null;const ii=["application/xhtml+xml","text/html"],si="text/html";let Ve=null,rn=null;const ai=n.createElement("form"),Cs=function(N){return N instanceof RegExp||N instanceof Function},io=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rn&&rn===N)return;(!N||typeof N!="object")&&(N={}),N=kt(N),Do=ii.indexOf(N.PARSER_MEDIA_TYPE)===-1?si:N.PARSER_MEDIA_TYPE,Ve=Do==="application/xhtml+xml"?Fl:Si,Ce=ao(N,"ALLOWED_TAGS",yt,{transform:Ve}),R=ao(N,"ALLOWED_ATTR",re,{transform:Ve}),oi=ao(N,"ALLOWED_NAMESPACES",gl,{transform:Fl}),Vt=ao(N,"ADD_URI_SAFE_ATTR",dr,{transform:Ve,base:dr}),vs=ao(N,"ADD_DATA_URI_TAGS",ni,{transform:Ve,base:ni}),Et=ao(N,"FORBID_CONTENTS",no,{transform:Ve}),pe=ao(N,"FORBID_TAGS",kt({}),{transform:Ve}),Ke=ao(N,"FORBID_ATTR",kt({}),{transform:Ve}),ve=lt(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?kt(N.USE_PROFILES):N.USE_PROFILES:!1,$e=N.ALLOW_ARIA_ATTR!==!1,Fe=N.ALLOW_DATA_ATTR!==!1,Ye=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Je=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=N.SAFE_FOR_TEMPLATES||!1,Ct=N.SAFE_FOR_XML!==!1,st=N.WHOLE_DOCUMENT||!1,bn=N.RETURN_DOM||!1,to=N.RETURN_DOM_FRAGMENT||!1,M=N.RETURN_TRUSTED_TYPE||!1,Cn=N.FORCE_BODY||!1,j=N.SANITIZE_DOM!==!1,ae=N.SANITIZE_NAMED_PROPS||!1,ot=N.KEEP_CONTENT!==!1,bt=N.IN_PLACE||!1,we=Nae(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:R1,ro=typeof N.NAMESPACE=="string"?N.NAMESPACE:It,Pt=lt(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?kt(N.MATHML_TEXT_INTEGRATION_POINTS):Se({},_s),ri=lt(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?kt(N.HTML_INTEGRATION_POINTS):Se({},ys);const O=lt(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?kt(N.CUSTOM_ELEMENT_HANDLING):Cr(null);if(he=Cr(null),lt(O,"tagNameCheck")&&Cs(O.tagNameCheck)&&(he.tagNameCheck=O.tagNameCheck),lt(O,"attributeNameCheck")&&Cs(O.attributeNameCheck)&&(he.attributeNameCheck=O.attributeNameCheck),lt(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),vt(he),Me&&(Fe=!1),to&&(bn=!0),ve&&(Ce=Se({},I1),R=Cr(null),ve.html===!0&&(Se(Ce,V1),Se(R,P1)),ve.svg===!0&&(Se(Ce,Rl),Se(R,Hl),Se(R,Ms)),ve.svgFilters===!0&&(Se(Ce,zl),Se(R,Hl),Se(R,Ms)),ve.mathMl===!0&&(Se(Ce,Ul),Se(R,F1),Se(R,Ms))),De.tagCheck=null,De.attributeCheck=null,lt(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?De.tagCheck=N.ADD_TAGS:uo(N.ADD_TAGS)&&(Ce===yt&&(Ce=kt(Ce)),Se(Ce,N.ADD_TAGS,Ve))),lt(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?De.attributeCheck=N.ADD_ATTR:uo(N.ADD_ATTR)&&(R===re&&(R=kt(R)),Se(R,N.ADD_ATTR,Ve))),lt(N,"ADD_URI_SAFE_ATTR")&&uo(N.ADD_URI_SAFE_ATTR)&&Se(Vt,N.ADD_URI_SAFE_ATTR,Ve),lt(N,"FORBID_CONTENTS")&&uo(N.FORBID_CONTENTS)&&(Et===no&&(Et=kt(Et)),Se(Et,N.FORBID_CONTENTS,Ve)),lt(N,"ADD_FORBID_CONTENTS")&&uo(N.ADD_FORBID_CONTENTS)&&(Et===no&&(Et=kt(Et)),Se(Et,N.ADD_FORBID_CONTENTS,Ve)),ot&&(Ce["#text"]=!0),st&&Se(Ce,["html","head","body"]),Ce.table&&(Se(Ce,["tbody"]),delete pe.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Z=T;T=N.TRUSTED_TYPES_POLICY;try{A=$("")}catch(ue){throw T=Z,ue}}else N.TRUSTED_TYPES_POLICY===null?(T=void 0,A=""):(T===void 0&&(T=V()),T&&typeof A=="string"&&(A=$("")));mt&&mt(N),rn=N},li=Se({},[...Rl,...zl,...Dae]),L=Se({},[...Ul,...$ae]),Y=function(N,O,Z){return O.namespaceURI===It?N==="svg":O.namespaceURI===oo?N==="svg"&&(Z==="annotation-xml"||Pt[Z]):!!li[N]},be=function(N,O,Z){return O.namespaceURI===It?N==="math":O.namespaceURI===fr?N==="math"&&ri[Z]:!!L[N]},He=function(N,O,Z){return O.namespaceURI===fr&&!ri[Z]||O.namespaceURI===oo&&!Pt[Z]?!1:!L[N]&&(vl[N]||!li[N])},In=function(N){let O=C(N);(!O||!O.tagName)&&(O={namespaceURI:ro,tagName:"template"});const Z=Si(N.tagName),ue=Si(O.tagName);return oi[N.namespaceURI]?N.namespaceURI===fr?Y(Z,O,ue):N.namespaceURI===oo?be(Z,O,ue):N.namespaceURI===It?He(Z,O,ue):!!(Do==="application/xhtml+xml"&&oi[N.namespaceURI]):!1},sn=function(N){vr(e.removed,{element:N});try{C(N).removeChild(N)}catch{if(h(N),!C(N))throw Bo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ci=function(N){ui(N);const O=y(N);if(O){const ue=[];gr(O,fe=>{vr(ue,fe)}),gr(ue,fe=>{try{h(fe)}catch{}})}const Z=v(N);if(Z)for(let ue=Z.length-1;ue>=0;--ue){const fe=Z[ue],ye=fe&&fe.name;if(typeof ye=="string")try{N.removeAttribute(ye)}catch{}}},Pn=function(N,O){try{vr(e.removed,{attribute:O.getAttributeNode(N),from:O})}catch{vr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(N),N==="is")if(bn||to)try{sn(O)}catch{}else try{O.setAttribute(N,"")}catch{}},bs=function(N){const O=v(N);if(O)for(let Z=O.length-1;Z>=0;--Z){const ue=O[Z],fe=ue&&ue.name;if(!(typeof fe!="string"||R[Ve(fe)]))try{N.removeAttribute(fe)}catch{}}},ui=function(N){const O=[N];for(;O.length>0;){const Z=O.pop();(b?b(Z):Z.nodeType)===Ft.element&&bs(Z);const fe=y(Z);if(fe)for(let ye=fe.length-1;ye>=0;--ye)O.push(fe[ye])}},e0=function(N){if(!Ct)return;const O=[N];for(;O.length>0;){const Z=O.pop(),ue=b?b(Z):Z.nodeType;if(ue===Ft.processingInstruction||ue===Ft.comment&&at(U1,Z.data)){try{h(Z)}catch{}continue}if(ue===Ft.element){const ye=Z,Ie=Ve(w?w(Z):Z.nodeName);try{ye.hasAttribute&&ye.hasAttribute("patchsrc")&&ye.removeAttribute("patchsrc"),ye.hasAttribute&&ye.hasAttribute("for")&&Ie!=="label"&&Ie!=="output"&&ye.removeAttribute("for")}catch{}}const fe=y(Z);if(fe)for(let ye=fe.length-1;ye>=0;--ye)O.push(fe[ye])}},yd=function(N){let O=null,Z=null;if(Cn)N="<remove></remove>"+N;else{const ye=B1(N,/^[\r\n\t ]+/);Z=ye&&ye[0]}Do==="application/xhtml+xml"&&ro===It&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const ue=T?$(N):N;if(ro===It)try{O=new d().parseFromString(ue,Do)}catch{}if(!O||!O.documentElement){O=W.createDocument(ro,"template",null);try{O.documentElement.innerHTML=No?A:ue}catch{}}const fe=O.body||O.documentElement;return N&&Z&&fe.insertBefore(n.createTextNode(Z),fe.childNodes[0]||null),ro===It?Q.call(O,st?"html":"body")[0]:st?O.documentElement:fe},Cd=function(N){const O=k?k(N):N.ownerDocument;return P.call(O||N,N,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ks=function(N){return N=_i(N,Ne," "),N=_i(N,ce," "),N=_i(N,ne," "),N},_l=function(N){var O;N.normalize();const Z=k?k(N):N.ownerDocument,ue=P.call(Z||N,N,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let fe=ue.nextNode();for(;fe;)fe.data=ks(fe.data),fe=ue.nextNode();const ye=(O=N.querySelectorAll)===null||O===void 0?void 0:O.call(N,"template");ye&&gr(ye,Ie=>{pr(Ie.content)&&_l(Ie.content)})},ws=function(N){const O=w?w(N):null;return typeof O!="string"||Ve(O)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==v(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==b(N)||N.childNodes!==y(N)},pr=function(N){if(!b||typeof N!="object"||N===null)return!1;try{return b(N)===Ft.documentFragment}catch{return!1}},di=function(N){if(!b||typeof N!="object"||N===null)return!1;try{return typeof b(N)=="number"}catch{return!1}};function kn(J,N,O){J.length!==0&&gr(J,Z=>{Z.call(e,N,O,rn)})}const t0=function(N,O){return!!(Ct&&N.hasChildNodes()&&!di(N.firstElementChild)&&at(z1,N.textContent)&&at(z1,N.innerHTML)||Ct&&N.namespaceURI===It&&O==="style"&&di(N.firstElementChild)||N.nodeType===Ft.processingInstruction||Ct&&N.nodeType===Ft.comment&&at(U1,N.data))},n0=function(N,O,Z){if(!pe[O]&&Ed(O)&&(he.tagNameCheck instanceof RegExp&&at(he.tagNameCheck,O)||he.tagNameCheck instanceof Function&&he.tagNameCheck(O)))return!1;if(ot&&!Et[O]){const ue=C(N),fe=y(N);if(fe&&ue){const ye=fe.length;for(let Ie=ye-1;Ie>=0;--Ie){const qe=N===Z?m(fe[Ie],!0):fe[Ie];ue.insertBefore(qe,g(N))}}}return sn(N),!0},bd=function(N,O,Z,ue){return N.length===0?O:O===Z||O===ue?kt(O):O},kd=function(N,O){if(kn(oe.beforeSanitizeElements,N,null),N!==O&&C(N)===null)return bt&&ui(N),!0;if(ws(N))return sn(N),!0;const Z=Ve(w?w(N):N.nodeName);if(Ce=bd(oe.uponSanitizeElement,Ce,yt,on),kn(oe.uponSanitizeElement,N,{tagName:Z,allowedTags:Ce}),N!==O&&C(N)===null)return bt&&ui(N),!0;if(t0(N,Z))return sn(N),!0;if(pe[Z]||!(De.tagCheck instanceof Function&&De.tagCheck(Z))&&!Ce[Z]){const fe=n0(N,Z,O);return fe===!1&&kn(oe.afterSanitizeElements,N,null),fe}if((b?b(N):N.nodeType)===Ft.element&&!In(N)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&at(zae,N.innerHTML))return sn(N),!0;if(Me&&N.nodeType===Ft.text){const fe=ks(N.textContent);N.textContent!==fe&&(vr(e.removed,{element:N.cloneNode()}),N.textContent=fe)}return kn(oe.afterSanitizeElements,N,null),!1},wd=function(N,O,Z){if(Ke[O]||Ct&&O==="patchsrc"||Ct&&O==="for"&&N!=="label"&&N!=="output"||j&&(O==="id"||O==="name")&&(Z in n||Z in ai))return!1;const ue=R[O]||De.attributeCheck instanceof Function&&De.attributeCheck(O,N);if(!(Fe&&at(z,O))){if(!($e&&at(F,O))){if(ue){if(!Vt[O]){if(!at(we,_i(Z,Ee,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&N!=="script"&&M1(Z,"data:")===0&&vs[N])){if(!(Ye&&!at(se,_i(Z,Ee,"")))){if(Z)return!1}}}}}else if(!(Ed(N)&&(he.tagNameCheck instanceof RegExp&&at(he.tagNameCheck,N)||he.tagNameCheck instanceof Function&&he.tagNameCheck(N))&&(he.attributeNameCheck instanceof RegExp&&at(he.attributeNameCheck,O)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(O,N))||O==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&at(he.tagNameCheck,Z)||he.tagNameCheck instanceof Function&&he.tagNameCheck(Z))))return!1}}return!0},o0=Se({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ed=function(N){return!o0[Si(N)]&&at(Ue,N)},r0=function(N,O,Z,ue){if(T&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Z)switch(f.getAttributeType(N,O)){case"TrustedHTML":return $(ue);case"TrustedScriptURL":return B(ue)}return ue},i0=function(N,O,Z,ue){try{Z?N.setAttributeNS(Z,O,ue):N.setAttribute(O,ue),ws(N)?sn(N):$1(e.removed)}catch{Pn(O,N)}},Sd=function(N){kn(oe.beforeSanitizeAttributes,N,null);const O=N.attributes;if(!O||ws(N))return;R=bd(oe.uponSanitizeAttribute,R,re,yn);const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let ue=O.length;const fe=Ve(N.nodeName);for(;ue--;){const ye=O[ue],Ie=ye.name,qe=ye.namespaceURI,Dt=ye.value,$t=Ve(Ie),Cl=Dt;let St=Ie==="value"?Cl:wae(Cl);if(Z.attrName=$t,Z.attrValue=St,Z.keepAttr=!0,Z.forceKeepAttr=void 0,kn(oe.uponSanitizeAttribute,N,Z),St=Z.attrValue,ae&&($t==="id"||$t==="name")&&M1(St,Re)!==0&&(Pn(Ie,N),St=Re+St),Ct&&at(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,St)){Pn(Ie,N);continue}if($t==="attributename"&&B1(St,"href")){Pn(Ie,N);continue}if(!Z.forceKeepAttr){if(!Z.keepAttr){Pn(Ie,N);continue}if(!Je&&at(Uae,St)){Pn(Ie,N);continue}if(Me&&(St=ks(St)),!wd(fe,$t,St)){Pn(Ie,N);continue}St=r0(fe,$t,qe,St),St!==Cl&&i0(N,Ie,qe,St)}}kn(oe.afterSanitizeAttributes,N,null)},Es=function(N){let O=null;const Z=Cd(N);for(kn(oe.beforeSanitizeShadowDOM,N,null);O=Z.nextNode();)if(kn(oe.uponSanitizeShadowNode,O,null),kd(O,N),Sd(O),pr(O.content)&&Es(O.content),(b?b(O):O.nodeType)===Ft.element){const fe=_(O);pr(fe)&&(yl(fe),Es(fe))}kn(oe.afterSanitizeShadowDOM,N,null)},yl=function(N){const O=[{node:N,shadow:null}];for(;O.length>0;){const Z=O.pop();if(Z.shadow){Es(Z.shadow);continue}const ue=Z.node,ye=(b?b(ue):ue.nodeType)===Ft.element,Ie=y(ue);if(Ie)for(let qe=Ie.length-1;qe>=0;--qe)O.push({node:Ie[qe],shadow:null});if(ye){const qe=w?w(ue):null;if(typeof qe=="string"&&Ve(qe)==="template"){const Dt=ue.content;pr(Dt)&&O.push({node:Dt,shadow:null})}}if(ye){const qe=_(ue);pr(qe)&&O.push({node:null,shadow:qe},{node:qe,shadow:null})}}};return e.sanitize=function(J){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,Z=null,ue=null,fe=null;if(No=!J,No&&(J="<!-->"),typeof J!="string"&&!di(J)&&(J=Tae(J),typeof J!="string"))throw Bo("dirty is not a string, aborting");if(!e.isSupported)return J;Ot?(Ce=on,R=yn):io(N),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(Ce=kt(Ce)),oe.uponSanitizeAttribute.length>0&&(R=kt(R)),e.removed=[];const ye=bt&&typeof J!="string"&&di(J);if(ye){e0(J);const Dt=w?w(J):J.nodeName;if(typeof Dt=="string"){const $t=Ve(Dt);if(!Ce[$t]||pe[$t])throw ci(J),Bo("root node is forbidden and cannot be sanitized in-place")}if(ws(J))throw ci(J),Bo("root node is clobbered and cannot be sanitized in-place");try{yl(J)}catch($t){throw ci(J),$t}}else if(di(J))O=yd("<!---->"),Z=O.ownerDocument.importNode(J,!0),Z.nodeType===Ft.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?O=Z:O.appendChild(Z),yl(Z);else{if(!bn&&!Me&&!st&&J.indexOf("<")===-1)return T&&M?$(J):J;if(O=yd(J),!O)return bn?null:M?A:""}O&&Cn&&sn(O.firstChild);const Ie=ye?J:O;try{const Dt=Cd(Ie);for(;ue=Dt.nextNode();)kd(ue,Ie),Sd(ue),pr(ue.content)&&Es(ue.content)}catch(Dt){throw ye&&(ci(J),gr(e.removed,$t=>{$t.element&&ui($t.element)})),Dt}if(ye)return gr(e.removed,Dt=>{Dt.element&&ui(Dt.element)}),Me&&_l(J),J;if(bn){if(Me&&_l(O),to)for(fe=H.call(O.ownerDocument);O.firstChild;)fe.appendChild(O.firstChild);else fe=O;return(R.shadowroot||R.shadowrootmode)&&(fe=le.call(o,fe,!0)),fe}let qe=st?O.outerHTML:O.innerHTML;return st&&Ce["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&at(Fae,O.ownerDocument.doctype.name)&&(qe="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
19
- `+qe),Me&&(qe=ks(qe)),T&&M?$(qe):qe},e.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};io(J),Ot=!0,on=Ce,yn=R},e.clearConfig=function(){rn=null,Ot=!1,on=null,yn=null,T=S,A=""},e.isValidAttribute=function(J,N,O){rn||io({});const Z=Ve(J),ue=Ve(N);return wd(Z,ue,O)},e.addHook=function(J,N){typeof N=="function"&&lt(oe,J)&&vr(oe[J],N)},e.removeHook=function(J,N){if(lt(oe,J)){if(N!==void 0){const O=bae(oe[J],N);return O===-1?void 0:kae(oe[J],O,1)[0]}return $1(oe[J])}},e.removeHooks=function(J){lt(oe,J)&&(oe[J]=[])},e.removeAllHooks=function(){oe=H1()},e}var jae=Dm();const Wae=["innerHTML"],Zae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},$m=r.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new fae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=r.computed(()=>e.content?jae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(i,s)=>t.content?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Wae)):(r.openBlock(),r.createElementBlock("div",Zae,r.toDisplayString(t.placeholder),1))}});function G(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Bm(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const vn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Kae=vn&&"documentMode"in document?document.documentMode:null,cn=vn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Xo=vn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ia=!(!vn||!("InputEvent"in window)||Kae)&&"getTargetRanges"in new window.InputEvent("input"),qi=vn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Rr=vn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Gae=vn&&/Android/.test(navigator.userAgent),Mm=vn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),q1=vn&&Gae&&Mm,ji=vn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&cn&&!Mm;function Lm(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const Yae=0,Jae=1,Xae=2,Om=128,Qae=1,ele=2,tle=3,nle=4,ole=5,rle=6,Ja=qi||Rr||ji?" ":"​",bo=`
15
+ `);return o};Kr.prototype.render=function(t,e,n){var o,i,s,a="",l=this.rules;for(o=0,i=t.length;o<i;o++)s=t[o].type,s==="inline"?a+=this.renderInline(t[o].children,e,n):typeof l[s]<"u"?a+=l[s](t,o,e,n,this):a+=this.renderToken(t,o,e,n);return a};var Wre=Kr;function gn(){this.__rules__=[],this.__cache__=null}gn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};gn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};gn.prototype.at=function(t,e,n){var o=this.__find__(t),i=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=i.alt||[],this.__cache__=null};gn.prototype.before=function(t,e,n,o){var i=this.__find__(t),s=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};gn.prototype.after=function(t,e,n,o){var i=this.__find__(t),s=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};gn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};gn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!0,n.push(o)},this),this.__cache__=null,n};gn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};gn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!1,n.push(o)},this),this.__cache__=null,n};gn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var gu=gn,Zre=/\r\n?|\n/g,Kre=/\0/g,Gre=function(e){var n;n=e.src.replace(Zre,`
16
+ `),n=n.replace(Kre,"�"),e.src=n},Yre=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Jre=function(e){var n=e.tokens,o,i,s;for(i=0,s=n.length;i<s;i++)o=n[i],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Xre=Be.arrayReplaceAt;function Qre(t){return/^<a[>\s]/i.test(t)}function eie(t){return/^<\/a\s*>/i.test(t)}var tie=function(e){var n,o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v=e.tokens,_;if(e.md.options.linkify){for(o=0,i=v.length;o<i;o++)if(!(v[o].type!=="inline"||!e.md.linkify.pretest(v[o].content)))for(s=v[o].children,h=0,n=s.length-1;n>=0;n--){if(l=s[n],l.type==="link_close"){for(n--;s[n].level!==l.level&&s[n].type!=="link_open";)n--;continue}if(l.type==="html_inline"&&(Qre(l.content)&&h>0&&h--,eie(l.content)&&h++),!(h>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(d=l.content,_=e.md.linkify.match(d),c=[],m=l.level,p=0,_.length>0&&_[0].index===0&&n>0&&s[n-1].type==="text_special"&&(_=_.slice(1)),u=0;u<_.length;u++)g=_[u].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(C=_[u].text,_[u].schema?_[u].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),f=_[u].index,f>p&&(a=new e.Token("text","",0),a.content=d.slice(p,f),a.level=m,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",y]],a.level=m++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=C,a.level=m,c.push(a),a=new e.Token("link_close","a",-1),a.level=--m,a.markup="linkify",a.info="auto",c.push(a),p=_[u].lastIndex);p<d.length&&(a=new e.Token("text","",0),a.content=d.slice(p),a.level=m,c.push(a)),v[o].children=s=Xre(s,n,c)}}}},fm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,nie=/\((c|tm|r)\)/i,oie=/\((c|tm|r)\)/ig,rie={c:"©",r:"®",tm:"™"};function iie(t,e){return rie[e.toLowerCase()]}function sie(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(oie,iie)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function aie(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&fm.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var lie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(nie.test(e.tokens[n].content)&&sie(e.tokens[n].children),fm.test(e.tokens[n].content)&&aie(e.tokens[n].children))},s1=Be.isWhiteSpace,a1=Be.isPunctChar,l1=Be.isMdAsciiPunct,cie=/['"]/,c1=/['"]/g,u1="’";function Ds(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function uie(t,e){var n,o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k;for(b=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,v=b.length-1;v>=0&&!(b[v].level<=c);v--);if(b.length=v+1,o.type==="text"){i=o.content,a=0,l=i.length;e:for(;a<l&&(c1.lastIndex=a,s=c1.exec(i),!!s);){if(y=C=!0,a=s.index+1,_=s[0]==="'",d=32,s.index-1>=0)d=i.charCodeAt(s.index-1);else for(v=n-1;v>=0&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v--)if(t[v].content){d=t[v].content.charCodeAt(t[v].content.length-1);break}if(f=32,a<l)f=i.charCodeAt(a);else for(v=n+1;v<t.length&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v++)if(t[v].content){f=t[v].content.charCodeAt(0);break}if(p=l1(d)||a1(String.fromCharCode(d)),m=l1(f)||a1(String.fromCharCode(f)),h=s1(d),g=s1(f),g?y=!1:m&&(h||p||(y=!1)),h?C=!1:p&&(g||m||(C=!1)),f===34&&s[0]==='"'&&d>=48&&d<=57&&(C=y=!1),y&&C&&(y=p,C=m),!y&&!C){_&&(o.content=Ds(o.content,s.index,u1));continue}if(C){for(v=b.length-1;v>=0&&(u=b[v],!(b[v].level<c));v--)if(u.single===_&&b[v].level===c){u=b[v],_?(w=e.md.options.quotes[2],k=e.md.options.quotes[3]):(w=e.md.options.quotes[0],k=e.md.options.quotes[1]),o.content=Ds(o.content,s.index,k),t[u.token].content=Ds(t[u.token].content,u.pos,w),a+=k.length-1,u.token===n&&(a+=w.length-1),i=o.content,l=i.length,b.length=v;continue e}}y?b.push({token:n,pos:s.index,single:_,level:c}):C&&_&&(o.content=Ds(o.content,s.index,u1))}}}}var die=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!cie.test(e.tokens[n].content)||uie(e.tokens[n].children,e)},fie=function(e){var n,o,i,s,a,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(i=c[n].children,a=i.length,s=0;s<a;s++)i[s].type==="text_special"&&(i[s].type="text");for(s=l=0;s<a;s++)i[s].type==="text"&&s+1<a&&i[s+1].type==="text"?i[s+1].content=i[s].content+i[s+1].content:(s!==l&&(i[l]=i[s]),l++);s!==l&&(i.length=l)}};function Gr(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Gr.prototype.attrIndex=function(e){var n,o,i;if(!this.attrs)return-1;for(n=this.attrs,o=0,i=n.length;o<i;o++)if(n[o][0]===e)return o;return-1};Gr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Gr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i};Gr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};Gr.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var vu=Gr,pie=vu;function pm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}pm.prototype.Token=pie;var mie=pm,hie=gu,Nl=[["normalize",Gre],["block",Yre],["inline",Jre],["linkify",tie],["replacements",lie],["smartquotes",die],["text_join",fie]];function _u(){this.ruler=new hie;for(var t=0;t<Nl.length;t++)this.ruler.push(Nl[t][0],Nl[t][1])}_u.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};_u.prototype.State=mie;var gie=_u,Dl=Be.isSpace;function $l(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function d1(t){var e=[],n=0,o=t.length,i,s=!1,a=0,l="";for(i=t.charCodeAt(n);n<o;)i===124&&(s?(l+=t.substring(a,n-1),a=n):(e.push(l+t.substring(a,n)),l="",a=n+1)),s=i===92,n++,i=t.charCodeAt(n);return e.push(l+t.substring(a)),e}var vie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k;if(n+2>o||(d=n+1,e.sCount[d]<e.blkIndent)||e.sCount[d]-e.blkIndent>=4||(l=e.bMarks[d]+e.tShift[d],l>=e.eMarks[d])||(w=e.src.charCodeAt(l++),w!==124&&w!==45&&w!==58)||l>=e.eMarks[d]||(k=e.src.charCodeAt(l++),k!==124&&k!==45&&k!==58&&!Dl(k))||w===45&&Dl(k))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Dl(s))return!1;l++}for(a=$l(e,n+1),f=a.split("|"),h=[],c=0;c<f.length;c++){if(g=f[c].trim(),!g){if(c===0||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?h.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?h.push("left"):h.push("")}if(a=$l(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=d1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==h.length))return!1;if(i)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=y=[n,0],m=e.push("thead_open","thead",1),m.map=[n,n+1],m=e.push("tr_open","tr",1),m.map=[n,n+1],c=0;c<f.length;c++)m=e.push("th_open","th",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(_=!1,c=0,u=b.length;c<u;c++)if(b[c](e,d,o,!0)){_=!0;break}if(_||(a=$l(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=d1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===n+2&&(m=e.push("tbody_open","tbody",1),m.map=C=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[d,d+1],c=0;c<p;c++)m=e.push("td_open","td",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c]?f[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return C&&(m=e.push("tbody_close","tbody",-1),C[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=v,e.line=d,!0},_ie=function(e,n,o){var i,s,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=i=n+1;i<o;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,s=i;continue}break}return e.line=s,a=e.push("code_block","code",0),a.content=e.getLines(n,s,4+e.blkIndent,!1)+`
17
+ `,a.map=[n,e.line],!0},yie=function(e,n,o,i){var s,a,l,c,u,d,f,p=!1,m=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>h||(s=e.src.charCodeAt(m),s!==126&&s!==96)||(u=m,m=e.skipChars(m,s),a=m-u,a<3)||(f=e.src.slice(u,m),l=e.src.slice(m,h),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(c=n;c++,!(c>=o||(m=u=e.bMarks[c]+e.tShift[c],h=e.eMarks[c],m<h&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(m)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(m=e.skipChars(m,s),!(m-u<a)&&(m=e.skipSpaces(m),!(m<h)))){p=!0;break}return a=e.sCount[n],e.line=c+(p?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(n+1,c,a,!0),d.markup=f,d.map=[n,e.line],!0},Cie=Be.isSpace,bie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k,A,T,S=e.lineMax,E=e.bMarks[n]+e.tShift[n],D=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(E)!==62)return!1;if(i)return!0;for(h=[],g=[],v=[],_=[],k=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",p=n;p<o&&(T=e.sCount[p]<e.blkIndent,E=e.bMarks[p]+e.tShift[p],D=e.eMarks[p],!(E>=D));p++){if(e.src.charCodeAt(E++)===62&&!T){for(c=e.sCount[p]+1,e.src.charCodeAt(E)===32?(E++,c++,s=!1,b=!0):e.src.charCodeAt(E)===9?(b=!0,(e.bsCount[p]+c)%4===3?(E++,c++,s=!1):s=!0):b=!1,m=c,h.push(e.bMarks[p]),e.bMarks[p]=E;E<D&&(a=e.src.charCodeAt(E),Cie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;E++}d=E>=D,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(b?1:0),v.push(e.sCount[p]),e.sCount[p]=m-c,_.push(e.tShift[p]),e.tShift[p]=E-e.bMarks[p];continue}if(d)break;for(w=!1,l=0,u=k.length;l<u;l++)if(k[l](e,p,o,!0)){w=!0;break}if(w){e.lineMax=p,e.blkIndent!==0&&(h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]=-1}for(y=e.blkIndent,e.blkIndent=0,A=e.push("blockquote_open","blockquote",1),A.markup=">",A.map=f=[n,0],e.md.block.tokenize(e,n,p),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=S,e.parentType=C,f[1]=e.line,l=0;l<_.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=_[l],e.sCount[l+n]=v[l],e.bsCount[l+n]=g[l];return e.blkIndent=y,!0},kie=Be.isSpace,wie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(a=1;u<d;){if(l=e.src.charCodeAt(u++),l!==s&&!kie(l))return!1;l===s&&a++}return a<3?!1:(i||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(a+1).join(String.fromCharCode(s))),!0)},mm=Be.isSpace;function f1(t,e){var n,o,i,s;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(s=t.src.charCodeAt(o),!mm(s))?-1:o}function p1(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,s=t.eMarks[e];if(i+1>=s||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=s)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<s&&(n=t.src.charCodeAt(i),!mm(n))?-1:i}function Eie(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var Sie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k,A,T,S,E,D,x,$,B,V,I=n,W=!1,P=!0;if(e.sCount[I]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[I]-e.listIndent>=4&&e.sCount[I]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[I]>=e.blkIndent&&(W=!0),(E=p1(e,I))>=0){if(f=!0,x=e.bMarks[I]+e.tShift[I],C=Number(e.src.slice(x,E-1)),W&&C!==1)return!1}else if((E=f1(e,I))>=0)f=!1;else return!1;if(W&&e.skipSpaces(E)>=e.eMarks[I])return!1;if(i)return!0;for(y=e.src.charCodeAt(E-1),g=e.tokens.length,f?(V=e.push("ordered_list_open","ol",1),C!==1&&(V.attrs=[["start",C]])):V=e.push("bullet_list_open","ul",1),V.map=h=[I,0],V.markup=String.fromCharCode(y),D=!1,B=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";I<o;){for(S=E,v=e.eMarks[I],d=_=e.sCount[I]+E-(e.bMarks[I]+e.tShift[I]);S<v;){if(s=e.src.charCodeAt(S),s===9)_+=4-(_+e.bsCount[I])%4;else if(s===32)_++;else break;S++}if(a=S,a>=v?u=1:u=_-d,u>4&&(u=1),c=d+u,V=e.push("list_item_open","li",1),V.markup=String.fromCharCode(y),V.map=p=[I,0],f&&(V.info=e.src.slice(x,E-1)),T=e.tight,A=e.tShift[I],k=e.sCount[I],b=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[I]=a-e.bMarks[I],e.sCount[I]=_,a>=v&&e.isEmpty(I+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,I,o,!0),(!e.tight||D)&&(P=!1),D=e.line-I>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=b,e.tShift[I]=A,e.sCount[I]=k,e.tight=T,V=e.push("list_item_close","li",-1),V.markup=String.fromCharCode(y),I=e.line,p[1]=I,I>=o||e.sCount[I]<e.blkIndent||e.sCount[I]-e.blkIndent>=4)break;for($=!1,l=0,m=B.length;l<m;l++)if(B[l](e,I,o,!0)){$=!0;break}if($)break;if(f){if(E=p1(e,I),E<0)break;x=e.bMarks[I]+e.tShift[I]}else if(E=f1(e,I),E<0)break;if(y!==e.src.charCodeAt(E-1))break}return f?V=e.push("ordered_list_close","ol",-1):V=e.push("bullet_list_close","ul",-1),V.markup=String.fromCharCode(y),h[1]=I,e.line=I,e.parentType=w,P&&Eie(e,g),!0},xie=Be.normalizeReference,$s=Be.isSpace,Tie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w=0,k=e.bMarks[n]+e.tShift[n],A=e.eMarks[n],T=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(k)!==91)return!1;for(;++k<A;)if(e.src.charCodeAt(k)===93&&e.src.charCodeAt(k-1)!==92){if(k+1===A||e.src.charCodeAt(k+1)!==58)return!1;break}for(c=e.lineMax,_=e.md.block.ruler.getRules("reference"),h=e.parentType,e.parentType="reference";T<c&&!e.isEmpty(T);T++)if(!(e.sCount[T]-e.blkIndent>3)&&!(e.sCount[T]<0)){for(v=!1,d=0,f=_.length;d<f;d++)if(_[d](e,T,c,!0)){v=!0;break}if(v)break}for(C=e.getLines(n,T,e.blkIndent,!1).trim(),A=C.length,k=1;k<A;k++){if(s=C.charCodeAt(k),s===91)return!1;if(s===93){m=k;break}else s===10?w++:s===92&&(k++,k<A&&C.charCodeAt(k)===10&&w++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(k=m+2;k<A;k++)if(s=C.charCodeAt(k),s===10)w++;else if(!$s(s))break;if(g=e.md.helpers.parseLinkDestination(C,k,A),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(k=g.pos,w+=g.lines,a=k,l=w,y=k;k<A;k++)if(s=C.charCodeAt(k),s===10)w++;else if(!$s(s))break;for(g=e.md.helpers.parseLinkTitle(C,k,A),k<A&&y!==k&&g.ok?(b=g.str,k=g.pos,w+=g.lines):(b="",k=a,w=l);k<A&&(s=C.charCodeAt(k),!!$s(s));)k++;if(k<A&&C.charCodeAt(k)!==10&&b)for(b="",k=a,w=l;k<A&&(s=C.charCodeAt(k),!!$s(s));)k++;return k<A&&C.charCodeAt(k)!==10||(p=xie(C.slice(1,m)),!p)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:b,href:u}),e.parentType=h,e.line=n+w+1),!0)},Aie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ja={},Nie="[a-zA-Z_:][a-zA-Z0-9:._-]*",Die="[^\"'=<>`\\x00-\\x20]+",$ie="'[^']*'",Bie='"[^"]*"',Mie="(?:"+Die+"|"+$ie+"|"+Bie+")",Lie="(?:\\s+"+Nie+"(?:\\s*=\\s*"+Mie+")?)",hm="<[A-Za-z][A-Za-z0-9\\-]*"+Lie+"*\\s*\\/?>",gm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Oie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Vie="<[?][\\s\\S]*?[?]>",Iie="<![A-Z]+\\s+[^>]*>",Pie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Fie=new RegExp("^(?:"+hm+"|"+gm+"|"+Oie+"|"+Vie+"|"+Iie+"|"+Pie+")"),Rie=new RegExp("^(?:"+hm+"|"+gm+")");ja.HTML_TAG_RE=Fie;ja.HTML_OPEN_CLOSE_TAG_RE=Rie;var zie=Aie,Uie=ja.HTML_OPEN_CLOSE_TAG_RE,hr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+zie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Uie.source+"\\s*$"),/^$/,!1]],Hie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(c=e.src.slice(u,d),s=0;s<hr.length&&!hr[s][0].test(c);s++);if(s===hr.length)return!1;if(i)return hr[s][2];if(a=n+1,!hr[s][1].test(c)){for(;a<o&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],c=e.src.slice(u,d),hr[s][1].test(c)){c.length!==0&&a++;break}}return e.line=a,l=e.push("html_block","",0),l.map=[n,a],l.content=e.getLines(n,a,e.blkIndent,!0),!0},m1=Be.isSpace,qie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=d))return!1;for(a=1,s=e.src.charCodeAt(++u);s===35&&u<d&&a<=6;)a++,s=e.src.charCodeAt(++u);return a>6||u<d&&!m1(s)?!1:(i||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&m1(e.src.charCodeAt(l-1))&&(d=l),e.line=n+1,c=e.push("heading_open","h"+String(a),1),c.markup="########".slice(0,a),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(u,d).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(a),-1),c.markup="########".slice(0,a)),!0)},jie=function(e,n,o){var i,s,a,l,c,u,d,f,p,m=n+1,h,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<o&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(u=e.bMarks[m]+e.tShift[m],d=e.eMarks[m],u<d&&(p=e.src.charCodeAt(u),(p===45||p===61)&&(u=e.skipChars(u,p),u=e.skipSpaces(u),u>=d)))){f=p===61?1:2;break}if(!(e.sCount[m]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,m,o,!0)){s=!0;break}if(s)break}}return f?(i=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+1,c=e.push("heading_open","h"+String(f),1),c.markup=String.fromCharCode(p),c.map=[n,e.line],c=e.push("inline","",0),c.content=i,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(f),-1),c.markup=String.fromCharCode(p),e.parentType=h,!0):!1},Wie=function(e,n,o){var i,s,a,l,c,u,d=n+1,f=e.md.block.ruler.getRules("paragraph");for(u=e.parentType,e.parentType="paragraph";d<o&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(s=!1,a=0,l=f.length;a<l;a++)if(f[a](e,d,o,!0)){s=!0;break}if(s)break}return i=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=i,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},vm=vu,Wa=Be.isSpace;function Vn(t,e,n,o){var i,s,a,l,c,u,d,f;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,a=l=u=d=0,c=s.length;l<c;l++){if(i=s.charCodeAt(l),!f)if(Wa(i)){u++,i===9?d+=4-d%4:d++;continue}else f=!0;(i===10||l===c-1)&&(i!==10&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),f=!1,u=0,d=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Vn.prototype.push=function(t,e,n){var o=new vm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Vn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Vn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Vn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Wa(n));e++);return e};Vn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Wa(this.src.charCodeAt(--e)))return e+1;return e};Vn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Vn.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Vn.prototype.getLines=function(e,n,o,i){var s,a,l,c,u,d,f,p=e;if(e>=n)return"";for(d=new Array(n-e),s=0;p<n;p++,s++){for(a=0,f=c=this.bMarks[p],p+1<n||i?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),Wa(l))l===9?a+=4-(a+this.bsCount[p])%4:a++;else if(c-f<this.tShift[p])a++;else break;c++}a>o?d[s]=new Array(a-o+1).join(" ")+this.src.slice(c,u):d[s]=this.src.slice(c,u)}return d.join("")};Vn.prototype.Token=vm;var Zie=Vn,Kie=gu,Bs=[["table",vie,["paragraph","reference"]],["code",_ie],["fence",yie,["paragraph","reference","blockquote","list"]],["blockquote",bie,["paragraph","reference","blockquote","list"]],["hr",wie,["paragraph","reference","blockquote","list"]],["list",Sie,["paragraph","reference","blockquote"]],["reference",Tie],["html_block",Hie,["paragraph","reference","blockquote"]],["heading",qie,["paragraph","reference","blockquote"]],["lheading",jie],["paragraph",Wie]];function Za(){this.ruler=new Kie;for(var t=0;t<Bs.length;t++)this.ruler.push(Bs[t][0],Bs[t][1],{alt:(Bs[t][2]||[]).slice()})}Za.prototype.tokenize=function(t,e,n){for(var o,i,s,a=this.ruler.getRules(""),l=a.length,c=e,u=!1,d=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=d){t.line=n;break}for(s=t.line,i=0;i<l;i++)if(o=a[i](t,c,n,!1),o){if(s>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),c=t.line,c<n&&t.isEmpty(c)&&(u=!0,c++,t.line=c)}};Za.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Za.prototype.State=Zie;var Gie=Za;function Yie(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var Jie=function(e,n){for(var o=e.pos;o<e.posMax&&!Yie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Xie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Qie=function(e,n){var o,i,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,i=e.posMax,o+3>i)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(Xie),!s)||(a=s[1],l=e.md.linkify.matchAtStart(e.src.slice(o-a.length)),!l)||(c=l.url,c.length<=a.length)||(c=c.replace(/\*+$/,""),u=e.md.normalizeLink(c),!e.md.validateLink(u))?!1:(n||(e.pending=e.pending.slice(0,-a.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(c),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=c.length-a.length,!0)},ese=Be.isSpace,tse=function(e,n){var o,i,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,i=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(s=o-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&ese(e.src.charCodeAt(a));)a++;return e.pos=a,!0},nse=Be.isSpace,yu=[];for(var h1=0;h1<256;h1++)yu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){yu[t.charCodeAt(0)]=1});var ose=function(e,n){var o,i,s,a,l,c=e.pos,u=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=u))return!1;if(o=e.src.charCodeAt(c),o===10){for(n||e.push("hardbreak","br",0),c++;c<u&&(o=e.src.charCodeAt(c),!!nse(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(i=e.src.charCodeAt(c+1),i>=56320&&i<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&yu[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},rse=function(e,n){var o,i,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,i=e.posMax;f<i&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(o,f),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return n||(e.pending+=s),e.pos+=u,!0;for(c=f;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<i&&e.src.charCodeAt(c)===96;)c++;if(d=c-l,d===u)return n||(a=e.push("code_inline","code",0),a.markup=s,a.content=e.src.slice(f,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[d]=l}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=u,!0},Ka={};Ka.tokenize=function(e,n){var o,i,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(i=e.scanDelims(e.pos,!0),a=i.length,l=String.fromCharCode(u),a<2))return!1;for(a%2&&(s=e.push("text","",0),s.content=l,a--),o=0;o<a;o+=2)s=e.push("text","",0),s.content=l+l,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function g1(t,e){var n,o,i,s,a,l=[],c=e.length;for(n=0;n<c;n++)i=e[n],i.marker===126&&i.end!==-1&&(s=e[i.end],a=t.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&l.push(s.token-1));for(;l.length;){for(n=l.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(a=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=a)}}Ka.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(g1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&g1(e,o[n].delimiters)};var Ga={};Ga.tokenize=function(e,n){var o,i,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(i=e.scanDelims(e.pos,l===42),o=0;o<i.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function v1(t,e){var n,o,i,s,a,l,c=e.length;for(n=c-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],l=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1,a=String.fromCharCode(o.marker),s=t.tokens[o.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?a+a:a,s.content="",s=t.tokens[i.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?a+a:a,s.content="",l&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Ga.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(v1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&v1(e,o[n].delimiters)};var ise=Be.normalizeReference,Bl=Be.isSpace,sse=function(e,n){var o,i,s,a,l,c,u,d,f,p="",m="",h=e.pos,g=e.posMax,y=e.pos,C=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(c=a+1,c<g&&e.src.charCodeAt(c)===40){for(C=!1,c++;c<g&&(i=e.src.charCodeAt(c),!(!Bl(i)&&i!==10));c++);if(c>=g)return!1;if(y=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",y=c;c<g&&(i=e.src.charCodeAt(c),!(!Bl(i)&&i!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&y!==c&&u.ok)for(m=u.str,c=u.pos;c<g&&(i=e.src.charCodeAt(c),!(!Bl(i)&&i!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(C=!0),c++}if(C){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(y=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(y,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[ise(s)],!d)return e.pos=h,!1;p=d.href,m=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},ase=Be.normalizeReference,Ml=Be.isSpace,lse=function(e,n){var o,i,s,a,l,c,u,d,f,p,m,h,g,y="",C=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(u=l+1,u<v&&e.src.charCodeAt(u)===40){for(u++;u<v&&(i=e.src.charCodeAt(u),!(!Ml(i)&&i!==10));u++);if(u>=v)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),g=u;u<v&&(i=e.src.charCodeAt(u),!(!Ml(i)&&i!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<v&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<v&&(i=e.src.charCodeAt(u),!(!Ml(i)&&i!==10));u++);else p="";if(u>=v||e.src.charCodeAt(u)!==41)return e.pos=C,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<v&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?a=e.src.slice(g,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),d=e.env.references[ase(a)],!d)return e.pos=C,!1;y=d.href,p=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,h=[]),m=e.push("image","img",0),m.attrs=o=[["src",y],["alt",""]],m.children=h,m.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=v,!0},cse=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,use=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,dse=function(e,n){var o,i,s,a,l,c,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c||(a=e.src.charCodeAt(u),a===60))return!1;if(a===62)break}return o=e.src.slice(l+1,u),use.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):cse.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):!1},fse=ja.HTML_TAG_RE;function pse(t){return/^<a[>\s]/i.test(t)}function mse(t){return/^<\/a\s*>/i.test(t)}function hse(t){var e=t|32;return e>=97&&e<=122}var gse=function(e,n){var o,i,s,a,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(o=e.src.charCodeAt(l+1),o!==33&&o!==63&&o!==47&&!hse(o))||(i=e.src.slice(l).match(fse),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=i[0],pse(a.content)&&e.linkLevel++,mse(a.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},_1=lm,vse=Be.has,_se=Be.isValidEntityCode,y1=Be.fromCodePoint,yse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Cse=/^&([a-z][a-z0-9]{1,31});/i,bse=function(e,n){var o,i,s,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=c)return!1;if(o=e.src.charCodeAt(l+1),o===35){if(s=e.src.slice(l).match(yse),s)return n||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=_se(i)?y1(i):y1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(Cse),s&&vse(_1,s[1]))return n||(a=e.push("text_special","",0),a.content=_1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function C1(t){var e,n,o,i,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,m=[];for(e=0;e<d;e++)if(o=t[e],m.push(0),(t[f].marker!==o.marker||p!==o.token-1)&&(f=e),p=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),s=u[o.marker][(o.open?3:0)+o.length%3],n=f-m[f]-1,a=n;n>s;n-=m[n]+1)if(i=t[n],i.marker===o.marker&&i.open&&i.end<0&&(l=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?m[n-1]+1:0,m[e]=e-n+c,m[n]=c,o.open=!1,i.end=e,i.close=!1,a=-1,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var kse=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(C1(e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&C1(o[n].delimiters)},wse=function(e){var n,o,i=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&i--,s[n].level=i,s[n].nesting>0&&i++,s[n].type==="text"&&n+1<a&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==o&&(s[o]=s[n]),o++);n!==o&&(s.length=o)},Cu=vu,b1=Be.isWhiteSpace,k1=Be.isPunctChar,w1=Be.isMdAsciiPunct;function is(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}is.prototype.pushPending=function(){var t=new Cu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};is.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Cu(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};is.prototype.scanDelims=function(t,e){var n=t,o,i,s,a,l,c,u,d,f,p=!0,m=!0,h=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===g;)n++;return s=n-t,i=n<h?this.src.charCodeAt(n):32,u=w1(o)||k1(String.fromCharCode(o)),f=w1(i)||k1(String.fromCharCode(i)),c=b1(o),d=b1(i),d?p=!1:f&&(c||u||(p=!1)),c?m=!1:u&&(d||f||(m=!1)),e?(a=p,l=m):(a=p&&(!m||u),l=m&&(!p||f)),{can_open:a,can_close:l,length:s}};is.prototype.Token=Cu;var Ese=is,E1=gu,Ll=[["text",Jie],["linkify",Qie],["newline",tse],["escape",ose],["backticks",rse],["strikethrough",Ka.tokenize],["emphasis",Ga.tokenize],["link",sse],["image",lse],["autolink",dse],["html_inline",gse],["entity",bse]],Ol=[["balance_pairs",kse],["strikethrough",Ka.postProcess],["emphasis",Ga.postProcess],["fragments_join",wse]];function ss(){var t;for(this.ruler=new E1,t=0;t<Ll.length;t++)this.ruler.push(Ll[t][0],Ll[t][1]);for(this.ruler2=new E1,t=0;t<Ol.length;t++)this.ruler2.push(Ol[t][0],Ol[t][1])}ss.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),s=i.length,a=t.md.options.maxNesting,l=t.cache;if(typeof l[o]<"u"){t.pos=l[o];return}if(t.level<a){for(n=0;n<s;n++)if(t.level++,e=i[n](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,l[o]=t.pos};ss.prototype.tokenize=function(t){for(var e,n,o,i=this.ruler.getRules(""),s=i.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(o=t.pos,t.level<l){for(n=0;n<s;n++)if(e=i[n](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ss.prototype.parse=function(t,e,n,o){var i,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,i=0;i<a;i++)s[i](l)};ss.prototype.State=Ese;var Sse=ss,Vl,S1;function xse(){return S1||(S1=1,Vl=function(t){var e={};t=t||{},e.src_Any=cm().source,e.src_Cc=um().source,e.src_Z=dm().source,e.src_P=hu.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Vl}function mc(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function Ya(t){return Object.prototype.toString.call(t)}function Tse(t){return Ya(t)==="[object String]"}function Ase(t){return Ya(t)==="[object Object]"}function Nse(t){return Ya(t)==="[object RegExp]"}function x1(t){return Ya(t)==="[object Function]"}function Dse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var _m={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $se(t){return Object.keys(t||{}).reduce(function(e,n){return e||_m.hasOwnProperty(n)},!1)}var Bse={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},Mse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Lse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ose(t){t.__index__=-1,t.__text_cache__=""}function Vse(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function T1(){return function(t,e){e.normalize(t)}}function ra(t){var e=t.re=xse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Mse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function s(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){var c=t.__schemas__[l];if(c!==null){var u={validate:null,link:null};if(t.__compiled__[l]=u,Ase(c)){Nse(c.validate)?u.validate=Vse(c.validate):x1(c.validate)?u.validate=c.validate:s(l,c),x1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=T1();return}if(Tse(c)){i.push(l);return}s(l,c)}}),i.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:T1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(Dse).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Ose(t)}function Ise(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}function hc(t,e){var n=new Ise(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function qt(t,e){if(!(this instanceof qt))return new qt(t,e);e||$se(t)&&(e=t,t={}),this.__opts__=mc({},_m,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=mc({},Bse,t),this.__compiled__={},this.__tlds__=Lse,this.__tlds_replaced__=!1,this.re={},ra(this)}qt.prototype.add=function(e,n){return this.__schemas__[e]=n,ra(this),this};qt.prototype.set=function(e){return this.__opts__=mc(this.__opts__,e),this};qt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,s,a,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],c.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0};qt.prototype.pretest=function(e){return this.re.pretest.test(e)};qt.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};qt.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(hc(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(hc(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};qt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,hc(this,0)):null};qt.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,s){return o!==s[i-1]}).reverse(),ra(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ra(this),this)};qt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};qt.prototype.onCompile=function(){};var Pse=qt;const Sr=2147483647,Tn=36,bu=1,Hi=26,Fse=38,Rse=700,ym=72,Cm=128,bm="-",zse=/^xn--/,Use=/[^\0-\x7F]/,Hse=/[\x2E\u3002\uFF0E\uFF61]/g,qse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Il=Tn-bu,An=Math.floor,Pl=String.fromCharCode;function lo(t){throw new RangeError(qse[t])}function jse(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function km(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Hse,".");const i=t.split("."),s=jse(i,e).join(".");return o+s}function ku(t){const e=[];let n=0;const o=t.length;for(;n<o;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((i&1023)<<10)+(s&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const wm=t=>String.fromCodePoint(...t),Wse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Tn},A1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Em=function(t,e,n){let o=0;for(t=n?An(t/Rse):t>>1,t+=An(t/e);t>Il*Hi>>1;o+=Tn)t=An(t/Il);return An(o+(Il+1)*t/(t+Fse))},wu=function(t){const e=[],n=t.length;let o=0,i=Cm,s=ym,a=t.lastIndexOf(bm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&lo("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,f=Tn;;f+=Tn){l>=n&&lo("invalid-input");const p=Wse(t.charCodeAt(l++));p>=Tn&&lo("invalid-input"),p>An((Sr-o)/d)&&lo("overflow"),o+=p*d;const m=f<=s?bu:f>=s+Hi?Hi:f-s;if(p<m)break;const h=Tn-m;d>An(Sr/h)&&lo("overflow"),d*=h}const u=e.length+1;s=Em(o-c,u,c==0),An(o/u)>Sr-i&&lo("overflow"),i+=An(o/u),o%=u,e.splice(o++,0,i)}return String.fromCodePoint(...e)},Eu=function(t){const e=[];t=ku(t);const n=t.length;let o=Cm,i=0,s=ym;for(const c of t)c<128&&e.push(Pl(c));const a=e.length;let l=a;for(a&&e.push(bm);l<n;){let c=Sr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>An((Sr-i)/u)&&lo("overflow"),i+=(c-o)*u,o=c;for(const d of t)if(d<o&&++i>Sr&&lo("overflow"),d===o){let f=i;for(let p=Tn;;p+=Tn){const m=p<=s?bu:p>=s+Hi?Hi:p-s;if(f<m)break;const h=f-m,g=Tn-m;e.push(Pl(A1(m+h%g,0))),f=An(h/g)}e.push(Pl(A1(f,0))),s=Em(i,u,l===a),i=0,++l}++i,++o}return e.join("")},Sm=function(t){return km(t,function(e){return zse.test(e)?wu(e.slice(4).toLowerCase()):e})},xm=function(t){return km(t,function(e){return Use.test(e)?"xn--"+Eu(e):e})},Zse={version:"2.1.0",ucs2:{decode:ku,encode:wm},decode:wu,encode:Eu,toASCII:xm,toUnicode:Sm},Kse=Object.freeze(Object.defineProperty({__proto__:null,decode:wu,default:Zse,encode:Eu,toASCII:xm,toUnicode:Sm,ucs2decode:ku,ucs2encode:wm},Symbol.toStringTag,{value:"Module"})),Gse=gC(Kse);var Yse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Jse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Xse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Di=Be,Qse=qa,eae=Wre,tae=gie,nae=Gie,oae=Sse,rae=Pse,Ro=Zr,Tm=Gse,iae={default:Yse,zero:Jse,commonmark:Xse},sae=/^(vbscript|javascript|file|data):/,aae=/^data:image\/(gif|png|jpeg|webp);/;function lae(t){var e=t.trim().toLowerCase();return sae.test(e)?!!aae.test(e):!0}var Am=["http:","https:","mailto:"];function cae(t){var e=Ro.parse(t,!0);if(e.hostname&&(!e.protocol||Am.indexOf(e.protocol)>=0))try{e.hostname=Tm.toASCII(e.hostname)}catch{}return Ro.encode(Ro.format(e))}function uae(t){var e=Ro.parse(t,!0);if(e.hostname&&(!e.protocol||Am.indexOf(e.protocol)>=0))try{e.hostname=Tm.toUnicode(e.hostname)}catch{}return Ro.decode(Ro.format(e),Ro.decode.defaultChars+"%")}function tn(t,e){if(!(this instanceof tn))return new tn(t,e);e||Di.isString(t)||(e=t||{},t="default"),this.inline=new oae,this.block=new nae,this.core=new tae,this.renderer=new eae,this.linkify=new rae,this.validateLink=lae,this.normalizeLink=cae,this.normalizeLinkText=uae,this.utils=Di,this.helpers=Di.assign({},Qse),this.options={},this.configure(t),e&&this.set(e)}tn.prototype.set=function(t){return Di.assign(this.options,t),this};tn.prototype.configure=function(t){var e=this,n;if(Di.isString(t)&&(n=t,t=iae[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};tn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};tn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};tn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};tn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};tn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};tn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};tn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var dae=tn,fae=dae;const pae=hC(fae);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function N1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function mae(t){if(Array.isArray(t))return t}function hae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function gae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vae(t,e){return mae(t)||hae(t,e)||_ae(t,e)||gae()}function _ae(t,e){if(t){if(typeof t=="string")return N1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N1(t,e):void 0}}const Nm=Object.entries,D1=Object.setPrototypeOf,yae=Object.isFrozen,Cae=Object.getPrototypeOf,bae=Object.getOwnPropertyDescriptor;let mt=Object.freeze,vt=Object.seal,Cr=Object.create,Dm=typeof Reflect<"u"&&Reflect,gc=Dm.apply,vc=Dm.construct;mt||(mt=function(e){return e});vt||(vt=function(e){return e});gc||(gc=function(e,n){for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];return e.apply(n,i)});vc||(vc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return new e(...o)});const gr=et(Array.prototype.forEach),kae=et(Array.prototype.lastIndexOf),$1=et(Array.prototype.pop),vr=et(Array.prototype.push),wae=et(Array.prototype.splice),uo=Array.isArray,Si=et(String.prototype.toLowerCase),Fl=et(String.prototype.toString),B1=et(String.prototype.match),_i=et(String.prototype.replace),M1=et(String.prototype.indexOf),Eae=et(String.prototype.trim),Sae=et(Number.prototype.toString),xae=et(Boolean.prototype.toString),L1=typeof BigInt>"u"?null:et(BigInt.prototype.toString),O1=typeof Symbol>"u"?null:et(Symbol.prototype.toString),lt=et(Object.prototype.hasOwnProperty),yi=et(Object.prototype.toString),at=et(RegExp.prototype.test),Bo=Tae(TypeError);function et(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return gc(t,e,o)}}function Tae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return vc(t,n)}}function Se(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si;if(D1&&D1(t,null),!uo(e))return t;let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const s=n(i);s!==i&&(yae(e)||(e[o]=s),i=s)}t[i]=!0}return t}function Aae(t){for(let e=0;e<t.length;e++)lt(t,e)||(t[e]=null);return t}function kt(t){const e=Cr(null);for(const o of Nm(t)){var n=vae(o,2);const i=n[0],s=n[1];lt(t,i)&&(uo(s)?e[i]=Aae(s):s&&typeof s=="object"&&s.constructor===Object?e[i]=kt(s):e[i]=s)}return e}function Nae(t){switch(typeof t){case"string":return t;case"number":return Sae(t);case"boolean":return xae(t);case"bigint":return L1?L1(t):"0";case"symbol":return O1?O1(t):"Symbol()";case"undefined":return yi(t);case"function":case"object":{if(t===null)return yi(t);const e=t,n=ln(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:yi(o)}return yi(t)}default:return yi(t)}}function ln(t,e){for(;t!==null;){const o=bae(t,e);if(o){if(o.get)return et(o.get);if(typeof o.value=="function")return et(o.value)}t=Cae(t)}function n(){return null}return n}function Dae(t){try{return at(t,""),!0}catch{return!1}}const V1=mt(["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","search","section","select","shadow","slot","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"]),Rl=mt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zl=mt(["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"]),$ae=mt(["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"]),Ul=mt(["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"]),Bae=mt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I1=mt(["#text"]),P1=mt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Hl=mt(["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","dominant-baseline","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","mask-type","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-orientation","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"]),F1=mt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),Ms=mt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mae=vt(/{{[\w\W]*|^[\w\W]*}}/g),Lae=vt(/<%[\w\W]*|^[\w\W]*%>/g),Oae=vt(/\${[\w\W]*/g),Vae=vt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Iae=vt(/^aria-[\-\w]+$/),R1=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Pae=vt(/^(?:\w+script|data):/i),Fae=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rae=vt(/^html$/i),zae=vt(/^[a-z][.\w]*(-[.\w]+)+$/i),z1=vt(/<[/\w!]/g),U1=vt(/<[/\w]/g),Uae=vt(/<\/no(script|embed|frames)/i),Hae=vt(/\/>/i),Ft={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qae=function(){return typeof window>"u"?null:window},jae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},H1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ao=function(e,n,o,i){return lt(e,n)&&uo(e[n])?Se(i.base?kt(i.base):{},e[n],i.transform):o};function $m(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qae();const e=J=>$m(J);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Ft.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,i=o.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,f=t.trustedTypes,p=l.prototype,m=ln(p,"cloneNode"),h=ln(p,"remove"),g=ln(p,"nextSibling"),y=ln(p,"childNodes"),C=ln(p,"parentNode"),v=ln(p,"shadowRoot"),_=ln(p,"attributes"),b=a&&a.prototype?ln(a.prototype,"nodeType"):null,w=a&&a.prototype?ln(a.prototype,"nodeName"):null,k=a&&a.prototype?ln(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let A,T="",S,E=!1,D=0;const x=function(){if(D>0)throw Bo('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},$=function(N){x(),D++;try{return A.createHTML(N)}finally{D--}},B=function(N){x(),D++;try{return A.createScriptURL(N)}finally{D--}},V=function(){return E||(S=jae(f,i),E=!0),S},I=n,W=I.implementation,P=I.createNodeIterator,H=I.createDocumentFragment,Q=I.getElementsByTagName,le=o.importNode;let oe=H1();e.isSupported=typeof Nm=="function"&&typeof C=="function"&&W&&W.createHTMLDocument!==void 0;const Ne=Mae,ce=Lae,ne=Oae,z=Vae,F=Iae,se=Pae,Ee=Fae,Ue=zae;let we=R1,Ce=null;const yt=Se({},[...V1,...Rl,...zl,...Ul,...I1]);let R=null;const re=Se({},[...P1,...Hl,...F1,...Ms]);let he=Object.seal(Cr(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}})),pe=null,Ke=null;const De=Object.seal(Cr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,Fe=!0,Ye=!1,Je=!0,Me=!1,Ct=!0,st=!1,Ot=!1,on=null,yn=null,Cn=!1,bn=!1,to=!1,M=!1,j=!0,ae=!1;const Re="user-content-";let ot=!0,bt=!1,ve={},Et=null;const no=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let vs=null;const ni=Se({},["audio","video","img","source","image","track"]);let Vt=null;const dr=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oo="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let ro=It,No=!1,oi=null;const gl=Se({},[oo,fr,It],Fl),_s=mt(["mi","mo","mn","ms","mtext"]);let Pt=Se({},_s);const ys=mt(["annotation-xml"]);let ri=Se({},ys);const vl=Se({},["title","style","font","a","script"]);let Do=null;const ii=["application/xhtml+xml","text/html"],si="text/html";let Ve=null,rn=null;const ai=n.createElement("form"),Cs=function(N){return N instanceof RegExp||N instanceof Function},io=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rn&&rn===N)return;(!N||typeof N!="object")&&(N={}),N=kt(N),Do=ii.indexOf(N.PARSER_MEDIA_TYPE)===-1?si:N.PARSER_MEDIA_TYPE,Ve=Do==="application/xhtml+xml"?Fl:Si,Ce=ao(N,"ALLOWED_TAGS",yt,{transform:Ve}),R=ao(N,"ALLOWED_ATTR",re,{transform:Ve}),oi=ao(N,"ALLOWED_NAMESPACES",gl,{transform:Fl}),Vt=ao(N,"ADD_URI_SAFE_ATTR",dr,{transform:Ve,base:dr}),vs=ao(N,"ADD_DATA_URI_TAGS",ni,{transform:Ve,base:ni}),Et=ao(N,"FORBID_CONTENTS",no,{transform:Ve}),pe=ao(N,"FORBID_TAGS",kt({}),{transform:Ve}),Ke=ao(N,"FORBID_ATTR",kt({}),{transform:Ve}),ve=lt(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?kt(N.USE_PROFILES):N.USE_PROFILES:!1,$e=N.ALLOW_ARIA_ATTR!==!1,Fe=N.ALLOW_DATA_ATTR!==!1,Ye=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Je=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=N.SAFE_FOR_TEMPLATES||!1,Ct=N.SAFE_FOR_XML!==!1,st=N.WHOLE_DOCUMENT||!1,bn=N.RETURN_DOM||!1,to=N.RETURN_DOM_FRAGMENT||!1,M=N.RETURN_TRUSTED_TYPE||!1,Cn=N.FORCE_BODY||!1,j=N.SANITIZE_DOM!==!1,ae=N.SANITIZE_NAMED_PROPS||!1,ot=N.KEEP_CONTENT!==!1,bt=N.IN_PLACE||!1,we=Dae(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:R1,ro=typeof N.NAMESPACE=="string"?N.NAMESPACE:It,Pt=lt(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?kt(N.MATHML_TEXT_INTEGRATION_POINTS):Se({},_s),ri=lt(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?kt(N.HTML_INTEGRATION_POINTS):Se({},ys);const O=lt(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?kt(N.CUSTOM_ELEMENT_HANDLING):Cr(null);if(he=Cr(null),lt(O,"tagNameCheck")&&Cs(O.tagNameCheck)&&(he.tagNameCheck=O.tagNameCheck),lt(O,"attributeNameCheck")&&Cs(O.attributeNameCheck)&&(he.attributeNameCheck=O.attributeNameCheck),lt(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),vt(he),Me&&(Fe=!1),to&&(bn=!0),ve&&(Ce=Se({},I1),R=Cr(null),ve.html===!0&&(Se(Ce,V1),Se(R,P1)),ve.svg===!0&&(Se(Ce,Rl),Se(R,Hl),Se(R,Ms)),ve.svgFilters===!0&&(Se(Ce,zl),Se(R,Hl),Se(R,Ms)),ve.mathMl===!0&&(Se(Ce,Ul),Se(R,F1),Se(R,Ms))),De.tagCheck=null,De.attributeCheck=null,lt(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?De.tagCheck=N.ADD_TAGS:uo(N.ADD_TAGS)&&(Ce===yt&&(Ce=kt(Ce)),Se(Ce,N.ADD_TAGS,Ve))),lt(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?De.attributeCheck=N.ADD_ATTR:uo(N.ADD_ATTR)&&(R===re&&(R=kt(R)),Se(R,N.ADD_ATTR,Ve))),lt(N,"ADD_URI_SAFE_ATTR")&&uo(N.ADD_URI_SAFE_ATTR)&&Se(Vt,N.ADD_URI_SAFE_ATTR,Ve),lt(N,"FORBID_CONTENTS")&&uo(N.FORBID_CONTENTS)&&(Et===no&&(Et=kt(Et)),Se(Et,N.FORBID_CONTENTS,Ve)),lt(N,"ADD_FORBID_CONTENTS")&&uo(N.ADD_FORBID_CONTENTS)&&(Et===no&&(Et=kt(Et)),Se(Et,N.ADD_FORBID_CONTENTS,Ve)),ot&&(Ce["#text"]=!0),st&&Se(Ce,["html","head","body"]),Ce.table&&(Se(Ce,["tbody"]),delete pe.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Z=A;A=N.TRUSTED_TYPES_POLICY;try{T=$("")}catch(ue){throw A=Z,ue}}else N.TRUSTED_TYPES_POLICY===null?(A=void 0,T=""):(A===void 0&&(A=V()),A&&typeof T=="string"&&(T=$("")));mt&&mt(N),rn=N},li=Se({},[...Rl,...zl,...$ae]),L=Se({},[...Ul,...Bae]),Y=function(N,O,Z){return O.namespaceURI===It?N==="svg":O.namespaceURI===oo?N==="svg"&&(Z==="annotation-xml"||Pt[Z]):!!li[N]},be=function(N,O,Z){return O.namespaceURI===It?N==="math":O.namespaceURI===fr?N==="math"&&ri[Z]:!!L[N]},He=function(N,O,Z){return O.namespaceURI===fr&&!ri[Z]||O.namespaceURI===oo&&!Pt[Z]?!1:!L[N]&&(vl[N]||!li[N])},In=function(N){let O=C(N);(!O||!O.tagName)&&(O={namespaceURI:ro,tagName:"template"});const Z=Si(N.tagName),ue=Si(O.tagName);return oi[N.namespaceURI]?N.namespaceURI===fr?Y(Z,O,ue):N.namespaceURI===oo?be(Z,O,ue):N.namespaceURI===It?He(Z,O,ue):!!(Do==="application/xhtml+xml"&&oi[N.namespaceURI]):!1},sn=function(N){vr(e.removed,{element:N});try{C(N).removeChild(N)}catch{if(h(N),!C(N))throw Bo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ci=function(N){ui(N);const O=y(N);if(O){const ue=[];gr(O,fe=>{vr(ue,fe)}),gr(ue,fe=>{try{h(fe)}catch{}})}const Z=_(N);if(Z)for(let ue=Z.length-1;ue>=0;--ue){const fe=Z[ue],ye=fe&&fe.name;if(typeof ye=="string")try{N.removeAttribute(ye)}catch{}}},Pn=function(N,O){try{vr(e.removed,{attribute:O.getAttributeNode(N),from:O})}catch{vr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(N),N==="is")if(bn||to)try{sn(O)}catch{}else try{O.setAttribute(N,"")}catch{}},bs=function(N){const O=_(N);if(O)for(let Z=O.length-1;Z>=0;--Z){const ue=O[Z],fe=ue&&ue.name;if(!(typeof fe!="string"||R[Ve(fe)]))try{N.removeAttribute(fe)}catch{}}},ui=function(N){const O=[N];for(;O.length>0;){const Z=O.pop();(b?b(Z):Z.nodeType)===Ft.element&&bs(Z);const fe=y(Z);if(fe)for(let ye=fe.length-1;ye>=0;--ye)O.push(fe[ye])}},t0=function(N){if(!Ct)return;const O=[N];for(;O.length>0;){const Z=O.pop(),ue=b?b(Z):Z.nodeType;if(ue===Ft.processingInstruction||ue===Ft.comment&&at(U1,Z.data)){try{h(Z)}catch{}continue}if(ue===Ft.element){const ye=Z,Ie=Ve(w?w(Z):Z.nodeName);try{ye.hasAttribute&&ye.hasAttribute("patchsrc")&&ye.removeAttribute("patchsrc"),ye.hasAttribute&&ye.hasAttribute("for")&&Ie!=="label"&&Ie!=="output"&&ye.removeAttribute("for")}catch{}}const fe=y(Z);if(fe)for(let ye=fe.length-1;ye>=0;--ye)O.push(fe[ye])}},yd=function(N){let O=null,Z=null;if(Cn)N="<remove></remove>"+N;else{const ye=B1(N,/^[\r\n\t ]+/);Z=ye&&ye[0]}Do==="application/xhtml+xml"&&ro===It&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const ue=A?$(N):N;if(ro===It)try{O=new d().parseFromString(ue,Do)}catch{}if(!O||!O.documentElement){O=W.createDocument(ro,"template",null);try{O.documentElement.innerHTML=No?T:ue}catch{}}const fe=O.body||O.documentElement;return N&&Z&&fe.insertBefore(n.createTextNode(Z),fe.childNodes[0]||null),ro===It?Q.call(O,st?"html":"body")[0]:st?O.documentElement:fe},Cd=function(N){const O=k?k(N):N.ownerDocument;return P.call(O||N,N,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ks=function(N){return N=_i(N,Ne," "),N=_i(N,ce," "),N=_i(N,ne," "),N},_l=function(N){var O;N.normalize();const Z=k?k(N):N.ownerDocument,ue=P.call(Z||N,N,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let fe=ue.nextNode();for(;fe;)fe.data=ks(fe.data),fe=ue.nextNode();const ye=(O=N.querySelectorAll)===null||O===void 0?void 0:O.call(N,"template");ye&&gr(ye,Ie=>{pr(Ie.content)&&_l(Ie.content)})},ws=function(N){const O=w?w(N):null;return typeof O!="string"||Ve(O)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==_(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==b(N)||N.childNodes!==y(N)},pr=function(N){if(!b||typeof N!="object"||N===null)return!1;try{return b(N)===Ft.documentFragment}catch{return!1}},di=function(N){if(!b||typeof N!="object"||N===null)return!1;try{return typeof b(N)=="number"}catch{return!1}};function kn(J,N,O){J.length!==0&&gr(J,Z=>{Z.call(e,N,O,rn)})}const n0=function(N,O){return!!(Ct&&N.hasChildNodes()&&!di(N.firstElementChild)&&at(z1,N.textContent)&&at(z1,N.innerHTML)||Ct&&N.namespaceURI===It&&O==="style"&&di(N.firstElementChild)||N.nodeType===Ft.processingInstruction||Ct&&N.nodeType===Ft.comment&&at(U1,N.data))},o0=function(N,O,Z){if(!pe[O]&&Ed(O)&&(he.tagNameCheck instanceof RegExp&&at(he.tagNameCheck,O)||he.tagNameCheck instanceof Function&&he.tagNameCheck(O)))return!1;if(ot&&!Et[O]){const ue=C(N),fe=y(N);if(fe&&ue){const ye=fe.length;for(let Ie=ye-1;Ie>=0;--Ie){const qe=N===Z?m(fe[Ie],!0):fe[Ie];ue.insertBefore(qe,g(N))}}}return sn(N),!0},bd=function(N,O,Z,ue){return N.length===0?O:O===Z||O===ue?kt(O):O},kd=function(N,O){if(kn(oe.beforeSanitizeElements,N,null),N!==O&&C(N)===null)return bt&&ui(N),!0;if(ws(N))return sn(N),!0;const Z=Ve(w?w(N):N.nodeName);if(Ce=bd(oe.uponSanitizeElement,Ce,yt,on),kn(oe.uponSanitizeElement,N,{tagName:Z,allowedTags:Ce}),N!==O&&C(N)===null)return bt&&ui(N),!0;if(n0(N,Z))return sn(N),!0;if(pe[Z]||!(De.tagCheck instanceof Function&&De.tagCheck(Z))&&!Ce[Z]){const fe=o0(N,Z,O);return fe===!1&&kn(oe.afterSanitizeElements,N,null),fe}if((b?b(N):N.nodeType)===Ft.element&&!In(N)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&at(Uae,N.innerHTML))return sn(N),!0;if(Me&&N.nodeType===Ft.text){const fe=ks(N.textContent);N.textContent!==fe&&(vr(e.removed,{element:N.cloneNode()}),N.textContent=fe)}return kn(oe.afterSanitizeElements,N,null),!1},wd=function(N,O,Z){if(Ke[O]||Ct&&O==="patchsrc"||Ct&&O==="for"&&N!=="label"&&N!=="output"||j&&(O==="id"||O==="name")&&(Z in n||Z in ai))return!1;const ue=R[O]||De.attributeCheck instanceof Function&&De.attributeCheck(O,N);if(!(Fe&&at(z,O))){if(!($e&&at(F,O))){if(ue){if(!Vt[O]){if(!at(we,_i(Z,Ee,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&N!=="script"&&M1(Z,"data:")===0&&vs[N])){if(!(Ye&&!at(se,_i(Z,Ee,"")))){if(Z)return!1}}}}}else if(!(Ed(N)&&(he.tagNameCheck instanceof RegExp&&at(he.tagNameCheck,N)||he.tagNameCheck instanceof Function&&he.tagNameCheck(N))&&(he.attributeNameCheck instanceof RegExp&&at(he.attributeNameCheck,O)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(O,N))||O==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&at(he.tagNameCheck,Z)||he.tagNameCheck instanceof Function&&he.tagNameCheck(Z))))return!1}}return!0},r0=Se({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ed=function(N){return!r0[Si(N)]&&at(Ue,N)},i0=function(N,O,Z,ue){if(A&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Z)switch(f.getAttributeType(N,O)){case"TrustedHTML":return $(ue);case"TrustedScriptURL":return B(ue)}return ue},s0=function(N,O,Z,ue){try{Z?N.setAttributeNS(Z,O,ue):N.setAttribute(O,ue),ws(N)?sn(N):$1(e.removed)}catch{Pn(O,N)}},Sd=function(N){kn(oe.beforeSanitizeAttributes,N,null);const O=N.attributes;if(!O||ws(N))return;R=bd(oe.uponSanitizeAttribute,R,re,yn);const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let ue=O.length;const fe=Ve(N.nodeName);for(;ue--;){const ye=O[ue],Ie=ye.name,qe=ye.namespaceURI,Dt=ye.value,$t=Ve(Ie),Cl=Dt;let St=Ie==="value"?Cl:Eae(Cl);if(Z.attrName=$t,Z.attrValue=St,Z.keepAttr=!0,Z.forceKeepAttr=void 0,kn(oe.uponSanitizeAttribute,N,Z),St=Z.attrValue,ae&&($t==="id"||$t==="name")&&M1(St,Re)!==0&&(Pn(Ie,N),St=Re+St),Ct&&at(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,St)){Pn(Ie,N);continue}if($t==="attributename"&&B1(St,"href")){Pn(Ie,N);continue}if(!Z.forceKeepAttr){if(!Z.keepAttr){Pn(Ie,N);continue}if(!Je&&at(Hae,St)){Pn(Ie,N);continue}if(Me&&(St=ks(St)),!wd(fe,$t,St)){Pn(Ie,N);continue}St=i0(fe,$t,qe,St),St!==Cl&&s0(N,Ie,qe,St)}}kn(oe.afterSanitizeAttributes,N,null)},Es=function(N){let O=null;const Z=Cd(N);for(kn(oe.beforeSanitizeShadowDOM,N,null);O=Z.nextNode();)if(kn(oe.uponSanitizeShadowNode,O,null),kd(O,N),Sd(O),pr(O.content)&&Es(O.content),(b?b(O):O.nodeType)===Ft.element){const fe=v(O);pr(fe)&&(yl(fe),Es(fe))}kn(oe.afterSanitizeShadowDOM,N,null)},yl=function(N){const O=[{node:N,shadow:null}];for(;O.length>0;){const Z=O.pop();if(Z.shadow){Es(Z.shadow);continue}const ue=Z.node,ye=(b?b(ue):ue.nodeType)===Ft.element,Ie=y(ue);if(Ie)for(let qe=Ie.length-1;qe>=0;--qe)O.push({node:Ie[qe],shadow:null});if(ye){const qe=w?w(ue):null;if(typeof qe=="string"&&Ve(qe)==="template"){const Dt=ue.content;pr(Dt)&&O.push({node:Dt,shadow:null})}}if(ye){const qe=v(ue);pr(qe)&&O.push({node:null,shadow:qe},{node:qe,shadow:null})}}};return e.sanitize=function(J){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,Z=null,ue=null,fe=null;if(No=!J,No&&(J="<!-->"),typeof J!="string"&&!di(J)&&(J=Nae(J),typeof J!="string"))throw Bo("dirty is not a string, aborting");if(!e.isSupported)return J;Ot?(Ce=on,R=yn):io(N),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(Ce=kt(Ce)),oe.uponSanitizeAttribute.length>0&&(R=kt(R)),e.removed=[];const ye=bt&&typeof J!="string"&&di(J);if(ye){t0(J);const Dt=w?w(J):J.nodeName;if(typeof Dt=="string"){const $t=Ve(Dt);if(!Ce[$t]||pe[$t])throw ci(J),Bo("root node is forbidden and cannot be sanitized in-place")}if(ws(J))throw ci(J),Bo("root node is clobbered and cannot be sanitized in-place");try{yl(J)}catch($t){throw ci(J),$t}}else if(di(J))O=yd("<!---->"),Z=O.ownerDocument.importNode(J,!0),Z.nodeType===Ft.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?O=Z:O.appendChild(Z),yl(Z);else{if(!bn&&!Me&&!st&&J.indexOf("<")===-1)return A&&M?$(J):J;if(O=yd(J),!O)return bn?null:M?T:""}O&&Cn&&sn(O.firstChild);const Ie=ye?J:O;try{const Dt=Cd(Ie);for(;ue=Dt.nextNode();)kd(ue,Ie),Sd(ue),pr(ue.content)&&Es(ue.content)}catch(Dt){throw ye&&(ci(J),gr(e.removed,$t=>{$t.element&&ui($t.element)})),Dt}if(ye)return gr(e.removed,Dt=>{Dt.element&&ui(Dt.element)}),Me&&_l(J),J;if(bn){if(Me&&_l(O),to)for(fe=H.call(O.ownerDocument);O.firstChild;)fe.appendChild(O.firstChild);else fe=O;return(R.shadowroot||R.shadowrootmode)&&(fe=le.call(o,fe,!0)),fe}let qe=st?O.outerHTML:O.innerHTML;return st&&Ce["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&at(Rae,O.ownerDocument.doctype.name)&&(qe="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
19
+ `+qe),Me&&(qe=ks(qe)),A&&M?$(qe):qe},e.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};io(J),Ot=!0,on=Ce,yn=R},e.clearConfig=function(){rn=null,Ot=!1,on=null,yn=null,A=S,T=""},e.isValidAttribute=function(J,N,O){rn||io({});const Z=Ve(J),ue=Ve(N);return wd(Z,ue,O)},e.addHook=function(J,N){typeof N=="function"&&lt(oe,J)&&vr(oe[J],N)},e.removeHook=function(J,N){if(lt(oe,J)){if(N!==void 0){const O=kae(oe[J],N);return O===-1?void 0:wae(oe[J],O,1)[0]}return $1(oe[J])}},e.removeHooks=function(J){lt(oe,J)&&(oe[J]=[])},e.removeAllHooks=function(){oe=H1()},e}var Wae=$m();const Zae=["innerHTML"],Kae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},Bm=r.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new pae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=r.computed(()=>e.content?Wae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(i,s)=>t.content?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Zae)):(r.openBlock(),r.createElementBlock("div",Kae,r.toDisplayString(t.placeholder),1))}});function G(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Mm(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const vn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Gae=vn&&"documentMode"in document?document.documentMode:null,cn=vn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Xo=vn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ia=!(!vn||!("InputEvent"in window)||Gae)&&"getTargetRanges"in new window.InputEvent("input"),qi=vn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Rr=vn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Yae=vn&&/Android/.test(navigator.userAgent),Lm=vn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),q1=vn&&Yae&&Lm,ji=vn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&cn&&!Lm;function Om(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const Jae=0,Xae=1,Qae=2,Vm=128,ele=1,tle=2,nle=3,ole=4,rle=5,ile=6,Ja=qi||Rr||ji?" ":"​",bo=`
20
20
 
21
- `,ile=Xo?" ":Ja,xt={bold:1,capitalize:1024,code:16,highlight:Om,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},sle={directionless:1,unmergeable:2},j1={center:2,end:6,justify:4,left:1,right:3,start:5},ale={[ele]:"center",[rle]:"end",[nle]:"justify",[Qae]:"left",[tle]:"right",[ole]:"start"},lle={normal:0,segmented:2,token:1},cle={[Yae]:"normal",[Xae]:"segmented",[Jae]:"token"},W1="$config";function Vm(t,e,n,o,i,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(U(a)&&Vm(a,l,n,o,i,s),n.has(l)||s.delete(l),i.push(l)),a=a.getNextSibling()}}let _c=!1,Su=0;function ule(t){Su=t.timeStamp}function ql(t,e,n){const o=t.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(t===i||o&&t.previousSibling===i)||o&&sl(t,n)!==void 0}function dle(t,e,n){const o=mn(nn(n));let i=null,s=null;o!==null&&o.anchorNode===t&&(i=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&zu(e,a,i,s,!1)}function fle(t,e,n){if(K(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return eo(e)&&n.isAttached()}function ple(t,e,n,o){for(let i=t;i&&!gce(i);i=ms(i)){const s=sl(i,e);if(s!==void 0){const a=it(s,n);if(a)return Ae(a)||!tt(i)?void 0:[i,a]}else if(i===o)return[o,Ph(n)]}}function Im(t,e,n){_c=!0;const o=performance.now()-Su>100;try{zt(t,()=>{const i=ee()||function(p){return p.getEditorState().read(()=>{const m=ee();return m!==null?m.clone():null})}(t),s=new Map,a=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let u=!1,d="";for(let p=0;p<e.length;p++){const m=e[p],h=m.type,g=m.target,y=ple(g,t,l,a);if(!y)continue;const[C,_]=y;if(h==="characterData")o&&X(_)&&eo(g)&&fle(i,g,_)&&dle(g,_,t);else if(h==="childList"){u=!0;const v=m.addedNodes;for(let k=0;k<v.length;k++){const T=v[k],A=Vh(T),S=T.parentNode;if(S!=null&&T!==c&&A===null&&!ql(T,S,t)){if(Xo){const E=(tt(T)?T.innerText:null)||T.nodeValue;E&&(d+=E)}S.removeChild(T)}}const b=m.removedNodes,w=b.length;if(w>0){let k=0;for(let T=0;T<w;T++){const A=b[T];(ql(A,g,t)||c===A)&&(g.appendChild(A),k++)}w!==k&&s.set(C,_)}}}if(s.size>0)for(const[p,m]of s)m.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const m=f[p],h=m.addedNodes,g=m.target;for(let y=0;y<h.length;y++){const C=h[y],_=C.parentNode;_==null||C.nodeName!=="BR"||ql(C,g,t)||_.removeChild(C)}}n.takeRecords()}i!==null&&(u&&_t(i),Xo&&Uh(t)&&i.insertRawText(d))})}finally{_c=!1}}function Pm(t){const e=t._observer;e!==null&&Im(t,e.takeRecords(),e)}function Fm(t){(function(e){Su===0&&nn(e).addEventListener("textInput",ule,!0)})(t),t._observer=new MutationObserver((e,n)=>{Im(t,e,n)})}let mle=class{constructor(e,n){q(this,"key");q(this,"parse");q(this,"unparse");q(this,"isEqual");q(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||_le).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function hle(t,e){return new mle(t,e)}function Rm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function jl(t,e,n){let o;if(ct(),typeof n=="function"){const s=t.getLatest(),a=Rm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const i=t.getWritable();return Um(i).updateFromKnown(e,o),i}function gle(t){const e=new Map,n=new Set;for(let o=typeof t=="function"?t:t.replace;o.prototype&&o.prototype.getType!==void 0;o=Object.getPrototypeOf(o)){const{ownNodeConfig:i}=cl(o);if(i&&i.stateConfigs)for(const s of i.stateConfigs){let a;"stateConfig"in s?(a=s.stateConfig,s.flat&&n.add(a.key)):a=s,e.set(a.key,a)}}return{flatKeys:n,sharedConfigMap:e}}let vle=class zm{constructor(e,n,o=void 0,i=new Map,s=void 0){q(this,"node");q(this,"knownState");q(this,"unknownState");q(this,"sharedNodeState");q(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=i;const{sharedConfigMap:a}=this.sharedNodeState,l=s!==void 0?s:function(c,u,d){let f=d.size;if(u)for(const p in u){const m=c.get(p);m&&d.has(m)||f++}return f}(a,o,i);this.size=l}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let o=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const i=this.unknownState[e.key];i!==void 0&&(o=e.parse(i)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,i]of this.knownState)o.isEqual(i,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(i);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return Z1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,i=new Map(this.knownState);return new zm(e,n,function(s,a,l){let c;if(l)for(const[u,d]of Object.entries(l)){const f=s.get(u);f?a.has(f)||a.set(f,f.parse(d)):(c=c||{},c[u]=d)}return c}(n.sharedConfigMap,i,o),i,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:i,unknownState:s}=this;i.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=Z1(s)),this.size++),i.set(e,n)}updateFromUnknown(e,n){const o=this.sharedNodeState.sharedConfigMap.get(e);o?this.updateFromKnown(o,o.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const o of n.keys())n.set(o,o.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[o,i]of Object.entries(e))this.updateFromUnknown(o,i)}};function Um(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new vle(e,Hm(e));return e.__state=n,n}function Hm(t){return t.__state?t.__state.sharedNodeState:Bh(ll(),t.getType()).sharedNodeState}function Z1(t){if(t)for(const e in t)return t}function _le(t){return t}function K1(t,e,n){for(const[o,i]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==i&&!o.isEqual(s,i))return!0}return!1}function G1(t,e,n){const{unknownState:o}=e,i=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(i?i[s]:void 0)))return!0}return!1}function Y1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function J1(t,e){const n=t.__mode,o=t.__format,i=t.__style,s=e.__mode,a=e.__format,l=e.__style,c=t.__state,u=e.__state;return(n===null||n===s)&&(o===null||o===a)&&(i===null||i===l)&&(t.__state===null||c===u||function(d,f){if(d===f)return!0;if(d&&f&&d.size!==f.size)return!1;const p=new Set;return!(d&&K1(p,d,f)||f&&K1(p,f,d)||d&&G1(p,d,f)||f&&G1(p,f,d))}(c,u))}function X1(t,e){const n=t.mergeWithSibling(e),o=We()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function Q1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(J1(e,o)){o=X1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(J1(o,n)){o=X1(o,n);break}break}n.remove()}}else o.remove()}function sa(t){return ef(t.anchor),ef(t.focus),t}function ef(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,i;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),i=!0):(o=e.getChildAtIndex(n),i=!1),X(o)){t.set(o.__key,i?o.getTextContentSize():0,"text",!0);break}if(!U(o))break;t.set(o.__key,i?o.getChildrenSize():0,"element",!0)}}let Qo,wt,Wi,Xa,yc,Cc,er,dn,bc,Zi,rt="",En=null,Sn="",Hn="",br=!1,aa=!1;function la(t,e){const n=er.get(t);if(e!==null){const o=Sc(t);o.parentNode===e&&e.removeChild(o)}if(dn.has(t)||wt._keyToDOMMap.delete(t),U(n)){const o=ua(n,er);kc(o,0,o.length-1,null)}n!==void 0&&Uu(Zi,Wi,Xa,n,"destroyed")}function kc(t,e,n,o){let i=e;for(;i<=n;++i){const s=t[i];s!==void 0&&la(s,o)}}function Mo(t,e){t.setProperty("text-align",e)}const yle="40px";function qm(t,e){const n=Qo.theme.indent;if(typeof n=="string"){const i=t.classList.contains(n);e>0&&!i?t.classList.add(n):e<1&&i&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||yle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function jm(t,e){const n=t.style;e===0?Mo(n,""):e===1?Mo(n,"left"):e===2?Mo(n,"center"):e===3?Mo(n,"right"):e===4?Mo(n,"justify"):e===5?Mo(n,"start"):e===6&&Mo(n,"end")}function wc(t,e){const n=function(o){const i=o.__dir;if(i!==null)return i;if(Qe(o))return null;const s=o.getParentOrThrow();return Qe(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function ca(t,e){const n=dn.get(t);n===void 0&&G(60);const o=n.createDOM(Qo,wt);if(function(i,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,i),l.set(i,s)}(t,o,wt),X(n)?o.setAttribute("data-lexical-text","true"):Ae(n)&&o.setAttribute("data-lexical-decorator","true"),U(n)){const i=n.__indent,s=n.__size;if(wc(o,n),i!==0&&qm(o,i),s!==0){const l=s-1;Ec(ua(n,dn),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&jm(o,a),n.isInline()||Wm(null,n,o),al(n)&&(rt+=bo,Hn+=bo)}else{const i=n.getTextContent();if(Ae(n)){const s=n.decorate(wt,Qo);s!==null&&Zm(t,s),o.contentEditable="false"}rt+=i,Hn+=i}return e!==null&&e.insertChild(o),Uu(Zi,Wi,Xa,n,"created"),o}function Ec(t,e,n,o,i){const s=rt;rt="";let a=n;for(;a<=o;++a){ca(t[a],i);const l=dn.get(t[a]);l!==null&&X(l)&&(En===null&&(En=l.getFormat()),Sn===""&&(Sn=l.getStyle()))}al(e)&&(rt+=bo),i.element.__lexicalTextContent=rt,rt=s+rt}function tf(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return ho(o)?"line-break":Ae(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Wm(t,e,n){const o=tf(t,er),i=tf(e,dn);o!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function Cle(t,e,n){var o;En=null,Sn="",function(i,s,a){const l=rt,c=i.__size,u=s.__size;rt="";const d=a.element;if(c===1&&u===1){const f=i.__first,p=s.__first;if(f===p)xi(f,d);else{const h=Sc(f),g=ca(p,null);try{d.replaceChild(g,h)}catch(y){if(typeof y=="object"&&y!=null){const C=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(C)}throw y}la(f,null)}const m=dn.get(p);X(m)&&(En===null&&(En=m.getFormat()),Sn===""&&(Sn=m.getStyle()))}else{const f=ua(i,er),p=ua(s,dn);if(f.length!==c&&G(227),p.length!==u&&G(228),c===0)u!==0&&Ec(p,s,0,u-1,a);else if(u===0){if(c!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;kc(f,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,g,y,C,_){const v=y-1,b=C-1;let w,k,T=_.getFirstChild(),A=0,S=0;for(;A<=v&&S<=b;){const x=h[A],$=g[S];if(x===$)T=Wl(xi($,_.element)),A++,S++;else{w===void 0&&(w=new Set(h)),k===void 0&&(k=new Set(g));const V=k.has(x),I=w.has($);if(V)if(I){const W=nr(wt,$);W===T?T=Wl(xi($,_.element)):(_.withBefore(T).insertChild(W),xi($,_.element)),A++,S++}else ca($,_.withBefore(T)),S++;else T=Wl(Sc(x)),la(x,_.element),A++}const B=dn.get($);B!==null&&X(B)&&(En===null&&(En=B.getFormat()),Sn===""&&(Sn=B.getStyle()))}const E=A>v,D=S>b;if(E&&!D){const x=g[b+1],$=x===void 0?null:wt.getElementByKey(x);Ec(g,m,S,b,_.withBefore($))}else D&&!E&&kc(h,A,v,_.element)})(s,f,p,c,u,a)}al(s)&&(rt+=bo),d.__lexicalTextContent=rt,rt=l+rt}(t,e,e.getDOMSlot(n)),o=e,En==null||En===o.__textFormat||aa||o.setTextFormat(En),function(i){Sn===""||Sn===i.__textStyle||aa||i.setTextStyle(Sn)}(e)}function ua(t,e){const n=[];let o=t.__first;for(;o!==null;){const i=e.get(o);i===void 0&&G(101),n.push(o),o=i.__next}return n}function xi(t,e){const n=er.get(t);let o=dn.get(t);n!==void 0&&o!==void 0||G(61);const i=br||Cc.has(t)||yc.has(t),s=nr(wt,t);if(n===o&&!i){if(U(n)){const a=s.__lexicalTextContent;a!==void 0&&(rt+=a,Hn+=a)}else{const a=n.getTextContent();Hn+=a,rt+=a}return s}if(n!==o&&i&&Uu(Zi,Wi,Xa,o,"updated"),o.updateDOM(n,s,Qo)){const a=ca(t,null);return e===null&&G(62),e.replaceChild(a,s),la(t,null),a}if(U(n)&&U(o)){const a=o.__indent;(br||a!==n.__indent)&&qm(s,a);const l=o.__format;if((br||l!==n.__format)&&jm(s,l),i&&(Cle(n,o,s),Qe(o)||o.isInline()||Wm(n,o,s)),al(o)&&(rt+=bo,Hn+=bo),(br||o.__dir!==n.__dir)&&(wc(s,o),Qe(o)&&!br))for(const c of o.getChildren())U(c)&&wc(nr(wt,c.getKey()),c)}else{const a=o.getTextContent();if(Ae(o)){const l=o.decorate(wt,Qo);l!==null&&Zm(t,l)}rt+=a,Hn+=a}if(!aa&&Qe(o)&&o.__cachedText!==Hn){const a=o.getWritable();a.__cachedText=Hn,o=a}return s}function Zm(t,e){let n=wt._pendingDecorators;const o=wt._decorators;if(n===null){if(o[t]===e)return;n=Ih(wt)}n[t]=e}function Wl(t){let e=t.nextSibling;return e!==null&&e===wt._blockCursorElement&&(e=e.nextSibling),e}function ble(t,e,n,o,i,s){rt="",Hn="",br=o===2,wt=n,Qo=n._config,Wi=n._nodes,Xa=wt._listeners.mutation,yc=i,Cc=s,er=t._nodeMap,dn=e._nodeMap,aa=e._readOnly,bc=new Map(n._keyToDOMMap);const a=new Map;return Zi=a,xi("root",null),wt=void 0,Wi=void 0,yc=void 0,Cc=void 0,er=void 0,dn=void 0,Qo=void 0,bc=void 0,Zi=void 0,a}function Sc(t){const e=bc.get(t);return e===void 0&&G(75,t),e}function me(t){return{type:t}}const Km=me("SELECTION_CHANGE_COMMAND"),kle=me("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Gm=me("CLICK_COMMAND"),jo=me("DELETE_CHARACTER_COMMAND"),xr=me("INSERT_LINE_BREAK_COMMAND"),Ki=me("INSERT_PARAGRAPH_COMMAND"),Ar=me("CONTROLLED_TEXT_INSERTION_COMMAND"),xu=me("PASTE_COMMAND"),xc=me("REMOVE_TEXT_COMMAND"),Gi=me("DELETE_WORD_COMMAND"),Yi=me("DELETE_LINE_COMMAND"),Yt=me("FORMAT_TEXT_COMMAND"),Au=me("UNDO_COMMAND"),Tu=me("REDO_COMMAND"),wle=me("KEYDOWN_COMMAND"),Ym=me("KEY_ARROW_RIGHT_COMMAND"),Ele=me("MOVE_TO_END"),Jm=me("KEY_ARROW_LEFT_COMMAND"),Sle=me("MOVE_TO_START"),Xm=me("KEY_ARROW_UP_COMMAND"),Qm=me("KEY_ARROW_DOWN_COMMAND"),da=me("KEY_ENTER_COMMAND"),eh=me("KEY_SPACE_COMMAND"),th=me("KEY_BACKSPACE_COMMAND"),nh=me("KEY_ESCAPE_COMMAND"),oh=me("KEY_DELETE_COMMAND"),rh=me("KEY_TAB_COMMAND"),xle=me("INSERT_TAB_COMMAND"),Ale=me("INDENT_CONTENT_COMMAND"),nf=me("OUTDENT_CONTENT_COMMAND"),ih=me("DROP_COMMAND"),Tle=me("FORMAT_ELEMENT_COMMAND"),sh=me("DRAGSTART_COMMAND"),ah=me("DRAGOVER_COMMAND"),Nle=me("DRAGEND_COMMAND"),Qa=me("COPY_COMMAND"),Nu=me("CUT_COMMAND"),Ac=me("SELECT_ALL_COMMAND"),Dle=me("CLEAR_EDITOR_COMMAND"),$le=me("CLEAR_HISTORY_COMMAND"),Ls=me("CAN_REDO_COMMAND"),Os=me("CAN_UNDO_COMMAND"),Ble=me("FOCUS_COMMAND"),Mle=me("BLUR_COMMAND"),Lle=me("KEY_MODIFIER_COMMAND"),Fn=Object.freeze({}),Tc=[["keydown",function(t,e){if($i=t.timeStamp,lh=t.key,!e.isComposing()&&!ie(e,wle,t)&&t.key!=null){if(Zl&&Bf(t))return zt(e,()=>{Vs(e,Kl)}),Zl=!1,void(Kl="");if(function(n){return Le(n,"ArrowRight",{shiftKey:"any"})}(t))ie(e,Ym,t);else if(function(n){return Le(n,"ArrowRight",zn)}(t))ie(e,Ele,t);else if(function(n){return Le(n,"ArrowLeft",{shiftKey:"any"})}(t))ie(e,Jm,t);else if(function(n){return Le(n,"ArrowLeft",zn)}(t))ie(e,Sle,t);else if(function(n){return Le(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))ie(e,Xm,t);else if(function(n){return Le(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))ie(e,Qm,t);else if(function(n){return Le(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Bi=!0,ie(e,da,t);else if(function(n){return n.key===" "}(t))ie(e,eh,t);else if(function(n){return cn&&Le(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Bi=!0,ie(e,xr,!0);else if(function(n){return Le(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Bi=!1,ie(e,da,t);else if(function(n){return Le(n,"Backspace",{shiftKey:"any"})||cn&&Le(n,"h",{ctrlKey:!0})}(t))Bf(t)?ie(e,th,t):(t.preventDefault(),ie(e,jo,!0));else if(function(n){return n.key==="Escape"}(t))ie(e,nh,t);else if(function(n){return Le(n,"Delete",{})||cn&&Le(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?ie(e,oh,t):(t.preventDefault(),ie(e,jo,!1));else if(function(n){return Le(n,"Backspace",$f)}(t))t.preventDefault(),ie(e,Gi,!0);else if(function(n){return Le(n,"Delete",$f)}(t))t.preventDefault(),ie(e,Gi,!1);else if(function(n){return cn&&Le(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),ie(e,Yi,!0);else if(function(n){return cn&&(Le(n,"Delete",{metaKey:!0})||Le(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),ie(e,Yi,!1);else if(function(n){return Le(n,"b",zn)}(t))t.preventDefault(),ie(e,Yt,"bold");else if(function(n){return Le(n,"u",zn)}(t))t.preventDefault(),ie(e,Yt,"underline");else if(function(n){return Le(n,"i",zn)}(t))t.preventDefault(),ie(e,Yt,"italic");else if(function(n){return Le(n,"Tab",{shiftKey:"any"})}(t))ie(e,rh,t);else if(function(n){return Le(n,"z",zn)}(t))t.preventDefault(),ie(e,Au,void 0);else if(function(n){return cn?Le(n,"z",{metaKey:!0,shiftKey:!0}):Le(n,"y",{ctrlKey:!0})||Le(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),ie(e,Tu,void 0);else{const n=e._editorState._selection;n===null||K(n)?Mf(t)&&(t.preventDefault(),ie(e,Ac,t)):function(o){return Le(o,"c",zn)}(t)?(t.preventDefault(),ie(e,Qa,t)):function(o){return Le(o,"x",zn)}(t)?(t.preventDefault(),ie(e,Nu,t)):Mf(t)&&(t.preventDefault(),ie(e,Ac,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&ie(e,Lle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Xr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&zt(e,()=>{Tf(n)||($c=!0)})}],["compositionstart",function(t,e){zt(e,()=>{const n=ee();if(K(n)&&!e.isComposing()){const o=n.anchor,i=n.anchor.getNode();pt(o.key),(t.timeStamp<$i+30||o.type==="element"||!n.isCollapsed()||i.getFormat()!==n.format||X(i)&&i.getStyle()!==n.style)&&ie(e,Ar,ile)}})}],["compositionend",function(t,e){Xo?Ci=!0:Rr||!qi&&!ji?zt(e,()=>{Vs(e,t.data)}):(Zl=!0,Kl=t.data)}],["input",function(t,e){t.stopPropagation(),zt(e,()=>{if(tt(t.target)&&Tf(t.target))return;const n=ee(),o=t.data,i=ph(t);if(o!=null&&K(n)&&dh(n,i,o,t.timeStamp,!1)){Ci&&(Vs(e,o),Ci=!1);const s=n.anchor.getNode(),a=mn(nn(e));if(a===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,u=l?n.focus.offset:n.anchor.offset;ia&&!n.isCollapsed()&&X(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===zh(a.anchorNode)||ie(e,Ar,o);const d=o.length;Xo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),qi||Rr||ji||!e.isComposing()||($i=0,pt(null))}else Ru(!1,e,o!==null?o:void 0),Ci&&(Vs(e,o||void 0),Ci=!1);(function(){ct();const s=We();Pm(s)})()},{event:t}),kr=null}],["click",function(t,e){zt(e,()=>{const n=ee(),o=mn(nn(e)),i=Jr();if(o){if(K(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Qe(a)&&Ze().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=Qt(a,c=>U(c)&&!c.isInline());U(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(tt(s)||eo(s))&&_t($u(i,o,e,t))}}ie(e,Gm,t)})}],["cut",Fn],["copy",Fn],["dragstart",Fn],["dragover",Fn],["dragend",Fn],["paste",Fn],["focus",Fn],["blur",Fn],["drop",Fn]];ia&&Tc.push(["beforeinput",(t,e)=>function(n,o){const i=n.inputType,s=ph(n);i==="deleteCompositionText"||Xo&&Uh(o)||i!=="insertCompositionText"&&zt(o,()=>{const a=ee();if(i==="deleteContentBackward"){if(a===null){const m=Jr();if(!K(m))return;_t(m.clone())}if(K(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,lh==="MediaLast"&&l<$i+30&&o.isComposing()&&m){if(pt(null),$i=0,setTimeout(()=>{zt(o,()=>{pt(null)})},30),K(a)){const h=a.anchor.getNode();h.markDirty(),X(h)||G(142),fh(a,h)}}else{pt(null),n.preventDefault();const h=a.anchor.getNode(),g=h.getTextContent(),y=h.canInsertTextAfter(),C=a.anchor.offset===0&&a.focus.offset===g.length;let _=q1&&m&&!C&&y;if(_&&a.isCollapsed()&&(_=!Ae(Vc(a.anchor,!0))),!_){ie(o,jo,!0);const v=ee();q1&&K(v)&&v.isCollapsed()&&(Fo=v,setTimeout(()=>Fo=null))}}return}}var l;if(!K(a))return;const c=n.data;kr!==null&&Ru(!1,o,kr),a.dirty&&kr===null||!a.isCollapsed()||Qe(a.anchor.getNode())||s===null||a.applyDOMRange(s),kr=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(i!=="insertText"&&i!=="insertTranspose")switch(n.preventDefault(),i){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(o,Ar,n);break;case"insertFromComposition":pt(null),ie(o,Ar,n);break;case"insertLineBreak":pt(null),ie(o,xr,!1);break;case"insertParagraph":pt(null),Bi&&!Rr?(Bi=!1,ie(o,xr,!1)):ie(o,Ki,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(o,xu,n);break;case"deleteByComposition":(function(m,h){return m!==h||U(m)||U(h)||!Wo(m)||!Wo(h)})(f,p)&&ie(o,xc,n);break;case"deleteByDrag":case"deleteByCut":ie(o,xc,n);break;case"deleteContent":ie(o,jo,!1);break;case"deleteWordBackward":ie(o,Gi,!0);break;case"deleteWordForward":ie(o,Gi,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(o,Yi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(o,Yi,!1);break;case"formatStrikeThrough":ie(o,Yt,"strikethrough");break;case"formatBold":ie(o,Yt,"bold");break;case"formatItalic":ie(o,Yt,"italic");break;case"formatUnderline":ie(o,Yt,"underline");break;case"historyUndo":ie(o,Au,void 0);break;case"historyRedo":ie(o,Tu,void 0)}else{if(c===`
22
- `)n.preventDefault(),ie(o,xr,!1);else if(c===bo)n.preventDefault(),ie(o,Ki,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&dh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),ie(o,Ar,c)):kr=c;ch=n.timeStamp}})}(t,e)]);let $i=0,lh=null,ch=0,kr=null;const Nc=new WeakMap,fa=new WeakMap;let Dc=!1,$c=!1,Bi=!1,Ci=!1,Zl=!1,Kl="",Fo=null,uh=[0,"",0,"root",0];function dh(t,e,n,o,i){const s=t.anchor,a=t.focus,l=s.getNode(),c=We(),u=mn(nn(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),m=n.length;return f!==a.key||!X(l)||(!i&&(!ia||ch<o+50)||l.isDirty()&&m<2||Fh(n))&&s.offset!==a.offset&&!l.isComposing()||Un(l)||l.isDirty()&&m>1||(i||!ia)&&p!==null&&!l.isComposing()&&d!==zr(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const y=h.anchor.offset,C=g.getParentOrThrow(),_=Wo(g);return y===0?!g.canInsertTextBefore()||!C.canInsertTextBefore()&&!g.isComposing()||_||function(v){const b=v.getPreviousSibling();return(X(b)||U(b)&&b.isInline())&&!b.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!C.canInsertTextAfter()&&!g.isComposing()||_)}(t,l)}function of(t,e){return eo(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function rf(t,e,n){const{anchorNode:o,anchorOffset:i,focusNode:s,focusOffset:a}=t;Dc&&(Dc=!1,of(o,i)&&of(s,a)&&!Fo)||zt(e,()=>{if(!n)return void _t(null);if(!ps(e,o,s))return;let l=ee();if(Fo&&K(l)&&l.isCollapsed()){const c=l.anchor,u=Fo.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Fo.clone(),_t(l))}if(Fo=null,K(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=nn(e).event,f=d?d.timeStamp:performance.now(),[p,m,h,g,y]=uh,C=Ze(),_=e.isComposing()===!1&&C.getTextContent()==="";if(f<y+200&&c.offset===h&&c.key===g)Ws(l,p,m);else if(c.type==="text")X(u)||G(141),fh(l,u);else if(c.type==="element"&&!_){U(u)||G(259);const v=c.getNode();v.isEmpty()?function(b,w){const k=w.getTextFormat(),T=w.getTextStyle();Ws(b,k,T)}(l,v):Ws(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),m=p.length,h=l.isBackward(),g=h?a:i,y=h?i:a,C=h?f:d,_=h?d:f;let v=2047,b=!1;for(let w=0;w<m;w++){const k=p[w],T=k.getTextContentSize();if(X(k)&&T!==0&&!(w===0&&k.__key===C&&g===T||w===m-1&&k.__key===_&&y===0)&&(b=!0,v&=k.getFormat(),v===0))break}l.format=b?v:0}}ie(e,Km,void 0)})}function Ws(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function fh(t,e){Ws(t,e.getFormat(),e.getStyle())}function ph(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Vs(t,e){const n=t._compositionKey;if(pt(null),n!==null&&e!=null){if(e===""){const o=it(n),i=zr(t.getElementByKey(n));return void(i!==null&&i.nodeValue!==null&&X(o)&&zu(o,i.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
- `){const o=ee();if(K(o)){const i=o.focus;return o.anchor.set(i.key,i.offset,i.type),void ie(t,da,null)}}}Ru(!0,t,e)}function mh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Tr=new Map;function hh(t){const e=pce(t.target);if(e===null)return;const n=Mh(e.anchorNode);if(n===null)return;$c&&($c=!1,zt(n,()=>{const c=Jr(),u=e.anchorNode;(tt(u)||eo(u))&&_t($u(c,e,n,t))}));const o=Fu(n),i=o[o.length-1],s=i._key,a=Tr.get(s),l=a||i;l!==n&&rf(e,l,!1),rf(e,n,!0),n!==i?Tr.set(s,n):a&&Tr.delete(s)}function sf(t){t._lexicalHandled=!0}function af(t){return t._lexicalHandled===!0}const lf=()=>{};function Ole(t){const e=Nc.get(t);if(e===void 0)return void lf();const n=fa.get(e);if(n===void 0)return void lf();const o=n-1;o>=0||G(164),Nc.delete(t),fa.set(e,o),o===0&&e.removeEventListener("selectionchange",hh);const i=il(t);Pu(i)?(function(a){if(a._parentEditor!==null){const l=Fu(a),c=l[l.length-1]._key;Tr.get(c)===a&&Tr.delete(c)}else Tr.delete(a._key)}(i),t.__lexicalEditor=null):i&&G(198);const s=mh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Bc(t,e,n){ct();const o=t.__key,i=t.getParent();if(i===null)return;const s=function(l){const c=ee();if(!K(c)||!U(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Ic(f,l)&&u.set(l.__key,0,"element"),Ic(p,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(K(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(ga(l,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(ga(c,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Rt(s)&&e&&t.isSelected()&&t.selectPrevious();if(K(s)&&e&&!a){const l=t.getIndexWithinParent();Zo(t),ha(s,i,l,-1)}else Zo(t);n||At(i)||i.canBeEmpty()||!i.isEmpty()||Bc(i,e),e&&s&&Qe(i)&&i.isEmpty()&&i.selectEnd()}const gh=Symbol.for("ephemeral");function pa(t){return t[gh]||!1}class fn{constructor(e){q(this,"__type");q(this,"__key");q(this,"__parent");q(this,"__prev");q(this,"__next");q(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),sce(this,e)}static getType(){const{ownNodeType:e}=cl(this);return e===void 0&&G(64,this.name),e}static clone(e){G(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){G(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=it(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||ee();if(n==null)return!1;const o=n.getNodes().some(i=>i.__key===this.__key);if(X(this))return o;if(K(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const i=this.getParent();if(Ae(this)&&this.isInline()&&i){const s=n.isBackward()?n.focus:n.anchor;if(i.is(s.getNode())&&s.offset===i.getChildrenSize()&&this.is(i.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:it(e)}getParentOrThrow(){const e=this.getParent();return e===null&&G(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(At(n))return U(e)||e===this&&Ae(e)||G(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&G(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:it(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let o=n.getFirstChild();for(;o!==null&&!o.is(this);)e.push(o),o=o.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:it(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=U(this)?this:this.getParent(),o=U(e)?e:e.getParent(),i=n&&o?Ks(n,o):null;return i?i.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Ks(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Kh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&G(279),!1)))}isParentOf(e){const n=Ks(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],i=new Set;let s=this;for(;s!==null;){const a=s.__key;if(i.has(a)||(i.add(a),o.push(s)),s===e)break;const l=U(s)?n?s.getFirstChild():s.getLastChild():null;if(l!==null){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(c!==null){s=c;continue}const u=s.getParentOrThrow();if(i.has(u.__key)||o.push(u),u===e)break;let d=null,f=u;do{if(f===null&&G(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||i.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=We()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(pa(this))return this;const e=it(this.__key);return e===null&&G(113),e}getWritable(){if(pa(this))return this;ct();const e=Ao(),n=We(),o=e._nodeMap,i=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=ee();if(l!==null&&l.setCachedNodes(null),a.has(i))return _a(s),s;const c=jh(s);return a.add(i),_a(c),o.set(i,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){G(70)}updateDOM(e,n,o){G(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){G(18,this.name)}updateFromJSON(e){return function(n,o){const i=n.getWritable(),s=o.$;let a=s;for(const l of Hm(i).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(i.__state||a)&&Um(n).updateFromJSON(a),i}(this,e)}static transform(){return null}remove(e){Bc(this,!0,e)}replace(e,n){ct();let o=ee();o!==null&&(o=o.clone()),ec(this,e);const i=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Zo(l);const d=i.getPreviousSibling(),f=i.getNextSibling(),p=i.__prev,m=i.__next,h=i.__parent;if(Bc(i,!1,!0),d===null?c.__first=a:d.getWritable().__next=a,l.__prev=p,f===null?c.__last=a:f.getWritable().__prev=a,l.__next=m,l.__parent=h,c.__size=u,n&&(U(this)&&U(l)||G(139),this.getChildren().forEach(g=>{l.append(g)})),K(o)){_t(o);const g=o.anchor,y=o.focus;g.key===s&&ff(g,l),y.key===s&&ff(y,l)}return fo()===s&&pt(a),l}insertAfter(e,n=!0){ct(),ec(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.getParent(),a=ee();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(Zo(i),K(a)){const h=s.__key,g=a.anchor,y=a.focus;l=g.type==="element"&&g.key===h&&g.offset===m+1,c=y.type==="element"&&y.key===h&&y.offset===m+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=i.__key,p=o.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,o.__next=f,i.__next=p,i.__prev=o.__key,i.__parent=o.__parent,n&&K(a)){const m=this.getIndexWithinParent();ha(a,d,m+1);const h=d.__key;l&&a.anchor.set(h,m+2,"element"),c&&a.focus.set(h,m+2,"element")}return e}insertBefore(e,n=!0){ct(),ec(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.__key;Zo(i);const a=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,u=this.getIndexWithinParent();a===null?l.__first=s:a.getWritable().__next=s,l.__size++,o.__prev=s,i.__prev=c,i.__next=o.__key,i.__parent=o.__parent;const d=ee();return n&&K(d)&&ha(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return ze()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){ct();const o=this.getPreviousSibling(),i=this.getParentOrThrow();if(o===null)return i.select(0,0);if(U(o))return o.select();if(!X(o)){const s=o.getIndexWithinParent()+1;return i.select(s,s)}return o.select(e,n)}selectNext(e,n){ct();const o=this.getNextSibling(),i=this.getParentOrThrow();if(o===null)return i.select();if(U(o))return o.select(0,0);if(!X(o)){const s=o.getIndexWithinParent();return i.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}q(fn,"importDOM");const ma="historic",Vle="history-push",Mi="history-merge",Ile="paste",vh="collaboration",Ple="skip-scroll-into-view",Fle="skip-dom-selection",Rle="skip-selection-focus";class as extends fn{static getType(){return"linebreak"}static clone(e){return new as(e.__key)}constructor(e){super(e)}getTextContent(){return`
24
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(n){const o=n.parentElement;if(o!==null&&ya(o)){const i=o.firstChild;if(i===n||i.nextSibling===n&&Is(i)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&ya(o)){const i=o.firstChild;if(i===n||i.nextSibling===n&&Is(i))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}return!1}(e)?null:{conversion:zle,priority:0}}}static importJSON(e){return pn().updateFromJSON(e)}}function zle(t){return{node:pn()}}function pn(){return _n(new as)}function ho(t){return t instanceof as}function Is(t){return eo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Gl(t,e){return 16&e?"code":e&Om?"mark":32&e?"sub":64&e?"sup":null}function Yl(t,e){return 1&e?"strong":2&e?"em":"span"}function _h(t,e,n,o,i){const s=o.classList;let a=Nr(i,"base");a!==void 0&&s.add(...a),a=Nr(i,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;a!==void 0&&(8&n&&4&n?(l=!0,c||s.add(...a)):c&&s.remove(...a));for(const u in xt){const d=xt[u];if(a=Nr(i,u),a!==void 0)if(n&d){if(l&&(u==="underline"||u==="strikethrough")){e&d&&s.remove(...a);continue}(!(e&d)||c&&u==="underline"||u==="strikethrough")&&s.add(...a)}else e&d&&s.remove(...a)}}function yh(t,e,n){const o=e.firstChild,i=n.isComposing(),s=t+(i?Ja:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(i||Xo){const[l,c,u]=function(d,f){const p=d.length,m=f.length;let h=0,g=0;for(;h<p&&h<m&&d[h]===f[h];)h++;for(;g+h<p&&g+h<m&&d[p-g-1]===f[m-g-1];)g++;return[h,p-h-g,f.slice(h,m-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function cf(t,e,n,o,i,s){yh(i,t,e);const a=s.theme.text;a!==void 0&&_h(0,0,o,t,a)}function Ps(t,e){const n=document.createElement(e);return n.appendChild(t),n}class xo extends fn{constructor(n="",o){super(o);q(this,"__text");q(this,"__format");q(this,"__style");q(this,"__mode");q(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new xo(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return cle[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===fo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=xt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return va(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const i=this.__format,s=Gl(0,i),a=Yl(0,i),l=s===null?a:s,c=document.createElement(l);let u=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),s!==null&&(u=document.createElement(a),c.appendChild(u)),cf(u,this,0,i,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,i){const s=this.__text,a=n.__format,l=this.__format,c=Gl(0,a),u=Gl(0,l),d=Yl(0,a),f=Yl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&G(48);const C=document.createElement(f);return cf(C,this,0,l,s,i),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&G(49)),yh(s,p,this);const m=i.theme.text;m!==void 0&&a!==l&&_h(0,a,l,p,m);const h=n.__style,g=this.__style;return h!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:jle,priority:0}),b:()=>({conversion:Hle,priority:0}),code:()=>({conversion:Rn,priority:0}),em:()=>({conversion:Rn,priority:0}),i:()=>({conversion:Rn,priority:0}),mark:()=>({conversion:Rn,priority:0}),s:()=>({conversion:Rn,priority:0}),span:()=>({conversion:Ule,priority:0}),strong:()=>({conversion:Rn,priority:0}),sub:()=>({conversion:Rn,priority:0}),sup:()=>({conversion:Rn,priority:0}),u:()=>({conversion:Rn,priority:0})}}static importJSON(n){return Ge().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:o}=super.exportDOM(n);return tt(o)||G(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Ps(o,"b")),this.hasFormat("italic")&&(o=Ps(o,"i")),this.hasFormat("strikethrough")&&(o=Ps(o,"s")),this.hasFormat("underline")&&(o=Ps(o,"u")),{element:o}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,o){}setFormat(n){const o=this.getWritable();return o.__format=typeof n=="string"?xt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?sle[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=va(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=lle[n];if(this.__mode===o)return this;const i=this.getWritable();return i.__mode=o,i}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){ct();let i=n,s=o;const a=ee(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;i===void 0&&(i=u),s===void 0&&(s=u)}else i=0,s=0;if(!K(a))return kh(c,i,c,s,"text","text");{const u=fo();u!==a.anchor.key&&u!==a.focus.key||pt(c),a.setTextNodeRange(this,i,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,i,s){const a=this.getWritable(),l=a.__text,c=i.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=ee();if(s&&K(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+i+l.slice(u+o);return a.__text=f,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){ct();const o=this.getLatest(),i=o.getTextContent();if(i==="")return[];const s=o.__key,a=fo(),l=i.length;n.sort((S,E)=>S-E),n.push(l);const c=[],u=n.length;for(let S=0,E=0;S<l&&E<=u;E++){const D=n[E];D>S&&(c.push(i.slice(S,D)),S=D)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let m;const h=o.getFormat(),g=o.getStyle(),y=o.__detail;let C=!1,_=null,v=null;const b=ee();if(K(b)){const[S,E]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];S.type==="text"&&S.key===s&&(_=S),E.type==="text"&&E.key===s&&(v=E)}o.isSegmented()?(m=Ge(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=Y1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let S=1;S<d;S++){const E=Ge(c[S]);E.__format=h,E.__style=g,E.__detail=y,E.__state=Y1(o,E);const D=E.__key;a===s&&pt(D),w.push(E)}const k=_?_.offset:null,T=v?v.offset:null;let A=0;for(const S of w){if(!_&&!v)break;const E=A+S.getTextContentSize();if(_!==null&&k!==null&&k<=E&&k>=A&&(_.set(S.getKey(),k-A,"text"),k<E&&(_=null)),v!==null&&T!==null&&T<=E&&T>=A){v.set(S.getKey(),T-A,"text");break}A=E}if(p!==null){(function(D){const x=D.getPreviousSibling(),$=D.getNextSibling();x!==null&&_a(x),$!==null&&_a($)})(this);const S=p.getWritable(),E=this.getIndexWithinParent();C?(S.splice(E,0,w),this.remove()):S.splice(E,1,w),K(b)&&ha(b,p,E,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||G(50);const i=this.__key,s=n.__key,a=this.__text,l=a.length;fo()===s&&pt(i);const c=ee();if(K(c)){const p=c.anchor,m=c.focus;p!==null&&p.key===s&&yf(p,o,i,n,l),m!==null&&m.key===s&&yf(m,o,i,n,l)}const u=n.__text,d=o?u+a:a+u;this.setTextContent(d);const f=this.getWritable();return n.remove(),f}isTextEntity(){return!1}}function Ule(t){return{forChild:Du(t.style),node:null}}function Hle(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:Du(e.style,n?void 0:"bold"),node:null}}const uf=new WeakMap;function qle(t){if(!tt(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function jle(t){const e=t;t.parentElement===null&&G(129);let n=e.textContent||"";if(function(o){let i,s=o.parentNode;const a=[o];for(;s!==null&&(i=uf.get(s))===void 0&&!qle(s);)a.push(s),s=s.parentNode;const l=i===void 0?s:i;for(let c=0;c<a.length;c++)uf.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),i=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
21
+ `,sle=Xo?" ":Ja,xt={bold:1,capitalize:1024,code:16,highlight:Vm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},ale={directionless:1,unmergeable:2},j1={center:2,end:6,justify:4,left:1,right:3,start:5},lle={[tle]:"center",[ile]:"end",[ole]:"justify",[ele]:"left",[nle]:"right",[rle]:"start"},cle={normal:0,segmented:2,token:1},ule={[Jae]:"normal",[Qae]:"segmented",[Xae]:"token"},W1="$config";function Im(t,e,n,o,i,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(U(a)&&Im(a,l,n,o,i,s),n.has(l)||s.delete(l),i.push(l)),a=a.getNextSibling()}}let _c=!1,Su=0;function dle(t){Su=t.timeStamp}function ql(t,e,n){const o=t.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(t===i||o&&t.previousSibling===i)||o&&sl(t,n)!==void 0}function fle(t,e,n){const o=mn(nn(n));let i=null,s=null;o!==null&&o.anchorNode===t&&(i=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&zu(e,a,i,s,!1)}function ple(t,e,n){if(K(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return eo(e)&&n.isAttached()}function mle(t,e,n,o){for(let i=t;i&&!vce(i);i=ms(i)){const s=sl(i,e);if(s!==void 0){const a=it(s,n);if(a)return Te(a)||!tt(i)?void 0:[i,a]}else if(i===o)return[o,Fh(n)]}}function Pm(t,e,n){_c=!0;const o=performance.now()-Su>100;try{zt(t,()=>{const i=ee()||function(p){return p.getEditorState().read(()=>{const m=ee();return m!==null?m.clone():null})}(t),s=new Map,a=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let u=!1,d="";for(let p=0;p<e.length;p++){const m=e[p],h=m.type,g=m.target,y=mle(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&X(v)&&eo(g)&&ple(i,g,v)&&fle(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let k=0;k<_.length;k++){const A=_[k],T=Ih(A),S=A.parentNode;if(S!=null&&A!==c&&T===null&&!ql(A,S,t)){if(Xo){const E=(tt(A)?A.innerText:null)||A.nodeValue;E&&(d+=E)}S.removeChild(A)}}const b=m.removedNodes,w=b.length;if(w>0){let k=0;for(let A=0;A<w;A++){const T=b[A];(ql(T,g,t)||c===T)&&(g.appendChild(T),k++)}w!==k&&s.set(C,v)}}}if(s.size>0)for(const[p,m]of s)m.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const m=f[p],h=m.addedNodes,g=m.target;for(let y=0;y<h.length;y++){const C=h[y],v=C.parentNode;v==null||C.nodeName!=="BR"||ql(C,g,t)||v.removeChild(C)}}n.takeRecords()}i!==null&&(u&&_t(i),Xo&&Hh(t)&&i.insertRawText(d))})}finally{_c=!1}}function Fm(t){const e=t._observer;e!==null&&Pm(t,e.takeRecords(),e)}function Rm(t){(function(e){Su===0&&nn(e).addEventListener("textInput",dle,!0)})(t),t._observer=new MutationObserver((e,n)=>{Pm(t,e,n)})}let hle=class{constructor(e,n){q(this,"key");q(this,"parse");q(this,"unparse");q(this,"isEqual");q(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||yle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function gle(t,e){return new hle(t,e)}function zm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function jl(t,e,n){let o;if(ct(),typeof n=="function"){const s=t.getLatest(),a=zm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const i=t.getWritable();return Hm(i).updateFromKnown(e,o),i}function vle(t){const e=new Map,n=new Set;for(let o=typeof t=="function"?t:t.replace;o.prototype&&o.prototype.getType!==void 0;o=Object.getPrototypeOf(o)){const{ownNodeConfig:i}=cl(o);if(i&&i.stateConfigs)for(const s of i.stateConfigs){let a;"stateConfig"in s?(a=s.stateConfig,s.flat&&n.add(a.key)):a=s,e.set(a.key,a)}}return{flatKeys:n,sharedConfigMap:e}}let _le=class Um{constructor(e,n,o=void 0,i=new Map,s=void 0){q(this,"node");q(this,"knownState");q(this,"unknownState");q(this,"sharedNodeState");q(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=i;const{sharedConfigMap:a}=this.sharedNodeState,l=s!==void 0?s:function(c,u,d){let f=d.size;if(u)for(const p in u){const m=c.get(p);m&&d.has(m)||f++}return f}(a,o,i);this.size=l}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let o=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const i=this.unknownState[e.key];i!==void 0&&(o=e.parse(i)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,i]of this.knownState)o.isEqual(i,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(i);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return Z1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,i=new Map(this.knownState);return new Um(e,n,function(s,a,l){let c;if(l)for(const[u,d]of Object.entries(l)){const f=s.get(u);f?a.has(f)||a.set(f,f.parse(d)):(c=c||{},c[u]=d)}return c}(n.sharedConfigMap,i,o),i,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:i,unknownState:s}=this;i.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=Z1(s)),this.size++),i.set(e,n)}updateFromUnknown(e,n){const o=this.sharedNodeState.sharedConfigMap.get(e);o?this.updateFromKnown(o,o.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const o of n.keys())n.set(o,o.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[o,i]of Object.entries(e))this.updateFromUnknown(o,i)}};function Hm(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new _le(e,qm(e));return e.__state=n,n}function qm(t){return t.__state?t.__state.sharedNodeState:Mh(ll(),t.getType()).sharedNodeState}function Z1(t){if(t)for(const e in t)return t}function yle(t){return t}function K1(t,e,n){for(const[o,i]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==i&&!o.isEqual(s,i))return!0}return!1}function G1(t,e,n){const{unknownState:o}=e,i=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(i?i[s]:void 0)))return!0}return!1}function Y1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function J1(t,e){const n=t.__mode,o=t.__format,i=t.__style,s=e.__mode,a=e.__format,l=e.__style,c=t.__state,u=e.__state;return(n===null||n===s)&&(o===null||o===a)&&(i===null||i===l)&&(t.__state===null||c===u||function(d,f){if(d===f)return!0;if(d&&f&&d.size!==f.size)return!1;const p=new Set;return!(d&&K1(p,d,f)||f&&K1(p,f,d)||d&&G1(p,d,f)||f&&G1(p,f,d))}(c,u))}function X1(t,e){const n=t.mergeWithSibling(e),o=We()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function Q1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(J1(e,o)){o=X1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(J1(o,n)){o=X1(o,n);break}break}n.remove()}}else o.remove()}function sa(t){return ef(t.anchor),ef(t.focus),t}function ef(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,i;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),i=!0):(o=e.getChildAtIndex(n),i=!1),X(o)){t.set(o.__key,i?o.getTextContentSize():0,"text",!0);break}if(!U(o))break;t.set(o.__key,i?o.getChildrenSize():0,"element",!0)}}let Qo,wt,Wi,Xa,yc,Cc,er,dn,bc,Zi,rt="",En=null,Sn="",Hn="",br=!1,aa=!1;function la(t,e){const n=er.get(t);if(e!==null){const o=Sc(t);o.parentNode===e&&e.removeChild(o)}if(dn.has(t)||wt._keyToDOMMap.delete(t),U(n)){const o=ua(n,er);kc(o,0,o.length-1,null)}n!==void 0&&Uu(Zi,Wi,Xa,n,"destroyed")}function kc(t,e,n,o){let i=e;for(;i<=n;++i){const s=t[i];s!==void 0&&la(s,o)}}function Mo(t,e){t.setProperty("text-align",e)}const Cle="40px";function jm(t,e){const n=Qo.theme.indent;if(typeof n=="string"){const i=t.classList.contains(n);e>0&&!i?t.classList.add(n):e<1&&i&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||Cle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Wm(t,e){const n=t.style;e===0?Mo(n,""):e===1?Mo(n,"left"):e===2?Mo(n,"center"):e===3?Mo(n,"right"):e===4?Mo(n,"justify"):e===5?Mo(n,"start"):e===6&&Mo(n,"end")}function wc(t,e){const n=function(o){const i=o.__dir;if(i!==null)return i;if(Qe(o))return null;const s=o.getParentOrThrow();return Qe(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function ca(t,e){const n=dn.get(t);n===void 0&&G(60);const o=n.createDOM(Qo,wt);if(function(i,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,i),l.set(i,s)}(t,o,wt),X(n)?o.setAttribute("data-lexical-text","true"):Te(n)&&o.setAttribute("data-lexical-decorator","true"),U(n)){const i=n.__indent,s=n.__size;if(wc(o,n),i!==0&&jm(o,i),s!==0){const l=s-1;Ec(ua(n,dn),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Wm(o,a),n.isInline()||Zm(null,n,o),al(n)&&(rt+=bo,Hn+=bo)}else{const i=n.getTextContent();if(Te(n)){const s=n.decorate(wt,Qo);s!==null&&Km(t,s),o.contentEditable="false"}rt+=i,Hn+=i}return e!==null&&e.insertChild(o),Uu(Zi,Wi,Xa,n,"created"),o}function Ec(t,e,n,o,i){const s=rt;rt="";let a=n;for(;a<=o;++a){ca(t[a],i);const l=dn.get(t[a]);l!==null&&X(l)&&(En===null&&(En=l.getFormat()),Sn===""&&(Sn=l.getStyle()))}al(e)&&(rt+=bo),i.element.__lexicalTextContent=rt,rt=s+rt}function tf(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return ho(o)?"line-break":Te(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Zm(t,e,n){const o=tf(t,er),i=tf(e,dn);o!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function ble(t,e,n){var o;En=null,Sn="",function(i,s,a){const l=rt,c=i.__size,u=s.__size;rt="";const d=a.element;if(c===1&&u===1){const f=i.__first,p=s.__first;if(f===p)xi(f,d);else{const h=Sc(f),g=ca(p,null);try{d.replaceChild(g,h)}catch(y){if(typeof y=="object"&&y!=null){const C=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(C)}throw y}la(f,null)}const m=dn.get(p);X(m)&&(En===null&&(En=m.getFormat()),Sn===""&&(Sn=m.getStyle()))}else{const f=ua(i,er),p=ua(s,dn);if(f.length!==c&&G(227),p.length!==u&&G(228),c===0)u!==0&&Ec(p,s,0,u-1,a);else if(u===0){if(c!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;kc(f,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,g,y,C,v){const _=y-1,b=C-1;let w,k,A=v.getFirstChild(),T=0,S=0;for(;T<=_&&S<=b;){const x=h[T],$=g[S];if(x===$)A=Wl(xi($,v.element)),T++,S++;else{w===void 0&&(w=new Set(h)),k===void 0&&(k=new Set(g));const V=k.has(x),I=w.has($);if(V)if(I){const W=nr(wt,$);W===A?A=Wl(xi($,v.element)):(v.withBefore(A).insertChild(W),xi($,v.element)),T++,S++}else ca($,v.withBefore(A)),S++;else A=Wl(Sc(x)),la(x,v.element),T++}const B=dn.get($);B!==null&&X(B)&&(En===null&&(En=B.getFormat()),Sn===""&&(Sn=B.getStyle()))}const E=T>_,D=S>b;if(E&&!D){const x=g[b+1],$=x===void 0?null:wt.getElementByKey(x);Ec(g,m,S,b,v.withBefore($))}else D&&!E&&kc(h,T,_,v.element)})(s,f,p,c,u,a)}al(s)&&(rt+=bo),d.__lexicalTextContent=rt,rt=l+rt}(t,e,e.getDOMSlot(n)),o=e,En==null||En===o.__textFormat||aa||o.setTextFormat(En),function(i){Sn===""||Sn===i.__textStyle||aa||i.setTextStyle(Sn)}(e)}function ua(t,e){const n=[];let o=t.__first;for(;o!==null;){const i=e.get(o);i===void 0&&G(101),n.push(o),o=i.__next}return n}function xi(t,e){const n=er.get(t);let o=dn.get(t);n!==void 0&&o!==void 0||G(61);const i=br||Cc.has(t)||yc.has(t),s=nr(wt,t);if(n===o&&!i){if(U(n)){const a=s.__lexicalTextContent;a!==void 0&&(rt+=a,Hn+=a)}else{const a=n.getTextContent();Hn+=a,rt+=a}return s}if(n!==o&&i&&Uu(Zi,Wi,Xa,o,"updated"),o.updateDOM(n,s,Qo)){const a=ca(t,null);return e===null&&G(62),e.replaceChild(a,s),la(t,null),a}if(U(n)&&U(o)){const a=o.__indent;(br||a!==n.__indent)&&jm(s,a);const l=o.__format;if((br||l!==n.__format)&&Wm(s,l),i&&(ble(n,o,s),Qe(o)||o.isInline()||Zm(n,o,s)),al(o)&&(rt+=bo,Hn+=bo),(br||o.__dir!==n.__dir)&&(wc(s,o),Qe(o)&&!br))for(const c of o.getChildren())U(c)&&wc(nr(wt,c.getKey()),c)}else{const a=o.getTextContent();if(Te(o)){const l=o.decorate(wt,Qo);l!==null&&Km(t,l)}rt+=a,Hn+=a}if(!aa&&Qe(o)&&o.__cachedText!==Hn){const a=o.getWritable();a.__cachedText=Hn,o=a}return s}function Km(t,e){let n=wt._pendingDecorators;const o=wt._decorators;if(n===null){if(o[t]===e)return;n=Ph(wt)}n[t]=e}function Wl(t){let e=t.nextSibling;return e!==null&&e===wt._blockCursorElement&&(e=e.nextSibling),e}function kle(t,e,n,o,i,s){rt="",Hn="",br=o===2,wt=n,Qo=n._config,Wi=n._nodes,Xa=wt._listeners.mutation,yc=i,Cc=s,er=t._nodeMap,dn=e._nodeMap,aa=e._readOnly,bc=new Map(n._keyToDOMMap);const a=new Map;return Zi=a,xi("root",null),wt=void 0,Wi=void 0,yc=void 0,Cc=void 0,er=void 0,dn=void 0,Qo=void 0,bc=void 0,Zi=void 0,a}function Sc(t){const e=bc.get(t);return e===void 0&&G(75,t),e}function me(t){return{type:t}}const Gm=me("SELECTION_CHANGE_COMMAND"),wle=me("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ym=me("CLICK_COMMAND"),jo=me("DELETE_CHARACTER_COMMAND"),xr=me("INSERT_LINE_BREAK_COMMAND"),Ki=me("INSERT_PARAGRAPH_COMMAND"),Tr=me("CONTROLLED_TEXT_INSERTION_COMMAND"),xu=me("PASTE_COMMAND"),xc=me("REMOVE_TEXT_COMMAND"),Gi=me("DELETE_WORD_COMMAND"),Yi=me("DELETE_LINE_COMMAND"),Yt=me("FORMAT_TEXT_COMMAND"),Tu=me("UNDO_COMMAND"),Au=me("REDO_COMMAND"),Ele=me("KEYDOWN_COMMAND"),Jm=me("KEY_ARROW_RIGHT_COMMAND"),Sle=me("MOVE_TO_END"),Xm=me("KEY_ARROW_LEFT_COMMAND"),xle=me("MOVE_TO_START"),Qm=me("KEY_ARROW_UP_COMMAND"),eh=me("KEY_ARROW_DOWN_COMMAND"),da=me("KEY_ENTER_COMMAND"),th=me("KEY_SPACE_COMMAND"),nh=me("KEY_BACKSPACE_COMMAND"),oh=me("KEY_ESCAPE_COMMAND"),rh=me("KEY_DELETE_COMMAND"),ih=me("KEY_TAB_COMMAND"),Tle=me("INSERT_TAB_COMMAND"),Ale=me("INDENT_CONTENT_COMMAND"),nf=me("OUTDENT_CONTENT_COMMAND"),sh=me("DROP_COMMAND"),Nle=me("FORMAT_ELEMENT_COMMAND"),ah=me("DRAGSTART_COMMAND"),lh=me("DRAGOVER_COMMAND"),Dle=me("DRAGEND_COMMAND"),Qa=me("COPY_COMMAND"),Nu=me("CUT_COMMAND"),Tc=me("SELECT_ALL_COMMAND"),$le=me("CLEAR_EDITOR_COMMAND"),Ble=me("CLEAR_HISTORY_COMMAND"),Ls=me("CAN_REDO_COMMAND"),Os=me("CAN_UNDO_COMMAND"),Mle=me("FOCUS_COMMAND"),Lle=me("BLUR_COMMAND"),Ole=me("KEY_MODIFIER_COMMAND"),Fn=Object.freeze({}),Ac=[["keydown",function(t,e){if($i=t.timeStamp,ch=t.key,!e.isComposing()&&!ie(e,Ele,t)&&t.key!=null){if(Zl&&Bf(t))return zt(e,()=>{Vs(e,Kl)}),Zl=!1,void(Kl="");if(function(n){return Le(n,"ArrowRight",{shiftKey:"any"})}(t))ie(e,Jm,t);else if(function(n){return Le(n,"ArrowRight",zn)}(t))ie(e,Sle,t);else if(function(n){return Le(n,"ArrowLeft",{shiftKey:"any"})}(t))ie(e,Xm,t);else if(function(n){return Le(n,"ArrowLeft",zn)}(t))ie(e,xle,t);else if(function(n){return Le(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))ie(e,Qm,t);else if(function(n){return Le(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))ie(e,eh,t);else if(function(n){return Le(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Bi=!0,ie(e,da,t);else if(function(n){return n.key===" "}(t))ie(e,th,t);else if(function(n){return cn&&Le(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Bi=!0,ie(e,xr,!0);else if(function(n){return Le(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Bi=!1,ie(e,da,t);else if(function(n){return Le(n,"Backspace",{shiftKey:"any"})||cn&&Le(n,"h",{ctrlKey:!0})}(t))Bf(t)?ie(e,nh,t):(t.preventDefault(),ie(e,jo,!0));else if(function(n){return n.key==="Escape"}(t))ie(e,oh,t);else if(function(n){return Le(n,"Delete",{})||cn&&Le(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?ie(e,rh,t):(t.preventDefault(),ie(e,jo,!1));else if(function(n){return Le(n,"Backspace",$f)}(t))t.preventDefault(),ie(e,Gi,!0);else if(function(n){return Le(n,"Delete",$f)}(t))t.preventDefault(),ie(e,Gi,!1);else if(function(n){return cn&&Le(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),ie(e,Yi,!0);else if(function(n){return cn&&(Le(n,"Delete",{metaKey:!0})||Le(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),ie(e,Yi,!1);else if(function(n){return Le(n,"b",zn)}(t))t.preventDefault(),ie(e,Yt,"bold");else if(function(n){return Le(n,"u",zn)}(t))t.preventDefault(),ie(e,Yt,"underline");else if(function(n){return Le(n,"i",zn)}(t))t.preventDefault(),ie(e,Yt,"italic");else if(function(n){return Le(n,"Tab",{shiftKey:"any"})}(t))ie(e,ih,t);else if(function(n){return Le(n,"z",zn)}(t))t.preventDefault(),ie(e,Tu,void 0);else if(function(n){return cn?Le(n,"z",{metaKey:!0,shiftKey:!0}):Le(n,"y",{ctrlKey:!0})||Le(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),ie(e,Au,void 0);else{const n=e._editorState._selection;n===null||K(n)?Mf(t)&&(t.preventDefault(),ie(e,Tc,t)):function(o){return Le(o,"c",zn)}(t)?(t.preventDefault(),ie(e,Qa,t)):function(o){return Le(o,"x",zn)}(t)?(t.preventDefault(),ie(e,Nu,t)):Mf(t)&&(t.preventDefault(),ie(e,Tc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&ie(e,Ole,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Xr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&zt(e,()=>{Af(n)||($c=!0)})}],["compositionstart",function(t,e){zt(e,()=>{const n=ee();if(K(n)&&!e.isComposing()){const o=n.anchor,i=n.anchor.getNode();pt(o.key),(t.timeStamp<$i+30||o.type==="element"||!n.isCollapsed()||i.getFormat()!==n.format||X(i)&&i.getStyle()!==n.style)&&ie(e,Tr,sle)}})}],["compositionend",function(t,e){Xo?Ci=!0:Rr||!qi&&!ji?zt(e,()=>{Vs(e,t.data)}):(Zl=!0,Kl=t.data)}],["input",function(t,e){t.stopPropagation(),zt(e,()=>{if(tt(t.target)&&Af(t.target))return;const n=ee(),o=t.data,i=mh(t);if(o!=null&&K(n)&&fh(n,i,o,t.timeStamp,!1)){Ci&&(Vs(e,o),Ci=!1);const s=n.anchor.getNode(),a=mn(nn(e));if(a===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,u=l?n.focus.offset:n.anchor.offset;ia&&!n.isCollapsed()&&X(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Uh(a.anchorNode)||ie(e,Tr,o);const d=o.length;Xo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),qi||Rr||ji||!e.isComposing()||($i=0,pt(null))}else Ru(!1,e,o!==null?o:void 0),Ci&&(Vs(e,o||void 0),Ci=!1);(function(){ct();const s=We();Fm(s)})()},{event:t}),kr=null}],["click",function(t,e){zt(e,()=>{const n=ee(),o=mn(nn(e)),i=Jr();if(o){if(K(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Qe(a)&&Ze().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=Qt(a,c=>U(c)&&!c.isInline());U(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(tt(s)||eo(s))&&_t($u(i,o,e,t))}}ie(e,Ym,t)})}],["cut",Fn],["copy",Fn],["dragstart",Fn],["dragover",Fn],["dragend",Fn],["paste",Fn],["focus",Fn],["blur",Fn],["drop",Fn]];ia&&Ac.push(["beforeinput",(t,e)=>function(n,o){const i=n.inputType,s=mh(n);i==="deleteCompositionText"||Xo&&Hh(o)||i!=="insertCompositionText"&&zt(o,()=>{const a=ee();if(i==="deleteContentBackward"){if(a===null){const m=Jr();if(!K(m))return;_t(m.clone())}if(K(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,ch==="MediaLast"&&l<$i+30&&o.isComposing()&&m){if(pt(null),$i=0,setTimeout(()=>{zt(o,()=>{pt(null)})},30),K(a)){const h=a.anchor.getNode();h.markDirty(),X(h)||G(142),ph(a,h)}}else{pt(null),n.preventDefault();const h=a.anchor.getNode(),g=h.getTextContent(),y=h.canInsertTextAfter(),C=a.anchor.offset===0&&a.focus.offset===g.length;let v=q1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!Te(Vc(a.anchor,!0))),!v){ie(o,jo,!0);const _=ee();q1&&K(_)&&_.isCollapsed()&&(Fo=_,setTimeout(()=>Fo=null))}}return}}var l;if(!K(a))return;const c=n.data;kr!==null&&Ru(!1,o,kr),a.dirty&&kr===null||!a.isCollapsed()||Qe(a.anchor.getNode())||s===null||a.applyDOMRange(s),kr=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(i!=="insertText"&&i!=="insertTranspose")switch(n.preventDefault(),i){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(o,Tr,n);break;case"insertFromComposition":pt(null),ie(o,Tr,n);break;case"insertLineBreak":pt(null),ie(o,xr,!1);break;case"insertParagraph":pt(null),Bi&&!Rr?(Bi=!1,ie(o,xr,!1)):ie(o,Ki,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(o,xu,n);break;case"deleteByComposition":(function(m,h){return m!==h||U(m)||U(h)||!Wo(m)||!Wo(h)})(f,p)&&ie(o,xc,n);break;case"deleteByDrag":case"deleteByCut":ie(o,xc,n);break;case"deleteContent":ie(o,jo,!1);break;case"deleteWordBackward":ie(o,Gi,!0);break;case"deleteWordForward":ie(o,Gi,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(o,Yi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(o,Yi,!1);break;case"formatStrikeThrough":ie(o,Yt,"strikethrough");break;case"formatBold":ie(o,Yt,"bold");break;case"formatItalic":ie(o,Yt,"italic");break;case"formatUnderline":ie(o,Yt,"underline");break;case"historyUndo":ie(o,Tu,void 0);break;case"historyRedo":ie(o,Au,void 0)}else{if(c===`
22
+ `)n.preventDefault(),ie(o,xr,!1);else if(c===bo)n.preventDefault(),ie(o,Ki,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&fh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),ie(o,Tr,c)):kr=c;uh=n.timeStamp}})}(t,e)]);let $i=0,ch=null,uh=0,kr=null;const Nc=new WeakMap,fa=new WeakMap;let Dc=!1,$c=!1,Bi=!1,Ci=!1,Zl=!1,Kl="",Fo=null,dh=[0,"",0,"root",0];function fh(t,e,n,o,i){const s=t.anchor,a=t.focus,l=s.getNode(),c=We(),u=mn(nn(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),m=n.length;return f!==a.key||!X(l)||(!i&&(!ia||uh<o+50)||l.isDirty()&&m<2||Rh(n))&&s.offset!==a.offset&&!l.isComposing()||Un(l)||l.isDirty()&&m>1||(i||!ia)&&p!==null&&!l.isComposing()&&d!==zr(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const y=h.anchor.offset,C=g.getParentOrThrow(),v=Wo(g);return y===0?!g.canInsertTextBefore()||!C.canInsertTextBefore()&&!g.isComposing()||v||function(_){const b=_.getPreviousSibling();return(X(b)||U(b)&&b.isInline())&&!b.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!C.canInsertTextAfter()&&!g.isComposing()||v)}(t,l)}function of(t,e){return eo(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function rf(t,e,n){const{anchorNode:o,anchorOffset:i,focusNode:s,focusOffset:a}=t;Dc&&(Dc=!1,of(o,i)&&of(s,a)&&!Fo)||zt(e,()=>{if(!n)return void _t(null);if(!ps(e,o,s))return;let l=ee();if(Fo&&K(l)&&l.isCollapsed()){const c=l.anchor,u=Fo.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Fo.clone(),_t(l))}if(Fo=null,K(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=nn(e).event,f=d?d.timeStamp:performance.now(),[p,m,h,g,y]=dh,C=Ze(),v=e.isComposing()===!1&&C.getTextContent()==="";if(f<y+200&&c.offset===h&&c.key===g)Ws(l,p,m);else if(c.type==="text")X(u)||G(141),ph(l,u);else if(c.type==="element"&&!v){U(u)||G(259);const _=c.getNode();_.isEmpty()?function(b,w){const k=w.getTextFormat(),A=w.getTextStyle();Ws(b,k,A)}(l,_):Ws(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),m=p.length,h=l.isBackward(),g=h?a:i,y=h?i:a,C=h?f:d,v=h?d:f;let _=2047,b=!1;for(let w=0;w<m;w++){const k=p[w],A=k.getTextContentSize();if(X(k)&&A!==0&&!(w===0&&k.__key===C&&g===A||w===m-1&&k.__key===v&&y===0)&&(b=!0,_&=k.getFormat(),_===0))break}l.format=b?_:0}}ie(e,Gm,void 0)})}function Ws(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function ph(t,e){Ws(t,e.getFormat(),e.getStyle())}function mh(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Vs(t,e){const n=t._compositionKey;if(pt(null),n!==null&&e!=null){if(e===""){const o=it(n),i=zr(t.getElementByKey(n));return void(i!==null&&i.nodeValue!==null&&X(o)&&zu(o,i.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
+ `){const o=ee();if(K(o)){const i=o.focus;return o.anchor.set(i.key,i.offset,i.type),void ie(t,da,null)}}}Ru(!0,t,e)}function hh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Ar=new Map;function gh(t){const e=mce(t.target);if(e===null)return;const n=Lh(e.anchorNode);if(n===null)return;$c&&($c=!1,zt(n,()=>{const c=Jr(),u=e.anchorNode;(tt(u)||eo(u))&&_t($u(c,e,n,t))}));const o=Fu(n),i=o[o.length-1],s=i._key,a=Ar.get(s),l=a||i;l!==n&&rf(e,l,!1),rf(e,n,!0),n!==i?Ar.set(s,n):a&&Ar.delete(s)}function sf(t){t._lexicalHandled=!0}function af(t){return t._lexicalHandled===!0}const lf=()=>{};function Vle(t){const e=Nc.get(t);if(e===void 0)return void lf();const n=fa.get(e);if(n===void 0)return void lf();const o=n-1;o>=0||G(164),Nc.delete(t),fa.set(e,o),o===0&&e.removeEventListener("selectionchange",gh);const i=il(t);Pu(i)?(function(a){if(a._parentEditor!==null){const l=Fu(a),c=l[l.length-1]._key;Ar.get(c)===a&&Ar.delete(c)}else Ar.delete(a._key)}(i),t.__lexicalEditor=null):i&&G(198);const s=hh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Bc(t,e,n){ct();const o=t.__key,i=t.getParent();if(i===null)return;const s=function(l){const c=ee();if(!K(c)||!U(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Ic(f,l)&&u.set(l.__key,0,"element"),Ic(p,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(K(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(ga(l,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(ga(c,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Rt(s)&&e&&t.isSelected()&&t.selectPrevious();if(K(s)&&e&&!a){const l=t.getIndexWithinParent();Zo(t),ha(s,i,l,-1)}else Zo(t);n||Tt(i)||i.canBeEmpty()||!i.isEmpty()||Bc(i,e),e&&s&&Qe(i)&&i.isEmpty()&&i.selectEnd()}const vh=Symbol.for("ephemeral");function pa(t){return t[vh]||!1}class fn{constructor(e){q(this,"__type");q(this,"__key");q(this,"__parent");q(this,"__prev");q(this,"__next");q(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),ace(this,e)}static getType(){const{ownNodeType:e}=cl(this);return e===void 0&&G(64,this.name),e}static clone(e){G(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){G(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=it(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||ee();if(n==null)return!1;const o=n.getNodes().some(i=>i.__key===this.__key);if(X(this))return o;if(K(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const i=this.getParent();if(Te(this)&&this.isInline()&&i){const s=n.isBackward()?n.focus:n.anchor;if(i.is(s.getNode())&&s.offset===i.getChildrenSize()&&this.is(i.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:it(e)}getParentOrThrow(){const e=this.getParent();return e===null&&G(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(Tt(n))return U(e)||e===this&&Te(e)||G(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&G(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:it(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let o=n.getFirstChild();for(;o!==null&&!o.is(this);)e.push(o),o=o.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:it(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=U(this)?this:this.getParent(),o=U(e)?e:e.getParent(),i=n&&o?Ks(n,o):null;return i?i.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Ks(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Gh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&G(279),!1)))}isParentOf(e){const n=Ks(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],i=new Set;let s=this;for(;s!==null;){const a=s.__key;if(i.has(a)||(i.add(a),o.push(s)),s===e)break;const l=U(s)?n?s.getFirstChild():s.getLastChild():null;if(l!==null){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(c!==null){s=c;continue}const u=s.getParentOrThrow();if(i.has(u.__key)||o.push(u),u===e)break;let d=null,f=u;do{if(f===null&&G(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||i.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=We()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(pa(this))return this;const e=it(this.__key);return e===null&&G(113),e}getWritable(){if(pa(this))return this;ct();const e=To(),n=We(),o=e._nodeMap,i=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=ee();if(l!==null&&l.setCachedNodes(null),a.has(i))return _a(s),s;const c=Wh(s);return a.add(i),_a(c),o.set(i,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){G(70)}updateDOM(e,n,o){G(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){G(18,this.name)}updateFromJSON(e){return function(n,o){const i=n.getWritable(),s=o.$;let a=s;for(const l of qm(i).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(i.__state||a)&&Hm(n).updateFromJSON(a),i}(this,e)}static transform(){return null}remove(e){Bc(this,!0,e)}replace(e,n){ct();let o=ee();o!==null&&(o=o.clone()),ec(this,e);const i=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Zo(l);const d=i.getPreviousSibling(),f=i.getNextSibling(),p=i.__prev,m=i.__next,h=i.__parent;if(Bc(i,!1,!0),d===null?c.__first=a:d.getWritable().__next=a,l.__prev=p,f===null?c.__last=a:f.getWritable().__prev=a,l.__next=m,l.__parent=h,c.__size=u,n&&(U(this)&&U(l)||G(139),this.getChildren().forEach(g=>{l.append(g)})),K(o)){_t(o);const g=o.anchor,y=o.focus;g.key===s&&ff(g,l),y.key===s&&ff(y,l)}return fo()===s&&pt(a),l}insertAfter(e,n=!0){ct(),ec(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.getParent(),a=ee();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(Zo(i),K(a)){const h=s.__key,g=a.anchor,y=a.focus;l=g.type==="element"&&g.key===h&&g.offset===m+1,c=y.type==="element"&&y.key===h&&y.offset===m+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=i.__key,p=o.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,o.__next=f,i.__next=p,i.__prev=o.__key,i.__parent=o.__parent,n&&K(a)){const m=this.getIndexWithinParent();ha(a,d,m+1);const h=d.__key;l&&a.anchor.set(h,m+2,"element"),c&&a.focus.set(h,m+2,"element")}return e}insertBefore(e,n=!0){ct(),ec(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.__key;Zo(i);const a=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,u=this.getIndexWithinParent();a===null?l.__first=s:a.getWritable().__next=s,l.__size++,o.__prev=s,i.__prev=c,i.__next=o.__key,i.__parent=o.__parent;const d=ee();return n&&K(d)&&ha(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return ze()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){ct();const o=this.getPreviousSibling(),i=this.getParentOrThrow();if(o===null)return i.select(0,0);if(U(o))return o.select();if(!X(o)){const s=o.getIndexWithinParent()+1;return i.select(s,s)}return o.select(e,n)}selectNext(e,n){ct();const o=this.getNextSibling(),i=this.getParentOrThrow();if(o===null)return i.select();if(U(o))return o.select(0,0);if(!X(o)){const s=o.getIndexWithinParent();return i.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}q(fn,"importDOM");const ma="historic",Ile="history-push",Mi="history-merge",Ple="paste",_h="collaboration",Fle="skip-scroll-into-view",Rle="skip-dom-selection",zle="skip-selection-focus";class as extends fn{static getType(){return"linebreak"}static clone(e){return new as(e.__key)}constructor(e){super(e)}getTextContent(){return`
24
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(n){const o=n.parentElement;if(o!==null&&ya(o)){const i=o.firstChild;if(i===n||i.nextSibling===n&&Is(i)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&ya(o)){const i=o.firstChild;if(i===n||i.nextSibling===n&&Is(i))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}return!1}(e)?null:{conversion:Ule,priority:0}}}static importJSON(e){return pn().updateFromJSON(e)}}function Ule(t){return{node:pn()}}function pn(){return _n(new as)}function ho(t){return t instanceof as}function Is(t){return eo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Gl(t,e){return 16&e?"code":e&Vm?"mark":32&e?"sub":64&e?"sup":null}function Yl(t,e){return 1&e?"strong":2&e?"em":"span"}function yh(t,e,n,o,i){const s=o.classList;let a=Nr(i,"base");a!==void 0&&s.add(...a),a=Nr(i,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;a!==void 0&&(8&n&&4&n?(l=!0,c||s.add(...a)):c&&s.remove(...a));for(const u in xt){const d=xt[u];if(a=Nr(i,u),a!==void 0)if(n&d){if(l&&(u==="underline"||u==="strikethrough")){e&d&&s.remove(...a);continue}(!(e&d)||c&&u==="underline"||u==="strikethrough")&&s.add(...a)}else e&d&&s.remove(...a)}}function Ch(t,e,n){const o=e.firstChild,i=n.isComposing(),s=t+(i?Ja:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(i||Xo){const[l,c,u]=function(d,f){const p=d.length,m=f.length;let h=0,g=0;for(;h<p&&h<m&&d[h]===f[h];)h++;for(;g+h<p&&g+h<m&&d[p-g-1]===f[m-g-1];)g++;return[h,p-h-g,f.slice(h,m-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function cf(t,e,n,o,i,s){Ch(i,t,e);const a=s.theme.text;a!==void 0&&yh(0,0,o,t,a)}function Ps(t,e){const n=document.createElement(e);return n.appendChild(t),n}class xo extends fn{constructor(n="",o){super(o);q(this,"__text");q(this,"__format");q(this,"__style");q(this,"__mode");q(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new xo(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return ule[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===fo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=xt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return va(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const i=this.__format,s=Gl(0,i),a=Yl(0,i),l=s===null?a:s,c=document.createElement(l);let u=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),s!==null&&(u=document.createElement(a),c.appendChild(u)),cf(u,this,0,i,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,i){const s=this.__text,a=n.__format,l=this.__format,c=Gl(0,a),u=Gl(0,l),d=Yl(0,a),f=Yl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&G(48);const C=document.createElement(f);return cf(C,this,0,l,s,i),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&G(49)),Ch(s,p,this);const m=i.theme.text;m!==void 0&&a!==l&&yh(0,a,l,p,m);const h=n.__style,g=this.__style;return h!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Wle,priority:0}),b:()=>({conversion:qle,priority:0}),code:()=>({conversion:Rn,priority:0}),em:()=>({conversion:Rn,priority:0}),i:()=>({conversion:Rn,priority:0}),mark:()=>({conversion:Rn,priority:0}),s:()=>({conversion:Rn,priority:0}),span:()=>({conversion:Hle,priority:0}),strong:()=>({conversion:Rn,priority:0}),sub:()=>({conversion:Rn,priority:0}),sup:()=>({conversion:Rn,priority:0}),u:()=>({conversion:Rn,priority:0})}}static importJSON(n){return Ge().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:o}=super.exportDOM(n);return tt(o)||G(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Ps(o,"b")),this.hasFormat("italic")&&(o=Ps(o,"i")),this.hasFormat("strikethrough")&&(o=Ps(o,"s")),this.hasFormat("underline")&&(o=Ps(o,"u")),{element:o}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,o){}setFormat(n){const o=this.getWritable();return o.__format=typeof n=="string"?xt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?ale[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=va(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=cle[n];if(this.__mode===o)return this;const i=this.getWritable();return i.__mode=o,i}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){ct();let i=n,s=o;const a=ee(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;i===void 0&&(i=u),s===void 0&&(s=u)}else i=0,s=0;if(!K(a))return wh(c,i,c,s,"text","text");{const u=fo();u!==a.anchor.key&&u!==a.focus.key||pt(c),a.setTextNodeRange(this,i,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,i,s){const a=this.getWritable(),l=a.__text,c=i.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=ee();if(s&&K(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+i+l.slice(u+o);return a.__text=f,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){ct();const o=this.getLatest(),i=o.getTextContent();if(i==="")return[];const s=o.__key,a=fo(),l=i.length;n.sort((S,E)=>S-E),n.push(l);const c=[],u=n.length;for(let S=0,E=0;S<l&&E<=u;E++){const D=n[E];D>S&&(c.push(i.slice(S,D)),S=D)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let m;const h=o.getFormat(),g=o.getStyle(),y=o.__detail;let C=!1,v=null,_=null;const b=ee();if(K(b)){const[S,E]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];S.type==="text"&&S.key===s&&(v=S),E.type==="text"&&E.key===s&&(_=E)}o.isSegmented()?(m=Ge(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=Y1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let S=1;S<d;S++){const E=Ge(c[S]);E.__format=h,E.__style=g,E.__detail=y,E.__state=Y1(o,E);const D=E.__key;a===s&&pt(D),w.push(E)}const k=v?v.offset:null,A=_?_.offset:null;let T=0;for(const S of w){if(!v&&!_)break;const E=T+S.getTextContentSize();if(v!==null&&k!==null&&k<=E&&k>=T&&(v.set(S.getKey(),k-T,"text"),k<E&&(v=null)),_!==null&&A!==null&&A<=E&&A>=T){_.set(S.getKey(),A-T,"text");break}T=E}if(p!==null){(function(D){const x=D.getPreviousSibling(),$=D.getNextSibling();x!==null&&_a(x),$!==null&&_a($)})(this);const S=p.getWritable(),E=this.getIndexWithinParent();C?(S.splice(E,0,w),this.remove()):S.splice(E,1,w),K(b)&&ha(b,p,E,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||G(50);const i=this.__key,s=n.__key,a=this.__text,l=a.length;fo()===s&&pt(i);const c=ee();if(K(c)){const p=c.anchor,m=c.focus;p!==null&&p.key===s&&yf(p,o,i,n,l),m!==null&&m.key===s&&yf(m,o,i,n,l)}const u=n.__text,d=o?u+a:a+u;this.setTextContent(d);const f=this.getWritable();return n.remove(),f}isTextEntity(){return!1}}function Hle(t){return{forChild:Du(t.style),node:null}}function qle(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:Du(e.style,n?void 0:"bold"),node:null}}const uf=new WeakMap;function jle(t){if(!tt(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Wle(t){const e=t;t.parentElement===null&&G(129);let n=e.textContent||"";if(function(o){let i,s=o.parentNode;const a=[o];for(;s!==null&&(i=uf.get(s))===void 0&&!jle(s);)a.push(s),s=s.parentNode;const l=i===void 0?s:i;for(let c=0;c<a.length;c++)uf.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),i=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
25
25
  `||l===`\r
26
- `?i.push(pn()):l===" "?i.push(Yr()):l!==""&&i.push(Ge(l))}return{node:i}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,i=!0;for(;o!==null&&(o=df(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,i=!0;for(;o!==null&&(o=df(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Ge(n)}}function df(t,e){let n=t;for(;;){let o;for(;(o=e?n.nextSibling:n.previousSibling)===null;){const s=n.parentElement;if(s===null)return null;n=s}if(n=o,tt(n)){const s=n.style.display;if(s===""&&!Rc(n)||s!==""&&!s.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(eo(n))return n;if(n.nodeName==="BR")return null}}const Wle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rn(t){const e=Wle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Du(t.style,e),node:null}}function Ge(t=""){return _n(new xo(t))}function X(t){return t instanceof xo}function Du(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),i=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(X(u)&&(i&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class ls extends xo{static getType(){return"tab"}static clone(e){return new ls(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Nr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Yr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Bm(126),super.setTextContent(" ")}spliceText(e,n,o,i){return o===""&&n===0||o===" "&&n===1||G(286),this}setDetail(e){return e!==2&&G(127),this}setMode(e){return e!=="normal"&&G(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Yr(){return _n(new ls)}function el(t){return t instanceof ls}class Zle{constructor(e,n,o){q(this,"key");q(this,"offset");q(this,"type");q(this,"_selection");this._selection=null,this.key=e,this.offset=n,this.type=o}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Zh(Jt(Yn(this,"next")),Jt(Yn(e,"next")))<0}getNode(){const e=it(this.key);return e===null&&G(20),e}set(e,n,o,i){const s=this._selection,a=this.key;i&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,cs()||(fo()===a&&pt(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function Ln(t,e,n){return new Zle(t,e,n)}function Jl(t,e){let n=e.__key,o=t.offset,i="element";if(X(e)){i="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!U(e)){const s=e.getNextSibling();if(X(s))n=s.__key,o=0,i="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,i)}function ff(t,e){if(U(e)){const n=e.getLastDescendant();U(n)||X(n)?Jl(t,n):Jl(t,e)}else Jl(t,e)}class tl{constructor(e){q(this,"_nodes");q(this,"_cachedNodes");q(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Rt(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(i=>o.has(i))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new tl(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,i=n[o-1];let s;if(X(i))s=i.select();else{const a=i.getIndexWithinParent()+1;s=i.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<o;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const i of n){const s=it(i);s!==null&&o.push(s)}return cs()||(this._cachedNodes=o),o}getTextContent(){const e=this.getNodes();let n="";for(let o=0;o<e.length;o++)n+=e[o].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((ee()||Jr())===this&&e[0]){const n=ht(e[0],"next");xce(ko(n,n))}for(const n of e)n.remove()}}function K(t){return t instanceof lr}class lr{constructor(e,n,o,i){q(this,"format");q(this,"style");q(this,"anchor");q(this,"focus");q(this,"_cachedNodes");q(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=i,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!K(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=function(o){const i=[],[s,a]=o.getTextSlices();s&&i.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if(Dn(u)){const{origin:d}=u;i.length===0?l.add(d):(c.add(d),i.push(d))}else{const{origin:d}=u;U(d)&&c.has(d)||i.push(d)}if(a&&i.push(a.caret.origin),Hr(o.focus)&&U(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=hn(o.focus.origin,"previous");Dn(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(i[i.length-1]);u=Zu(u))l.delete(u.origin),i.pop();for(;i.length>1;){const u=i[i.length-1];if(!U(u)||c.has(u)||u.isEmpty()||l.has(u))break;i.pop()}if(i.length===0&&o.isCollapsed()){const u=Jt(o.anchor),d=Jt(o.anchor.getFlipped()),f=m=>go(m)?m.origin:m.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);i.push(p)}return i}(Yh(Ff(this),"next"));return cs()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,i){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,i,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],i=this.anchor,s=this.focus,a=i.isBefore(s),[l,c]=Mc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(U(p)&&!p.isInline())d||(u+=`
27
- `),d=!p.isEmpty();else if(d=!1,X(p)){let m=p.getTextContent();p===n?p===o?i.type==="element"&&s.type==="element"&&s.offset!==i.offset||(m=l<c?m.slice(l,c):m.slice(c,l)):m=a?m.slice(l):m.slice(c):p===o&&(m=a?m.slice(0,c):m.slice(0,l)),u+=m}else!Ae(p)&&!ho(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=We(),o=n.getEditorState()._selection,i=bh(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,o);if(i===null)return;const[s,a]=i;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(a.key,a.offset,a.type,!0),sa(this)}clone(){const e=this.anchor,n=this.focus;return new lr(Ln(e.key,e.offset,e.type),Ln(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=va(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const n=xt[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],i=n.length;for(let s=0;s<i;s++){const a=n[s];a===`
26
+ `?i.push(pn()):l===" "?i.push(Yr()):l!==""&&i.push(Ge(l))}return{node:i}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,i=!0;for(;o!==null&&(o=df(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,i=!0;for(;o!==null&&(o=df(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Ge(n)}}function df(t,e){let n=t;for(;;){let o;for(;(o=e?n.nextSibling:n.previousSibling)===null;){const s=n.parentElement;if(s===null)return null;n=s}if(n=o,tt(n)){const s=n.style.display;if(s===""&&!Rc(n)||s!==""&&!s.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(eo(n))return n;if(n.nodeName==="BR")return null}}const Zle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rn(t){const e=Zle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Du(t.style,e),node:null}}function Ge(t=""){return _n(new xo(t))}function X(t){return t instanceof xo}function Du(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),i=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(X(u)&&(i&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class ls extends xo{static getType(){return"tab"}static clone(e){return new ls(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Nr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Yr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Mm(126),super.setTextContent(" ")}spliceText(e,n,o,i){return o===""&&n===0||o===" "&&n===1||G(286),this}setDetail(e){return e!==2&&G(127),this}setMode(e){return e!=="normal"&&G(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Yr(){return _n(new ls)}function el(t){return t instanceof ls}class Kle{constructor(e,n,o){q(this,"key");q(this,"offset");q(this,"type");q(this,"_selection");this._selection=null,this.key=e,this.offset=n,this.type=o}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Kh(Jt(Yn(this,"next")),Jt(Yn(e,"next")))<0}getNode(){const e=it(this.key);return e===null&&G(20),e}set(e,n,o,i){const s=this._selection,a=this.key;i&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,cs()||(fo()===a&&pt(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function Ln(t,e,n){return new Kle(t,e,n)}function Jl(t,e){let n=e.__key,o=t.offset,i="element";if(X(e)){i="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!U(e)){const s=e.getNextSibling();if(X(s))n=s.__key,o=0,i="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,i)}function ff(t,e){if(U(e)){const n=e.getLastDescendant();U(n)||X(n)?Jl(t,n):Jl(t,e)}else Jl(t,e)}class tl{constructor(e){q(this,"_nodes");q(this,"_cachedNodes");q(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Rt(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(i=>o.has(i))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new tl(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,i=n[o-1];let s;if(X(i))s=i.select();else{const a=i.getIndexWithinParent()+1;s=i.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<o;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const i of n){const s=it(i);s!==null&&o.push(s)}return cs()||(this._cachedNodes=o),o}getTextContent(){const e=this.getNodes();let n="";for(let o=0;o<e.length;o++)n+=e[o].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((ee()||Jr())===this&&e[0]){const n=ht(e[0],"next");Tce(ko(n,n))}for(const n of e)n.remove()}}function K(t){return t instanceof lr}class lr{constructor(e,n,o,i){q(this,"format");q(this,"style");q(this,"anchor");q(this,"focus");q(this,"_cachedNodes");q(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=i,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!K(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=function(o){const i=[],[s,a]=o.getTextSlices();s&&i.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if(Dn(u)){const{origin:d}=u;i.length===0?l.add(d):(c.add(d),i.push(d))}else{const{origin:d}=u;U(d)&&c.has(d)||i.push(d)}if(a&&i.push(a.caret.origin),Hr(o.focus)&&U(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=hn(o.focus.origin,"previous");Dn(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(i[i.length-1]);u=Zu(u))l.delete(u.origin),i.pop();for(;i.length>1;){const u=i[i.length-1];if(!U(u)||c.has(u)||u.isEmpty()||l.has(u))break;i.pop()}if(i.length===0&&o.isCollapsed()){const u=Jt(o.anchor),d=Jt(o.anchor.getFlipped()),f=m=>go(m)?m.origin:m.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);i.push(p)}return i}(Jh(Ff(this),"next"));return cs()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,i){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,i,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],i=this.anchor,s=this.focus,a=i.isBefore(s),[l,c]=Mc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(U(p)&&!p.isInline())d||(u+=`
27
+ `),d=!p.isEmpty();else if(d=!1,X(p)){let m=p.getTextContent();p===n?p===o?i.type==="element"&&s.type==="element"&&s.offset!==i.offset||(m=l<c?m.slice(l,c):m.slice(c,l)):m=a?m.slice(l):m.slice(c):p===o&&(m=a?m.slice(0,c):m.slice(0,l)),u+=m}else!Te(p)&&!ho(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=We(),o=n.getEditorState()._selection,i=kh(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,o);if(i===null)return;const[s,a]=i;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(a.key,a.offset,a.type,!0),sa(this)}clone(){const e=this.anchor,n=this.focus;return new lr(Ln(e.key,e.offset,e.type),Ln(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=va(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const n=xt[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],i=n.length;for(let s=0;s<i;s++){const a=n[s];a===`
28
28
  `||a===`\r
29
- `?o.push(pn()):a===" "?o.push(Yr()):o.push(Ge(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,i=this.format,s=this.style;let a=n,l=o;!this.isCollapsed()&&o.isBefore(n)&&(a=o,l=n),a.type==="element"&&function(y,C,_,v){const b=y.getNode(),w=b.getChildAtIndex(y.offset),k=Ge();if(k.setFormat(_),k.setStyle(v),fs(w))w.splice(0,0,[k]);else{const T=Qe(b)?ze().append(k):k;w===null?b.append(T):w.insertBefore(T)}y.is(C)&&C.set(k.__key,0,"text"),y.set(k.__key,0,"text")}(a,l,i,s),l.type==="element"&&sr(l,Jt(Yn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||G(26);const m=p.getTextContent().length,h=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=m,l.set(a.key,u,"text")),this.isCollapsed()&&c===m&&(Un(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(X(y)&&y.canInsertTextBefore()&&!Un(y)||(y=Ge(),y.setFormat(i),y.setStyle(s),h.canInsertTextAfter()?p.insertAfter(y):h.insertAfter(y)),y.select(0,0),p=y,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Un(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(X(y)&&!Un(y)||(y=Ge(),y.setFormat(i),h.canInsertTextBefore()?p.insertBefore(y):h.insertBefore(y)),y.select(),p=y,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==m){const y=Ge(p.getTextContent());y.setFormat(i),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||U(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),Ch(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Wo(p)){const v=Ge(e);return v.select(),void p.replace(v)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===i&&C===s){if(el(p)){const v=Ge(e);return v.setFormat(i),v.setStyle(s),v.select(),void p.replace(v)}}else{if(p.getTextContent()!==""){const v=Ge(e);if(v.setFormat(i),v.setStyle(s),v.select(),c===0)p.insertBefore(v,!1);else{const[b]=p.splitText(c);b.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(i),p.setStyle(s)}const _=u-c;p=p.spliceText(c,_,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=y,this.style=C))}else{const y=new Set([...p.getParentKeys(),...g.getParentKeys()]),C=U(p)?p:p.getParentOrThrow();let _=U(g)?g:g.getParentOrThrow(),v=g;if(!C.is(_)&&_.isInline())do v=_,_=_.getParentOrThrow();while(_.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(X(g)&&!Wo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const A=Ge(g.getTextContent());g.replace(A),g=A}Qe(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),y.add(g.__key)}else{const A=g.getParentOrThrow();A.canBeEmpty()||A.getChildrenSize()!==1?g.remove():A.remove()}else y.add(g.__key);const b=_.getChildren(),w=new Set(d),k=C.is(_),T=C.isInline()&&p.getNextSibling()===null?C:p;for(let A=b.length-1;A>=0;A--){const S=b[A];if(S.is(p)||U(S)&&S.isParentOf(p))break;S.isAttached()&&(!w.has(S)||S.is(v)?k||T.insertAfter(S,!1):S.remove())}if(!k){let A=_,S=null;for(;A!==null;){const E=A.getChildren(),D=E.length;(D===0||E[D-1].is(S))&&(y.delete(A.__key),S=A),A=A.getParent()}}if(Wo(p))if(c===m)p.select();else{const A=Ge(e);A.select(),p.replace(A)}else p=p.spliceText(c,m-c,e,!0),p.getTextContent()===""?p.remove():p.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let A=1;A<f;A++){const S=d[A],E=S.__key;y.has(E)||S.remove()}}}removeText(){const e=ee()===this;Gs(this,Ace(Ff(this))),e&&ee()!==this&&_t(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void pt(null);const o=this.getNodes(),i=[];for(const b of o)X(b)&&i.push(b);const s=b=>{o.forEach(w=>{if(U(w)){const k=w.getFormatFlags(e,b);w.setTextFormat(k)}})},a=i.length;if(a===0)return this.toggleFormat(e),pt(null),void s(n);const l=this.anchor,c=this.focus,u=this.isBackward(),d=u?c:l,f=u?l:c;let p=0,m=i[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(p=1,m=i[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);s(g);const y=a-1;let C=i[y];const _=f.type==="text"?f.offset:C.getTextContentSize();if(m.is(C)){if(h===_)return;if(Un(m)||h===0&&_===m.getTextContentSize())m.setFormat(g);else{const b=m.splitText(h,_),w=h===0?b[0]:b[1];w.setFormat(g),d.type==="text"&&d.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,_-h,"text")}return void(this.format=g)}h===0||Un(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const v=C.getFormatFlags(e,g);_>0&&(_===C.getTextContentSize()||Un(C)||([C]=C.splitText(_)),C.setFormat(v));for(let b=p+1;b<y;b++){const w=i[b],k=w.getFormatFlags(e,v);w.setFormat(k)}d.type==="text"&&d.set(m.__key,h,"text"),f.type==="text"&&f.set(C.__key,_,"text"),this.format=g|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=ee();return K(h)||G(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=Qt(n,Gt),i=e[e.length-1];if(U(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Xl(this);o.splice(h,0,e),i.selectEnd()}return}if(!e.some(h=>(U(h)||Ae(h))&&!h.isInline())){U(o)||G(211,n.constructor.name,n.getType());const h=Xl(this);return o.splice(h,0,e),void i.selectEnd()}const s=function(h){const g=ze();let y=null;for(let C=0;C<h.length;C++){const _=h[C],v=ho(_);if(v||Ae(_)&&_.isInline()||U(_)&&_.isInline()||X(_)||_.isParentRequired()){if(y===null&&(y=_.createParentElementNode(),g.append(y),v))continue;y!==null&&y.append(_)}else g.append(_),y=null}return g}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!U(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;U(f=d)&&Gt(f)&&!f.isEmpty()&&U(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(U(o)||G(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&G(212,n.constructor.name,n.getType()),function(h,g){const y=g.getParentOrThrow().getLastChild();let C=g;const _=[g];for(;C!==y;)C.getNextSibling()||G(140),C=C.getNextSibling(),_.push(C);let v=h;for(const b of _)v=v.insertAfter(b)}(o,d));const p=Qt(a,Gt);c&&U(p)&&(c.canMergeWhenEmpty()||Gt(u))&&(p.append(...c.getChildren()),c.remove()),U(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=U(o)?o.getLastChild():null;ho(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=ze();return Ze().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Xl(this),n=Qt(this.anchor.getNode(),Gt);U(n)||G(213);const o=n.getChildAtIndex(e),i=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(e){const n=pn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),i=n.getIndexWithinParent();o.select(i,i)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],i=e[n-1];const[s,a]=Mc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(X(o)&&!this.isCollapsed()){const p=o.splitText(d,f),m=d===0?p[0]:p[1];return m?(c.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(X(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),X(i)){const p=i.getTextContent().length;f===0?e.pop():f!==p&&([i]=i.splitText(f),e[e.length-1]=i,u.set(i.getKey(),i.getTextContentSize(),"text"))}return e}modify(e,n,o){if(Cf(this,e,n,o))return;const i=e==="move",s=We(),a=mn(nn(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!U(u)||u.isInline()||u.canBeEmpty()||Pc(l,s,c),this.dirty){let d=nr(s,this.anchor.key),f=nr(s,this.focus.key);this.anchor.type==="text"&&(d=zr(d)),this.focus.type==="text"&&(f=zr(f)),d&&f&&Eh(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,m){d.modify(f,p,m)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Qe(f)?f:dce(f);if(this.applyDOMRange(d),this.dirty=!0,!i){const m=this.getNodes(),h=[];let g=!1;for(let y=0;y<m.length;y++){const C=m[y];Ic(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];U(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];U(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(y){const C=y.focus,_=y.anchor,v=_.key,b=_.offset,w=_.type;_.set(C.key,C.offset,C.type,!0),C.set(v,b,w,!0)}(this)}}o==="lineboundary"&&Cf(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&U(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const i=n.getParent(),s=n.getNextSibling()||(i===null?null:i.getNextSibling());if(U(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let i=o.getNode();if(this.forwardDeletion(o,i,e))return;const s=Gu(Yn(o,e?"previous":"next"));if(s.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if(Dn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(U(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=Jt(c);Gs(this,ko(u,u)),s.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Hr(c)){if(U(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(Ae(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&U(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=wh();u.add(c.origin.getKey()),_t(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Gs(this,ko(!c.origin.isEmpty()&&u.isEmpty()?Yu(ht(u,c.direction)):s.anchor,c)),this.removeText()}}const a=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&o.offset===0&&mf(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(i=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(i)||e&&c!==u||!e&&c!==0)return void hf(l,e,c)}else if(i!==null&&i.isSegmented()){const c=o.offset,u=i.getTextContentSize();if(i.is(l)||e&&c!==0||!e&&c!==u)return void hf(i,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),m=f.getNode();if(p===m&&d.type==="text"&&f.type==="text"){const h=d.offset,g=f.offset,y=h<g,C=y?h:g,_=y?g:h,v=_-1;C!==v&&function(b){return!(Fh(b)||Kle(b))}(p.getTextContent().slice(C,_))&&(u?f.set(f.key,v,f.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const o=this.anchor.getNode();o.isEmpty()&&Qe(o.getParent())&&o.getPreviousSibling()===null&&mf(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Rt(t){return t instanceof tl}function pf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Mc(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,o]=e;return n.type==="element"&&o.type==="element"&&n.key===o.key&&n.offset===o.offset?[0,0]:[pf(n),pf(o)]}function mf(t,e){for(let n=e;n;n=n.getParent()){if(U(n)){if(n.collapseAtStart(t))return!0;if(At(n))break}if(n.getPreviousSibling())break}return!1}const Kle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function hf(t,e,n){const o=t,i=o.getTextContent().split(/(?=\s)/g),s=i.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=i[u].length,e&&a===n||a>n||d){i.splice(u,1),d&&(l=void 0);break}}const c=i.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function gf(t,e,n,o){let i,s=e;if(tt(t)){let a=!1;const l=t.childNodes,c=l.length,u=o._blockCursorElement;s===c&&(a=!0,s=c-1);let d=l[s],f=!1;if(d===u)d=l[s+1],f=!0;else if(u!==null){const p=u.parentNode;t===p&&e>Array.prototype.indexOf.call(p.children,u)&&s--}if(i=wr(d),X(i))s=vo(i,a?"next":"previous");else{let p=wr(t);if(p===null)return null;if(U(p)){const m=o.getElementByKey(p.getKey());m===null&&G(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),U(p)||G(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(U(g)&&function(y,C,_){const v=y.getParent();return _===null||v===null||!v.canBeEmpty()||v!==_.getNode()}(g,0,n)){const y=a?g.getLastDescendant():g.getFirstDescendant();y===null?p=g:(g=y,p=U(g)?g:g.getParentOrThrow()),s=0}X(g)?(i=g,p=null,s=vo(g,a?"next":"previous")):g!==p&&a&&!f&&(U(p)||G(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&Ae(p)&&wr(t)===p?m:m+1,p=p.getParentOrThrow()}if(U(p))return Ln(p.__key,s,"element")}}else i=wr(t);return X(i)?Ln(i.__key,vo(i,s,"clamp"),"text"):null}function vf(t,e,n){const o=t.offset,i=t.getNode();if(o===0){const s=i.getPreviousSibling(),a=i.getParent();if(e){if((n||!e)&&s===null&&U(a)&&a.isInline()){const l=a.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else U(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===i.getTextContent().length){const s=i.getNextSibling(),a=i.getParent();if(e&&U(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&U(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function Ch(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),i=t.is(e);vf(t,o,i),vf(e,!o,i),i&&e.set(t.key,t.offset,t.type);const s=We();if(s.isComposing()&&s._compositionKey!==t.key&&K(n)){const a=n.anchor,l=n.focus;t.set(a.key,a.offset,a.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function bh(t,e,n,o,i,s){if(t===null||n===null||!ps(i,t,n))return null;const a=gf(t,e,K(s)?s.anchor:null,i);if(a===null)return null;const l=gf(n,o,K(s)?s.focus:null,i);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=wr(t),u=wr(n);if(Ae(c)&&Ae(u))return null}return Ch(a,l,s),[a,l]}function Lc(t){return U(t)&&!t.isInline()}function kh(t,e,n,o,i,s){const a=Ao(),l=new lr(Ln(t,e,i),Ln(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function nl(){const t=Ln("root",0,"element"),e=Ln("root",0,"element");return new lr(t,e,0,"")}function wh(){return new tl(new Set)}function $u(t,e,n,o){const i=n._window;if(i===null)return null;const s=o||i.event,a=s?s.type:void 0,l=a==="selectionchange",c=!_c&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(K(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,f=e.anchorOffset,p=e.focusOffset,(l||a===void 0)&&K(t)&&!ps(n,u,d))return t.clone();const m=bh(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new lr(h,g,K(t)?t.format:0,K(t)?t.style:"")}function ee(){return Ao()._selection}function Jr(){return We()._editorState._selection}function ha(t,e,n,o=1){const i=t.anchor,s=t.focus,a=i.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=i.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);i.set(c,d,"element"),s.set(c,d,"element"),_f(t)}}else{const u=t.isBackward(),d=u?s:i,f=d.getNode(),p=u?i:s,m=p.getNode();if(e.is(f)){const h=d.offset;(n<=h&&o>0||n<h&&o<0)&&d.set(c,Math.max(0,h+o),"element")}if(e.is(m)){const h=p.offset;(n<=h&&o>0||n<h&&o<0)&&p.set(c,Math.max(0,h+o),"element")}}_f(t)}function _f(t){const e=t.anchor,n=e.offset,o=t.focus,i=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!U(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(U(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(U(a)){const l=a.getChildrenSize(),c=i>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(i);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function ga(t,e,n,o,i){let s=null,a=0,l=null;o!==null?(s=o.__key,X(o)?(a=o.getTextContentSize(),l="text"):U(o)&&(a=o.getChildrenSize(),l="element")):i!==null&&(s=i.__key,X(i)?l="text":U(i)&&(l="element")),s!==null&&l!==null?t.set(s,a,l):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function yf(t,e,n,o,i){t.type==="text"?t.set(n,t.offset+(e?0:i),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Eh(t,e,n,o,i){try{t.setBaseAndExtent(e,n,o,i)}catch{}}function Gle(t,e,n,o,i,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(i.has(vh)&&f!==s||f!==null&&Iu(f))return;if(!K(e))return void(t!==null&&ps(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=nr(n,h),C=nr(n,g),_=p.offset,v=m.offset,b=e.format,w=e.style,k=e.isCollapsed();let T=y,A=C,S=!1;if(p.type==="text"){T=zr(y);const V=p.getNode();S=V.getFormat()!==b||V.getStyle()!==w}else K(t)&&t.anchor.type==="text"&&(S=!0);var E,D,x,$,B;if(m.type==="text"&&(A=zr(C)),T!==null&&A!==null&&(k&&(t===null||S||K(t)&&(t.format!==b||t.style!==w))&&(E=b,D=w,x=_,$=h,B=performance.now(),uh=[E,D,x,$,B]),u!==_||d!==v||l!==T||c!==A||o.type==="Range"&&k||(f!==null&&s.contains(f)||i.has(Rle)||s.focus({preventScroll:!0}),p.type==="element"))){if(Eh(o,T,_,A,v),!i.has(Ple)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const V=K(e)&&e.anchor.type==="element"?T.childNodes[_]||null:o.rangeCount>0?o.getRangeAt(0):null;if(V!==null){let I;if(V instanceof Text){const W=document.createRange();W.selectNode(V),I=W.getBoundingClientRect()}else I=V.getBoundingClientRect();(function(W,P,H){const Q=Hh(H),le=Hu(Q);if(Q===null||le===null)return;let{top:oe,bottom:Ne}=P,ce=0,ne=0,z=H;for(;z!==null;){const F=z===Q.body;if(F)ce=0,ne=nn(W).innerHeight;else{const Ee=z.getBoundingClientRect();ce=Ee.top,ne=Ee.bottom}let se=0;if(oe<ce?se=-(ce-oe):Ne>ne&&(se=Ne-ne),se!==0)if(F)le.scrollBy(0,se);else{const Ee=z.scrollTop;z.scrollTop+=se;const Ue=z.scrollTop-Ee;oe-=Ue,Ne-=Ue}if(F)break;z=ms(z)}})(n,I,s)}}Dc=!0}}function Yle(t){let e=ee()||Jr();e===null&&(e=Ze().selectEnd()),e.insertNodes(t)}function Xl(t){let e=t;t.isCollapsed()||e.removeText();const n=ee();K(n)&&(e=n),K(e)||G(161);const o=e.anchor;let i=o.getNode(),s=o.offset;for(;!Gt(i);){const a=i;if([i,s]=Jle(i,s),a.is(i))break}return s}function Jle(t,e){const n=t.getParent();if(!n){const i=ze();return Ze().append(i),i.select(),[Ze(),0]}if(X(t)){const i=t.splitText(e);if(i.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,i[0].getIndexWithinParent()+s]}if(!U(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const i=new lr(Ln(t.__key,e,"element"),Ln(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function Cf(t,e,n,o,i="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[d,f]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return f.set(d.key,d.offset,d.type),!0}const s=Yn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=i==="decorators-and-blocks";if(!Gh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Ae(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Gu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Dn(d))d.origin.isInline()||(c=d);else{if(U(d.origin))continue;Ae(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ae(c.origin)&&c.origin.isKeyboardSelectable()){const d=wh();return d.add(c.origin.getKey()),_t(d),!0}return c=Jt(c),l&&sr(t.anchor,c),sr(t.focus,c),u||!a}let ut=null,dt=null,Mt=!1,Ql=!1,Zs=0;const bf={characterData:!0,childList:!0,subtree:!0};function cs(){return Mt||ut!==null&&ut._readOnly}function ct(){Mt&&G(13)}function Sh(){Zs>99&&G(14)}function Ao(){return ut===null&&G(195,xh()),ut}function We(){return dt===null&&G(196,xh()),dt}function xh(){let t=0;const e=new Set,n=tr.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=il(i);if(Pu(s))t++;else if(s){let a=String(s.constructor.version||"<0.17.1");a===n&&(a+=" (separately built, likely a bundler configuration issue)"),e.add(a)}}let o=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(o+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),o}function Xle(){return dt}function kf(t,e,n){const o=e.__type,i=Bh(t,o);let s=n.get(o);s===void 0&&(s=Array.from(i.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function wf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function Ah(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const i of o)n.add(i)}function Qle(t){return Bu(t,We()._nodes)}function Bu(t,e){const n=t.type,o=e.get(n);o===void 0&&G(17,n);const i=o.klass;t.type!==i.getType()&&G(18,i.name);const s=i.importJSON(t),a=t.children;if(U(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=Bu(a[l],e);s.append(c)}return s}function Ef(t,e,n){const o=ut,i=Mt,s=dt;ut=e,Mt=!0,dt=t;try{return n()}finally{ut=o,Mt=i,dt=s}}function qn(t,e){const n=t._pendingEditorState,o=t._rootElement,i=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=ut,d=Mt,f=dt,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&m!==null){dt=t,ut=n,Mt=!1,t._updating=!0;try{const k=t._dirtyType,T=t._dirtyElements,A=t._dirtyLeaves;m.disconnect(),h=ble(s,n,t,k,T,A)}catch(k){if(k instanceof Error&&t._onError(k),Ql)throw k;return $h(t,null,o,n),Fm(t),t._dirtyType=2,Ql=!0,qn(t,s),void(Ql=!1)}finally{m.observe(o,bf),t._updating=p,ut=u,Mt=d,dt=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,y=t._dirtyElements,C=t._normalizedNodes,_=t._updateTags,v=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(k,T){const A=k._decorators;let S=k._pendingDecorators||A;const E=T._nodeMap;let D;for(D in S)E.has(D)||(S===A&&(S=Ih(k)),delete S[D])}(t,n);const b=i?null:mn(nn(t));if(t._editable&&b!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!_.has(Fle)){dt=t,ut=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const k=t._blockCursorElement;k!==null&&Pc(k,t,o),Gle(a,l,t,b,_,o)}(function(k,T,A){let S=k._blockCursorElement;if(K(A)&&A.isCollapsed()&&A.anchor.type==="element"&&T.contains(document.activeElement)){const E=A.anchor,D=E.getNode(),x=E.offset;let $=!1,B=null;if(x===D.getChildrenSize())tc(D.getChildAtIndex(x-1))&&($=!0);else{const V=D.getChildAtIndex(x);if(V!==null&&tc(V)){const I=V.getPreviousSibling();(I===null||tc(I))&&($=!0,B=k.getElementByKey(V.__key))}}if($){const V=k.getElementByKey(D.__key);return S===null&&(k._blockCursorElement=S=function(I){const W=I.theme,P=document.createElement("div");P.contentEditable="false",P.setAttribute("data-lexical-cursor","true");let H=W.blockCursor;if(H!==void 0){if(typeof H=="string"){const Q=Lm(H);H=W.blockCursor=Q}H!==void 0&&P.classList.add(...H)}return P}(k._config)),T.style.caretColor="transparent",void(B===null?V.appendChild(S):V.insertBefore(S,B))}}S!==null&&Pc(S,k,T)})(t,o,l)}finally{m!==null&&m.observe(o,bf),dt=f,ut=u}}h!==null&&function(k,T,A,S,E){const D=Array.from(k._listeners.mutation),x=D.length;for(let $=0;$<x;$++){const[B,V]=D[$];for(const I of V){const W=T.get(I);W!==void 0&&B(W,{dirtyLeaves:S,prevEditorState:E,updateTags:A})}}}(t,h,_,g,s),K(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Km,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Li("decorator",t,!0,w)),function(k,T,A){const S=Nf(T),E=Nf(A);S!==E&&Li("textcontent",k,!0,E)}(t,e||s,n),Li("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:C,prevEditorState:e||s,tags:_}),function(k,T){if(k._deferred=[],T.length!==0){const A=k._updating;k._updating=!0;try{for(let S=0;S<T.length;S++)T[S]()}finally{k._updating=A}}}(t,v),function(k){const T=k._updates;if(T.length!==0){const A=T.shift();if(A){const[S,E]=A;ol(k,S,E)}}}(t)}function Li(t,e,n,...o){const i=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,o)}finally{e._updating=i}}function Sf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const i=n.shift();if(i){const[s,a]=i,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&G(191),l._flushSync=!0),c&&t._deferred.push(c),Ah(t,a.tag)),l==null?ol(t,s,a):s()}}return o}function ol(t,e,n){const o=t._updateTags;let i,s=!1,a=!1;n!==void 0&&(i=n.onUpdate,Ah(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),i&&t._deferred.push(i);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=Nh(c||l),u=!0),c._flushSync=a;const d=ut,f=Mt,p=dt,m=t._updating;ut=c,Mt=!1,t._updating=!0,dt=t;const h=t._headless||t.getRootElement()===null;Ou(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(_,v){const b=_.getEditorState()._selection,w=mn(nn(_));return K(b)||b==null?$u(b,w,_,v):b.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=Sf(t,s),function(_,v){const b=v.getEditorState()._selection,w=_._selection;if(K(w)){const k=w.anchor,T=w.focus;let A;if(k.type==="text"&&(A=k.getNode(),A.selectionTransform(b,w)),T.type==="text"){const S=T.getNode();A!==S&&S.selectionTransform(b,w)}}}(c,t),t._dirtyType!==0&&(s?function(_,v){const b=v._dirtyLeaves,w=_._nodeMap;for(const k of b){const T=w.get(k);X(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&Q1(T)}}(c,t):function(_,v){const b=v._dirtyLeaves,w=v._dirtyElements,k=_._nodeMap,T=fo(),A=new Map;let S=b,E=S.size,D=w,x=D.size;for(;E>0||x>0;){if(E>0){v._dirtyLeaves=new Set;for(const $ of S){const B=k.get($);X(B)&&B.isAttached()&&B.isSimpleText()&&!B.isUnmergeable()&&Q1(B),B!==void 0&&wf(B,T)&&kf(v,B,A),b.add($)}if(S=v._dirtyLeaves,E=S.size,E>0){Zs++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,D.delete("root")&&D.set("root",!0);for(const $ of D){const B=$[0],V=$[1];if(w.set(B,V),!V)continue;const I=k.get(B);I!==void 0&&wf(I,T)&&kf(v,I,A)}S=v._dirtyLeaves,E=S.size,D=v._dirtyElements,x=D.size,Zs++}v._dirtyLeaves=b,v._dirtyElements=w}(c,t),Sf(t),function(_,v,b,w){const k=_._nodeMap,T=v._nodeMap,A=[];for(const[S]of w){const E=T.get(S);E!==void 0&&(E.isAttached()||(U(E)&&Vm(E,S,k,T,A,w),k.has(S)||w.delete(S),A.push(S)))}for(const S of A)T.delete(S);for(const S of b){const E=T.get(S);E===void 0||E.isAttached()||(k.has(S)||b.delete(S),T.delete(S))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const C=c._selection;if(K(C)){const _=c._nodeMap,v=C.anchor.key,b=C.focus.key;_.get(v)!==void 0&&_.get(b)!==void 0||G(19)}else Rt(C)&&C._nodes.size===0&&(c._selection=null)}catch(y){return y instanceof Error&&t._onError(y),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void qn(t)}finally{ut=d,Mt=f,dt=p,t._updating=m,Zs=0}t._dirtyType!==0||t._deferred.length>0||function(y,C){const _=C.getEditorState()._selection,v=y._selection;if(v!==null){if(v.dirty||!v.is(_))return!0}else if(_!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,qn(t)):u&&ice(()=>{qn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function zt(t,e,n){dt===t&&n===void 0?e():ol(t,e,n)}class Oi{constructor(e,n,o){q(this,"element");q(this,"before");q(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Oi(this.element,e,this.after)}withAfter(e){return new Oi(this.element,this.before,e)}withElement(e){return this.element===e?this:new Oi(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&G(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&G(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&G(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(ji||Rr||qi);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,i=this.before,s=document.createElement("br");if(o.insertBefore(s,i),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",o.insertBefore(a,s),o.__lexicalLineBreak=a}else o.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,i){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,i))]}const s=xf(n,o);s.push(i);const a=xf(n,this.element);let l=e.getIndexWithinParent();for(let c=0;c<a.length;c++){const u=s[c],d=a[c];if(u===void 0||u<d)break;if(u>d){l+=1;break}}return[e.getParentOrThrow(),l]}}function xf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let i=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)i++;n.push(i)}return o!==t&&G(225),n.reverse()}class jt extends fn{constructor(n){super(n);q(this,"__first");q(this,"__last");q(this,"__size");q(this,"__format");q(this,"__style");q(this,"__indent");q(this,"__dir");q(this,"__textFormat");q(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return ale[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o),o=o.getNextSibling();return n}getChildrenKeys(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o.__key),o=o.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=We()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(X(o)&&n.push(o),U(o)){const i=o.getAllTextNodes();n.push(...i)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;U(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;U(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),i=o.length;if(n>=i){const a=o[i-1];return U(a)&&a.getLastDescendant()||a||null}const s=o[n];return U(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:it(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&G(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:it(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&G(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let i,s;if(n<o/2){for(i=this.getFirstChild(),s=0;i!==null&&s<=n;){if(s===n)return i;i=i.getNextSibling(),s++}return null}for(i=this.getLastChild(),s=o-1;i!==null&&s>=n;){if(s===n)return i;i=i.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),i=o.length;for(let s=0;s<i;s++){const a=o[s];n+=a.getTextContent(),U(a)&&s!==i-1&&!a.isInline()&&(n+=bo)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),i=o.length;for(let s=0;s<i;s++){const a=o[s];n+=a.getTextContentSize(),U(a)&&s!==i-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=j1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=xt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return va(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){ct();const i=ee();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(X(u)||U(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(X(u)||U(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return K(i)?(i.anchor.set(c,s,"element"),i.focus.set(c,a,"element"),i.dirty=!0,i):kh(c,s,c,a,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(o=>o.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const o=this.getWritable();return o.__dir=n,o}setFormat(n){return this.getWritable().__format=n!==""?j1[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const o=this.getWritable();return o.__textFormat=n,o}setTextStyle(n){const o=this.getWritable();return o.__textStyle=n,o}setIndent(n){return this.getWritable().__indent=n,this}splice(n,o,i){pa(this)&&G(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||G(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+i.length;if(n!==0)if(n===s)f=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(o>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){h===null&&G(100);const y=h.getNextSibling(),C=h.__key;Zo(h.getWritable()),u.push(C),h=y}}let m=f;for(const h of i){m!==null&&h.is(m)&&(f=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&p--,Zo(g);const y=h.__key;if(m===null)a.__first=y,g.__prev=null;else{const C=m.getWritable();C.__next=y,g.__prev=C.__key}h.__key===l&&G(76),g.__parent=l,c.push(y),m=h}if(n+o===s)m!==null&&(m.getWritable().__next=null,a.__last=m.__key);else if(d!==null){const h=d.getWritable();if(m!==null){const g=m.getWritable();h.__prev=m.__key,g.__next=d.__key}else h.__prev=null}if(a.__size=p,u.length){const h=ee();if(K(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:_}=h;Af(C,g,y)&&ga(C,C.getNode(),this,f,d),Af(_,g,y)&&ga(_,_.getNode(),this,f,d),p!==0||this.canBeEmpty()||At(this)||this.remove()}}return a}getDOMSlot(n){return new Oi(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(tt(o)){const i=this.getIndent();i>0&&(o.style.paddingInlineStart=40*i+"px");const s=this.getDirection();s&&(o.dir=s)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),i=this.getTextStyle();return o!==0&&(n.textFormat=o),i!==""&&(n.textStyle=i),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,i){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const i=this.getDOMSlot(n);let s=i.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(i.insertChild(l),s=l):s!==l&&i.replaceChild(l,s),s=s.nextSibling)}}}function U(t){return t instanceof jt}function Af(t,e,n){let o=t.getNode();for(;o;){const i=o.__key;if(e.has(i)&&!n.has(i))return!0;o=o.getParent()}return!1}class Th extends fn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ae(t){return t instanceof Th}class us extends jt{constructor(){super("root");q(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new us}getTopLevelElementOrThrow(){G(51)}getTextContent(){const n=this.__cachedText;return!cs()&&We()._dirtyType!==0||n===null?super.getTextContent():n}remove(){G(52)}replace(n){G(53)}insertBefore(n){G(54)}insertAfter(n){G(55)}updateDOM(n,o){return!1}splice(n,o,i){for(const s of i)U(s)||Ae(s)||G(282);return super.splice(n,o,i)}static importJSON(n){return Ze().updateFromJSON(n)}collapseAtStart(){return!0}}function Qe(t){return t instanceof us}function Nh(t){return new rl(new Map(t._nodeMap))}function Mu(){return new rl(new Map([["root",new us]]))}function Dh(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&G(130,n.name),U(t)){const o=e.children;Array.isArray(o)||G(59,n.name);const i=t.getChildren();for(let s=0;s<i.length;s++){const a=Dh(i[s]);o.push(a)}}return e}class rl{constructor(e,n){q(this,"_nodeMap");q(this,"_selection");q(this,"_flushSync");q(this,"_readOnly");this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return Ef(n&&n.editor||null,this,e)}clone(e){const n=new rl(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return Ef(null,this,()=>({root:Dh(Ze())}))}}class Lu extends jt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ds extends jt{static getType(){return"paragraph"}static clone(e){return new ds(e.__key)}createDOM(e){const n=document.createElement("p"),o=Nr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:ece,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(tt(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return ze().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=ze();o.setTextFormat(e.format),o.setTextStyle(e.style);const i=this.getDirection();return o.setDirection(i),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||X(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function ece(t){const e=ze();return t.style&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function ze(){return _n(new ds)}function fs(t){return t instanceof ds}const xe=0,bi=1,tce=4;function $h(t,e,n,o){const i=t._keyToDOMMap;i.clear(),t._editorState=Mu(),t._pendingEditorState=o,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function nce(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:i}=cl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(i){const a=i.$transform;a&&e.add(a),o=i.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof fn&&a!==fn?a:void 0}}return e}function oce(t){const e=t||{},n=Xle(),o=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Mu(),l=e.namespace||(i!==null?i._config.namespace:Rh()),c=e.editorState,u=[us,xo,as,ls,ds,Lu,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<u.length;g++){let y=u[g],C=null,_=null;if(typeof y!="function"){const w=y;y=w.replace,C=w.with,_=w.withKlass||null}cl(y);const v=y.getType(),b=nce(y);m.set(v,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:_,sharedNodeState:gle(u[g]),transforms:b})}}const h=new tr(a,i,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const C=new Map,_=new Set,v=b=>{Object.keys(b).forEach(w=>{let k=C.get(w);k===void 0&&(k=[],C.set(w,k)),k.push(b[w])})};return g.forEach(b=>{const w=b.klass.importDOM;if(w==null||_.has(w))return;_.add(w);const k=w.call(b.klass);k!==null&&v(k)}),y&&v(y),C}(m,f?f.import:void 0),p,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class tr{constructor(e,n,o,i,s,a,l,c){q(this,"_headless");q(this,"_parentEditor");q(this,"_rootElement");q(this,"_editorState");q(this,"_pendingEditorState");q(this,"_compositionKey");q(this,"_deferred");q(this,"_keyToDOMMap");q(this,"_updates");q(this,"_updating");q(this,"_listeners");q(this,"_commands");q(this,"_nodes");q(this,"_decorators");q(this,"_pendingDecorators");q(this,"_config");q(this,"_dirtyType");q(this,"_cloneNotNeeded");q(this,"_dirtyLeaves");q(this,"_dirtyElements");q(this,"_normalizedNodes");q(this,"_updateTags");q(this,"_observer");q(this,"_key");q(this,"_onError");q(this,"_htmlConversions");q(this,"_window");q(this,"_editable");q(this,"_blockCursorElement");q(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=o,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Rh(),this._onError=s,this._htmlConversions=a,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&G(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);s===void 0&&G(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&i.delete(e)}}registerMutationListener(e,n,o){const i=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(i);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,i),()=>{a.delete(i),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&G(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,i=Vf(o).get(n.getType());if(!i)return;const s=new Map;for(const a of i.keys())s.set(a,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:o,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const o=this.getRegisteredNode(e);return o.transforms.add(n),o}registerNodeTransform(e,n){const o=this.registerNodeTransformToKlass(e,n),i=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);i.push(a)}return function(a,l){const c=Vf(a.getEditorState()),u=[];for(const d of l){const f=c.get(d);f&&u.push(f)}u.length!==0&&a.update(()=>{for(const d of u)for(const f of d.keys()){const p=it(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Mi}:void 0)}(this,i.map(a=>a.klass.getType())),()=>{i.forEach(a=>a.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return ie(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Nr(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,$h(this,n,e,i),n!==null&&(this._config.disableEvents||Ole(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Hu(e),a=e.style;a.userSelect="text",a.whiteSpace="pre-wrap",a.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=2,Fm(this),this._updateTags.add(Mi),qn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Nc.set(l,u);const d=fa.get(u)??0;d<1&&u.addEventListener("selectionchange",hh),fa.set(u,d+1),l.__lexicalEditor=c;const f=mh(l);for(let p=0;p<Tc.length;p++){const[m,h]=Tc[p],g=typeof h=="function"?y=>{af(y)||(sf(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(af(y))return;sf(y);const C=c.isEditable();switch(m){case"cut":return C&&ie(c,Nu,y);case"copy":return ie(c,Qa,y);case"paste":return C&&ie(c,xu,y);case"dragstart":return C&&ie(c,sh,y);case"dragover":return C&&ie(c,ah,y);case"dragend":return C&&ie(c,Nle,y);case"focus":return C&&ie(c,Ble,y);case"blur":return C&&ie(c,Mle,y);case"drop":return C&&ie(c,ih,y)}};l.addEventListener(m,g),f.push(()=>{l.removeEventListener(m,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Mi),qn(this);Li("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&G(38);let o=e;o._readOnly&&(o=Nh(e),o._selection=e._selection?e._selection.clone():null),Pm(this);const i=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;i===null||i.isEmpty()||(a!=null&&s.add(a),qn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||qn(this)}parseEditorState(e,n){return function(o,i,s){const a=Mu(),l=ut,c=Mt,u=dt,d=i._dirtyElements,f=i._dirtyLeaves,p=i._cloneNotNeeded,m=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,ut=a,Mt=!1,dt=i,Ou(null);try{const h=i._nodes;Bu(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&i._onError(h)}finally{i._dirtyElements=d,i._dirtyLeaves=f,i._cloneNotNeeded=p,i._dirtyType=m,ut=l,Mt=c,dt=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return qn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,i,s){o._updating?o._updates.push([i,s]):ol(o,i,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),zt(this,()=>{const i=ee(),s=Ze();i!==null?i.dirty||_t(i.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),cce("focus"),uce(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=mn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Li("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}q(tr,"version");tr.version="0.38.1+prod.esm";let Oc=null;function Ou(t){Oc=t}let rce=1;function Bh(t,e){const n=Vu(t,e);return n===void 0&&G(30,e),n}function Vu(t,e){return t._nodes.get(e)}const ice=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Tf(t){return Ae(Ur(t))}function Iu(t){const e=document.activeElement;if(!tt(e))return!1;const n=e.nodeName;return Ae(Ur(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&il(e)==null)}function ps(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Iu(e)&&Mh(e)===t}catch{return!1}}function Pu(t){return t instanceof tr}function Mh(t){let e=t;for(;e!=null;){const n=il(e);if(Pu(n))return n;e=ms(e)}return null}function il(t){return t?t.__lexicalEditor:null}function Wo(t){return el(t)||t.isToken()}function Un(t){return Wo(t)||t.isSegmented()}function eo(t){return Xr(t)&&t.nodeType===3}function Lh(t){return Xr(t)&&t.nodeType===9}function zr(t){let e=t;for(;e!=null;){if(eo(e))return e;e=e.firstChild}return null}function va(t,e,n){const o=xt[e];if(n!==null&&(t&o)===(n&o))return t;let i=t^o;return e==="subscript"?i&=~xt.superscript:e==="superscript"?i&=~xt.subscript:e==="lowercase"?(i&=~xt.uppercase,i&=~xt.capitalize):e==="uppercase"?(i&=~xt.lowercase,i&=~xt.capitalize):e==="capitalize"&&(i&=~xt.lowercase,i&=~xt.uppercase),i}function Oh(t){return X(t)||ho(t)||Ae(t)}function sce(t,e){const n=function(){const a=Oc;return Oc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);ct(),Sh();const o=We(),i=Ao(),s=""+rce++;i._nodeMap.set(s,t),U(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=i!==null?i.__key:null,c=i!==null?i.getWritable():null,u=s!==null?s.getWritable():null;i===null&&(o.__first=a),s===null&&(o.__last=l),c!==null&&(c.__next=a),u!==null&&(u.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function _a(t){Sh(),pa(t)&&G(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=Ao(),i=We(),s=o._nodeMap,a=i._dirtyElements;n!==null&&function(c,u,d){let f=c;for(;f!==null;){if(d.has(f))return;const p=u.get(f);if(p===void 0)break;d.set(f,!1),f=p.__parent}}(n,s,a);const l=e.__key;i._dirtyType=1,U(t)?a.set(l,!0):i._dirtyLeaves.add(l)}function pt(t){ct();const e=We(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=it(n);o!==null&&o.getWritable()}if(t!==null){const o=it(t);o!==null&&o.getWritable()}}}function fo(){return cs()?null:We()._compositionKey}function it(t,e){const n=(e||Ao())._nodeMap.get(t);return n===void 0?null:n}function Vh(t,e){const n=sl(t,We());return n!==void 0?it(n,e):null}function sl(t,e){return t[`__lexicalKey_${e._key}`]}function Ur(t,e){let n=t;for(;n!=null;){const o=Vh(n,e);if(o!==null)return o;n=ms(n)}return null}function Ih(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Nf(t){return t.read(()=>Ze().getTextContent())}function Ze(){return Ph(Ao())}function Ph(t){return t._nodeMap.get("root")}function _t(t){ct();const e=Ao();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function wr(t){const e=We(),n=function(o,i){let s=o;for(;s!=null;){const a=sl(s,i);if(a!==void 0)return a;s=ms(s)}return null}(t,e);return n===null?t===e.getRootElement()?it("root"):null:it(n)}function Fh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Fu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Rh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function zh(t){return eo(t)?t.nodeValue:null}function Ru(t,e,n){const o=mn(nn(e));if(o===null)return;const i=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(i!==null){let l=zh(i);const c=Ur(i);if(l!==null&&X(c)){if(l===Ja&&n){const u=n.length;l=n,s=u,a=u}l!==null&&zu(c,l,s,a,t)}}}function zu(t,e,n,o,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const a=s.isComposing();let l=e;(a||i)&&e[e.length-1]===Ja&&(l=e.slice(0,-1));const c=s.getTextContent();if(i||l!==c){if(l===""){if(pt(null),qi||Rr||ji)s.remove();else{const g=We();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Jr(),f=s.getTextContentSize(),p=fo(),m=s.getKey();if(s.isToken()||p!==null&&m===p&&!a||K(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===t.__key&&d.anchor.offset===0&&!s.canInsertTextBefore()&&!a||d.focus.key===t.__key&&d.focus.offset===f&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const h=ee();if(!K(h)||n===null||o===null)return void Df(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ge(s.getTextContent());s.replace(g),s=g}Df(s,l,h)}}}function Df(t,e,n){if(t.setTextContent(e),K(n)){const o=t.getKey();for(const i of["anchor","focus"]){const s=n[i];s.type==="text"&&s.key===o&&(s.offset=vo(t,s.offset,"clamp"))}}}function Fs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function ace(t,e){return Fs(t,e,"altKey")&&Fs(t,e,"ctrlKey")&&Fs(t,e,"shiftKey")&&Fs(t,e,"metaKey")}function Le(t,e,n){return ace(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const zn={ctrlKey:!cn,metaKey:cn},$f={altKey:cn,ctrlKey:!cn};function Bf(t){return t.key==="Backspace"}function Mf(t){return Le(t,"a",zn)}function lce(t){const e=Ze();if(K(t)){const n=t.anchor,o=t.focus,i=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(i.getKey(),0,"element"),o.set(i.getKey(),i.getChildrenSize(),"element"),sa(t),t}{const n=e.select(0,e.getChildrenSize());return _t(sa(n)),n}}function Nr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const i=t[e];if(typeof i=="string"){const s=Lm(i);return n[e]=s,s}return i}function Uu(t,e,n,o,i){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&G(33,s);const c=l.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(a),f=d==="destroyed"&&i==="created";(d===void 0||f)&&u.set(a,f?"updated":i)}function Lf(t,e,n){const o=t.getParent();let i=n,s=t;return o!==null&&(e&&n===0?(i=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?i-1:i)}function Vc(t,e){const n=t.offset;if(t.type==="element")return Lf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const i=e?o.getPreviousSibling():o.getNextSibling();return i===null?Lf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):i}}return null}function Uh(t){const e=nn(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(t,e,n){return function(o,i,s){const a=Fu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(i);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),m=p.length;let h=!1;if(zt(u,()=>{for(let g=0;g<m;g++)if(p[g](s,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function al(t){return!Qe(t)&&!t.isLastChild()&&!t.isInline()}function nr(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&G(75,e),n}function ms(t){const e=t.assignedSlot||t.parentElement;return Fc(e)?e.host:e}function Hh(t){return Lh(t)?t:tt(t)?t.ownerDocument:null}function cce(t){ct(),We()._updateTags.add(t)}function uce(t){ct(),We()._deferred.push(t)}function Ic(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Hu(t){const e=Hh(t);return e?e.defaultView:null}function nn(t){const e=t._window;return e===null&&G(78),e}function dce(t){let e=t.getParentOrThrow();for(;e!==null;){if(At(e))return e;e=e.getParentOrThrow()}return e}function At(t){return Qe(t)||U(t)&&t.isShadowRoot()}function _n(t){const e=We(),n=t.getType(),o=Vu(e,n);o===void 0&&G(200,t.constructor.name,n);const{replace:i,replaceWithKlass:s}=o;if(i!==null){const a=i(t),l=a.constructor;return s!==null?a instanceof s||G(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||G(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&G(203,t.constructor.name,n,l.name,l.getType()),a}return t}function ec(t,e){!Qe(t.getParent())||U(e)||Ae(e)||G(99)}function fce(t){const e=it(t);return e===null&&G(63,t),e}function tc(t){return(Ae(t)||U(t)&&!t.canBeEmpty())&&!t.isInline()}function Pc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function mn(t){return vn?(t||window).getSelection():null}function pce(t){const e=Hu(t);return e?e.getSelection():null}function qh(t){return tt(t)&&t.tagName==="A"}function tt(t){return Xr(t)&&t.nodeType===1}function Xr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Fc(t){return Xr(t)&&t.nodeType===11}function Rc(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function ya(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Gt(t){if(Ae(t)&&!t.isInline())return!0;if(!U(t)||At(t))return!1;const e=t.getFirstChild(),n=e===null||ho(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function ll(){return We()}const Of=new WeakMap,mce=new Map;function Vf(t){if(!t._readOnly&&t.isEmpty())return mce;t._readOnly||G(192);let e=Of.get(t);return e||(e=function(n){const o=new Map;for(const[i,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(i,s)}return o}(t),Of.set(t,e)),e}function jh(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function hce(t){return(e=jh(t))[gh]=!0,e;var e}function qu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function gce(t){return t.__lexicalUnmanaged===!0}function ki(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==fn[e]}function cl(t){const e=W1 in t.prototype?t.prototype[W1]():void 0,n=function(a){if(!(a===fn||a.prototype instanceof fn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{tr.version&&(c=JSON.parse(tr.version))}catch{}G(290,a.name,l,c)}return a===Th||a===jt||a===fn}(t),o=!n&&ki(t,"getType")?t.getType():void 0;let i,s=o;if(e)if(o)i=e[o];else for(const[a,l]of Object.entries(e))s=a,i=l;if(!n&&s&&(ki(t,"getType")||(t.getType=()=>s),ki(t,"clone")||(t.clone=a=>(Ou(a),new t)),ki(t,"importJSON")||(t.importJSON=i&&i.$importJSON||(a=>new t().updateFromJSON(a))),!ki(t,"importDOM")&&i)){const{importDOM:a}=i;a&&(t.importDOM=()=>a)}return{ownNodeConfig:i,ownNodeType:s}}function vce(t){const e=ll();return ct(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const Qt=(t,e)=>{let n=t;for(;n!=null&&!Qe(n);){if(e(n))return n;n=n.getParent()}return null},_ce={next:"previous",previous:"next"};class ju{constructor(e){q(this,"origin");this.origin=e}[Symbol.iterator](){return Wh({hasNext:Hr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return ht(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return ht(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const i=o===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),l=new Map;for(let c=s.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();l.set(u.getKey(),u)}for(const c of i){if(l.size>0){const u=s.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(a)&&c.remove(),u.replace(c)}}else u===null&&G(263,Array.from(l).join(" "))}else s.insert(c);s=ht(c,this.direction)}for(const c of l.values())c.remove();return this}}class Ji extends ju{constructor(){super(...arguments);q(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:hn(n,this.direction)}getParentCaret(n="root"){return ht(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Qr(this.direction);return ht(this.getNodeAtCaret(),n)||hn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Ji&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const yce={root:Qe,shadowRoot:At};function Qr(t){return _ce[t]}function Wu(t,e="root"){return yce[e](t)?null:t}class or extends ju{constructor(){super(...arguments);q(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:ht(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return U(this.origin)?hn(this.origin,this.direction):null}getParentCaret(n="root"){return ht(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Qr(this.direction);return ht(this.getNodeAtCaret(),n)||hn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof or&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof or||n instanceof rr)&&this.direction===n.direction&&this.origin.is(n.origin)}}class rr extends ju{constructor(n,o){super(n);q(this,"type","text");q(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:ir(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return ht(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return ir(this.origin,Qr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof rr&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof or||n instanceof rr)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return ht(this.origin,this.direction)}}function go(t){return t instanceof rr}function Hr(t){return t instanceof or}function Dn(t){return t instanceof Ji}const Cce={next:class extends rr{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends rr{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},bce={next:class extends or{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends or{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},kce={next:class extends Ji{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ji{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function ht(t,e){return t?new bce[e](t):null}function ir(t,e,n){return t?new Cce[e](t,vo(t,n)):null}function vo(t,e,n="error"){const o=t.getTextContentSize();let i=e==="next"?o:e==="previous"?0:e;return(i<0||i>o)&&(n!=="clamp"&&Bm(284,String(e),String(o),t.getKey()),i=i<0?0:o),i}function If(t,e){return new Ece(t,e)}function hn(t,e){return U(t)?new kce[e](t):null}function wce(t){return t&&t.getChildCaret()||t}function Zu(t){return t&&wce(t.getAdjacentCaret())}class Ku{constructor(e,n,o){q(this,"type","node-caret-range");q(this,"direction");q(this,"anchor");q(this,"focus");this.anchor=e,this.focus=n,this.direction=o}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new Ku(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i].getLatest();return go(s)?function(a,l){const{direction:c,origin:u}=a,d=vo(u,l==="focus"?Qr(c):c);return If(a,d-a.offset)}(s,i):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:i}=n,{caret:s}=o;if(i.isSameNodeCaret(s))return[If(i,s.offset-i.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=go(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),i=go(o),s=a=>a.isSameNodeCaret(o)?null:Zu(a)||a.getParentCaret(e);return Wh({hasNext:a=>a!==null&&!(i&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Ece{constructor(e,n){q(this,"type","slice");q(this,"caret");q(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,i]=this.getSliceIndices(),s=e.getTextContent();return ir(e.setTextContent(s.slice(0,o)+s.slice(i)),n,o)}}function Gu(t){return ko(t,ht(Ze(),t.direction))}function Sce(t){return ko(t,t)}function ko(t,e){return t.direction!==e.direction&&G(265),new Ku(t,e,t.direction)}function Wh(t){const{initial:e,hasNext:n,step:o,map:i}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:i(s)};return s=o(s),a}}}function Zh(t,e){const n=Ks(t.origin,e.origin);switch(n===null&&G(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",i=e.type==="text";return o&&i?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:i?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Kh(n)}}function Kh(t){const{a:e,b:n}=t,o=e.__key,i=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===i)return-1;if(a.__key===o)return 1}return s===null?1:-1}function Rs(t,e){return e.is(t)}function Pf(t){return U(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Ks(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,i]=Pf(t);o;i=o,o=o.getParent())n.set(o,i);for(let[o,i]=Pf(e);o;i=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Rs(t,o)||G(276),{commonAncestor:o,type:"ancestor"}):i===null?(Rs(e,o)||G(277),{commonAncestor:o,type:"descendant"}):((U(s)||Rs(t,s))&&(U(i)||Rs(e,i))&&o.is(s.getParent())&&o.is(i.getParent())||G(278),{a:s,b:i,commonAncestor:o,type:"branch"})}return null}function Yn(t,e){const{type:n,key:o,offset:i}=t,s=fce(t.key);return n==="text"?(X(s)||G(266,s.getType(),o),ir(s,e,i)):(U(s)||G(267,s.getType(),o),Tce(s,t.offset,e))}function sr(t,e){const{origin:n,direction:o}=e,i=o==="next";go(e)?t.set(n.getKey(),e.offset,"text"):Hr(e)?X(n)?t.set(n.getKey(),vo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):(Dn(e)&&U(n)||G(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function xce(t){const e=ee(),n=K(e)?e:nl();return Gs(n,t),_t(n),n}function Gs(t,e){sr(t.anchor,e.anchor),sr(t.focus,e.focus)}function Ff(t){const{anchor:e,focus:n}=t,o=Yn(e,"next"),i=Yn(n,"next"),s=Zh(o,i)<=0?"next":"previous";return ko(qr(o,s),qr(i,s))}function Yu(t){const{direction:e,origin:n}=t,o=ht(n,Qr(e)).getNodeAtCaret();return o?ht(o,e):hn(n.getParentOrThrow(),e)}function Rf(t,e="root"){const n=[t];for(let o=Dn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Yu(o));return n}function nc(t){return!!t&&t.origin.isAttached()}function Ace(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let i=e;const s=Yh(t,o),a=Rf(s.anchor,n),l=Rf(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(Dn(h))c.add(h.origin.getKey());else if(Hr(h)){const{origin:g}=h;U(g)&&!c.has(g.getKey())||u.push(g)}for(const h of u)h.remove();for(const h of s.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,y=g.getTextContentSize(),C=Yu(ht(g,o)),_=g.getMode();if(Math.abs(h.distance)===y&&i==="removeEmptySlices"||_==="token"&&h.distance!==0)C.remove();else if(h.distance!==0){i="removeEmptySlices";let v=h.removeTextSlice();const b=h.caret.origin;if(_==="segmented"){const w=v.origin,k=Ge(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(k),v=ir(k,o,v.offset)}b.is(a[0].origin)&&(a[0]=v),b.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,f;for(const h of a)if(nc(h)){d=Jt(h);break}for(const h of l)if(nc(h)){f=Jt(h);break}const p=function(h,g,y){if(!h||!g)return null;const C=h.getParentAtCaret(),_=g.getParentAtCaret();if(!C||!_)return null;const v=C.getParents().reverse();v.push(C);const b=_.getParents().reverse();b.push(_);const w=Math.min(v.length,b.length);let k;for(k=0;k<w&&v[k]===b[k];k++);const T=(E,D)=>{let x;for(let $=k;$<E.length;$++){const B=E[$];if(At(B))return;!x&&D(B)&&(x=B)}return x},A=T(v,Gt),S=A&&T(b,E=>y.has(E.getKey())&&Gt(E));return A&&S?[A,S]:null}(d,f,c);if(p){const[h,g]=p;hn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(nc);if(m)return Sce(qr(Jt(m),t.direction));G(269,JSON.stringify(a.map(h=>h.origin.__key)))}function Jt(t){const e=function(i){let s=i;for(;Dn(s);){const a=Zu(s);if(!Dn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return go(e)?e:ir(e.origin,n,n);const o=e.getAdjacentCaret();return Hr(o)&&X(o.origin)?ir(o.origin,n,Qr(n)):e}function Gh(t){return go(t)&&t.offset!==vo(t.origin,t.direction)}function qr(t,e){return t.direction===e?t:t.getFlipped()}function Yh(t,e){return t.direction===e?t:ko(qr(t.focus,e),qr(t.anchor,e))}function Tce(t,e,n){let o=hn(t,"next");for(let i=0;i<e;i++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return qr(o,n)}const zc=new Map;function Jh(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[i,s]=o.split(/:([^]+)/);i&&s&&(e[i.trim()]=s.trim())}return e}function zf(t){let e=zc.get(t);return e===void 0&&(e=Jh(t),zc.set(t,e)),e}function Xh(t){const e=ll().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function Qh(t){return Xh(Qe(t)?t:t.getParentOrThrow())}function Uf(t){const e=Qh(t);return e!==null&&e.direction==="rtl"}function eg(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Un(e)&&o!==null){const[i,s]=o,a=t.isBackward(),l=i.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[f,p]=Mc(t),m=l.is(c),h=e.is(a?c:l),g=e.is(a?l:c);let y,C=0;m?(C=f>p?p:f,y=f>p?f:p):h?(C=a?p:f,y=void 0):g&&(C=0,y=a?f:p);const _=e.__text.slice(C,y);_!==e.__text&&(n==="clone"&&(e=hce(e)),e.__text=_)}}return e}function Nce(t){const e=t.getStyle(),n=Jh(e);zc.set(e,n)}function Dce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function oc(t,e,n=Dce){if(t===null)return;const o=t.getStartEndPoints(),i=new Map;let s=null;if(o){const[a,l]=o;s=nl(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=Qt(a.getNode(),Gt),u=Qt(l.getNode(),Gt);U(c)&&i.set(c.getKey(),c),U(u)&&i.set(u.getKey(),u)}for(const a of t.getNodes())if(U(a)&&Gt(a))i.set(a.getKey(),a);else if(o===null){const l=Qt(a,Gt);U(l)&&i.set(l.getKey(),l)}for(const[a,l]of i){const c=e();n(l,c),l.replace(c,!0),s&&(a===s.anchor.key&&s.anchor.set(c.getKey(),s.anchor.offset,s.anchor.type),a===s.focus.key&&s.focus.set(c.getKey(),s.focus.offset,s.focus.type))}s&&t.is(ee())&&_t(s)}function tg(t){const e=ng(t);return e!==null&&e.writingMode==="vertical-rl"}function ng(t){const e=t.anchor.getNode();return U(e)?Xh(e):Qh(e)}function Hf(t,e){let n=tg(t)?!e:e;og(t)&&(n=!n);const o=Yn(t.focus,n?"previous":"next");if(Gh(o))return!1;for(const i of Gu(o)){if(Dn(i))return!i.origin.isInline();if(!U(i.origin)){if(Ae(i.origin))return!0;break}}return!1}function $ce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function og(t){const e=ng(t);return e!==null&&e.direction==="rtl"}function qf(t,e,n){const o=og(t);let i;i=tg(t)||o?!n:n,$ce(t,e,i,"character")}function Bce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ju=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Mce=Ju&&"documentMode"in document?document.documentMode:null;!(!Ju||!("InputEvent"in window)||Mce)&&"getTargetRanges"in new window.InputEvent("input");function rg(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}function hs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const Lce=Ju;function Jn(t,...e){const n=rg(...e);n.length>0&&t.classList.add(...n)}function Xu(t,...e){const n=rg(...e);n.length>0&&t.classList.remove(...n)}function Oce(t){return t?t.getAdjacentCaret():null}function Vce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Ice(t){const e=Qt(t,n=>U(n)&&!n.isInline());return U(e)||Bce(4,t.__key),e}function zo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function po(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Uc(t){let e=1,n=t.getParent();for(;n!=null;){if(Te(n)){const o=n.getParent();if(ge(o)){e++,n=o.getParent();continue}po(40)}return e}return e}function Hc(t){let e=t.getParent();ge(e)||po(40);let n=e;for(;n!==null;)n=n.getParent(),ge(n)&&(e=n);return e}function ig(t){let e=[];const n=t.getChildren().filter(Te);for(let o=0;o<n.length;o++){const i=n[o],s=i.getFirstChild();ge(s)?e=e.concat(ig(s)):e.push(i)}return e}function xn(t){return Te(t)&&ge(t.getFirstChild())}function jf(t){return Wt().append(t)}function sg(t,e){return Te(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Wf(t){const e=ee();if(e!==null){let n=e.getNodes();if(K(e)){const i=e.getStartEndPoints();i===null&&po(143);const[s]=i,a=s.getNode(),l=a.getParent();if(At(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=ze();a.append(u),n=u.select().getNodes()}}else if(sg(a,n)){const c=Lt(t);if(At(l)){a.replace(c);const u=Wt();U(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(Te(a)){const u=a.getParentOrThrow();ar(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let i=0;i<n.length;i++){const s=n[i];if(U(s)&&s.isEmpty()&&!Te(s)&&!o.has(s.getKey())){Zf(s,t);continue}let a=Oh(s)?s.getParent():Te(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ge(a)){if(!o.has(l)){const c=Lt(t);ar(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(At(c)&&!o.has(l)){o.add(l),Zf(a,t);break}a=c}}}}}function ar(t,e){t.splice(t.getChildrenSize(),0,e)}function Zf(t,e){if(ge(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),i=Wt();let s;if(ar(i,t.getChildren()),ge(n)&&e===n.getListType())n.append(i),ge(o)&&e===o.getListType()&&(ar(n,o.getChildren()),o.remove()),s=n;else if(ge(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(i),s=o;else{const a=Lt(e);a.append(i),t.replace(a),s=a}return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),t.remove(),s}function Qu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&xn(n)&&xn(o)&&(Qu(n.getFirstChild(),o.getFirstChild()),o.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function Pce(){const t=ee();if(K(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(sg(o,n))e.add(Hc(o));else for(let i=0;i<n.length;i++){const s=n[i];if(Oh(s)){const a=Vce(s,To);a!=null&&e.add(Hc(a))}}for(const i of e){let s=i;const a=ig(i);for(const l of a){const c=ze().setTextStyle(t.style).setTextFormat(t.format);ar(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&sr(t.anchor,Jt(hn(c,"next"))),l.__key===t.focus.key&&sr(t.focus,Jt(hn(c,"next"))),l.remove()}i.remove()}}}function ag(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())Te(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ge(o.getFirstChild())||n++)}function Fce(t){const e=new Set;if(xn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),i=t.getPreviousSibling();if(xn(o)&&xn(i)){const s=i.getFirstChild();if(ge(s)){s.append(t);const a=o.getFirstChild();ge(a)&&(ar(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(xn(o)){const s=o.getFirstChild();if(ge(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(xn(i)){const s=i.getFirstChild();ge(s)&&s.append(t)}else if(ge(n)){const s=Wt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Lt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),i?i.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function Rce(t){if(xn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ge(n?n.getParent():void 0)&&Te(n)&&ge(e)){const o=e?e.getFirstChild():void 0,i=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(i))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=Wt(),l=Lt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=Wt(),u=Lt(s);c.append(u),ar(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function zce(){const t=ee();if(!K(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!Te(e)||e.getChildrenSize()!==0)return!1;const n=Hc(e),o=e.getParent();ge(o)||po(40);const i=o.getParent();let s;if(At(i))s=ze(),n.insertAfter(s);else{if(!Te(i))return!1;s=Wt(),i.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Lt(o.getListType());if(Te(s)){const c=Wt();c.append(l),s.insertAfter(c)}else s.insertAfter(l);l.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const u=c.getParent();if(u==null||!Te(u)&&!ge(u))break;c=u}c.remove()}(e),!0}function Ca(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let To=class extends jt{constructor(n=1,o=void 0,i){super(i);q(this,"__value");q(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();ge(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:jt,importDOM:{li:()=>({conversion:Uce,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,i){(function(l,c,u){const d=c.getParent();!ge(d)||d.getListType()!=="check"||ge(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&c.__checked===u.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,u){const d=[],f=[],p=c.list,m=p?p.listitem:void 0;let h;if(p&&p.nested&&(h=p.nested.listitem),m!==void 0&&d.push(...Ca(m)),p){const g=u.getParent(),y=ge(g)&&g.getListType()==="check",C=u.getChecked();y&&!C||f.push(p.listitemUnchecked),y&&C||f.push(p.listitemChecked),y&&d.push(C?p.listitemChecked:p.listitemUnchecked)}if(h!==void 0){const g=Ca(h);u.getChildren().some(y=>ge(y))?d.push(...g):f.push(...g)}f.length>0&&Xu(l,...f),d.length>0&&Jn(l,...d)}(o,i.theme,this);const s=n?n.__style:"",a=this.__style;s!==a&&(a===""?o.removeAttribute("style"):o.style.cssText=a),function(l,c,u){const d=zf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in zf(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(o,this,n)}updateDOM(n,o,i){const s=o;return this.updateListItemDOM(n,s,i),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),i=this.getFormatType();i&&(o.style.textAlign=i);const s=this.getDirection();return s&&(o.dir=s),{element:o}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let o=0;o<n.length;o++){const i=n[o];if(U(i)&&this.canMergeWith(i)){const s=i.getChildren();this.append(...s),i.remove()}else super.append(i)}return this}replace(n,o){if(Te(n))return super.replace(n);this.setIndent(0);const i=this.getParentOrThrow();if(!ge(i))return n;if(i.__first===this.getKey())i.insertBefore(n);else if(i.__last===this.getKey())i.insertAfter(n);else{const s=Lt(i.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}i.insertAfter(n),n.insertAfter(s)}return o&&(U(n)||po(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),i.getChildrenSize()===0&&i.remove(),n}insertAfter(n,o=!0){const i=this.getParentOrThrow();if(ge(i)||po(39),Te(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(i.insertAfter(n,o),s.length!==0){const a=Lt(i.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),i=this.getNextSibling();super.remove(n),o&&i&&xn(o)&&xn(i)&&(Qu(o.getFirstChild(),i.getFirstChild()),i.remove())}insertNewAfter(n,o=!0){const i=Wt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(i,o),i}collapseAtStart(n){const o=ze();this.getChildren().forEach(l=>o.append(l));const i=this.getParentOrThrow(),s=i.getParentOrThrow(),a=Te(s);if(i.getChildrenSize()===1)if(a)i.remove(),s.select();else{i.insertBefore(o),i.remove();const l=n.anchor,c=n.focus,u=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else i.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const i=this.getParent();return ge(i)&&(o=i.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),i=0;for(;Te(o);)o=o.getParentOrThrow().getParentOrThrow(),i++;return i}setIndent(n){typeof n!="number"&&po(117),(n=Math.floor(n))>=0||po(199);let o=this.getIndent();for(;o!==n;)o<n?(Fce(this),o++):(Rce(this),o--);return this}canInsertAfter(n){return Te(n)}canReplaceWith(n){return Te(n)}canMergeWith(n){return Te(n)||fs(n)}extractWithChild(n,o){if(!K(o))return!1;const i=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Lt("bullet")}canMergeWhenEmpty(){return!0}};function Uce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Kf(n)}if(t.classList.contains("joplin-checkbox")){for(const n of t.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return Kf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:Wt(e==="true"||e!=="false"&&void 0)}}function Kf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:Wt(t.hasAttribute("checked"))}}function Wt(t){return _n(new To(void 0,t))}function Te(t){return t instanceof To}let cr=class extends jt{constructor(n="number",o=1,i){super(i);q(this,"__tag");q(this,"__start");q(this,"__listType");const s=qce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const i=o.getNextSibling();ge(i)&&o.getListType()===i.getListType()&&Qu(o,i)})(n),ag(n)},extends:jt,importDOM:{ol:()=>({conversion:Yf,priority:0}),ul:()=>({conversion:Yf,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const i=this.__tag,s=document.createElement(i);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Gf(s,n.theme,this),s}updateDOM(n,o,i){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Gf(o,i.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return tt(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,i){let s=i;for(let a=0;a<i.length;a++){const l=i[a];Te(l)||(s===i&&(s=[...i]),s[a]=Wt().append(!U(l)||ge(l)||l.isInline()?l:Ge(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return Te(n)}};function Gf(t,e,n){const o=[],i=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Uc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,m=s.checklist;if(p!==void 0&&p.list&&(f=p.list),d!==void 0&&o.push(d),m!==void 0&&n.__listType==="check"&&o.push(m),u!==void 0){o.push(...Ca(u));for(let h=0;h<a.length;h++)h!==c&&i.push(n.__tag+h)}if(f!==void 0){const h=Ca(f);l>1?o.push(...h):i.push(...h)}}i.length>0&&Xu(t,...i),o.length>0&&Jn(t,...o)}function Hce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(Te(o)){e.push(o);const i=o.getChildren();i.length>1&&i.forEach(s=>{ge(s)&&e.push(jf(s))})}else e.push(jf(o))}return e}function Yf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Lt("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const i of o.childNodes)if(tt(i)&&i.hasAttribute("aria-checked"))return!0;return!1}(t)?Lt("check"):Lt("bullet")),{after:Hce,node:n}}const qce={ol:"number",ul:"bullet"};function Lt(t="number",e=1){return _n(new cr(t,e))}function ge(t){return t instanceof cr}const jce=me("UPDATE_LIST_START_COMMAND"),lg=me("INSERT_UNORDERED_LIST_COMMAND"),cg=me("INSERT_ORDERED_LIST_COMMAND"),Wce=me("REMOVE_LIST_COMMAND");function Zce(t){return hs(t.registerCommand(cg,()=>(Wf("number"),!0),bi),t.registerCommand(jce,e=>{const{listNodeKey:n,newStart:o}=e,i=it(n);return!!ge(i)&&(i.getListType()==="number"&&(i.setStart(o),ag(i)),!0)},bi),t.registerCommand(lg,()=>(Wf("bullet"),!0),bi),t.registerCommand(Wce,()=>(Pce(),!0),bi),t.registerCommand(Ki,()=>zce(),bi),t.registerNodeTransform(To,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),i=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==i&&e.setTextFormat(i)}}else{const o=ee();K(o)&&(o.style!==e.getTextStyle()||o.format!==e.getTextFormat())&&o.isCollapsed()&&e.is(o.anchor.getNode())&&e.setTextStyle(o.style).setTextFormat(o.format)}}),t.registerNodeTransform(xo,e=>{const n=e.getParent();if(Te(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),i=e.getFormat();o===n.getTextStyle()&&i===n.getTextFormat()||n.setTextStyle(o).setTextFormat(i)}}))}function Kce(t){const e=n=>{const o=n.getParent();if(ge(n.getFirstChild())||!ge(o))return;const i=Qt(n,s=>Te(s)&&ge(s.getParent())&&Te(s.getPreviousSibling()));if(i===null&&n.getIndent()>0)n.setIndent(0);else if(Te(i)){const s=i.getPreviousSibling();if(Te(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ge(d);){const f=d.getLastChild();if(!Te(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ge(l)){const c=Uc(l);c+1<Uc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(cr,n=>{const o=[n];for(;o.length>0;){const i=o.shift();if(ge(i)){for(const s of i.getChildren())if(Te(s)){e(s);const a=s.getFirstChild();ge(a)&&o.push(a)}}}})}function Gce(t,e){const n=Lh(e)?e.body.childNodes:e.childNodes;let o=[];const i=[];for(const s of n)if(!dg.has(s.nodeName)){const a=fg(s,t,i,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Lu&&a.insertAfter(pn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(i),o}function Yce(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=Ze().getChildren();for(let i=0;i<o.length;i++)ug(t,o[i],n,e);return n.innerHTML}function ug(t,e,n,o=null){let i=o===null||e.isSelected(o);const s=U(e)&&e.excludeFromCopy("html");let a=e;o!==null&&X(e)&&(a=eg(o,e,"clone"));const l=U(a)?a.getChildren():[],c=Vu(t,a.getType());let u;u=c&&c.exportDOM!==void 0?c.exportDOM(t,a):a.exportDOM(t);const{element:d,after:f}=u;if(!d)return!1;const p=document.createDocumentFragment();for(let m=0;m<l.length;m++){const h=l[m],g=ug(t,h,p,o);!i&&U(e)&&g&&e.extractWithChild(h,o,"html")&&(i=!0)}if(i&&!s){if((tt(d)||Fc(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Fc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return i}const dg=new Set(["STYLE","SCRIPT"]);function fg(t,e,n,o,i=new Map,s){let a=[];if(dg.has(t.nodeName))return a;let l=null;const c=function(h,g){const{nodeName:y}=h,C=g._htmlConversions.get(y.toLowerCase());let _=null;if(C!==void 0)for(const v of C){const b=v(h);b!==null&&(_===null||(_.priority||0)<=(b.priority||0))&&(_=b)}return _!==null?_.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const h=u.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,g]of i)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&i.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const m=(l==null||!At(l))&&(l!=null&&Lc(l)||o);for(let h=0;h<f.length;h++)p.push(...fg(f[h],e,n,m,new Map(i),l));return d!=null&&(p=d(p)),ya(t)&&(p=Jce(t,p,m?()=>{const h=new Lu;return n.push(h),h}:ze)),l==null?p.length>0?a=a.concat(p):ya(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Rc(h.nextSibling)&&Rc(h.previousSibling)}(t)&&(a=a.concat(pn())):U(l)&&l.append(...p),a}function Jce(t,e,n){const o=t.style.textAlign,i=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Lc(l))o&&!l.getFormat()&&l.setFormat(o),i.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Lc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),i.push(c),s=[]}}return i}function ba(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Xce(t,e=ee()){return e==null&&ba(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?"":Yce(t,e)}function Qce(t,e=ee()){return e==null&&ba(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(eue(t,e))}function Jf(t,e,n){const o=t.getData("application/x-lexical-editor");if(o)try{const l=JSON.parse(o);if(l.namespace===n._config.namespace&&Array.isArray(l.nodes))return Xf(n,tue(l.nodes),e)}catch(l){console.error(l)}const i=t.getData("text/html"),s=t.getData("text/plain");if(i&&s!==i)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(i),"text/html");return Xf(n,Gce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(K(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=ee();if(K(u)){const d=l[c];d===`
29
+ `?o.push(pn()):a===" "?o.push(Yr()):o.push(Ge(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,i=this.format,s=this.style;let a=n,l=o;!this.isCollapsed()&&o.isBefore(n)&&(a=o,l=n),a.type==="element"&&function(y,C,v,_){const b=y.getNode(),w=b.getChildAtIndex(y.offset),k=Ge();if(k.setFormat(v),k.setStyle(_),fs(w))w.splice(0,0,[k]);else{const A=Qe(b)?ze().append(k):k;w===null?b.append(A):w.insertBefore(A)}y.is(C)&&C.set(k.__key,0,"text"),y.set(k.__key,0,"text")}(a,l,i,s),l.type==="element"&&sr(l,Jt(Yn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||G(26);const m=p.getTextContent().length,h=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=m,l.set(a.key,u,"text")),this.isCollapsed()&&c===m&&(Un(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(X(y)&&y.canInsertTextBefore()&&!Un(y)||(y=Ge(),y.setFormat(i),y.setStyle(s),h.canInsertTextAfter()?p.insertAfter(y):h.insertAfter(y)),y.select(0,0),p=y,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Un(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(X(y)&&!Un(y)||(y=Ge(),y.setFormat(i),h.canInsertTextBefore()?p.insertBefore(y):h.insertBefore(y)),y.select(),p=y,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==m){const y=Ge(p.getTextContent());y.setFormat(i),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||U(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),bh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Wo(p)){const _=Ge(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===i&&C===s){if(el(p)){const _=Ge(e);return _.setFormat(i),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Ge(e);if(_.setFormat(i),_.setStyle(s),_.select(),c===0)p.insertBefore(_,!1);else{const[b]=p.splitText(c);b.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(i),p.setStyle(s)}const v=u-c;p=p.spliceText(c,v,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=y,this.style=C))}else{const y=new Set([...p.getParentKeys(),...g.getParentKeys()]),C=U(p)?p:p.getParentOrThrow();let v=U(g)?g:g.getParentOrThrow(),_=g;if(!C.is(v)&&v.isInline())do _=v,v=v.getParentOrThrow();while(v.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(X(g)&&!Wo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Ge(g.getTextContent());g.replace(T),g=T}Qe(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),y.add(g.__key)}else{const T=g.getParentOrThrow();T.canBeEmpty()||T.getChildrenSize()!==1?g.remove():T.remove()}else y.add(g.__key);const b=v.getChildren(),w=new Set(d),k=C.is(v),A=C.isInline()&&p.getNextSibling()===null?C:p;for(let T=b.length-1;T>=0;T--){const S=b[T];if(S.is(p)||U(S)&&S.isParentOf(p))break;S.isAttached()&&(!w.has(S)||S.is(_)?k||A.insertAfter(S,!1):S.remove())}if(!k){let T=v,S=null;for(;T!==null;){const E=T.getChildren(),D=E.length;(D===0||E[D-1].is(S))&&(y.delete(T.__key),S=T),T=T.getParent()}}if(Wo(p))if(c===m)p.select();else{const T=Ge(e);T.select(),p.replace(T)}else p=p.spliceText(c,m-c,e,!0),p.getTextContent()===""?p.remove():p.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let T=1;T<f;T++){const S=d[T],E=S.__key;y.has(E)||S.remove()}}}removeText(){const e=ee()===this;Gs(this,Ace(Ff(this))),e&&ee()!==this&&_t(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void pt(null);const o=this.getNodes(),i=[];for(const b of o)X(b)&&i.push(b);const s=b=>{o.forEach(w=>{if(U(w)){const k=w.getFormatFlags(e,b);w.setTextFormat(k)}})},a=i.length;if(a===0)return this.toggleFormat(e),pt(null),void s(n);const l=this.anchor,c=this.focus,u=this.isBackward(),d=u?c:l,f=u?l:c;let p=0,m=i[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(p=1,m=i[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);s(g);const y=a-1;let C=i[y];const v=f.type==="text"?f.offset:C.getTextContentSize();if(m.is(C)){if(h===v)return;if(Un(m)||h===0&&v===m.getTextContentSize())m.setFormat(g);else{const b=m.splitText(h,v),w=h===0?b[0]:b[1];w.setFormat(g),d.type==="text"&&d.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,v-h,"text")}return void(this.format=g)}h===0||Un(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||Un(C)||([C]=C.splitText(v)),C.setFormat(_));for(let b=p+1;b<y;b++){const w=i[b],k=w.getFormatFlags(e,_);w.setFormat(k)}d.type==="text"&&d.set(m.__key,h,"text"),f.type==="text"&&f.set(C.__key,v,"text"),this.format=g|_}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=ee();return K(h)||G(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=Qt(n,Gt),i=e[e.length-1];if(U(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Xl(this);o.splice(h,0,e),i.selectEnd()}return}if(!e.some(h=>(U(h)||Te(h))&&!h.isInline())){U(o)||G(211,n.constructor.name,n.getType());const h=Xl(this);return o.splice(h,0,e),void i.selectEnd()}const s=function(h){const g=ze();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=ho(v);if(_||Te(v)&&v.isInline()||U(v)&&v.isInline()||X(v)||v.isParentRequired()){if(y===null&&(y=v.createParentElementNode(),g.append(y),_))continue;y!==null&&y.append(v)}else g.append(v),y=null}return g}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!U(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;U(f=d)&&Gt(f)&&!f.isEmpty()&&U(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(U(o)||G(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&G(212,n.constructor.name,n.getType()),function(h,g){const y=g.getParentOrThrow().getLastChild();let C=g;const v=[g];for(;C!==y;)C.getNextSibling()||G(140),C=C.getNextSibling(),v.push(C);let _=h;for(const b of v)_=_.insertAfter(b)}(o,d));const p=Qt(a,Gt);c&&U(p)&&(c.canMergeWhenEmpty()||Gt(u))&&(p.append(...c.getChildren()),c.remove()),U(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=U(o)?o.getLastChild():null;ho(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=ze();return Ze().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Xl(this),n=Qt(this.anchor.getNode(),Gt);U(n)||G(213);const o=n.getChildAtIndex(e),i=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(e){const n=pn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),i=n.getIndexWithinParent();o.select(i,i)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],i=e[n-1];const[s,a]=Mc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(X(o)&&!this.isCollapsed()){const p=o.splitText(d,f),m=d===0?p[0]:p[1];return m?(c.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(X(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),X(i)){const p=i.getTextContent().length;f===0?e.pop():f!==p&&([i]=i.splitText(f),e[e.length-1]=i,u.set(i.getKey(),i.getTextContentSize(),"text"))}return e}modify(e,n,o){if(Cf(this,e,n,o))return;const i=e==="move",s=We(),a=mn(nn(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!U(u)||u.isInline()||u.canBeEmpty()||Pc(l,s,c),this.dirty){let d=nr(s,this.anchor.key),f=nr(s,this.focus.key);this.anchor.type==="text"&&(d=zr(d)),this.focus.type==="text"&&(f=zr(f)),d&&f&&Sh(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,m){d.modify(f,p,m)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Qe(f)?f:fce(f);if(this.applyDOMRange(d),this.dirty=!0,!i){const m=this.getNodes(),h=[];let g=!1;for(let y=0;y<m.length;y++){const C=m[y];Ic(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];U(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];U(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(y){const C=y.focus,v=y.anchor,_=v.key,b=v.offset,w=v.type;v.set(C.key,C.offset,C.type,!0),C.set(_,b,w,!0)}(this)}}o==="lineboundary"&&Cf(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&U(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const i=n.getParent(),s=n.getNextSibling()||(i===null?null:i.getNextSibling());if(U(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let i=o.getNode();if(this.forwardDeletion(o,i,e))return;const s=Gu(Yn(o,e?"previous":"next"));if(s.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if(Dn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(U(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=Jt(c);Gs(this,ko(u,u)),s.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Hr(c)){if(U(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(Te(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&U(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=Eh();u.add(c.origin.getKey()),_t(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Gs(this,ko(!c.origin.isEmpty()&&u.isEmpty()?Yu(ht(u,c.direction)):s.anchor,c)),this.removeText()}}const a=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&o.offset===0&&mf(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(i=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(i)||e&&c!==u||!e&&c!==0)return void hf(l,e,c)}else if(i!==null&&i.isSegmented()){const c=o.offset,u=i.getTextContentSize();if(i.is(l)||e&&c!==0||!e&&c!==u)return void hf(i,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),m=f.getNode();if(p===m&&d.type==="text"&&f.type==="text"){const h=d.offset,g=f.offset,y=h<g,C=y?h:g,v=y?g:h,_=v-1;C!==_&&function(b){return!(Rh(b)||Gle(b))}(p.getTextContent().slice(C,v))&&(u?f.set(f.key,_,f.type):d.set(d.key,_,d.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const o=this.anchor.getNode();o.isEmpty()&&Qe(o.getParent())&&o.getPreviousSibling()===null&&mf(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Rt(t){return t instanceof tl}function pf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Mc(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,o]=e;return n.type==="element"&&o.type==="element"&&n.key===o.key&&n.offset===o.offset?[0,0]:[pf(n),pf(o)]}function mf(t,e){for(let n=e;n;n=n.getParent()){if(U(n)){if(n.collapseAtStart(t))return!0;if(Tt(n))break}if(n.getPreviousSibling())break}return!1}const Gle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function hf(t,e,n){const o=t,i=o.getTextContent().split(/(?=\s)/g),s=i.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=i[u].length,e&&a===n||a>n||d){i.splice(u,1),d&&(l=void 0);break}}const c=i.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function gf(t,e,n,o){let i,s=e;if(tt(t)){let a=!1;const l=t.childNodes,c=l.length,u=o._blockCursorElement;s===c&&(a=!0,s=c-1);let d=l[s],f=!1;if(d===u)d=l[s+1],f=!0;else if(u!==null){const p=u.parentNode;t===p&&e>Array.prototype.indexOf.call(p.children,u)&&s--}if(i=wr(d),X(i))s=vo(i,a?"next":"previous");else{let p=wr(t);if(p===null)return null;if(U(p)){const m=o.getElementByKey(p.getKey());m===null&&G(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),U(p)||G(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(U(g)&&function(y,C,v){const _=y.getParent();return v===null||_===null||!_.canBeEmpty()||_!==v.getNode()}(g,0,n)){const y=a?g.getLastDescendant():g.getFirstDescendant();y===null?p=g:(g=y,p=U(g)?g:g.getParentOrThrow()),s=0}X(g)?(i=g,p=null,s=vo(g,a?"next":"previous")):g!==p&&a&&!f&&(U(p)||G(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&Te(p)&&wr(t)===p?m:m+1,p=p.getParentOrThrow()}if(U(p))return Ln(p.__key,s,"element")}}else i=wr(t);return X(i)?Ln(i.__key,vo(i,s,"clamp"),"text"):null}function vf(t,e,n){const o=t.offset,i=t.getNode();if(o===0){const s=i.getPreviousSibling(),a=i.getParent();if(e){if((n||!e)&&s===null&&U(a)&&a.isInline()){const l=a.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else U(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===i.getTextContent().length){const s=i.getNextSibling(),a=i.getParent();if(e&&U(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&U(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function bh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),i=t.is(e);vf(t,o,i),vf(e,!o,i),i&&e.set(t.key,t.offset,t.type);const s=We();if(s.isComposing()&&s._compositionKey!==t.key&&K(n)){const a=n.anchor,l=n.focus;t.set(a.key,a.offset,a.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function kh(t,e,n,o,i,s){if(t===null||n===null||!ps(i,t,n))return null;const a=gf(t,e,K(s)?s.anchor:null,i);if(a===null)return null;const l=gf(n,o,K(s)?s.focus:null,i);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=wr(t),u=wr(n);if(Te(c)&&Te(u))return null}return bh(a,l,s),[a,l]}function Lc(t){return U(t)&&!t.isInline()}function wh(t,e,n,o,i,s){const a=To(),l=new lr(Ln(t,e,i),Ln(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function nl(){const t=Ln("root",0,"element"),e=Ln("root",0,"element");return new lr(t,e,0,"")}function Eh(){return new tl(new Set)}function $u(t,e,n,o){const i=n._window;if(i===null)return null;const s=o||i.event,a=s?s.type:void 0,l=a==="selectionchange",c=!_c&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(K(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,f=e.anchorOffset,p=e.focusOffset,(l||a===void 0)&&K(t)&&!ps(n,u,d))return t.clone();const m=kh(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new lr(h,g,K(t)?t.format:0,K(t)?t.style:"")}function ee(){return To()._selection}function Jr(){return We()._editorState._selection}function ha(t,e,n,o=1){const i=t.anchor,s=t.focus,a=i.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=i.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);i.set(c,d,"element"),s.set(c,d,"element"),_f(t)}}else{const u=t.isBackward(),d=u?s:i,f=d.getNode(),p=u?i:s,m=p.getNode();if(e.is(f)){const h=d.offset;(n<=h&&o>0||n<h&&o<0)&&d.set(c,Math.max(0,h+o),"element")}if(e.is(m)){const h=p.offset;(n<=h&&o>0||n<h&&o<0)&&p.set(c,Math.max(0,h+o),"element")}}_f(t)}function _f(t){const e=t.anchor,n=e.offset,o=t.focus,i=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!U(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(U(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(U(a)){const l=a.getChildrenSize(),c=i>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(i);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function ga(t,e,n,o,i){let s=null,a=0,l=null;o!==null?(s=o.__key,X(o)?(a=o.getTextContentSize(),l="text"):U(o)&&(a=o.getChildrenSize(),l="element")):i!==null&&(s=i.__key,X(i)?l="text":U(i)&&(l="element")),s!==null&&l!==null?t.set(s,a,l):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function yf(t,e,n,o,i){t.type==="text"?t.set(n,t.offset+(e?0:i),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Sh(t,e,n,o,i){try{t.setBaseAndExtent(e,n,o,i)}catch{}}function Yle(t,e,n,o,i,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(i.has(_h)&&f!==s||f!==null&&Iu(f))return;if(!K(e))return void(t!==null&&ps(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=nr(n,h),C=nr(n,g),v=p.offset,_=m.offset,b=e.format,w=e.style,k=e.isCollapsed();let A=y,T=C,S=!1;if(p.type==="text"){A=zr(y);const V=p.getNode();S=V.getFormat()!==b||V.getStyle()!==w}else K(t)&&t.anchor.type==="text"&&(S=!0);var E,D,x,$,B;if(m.type==="text"&&(T=zr(C)),A!==null&&T!==null&&(k&&(t===null||S||K(t)&&(t.format!==b||t.style!==w))&&(E=b,D=w,x=v,$=h,B=performance.now(),dh=[E,D,x,$,B]),u!==v||d!==_||l!==A||c!==T||o.type==="Range"&&k||(f!==null&&s.contains(f)||i.has(zle)||s.focus({preventScroll:!0}),p.type==="element"))){if(Sh(o,A,v,T,_),!i.has(Fle)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const V=K(e)&&e.anchor.type==="element"?A.childNodes[v]||null:o.rangeCount>0?o.getRangeAt(0):null;if(V!==null){let I;if(V instanceof Text){const W=document.createRange();W.selectNode(V),I=W.getBoundingClientRect()}else I=V.getBoundingClientRect();(function(W,P,H){const Q=qh(H),le=Hu(Q);if(Q===null||le===null)return;let{top:oe,bottom:Ne}=P,ce=0,ne=0,z=H;for(;z!==null;){const F=z===Q.body;if(F)ce=0,ne=nn(W).innerHeight;else{const Ee=z.getBoundingClientRect();ce=Ee.top,ne=Ee.bottom}let se=0;if(oe<ce?se=-(ce-oe):Ne>ne&&(se=Ne-ne),se!==0)if(F)le.scrollBy(0,se);else{const Ee=z.scrollTop;z.scrollTop+=se;const Ue=z.scrollTop-Ee;oe-=Ue,Ne-=Ue}if(F)break;z=ms(z)}})(n,I,s)}}Dc=!0}}function Jle(t){let e=ee()||Jr();e===null&&(e=Ze().selectEnd()),e.insertNodes(t)}function Xl(t){let e=t;t.isCollapsed()||e.removeText();const n=ee();K(n)&&(e=n),K(e)||G(161);const o=e.anchor;let i=o.getNode(),s=o.offset;for(;!Gt(i);){const a=i;if([i,s]=Xle(i,s),a.is(i))break}return s}function Xle(t,e){const n=t.getParent();if(!n){const i=ze();return Ze().append(i),i.select(),[Ze(),0]}if(X(t)){const i=t.splitText(e);if(i.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,i[0].getIndexWithinParent()+s]}if(!U(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const i=new lr(Ln(t.__key,e,"element"),Ln(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function Cf(t,e,n,o,i="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[d,f]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return f.set(d.key,d.offset,d.type),!0}const s=Yn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=i==="decorators-and-blocks";if(!Yh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Te(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Gu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Dn(d))d.origin.isInline()||(c=d);else{if(U(d.origin))continue;Te(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Te(c.origin)&&c.origin.isKeyboardSelectable()){const d=Eh();return d.add(c.origin.getKey()),_t(d),!0}return c=Jt(c),l&&sr(t.anchor,c),sr(t.focus,c),u||!a}let ut=null,dt=null,Mt=!1,Ql=!1,Zs=0;const bf={characterData:!0,childList:!0,subtree:!0};function cs(){return Mt||ut!==null&&ut._readOnly}function ct(){Mt&&G(13)}function xh(){Zs>99&&G(14)}function To(){return ut===null&&G(195,Th()),ut}function We(){return dt===null&&G(196,Th()),dt}function Th(){let t=0;const e=new Set,n=tr.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=il(i);if(Pu(s))t++;else if(s){let a=String(s.constructor.version||"<0.17.1");a===n&&(a+=" (separately built, likely a bundler configuration issue)"),e.add(a)}}let o=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(o+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),o}function Qle(){return dt}function kf(t,e,n){const o=e.__type,i=Mh(t,o);let s=n.get(o);s===void 0&&(s=Array.from(i.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function wf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function Ah(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const i of o)n.add(i)}function ece(t){return Bu(t,We()._nodes)}function Bu(t,e){const n=t.type,o=e.get(n);o===void 0&&G(17,n);const i=o.klass;t.type!==i.getType()&&G(18,i.name);const s=i.importJSON(t),a=t.children;if(U(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=Bu(a[l],e);s.append(c)}return s}function Ef(t,e,n){const o=ut,i=Mt,s=dt;ut=e,Mt=!0,dt=t;try{return n()}finally{ut=o,Mt=i,dt=s}}function qn(t,e){const n=t._pendingEditorState,o=t._rootElement,i=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=ut,d=Mt,f=dt,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&m!==null){dt=t,ut=n,Mt=!1,t._updating=!0;try{const k=t._dirtyType,A=t._dirtyElements,T=t._dirtyLeaves;m.disconnect(),h=kle(s,n,t,k,A,T)}catch(k){if(k instanceof Error&&t._onError(k),Ql)throw k;return Bh(t,null,o,n),Rm(t),t._dirtyType=2,Ql=!0,qn(t,s),void(Ql=!1)}finally{m.observe(o,bf),t._updating=p,ut=u,Mt=d,dt=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,y=t._dirtyElements,C=t._normalizedNodes,v=t._updateTags,_=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(k,A){const T=k._decorators;let S=k._pendingDecorators||T;const E=A._nodeMap;let D;for(D in S)E.has(D)||(S===T&&(S=Ph(k)),delete S[D])}(t,n);const b=i?null:mn(nn(t));if(t._editable&&b!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Rle)){dt=t,ut=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const k=t._blockCursorElement;k!==null&&Pc(k,t,o),Yle(a,l,t,b,v,o)}(function(k,A,T){let S=k._blockCursorElement;if(K(T)&&T.isCollapsed()&&T.anchor.type==="element"&&A.contains(document.activeElement)){const E=T.anchor,D=E.getNode(),x=E.offset;let $=!1,B=null;if(x===D.getChildrenSize())tc(D.getChildAtIndex(x-1))&&($=!0);else{const V=D.getChildAtIndex(x);if(V!==null&&tc(V)){const I=V.getPreviousSibling();(I===null||tc(I))&&($=!0,B=k.getElementByKey(V.__key))}}if($){const V=k.getElementByKey(D.__key);return S===null&&(k._blockCursorElement=S=function(I){const W=I.theme,P=document.createElement("div");P.contentEditable="false",P.setAttribute("data-lexical-cursor","true");let H=W.blockCursor;if(H!==void 0){if(typeof H=="string"){const Q=Om(H);H=W.blockCursor=Q}H!==void 0&&P.classList.add(...H)}return P}(k._config)),A.style.caretColor="transparent",void(B===null?V.appendChild(S):V.insertBefore(S,B))}}S!==null&&Pc(S,k,A)})(t,o,l)}finally{m!==null&&m.observe(o,bf),dt=f,ut=u}}h!==null&&function(k,A,T,S,E){const D=Array.from(k._listeners.mutation),x=D.length;for(let $=0;$<x;$++){const[B,V]=D[$];for(const I of V){const W=A.get(I);W!==void 0&&B(W,{dirtyLeaves:S,prevEditorState:E,updateTags:T})}}}(t,h,v,g,s),K(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Gm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Li("decorator",t,!0,w)),function(k,A,T){const S=Nf(A),E=Nf(T);S!==E&&Li("textcontent",k,!0,E)}(t,e||s,n),Li("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:C,prevEditorState:e||s,tags:v}),function(k,A){if(k._deferred=[],A.length!==0){const T=k._updating;k._updating=!0;try{for(let S=0;S<A.length;S++)A[S]()}finally{k._updating=T}}}(t,_),function(k){const A=k._updates;if(A.length!==0){const T=A.shift();if(T){const[S,E]=T;ol(k,S,E)}}}(t)}function Li(t,e,n,...o){const i=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,o)}finally{e._updating=i}}function Sf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const i=n.shift();if(i){const[s,a]=i,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&G(191),l._flushSync=!0),c&&t._deferred.push(c),Ah(t,a.tag)),l==null?ol(t,s,a):s()}}return o}function ol(t,e,n){const o=t._updateTags;let i,s=!1,a=!1;n!==void 0&&(i=n.onUpdate,Ah(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),i&&t._deferred.push(i);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=Dh(c||l),u=!0),c._flushSync=a;const d=ut,f=Mt,p=dt,m=t._updating;ut=c,Mt=!1,t._updating=!0,dt=t;const h=t._headless||t.getRootElement()===null;Ou(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const b=v.getEditorState()._selection,w=mn(nn(v));return K(b)||b==null?$u(b,w,v,_):b.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=Sf(t,s),function(v,_){const b=_.getEditorState()._selection,w=v._selection;if(K(w)){const k=w.anchor,A=w.focus;let T;if(k.type==="text"&&(T=k.getNode(),T.selectionTransform(b,w)),A.type==="text"){const S=A.getNode();T!==S&&S.selectionTransform(b,w)}}}(c,t),t._dirtyType!==0&&(s?function(v,_){const b=_._dirtyLeaves,w=v._nodeMap;for(const k of b){const A=w.get(k);X(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&Q1(A)}}(c,t):function(v,_){const b=_._dirtyLeaves,w=_._dirtyElements,k=v._nodeMap,A=fo(),T=new Map;let S=b,E=S.size,D=w,x=D.size;for(;E>0||x>0;){if(E>0){_._dirtyLeaves=new Set;for(const $ of S){const B=k.get($);X(B)&&B.isAttached()&&B.isSimpleText()&&!B.isUnmergeable()&&Q1(B),B!==void 0&&wf(B,A)&&kf(_,B,T),b.add($)}if(S=_._dirtyLeaves,E=S.size,E>0){Zs++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,D.delete("root")&&D.set("root",!0);for(const $ of D){const B=$[0],V=$[1];if(w.set(B,V),!V)continue;const I=k.get(B);I!==void 0&&wf(I,A)&&kf(_,I,T)}S=_._dirtyLeaves,E=S.size,D=_._dirtyElements,x=D.size,Zs++}_._dirtyLeaves=b,_._dirtyElements=w}(c,t),Sf(t),function(v,_,b,w){const k=v._nodeMap,A=_._nodeMap,T=[];for(const[S]of w){const E=A.get(S);E!==void 0&&(E.isAttached()||(U(E)&&Im(E,S,k,A,T,w),k.has(S)||w.delete(S),T.push(S)))}for(const S of T)A.delete(S);for(const S of b){const E=A.get(S);E===void 0||E.isAttached()||(k.has(S)||b.delete(S),A.delete(S))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const C=c._selection;if(K(C)){const v=c._nodeMap,_=C.anchor.key,b=C.focus.key;v.get(_)!==void 0&&v.get(b)!==void 0||G(19)}else Rt(C)&&C._nodes.size===0&&(c._selection=null)}catch(y){return y instanceof Error&&t._onError(y),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void qn(t)}finally{ut=d,Mt=f,dt=p,t._updating=m,Zs=0}t._dirtyType!==0||t._deferred.length>0||function(y,C){const v=C.getEditorState()._selection,_=y._selection;if(_!==null){if(_.dirty||!_.is(v))return!0}else if(v!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,qn(t)):u&&sce(()=>{qn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function zt(t,e,n){dt===t&&n===void 0?e():ol(t,e,n)}class Oi{constructor(e,n,o){q(this,"element");q(this,"before");q(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Oi(this.element,e,this.after)}withAfter(e){return new Oi(this.element,this.before,e)}withElement(e){return this.element===e?this:new Oi(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&G(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&G(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&G(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(ji||Rr||qi);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,i=this.before,s=document.createElement("br");if(o.insertBefore(s,i),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",o.insertBefore(a,s),o.__lexicalLineBreak=a}else o.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,i){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,i))]}const s=xf(n,o);s.push(i);const a=xf(n,this.element);let l=e.getIndexWithinParent();for(let c=0;c<a.length;c++){const u=s[c],d=a[c];if(u===void 0||u<d)break;if(u>d){l+=1;break}}return[e.getParentOrThrow(),l]}}function xf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let i=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)i++;n.push(i)}return o!==t&&G(225),n.reverse()}class jt extends fn{constructor(n){super(n);q(this,"__first");q(this,"__last");q(this,"__size");q(this,"__format");q(this,"__style");q(this,"__indent");q(this,"__dir");q(this,"__textFormat");q(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return lle[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o),o=o.getNextSibling();return n}getChildrenKeys(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o.__key),o=o.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=We()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(X(o)&&n.push(o),U(o)){const i=o.getAllTextNodes();n.push(...i)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;U(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;U(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),i=o.length;if(n>=i){const a=o[i-1];return U(a)&&a.getLastDescendant()||a||null}const s=o[n];return U(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:it(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&G(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:it(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&G(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let i,s;if(n<o/2){for(i=this.getFirstChild(),s=0;i!==null&&s<=n;){if(s===n)return i;i=i.getNextSibling(),s++}return null}for(i=this.getLastChild(),s=o-1;i!==null&&s>=n;){if(s===n)return i;i=i.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),i=o.length;for(let s=0;s<i;s++){const a=o[s];n+=a.getTextContent(),U(a)&&s!==i-1&&!a.isInline()&&(n+=bo)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),i=o.length;for(let s=0;s<i;s++){const a=o[s];n+=a.getTextContentSize(),U(a)&&s!==i-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=j1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=xt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return va(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){ct();const i=ee();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(X(u)||U(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(X(u)||U(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return K(i)?(i.anchor.set(c,s,"element"),i.focus.set(c,a,"element"),i.dirty=!0,i):wh(c,s,c,a,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(o=>o.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const o=this.getWritable();return o.__dir=n,o}setFormat(n){return this.getWritable().__format=n!==""?j1[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const o=this.getWritable();return o.__textFormat=n,o}setTextStyle(n){const o=this.getWritable();return o.__textStyle=n,o}setIndent(n){return this.getWritable().__indent=n,this}splice(n,o,i){pa(this)&&G(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||G(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+i.length;if(n!==0)if(n===s)f=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(o>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){h===null&&G(100);const y=h.getNextSibling(),C=h.__key;Zo(h.getWritable()),u.push(C),h=y}}let m=f;for(const h of i){m!==null&&h.is(m)&&(f=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&p--,Zo(g);const y=h.__key;if(m===null)a.__first=y,g.__prev=null;else{const C=m.getWritable();C.__next=y,g.__prev=C.__key}h.__key===l&&G(76),g.__parent=l,c.push(y),m=h}if(n+o===s)m!==null&&(m.getWritable().__next=null,a.__last=m.__key);else if(d!==null){const h=d.getWritable();if(m!==null){const g=m.getWritable();h.__prev=m.__key,g.__next=d.__key}else h.__prev=null}if(a.__size=p,u.length){const h=ee();if(K(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;Tf(C,g,y)&&ga(C,C.getNode(),this,f,d),Tf(v,g,y)&&ga(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||Tt(this)||this.remove()}}return a}getDOMSlot(n){return new Oi(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(tt(o)){const i=this.getIndent();i>0&&(o.style.paddingInlineStart=40*i+"px");const s=this.getDirection();s&&(o.dir=s)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),i=this.getTextStyle();return o!==0&&(n.textFormat=o),i!==""&&(n.textStyle=i),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,i){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const i=this.getDOMSlot(n);let s=i.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(i.insertChild(l),s=l):s!==l&&i.replaceChild(l,s),s=s.nextSibling)}}}function U(t){return t instanceof jt}function Tf(t,e,n){let o=t.getNode();for(;o;){const i=o.__key;if(e.has(i)&&!n.has(i))return!0;o=o.getParent()}return!1}class Nh extends fn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(t){return t instanceof Nh}class us extends jt{constructor(){super("root");q(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new us}getTopLevelElementOrThrow(){G(51)}getTextContent(){const n=this.__cachedText;return!cs()&&We()._dirtyType!==0||n===null?super.getTextContent():n}remove(){G(52)}replace(n){G(53)}insertBefore(n){G(54)}insertAfter(n){G(55)}updateDOM(n,o){return!1}splice(n,o,i){for(const s of i)U(s)||Te(s)||G(282);return super.splice(n,o,i)}static importJSON(n){return Ze().updateFromJSON(n)}collapseAtStart(){return!0}}function Qe(t){return t instanceof us}function Dh(t){return new rl(new Map(t._nodeMap))}function Mu(){return new rl(new Map([["root",new us]]))}function $h(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&G(130,n.name),U(t)){const o=e.children;Array.isArray(o)||G(59,n.name);const i=t.getChildren();for(let s=0;s<i.length;s++){const a=$h(i[s]);o.push(a)}}return e}class rl{constructor(e,n){q(this,"_nodeMap");q(this,"_selection");q(this,"_flushSync");q(this,"_readOnly");this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return Ef(n&&n.editor||null,this,e)}clone(e){const n=new rl(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return Ef(null,this,()=>({root:$h(Ze())}))}}class Lu extends jt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ds extends jt{static getType(){return"paragraph"}static clone(e){return new ds(e.__key)}createDOM(e){const n=document.createElement("p"),o=Nr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:tce,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(tt(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return ze().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=ze();o.setTextFormat(e.format),o.setTextStyle(e.style);const i=this.getDirection();return o.setDirection(i),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||X(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function tce(t){const e=ze();return t.style&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function ze(){return _n(new ds)}function fs(t){return t instanceof ds}const xe=0,bi=1,nce=4;function Bh(t,e,n,o){const i=t._keyToDOMMap;i.clear(),t._editorState=Mu(),t._pendingEditorState=o,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function oce(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:i}=cl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(i){const a=i.$transform;a&&e.add(a),o=i.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof fn&&a!==fn?a:void 0}}return e}function rce(t){const e=t||{},n=Qle(),o=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Mu(),l=e.namespace||(i!==null?i._config.namespace:zh()),c=e.editorState,u=[us,xo,as,ls,ds,Lu,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<u.length;g++){let y=u[g],C=null,v=null;if(typeof y!="function"){const w=y;y=w.replace,C=w.with,v=w.withKlass||null}cl(y);const _=y.getType(),b=oce(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:vle(u[g]),transforms:b})}}const h=new tr(a,i,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const C=new Map,v=new Set,_=b=>{Object.keys(b).forEach(w=>{let k=C.get(w);k===void 0&&(k=[],C.set(w,k)),k.push(b[w])})};return g.forEach(b=>{const w=b.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const k=w.call(b.klass);k!==null&&_(k)}),y&&_(y),C}(m,f?f.import:void 0),p,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class tr{constructor(e,n,o,i,s,a,l,c){q(this,"_headless");q(this,"_parentEditor");q(this,"_rootElement");q(this,"_editorState");q(this,"_pendingEditorState");q(this,"_compositionKey");q(this,"_deferred");q(this,"_keyToDOMMap");q(this,"_updates");q(this,"_updating");q(this,"_listeners");q(this,"_commands");q(this,"_nodes");q(this,"_decorators");q(this,"_pendingDecorators");q(this,"_config");q(this,"_dirtyType");q(this,"_cloneNotNeeded");q(this,"_dirtyLeaves");q(this,"_dirtyElements");q(this,"_normalizedNodes");q(this,"_updateTags");q(this,"_observer");q(this,"_key");q(this,"_onError");q(this,"_htmlConversions");q(this,"_window");q(this,"_editable");q(this,"_blockCursorElement");q(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=o,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=zh(),this._onError=s,this._htmlConversions=a,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&G(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);s===void 0&&G(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&i.delete(e)}}registerMutationListener(e,n,o){const i=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(i);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,i),()=>{a.delete(i),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&G(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,i=Vf(o).get(n.getType());if(!i)return;const s=new Map;for(const a of i.keys())s.set(a,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:o,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const o=this.getRegisteredNode(e);return o.transforms.add(n),o}registerNodeTransform(e,n){const o=this.registerNodeTransformToKlass(e,n),i=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);i.push(a)}return function(a,l){const c=Vf(a.getEditorState()),u=[];for(const d of l){const f=c.get(d);f&&u.push(f)}u.length!==0&&a.update(()=>{for(const d of u)for(const f of d.keys()){const p=it(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Mi}:void 0)}(this,i.map(a=>a.klass.getType())),()=>{i.forEach(a=>a.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return ie(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Nr(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,Bh(this,n,e,i),n!==null&&(this._config.disableEvents||Vle(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Hu(e),a=e.style;a.userSelect="text",a.whiteSpace="pre-wrap",a.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=2,Rm(this),this._updateTags.add(Mi),qn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Nc.set(l,u);const d=fa.get(u)??0;d<1&&u.addEventListener("selectionchange",gh),fa.set(u,d+1),l.__lexicalEditor=c;const f=hh(l);for(let p=0;p<Ac.length;p++){const[m,h]=Ac[p],g=typeof h=="function"?y=>{af(y)||(sf(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(af(y))return;sf(y);const C=c.isEditable();switch(m){case"cut":return C&&ie(c,Nu,y);case"copy":return ie(c,Qa,y);case"paste":return C&&ie(c,xu,y);case"dragstart":return C&&ie(c,ah,y);case"dragover":return C&&ie(c,lh,y);case"dragend":return C&&ie(c,Dle,y);case"focus":return C&&ie(c,Mle,y);case"blur":return C&&ie(c,Lle,y);case"drop":return C&&ie(c,sh,y)}};l.addEventListener(m,g),f.push(()=>{l.removeEventListener(m,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Mi),qn(this);Li("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&G(38);let o=e;o._readOnly&&(o=Dh(e),o._selection=e._selection?e._selection.clone():null),Fm(this);const i=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;i===null||i.isEmpty()||(a!=null&&s.add(a),qn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||qn(this)}parseEditorState(e,n){return function(o,i,s){const a=Mu(),l=ut,c=Mt,u=dt,d=i._dirtyElements,f=i._dirtyLeaves,p=i._cloneNotNeeded,m=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,ut=a,Mt=!1,dt=i,Ou(null);try{const h=i._nodes;Bu(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&i._onError(h)}finally{i._dirtyElements=d,i._dirtyLeaves=f,i._cloneNotNeeded=p,i._dirtyType=m,ut=l,Mt=c,dt=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return qn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,i,s){o._updating?o._updates.push([i,s]):ol(o,i,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),zt(this,()=>{const i=ee(),s=Ze();i!==null?i.dirty||_t(i.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),uce("focus"),dce(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=mn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Li("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}q(tr,"version");tr.version="0.38.1+prod.esm";let Oc=null;function Ou(t){Oc=t}let ice=1;function Mh(t,e){const n=Vu(t,e);return n===void 0&&G(30,e),n}function Vu(t,e){return t._nodes.get(e)}const sce=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Af(t){return Te(Ur(t))}function Iu(t){const e=document.activeElement;if(!tt(e))return!1;const n=e.nodeName;return Te(Ur(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&il(e)==null)}function ps(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Iu(e)&&Lh(e)===t}catch{return!1}}function Pu(t){return t instanceof tr}function Lh(t){let e=t;for(;e!=null;){const n=il(e);if(Pu(n))return n;e=ms(e)}return null}function il(t){return t?t.__lexicalEditor:null}function Wo(t){return el(t)||t.isToken()}function Un(t){return Wo(t)||t.isSegmented()}function eo(t){return Xr(t)&&t.nodeType===3}function Oh(t){return Xr(t)&&t.nodeType===9}function zr(t){let e=t;for(;e!=null;){if(eo(e))return e;e=e.firstChild}return null}function va(t,e,n){const o=xt[e];if(n!==null&&(t&o)===(n&o))return t;let i=t^o;return e==="subscript"?i&=~xt.superscript:e==="superscript"?i&=~xt.subscript:e==="lowercase"?(i&=~xt.uppercase,i&=~xt.capitalize):e==="uppercase"?(i&=~xt.lowercase,i&=~xt.capitalize):e==="capitalize"&&(i&=~xt.lowercase,i&=~xt.uppercase),i}function Vh(t){return X(t)||ho(t)||Te(t)}function ace(t,e){const n=function(){const a=Oc;return Oc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);ct(),xh();const o=We(),i=To(),s=""+ice++;i._nodeMap.set(s,t),U(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=i!==null?i.__key:null,c=i!==null?i.getWritable():null,u=s!==null?s.getWritable():null;i===null&&(o.__first=a),s===null&&(o.__last=l),c!==null&&(c.__next=a),u!==null&&(u.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function _a(t){xh(),pa(t)&&G(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=To(),i=We(),s=o._nodeMap,a=i._dirtyElements;n!==null&&function(c,u,d){let f=c;for(;f!==null;){if(d.has(f))return;const p=u.get(f);if(p===void 0)break;d.set(f,!1),f=p.__parent}}(n,s,a);const l=e.__key;i._dirtyType=1,U(t)?a.set(l,!0):i._dirtyLeaves.add(l)}function pt(t){ct();const e=We(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=it(n);o!==null&&o.getWritable()}if(t!==null){const o=it(t);o!==null&&o.getWritable()}}}function fo(){return cs()?null:We()._compositionKey}function it(t,e){const n=(e||To())._nodeMap.get(t);return n===void 0?null:n}function Ih(t,e){const n=sl(t,We());return n!==void 0?it(n,e):null}function sl(t,e){return t[`__lexicalKey_${e._key}`]}function Ur(t,e){let n=t;for(;n!=null;){const o=Ih(n,e);if(o!==null)return o;n=ms(n)}return null}function Ph(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Nf(t){return t.read(()=>Ze().getTextContent())}function Ze(){return Fh(To())}function Fh(t){return t._nodeMap.get("root")}function _t(t){ct();const e=To();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function wr(t){const e=We(),n=function(o,i){let s=o;for(;s!=null;){const a=sl(s,i);if(a!==void 0)return a;s=ms(s)}return null}(t,e);return n===null?t===e.getRootElement()?it("root"):null:it(n)}function Rh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Fu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function zh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Uh(t){return eo(t)?t.nodeValue:null}function Ru(t,e,n){const o=mn(nn(e));if(o===null)return;const i=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(i!==null){let l=Uh(i);const c=Ur(i);if(l!==null&&X(c)){if(l===Ja&&n){const u=n.length;l=n,s=u,a=u}l!==null&&zu(c,l,s,a,t)}}}function zu(t,e,n,o,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const a=s.isComposing();let l=e;(a||i)&&e[e.length-1]===Ja&&(l=e.slice(0,-1));const c=s.getTextContent();if(i||l!==c){if(l===""){if(pt(null),qi||Rr||ji)s.remove();else{const g=We();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Jr(),f=s.getTextContentSize(),p=fo(),m=s.getKey();if(s.isToken()||p!==null&&m===p&&!a||K(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===t.__key&&d.anchor.offset===0&&!s.canInsertTextBefore()&&!a||d.focus.key===t.__key&&d.focus.offset===f&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const h=ee();if(!K(h)||n===null||o===null)return void Df(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ge(s.getTextContent());s.replace(g),s=g}Df(s,l,h)}}}function Df(t,e,n){if(t.setTextContent(e),K(n)){const o=t.getKey();for(const i of["anchor","focus"]){const s=n[i];s.type==="text"&&s.key===o&&(s.offset=vo(t,s.offset,"clamp"))}}}function Fs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function lce(t,e){return Fs(t,e,"altKey")&&Fs(t,e,"ctrlKey")&&Fs(t,e,"shiftKey")&&Fs(t,e,"metaKey")}function Le(t,e,n){return lce(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const zn={ctrlKey:!cn,metaKey:cn},$f={altKey:cn,ctrlKey:!cn};function Bf(t){return t.key==="Backspace"}function Mf(t){return Le(t,"a",zn)}function cce(t){const e=Ze();if(K(t)){const n=t.anchor,o=t.focus,i=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(i.getKey(),0,"element"),o.set(i.getKey(),i.getChildrenSize(),"element"),sa(t),t}{const n=e.select(0,e.getChildrenSize());return _t(sa(n)),n}}function Nr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const i=t[e];if(typeof i=="string"){const s=Om(i);return n[e]=s,s}return i}function Uu(t,e,n,o,i){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&G(33,s);const c=l.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(a),f=d==="destroyed"&&i==="created";(d===void 0||f)&&u.set(a,f?"updated":i)}function Lf(t,e,n){const o=t.getParent();let i=n,s=t;return o!==null&&(e&&n===0?(i=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?i-1:i)}function Vc(t,e){const n=t.offset;if(t.type==="element")return Lf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const i=e?o.getPreviousSibling():o.getNextSibling();return i===null?Lf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):i}}return null}function Hh(t){const e=nn(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(t,e,n){return function(o,i,s){const a=Fu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(i);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),m=p.length;let h=!1;if(zt(u,()=>{for(let g=0;g<m;g++)if(p[g](s,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function al(t){return!Qe(t)&&!t.isLastChild()&&!t.isInline()}function nr(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&G(75,e),n}function ms(t){const e=t.assignedSlot||t.parentElement;return Fc(e)?e.host:e}function qh(t){return Oh(t)?t:tt(t)?t.ownerDocument:null}function uce(t){ct(),We()._updateTags.add(t)}function dce(t){ct(),We()._deferred.push(t)}function Ic(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Hu(t){const e=qh(t);return e?e.defaultView:null}function nn(t){const e=t._window;return e===null&&G(78),e}function fce(t){let e=t.getParentOrThrow();for(;e!==null;){if(Tt(e))return e;e=e.getParentOrThrow()}return e}function Tt(t){return Qe(t)||U(t)&&t.isShadowRoot()}function _n(t){const e=We(),n=t.getType(),o=Vu(e,n);o===void 0&&G(200,t.constructor.name,n);const{replace:i,replaceWithKlass:s}=o;if(i!==null){const a=i(t),l=a.constructor;return s!==null?a instanceof s||G(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||G(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&G(203,t.constructor.name,n,l.name,l.getType()),a}return t}function ec(t,e){!Qe(t.getParent())||U(e)||Te(e)||G(99)}function pce(t){const e=it(t);return e===null&&G(63,t),e}function tc(t){return(Te(t)||U(t)&&!t.canBeEmpty())&&!t.isInline()}function Pc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function mn(t){return vn?(t||window).getSelection():null}function mce(t){const e=Hu(t);return e?e.getSelection():null}function jh(t){return tt(t)&&t.tagName==="A"}function tt(t){return Xr(t)&&t.nodeType===1}function Xr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Fc(t){return Xr(t)&&t.nodeType===11}function Rc(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function ya(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Gt(t){if(Te(t)&&!t.isInline())return!0;if(!U(t)||Tt(t))return!1;const e=t.getFirstChild(),n=e===null||ho(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function ll(){return We()}const Of=new WeakMap,hce=new Map;function Vf(t){if(!t._readOnly&&t.isEmpty())return hce;t._readOnly||G(192);let e=Of.get(t);return e||(e=function(n){const o=new Map;for(const[i,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(i,s)}return o}(t),Of.set(t,e)),e}function Wh(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function gce(t){return(e=Wh(t))[vh]=!0,e;var e}function qu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function vce(t){return t.__lexicalUnmanaged===!0}function ki(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==fn[e]}function cl(t){const e=W1 in t.prototype?t.prototype[W1]():void 0,n=function(a){if(!(a===fn||a.prototype instanceof fn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{tr.version&&(c=JSON.parse(tr.version))}catch{}G(290,a.name,l,c)}return a===Nh||a===jt||a===fn}(t),o=!n&&ki(t,"getType")?t.getType():void 0;let i,s=o;if(e)if(o)i=e[o];else for(const[a,l]of Object.entries(e))s=a,i=l;if(!n&&s&&(ki(t,"getType")||(t.getType=()=>s),ki(t,"clone")||(t.clone=a=>(Ou(a),new t)),ki(t,"importJSON")||(t.importJSON=i&&i.$importJSON||(a=>new t().updateFromJSON(a))),!ki(t,"importDOM")&&i)){const{importDOM:a}=i;a&&(t.importDOM=()=>a)}return{ownNodeConfig:i,ownNodeType:s}}function _ce(t){const e=ll();return ct(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const Qt=(t,e)=>{let n=t;for(;n!=null&&!Qe(n);){if(e(n))return n;n=n.getParent()}return null},yce={next:"previous",previous:"next"};class ju{constructor(e){q(this,"origin");this.origin=e}[Symbol.iterator](){return Zh({hasNext:Hr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return ht(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return ht(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const i=o===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),l=new Map;for(let c=s.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();l.set(u.getKey(),u)}for(const c of i){if(l.size>0){const u=s.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(a)&&c.remove(),u.replace(c)}}else u===null&&G(263,Array.from(l).join(" "))}else s.insert(c);s=ht(c,this.direction)}for(const c of l.values())c.remove();return this}}class Ji extends ju{constructor(){super(...arguments);q(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:hn(n,this.direction)}getParentCaret(n="root"){return ht(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Qr(this.direction);return ht(this.getNodeAtCaret(),n)||hn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Ji&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const Cce={root:Qe,shadowRoot:Tt};function Qr(t){return yce[t]}function Wu(t,e="root"){return Cce[e](t)?null:t}class or extends ju{constructor(){super(...arguments);q(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:ht(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return U(this.origin)?hn(this.origin,this.direction):null}getParentCaret(n="root"){return ht(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Qr(this.direction);return ht(this.getNodeAtCaret(),n)||hn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof or&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof or||n instanceof rr)&&this.direction===n.direction&&this.origin.is(n.origin)}}class rr extends ju{constructor(n,o){super(n);q(this,"type","text");q(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:ir(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return ht(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return ir(this.origin,Qr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof rr&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof or||n instanceof rr)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return ht(this.origin,this.direction)}}function go(t){return t instanceof rr}function Hr(t){return t instanceof or}function Dn(t){return t instanceof Ji}const bce={next:class extends rr{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends rr{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},kce={next:class extends or{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends or{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},wce={next:class extends Ji{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ji{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function ht(t,e){return t?new kce[e](t):null}function ir(t,e,n){return t?new bce[e](t,vo(t,n)):null}function vo(t,e,n="error"){const o=t.getTextContentSize();let i=e==="next"?o:e==="previous"?0:e;return(i<0||i>o)&&(n!=="clamp"&&Mm(284,String(e),String(o),t.getKey()),i=i<0?0:o),i}function If(t,e){return new Sce(t,e)}function hn(t,e){return U(t)?new wce[e](t):null}function Ece(t){return t&&t.getChildCaret()||t}function Zu(t){return t&&Ece(t.getAdjacentCaret())}class Ku{constructor(e,n,o){q(this,"type","node-caret-range");q(this,"direction");q(this,"anchor");q(this,"focus");this.anchor=e,this.focus=n,this.direction=o}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new Ku(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i].getLatest();return go(s)?function(a,l){const{direction:c,origin:u}=a,d=vo(u,l==="focus"?Qr(c):c);return If(a,d-a.offset)}(s,i):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:i}=n,{caret:s}=o;if(i.isSameNodeCaret(s))return[If(i,s.offset-i.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=go(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),i=go(o),s=a=>a.isSameNodeCaret(o)?null:Zu(a)||a.getParentCaret(e);return Zh({hasNext:a=>a!==null&&!(i&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Sce{constructor(e,n){q(this,"type","slice");q(this,"caret");q(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,i]=this.getSliceIndices(),s=e.getTextContent();return ir(e.setTextContent(s.slice(0,o)+s.slice(i)),n,o)}}function Gu(t){return ko(t,ht(Ze(),t.direction))}function xce(t){return ko(t,t)}function ko(t,e){return t.direction!==e.direction&&G(265),new Ku(t,e,t.direction)}function Zh(t){const{initial:e,hasNext:n,step:o,map:i}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:i(s)};return s=o(s),a}}}function Kh(t,e){const n=Ks(t.origin,e.origin);switch(n===null&&G(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",i=e.type==="text";return o&&i?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:i?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Gh(n)}}function Gh(t){const{a:e,b:n}=t,o=e.__key,i=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===i)return-1;if(a.__key===o)return 1}return s===null?1:-1}function Rs(t,e){return e.is(t)}function Pf(t){return U(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Ks(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,i]=Pf(t);o;i=o,o=o.getParent())n.set(o,i);for(let[o,i]=Pf(e);o;i=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Rs(t,o)||G(276),{commonAncestor:o,type:"ancestor"}):i===null?(Rs(e,o)||G(277),{commonAncestor:o,type:"descendant"}):((U(s)||Rs(t,s))&&(U(i)||Rs(e,i))&&o.is(s.getParent())&&o.is(i.getParent())||G(278),{a:s,b:i,commonAncestor:o,type:"branch"})}return null}function Yn(t,e){const{type:n,key:o,offset:i}=t,s=pce(t.key);return n==="text"?(X(s)||G(266,s.getType(),o),ir(s,e,i)):(U(s)||G(267,s.getType(),o),Nce(s,t.offset,e))}function sr(t,e){const{origin:n,direction:o}=e,i=o==="next";go(e)?t.set(n.getKey(),e.offset,"text"):Hr(e)?X(n)?t.set(n.getKey(),vo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):(Dn(e)&&U(n)||G(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function Tce(t){const e=ee(),n=K(e)?e:nl();return Gs(n,t),_t(n),n}function Gs(t,e){sr(t.anchor,e.anchor),sr(t.focus,e.focus)}function Ff(t){const{anchor:e,focus:n}=t,o=Yn(e,"next"),i=Yn(n,"next"),s=Kh(o,i)<=0?"next":"previous";return ko(qr(o,s),qr(i,s))}function Yu(t){const{direction:e,origin:n}=t,o=ht(n,Qr(e)).getNodeAtCaret();return o?ht(o,e):hn(n.getParentOrThrow(),e)}function Rf(t,e="root"){const n=[t];for(let o=Dn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Yu(o));return n}function nc(t){return!!t&&t.origin.isAttached()}function Ace(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let i=e;const s=Jh(t,o),a=Rf(s.anchor,n),l=Rf(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(Dn(h))c.add(h.origin.getKey());else if(Hr(h)){const{origin:g}=h;U(g)&&!c.has(g.getKey())||u.push(g)}for(const h of u)h.remove();for(const h of s.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,y=g.getTextContentSize(),C=Yu(ht(g,o)),v=g.getMode();if(Math.abs(h.distance)===y&&i==="removeEmptySlices"||v==="token"&&h.distance!==0)C.remove();else if(h.distance!==0){i="removeEmptySlices";let _=h.removeTextSlice();const b=h.caret.origin;if(v==="segmented"){const w=_.origin,k=Ge(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(k),_=ir(k,o,_.offset)}b.is(a[0].origin)&&(a[0]=_),b.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,f;for(const h of a)if(nc(h)){d=Jt(h);break}for(const h of l)if(nc(h)){f=Jt(h);break}const p=function(h,g,y){if(!h||!g)return null;const C=h.getParentAtCaret(),v=g.getParentAtCaret();if(!C||!v)return null;const _=C.getParents().reverse();_.push(C);const b=v.getParents().reverse();b.push(v);const w=Math.min(_.length,b.length);let k;for(k=0;k<w&&_[k]===b[k];k++);const A=(E,D)=>{let x;for(let $=k;$<E.length;$++){const B=E[$];if(Tt(B))return;!x&&D(B)&&(x=B)}return x},T=A(_,Gt),S=T&&A(b,E=>y.has(E.getKey())&&Gt(E));return T&&S?[T,S]:null}(d,f,c);if(p){const[h,g]=p;hn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(nc);if(m)return xce(qr(Jt(m),t.direction));G(269,JSON.stringify(a.map(h=>h.origin.__key)))}function Jt(t){const e=function(i){let s=i;for(;Dn(s);){const a=Zu(s);if(!Dn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return go(e)?e:ir(e.origin,n,n);const o=e.getAdjacentCaret();return Hr(o)&&X(o.origin)?ir(o.origin,n,Qr(n)):e}function Yh(t){return go(t)&&t.offset!==vo(t.origin,t.direction)}function qr(t,e){return t.direction===e?t:t.getFlipped()}function Jh(t,e){return t.direction===e?t:ko(qr(t.focus,e),qr(t.anchor,e))}function Nce(t,e,n){let o=hn(t,"next");for(let i=0;i<e;i++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return qr(o,n)}const zc=new Map;function Xh(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[i,s]=o.split(/:([^]+)/);i&&s&&(e[i.trim()]=s.trim())}return e}function zf(t){let e=zc.get(t);return e===void 0&&(e=Xh(t),zc.set(t,e)),e}function Qh(t){const e=ll().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function eg(t){return Qh(Qe(t)?t:t.getParentOrThrow())}function Uf(t){const e=eg(t);return e!==null&&e.direction==="rtl"}function tg(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Un(e)&&o!==null){const[i,s]=o,a=t.isBackward(),l=i.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[f,p]=Mc(t),m=l.is(c),h=e.is(a?c:l),g=e.is(a?l:c);let y,C=0;m?(C=f>p?p:f,y=f>p?f:p):h?(C=a?p:f,y=void 0):g&&(C=0,y=a?f:p);const v=e.__text.slice(C,y);v!==e.__text&&(n==="clone"&&(e=gce(e)),e.__text=v)}}return e}function Dce(t){const e=t.getStyle(),n=Xh(e);zc.set(e,n)}function $ce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function oc(t,e,n=$ce){if(t===null)return;const o=t.getStartEndPoints(),i=new Map;let s=null;if(o){const[a,l]=o;s=nl(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=Qt(a.getNode(),Gt),u=Qt(l.getNode(),Gt);U(c)&&i.set(c.getKey(),c),U(u)&&i.set(u.getKey(),u)}for(const a of t.getNodes())if(U(a)&&Gt(a))i.set(a.getKey(),a);else if(o===null){const l=Qt(a,Gt);U(l)&&i.set(l.getKey(),l)}for(const[a,l]of i){const c=e();n(l,c),l.replace(c,!0),s&&(a===s.anchor.key&&s.anchor.set(c.getKey(),s.anchor.offset,s.anchor.type),a===s.focus.key&&s.focus.set(c.getKey(),s.focus.offset,s.focus.type))}s&&t.is(ee())&&_t(s)}function ng(t){const e=og(t);return e!==null&&e.writingMode==="vertical-rl"}function og(t){const e=t.anchor.getNode();return U(e)?Qh(e):eg(e)}function Hf(t,e){let n=ng(t)?!e:e;rg(t)&&(n=!n);const o=Yn(t.focus,n?"previous":"next");if(Yh(o))return!1;for(const i of Gu(o)){if(Dn(i))return!i.origin.isInline();if(!U(i.origin)){if(Te(i.origin))return!0;break}}return!1}function Bce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function rg(t){const e=og(t);return e!==null&&e.direction==="rtl"}function qf(t,e,n){const o=rg(t);let i;i=ng(t)||o?!n:n,Bce(t,e,i,"character")}function Mce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ju=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Lce=Ju&&"documentMode"in document?document.documentMode:null;!(!Ju||!("InputEvent"in window)||Lce)&&"getTargetRanges"in new window.InputEvent("input");function ig(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}function hs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const Oce=Ju;function Jn(t,...e){const n=ig(...e);n.length>0&&t.classList.add(...n)}function Xu(t,...e){const n=ig(...e);n.length>0&&t.classList.remove(...n)}function Vce(t){return t?t.getAdjacentCaret():null}function Ice(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Pce(t){const e=Qt(t,n=>U(n)&&!n.isInline());return U(e)||Mce(4,t.__key),e}function zo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function po(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Uc(t){let e=1,n=t.getParent();for(;n!=null;){if(Ae(n)){const o=n.getParent();if(ge(o)){e++,n=o.getParent();continue}po(40)}return e}return e}function Hc(t){let e=t.getParent();ge(e)||po(40);let n=e;for(;n!==null;)n=n.getParent(),ge(n)&&(e=n);return e}function sg(t){let e=[];const n=t.getChildren().filter(Ae);for(let o=0;o<n.length;o++){const i=n[o],s=i.getFirstChild();ge(s)?e=e.concat(sg(s)):e.push(i)}return e}function xn(t){return Ae(t)&&ge(t.getFirstChild())}function jf(t){return Wt().append(t)}function ag(t,e){return Ae(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Wf(t){const e=ee();if(e!==null){let n=e.getNodes();if(K(e)){const i=e.getStartEndPoints();i===null&&po(143);const[s]=i,a=s.getNode(),l=a.getParent();if(Tt(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=ze();a.append(u),n=u.select().getNodes()}}else if(ag(a,n)){const c=Lt(t);if(Tt(l)){a.replace(c);const u=Wt();U(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(Ae(a)){const u=a.getParentOrThrow();ar(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let i=0;i<n.length;i++){const s=n[i];if(U(s)&&s.isEmpty()&&!Ae(s)&&!o.has(s.getKey())){Zf(s,t);continue}let a=Vh(s)?s.getParent():Ae(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ge(a)){if(!o.has(l)){const c=Lt(t);ar(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(Tt(c)&&!o.has(l)){o.add(l),Zf(a,t);break}a=c}}}}}function ar(t,e){t.splice(t.getChildrenSize(),0,e)}function Zf(t,e){if(ge(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),i=Wt();let s;if(ar(i,t.getChildren()),ge(n)&&e===n.getListType())n.append(i),ge(o)&&e===o.getListType()&&(ar(n,o.getChildren()),o.remove()),s=n;else if(ge(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(i),s=o;else{const a=Lt(e);a.append(i),t.replace(a),s=a}return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),t.remove(),s}function Qu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&xn(n)&&xn(o)&&(Qu(n.getFirstChild(),o.getFirstChild()),o.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function Fce(){const t=ee();if(K(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(ag(o,n))e.add(Hc(o));else for(let i=0;i<n.length;i++){const s=n[i];if(Vh(s)){const a=Ice(s,Ao);a!=null&&e.add(Hc(a))}}for(const i of e){let s=i;const a=sg(i);for(const l of a){const c=ze().setTextStyle(t.style).setTextFormat(t.format);ar(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&sr(t.anchor,Jt(hn(c,"next"))),l.__key===t.focus.key&&sr(t.focus,Jt(hn(c,"next"))),l.remove()}i.remove()}}}function lg(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())Ae(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ge(o.getFirstChild())||n++)}function Rce(t){const e=new Set;if(xn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),i=t.getPreviousSibling();if(xn(o)&&xn(i)){const s=i.getFirstChild();if(ge(s)){s.append(t);const a=o.getFirstChild();ge(a)&&(ar(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(xn(o)){const s=o.getFirstChild();if(ge(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(xn(i)){const s=i.getFirstChild();ge(s)&&s.append(t)}else if(ge(n)){const s=Wt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Lt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),i?i.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function zce(t){if(xn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ge(n?n.getParent():void 0)&&Ae(n)&&ge(e)){const o=e?e.getFirstChild():void 0,i=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(i))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=Wt(),l=Lt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=Wt(),u=Lt(s);c.append(u),ar(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Uce(){const t=ee();if(!K(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!Ae(e)||e.getChildrenSize()!==0)return!1;const n=Hc(e),o=e.getParent();ge(o)||po(40);const i=o.getParent();let s;if(Tt(i))s=ze(),n.insertAfter(s);else{if(!Ae(i))return!1;s=Wt(),i.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Lt(o.getListType());if(Ae(s)){const c=Wt();c.append(l),s.insertAfter(c)}else s.insertAfter(l);l.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const u=c.getParent();if(u==null||!Ae(u)&&!ge(u))break;c=u}c.remove()}(e),!0}function Ca(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let Ao=class extends jt{constructor(n=1,o=void 0,i){super(i);q(this,"__value");q(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();ge(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:jt,importDOM:{li:()=>({conversion:Hce,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,i){(function(l,c,u){const d=c.getParent();!ge(d)||d.getListType()!=="check"||ge(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&c.__checked===u.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,u){const d=[],f=[],p=c.list,m=p?p.listitem:void 0;let h;if(p&&p.nested&&(h=p.nested.listitem),m!==void 0&&d.push(...Ca(m)),p){const g=u.getParent(),y=ge(g)&&g.getListType()==="check",C=u.getChecked();y&&!C||f.push(p.listitemUnchecked),y&&C||f.push(p.listitemChecked),y&&d.push(C?p.listitemChecked:p.listitemUnchecked)}if(h!==void 0){const g=Ca(h);u.getChildren().some(y=>ge(y))?d.push(...g):f.push(...g)}f.length>0&&Xu(l,...f),d.length>0&&Jn(l,...d)}(o,i.theme,this);const s=n?n.__style:"",a=this.__style;s!==a&&(a===""?o.removeAttribute("style"):o.style.cssText=a),function(l,c,u){const d=zf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in zf(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(o,this,n)}updateDOM(n,o,i){const s=o;return this.updateListItemDOM(n,s,i),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),i=this.getFormatType();i&&(o.style.textAlign=i);const s=this.getDirection();return s&&(o.dir=s),{element:o}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let o=0;o<n.length;o++){const i=n[o];if(U(i)&&this.canMergeWith(i)){const s=i.getChildren();this.append(...s),i.remove()}else super.append(i)}return this}replace(n,o){if(Ae(n))return super.replace(n);this.setIndent(0);const i=this.getParentOrThrow();if(!ge(i))return n;if(i.__first===this.getKey())i.insertBefore(n);else if(i.__last===this.getKey())i.insertAfter(n);else{const s=Lt(i.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}i.insertAfter(n),n.insertAfter(s)}return o&&(U(n)||po(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),i.getChildrenSize()===0&&i.remove(),n}insertAfter(n,o=!0){const i=this.getParentOrThrow();if(ge(i)||po(39),Ae(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(i.insertAfter(n,o),s.length!==0){const a=Lt(i.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),i=this.getNextSibling();super.remove(n),o&&i&&xn(o)&&xn(i)&&(Qu(o.getFirstChild(),i.getFirstChild()),i.remove())}insertNewAfter(n,o=!0){const i=Wt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(i,o),i}collapseAtStart(n){const o=ze();this.getChildren().forEach(l=>o.append(l));const i=this.getParentOrThrow(),s=i.getParentOrThrow(),a=Ae(s);if(i.getChildrenSize()===1)if(a)i.remove(),s.select();else{i.insertBefore(o),i.remove();const l=n.anchor,c=n.focus,u=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else i.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const i=this.getParent();return ge(i)&&(o=i.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),i=0;for(;Ae(o);)o=o.getParentOrThrow().getParentOrThrow(),i++;return i}setIndent(n){typeof n!="number"&&po(117),(n=Math.floor(n))>=0||po(199);let o=this.getIndent();for(;o!==n;)o<n?(Rce(this),o++):(zce(this),o--);return this}canInsertAfter(n){return Ae(n)}canReplaceWith(n){return Ae(n)}canMergeWith(n){return Ae(n)||fs(n)}extractWithChild(n,o){if(!K(o))return!1;const i=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Lt("bullet")}canMergeWhenEmpty(){return!0}};function Hce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Kf(n)}if(t.classList.contains("joplin-checkbox")){for(const n of t.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return Kf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:Wt(e==="true"||e!=="false"&&void 0)}}function Kf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:Wt(t.hasAttribute("checked"))}}function Wt(t){return _n(new Ao(void 0,t))}function Ae(t){return t instanceof Ao}let cr=class extends jt{constructor(n="number",o=1,i){super(i);q(this,"__tag");q(this,"__start");q(this,"__listType");const s=jce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const i=o.getNextSibling();ge(i)&&o.getListType()===i.getListType()&&Qu(o,i)})(n),lg(n)},extends:jt,importDOM:{ol:()=>({conversion:Yf,priority:0}),ul:()=>({conversion:Yf,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const i=this.__tag,s=document.createElement(i);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Gf(s,n.theme,this),s}updateDOM(n,o,i){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Gf(o,i.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return tt(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,i){let s=i;for(let a=0;a<i.length;a++){const l=i[a];Ae(l)||(s===i&&(s=[...i]),s[a]=Wt().append(!U(l)||ge(l)||l.isInline()?l:Ge(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return Ae(n)}};function Gf(t,e,n){const o=[],i=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Uc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,m=s.checklist;if(p!==void 0&&p.list&&(f=p.list),d!==void 0&&o.push(d),m!==void 0&&n.__listType==="check"&&o.push(m),u!==void 0){o.push(...Ca(u));for(let h=0;h<a.length;h++)h!==c&&i.push(n.__tag+h)}if(f!==void 0){const h=Ca(f);l>1?o.push(...h):i.push(...h)}}i.length>0&&Xu(t,...i),o.length>0&&Jn(t,...o)}function qce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(Ae(o)){e.push(o);const i=o.getChildren();i.length>1&&i.forEach(s=>{ge(s)&&e.push(jf(s))})}else e.push(jf(o))}return e}function Yf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Lt("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const i of o.childNodes)if(tt(i)&&i.hasAttribute("aria-checked"))return!0;return!1}(t)?Lt("check"):Lt("bullet")),{after:qce,node:n}}const jce={ol:"number",ul:"bullet"};function Lt(t="number",e=1){return _n(new cr(t,e))}function ge(t){return t instanceof cr}const Wce=me("UPDATE_LIST_START_COMMAND"),cg=me("INSERT_UNORDERED_LIST_COMMAND"),ug=me("INSERT_ORDERED_LIST_COMMAND"),Zce=me("REMOVE_LIST_COMMAND");function Kce(t){return hs(t.registerCommand(ug,()=>(Wf("number"),!0),bi),t.registerCommand(Wce,e=>{const{listNodeKey:n,newStart:o}=e,i=it(n);return!!ge(i)&&(i.getListType()==="number"&&(i.setStart(o),lg(i)),!0)},bi),t.registerCommand(cg,()=>(Wf("bullet"),!0),bi),t.registerCommand(Zce,()=>(Fce(),!0),bi),t.registerCommand(Ki,()=>Uce(),bi),t.registerNodeTransform(Ao,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),i=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==i&&e.setTextFormat(i)}}else{const o=ee();K(o)&&(o.style!==e.getTextStyle()||o.format!==e.getTextFormat())&&o.isCollapsed()&&e.is(o.anchor.getNode())&&e.setTextStyle(o.style).setTextFormat(o.format)}}),t.registerNodeTransform(xo,e=>{const n=e.getParent();if(Ae(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),i=e.getFormat();o===n.getTextStyle()&&i===n.getTextFormat()||n.setTextStyle(o).setTextFormat(i)}}))}function Gce(t){const e=n=>{const o=n.getParent();if(ge(n.getFirstChild())||!ge(o))return;const i=Qt(n,s=>Ae(s)&&ge(s.getParent())&&Ae(s.getPreviousSibling()));if(i===null&&n.getIndent()>0)n.setIndent(0);else if(Ae(i)){const s=i.getPreviousSibling();if(Ae(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ge(d);){const f=d.getLastChild();if(!Ae(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ge(l)){const c=Uc(l);c+1<Uc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(cr,n=>{const o=[n];for(;o.length>0;){const i=o.shift();if(ge(i)){for(const s of i.getChildren())if(Ae(s)){e(s);const a=s.getFirstChild();ge(a)&&o.push(a)}}}})}function Yce(t,e){const n=Oh(e)?e.body.childNodes:e.childNodes;let o=[];const i=[];for(const s of n)if(!fg.has(s.nodeName)){const a=pg(s,t,i,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Lu&&a.insertAfter(pn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(i),o}function Jce(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=Ze().getChildren();for(let i=0;i<o.length;i++)dg(t,o[i],n,e);return n.innerHTML}function dg(t,e,n,o=null){let i=o===null||e.isSelected(o);const s=U(e)&&e.excludeFromCopy("html");let a=e;o!==null&&X(e)&&(a=tg(o,e,"clone"));const l=U(a)?a.getChildren():[],c=Vu(t,a.getType());let u;u=c&&c.exportDOM!==void 0?c.exportDOM(t,a):a.exportDOM(t);const{element:d,after:f}=u;if(!d)return!1;const p=document.createDocumentFragment();for(let m=0;m<l.length;m++){const h=l[m],g=dg(t,h,p,o);!i&&U(e)&&g&&e.extractWithChild(h,o,"html")&&(i=!0)}if(i&&!s){if((tt(d)||Fc(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Fc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return i}const fg=new Set(["STYLE","SCRIPT"]);function pg(t,e,n,o,i=new Map,s){let a=[];if(fg.has(t.nodeName))return a;let l=null;const c=function(h,g){const{nodeName:y}=h,C=g._htmlConversions.get(y.toLowerCase());let v=null;if(C!==void 0)for(const _ of C){const b=_(h);b!==null&&(v===null||(v.priority||0)<=(b.priority||0))&&(v=b)}return v!==null?v.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const h=u.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,g]of i)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&i.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const m=(l==null||!Tt(l))&&(l!=null&&Lc(l)||o);for(let h=0;h<f.length;h++)p.push(...pg(f[h],e,n,m,new Map(i),l));return d!=null&&(p=d(p)),ya(t)&&(p=Xce(t,p,m?()=>{const h=new Lu;return n.push(h),h}:ze)),l==null?p.length>0?a=a.concat(p):ya(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Rc(h.nextSibling)&&Rc(h.previousSibling)}(t)&&(a=a.concat(pn())):U(l)&&l.append(...p),a}function Xce(t,e,n){const o=t.style.textAlign,i=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Lc(l))o&&!l.getFormat()&&l.setFormat(o),i.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Lc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),i.push(c),s=[]}}return i}function ba(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Qce(t,e=ee()){return e==null&&ba(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?"":Jce(t,e)}function eue(t,e=ee()){return e==null&&ba(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(tue(t,e))}function Jf(t,e,n){const o=t.getData("application/x-lexical-editor");if(o)try{const l=JSON.parse(o);if(l.namespace===n._config.namespace&&Array.isArray(l.nodes))return Xf(n,nue(l.nodes),e)}catch(l){console.error(l)}const i=t.getData("text/html"),s=t.getData("text/plain");if(i&&s!==i)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(i),"text/html");return Xf(n,Yce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(K(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=ee();if(K(u)){const d=l[c];d===`
30
30
  `||d===`\r
31
- `?u.insertParagraph():d===" "?u.insertNodes([Yr()]):u.insertText(d)}}}else e.insertRawText(a)}function Xf(t,e,n){t.dispatchCommand(kle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(K(o)&&o.isCollapsed()){const i=o.anchor;let s=null;const a=Yn(i,"previous");if(a)if(go(a))s=a.origin;else{const l=ko(a,hn(Ze(),"next").getFlipped());for(const c of l){if(X(c.origin)){s=c.origin;break}if(U(c.origin)&&!c.origin.isInline())break}}if(s&&X(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function pg(t,e,n,o=[]){let i=e===null||n.isSelected(e);const s=U(n)&&n.excludeFromCopy("html");let a=n;e!==null&&X(a)&&(a=eg(e,a,"clone"));const l=U(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&ba(58,f.name),U(u)){const p=d.children;Array.isArray(p)||ba(59,f.name)}return d}(a);X(a)&&a.getTextContentSize()===0&&(i=!1);for(let u=0;u<l.length;u++){const d=l[u],f=pg(t,e,d,c.children);!i&&U(n)&&f&&n.extractWithChild(d,e,"clone")&&(i=!0)}if(i&&!s)o.push(c);else if(Array.isArray(c.children))for(let u=0;u<c.children.length;u++){const d=c.children[u];o.push(d)}return i}function eue(t,e){const n=[],o=Ze().getChildren();for(let i=0;i<o.length;i++)pg(t,e,o[i],n);return{namespace:t._config.namespace,nodes:n}}function tue(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],i=Qle(o);X(i)&&Nce(i),e.push(i)}return e}let _r=null;async function Qf(t,e,n){if(_r!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(ep(t,e,n))})});const o=t.getRootElement(),i=t._window||window,s=i.document,a=mn(i);if(o===null||a===null)return!1;const l=s.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(s.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),a.removeAllRanges(),a.addRange(c),new Promise((u,d)=>{const f=t.registerCommand(Qa,p=>(zo(p,ClipboardEvent)&&(f(),_r!==null&&(i.clearTimeout(_r),_r=null),u(ep(t,p,n))),!0),tce);_r=i.setTimeout(()=>{f(),_r=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function ep(t,e,n){if(n===void 0){const i=mn(t._window),s=ee();if(!s||s.isCollapsed()||!i)return!1;const a=i.anchorNode,l=i.focusNode;if(a!==null&&l!==null&&!ps(t,a,l))return!1;n=nue(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(oue(o,n),!0)}const mg=[["text/html",Xce],["application/x-lexical-editor",Qce]];function nue(t=ee()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=ll();for(const[o,i]of mg){const s=i(n,t);s!==null&&(e[o]=s)}}return e}function oue(t,e){for(const[n]of mg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function rue(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const i=t.getRootElement();if(document.activeElement!==i)return;const s=o.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const l=a.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[u,d,f,p,m]=c;t.update(()=>{const h=ee();if(K(h)){const g=h.anchor;let y=g.getNode(),C=0,_=0;if(X(y)&&u>=0&&d>=0&&(C=u,_=u+d,h.setTextNodeRange(y,C,y,_)),C===_&&f===""||(h.insertRawText(f),y=g.getNode()),X(y)){C=p,_=p+m;const v=y.getTextContentSize();C=C>v?v:C,_=_>v?v:_,h.setTextNodeRange(y,C,y,_)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function tp(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const ur=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,iue=ur&&"documentMode"in document?document.documentMode:null,sue=ur&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),aue=!(!ur||!("InputEvent"in window)||iue)&&"getTargetRanges"in new window.InputEvent("input"),lue=ur&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),np=ur&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,cue=ur&&/^(?=.*Chrome).*/i.test(navigator.userAgent),uue=ur&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&sue&&!cue,op=me("DRAG_DROP_PASTE_FILE");let ed=class hg extends jt{static getType(){return"quote"}static clone(e){return new hg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Jn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:due,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(tt(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const i=this.getDirection();i&&(n.dir=i)}return{element:n}}static importJSON(e){return td().updateFromJSON(e)}insertNewAfter(e,n){const o=ze(),i=this.getDirection();return o.setDirection(i),this.insertAfter(o,n),o}collapseAtStart(){const e=ze();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function td(){return _n(new ed)}function qc(t){return t instanceof ed}let ul=class gg extends jt{constructor(n,o){super(o);q(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new gg(n.__tag,n.__key)}getTag(){return this.__tag}setTag(n){const o=this.getWritable();return this.__tag=n,o}createDOM(n){const o=this.__tag,i=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];Jn(i,a)}return i}updateDOM(n,o,i){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:yr,priority:0}),h2:n=>({conversion:yr,priority:0}),h3:n=>({conversion:yr,priority:0}),h4:n=>({conversion:yr,priority:0}),h5:n=>({conversion:yr,priority:0}),h6:n=>({conversion:yr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&rp(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>rp(n)?{conversion:o=>({node:Uo("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(tt(o)){this.isEmpty()&&o.append(document.createElement("br"));const i=this.getFormatType();i&&(o.style.textAlign=i);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Uo(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const i=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&i===s.getTextContentSize()||!n?ze():Uo(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),i===0&&!this.isEmpty()&&n){const c=ze();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?ze():Uo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function rp(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function yr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Uo(e),t.style!==null&&(qu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function due(t){const e=td();return t.style!==null&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function Uo(t="h1"){return _n(new ul(t))}function vg(t){return t instanceof ul}function zs(t){let e=null;if(zo(t,DragEvent)?e=t.dataTransfer:zo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),i]}function ip(t){const e=ee();if(!K(e))return!1;const n=new Set,o=e.getNodes();for(let i=0;i<o.length;i++){const s=o[i],a=s.getKey();if(n.has(a))continue;const l=Qt(s,u=>U(u)&&!u.isInline());if(l===null)continue;const c=l.getKey();l.canIndent()&&!n.has(c)&&(n.add(c),t(l))}return n.size>0}function sp(t){const e=Ur(t);return Ae(e)}function rc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function fue(t){return hs(t.registerCommand(Gm,e=>{const n=ee();return!!Rt(n)&&(n.clear(),!0)},xe),t.registerCommand(jo,e=>{const n=ee();return K(n)?(n.deleteCharacter(e),!0):!!Rt(n)&&(n.deleteNodes(),!0)},xe),t.registerCommand(Gi,e=>{const n=ee();return!!K(n)&&(n.deleteWord(e),!0)},xe),t.registerCommand(Yi,e=>{const n=ee();return!!K(n)&&(n.deleteLine(e),!0)},xe),t.registerCommand(Ar,e=>{const n=ee();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Jf(o,n,t);else if(K(n)){const i=e.data;return i&&n.insertText(i),!0}}return!0},xe),t.registerCommand(xc,()=>{const e=ee();return!!K(e)&&(e.removeText(),!0)},xe),t.registerCommand(Yt,e=>{const n=ee();return!!K(n)&&(n.formatText(e),!0)},xe),t.registerCommand(Tle,e=>{const n=ee();if(!K(n)&&!Rt(n))return!1;const o=n.getNodes();for(const i of o){const s=Qt(i,a=>U(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},xe),t.registerCommand(xr,e=>{const n=ee();return!!K(n)&&(n.insertLineBreak(e),!0)},xe),t.registerCommand(Ki,()=>{const e=ee();return!!K(e)&&(e.insertParagraph(),!0)},xe),t.registerCommand(xle,()=>(Yle([Yr()]),!0),xe),t.registerCommand(Ale,()=>ip(e=>{const n=e.getIndent();e.setIndent(n+1)}),xe),t.registerCommand(nf,()=>ip(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),xe),t.registerCommand(Xm,e=>{const n=ee();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(K(n)){const o=Vc(n.focus,!0);if(!e.shiftKey&&Ae(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},xe),t.registerCommand(Qm,e=>{const n=ee();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(K(n)){if(function(i){const s=i.focus;return s.key==="root"&&s.offset===Ze().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Vc(n.focus,!1);if(!e.shiftKey&&Ae(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},xe),t.registerCommand(Jm,e=>{const n=ee();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Uf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!K(n))return!1;if(Hf(n,!0)){const o=e.shiftKey;return e.preventDefault(),qf(n,o,!0),!0}return!1},xe),t.registerCommand(Ym,e=>{const n=ee();if(Rt(n)){const i=n.getNodes();if(i.length>0)return e.preventDefault(),Uf(i[0])?i[0].selectPrevious():i[0].selectNext(0,0),!0}if(!K(n))return!1;const o=e.shiftKey;return!!Hf(n,!1)&&(e.preventDefault(),qf(n,o,!1),!0)},xe),t.registerCommand(th,e=>{if(sp(e.target))return!1;const n=ee();if(K(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:i}=o;if(i.offset!==0)return!1;const s=i.getNode();if(Qe(s))return!1;const a=Ice(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(nf,void 0);if(np&&navigator.language==="ko-KR")return!1}else if(!Rt(n))return!1;return e.preventDefault(),t.dispatchCommand(jo,!0)},xe),t.registerCommand(oh,e=>{if(sp(e.target))return!1;const n=ee();return!(!K(n)&&!Rt(n))&&(e.preventDefault(),t.dispatchCommand(jo,!1))},xe),t.registerCommand(da,e=>{const n=ee();if(!K(n))return!1;if(rc(n),e!==null){if((np||lue||uue)&&aue)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(xr,!1)}return t.dispatchCommand(Ki,void 0)},xe),t.registerCommand(nh,()=>{const e=ee();return!!K(e)&&(t.blur(),!0)},xe),t.registerCommand(ih,e=>{const[,n]=zs(e);if(n.length>0){const i=tp(e.clientX,e.clientY);if(i!==null){const{offset:s,node:a}=i,l=Ur(a);if(l!==null){const c=nl();if(X(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=sa(c);_t(u)}t.dispatchCommand(op,n)}return e.preventDefault(),!0}const o=ee();return!!K(o)},xe),t.registerCommand(sh,e=>{const[n]=zs(e),o=ee();return!(n&&!K(o))},xe),t.registerCommand(ah,e=>{const[n]=zs(e),o=ee();if(n&&!K(o))return!1;const i=tp(e.clientX,e.clientY);if(i!==null){const s=Ur(i.node);Ae(s)&&e.preventDefault()}return!0},xe),t.registerCommand(Ac,()=>(lce(),!0),xe),t.registerCommand(Qa,e=>(Qf(t,zo(e,ClipboardEvent)?e:null),!0),xe),t.registerCommand(Nu,e=>(async function(n,o){await Qf(o,zo(n,ClipboardEvent)?n:null),o.update(()=>{const i=ee();K(i)?i.removeText():Rt(i)&&i.getNodes().forEach(s=>s.remove())})}(e,t),!0),xe),t.registerCommand(xu,e=>{const[,n,o]=zs(e);return n.length>0&&!o?(t.dispatchCommand(op,n),!0):Xr(e.target)&&Iu(e.target)?!1:ee()!==null&&(function(i,s){i.preventDefault(),s.update(()=>{const a=ee(),l=zo(i,InputEvent)||zo(i,KeyboardEvent)?null:i.clipboardData;l!=null&&a!==null&&Jf(l,a,s)},{tag:Ile})}(e,t),!0)},xe),t.registerCommand(eh,e=>{const n=ee();return K(n)&&rc(n),!1},xe),t.registerCommand(rh,e=>{const n=ee();return K(n)&&rc(n),!1},xe))}var pue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
31
+ `?u.insertParagraph():d===" "?u.insertNodes([Yr()]):u.insertText(d)}}}else e.insertRawText(a)}function Xf(t,e,n){t.dispatchCommand(wle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(K(o)&&o.isCollapsed()){const i=o.anchor;let s=null;const a=Yn(i,"previous");if(a)if(go(a))s=a.origin;else{const l=ko(a,hn(Ze(),"next").getFlipped());for(const c of l){if(X(c.origin)){s=c.origin;break}if(U(c.origin)&&!c.origin.isInline())break}}if(s&&X(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function mg(t,e,n,o=[]){let i=e===null||n.isSelected(e);const s=U(n)&&n.excludeFromCopy("html");let a=n;e!==null&&X(a)&&(a=tg(e,a,"clone"));const l=U(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&ba(58,f.name),U(u)){const p=d.children;Array.isArray(p)||ba(59,f.name)}return d}(a);X(a)&&a.getTextContentSize()===0&&(i=!1);for(let u=0;u<l.length;u++){const d=l[u],f=mg(t,e,d,c.children);!i&&U(n)&&f&&n.extractWithChild(d,e,"clone")&&(i=!0)}if(i&&!s)o.push(c);else if(Array.isArray(c.children))for(let u=0;u<c.children.length;u++){const d=c.children[u];o.push(d)}return i}function tue(t,e){const n=[],o=Ze().getChildren();for(let i=0;i<o.length;i++)mg(t,e,o[i],n);return{namespace:t._config.namespace,nodes:n}}function nue(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],i=ece(o);X(i)&&Dce(i),e.push(i)}return e}let _r=null;async function Qf(t,e,n){if(_r!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(ep(t,e,n))})});const o=t.getRootElement(),i=t._window||window,s=i.document,a=mn(i);if(o===null||a===null)return!1;const l=s.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(s.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),a.removeAllRanges(),a.addRange(c),new Promise((u,d)=>{const f=t.registerCommand(Qa,p=>(zo(p,ClipboardEvent)&&(f(),_r!==null&&(i.clearTimeout(_r),_r=null),u(ep(t,p,n))),!0),nce);_r=i.setTimeout(()=>{f(),_r=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function ep(t,e,n){if(n===void 0){const i=mn(t._window),s=ee();if(!s||s.isCollapsed()||!i)return!1;const a=i.anchorNode,l=i.focusNode;if(a!==null&&l!==null&&!ps(t,a,l))return!1;n=oue(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(rue(o,n),!0)}const hg=[["text/html",Qce],["application/x-lexical-editor",eue]];function oue(t=ee()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=ll();for(const[o,i]of hg){const s=i(n,t);s!==null&&(e[o]=s)}}return e}function rue(t,e){for(const[n]of hg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function iue(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const i=t.getRootElement();if(document.activeElement!==i)return;const s=o.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const l=a.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[u,d,f,p,m]=c;t.update(()=>{const h=ee();if(K(h)){const g=h.anchor;let y=g.getNode(),C=0,v=0;if(X(y)&&u>=0&&d>=0&&(C=u,v=u+d,h.setTextNodeRange(y,C,y,v)),C===v&&f===""||(h.insertRawText(f),y=g.getNode()),X(y)){C=p,v=p+m;const _=y.getTextContentSize();C=C>_?_:C,v=v>_?_:v,h.setTextNodeRange(y,C,y,v)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function tp(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const ur=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,sue=ur&&"documentMode"in document?document.documentMode:null,aue=ur&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),lue=!(!ur||!("InputEvent"in window)||sue)&&"getTargetRanges"in new window.InputEvent("input"),cue=ur&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),np=ur&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,uue=ur&&/^(?=.*Chrome).*/i.test(navigator.userAgent),due=ur&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&aue&&!uue,op=me("DRAG_DROP_PASTE_FILE");let ed=class gg extends jt{static getType(){return"quote"}static clone(e){return new gg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Jn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:fue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(tt(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const i=this.getDirection();i&&(n.dir=i)}return{element:n}}static importJSON(e){return td().updateFromJSON(e)}insertNewAfter(e,n){const o=ze(),i=this.getDirection();return o.setDirection(i),this.insertAfter(o,n),o}collapseAtStart(){const e=ze();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function td(){return _n(new ed)}function qc(t){return t instanceof ed}let ul=class vg extends jt{constructor(n,o){super(o);q(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new vg(n.__tag,n.__key)}getTag(){return this.__tag}setTag(n){const o=this.getWritable();return this.__tag=n,o}createDOM(n){const o=this.__tag,i=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];Jn(i,a)}return i}updateDOM(n,o,i){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:yr,priority:0}),h2:n=>({conversion:yr,priority:0}),h3:n=>({conversion:yr,priority:0}),h4:n=>({conversion:yr,priority:0}),h5:n=>({conversion:yr,priority:0}),h6:n=>({conversion:yr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&rp(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>rp(n)?{conversion:o=>({node:Uo("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(tt(o)){this.isEmpty()&&o.append(document.createElement("br"));const i=this.getFormatType();i&&(o.style.textAlign=i);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Uo(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const i=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&i===s.getTextContentSize()||!n?ze():Uo(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),i===0&&!this.isEmpty()&&n){const c=ze();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?ze():Uo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function rp(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function yr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Uo(e),t.style!==null&&(qu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function fue(t){const e=td();return t.style!==null&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function Uo(t="h1"){return _n(new ul(t))}function _g(t){return t instanceof ul}function zs(t){let e=null;if(zo(t,DragEvent)?e=t.dataTransfer:zo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),i]}function ip(t){const e=ee();if(!K(e))return!1;const n=new Set,o=e.getNodes();for(let i=0;i<o.length;i++){const s=o[i],a=s.getKey();if(n.has(a))continue;const l=Qt(s,u=>U(u)&&!u.isInline());if(l===null)continue;const c=l.getKey();l.canIndent()&&!n.has(c)&&(n.add(c),t(l))}return n.size>0}function sp(t){const e=Ur(t);return Te(e)}function rc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function pue(t){return hs(t.registerCommand(Ym,e=>{const n=ee();return!!Rt(n)&&(n.clear(),!0)},xe),t.registerCommand(jo,e=>{const n=ee();return K(n)?(n.deleteCharacter(e),!0):!!Rt(n)&&(n.deleteNodes(),!0)},xe),t.registerCommand(Gi,e=>{const n=ee();return!!K(n)&&(n.deleteWord(e),!0)},xe),t.registerCommand(Yi,e=>{const n=ee();return!!K(n)&&(n.deleteLine(e),!0)},xe),t.registerCommand(Tr,e=>{const n=ee();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Jf(o,n,t);else if(K(n)){const i=e.data;return i&&n.insertText(i),!0}}return!0},xe),t.registerCommand(xc,()=>{const e=ee();return!!K(e)&&(e.removeText(),!0)},xe),t.registerCommand(Yt,e=>{const n=ee();return!!K(n)&&(n.formatText(e),!0)},xe),t.registerCommand(Nle,e=>{const n=ee();if(!K(n)&&!Rt(n))return!1;const o=n.getNodes();for(const i of o){const s=Qt(i,a=>U(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},xe),t.registerCommand(xr,e=>{const n=ee();return!!K(n)&&(n.insertLineBreak(e),!0)},xe),t.registerCommand(Ki,()=>{const e=ee();return!!K(e)&&(e.insertParagraph(),!0)},xe),t.registerCommand(Tle,()=>(Jle([Yr()]),!0),xe),t.registerCommand(Ale,()=>ip(e=>{const n=e.getIndent();e.setIndent(n+1)}),xe),t.registerCommand(nf,()=>ip(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),xe),t.registerCommand(Qm,e=>{const n=ee();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(K(n)){const o=Vc(n.focus,!0);if(!e.shiftKey&&Te(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},xe),t.registerCommand(eh,e=>{const n=ee();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(K(n)){if(function(i){const s=i.focus;return s.key==="root"&&s.offset===Ze().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Vc(n.focus,!1);if(!e.shiftKey&&Te(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},xe),t.registerCommand(Xm,e=>{const n=ee();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Uf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!K(n))return!1;if(Hf(n,!0)){const o=e.shiftKey;return e.preventDefault(),qf(n,o,!0),!0}return!1},xe),t.registerCommand(Jm,e=>{const n=ee();if(Rt(n)){const i=n.getNodes();if(i.length>0)return e.preventDefault(),Uf(i[0])?i[0].selectPrevious():i[0].selectNext(0,0),!0}if(!K(n))return!1;const o=e.shiftKey;return!!Hf(n,!1)&&(e.preventDefault(),qf(n,o,!1),!0)},xe),t.registerCommand(nh,e=>{if(sp(e.target))return!1;const n=ee();if(K(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:i}=o;if(i.offset!==0)return!1;const s=i.getNode();if(Qe(s))return!1;const a=Pce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(nf,void 0);if(np&&navigator.language==="ko-KR")return!1}else if(!Rt(n))return!1;return e.preventDefault(),t.dispatchCommand(jo,!0)},xe),t.registerCommand(rh,e=>{if(sp(e.target))return!1;const n=ee();return!(!K(n)&&!Rt(n))&&(e.preventDefault(),t.dispatchCommand(jo,!1))},xe),t.registerCommand(da,e=>{const n=ee();if(!K(n))return!1;if(rc(n),e!==null){if((np||cue||due)&&lue)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(xr,!1)}return t.dispatchCommand(Ki,void 0)},xe),t.registerCommand(oh,()=>{const e=ee();return!!K(e)&&(t.blur(),!0)},xe),t.registerCommand(sh,e=>{const[,n]=zs(e);if(n.length>0){const i=tp(e.clientX,e.clientY);if(i!==null){const{offset:s,node:a}=i,l=Ur(a);if(l!==null){const c=nl();if(X(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=sa(c);_t(u)}t.dispatchCommand(op,n)}return e.preventDefault(),!0}const o=ee();return!!K(o)},xe),t.registerCommand(ah,e=>{const[n]=zs(e),o=ee();return!(n&&!K(o))},xe),t.registerCommand(lh,e=>{const[n]=zs(e),o=ee();if(n&&!K(o))return!1;const i=tp(e.clientX,e.clientY);if(i!==null){const s=Ur(i.node);Te(s)&&e.preventDefault()}return!0},xe),t.registerCommand(Tc,()=>(cce(),!0),xe),t.registerCommand(Qa,e=>(Qf(t,zo(e,ClipboardEvent)?e:null),!0),xe),t.registerCommand(Nu,e=>(async function(n,o){await Qf(o,zo(n,ClipboardEvent)?n:null),o.update(()=>{const i=ee();K(i)?i.removeText():Rt(i)&&i.getNodes().forEach(s=>s.remove())})}(e,t),!0),xe),t.registerCommand(xu,e=>{const[,n,o]=zs(e);return n.length>0&&!o?(t.dispatchCommand(op,n),!0):Xr(e.target)&&Iu(e.target)?!1:ee()!==null&&(function(i,s){i.preventDefault(),s.update(()=>{const a=ee(),l=zo(i,InputEvent)||zo(i,KeyboardEvent)?null:i.clipboardData;l!=null&&a!==null&&Jf(l,a,s)},{tag:Ple})}(e,t),!0)},xe),t.registerCommand(th,e=>{const n=ee();return K(n)&&rc(n),!1},xe),t.registerCommand(ih,e=>{const n=ee();return K(n)&&rc(n),!1},xe))}var mue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
32
  * Prism: Lightweight, robust, elegant syntax highlighting
33
33
  *
34
34
  * @license MIT <https://opensource.org/licenses/MIT>
35
35
  * @author Lea Verou <https://lea.verou.me>
36
36
  * @namespace
37
37
  * @public
38
- */var n=function(o){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function _(v){return v instanceof c?new c(v.type,_(v.content),v.alias):Array.isArray(v)?v.map(_):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(_){return Object.prototype.toString.call(_).slice(8,-1)},objId:function(_){return _.__id||Object.defineProperty(_,"__id",{value:++s}),_.__id},clone:function _(v,b){b=b||{};var w,k;switch(l.util.type(v)){case"Object":if(k=l.util.objId(v),b[k])return b[k];w={},b[k]=w;for(var T in v)v.hasOwnProperty(T)&&(w[T]=_(v[T],b));return w;case"Array":return k=l.util.objId(v),b[k]?b[k]:(w=[],b[k]=w,v.forEach(function(A,S){w[S]=_(A,b)}),w);default:return v}},getLanguage:function(_){for(;_;){var v=i.exec(_.className);if(v)return v[1].toLowerCase();_=_.parentElement}return"none"},setLanguage:function(_,v){_.className=_.className.replace(RegExp(i,"gi"),""),_.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(w){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(_){var v=document.getElementsByTagName("script");for(var b in v)if(v[b].src==_)return v[b]}return null}},isActive:function(_,v,b){for(var w="no-"+v;_;){var k=_.classList;if(k.contains(v))return!0;if(k.contains(w))return!1;_=_.parentElement}return!!b}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(_,v){var b=l.util.clone(l.languages[_]);for(var w in v)b[w]=v[w];return b},insertBefore:function(_,v,b,w){w=w||l.languages;var k=w[_],T={};for(var A in k)if(k.hasOwnProperty(A)){if(A==v)for(var S in b)b.hasOwnProperty(S)&&(T[S]=b[S]);b.hasOwnProperty(A)||(T[A]=k[A])}var E=w[_];return w[_]=T,l.languages.DFS(l.languages,function(D,x){x===E&&D!=_&&(this[D]=T)}),T},DFS:function _(v,b,w,k){k=k||{};var T=l.util.objId;for(var A in v)if(v.hasOwnProperty(A)){b.call(v,A,v[A],w||A);var S=v[A],E=l.util.type(S);E==="Object"&&!k[T(S)]?(k[T(S)]=!0,_(S,b,null,k)):E==="Array"&&!k[T(S)]&&(k[T(S)]=!0,_(S,b,A,k))}}},plugins:{},highlightAll:function(_,v){l.highlightAllUnder(document,_,v)},highlightAllUnder:function(_,v,b){var w={callback:b,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var k=0,T;T=w.elements[k++];)l.highlightElement(T,v===!0,w.callback)},highlightElement:function(_,v,b){var w=l.util.getLanguage(_),k=l.languages[w];l.util.setLanguage(_,w);var T=_.parentElement;T&&T.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(T,w);var A=_.textContent,S={element:_,language:w,grammar:k,code:A};function E(x){S.highlightedCode=x,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),b&&b.call(S.element)}if(l.hooks.run("before-sanity-check",S),T=S.element.parentElement,T&&T.nodeName.toLowerCase()==="pre"&&!T.hasAttribute("tabindex")&&T.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),b&&b.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){E(l.util.encode(S.code));return}if(v&&o.Worker){var D=new Worker(l.filename);D.onmessage=function(x){E(x.data)},D.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else E(l.highlight(S.code,S.grammar,S.language))},highlight:function(_,v,b){var w={code:_,grammar:v,language:b};if(l.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),c.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(_,v){var b=v.rest;if(b){for(var w in b)v[w]=b[w];delete v.rest}var k=new f;return p(k,k.head,_),d(_,k,v,k.head,0),h(k)},hooks:{all:{},add:function(_,v){var b=l.hooks.all;b[_]=b[_]||[],b[_].push(v)},run:function(_,v){var b=l.hooks.all[_];if(!(!b||!b.length))for(var w=0,k;k=b[w++];)k(v)}},Token:c};o.Prism=l;function c(_,v,b,w){this.type=_,this.content=v,this.alias=b,this.length=(w||"").length|0}c.stringify=function _(v,b){if(typeof v=="string")return v;if(Array.isArray(v)){var w="";return v.forEach(function(E){w+=_(E,b)}),w}var k={type:v.type,content:_(v.content,b),tag:"span",classes:["token",v.type],attributes:{},language:b},T=v.alias;T&&(Array.isArray(T)?Array.prototype.push.apply(k.classes,T):k.classes.push(T)),l.hooks.run("wrap",k);var A="";for(var S in k.attributes)A+=" "+S+'="'+(k.attributes[S]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+A+">"+k.content+"</"+k.tag+">"};function u(_,v,b,w){_.lastIndex=v;var k=_.exec(b);if(k&&w&&k[1]){var T=k[1].length;k.index+=T,k[0]=k[0].slice(T)}return k}function d(_,v,b,w,k,T){for(var A in b)if(!(!b.hasOwnProperty(A)||!b[A])){var S=b[A];S=Array.isArray(S)?S:[S];for(var E=0;E<S.length;++E){if(T&&T.cause==A+","+E)return;var D=S[E],x=D.inside,$=!!D.lookbehind,B=!!D.greedy,V=D.alias;if(B&&!D.pattern.global){var I=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,I+"g")}for(var W=D.pattern||D,P=w.next,H=k;P!==v.tail&&!(T&&H>=T.reach);H+=P.value.length,P=P.next){var Q=P.value;if(v.length>_.length)return;if(!(Q instanceof c)){var le=1,oe;if(B){if(oe=u(W,H,_,$),!oe||oe.index>=_.length)break;var z=oe.index,Ne=oe.index+oe[0].length,ce=H;for(ce+=P.value.length;z>=ce;)P=P.next,ce+=P.value.length;if(ce-=P.value.length,H=ce,P.value instanceof c)continue;for(var ne=P;ne!==v.tail&&(ce<Ne||typeof ne.value=="string");ne=ne.next)le++,ce+=ne.value.length;le--,Q=_.slice(H,ce),oe.index-=H}else if(oe=u(W,0,Q,$),!oe)continue;var z=oe.index,F=oe[0],se=Q.slice(0,z),Ee=Q.slice(z+F.length),Ue=H+Q.length;T&&Ue>T.reach&&(T.reach=Ue);var we=P.prev;se&&(we=p(v,we,se),H+=se.length),m(v,we,le);var Ce=new c(A,x?l.tokenize(F,x):F,V,F);if(P=p(v,we,Ce),Ee&&p(v,P,Ee),le>1){var yt={cause:A+","+E,reach:Ue};d(_,v,b,P.prev,H,yt),T&&yt.reach>T.reach&&(T.reach=yt.reach)}}}}}}function f(){var _={value:null,prev:null,next:null},v={value:null,prev:_,next:null};_.next=v,this.head=_,this.tail=v,this.length=0}function p(_,v,b){var w=v.next,k={value:b,prev:v,next:w};return v.next=k,w.prev=k,_.length++,k}function m(_,v,b){for(var w=v.next,k=0;k<b&&w!==_.tail;k++)w=w.next;v.next=w,w.prev=v,_.length-=k}function h(_){for(var v=[],b=_.head.next;b!==_.tail;)v.push(b.value),b=b.next;return v}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(_){var v=JSON.parse(_.data),b=v.language,w=v.code,k=v.immediateClose;o.postMessage(l.highlight(w,l.languages[b],b)),k&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function y(){l.manual||l.highlightAll()}if(!l.manual){var C=document.readyState;C==="loading"||C==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return l}(e);t.exports&&(t.exports=n),typeof Bt<"u"&&(Bt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};l["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(o){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var s=o.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",i=function(g,y){return"✖ Error "+g+" while fetching file: "+y},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",u="loaded",d="failed",f="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+c+'"])';function p(g,y,C){var _=new XMLHttpRequest;_.open("GET",g,!0),_.onreadystatechange=function(){_.readyState==4&&(_.status<400&&_.responseText?y(_.responseText):_.status>=400?C(i(_.status,_.statusText)):C(s))},_.send(null)}function m(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var C=Number(y[1]),_=y[2],v=y[3];return _?v?[C,Number(v)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+f}),n.hooks.add("before-sanity-check",function(g){var y=g.element;if(y.matches(f)){g.code="",y.setAttribute(l,c);var C=y.appendChild(document.createElement("CODE"));C.textContent=o;var _=y.getAttribute("data-src"),v=g.language;if(v==="none"){var b=(/\.(\w+)$/.exec(_)||[,"none"])[1];v=a[b]||b}n.util.setLanguage(C,v),n.util.setLanguage(y,v);var w=n.plugins.autoloader;w&&w.loadLanguages(v),p(_,function(k){y.setAttribute(l,u);var T=m(y.getAttribute("data-range"));if(T){var A=k.split(/\r\n?|\n/g),S=T[0],E=T[1]==null?A.length:T[1];S<0&&(S+=A.length),S=Math.max(0,Math.min(S-1,A.length)),E<0&&(E+=A.length),E=Math.max(0,Math.min(E,A.length)),k=A.slice(S,E).join(`
39
- `),y.hasAttribute("data-start")||y.setAttribute("data-start",String(S+1))}C.textContent=k,n.highlightElement(C)},function(k){y.setAttribute(l,d),C.textContent=k})}}),n.plugins.fileHighlight={highlight:function(y){for(var C=(y||document).querySelectorAll(f),_=0,v;v=C[_++];)n.highlightElement(v)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(pue);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(f){d!==f&&(t.languages.markdown[d].inside.content.inside[f]=t.languages.markdown[f])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function f(p){if(!(!p||typeof p=="string"))for(var m=0,h=p.length;m<h;m++){var g=p[m];if(g.type!=="code"){f(g.content);continue}var y=g.content[1],C=g.content[3];if(y&&C&&y.type==="code-language"&&C.type==="code-block"&&typeof y.content=="string"){var _=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");_=(/[a-z][\w-]*/i.exec(_)||[""])[0].toLowerCase();var v="language-"+_;C.alias?typeof C.alias=="string"?C.alias=[C.alias,v]:C.alias.push(v):C.alias=[v]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,m=d.classes.length;p<m;p++){var h=d.classes[p],g=/language-(.+)/.exec(h);if(g){f=g[1];break}}var y=t.languages[f];if(y)d.content=t.highlight(u(d.content),y,f);else if(f&&f!=="none"&&t.plugins.autoloader){var C="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=C,t.plugins.autoloader.loadLanguages(f,function(){var _=document.getElementById(C);_&&(_.innerHTML=t.highlight(_.textContent,t.languages[f],f))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(d){var f=d.replace(a,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(p,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),c(h)}else{var g=l[m];return g||p}}),f}t.languages.md=t.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(Prism);Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript})(Prism);(function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);(function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(Prism);function _g(t,e){for(const n of t.childNodes){if(tt(n)&&n.tagName===e)return!0;_g(n,e)}return!1}const Ai="data-language",wi="data-highlight-language",Us="data-theme";let dl=class yg extends jt{constructor(n,o){super(o);q(this,"__language");q(this,"__theme");q(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new yg(n.__language,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__language=n.__language,this.__theme=n.__theme,this.__isSyntaxHighlightSupported=n.__isSyntaxHighlightSupported}createDOM(n){const o=document.createElement("code");Jn(o,n.theme.code),o.setAttribute("spellcheck","false");const i=this.getLanguage();i&&(o.setAttribute(Ai,i),this.getIsSyntaxHighlightSupported()&&o.setAttribute(wi,i));const s=this.getTheme();s&&o.setAttribute(Us,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,i){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(Ai,s):a&&o.removeAttribute(Ai);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(wi,s):o.removeAttribute(wi):l&&s&&o.setAttribute(wi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Us,c):u&&o.removeAttribute(Us);const d=this.__style,f=n.__style;return d?d!==f&&o.setAttribute("style",d):f&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");Jn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const i=this.getLanguage();i&&(o.setAttribute(Ai,i),this.getIsSyntaxHighlightSupported()&&o.setAttribute(wi,i));const s=this.getTheme();s&&o.setAttribute(Us,s);const a=this.getStyle();return a&&o.setAttribute("style",a),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||_g(n,"BR"))?{conversion:ap,priority:1}:null,div:()=>({conversion:mue,priority:1}),pre:()=>({conversion:ap,priority:0}),table:n=>ic(n)?{conversion:hue,priority:3}:null,td:n=>{const o=n,i=o.closest("table");return o.classList.contains("js-file-line")||i&&ic(i)?{conversion:lp,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&ic(o)?{conversion:lp,priority:3}:null}}}static importJSON(n){return Nn().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setLanguage(n.language).setTheme(n.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(n,o=!0){const i=this.getChildren(),s=i.length;if(s>=2&&i[s-1].getTextContent()===`
38
+ */var n=function(o){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function v(_){return _ instanceof c?new c(_.type,v(_.content),_.alias):Array.isArray(_)?_.map(v):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++s}),v.__id},clone:function v(_,b){b=b||{};var w,k;switch(l.util.type(_)){case"Object":if(k=l.util.objId(_),b[k])return b[k];w={},b[k]=w;for(var A in _)_.hasOwnProperty(A)&&(w[A]=v(_[A],b));return w;case"Array":return k=l.util.objId(_),b[k]?b[k]:(w=[],b[k]=w,_.forEach(function(T,S){w[S]=v(T,b)}),w);default:return _}},getLanguage:function(v){for(;v;){var _=i.exec(v.className);if(_)return _[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,_){v.className=v.className.replace(RegExp(i,"gi"),""),v.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var _=document.getElementsByTagName("script");for(var b in _)if(_[b].src==v)return _[b]}return null}},isActive:function(v,_,b){for(var w="no-"+_;v;){var k=v.classList;if(k.contains(_))return!0;if(k.contains(w))return!1;v=v.parentElement}return!!b}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,_){var b=l.util.clone(l.languages[v]);for(var w in _)b[w]=_[w];return b},insertBefore:function(v,_,b,w){w=w||l.languages;var k=w[v],A={};for(var T in k)if(k.hasOwnProperty(T)){if(T==_)for(var S in b)b.hasOwnProperty(S)&&(A[S]=b[S]);b.hasOwnProperty(T)||(A[T]=k[T])}var E=w[v];return w[v]=A,l.languages.DFS(l.languages,function(D,x){x===E&&D!=v&&(this[D]=A)}),A},DFS:function v(_,b,w,k){k=k||{};var A=l.util.objId;for(var T in _)if(_.hasOwnProperty(T)){b.call(_,T,_[T],w||T);var S=_[T],E=l.util.type(S);E==="Object"&&!k[A(S)]?(k[A(S)]=!0,v(S,b,null,k)):E==="Array"&&!k[A(S)]&&(k[A(S)]=!0,v(S,b,T,k))}}},plugins:{},highlightAll:function(v,_){l.highlightAllUnder(document,v,_)},highlightAllUnder:function(v,_,b){var w={callback:b,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var k=0,A;A=w.elements[k++];)l.highlightElement(A,_===!0,w.callback)},highlightElement:function(v,_,b){var w=l.util.getLanguage(v),k=l.languages[w];l.util.setLanguage(v,w);var A=v.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(A,w);var T=v.textContent,S={element:v,language:w,grammar:k,code:T};function E(x){S.highlightedCode=x,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),b&&b.call(S.element)}if(l.hooks.run("before-sanity-check",S),A=S.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),b&&b.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){E(l.util.encode(S.code));return}if(_&&o.Worker){var D=new Worker(l.filename);D.onmessage=function(x){E(x.data)},D.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else E(l.highlight(S.code,S.grammar,S.language))},highlight:function(v,_,b){var w={code:v,grammar:_,language:b};if(l.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),c.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(v,_){var b=_.rest;if(b){for(var w in b)_[w]=b[w];delete _.rest}var k=new f;return p(k,k.head,v),d(v,k,_,k.head,0),h(k)},hooks:{all:{},add:function(v,_){var b=l.hooks.all;b[v]=b[v]||[],b[v].push(_)},run:function(v,_){var b=l.hooks.all[v];if(!(!b||!b.length))for(var w=0,k;k=b[w++];)k(_)}},Token:c};o.Prism=l;function c(v,_,b,w){this.type=v,this.content=_,this.alias=b,this.length=(w||"").length|0}c.stringify=function v(_,b){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(E){w+=v(E,b)}),w}var k={type:_.type,content:v(_.content,b),tag:"span",classes:["token",_.type],attributes:{},language:b},A=_.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(k.classes,A):k.classes.push(A)),l.hooks.run("wrap",k);var T="";for(var S in k.attributes)T+=" "+S+'="'+(k.attributes[S]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+T+">"+k.content+"</"+k.tag+">"};function u(v,_,b,w){v.lastIndex=_;var k=v.exec(b);if(k&&w&&k[1]){var A=k[1].length;k.index+=A,k[0]=k[0].slice(A)}return k}function d(v,_,b,w,k,A){for(var T in b)if(!(!b.hasOwnProperty(T)||!b[T])){var S=b[T];S=Array.isArray(S)?S:[S];for(var E=0;E<S.length;++E){if(A&&A.cause==T+","+E)return;var D=S[E],x=D.inside,$=!!D.lookbehind,B=!!D.greedy,V=D.alias;if(B&&!D.pattern.global){var I=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,I+"g")}for(var W=D.pattern||D,P=w.next,H=k;P!==_.tail&&!(A&&H>=A.reach);H+=P.value.length,P=P.next){var Q=P.value;if(_.length>v.length)return;if(!(Q instanceof c)){var le=1,oe;if(B){if(oe=u(W,H,v,$),!oe||oe.index>=v.length)break;var z=oe.index,Ne=oe.index+oe[0].length,ce=H;for(ce+=P.value.length;z>=ce;)P=P.next,ce+=P.value.length;if(ce-=P.value.length,H=ce,P.value instanceof c)continue;for(var ne=P;ne!==_.tail&&(ce<Ne||typeof ne.value=="string");ne=ne.next)le++,ce+=ne.value.length;le--,Q=v.slice(H,ce),oe.index-=H}else if(oe=u(W,0,Q,$),!oe)continue;var z=oe.index,F=oe[0],se=Q.slice(0,z),Ee=Q.slice(z+F.length),Ue=H+Q.length;A&&Ue>A.reach&&(A.reach=Ue);var we=P.prev;se&&(we=p(_,we,se),H+=se.length),m(_,we,le);var Ce=new c(T,x?l.tokenize(F,x):F,V,F);if(P=p(_,we,Ce),Ee&&p(_,P,Ee),le>1){var yt={cause:T+","+E,reach:Ue};d(v,_,b,P.prev,H,yt),A&&yt.reach>A.reach&&(A.reach=yt.reach)}}}}}}function f(){var v={value:null,prev:null,next:null},_={value:null,prev:v,next:null};v.next=_,this.head=v,this.tail=_,this.length=0}function p(v,_,b){var w=_.next,k={value:b,prev:_,next:w};return _.next=k,w.prev=k,v.length++,k}function m(v,_,b){for(var w=_.next,k=0;k<b&&w!==v.tail;k++)w=w.next;_.next=w,w.prev=_,v.length-=k}function h(v){for(var _=[],b=v.head.next;b!==v.tail;)_.push(b.value),b=b.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(v){var _=JSON.parse(v.data),b=_.language,w=_.code,k=_.immediateClose;o.postMessage(l.highlight(w,l.languages[b],b)),k&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function y(){l.manual||l.highlightAll()}if(!l.manual){var C=document.readyState;C==="loading"||C==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return l}(e);t.exports&&(t.exports=n),typeof Bt<"u"&&(Bt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};l["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(o){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var s=o.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",i=function(g,y){return"✖ Error "+g+" while fetching file: "+y},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",u="loaded",d="failed",f="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+c+'"])';function p(g,y,C){var v=new XMLHttpRequest;v.open("GET",g,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?y(v.responseText):v.status>=400?C(i(v.status,v.statusText)):C(s))},v.send(null)}function m(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var C=Number(y[1]),v=y[2],_=y[3];return v?_?[C,Number(_)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+f}),n.hooks.add("before-sanity-check",function(g){var y=g.element;if(y.matches(f)){g.code="",y.setAttribute(l,c);var C=y.appendChild(document.createElement("CODE"));C.textContent=o;var v=y.getAttribute("data-src"),_=g.language;if(_==="none"){var b=(/\.(\w+)$/.exec(v)||[,"none"])[1];_=a[b]||b}n.util.setLanguage(C,_),n.util.setLanguage(y,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),p(v,function(k){y.setAttribute(l,u);var A=m(y.getAttribute("data-range"));if(A){var T=k.split(/\r\n?|\n/g),S=A[0],E=A[1]==null?T.length:A[1];S<0&&(S+=T.length),S=Math.max(0,Math.min(S-1,T.length)),E<0&&(E+=T.length),E=Math.max(0,Math.min(E,T.length)),k=T.slice(S,E).join(`
39
+ `),y.hasAttribute("data-start")||y.setAttribute("data-start",String(S+1))}C.textContent=k,n.highlightElement(C)},function(k){y.setAttribute(l,d),C.textContent=k})}}),n.plugins.fileHighlight={highlight:function(y){for(var C=(y||document).querySelectorAll(f),v=0,_;_=C[v++];)n.highlightElement(_)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(mue);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(f){d!==f&&(t.languages.markdown[d].inside.content.inside[f]=t.languages.markdown[f])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function f(p){if(!(!p||typeof p=="string"))for(var m=0,h=p.length;m<h;m++){var g=p[m];if(g.type!=="code"){f(g.content);continue}var y=g.content[1],C=g.content[3];if(y&&C&&y.type==="code-language"&&C.type==="code-block"&&typeof y.content=="string"){var v=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase();var _="language-"+v;C.alias?typeof C.alias=="string"?C.alias=[C.alias,_]:C.alias.push(_):C.alias=[_]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,m=d.classes.length;p<m;p++){var h=d.classes[p],g=/language-(.+)/.exec(h);if(g){f=g[1];break}}var y=t.languages[f];if(y)d.content=t.highlight(u(d.content),y,f);else if(f&&f!=="none"&&t.plugins.autoloader){var C="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=C,t.plugins.autoloader.loadLanguages(f,function(){var v=document.getElementById(C);v&&(v.innerHTML=t.highlight(v.textContent,t.languages[f],f))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(d){var f=d.replace(a,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(p,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),c(h)}else{var g=l[m];return g||p}}),f}t.languages.md=t.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(Prism);Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript})(Prism);(function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);(function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(Prism);function yg(t,e){for(const n of t.childNodes){if(tt(n)&&n.tagName===e)return!0;yg(n,e)}return!1}const Ti="data-language",wi="data-highlight-language",Us="data-theme";let dl=class Cg extends jt{constructor(n,o){super(o);q(this,"__language");q(this,"__theme");q(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new Cg(n.__language,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__language=n.__language,this.__theme=n.__theme,this.__isSyntaxHighlightSupported=n.__isSyntaxHighlightSupported}createDOM(n){const o=document.createElement("code");Jn(o,n.theme.code),o.setAttribute("spellcheck","false");const i=this.getLanguage();i&&(o.setAttribute(Ti,i),this.getIsSyntaxHighlightSupported()&&o.setAttribute(wi,i));const s=this.getTheme();s&&o.setAttribute(Us,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,i){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(Ti,s):a&&o.removeAttribute(Ti);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(wi,s):o.removeAttribute(wi):l&&s&&o.setAttribute(wi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Us,c):u&&o.removeAttribute(Us);const d=this.__style,f=n.__style;return d?d!==f&&o.setAttribute("style",d):f&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");Jn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const i=this.getLanguage();i&&(o.setAttribute(Ti,i),this.getIsSyntaxHighlightSupported()&&o.setAttribute(wi,i));const s=this.getTheme();s&&o.setAttribute(Us,s);const a=this.getStyle();return a&&o.setAttribute("style",a),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||yg(n,"BR"))?{conversion:ap,priority:1}:null,div:()=>({conversion:hue,priority:1}),pre:()=>({conversion:ap,priority:0}),table:n=>ic(n)?{conversion:gue,priority:3}:null,td:n=>{const o=n,i=o.closest("table");return o.classList.contains("js-file-line")||i&&ic(i)?{conversion:lp,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&ic(o)?{conversion:lp,priority:3}:null}}}static importJSON(n){return Nn().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setLanguage(n.language).setTheme(n.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(n,o=!0){const i=this.getChildren(),s=i.length;if(s>=2&&i[s-1].getTextContent()===`
40
40
  `&&i[s-2].getTextContent()===`
41
- `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){i[s-1].remove(),i[s-2].remove();const u=ze();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(X(c)){let u=vue(c);const d=[];for(;;)if(el(u))d.push(Yr()),u=u.getNextSibling();else{if(!wg(u))break;{let C=0;const _=u.getTextContent(),v=u.getTextContentSize();for(;C<v&&_[C]===" ";)C++;if(C!==0&&d.push(kg(" ".repeat(C))),C!==v)break;u=u.getNextSibling()}}const f=c.splitText(a.offset)[0],p=a.offset===0?0:1,m=f.getIndexWithinParent()+p,h=c.getParentOrThrow(),g=[pn(),...d];h.splice(m,0,g);const y=d[d.length-1];y?y.select():a.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(fl(c)){const{offset:u}=n.anchor;c.splice(u,0,[pn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=ze();return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}setLanguage(n){const o=this.getWritable();return o.__language=n||void 0,o}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(n){const o=this.getWritable();return o.__isSyntaxHighlightSupported=n,o}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(n){const o=this.getWritable();return o.__theme=n||void 0,o}getTheme(){return this.getLatest().__theme}};function Nn(t,e){return vce(dl).setLanguage(t).setTheme(e)}function fl(t){return t instanceof dl}function ap(t){return{node:Nn(t.getAttribute(Ai))}}function mue(t){const e=t,n=cp(e);return n||function(o){let i=o.parentElement;for(;i!==null;){if(cp(i))return!0;i=i.parentElement}return!1}(e)?{node:n?Nn():null}:{node:null}}function hue(){return{node:Nn()}}function lp(){return{node:null}}function cp(t){return t.style.fontFamily.match("monospace")!==null}function ic(t){return t.classList.contains("js-file-line-container")}let Cg=class bg extends xo{constructor(n="",o,i){super(n,i);q(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new bg(n.__text,n.__highlightType||void 0,n.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(n){const o=this.getWritable();return o.__highlightType=n||void 0,o}canHaveFormat(){return!1}createDOM(n){const o=super.createDOM(n),i=sc(n.theme,this.__highlightType);return Jn(o,i),o}updateDOM(n,o,i){const s=super.updateDOM(n,o,i),a=sc(i.theme,n.__highlightType),l=sc(i.theme,this.__highlightType);return a!==l&&(a&&Xu(o,a),l&&Jn(o,l)),s}static importJSON(n){return kg().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setHighlightType(n.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(n){return this}isParentRequired(){return!0}createParentElementNode(){return Nn()}};function sc(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function kg(t="",e){return _n(new Cg(t,e))}function wg(t){return t instanceof Cg}function gue(t,e){let n=t;for(let o=ht(t,e);o&&(wg(o.origin)||el(o.origin));o=Oce(o))n=o.origin;return n}function vue(t){return gue(t,"previous")}(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(n){var o=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n==="diff"&&i.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
41
+ `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){i[s-1].remove(),i[s-2].remove();const u=ze();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(X(c)){let u=_ue(c);const d=[];for(;;)if(el(u))d.push(Yr()),u=u.getNextSibling();else{if(!Eg(u))break;{let C=0;const v=u.getTextContent(),_=u.getTextContentSize();for(;C<_&&v[C]===" ";)C++;if(C!==0&&d.push(wg(" ".repeat(C))),C!==_)break;u=u.getNextSibling()}}const f=c.splitText(a.offset)[0],p=a.offset===0?0:1,m=f.getIndexWithinParent()+p,h=c.getParentOrThrow(),g=[pn(),...d];h.splice(m,0,g);const y=d[d.length-1];y?y.select():a.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(fl(c)){const{offset:u}=n.anchor;c.splice(u,0,[pn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=ze();return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}setLanguage(n){const o=this.getWritable();return o.__language=n||void 0,o}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(n){const o=this.getWritable();return o.__isSyntaxHighlightSupported=n,o}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(n){const o=this.getWritable();return o.__theme=n||void 0,o}getTheme(){return this.getLatest().__theme}};function Nn(t,e){return _ce(dl).setLanguage(t).setTheme(e)}function fl(t){return t instanceof dl}function ap(t){return{node:Nn(t.getAttribute(Ti))}}function hue(t){const e=t,n=cp(e);return n||function(o){let i=o.parentElement;for(;i!==null;){if(cp(i))return!0;i=i.parentElement}return!1}(e)?{node:n?Nn():null}:{node:null}}function gue(){return{node:Nn()}}function lp(){return{node:null}}function cp(t){return t.style.fontFamily.match("monospace")!==null}function ic(t){return t.classList.contains("js-file-line-container")}let bg=class kg extends xo{constructor(n="",o,i){super(n,i);q(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new kg(n.__text,n.__highlightType||void 0,n.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(n){const o=this.getWritable();return o.__highlightType=n||void 0,o}canHaveFormat(){return!1}createDOM(n){const o=super.createDOM(n),i=sc(n.theme,this.__highlightType);return Jn(o,i),o}updateDOM(n,o,i){const s=super.updateDOM(n,o,i),a=sc(i.theme,n.__highlightType),l=sc(i.theme,this.__highlightType);return a!==l&&(a&&Xu(o,a),l&&Jn(o,l)),s}static importJSON(n){return wg().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setHighlightType(n.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(n){return this}isParentRequired(){return!0}createParentElementNode(){return Nn()}};function sc(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function wg(t="",e){return _n(new bg(t,e))}function Eg(t){return t instanceof bg}function vue(t,e){let n=t;for(let o=ht(t,e);o&&(Eg(o.origin)||el(o.origin));o=Vce(o))n=o.origin;return n}function _ue(t){return vue(t,"previous")}(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(n){var o=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n==="diff"&&i.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
42
42
  ?|
43
- |(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const _ue=new Set(["http:","https:","mailto:","sms:","tel:"]);class ei extends jt{constructor(n="",o={},i){super(i);q(this,"__url");q(this,"__target");q(this,"__rel");q(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new ei(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),Jn(o,n.theme.link),o}updateLinkDOM(n,o,i){if(qh(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const a=`__${s}`,l=this[a];n&&n[a]===l||(l?o[s]=l:o.removeAttribute(s))}}}updateDOM(n,o,i){return this.updateLinkDOM(n,o,i),!1}static importDOM(){return{a:n=>({conversion:yue,priority:1})}}static importJSON(n){return ka().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=dp(n);try{const o=new URL(dp(n));if(!_ue.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const i=ka(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(i,o),i}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,i){if(!K(o))return!1;const s=o.anchor.getNode(),a=o.focus.getNode();return this.isParentOf(s)&&this.isParentOf(a)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function yue(t){let e=null;if(qh(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=ka(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function ka(t="",e){return _n(new ei(t,e))}function Cue(t){return t instanceof ei}class pl extends ei{constructor(n="",o={},i){super(n,o,i);q(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new pl(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,i){return super.updateDOM(n,o,i)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return up().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const i=this.getParentOrThrow().insertNewAfter(n,o);if(U(i)){const s=up(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return i.append(s),s}return null}}function up(t="",e){return _n(new pl(t,e))}function bue(t){return t instanceof pl}const kue=/^\+?[0-9\s()-]{5,}$/;function dp(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:kue.test(t)?`tel:${t}`:`https://${t}`}function jc(t,e){const n={};for(const o of t){const i=e(o);i&&(n[i]?n[i].push(o):n[i]=[o])}return n}function nd(t){const e=jc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const wa=/[!-/:-@[-`{-~\s]/,wue=/^\s{0,3}$/;function Wc(t){if(!fs(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&X(e)&&wue.test(e.getTextContent())}function Eue(t,e,n,o){for(const i of e){if(!i.export)continue;const s=i.export(t,a=>Ea(a,n,o));if(s!=null)return s}return U(t)?Ea(t,n,o):Ae(t)?t.getTextContent():null}function Ea(t,e,n,o,i){const s=[],a=t.getChildren();o||(o=[]),i||(i=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>Ea(d,e,n,o,[...i,...o]),(d,f)=>fp(d,f,e,o,i));if(u!=null){s.push(u);continue e}}ho(l)?s.push(`
44
- `):X(l)?s.push(fp(l,l.getTextContent(),e,o,i)):U(l)?s.push(Ea(l,e,n,o,i)):Ae(l)&&s.push(l.getTextContent())}return s.join("")}function fp(t,e,n,o,i){let s=t.getFormat()===0?e:function(p){return p.replace(/^\s+|\s+$/g,m=>[...m].map(h=>"&#"+h.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=pp(t,!0),d=pp(t,!1),f=new Set;for(const p of n){const m=p.format[0],h=p.tag;Hs(t,m)&&!f.has(m)&&(f.add(m),Hs(u,m)&&o.find(g=>g.tag===h)||(o.push({format:m,tag:h}),a+=h))}for(let p=0;p<o.length;p++){const m=Hs(t,o[p].format),h=Hs(d,o[p].format);if(m&&h)continue;const g=[...o];for(;g.length>p;){const y=g.pop();i&&y&&i.find(C=>C.tag===y.tag)||(y&&typeof y.tag=="string"&&(m?h||(c+=y.tag):l+=y.tag),o.pop())}break}return s=a+s+c,l+s}function pp(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(U(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(X(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(X(n))return n;if(!U(n))return null}return null}function Hs(t,e){return X(t)&&t.hasFormat(e)}function Sue(t,e){const n=function(i,s){const a=i.match(s.openTagsRegExp);if(a==null)return null;for(const l of a){const c=l.replace(/^\s/,""),u=s.fullMatchRegExpByTag[c];if(u==null)continue;const d=i.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,m=i[p-1],h=i[p+d[0].length];if((!m||wa.test(m))&&(!h||wa.test(h)))return d}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Vo(t){return X(t)&&!t.hasFormat("code")}function Io(t,e,n){let o=Sue(t,e),i=function(a,l){const c=a;let u,d,f,p;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const g=h.index||0,y=m.getEndIndex?m.getEndIndex(c,h):g+h[0].length;y!==!1&&(u===void 0||d===void 0||g<u&&(y>d||y<=u))&&(u=g,d=y,f=m,p=h)}return u===void 0||d===void 0||f===void 0||p===void 0?null:{endIndex:d,match:p,startIndex:u,transformer:f}}(t,n);if(o&&i&&(o.startIndex<=i.startIndex&&o.endIndex>=i.endIndex||i.startIndex>o.endIndex?i=null:o=null),o){const a=function(l,c,u,d,f){const p=l.getTextContent();let m,h,g;if(f[0]===p?m=l:c===0?[m,h]=l.splitText(u):[g,m,h]=l.splitText(c,u),m.setTextContent(f[2]),d)for(const y of d.format)m.hasFormat(y)||m.toggleFormat(y);return{nodeAfter:h,nodeBefore:g,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Vo(a.nodeAfter)&&Io(a.nodeAfter,e,n),Vo(a.nodeBefore)&&Io(a.nodeBefore,e,n),Vo(a.transformedNode)&&Io(a.transformedNode,e,n)}else if(i){const a=function(l,c,u,d,f){let p,m,h;return c===0?[p,m]=l.splitText(u):[h,p,m]=l.splitText(c,u),d.replace?{nodeAfter:m,nodeBefore:h,transformedNode:d.replace(p,f)||void 0}:null}(t,i.startIndex,i.endIndex,i.transformer,i.match);if(!a)return;Vo(a.nodeAfter)&&Io(a.nodeAfter,e,n),Vo(a.nodeBefore)&&Io(a.nodeBefore,e,n),Vo(a.transformedNode)&&Io(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function xue(t,e=!1){const n=nd(t),o=function(i){const s={},a={},l=[],c="(?<![\\\\])";for(const u of i){const{tag:d}=u;s[d]=u;const f=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(f),d.length===1?a[d]=new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`):a[d]=new RegExp(`(?<!\\\\)(${f})((\\\\${f})?.*?[^\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(i,s)=>{const a=i.split(`
45
- `),l=a.length,c=s||Ze();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=Aue(a,d,n.multilineElement,c);p?d=m:Tue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&Wc(d)&&c.getChildrenSize()>1&&d.remove();ee()!==null&&c.selectStart()}}function Aue(t,e,n,o){for(const i of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=i,u=t[e].match(l);if(!u)continue;if(s){const h=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:i});if(h===null)continue;if(h)return h}const d=typeof a=="object"&&"regExp"in a?a.regExp:a,f=a&&typeof a=="object"&&"optional"in a?a.optional:!a;let p=e;const m=t.length;for(;p<m;){const h=d?t[p].match(d):null;if(!h&&(!f||f&&p<m-1)){p++;continue}if(h&&e===p&&h.index===u.index){p++;continue}const g=[];if(h&&e===p)g.push(t[e].slice(u[0].length,-h[0].length));else for(let y=e;y<=p;y++)if(y===e){const C=t[y].slice(u[0].length);g.push(C)}else if(y===p&&h){const C=t[y].slice(0,-h[0].length);g.push(C)}else g.push(t[y]);if(c(o,null,u,h,g,!0)!==!1)return[!0,p];break}}return[!1,e]}function Tue(t,e,n,o,i,s){const a=Ge(t),l=ze();l.append(a),e.append(l);for(const{regExp:c,replace:u}of n){const d=t.match(c);if(d&&(a.setTextContent(t.slice(d[0].length)),u(l,[a],d,!0)!==!1))break}if(Io(a,o,i),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(fs(c)||qc(c)||ge(c))){let u=c;if(ge(c)){const d=c.getLastDescendant();u=d==null?null:Qt(d,Te)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[pn(),...l.getChildren()]),l.remove())}}}function Nue(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Eg=/^(\s*)(\d{1,})\.\s/,Sg=/^(\s*)[-*+]\s/,Due=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Zc=/^(#{1,6})\s/,xg=/^>\s/,Ag=/^[ \t]*```([\w-]+)?/,Kc=/[ \t]*```$/,$ue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Bue=/^(?:\|)(.+)(?:\|)\s?$/,Mue=/^(\| ?:?-*:? ?)+\|\s?$/,mp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,hp=/^<\/[a-z_][\w-]*\s*>/i,gp=t=>new RegExp(`(?:${t.source})$`,t.flags),Ti=hle("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),Tg=t=>(e,n,o,i)=>{const s=t(o);s.append(...n),e.replace(s),i||s.select(0,0)},Ng=t=>(e,n,o,i)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=Wt(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==Ti.parse(c)?void 0:c;if(ge(a)&&a.getListType()===t){u&&jl(a,Ti,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(ge(s)&&s.getListType()===t)u&&jl(s,Ti,u),s.append(l),e.remove();else{const f=Lt(t,t==="number"?Number(o[2]):void 0);u&&jl(f,Ti,u),f.append(l),e.replace(f)}l.append(...n),i||l.select(0,0);const d=function(f){const p=f.match(/\t/g),m=f.match(/ /g);let h=0;return p&&(h+=p.length),m&&(h+=Math.floor(m.length/4)),h}(o[1]);d&&l.setIndent(d)},od=(t,e,n)=>{const o=[],i=t.getChildren();let s=0;for(const a of i)if(Te(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(ge(f)){o.push(od(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=Rm(t,Ti),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
46
- `)},Dg={dependencies:[ul],export:(t,e)=>{if(!vg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Zc,replace:Tg(t=>{const e="h"+t[1].length;return Uo(e)}),type:"element"},Lue={dependencies:[ed],export:(t,e)=>{if(!qc(t))return null;const n=e(t).split(`
43
+ |(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const yue=new Set(["http:","https:","mailto:","sms:","tel:"]);class ei extends jt{constructor(n="",o={},i){super(i);q(this,"__url");q(this,"__target");q(this,"__rel");q(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new ei(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),Jn(o,n.theme.link),o}updateLinkDOM(n,o,i){if(jh(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const a=`__${s}`,l=this[a];n&&n[a]===l||(l?o[s]=l:o.removeAttribute(s))}}}updateDOM(n,o,i){return this.updateLinkDOM(n,o,i),!1}static importDOM(){return{a:n=>({conversion:Cue,priority:1})}}static importJSON(n){return ka().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=dp(n);try{const o=new URL(dp(n));if(!yue.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const i=ka(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(i,o),i}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,i){if(!K(o))return!1;const s=o.anchor.getNode(),a=o.focus.getNode();return this.isParentOf(s)&&this.isParentOf(a)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function Cue(t){let e=null;if(jh(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=ka(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function ka(t="",e){return _n(new ei(t,e))}function bue(t){return t instanceof ei}class pl extends ei{constructor(n="",o={},i){super(n,o,i);q(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new pl(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,i){return super.updateDOM(n,o,i)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return up().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const i=this.getParentOrThrow().insertNewAfter(n,o);if(U(i)){const s=up(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return i.append(s),s}return null}}function up(t="",e){return _n(new pl(t,e))}function kue(t){return t instanceof pl}const wue=/^\+?[0-9\s()-]{5,}$/;function dp(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:wue.test(t)?`tel:${t}`:`https://${t}`}function jc(t,e){const n={};for(const o of t){const i=e(o);i&&(n[i]?n[i].push(o):n[i]=[o])}return n}function nd(t){const e=jc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const wa=/[!-/:-@[-`{-~\s]/,Eue=/^\s{0,3}$/;function Wc(t){if(!fs(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&X(e)&&Eue.test(e.getTextContent())}function Sue(t,e,n,o){for(const i of e){if(!i.export)continue;const s=i.export(t,a=>Ea(a,n,o));if(s!=null)return s}return U(t)?Ea(t,n,o):Te(t)?t.getTextContent():null}function Ea(t,e,n,o,i){const s=[],a=t.getChildren();o||(o=[]),i||(i=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>Ea(d,e,n,o,[...i,...o]),(d,f)=>fp(d,f,e,o,i));if(u!=null){s.push(u);continue e}}ho(l)?s.push(`
44
+ `):X(l)?s.push(fp(l,l.getTextContent(),e,o,i)):U(l)?s.push(Ea(l,e,n,o,i)):Te(l)&&s.push(l.getTextContent())}return s.join("")}function fp(t,e,n,o,i){let s=t.getFormat()===0?e:function(p){return p.replace(/^\s+|\s+$/g,m=>[...m].map(h=>"&#"+h.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=pp(t,!0),d=pp(t,!1),f=new Set;for(const p of n){const m=p.format[0],h=p.tag;Hs(t,m)&&!f.has(m)&&(f.add(m),Hs(u,m)&&o.find(g=>g.tag===h)||(o.push({format:m,tag:h}),a+=h))}for(let p=0;p<o.length;p++){const m=Hs(t,o[p].format),h=Hs(d,o[p].format);if(m&&h)continue;const g=[...o];for(;g.length>p;){const y=g.pop();i&&y&&i.find(C=>C.tag===y.tag)||(y&&typeof y.tag=="string"&&(m?h||(c+=y.tag):l+=y.tag),o.pop())}break}return s=a+s+c,l+s}function pp(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(U(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(X(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(X(n))return n;if(!U(n))return null}return null}function Hs(t,e){return X(t)&&t.hasFormat(e)}function xue(t,e){const n=function(i,s){const a=i.match(s.openTagsRegExp);if(a==null)return null;for(const l of a){const c=l.replace(/^\s/,""),u=s.fullMatchRegExpByTag[c];if(u==null)continue;const d=i.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,m=i[p-1],h=i[p+d[0].length];if((!m||wa.test(m))&&(!h||wa.test(h)))return d}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Vo(t){return X(t)&&!t.hasFormat("code")}function Io(t,e,n){let o=xue(t,e),i=function(a,l){const c=a;let u,d,f,p;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const g=h.index||0,y=m.getEndIndex?m.getEndIndex(c,h):g+h[0].length;y!==!1&&(u===void 0||d===void 0||g<u&&(y>d||y<=u))&&(u=g,d=y,f=m,p=h)}return u===void 0||d===void 0||f===void 0||p===void 0?null:{endIndex:d,match:p,startIndex:u,transformer:f}}(t,n);if(o&&i&&(o.startIndex<=i.startIndex&&o.endIndex>=i.endIndex||i.startIndex>o.endIndex?i=null:o=null),o){const a=function(l,c,u,d,f){const p=l.getTextContent();let m,h,g;if(f[0]===p?m=l:c===0?[m,h]=l.splitText(u):[g,m,h]=l.splitText(c,u),m.setTextContent(f[2]),d)for(const y of d.format)m.hasFormat(y)||m.toggleFormat(y);return{nodeAfter:h,nodeBefore:g,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Vo(a.nodeAfter)&&Io(a.nodeAfter,e,n),Vo(a.nodeBefore)&&Io(a.nodeBefore,e,n),Vo(a.transformedNode)&&Io(a.transformedNode,e,n)}else if(i){const a=function(l,c,u,d,f){let p,m,h;return c===0?[p,m]=l.splitText(u):[h,p,m]=l.splitText(c,u),d.replace?{nodeAfter:m,nodeBefore:h,transformedNode:d.replace(p,f)||void 0}:null}(t,i.startIndex,i.endIndex,i.transformer,i.match);if(!a)return;Vo(a.nodeAfter)&&Io(a.nodeAfter,e,n),Vo(a.nodeBefore)&&Io(a.nodeBefore,e,n),Vo(a.transformedNode)&&Io(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function Tue(t,e=!1){const n=nd(t),o=function(i){const s={},a={},l=[],c="(?<![\\\\])";for(const u of i){const{tag:d}=u;s[d]=u;const f=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(f),d.length===1?a[d]=new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`):a[d]=new RegExp(`(?<!\\\\)(${f})((\\\\${f})?.*?[^\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(i,s)=>{const a=i.split(`
45
+ `),l=a.length,c=s||Ze();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=Aue(a,d,n.multilineElement,c);p?d=m:Nue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&Wc(d)&&c.getChildrenSize()>1&&d.remove();ee()!==null&&c.selectStart()}}function Aue(t,e,n,o){for(const i of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=i,u=t[e].match(l);if(!u)continue;if(s){const h=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:i});if(h===null)continue;if(h)return h}const d=typeof a=="object"&&"regExp"in a?a.regExp:a,f=a&&typeof a=="object"&&"optional"in a?a.optional:!a;let p=e;const m=t.length;for(;p<m;){const h=d?t[p].match(d):null;if(!h&&(!f||f&&p<m-1)){p++;continue}if(h&&e===p&&h.index===u.index){p++;continue}const g=[];if(h&&e===p)g.push(t[e].slice(u[0].length,-h[0].length));else for(let y=e;y<=p;y++)if(y===e){const C=t[y].slice(u[0].length);g.push(C)}else if(y===p&&h){const C=t[y].slice(0,-h[0].length);g.push(C)}else g.push(t[y]);if(c(o,null,u,h,g,!0)!==!1)return[!0,p];break}}return[!1,e]}function Nue(t,e,n,o,i,s){const a=Ge(t),l=ze();l.append(a),e.append(l);for(const{regExp:c,replace:u}of n){const d=t.match(c);if(d&&(a.setTextContent(t.slice(d[0].length)),u(l,[a],d,!0)!==!1))break}if(Io(a,o,i),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(fs(c)||qc(c)||ge(c))){let u=c;if(ge(c)){const d=c.getLastDescendant();u=d==null?null:Qt(d,Ae)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[pn(),...l.getChildren()]),l.remove())}}}function Due(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Sg=/^(\s*)(\d{1,})\.\s/,xg=/^(\s*)[-*+]\s/,$ue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Zc=/^(#{1,6})\s/,Tg=/^>\s/,Ag=/^[ \t]*```([\w-]+)?/,Kc=/[ \t]*```$/,Bue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Mue=/^(?:\|)(.+)(?:\|)\s?$/,Lue=/^(\| ?:?-*:? ?)+\|\s?$/,mp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,hp=/^<\/[a-z_][\w-]*\s*>/i,gp=t=>new RegExp(`(?:${t.source})$`,t.flags),Ai=gle("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),Ng=t=>(e,n,o,i)=>{const s=t(o);s.append(...n),e.replace(s),i||s.select(0,0)},Dg=t=>(e,n,o,i)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=Wt(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==Ai.parse(c)?void 0:c;if(ge(a)&&a.getListType()===t){u&&jl(a,Ai,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(ge(s)&&s.getListType()===t)u&&jl(s,Ai,u),s.append(l),e.remove();else{const f=Lt(t,t==="number"?Number(o[2]):void 0);u&&jl(f,Ai,u),f.append(l),e.replace(f)}l.append(...n),i||l.select(0,0);const d=function(f){const p=f.match(/\t/g),m=f.match(/ /g);let h=0;return p&&(h+=p.length),m&&(h+=Math.floor(m.length/4)),h}(o[1]);d&&l.setIndent(d)},od=(t,e,n)=>{const o=[],i=t.getChildren();let s=0;for(const a of i)if(Ae(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(ge(f)){o.push(od(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=zm(t,Ai),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
46
+ `)},$g={dependencies:[ul],export:(t,e)=>{if(!_g(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Zc,replace:Ng(t=>{const e="h"+t[1].length;return Uo(e)}),type:"element"},Oue={dependencies:[ed],export:(t,e)=>{if(!qc(t))return null;const n=e(t).split(`
47
47
  `),o=[];for(const i of n)o.push("> "+i);return o.join(`
48
- `)},regExp:xg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(qc(s))return s.splice(s.getChildrenSize(),0,[pn(),...e]),void t.remove()}const i=td();i.append(...e),t.replace(i),o||i.select(0,0)},type:"element"},$g={dependencies:[dl],export:t=>{if(!fl(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
48
+ `)},regExp:Tg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(qc(s))return s.splice(s.getChildrenSize(),0,[pn(),...e]),void t.remove()}const i=td();i.append(...e),t.replace(i),o||i.select(0,0)},type:"element"},Bg={dependencies:[dl],export:t=>{if(!fl(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
49
49
  `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Kc},regExpStart:Ag,replace:(t,e,n,o,i,s)=>{let a,l;if(!e&&i){if(i.length===1)o?(a=Nn(),l=n[1]+i[0]):(a=Nn(n[1]),l=i[0].startsWith(" ")?i[0].slice(1):i[0]);else{if(a=Nn(n[1]),i[0].trim().length===0)for(;i.length>0&&!i[0].length;)i.shift();else i[0]=i[0].startsWith(" ")?i[0].slice(1):i[0];for(;i.length>0&&!i[i.length-1].length;)i.pop();l=i.join(`
50
- `)}const c=Ge(l);a.append(c),t.append(a)}else e&&Tg(c=>Nn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},Bg={dependencies:[cr,To],export:(t,e)=>ge(t)?od(t,e,0):null,regExp:Sg,replace:Ng("bullet"),type:"element"},Mg={dependencies:[cr,To],export:(t,e)=>ge(t)?od(t,e,0):null,regExp:Eg,replace:Ng("number"),type:"element"},Lg={format:["code"],tag:"`",type:"text-format"},Oue={format:["highlight"],tag:"==",type:"text-format"},Og={format:["bold","italic"],tag:"***",type:"text-format"},Vue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Vg={format:["bold"],tag:"**",type:"text-format"},Iue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Ig={format:["strikethrough"],tag:"~~",type:"text-format"},Pg={format:["italic"],tag:"*",type:"text-format"},Pue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Fue={dependencies:[ei],export:(t,e,n)=>{if(!Cue(t)||bue(t))return null;const o=t.getTitle(),i=e(t);return o?`[${i}](${t.getURL()} "${o}")`:`[${i}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,i]=e,s=ka(o,{title:i}),a=n.split("[").length-1,l=n.split("]").length-1;let c=n,u="";if(a<l)return;if(a>l){const f=n.split("[");u="["+f[0],c=f.slice(1).join("[")}const d=Ge(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ge(u)),d},trigger:")",type:"text-match"},Rue=[Dg,Lue,Bg,Mg],zue=[$g],Uue=[Lg,Og,Vue,Vg,Iue,Oue,Pg,Pue,Ig],Hue=[Fue],rd=[...Rue,...zue,...Uue,...Hue];function vp(t,e,n){const o=n.length;for(let i=e;i>=o;i--){const s=i-o;if(Fg(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Fg(t,e,n,o,i){for(let s=0;s<i;s++)if(t[e+s]!==n[o+s])return!1;return!0}function que(t,e=rd){const n=nd(e),o=jc(n.textFormat,({tag:a})=>a[a.length-1]),i=jc(n.textMatch,({trigger:a})=>a);for(const a of e){const l=a.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const c=a.dependencies;for(const u of c)t.hasNode(u)||Nue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const m=u.getParent();if(!At(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExp:g,replace:y}of p){const C=h.match(g);if(C&&C[0].length===(C[0].endsWith(" ")?f:f-1)){const _=d.getNextSiblings(),[v,b]=d.splitText(f);if(y(u,b?[b,..._]:_,C,!1)!==!1)return v.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,f,p){const m=u.getParent();if(!At(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExpStart:g,replace:y,regExpEnd:C}of p){if(C&&!("optional"in C)||C&&"optional"in C&&!C.optional)continue;const _=h.match(g);if(_&&_[0].length===(_[0].endsWith(" ")?f:f-1)){const v=d.getNextSiblings(),[b,w]=d.splitText(f);if(y(u,w?[w,...v]:v,_,null,null,!1)!==!1)return b.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,f){let p=u.getTextContent();const m=f[p[d-1]];if(m==null)return!1;d<p.length&&(p=p.slice(0,d));for(const h of m){if(!h.replace||!h.regExp)continue;const g=p.match(h.regExp);if(g===null)continue;const y=g.index||0,C=y+g[0].length;let _;return y===0?[_]=u.splitText(C):[,_]=u.splitText(y,C),_.selectNext(0,0),h.replace(_,g),!0}return!1}(l,c,i)||function(u,d,f){const p=u.getTextContent(),m=d-1,h=p[m],g=f[h];if(!g)return!1;for(const y of g){const{tag:C}=y,_=C.length,v=m-_+1;if(_>1&&!Fg(p,v,C,0,_)||p[v-1]===" ")continue;const b=p[m+1];if(y.intraword===!1&&b&&!wa.test(b))continue;const w=u;let k=w,T=vp(p,v,C),A=k;for(;T<0&&(A=A.getPreviousSibling())&&!ho(A);)if(X(A)){if(A.hasFormat("code"))continue;const W=A.getTextContent();k=A,T=vp(W,W.length,C)}if(T<0||k===w&&T+_===v)continue;const S=k.getTextContent();if(T>0&&S[T-1]===h)continue;const E=S[T-1];if(y.intraword===!1&&E&&!wa.test(E))continue;const D=w.getTextContent(),x=D.slice(0,v)+D.slice(m+1);w.setTextContent(x);const $=k===w?x:S;k.setTextContent($.slice(0,T)+$.slice(T+_));const B=ee(),V=nl();_t(V);const I=m-_*(k===w?2:1)+1;V.anchor.set(k.__key,T,"text"),V.focus.set(w.__key,I,"text");for(const W of y.format)V.hasFormat(W)||V.formatText(W);V.anchor.set(V.focus.key,V.focus.offset,V.focus.type);for(const W of y.format)V.hasFormat(W)&&V.toggleFormat(W);return K(B)&&(V.format=B.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(vh)||a.has(ma)||t.isComposing())return;const d=c.read(ee),f=u.read(ee);if(!K(f)||!K(d)||!d.isCollapsed()||d.is(f))return;const p=d.anchor.key,m=d.anchor.offset,h=c._nodeMap.get(p);!X(h)||!l.has(p)||m!==1&&m>f.anchor.offset+1||t.update(()=>{if(!Vo(h))return;const g=h.getParent();g===null||fl(g)||s(g,h,d.anchor.offset)})})}function jue(t,e=rd,n,o=!1,i=!1){const s=o?t:function(a,l=!1){const c=a.split(`
51
- `);let u=!1;const d=[];for(let f=0;f<c.length;f++){const p=c[f].trimEnd(),m=d[d.length-1];$ue.test(p)?d.push(p):Ag.test(p)||Kc.test(p)?(u=!u,d.push(p)):u||p===""||m===""||!m||Zc.test(m)||Zc.test(p)||xg.test(p)||Eg.test(p)||Sg.test(p)||Due.test(p)||Bue.test(p)||Mue.test(p)||!l||mp.test(p)||hp.test(p)||gp(hp).test(m)||gp(mp).test(m)||Kc.test(m)?d.push(p):d[d.length-1]=m+" "+p.trimStart()}return d.join(`
52
- `)}(t,i);return xue(e,o)(s,n)}function Wue(t=rd,e,n=!1){return function(i,s=!1){const a=nd(i),l=[...a.multilineElement,...a.element],c=!s,u=a.textFormat.filter(d=>d.format.length===1).sort((d,f)=>Number(d.format.includes("code"))-Number(f.format.includes("code")));return d=>{const f=[],p=(d||Ze()).getChildren();for(let m=0;m<p.length;m++){const h=p[m],g=Eue(h,l,u,a.textMatch);g!=null&&f.push(c&&m>0&&!Wc(h)&&!Wc(p[m-1])?`
50
+ `)}const c=Ge(l);a.append(c),t.append(a)}else e&&Ng(c=>Nn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},Mg={dependencies:[cr,Ao],export:(t,e)=>ge(t)?od(t,e,0):null,regExp:xg,replace:Dg("bullet"),type:"element"},Lg={dependencies:[cr,Ao],export:(t,e)=>ge(t)?od(t,e,0):null,regExp:Sg,replace:Dg("number"),type:"element"},Og={format:["code"],tag:"`",type:"text-format"},Vue={format:["highlight"],tag:"==",type:"text-format"},Vg={format:["bold","italic"],tag:"***",type:"text-format"},Iue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Ig={format:["bold"],tag:"**",type:"text-format"},Pue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Pg={format:["strikethrough"],tag:"~~",type:"text-format"},Fg={format:["italic"],tag:"*",type:"text-format"},Fue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Rue={dependencies:[ei],export:(t,e,n)=>{if(!bue(t)||kue(t))return null;const o=t.getTitle(),i=e(t);return o?`[${i}](${t.getURL()} "${o}")`:`[${i}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,i]=e,s=ka(o,{title:i}),a=n.split("[").length-1,l=n.split("]").length-1;let c=n,u="";if(a<l)return;if(a>l){const f=n.split("[");u="["+f[0],c=f.slice(1).join("[")}const d=Ge(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ge(u)),d},trigger:")",type:"text-match"},zue=[$g,Oue,Mg,Lg],Uue=[Bg],Hue=[Og,Vg,Iue,Ig,Pue,Vue,Fg,Fue,Pg],que=[Rue],rd=[...zue,...Uue,...Hue,...que];function vp(t,e,n){const o=n.length;for(let i=e;i>=o;i--){const s=i-o;if(Rg(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Rg(t,e,n,o,i){for(let s=0;s<i;s++)if(t[e+s]!==n[o+s])return!1;return!0}function jue(t,e=rd){const n=nd(e),o=jc(n.textFormat,({tag:a})=>a[a.length-1]),i=jc(n.textMatch,({trigger:a})=>a);for(const a of e){const l=a.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const c=a.dependencies;for(const u of c)t.hasNode(u)||Due(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const m=u.getParent();if(!Tt(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExp:g,replace:y}of p){const C=h.match(g);if(C&&C[0].length===(C[0].endsWith(" ")?f:f-1)){const v=d.getNextSiblings(),[_,b]=d.splitText(f);if(y(u,b?[b,...v]:v,C,!1)!==!1)return _.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,f,p){const m=u.getParent();if(!Tt(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExpStart:g,replace:y,regExpEnd:C}of p){if(C&&!("optional"in C)||C&&"optional"in C&&!C.optional)continue;const v=h.match(g);if(v&&v[0].length===(v[0].endsWith(" ")?f:f-1)){const _=d.getNextSiblings(),[b,w]=d.splitText(f);if(y(u,w?[w,..._]:_,v,null,null,!1)!==!1)return b.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,f){let p=u.getTextContent();const m=f[p[d-1]];if(m==null)return!1;d<p.length&&(p=p.slice(0,d));for(const h of m){if(!h.replace||!h.regExp)continue;const g=p.match(h.regExp);if(g===null)continue;const y=g.index||0,C=y+g[0].length;let v;return y===0?[v]=u.splitText(C):[,v]=u.splitText(y,C),v.selectNext(0,0),h.replace(v,g),!0}return!1}(l,c,i)||function(u,d,f){const p=u.getTextContent(),m=d-1,h=p[m],g=f[h];if(!g)return!1;for(const y of g){const{tag:C}=y,v=C.length,_=m-v+1;if(v>1&&!Rg(p,_,C,0,v)||p[_-1]===" ")continue;const b=p[m+1];if(y.intraword===!1&&b&&!wa.test(b))continue;const w=u;let k=w,A=vp(p,_,C),T=k;for(;A<0&&(T=T.getPreviousSibling())&&!ho(T);)if(X(T)){if(T.hasFormat("code"))continue;const W=T.getTextContent();k=T,A=vp(W,W.length,C)}if(A<0||k===w&&A+v===_)continue;const S=k.getTextContent();if(A>0&&S[A-1]===h)continue;const E=S[A-1];if(y.intraword===!1&&E&&!wa.test(E))continue;const D=w.getTextContent(),x=D.slice(0,_)+D.slice(m+1);w.setTextContent(x);const $=k===w?x:S;k.setTextContent($.slice(0,A)+$.slice(A+v));const B=ee(),V=nl();_t(V);const I=m-v*(k===w?2:1)+1;V.anchor.set(k.__key,A,"text"),V.focus.set(w.__key,I,"text");for(const W of y.format)V.hasFormat(W)||V.formatText(W);V.anchor.set(V.focus.key,V.focus.offset,V.focus.type);for(const W of y.format)V.hasFormat(W)&&V.toggleFormat(W);return K(B)&&(V.format=B.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(_h)||a.has(ma)||t.isComposing())return;const d=c.read(ee),f=u.read(ee);if(!K(f)||!K(d)||!d.isCollapsed()||d.is(f))return;const p=d.anchor.key,m=d.anchor.offset,h=c._nodeMap.get(p);!X(h)||!l.has(p)||m!==1&&m>f.anchor.offset+1||t.update(()=>{if(!Vo(h))return;const g=h.getParent();g===null||fl(g)||s(g,h,d.anchor.offset)})})}function Wue(t,e=rd,n,o=!1,i=!1){const s=o?t:function(a,l=!1){const c=a.split(`
51
+ `);let u=!1;const d=[];for(let f=0;f<c.length;f++){const p=c[f].trimEnd(),m=d[d.length-1];Bue.test(p)?d.push(p):Ag.test(p)||Kc.test(p)?(u=!u,d.push(p)):u||p===""||m===""||!m||Zc.test(m)||Zc.test(p)||Tg.test(p)||Sg.test(p)||xg.test(p)||$ue.test(p)||Mue.test(p)||Lue.test(p)||!l||mp.test(p)||hp.test(p)||gp(hp).test(m)||gp(mp).test(m)||Kc.test(m)?d.push(p):d[d.length-1]=m+" "+p.trimStart()}return d.join(`
52
+ `)}(t,i);return Tue(e,o)(s,n)}function Zue(t=rd,e,n=!1){return function(i,s=!1){const a=nd(i),l=[...a.multilineElement,...a.element],c=!s,u=a.textFormat.filter(d=>d.format.length===1).sort((d,f)=>Number(d.format.includes("code"))-Number(f.format.includes("code")));return d=>{const f=[],p=(d||Ze()).getChildren();for(let m=0;m<p.length;m++){const h=p[m],g=Sue(h,l,u,a.textMatch);g!=null&&f.push(c&&m>0&&!Wc(h)&&!Wc(p[m-1])?`
53
53
  `.concat(g):g)}return f.join(`
54
- `)}}(t,n)(e)}var Zue=process.env.NODE_ENV==="production",ac="Invariant failed";function Kue(t,e){if(!t){if(Zue)throw new Error(ac);var n=typeof e=="function"?e():e,o=n?"".concat(ac,": ").concat(n):ac;throw new Error(o)}}const Rg=Symbol("LexicalEditor"),Gue=(()=>{const t=r.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:i}=n;const s=o;i();const a=e,l={tag:Mi},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:m}=a.initialConfig,h=oce({editable:a.initialConfig.editable,html:m,namespace:u,nodes:d,theme:c,onError(y){s("error",y,h),f==null||f(y,h)}});g(h,p);function g(y,C){if(C!==null){if(C===void 0)y.update(()=>{const _=Ze();if(_.isEmpty()){const v=ze();_.append(v);const b=Lce?document.activeElement:null;(ee()!==null||b!==null&&b===y.getRootElement())&&v.select()}},l);else if(C!==null)switch(typeof C){case"string":{const _=y.parseEditorState(C);y.setEditorState(_,l);break}case"object":y.setEditorState(C,l);break;case"function":y.update(()=>{Ze().isEmpty()&&C(y)},l);break}}}return r.provide(Rg,h),r.onMounted(()=>{const y=a.initialConfig.editable;h.setEditable(y!==void 0?y:!0)}),(y,C)=>r.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function ti(){const t=r.inject(Rg,null);return t||Kue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Yue(t,e){if(t==null)return{};var n=Jue(t,e),o,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)o=s[i],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Jue(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,s;for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}const Xue=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=r.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:i}=o;i();const s=n,a=r.useTemplateRef("root"),l=r.ref(s.editor.isEditable()),c=r.computed(()=>Yue(s,["editor"]));r.onMounted(()=>{function d(p){p&&p.ownerDocument&&p.ownerDocument.defaultView?s.editor.setRootElement(p):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const f=s.editor.registerEditableListener(p=>{l.value=p});r.onUnmounted(f)});const u=r.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({ref_key:"root",ref:a},c.value,{"aria-activedescendant":l.value?d.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?d.ariaAutoComplete:"none","aria-controls":l.value?d.ariaControls:void 0,"aria-describedby":d.ariaDescribedBy,"aria-expanded":l.value&&u.value==="combobox"?!!d.ariaExpanded:void 0,"aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,"aria-multiline":d.ariaMultiline,"aria-owns":l.value?d.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":d.ariaRequired,autocapitalize:d.autocapitalize,contenteditable:l.value,role:l.value?u.value:void 0,spellcheck:d.spellcheck||!0,tabindex:d.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function Que(){return Ze().getTextContent()}function ede(t,e=!0){if(t)return!1;let n=Que();return e&&(n=n.trim()),n===""}function tde(t){if(!ede(t,!1))return!1;const e=Ze().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const i=e[o];if(Ae(i))return!1;if(U(i)){if(!fs(i)||i.__indent!==0)return!1;const s=i.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!X(c))return!1}}}return!0}function zg(t){return()=>tde(t)}function nde(t){return t.getEditorState().read(zg(t.isComposing()))}function Ug(t){const e=t.getEditorState().read(zg(t.isComposing())),n=r.ref(e);function o(){const i=nde(t);n.value=i}return r.onMounted(()=>{const i=hs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));r.onUnmounted(()=>{i()})}),r.readonly(n)}function ode(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rde(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),o.forEach(function(i){ode(t,i,n[i])})}return t}function ide(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function sde(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ide(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const ade=(()=>{const t={key:0,"aria-hidden":"true"},e=r.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:i}=o;i();const s=ti(),a=r.ref(!1),l=Ug(s);return r.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});r.onUnmounted(c)}),(c,u)=>{var d,f;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(Xue),r.mergeProps({editor:r.unref(s)},sde(rde({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),r.unref(l)?(r.openBlock(),r.createElementBlock("div",t,[r.renderSlot(c.$slots,"placeholder")])):r.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function lde(t,e,n,o,i){if(t===null||n.size===0&&o.size===0&&!i)return 0;const s=e._selection,a=t._selection;if(i)return 1;if(!(K(s)&&K(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(C,_,v){const b=C._nodeMap,w=[];for(const k of _){const T=b.get(k);T!==void 0&&w.push(T)}for(const[k,T]of v){if(!T)continue;const A=b.get(k);A===void 0||Qe(A)||w.push(A)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const C=e._nodeMap,_=C.get(s.anchor.key),v=C.get(a.anchor.key);return _&&v&&!t._nodeMap.has(_.__key)&&X(_)&&_.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!X(u)||!X(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,m=a.anchor;if(p.key!==m.key||p.type!=="text")return 0;const h=p.offset,g=m.offset,y=f.length-d.length;return y===1&&g===h-1?2:y===-1&&g===h+1?3:y===-1&&g===h?4:0}function cde(t,e){let n=Date.now(),o=0;return(i,s,a,l,c,u)=>{const d=Date.now();if(u.has(ma))return o=0,n=d,2;const f=lde(i,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(Vle);if(!h&&m&&u.has(Mi))return 0;if(i===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const y=typeof e=="number"?e:e.peek();return h===!1&&f!==0&&f===o&&d<n+y&&m||l.size===1&&function(C,_,v){const b=_._nodeMap.get(C),w=v._nodeMap.get(C),k=_._selection,T=v._selection;return!(K(k)&&K(T)&&k.anchor.type==="element"&&k.focus.type==="element"&&T.anchor.type==="text"&&T.focus.type==="text"||!X(b)||!X(w)||b.__parent!==w.__parent)&&JSON.stringify(_.read(()=>b.exportJSON()))===JSON.stringify(v.read(()=>w.exportJSON()))}(Array.from(l)[0],i,s)?0:1})();return n=d,o=f,p}}function _p(t){t.undoStack=[],t.redoStack=[],t.current=null}function ude(t,e,n){const o=cde(t,n);return hs(t.registerCommand(Au,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(c.length!==0){const u=a.current,d=c.pop();u!==null&&(l.push(u),s.dispatchCommand(Ls,!0)),c.length===0&&s.dispatchCommand(Os,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:ma})}}(t,e),!0),xe),t.registerCommand(Tu,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(l.length!==0){const u=a.current;u!==null&&(c.push(u),s.dispatchCommand(Os,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Ls,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:ma})}}(t,e),!0),xe),t.registerCommand(Dle,()=>(_p(e),!1),xe),t.registerCommand($le,()=>(_p(e),t.dispatchCommand(Ls,!1),t.dispatchCommand(Os,!1),!0),xe),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=e.undoStack,m=d===null?null:d.editorState;if(d!==null&&s===m)return;const h=o(a,s,d,l,c,u);if(h===1)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Ls,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Os,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function dde(){return{current:null,redoStack:[],undoStack:[]}}function fde(t,e,n){const o=r.computed(()=>r.toValue(e)||dde());r.watchEffect(i=>{const s=ude(r.toValue(t),o.value,r.toValue(n)||1e3);i(s)})}const pde=(()=>{const t=r.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const i=e,s=ti();return fde(s,()=>i.externalHistoryState,()=>i.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function mde(t){r.onMounted(()=>{const e=Zce(t);r.onUnmounted(()=>{e()})})}const hde=(()=>{const t=r.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const i=e,s=ti();return r.watchEffect(a=>{if(!s.hasNodes([cr,To]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!i.hasStrictIndent)return;const l=Kce(s);a(l)}),mde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function gde(t){const e=r.shallowRef(t.getDecorators());return r.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});r.onUnmounted(()=>{n()})}),r.computed(()=>{const n=[],o=Object.keys(r.unref(e));for(let i=0;i<o.length;i++){const s=o[i],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(r.h(r.Teleport,{to:l},a))}return n})}const vde=r.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=ti(),e=gde(t);return()=>e.value}});function _de(t){r.onMounted(()=>{const e=hs(fue(t),rue(t));r.onUnmounted(e)})}const yde=(()=>{const t=r.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const i=ti(),s=Ug(i);return _de(i),(a,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(s)?r.renderSlot(a.$slots,"placeholder",{key:0}):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"contentEditable"),r.createVNode(r.unref(vde))],64))}});return t.__vue_vine=!0,t})(),lc=[Dg,$g,Bg,Mg,Og,Vg,Pg,Ig,Lg],Cde={class:"ao-lexical-editor__placeholder"},Hg=r.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown","paste"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.shallowRef(null),a=r.shallowRef(null),l=r.ref("paragraph"),c=r.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),u={namespace:"AoLexicalEditor",nodes:[cr,To,ul,dl],theme:{paragraph:"ao-lexical-editor__paragraph",heading:{h1:"ao-lexical-editor__heading-h1",h2:"ao-lexical-editor__heading-h2",h3:"ao-lexical-editor__heading-h3"},code:"ao-lexical-editor__code-block",text:{bold:"ao-lexical-editor__text-bold",italic:"ao-lexical-editor__text-italic",strikethrough:"ao-lexical-editor__text-strikethrough",code:"ao-lexical-editor__inline-code"},list:{ul:"ao-lexical-editor__list-ul",ol:"ao-lexical-editor__list-ol",listitem:"ao-lexical-editor__list-item"}},editorState:()=>{jue(o.initialMarkdown||"",lc)},onError(x){console.error("Lexical error:",x)}},d=r.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:x=>!0,blockStyleChange:x=>!0,selectionChange:x=>!0},setup(x,{emit:$}){const B=ti();let V=null,I=null;function W(){B.getEditorState().read(()=>{const P=ee();if(!K(P))return;$("selectionChange",P.clone());const H=P.anchor.getNode(),Q=H.getKey()==="root"?H:H.getTopLevelElementOrThrow();if(vg(Q)){const le=Q.getTag();if(le==="h1"||le==="h2"||le==="h3"){$("blockStyleChange",le);return}}if(fl(Q)){$("blockStyleChange","code");return}$("blockStyleChange","paragraph")})}return r.onMounted(()=>{$("ready",B),W(),I=que(B,lc),V=B.registerUpdateListener(()=>{W()})}),r.onUnmounted(()=>{I==null||I(),V==null||V()}),()=>null}});function f(x){s.value=x,i("ready",x)}function p(x){a.value=x}function m(x){i("keydown",x)}function h(x){const $=x.clipboardData;if(!$)return;const B=[],V=$.items;if(V){for(const I of V)if(I.kind==="file"&&I.type.startsWith("image/")){const W=I.getAsFile();if(W){const P=g(W);B.push(P)}}B.length>0&&(x.preventDefault(),i("paste",B))}}function g(x){if(x.name&&x.name.length>0&&x.name!=="image.png"&&x.name!=="screenshot.png"&&!x.name.startsWith("image-"))return x;const B=new Date,V=B.getFullYear(),I=String(B.getMonth()+1).padStart(2,"0"),W=String(B.getDate()).padStart(2,"0"),P=String(B.getHours()).padStart(2,"0"),H=String(B.getMinutes()).padStart(2,"0");let Q="png";x.type==="image/jpeg"?Q="jpg":x.type==="image/webp"?Q="webp":x.type==="image/gif"&&(Q="gif");const le=`pasted-image-${V}-${I}-${W}-${P}${H}.${Q}`;return new File([x],le,{type:x.type})}function y(){a.value&&_t(a.value.clone())}function C(x){const $=s.value;$&&($.update(()=>{y(),x()}),$.focus())}function _(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Yt,"bold"),x.focus())}function v(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Yt,"italic"),x.focus())}function b(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Yt,"strikethrough"),x.focus())}function w(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Yt,"code"),x.focus())}function k(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(lg,void 0),x.focus())}function T(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(cg,void 0),x.focus())}function A(x){C(()=>{const $=ee();if(K($)){if($.isCollapsed()||$.focus.set($.anchor.key,$.anchor.offset,$.anchor.type),x==="paragraph"){oc($,()=>ze());return}if(x==="code"){oc($,()=>Nn());return}oc($,()=>Uo(x))}}),l.value=x}function S(){const x=s.value;return x?x.getEditorState().read(()=>Wue(lc)):""}function E(){const x=s.value;x&&x.update(()=>{const $=Ze();$.clear(),$.append(ze())})}function D(){var x;(x=s.value)==null||x.focus()}return e({toggleBold:_,toggleItalic:v,toggleStrikethrough:b,toggleInlineCode:w,insertBulletList:k,insertNumberedList:T,setBlockStyle:A,getMarkdown:S,clear:E,focus:D,blockStyle:l}),(x,$)=>(r.openBlock(),r.createBlock(r.unref(Gue),{"initial-config":u},{default:r.withCtx(()=>[r.renderSlot(x.$slots,"toolbar"),r.createElementVNode("div",{class:r.normalizeClass(["ao-lexical-editor",c.value])},[r.createVNode(r.unref(yde),null,{contentEditable:r.withCtx(()=>[r.createVNode(r.unref(ade),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:r.withCtx(()=>[r.createElementVNode("div",Cde,r.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),r.createVNode(r.unref(pde)),r.createVNode(r.unref(hde)),r.createVNode(r.unref(d),{onReady:f,onBlockStyleChange:$[0]||($[0]=B=>l.value=B),onSelectionChange:p})]),_:3}))}});function bde(t,e){const n=r.ref(""),o=r.ref(!1),i=r.ref({top:0,left:0}),s=r.ref(0),a=r.computed(()=>e.value.filter(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:Hp(h)}))),l=r.computed(()=>a.value.filter(h=>h.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",s.value=0}function u(){const h=ee();if(!K(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!X(g)){c();return}const C=g.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!C){c();return}n.value=C[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const h=t.value;if(!h||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const y=g.getRangeAt(0),C=y.getClientRects().item(0)??y.getBoundingClientRect(),_=h.getRootElement();if(!_)return;const v=_.getBoundingClientRect();i.value={top:C.bottom-v.top+4,left:C.left-v.left}}function f(h){const g=t.value;g&&(g.update(()=>{const y=ee();if(!K(y)||!y.isCollapsed())return;const C=y.anchor.getNode();if(!X(C))return;const _=C.getTextContent(),v=y.anchor.offset,w=_.slice(0,v).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const k=v-w[0].length,T=`@${h} `,A=_.slice(0,k)+T+_.slice(v);C.setTextContent(A);const S=k+T.length;y.anchor.set(C.getKey(),S,"text"),y.focus.set(C.getKey(),S,"text")}),c(),g.focus())}function p(h){if(!o.value)return!1;switch(h.key){case"ArrowDown":return h.preventDefault(),l.value.length>0&&(s.value=(s.value+1)%l.value.length),!0;case"ArrowUp":return h.preventDefault(),l.value.length>0&&(s.value=(s.value-1+l.value.length)%l.value.length),!0;case"Enter":{if(l.value.length===0)return!1;h.preventDefault();const g=l.value[s.value];return g&&f(g.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.registerUpdateListener(({editorState:g})=>{g.read(()=>{u()}),o.value&&requestAnimationFrame(()=>{d()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:i,filteredUsers:l,selectedIndex:s,selectUserMention:f,handleKeydown:p,closeMentionList:c,setupMentionTracking:m}}const kde={key:0,class:"ao-comment-editor__toolbar"},wde=["onClick"],qg=r.defineComponent({__name:"AoCommentEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Add a comment..."},mentionableUsers:{default:()=>[]},showSubmitButton:{type:Boolean,default:!0},toolbarVisibility:{default:"focus"}},emits:["submit","cancel","focus","blur"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(null),a=r.shallowRef(null),l=r.ref(!1),c=r.toRef(o,"mentionableUsers"),{showMentionList:u,mentionListPosition:d,filteredUsers:f,selectedIndex:p,selectUserMention:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:y}=bde(a,c);let C,_;const v=r.computed(()=>o.toolbarVisibility==="always"||l.value);r.onUnmounted(()=>{C==null||C(),_!==void 0&&window.clearTimeout(_)});function b(x){a.value=x,C==null||C(),C=y()}function w(){_!==void 0&&(window.clearTimeout(_),_=void 0),l.value||(l.value=!0,i("focus"))}function k(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{var B;_=void 0;const x=(B=a.value)==null?void 0:B.getRootElement(),$=document.activeElement;x&&$ instanceof Node&&x.contains($)||l.value&&(l.value=!1,i("blur"))},100)}function T(x){if(!h(x)){if(x.key==="Enter"&&(x.ctrlKey||x.metaKey)){x.preventDefault(),A();return}if(x.key==="Escape"){if(u.value){g();return}x.preventDefault(),S()}}}function A(){const x=s.value;if(!x)return;const $=x.getMarkdown();$.trim()&&i("submit",$)}function S(){g(),i("cancel")}function E(){var x;(x=s.value)==null||x.clear(),g()}function D(){var x;(x=s.value)==null||x.focus()}return e({submit:A,cancel:S,reset:E,focus:D}),(x,$)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[v.value?(r.openBlock(),r.createElementBlock("div",kde,[r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:$[0]||($[0]=r.withModifiers(()=>{},["prevent"])),onClick:$[1]||($[1]=B=>{var V;return(V=s.value)==null?void 0:V.toggleBold()})},[...$[14]||($[14]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:$[2]||($[2]=r.withModifiers(()=>{},["prevent"])),onClick:$[3]||($[3]=B=>{var V;return(V=s.value)==null?void 0:V.toggleItalic()})},[...$[15]||($[15]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:$[4]||($[4]=r.withModifiers(()=>{},["prevent"])),onClick:$[5]||($[5]=B=>{var V;return(V=s.value)==null?void 0:V.toggleStrikethrough()})},[...$[16]||($[16]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:$[6]||($[6]=r.withModifiers(()=>{},["prevent"])),onClick:$[7]||($[7]=B=>{var V;return(V=s.value)==null?void 0:V.toggleInlineCode()})},[...$[17]||($[17]=[r.createElementVNode("span",null,"</>",-1)])],32),$[18]||($[18]=r.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:$[8]||($[8]=r.withModifiers(()=>{},["prevent"])),onClick:$[9]||($[9]=B=>{var V;return(V=s.value)==null?void 0:V.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:$[10]||($[10]=r.withModifiers(()=>{},["prevent"])),onClick:$[11]||($[11]=B=>{var V;return(V=s.value)==null?void 0:V.insertNumberedList()})}," 1. ",32)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:k},[r.createVNode(Hg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:b,onKeydown:T},null,8,["initial-markdown","placeholder"]),r.unref(u)&&r.unref(f).length>0?(r.openBlock(),r.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:r.normalizeStyle({top:r.unref(d).top+"px",left:r.unref(d).left+"px"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(f),(B,V)=>(r.openBlock(),r.createElementBlock("li",{key:B.id,class:r.normalizeClass({"ao-comment-editor__mention-item--selected":V===r.unref(p)}),onMousedown:$[12]||($[12]=r.withModifiers(()=>{},["prevent"])),onClick:I=>r.unref(m)(B.name)}," @"+r.toDisplayString(B.name),43,wde))),128))],4)):r.createCommentVNode("",!0),t.showSubmitButton?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:$[13]||($[13]=r.withModifiers(()=>{},["prevent"])),onClick:A},[r.createVNode(ke,{name:"SendRounded"})],32)):r.createCommentVNode("",!0)],32)],2))}});const Ede={class:"ao-comment"},Sde={class:"ao-comment__created-at"},xde={class:"ao-comment__body"},Ade={class:"ao-comment__content-wrapper"},Tde={key:0,class:"ao-comment__footer"},Nde=r.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{const h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),s=r.ref(!1),a=r.ref(n.content),l=r.ref(null),c=r.computed(()=>{const h=n.editedAt&&Br(n.editedAt),g=Br(n.createdAt),y=new Date,C=h??g;return C&&X5(C,y)});r.watch(()=>n.content,h=>{s.value||(a.value=h)});function u(){a.value=n.content,s.value=!0,r.nextTick(()=>{var h;(h=l.value)==null||h.focus()})}function d(h){o("edit",h),s.value=!1}function f(){var h;(h=l.value)==null||h.submit()}function p(){s.value=!1,a.value=n.content}function m(){o("remove")}return(h,g)=>{var y;return r.openBlock(),r.createElementBlock("li",Ede,[r.createElementVNode("span",Sde,r.toDisplayString(c.value),1),i.value?(r.openBlock(),r.createBlock(Xn,{key:0,"avatar-url":(y=t.user)==null?void 0:y.avatarUrl,"user-name":i.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):r.createCommentVNode("",!0),r.createElementVNode("div",xde,[r.createElementVNode("div",Ade,[s.value?(r.openBlock(),r.createBlock(qg,{key:1,ref_key:"commentEditorRef",ref:l,"initial-markdown":a.value,"mentionable-users":t.mentionableUsers,"show-submit-button":!1,"toolbar-visibility":"always",onSubmit:d,onCancel:p},null,8,["initial-markdown","mentionable-users"])):(r.openBlock(),r.createBlock($m,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Tde,[s.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(de,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),r.createVNode(de,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(de,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),r.createVNode(de,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):r.createCommentVNode("",!0)])])}}});const Dde={class:"ao-comments__new"},$de={key:0,class:"ao-comments__list"},Bde=r.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>[...n.comments].sort((f,p)=>U3(Br(f.createdAt),Br(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=r.ref(null);r.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=r.ref(null);function c(f){var m;if(!f.trim())return;const p=Ld(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=Ld(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:m})}function d(f){o("removeComment",{id:f})}return(f,p)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[r.createElementVNode("div",Dde,[r.createVNode(qg,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:f.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),i.value.length>0?(r.openBlock(),r.createElementBlock("ul",$de,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,m=>(r.openBlock(),r.createBlock(Nde,{key:m.id,user:s(m.author.id),content:m.message,"created-at":m.createdAt,"edited-at":m.updatedAt,"is-editable":m.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:h=>u(m.id,h),onRemove:()=>d(m.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):r.createCommentVNode("",!0)],512))}});const Mde=["aria-label"],Lde={class:"ao-file-preview__actions"},Ode=["aria-label"],Vde={key:0,class:"ao-file-preview__loading"},Ide=["src","alt"],Pde=["src","title"],Fde={key:3,class:"ao-file-preview__fallback"},Rde={class:"ao-file-preview__fallback-title"},zde={class:"ao-file-preview__fallback-filename"},Ude=["aria-label"],Hde={key:2,class:"ao-file-preview__info"},qde=["title"],jde={key:0,class:"ao-file-preview__info-counter"},Wde={key:3,class:"ao-file-preview__info"},Zde={class:"ao-file-preview__info-counter"},Kde=r.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){Nt();const n=t,o=e,i=r.ref(null),s=r.ref(!1),a=r.ref(!1);let l=0;const c=r.computed(()=>n.attachments[n.currentIndex]),u=r.computed(()=>n.currentIndex===0),d=r.computed(()=>n.currentIndex===n.attachments.length-1),f=r.computed(()=>{var E,D;return((D=(E=c.value)==null?void 0:E.mimeType)==null?void 0:D.toLowerCase())??""}),p=r.computed(()=>{var E;return((E=c.value)==null?void 0:E.name)??""}),m=r.computed(()=>{var E;return((E=p.value.split(".").pop())==null?void 0:E.toLowerCase())??""}),h=r.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),g=r.computed(()=>f.value==="application/pdf"||m.value==="pdf"),y=r.computed(()=>h.value||g.value),C=r.computed(()=>h.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function _(){i.value&&(URL.revokeObjectURL(i.value),i.value=null)}async function v(){const E=c.value,D=++l;if(_(),a.value=!1,s.value=!1,!E||!y.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const x=await n.loadPreview(E);if(D!==l)return;if(!x.size)throw new Error("Empty file received");i.value=URL.createObjectURL(x)}catch(x){if(D!==l)return;console.error("Failed to load attachment preview:",x),a.value=!0}finally{D===l&&(s.value=!1)}}function b(){u.value||o("update:currentIndex",n.currentIndex-1)}function w(){d.value||o("update:currentIndex",n.currentIndex+1)}function k(){const E=c.value;if(!(E!=null&&E.url))return;const D=document.createElement("a");D.href=E.url,D.download=E.name,D.target="_blank",D.rel="noopener noreferrer",document.body.appendChild(D),D.click(),D.remove()}function T(){_(),a.value=!0}function A(){++l,_(),o("close")}function S(E){switch(E.key){case"Escape":A();break;case"ArrowLeft":b();break;case"ArrowRight":w();break}}return r.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){A();return}v()},{immediate:!0}),r.onMounted(()=>{document.addEventListener("keydown",S)}),r.onUnmounted(()=>{++l,document.removeEventListener("keydown",S),_()}),(E,D)=>{var x,$,B,V,I,W;return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(x=c.value)==null?void 0:x.name},[r.createElementVNode("div",Lde,[r.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:r.withModifiers(k,["stop"])},[r.createVNode(ke,{name:"DownloadRounded",size:"sm"}),D[2]||(D[2]=r.createElementVNode("span",null,"Download",-1))]),r.createElementVNode("button",{type:"button",class:"ao-file-preview__action ao-file-preview__action--close",title:"Close","aria-label":"Close",onClick:r.withModifiers(A,["stop"])},[r.createVNode(ke,{name:"CloseRounded",size:"sm"})])]),r.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:A}),u.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--prev","aria-label":E.$t("activity.attachment.preview.previous"),onClick:r.withModifiers(b,["stop"])},[r.createVNode(ke,{name:"ArrowBackRounded",size:"lg"})],8,Ode)),r.createElementVNode("div",{class:"ao-file-preview__content",onClick:D[1]||(D[1]=r.withModifiers(()=>{},["stop"]))},[s.value?(r.openBlock(),r.createElementBlock("div",Vde,[...D[3]||(D[3]=[r.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),r.createElementVNode("span",null,"Loading...",-1)])])):h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("img",{key:1,src:i.value,alt:($=c.value)==null?void 0:$.name,class:"ao-file-preview__image",onError:T},null,40,Ide)):g.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:D[0]||(D[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("iframe",{src:i.value,title:(B=c.value)==null?void 0:B.name,class:"ao-file-preview__pdf"},null,8,Pde)])):(r.openBlock(),r.createElementBlock("div",Fde,[r.createVNode(ke,{name:C.value,size:"xl"},null,8,["name"]),r.createElementVNode("p",Rde,r.toDisplayString(E.$t("activity.attachment.preview.notAvailable")),1),r.createElementVNode("p",zde,r.toDisplayString((V=c.value)==null?void 0:V.name),1),r.createVNode(de,{variant:"solid",color:"primary",size:"sm",label:E.$t("activity.attachment.preview.download"),onClick:k},null,8,["label"])]))]),d.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--next","aria-label":E.$t("activity.attachment.preview.next"),onClick:r.withModifiers(w,["stop"])},[r.createVNode(ke,{name:"ArrowForwardRounded",size:"lg"})],8,Ude)),h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",Hde,[r.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(I=c.value)==null?void 0:I.name},r.toDisplayString((W=c.value)==null?void 0:W.name),9,qde),t.attachments.length>1?(r.openBlock(),r.createElementBlock("span",jde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)):r.createCommentVNode("",!0)])):t.attachments.length>1?(r.openBlock(),r.createElementBlock("div",Wde,[r.createElementVNode("span",Zde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)])):r.createCommentVNode("",!0)],8,Mde)])}}});const Gc=r.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(r.openBlock(),r.createBlock(de,{color:t.modelValue?t.color:r.unref(Xc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>i())},null,8,["color"]))}}),Gde={class:"ao-history"},Yde={key:0,class:"ao-history__loading"},Jde={key:1,class:"ao-history__empty"},Xde={key:2,class:"ao-history__list"},Qde={class:"ao-history__transaction-header"},e1e={class:"ao-history__actor"},t1e={class:"ao-history__transaction-date"},n1e={class:"ao-history__event-header"},o1e={key:0,class:"ao-history__changes"},r1e={class:"ao-history__change-label"},i1e={class:"ao-history__change-values"},s1e={class:"ao-history__change-old"},a1e={class:"ao-history__change-new"},l1e=r.defineComponent({__name:"AoHistory",props:{events:{},presentationConfig:{},loading:{type:Boolean}},setup(t){const{t:e}=Nt(),n=t;function o(d){var m,h,g;if((g=(h=(m=n.presentationConfig)==null?void 0:m.fields)==null?void 0:h[d])!=null&&g.label)return n.presentationConfig.fields[d].label;const f=`history.field.${d}`,p=e(f);return p!==f?p:d.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,y=>y.toUpperCase())}function i(d){var m,h,g;if((g=(h=(m=n.presentationConfig)==null?void 0:m.entities)==null?void 0:h[d])!=null&&g.label)return n.presentationConfig.entities[d].label;const f=`history.entity.${d}`,p=e(f);return p!==f?p:d.replace(/_/g," ").replace(/\b\w/g,y=>y.toUpperCase())}function s(d){const f=e(`history.operation.${d.toLowerCase()}`);if(f===`history.operation.${d.toLowerCase()}`){if(d.toLowerCase()==="create")return"Created";if(d.toLowerCase()==="update")return"Updated";if(d.toLowerCase()==="delete")return"Deleted"}return f}function a(d){if(d==null||d==="")return null;try{return JSON.parse(d)}catch{return d}}function l(d,f){var g,y,C,_;const p=f?d.oldValue:d.newValue,m=p==null?void 0:p.raw;if(!p||m===null||m===void 0||m==="")return e("history.value.null","None");if(p.display!==null&&p.display!==void 0)return p.display;const h=a(m);if(h===null)return e("history.value.null","None");if(d.type==="BOOLEAN"){const v=h===!0||h==="true",b=(y=(g=n.presentationConfig)==null?void 0:g.fields)==null?void 0:y[d.field];if(b!=null&&b.booleanLabels)return v?b.booleanLabels.true:b.booleanLabels.false;const w=`history.boolean.${d.field}.${v}`,k=e(w);return k!==w?k:e(`history.boolean.default.${v}`)}if(d.type==="RELATION"){const v=(_=(C=n.presentationConfig)==null?void 0:C.resolvedValues)==null?void 0:_[d.field];if(v){const b=String(h);if(v[b])return v[b]}return e("history.value.unresolved","?")}return d.type==="LONG_TEXT"?e("history.value.longText","(text)"):String(h??m)}function c(d){var f,p;return d?d.name?d.name:(p=(f=n.presentationConfig)==null?void 0:f.users)!=null&&p[d.id]?n.presentationConfig.users[d.id]:e("history.actor.unknown","Someone"):e("history.actor.unknown","Someone")}function u(d){const f=i(d.entity.type),p=d.entity.label??"",m=s(d.operation);return p?`${m} ${f} "${p}"`:`${m} ${f}`}return(d,f)=>(r.openBlock(),r.createElementBlock("div",Gde,[t.loading?(r.openBlock(),r.createElementBlock("div",Yde,r.toDisplayString(r.unref(e)("history.loading","Loading history...")),1)):!t.events||t.events.length===0?(r.openBlock(),r.createElementBlock("div",Jde,r.toDisplayString(r.unref(e)("history.empty","No history available")),1)):(r.openBlock(),r.createElementBlock("div",Xde,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.events,p=>(r.openBlock(),r.createElementBlock("div",{key:p.id,class:"ao-history__transaction"},[r.createElementVNode("div",Qde,[r.createElementVNode("span",e1e,r.toDisplayString(c(p.actor)),1),r.createElementVNode("span",t1e,r.toDisplayString(new Date(p.createdAt).toLocaleString()),1)]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.events,m=>(r.openBlock(),r.createElementBlock("div",{key:m.id,class:"ao-history__event"},[r.createElementVNode("div",n1e,r.toDisplayString(u(m)),1),m.operation==="UPDATE"&&m.changes.length>0?(r.openBlock(),r.createElementBlock("div",o1e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.changes,h=>(r.openBlock(),r.createElementBlock("div",{key:h.field,class:"ao-history__change"},[r.createElementVNode("strong",r1e,r.toDisplayString(o(h.field)),1),r.createElementVNode("span",i1e,[r.createElementVNode("span",s1e,r.toDisplayString(l(h,!0)),1),f[0]||(f[0]=r.createElementVNode("span",{class:"ao-history__change-arrow"},"→",-1)),r.createElementVNode("span",a1e,r.toDisplayString(l(h,!1)),1)])]))),128))])):r.createCommentVNode("",!0)]))),128))]))),128))]))]))}});const jg=te(l1e,[["__scopeId","data-v-d3fd418a"]]),c1e=r.defineComponent({props:{isLeft:{type:Boolean,required:!1,default:!0},leftLabel:{type:String,required:!0},rightLabel:{type:String,required:!0}},emits:["update:isLeft"],methods:{switchValue(t){this.$emit("update:isLeft",t)},selectLeft(){this.switchValue(!0)},selectRight(){this.switchValue(!1)}}});const u1e={class:"toggle-wrapper"};function d1e(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",u1e,[r.createElementVNode("button",{class:r.normalizeClass({button:!0,"button--left":!0,"button--inactive":!t.isLeft}),type:"button",onClick:e[0]||(e[0]=(...a)=>t.selectLeft&&t.selectLeft(...a))},r.toDisplayString(t.leftLabel),3),r.createElementVNode("button",{class:r.normalizeClass({button:!0,"button--right":!0,"button--inactive":t.isLeft}),type:"button",onClick:e[1]||(e[1]=(...a)=>t.selectRight&&t.selectRight(...a))},r.toDisplayString(t.rightLabel),3)])}const f1e=te(c1e,[["render",d1e],["__scopeId","data-v-40c1f714"]]),p1e=r.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}});const m1e=["onClick"],h1e={class:"tab-button__label"},g1e={key:0,class:"tab-button__badge"};function v1e(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tabs,a=>(r.openBlock(),r.createElementBlock("button",{key:a.value,class:r.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[r.createElementVNode("span",h1e,r.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(r.openBlock(),r.createElementBlock("span",g1e,r.toDisplayString(a.count),1)):r.createCommentVNode("",!0)],10,m1e))),128))],2)}const gs=te(p1e,[["render",v1e],["__scopeId","data-v-3d268d7b"]]),_1e={class:"ao-rich-text-editor"},y1e={class:"ao-rich-text-editor__toolbar"},C1e=["value"],b1e={class:"ao-rich-text-editor__actions"},k1e=r.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel","paste"],setup(t,{emit:e}){const n=e,o=r.ref(null);function i(c){var d;const u=c.target;(d=o.value)==null||d.setBlockStyle(u.value)}function s(){const c=o.value;c&&n("save",c.getMarkdown())}function a(){n("cancel")}function l(c){n("paste",c)}return(c,u)=>(r.openBlock(),r.createElementBlock("div",_1e,[r.createVNode(Hg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:r.withCtx(()=>{var d;return[r.createElementVNode("div",y1e,[r.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:i},[...u[12]||(u[12]=[r.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),r.createElementVNode("option",{value:"h1"},"Heading 1",-1),r.createElementVNode("option",{value:"h2"},"Heading 2",-1),r.createElementVNode("option",{value:"h3"},"Heading 3",-1),r.createElementVNode("option",{value:"code"},"Code block",-1)])],40,C1e),u[17]||(u[17]=r.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:u[0]||(u[0]=r.withModifiers(()=>{},["prevent"])),onClick:u[1]||(u[1]=f=>{var p;return(p=o.value)==null?void 0:p.toggleBold()})},[...u[13]||(u[13]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:u[2]||(u[2]=r.withModifiers(()=>{},["prevent"])),onClick:u[3]||(u[3]=f=>{var p;return(p=o.value)==null?void 0:p.toggleItalic()})},[...u[14]||(u[14]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:u[4]||(u[4]=r.withModifiers(()=>{},["prevent"])),onClick:u[5]||(u[5]=f=>{var p;return(p=o.value)==null?void 0:p.toggleStrikethrough()})},[...u[15]||(u[15]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:u[6]||(u[6]=r.withModifiers(()=>{},["prevent"])),onClick:u[7]||(u[7]=f=>{var p;return(p=o.value)==null?void 0:p.toggleInlineCode()})},[...u[16]||(u[16]=[r.createElementVNode("span",null,"</>",-1)])],32),u[18]||(u[18]=r.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:u[8]||(u[8]=r.withModifiers(()=>{},["prevent"])),onClick:u[9]||(u[9]=f=>{var p;return(p=o.value)==null?void 0:p.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:u[10]||(u[10]=r.withModifiers(()=>{},["prevent"])),onClick:u[11]||(u[11]=f=>{var p;return(p=o.value)==null?void 0:p.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),r.createElementVNode("div",b1e,[r.createVNode(de,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),r.createVNode(de,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const w1e={class:"ao-activity-details"},E1e={class:"ao-activity-details__main"},S1e={class:"ao-activity-details__header"},x1e={key:1,class:"ao-activity__category"},A1e={key:2,class:"ao-activity-details__created-by"},T1e={class:"ao-feed__activity-details__header"},N1e={key:0,class:"ao-field ao-feed__activity-details__project"},D1e={class:"ao-field__label"},$1e={key:1,class:"ao-field ao-feed__activity-details__project"},B1e={class:"ao-field__label"},M1e={class:"ao-activity-details__content"},L1e={class:"ao-activity-details__tab-content"},O1e={class:"ao-fieldset"},V1e={class:"ao-field__row"},I1e={class:"ao-activity-details__tab-content"},P1e={class:"ao-fieldset"},F1e={class:"ao-fieldset__body"},R1e={class:"ao-activity-details__tab-content"},z1e={key:0,class:"ao-fieldset"},U1e={class:"ao-activity-details__tab-content"},H1e={class:"ao-activity-details__aside"},q1e={class:"ao-activity-details__close-button"},j1e={class:"ao-activity-details__aside-section"},W1e={class:"ao-field__label"},Z1e={key:0,class:"ao-activity-details__aside-section"},K1e={class:"ao-field"},G1e={class:"ao-field__label"},Y1e={key:1,class:"ao-activity-details__aside-section"},J1e={class:"ao-field"},X1e={class:"ao-field__label"},Q1e={class:"ao-field ao-field--multiselect"},efe={class:"assignee-inline"},tfe={class:"ao-field__label"},nfe={key:1,class:"ao-sprint-form"},ofe={class:"ao-sprint-form__field"},rfe={class:"ao-field__label"},ife=["placeholder"],sfe={class:"ao-sprint-form__field"},afe={class:"ao-field__label"},lfe={class:"ao-sprint-form__field"},cfe={class:"ao-field__label"},ufe={class:"ao-sprint-form__actions"},dfe={class:"ao-activity-details__aside-section"},ffe={class:"ao-field ao-field--multiselect"},pfe={class:"assignee-inline"},mfe={class:"ao-field__label"},hfe={class:"ao-activity-details__aside-section"},gfe={key:0,class:"ao-field__row"},vfe={class:"ao-field"},_fe={class:"ao-field__label"},yfe=["readonly"],Cfe={class:"ao-activity-details__aside-section"},bfe={class:"ao-field__row"},kfe={class:"ao-field ao-field--inline"},wfe={class:"ao-field__label"},Efe=["readonly"],Sfe={class:"ao-field__row"},xfe={class:"ao-field ao-field--inline"},Afe={class:"ao-field__label"},Tfe={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},Nfe={class:"ao-activity-details__aside-section"},Dfe={class:"ao-activity-details__aside-section"},$fe={class:"ao-fieldset ao-activity-details__aside-section"},Bfe={class:"ao-fieldset__title"},Mfe={class:"ao-fieldset__body"},Lfe={class:"ao-field__row"},Ofe={class:"ao-field ao-field--multiselect"},Vfe={class:"ao-field__label"},Ife={class:"ao-field__row"},Pfe={class:"ao-field ao-field--multiselect"},Ffe={class:"ao-field__label"},id=r.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{default:()=>[]},breadcrumbs:{default:""},milestoneId:{default:void 0},templateActivities:{},templateMilestones:{default:()=>[]},isTemplate:{type:Boolean,default:!1},users:{},userId:{default:void 0},isTaskCheckable:{type:Function,default:void 0},statuses:{default:()=>[]},devStatuses:{default:()=>[]},sprints:{default:()=>[]},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{default:()=>({})},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","createSprint","fetchHistory"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Nt();function s(M){return M.reduce((j,ae)=>(ae.name&&(j[ae.id]=ae.name),j),{})}const a=r.computed(()=>{const M=n.users.reduce((ae,Re)=>{const ot=[Re.firstName,Re.lastName].filter(Boolean).join(" ").trim();return ot&&(ae[Re.id]=ot),ae},{}),j=[...n.templateMilestones,...n.activity.milestone?[n.activity.milestone]:[],...n.projects.flatMap(ae=>(ae.phases??[]).flatMap(Re=>Re.milestones??[]))];return{users:M,resolvedValues:{assignee_id:M,author_id:M,created_by:M,milestone_id:s(j),project_id:s(n.projects),status_id:s(n.statuses),status_dev_id:s(n.devStatuses),sprint_id:s(n.sprints),activity_id:s(n.templateActivities)}}}),l=r.ref("description");r.watch(l,(M,j)=>{M==="history"&&j!=="history"&&o("fetchHistory")}),r.watch(()=>{var M;return(M=n.activity)==null?void 0:M.id},(M,j)=>{M!==j&&l.value==="history"&&o("fetchHistory")});const c=r.computed(()=>{var M,j,ae;return[{label:i("activity.description.label")||"Description",value:"description"},{label:i("activity.tasks.title")||"Checklist",value:"checklist",count:((M=n.activity.tasks)==null?void 0:M.length)??0},{label:i("activity.comments.title")||"Commentaires",value:"comments",count:((j=n.activity.comments)==null?void 0:j.length)??0},{label:i("activity.history.title")||"History",value:"history",count:((ae=n.history)==null?void 0:ae.length)??0}]}),u=r.computed(()=>{var M;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((M=n.activity.assignee)==null?void 0:M.id):!1}),d=r.ref(!1),f=r.ref(null),p=M=>{o("update:activity",{id:n.activity.id,name:M})},m=r.computed(()=>n.activity.description??""),h=()=>{u.value&&(d.value=!0)},g=M=>{o("update:activity",{id:n.activity.id,description:M}),d.value=!1},y=()=>{d.value=!1};r.watch(()=>n.activity.id,()=>{d.value=!1});const C=r.computed({get(){return n.activity.estimation??0},set(M){o("update:activity",{id:n.activity.id,estimation:M})}}),_=r.computed({get(){var j;const M=(j=n.timeTrackingData)==null?void 0:j[n.activity.id];return(M==null?void 0:M.timeSpent)??0},set(){}}),v=r.computed(()=>{var j;return((j=n.activity.project)==null?void 0:j.estimationUnit)==="days"?"d":"h"}),b=r.computed(()=>{var j;const M=(j=n.activity.project)==null?void 0:j.estimationUnit;return Ma(_.value,M)}),w=r.computed({get(){return n.activity.important??!1},set(M){o("update:activity",{id:n.activity.id,important:M})}}),k=r.computed({get(){return n.activity.blocked??!1},set(M){o("update:activity",{id:n.activity.id,blocked:M})}});r.computed({get(){return n.activity.private??!1},set(M){o("update:activity",{id:n.activity.id,private:M})}});const T=r.computed({get(){return n.activity.deadline},set(M){o("update:activity",{id:n.activity.id,deadline:M})}}),A=r.computed({get(){return n.activity.activityType!=="dev"},set(M){var ae;const j=M?"standard":"dev";n.activity.activityType!=="dev"&&j==="dev"&&!n.activity.devStatus&&((ae=n.devStatuses)!=null&&ae.length)?o("update:activity",{id:n.activity.id,type:j,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:j})}}),S=r.computed(()=>{var M;return((M=n.devStatuses)==null?void 0:M.map(j=>({value:j.id,label:j.name})))??[]}),E=r.computed({get(){var M;return(M=n.activity.devStatus)==null?void 0:M.id},set(M){o("update:activity",{id:n.activity.id,statusDevId:M})}}),D=r.computed(()=>{var j;const M=(j=n.activity.project)==null?void 0:j.id;return M?n.sprints.filter(ae=>ae.projectId===M).map(ae=>({value:ae.id,label:ae.name,startDate:ae.startDate})).sort((ae,Re)=>ae.startDate&&Re.startDate?new Date(ae.startDate).getTime()-new Date(Re.startDate).getTime():ae.label.localeCompare(Re.label)):[]}),x=r.computed(()=>{var M;return(M=n.activity.sprint)==null?void 0:M.id}),$=M=>{o("update:activity",{id:n.activity.id,sprintId:M})},B=()=>{o("update:activity",{id:n.activity.id,sprintId:null})},V=r.computed(()=>{var M;return!((M=n.activity.project)!=null&&M.id)}),I=r.ref(!1),W=r.ref(""),P=r.ref(""),H=r.ref(""),Q=r.computed(()=>{var ae;const M=(ae=n.activity.project)==null?void 0:ae.id;return M?`Sprint ${n.sprints.filter(Re=>Re.projectId===M).length+1}`:"Sprint 1"}),le=r.computed(()=>{var ot;if(!((ot=n.activity.project)==null?void 0:ot.id))return!1;const j=W.value.trim(),ae=P.value,Re=H.value;return!j||!ae||!Re?!1:new Date(Re)>=new Date(ae)}),oe=()=>{var j;(j=n.activity.project)!=null&&j.id&&(I.value=!0,W.value=Q.value,P.value="",H.value="")},Ne=()=>{I.value=!1,W.value="",P.value="",H.value=""},ce=()=>{var j;if(!le.value)return;const M=(j=n.activity.project)==null?void 0:j.id;M&&(o("createSprint",{projectId:M,name:W.value.trim(),startDate:P.value,endDate:H.value}),I.value=!1,W.value="",P.value="",H.value="")},ne=r.computed(()=>n.templateActivities.filter(M=>M.id!==n.activity.id).map(M=>({label:M.name,value:M.id}))),z=r.computed({get(){var M;return(M=n.activity.dependingOn)==null?void 0:M.map(j=>j.id)},set(M){M&&o("update:activity",{id:n.activity.id,dependingOn:M})}}),F=r.computed(()=>ne.value.map(M=>{var j;return{...M,disabled:(j=n.activity.blocking)==null?void 0:j.some(ae=>ae.id===M.value)}})),se=r.computed({get(){var M;return(M=n.activity.blocking)==null?void 0:M.map(j=>j.id)},set(M){M&&o("update:activity",{id:n.activity.id,blocking:M})}}),Ee=r.computed(()=>ne.value.map(M=>{var j;return{...M,disabled:(j=n.activity.dependingOn)==null?void 0:j.some(ae=>ae.id===M.value)}})),Ue=M=>{o("addSubtask",M)},we=M=>{o("updateSubtask",M)},Ce=M=>{o("deleteSubtask",M)};function yt(){n.userId?he.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function R(M){he.value=[M]}const re=r.computed(()=>{var j;const M=new Map;return(j=n.users)==null||j.forEach(ae=>{M.has(ae.id)||M.set(ae.id,ae)}),Array.from(M.values()).map(ae=>({label:`${ae.firstName} ${ae.lastName}`,value:ae.id,avatar:ae.avatarUrl}))}),he=r.computed({get(){var M,j;return(M=n.activity.assignee)!=null&&M.id?[(j=n.activity.assignee)==null?void 0:j.id]:[]},set(M){o("update:activity",{id:n.activity.id,assigneeId:M[0]??null})}}),pe=M=>{o("addFiles",{activityId:n.activity.id,files:M})},Ke=M=>{pe(M)},De=M=>{o("removeFile",{activityId:n.activity.id,file:M})},$e=r.computed(()=>n.projects.map(M=>({value:M.id,label:M.name}))),Fe=r.computed(()=>{var j,ae,Re;const M=(Re=(ae=(j=n.activity)==null?void 0:j.project)==null?void 0:ae.phases)==null?void 0:Re.reduce((ot,bt)=>[...ot,...bt.milestones],[]);return M==null?void 0:M.map(ot=>({value:ot.id,label:ot.name}))}),Ye=M=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:M})},Je=M=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:M})},Me=r.computed(()=>{var M;return(M=n.statuses)==null?void 0:M.map(j=>({value:j.id,label:j.name}))}),Ct=M=>{o("update:activity",{id:n.activity.id,statusId:M})},st=M=>{o("update:activity",{id:n.activity.id,statusDevId:M})},Ot=M=>{o("addComment",{...M,activityId:n.activity.id})},on=M=>{o("updateComment",M)},yn=M=>{o("removeComment",M)},Cn=r.computed(()=>{var M,j;return((M=n.activity.createdBy)==null?void 0:M.firstName)&&((j=n.activity.createdBy)==null?void 0:j.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),bn=r.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function to(){const M=window.location.origin,j=n.activity.slug,ae=`${M}/activity-feed/slug/${j}`;navigator.clipboard.writeText(ae).then(()=>{console.log(`Link copied to clipboard: ${ae}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(M,j)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Oa,{onClose:j[14]||(j[14]=ae=>M.$emit("close"))},{default:r.withCtx(()=>{var ae,Re,ot,bt;return[r.createElementVNode("div",w1e,[r.createElementVNode("div",E1e,[r.createElementVNode("div",S1e,[t.activity.slug?(r.openBlock(),r.createBlock(Ii,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:to},null,8,["label"])):r.createCommentVNode("",!0),t.breadcrumbs?(r.openBlock(),r.createElementBlock("div",x1e,r.toDisplayString(t.breadcrumbs),1)):r.createCommentVNode("",!0),r.createVNode(gt,{title:t.activity.name||"",level:4,"is-editable":u.value,"onUpdate:title":p},null,8,["title","is-editable"]),Cn.value?(r.openBlock(),r.createElementBlock("div",A1e,r.toDisplayString(M.$t("activity.createdBy.label",{name:Cn.value,date:bn.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",T1e,[$e.value?(r.openBlock(),r.createElementBlock("label",N1e,[r.createElementVNode("span",D1e,r.toDisplayString(M.$t("activity.project.label")),1),r.createVNode(ft,{options:$e.value,value:(ae=t.activity.project)==null?void 0:ae.id,searchable:!0,disabled:!u.value,caret:u.value,onChange:Ye},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0),Fe.value?(r.openBlock(),r.createElementBlock("label",$1e,[r.createElementVNode("span",B1e,r.toDisplayString(M.$t("activity.milestone.label")),1),r.createVNode(ft,{options:Fe.value,value:(Re=t.activity.milestone)==null?void 0:Re.id,searchable:!0,disabled:!u.value,caret:u.value,onChange:Je},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0)]),r.renderSlot(M.$slots,"header")]),r.createElementVNode("div",M1e,[r.createVNode(gs,{modelValue:l.value,"onUpdate:modelValue":j[0]||(j[0]=ve=>l.value=ve),tabs:c.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),r.withDirectives(r.createElementVNode("div",L1e,[r.createElementVNode("fieldset",O1e,[r.createElementVNode("div",V1e,[r.createVNode(o9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&u.value&&!t.isTemplate&&!!t.userId,onAdd:pe,onRemove:De,onPreview:j[1]||(j[1]=ve=>f.value=ve)},{default:r.withCtx(()=>[d.value?(r.openBlock(),r.createBlock(k1e,{key:1,"initial-markdown":m.value,onSave:g,onCancel:y,onPaste:Ke},null,8,["initial-markdown"])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":u.value}]),onClick:h},[r.createVNode($m,{content:m.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[r.vShow,l.value==="description"]]),r.withDirectives(r.createElementVNode("div",I1e,[r.createElementVNode("fieldset",P1e,[r.createElementVNode("div",F1e,[r.createVNode(jk,{class:"ao-activity-details__tasks ao-field__row",tasks:t.activity.tasks||[],"activity-id":t.activity.id,users:t.users,"is-checkable":t.isTaskCheckable,"is-editable":u.value,"is-template":t.isTemplate,onAdd:Ue,onUpdate:we,onDelete:Ce},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[r.vShow,l.value==="checklist"]]),r.withDirectives(r.createElementVNode("div",R1e,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",z1e,[r.createVNode(Bde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Ot,onUpdateComment:on,onRemoveComment:yn},null,8,["comments","users","user-id"])])):r.createCommentVNode("",!0)],512),[[r.vShow,l.value==="comments"]]),r.withDirectives(r.createElementVNode("div",U1e,[r.createVNode(jg,{events:t.history??[],"presentation-config":a.value,loading:t.historyLoading},null,8,["events","presentation-config","loading"])],512),[[r.vShow,l.value==="history"]])])]),r.createElementVNode("div",H1e,[r.createElementVNode("div",q1e,[r.createVNode(ke,{name:"CloseRounded",onClick:j[2]||(j[2]=ve=>M.$emit("close"))})]),r.createElementVNode("div",j1e,[r.createElementVNode("span",W1e,r.toDisplayString(M.$t("activity.type.label")),1),r.createVNode(f1e,{"is-left":A.value,"onUpdate:isLeft":j[3]||(j[3]=ve=>A.value=ve),"left-label":"Standard","right-label":"Development",class:"ao-activity-type-toggle"},null,8,["is-left"])]),Me.value?(r.openBlock(),r.createElementBlock("div",Z1e,[r.createElementVNode("label",K1e,[r.createElementVNode("span",G1e,r.toDisplayString(M.$t("activity.status.label")),1),r.createVNode(ft,{class:"ao-activity-details__multiselect",options:Me.value,value:(ot=t.activity.status)==null?void 0:ot.id,"can-clear":!1,"can-deselect":!1,disabled:!u.value,caret:u.value,onChange:Ct},null,8,["options","value","disabled","caret"])])])):r.createCommentVNode("",!0),t.activity.activityType==="dev"?(r.openBlock(),r.createElementBlock("div",Y1e,[r.createElementVNode("label",J1e,[r.createElementVNode("span",X1e,r.toDisplayString(M.$t("activity.devStatus.label")),1),r.createVNode(ft,{class:"ao-activity-details__multiselect",options:S.value,value:E.value,"can-clear":!1,"can-deselect":!1,disabled:!u.value,caret:u.value,onChange:st},null,8,["options","value","disabled","caret"])]),r.createElementVNode("div",Q1e,[r.createElementVNode("div",efe,[r.createElementVNode("span",tfe,r.toDisplayString(M.$t("activity.sprint.label")),1),(bt=t.activity.project)!=null&&bt.id&&u.value&&!I.value?(r.openBlock(),r.createBlock(de,{key:0,label:M.$t("activity.sprint.new"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:oe},null,8,["label"])):r.createCommentVNode("",!0)]),I.value?(r.openBlock(),r.createElementBlock("div",nfe,[r.createElementVNode("div",ofe,[r.createElementVNode("label",rfe,r.toDisplayString(M.$t("activity.sprint.nameLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[4]||(j[4]=ve=>W.value=ve),class:"ao-field__input",type:"text",placeholder:M.$t("activity.sprint.namePlaceholder")},null,8,ife),[[r.vModelText,W.value]])]),r.createElementVNode("div",sfe,[r.createElementVNode("label",afe,r.toDisplayString(M.$t("activity.sprint.startDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[5]||(j[5]=ve=>P.value=ve),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,P.value]])]),r.createElementVNode("div",lfe,[r.createElementVNode("label",cfe,r.toDisplayString(M.$t("activity.sprint.endDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[6]||(j[6]=ve=>H.value=ve),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,H.value]])]),r.createElementVNode("div",ufe,[r.createVNode(de,{type:"button",variant:"ghost",label:M.$t("common.cancel"),onClick:Ne},null,8,["label"]),r.createVNode(de,{type:"button",color:"primary",variant:"solid",label:M.$t("common.create"),disabled:!le.value,onClick:ce},null,8,["label","disabled"])])])):(r.openBlock(),r.createBlock(ft,{key:0,class:"ao-activity-details__multiselect",options:D.value,value:x.value,"can-clear":!0,"can-deselect":!0,searchable:!0,disabled:V.value||!u.value,placeholder:V.value?M.$t("activity.sprint.selectProjectFirst"):M.$t("activity.sprint.placeholder"),caret:u.value,onSelect:$,onClear:B,onDeselect:B},null,8,["options","value","disabled","placeholder","caret"]))]),r.renderSlot(M.$slots,"sprintModal")])):r.createCommentVNode("",!0),r.createElementVNode("div",dfe,[r.createElementVNode("div",ffe,[r.createElementVNode("div",pfe,[r.createElementVNode("span",mfe,r.toDisplayString(M.$t("activity.assignee.label")),1),r.createVNode(de,{label:M.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:yt},null,8,["label"])]),r.createVNode(ft,{modelValue:he.value,"onUpdate:modelValue":j[7]||(j[7]=ve=>he.value=ve),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:re.value,"close-on-select":!0,searchable:!0,placeholder:M.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!u.value,caret:u.value,onSelect:R},{tag:r.withCtx(({option:ve,handleTagRemove:Et})=>[r.createVNode(Xn,{"user-name":ve.label,"avatar-url":ve.avatar,"is-closable":!0,onClose:no=>Et(ve,no)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",hfe,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",gfe,[r.createElementVNode("label",vfe,[r.createElementVNode("span",_fe,r.toDisplayString(M.$t("activity.deadline.label")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[8]||(j[8]=ve=>T.value=ve),readonly:!u.value,class:"ao-field__input",type:"date"},null,8,yfe),[[r.vModelText,T.value,void 0,{lazy:!0}]])])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Cfe,[r.createElementVNode("div",bfe,[r.createElementVNode("label",kfe,[r.createElementVNode("span",wfe,r.toDisplayString(M.$t("activity.estimation.label"))+" ("+r.toDisplayString(v.value)+")",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[9]||(j[9]=ve=>C.value=ve),readonly:!u.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,Efe),[[r.vModelText,C.value,void 0,{lazy:!0,number:!0}]])])]),r.createElementVNode("div",Sfe,[r.createElementVNode("label",xfe,[r.createElementVNode("span",Afe,r.toDisplayString(M.$t("activity.timeSpent.label"))+" ("+r.toDisplayString(v.value)+")",1),r.createElementVNode("span",Tfe,r.toDisplayString(b.value),1)])])]),r.createElementVNode("div",Nfe,[r.createVNode(Gc,{modelValue:w.value,"onUpdate:modelValue":j[10]||(j[10]=ve=>w.value=ve),modelModifiers:{lazy:!0},label:M.$t("activity.important.label"),disabled:!u.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("div",Dfe,[r.createVNode(Gc,{modelValue:k.value,"onUpdate:modelValue":j[11]||(j[11]=ve=>k.value=ve),modelModifiers:{lazy:!0},label:M.$t("activity.blocked.label"),disabled:!u.value,variant:"ghost","icon-name":"BlockRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("fieldset",$fe,[r.createElementVNode("div",Bfe,[r.createVNode(ke,{name:"FlowsheetOutlineRounded"}),r.createVNode(gt,{level:4,title:M.$t("activity.dependencies.title")},null,8,["title"])]),r.createElementVNode("div",Mfe,[r.createElementVNode("div",Lfe,[r.createElementVNode("label",Ofe,[r.createElementVNode("span",Vfe,r.toDisplayString(M.$t("activity.dependingOn.label")),1),r.createVNode(ft,{modelValue:z.value,"onUpdate:modelValue":j[12]||(j[12]=ve=>z.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:F.value,disabled:!u.value,caret:u.value},null,8,["modelValue","options","disabled","caret"])])]),r.createElementVNode("div",Ife,[r.createElementVNode("label",Pfe,[r.createElementVNode("span",Ffe,r.toDisplayString(M.$t("activity.blocking.label")),1),r.createVNode(ft,{modelValue:se.value,"onUpdate:modelValue":j[13]||(j[13]=ve=>se.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:Ee.value,disabled:!u.value,caret:u.value},null,8,["modelValue","options","disabled","caret"])])])])]),r.renderSlot(M.$slots,"default",{activity:t.activity})])])]}),_:3}),f.value!==null?(r.openBlock(),r.createBlock(Kde,{key:0,attachments:t.activity.attachments||[],"current-index":f.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":j[15]||(j[15]=ae=>f.value=ae),onClose:j[16]||(j[16]=ae=>f.value=null)},null,8,["attachments","current-index","load-preview"])):r.createCommentVNode("",!0)],64))}});const Rfe=r.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,i=r.toRef(n.rule.itemType||je.ACTIVITIES),s=r.computed({get(){return i.value},set(_){i.value=_,o("update:rule",{...n.rule,itemType:_,subItemId:void 0})}}),a=r.computed(()=>Object.values(je)),l=r.computed({get(){return n.rule.subItemId},set(_){o("update:rule",{...n.rule,subItemId:_,itemType:n.rule.itemType||s.value})}}),c=r.computed(()=>{var v;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(v={[je.ACTIVITIES]:n.templateActivities,[je.MILESTONES]:n.templateMilestones,[je.PHASES]:n.templatePhases}[i.value])==null?void 0:v.map(b=>({value:b.id,label:b.name}))}),u=r.toRef(n.rule.comparator),d=r.computed({get(){return u.value},set(_){o("update:rule",{...n.rule,comparator:_})}}),f=r.computed(()=>Object.values(Ep)),p=r.toRef(n.rule.trigger),m=r.computed({get(){return p.value},set(_){o("update:rule",{...n.rule,trigger:_})}}),h=r.computed(()=>Object.values(Sp)),g=r.computed({get(){return n.rule.duration},set(_){o("update:rule",{...n.rule,duration:_})}}),y=r.computed({get(){return n.rule.durationUnit},set(_){o("update:rule",{...n.rule,durationUnit:_})}}),C=r.computed(()=>Object.values(xp));return(_,v)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:r.withCtx(()=>[r.createVNode(r.unref(co),{modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=b=>s.value=b),options:a.value},null,8,["modelValue","options"]),r.createVNode(r.unref(co),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=b=>l.value=b),options:c.value},null,8,["modelValue","options"]),r.createVNode(r.unref(co),{modelValue:m.value,"onUpdate:modelValue":v[2]||(v[2]=b=>m.value=b),options:h.value},null,8,["modelValue","options"]),r.createVNode(r.unref(co),{modelValue:d.value,"onUpdate:modelValue":v[3]||(v[3]=b=>d.value=b),options:f.value},null,8,["modelValue","options"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":v[4]||(v[4]=b=>g.value=b),type:"number",min:"0"},null,512),[[r.vModelText,g.value,void 0,{number:!0}]]),r.createVNode(r.unref(co),{modelValue:y.value,"onUpdate:modelValue":v[5]||(v[5]=b=>y.value=b),options:C.value},null,8,["modelValue","options"]),r.createVNode(de,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=b=>_.$emit("close"))})]),_:1}))}});const zfe={class:"ao-template-rules__body"},Ufe={class:"ao-template-rules__list"},Hfe=r.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},i=s=>{n("removeRule",s)};return(s,a)=>(r.openBlock(),r.createBlock(Oa,null,{header:r.withCtx(()=>[r.createVNode(gt,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("div",zfe,[r.createElementVNode("ul",Ufe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.rules,l=>(r.openBlock(),r.createBlock(Rfe,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>i(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),r.createVNode(Eo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Ko(t,e,n){const o=t.length,i=t.at(-1),s=i?Xe.LexoRank.parse(i.rank).genNext():Xe.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const qfe={key:0,class:"ao-template-details"},jfe={class:"ao-template-details__body"},Wfe={class:"ao-template-details__cols"},Zfe={class:"ao-template-details__col"},Kfe={class:"ao-list__footer"},Gfe={class:"ao-template-details__col"},Yfe={class:"ao-template-details__col"},Wg=r.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=r.computed(()=>{var P;return(P=o.templates)==null?void 0:P.find(H=>H.id===o.templateId)}),a=r.ref(!1);r.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),r.watch(()=>{var P;return(P=s.value)==null?void 0:P.phases},(P,H)=>{a.value&&Wn(P,H)});const l=r.computed(()=>{var P,H;return(H=(P=s==null?void 0:s.value)==null?void 0:P.phases)==null?void 0:H.find(Q=>Q.id===o.phaseId)});r.watch(()=>{var P;return(P=l.value)==null?void 0:P.milestones},(P,H)=>{a.value&&Wn(P,H)});const c=r.computed(()=>{var P,H;return(H=(P=l.value)==null?void 0:P.milestones)==null?void 0:H.find(Q=>Q.id===o.milestoneId)});r.watch(()=>{var P;return(P=c.value)==null?void 0:P.activities},(P,H)=>{a.value&&Wn(P,H)});const u=r.computed(()=>{var P,H;return((H=(P=s.value)==null?void 0:P.phases)==null?void 0:H.reduce((Q,le)=>{const oe=le.milestones||[];return[...Q,...oe]},[]))||[]}),d=r.computed(()=>{var P,H;return((H=(P=s.value)==null?void 0:P.phases)==null?void 0:H.reduce((Q,le)=>{const Ne=(le.milestones||[]).reduce((ce,ne)=>ne.activities?[...ce,...ne.activities]:ce,[]);return[...Q,...Ne]},[]))||[]}),f=r.computed(()=>{var P,H;return(H=(P=c.value)==null?void 0:P.activities)==null?void 0:H.find(Q=>Q.id===o.activityId)}),p=r.computed(()=>{var P;return((P=s.value)==null?void 0:P.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:P,rank:H}=Ko(s.value.phases,"phase",n);a.value=!0,i("addItem",{type:je.PHASES,templateId:o.templateId,item:{name:P,rank:H}})},h=P=>{i("updateItem",{templateId:o.templateId,id:o.templateId,itemType:je.TEMPLATES,data:{name:P}})},g=P=>{i("removeItem",{itemType:je.PHASES,templateId:o.templateId,data:{id:P}})},y=(P,H)=>{i("updateItem",{templateId:o.templateId,id:P,itemType:je.PHASES,data:{name:H}})},C=P=>{i("updateItem",P)},_=P=>{if(!l.value)return;const{name:H,rank:Q}=Ko(l.value.milestones,"milestone",n);a.value=!0,i("addItem",{type:je.MILESTONES,templateId:o.templateId,phaseId:P.phaseId,item:{name:H,rank:Q,phaseId:P.phaseId}})},v=P=>{i("removeItem",{itemType:je.MILESTONES,templateId:o.templateId,phaseId:P.phaseId,data:{id:P.id}})},b=P=>{const{id:H,...Q}=P;i("updateItem",{itemType:je.MILESTONES,id:H,templateId:o.templateId,data:Q})},w=P=>{const{milestoneId:H}=P;if(!c.value)return;const{name:Q,rank:le}=Ko(c.value.activities,"activity",n);a.value=!0,i("addItem",{type:je.ACTIVITIES,milestoneId:H,templateId:o.templateId,item:{name:Q,rank:le,milestoneId:H}})},k=P=>{var H,Q;i("removeItem",{itemType:je.ACTIVITIES,templateId:o.templateId,phaseId:(H=l.value)==null?void 0:H.id,milestoneId:(Q=c.value)==null?void 0:Q.id,data:{id:P.id}})},T=P=>{const{id:H,...Q}=P;i("updateItem",{itemType:je.ACTIVITIES,id:H,templateId:o.templateId,data:Q})},A=r.ref(!1),S=()=>{A.value=!A.value},E=()=>{i("addRule",{templateId:o.templateId})},D=P=>{i("removeRule",{id:P,templateId:o.templateId})},x=P=>{var H;if(P.moved){const Q=ts(P,((H=s.value)==null?void 0:H.phases)??[]);i("updateItem",{itemType:je.PHASES,id:P.moved.element.id,templateId:o.templateId,data:{rank:Q}})}},$=P=>{!l.value||!c.value||!f.value||i("addItem",{type:je.TASKS,activityId:P.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:P})},B=P=>{!l.value||!c.value||!f.value||i("updateItem",{itemType:je.TASKS,id:P.id,templateId:o.templateId,data:P})},V=P=>{!l.value||!c.value||!f.value||i("removeItem",{itemType:je.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:P})},I=P=>{i("addFiles",P)},W=P=>{i("removeFile",P)};return(P,H)=>{var Q,le,oe,Ne,ce,ne;return s.value?(r.openBlock(),r.createElementBlock("div",qfe,[r.createVNode(os,{"can-go-back":!0,onGoBack:H[1]||(H[1]=z=>P.$router.push({name:r.unref(Ho).TEMPLATES_LIST}))},{primary:r.withCtx(()=>[r.createVNode(gt,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":H[0]||(H[0]=z=>{h(z)})},null,8,["title"])]),_:1}),r.createElementVNode("div",jfe,[r.createElementVNode("ol",Wfe,[r.createElementVNode("li",Zfe,[r.createVNode(r.unref(wo),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:x},{header:r.withCtx(()=>[r.createVNode(gt,{title:P.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:r.withCtx(({element:z})=>{var F;return[r.createVNode(u7,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((F=l.value)==null?void 0:F.id)===z.id,"is-draggable":!0,onClick:se=>P.$router.push({params:{templateId:t.templateId,phaseId:z.id}}),"onUpdate:title":se=>{y(z.id,se)},onRemove:()=>g(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:r.withCtx(()=>[r.createElementVNode("div",Kfe,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:P.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),r.createElementVNode("li",Gfe,[l.value?(r.openBlock(),r.createBlock(p7,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(Q=c.value)==null?void 0:Q.id,onAddMilestone:_,onUpdateMilestone:b,onUpdatePhase:C,onRemoveMilestone:v},null,8,["template-id","phase","milestone-id"])):r.createCommentVNode("",!0)]),r.createElementVNode("li",Yfe,[l.value&&c.value?(r.openBlock(),r.createBlock(g7,{key:0,"template-id":t.templateId,"phase-id":(le=l.value)==null?void 0:le.id,milestone:c.value,"activity-id":(oe=f.value)==null?void 0:oe.id,onAddActivity:w,onUpdateActivity:T,onRemoveActivity:k},null,8,["template-id","phase-id","milestone","activity-id"])):r.createCommentVNode("",!0)])])]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[f.value?(r.openBlock(),r.createBlock(id,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(Ne=l.value)==null?void 0:Ne.name} / ${(ce=c.value)==null?void 0:ce.name}`,"milestone-id":(ne=c.value)==null?void 0:ne.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,sprints:[],"onUpdate:activity":H[2]||(H[2]=z=>{f.value&&T(z)}),onClose:P.$router.back,onAddSubtask:$,onUpdateSubtask:B,onDeleteSubtask:V,onAddFiles:I,onRemoveFile:W},{default:r.withCtx(z=>[r.renderSlot(P.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(z)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):r.createCommentVNode("",!0)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[A.value?(r.openBlock(),r.createBlock(Hfe,{key:0,"template-id":s.value.id,rules:s.value.rules||[],"template-phases":s.value.phases,"template-milestones":u.value,"template-activities":d.value,onClose:S,onAddRule:E,onRemoveRule:D},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)}}});const Jfe={class:"ao-card__content"},Xfe={key:0,class:"ao-card__header"},Qfe={class:"ao-card__body"},epe={key:1,class:"ao-card__footer"},ml=r.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1},variant:{default:"default"}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:r.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable,"ao-card--danger":t.variant==="danger"}]),style:r.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:r.withCtx(()=>[t.withLeftBorder?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-card__left-border",style:r.normalizeStyle({backgroundColor:t.color})},null,4)):r.createCommentVNode("",!0),r.createElementVNode("div",Jfe,[e.$slots.header?(r.openBlock(),r.createElementBlock("header",Xfe,[r.renderSlot(e.$slots,"header")])):r.createCommentVNode("",!0),r.createElementVNode("div",Qfe,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",epe,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const hl=r.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=r.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,s=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(["ao-progress__progress"]),style:r.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
54
+ `)}}(t,n)(e)}var Kue=process.env.NODE_ENV==="production",ac="Invariant failed";function Gue(t,e){if(!t){if(Kue)throw new Error(ac);var n=typeof e=="function"?e():e,o=n?"".concat(ac,": ").concat(n):ac;throw new Error(o)}}const zg=Symbol("LexicalEditor"),Yue=(()=>{const t=r.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:i}=n;const s=o;i();const a=e,l={tag:Mi},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:m}=a.initialConfig,h=rce({editable:a.initialConfig.editable,html:m,namespace:u,nodes:d,theme:c,onError(y){s("error",y,h),f==null||f(y,h)}});g(h,p);function g(y,C){if(C!==null){if(C===void 0)y.update(()=>{const v=Ze();if(v.isEmpty()){const _=ze();v.append(_);const b=Oce?document.activeElement:null;(ee()!==null||b!==null&&b===y.getRootElement())&&_.select()}},l);else if(C!==null)switch(typeof C){case"string":{const v=y.parseEditorState(C);y.setEditorState(v,l);break}case"object":y.setEditorState(C,l);break;case"function":y.update(()=>{Ze().isEmpty()&&C(y)},l);break}}}return r.provide(zg,h),r.onMounted(()=>{const y=a.initialConfig.editable;h.setEditable(y!==void 0?y:!0)}),(y,C)=>r.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function ti(){const t=r.inject(zg,null);return t||Gue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Jue(t,e){if(t==null)return{};var n=Xue(t,e),o,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)o=s[i],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Xue(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,s;for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}const Que=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=r.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:i}=o;i();const s=n,a=r.useTemplateRef("root"),l=r.ref(s.editor.isEditable()),c=r.computed(()=>Jue(s,["editor"]));r.onMounted(()=>{function d(p){p&&p.ownerDocument&&p.ownerDocument.defaultView?s.editor.setRootElement(p):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const f=s.editor.registerEditableListener(p=>{l.value=p});r.onUnmounted(f)});const u=r.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({ref_key:"root",ref:a},c.value,{"aria-activedescendant":l.value?d.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?d.ariaAutoComplete:"none","aria-controls":l.value?d.ariaControls:void 0,"aria-describedby":d.ariaDescribedBy,"aria-expanded":l.value&&u.value==="combobox"?!!d.ariaExpanded:void 0,"aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,"aria-multiline":d.ariaMultiline,"aria-owns":l.value?d.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":d.ariaRequired,autocapitalize:d.autocapitalize,contenteditable:l.value,role:l.value?u.value:void 0,spellcheck:d.spellcheck||!0,tabindex:d.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function ede(){return Ze().getTextContent()}function tde(t,e=!0){if(t)return!1;let n=ede();return e&&(n=n.trim()),n===""}function nde(t){if(!tde(t,!1))return!1;const e=Ze().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const i=e[o];if(Te(i))return!1;if(U(i)){if(!fs(i)||i.__indent!==0)return!1;const s=i.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!X(c))return!1}}}return!0}function Ug(t){return()=>nde(t)}function ode(t){return t.getEditorState().read(Ug(t.isComposing()))}function Hg(t){const e=t.getEditorState().read(Ug(t.isComposing())),n=r.ref(e);function o(){const i=ode(t);n.value=i}return r.onMounted(()=>{const i=hs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));r.onUnmounted(()=>{i()})}),r.readonly(n)}function rde(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ide(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),o.forEach(function(i){rde(t,i,n[i])})}return t}function sde(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function ade(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sde(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const lde=(()=>{const t={key:0,"aria-hidden":"true"},e=r.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:i}=o;i();const s=ti(),a=r.ref(!1),l=Hg(s);return r.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});r.onUnmounted(c)}),(c,u)=>{var d,f;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(Que),r.mergeProps({editor:r.unref(s)},ade(ide({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),r.unref(l)?(r.openBlock(),r.createElementBlock("div",t,[r.renderSlot(c.$slots,"placeholder")])):r.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function cde(t,e,n,o,i){if(t===null||n.size===0&&o.size===0&&!i)return 0;const s=e._selection,a=t._selection;if(i)return 1;if(!(K(s)&&K(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(C,v,_){const b=C._nodeMap,w=[];for(const k of v){const A=b.get(k);A!==void 0&&w.push(A)}for(const[k,A]of _){if(!A)continue;const T=b.get(k);T===void 0||Qe(T)||w.push(T)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const C=e._nodeMap,v=C.get(s.anchor.key),_=C.get(a.anchor.key);return v&&_&&!t._nodeMap.has(v.__key)&&X(v)&&v.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!X(u)||!X(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,m=a.anchor;if(p.key!==m.key||p.type!=="text")return 0;const h=p.offset,g=m.offset,y=f.length-d.length;return y===1&&g===h-1?2:y===-1&&g===h+1?3:y===-1&&g===h?4:0}function ude(t,e){let n=Date.now(),o=0;return(i,s,a,l,c,u)=>{const d=Date.now();if(u.has(ma))return o=0,n=d,2;const f=cde(i,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(Ile);if(!h&&m&&u.has(Mi))return 0;if(i===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const y=typeof e=="number"?e:e.peek();return h===!1&&f!==0&&f===o&&d<n+y&&m||l.size===1&&function(C,v,_){const b=v._nodeMap.get(C),w=_._nodeMap.get(C),k=v._selection,A=_._selection;return!(K(k)&&K(A)&&k.anchor.type==="element"&&k.focus.type==="element"&&A.anchor.type==="text"&&A.focus.type==="text"||!X(b)||!X(w)||b.__parent!==w.__parent)&&JSON.stringify(v.read(()=>b.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],i,s)?0:1})();return n=d,o=f,p}}function _p(t){t.undoStack=[],t.redoStack=[],t.current=null}function dde(t,e,n){const o=ude(t,n);return hs(t.registerCommand(Tu,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(c.length!==0){const u=a.current,d=c.pop();u!==null&&(l.push(u),s.dispatchCommand(Ls,!0)),c.length===0&&s.dispatchCommand(Os,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:ma})}}(t,e),!0),xe),t.registerCommand(Au,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(l.length!==0){const u=a.current;u!==null&&(c.push(u),s.dispatchCommand(Os,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Ls,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:ma})}}(t,e),!0),xe),t.registerCommand($le,()=>(_p(e),!1),xe),t.registerCommand(Ble,()=>(_p(e),t.dispatchCommand(Ls,!1),t.dispatchCommand(Os,!1),!0),xe),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=e.undoStack,m=d===null?null:d.editorState;if(d!==null&&s===m)return;const h=o(a,s,d,l,c,u);if(h===1)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Ls,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Os,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function fde(){return{current:null,redoStack:[],undoStack:[]}}function pde(t,e,n){const o=r.computed(()=>r.toValue(e)||fde());r.watchEffect(i=>{const s=dde(r.toValue(t),o.value,r.toValue(n)||1e3);i(s)})}const mde=(()=>{const t=r.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const i=e,s=ti();return pde(s,()=>i.externalHistoryState,()=>i.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function hde(t){r.onMounted(()=>{const e=Kce(t);r.onUnmounted(()=>{e()})})}const gde=(()=>{const t=r.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const i=e,s=ti();return r.watchEffect(a=>{if(!s.hasNodes([cr,Ao]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!i.hasStrictIndent)return;const l=Gce(s);a(l)}),hde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function vde(t){const e=r.shallowRef(t.getDecorators());return r.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});r.onUnmounted(()=>{n()})}),r.computed(()=>{const n=[],o=Object.keys(r.unref(e));for(let i=0;i<o.length;i++){const s=o[i],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(r.h(r.Teleport,{to:l},a))}return n})}const _de=r.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=ti(),e=vde(t);return()=>e.value}});function yde(t){r.onMounted(()=>{const e=hs(pue(t),iue(t));r.onUnmounted(e)})}const Cde=(()=>{const t=r.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const i=ti(),s=Hg(i);return yde(i),(a,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(s)?r.renderSlot(a.$slots,"placeholder",{key:0}):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"contentEditable"),r.createVNode(r.unref(_de))],64))}});return t.__vue_vine=!0,t})(),lc=[$g,Bg,Mg,Lg,Vg,Ig,Fg,Pg,Og],bde={class:"ao-lexical-editor__placeholder"},qg=r.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown","paste"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.shallowRef(null),a=r.shallowRef(null),l=r.ref("paragraph"),c=r.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),u={namespace:"AoLexicalEditor",nodes:[cr,Ao,ul,dl],theme:{paragraph:"ao-lexical-editor__paragraph",heading:{h1:"ao-lexical-editor__heading-h1",h2:"ao-lexical-editor__heading-h2",h3:"ao-lexical-editor__heading-h3"},code:"ao-lexical-editor__code-block",text:{bold:"ao-lexical-editor__text-bold",italic:"ao-lexical-editor__text-italic",strikethrough:"ao-lexical-editor__text-strikethrough",code:"ao-lexical-editor__inline-code"},list:{ul:"ao-lexical-editor__list-ul",ol:"ao-lexical-editor__list-ol",listitem:"ao-lexical-editor__list-item"}},editorState:()=>{Wue(o.initialMarkdown||"",lc)},onError(x){console.error("Lexical error:",x)}},d=r.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:x=>!0,blockStyleChange:x=>!0,selectionChange:x=>!0},setup(x,{emit:$}){const B=ti();let V=null,I=null;function W(){B.getEditorState().read(()=>{const P=ee();if(!K(P))return;$("selectionChange",P.clone());const H=P.anchor.getNode(),Q=H.getKey()==="root"?H:H.getTopLevelElementOrThrow();if(_g(Q)){const le=Q.getTag();if(le==="h1"||le==="h2"||le==="h3"){$("blockStyleChange",le);return}}if(fl(Q)){$("blockStyleChange","code");return}$("blockStyleChange","paragraph")})}return r.onMounted(()=>{$("ready",B),W(),I=jue(B,lc),V=B.registerUpdateListener(()=>{W()})}),r.onUnmounted(()=>{I==null||I(),V==null||V()}),()=>null}});function f(x){s.value=x,i("ready",x)}function p(x){a.value=x}function m(x){i("keydown",x)}function h(x){const $=x.clipboardData;if(!$)return;const B=[],V=$.items;if(V){for(const I of V)if(I.kind==="file"&&I.type.startsWith("image/")){const W=I.getAsFile();if(W){const P=g(W);B.push(P)}}B.length>0&&(x.preventDefault(),i("paste",B))}}function g(x){if(x.name&&x.name.length>0&&x.name!=="image.png"&&x.name!=="screenshot.png"&&!x.name.startsWith("image-"))return x;const B=new Date,V=B.getFullYear(),I=String(B.getMonth()+1).padStart(2,"0"),W=String(B.getDate()).padStart(2,"0"),P=String(B.getHours()).padStart(2,"0"),H=String(B.getMinutes()).padStart(2,"0");let Q="png";x.type==="image/jpeg"?Q="jpg":x.type==="image/webp"?Q="webp":x.type==="image/gif"&&(Q="gif");const le=`pasted-image-${V}-${I}-${W}-${P}${H}.${Q}`;return new File([x],le,{type:x.type})}function y(){a.value&&_t(a.value.clone())}function C(x){const $=s.value;$&&($.update(()=>{y(),x()}),$.focus())}function v(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Yt,"bold"),x.focus())}function _(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Yt,"italic"),x.focus())}function b(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Yt,"strikethrough"),x.focus())}function w(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Yt,"code"),x.focus())}function k(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(cg,void 0),x.focus())}function A(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(ug,void 0),x.focus())}function T(x){C(()=>{const $=ee();if(K($)){if($.isCollapsed()||$.focus.set($.anchor.key,$.anchor.offset,$.anchor.type),x==="paragraph"){oc($,()=>ze());return}if(x==="code"){oc($,()=>Nn());return}oc($,()=>Uo(x))}}),l.value=x}function S(){const x=s.value;return x?x.getEditorState().read(()=>Zue(lc)):""}function E(){const x=s.value;x&&x.update(()=>{const $=Ze();$.clear(),$.append(ze())})}function D(){var x;(x=s.value)==null||x.focus()}return e({toggleBold:v,toggleItalic:_,toggleStrikethrough:b,toggleInlineCode:w,insertBulletList:k,insertNumberedList:A,setBlockStyle:T,getMarkdown:S,clear:E,focus:D,blockStyle:l}),(x,$)=>(r.openBlock(),r.createBlock(r.unref(Yue),{"initial-config":u},{default:r.withCtx(()=>[r.renderSlot(x.$slots,"toolbar"),r.createElementVNode("div",{class:r.normalizeClass(["ao-lexical-editor",c.value])},[r.createVNode(r.unref(Cde),null,{contentEditable:r.withCtx(()=>[r.createVNode(r.unref(lde),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:r.withCtx(()=>[r.createElementVNode("div",bde,r.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),r.createVNode(r.unref(mde)),r.createVNode(r.unref(gde)),r.createVNode(r.unref(d),{onReady:f,onBlockStyleChange:$[0]||($[0]=B=>l.value=B),onSelectionChange:p})]),_:3}))}});function kde(t,e){const n=r.ref(""),o=r.ref(!1),i=r.ref({top:0,left:0}),s=r.ref(0),a=r.computed(()=>e.value.filter(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:qp(h)}))),l=r.computed(()=>a.value.filter(h=>h.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",s.value=0}function u(){const h=ee();if(!K(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!X(g)){c();return}const C=g.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!C){c();return}n.value=C[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const h=t.value;if(!h||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const y=g.getRangeAt(0),C=y.getClientRects().item(0)??y.getBoundingClientRect(),v=h.getRootElement();if(!v)return;const _=v.getBoundingClientRect();i.value={top:C.bottom-_.top+4,left:C.left-_.left}}function f(h){const g=t.value;g&&(g.update(()=>{const y=ee();if(!K(y)||!y.isCollapsed())return;const C=y.anchor.getNode();if(!X(C))return;const v=C.getTextContent(),_=y.anchor.offset,w=v.slice(0,_).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const k=_-w[0].length,A=`@${h} `,T=v.slice(0,k)+A+v.slice(_);C.setTextContent(T);const S=k+A.length;y.anchor.set(C.getKey(),S,"text"),y.focus.set(C.getKey(),S,"text")}),c(),g.focus())}function p(h){if(!o.value)return!1;switch(h.key){case"ArrowDown":return h.preventDefault(),l.value.length>0&&(s.value=(s.value+1)%l.value.length),!0;case"ArrowUp":return h.preventDefault(),l.value.length>0&&(s.value=(s.value-1+l.value.length)%l.value.length),!0;case"Enter":{if(l.value.length===0)return!1;h.preventDefault();const g=l.value[s.value];return g&&f(g.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.registerUpdateListener(({editorState:g})=>{g.read(()=>{u()}),o.value&&requestAnimationFrame(()=>{d()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:i,filteredUsers:l,selectedIndex:s,selectUserMention:f,handleKeydown:p,closeMentionList:c,setupMentionTracking:m}}const wde={key:0,class:"ao-comment-editor__toolbar"},Ede=["onClick"],jg=r.defineComponent({__name:"AoCommentEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Add a comment..."},mentionableUsers:{default:()=>[]},showSubmitButton:{type:Boolean,default:!0},toolbarVisibility:{default:"focus"}},emits:["submit","cancel","focus","blur"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(null),a=r.shallowRef(null),l=r.ref(!1),c=r.toRef(o,"mentionableUsers"),{showMentionList:u,mentionListPosition:d,filteredUsers:f,selectedIndex:p,selectUserMention:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:y}=kde(a,c);let C,v;const _=r.computed(()=>o.toolbarVisibility==="always"||l.value);r.onUnmounted(()=>{C==null||C(),v!==void 0&&window.clearTimeout(v)});function b(x){a.value=x,C==null||C(),C=y()}function w(){v!==void 0&&(window.clearTimeout(v),v=void 0),l.value||(l.value=!0,i("focus"))}function k(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{var B;v=void 0;const x=(B=a.value)==null?void 0:B.getRootElement(),$=document.activeElement;x&&$ instanceof Node&&x.contains($)||l.value&&(l.value=!1,i("blur"))},100)}function A(x){if(!h(x)){if(x.key==="Enter"&&(x.ctrlKey||x.metaKey)){x.preventDefault(),T();return}if(x.key==="Escape"){if(u.value){g();return}x.preventDefault(),S()}}}function T(){const x=s.value;if(!x)return;const $=x.getMarkdown();$.trim()&&i("submit",$)}function S(){g(),i("cancel")}function E(){var x;(x=s.value)==null||x.clear(),g()}function D(){var x;(x=s.value)==null||x.focus()}return e({submit:T,cancel:S,reset:E,focus:D}),(x,$)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(r.openBlock(),r.createElementBlock("div",wde,[r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:$[0]||($[0]=r.withModifiers(()=>{},["prevent"])),onClick:$[1]||($[1]=B=>{var V;return(V=s.value)==null?void 0:V.toggleBold()})},[...$[14]||($[14]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:$[2]||($[2]=r.withModifiers(()=>{},["prevent"])),onClick:$[3]||($[3]=B=>{var V;return(V=s.value)==null?void 0:V.toggleItalic()})},[...$[15]||($[15]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:$[4]||($[4]=r.withModifiers(()=>{},["prevent"])),onClick:$[5]||($[5]=B=>{var V;return(V=s.value)==null?void 0:V.toggleStrikethrough()})},[...$[16]||($[16]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:$[6]||($[6]=r.withModifiers(()=>{},["prevent"])),onClick:$[7]||($[7]=B=>{var V;return(V=s.value)==null?void 0:V.toggleInlineCode()})},[...$[17]||($[17]=[r.createElementVNode("span",null,"</>",-1)])],32),$[18]||($[18]=r.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:$[8]||($[8]=r.withModifiers(()=>{},["prevent"])),onClick:$[9]||($[9]=B=>{var V;return(V=s.value)==null?void 0:V.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:$[10]||($[10]=r.withModifiers(()=>{},["prevent"])),onClick:$[11]||($[11]=B=>{var V;return(V=s.value)==null?void 0:V.insertNumberedList()})}," 1. ",32)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:k},[r.createVNode(qg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:b,onKeydown:A},null,8,["initial-markdown","placeholder"]),r.unref(u)&&r.unref(f).length>0?(r.openBlock(),r.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:r.normalizeStyle({top:r.unref(d).top+"px",left:r.unref(d).left+"px"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(f),(B,V)=>(r.openBlock(),r.createElementBlock("li",{key:B.id,class:r.normalizeClass({"ao-comment-editor__mention-item--selected":V===r.unref(p)}),onMousedown:$[12]||($[12]=r.withModifiers(()=>{},["prevent"])),onClick:I=>r.unref(m)(B.name)}," @"+r.toDisplayString(B.name),43,Ede))),128))],4)):r.createCommentVNode("",!0),t.showSubmitButton?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:$[13]||($[13]=r.withModifiers(()=>{},["prevent"])),onClick:T},[r.createVNode(ke,{name:"SendRounded"})],32)):r.createCommentVNode("",!0)],32)],2))}});const Sde={class:"ao-comment"},xde={class:"ao-comment__created-at"},Tde={class:"ao-comment__body"},Ade={class:"ao-comment__content-wrapper"},Nde={key:0,class:"ao-comment__footer"},Dde=r.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{const h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),s=r.ref(!1),a=r.ref(n.content),l=r.ref(null),c=r.computed(()=>{const h=n.editedAt&&Br(n.editedAt),g=Br(n.createdAt),y=new Date,C=h??g;return C&&Q5(C,y)});r.watch(()=>n.content,h=>{s.value||(a.value=h)});function u(){a.value=n.content,s.value=!0,r.nextTick(()=>{var h;(h=l.value)==null||h.focus()})}function d(h){o("edit",h),s.value=!1}function f(){var h;(h=l.value)==null||h.submit()}function p(){s.value=!1,a.value=n.content}function m(){o("remove")}return(h,g)=>{var y;return r.openBlock(),r.createElementBlock("li",Sde,[r.createElementVNode("span",xde,r.toDisplayString(c.value),1),i.value?(r.openBlock(),r.createBlock(Xn,{key:0,"avatar-url":(y=t.user)==null?void 0:y.avatarUrl,"user-name":i.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):r.createCommentVNode("",!0),r.createElementVNode("div",Tde,[r.createElementVNode("div",Ade,[s.value?(r.openBlock(),r.createBlock(jg,{key:1,ref_key:"commentEditorRef",ref:l,"initial-markdown":a.value,"mentionable-users":t.mentionableUsers,"show-submit-button":!1,"toolbar-visibility":"always",onSubmit:d,onCancel:p},null,8,["initial-markdown","mentionable-users"])):(r.openBlock(),r.createBlock(Bm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Nde,[s.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(de,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),r.createVNode(de,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(de,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),r.createVNode(de,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):r.createCommentVNode("",!0)])])}}});const $de={class:"ao-comments__new"},Bde={key:0,class:"ao-comments__list"},Mde=r.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>[...n.comments].sort((f,p)=>H3(Br(f.createdAt),Br(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=r.ref(null);r.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=r.ref(null);function c(f){var m;if(!f.trim())return;const p=Ld(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=Ld(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:m})}function d(f){o("removeComment",{id:f})}return(f,p)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[r.createElementVNode("div",$de,[r.createVNode(jg,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:f.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),i.value.length>0?(r.openBlock(),r.createElementBlock("ul",Bde,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,m=>(r.openBlock(),r.createBlock(Dde,{key:m.id,user:s(m.author.id),content:m.message,"created-at":m.createdAt,"edited-at":m.updatedAt,"is-editable":m.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:h=>u(m.id,h),onRemove:()=>d(m.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):r.createCommentVNode("",!0)],512))}});const Lde=["aria-label"],Ode={class:"ao-file-preview__actions"},Vde=["aria-label"],Ide={key:0,class:"ao-file-preview__loading"},Pde=["src","alt"],Fde=["src","title"],Rde={key:3,class:"ao-file-preview__fallback"},zde={class:"ao-file-preview__fallback-title"},Ude={class:"ao-file-preview__fallback-filename"},Hde=["aria-label"],qde={key:2,class:"ao-file-preview__info"},jde=["title"],Wde={key:0,class:"ao-file-preview__info-counter"},Zde={key:3,class:"ao-file-preview__info"},Kde={class:"ao-file-preview__info-counter"},Gde=r.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){Nt();const n=t,o=e,i=r.ref(null),s=r.ref(!1),a=r.ref(!1);let l=0;const c=r.computed(()=>n.attachments[n.currentIndex]),u=r.computed(()=>n.currentIndex===0),d=r.computed(()=>n.currentIndex===n.attachments.length-1),f=r.computed(()=>{var E,D;return((D=(E=c.value)==null?void 0:E.mimeType)==null?void 0:D.toLowerCase())??""}),p=r.computed(()=>{var E;return((E=c.value)==null?void 0:E.name)??""}),m=r.computed(()=>{var E;return((E=p.value.split(".").pop())==null?void 0:E.toLowerCase())??""}),h=r.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),g=r.computed(()=>f.value==="application/pdf"||m.value==="pdf"),y=r.computed(()=>h.value||g.value),C=r.computed(()=>h.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function v(){i.value&&(URL.revokeObjectURL(i.value),i.value=null)}async function _(){const E=c.value,D=++l;if(v(),a.value=!1,s.value=!1,!E||!y.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const x=await n.loadPreview(E);if(D!==l)return;if(!x.size)throw new Error("Empty file received");i.value=URL.createObjectURL(x)}catch(x){if(D!==l)return;console.error("Failed to load attachment preview:",x),a.value=!0}finally{D===l&&(s.value=!1)}}function b(){u.value||o("update:currentIndex",n.currentIndex-1)}function w(){d.value||o("update:currentIndex",n.currentIndex+1)}function k(){const E=c.value;if(!(E!=null&&E.url))return;const D=document.createElement("a");D.href=E.url,D.download=E.name,D.target="_blank",D.rel="noopener noreferrer",document.body.appendChild(D),D.click(),D.remove()}function A(){v(),a.value=!0}function T(){++l,v(),o("close")}function S(E){switch(E.key){case"Escape":T();break;case"ArrowLeft":b();break;case"ArrowRight":w();break}}return r.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){T();return}_()},{immediate:!0}),r.onMounted(()=>{document.addEventListener("keydown",S)}),r.onUnmounted(()=>{++l,document.removeEventListener("keydown",S),v()}),(E,D)=>{var x,$,B,V,I,W;return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(x=c.value)==null?void 0:x.name},[r.createElementVNode("div",Ode,[r.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:r.withModifiers(k,["stop"])},[r.createVNode(ke,{name:"DownloadRounded",size:"sm"}),D[2]||(D[2]=r.createElementVNode("span",null,"Download",-1))]),r.createElementVNode("button",{type:"button",class:"ao-file-preview__action ao-file-preview__action--close",title:"Close","aria-label":"Close",onClick:r.withModifiers(T,["stop"])},[r.createVNode(ke,{name:"CloseRounded",size:"sm"})])]),r.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:T}),u.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--prev","aria-label":E.$t("activity.attachment.preview.previous"),onClick:r.withModifiers(b,["stop"])},[r.createVNode(ke,{name:"ArrowBackRounded",size:"lg"})],8,Vde)),r.createElementVNode("div",{class:"ao-file-preview__content",onClick:D[1]||(D[1]=r.withModifiers(()=>{},["stop"]))},[s.value?(r.openBlock(),r.createElementBlock("div",Ide,[...D[3]||(D[3]=[r.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),r.createElementVNode("span",null,"Loading...",-1)])])):h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("img",{key:1,src:i.value,alt:($=c.value)==null?void 0:$.name,class:"ao-file-preview__image",onError:A},null,40,Pde)):g.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:D[0]||(D[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("iframe",{src:i.value,title:(B=c.value)==null?void 0:B.name,class:"ao-file-preview__pdf"},null,8,Fde)])):(r.openBlock(),r.createElementBlock("div",Rde,[r.createVNode(ke,{name:C.value,size:"xl"},null,8,["name"]),r.createElementVNode("p",zde,r.toDisplayString(E.$t("activity.attachment.preview.notAvailable")),1),r.createElementVNode("p",Ude,r.toDisplayString((V=c.value)==null?void 0:V.name),1),r.createVNode(de,{variant:"solid",color:"primary",size:"sm",label:E.$t("activity.attachment.preview.download"),onClick:k},null,8,["label"])]))]),d.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--next","aria-label":E.$t("activity.attachment.preview.next"),onClick:r.withModifiers(w,["stop"])},[r.createVNode(ke,{name:"ArrowForwardRounded",size:"lg"})],8,Hde)),h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",qde,[r.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(I=c.value)==null?void 0:I.name},r.toDisplayString((W=c.value)==null?void 0:W.name),9,jde),t.attachments.length>1?(r.openBlock(),r.createElementBlock("span",Wde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)):r.createCommentVNode("",!0)])):t.attachments.length>1?(r.openBlock(),r.createElementBlock("div",Zde,[r.createElementVNode("span",Kde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)])):r.createCommentVNode("",!0)],8,Lde)])}}});const Gc=r.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(r.openBlock(),r.createBlock(de,{color:t.modelValue?t.color:r.unref(Xc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>i())},null,8,["color"]))}}),Yde={class:"ao-history"},Jde={key:0,class:"ao-history__loading"},Xde={key:1,class:"ao-history__empty"},Qde={key:2,class:"ao-history__list"},e1e={class:"ao-history__transaction-header"},t1e={class:"ao-history__actor"},n1e={class:"ao-history__transaction-date"},o1e={class:"ao-history__event-header"},r1e={key:0,class:"ao-history__changes"},i1e={class:"ao-history__change-label"},s1e={class:"ao-history__change-values"},a1e={class:"ao-history__change-old"},l1e={class:"ao-history__change-new"},yp=120,c1e=r.defineComponent({__name:"AoHistory",props:{events:{},presentationConfig:{},loading:{type:Boolean}},setup(t){const{t:e}=Nt(),n=t;function o(f){var h,g,y;if((y=(g=(h=n.presentationConfig)==null?void 0:h.fields)==null?void 0:g[f])!=null&&y.label)return n.presentationConfig.fields[f].label;const p=`history.field.${f}`,m=e(p);return m!==p?m:f.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,C=>C.toUpperCase())}function i(f){var h,g,y;if((y=(g=(h=n.presentationConfig)==null?void 0:h.entities)==null?void 0:g[f])!=null&&y.label)return n.presentationConfig.entities[f].label;const p=`history.entity.${f}`,m=e(p);return m!==p?m:f.replace(/_/g," ").replace(/\b\w/g,C=>C.toUpperCase())}function s(f){const p=f.toLowerCase(),m=`history.operation.${p}`,h=e(m);return h!==m?h:p==="create"?"Created":p==="update"?"Updated":p==="delete"?"Deleted":f}function a(f){if(f==null||f==="")return null;try{return JSON.parse(f)}catch{return f}}function l(f){if(f==null)return e("history.value.null","—");const p=String(f).replace(/\s+/g," ").trim();return p?p.length<=yp?p:`${p.slice(0,yp).trimEnd()}…`:e("history.value.null","—")}function c(f,p){var y,C,v,_;const m=p?f.oldValue:f.newValue,h=m==null?void 0:m.raw;if(!m||h===null||h===void 0||h==="")return e("history.value.null","—");if(m.display!==null&&m.display!==void 0)return m.display;const g=a(h);if(g===null)return e("history.value.null","—");if(f.type==="BOOLEAN"){const b=g===!0||g==="true",w=(C=(y=n.presentationConfig)==null?void 0:y.fields)==null?void 0:C[f.field];if(w!=null&&w.booleanLabels)return b?w.booleanLabels.true:w.booleanLabels.false;const k=`history.boolean.${f.field}.${b}`,A=e(k);return A!==k?A:e(`history.boolean.default.${b}`)}if(f.type==="RELATION"){const b=(_=(v=n.presentationConfig)==null?void 0:v.resolvedValues)==null?void 0:_[f.field];if(b){const w=String(g);if(b[w])return b[w]}return e("history.value.unresolved","?")}return f.type==="LONG_TEXT"?l(g):String(g??h)}function u(f){var p,m;return f?f.name?f.name:(m=(p=n.presentationConfig)==null?void 0:p.users)!=null&&m[f.id]?n.presentationConfig.users[f.id]:e("history.actor.unknown","Someone"):e("history.actor.unknown","Someone")}function d(f){const p=i(f.entity.type),m=f.entity.label??"",h=s(f.operation);return m?`${h} ${p} "${m}"`:`${h} ${p}`}return(f,p)=>(r.openBlock(),r.createElementBlock("div",Yde,[t.loading?(r.openBlock(),r.createElementBlock("div",Jde,r.toDisplayString(r.unref(e)("history.loading","Loading history...")),1)):!t.events||t.events.length===0?(r.openBlock(),r.createElementBlock("div",Xde,r.toDisplayString(r.unref(e)("history.empty","No history available")),1)):(r.openBlock(),r.createElementBlock("div",Qde,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.events,m=>(r.openBlock(),r.createElementBlock("div",{key:m.id,class:"ao-history__transaction"},[r.createElementVNode("div",e1e,[r.createElementVNode("span",t1e,r.toDisplayString(u(m.actor)),1),r.createElementVNode("span",n1e,r.toDisplayString(new Date(m.createdAt).toLocaleString()),1)]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.events,h=>(r.openBlock(),r.createElementBlock("div",{key:h.id,class:"ao-history__event"},[r.createElementVNode("div",o1e,r.toDisplayString(d(h)),1),h.operation==="UPDATE"&&h.changes.length>0?(r.openBlock(),r.createElementBlock("div",r1e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.changes,g=>(r.openBlock(),r.createElementBlock("div",{key:g.field,class:"ao-history__change"},[r.createElementVNode("strong",i1e,r.toDisplayString(o(g.field)),1),r.createElementVNode("span",s1e,[r.createElementVNode("span",a1e,r.toDisplayString(c(g,!0)),1),p[0]||(p[0]=r.createElementVNode("span",{class:"ao-history__change-arrow"}," → ",-1)),r.createElementVNode("span",l1e,r.toDisplayString(c(g,!1)),1)])]))),128))])):r.createCommentVNode("",!0)]))),128))]))),128))]))]))}});const Wg=te(c1e,[["__scopeId","data-v-d556acc5"]]),u1e=r.defineComponent({props:{isLeft:{type:Boolean,required:!1,default:!0},leftLabel:{type:String,required:!0},rightLabel:{type:String,required:!0}},emits:["update:isLeft"],methods:{switchValue(t){this.$emit("update:isLeft",t)},selectLeft(){this.switchValue(!0)},selectRight(){this.switchValue(!1)}}});const d1e={class:"toggle-wrapper"};function f1e(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",d1e,[r.createElementVNode("button",{class:r.normalizeClass({button:!0,"button--left":!0,"button--inactive":!t.isLeft}),type:"button",onClick:e[0]||(e[0]=(...a)=>t.selectLeft&&t.selectLeft(...a))},r.toDisplayString(t.leftLabel),3),r.createElementVNode("button",{class:r.normalizeClass({button:!0,"button--right":!0,"button--inactive":t.isLeft}),type:"button",onClick:e[1]||(e[1]=(...a)=>t.selectRight&&t.selectRight(...a))},r.toDisplayString(t.rightLabel),3)])}const p1e=te(u1e,[["render",f1e],["__scopeId","data-v-40c1f714"]]),m1e=r.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}});const h1e=["onClick"],g1e={class:"tab-button__label"},v1e={key:0,class:"tab-button__badge"};function _1e(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tabs,a=>(r.openBlock(),r.createElementBlock("button",{key:a.value,class:r.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[r.createElementVNode("span",g1e,r.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(r.openBlock(),r.createElementBlock("span",v1e,r.toDisplayString(a.count),1)):r.createCommentVNode("",!0)],10,h1e))),128))],2)}const gs=te(m1e,[["render",_1e],["__scopeId","data-v-3d268d7b"]]),y1e={class:"ao-rich-text-editor"},C1e={class:"ao-rich-text-editor__toolbar"},b1e=["value"],k1e={class:"ao-rich-text-editor__actions"},w1e=r.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel","paste"],setup(t,{emit:e}){const n=e,o=r.ref(null);function i(c){var d;const u=c.target;(d=o.value)==null||d.setBlockStyle(u.value)}function s(){const c=o.value;c&&n("save",c.getMarkdown())}function a(){n("cancel")}function l(c){n("paste",c)}return(c,u)=>(r.openBlock(),r.createElementBlock("div",y1e,[r.createVNode(qg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:r.withCtx(()=>{var d;return[r.createElementVNode("div",C1e,[r.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:i},[...u[12]||(u[12]=[r.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),r.createElementVNode("option",{value:"h1"},"Heading 1",-1),r.createElementVNode("option",{value:"h2"},"Heading 2",-1),r.createElementVNode("option",{value:"h3"},"Heading 3",-1),r.createElementVNode("option",{value:"code"},"Code block",-1)])],40,b1e),u[17]||(u[17]=r.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:u[0]||(u[0]=r.withModifiers(()=>{},["prevent"])),onClick:u[1]||(u[1]=f=>{var p;return(p=o.value)==null?void 0:p.toggleBold()})},[...u[13]||(u[13]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:u[2]||(u[2]=r.withModifiers(()=>{},["prevent"])),onClick:u[3]||(u[3]=f=>{var p;return(p=o.value)==null?void 0:p.toggleItalic()})},[...u[14]||(u[14]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:u[4]||(u[4]=r.withModifiers(()=>{},["prevent"])),onClick:u[5]||(u[5]=f=>{var p;return(p=o.value)==null?void 0:p.toggleStrikethrough()})},[...u[15]||(u[15]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:u[6]||(u[6]=r.withModifiers(()=>{},["prevent"])),onClick:u[7]||(u[7]=f=>{var p;return(p=o.value)==null?void 0:p.toggleInlineCode()})},[...u[16]||(u[16]=[r.createElementVNode("span",null,"</>",-1)])],32),u[18]||(u[18]=r.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:u[8]||(u[8]=r.withModifiers(()=>{},["prevent"])),onClick:u[9]||(u[9]=f=>{var p;return(p=o.value)==null?void 0:p.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:u[10]||(u[10]=r.withModifiers(()=>{},["prevent"])),onClick:u[11]||(u[11]=f=>{var p;return(p=o.value)==null?void 0:p.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),r.createElementVNode("div",k1e,[r.createVNode(de,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),r.createVNode(de,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const E1e={class:"ao-activity-details"},S1e={class:"ao-activity-details__main"},x1e={class:"ao-activity-details__header"},T1e={key:1,class:"ao-activity__category"},A1e={key:2,class:"ao-activity-details__created-by"},N1e={class:"ao-feed__activity-details__header"},D1e={key:0,class:"ao-field ao-feed__activity-details__project"},$1e={class:"ao-field__label"},B1e={key:1,class:"ao-field ao-feed__activity-details__project"},M1e={class:"ao-field__label"},L1e={class:"ao-activity-details__content"},O1e={class:"ao-activity-details__tab-content"},V1e={class:"ao-fieldset"},I1e={class:"ao-field__row"},P1e={class:"ao-activity-details__tab-content"},F1e={class:"ao-fieldset"},R1e={class:"ao-fieldset__body"},z1e={class:"ao-activity-details__tab-content"},U1e={key:0,class:"ao-fieldset"},H1e={class:"ao-activity-details__tab-content"},q1e={class:"ao-activity-details__aside"},j1e={class:"ao-activity-details__close-button"},W1e={class:"ao-activity-details__aside-section"},Z1e={class:"ao-field__label"},K1e={key:0,class:"ao-activity-details__aside-section"},G1e={class:"ao-field"},Y1e={class:"ao-field__label"},J1e={key:1,class:"ao-activity-details__aside-section"},X1e={class:"ao-field"},Q1e={class:"ao-field__label"},efe={class:"ao-field ao-field--multiselect"},tfe={class:"assignee-inline"},nfe={class:"ao-field__label"},ofe={key:1,class:"ao-sprint-form"},rfe={class:"ao-sprint-form__field"},ife={class:"ao-field__label"},sfe=["placeholder"],afe={class:"ao-sprint-form__field"},lfe={class:"ao-field__label"},cfe={class:"ao-sprint-form__field"},ufe={class:"ao-field__label"},dfe={class:"ao-sprint-form__actions"},ffe={class:"ao-activity-details__aside-section"},pfe={class:"ao-field ao-field--multiselect"},mfe={class:"assignee-inline"},hfe={class:"ao-field__label"},gfe={class:"ao-activity-details__aside-section"},vfe={key:0,class:"ao-field__row"},_fe={class:"ao-field"},yfe={class:"ao-field__label"},Cfe=["readonly"],bfe={class:"ao-activity-details__aside-section"},kfe={class:"ao-field__row"},wfe={class:"ao-field ao-field--inline"},Efe={class:"ao-field__label"},Sfe=["readonly"],xfe={class:"ao-field__row"},Tfe={class:"ao-field ao-field--inline"},Afe={class:"ao-field__label"},Nfe={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},Dfe={class:"ao-activity-details__aside-section"},$fe={class:"ao-activity-details__aside-section"},Bfe={class:"ao-fieldset ao-activity-details__aside-section"},Mfe={class:"ao-fieldset__title"},Lfe={class:"ao-fieldset__body"},Ofe={class:"ao-field__row"},Vfe={class:"ao-field ao-field--multiselect"},Ife={class:"ao-field__label"},Pfe={class:"ao-field__row"},Ffe={class:"ao-field ao-field--multiselect"},Rfe={class:"ao-field__label"},id=r.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{default:()=>[]},breadcrumbs:{default:""},milestoneId:{default:void 0},templateActivities:{},templateMilestones:{default:()=>[]},isTemplate:{type:Boolean,default:!1},users:{},userId:{default:void 0},isTaskCheckable:{type:Function,default:void 0},statuses:{default:()=>[]},devStatuses:{default:()=>[]},sprints:{default:()=>[]},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{default:()=>({})},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","createSprint","fetchHistory"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Nt();function s(M){return M.reduce((j,ae)=>(ae.name&&(j[ae.id]=ae.name),j),{})}const a=r.computed(()=>{const M=n.users.reduce((ae,Re)=>{const ot=[Re.firstName,Re.lastName].filter(Boolean).join(" ").trim();return ot&&(ae[Re.id]=ot),ae},{}),j=[...n.templateMilestones,...n.activity.milestone?[n.activity.milestone]:[],...n.projects.flatMap(ae=>(ae.phases??[]).flatMap(Re=>Re.milestones??[]))];return{users:M,resolvedValues:{assignee_id:M,author_id:M,created_by:M,milestone_id:s(j),project_id:s(n.projects),status_id:s(n.statuses),status_dev_id:s(n.devStatuses),sprint_id:s(n.sprints),activity_id:s(n.templateActivities)}}}),l=r.ref("description");r.watch(l,(M,j)=>{M==="history"&&j!=="history"&&o("fetchHistory")}),r.watch(()=>{var M;return(M=n.activity)==null?void 0:M.id},(M,j)=>{M!==j&&l.value==="history"&&o("fetchHistory")});const c=r.computed(()=>{var M,j,ae;return[{label:i("activity.description.label")||"Description",value:"description"},{label:i("activity.tasks.title")||"Checklist",value:"checklist",count:((M=n.activity.tasks)==null?void 0:M.length)??0},{label:i("activity.comments.title")||"Commentaires",value:"comments",count:((j=n.activity.comments)==null?void 0:j.length)??0},{label:i("activity.history.title")||"History",value:"history",count:((ae=n.history)==null?void 0:ae.length)??0}]}),u=r.computed(()=>{var M;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((M=n.activity.assignee)==null?void 0:M.id):!1}),d=r.ref(!1),f=r.ref(null),p=M=>{o("update:activity",{id:n.activity.id,name:M})},m=r.computed(()=>n.activity.description??""),h=()=>{u.value&&(d.value=!0)},g=M=>{o("update:activity",{id:n.activity.id,description:M}),d.value=!1},y=()=>{d.value=!1};r.watch(()=>n.activity.id,()=>{d.value=!1});const C=r.computed({get(){return n.activity.estimation??0},set(M){o("update:activity",{id:n.activity.id,estimation:M})}}),v=r.computed({get(){var j;const M=(j=n.timeTrackingData)==null?void 0:j[n.activity.id];return(M==null?void 0:M.timeSpent)??0},set(){}}),_=r.computed(()=>{var j;return((j=n.activity.project)==null?void 0:j.estimationUnit)==="days"?"d":"h"}),b=r.computed(()=>{var j;const M=(j=n.activity.project)==null?void 0:j.estimationUnit;return Ma(v.value,M)}),w=r.computed({get(){return n.activity.important??!1},set(M){o("update:activity",{id:n.activity.id,important:M})}}),k=r.computed({get(){return n.activity.blocked??!1},set(M){o("update:activity",{id:n.activity.id,blocked:M})}});r.computed({get(){return n.activity.private??!1},set(M){o("update:activity",{id:n.activity.id,private:M})}});const A=r.computed({get(){return n.activity.deadline},set(M){o("update:activity",{id:n.activity.id,deadline:M})}}),T=r.computed({get(){return n.activity.activityType!=="dev"},set(M){var ae;const j=M?"standard":"dev";n.activity.activityType!=="dev"&&j==="dev"&&!n.activity.devStatus&&((ae=n.devStatuses)!=null&&ae.length)?o("update:activity",{id:n.activity.id,type:j,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:j})}}),S=r.computed(()=>{var M;return((M=n.devStatuses)==null?void 0:M.map(j=>({value:j.id,label:j.name})))??[]}),E=r.computed({get(){var M;return(M=n.activity.devStatus)==null?void 0:M.id},set(M){o("update:activity",{id:n.activity.id,statusDevId:M})}}),D=r.computed(()=>{var j;const M=(j=n.activity.project)==null?void 0:j.id;return M?n.sprints.filter(ae=>ae.projectId===M).map(ae=>({value:ae.id,label:ae.name,startDate:ae.startDate})).sort((ae,Re)=>ae.startDate&&Re.startDate?new Date(ae.startDate).getTime()-new Date(Re.startDate).getTime():ae.label.localeCompare(Re.label)):[]}),x=r.computed(()=>{var M;return(M=n.activity.sprint)==null?void 0:M.id}),$=M=>{o("update:activity",{id:n.activity.id,sprintId:M})},B=()=>{o("update:activity",{id:n.activity.id,sprintId:null})},V=r.computed(()=>{var M;return!((M=n.activity.project)!=null&&M.id)}),I=r.ref(!1),W=r.ref(""),P=r.ref(""),H=r.ref(""),Q=r.computed(()=>{var ae;const M=(ae=n.activity.project)==null?void 0:ae.id;return M?`Sprint ${n.sprints.filter(Re=>Re.projectId===M).length+1}`:"Sprint 1"}),le=r.computed(()=>{var ot;if(!((ot=n.activity.project)==null?void 0:ot.id))return!1;const j=W.value.trim(),ae=P.value,Re=H.value;return!j||!ae||!Re?!1:new Date(Re)>=new Date(ae)}),oe=()=>{var j;(j=n.activity.project)!=null&&j.id&&(I.value=!0,W.value=Q.value,P.value="",H.value="")},Ne=()=>{I.value=!1,W.value="",P.value="",H.value=""},ce=()=>{var j;if(!le.value)return;const M=(j=n.activity.project)==null?void 0:j.id;M&&(o("createSprint",{projectId:M,name:W.value.trim(),startDate:P.value,endDate:H.value}),I.value=!1,W.value="",P.value="",H.value="")},ne=r.computed(()=>n.templateActivities.filter(M=>M.id!==n.activity.id).map(M=>({label:M.name,value:M.id}))),z=r.computed({get(){var M;return(M=n.activity.dependingOn)==null?void 0:M.map(j=>j.id)},set(M){M&&o("update:activity",{id:n.activity.id,dependingOn:M})}}),F=r.computed(()=>ne.value.map(M=>{var j;return{...M,disabled:(j=n.activity.blocking)==null?void 0:j.some(ae=>ae.id===M.value)}})),se=r.computed({get(){var M;return(M=n.activity.blocking)==null?void 0:M.map(j=>j.id)},set(M){M&&o("update:activity",{id:n.activity.id,blocking:M})}}),Ee=r.computed(()=>ne.value.map(M=>{var j;return{...M,disabled:(j=n.activity.dependingOn)==null?void 0:j.some(ae=>ae.id===M.value)}})),Ue=M=>{o("addSubtask",M)},we=M=>{o("updateSubtask",M)},Ce=M=>{o("deleteSubtask",M)};function yt(){n.userId?he.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function R(M){he.value=[M]}const re=r.computed(()=>{var j;const M=new Map;return(j=n.users)==null||j.forEach(ae=>{M.has(ae.id)||M.set(ae.id,ae)}),Array.from(M.values()).map(ae=>({label:`${ae.firstName} ${ae.lastName}`,value:ae.id,avatar:ae.avatarUrl}))}),he=r.computed({get(){var M,j;return(M=n.activity.assignee)!=null&&M.id?[(j=n.activity.assignee)==null?void 0:j.id]:[]},set(M){o("update:activity",{id:n.activity.id,assigneeId:M[0]??null})}}),pe=M=>{o("addFiles",{activityId:n.activity.id,files:M})},Ke=M=>{pe(M)},De=M=>{o("removeFile",{activityId:n.activity.id,file:M})},$e=r.computed(()=>n.projects.map(M=>({value:M.id,label:M.name}))),Fe=r.computed(()=>{var j,ae,Re;const M=(Re=(ae=(j=n.activity)==null?void 0:j.project)==null?void 0:ae.phases)==null?void 0:Re.reduce((ot,bt)=>[...ot,...bt.milestones],[]);return M==null?void 0:M.map(ot=>({value:ot.id,label:ot.name}))}),Ye=M=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:M})},Je=M=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:M})},Me=r.computed(()=>{var M;return(M=n.statuses)==null?void 0:M.map(j=>({value:j.id,label:j.name}))}),Ct=M=>{o("update:activity",{id:n.activity.id,statusId:M})},st=M=>{o("update:activity",{id:n.activity.id,statusDevId:M})},Ot=M=>{o("addComment",{...M,activityId:n.activity.id})},on=M=>{o("updateComment",M)},yn=M=>{o("removeComment",M)},Cn=r.computed(()=>{var M,j;return((M=n.activity.createdBy)==null?void 0:M.firstName)&&((j=n.activity.createdBy)==null?void 0:j.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),bn=r.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function to(){const M=window.location.origin,j=n.activity.slug,ae=`${M}/activity-feed/slug/${j}`;navigator.clipboard.writeText(ae).then(()=>{console.log(`Link copied to clipboard: ${ae}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(M,j)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Oa,{onClose:j[14]||(j[14]=ae=>M.$emit("close"))},{default:r.withCtx(()=>{var ae,Re,ot,bt;return[r.createElementVNode("div",E1e,[r.createElementVNode("div",S1e,[r.createElementVNode("div",x1e,[t.activity.slug?(r.openBlock(),r.createBlock(Ii,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:to},null,8,["label"])):r.createCommentVNode("",!0),t.breadcrumbs?(r.openBlock(),r.createElementBlock("div",T1e,r.toDisplayString(t.breadcrumbs),1)):r.createCommentVNode("",!0),r.createVNode(gt,{title:t.activity.name||"",level:4,"is-editable":u.value,"onUpdate:title":p},null,8,["title","is-editable"]),Cn.value?(r.openBlock(),r.createElementBlock("div",A1e,r.toDisplayString(M.$t("activity.createdBy.label",{name:Cn.value,date:bn.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",N1e,[$e.value?(r.openBlock(),r.createElementBlock("label",D1e,[r.createElementVNode("span",$1e,r.toDisplayString(M.$t("activity.project.label")),1),r.createVNode(ft,{options:$e.value,value:(ae=t.activity.project)==null?void 0:ae.id,searchable:!0,disabled:!u.value,caret:u.value,onChange:Ye},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0),Fe.value?(r.openBlock(),r.createElementBlock("label",B1e,[r.createElementVNode("span",M1e,r.toDisplayString(M.$t("activity.milestone.label")),1),r.createVNode(ft,{options:Fe.value,value:(Re=t.activity.milestone)==null?void 0:Re.id,searchable:!0,disabled:!u.value,caret:u.value,onChange:Je},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0)]),r.renderSlot(M.$slots,"header")]),r.createElementVNode("div",L1e,[r.createVNode(gs,{modelValue:l.value,"onUpdate:modelValue":j[0]||(j[0]=ve=>l.value=ve),tabs:c.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),r.withDirectives(r.createElementVNode("div",O1e,[r.createElementVNode("fieldset",V1e,[r.createElementVNode("div",I1e,[r.createVNode(r9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&u.value&&!t.isTemplate&&!!t.userId,onAdd:pe,onRemove:De,onPreview:j[1]||(j[1]=ve=>f.value=ve)},{default:r.withCtx(()=>[d.value?(r.openBlock(),r.createBlock(w1e,{key:1,"initial-markdown":m.value,onSave:g,onCancel:y,onPaste:Ke},null,8,["initial-markdown"])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":u.value}]),onClick:h},[r.createVNode(Bm,{content:m.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[r.vShow,l.value==="description"]]),r.withDirectives(r.createElementVNode("div",P1e,[r.createElementVNode("fieldset",F1e,[r.createElementVNode("div",R1e,[r.createVNode(Wk,{class:"ao-activity-details__tasks ao-field__row",tasks:t.activity.tasks||[],"activity-id":t.activity.id,users:t.users,"is-checkable":t.isTaskCheckable,"is-editable":u.value,"is-template":t.isTemplate,onAdd:Ue,onUpdate:we,onDelete:Ce},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[r.vShow,l.value==="checklist"]]),r.withDirectives(r.createElementVNode("div",z1e,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",U1e,[r.createVNode(Mde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Ot,onUpdateComment:on,onRemoveComment:yn},null,8,["comments","users","user-id"])])):r.createCommentVNode("",!0)],512),[[r.vShow,l.value==="comments"]]),r.withDirectives(r.createElementVNode("div",H1e,[r.createVNode(Wg,{events:t.history??[],"presentation-config":a.value,loading:t.historyLoading},null,8,["events","presentation-config","loading"])],512),[[r.vShow,l.value==="history"]])])]),r.createElementVNode("div",q1e,[r.createElementVNode("div",j1e,[r.createVNode(ke,{name:"CloseRounded",onClick:j[2]||(j[2]=ve=>M.$emit("close"))})]),r.createElementVNode("div",W1e,[r.createElementVNode("span",Z1e,r.toDisplayString(M.$t("activity.type.label")),1),r.createVNode(p1e,{"is-left":T.value,"onUpdate:isLeft":j[3]||(j[3]=ve=>T.value=ve),"left-label":"Standard","right-label":"Development",class:"ao-activity-type-toggle"},null,8,["is-left"])]),Me.value?(r.openBlock(),r.createElementBlock("div",K1e,[r.createElementVNode("label",G1e,[r.createElementVNode("span",Y1e,r.toDisplayString(M.$t("activity.status.label")),1),r.createVNode(ft,{class:"ao-activity-details__multiselect",options:Me.value,value:(ot=t.activity.status)==null?void 0:ot.id,"can-clear":!1,"can-deselect":!1,disabled:!u.value,caret:u.value,onChange:Ct},null,8,["options","value","disabled","caret"])])])):r.createCommentVNode("",!0),t.activity.activityType==="dev"?(r.openBlock(),r.createElementBlock("div",J1e,[r.createElementVNode("label",X1e,[r.createElementVNode("span",Q1e,r.toDisplayString(M.$t("activity.devStatus.label")),1),r.createVNode(ft,{class:"ao-activity-details__multiselect",options:S.value,value:E.value,"can-clear":!1,"can-deselect":!1,disabled:!u.value,caret:u.value,onChange:st},null,8,["options","value","disabled","caret"])]),r.createElementVNode("div",efe,[r.createElementVNode("div",tfe,[r.createElementVNode("span",nfe,r.toDisplayString(M.$t("activity.sprint.label")),1),(bt=t.activity.project)!=null&&bt.id&&u.value&&!I.value?(r.openBlock(),r.createBlock(de,{key:0,label:M.$t("activity.sprint.new"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:oe},null,8,["label"])):r.createCommentVNode("",!0)]),I.value?(r.openBlock(),r.createElementBlock("div",ofe,[r.createElementVNode("div",rfe,[r.createElementVNode("label",ife,r.toDisplayString(M.$t("activity.sprint.nameLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[4]||(j[4]=ve=>W.value=ve),class:"ao-field__input",type:"text",placeholder:M.$t("activity.sprint.namePlaceholder")},null,8,sfe),[[r.vModelText,W.value]])]),r.createElementVNode("div",afe,[r.createElementVNode("label",lfe,r.toDisplayString(M.$t("activity.sprint.startDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[5]||(j[5]=ve=>P.value=ve),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,P.value]])]),r.createElementVNode("div",cfe,[r.createElementVNode("label",ufe,r.toDisplayString(M.$t("activity.sprint.endDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[6]||(j[6]=ve=>H.value=ve),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,H.value]])]),r.createElementVNode("div",dfe,[r.createVNode(de,{type:"button",variant:"ghost",label:M.$t("common.cancel"),onClick:Ne},null,8,["label"]),r.createVNode(de,{type:"button",color:"primary",variant:"solid",label:M.$t("common.create"),disabled:!le.value,onClick:ce},null,8,["label","disabled"])])])):(r.openBlock(),r.createBlock(ft,{key:0,class:"ao-activity-details__multiselect",options:D.value,value:x.value,"can-clear":!0,"can-deselect":!0,searchable:!0,disabled:V.value||!u.value,placeholder:V.value?M.$t("activity.sprint.selectProjectFirst"):M.$t("activity.sprint.placeholder"),caret:u.value,onSelect:$,onClear:B,onDeselect:B},null,8,["options","value","disabled","placeholder","caret"]))]),r.renderSlot(M.$slots,"sprintModal")])):r.createCommentVNode("",!0),r.createElementVNode("div",ffe,[r.createElementVNode("div",pfe,[r.createElementVNode("div",mfe,[r.createElementVNode("span",hfe,r.toDisplayString(M.$t("activity.assignee.label")),1),r.createVNode(de,{label:M.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:yt},null,8,["label"])]),r.createVNode(ft,{modelValue:he.value,"onUpdate:modelValue":j[7]||(j[7]=ve=>he.value=ve),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:re.value,"close-on-select":!0,searchable:!0,placeholder:M.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!u.value,caret:u.value,onSelect:R},{tag:r.withCtx(({option:ve,handleTagRemove:Et})=>[r.createVNode(Xn,{"user-name":ve.label,"avatar-url":ve.avatar,"is-closable":!0,onClose:no=>Et(ve,no)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",gfe,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",vfe,[r.createElementVNode("label",_fe,[r.createElementVNode("span",yfe,r.toDisplayString(M.$t("activity.deadline.label")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[8]||(j[8]=ve=>A.value=ve),readonly:!u.value,class:"ao-field__input",type:"date"},null,8,Cfe),[[r.vModelText,A.value,void 0,{lazy:!0}]])])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",bfe,[r.createElementVNode("div",kfe,[r.createElementVNode("label",wfe,[r.createElementVNode("span",Efe,r.toDisplayString(M.$t("activity.estimation.label"))+" ("+r.toDisplayString(_.value)+")",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":j[9]||(j[9]=ve=>C.value=ve),readonly:!u.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,Sfe),[[r.vModelText,C.value,void 0,{lazy:!0,number:!0}]])])]),r.createElementVNode("div",xfe,[r.createElementVNode("label",Tfe,[r.createElementVNode("span",Afe,r.toDisplayString(M.$t("activity.timeSpent.label"))+" ("+r.toDisplayString(_.value)+")",1),r.createElementVNode("span",Nfe,r.toDisplayString(b.value),1)])])]),r.createElementVNode("div",Dfe,[r.createVNode(Gc,{modelValue:w.value,"onUpdate:modelValue":j[10]||(j[10]=ve=>w.value=ve),modelModifiers:{lazy:!0},label:M.$t("activity.important.label"),disabled:!u.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("div",$fe,[r.createVNode(Gc,{modelValue:k.value,"onUpdate:modelValue":j[11]||(j[11]=ve=>k.value=ve),modelModifiers:{lazy:!0},label:M.$t("activity.blocked.label"),disabled:!u.value,variant:"ghost","icon-name":"BlockRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("fieldset",Bfe,[r.createElementVNode("div",Mfe,[r.createVNode(ke,{name:"FlowsheetOutlineRounded"}),r.createVNode(gt,{level:4,title:M.$t("activity.dependencies.title")},null,8,["title"])]),r.createElementVNode("div",Lfe,[r.createElementVNode("div",Ofe,[r.createElementVNode("label",Vfe,[r.createElementVNode("span",Ife,r.toDisplayString(M.$t("activity.dependingOn.label")),1),r.createVNode(ft,{modelValue:z.value,"onUpdate:modelValue":j[12]||(j[12]=ve=>z.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:F.value,disabled:!u.value,caret:u.value},null,8,["modelValue","options","disabled","caret"])])]),r.createElementVNode("div",Pfe,[r.createElementVNode("label",Ffe,[r.createElementVNode("span",Rfe,r.toDisplayString(M.$t("activity.blocking.label")),1),r.createVNode(ft,{modelValue:se.value,"onUpdate:modelValue":j[13]||(j[13]=ve=>se.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:Ee.value,disabled:!u.value,caret:u.value},null,8,["modelValue","options","disabled","caret"])])])])]),r.renderSlot(M.$slots,"default",{activity:t.activity})])])]}),_:3}),f.value!==null?(r.openBlock(),r.createBlock(Gde,{key:0,attachments:t.activity.attachments||[],"current-index":f.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":j[15]||(j[15]=ae=>f.value=ae),onClose:j[16]||(j[16]=ae=>f.value=null)},null,8,["attachments","current-index","load-preview"])):r.createCommentVNode("",!0)],64))}});const zfe=r.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,i=r.toRef(n.rule.itemType||je.ACTIVITIES),s=r.computed({get(){return i.value},set(v){i.value=v,o("update:rule",{...n.rule,itemType:v,subItemId:void 0})}}),a=r.computed(()=>Object.values(je)),l=r.computed({get(){return n.rule.subItemId},set(v){o("update:rule",{...n.rule,subItemId:v,itemType:n.rule.itemType||s.value})}}),c=r.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[je.ACTIVITIES]:n.templateActivities,[je.MILESTONES]:n.templateMilestones,[je.PHASES]:n.templatePhases}[i.value])==null?void 0:_.map(b=>({value:b.id,label:b.name}))}),u=r.toRef(n.rule.comparator),d=r.computed({get(){return u.value},set(v){o("update:rule",{...n.rule,comparator:v})}}),f=r.computed(()=>Object.values(Sp)),p=r.toRef(n.rule.trigger),m=r.computed({get(){return p.value},set(v){o("update:rule",{...n.rule,trigger:v})}}),h=r.computed(()=>Object.values(xp)),g=r.computed({get(){return n.rule.duration},set(v){o("update:rule",{...n.rule,duration:v})}}),y=r.computed({get(){return n.rule.durationUnit},set(v){o("update:rule",{...n.rule,durationUnit:v})}}),C=r.computed(()=>Object.values(Tp));return(v,_)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:r.withCtx(()=>[r.createVNode(r.unref(co),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=b=>s.value=b),options:a.value},null,8,["modelValue","options"]),r.createVNode(r.unref(co),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=b=>l.value=b),options:c.value},null,8,["modelValue","options"]),r.createVNode(r.unref(co),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=b=>m.value=b),options:h.value},null,8,["modelValue","options"]),r.createVNode(r.unref(co),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=b=>d.value=b),options:f.value},null,8,["modelValue","options"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=b=>g.value=b),type:"number",min:"0"},null,512),[[r.vModelText,g.value,void 0,{number:!0}]]),r.createVNode(r.unref(co),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=b=>y.value=b),options:C.value},null,8,["modelValue","options"]),r.createVNode(de,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=b=>v.$emit("close"))})]),_:1}))}});const Ufe={class:"ao-template-rules__body"},Hfe={class:"ao-template-rules__list"},qfe=r.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},i=s=>{n("removeRule",s)};return(s,a)=>(r.openBlock(),r.createBlock(Oa,null,{header:r.withCtx(()=>[r.createVNode(gt,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("div",Ufe,[r.createElementVNode("ul",Hfe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.rules,l=>(r.openBlock(),r.createBlock(zfe,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>i(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),r.createVNode(Eo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Ko(t,e,n){const o=t.length,i=t.at(-1),s=i?Xe.LexoRank.parse(i.rank).genNext():Xe.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const jfe={key:0,class:"ao-template-details"},Wfe={class:"ao-template-details__body"},Zfe={class:"ao-template-details__cols"},Kfe={class:"ao-template-details__col"},Gfe={class:"ao-list__footer"},Yfe={class:"ao-template-details__col"},Jfe={class:"ao-template-details__col"},Zg=r.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=r.computed(()=>{var P;return(P=o.templates)==null?void 0:P.find(H=>H.id===o.templateId)}),a=r.ref(!1);r.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),r.watch(()=>{var P;return(P=s.value)==null?void 0:P.phases},(P,H)=>{a.value&&Wn(P,H)});const l=r.computed(()=>{var P,H;return(H=(P=s==null?void 0:s.value)==null?void 0:P.phases)==null?void 0:H.find(Q=>Q.id===o.phaseId)});r.watch(()=>{var P;return(P=l.value)==null?void 0:P.milestones},(P,H)=>{a.value&&Wn(P,H)});const c=r.computed(()=>{var P,H;return(H=(P=l.value)==null?void 0:P.milestones)==null?void 0:H.find(Q=>Q.id===o.milestoneId)});r.watch(()=>{var P;return(P=c.value)==null?void 0:P.activities},(P,H)=>{a.value&&Wn(P,H)});const u=r.computed(()=>{var P,H;return((H=(P=s.value)==null?void 0:P.phases)==null?void 0:H.reduce((Q,le)=>{const oe=le.milestones||[];return[...Q,...oe]},[]))||[]}),d=r.computed(()=>{var P,H;return((H=(P=s.value)==null?void 0:P.phases)==null?void 0:H.reduce((Q,le)=>{const Ne=(le.milestones||[]).reduce((ce,ne)=>ne.activities?[...ce,...ne.activities]:ce,[]);return[...Q,...Ne]},[]))||[]}),f=r.computed(()=>{var P,H;return(H=(P=c.value)==null?void 0:P.activities)==null?void 0:H.find(Q=>Q.id===o.activityId)}),p=r.computed(()=>{var P;return((P=s.value)==null?void 0:P.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:P,rank:H}=Ko(s.value.phases,"phase",n);a.value=!0,i("addItem",{type:je.PHASES,templateId:o.templateId,item:{name:P,rank:H}})},h=P=>{i("updateItem",{templateId:o.templateId,id:o.templateId,itemType:je.TEMPLATES,data:{name:P}})},g=P=>{i("removeItem",{itemType:je.PHASES,templateId:o.templateId,data:{id:P}})},y=(P,H)=>{i("updateItem",{templateId:o.templateId,id:P,itemType:je.PHASES,data:{name:H}})},C=P=>{i("updateItem",P)},v=P=>{if(!l.value)return;const{name:H,rank:Q}=Ko(l.value.milestones,"milestone",n);a.value=!0,i("addItem",{type:je.MILESTONES,templateId:o.templateId,phaseId:P.phaseId,item:{name:H,rank:Q,phaseId:P.phaseId}})},_=P=>{i("removeItem",{itemType:je.MILESTONES,templateId:o.templateId,phaseId:P.phaseId,data:{id:P.id}})},b=P=>{const{id:H,...Q}=P;i("updateItem",{itemType:je.MILESTONES,id:H,templateId:o.templateId,data:Q})},w=P=>{const{milestoneId:H}=P;if(!c.value)return;const{name:Q,rank:le}=Ko(c.value.activities,"activity",n);a.value=!0,i("addItem",{type:je.ACTIVITIES,milestoneId:H,templateId:o.templateId,item:{name:Q,rank:le,milestoneId:H}})},k=P=>{var H,Q;i("removeItem",{itemType:je.ACTIVITIES,templateId:o.templateId,phaseId:(H=l.value)==null?void 0:H.id,milestoneId:(Q=c.value)==null?void 0:Q.id,data:{id:P.id}})},A=P=>{const{id:H,...Q}=P;i("updateItem",{itemType:je.ACTIVITIES,id:H,templateId:o.templateId,data:Q})},T=r.ref(!1),S=()=>{T.value=!T.value},E=()=>{i("addRule",{templateId:o.templateId})},D=P=>{i("removeRule",{id:P,templateId:o.templateId})},x=P=>{var H;if(P.moved){const Q=ts(P,((H=s.value)==null?void 0:H.phases)??[]);i("updateItem",{itemType:je.PHASES,id:P.moved.element.id,templateId:o.templateId,data:{rank:Q}})}},$=P=>{!l.value||!c.value||!f.value||i("addItem",{type:je.TASKS,activityId:P.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:P})},B=P=>{!l.value||!c.value||!f.value||i("updateItem",{itemType:je.TASKS,id:P.id,templateId:o.templateId,data:P})},V=P=>{!l.value||!c.value||!f.value||i("removeItem",{itemType:je.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:P})},I=P=>{i("addFiles",P)},W=P=>{i("removeFile",P)};return(P,H)=>{var Q,le,oe,Ne,ce,ne;return s.value?(r.openBlock(),r.createElementBlock("div",jfe,[r.createVNode(os,{"can-go-back":!0,onGoBack:H[1]||(H[1]=z=>P.$router.push({name:r.unref(Ho).TEMPLATES_LIST}))},{primary:r.withCtx(()=>[r.createVNode(gt,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":H[0]||(H[0]=z=>{h(z)})},null,8,["title"])]),_:1}),r.createElementVNode("div",Wfe,[r.createElementVNode("ol",Zfe,[r.createElementVNode("li",Kfe,[r.createVNode(r.unref(wo),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:x},{header:r.withCtx(()=>[r.createVNode(gt,{title:P.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:r.withCtx(({element:z})=>{var F;return[r.createVNode(d7,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((F=l.value)==null?void 0:F.id)===z.id,"is-draggable":!0,onClick:se=>P.$router.push({params:{templateId:t.templateId,phaseId:z.id}}),"onUpdate:title":se=>{y(z.id,se)},onRemove:()=>g(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:r.withCtx(()=>[r.createElementVNode("div",Gfe,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:P.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),r.createElementVNode("li",Yfe,[l.value?(r.openBlock(),r.createBlock(m7,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(Q=c.value)==null?void 0:Q.id,onAddMilestone:v,onUpdateMilestone:b,onUpdatePhase:C,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):r.createCommentVNode("",!0)]),r.createElementVNode("li",Jfe,[l.value&&c.value?(r.openBlock(),r.createBlock(v7,{key:0,"template-id":t.templateId,"phase-id":(le=l.value)==null?void 0:le.id,milestone:c.value,"activity-id":(oe=f.value)==null?void 0:oe.id,onAddActivity:w,onUpdateActivity:A,onRemoveActivity:k},null,8,["template-id","phase-id","milestone","activity-id"])):r.createCommentVNode("",!0)])])]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[f.value?(r.openBlock(),r.createBlock(id,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(Ne=l.value)==null?void 0:Ne.name} / ${(ce=c.value)==null?void 0:ce.name}`,"milestone-id":(ne=c.value)==null?void 0:ne.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,sprints:[],"onUpdate:activity":H[2]||(H[2]=z=>{f.value&&A(z)}),onClose:P.$router.back,onAddSubtask:$,onUpdateSubtask:B,onDeleteSubtask:V,onAddFiles:I,onRemoveFile:W},{default:r.withCtx(z=>[r.renderSlot(P.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(z)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):r.createCommentVNode("",!0)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[T.value?(r.openBlock(),r.createBlock(qfe,{key:0,"template-id":s.value.id,rules:s.value.rules||[],"template-phases":s.value.phases,"template-milestones":u.value,"template-activities":d.value,onClose:S,onAddRule:E,onRemoveRule:D},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)}}});const Xfe={class:"ao-card__content"},Qfe={key:0,class:"ao-card__header"},epe={class:"ao-card__body"},tpe={key:1,class:"ao-card__footer"},ml=r.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1},variant:{default:"default"}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:r.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable,"ao-card--danger":t.variant==="danger"}]),style:r.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:r.withCtx(()=>[t.withLeftBorder?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-card__left-border",style:r.normalizeStyle({backgroundColor:t.color})},null,4)):r.createCommentVNode("",!0),r.createElementVNode("div",Xfe,[e.$slots.header?(r.openBlock(),r.createElementBlock("header",Qfe,[r.renderSlot(e.$slots,"header")])):r.createCommentVNode("",!0),r.createElementVNode("div",epe,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",tpe,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const hl=r.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=r.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,s=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(["ao-progress__progress"]),style:r.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
55
55
  * vue-color-kit v1.0.6
56
56
  * (c) 2023
57
57
  * @license MIT
58
- */function Lo(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=npe(t):/rgb/.test(t)?e=yp(t):typeof t=="string"?e=yp(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:i,a:s}=e,{h:a,s:l,v:c}=ope(e);return{r:n,g:o,b:i,a:s===void 0?1:s,h:a,s:l,v:c}}function sd(t){const e=document.createElement("canvas"),n=e.getContext("2d"),o=t*2;return e.width=o,e.height=o,n.fillStyle="#ffffff",n.fillRect(0,0,o,o),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function Yc(t,e,n,o,i,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,i),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function tpe({r:t,g:e,b:n},o){const i=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${i(t)}${i(e)}${i(n)}`;return o?s.toUpperCase():s}function npe(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function yp(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function ope({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),i=Math.min(t,e,n),s=o-i;let a=0;o===i?a=0:o===t?e>=n?a=60*(e-n)/s:a=60*(e-n)/s+360:o===e?a=60*(n-t)/s+120:o===n&&(a=60*(t-e)/s+240),a=Math.floor(a);let l=parseFloat((o===0?0:1-i/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var ad=r.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),Yc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Yc("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),o=t.target.getContext("2d"),i=a=>{let l=a.clientX-n,c=a.clientY-e;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const u=o.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,f,p]=u.data;this.$emit("selectSaturation",{r:d,g:f,b:p})};i(t);const s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",s)}}});const rpe={ref:"canvasSaturation"};function ipe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[r.createVNode("canvas",rpe,null,512),r.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}ad.render=ipe;ad.__file="src/color/Saturation.vue";var ld=r.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,o=t.getContext("2d");t.width=e,t.height=n;const i=o.createLinearGradient(0,0,0,n);i.addColorStop(0,"#FF0000"),i.addColorStop(.17*1,"#FF00FF"),i.addColorStop(.17*2,"#0000FF"),i.addColorStop(.17*3,"#00FFFF"),i.addColorStop(.17*4,"#00FF00"),i.addColorStop(.17*5,"#FFFF00"),i.addColorStop(1,"#FF0000"),o.fillStyle=i,o.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),o=s=>{let a=s.clientY-e;a<0&&(a=0),a>this.height&&(a=this.height),this.slideHueStyle={top:a-2+"px"};const l=n.getImageData(0,Math.min(a,this.height-1),1,1),[c,u,d]=l.data;this.$emit("selectHue",{r:c,g:u,b:d})};o(t);const i=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}}});const spe={ref:"canvasHue"};function ape(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[r.createVNode("canvas",spe,null,512),r.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ld.render=ape;ld.__file="src/color/Hue.vue";var cd=r.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,o=this.alphaSize,i=sd(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(i,"repeat"),s.fillRect(0,0,e,n),Yc("p",s,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=i=>{let s=i.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height);let a=parseFloat((s/this.height).toFixed(2));this.$emit("selectAlpha",a)};n(t);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const lpe={ref:"canvasAlpha"};function cpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[r.createVNode("canvas",lpe,null,512),r.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}cd.render=cpe;cd.__file="src/color/Alpha.vue";var ud=r.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,o=this.alphaSize,i=sd(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(i,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function upe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("canvas")}ud.render=upe;ud.__file="src/color/Preview.vue";var dd=r.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:o,left:i,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-i,c=n-o,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,a-1),1,1);let[f,p,m,h]=d.data;h=parseFloat((h/255).toFixed(2));const g=this.suckerPreview.style;Object.assign(g,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${f}, ${p}, ${m}, ${h})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?g.display="":g.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:o}=e,{top:i,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-i,f=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[p,m,h,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:m,b:h,a:g})}))}}});const dpe=r.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),fpe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},ppe=r.createVNode("g",{fill:"none","fill-rule":"evenodd"},[r.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[r.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),r.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[r.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function mpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[t.isSucking?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...a)=>t.openSucker&&t.openSucker(...a))},[dpe],2)),t.isSucking?(r.openBlock(),r.createBlock("svg",fpe,[ppe])):r.createCommentVNode("v-if",!0)])}dd.render=mpe;dd.__file="src/color/Sucker.vue";var fd=r.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:r.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const hpe={class:"color-type"},gpe={class:"name"};function vpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",hpe,[r.createVNode("span",gpe,r.toDisplayString(t.name),1),r.withDirectives(r.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t.modelColor=a),class:"value",onFocus:e[2]||(e[2]=(...a)=>t.handleFocus&&t.handleFocus(...a)),onBlur:e[3]||(e[3]=(...a)=>t.handleBlur&&t.handleBlur(...a))},null,544),[[r.vModelText,t.modelColor]])])}fd.render=vpe;fd.__file="src/color/Box.vue";var pd=r.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=r.ref(),o=r.ref([]),i=r.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),i.value=sd(4).toDataURL(),r.onUnmounted(()=>{s(n.value)});function s(l){if(!l)return;const c=o.value||[],u=c.indexOf(l);u>=0&&c.splice(u,1),c.length>=8&&(c.length=7),c.unshift(l),o.value=c||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(c))}function a(l){e("selectColor",l)}return{setColorsHistory:s,colorsHistory:o,color:n,imgAlphaBase64:i,selectColor:a}}});const _pe={class:"colors"},ype={key:0,class:"colors history"};function Cpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[r.createVNode("ul",_pe,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(t.colorsDefault,a=>(r.openBlock(),r.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[r.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),r.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(r.openBlock(),r.createBlock("ul",ype,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(t.colorsHistory,a=>(r.openBlock(),r.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[r.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),r.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):r.createCommentVNode("v-if",!0)])}pd.render=Cpe;pd.__file="src/color/Colors.vue";var Dr=r.defineComponent({components:{Saturation:ad,Hue:ld,Alpha:cd,Preview:ud,Sucker:dd,Box:fd,Colors:pd},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return tpe(this.rgba,!0)}},created(){Object.assign(this,Lo(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:i,s,v:a}=Lo(t);Object.assign(this,{r:e,g:n,b:o,h:i,s,v:a}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:i,s,v:a}=Lo(t);Object.assign(this,{r:e,g:n,b:o,h:i,s,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const bpe={class:"color-set"};function kpe(t,e,n,o,i,s){const a=r.resolveComponent("Saturation"),l=r.resolveComponent("Hue"),c=r.resolveComponent("Alpha"),u=r.resolveComponent("Preview"),d=r.resolveComponent("Sucker"),f=r.resolveComponent("Box"),p=r.resolveComponent("Colors");return r.openBlock(),r.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[r.createVNode("div",bpe,[r.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),r.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),r.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),r.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[r.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(d,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),r.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(p,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),r.createCommentVNode(" custom options "),r.renderSlot(t.$slots,"default")],6)}Dr.render=kpe;Dr.__file="src/color/ColorPicker.vue";Dr.install=t=>{t.component(Dr.name,Dr)};const wpe={class:"color-picker-wrapper"},jr=r.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),s=r.ref(null),a=r.ref(null),l=r.ref(0),c=r.ref(0),u=async h=>{a.value=h,i.value=!0,await r.nextTick();const g=h.getBoundingClientRect(),y=s.value,C=(y==null?void 0:y.offsetHeight)||300,_=window.innerHeight-g.bottom,v=g.top,b=_<C&&v>C;console.log("pickerHeight = "+C),l.value=b?g.top-C-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=r.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),f=h=>{const g=h.target;s.value&&!s.value.contains(g)&&(i.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};r.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),r.watch(()=>n.color,h=>{i.value||(p.value=h)});const p=r.ref(n.color),m=h=>{const{r:g,g:y,b:C,a:_}=h.rgba;p.value=`rgba(${g}, ${y}, ${C}, ${_})`};return(h,g)=>(r.openBlock(),r.createElementBlock("div",wpe,[r.renderSlot(h.$slots,"clickable",{openPicker:u,bgColor:t.color}),i.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:r.normalizeStyle(d.value)},[r.createVNode(r.unref(Dr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):r.createCommentVNode("",!0)]))}});const Epe={class:"ao-card-project-phase__header"},Spe={class:"ao-card-project-item__title-line"},xpe={key:0,class:"ao-card-project-item-phase__estimation"},Ape={class:"ao-card-project-phase__footer"},Tpe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},Npe={class:"ao-card-project-phase__subitem"},Dpe={class:"ao-card-project-phase__subitem"},$pe={key:0,class:"ao-card-project-phase__secondary"},Bpe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Mpe=r.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(t,{emit:e}){const n=t,o=e,i=g=>{o("update:title",g)},s=r.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,C)=>{var _;return y+((_=C.activities)==null?void 0:_.reduce((v,b)=>v+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((_,v)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[v.id];return _+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>Ma(a.value,n.estimationUnit)),u=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Pi.done).length}),f=r.computed(()=>(d.value||0)/(u.value||1)),p=r.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=r.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y(C)};return(g,y)=>(r.openBlock(),r.createBlock(jr,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:r.withCtx(({openPicker:C,bgColor:_})=>[r.createVNode(ml,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:_,"with-left-border":!0,onClick:v=>h(v,C)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",Spe,[r.createVNode(gt,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":i},null,8,["id","title","is-editable"]),s.value||a.value?(r.openBlock(),r.createElementBlock("span",xpe," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Ape,[u.value?(r.openBlock(),r.createElementBlock("div",Tpe,[r.createElementVNode("div",Npe,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",Dpe,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(hl,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",$pe,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=v=>p.value=v),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,p.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Bpe,r.toDisplayString(r.unref(La)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",Epe,[r.createVNode(de,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[0]=r.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Lpe=r.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("span",{class:"aoBadge",style:r.normalizeStyle({backgroundColor:t.color})},null,4))}});const Ope={class:"ao-card-project-milestone__default"},Vpe={class:"ao-title-with-badge-wrapper"},Ipe={class:"ao-card-project-item__title-line"},Ppe={key:0,class:"ao-card-project-item-milestone__estimation"},Fpe={key:0,class:"ao-card-project-milestone__archive"},Rpe={class:"ao-card-project-milestone__activities"},zpe={class:"ao-card-project-milestone__activities-row"},Upe={class:"ao-card-project-milestone__subitem"},Hpe={class:"ao-card-project-milestone__subitem"},qpe={key:1,class:"ao-card-project-milestone__secondary"},jpe={class:"ao-card-project-milestone__footer"},Wpe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Zpe={class:"ao-field__label"},Kpe={key:2,class:"ao-card-project-milestone__assignee"},Gpe=r.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var p;return((p=n.activities)==null?void 0:p.reduce((m,h)=>m+(h.estimation||0),0))||0}),s=r.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,m)=>{var g;const h=(g=n.timeTrackingData)==null?void 0:g[m.id];return p+((h==null?void 0:h.timeSpent)||0)},0)),a=r.computed(()=>n.estimationUnit==="days"?"d":"h"),l=r.computed(()=>Ma(s.value,n.estimationUnit));r.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=r.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=r.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(m=>nu(m,n.closedStatus)).length}),d=r.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,m)=>(r.openBlock(),r.createBlock(ml,{class:r.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:r.withCtx(()=>[r.createElementVNode("div",Ope,[r.createElementVNode("div",Vpe,[r.createVNode(Lpe,{color:t.color||""},null,8,["color"]),r.createElementVNode("div",Ipe,[r.createVNode(gt,{id:t.id,title:t.name||"",level:5,"is-editable":!t.readonly&&t.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":f},null,8,["id","title","is-editable"]),i.value||s.value?(r.openBlock(),r.createElementBlock("span",Ppe," ("+r.toDisplayString(l.value)+"/"+r.toDisplayString(i.value)+r.toDisplayString(a.value)+")",1)):r.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(r.openBlock(),r.createElementBlock("div",Fpe,[r.createVNode(de,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:m[0]||(m[0]=r.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Rpe,[r.createElementVNode("div",zpe,[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",Upe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",Hpe,r.toDisplayString(u.value)+" / "+r.toDisplayString(c.value),1)]),r.createVNode(hl,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):r.createCommentVNode("",!0),p.$slots.secondary?(r.openBlock(),r.createElementBlock("div",qpe,[r.renderSlot(p.$slots,"secondary")])):r.createCommentVNode("",!0)])])]),footer:r.withCtx(()=>[r.createElementVNode("div",jpe,[t.important?(r.openBlock(),r.createBlock(ke,{key:0,name:"FlagRounded",class:r.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):r.createCommentVNode("",!0),t.deadline?(r.openBlock(),r.createElementBlock("label",Wpe,[r.createElementVNode("span",Zpe,r.toDisplayString(r.unref(La)(t.deadline)),1)])):r.createCommentVNode("",!0),t.assignee?(r.openBlock(),r.createElementBlock("div",Kpe,[r.createVNode(Xn,{"user-name":r.unref(Up)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):r.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const Ype=["onKeydown"],Sa=r.defineComponent({inheritAttrs:!1,__name:"AoPopoverMenu",props:{placement:{default:"bottom-start"}},emits:["open","close"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(!1),a=r.ref(null),l=r.ref(null),c=r.ref(null),u=()=>{const C=a.value;if(!C)return;const _=C.getBoundingClientRect();c.value={top:_.top,left:_.left,width:_.width,height:_.height}},d=r.computed(()=>{const C=c.value;if(!C)return{};const _=C.top+C.height+window.scrollY+4;return o.placement==="bottom-end"?{position:"absolute",top:`${_}px`,left:"auto",right:`${Math.max(0,window.innerWidth-(C.left+C.width+window.scrollX))}px`,zIndex:200}:{position:"absolute",top:`${_}px`,left:`${C.left+window.scrollX}px`,zIndex:200}}),f=async()=>{if(s.value)return;u(),s.value=!0,i("open"),await r.nextTick();const C=l.value;if(C){const _=C.querySelector('button, [href], [tabindex]:not([tabindex="-1"])');_==null||_.focus()}},p=()=>{s.value&&(s.value=!1,i("close"))},m=()=>{s.value?p():f()},h=C=>{var v,b;if(!s.value)return;const _=C.target;_&&((v=a.value)!=null&&v.contains(_)||(b=l.value)!=null&&b.contains(_)||p())},g=C=>{s.value&&C.key==="Escape"&&(C.preventDefault(),p())},y=()=>{s.value&&u()};return r.watch(s,C=>{C?(document.addEventListener("mousedown",h,!0),document.addEventListener("keydown",g,!0),window.addEventListener("resize",y),window.addEventListener("scroll",y,!0)):(document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",g,!0),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0))}),r.onBeforeUnmount(()=>{document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",g,!0),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0)}),e({open:f,close:p,toggle:m}),(C,_)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("span",r.mergeProps({ref_key:"triggerRef",ref:a,class:"ao-popover-menu"},C.$attrs),[r.renderSlot(C.$slots,"trigger",{open:f,toggle:m})],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[s.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"menuRef",ref:l,class:"ao-popover-menu__menu",style:r.normalizeStyle(d.value),role:"menu",onKeydown:r.withKeys(r.withModifiers(p,["stop"]),["esc"])},[r.renderSlot(C.$slots,"menu",{close:p})],44,Ype)):r.createCommentVNode("",!0)]))],64))}});const Cp=["phase","milestone","activity","task"],xa={indentSize:1,indentCharacter:" "};function Jpe(t){const e=Cp.indexOf(t);if(e<0)throw new Error(`Invalid root type: ${t}`);return Cp.slice(e)}function md(t){return{rootType:t,levels:Jpe(t),indentSize:xa.indentSize,indentCharacter:xa.indentCharacter}}function Xpe(t=xa){return t.indentCharacter.repeat(t.indentSize)}function Qpe(t,e=xa){return Xpe(e).repeat(t)}function eme(t,e){const n=md(t);return n.levels.map((o,i)=>`${Qpe(i,n)}${e(o)}`).join(`
59
- `)}function tme(t,e,n){var i;const o=((i=t.match(/^\s*/))==null?void 0:i[0])??"";return[...o].some(s=>s!==e)?{code:"INVALID_INDENTATION_CHARACTER"}:o.length%n!==0?{code:"INVALID_INDENTATION_SIZE",params:{expected:n,found:o.length}}:{level:o.length/n,content:t.slice(o.length).trim()}}function nme(t,e){const n=md(e),o=[],i=[],s=[];if(!t||t.trim().length===0)return{valid:!0,data:[],errors:[]};const a=t.split(/\r?\n/);for(let l=0;l<a.length;l+=1){const c=l+1,u=a[l];if(u.trim().length===0)continue;const d=tme(u,n.indentCharacter,n.indentSize);if("code"in d){o.push({line:c,code:d.code,params:d.params});continue}const{level:f,content:p}=d,m=n.levels[f];if(!m){o.push({line:c,code:"TOO_MANY_INDENTATION_LEVELS",params:{max:n.levels.length-1}});continue}if(f>0&&!s[f-1]){const g=n.levels[f-1];o.push({line:c,code:"EXPECTED_PARENT_BEFORE",params:{parent:g,child:m}});continue}const h={type:m,name:p,children:[]};f===0?i.push(h):s[f-1].children.push(h),s[f]=h,s.length=f+1}return{valid:o.length===0,data:i,errors:o}}const ome=["onKeydown"],rme={class:"ao-modal ao-bulk-insert-modal"},ime={class:"ao-modal__header"},sme={class:"ao-modal__header-meta"},ame={class:"ao-modal__title-group"},lme={class:"ao-modal__body ao-bulk-insert-modal__body"},cme={key:0,class:"ao-bulk-insert-modal__intro"},ume=["placeholder","disabled"],dme={key:1,class:"ao-bulk-insert-modal__errors"},fme={key:2,class:"ao-bulk-insert-modal__count"},pme={class:"ao-bulk-insert-modal__help"},mme={class:"ao-bulk-insert-modal__help-title"},hme={class:"ao-bulk-insert-modal__help-list"},gme={class:"ao-bulk-insert-modal__help-entity"},vme={class:"ao-bulk-insert-modal__help-rule"},_me={class:"ao-bulk-insert-modal__footer"},hd=r.defineComponent({__name:"AoBulkInsertModal",props:{open:{type:Boolean,default:!0},title:{},rootType:{},hint:{default:""},placeholder:{default:""},isLoading:{type:Boolean,default:!1},size:{default:"md"}},emits:["update:open","submit","close"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Nt(),s=r.ref(""),a=r.ref(null),l={phase:"project.bulk.entity.phase",milestone:"project.bulk.entity.milestone",activity:"project.bulk.entity.activity",task:"project.bulk.entity.task"},c={INVALID_INDENTATION_CHARACTER:"project.bulk.parser.invalidIndentationCharacter",INVALID_INDENTATION_SIZE:"project.bulk.parser.invalidIndentationSize",TOO_MANY_INDENTATION_LEVELS:"project.bulk.parser.tooManyIndentationLevels",EXPECTED_PARENT_BEFORE:"project.bulk.parser.expectedParentBefore"},u=r.computed(()=>md(n.rootType)),d=r.computed(()=>nme(s.value,n.rootType)),f=b=>String(i(l[b])),p=r.computed(()=>`${eme(n.rootType,f).split(`
58
+ */function Lo(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=ope(t):/rgb/.test(t)?e=Cp(t):typeof t=="string"?e=Cp(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:i,a:s}=e,{h:a,s:l,v:c}=rpe(e);return{r:n,g:o,b:i,a:s===void 0?1:s,h:a,s:l,v:c}}function sd(t){const e=document.createElement("canvas"),n=e.getContext("2d"),o=t*2;return e.width=o,e.height=o,n.fillStyle="#ffffff",n.fillRect(0,0,o,o),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function Yc(t,e,n,o,i,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,i),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function npe({r:t,g:e,b:n},o){const i=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${i(t)}${i(e)}${i(n)}`;return o?s.toUpperCase():s}function ope(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function Cp(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function rpe({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),i=Math.min(t,e,n),s=o-i;let a=0;o===i?a=0:o===t?e>=n?a=60*(e-n)/s:a=60*(e-n)/s+360:o===e?a=60*(n-t)/s+120:o===n&&(a=60*(t-e)/s+240),a=Math.floor(a);let l=parseFloat((o===0?0:1-i/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var ad=r.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),Yc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Yc("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),o=t.target.getContext("2d"),i=a=>{let l=a.clientX-n,c=a.clientY-e;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const u=o.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,f,p]=u.data;this.$emit("selectSaturation",{r:d,g:f,b:p})};i(t);const s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",s)}}});const ipe={ref:"canvasSaturation"};function spe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[r.createVNode("canvas",ipe,null,512),r.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}ad.render=spe;ad.__file="src/color/Saturation.vue";var ld=r.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,o=t.getContext("2d");t.width=e,t.height=n;const i=o.createLinearGradient(0,0,0,n);i.addColorStop(0,"#FF0000"),i.addColorStop(.17*1,"#FF00FF"),i.addColorStop(.17*2,"#0000FF"),i.addColorStop(.17*3,"#00FFFF"),i.addColorStop(.17*4,"#00FF00"),i.addColorStop(.17*5,"#FFFF00"),i.addColorStop(1,"#FF0000"),o.fillStyle=i,o.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),o=s=>{let a=s.clientY-e;a<0&&(a=0),a>this.height&&(a=this.height),this.slideHueStyle={top:a-2+"px"};const l=n.getImageData(0,Math.min(a,this.height-1),1,1),[c,u,d]=l.data;this.$emit("selectHue",{r:c,g:u,b:d})};o(t);const i=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}}});const ape={ref:"canvasHue"};function lpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[r.createVNode("canvas",ape,null,512),r.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ld.render=lpe;ld.__file="src/color/Hue.vue";var cd=r.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,o=this.alphaSize,i=sd(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(i,"repeat"),s.fillRect(0,0,e,n),Yc("p",s,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=i=>{let s=i.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height);let a=parseFloat((s/this.height).toFixed(2));this.$emit("selectAlpha",a)};n(t);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const cpe={ref:"canvasAlpha"};function upe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[r.createVNode("canvas",cpe,null,512),r.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}cd.render=upe;cd.__file="src/color/Alpha.vue";var ud=r.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,o=this.alphaSize,i=sd(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(i,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function dpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("canvas")}ud.render=dpe;ud.__file="src/color/Preview.vue";var dd=r.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:o,left:i,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-i,c=n-o,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,a-1),1,1);let[f,p,m,h]=d.data;h=parseFloat((h/255).toFixed(2));const g=this.suckerPreview.style;Object.assign(g,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${f}, ${p}, ${m}, ${h})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?g.display="":g.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:o}=e,{top:i,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-i,f=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[p,m,h,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:m,b:h,a:g})}))}}});const fpe=r.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),ppe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},mpe=r.createVNode("g",{fill:"none","fill-rule":"evenodd"},[r.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[r.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),r.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[r.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function hpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[t.isSucking?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...a)=>t.openSucker&&t.openSucker(...a))},[fpe],2)),t.isSucking?(r.openBlock(),r.createBlock("svg",ppe,[mpe])):r.createCommentVNode("v-if",!0)])}dd.render=hpe;dd.__file="src/color/Sucker.vue";var fd=r.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:r.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const gpe={class:"color-type"},vpe={class:"name"};function _pe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",gpe,[r.createVNode("span",vpe,r.toDisplayString(t.name),1),r.withDirectives(r.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t.modelColor=a),class:"value",onFocus:e[2]||(e[2]=(...a)=>t.handleFocus&&t.handleFocus(...a)),onBlur:e[3]||(e[3]=(...a)=>t.handleBlur&&t.handleBlur(...a))},null,544),[[r.vModelText,t.modelColor]])])}fd.render=_pe;fd.__file="src/color/Box.vue";var pd=r.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=r.ref(),o=r.ref([]),i=r.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),i.value=sd(4).toDataURL(),r.onUnmounted(()=>{s(n.value)});function s(l){if(!l)return;const c=o.value||[],u=c.indexOf(l);u>=0&&c.splice(u,1),c.length>=8&&(c.length=7),c.unshift(l),o.value=c||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(c))}function a(l){e("selectColor",l)}return{setColorsHistory:s,colorsHistory:o,color:n,imgAlphaBase64:i,selectColor:a}}});const ype={class:"colors"},Cpe={key:0,class:"colors history"};function bpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[r.createVNode("ul",ype,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(t.colorsDefault,a=>(r.openBlock(),r.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[r.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),r.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(r.openBlock(),r.createBlock("ul",Cpe,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(t.colorsHistory,a=>(r.openBlock(),r.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[r.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),r.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):r.createCommentVNode("v-if",!0)])}pd.render=bpe;pd.__file="src/color/Colors.vue";var Dr=r.defineComponent({components:{Saturation:ad,Hue:ld,Alpha:cd,Preview:ud,Sucker:dd,Box:fd,Colors:pd},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return npe(this.rgba,!0)}},created(){Object.assign(this,Lo(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:i,s,v:a}=Lo(t);Object.assign(this,{r:e,g:n,b:o,h:i,s,v:a}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:i,s,v:a}=Lo(t);Object.assign(this,{r:e,g:n,b:o,h:i,s,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const kpe={class:"color-set"};function wpe(t,e,n,o,i,s){const a=r.resolveComponent("Saturation"),l=r.resolveComponent("Hue"),c=r.resolveComponent("Alpha"),u=r.resolveComponent("Preview"),d=r.resolveComponent("Sucker"),f=r.resolveComponent("Box"),p=r.resolveComponent("Colors");return r.openBlock(),r.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[r.createVNode("div",kpe,[r.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),r.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),r.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),r.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[r.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(d,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),r.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(p,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),r.createCommentVNode(" custom options "),r.renderSlot(t.$slots,"default")],6)}Dr.render=wpe;Dr.__file="src/color/ColorPicker.vue";Dr.install=t=>{t.component(Dr.name,Dr)};const Epe={class:"color-picker-wrapper"},jr=r.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),s=r.ref(null),a=r.ref(null),l=r.ref(0),c=r.ref(0),u=async h=>{a.value=h,i.value=!0,await r.nextTick();const g=h.getBoundingClientRect(),y=s.value,C=(y==null?void 0:y.offsetHeight)||300,v=window.innerHeight-g.bottom,_=g.top,b=v<C&&_>C;console.log("pickerHeight = "+C),l.value=b?g.top-C-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=r.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),f=h=>{const g=h.target;s.value&&!s.value.contains(g)&&(i.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};r.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),r.watch(()=>n.color,h=>{i.value||(p.value=h)});const p=r.ref(n.color),m=h=>{const{r:g,g:y,b:C,a:v}=h.rgba;p.value=`rgba(${g}, ${y}, ${C}, ${v})`};return(h,g)=>(r.openBlock(),r.createElementBlock("div",Epe,[r.renderSlot(h.$slots,"clickable",{openPicker:u,bgColor:t.color}),i.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:r.normalizeStyle(d.value)},[r.createVNode(r.unref(Dr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):r.createCommentVNode("",!0)]))}});const Spe={class:"ao-card-project-phase__header"},xpe={class:"ao-card-project-item__title-line"},Tpe={key:0,class:"ao-card-project-item-phase__estimation"},Ape={class:"ao-card-project-phase__footer"},Npe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},Dpe={class:"ao-card-project-phase__subitem"},$pe={class:"ao-card-project-phase__subitem"},Bpe={key:0,class:"ao-card-project-phase__secondary"},Mpe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Lpe=r.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(t,{emit:e}){const n=t,o=e,i=g=>{o("update:title",g)},s=r.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>Ma(a.value,n.estimationUnit)),u=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Pi.done).length}),f=r.computed(()=>(d.value||0)/(u.value||1)),p=r.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=r.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y(C)};return(g,y)=>(r.openBlock(),r.createBlock(jr,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:r.withCtx(({openPicker:C,bgColor:v})=>[r.createVNode(ml,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",xpe,[r.createVNode(gt,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":i},null,8,["id","title","is-editable"]),s.value||a.value?(r.openBlock(),r.createElementBlock("span",Tpe," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Ape,[u.value?(r.openBlock(),r.createElementBlock("div",Npe,[r.createElementVNode("div",Dpe,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",$pe,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(hl,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Bpe,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=_=>p.value=_),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,p.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Mpe,r.toDisplayString(r.unref(La)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",Spe,[r.createVNode(de,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[0]=r.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Ope=r.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("span",{class:"aoBadge",style:r.normalizeStyle({backgroundColor:t.color})},null,4))}});const Vpe={class:"ao-card-project-milestone__default"},Ipe={class:"ao-title-with-badge-wrapper"},Ppe={class:"ao-card-project-item__title-line"},Fpe={key:0,class:"ao-card-project-item-milestone__estimation"},Rpe={key:0,class:"ao-card-project-milestone__archive"},zpe={class:"ao-card-project-milestone__activities"},Upe={class:"ao-card-project-milestone__activities-row"},Hpe={class:"ao-card-project-milestone__subitem"},qpe={class:"ao-card-project-milestone__subitem"},jpe={key:1,class:"ao-card-project-milestone__secondary"},Wpe={class:"ao-card-project-milestone__footer"},Zpe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Kpe={class:"ao-field__label"},Gpe={key:2,class:"ao-card-project-milestone__assignee"},Ype=r.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var p;return((p=n.activities)==null?void 0:p.reduce((m,h)=>m+(h.estimation||0),0))||0}),s=r.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,m)=>{var g;const h=(g=n.timeTrackingData)==null?void 0:g[m.id];return p+((h==null?void 0:h.timeSpent)||0)},0)),a=r.computed(()=>n.estimationUnit==="days"?"d":"h"),l=r.computed(()=>Ma(s.value,n.estimationUnit));r.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=r.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=r.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(m=>nu(m,n.closedStatus)).length}),d=r.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,m)=>(r.openBlock(),r.createBlock(ml,{class:r.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:r.withCtx(()=>[r.createElementVNode("div",Vpe,[r.createElementVNode("div",Ipe,[r.createVNode(Ope,{color:t.color||""},null,8,["color"]),r.createElementVNode("div",Ppe,[r.createVNode(gt,{id:t.id,title:t.name||"",level:5,"is-editable":!t.readonly&&t.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":f},null,8,["id","title","is-editable"]),i.value||s.value?(r.openBlock(),r.createElementBlock("span",Fpe," ("+r.toDisplayString(l.value)+"/"+r.toDisplayString(i.value)+r.toDisplayString(a.value)+")",1)):r.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(r.openBlock(),r.createElementBlock("div",Rpe,[r.createVNode(de,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:m[0]||(m[0]=r.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",zpe,[r.createElementVNode("div",Upe,[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",Hpe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",qpe,r.toDisplayString(u.value)+" / "+r.toDisplayString(c.value),1)]),r.createVNode(hl,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):r.createCommentVNode("",!0),p.$slots.secondary?(r.openBlock(),r.createElementBlock("div",jpe,[r.renderSlot(p.$slots,"secondary")])):r.createCommentVNode("",!0)])])]),footer:r.withCtx(()=>[r.createElementVNode("div",Wpe,[t.important?(r.openBlock(),r.createBlock(ke,{key:0,name:"FlagRounded",class:r.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):r.createCommentVNode("",!0),t.deadline?(r.openBlock(),r.createElementBlock("label",Zpe,[r.createElementVNode("span",Kpe,r.toDisplayString(r.unref(La)(t.deadline)),1)])):r.createCommentVNode("",!0),t.assignee?(r.openBlock(),r.createElementBlock("div",Gpe,[r.createVNode(Xn,{"user-name":r.unref(Hp)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):r.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const Jpe=["onKeydown"],Sa=r.defineComponent({inheritAttrs:!1,__name:"AoPopoverMenu",props:{placement:{default:"bottom-start"}},emits:["open","close"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(!1),a=r.ref(null),l=r.ref(null),c=r.ref(null),u=()=>{const C=a.value;if(!C)return;const v=C.getBoundingClientRect();c.value={top:v.top,left:v.left,width:v.width,height:v.height}},d=r.computed(()=>{const C=c.value;if(!C)return{};const v=C.top+C.height+window.scrollY+4;return o.placement==="bottom-end"?{position:"absolute",top:`${v}px`,left:"auto",right:`${Math.max(0,window.innerWidth-(C.left+C.width+window.scrollX))}px`,zIndex:200}:{position:"absolute",top:`${v}px`,left:`${C.left+window.scrollX}px`,zIndex:200}}),f=async()=>{if(s.value)return;u(),s.value=!0,i("open"),await r.nextTick();const C=l.value;if(C){const v=C.querySelector('button, [href], [tabindex]:not([tabindex="-1"])');v==null||v.focus()}},p=()=>{s.value&&(s.value=!1,i("close"))},m=()=>{s.value?p():f()},h=C=>{var _,b;if(!s.value)return;const v=C.target;v&&((_=a.value)!=null&&_.contains(v)||(b=l.value)!=null&&b.contains(v)||p())},g=C=>{s.value&&C.key==="Escape"&&(C.preventDefault(),p())},y=()=>{s.value&&u()};return r.watch(s,C=>{C?(document.addEventListener("mousedown",h,!0),document.addEventListener("keydown",g,!0),window.addEventListener("resize",y),window.addEventListener("scroll",y,!0)):(document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",g,!0),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0))}),r.onBeforeUnmount(()=>{document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",g,!0),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0)}),e({open:f,close:p,toggle:m}),(C,v)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("span",r.mergeProps({ref_key:"triggerRef",ref:a,class:"ao-popover-menu"},C.$attrs),[r.renderSlot(C.$slots,"trigger",{open:f,toggle:m})],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[s.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"menuRef",ref:l,class:"ao-popover-menu__menu",style:r.normalizeStyle(d.value),role:"menu",onKeydown:r.withKeys(r.withModifiers(p,["stop"]),["esc"])},[r.renderSlot(C.$slots,"menu",{close:p})],44,Jpe)):r.createCommentVNode("",!0)]))],64))}});const bp=["phase","milestone","activity","task"],xa={indentSize:1,indentCharacter:" "};function Xpe(t){const e=bp.indexOf(t);if(e<0)throw new Error(`Invalid root type: ${t}`);return bp.slice(e)}function md(t){return{rootType:t,levels:Xpe(t),indentSize:xa.indentSize,indentCharacter:xa.indentCharacter}}function Qpe(t=xa){return t.indentCharacter.repeat(t.indentSize)}function eme(t,e=xa){return Qpe(e).repeat(t)}function tme(t,e){const n=md(t);return n.levels.map((o,i)=>`${eme(i,n)}${e(o)}`).join(`
59
+ `)}function nme(t,e,n){var i;const o=((i=t.match(/^\s*/))==null?void 0:i[0])??"";return[...o].some(s=>s!==e)?{code:"INVALID_INDENTATION_CHARACTER"}:o.length%n!==0?{code:"INVALID_INDENTATION_SIZE",params:{expected:n,found:o.length}}:{level:o.length/n,content:t.slice(o.length).trim()}}function ome(t,e){const n=md(e),o=[],i=[],s=[];if(!t||t.trim().length===0)return{valid:!0,data:[],errors:[]};const a=t.split(/\r?\n/);for(let l=0;l<a.length;l+=1){const c=l+1,u=a[l];if(u.trim().length===0)continue;const d=nme(u,n.indentCharacter,n.indentSize);if("code"in d){o.push({line:c,code:d.code,params:d.params});continue}const{level:f,content:p}=d,m=n.levels[f];if(!m){o.push({line:c,code:"TOO_MANY_INDENTATION_LEVELS",params:{max:n.levels.length-1}});continue}if(f>0&&!s[f-1]){const g=n.levels[f-1];o.push({line:c,code:"EXPECTED_PARENT_BEFORE",params:{parent:g,child:m}});continue}const h={type:m,name:p,children:[]};f===0?i.push(h):s[f-1].children.push(h),s[f]=h,s.length=f+1}return{valid:o.length===0,data:i,errors:o}}const rme=["onKeydown"],ime={class:"ao-modal ao-bulk-insert-modal"},sme={class:"ao-modal__header"},ame={class:"ao-modal__header-meta"},lme={class:"ao-modal__title-group"},cme={class:"ao-modal__body ao-bulk-insert-modal__body"},ume={key:0,class:"ao-bulk-insert-modal__intro"},dme=["placeholder","disabled"],fme={key:1,class:"ao-bulk-insert-modal__errors"},pme={key:2,class:"ao-bulk-insert-modal__count"},mme={class:"ao-bulk-insert-modal__help"},hme={class:"ao-bulk-insert-modal__help-title"},gme={class:"ao-bulk-insert-modal__help-list"},vme={class:"ao-bulk-insert-modal__help-entity"},_me={class:"ao-bulk-insert-modal__help-rule"},yme={class:"ao-bulk-insert-modal__footer"},hd=r.defineComponent({__name:"AoBulkInsertModal",props:{open:{type:Boolean,default:!0},title:{},rootType:{},hint:{default:""},placeholder:{default:""},isLoading:{type:Boolean,default:!1},size:{default:"md"}},emits:["update:open","submit","close"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Nt(),s=r.ref(""),a=r.ref(null),l={phase:"project.bulk.entity.phase",milestone:"project.bulk.entity.milestone",activity:"project.bulk.entity.activity",task:"project.bulk.entity.task"},c={INVALID_INDENTATION_CHARACTER:"project.bulk.parser.invalidIndentationCharacter",INVALID_INDENTATION_SIZE:"project.bulk.parser.invalidIndentationSize",TOO_MANY_INDENTATION_LEVELS:"project.bulk.parser.tooManyIndentationLevels",EXPECTED_PARENT_BEFORE:"project.bulk.parser.expectedParentBefore"},u=r.computed(()=>md(n.rootType)),d=r.computed(()=>ome(s.value,n.rootType)),f=b=>String(i(l[b])),p=r.computed(()=>`${tme(n.rootType,f).split(`
60
60
  `).map(k=>k.trim()?`${k} 1`:k).join(`
61
61
  `)}
62
- ...`),m=r.computed(()=>n.placeholder||p.value),h=r.computed(()=>s.value.trim().length>0&&d.value.valid&&d.value.data.length>0&&!n.isLoading),g=r.computed(()=>{const b=w=>w.reduce((k,T)=>k+1+b(T.children??[]),0);return b(d.value.data)});r.watch(()=>n.open,async b=>{var w;b&&(s.value="",await r.nextTick(),(w=a.value)==null||w.focus())},{immediate:!0});const y=()=>{n.isLoading||(o("update:open",!1),o("close"))},C=()=>{h.value&&o("submit",d.value.data)},_=b=>String(b===0?i("project.bulk.modal.noSpace"):b===1?i("project.bulk.modal.oneSpace"):i("project.bulk.modal.spaces",{count:b})),v=b=>String(i(c[b.code],b.params??{}));return(b,w)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.open?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-modal__wrapper","ao-bulk-insert-modal__wrapper",`ao-modal__wrapper--${t.size}`]),onKeydown:r.withKeys(r.withModifiers(y,["stop"]),["esc"])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:y}),r.createElementVNode("div",rme,[r.createElementVNode("div",ime,[r.createElementVNode("div",sme,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:y})]),r.createElementVNode("header",ame,[r.createVNode(gt,{title:t.title,level:3},null,8,["title"])])]),r.createElementVNode("div",lme,[r.createElementVNode("form",{class:"ao-bulk-insert-modal__form",onSubmit:r.withModifiers(C,["prevent"])},[t.hint?(r.openBlock(),r.createElementBlock("p",cme,r.toDisplayString(t.hint),1)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("textarea",{ref_key:"textareaRef",ref:a,"onUpdate:modelValue":w[0]||(w[0]=k=>s.value=k),class:"ao-bulk-insert-modal__textarea",placeholder:m.value,disabled:t.isLoading,rows:"9",spellcheck:"false"},null,8,ume),[[r.vModelText,s.value]]),d.value.errors.length>0?(r.openBlock(),r.createElementBlock("div",dme,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value.errors,k=>(r.openBlock(),r.createElementBlock("p",{key:`${k.line}-${k.code}`,class:"ao-bulk-insert-modal__error"},r.toDisplayString(r.unref(i)("project.bulk.modal.lineError",{line:k.line,message:v(k)})),1))),128))])):s.value.trim().length>0?(r.openBlock(),r.createElementBlock("p",fme,r.toDisplayString(r.unref(i)("project.bulk.modal.count",{count:g.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",pme,[r.createElementVNode("span",mme,r.toDisplayString(r.unref(i)("project.bulk.modal.indentation")),1),r.createElementVNode("div",hme,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value.levels,(k,T)=>(r.openBlock(),r.createElementBlock("div",{key:k,class:"ao-bulk-insert-modal__help-row"},[r.createElementVNode("span",gme,r.toDisplayString(f(k)),1),r.createElementVNode("span",vme,r.toDisplayString(_(T)),1)]))),128))])]),r.createElementVNode("footer",_me,[r.createVNode(de,{color:"primary",variant:"ghost",label:r.unref(i)("common.cancel"),disabled:t.isLoading,onClick:y},null,8,["label","disabled"]),r.createVNode(de,{type:"submit",color:"primary",variant:"solid",label:r.unref(i)("common.create"),"is-loading":t.isLoading,disabled:!h.value},null,8,["label","is-loading","disabled"])])],32)])])],42,ome)):r.createCommentVNode("",!0)]))}});function gd(t,e){return(t.children??[]).filter(n=>n.type===e)}function yme(t){return gd(t,"task").map(e=>({name:e.name}))}function Zg(t,e=[]){const n=t.filter(i=>i.type==="activity"),o=tu(e,n.length);return n.map((i,s)=>{const a=yme(i);return{name:i.name,rank:o[s],...a.length?{tasks:a}:{}}})}function Cme(t,e){return Zg(t,e)}function Kg(t,e){const n=t.filter(i=>i.type==="milestone"),o=tu(e,n.length);return n.map((i,s)=>{const a=Zg(gd(i,"activity"));return{name:i.name,rank:o[s],...a.length?{activities:a}:{}}})}function bme(t,e){const n=t.filter(i=>i.type==="phase"),o=tu(e,n.length);return n.map((i,s)=>{const a=Kg(gd(i,"milestone"),[]);return{name:i.name,rank:o[s],...a.length?{milestones:a}:{}}})}const kme={class:"ao-mapping-card-project-phase__header"},wme={class:"ao-card-project-item__title-line"},Eme={key:0,class:"ao-card-project-item-phase__estimation"},Sme={class:"ao-mapping-card-project-phase__footer"},xme={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Ame={class:"ao-mapping-card-project-phase__subitem"},Tme={class:"ao-mapping-card-project-phase__subitem"},Nme={key:0,class:"ao-mapping-card-project-phase__secondary"},Dme={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},$me=r.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,i=g=>{o("update:title",g)},s=r.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,C)=>{var _;return y+((_=C.activities)==null?void 0:_.reduce((v,b)=>v+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((_,v)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[v.id];return _+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>Ma(a.value,n.estimationUnit)),u=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Pi.done).length}),f=r.computed(()=>(d.value||0)/(u.value||1)),p=r.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=r.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y()};return(g,y)=>(r.openBlock(),r.createBlock(jr,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:r.withCtx(({openPicker:C,bgColor:_})=>[r.createVNode(ml,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:_,"with-left-border":!0,onClick:v=>h(v,C)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",wme,[r.createVNode(gt,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":i},null,8,["id","title","is-editable"]),s.value||a.value?(r.openBlock(),r.createElementBlock("span",Eme," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Sme,[u.value?(r.openBlock(),r.createElementBlock("div",xme,[r.createElementVNode("div",Ame,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",Tme,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(hl,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Nme,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=v=>p.value=v),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,p.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Dme,r.toDisplayString(r.unref(La)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",kme,[r.createVNode(de,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[0]=r.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Bme={class:"ao-project-phase"},Mme={key:0,class:"ao-project-phase__drag ao-card__drag"},Lme={key:1,class:"ao-project-phase__col-phase"},Ome={key:2,class:"ao-mapping-project-phase__col-phase"},Vme={key:0,class:"ao-project-phase__col-milestones"},Ime=["title","onClick"],Pme=["onClick"],Fme=["onClick"],Rme={class:"ao-project-phase__milestones-list-footer"},zme=r.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e;r.watch(()=>o.phase.milestones,(A,S)=>{Wn(A,S)});const s=A=>{i("updatePhase",{id:o.phase.id,name:A})},a=A=>{i("updatePhase",{id:o.phase.id,deadline:A})},l=A=>{i("updatePhase",A)},c=r.computed(()=>o.phase.milestones.map(A=>TC(A,o.closedStatus))),u=A=>{const{name:S,rank:E}=Ko(c.value??[],"milestone",n);i("addMilestone",{name:S,rank:E,phaseId:A})},d=A=>{const S=n("template.defaultName.milestone",{idx:1}),E=ns(c.value??[]);i("addMilestone",{name:S,rank:E,phaseId:A})},f=A=>{i("updateMilestone",A)},p=A=>{i("archiveMilestone",A)},m=A=>{i("unarchiveMilestone",A)},h=A=>{i("archivePhase",A)},g=A=>{i("unarchivePhase",A)},y=A=>{"added"in A?i("updateMilestone",{id:A.added.element.id,phaseId:o.phase.id,rank:Mr(c.value,A.added.newIndex)}):"removed"in A||"moved"in A&&i("updateMilestone",{id:A.moved.element.id,rank:Mr(c.value,A.moved.newIndex)})},C=r.ref(!1),_=r.ref(!1),v=A=>{_.value=!0;const S=Kg(A,o.phase.milestones??[]);i("bulkAddMilestone",{phaseId:o.phase.id,milestones:S,onSuccess:()=>{_.value=!1,C.value=!1},onError:()=>{_.value=!1}})};r.watch(C,A=>{A&&(_.value=!1)});const b=$r.useRoute(),w=r.computed(()=>b.path.includes("/mapping")),k=r.computed(()=>{var A;return o.phase.id===((A=b.params)==null?void 0:A.phaseId)});r.ref(!1);const T=r.computed(()=>{var A;return o.phase.id!==((A=b.params)==null?void 0:A.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:DC(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(A,S)=>(r.openBlock(),r.createElementBlock("li",Bme,[r.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:r.normalizeStyle(T.value)},[t.isEditable?(r.openBlock(),r.createElementBlock("div",Mme,[r.createVNode(ke,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):r.createCommentVNode("",!0),w.value?(r.openBlock(),r.createElementBlock("div",Ome,[r.createVNode($me,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(r.openBlock(),r.createElementBlock("div",Lme,[r.createVNode(Mpe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),w.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Vme,[r.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:r.normalizeStyle(T.value)},[t.isEditable?(r.openBlock(),r.createBlock(Sa,{key:0,class:r.normalizeClass(["ao-project-phase__milestone-quick-add",{"ao-project-phase__milestone-quick-add--visible":k.value}]),placement:"bottom-end"},{trigger:r.withCtx(({open:E})=>[r.createElementVNode("button",{type:"button",class:"ao-project-phase__milestone-quick-add-trigger",title:A.$t("project.milestone.add"),onClick:E},[r.createVNode(ke,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],8,Ime)]),menu:r.withCtx(({close:E})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),d(t.phase.id)}},r.toDisplayString(A.$t("project.bulk.menu.single")),9,Pme),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),C.value=!0}},r.toDisplayString(A.$t("project.bulk.menu.bulkInsert")),9,Fme)]),_:1},8,["class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(wo),r.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},A.$attrs,{onChange:y}),{item:r.withCtx(({element:E})=>{var D;return[r.createVNode(Gpe,{id:E.id,name:E.name,color:E.color,"phase-color":t.phase.color,activities:E.activities,deadline:E.deadline,active:E.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":E.id===((D=A.$route.params)==null?void 0:D.milestoneId),assignee:E.assignee,important:E.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:r.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&A.$router.push({name:r.unref(Pe).milestone,params:{phaseId:t.phase.id,milestoneId:E.id}}),onUpdateMilestone:f,onArchiveMilestone:p,onUnarchiveMilestone:m},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),r.createElementVNode("div",Rme,[t.isEditable?(r.openBlock(),r.createBlock(Eo,{key:0,label:A.$t("project.milestone.add"),"icon-name":"Add",class:"ao-project-phase__milestone-add",onClick:S[0]||(S[0]=E=>u(t.phase.id))},null,8,["label"])):r.createCommentVNode("",!0)])],4)])),C.value?(r.openBlock(),r.createBlock(hd,{key:1,open:C.value,"onUpdate:open":S[1]||(S[1]=E=>C.value=E),title:A.$t("project.bulk.modal.milestone.title"),"root-type":"milestone","is-loading":_.value,onSubmit:v},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)]))}});const Ume={class:"ao-project__phases"},Hme={key:0,class:"ao-project-phase__phases-list-footer"},qme={class:"ao-project-phase__col-phase"},vd=r.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;r.watch(()=>n.phases,(m,h)=>{Wn(m,h)});const i=m=>{o("addMilestone",m)},s=m=>{o("updateMilestone",m)},a=m=>{o("archiveMilestone",m)},l=m=>{o("unarchiveMilestone",m)},c=m=>{o("archivePhase",m)},u=m=>{o("unarchivePhase",m)},d=m=>{if(m.moved){const h=ts(m,n.phases??[]);o("updatePhase",{id:m.moved.element.id,rank:h})}},f=m=>{o("updatePhase",m)},p=m=>{o("addPhase",m)};return(m,h)=>(r.openBlock(),r.createElementBlock("div",Ume,[r.createVNode(r.unref(wo),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:r.withCtx(({element:g})=>[r.createVNode(zme,{phase:g,"is-editable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,users:t.users,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,onAddMilestone:i,onBulkAddMilestone:h[0]||(h[0]=y=>m.$emit("bulkAddMilestone",y)),onUpdateMilestone:s,onArchiveMilestone:a,onUnarchiveMilestone:l,onUpdatePhase:f,onArchivePhase:c,onUnarchivePhase:u},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Hme,[h[1]||(h[1]=r.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),r.createElementVNode("div",qme,[r.createVNode(Eo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),h[2]||(h[2]=r.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):r.createCommentVNode("",!0)]))}});const jme={class:"ao-add-template-modal__form-body"},Wme={class:"field__row"},Zme={class:"ao-add-template-modal__form-footer"},Gg=r.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=r.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(r.openBlock(),r.createBlock(Oa,{size:"sm"},{header:r.withCtx(()=>[r.createVNode(gt,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:r.withModifiers(l,["prevent"])},[r.createElementVNode("p",null,r.toDisplayString(c.$t("project.template.apply.notice")),1),r.createElementVNode("div",jme,[r.createElementVNode("div",Wme,[r.createVNode(ft,{value:s.value,options:i.value,detached:!0,onChange:a},null,8,["value","options"])])]),r.createElementVNode("footer",Zme,[r.createVNode(de,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Kme={class:"ao-save-template-modal__form-body"},Gme={class:"field__row"},Yme={class:"ao-field ao-field--inline"},Jme={class:"ao-field__label"},Xme={class:"ao-save-template-modal__phases"},Qme={class:"ao-field__label"},ehe={class:"ao-save-template-modal__phases-list"},the=["value"],nhe={class:"ao-save-template-modal__form-footer"},Yg=r.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(""),s=r.ref([]);r.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{i.value&&o("save",i.value,s.value)};return(l,c)=>(r.openBlock(),r.createBlock(Oa,{size:"sm"},{header:r.withCtx(()=>[r.createVNode(gt,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:r.withModifiers(a,["prevent"])},[r.createElementVNode("div",Kme,[r.createElementVNode("div",Gme,[r.createElementVNode("label",Yme,[r.createElementVNode("span",Jme,r.toDisplayString(l.$t("project.template.name.label"))+": ",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),type:"text"},null,512),[[r.vModelText,i.value]])])]),r.createElementVNode("div",Xme,[r.createElementVNode("div",Qme,r.toDisplayString(l.$t("project.template.phases.label")),1),r.createElementVNode("div",ehe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.phases,u=>(r.openBlock(),r.createElementBlock("label",{key:u.id,class:"ao-field ao-field--checkbox"},[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),type:"checkbox",value:u.id},null,8,the),[[r.vModelCheckbox,s.value]]),r.createElementVNode("span",null,r.toDisplayString(u.name),1)]))),128))])])]),r.createElementVNode("footer",nhe,[r.createVNode(de,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const ohe={class:"ao-project"},rhe=["onClick"],ihe=["onClick"],she={class:"ao-project__body"},ahe=r.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},devStatuses:{},sprints:{},selectedActivity:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},emits:["addPhase","bulkAddPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","bulkAddActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=r.computed(()=>o.phases.flatMap(F=>F.milestones)),a=()=>{const{name:F,rank:se}=Ko(o.phases,"phase",n);i("addPhase",{name:F,rank:se,projectId:o.project.id})},l=()=>{const F=n("template.defaultName.phase",{idx:1}),se=ns(o.phases);i("addPhase",{name:F,rank:se,projectId:o.project.id})},c=F=>{i("updatePhase",F)},u=F=>{i("archivePhase",F)},d=F=>{i("unarchivePhase",F)},f=F=>{i("copyPhaseToTemplate",F)},p=F=>{i("addMilestone",F)},m=F=>{i("bulkAddMilestone",F)},h=F=>{i("updateMilestone",F)},g=F=>{i("archiveMilestone",F)},y=F=>{i("unarchiveMilestone",F)},C=F=>{i("addActivity",F)},_=F=>{i("bulkAddActivity",F)},v=F=>{i("update:activity",F)},b=F=>{i("archiveActivity",F)},w=F=>{i("unarchiveActivity",F)},k=F=>{i("addSubtask",F)},T=F=>{i("updateSubtask",F)},A=F=>{i("deleteSubtask",F)},S=r.computed(()=>s.value.flatMap(F=>F.activities)),E=r.computed(()=>o.devStatuses??[]),D=r.computed(()=>o.sprints??[]),x=F=>{i("addFiles",F)},$=F=>{i("removeFile",F)},B=F=>{i("addComment",F)},V=F=>{i("updateComment",F)},I=F=>{i("removeComment",F)},W=r.ref(!1),P=r.ref(!1),H=r.ref(!1),Q=r.ref(!1),le=(F,se)=>{i("applyTemplate",{templateId:F,projectId:se}),W.value=!1},oe=(F,se)=>{var we;const Ee=(we=o.templates)==null?void 0:we.at(-1),Ue=Ee?Xe.LexoRank.parse(Ee.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:F,rank:Ue.format(),phaseIds:se}),P.value=!1},Ne=F=>{Q.value=!0;const se=bme(F,o.phases);i("bulkAddPhase",{projectId:o.project.id,phases:se,onSuccess:()=>{Q.value=!1,H.value=!1},onError:()=>{Q.value=!1}})};r.watch(H,F=>{F&&(Q.value=!1)});const ce=$r.useRouter(),ne=r.ref("overview"),z=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(ne,F=>{F==="feed"?(ce.push({name:Pe.feed}),console.log("Navigating to feed...")):F==="dev"?(ce.push({name:Pe.dev}),console.log("Navigating to dev...")):F==="overview"?(ce.push({name:Pe.project}),console.log("Navigating to feed...")):F==="mapping"&&(ce.push({name:Pe.mapping}),console.log("Navigating to feed..."))}),(F,se)=>{var Ue;const Ee=r.resolveComponent("RouterView");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-overview"},F.$attrs),[r.createElementVNode("div",ohe,[r.createVNode(os,null,{primary:r.withCtx(()=>[r.createVNode(gs,{modelValue:ne.value,"onUpdate:modelValue":se[0]||(se[0]=we=>ne.value=we),tabs:z},null,8,["modelValue"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:se[1]||(se[1]=we=>F.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(Sa,{key:0,class:"ao-project-overview__quick-add-phase"},{trigger:r.withCtx(({open:we})=>[r.createVNode(de,{size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("project.phase.add"),onClick:we},null,8,["label","onClick"])]),menu:r.withCtx(({close:we})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{we(),l()}},r.toDisplayString(F.$t("project.bulk.menu.single")),9,rhe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{we(),H.value=!0}},r.toDisplayString(F.$t("project.bulk.menu.bulkInsert")),9,ihe)]),_:1})):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:F.$t("project.template.save.label"),onClick:se[2]||(se[2]=we=>P.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-project-overview__add-template",color:"primary",label:F.$t("project.template.apply.label"),onClick:se[3]||(se[3]=we=>W.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",she,[r.createVNode(vd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(Ue=t.project)==null?void 0:Ue.estimationUnit,onAddMilestone:p,onBulkAddMilestone:m,onUpdateMilestone:h,onArchiveMilestone:g,onUnarchiveMilestone:y,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),r.createVNode(Ee,{class:"ao-project__sidebar",phases:t.phases,"project-id":t.project.id,"project-name":t.project.name,users:t.users,"is-editable":t.isEditable===!0,"closed-status":t.closedStatus,"time-tracking-data":t.timeTrackingData,onClose:se[4]||(se[4]=we=>F.$router.push({name:r.unref(Pe).project})),onUpdateMilestone:h,onAddActivity:C,onBulkAddActivity:_,onUpdateActivity:v,onArchiveActivity:b,onUnarchiveActivity:w},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(Ee,{name:"modal",activities:S.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,"dev-statuses":E.value,sprints:D.value,"selected-activity":t.selectedActivity,phases:t.phases,project:t.project,users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":t.loadAttachmentPreview,"onUpdate:activity":v,onAddSubtask:k,onUpdateSubtask:T,onDeleteSubtask:A,onAddFiles:x,onRemoveFile:$,onAddComment:B,onUpdateComment:V,onRemoveComment:I},{default:r.withCtx(({Component:we})=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(we),null,{default:r.withCtx(Ce=>[r.renderSlot(F.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(Ce)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","dev-statuses","sprints","selected-activity","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data","load-attachment-preview"])]))],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[P.value?(r.openBlock(),r.createBlock(Yg,{key:0,phases:t.phases,onClose:se[5]||(se[5]=we=>P.value=!1),onSave:oe},null,8,["phases"])):r.createCommentVNode("",!0),W.value?(r.openBlock(),r.createBlock(Gg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:se[6]||(se[6]=we=>W.value=!1),onApply:le},null,8,["project-id","templates"])):r.createCommentVNode("",!0),H.value?(r.openBlock(),r.createBlock(hd,{key:2,open:H.value,"onUpdate:open":se[7]||(se[7]=we=>H.value=we),title:F.$t("project.bulk.modal.phase.title"),"root-type":"phase","is-loading":Q.value,onSubmit:Ne},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)]))],64)}}});const lhe={class:"ao-card-feed__header"},che={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},uhe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},dhe={class:"ao-card-feed__body"},fhe={key:0,class:"ao-card-feed__breadcrumbs"},phe={class:r.normalizeClass(["ao-card-feed__title-group"])},mhe={class:"ao-card-feed__title-line"},hhe={key:0,class:"ao-card-feed__slug"},ghe={key:1,class:"ao-card-feed__deadline"},vhe={class:"ao-card-feed__footer"},_he={class:"ao-card-feed__footer-row"},yhe={class:"ao-assignees"},Che={key:0,class:"ao-assignee"},bhe={key:0,class:"ao-card-feed__subitems"},khe={key:0,class:"ao-card-feed__subitem"},whe={class:"ao-card-feed__subitem"},Ehe={key:1,class:"ao-card-feed__subitem"},She={class:"ao-card-feed__subitem"},xhe={class:"ao-card-feed__timer-wrapper"},Ahe={class:"ao-card-feed__footer-row"},The={key:0,class:"ao-card-feed__progress-wrapper"},Nhe={class:"ao-card-feed__subitem"},Dhe={class:"ao-card-feed__subitem"},_d=r.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},blocked:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=r.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=g=>{o("updateActivity",{id:n.id,name:g})},l=r.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=r.computed(()=>n.assignee?[n.assignee]:[]),u=r.computed(()=>La(n.deadline)),d=g=>{o("removeAssignee",g)},f=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},p=r.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),m=r.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),h=r.computed(()=>(m.value||0)/(p.value||1));return(g,y)=>(r.openBlock(),r.createBlock(ml,{class:r.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0,variant:t.blocked?"danger":"default"},{header:r.withCtx(()=>[r.createElementVNode("div",lhe,[i.value?(r.openBlock(),r.createBlock(Ii,{key:0,label:i.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):r.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed||t.blocked?(r.openBlock(),r.createElementBlock("div",che,[t.isPrivate?(r.openBlock(),r.createBlock(ke,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):r.createCommentVNode("",!0),t.important?(r.openBlock(),r.createBlock(ke,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):r.createCommentVNode("",!0),t.isClosed?(r.openBlock(),r.createBlock(ke,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",uhe,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])]),default:r.withCtx(()=>[r.createElementVNode("div",dhe,[l.value?(r.openBlock(),r.createElementBlock("span",fhe,r.toDisplayString(l.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",phe,[r.createElementVNode("div",mhe,[t.slug?(r.openBlock(),r.createElementBlock("span",hhe,r.toDisplayString(t.slug)+": ",1)):r.createCommentVNode("",!0),r.createVNode(gt,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,class:"ao-card-feed__title-inline","onUpdate:title":a},null,8,["id","title","is-editable"])])]),t.deadline?(r.openBlock(),r.createElementBlock("span",ghe,r.toDisplayString(u.value),1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",vhe,[r.createElementVNode("div",_he,[r.createElementVNode("ul",yhe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,C=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C.id},[C?(r.openBlock(),r.createElementBlock("li",Che,[r.createVNode(Xn,{"user-name":r.unref(Up)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):r.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(r.openBlock(),r.createElementBlock("ul",bhe,[t.comments?(r.openBlock(),r.createElementBlock("li",khe,[r.createVNode(ke,{name:"ChatOutline",size:"sm"}),r.createElementVNode("span",whe,r.toDisplayString(t.comments),1)])):r.createCommentVNode("",!0),t.attachments?(r.openBlock(),r.createElementBlock("li",Ehe,[r.createVNode(ke,{name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",She,r.toDisplayString(t.attachments),1)])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",xhe,[r.createVNode(ke,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:r.withModifiers(f,["stop"])})])]),r.createElementVNode("div",Ahe,[t.tasks&&t.tasks.length?(r.openBlock(),r.createElementBlock("div",The,[r.createElementVNode("div",Nhe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",Dhe,r.toDisplayString(m.value)+" / "+r.toDisplayString(p.value),1)]),r.createVNode(hl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):r.createCommentVNode("",!0)])])]),_:3},8,["class","variant"]))}});const $he={class:"ao-project-milestone"},Bhe={class:"ao-project-milestone__header"},Mhe={class:"ao-project-milestone__header_line"},Lhe={class:"ao-project-milestone__header_line"},Ohe={class:"ao-project-milestone__title"},Vhe={key:0,class:"ao-fieldset ao-milestone__fieldset"},Ihe={class:"ao-field__row ao-milestone__field-row"},Phe={class:"ao-field ao-field--inline"},Fhe={class:"ao-field__row ao-milestone__field-row"},Rhe={class:"ao-field ao-milestone__field-multiselect"},zhe={class:"ao-milestone__color-actions"},Uhe=["onClick"],Hhe=["title","onClick"],qhe=["onClick"],jhe=["onClick"],Whe={class:"ao-project-milestone__body"},Zhe={key:0,class:"ao-project-milestone__footer"},Khe=["onClick"],Ghe=["onClick"],bp=r.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","bulkAddActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=S=>{var E;i("startTimer",S),(E=window.parent)==null||E.postMessage({type:"startTimer",data:S},"*")},a=r.computed(()=>{var S;return(S=o.phases)==null?void 0:S.find(E=>E.id===o.phaseId)}),l=r.computed(()=>{var S;return(S=o.phases)==null?void 0:S.flatMap(E=>E.milestones)}),c=r.computed(()=>{var S;return(S=l.value)==null?void 0:S.find(E=>E.id===o.milestoneId)}),u=r.computed(()=>{var S;return(S=c.value)==null?void 0:S.activities});r.watch(u,(S,E)=>{Wn(S,E)});const d=S=>{i("close",S)},f=()=>{const{name:S,rank:E}=Ko(u.value??[],"activity",n);i("addActivity",{milestoneId:o.milestoneId,name:S,rank:E,projectId:o.projectId})},p=()=>{const S=n("template.defaultName.activity",{idx:1}),E=ns(u.value??[]);i("addActivity",{milestoneId:o.milestoneId,name:S,rank:E,projectId:o.projectId})},m=r.ref(!1),h=r.ref(!1),g=S=>{h.value=!0;const E=Cme(S,u.value??[]);i("bulkAddActivity",{projectId:o.projectId,phaseId:o.phaseId,milestoneId:o.milestoneId,activities:E,onSuccess:()=>{h.value=!1,m.value=!1},onError:()=>{h.value=!1}})};r.watch(m,S=>{S&&(h.value=!1)});const y=S=>{i("updateActivity",S)},C=S=>{u.value&&"moved"in S&&i("updateActivity",{id:S.moved.element.id,rank:Mr(u.value,S.moved.newIndex)})},_=r.computed({get:()=>{var S;return(S=c.value)==null?void 0:S.color},set:S=>{c.value&&i("updateMilestone",{id:c.value.id,color:S})}}),v=r.computed({get:()=>{var S;return((S=c.value)==null?void 0:S.deadline)??""},set:S=>{c.value&&i("updateMilestone",{id:c.value.id,deadline:S!=null&&S.length?S:null})}}),b=S=>o.closedStatus?nu(S,o.closedStatus):!1,w=r.computed(()=>{var S;return((S=o.users)==null?void 0:S.map(E=>({label:`${E.firstName} ${E.lastName}`,value:E.id,avatar:E.avatarUrl})))||[]}),k=r.computed({get(){var S,E;return(E=(S=c.value)==null?void 0:S.assignee)!=null&&E.id?[c.value.assignee.id]:[]},set(S){i("updateMilestone",{id:o.milestoneId,assigneeId:S[0]??null})}}),T=r.computed({get(){var S;return((S=c.value)==null?void 0:S.important)??!1},set(S){i("updateMilestone",{id:o.milestoneId,important:S})}}),A=(S,E)=>{const D=S.currentTarget;D instanceof HTMLElement&&E(D)};return(S,E)=>{var D;return r.openBlock(),r.createElementBlock("div",$he,[r.createElementVNode("header",Bhe,[r.createElementVNode("div",Mhe,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),r.createElementVNode("div",Lhe,[r.createElementVNode("div",Ohe,[r.createVNode(gt,{title:((D=c.value)==null?void 0:D.name)||t.milestoneId,level:5},null,8,["title"]),r.createVNode(Gc,{modelValue:T.value,"onUpdate:modelValue":E[0]||(E[0]=x=>T.value=x),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:S.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(r.openBlock(),r.createElementBlock("div",Vhe,[r.createElementVNode("div",Ihe,[r.createElementVNode("label",Phe,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=x=>v.value=x),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[r.vModelText,v.value,void 0,{lazy:!0}]])])]),r.createElementVNode("div",Fhe,[r.createElementVNode("label",Rhe,[r.createVNode(ft,{modelValue:k.value,"onUpdate:modelValue":E[2]||(E[2]=x=>k.value=x),options:w.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:S.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:r.withCtx(({option:x,handleTagRemove:$})=>[r.createVNode(Xn,{"user-name":x.label,"avatar-url":x.avatar,"is-closable":!0,onClose:B=>$(x,B)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",zhe,[r.createVNode(jr,{color:_.value,"onUpdate:color":E[3]||(E[3]=x=>_.value=x)},{clickable:r.withCtx(({openPicker:x,bgColor:$})=>[r.createElementVNode("button",{style:r.normalizeStyle({background:$}),class:"color-button",onClick:B=>A(B,x)},null,12,Uhe)]),_:1},8,["color"]),t.isEditable?(r.openBlock(),r.createBlock(Sa,{key:0,placement:"bottom-end"},{trigger:r.withCtx(({open:x})=>[r.createElementVNode("button",{type:"button",class:"ao-project-milestone__quick-add",title:S.$t("project.activity.add"),onClick:x},[r.createVNode(ke,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,Hhe)]),menu:r.withCtx(({close:x})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),p()}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,qhe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),m.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,jhe)]),_:1})):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Whe,[r.createVNode(r.unref(wo),r.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},S.$attrs,{onChange:C}),{item:r.withCtx(({element:x})=>{var $,B,V,I,W;return[r.createVNode(_d,{id:x.id,name:x.name||x.id,"project-id":t.projectId,"phase-name":($=a.value)==null?void 0:$.name,"milestone-name":(B=c.value)==null?void 0:B.name,"milestone-color":(V=c.value)==null?void 0:V.color,deadline:x.deadline,important:x.important,blocked:x.blocked,users:t.users,assignee:x.assignee,slug:x.slug,comments:(I=x.comments)==null?void 0:I.length,attachments:(W=x.attachments)==null?void 0:W.length,tasks:x.tasks,"is-editable":t.isEditable,"is-private":x.private,"is-closed":b(x),onClick:P=>S.$router.push({name:r.unref(Pe).activity,params:{milestoneId:t.milestoneId,activityId:x.id}}),onUpdateActivity:y,onRemoveAssignee:()=>y({id:x.id,assigneeId:null}),onStartTimer:s},r.createSlots({_:2},[t.isEditable?{name:"secondary",fn:r.withCtx(()=>[t.isEditable&&x.active?(r.openBlock(),r.createBlock(de,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("archive"),onClick:r.withModifiers(()=>S.$emit("archiveActivity",{id:x.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),t.isEditable&&!x.active?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>S.$emit("unarchiveActivity",{id:x.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","blocked","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Zhe,[r.createVNode(Sa,null,{trigger:r.withCtx(({open:x})=>[r.createVNode(Eo,{"icon-name":"Add",label:S.$t("project.activity.add"),onClick:x},null,8,["label","onClick"])]),menu:r.withCtx(({close:x})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),f()}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,Khe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),m.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,Ghe)]),_:1})])):r.createCommentVNode("",!0)]),m.value?(r.openBlock(),r.createBlock(hd,{key:0,open:m.value,"onUpdate:open":E[4]||(E[4]=x=>m.value=x),title:S.$t("project.bulk.modal.activity.title"),"root-type":"activity","is-loading":h.value,onSubmit:g},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)])}}});const Yhe=r.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},selectedActivity:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function},sprints:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","createSprint"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var C;return(C=n.phases)==null?void 0:C.find(_=>_.id===n.phaseId)}),s=r.computed(()=>{var C;return(C=n.phases)==null?void 0:C.flatMap(_=>_.milestones)}),a=r.computed(()=>{var C;return(C=s.value)==null?void 0:C.find(_=>_.id===n.milestoneId)}),l=r.computed(()=>{var C;return n.selectedActivity??((C=n.activities)==null?void 0:C.find(_=>_.id===n.activityId))}),c=C=>{o("update:activity",C)},u=C=>{o("addSubtask",C)},d=C=>{o("updateSubtask",C)},f=C=>{o("deleteSubtask",C)},p=C=>{o("addFiles",C)},m=C=>{o("removeFile",C)},h=C=>{o("addComment",C)},g=C=>{o("updateComment",C)},y=C=>{o("removeComment",C)};return(C,_)=>{var v,b;return l.value?(r.openBlock(),r.createBlock(id,{key:0,activity:l.value,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(v=i.value)==null?void 0:v.name} / ${(b=a.value)==null?void 0:b.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,"load-attachment-preview":n.loadAttachmentPreview,sprints:t.sprints,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y,onCreateSprint:_[0]||(_[0]=w=>o("createSprint",w))},{default:r.withCtx(w=>[r.renderSlot(C.$slots,"default",r.normalizeProps(r.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints","onClose"])):r.createCommentVNode("",!0)}}}),Jhe={class:"ao-col-header"},Xhe=r.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",Jhe,[r.createVNode(gt,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(r.openBlock(),r.createBlock(Ii,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):r.createCommentVNode("",!0)]))}});function Qhe(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function Aa(t){return typeof t=="function"?t():r.unref(t)}const ege=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tge=t=>t!=null,Vi=()=>{};function nge(t,e){function n(...o){return new Promise((i,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(i).catch(s)})}return n}function oge(t,e={}){let n,o,i=Vi;const s=l=>{clearTimeout(l),i(),i=Vi};return l=>{const c=Aa(t),u=Aa(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,f)=>{i=e.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},c)})}}function rge(t,e=200,n={}){return nge(oge(e,n),t)}function cc(t){var e;const n=Aa(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ige=ege?window:void 0;function sge(){const t=r.ref(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function age(t){const e=sge();return r.computed(()=>(e.value,!!t()))}function lge(t,e,n={}){const{root:o,rootMargin:i="0px",threshold:s=.1,window:a=ige,immediate:l=!0}=n,c=age(()=>a&&"IntersectionObserver"in a),u=r.computed(()=>{const h=Aa(t);return(Array.isArray(h)?h:[h]).map(cc).filter(tge)});let d=Vi;const f=r.ref(l),p=c.value?r.watch(()=>[u.value,cc(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:cc(g),rootMargin:i,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Vi}},{immediate:l,flush:"post"}):Vi,m=()=>{d(),p(),f.value=!1};return Qhe(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const cge={class:r.normalizeClass(["ao-list-kanban"])},uge={class:"ao-list-kanban__header"},dge=["title"],fge={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},pge={key:1,class:"ao-list-kanban__end"},mge={key:0,class:"ao-list-kanban__no-more"},hge={key:1,class:"ao-list-kanban__divider"},gge={key:1,class:"ao-list-kanban__footer"},vge=r.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{},showHeaderAdd:{type:Boolean},isDevMode:{type:Boolean}},emits:["add","addAtBeginning","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),s=r.ref(null);lge(s,([{isIntersecting:f}])=>{i.value=f}),r.watch(i,f=>{f&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=f=>{var p;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((p=f.assignee)==null?void 0:p.id):!1},l=f=>{o("selectActivity",f)},c=f=>{o("updateActivity",f)},u=f=>{if("added"in f){const p={id:f.added.element.id,rank:Mr(n.list,f.added.newIndex)};n.isDevMode?p.statusDevId=n.status.id:p.statusId=n.status.id,o("updateActivity",p)}else"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Mr(n.list,f.moved.newIndex)})},d=r.ref(!1);return(f,p)=>(r.openBlock(),r.createElementBlock("div",cge,[t.title||f.$slots.header?r.renderSlot(f.$slots,"header",{},()=>{var m;return[r.createElementVNode("div",uge,[t.title?(r.openBlock(),r.createBlock(Xhe,{key:0,class:"ao-list-kanban__col-header",title:t.title,level:3,items:(m=t.list)==null?void 0:m.length},null,8,["title","items"])):r.createCommentVNode("",!0),t.showHeaderAdd?(r.openBlock(),r.createElementBlock("button",{key:1,class:"ao-list-kanban__header-add",title:f.$t("feed.activity.add"),onClick:p[0]||(p[0]=h=>f.$emit("addAtBeginning"))},[r.createVNode(ke,{name:"Add"})],8,dge)):r.createCommentVNode("",!0)])]},void 0,0):r.createCommentVNode("",!0),r.createVNode(r.unref(wo),r.mergeProps({class:["ao-list-kanban__list",d.value?"ao-list-kanban__transition":void 0],list:t.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},f.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"},onChange:u,onStart:p[2]||(p[2]=m=>d.value=!0),onEnd:p[3]||(p[3]=m=>d.value=!1)}),{item:r.withCtx(({element:m})=>{var h,g,y,C,_,v,b,w,k,T;return[r.createVNode(_d,{id:m.id,class:r.normalizeClass(a(m)?"ao-list-draggable":""),name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(g=m.project)==null?void 0:g.id,"project-color":(y=m.project)==null?void 0:y.color,"phase-name":(_=(C=m.milestone)==null?void 0:C.phase)==null?void 0:_.name,"milestone-name":(v=m.milestone)==null?void 0:v.name,"milestone-color":(b=m.milestone)==null?void 0:b.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,blocked:m.blocked,type:m.type,comments:(k=m.comments)==null?void 0:k.length,attachments:(T=m.attachments)==null?void 0:T.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":a(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[A=>a(m)&&c(A),()=>a(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>a(m)&&c({id:m.id,assigneeId:null}),onStartTimer:p[1]||(p[1]=A=>f.$emit("startTimer",A))},{secondary:r.withCtx(()=>[a(m)&&m.active?(r.openBlock(),r.createBlock(de,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:r.withModifiers(()=>f.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),a(m)&&!m.active?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>f.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0)]),_:2},1032,["id","class","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","blocked","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:r.withCtx(()=>[t.isLoading?(r.openBlock(),r.createElementBlock("div",fge,[r.createVNode(ke,{name:"Loading"})])):t.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(r.openBlock(),r.createElementBlock("div",pge,[t.noMoreLabel?(r.openBlock(),r.createElementBlock("span",mge,r.toDisplayString(t.noMoreLabel),1)):t.isEditable?(r.openBlock(),r.createElementBlock("span",hge)):r.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(r.openBlock(),r.createElementBlock("div",gge,[r.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(r.openBlock(),r.createBlock(Eo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[4]||(p[4]=m=>f.$emit("add"))},null,8,["label"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]))}});const _ge={class:"ao-field ao-search-field"},yge=["value","placeholder"],Cge=r.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,i=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=rge(i,n.delay),a=l=>{o("clear",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",_ge,[r.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>r.unref(s)&&r.unref(s)(...u)),onKeypress:r.withKeys(i,["enter"])},null,40,yge),r.createVNode(ke,{name:"SearchRounded",class:r.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),r.createVNode(de,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:r.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const bge={class:"ao-sprint-metrics"},kge=["onClick"],wge={class:"ao-sprint-metrics__header-left"},Ege={class:"ao-sprint-metrics__icon"},Sge={class:"ao-sprint-metrics__title"},xge={class:"ao-sprint-metrics__dates"},Age={key:0,class:"ao-sprint-metrics__project"},Tge={class:"ao-sprint-metrics__advancement"},Nge={class:"ao-sprint-metrics__progress-bar"},Dge={class:"ao-sprint-metrics__percent"},$ge={class:"ao-sprint-metrics__tooltip ao-sprint-metrics__tooltip--advancement"},Bge={class:"ao-sprint-metrics__tooltip-row"},Mge={class:"ao-sprint-metrics__tooltip-row"},Lge={class:"ao-sprint-metrics__tooltip-row"},Oge={class:"ao-sprint-metrics__tooltip-row"},Vge={class:"ao-sprint-metrics__tooltip-row"},Ige={class:"ao-sprint-metrics__tooltip-row"},Pge={class:"ao-sprint-metrics__tooltip-row"},Fge={class:"ao-sprint-metrics__content"},Rge={class:"ao-sprint-metrics__grid"},zge={class:"ao-sprint-metrics__item"},Uge={class:"ao-sprint-metrics__label"},Hge={class:"ao-sprint-metrics__value"},qge={key:0,class:"ao-sprint-metrics__tooltip"},jge={class:"ao-sprint-metrics__tooltip-title"},Wge={class:"ao-sprint-metrics__item"},Zge={class:"ao-sprint-metrics__label"},Kge={class:"ao-sprint-metrics__value"},Gge={class:"ao-sprint-metrics__item ao-sprint-metrics__item--editable"},Yge={class:"ao-sprint-metrics__label"},Jge={class:"ao-sprint-metrics__input-row"},Xge=["value","placeholder","onInput"],Qge={key:0,class:"ao-sprint-metrics__secondary"},e0e={class:"ao-sprint-metrics__item"},t0e={class:"ao-sprint-metrics__label"},n0e={class:"ao-sprint-metrics__value"},o0e=r.defineComponent({__name:"AoSprintMetrics",props:{sprints:{},activities:{},planningData:{default:()=>({})},projects:{default:()=>[]}},setup(t){const e=t,{t:n}=Nt(),o=["Ok for prod","Done"],i=r.ref(new Set),s=r.ref({}),a=E=>{i.value.has(E)?i.value.delete(E):i.value.add(E)},l=E=>e.projects.find(D=>D.id===E.projectId),c=E=>{var D;return((D=e.planningData[E])==null?void 0:D.plannedManDays)??0},u=E=>{var D;return((D=e.planningData[E])==null?void 0:D.remainingPlannedManDays)??0},d=E=>{var D;return((D=e.planningData[E])==null?void 0:D.users)??[]},f=E=>e.activities.filter(D=>{var x;return((x=D.sprint)==null?void 0:x.id)===E}).reduce((D,x)=>D+(x.estimation??0),0),p=E=>e.activities.filter(D=>{var $,B;if((($=D.sprint)==null?void 0:$.id)!==E)return!1;const x=(B=D.devStatus)==null?void 0:B.name;return x&&o.includes(x)}).reduce((D,x)=>D+(x.estimation??0),0),m=E=>{const D=c(E);return D<=0?0:f(E)/D},h=E=>s.value[E],g=(E,D)=>{const x=parseFloat(D);isNaN(x)||x<=0?delete s.value[E]:s.value[E]=x},y=E=>{const D=h(E);return D===void 0?0:c(E)*D},C=E=>{const D=y(E);return D<=0?null:f(E)/D},_=E=>{const D=C(E);return D===null?0:Math.round(D*100)},v=E=>{const D=f(E);if(D<=0)return 0;const x=p(E);return Math.round(x/D*100)},b=E=>{const D=f(E),x=p(E);return Math.max(0,D-x)},w=E=>{const D=u(E),x=m(E);return D*x},k=E=>{const D=w(E),x=b(E);return D<=0&&x>0?!1:D<x},T=E=>E.toFixed(1),A=E=>`${E.toFixed(2)} pts / MD`,S=(E,D)=>{const x=new Date(E),$=new Date(D),B={day:"numeric",month:"short"};return`${x.toLocaleDateString("en-UK",B)} – ${$.toLocaleDateString("en-UK",B)}`};return(E,D)=>(r.openBlock(),r.createElementBlock("div",bge,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sprints,x=>{var $;return r.openBlock(),r.createElementBlock("div",{key:x.id,class:"ao-sprint-metrics__section"},[r.createElementVNode("div",{class:"ao-sprint-metrics__header",onClick:B=>a(x.id)},[r.createElementVNode("div",wge,[r.createElementVNode("span",Ege,r.toDisplayString(i.value.has(x.id)?"▸":"▾"),1),r.createElementVNode("span",Sge,r.toDisplayString(x.name),1),r.createElementVNode("span",xge," · "+r.toDisplayString(S(x.startDate,x.endDate)),1),!i.value.has(x.id)&&l(x)?(r.openBlock(),r.createElementBlock("span",Age," · "+r.toDisplayString(($=l(x))==null?void 0:$.name),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__header-right",{"ao-sprint-metrics__header-right--behind":k(x.id)}])},[r.createElementVNode("div",Tge,[r.createElementVNode("div",Nge,[r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__progress-fill",{"ao-sprint-metrics__progress-fill--behind":k(x.id)}]),style:r.normalizeStyle({width:v(x.id)+"%"})},null,6)]),r.createElementVNode("span",Dge,r.toDisplayString(v(x.id))+"% ",1),r.createElementVNode("div",$ge,[D[7]||(D[7]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-title"}," Sprint advancement ",-1)),r.createElementVNode("span",Bge,[D[0]||(D[0]=r.createElementVNode("span",null,"Advancement",-1)),r.createElementVNode("span",null,r.toDisplayString(v(x.id))+"%",1)]),r.createElementVNode("span",Mge,[D[1]||(D[1]=r.createElementVNode("span",null,"Completed",-1)),r.createElementVNode("span",null,r.toDisplayString(T(p(x.id)))+" / "+r.toDisplayString(T(f(x.id)))+" pts ",1)]),r.createElementVNode("span",Lge,[D[2]||(D[2]=r.createElementVNode("span",null,"Remaining",-1)),r.createElementVNode("span",null,r.toDisplayString(T(b(x.id)))+" pts",1)]),D[8]||(D[8]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",Oge,[D[3]||(D[3]=r.createElementVNode("span",null,"Remaining capacity",-1)),r.createElementVNode("span",null,r.toDisplayString(T(w(x.id)))+" pts",1)]),r.createElementVNode("span",Vge,[D[4]||(D[4]=r.createElementVNode("span",null,"Remaining planning",-1)),r.createElementVNode("span",null,r.toDisplayString(T(u(x.id)))+" MD",1)]),r.createElementVNode("span",Ige,[D[5]||(D[5]=r.createElementVNode("span",null,"Estimated velocity",-1)),r.createElementVNode("span",null,r.toDisplayString(A(m(x.id))),1)]),D[9]||(D[9]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",Pge,[D[6]||(D[6]=r.createElementVNode("span",null,"Status",-1)),r.createElementVNode("span",null,r.toDisplayString(k(x.id)?"Behind plan":"On track"),1)])])])],2)],8,kge),r.withDirectives(r.createElementVNode("div",Fge,[r.createElementVNode("div",Rge,[r.createElementVNode("div",zge,[r.createElementVNode("div",Uge,r.toDisplayString(r.unref(n)("sprintMetrics.manDaysPlanned")),1),r.createElementVNode("div",Hge,[r.createElementVNode("span",{class:r.normalizeClass(["ao-sprint-metrics__man-days",{"ao-sprint-metrics__man-days--has-tooltip":d(x.id).length>0}])},[r.createTextVNode(r.toDisplayString(T(c(x.id)))+" MD ",1),d(x.id).length>0?(r.openBlock(),r.createElementBlock("span",qge,[r.createElementVNode("span",jge,r.toDisplayString(T(c(x.id)))+" MD planned ",1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d(x.id),B=>(r.openBlock(),r.createElementBlock("span",{key:B.userId,class:"ao-sprint-metrics__tooltip-row"},[r.createElementVNode("span",null,r.toDisplayString(B.fullName),1),r.createElementVNode("span",null,r.toDisplayString(T(B.plannedManDays))+" MD",1)]))),128))])):r.createCommentVNode("",!0)],2)])]),r.createElementVNode("div",Wge,[r.createElementVNode("div",Zge,r.toDisplayString(r.unref(n)("sprintMetrics.estimatedPoints")),1),r.createElementVNode("div",Kge,r.toDisplayString(T(f(x.id)))+" pts ",1)]),r.createElementVNode("div",Gge,[r.createElementVNode("div",Yge,r.toDisplayString(r.unref(n)("sprintMetrics.targetVelocity")),1),r.createElementVNode("div",Jge,[r.createElementVNode("input",{type:"number",step:"0.1",min:"0",class:"ao-sprint-metrics__input",value:s.value[x.id]??"",placeholder:r.unref(n)("sprintMetrics.targetVelocityPlaceholder"),onInput:B=>g(x.id,B.target.value)},null,40,Xge),D[10]||(D[10]=r.createElementVNode("span",{class:"ao-sprint-metrics__unit"},"pts / MD",-1))]),m(x.id)>0?(r.openBlock(),r.createElementBlock("div",Qge,r.toDisplayString(r.unref(n)("sprintMetrics.currentlyEstimated"))+": "+r.toDisplayString(A(m(x.id))),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",e0e,[r.createElementVNode("div",t0e,r.toDisplayString(r.unref(n)("sprintMetrics.planningProgress")),1),r.createElementVNode("div",n0e,[C(x.id)!==null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(_(x.id))+"% · "+r.toDisplayString(T(f(x.id)))+" / "+r.toDisplayString(T(y(x.id)))+" pts ",1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))])])])],512),[[r.vShow,!i.value.has(x.id)]])])}),128))]))}});const r0e=te(o0e,[["__scopeId","data-v-98b799f1"]]),i0e={class:"ao-feed"},s0e={class:"ao-feed__filters"},a0e={class:"ao-feed__body"},Jc=r.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},devStatuses:{default:()=>[]},project:{default:void 0},projects:{default:()=>[]},filters:{},activityTypes:{default:()=>[]},users:{},userId:{},initialActivityId:{default:void 0},initialActivitySlug:{default:void 0},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{default:void 0},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0},feedMode:{default:"standard"},sprints:{default:()=>[]},activitySprints:{default:()=>[]},milestones:{default:()=>[]},sprintPlanningData:{default:()=>({})},activityHistory:{default:()=>[]},activityHistoryLoading:{type:Boolean,default:!1}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer","createSprint","fetchHistory"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e;function s(R,re){i("toast",R,re)}const a=r.toRef(o,"activities"),l=r.computed(()=>o.feedMode==="dev"?o.devStatuses:o.statuses),c=r.computed(()=>o.feedMode==="dev"?a.value.filter(R=>R.activityType==="dev"):a.value),u=async(R,re)=>{await i("selectActivity",R,re)},d=r.ref({}),f=r.ref(!1),p=r.ref(!1),m=r.computed(()=>o.project?"milestone":"project");r.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([R,re,he,pe],[Ke,De])=>{const $e=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(R.map(Fe=>[Fe.id,re.filter(Ye=>{const Je=Ye[$e];return(Je==null?void 0:Je.id)===Fe.id})])),he&&!f.value?(u(he,null),f.value=!0):pe&&!f.value&&(u(null,pe),f.value=!0),p.value&&Wn(re,De)},{immediate:!0});const h=r.computed(()=>{var R;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((R=o.selectedActivity.milestone.phase)==null?void 0:R.name)??""} / ${o.selectedActivity.milestone.name??""}`}),g=R=>{var Fe;const re=o.feedMode==="dev"?o.activities.filter(Ye=>Ye.activityType==="dev"):o.activities,he=re==null?void 0:re.at(-1),pe=he?Xe.LexoRank.parse(he.rank).genNext():Xe.LexoRank.middle(),Ke=((Fe=o.activities)==null?void 0:Fe.length)??0,De=o.feedMode==="dev",$e={name:n("activity.defaultName",{idx:Ke+1}),rank:pe.format(),...De?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&($e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&($e.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Ye=o.sprints.find(Je=>Je.id===o.filters.sprintId[0]);Ye&&($e.sprintId=Ye.id,$e.projectId=Ye.projectId)}p.value=!0,i("addActivity",$e)},y=R=>{var Fe,Ye;const re=o.feedMode==="dev"?"devStatus":"status",he=((Fe=o.activities)==null?void 0:Fe.filter(Je=>{const Me=Je[re];return(Me==null?void 0:Me.id)===R.id}))??[],pe=ns(he),Ke=((Ye=o.activities)==null?void 0:Ye.length)??0,De=o.feedMode==="dev",$e={name:n("activity.defaultName",{idx:Ke+1}),rank:pe,...De?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&($e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&($e.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Je=o.sprints.find(Me=>Me.id===o.filters.sprintId[0]);Je&&($e.sprintId=Je.id,$e.projectId=Je.projectId)}p.value=!0,i("addActivity",$e)},C=(R,re)=>{p.value=!1,i("update:filters",{...o.filters,[R]:re})},_=r.computed(()=>o.project?[o.project]:o.projects??[]),v=r.computed(()=>_.value.map(R=>({value:R.id,label:R.name}))),b=r.computed(()=>o.sprints.map(R=>({value:R.id,label:`${R.name} · ${R.startDate} – ${R.endDate}`,startDate:R.startDate,endDate:R.endDate,projectId:R.projectId}))),w=r.computed(()=>{const R=o.filters[an.sprint]??[];return o.sprints.filter(re=>R.includes(re.id))}),k=r.computed(()=>{var he;const R=o.filters[an.project]??[],re=(he=o.project)!=null&&he.id?[o.project.id]:[];return[...R,...re]}),T=r.computed(()=>o.milestones.map(R=>{var re;return{value:R.id,label:(re=R.phase)!=null&&re.name?`${R.phase.name} - ${R.name}`:R.name,color:R.color,important:R.important}}));r.computed(()=>{var R;return(R=o.activityTypes)==null?void 0:R.map(re=>({value:re.id,label:re.name}))});const A=r.computed(()=>o.users.map(R=>({value:R.id,label:`${R.firstName} ${R.lastName}`,avatar:R.avatarUrl}))),S=R=>{o.selectedActivity&&i("update:activity",R)},E=R=>{i("update:activity",R)},D=R=>{i("archiveActivity",R)},x=R=>{i("unarchiveActivity",R)},$=R=>{var re;i("startTimer",R),(re=window.parent)==null||re.postMessage({type:"startTimer",data:R},"*")},B=R=>{p.value=!1,i("update:searchText",R)},V=R=>{p.value=!1,i("clear:searchText",R)},I=R=>{o.selectedActivity&&i("addSubtask",R)},W=R=>{o.selectedActivity&&i("updateSubtask",R)},P=R=>{o.selectedActivity&&i("deleteSubtask",R)},H=R=>{i("addFiles",R)},Q=R=>{i("removeFile",R)},le=R=>{o.selectedActivity&&i("addComment",{...R,activityId:o.selectedActivity.id})},oe=R=>{const{id:re}=o.selectedActivity||{};re&&i("updateComment",R)},Ne=R=>{const{id:re}=o.selectedActivity||{};re&&i("removeComment",R)},ce=$r.useRouter(),ne=$r.useRoute(),z=r.ref("feed");r.watch(()=>ne.name,R=>{R===Po.feed||R==="ActivityFeed"||R==="ActivityFeedWithActivity"?z.value="feed":R===Po.dev||R==="ActivityFeedDev"||R==="ActivityFeedDevWithActivity"?z.value="dev":R===Pe.feed?z.value="feed":R===Pe.dev?z.value="dev":R===Pe.project?z.value="overview":R===Pe.mapping&&(z.value="mapping")},{immediate:!0});const F=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],se=r.computed(()=>Ee.value?F.filter(R=>R.value==="feed"||R.value==="dev"):F),Ee=r.computed(()=>!o.project&&ne.name&&(ne.name===Po.feed||ne.name===Po.dev||ne.name==="ActivityFeed"||ne.name==="ActivityFeedDev"||ne.name==="ActivityFeedWithActivity"||ne.name==="ActivityFeedDevWithActivity")),Ue=r.computed(()=>Ee.value?Po.feed:Pe.feed),we=r.computed(()=>Ee.value?Po.dev:Pe.dev),Ce=r.computed(()=>Pe.project),yt=r.computed(()=>Pe.mapping);return r.watch(z,R=>{R==="feed"?ce.push({name:Ue.value}):R==="dev"?ce.push({name:we.value}):R==="overview"?ce.push({name:Ce.value}):R==="mapping"&&ce.push({name:yt.value})}),(R,re)=>{var he;return r.openBlock(),r.createElementBlock("div",i0e,[r.createVNode(os,null,{primary:r.withCtx(()=>[r.createElementVNode("div",s0e,[r.createVNode(gs,{modelValue:z.value,"onUpdate:modelValue":re[0]||(re[0]=pe=>z.value=pe),tabs:se.value},null,8,["modelValue","tabs"]),r.createVNode(Cge,{"model-value":t.searchText,placeholder:R.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":B,onClear:V},null,8,["model-value","placeholder"]),o.project?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(ft,{key:0,"model-value":t.filters[r.unref(an).project],mode:"tags",options:v.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:R.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":re[1]||(re[1]=pe=>C(r.unref(an).project,pe))},null,8,["model-value","options","placeholder"])),t.feedMode==="dev"?(r.openBlock(),r.createBlock(ft,{key:1,"model-value":t.filters[r.unref(an).sprint],mode:"tags",options:b.value,"close-on-select":!1,searchable:!0,disabled:!b.value.length,class:"ao-feed__filter ao-feed__filter__sprints",placeholder:R.$t("feed.filters.sprint.placeholder"),"onUpdate:modelValue":re[2]||(re[2]=pe=>C(r.unref(an).sprint,pe))},null,8,["model-value","options","disabled","placeholder"])):r.createCommentVNode("",!0),r.createVNode(ft,{"model-value":t.filters[r.unref(an).milestone],mode:"tags",options:T.value,"close-on-select":!1,"clear-on-select":!1,searchable:!0,disabled:k.value.length===0,class:"ao-feed__filter ao-feed__filter__milestones",placeholder:R.$t("feed.filters.milestone.placeholder"),"onUpdate:modelValue":re[3]||(re[3]=pe=>C(r.unref(an).milestone,pe))},null,8,["model-value","options","disabled","placeholder"]),A.value.length?(r.openBlock(),r.createBlock(ft,{key:2,"model-value":t.filters[r.unref(an).assignee],mode:"tags",options:A.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:R.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":re[4]||(re[4]=pe=>C(r.unref(an).assignee,pe))},{tag:r.withCtx(({option:pe,handleTagRemove:Ke})=>[r.createVNode(Xn,{"user-name":pe.label,"avatar-url":pe.avatar,"is-closable":!0,onClose:De=>Ke(pe,De)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):r.createCommentVNode("",!0)]),r.createVNode(de,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:re[5]||(re[5]=pe=>R.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),r.createVNode(de,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:re[6]||(re[6]=pe=>R.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:re[7]||(re[7]=pe=>R.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),t.feedMode==="dev"&&w.value.length>0?(r.openBlock(),r.createBlock(r0e,{key:0,sprints:w.value,activities:c.value,"planning-data":t.sprintPlanningData,projects:_.value},null,8,["sprints","activities","planning-data","projects"])):r.createCommentVNode("",!0),r.createElementVNode("div",a0e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,pe=>(r.openBlock(),r.createBlock(vge,{key:pe.id,status:pe,list:d.value[pe.id],title:pe.name,"footer-label":R.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":m.value,"show-header-add":t.isEditable,"is-dev-mode":t.feedMode==="dev",onAdd:()=>g(pe),onAddAtBeginning:()=>y(pe),onSelectActivity:u,onArchiveActivity:D,onUnarchiveActivity:x,onUpdateActivity:E,onStartTimer:$},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","is-dev-mode","onAdd","onAddAtBeginning"]))),128))]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.selectedActivity?(r.openBlock(),r.createBlock(id,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(he=t.selectedActivity.milestone)==null?void 0:he.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:h.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:_.value,"time-tracking-data":t.timeTrackingData,history:t.activityHistory,"history-loading":t.activityHistoryLoading,"load-attachment-preview":o.loadAttachmentPreview,sprints:t.activitySprints,onClose:re[8]||(re[8]=()=>u(null,null)),onFetchHistory:re[9]||(re[9]=()=>i("fetchHistory")),"onUpdate:activity":S,onAddSubtask:I,onUpdateSubtask:W,onDeleteSubtask:P,onAddFiles:H,onRemoveFile:Q,onAddComment:le,onUpdateComment:oe,onRemoveComment:Ne,onToast:s,onCreateSprint:re[10]||(re[10]=pe=>i("createSprint",pe))},{default:r.withCtx(pe=>[r.renderSlot(R.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(pe)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","history","history-loading","load-attachment-preview","sprints"])):r.createCommentVNode("",!0)]))])}}});const l0e={class:"ao-project-mapping"},c0e={class:"ao-project-mapping-mapping__body"},u0e={class:"ao-project-mapping-mapping__phases"},d0e={key:0,class:"ao-project-mapping-mapping__image-wrapper"},f0e=["src","alt"],p0e=r.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=()=>{const{name:_,rank:v}=Ko(o.phases,"phase",n);i("addPhase",{name:_,rank:v,projectId:o.project.id})},a=()=>{const _=n("template.defaultName.phase",{idx:1}),v=ns(o.phases);i("addPhase",{name:_,rank:v,projectId:o.project.id})},l=_=>{i("updatePhase",_)},c=_=>{i("archivePhase",_)},u=_=>{i("unarchivePhase",_)},d=_=>{i("copyPhaseToTemplate",_)},f=r.ref(!1),p=r.ref(!1),m=(_,v)=>{i("applyTemplate",{templateId:_,projectId:v}),f.value=!1},h=(_,v)=>{var k;const b=(k=o.templates)==null?void 0:k.at(-1),w=b?Xe.LexoRank.parse(b.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:_,rank:w.format(),phaseIds:v}),p.value=!1},g=$r.useRouter(),y=r.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(y,_=>{_==="feed"?(g.push({name:Pe.feed}),console.log("Navigating to feed...")):_==="dev"?(g.push({name:Pe.dev}),console.log("Navigating to dev...")):_==="overview"?(g.push({name:Pe.project}),console.log("Navigating to feed...")):_==="mapping"&&(g.push({name:Pe.mapping}),console.log("Navigating to feed..."))}),(_,v)=>{var b;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-mapping-overview"},_.$attrs),[r.createElementVNode("div",l0e,[r.createVNode(os,null,{primary:r.withCtx(()=>[r.createVNode(gs,{modelValue:y.value,"onUpdate:modelValue":v[0]||(v[0]=w=>y.value=w),tabs:C},null,8,["modelValue"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:_.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:v[1]||(v[1]=w=>_.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:0,class:"ao-mapping__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:_.$t("project.phase.add"),onClick:a},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:1,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:_.$t("project.template.save.label"),onClick:v[2]||(v[2]=w=>p.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-project-mapping-overview__add-template",color:"primary",label:_.$t("project.template.apply.label"),onClick:v[3]||(v[3]=w=>f.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",c0e,[r.createElementVNode("div",u0e,[r.createVNode(vd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(b=t.project)==null?void 0:b.estimationUnit,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(r.openBlock(),r.createElementBlock("div",d0e,[r.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:r.unref(n)("architectureImage.alt")},null,8,f0e)])):r.createCommentVNode("",!0)])])],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[p.value?(r.openBlock(),r.createBlock(Yg,{key:0,phases:t.phases,onClose:v[4]||(v[4]=w=>p.value=!1),onSave:h},null,8,["phases"])):r.createCommentVNode("",!0),f.value?(r.openBlock(),r.createBlock(Gg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:v[5]||(v[5]=w=>f.value=!1),onApply:m},null,8,["project-id","templates"])):r.createCommentVNode("",!0)]))],64)}}});const Ho={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},m0e=(t,e={})=>[{path:t,name:Ho.TEMPLATES,redirect:{name:Ho.TEMPLATES_LIST},...e,children:[{path:"",name:Ho.TEMPLATES_LIST,component:Jg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Ho.TEMPLATE_DETAILS,component:Wg,props:!0}]}],Pe={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Po={feed:"ActivityFeed",dev:"ActivityFeedDev"},h0e=(t,e={})=>[{path:t,...e,redirect:{name:Pe.project},children:[{path:"",name:Pe.project,component:ahe,props:!0,children:[{path:":phaseId/:milestoneId",name:Pe.milestone,component:bp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Pe.activity,props:{default:!0,modal:!0},components:{default:bp,modal:Yhe}}]},{path:"feed",name:Pe.feed,component:Jc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Pe.dev,component:Jc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Pe.mapping,component:p0e,props:!0}]}],g0e={class:"ao-templates"},Jg=r.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e;r.watch(()=>o.templates,(u,d)=>{Wn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?Xe.LexoRank.parse(u.rank).genNext():Xe.LexoRank.middle(),f=((h=o.templates)==null?void 0:h.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};i("addTemplate",p)},a=(u,d)=>{i("updateItem",{itemType:je.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{i("removeItem",{itemType:je.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=ts(u,o.templates??[]);i("updateItem",{itemType:je.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(r.openBlock(),r.createElementBlock("div",g0e,[r.createVNode(os,null,{secondary:r.withCtx(()=>[r.createVNode(de,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),r.createVNode(r.unref(wo),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:r.withCtx(({element:f})=>{var p;return[r.createVNode(e7,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?r.unref(EC)(f.phases):0,activities:f.phases?r.unref(SC)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:m=>a(f.id,m),onClick:m=>u.$router.push({name:r.unref(Ho).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:d[0]||(d[0]=(m,h)=>l(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const v0e={class:"ao-field__label"},Xg=r.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[r.createElementVNode("span",v0e,r.toDisplayString(t.label),1),r.renderSlot(e.$slots,"default")],2))}}),_0e=["type","value","disabled","readonly"],y0e=r.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(r.openBlock(),r.createBlock(Xg,{label:t.label},{default:r.withCtx(()=>[r.createElementVNode("input",r.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[r.toHandlerKey(i.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,_0e)]),_:1},8,["label"]))}}),C0e={class:"ao-field"},b0e={class:"ao-field__label"},k0e=["checked","disabled"],Qg=r.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("label",C0e,[r.createElementVNode("span",b0e,r.toDisplayString(t.label),1),r.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var i;return e.$emit("update:modelValue",((i=o.target)==null?void 0:i.checked)??!1)})},null,40,k0e)]))}}),w0e={class:"ao-audit-config"},E0e={key:0,class:"ao-audit-config__loading"},S0e={key:1,class:"ao-audit-config__error"},x0e={key:2,class:"ao-audit-config__empty"},A0e={key:3,class:"ao-audit-config__table"},T0e={class:"ao-audit-config__th ao-audit-config__th--table"},N0e={class:"ao-audit-config__th ao-audit-config__th--audit"},D0e={class:"ao-audit-config__th ao-audit-config__th--excluded"},$0e={class:"ao-audit-config__td ao-audit-config__td--table"},B0e={class:"ao-audit-config__table-name"},M0e={key:0,class:"ao-audit-config__schema"},L0e={class:"ao-audit-config__td ao-audit-config__td--audit"},O0e={class:"ao-audit-config__checkbox"},V0e={class:"ao-audit-config__td ao-audit-config__td--excluded"},I0e={key:0,class:"ao-audit-config__disabled-note"},P0e={class:"ao-audit-config__option"},F0e=["title"],R0e={key:0,class:"ao-audit-config__all-tracked"},z0e=r.defineComponent({__name:"AoAuditConfigTable",props:{tables:{},loading:{type:Boolean,default:!1},error:{default:null},disabled:{type:Boolean,default:!1}},emits:["update"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Nt(),s=r.computed(()=>n.tables);function a(u){return u.columns.map(d=>({value:d.name,label:d.name,isPrimaryKey:d.isPrimaryKey}))}function l(u,d){o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:d,excludeColumns:u.excludeColumns})}function c(u,d){const f=Array.from(new Set(d??[]));o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:u.isEnabled,excludeColumns:f})}return(u,d)=>(r.openBlock(),r.createElementBlock("div",w0e,[t.loading?(r.openBlock(),r.createElementBlock("div",E0e,r.toDisplayString(r.unref(i)("audit.loading")),1)):t.error?(r.openBlock(),r.createElementBlock("div",S0e,r.toDisplayString(r.unref(i)("audit.error",{message:t.error})),1)):s.value.length?(r.openBlock(),r.createElementBlock("table",A0e,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[r.createElementVNode("th",T0e,r.toDisplayString(r.unref(i)("audit.tableHeader")),1),r.createElementVNode("th",N0e,r.toDisplayString(r.unref(i)("audit.auditHeader")),1),r.createElementVNode("th",D0e,r.toDisplayString(r.unref(i)("audit.ignoredHeader")),1)])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,f=>(r.openBlock(),r.createElementBlock("tr",{key:`${f.schemaName}.${f.tableName}`},[r.createElementVNode("td",$0e,[r.createElementVNode("span",B0e,r.toDisplayString(f.tableName),1),f.schemaName!=="public"?(r.openBlock(),r.createElementBlock("span",M0e,r.toDisplayString(f.schemaName),1)):r.createCommentVNode("",!0)]),r.createElementVNode("td",L0e,[r.createElementVNode("div",O0e,[r.createVNode(Qg,{label:"","model-value":f.isEnabled,"is-disabled":t.disabled,"is-readonly":!1,"onUpdate:modelValue":p=>l(f,p)},null,8,["model-value","is-disabled","onUpdate:modelValue"])])]),r.createElementVNode("td",V0e,[f.isEnabled?(r.openBlock(),r.createBlock(ft,{key:1,"model-value":f.excludeColumns,class:"ao-audit-config__multiselect",mode:"tags","value-prop":"value",label:"label","track-by":"label","close-on-select":!1,searchable:!0,options:a(f),disabled:t.disabled,caret:!t.disabled,"onUpdate:modelValue":p=>c(f,p)},{option:r.withCtx(({option:p})=>[r.createElementVNode("span",P0e,[r.createTextVNode(r.toDisplayString(p.label)+" ",1),p.isPrimaryKey?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-audit-config__pk",title:r.unref(i)("audit.primaryKey")}," PK ",8,F0e)):r.createCommentVNode("",!0)])]),placeholder:r.withCtx(()=>[f.excludeColumns.length===0?(r.openBlock(),r.createElementBlock("span",R0e,r.toDisplayString(r.unref(i)("audit.allTracked")),1)):r.createCommentVNode("",!0)]),_:2},1032,["model-value","options","disabled","caret","onUpdate:modelValue"])):(r.openBlock(),r.createElementBlock("div",I0e,r.toDisplayString(r.unref(i)("audit.auditDisabled")),1))])]))),128))])])):(r.openBlock(),r.createElementBlock("div",x0e,r.toDisplayString(r.unref(i)("audit.empty")),1))]))}});const U0e={class:"ao-sprint-list"},H0e={class:"ao-sprint-list__header"},q0e={class:"ao-sprint-list__title-group"},j0e={class:"ao-sprint-list__count"},W0e={class:"ao-sprint-list__actions"},Z0e={key:0,class:"ao-sprint-list__toggle"},K0e={key:0,class:"ao-sprint-list__row ao-sprint-list__row--editing"},G0e=["title","onClick"],Y0e=["placeholder"],J0e={class:"ao-sprint-list__date-fields"},X0e={class:"ao-sprint-list__row-actions"},Q0e={class:"ao-sprint-list__rows"},eve={class:"ao-sprint-list__identity"},tve={class:"ao-sprint-list__name-group"},nve={class:"ao-sprint-list__name"},ove={key:0,class:"ao-sprint-list__archived-badge"},rve={class:"ao-sprint-list__dates"},ive={key:0,class:"ao-sprint-list__row-actions"},sve=["title","onClick"],ave={class:"ao-sprint-list__date-fields"},lve={class:"ao-sprint-list__row-actions"},cve={key:1,class:"ao-sprint-list__empty"},uve=r.defineComponent({__name:"AoSprintList",props:{sprints:{},isEditable:{type:Boolean}},emits:["updateSprint","archiveSprint","unarchiveSprint","createSprint"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Nt(),s=r.ref(!1),a=r.computed(()=>s.value?n.sprints:n.sprints.filter(A=>A.active)),l=r.ref(null),c=r.ref({name:"",startDate:"",endDate:"",color:""}),u=r.ref(null),d=r.ref(null),f=A=>{l.value=A.id,c.value={name:A.name,startDate:A.startDate,endDate:A.endDate,color:A.color||""}},p=()=>{l.value=null,c.value={name:"",startDate:"",endDate:"",color:""}},m=A=>{o("updateSprint",{id:A,name:c.value.name||void 0,startDate:c.value.startDate||void 0,endDate:c.value.endDate||void 0,color:c.value.color||void 0}),p()},h=A=>{confirm(i("sprint.confirmArchive"))&&o("archiveSprint",{id:A})},g=A=>{o("unarchiveSprint",{id:A})},y=A=>Qc(Br(A),"dd/MM/yy"),C=()=>n.sprints.reduce((S,E)=>{const D=E.name.match(/^Sprint\s*(\d+)$/);return D?Math.max(S,parseInt(D[1],10)):S},0)+1,_=r.ref(!1),v=r.ref({name:"",startDate:"",endDate:"",color:"#4f5cff"}),b=()=>{_.value=!0,l.value=null,v.value={name:`Sprint ${C()}`,startDate:"",endDate:"",color:"#4f5cff"}},w=()=>{_.value=!1,v.value={name:"",startDate:"",endDate:"",color:"#4f5cff"}},k=()=>{!v.value.name||!v.value.startDate||!v.value.endDate||(o("createSprint",{name:v.value.name,startDate:v.value.startDate,endDate:v.value.endDate,color:v.value.color||void 0}),w())},T=r.computed(()=>_.value?!!(v.value.name&&v.value.startDate&&v.value.endDate):l.value?!!(c.value.name&&c.value.startDate&&c.value.endDate):!1);return(A,S)=>(r.openBlock(),r.createElementBlock("section",U0e,[r.createElementVNode("div",H0e,[r.createElementVNode("div",q0e,[r.createElementVNode("h3",null,r.toDisplayString(r.unref(i)("sprint.planning")),1),r.createElementVNode("span",j0e,r.toDisplayString(a.value.length),1)]),r.createElementVNode("div",W0e,[t.sprints.some(E=>!E.active)?(r.openBlock(),r.createElementBlock("label",Z0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[0]||(S[0]=E=>s.value=E),type:"checkbox"},null,512),[[r.vModelCheckbox,s.value]]),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("sprint.showArchived")),1)])):r.createCommentVNode("",!0),t.isEditable&&!_.value?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"solid",size:"sm","icon-name":"Add","icon-position":"start",label:r.unref(i)("sprint.add"),onClick:b},null,8,["label"])):r.createCommentVNode("",!0)])]),_.value?(r.openBlock(),r.createElementBlock("div",K0e,[r.createVNode(jr,{color:v.value.color,"onUpdate:color":S[1]||(S[1]=E=>v.value.color=E)},{clickable:r.withCtx(({openPicker:E,bgColor:D})=>[r.createElementVNode("button",{ref_key:"colorTriggerRef",ref:u,class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:D}),title:r.unref(i)("sprint.color"),onClick:x=>E(x.currentTarget)},null,12,G0e)]),_:1},8,["color"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[2]||(S[2]=E=>v.value.name=E),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--name",placeholder:r.unref(i)("sprint.name")},null,8,Y0e),[[r.vModelText,v.value.name]]),r.createElementVNode("div",J0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[3]||(S[3]=E=>v.value.startDate=E),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,v.value.startDate]]),S[9]||(S[9]=r.createElementVNode("span",{class:"ao-sprint-list__date-separator"},"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[4]||(S[4]=E=>v.value.endDate=E),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,v.value.endDate]])]),r.createElementVNode("div",X0e,[r.createVNode(de,{color:"success",variant:"ghost",size:"sm","icon-name":"CheckSmallRounded",disabled:!T.value,title:r.unref(i)("common.save"),onClick:k},null,8,["disabled","title"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm","icon-name":"CloseRounded",title:r.unref(i)("common.cancel"),onClick:w},null,8,["title"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",Q0e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,E=>(r.openBlock(),r.createElementBlock("div",{key:E.id,class:r.normalizeClass(["ao-sprint-list__row",{"ao-sprint-list__row--archived":!E.active,"ao-sprint-list__row--editing":l.value===E.id}])},[l.value!==E.id?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",eve,[r.createElementVNode("span",{class:"ao-sprint-list__color-dot",style:r.normalizeStyle({backgroundColor:E.color||"var(--ao-color-primary-base)"})},null,4),r.createElementVNode("div",tve,[r.createElementVNode("span",nve,r.toDisplayString(E.name),1),E.active?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",ove,r.toDisplayString(r.unref(i)("sprint.archived")),1))])]),r.createElementVNode("div",rve,[r.createVNode(ke,{name:"CalendarTodayOutlineRounded",size:"sm"}),r.createElementVNode("span",null,r.toDisplayString(y(E.startDate))+" – "+r.toDisplayString(y(E.endDate)),1)]),t.isEditable?(r.openBlock(),r.createElementBlock("div",ive,[r.createVNode(de,{color:"neutral",variant:"ghost",size:"md","icon-name":"EditOutline","icon-position":"start",title:r.unref(i)("common.edit"),onClick:D=>f(E)},null,8,["title","onClick"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"md",corners:"round","icon-position":"start","icon-name":(E.active,"ArchiveOutlineRounded"),label:E.active?r.unref(i)("sprint.archive"):r.unref(i)("sprint.unarchive"),onClick:D=>E.active?h(E.id):g(E.id)},null,8,["icon-name","label","onClick"])])):r.createCommentVNode("",!0)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(jr,{color:c.value.color,"onUpdate:color":S[5]||(S[5]=D=>c.value.color=D)},{clickable:r.withCtx(({openPicker:D,bgColor:x})=>[r.createElementVNode("button",{ref_for:!0,ref_key:"colorTriggerEditRef",ref:d,class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:x}),title:r.unref(i)("sprint.color"),onClick:$=>D($.currentTarget)},null,12,sve)]),_:1},8,["color"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[6]||(S[6]=D=>c.value.name=D),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--name"},null,512),[[r.vModelText,c.value.name]]),r.createElementVNode("div",ave,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[7]||(S[7]=D=>c.value.startDate=D),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,c.value.startDate]]),S[10]||(S[10]=r.createElementVNode("span",{class:"ao-sprint-list__date-separator"},"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[8]||(S[8]=D=>c.value.endDate=D),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,c.value.endDate]])]),r.createElementVNode("div",lve,[r.createVNode(de,{color:"success",variant:"ghost",size:"md","icon-name":"CheckSmallRounded",disabled:!T.value,title:r.unref(i)("common.save"),onClick:D=>m(E.id)},null,8,["disabled","title","onClick"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"md","icon-name":"CloseRounded",title:r.unref(i)("common.cancel"),onClick:p},null,8,["title"])])],64))],2))),128))]),a.value.length===0&&!_.value?(r.openBlock(),r.createElementBlock("div",cve,r.toDisplayString(r.unref(i)("sprint.noSprints")),1)):r.createCommentVNode("",!0)]))}});const dve=te(uve,[["__scopeId","data-v-698944ea"]]);exports.AoAuditConfigTable=z0e;exports.AoAvatar=Xn;exports.AoCardFeed=_d;exports.AoCheckboxField=Qg;exports.AoColorPicker=jr;exports.AoFeed=Jc;exports.AoField=Xg;exports.AoHistory=jg;exports.AoInputField=y0e;exports.AoMultiselect=ft;exports.AoProjectPhases=vd;exports.AoSprintList=dve;exports.AoTabBar=gs;exports.AoTemplateDetails=Wg;exports.AoTemplates=l0;exports.AoTemplatesList=Jg;exports.EstimationUnit=Tp;exports.TemplateItemTypeEnum=Ap;exports.activityFeedRoutes=Po;exports.activityFeedStatus=V3;exports.durationTypes=O3;exports.feedFilterTypes=an;exports.getProjectOverviewRoutes=h0e;exports.getTemplateRoutes=m0e;exports.listUpdateTypes=I3;exports.milestoneStatus=Pi;exports.projectOverviewRoutes=Pe;exports.ruleComparators=Ep;exports.ruleDurationUnits=xp;exports.ruleTriggerTypes=Sp;exports.templateItemType=je;exports.templateRouteNames=Ho;
62
+ ...`),m=r.computed(()=>n.placeholder||p.value),h=r.computed(()=>s.value.trim().length>0&&d.value.valid&&d.value.data.length>0&&!n.isLoading),g=r.computed(()=>{const b=w=>w.reduce((k,A)=>k+1+b(A.children??[]),0);return b(d.value.data)});r.watch(()=>n.open,async b=>{var w;b&&(s.value="",await r.nextTick(),(w=a.value)==null||w.focus())},{immediate:!0});const y=()=>{n.isLoading||(o("update:open",!1),o("close"))},C=()=>{h.value&&o("submit",d.value.data)},v=b=>String(b===0?i("project.bulk.modal.noSpace"):b===1?i("project.bulk.modal.oneSpace"):i("project.bulk.modal.spaces",{count:b})),_=b=>String(i(c[b.code],b.params??{}));return(b,w)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.open?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-modal__wrapper","ao-bulk-insert-modal__wrapper",`ao-modal__wrapper--${t.size}`]),onKeydown:r.withKeys(r.withModifiers(y,["stop"]),["esc"])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:y}),r.createElementVNode("div",ime,[r.createElementVNode("div",sme,[r.createElementVNode("div",ame,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:y})]),r.createElementVNode("header",lme,[r.createVNode(gt,{title:t.title,level:3},null,8,["title"])])]),r.createElementVNode("div",cme,[r.createElementVNode("form",{class:"ao-bulk-insert-modal__form",onSubmit:r.withModifiers(C,["prevent"])},[t.hint?(r.openBlock(),r.createElementBlock("p",ume,r.toDisplayString(t.hint),1)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("textarea",{ref_key:"textareaRef",ref:a,"onUpdate:modelValue":w[0]||(w[0]=k=>s.value=k),class:"ao-bulk-insert-modal__textarea",placeholder:m.value,disabled:t.isLoading,rows:"9",spellcheck:"false"},null,8,dme),[[r.vModelText,s.value]]),d.value.errors.length>0?(r.openBlock(),r.createElementBlock("div",fme,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value.errors,k=>(r.openBlock(),r.createElementBlock("p",{key:`${k.line}-${k.code}`,class:"ao-bulk-insert-modal__error"},r.toDisplayString(r.unref(i)("project.bulk.modal.lineError",{line:k.line,message:_(k)})),1))),128))])):s.value.trim().length>0?(r.openBlock(),r.createElementBlock("p",pme,r.toDisplayString(r.unref(i)("project.bulk.modal.count",{count:g.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",mme,[r.createElementVNode("span",hme,r.toDisplayString(r.unref(i)("project.bulk.modal.indentation")),1),r.createElementVNode("div",gme,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value.levels,(k,A)=>(r.openBlock(),r.createElementBlock("div",{key:k,class:"ao-bulk-insert-modal__help-row"},[r.createElementVNode("span",vme,r.toDisplayString(f(k)),1),r.createElementVNode("span",_me,r.toDisplayString(v(A)),1)]))),128))])]),r.createElementVNode("footer",yme,[r.createVNode(de,{color:"primary",variant:"ghost",label:r.unref(i)("common.cancel"),disabled:t.isLoading,onClick:y},null,8,["label","disabled"]),r.createVNode(de,{type:"submit",color:"primary",variant:"solid",label:r.unref(i)("common.create"),"is-loading":t.isLoading,disabled:!h.value},null,8,["label","is-loading","disabled"])])],32)])])],42,rme)):r.createCommentVNode("",!0)]))}});function gd(t,e){return(t.children??[]).filter(n=>n.type===e)}function Cme(t){return gd(t,"task").map(e=>({name:e.name}))}function Kg(t,e=[]){const n=t.filter(i=>i.type==="activity"),o=tu(e,n.length);return n.map((i,s)=>{const a=Cme(i);return{name:i.name,rank:o[s],...a.length?{tasks:a}:{}}})}function bme(t,e){return Kg(t,e)}function Gg(t,e){const n=t.filter(i=>i.type==="milestone"),o=tu(e,n.length);return n.map((i,s)=>{const a=Kg(gd(i,"activity"));return{name:i.name,rank:o[s],...a.length?{activities:a}:{}}})}function kme(t,e){const n=t.filter(i=>i.type==="phase"),o=tu(e,n.length);return n.map((i,s)=>{const a=Gg(gd(i,"milestone"),[]);return{name:i.name,rank:o[s],...a.length?{milestones:a}:{}}})}const wme={class:"ao-mapping-card-project-phase__header"},Eme={class:"ao-card-project-item__title-line"},Sme={key:0,class:"ao-card-project-item-phase__estimation"},xme={class:"ao-mapping-card-project-phase__footer"},Tme={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Ame={class:"ao-mapping-card-project-phase__subitem"},Nme={class:"ao-mapping-card-project-phase__subitem"},Dme={key:0,class:"ao-mapping-card-project-phase__secondary"},$me={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Bme=r.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,i=g=>{o("update:title",g)},s=r.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>Ma(a.value,n.estimationUnit)),u=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Pi.done).length}),f=r.computed(()=>(d.value||0)/(u.value||1)),p=r.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=r.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y()};return(g,y)=>(r.openBlock(),r.createBlock(jr,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:r.withCtx(({openPicker:C,bgColor:v})=>[r.createVNode(ml,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",Eme,[r.createVNode(gt,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":i},null,8,["id","title","is-editable"]),s.value||a.value?(r.openBlock(),r.createElementBlock("span",Sme," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",xme,[u.value?(r.openBlock(),r.createElementBlock("div",Tme,[r.createElementVNode("div",Ame,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",Nme,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(hl,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Dme,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=_=>p.value=_),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,p.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",$me,r.toDisplayString(r.unref(La)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",wme,[r.createVNode(de,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[0]=r.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Mme={class:"ao-project-phase"},Lme={key:0,class:"ao-project-phase__drag ao-card__drag"},Ome={key:1,class:"ao-project-phase__col-phase"},Vme={key:2,class:"ao-mapping-project-phase__col-phase"},Ime={key:0,class:"ao-project-phase__col-milestones"},Pme=["title","onClick"],Fme=["onClick"],Rme=["onClick"],zme={class:"ao-project-phase__milestones-list-footer"},Ume=r.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e;r.watch(()=>o.phase.milestones,(T,S)=>{Wn(T,S)});const s=T=>{i("updatePhase",{id:o.phase.id,name:T})},a=T=>{i("updatePhase",{id:o.phase.id,deadline:T})},l=T=>{i("updatePhase",T)},c=r.computed(()=>o.phase.milestones.map(T=>NC(T,o.closedStatus))),u=T=>{const{name:S,rank:E}=Ko(c.value??[],"milestone",n);i("addMilestone",{name:S,rank:E,phaseId:T})},d=T=>{const S=n("template.defaultName.milestone",{idx:1}),E=ns(c.value??[]);i("addMilestone",{name:S,rank:E,phaseId:T})},f=T=>{i("updateMilestone",T)},p=T=>{i("archiveMilestone",T)},m=T=>{i("unarchiveMilestone",T)},h=T=>{i("archivePhase",T)},g=T=>{i("unarchivePhase",T)},y=T=>{"added"in T?i("updateMilestone",{id:T.added.element.id,phaseId:o.phase.id,rank:Mr(c.value,T.added.newIndex)}):"removed"in T||"moved"in T&&i("updateMilestone",{id:T.moved.element.id,rank:Mr(c.value,T.moved.newIndex)})},C=r.ref(!1),v=r.ref(!1),_=T=>{v.value=!0;const S=Gg(T,o.phase.milestones??[]);i("bulkAddMilestone",{phaseId:o.phase.id,milestones:S,onSuccess:()=>{v.value=!1,C.value=!1},onError:()=>{v.value=!1}})};r.watch(C,T=>{T&&(v.value=!1)});const b=$r.useRoute(),w=r.computed(()=>b.path.includes("/mapping")),k=r.computed(()=>{var T;return o.phase.id===((T=b.params)==null?void 0:T.phaseId)});r.ref(!1);const A=r.computed(()=>{var T;return o.phase.id!==((T=b.params)==null?void 0:T.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:$C(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(T,S)=>(r.openBlock(),r.createElementBlock("li",Mme,[r.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:r.normalizeStyle(A.value)},[t.isEditable?(r.openBlock(),r.createElementBlock("div",Lme,[r.createVNode(ke,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):r.createCommentVNode("",!0),w.value?(r.openBlock(),r.createElementBlock("div",Vme,[r.createVNode(Bme,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(r.openBlock(),r.createElementBlock("div",Ome,[r.createVNode(Lpe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),w.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Ime,[r.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:r.normalizeStyle(A.value)},[t.isEditable?(r.openBlock(),r.createBlock(Sa,{key:0,class:r.normalizeClass(["ao-project-phase__milestone-quick-add",{"ao-project-phase__milestone-quick-add--visible":k.value}]),placement:"bottom-end"},{trigger:r.withCtx(({open:E})=>[r.createElementVNode("button",{type:"button",class:"ao-project-phase__milestone-quick-add-trigger",title:T.$t("project.milestone.add"),onClick:E},[r.createVNode(ke,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],8,Pme)]),menu:r.withCtx(({close:E})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),d(t.phase.id)}},r.toDisplayString(T.$t("project.bulk.menu.single")),9,Fme),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),C.value=!0}},r.toDisplayString(T.$t("project.bulk.menu.bulkInsert")),9,Rme)]),_:1},8,["class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(wo),r.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},T.$attrs,{onChange:y}),{item:r.withCtx(({element:E})=>{var D;return[r.createVNode(Ype,{id:E.id,name:E.name,color:E.color,"phase-color":t.phase.color,activities:E.activities,deadline:E.deadline,active:E.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":E.id===((D=T.$route.params)==null?void 0:D.milestoneId),assignee:E.assignee,important:E.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:r.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&T.$router.push({name:r.unref(Pe).milestone,params:{phaseId:t.phase.id,milestoneId:E.id}}),onUpdateMilestone:f,onArchiveMilestone:p,onUnarchiveMilestone:m},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),r.createElementVNode("div",zme,[t.isEditable?(r.openBlock(),r.createBlock(Eo,{key:0,label:T.$t("project.milestone.add"),"icon-name":"Add",class:"ao-project-phase__milestone-add",onClick:S[0]||(S[0]=E=>u(t.phase.id))},null,8,["label"])):r.createCommentVNode("",!0)])],4)])),C.value?(r.openBlock(),r.createBlock(hd,{key:1,open:C.value,"onUpdate:open":S[1]||(S[1]=E=>C.value=E),title:T.$t("project.bulk.modal.milestone.title"),"root-type":"milestone","is-loading":v.value,onSubmit:_},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)]))}});const Hme={class:"ao-project__phases"},qme={key:0,class:"ao-project-phase__phases-list-footer"},jme={class:"ao-project-phase__col-phase"},vd=r.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;r.watch(()=>n.phases,(m,h)=>{Wn(m,h)});const i=m=>{o("addMilestone",m)},s=m=>{o("updateMilestone",m)},a=m=>{o("archiveMilestone",m)},l=m=>{o("unarchiveMilestone",m)},c=m=>{o("archivePhase",m)},u=m=>{o("unarchivePhase",m)},d=m=>{if(m.moved){const h=ts(m,n.phases??[]);o("updatePhase",{id:m.moved.element.id,rank:h})}},f=m=>{o("updatePhase",m)},p=m=>{o("addPhase",m)};return(m,h)=>(r.openBlock(),r.createElementBlock("div",Hme,[r.createVNode(r.unref(wo),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:r.withCtx(({element:g})=>[r.createVNode(Ume,{phase:g,"is-editable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,users:t.users,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,onAddMilestone:i,onBulkAddMilestone:h[0]||(h[0]=y=>m.$emit("bulkAddMilestone",y)),onUpdateMilestone:s,onArchiveMilestone:a,onUnarchiveMilestone:l,onUpdatePhase:f,onArchivePhase:c,onUnarchivePhase:u},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),t.isEditable?(r.openBlock(),r.createElementBlock("div",qme,[h[1]||(h[1]=r.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),r.createElementVNode("div",jme,[r.createVNode(Eo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),h[2]||(h[2]=r.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):r.createCommentVNode("",!0)]))}});const Wme={class:"ao-add-template-modal__form-body"},Zme={class:"field__row"},Kme={class:"ao-add-template-modal__form-footer"},Yg=r.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=r.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(r.openBlock(),r.createBlock(Oa,{size:"sm"},{header:r.withCtx(()=>[r.createVNode(gt,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:r.withModifiers(l,["prevent"])},[r.createElementVNode("p",null,r.toDisplayString(c.$t("project.template.apply.notice")),1),r.createElementVNode("div",Wme,[r.createElementVNode("div",Zme,[r.createVNode(ft,{value:s.value,options:i.value,detached:!0,onChange:a},null,8,["value","options"])])]),r.createElementVNode("footer",Kme,[r.createVNode(de,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Gme={class:"ao-save-template-modal__form-body"},Yme={class:"field__row"},Jme={class:"ao-field ao-field--inline"},Xme={class:"ao-field__label"},Qme={class:"ao-save-template-modal__phases"},ehe={class:"ao-field__label"},the={class:"ao-save-template-modal__phases-list"},nhe=["value"],ohe={class:"ao-save-template-modal__form-footer"},Jg=r.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(""),s=r.ref([]);r.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{i.value&&o("save",i.value,s.value)};return(l,c)=>(r.openBlock(),r.createBlock(Oa,{size:"sm"},{header:r.withCtx(()=>[r.createVNode(gt,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:r.withModifiers(a,["prevent"])},[r.createElementVNode("div",Gme,[r.createElementVNode("div",Yme,[r.createElementVNode("label",Jme,[r.createElementVNode("span",Xme,r.toDisplayString(l.$t("project.template.name.label"))+": ",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),type:"text"},null,512),[[r.vModelText,i.value]])])]),r.createElementVNode("div",Qme,[r.createElementVNode("div",ehe,r.toDisplayString(l.$t("project.template.phases.label")),1),r.createElementVNode("div",the,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.phases,u=>(r.openBlock(),r.createElementBlock("label",{key:u.id,class:"ao-field ao-field--checkbox"},[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),type:"checkbox",value:u.id},null,8,nhe),[[r.vModelCheckbox,s.value]]),r.createElementVNode("span",null,r.toDisplayString(u.name),1)]))),128))])])]),r.createElementVNode("footer",ohe,[r.createVNode(de,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const rhe={class:"ao-project"},ihe=["onClick"],she=["onClick"],ahe={class:"ao-project__body"},lhe=r.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},devStatuses:{},sprints:{},selectedActivity:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},emits:["addPhase","bulkAddPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","bulkAddActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=r.computed(()=>o.phases.flatMap(F=>F.milestones)),a=()=>{const{name:F,rank:se}=Ko(o.phases,"phase",n);i("addPhase",{name:F,rank:se,projectId:o.project.id})},l=()=>{const F=n("template.defaultName.phase",{idx:1}),se=ns(o.phases);i("addPhase",{name:F,rank:se,projectId:o.project.id})},c=F=>{i("updatePhase",F)},u=F=>{i("archivePhase",F)},d=F=>{i("unarchivePhase",F)},f=F=>{i("copyPhaseToTemplate",F)},p=F=>{i("addMilestone",F)},m=F=>{i("bulkAddMilestone",F)},h=F=>{i("updateMilestone",F)},g=F=>{i("archiveMilestone",F)},y=F=>{i("unarchiveMilestone",F)},C=F=>{i("addActivity",F)},v=F=>{i("bulkAddActivity",F)},_=F=>{i("update:activity",F)},b=F=>{i("archiveActivity",F)},w=F=>{i("unarchiveActivity",F)},k=F=>{i("addSubtask",F)},A=F=>{i("updateSubtask",F)},T=F=>{i("deleteSubtask",F)},S=r.computed(()=>s.value.flatMap(F=>F.activities)),E=r.computed(()=>o.devStatuses??[]),D=r.computed(()=>o.sprints??[]),x=F=>{i("addFiles",F)},$=F=>{i("removeFile",F)},B=F=>{i("addComment",F)},V=F=>{i("updateComment",F)},I=F=>{i("removeComment",F)},W=r.ref(!1),P=r.ref(!1),H=r.ref(!1),Q=r.ref(!1),le=(F,se)=>{i("applyTemplate",{templateId:F,projectId:se}),W.value=!1},oe=(F,se)=>{var we;const Ee=(we=o.templates)==null?void 0:we.at(-1),Ue=Ee?Xe.LexoRank.parse(Ee.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:F,rank:Ue.format(),phaseIds:se}),P.value=!1},Ne=F=>{Q.value=!0;const se=kme(F,o.phases);i("bulkAddPhase",{projectId:o.project.id,phases:se,onSuccess:()=>{Q.value=!1,H.value=!1},onError:()=>{Q.value=!1}})};r.watch(H,F=>{F&&(Q.value=!1)});const ce=$r.useRouter(),ne=r.ref("overview"),z=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(ne,F=>{F==="feed"?(ce.push({name:Pe.feed}),console.log("Navigating to feed...")):F==="dev"?(ce.push({name:Pe.dev}),console.log("Navigating to dev...")):F==="overview"?(ce.push({name:Pe.project}),console.log("Navigating to feed...")):F==="mapping"&&(ce.push({name:Pe.mapping}),console.log("Navigating to feed..."))}),(F,se)=>{var Ue;const Ee=r.resolveComponent("RouterView");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-overview"},F.$attrs),[r.createElementVNode("div",rhe,[r.createVNode(os,null,{primary:r.withCtx(()=>[r.createVNode(gs,{modelValue:ne.value,"onUpdate:modelValue":se[0]||(se[0]=we=>ne.value=we),tabs:z},null,8,["modelValue"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:se[1]||(se[1]=we=>F.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(Sa,{key:0,class:"ao-project-overview__quick-add-phase"},{trigger:r.withCtx(({open:we})=>[r.createVNode(de,{size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("project.phase.add"),onClick:we},null,8,["label","onClick"])]),menu:r.withCtx(({close:we})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{we(),l()}},r.toDisplayString(F.$t("project.bulk.menu.single")),9,ihe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{we(),H.value=!0}},r.toDisplayString(F.$t("project.bulk.menu.bulkInsert")),9,she)]),_:1})):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:F.$t("project.template.save.label"),onClick:se[2]||(se[2]=we=>P.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-project-overview__add-template",color:"primary",label:F.$t("project.template.apply.label"),onClick:se[3]||(se[3]=we=>W.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",ahe,[r.createVNode(vd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(Ue=t.project)==null?void 0:Ue.estimationUnit,onAddMilestone:p,onBulkAddMilestone:m,onUpdateMilestone:h,onArchiveMilestone:g,onUnarchiveMilestone:y,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),r.createVNode(Ee,{class:"ao-project__sidebar",phases:t.phases,"project-id":t.project.id,"project-name":t.project.name,users:t.users,"is-editable":t.isEditable===!0,"closed-status":t.closedStatus,"time-tracking-data":t.timeTrackingData,onClose:se[4]||(se[4]=we=>F.$router.push({name:r.unref(Pe).project})),onUpdateMilestone:h,onAddActivity:C,onBulkAddActivity:v,onUpdateActivity:_,onArchiveActivity:b,onUnarchiveActivity:w},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(Ee,{name:"modal",activities:S.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,"dev-statuses":E.value,sprints:D.value,"selected-activity":t.selectedActivity,phases:t.phases,project:t.project,users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":t.loadAttachmentPreview,"onUpdate:activity":_,onAddSubtask:k,onUpdateSubtask:A,onDeleteSubtask:T,onAddFiles:x,onRemoveFile:$,onAddComment:B,onUpdateComment:V,onRemoveComment:I},{default:r.withCtx(({Component:we})=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(we),null,{default:r.withCtx(Ce=>[r.renderSlot(F.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(Ce)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","dev-statuses","sprints","selected-activity","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data","load-attachment-preview"])]))],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[P.value?(r.openBlock(),r.createBlock(Jg,{key:0,phases:t.phases,onClose:se[5]||(se[5]=we=>P.value=!1),onSave:oe},null,8,["phases"])):r.createCommentVNode("",!0),W.value?(r.openBlock(),r.createBlock(Yg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:se[6]||(se[6]=we=>W.value=!1),onApply:le},null,8,["project-id","templates"])):r.createCommentVNode("",!0),H.value?(r.openBlock(),r.createBlock(hd,{key:2,open:H.value,"onUpdate:open":se[7]||(se[7]=we=>H.value=we),title:F.$t("project.bulk.modal.phase.title"),"root-type":"phase","is-loading":Q.value,onSubmit:Ne},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)]))],64)}}});const che={class:"ao-card-feed__header"},uhe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},dhe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},fhe={class:"ao-card-feed__body"},phe={key:0,class:"ao-card-feed__breadcrumbs"},mhe={class:r.normalizeClass(["ao-card-feed__title-group"])},hhe={class:"ao-card-feed__title-line"},ghe={key:0,class:"ao-card-feed__slug"},vhe={key:1,class:"ao-card-feed__deadline"},_he={class:"ao-card-feed__footer"},yhe={class:"ao-card-feed__footer-row"},Che={class:"ao-assignees"},bhe={key:0,class:"ao-assignee"},khe={key:0,class:"ao-card-feed__subitems"},whe={key:0,class:"ao-card-feed__subitem"},Ehe={class:"ao-card-feed__subitem"},She={key:1,class:"ao-card-feed__subitem"},xhe={class:"ao-card-feed__subitem"},The={class:"ao-card-feed__timer-wrapper"},Ahe={class:"ao-card-feed__footer-row"},Nhe={key:0,class:"ao-card-feed__progress-wrapper"},Dhe={class:"ao-card-feed__subitem"},$he={class:"ao-card-feed__subitem"},_d=r.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},blocked:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=r.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=g=>{o("updateActivity",{id:n.id,name:g})},l=r.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=r.computed(()=>n.assignee?[n.assignee]:[]),u=r.computed(()=>La(n.deadline)),d=g=>{o("removeAssignee",g)},f=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},p=r.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),m=r.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),h=r.computed(()=>(m.value||0)/(p.value||1));return(g,y)=>(r.openBlock(),r.createBlock(ml,{class:r.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0,variant:t.blocked?"danger":"default"},{header:r.withCtx(()=>[r.createElementVNode("div",che,[i.value?(r.openBlock(),r.createBlock(Ii,{key:0,label:i.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):r.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed||t.blocked?(r.openBlock(),r.createElementBlock("div",uhe,[t.isPrivate?(r.openBlock(),r.createBlock(ke,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):r.createCommentVNode("",!0),t.important?(r.openBlock(),r.createBlock(ke,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):r.createCommentVNode("",!0),t.isClosed?(r.openBlock(),r.createBlock(ke,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",dhe,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])]),default:r.withCtx(()=>[r.createElementVNode("div",fhe,[l.value?(r.openBlock(),r.createElementBlock("span",phe,r.toDisplayString(l.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",mhe,[r.createElementVNode("div",hhe,[t.slug?(r.openBlock(),r.createElementBlock("span",ghe,r.toDisplayString(t.slug)+": ",1)):r.createCommentVNode("",!0),r.createVNode(gt,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,class:"ao-card-feed__title-inline","onUpdate:title":a},null,8,["id","title","is-editable"])])]),t.deadline?(r.openBlock(),r.createElementBlock("span",vhe,r.toDisplayString(u.value),1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",_he,[r.createElementVNode("div",yhe,[r.createElementVNode("ul",Che,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,C=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C.id},[C?(r.openBlock(),r.createElementBlock("li",bhe,[r.createVNode(Xn,{"user-name":r.unref(Hp)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):r.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(r.openBlock(),r.createElementBlock("ul",khe,[t.comments?(r.openBlock(),r.createElementBlock("li",whe,[r.createVNode(ke,{name:"ChatOutline",size:"sm"}),r.createElementVNode("span",Ehe,r.toDisplayString(t.comments),1)])):r.createCommentVNode("",!0),t.attachments?(r.openBlock(),r.createElementBlock("li",She,[r.createVNode(ke,{name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",xhe,r.toDisplayString(t.attachments),1)])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",The,[r.createVNode(ke,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:r.withModifiers(f,["stop"])})])]),r.createElementVNode("div",Ahe,[t.tasks&&t.tasks.length?(r.openBlock(),r.createElementBlock("div",Nhe,[r.createElementVNode("div",Dhe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",$he,r.toDisplayString(m.value)+" / "+r.toDisplayString(p.value),1)]),r.createVNode(hl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):r.createCommentVNode("",!0)])])]),_:3},8,["class","variant"]))}});const Bhe={class:"ao-project-milestone"},Mhe={class:"ao-project-milestone__header"},Lhe={class:"ao-project-milestone__header_line"},Ohe={class:"ao-project-milestone__header_line"},Vhe={class:"ao-project-milestone__title"},Ihe={key:0,class:"ao-fieldset ao-milestone__fieldset"},Phe={class:"ao-field__row ao-milestone__field-row"},Fhe={class:"ao-field ao-field--inline"},Rhe={class:"ao-field__row ao-milestone__field-row"},zhe={class:"ao-field ao-milestone__field-multiselect"},Uhe={class:"ao-milestone__color-actions"},Hhe=["onClick"],qhe=["title","onClick"],jhe=["onClick"],Whe=["onClick"],Zhe={class:"ao-project-milestone__body"},Khe={key:0,class:"ao-project-milestone__footer"},Ghe=["onClick"],Yhe=["onClick"],kp=r.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","bulkAddActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=S=>{var E;i("startTimer",S),(E=window.parent)==null||E.postMessage({type:"startTimer",data:S},"*")},a=r.computed(()=>{var S;return(S=o.phases)==null?void 0:S.find(E=>E.id===o.phaseId)}),l=r.computed(()=>{var S;return(S=o.phases)==null?void 0:S.flatMap(E=>E.milestones)}),c=r.computed(()=>{var S;return(S=l.value)==null?void 0:S.find(E=>E.id===o.milestoneId)}),u=r.computed(()=>{var S;return(S=c.value)==null?void 0:S.activities});r.watch(u,(S,E)=>{Wn(S,E)});const d=S=>{i("close",S)},f=()=>{const{name:S,rank:E}=Ko(u.value??[],"activity",n);i("addActivity",{milestoneId:o.milestoneId,name:S,rank:E,projectId:o.projectId})},p=()=>{const S=n("template.defaultName.activity",{idx:1}),E=ns(u.value??[]);i("addActivity",{milestoneId:o.milestoneId,name:S,rank:E,projectId:o.projectId})},m=r.ref(!1),h=r.ref(!1),g=S=>{h.value=!0;const E=bme(S,u.value??[]);i("bulkAddActivity",{projectId:o.projectId,phaseId:o.phaseId,milestoneId:o.milestoneId,activities:E,onSuccess:()=>{h.value=!1,m.value=!1},onError:()=>{h.value=!1}})};r.watch(m,S=>{S&&(h.value=!1)});const y=S=>{i("updateActivity",S)},C=S=>{u.value&&"moved"in S&&i("updateActivity",{id:S.moved.element.id,rank:Mr(u.value,S.moved.newIndex)})},v=r.computed({get:()=>{var S;return(S=c.value)==null?void 0:S.color},set:S=>{c.value&&i("updateMilestone",{id:c.value.id,color:S})}}),_=r.computed({get:()=>{var S;return((S=c.value)==null?void 0:S.deadline)??""},set:S=>{c.value&&i("updateMilestone",{id:c.value.id,deadline:S!=null&&S.length?S:null})}}),b=S=>o.closedStatus?nu(S,o.closedStatus):!1,w=r.computed(()=>{var S;return((S=o.users)==null?void 0:S.map(E=>({label:`${E.firstName} ${E.lastName}`,value:E.id,avatar:E.avatarUrl})))||[]}),k=r.computed({get(){var S,E;return(E=(S=c.value)==null?void 0:S.assignee)!=null&&E.id?[c.value.assignee.id]:[]},set(S){i("updateMilestone",{id:o.milestoneId,assigneeId:S[0]??null})}}),A=r.computed({get(){var S;return((S=c.value)==null?void 0:S.important)??!1},set(S){i("updateMilestone",{id:o.milestoneId,important:S})}}),T=(S,E)=>{const D=S.currentTarget;D instanceof HTMLElement&&E(D)};return(S,E)=>{var D;return r.openBlock(),r.createElementBlock("div",Bhe,[r.createElementVNode("header",Mhe,[r.createElementVNode("div",Lhe,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),r.createElementVNode("div",Ohe,[r.createElementVNode("div",Vhe,[r.createVNode(gt,{title:((D=c.value)==null?void 0:D.name)||t.milestoneId,level:5},null,8,["title"]),r.createVNode(Gc,{modelValue:A.value,"onUpdate:modelValue":E[0]||(E[0]=x=>A.value=x),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:S.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(r.openBlock(),r.createElementBlock("div",Ihe,[r.createElementVNode("div",Phe,[r.createElementVNode("label",Fhe,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=x=>_.value=x),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[r.vModelText,_.value,void 0,{lazy:!0}]])])]),r.createElementVNode("div",Rhe,[r.createElementVNode("label",zhe,[r.createVNode(ft,{modelValue:k.value,"onUpdate:modelValue":E[2]||(E[2]=x=>k.value=x),options:w.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:S.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:r.withCtx(({option:x,handleTagRemove:$})=>[r.createVNode(Xn,{"user-name":x.label,"avatar-url":x.avatar,"is-closable":!0,onClose:B=>$(x,B)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",Uhe,[r.createVNode(jr,{color:v.value,"onUpdate:color":E[3]||(E[3]=x=>v.value=x)},{clickable:r.withCtx(({openPicker:x,bgColor:$})=>[r.createElementVNode("button",{style:r.normalizeStyle({background:$}),class:"color-button",onClick:B=>T(B,x)},null,12,Hhe)]),_:1},8,["color"]),t.isEditable?(r.openBlock(),r.createBlock(Sa,{key:0,placement:"bottom-end"},{trigger:r.withCtx(({open:x})=>[r.createElementVNode("button",{type:"button",class:"ao-project-milestone__quick-add",title:S.$t("project.activity.add"),onClick:x},[r.createVNode(ke,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,qhe)]),menu:r.withCtx(({close:x})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),p()}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,jhe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),m.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,Whe)]),_:1})):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Zhe,[r.createVNode(r.unref(wo),r.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},S.$attrs,{onChange:C}),{item:r.withCtx(({element:x})=>{var $,B,V,I,W;return[r.createVNode(_d,{id:x.id,name:x.name||x.id,"project-id":t.projectId,"phase-name":($=a.value)==null?void 0:$.name,"milestone-name":(B=c.value)==null?void 0:B.name,"milestone-color":(V=c.value)==null?void 0:V.color,deadline:x.deadline,important:x.important,blocked:x.blocked,users:t.users,assignee:x.assignee,slug:x.slug,comments:(I=x.comments)==null?void 0:I.length,attachments:(W=x.attachments)==null?void 0:W.length,tasks:x.tasks,"is-editable":t.isEditable,"is-private":x.private,"is-closed":b(x),onClick:P=>S.$router.push({name:r.unref(Pe).activity,params:{milestoneId:t.milestoneId,activityId:x.id}}),onUpdateActivity:y,onRemoveAssignee:()=>y({id:x.id,assigneeId:null}),onStartTimer:s},r.createSlots({_:2},[t.isEditable?{name:"secondary",fn:r.withCtx(()=>[t.isEditable&&x.active?(r.openBlock(),r.createBlock(de,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("archive"),onClick:r.withModifiers(()=>S.$emit("archiveActivity",{id:x.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),t.isEditable&&!x.active?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>S.$emit("unarchiveActivity",{id:x.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","blocked","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Khe,[r.createVNode(Sa,null,{trigger:r.withCtx(({open:x})=>[r.createVNode(Eo,{"icon-name":"Add",label:S.$t("project.activity.add"),onClick:x},null,8,["label","onClick"])]),menu:r.withCtx(({close:x})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),f()}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,Ghe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),m.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,Yhe)]),_:1})])):r.createCommentVNode("",!0)]),m.value?(r.openBlock(),r.createBlock(hd,{key:0,open:m.value,"onUpdate:open":E[4]||(E[4]=x=>m.value=x),title:S.$t("project.bulk.modal.activity.title"),"root-type":"activity","is-loading":h.value,onSubmit:g},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)])}}});const Jhe=r.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},selectedActivity:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function},sprints:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","createSprint"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var C;return(C=n.phases)==null?void 0:C.find(v=>v.id===n.phaseId)}),s=r.computed(()=>{var C;return(C=n.phases)==null?void 0:C.flatMap(v=>v.milestones)}),a=r.computed(()=>{var C;return(C=s.value)==null?void 0:C.find(v=>v.id===n.milestoneId)}),l=r.computed(()=>{var C;return n.selectedActivity??((C=n.activities)==null?void 0:C.find(v=>v.id===n.activityId))}),c=C=>{o("update:activity",C)},u=C=>{o("addSubtask",C)},d=C=>{o("updateSubtask",C)},f=C=>{o("deleteSubtask",C)},p=C=>{o("addFiles",C)},m=C=>{o("removeFile",C)},h=C=>{o("addComment",C)},g=C=>{o("updateComment",C)},y=C=>{o("removeComment",C)};return(C,v)=>{var _,b;return l.value?(r.openBlock(),r.createBlock(id,{key:0,activity:l.value,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(_=i.value)==null?void 0:_.name} / ${(b=a.value)==null?void 0:b.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,"load-attachment-preview":n.loadAttachmentPreview,sprints:t.sprints,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y,onCreateSprint:v[0]||(v[0]=w=>o("createSprint",w))},{default:r.withCtx(w=>[r.renderSlot(C.$slots,"default",r.normalizeProps(r.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints","onClose"])):r.createCommentVNode("",!0)}}}),Xhe={class:"ao-col-header"},Qhe=r.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",Xhe,[r.createVNode(gt,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(r.openBlock(),r.createBlock(Ii,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):r.createCommentVNode("",!0)]))}});function ege(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function Ta(t){return typeof t=="function"?t():r.unref(t)}const tge=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nge=t=>t!=null,Vi=()=>{};function oge(t,e){function n(...o){return new Promise((i,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(i).catch(s)})}return n}function rge(t,e={}){let n,o,i=Vi;const s=l=>{clearTimeout(l),i(),i=Vi};return l=>{const c=Ta(t),u=Ta(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,f)=>{i=e.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},c)})}}function ige(t,e=200,n={}){return oge(rge(e,n),t)}function cc(t){var e;const n=Ta(t);return(e=n==null?void 0:n.$el)!=null?e:n}const sge=tge?window:void 0;function age(){const t=r.ref(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function lge(t){const e=age();return r.computed(()=>(e.value,!!t()))}function cge(t,e,n={}){const{root:o,rootMargin:i="0px",threshold:s=.1,window:a=sge,immediate:l=!0}=n,c=lge(()=>a&&"IntersectionObserver"in a),u=r.computed(()=>{const h=Ta(t);return(Array.isArray(h)?h:[h]).map(cc).filter(nge)});let d=Vi;const f=r.ref(l),p=c.value?r.watch(()=>[u.value,cc(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:cc(g),rootMargin:i,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Vi}},{immediate:l,flush:"post"}):Vi,m=()=>{d(),p(),f.value=!1};return ege(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const uge={class:r.normalizeClass(["ao-list-kanban"])},dge={class:"ao-list-kanban__header"},fge=["title"],pge={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},mge={key:1,class:"ao-list-kanban__end"},hge={key:0,class:"ao-list-kanban__no-more"},gge={key:1,class:"ao-list-kanban__divider"},vge={key:1,class:"ao-list-kanban__footer"},_ge=r.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{},showHeaderAdd:{type:Boolean},isDevMode:{type:Boolean}},emits:["add","addAtBeginning","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),s=r.ref(null);cge(s,([{isIntersecting:f}])=>{i.value=f}),r.watch(i,f=>{f&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=f=>{var p;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((p=f.assignee)==null?void 0:p.id):!1},l=f=>{o("selectActivity",f)},c=f=>{o("updateActivity",f)},u=f=>{if("added"in f){const p={id:f.added.element.id,rank:Mr(n.list,f.added.newIndex)};n.isDevMode?p.statusDevId=n.status.id:p.statusId=n.status.id,o("updateActivity",p)}else"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Mr(n.list,f.moved.newIndex)})},d=r.ref(!1);return(f,p)=>(r.openBlock(),r.createElementBlock("div",uge,[t.title||f.$slots.header?r.renderSlot(f.$slots,"header",{},()=>{var m;return[r.createElementVNode("div",dge,[t.title?(r.openBlock(),r.createBlock(Qhe,{key:0,class:"ao-list-kanban__col-header",title:t.title,level:3,items:(m=t.list)==null?void 0:m.length},null,8,["title","items"])):r.createCommentVNode("",!0),t.showHeaderAdd?(r.openBlock(),r.createElementBlock("button",{key:1,class:"ao-list-kanban__header-add",title:f.$t("feed.activity.add"),onClick:p[0]||(p[0]=h=>f.$emit("addAtBeginning"))},[r.createVNode(ke,{name:"Add"})],8,fge)):r.createCommentVNode("",!0)])]},void 0,0):r.createCommentVNode("",!0),r.createVNode(r.unref(wo),r.mergeProps({class:["ao-list-kanban__list",d.value?"ao-list-kanban__transition":void 0],list:t.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},f.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"},onChange:u,onStart:p[2]||(p[2]=m=>d.value=!0),onEnd:p[3]||(p[3]=m=>d.value=!1)}),{item:r.withCtx(({element:m})=>{var h,g,y,C,v,_,b,w,k,A;return[r.createVNode(_d,{id:m.id,class:r.normalizeClass(a(m)?"ao-list-draggable":""),name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(g=m.project)==null?void 0:g.id,"project-color":(y=m.project)==null?void 0:y.color,"phase-name":(v=(C=m.milestone)==null?void 0:C.phase)==null?void 0:v.name,"milestone-name":(_=m.milestone)==null?void 0:_.name,"milestone-color":(b=m.milestone)==null?void 0:b.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,blocked:m.blocked,type:m.type,comments:(k=m.comments)==null?void 0:k.length,attachments:(A=m.attachments)==null?void 0:A.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":a(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[T=>a(m)&&c(T),()=>a(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>a(m)&&c({id:m.id,assigneeId:null}),onStartTimer:p[1]||(p[1]=T=>f.$emit("startTimer",T))},{secondary:r.withCtx(()=>[a(m)&&m.active?(r.openBlock(),r.createBlock(de,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:r.withModifiers(()=>f.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),a(m)&&!m.active?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>f.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0)]),_:2},1032,["id","class","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","blocked","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:r.withCtx(()=>[t.isLoading?(r.openBlock(),r.createElementBlock("div",pge,[r.createVNode(ke,{name:"Loading"})])):t.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(r.openBlock(),r.createElementBlock("div",mge,[t.noMoreLabel?(r.openBlock(),r.createElementBlock("span",hge,r.toDisplayString(t.noMoreLabel),1)):t.isEditable?(r.openBlock(),r.createElementBlock("span",gge)):r.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(r.openBlock(),r.createElementBlock("div",vge,[r.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(r.openBlock(),r.createBlock(Eo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[4]||(p[4]=m=>f.$emit("add"))},null,8,["label"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]))}});const yge={class:"ao-field ao-search-field"},Cge=["value","placeholder"],bge=r.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,i=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=ige(i,n.delay),a=l=>{o("clear",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",yge,[r.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>r.unref(s)&&r.unref(s)(...u)),onKeypress:r.withKeys(i,["enter"])},null,40,Cge),r.createVNode(ke,{name:"SearchRounded",class:r.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),r.createVNode(de,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:r.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const kge={class:"ao-sprint-metrics"},wge=["onClick"],Ege={class:"ao-sprint-metrics__header-left"},Sge={class:"ao-sprint-metrics__icon"},xge={class:"ao-sprint-metrics__title"},Tge={class:"ao-sprint-metrics__dates"},Age={key:0,class:"ao-sprint-metrics__project"},Nge={class:"ao-sprint-metrics__advancement"},Dge={class:"ao-sprint-metrics__progress-bar"},$ge={class:"ao-sprint-metrics__percent"},Bge={class:"ao-sprint-metrics__tooltip ao-sprint-metrics__tooltip--advancement"},Mge={class:"ao-sprint-metrics__tooltip-row"},Lge={class:"ao-sprint-metrics__tooltip-row"},Oge={class:"ao-sprint-metrics__tooltip-row"},Vge={class:"ao-sprint-metrics__tooltip-row"},Ige={class:"ao-sprint-metrics__tooltip-row"},Pge={class:"ao-sprint-metrics__tooltip-row"},Fge={class:"ao-sprint-metrics__tooltip-row"},Rge={class:"ao-sprint-metrics__content"},zge={class:"ao-sprint-metrics__grid"},Uge={class:"ao-sprint-metrics__item"},Hge={class:"ao-sprint-metrics__label"},qge={class:"ao-sprint-metrics__value"},jge={key:0,class:"ao-sprint-metrics__tooltip"},Wge={class:"ao-sprint-metrics__tooltip-title"},Zge={class:"ao-sprint-metrics__item"},Kge={class:"ao-sprint-metrics__label"},Gge={class:"ao-sprint-metrics__value"},Yge={class:"ao-sprint-metrics__item ao-sprint-metrics__item--editable"},Jge={class:"ao-sprint-metrics__label"},Xge={class:"ao-sprint-metrics__input-row"},Qge=["value","placeholder","onInput"],e0e={key:0,class:"ao-sprint-metrics__secondary"},t0e={class:"ao-sprint-metrics__item"},n0e={class:"ao-sprint-metrics__label"},o0e={class:"ao-sprint-metrics__value"},r0e=r.defineComponent({__name:"AoSprintMetrics",props:{sprints:{},activities:{},planningData:{default:()=>({})},projects:{default:()=>[]}},setup(t){const e=t,{t:n}=Nt(),o=["Ok for prod","Done"],i=r.ref(new Set),s=r.ref({}),a=E=>{i.value.has(E)?i.value.delete(E):i.value.add(E)},l=E=>e.projects.find(D=>D.id===E.projectId),c=E=>{var D;return((D=e.planningData[E])==null?void 0:D.plannedManDays)??0},u=E=>{var D;return((D=e.planningData[E])==null?void 0:D.remainingPlannedManDays)??0},d=E=>{var D;return((D=e.planningData[E])==null?void 0:D.users)??[]},f=E=>e.activities.filter(D=>{var x;return((x=D.sprint)==null?void 0:x.id)===E}).reduce((D,x)=>D+(x.estimation??0),0),p=E=>e.activities.filter(D=>{var $,B;if((($=D.sprint)==null?void 0:$.id)!==E)return!1;const x=(B=D.devStatus)==null?void 0:B.name;return x&&o.includes(x)}).reduce((D,x)=>D+(x.estimation??0),0),m=E=>{const D=c(E);return D<=0?0:f(E)/D},h=E=>s.value[E],g=(E,D)=>{const x=parseFloat(D);isNaN(x)||x<=0?delete s.value[E]:s.value[E]=x},y=E=>{const D=h(E);return D===void 0?0:c(E)*D},C=E=>{const D=y(E);return D<=0?null:f(E)/D},v=E=>{const D=C(E);return D===null?0:Math.round(D*100)},_=E=>{const D=f(E);if(D<=0)return 0;const x=p(E);return Math.round(x/D*100)},b=E=>{const D=f(E),x=p(E);return Math.max(0,D-x)},w=E=>{const D=u(E),x=m(E);return D*x},k=E=>{const D=w(E),x=b(E);return D<=0&&x>0?!1:D<x},A=E=>E.toFixed(1),T=E=>`${E.toFixed(2)} pts / MD`,S=(E,D)=>{const x=new Date(E),$=new Date(D),B={day:"numeric",month:"short"};return`${x.toLocaleDateString("en-UK",B)} – ${$.toLocaleDateString("en-UK",B)}`};return(E,D)=>(r.openBlock(),r.createElementBlock("div",kge,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sprints,x=>{var $;return r.openBlock(),r.createElementBlock("div",{key:x.id,class:"ao-sprint-metrics__section"},[r.createElementVNode("div",{class:"ao-sprint-metrics__header",onClick:B=>a(x.id)},[r.createElementVNode("div",Ege,[r.createElementVNode("span",Sge,r.toDisplayString(i.value.has(x.id)?"▸":"▾"),1),r.createElementVNode("span",xge,r.toDisplayString(x.name),1),r.createElementVNode("span",Tge," · "+r.toDisplayString(S(x.startDate,x.endDate)),1),!i.value.has(x.id)&&l(x)?(r.openBlock(),r.createElementBlock("span",Age," · "+r.toDisplayString(($=l(x))==null?void 0:$.name),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__header-right",{"ao-sprint-metrics__header-right--behind":k(x.id)}])},[r.createElementVNode("div",Nge,[r.createElementVNode("div",Dge,[r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__progress-fill",{"ao-sprint-metrics__progress-fill--behind":k(x.id)}]),style:r.normalizeStyle({width:_(x.id)+"%"})},null,6)]),r.createElementVNode("span",$ge,r.toDisplayString(_(x.id))+"% ",1),r.createElementVNode("div",Bge,[D[7]||(D[7]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-title"}," Sprint advancement ",-1)),r.createElementVNode("span",Mge,[D[0]||(D[0]=r.createElementVNode("span",null,"Advancement",-1)),r.createElementVNode("span",null,r.toDisplayString(_(x.id))+"%",1)]),r.createElementVNode("span",Lge,[D[1]||(D[1]=r.createElementVNode("span",null,"Completed",-1)),r.createElementVNode("span",null,r.toDisplayString(A(p(x.id)))+" / "+r.toDisplayString(A(f(x.id)))+" pts ",1)]),r.createElementVNode("span",Oge,[D[2]||(D[2]=r.createElementVNode("span",null,"Remaining",-1)),r.createElementVNode("span",null,r.toDisplayString(A(b(x.id)))+" pts",1)]),D[8]||(D[8]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",Vge,[D[3]||(D[3]=r.createElementVNode("span",null,"Remaining capacity",-1)),r.createElementVNode("span",null,r.toDisplayString(A(w(x.id)))+" pts",1)]),r.createElementVNode("span",Ige,[D[4]||(D[4]=r.createElementVNode("span",null,"Remaining planning",-1)),r.createElementVNode("span",null,r.toDisplayString(A(u(x.id)))+" MD",1)]),r.createElementVNode("span",Pge,[D[5]||(D[5]=r.createElementVNode("span",null,"Estimated velocity",-1)),r.createElementVNode("span",null,r.toDisplayString(T(m(x.id))),1)]),D[9]||(D[9]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",Fge,[D[6]||(D[6]=r.createElementVNode("span",null,"Status",-1)),r.createElementVNode("span",null,r.toDisplayString(k(x.id)?"Behind plan":"On track"),1)])])])],2)],8,wge),r.withDirectives(r.createElementVNode("div",Rge,[r.createElementVNode("div",zge,[r.createElementVNode("div",Uge,[r.createElementVNode("div",Hge,r.toDisplayString(r.unref(n)("sprintMetrics.manDaysPlanned")),1),r.createElementVNode("div",qge,[r.createElementVNode("span",{class:r.normalizeClass(["ao-sprint-metrics__man-days",{"ao-sprint-metrics__man-days--has-tooltip":d(x.id).length>0}])},[r.createTextVNode(r.toDisplayString(A(c(x.id)))+" MD ",1),d(x.id).length>0?(r.openBlock(),r.createElementBlock("span",jge,[r.createElementVNode("span",Wge,r.toDisplayString(A(c(x.id)))+" MD planned ",1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d(x.id),B=>(r.openBlock(),r.createElementBlock("span",{key:B.userId,class:"ao-sprint-metrics__tooltip-row"},[r.createElementVNode("span",null,r.toDisplayString(B.fullName),1),r.createElementVNode("span",null,r.toDisplayString(A(B.plannedManDays))+" MD",1)]))),128))])):r.createCommentVNode("",!0)],2)])]),r.createElementVNode("div",Zge,[r.createElementVNode("div",Kge,r.toDisplayString(r.unref(n)("sprintMetrics.estimatedPoints")),1),r.createElementVNode("div",Gge,r.toDisplayString(A(f(x.id)))+" pts ",1)]),r.createElementVNode("div",Yge,[r.createElementVNode("div",Jge,r.toDisplayString(r.unref(n)("sprintMetrics.targetVelocity")),1),r.createElementVNode("div",Xge,[r.createElementVNode("input",{type:"number",step:"0.1",min:"0",class:"ao-sprint-metrics__input",value:s.value[x.id]??"",placeholder:r.unref(n)("sprintMetrics.targetVelocityPlaceholder"),onInput:B=>g(x.id,B.target.value)},null,40,Qge),D[10]||(D[10]=r.createElementVNode("span",{class:"ao-sprint-metrics__unit"},"pts / MD",-1))]),m(x.id)>0?(r.openBlock(),r.createElementBlock("div",e0e,r.toDisplayString(r.unref(n)("sprintMetrics.currentlyEstimated"))+": "+r.toDisplayString(T(m(x.id))),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",t0e,[r.createElementVNode("div",n0e,r.toDisplayString(r.unref(n)("sprintMetrics.planningProgress")),1),r.createElementVNode("div",o0e,[C(x.id)!==null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(v(x.id))+"% · "+r.toDisplayString(A(f(x.id)))+" / "+r.toDisplayString(A(y(x.id)))+" pts ",1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))])])])],512),[[r.vShow,!i.value.has(x.id)]])])}),128))]))}});const i0e=te(r0e,[["__scopeId","data-v-98b799f1"]]),s0e={class:"ao-feed"},a0e={class:"ao-feed__filters"},l0e={class:"ao-feed__body"},Jc=r.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},devStatuses:{default:()=>[]},project:{default:void 0},projects:{default:()=>[]},filters:{},activityTypes:{default:()=>[]},users:{},userId:{},initialActivityId:{default:void 0},initialActivitySlug:{default:void 0},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{default:void 0},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0},feedMode:{default:"standard"},sprints:{default:()=>[]},activitySprints:{default:()=>[]},milestones:{default:()=>[]},sprintPlanningData:{default:()=>({})},activityHistory:{default:()=>[]},activityHistoryLoading:{type:Boolean,default:!1}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer","createSprint","fetchHistory"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e;function s(R,re){i("toast",R,re)}const a=r.toRef(o,"activities"),l=r.computed(()=>o.feedMode==="dev"?o.devStatuses:o.statuses),c=r.computed(()=>o.feedMode==="dev"?a.value.filter(R=>R.activityType==="dev"):a.value),u=async(R,re)=>{await i("selectActivity",R,re)},d=r.ref({}),f=r.ref(!1),p=r.ref(!1),m=r.computed(()=>o.project?"milestone":"project");r.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([R,re,he,pe],[Ke,De])=>{const $e=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(R.map(Fe=>[Fe.id,re.filter(Ye=>{const Je=Ye[$e];return(Je==null?void 0:Je.id)===Fe.id})])),he&&!f.value?(u(he,null),f.value=!0):pe&&!f.value&&(u(null,pe),f.value=!0),p.value&&Wn(re,De)},{immediate:!0});const h=r.computed(()=>{var R;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((R=o.selectedActivity.milestone.phase)==null?void 0:R.name)??""} / ${o.selectedActivity.milestone.name??""}`}),g=R=>{var Fe;const re=o.feedMode==="dev"?o.activities.filter(Ye=>Ye.activityType==="dev"):o.activities,he=re==null?void 0:re.at(-1),pe=he?Xe.LexoRank.parse(he.rank).genNext():Xe.LexoRank.middle(),Ke=((Fe=o.activities)==null?void 0:Fe.length)??0,De=o.feedMode==="dev",$e={name:n("activity.defaultName",{idx:Ke+1}),rank:pe.format(),...De?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&($e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&($e.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Ye=o.sprints.find(Je=>Je.id===o.filters.sprintId[0]);Ye&&($e.sprintId=Ye.id,$e.projectId=Ye.projectId)}p.value=!0,i("addActivity",$e)},y=R=>{var Fe,Ye;const re=o.feedMode==="dev"?"devStatus":"status",he=((Fe=o.activities)==null?void 0:Fe.filter(Je=>{const Me=Je[re];return(Me==null?void 0:Me.id)===R.id}))??[],pe=ns(he),Ke=((Ye=o.activities)==null?void 0:Ye.length)??0,De=o.feedMode==="dev",$e={name:n("activity.defaultName",{idx:Ke+1}),rank:pe,...De?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&($e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&($e.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Je=o.sprints.find(Me=>Me.id===o.filters.sprintId[0]);Je&&($e.sprintId=Je.id,$e.projectId=Je.projectId)}p.value=!0,i("addActivity",$e)},C=(R,re)=>{p.value=!1,i("update:filters",{...o.filters,[R]:re})},v=r.computed(()=>o.project?[o.project]:o.projects??[]),_=r.computed(()=>v.value.map(R=>({value:R.id,label:R.name}))),b=r.computed(()=>o.sprints.map(R=>({value:R.id,label:`${R.name} · ${R.startDate} – ${R.endDate}`,startDate:R.startDate,endDate:R.endDate,projectId:R.projectId}))),w=r.computed(()=>{const R=o.filters[an.sprint]??[];return o.sprints.filter(re=>R.includes(re.id))}),k=r.computed(()=>{var he;const R=o.filters[an.project]??[],re=(he=o.project)!=null&&he.id?[o.project.id]:[];return[...R,...re]}),A=r.computed(()=>o.milestones.map(R=>{var re;return{value:R.id,label:(re=R.phase)!=null&&re.name?`${R.phase.name} - ${R.name}`:R.name,color:R.color,important:R.important}}));r.computed(()=>{var R;return(R=o.activityTypes)==null?void 0:R.map(re=>({value:re.id,label:re.name}))});const T=r.computed(()=>o.users.map(R=>({value:R.id,label:`${R.firstName} ${R.lastName}`,avatar:R.avatarUrl}))),S=R=>{o.selectedActivity&&i("update:activity",R)},E=R=>{i("update:activity",R)},D=R=>{i("archiveActivity",R)},x=R=>{i("unarchiveActivity",R)},$=R=>{var re;i("startTimer",R),(re=window.parent)==null||re.postMessage({type:"startTimer",data:R},"*")},B=R=>{p.value=!1,i("update:searchText",R)},V=R=>{p.value=!1,i("clear:searchText",R)},I=R=>{o.selectedActivity&&i("addSubtask",R)},W=R=>{o.selectedActivity&&i("updateSubtask",R)},P=R=>{o.selectedActivity&&i("deleteSubtask",R)},H=R=>{i("addFiles",R)},Q=R=>{i("removeFile",R)},le=R=>{o.selectedActivity&&i("addComment",{...R,activityId:o.selectedActivity.id})},oe=R=>{const{id:re}=o.selectedActivity||{};re&&i("updateComment",R)},Ne=R=>{const{id:re}=o.selectedActivity||{};re&&i("removeComment",R)},ce=$r.useRouter(),ne=$r.useRoute(),z=r.ref("feed");r.watch(()=>ne.name,R=>{R===Po.feed||R==="ActivityFeed"||R==="ActivityFeedWithActivity"?z.value="feed":R===Po.dev||R==="ActivityFeedDev"||R==="ActivityFeedDevWithActivity"?z.value="dev":R===Pe.feed?z.value="feed":R===Pe.dev?z.value="dev":R===Pe.project?z.value="overview":R===Pe.mapping&&(z.value="mapping")},{immediate:!0});const F=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],se=r.computed(()=>Ee.value?F.filter(R=>R.value==="feed"||R.value==="dev"):F),Ee=r.computed(()=>!o.project&&ne.name&&(ne.name===Po.feed||ne.name===Po.dev||ne.name==="ActivityFeed"||ne.name==="ActivityFeedDev"||ne.name==="ActivityFeedWithActivity"||ne.name==="ActivityFeedDevWithActivity")),Ue=r.computed(()=>Ee.value?Po.feed:Pe.feed),we=r.computed(()=>Ee.value?Po.dev:Pe.dev),Ce=r.computed(()=>Pe.project),yt=r.computed(()=>Pe.mapping);return r.watch(z,R=>{R==="feed"?ce.push({name:Ue.value}):R==="dev"?ce.push({name:we.value}):R==="overview"?ce.push({name:Ce.value}):R==="mapping"&&ce.push({name:yt.value})}),(R,re)=>{var he;return r.openBlock(),r.createElementBlock("div",s0e,[r.createVNode(os,null,{primary:r.withCtx(()=>[r.createElementVNode("div",a0e,[r.createVNode(gs,{modelValue:z.value,"onUpdate:modelValue":re[0]||(re[0]=pe=>z.value=pe),tabs:se.value},null,8,["modelValue","tabs"]),r.createVNode(bge,{"model-value":t.searchText,placeholder:R.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":B,onClear:V},null,8,["model-value","placeholder"]),o.project?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(ft,{key:0,"model-value":t.filters[r.unref(an).project],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:R.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":re[1]||(re[1]=pe=>C(r.unref(an).project,pe))},null,8,["model-value","options","placeholder"])),t.feedMode==="dev"?(r.openBlock(),r.createBlock(ft,{key:1,"model-value":t.filters[r.unref(an).sprint],mode:"tags",options:b.value,"close-on-select":!1,searchable:!0,disabled:!b.value.length,class:"ao-feed__filter ao-feed__filter__sprints",placeholder:R.$t("feed.filters.sprint.placeholder"),"onUpdate:modelValue":re[2]||(re[2]=pe=>C(r.unref(an).sprint,pe))},null,8,["model-value","options","disabled","placeholder"])):r.createCommentVNode("",!0),r.createVNode(ft,{"model-value":t.filters[r.unref(an).milestone],mode:"tags",options:A.value,"close-on-select":!1,"clear-on-select":!1,searchable:!0,disabled:k.value.length===0,class:"ao-feed__filter ao-feed__filter__milestones",placeholder:R.$t("feed.filters.milestone.placeholder"),"onUpdate:modelValue":re[3]||(re[3]=pe=>C(r.unref(an).milestone,pe))},null,8,["model-value","options","disabled","placeholder"]),T.value.length?(r.openBlock(),r.createBlock(ft,{key:2,"model-value":t.filters[r.unref(an).assignee],mode:"tags",options:T.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:R.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":re[4]||(re[4]=pe=>C(r.unref(an).assignee,pe))},{tag:r.withCtx(({option:pe,handleTagRemove:Ke})=>[r.createVNode(Xn,{"user-name":pe.label,"avatar-url":pe.avatar,"is-closable":!0,onClose:De=>Ke(pe,De)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):r.createCommentVNode("",!0)]),r.createVNode(de,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:re[5]||(re[5]=pe=>R.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),r.createVNode(de,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:re[6]||(re[6]=pe=>R.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:re[7]||(re[7]=pe=>R.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),t.feedMode==="dev"&&w.value.length>0?(r.openBlock(),r.createBlock(i0e,{key:0,sprints:w.value,activities:c.value,"planning-data":t.sprintPlanningData,projects:v.value},null,8,["sprints","activities","planning-data","projects"])):r.createCommentVNode("",!0),r.createElementVNode("div",l0e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,pe=>(r.openBlock(),r.createBlock(_ge,{key:pe.id,status:pe,list:d.value[pe.id],title:pe.name,"footer-label":R.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":m.value,"show-header-add":t.isEditable,"is-dev-mode":t.feedMode==="dev",onAdd:()=>g(pe),onAddAtBeginning:()=>y(pe),onSelectActivity:u,onArchiveActivity:D,onUnarchiveActivity:x,onUpdateActivity:E,onStartTimer:$},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","is-dev-mode","onAdd","onAddAtBeginning"]))),128))]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.selectedActivity?(r.openBlock(),r.createBlock(id,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(he=t.selectedActivity.milestone)==null?void 0:he.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:h.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:v.value,"time-tracking-data":t.timeTrackingData,history:t.activityHistory,"history-loading":t.activityHistoryLoading,"load-attachment-preview":o.loadAttachmentPreview,sprints:t.activitySprints,onClose:re[8]||(re[8]=()=>u(null,null)),onFetchHistory:re[9]||(re[9]=()=>i("fetchHistory")),"onUpdate:activity":S,onAddSubtask:I,onUpdateSubtask:W,onDeleteSubtask:P,onAddFiles:H,onRemoveFile:Q,onAddComment:le,onUpdateComment:oe,onRemoveComment:Ne,onToast:s,onCreateSprint:re[10]||(re[10]=pe=>i("createSprint",pe))},{default:r.withCtx(pe=>[r.renderSlot(R.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(pe)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","history","history-loading","load-attachment-preview","sprints"])):r.createCommentVNode("",!0)]))])}}});const c0e={class:"ao-project-mapping"},u0e={class:"ao-project-mapping-mapping__body"},d0e={class:"ao-project-mapping-mapping__phases"},f0e={key:0,class:"ao-project-mapping-mapping__image-wrapper"},p0e=["src","alt"],m0e=r.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e,s=()=>{const{name:v,rank:_}=Ko(o.phases,"phase",n);i("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=ns(o.phases);i("addPhase",{name:v,rank:_,projectId:o.project.id})},l=v=>{i("updatePhase",v)},c=v=>{i("archivePhase",v)},u=v=>{i("unarchivePhase",v)},d=v=>{i("copyPhaseToTemplate",v)},f=r.ref(!1),p=r.ref(!1),m=(v,_)=>{i("applyTemplate",{templateId:v,projectId:_}),f.value=!1},h=(v,_)=>{var k;const b=(k=o.templates)==null?void 0:k.at(-1),w=b?Xe.LexoRank.parse(b.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:v,rank:w.format(),phaseIds:_}),p.value=!1},g=$r.useRouter(),y=r.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(y,v=>{v==="feed"?(g.push({name:Pe.feed}),console.log("Navigating to feed...")):v==="dev"?(g.push({name:Pe.dev}),console.log("Navigating to dev...")):v==="overview"?(g.push({name:Pe.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:Pe.mapping}),console.log("Navigating to feed..."))}),(v,_)=>{var b;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[r.createElementVNode("div",c0e,[r.createVNode(os,null,{primary:r.withCtx(()=>[r.createVNode(gs,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=w=>y.value=w),tabs:C},null,8,["modelValue"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:_[1]||(_[1]=w=>v.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:0,class:"ao-mapping__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("project.phase.add"),onClick:a},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:1,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:v.$t("project.template.save.label"),onClick:_[2]||(_[2]=w=>p.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-project-mapping-overview__add-template",color:"primary",label:v.$t("project.template.apply.label"),onClick:_[3]||(_[3]=w=>f.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",u0e,[r.createElementVNode("div",d0e,[r.createVNode(vd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(b=t.project)==null?void 0:b.estimationUnit,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(r.openBlock(),r.createElementBlock("div",f0e,[r.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:r.unref(n)("architectureImage.alt")},null,8,p0e)])):r.createCommentVNode("",!0)])])],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[p.value?(r.openBlock(),r.createBlock(Jg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>p.value=!1),onSave:h},null,8,["phases"])):r.createCommentVNode("",!0),f.value?(r.openBlock(),r.createBlock(Yg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>f.value=!1),onApply:m},null,8,["project-id","templates"])):r.createCommentVNode("",!0)]))],64)}}});const Ho={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},h0e=(t,e={})=>[{path:t,name:Ho.TEMPLATES,redirect:{name:Ho.TEMPLATES_LIST},...e,children:[{path:"",name:Ho.TEMPLATES_LIST,component:Xg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Ho.TEMPLATE_DETAILS,component:Zg,props:!0}]}],Pe={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Po={feed:"ActivityFeed",dev:"ActivityFeedDev"},g0e=(t,e={})=>[{path:t,...e,redirect:{name:Pe.project},children:[{path:"",name:Pe.project,component:lhe,props:!0,children:[{path:":phaseId/:milestoneId",name:Pe.milestone,component:kp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Pe.activity,props:{default:!0,modal:!0},components:{default:kp,modal:Jhe}}]},{path:"feed",name:Pe.feed,component:Jc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Pe.dev,component:Jc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Pe.mapping,component:m0e,props:!0}]}],v0e={class:"ao-templates"},Xg=r.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Nt(),o=t,i=e;r.watch(()=>o.templates,(u,d)=>{Wn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?Xe.LexoRank.parse(u.rank).genNext():Xe.LexoRank.middle(),f=((h=o.templates)==null?void 0:h.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};i("addTemplate",p)},a=(u,d)=>{i("updateItem",{itemType:je.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{i("removeItem",{itemType:je.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=ts(u,o.templates??[]);i("updateItem",{itemType:je.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(r.openBlock(),r.createElementBlock("div",v0e,[r.createVNode(os,null,{secondary:r.withCtx(()=>[r.createVNode(de,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),r.createVNode(r.unref(wo),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:r.withCtx(({element:f})=>{var p;return[r.createVNode(t7,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?r.unref(SC)(f.phases):0,activities:f.phases?r.unref(xC)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:m=>a(f.id,m),onClick:m=>u.$router.push({name:r.unref(Ho).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:d[0]||(d[0]=(m,h)=>l(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const _0e={class:"ao-field__label"},Qg=r.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[r.createElementVNode("span",_0e,r.toDisplayString(t.label),1),r.renderSlot(e.$slots,"default")],2))}}),y0e=["type","value","disabled","readonly"],C0e=r.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(r.openBlock(),r.createBlock(Qg,{label:t.label},{default:r.withCtx(()=>[r.createElementVNode("input",r.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[r.toHandlerKey(i.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,y0e)]),_:1},8,["label"]))}}),b0e={class:"ao-field"},k0e={class:"ao-field__label"},w0e=["checked","disabled"],e0=r.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("label",b0e,[r.createElementVNode("span",k0e,r.toDisplayString(t.label),1),r.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var i;return e.$emit("update:modelValue",((i=o.target)==null?void 0:i.checked)??!1)})},null,40,w0e)]))}}),E0e={class:"ao-audit-config"},S0e={key:0,class:"ao-audit-config__loading"},x0e={key:1,class:"ao-audit-config__error"},T0e={key:2,class:"ao-audit-config__empty"},A0e={key:3,class:"ao-audit-config__table"},N0e={class:"ao-audit-config__th ao-audit-config__th--table"},D0e={class:"ao-audit-config__th ao-audit-config__th--audit"},$0e={class:"ao-audit-config__th ao-audit-config__th--excluded"},B0e={class:"ao-audit-config__td ao-audit-config__td--table"},M0e={class:"ao-audit-config__table-name"},L0e={key:0,class:"ao-audit-config__schema"},O0e={class:"ao-audit-config__td ao-audit-config__td--audit"},V0e={class:"ao-audit-config__checkbox"},I0e={class:"ao-audit-config__td ao-audit-config__td--excluded"},P0e={key:0,class:"ao-audit-config__disabled-note"},F0e={class:"ao-audit-config__option"},R0e=["title"],z0e={key:0,class:"ao-audit-config__all-tracked"},U0e=r.defineComponent({__name:"AoAuditConfigTable",props:{tables:{},loading:{type:Boolean,default:!1},error:{default:null},disabled:{type:Boolean,default:!1}},emits:["update"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Nt(),s=r.computed(()=>n.tables);function a(u){return u.columns.map(d=>({value:d.name,label:d.name,isPrimaryKey:d.isPrimaryKey}))}function l(u,d){o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:d,excludeColumns:u.excludeColumns})}function c(u,d){const f=Array.from(new Set(d??[]));o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:u.isEnabled,excludeColumns:f})}return(u,d)=>(r.openBlock(),r.createElementBlock("div",E0e,[t.loading?(r.openBlock(),r.createElementBlock("div",S0e,r.toDisplayString(r.unref(i)("audit.loading")),1)):t.error?(r.openBlock(),r.createElementBlock("div",x0e,r.toDisplayString(r.unref(i)("audit.error",{message:t.error})),1)):s.value.length?(r.openBlock(),r.createElementBlock("table",A0e,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[r.createElementVNode("th",N0e,r.toDisplayString(r.unref(i)("audit.tableHeader")),1),r.createElementVNode("th",D0e,r.toDisplayString(r.unref(i)("audit.auditHeader")),1),r.createElementVNode("th",$0e,r.toDisplayString(r.unref(i)("audit.ignoredHeader")),1)])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,f=>(r.openBlock(),r.createElementBlock("tr",{key:`${f.schemaName}.${f.tableName}`},[r.createElementVNode("td",B0e,[r.createElementVNode("span",M0e,r.toDisplayString(f.tableName),1),f.schemaName!=="public"?(r.openBlock(),r.createElementBlock("span",L0e,r.toDisplayString(f.schemaName),1)):r.createCommentVNode("",!0)]),r.createElementVNode("td",O0e,[r.createElementVNode("div",V0e,[r.createVNode(e0,{label:"","model-value":f.isEnabled,"is-disabled":t.disabled,"is-readonly":!1,"onUpdate:modelValue":p=>l(f,p)},null,8,["model-value","is-disabled","onUpdate:modelValue"])])]),r.createElementVNode("td",I0e,[f.isEnabled?(r.openBlock(),r.createBlock(ft,{key:1,"model-value":f.excludeColumns,class:"ao-audit-config__multiselect",mode:"tags","value-prop":"value",label:"label","track-by":"label","close-on-select":!1,searchable:!0,options:a(f),disabled:t.disabled,caret:!t.disabled,"onUpdate:modelValue":p=>c(f,p)},{option:r.withCtx(({option:p})=>[r.createElementVNode("span",F0e,[r.createTextVNode(r.toDisplayString(p.label)+" ",1),p.isPrimaryKey?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-audit-config__pk",title:r.unref(i)("audit.primaryKey")}," PK ",8,R0e)):r.createCommentVNode("",!0)])]),placeholder:r.withCtx(()=>[f.excludeColumns.length===0?(r.openBlock(),r.createElementBlock("span",z0e,r.toDisplayString(r.unref(i)("audit.allTracked")),1)):r.createCommentVNode("",!0)]),_:2},1032,["model-value","options","disabled","caret","onUpdate:modelValue"])):(r.openBlock(),r.createElementBlock("div",P0e,r.toDisplayString(r.unref(i)("audit.auditDisabled")),1))])]))),128))])])):(r.openBlock(),r.createElementBlock("div",T0e,r.toDisplayString(r.unref(i)("audit.empty")),1))]))}});const H0e={class:"ao-sprint-list"},q0e={class:"ao-sprint-list__header"},j0e={class:"ao-sprint-list__title-group"},W0e={class:"ao-sprint-list__count"},Z0e={class:"ao-sprint-list__actions"},K0e={key:0,class:"ao-sprint-list__toggle"},G0e={key:0,class:"ao-sprint-list__row ao-sprint-list__row--editing"},Y0e=["title","onClick"],J0e=["placeholder"],X0e={class:"ao-sprint-list__date-fields"},Q0e={class:"ao-sprint-list__row-actions"},eve={class:"ao-sprint-list__rows"},tve={class:"ao-sprint-list__identity"},nve={class:"ao-sprint-list__name-group"},ove={class:"ao-sprint-list__name"},rve={key:0,class:"ao-sprint-list__archived-badge"},ive={class:"ao-sprint-list__dates"},sve={key:0,class:"ao-sprint-list__row-actions"},ave=["title","onClick"],lve={class:"ao-sprint-list__date-fields"},cve={class:"ao-sprint-list__row-actions"},uve={key:1,class:"ao-sprint-list__empty"},dve=r.defineComponent({__name:"AoSprintList",props:{sprints:{},isEditable:{type:Boolean}},emits:["updateSprint","archiveSprint","unarchiveSprint","createSprint"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Nt(),s=r.ref(!1),a=r.computed(()=>s.value?n.sprints:n.sprints.filter(T=>T.active)),l=r.ref(null),c=r.ref({name:"",startDate:"",endDate:"",color:""}),u=r.ref(null),d=r.ref(null),f=T=>{l.value=T.id,c.value={name:T.name,startDate:T.startDate,endDate:T.endDate,color:T.color||""}},p=()=>{l.value=null,c.value={name:"",startDate:"",endDate:"",color:""}},m=T=>{o("updateSprint",{id:T,name:c.value.name||void 0,startDate:c.value.startDate||void 0,endDate:c.value.endDate||void 0,color:c.value.color||void 0}),p()},h=T=>{confirm(i("sprint.confirmArchive"))&&o("archiveSprint",{id:T})},g=T=>{o("unarchiveSprint",{id:T})},y=T=>Qc(Br(T),"dd/MM/yy"),C=()=>n.sprints.reduce((S,E)=>{const D=E.name.match(/^Sprint\s*(\d+)$/);return D?Math.max(S,parseInt(D[1],10)):S},0)+1,v=r.ref(!1),_=r.ref({name:"",startDate:"",endDate:"",color:"#4f5cff"}),b=()=>{v.value=!0,l.value=null,_.value={name:`Sprint ${C()}`,startDate:"",endDate:"",color:"#4f5cff"}},w=()=>{v.value=!1,_.value={name:"",startDate:"",endDate:"",color:"#4f5cff"}},k=()=>{!_.value.name||!_.value.startDate||!_.value.endDate||(o("createSprint",{name:_.value.name,startDate:_.value.startDate,endDate:_.value.endDate,color:_.value.color||void 0}),w())},A=r.computed(()=>v.value?!!(_.value.name&&_.value.startDate&&_.value.endDate):l.value?!!(c.value.name&&c.value.startDate&&c.value.endDate):!1);return(T,S)=>(r.openBlock(),r.createElementBlock("section",H0e,[r.createElementVNode("div",q0e,[r.createElementVNode("div",j0e,[r.createElementVNode("h3",null,r.toDisplayString(r.unref(i)("sprint.planning")),1),r.createElementVNode("span",W0e,r.toDisplayString(a.value.length),1)]),r.createElementVNode("div",Z0e,[t.sprints.some(E=>!E.active)?(r.openBlock(),r.createElementBlock("label",K0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[0]||(S[0]=E=>s.value=E),type:"checkbox"},null,512),[[r.vModelCheckbox,s.value]]),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("sprint.showArchived")),1)])):r.createCommentVNode("",!0),t.isEditable&&!v.value?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"solid",size:"sm","icon-name":"Add","icon-position":"start",label:r.unref(i)("sprint.add"),onClick:b},null,8,["label"])):r.createCommentVNode("",!0)])]),v.value?(r.openBlock(),r.createElementBlock("div",G0e,[r.createVNode(jr,{color:_.value.color,"onUpdate:color":S[1]||(S[1]=E=>_.value.color=E)},{clickable:r.withCtx(({openPicker:E,bgColor:D})=>[r.createElementVNode("button",{ref_key:"colorTriggerRef",ref:u,class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:D}),title:r.unref(i)("sprint.color"),onClick:x=>E(x.currentTarget)},null,12,Y0e)]),_:1},8,["color"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[2]||(S[2]=E=>_.value.name=E),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--name",placeholder:r.unref(i)("sprint.name")},null,8,J0e),[[r.vModelText,_.value.name]]),r.createElementVNode("div",X0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[3]||(S[3]=E=>_.value.startDate=E),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,_.value.startDate]]),S[9]||(S[9]=r.createElementVNode("span",{class:"ao-sprint-list__date-separator"},"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[4]||(S[4]=E=>_.value.endDate=E),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,_.value.endDate]])]),r.createElementVNode("div",Q0e,[r.createVNode(de,{color:"success",variant:"ghost",size:"sm","icon-name":"CheckSmallRounded",disabled:!A.value,title:r.unref(i)("common.save"),onClick:k},null,8,["disabled","title"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm","icon-name":"CloseRounded",title:r.unref(i)("common.cancel"),onClick:w},null,8,["title"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",eve,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,E=>(r.openBlock(),r.createElementBlock("div",{key:E.id,class:r.normalizeClass(["ao-sprint-list__row",{"ao-sprint-list__row--archived":!E.active,"ao-sprint-list__row--editing":l.value===E.id}])},[l.value!==E.id?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",tve,[r.createElementVNode("span",{class:"ao-sprint-list__color-dot",style:r.normalizeStyle({backgroundColor:E.color||"var(--ao-color-primary-base)"})},null,4),r.createElementVNode("div",nve,[r.createElementVNode("span",ove,r.toDisplayString(E.name),1),E.active?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",rve,r.toDisplayString(r.unref(i)("sprint.archived")),1))])]),r.createElementVNode("div",ive,[r.createVNode(ke,{name:"CalendarTodayOutlineRounded",size:"sm"}),r.createElementVNode("span",null,r.toDisplayString(y(E.startDate))+" – "+r.toDisplayString(y(E.endDate)),1)]),t.isEditable?(r.openBlock(),r.createElementBlock("div",sve,[r.createVNode(de,{color:"neutral",variant:"ghost",size:"md","icon-name":"EditOutline","icon-position":"start",title:r.unref(i)("common.edit"),onClick:D=>f(E)},null,8,["title","onClick"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"md",corners:"round","icon-position":"start","icon-name":(E.active,"ArchiveOutlineRounded"),label:E.active?r.unref(i)("sprint.archive"):r.unref(i)("sprint.unarchive"),onClick:D=>E.active?h(E.id):g(E.id)},null,8,["icon-name","label","onClick"])])):r.createCommentVNode("",!0)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(jr,{color:c.value.color,"onUpdate:color":S[5]||(S[5]=D=>c.value.color=D)},{clickable:r.withCtx(({openPicker:D,bgColor:x})=>[r.createElementVNode("button",{ref_for:!0,ref_key:"colorTriggerEditRef",ref:d,class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:x}),title:r.unref(i)("sprint.color"),onClick:$=>D($.currentTarget)},null,12,ave)]),_:1},8,["color"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[6]||(S[6]=D=>c.value.name=D),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--name"},null,512),[[r.vModelText,c.value.name]]),r.createElementVNode("div",lve,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[7]||(S[7]=D=>c.value.startDate=D),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,c.value.startDate]]),S[10]||(S[10]=r.createElementVNode("span",{class:"ao-sprint-list__date-separator"},"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[8]||(S[8]=D=>c.value.endDate=D),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,c.value.endDate]])]),r.createElementVNode("div",cve,[r.createVNode(de,{color:"success",variant:"ghost",size:"md","icon-name":"CheckSmallRounded",disabled:!A.value,title:r.unref(i)("common.save"),onClick:D=>m(E.id)},null,8,["disabled","title","onClick"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"md","icon-name":"CloseRounded",title:r.unref(i)("common.cancel"),onClick:p},null,8,["title"])])],64))],2))),128))]),a.value.length===0&&!v.value?(r.openBlock(),r.createElementBlock("div",uve,r.toDisplayString(r.unref(i)("sprint.noSprints")),1)):r.createCommentVNode("",!0)]))}});const fve=te(dve,[["__scopeId","data-v-698944ea"]]);exports.AoAuditConfigTable=U0e;exports.AoAvatar=Xn;exports.AoCardFeed=_d;exports.AoCheckboxField=e0;exports.AoColorPicker=jr;exports.AoFeed=Jc;exports.AoField=Qg;exports.AoHistory=Wg;exports.AoInputField=C0e;exports.AoMultiselect=ft;exports.AoProjectPhases=vd;exports.AoSprintList=fve;exports.AoTabBar=gs;exports.AoTemplateDetails=Zg;exports.AoTemplates=c0;exports.AoTemplatesList=Xg;exports.EstimationUnit=Np;exports.TemplateItemTypeEnum=Ap;exports.activityFeedRoutes=Po;exports.activityFeedStatus=I3;exports.durationTypes=V3;exports.feedFilterTypes=an;exports.getProjectOverviewRoutes=g0e;exports.getTemplateRoutes=h0e;exports.listUpdateTypes=P3;exports.milestoneStatus=Pi;exports.projectOverviewRoutes=Pe;exports.ruleComparators=Sp;exports.ruleDurationUnits=Tp;exports.ruleTriggerTypes=xp;exports.templateItemType=je;exports.templateRouteNames=Ho;