@26lights/orcha 0.42.104 → 0.42.106

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 Kg=Object.defineProperty;var Gg=(t,e,n)=>e in t?Kg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var H=(t,e,n)=>(Gg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Ki=require("vue-router"),go=require("vuedraggable");const Yg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ki.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),re=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Jg={},Xg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qg(t,e){return i.openBlock(),i.createElementBlock("svg",Xg,[...e[0]||(e[0]=[i.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 e0=re(Jg,[["render",Qg]]),t0={},n0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o0(t,e){return i.openBlock(),i.createElementBlock("svg",n0,[...e[0]||(e[0]=[i.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 r0=re(t0,[["render",o0]]),i0={},s0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a0(t,e){return i.openBlock(),i.createElementBlock("svg",s0,[...e[0]||(e[0]=[i.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 l0=re(i0,[["render",a0]]),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 i.openBlock(),i.createElementBlock("svg",u0,[...e[0]||(e[0]=[i.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 f0=re(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 i.openBlock(),i.createElementBlock("svg",m0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const g0=re(p0,[["render",h0]]),v0={},y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _0(t,e){return i.openBlock(),i.createElementBlock("svg",y0,[...e[0]||(e[0]=[i.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 C0=re(v0,[["render",_0]]),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 i.openBlock(),i.createElementBlock("svg",k0,[...e[0]||(e[0]=[i.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 E0=re(b0,[["render",w0]]),x0={},S0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T0(t,e){return i.openBlock(),i.createElementBlock("svg",S0,[...e[0]||(e[0]=[i.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 A0=re(x0,[["render",T0]]),N0={},D0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M0(t,e){return i.openBlock(),i.createElementBlock("svg",D0,[...e[0]||(e[0]=[i.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 B0=re(N0,[["render",M0]]),$0={},O0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L0(t,e){return i.openBlock(),i.createElementBlock("svg",O0,[...e[0]||(e[0]=[i.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 I0=re($0,[["render",L0]]),P0={},F0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V0(t,e){return i.openBlock(),i.createElementBlock("svg",F0,[...e[0]||(e[0]=[i.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 R0=re(P0,[["render",V0]]),z0={},U0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q0(t,e){return i.openBlock(),i.createElementBlock("svg",U0,[...e[0]||(e[0]=[i.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 H0=re(z0,[["render",q0]]),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 i.openBlock(),i.createElementBlock("svg",W0,[...e[0]||(e[0]=[i.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 K0=re(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 i.openBlock(),i.createElementBlock("svg",Y0,[...e[0]||(e[0]=[i.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 X0=re(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 i.openBlock(),i.createElementBlock("svg",ev,[...e[0]||(e[0]=[i.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 nv=re(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 i.openBlock(),i.createElementBlock("svg",rv,[...e[0]||(e[0]=[i.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 sv=re(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 i.openBlock(),i.createElementBlock("svg",lv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const uv=re(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 i.openBlock(),i.createElementBlock("svg",fv,[...e[0]||(e[0]=[i.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 mv=re(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 i.openBlock(),i.createElementBlock("svg",gv,[...e[0]||(e[0]=[i.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 yv=re(hv,[["render",vv]]),_v={},Cv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bv(t,e){return i.openBlock(),i.createElementBlock("svg",Cv,[...e[0]||(e[0]=[i.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 kv=re(_v,[["render",bv]]),wv={},Ev={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xv(t,e){return i.openBlock(),i.createElementBlock("svg",Ev,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const Sv=re(wv,[["render",xv]]),Tv={},Av={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nv(t,e){return i.openBlock(),i.createElementBlock("svg",Av,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const Dv=re(Tv,[["render",Nv]]),Mv={},Bv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $v(t,e){return i.openBlock(),i.createElementBlock("svg",Bv,[...e[0]||(e[0]=[i.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 Ov=re(Mv,[["render",$v]]),Lv={},Iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pv(t,e){return i.openBlock(),i.createElementBlock("svg",Iv,[...e[0]||(e[0]=[i.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 Fv=re(Lv,[["render",Pv]]),Vv={},Rv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zv(t,e){return i.openBlock(),i.createElementBlock("svg",Rv,[...e[0]||(e[0]=[i.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 Uv=re(Vv,[["render",zv]]),qv={},Hv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jv(t,e){return i.openBlock(),i.createElementBlock("svg",Hv,[...e[0]||(e[0]=[i.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 Wv=re(qv,[["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 i.openBlock(),i.createElementBlock("svg",Kv,[...e[0]||(e[0]=[i.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),i.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 Yv=re(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 i.openBlock(),i.createElementBlock("svg",Xv,[...e[0]||(e[0]=[i.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 e2=re(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 i.openBlock(),i.createElementBlock("svg",n2,[...e[0]||(e[0]=[i.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 r2=re(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 i.openBlock(),i.createElementBlock("svg",s2,[...e[0]||(e[0]=[i.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 l2=re(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 i.openBlock(),i.createElementBlock("svg",u2,[...e[0]||(e[0]=[i.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 f2=re(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 i.openBlock(),i.createElementBlock("svg",m2,[...e[0]||(e[0]=[i.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 g2=re(p2,[["render",h2]]),v2={},y2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _2(t,e){return i.openBlock(),i.createElementBlock("svg",y2,[...e[0]||(e[0]=[i.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 C2=re(v2,[["render",_2]]),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 i.openBlock(),i.createElementBlock("svg",k2,[...e[0]||(e[0]=[i.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 E2=re(b2,[["render",w2]]),x2={},S2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T2(t,e){return i.openBlock(),i.createElementBlock("svg",S2,[...e[0]||(e[0]=[i.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 A2=re(x2,[["render",T2]]),N2={},D2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M2(t,e){return i.openBlock(),i.createElementBlock("svg",D2,[...e[0]||(e[0]=[i.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 B2=re(N2,[["render",M2]]),$2={},O2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L2(t,e){return i.openBlock(),i.createElementBlock("svg",O2,[...e[0]||(e[0]=[i.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 I2=re($2,[["render",L2]]),P2={},F2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V2(t,e){return i.openBlock(),i.createElementBlock("svg",F2,[...e[0]||(e[0]=[i.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 R2=re(P2,[["render",V2]]),z2={},U2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q2(t,e){return i.openBlock(),i.createElementBlock("svg",U2,[...e[0]||(e[0]=[i.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 H2=re(z2,[["render",q2]]),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 i.openBlock(),i.createElementBlock("svg",W2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const K2=re(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 i.openBlock(),i.createElementBlock("svg",Y2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const X2=re(G2,[["render",J2]]),Q2=i.defineComponent({name:"LoadingIcon"});const e3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t3(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",e3,[...e[0]||(e[0]=[i.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const n3=re(Q2,[["render",t3],["__scopeId","data-v-ad6da4a9"]]),o3={},r3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function i3(t,e){return i.openBlock(),i.createElementBlock("svg",r3,[...e[0]||(e[0]=[i.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 s3=re(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 i.openBlock(),i.createElementBlock("svg",l3,[...e[0]||(e[0]=[i.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 u3=re(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 i.openBlock(),i.createElementBlock("svg",f3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const m3=re(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 i.openBlock(),i.createElementBlock("svg",g3,[...e[0]||(e[0]=[i.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 y3=re(h3,[["render",v3]]),_3={},C3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b3(t,e){return i.openBlock(),i.createElementBlock("svg",C3,[...e[0]||(e[0]=[i.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 k3=re(_3,[["render",b3]]),w3={},E3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x3(t,e){return i.openBlock(),i.createElementBlock("svg",E3,[...e[0]||(e[0]=[i.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 S3=re(w3,[["render",x3]]),T3={},A3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N3(t,e){return i.openBlock(),i.createElementBlock("svg",A3,[...e[0]||(e[0]=[i.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 D3=re(T3,[["render",N3]]),M3={},B3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $3(t,e){return i.openBlock(),i.createElementBlock("svg",B3,[...e[0]||(e[0]=[i.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 O3=re(M3,[["render",$3]]),L3={},I3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P3(t,e){return i.openBlock(),i.createElementBlock("svg",I3,[...e[0]||(e[0]=[i.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 F3=re(L3,[["render",P3]]),V3={},R3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z3(t,e){return i.openBlock(),i.createElementBlock("svg",R3,[...e[0]||(e[0]=[i.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 U3=re(V3,[["render",z3]]),q3={},H3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j3(t,e){return i.openBlock(),i.createElementBlock("svg",H3,[...e[0]||(e[0]=[i.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 W3=re(q3,[["render",j3]]),Z3={},K3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G3(t,e){return i.openBlock(),i.createElementBlock("svg",K3,[...e[0]||(e[0]=[i.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 Y3=re(Z3,[["render",G3]]),J3={},X3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q3(t,e){return i.openBlock(),i.createElementBlock("svg",X3,[...e[0]||(e[0]=[i.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 e5=re(J3,[["render",Q3]]),t5={},n5={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o5(t,e){return i.openBlock(),i.createElementBlock("svg",n5,[...e[0]||(e[0]=[i.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 r5=re(t5,[["render",o5]]),i5={},s5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a5(t,e){return i.openBlock(),i.createElementBlock("svg",s5,[...e[0]||(e[0]=[i.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 l5=re(i5,[["render",a5]]),c5={},u5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d5(t,e){return i.openBlock(),i.createElementBlock("svg",u5,[...e[0]||(e[0]=[i.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 f5=re(c5,[["render",d5]]),p5={},m5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h5(t,e){return i.openBlock(),i.createElementBlock("svg",m5,[...e[0]||(e[0]=[i.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 g5=re(p5,[["render",h5]]),v5={},y5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _5(t,e){return i.openBlock(),i.createElementBlock("svg",y5,[...e[0]||(e[0]=[i.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 C5=re(v5,[["render",_5]]),b5={},k5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w5(t,e){return i.openBlock(),i.createElementBlock("svg",k5,[...e[0]||(e[0]=[i.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 E5=re(b5,[["render",w5]]),x5={},S5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T5(t,e){return i.openBlock(),i.createElementBlock("svg",S5,[...e[0]||(e[0]=[i.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 A5=re(x5,[["render",T5]]),N5={},D5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M5(t,e){return i.openBlock(),i.createElementBlock("svg",D5,[...e[0]||(e[0]=[i.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 B5=re(N5,[["render",M5]]),$5={},O5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L5(t,e){return i.openBlock(),i.createElementBlock("svg",O5,[...e[0]||(e[0]=[i.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 I5=re($5,[["render",L5]]),P5={},F5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V5(t,e){return i.openBlock(),i.createElementBlock("svg",F5,[...e[0]||(e[0]=[i.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 R5=re(P5,[["render",V5]]),z5={},U5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q5(t,e){return i.openBlock(),i.createElementBlock("svg",U5,[...e[0]||(e[0]=[i.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 H5=re(z5,[["render",q5]]),j5={},W5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z5(t,e){return i.openBlock(),i.createElementBlock("svg",W5,[...e[0]||(e[0]=[i.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 K5=re(j5,[["render",Z5]]),G5={},Y5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J5(t,e){return i.openBlock(),i.createElementBlock("svg",Y5,[...e[0]||(e[0]=[i.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 X5=re(G5,[["render",J5]]),Q5={},ey={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ty(t,e){return i.openBlock(),i.createElementBlock("svg",ey,[...e[0]||(e[0]=[i.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 ny=re(Q5,[["render",ty]]),oy={},ry={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iy(t,e){return i.openBlock(),i.createElementBlock("svg",ry,[...e[0]||(e[0]=[i.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 sy=re(oy,[["render",iy]]),ay=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:e0,AccountCircle:r0,AccountTreeOutlineRounded:l0,AccountTreeRounded:f0,Add:g0,AddBoxOutlineRounded:C0,ArchiveOutlineRounded:E0,ArrowBackRounded:A0,ArrowDropDownRounded:B0,ArrowForwardRounded:I0,AssignmentOutlineRounded:R0,AttachFileRounded:H0,CalendarTodayOutlineRounded:K0,CancelRounded:X0,ChatOutline:nv,CheckBoxOutlineBlank:sv,CheckBoxOutlineBlankSharp:uv,CheckBoxOutlineRounded:mv,CheckSmallRounded:yv,ChecklistRounded:kv,ChevronLeft:Sv,ChevronRight:Dv,CloseRounded:Ov,ContactsOutlineRounded:Fv,ContentCopyOutline:Uv,DeleteOutlineRounded:Wv,DownloadRounded:Yv,DragIndicator:e2,EditDocumentRounded:r2,EditOutline:l2,ErrorOutlineRounded:f2,FilterListRounded:g2,FlagRounded:C2,FlowsheetOutlineRounded:E2,GifBox:A2,GroupsOutline:B2,HomeOutlineRounded:I2,ImageRounded:R2,Info:H2,KeyboardArrowDown:K2,KeyboardArrowUp:X2,Loading:n3,Lock:s3,LogoutRounded:u3,Menu:m3,MoreHoriz:y3,MoreTimeRounded:k3,MoreVert:S3,MountainFlagOutlineRounded:D3,PersonAddOutlineRounded:O3,PictureAsPdfRounded:F3,RadioButtonChecked:U3,RadioButtonCheckedOutline:W3,RadioButtonUnchecked:Y3,RemoveRounded:e5,SearchRounded:r5,SelectCheckBox:l5,SendRounded:f5,Settings:g5,SlideshowRounded:C5,Target:E5,TaskOutlineRounded:A5,TextSnippetRounded:B5,TimerOutline:I5,ViewComfyAltRounded:R5,ViewCompactAltRounded:H5,ViewTimelineRounded:K5,WarningOutlineRounded:X5,WarningRounded:ny,WaterfallChartRounded:sy},Symbol.toStringTag,{value:"Module"})),ly={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Ea={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Kc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},cy={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Kc,...cy});const fp={ROUND:"round",ROUNDED:"rounded"},uy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ye=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Ea.MD}},setup(t){const e=t,n=i.computed(()=>ay[e.name]);return(o,r)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:i.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const dy=["type"],fy={key:0,class:"ao-button__label"},pe=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>ly.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Ea.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>fp.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.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}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",fy,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(ye,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,dy))}});function py(t){const e=i.ref(!1),n=i.ref(""),o=i.computed(()=>"value"in t.value?"value":"innerHTML"),r=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await i.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await i.nextTick(()=>{c(d,u)})};return i.watch(e,async c=>{await i.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:r,onUpdate:l,onDiscard:a}}const dt=i.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=i.ref(null),o=t,r=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=py(n),u=i.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=i.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;r("update:title",_)}),p=c(),m=async()=>{s.value&&a(!1)},h=()=>{r("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return i.watch(()=>o.isEditable,y=>{y||p()}),(y,C)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),i.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":i.unref(s),"ao-title--readonly":!i.unref(s)}],type:i.unref(s)?"text":null,value:i.unref(s)?t.title:null,tabindex:"0",onKeyup:i.withKeys(h,["enter"])},i.toHandlers(d.value),{onKeydown:i.withKeys(i.unref(p),["esc"])}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const my={key:0,class:"ao-card-horiz__drag ao-card__drag"},hy={class:"ao-card-horiz__header"},gy={key:0,class:"ao-card-horiz__avatar"},vy={class:"ao-card-horiz__title-group"},yy={key:0,class:"ao-card-horiz__subtitle"},_y={key:1,class:"ao-card-horiz__header"},Cy={key:1,class:"ao-card-horiz__body"},by={key:2,class:"ao-card-horiz__footer"},ky={key:3,class:"ao-card-horiz__secondary"},pp=i.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=r=>{n("update:title",r)};return(r,s)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:i.withCtx(()=>[t.isDraggable?(i.openBlock(),i.createElementBlock("div",my,[i.createVNode(ye,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",hy,[t.icon?(i.openBlock(),i.createElementBlock("div",gy,[i.createVNode(ye,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",vy,[i.createVNode(dt,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),i.renderSlot(r.$slots,"subtitle",{},()=>[t.subtitle?(i.openBlock(),i.createElementBlock("span",yy,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",_y,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",Cy,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",by,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",ky,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Bi=i.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=i.computed(()=>e.clickable?"button":"span"),o=i.computed(()=>n.value==="button"?{type:"button"}:{});return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.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:i.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),i.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>r.$emit("click",a))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.label)+" ",1),t.variant===i.unref(uy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(ye,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):i.createCommentVNode("",!0)]),_:1},16)),t.closable?(i.openBlock(),i.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>r.$emit("close",a))},[i.createVNode(ye,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},wy={months:"months",weeks:"weeks",days:"days"},Ey={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},mp={BEFORE:"before",AFTER:"after"},hp={START:"start",end:"end"},gp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Pe={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var vp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(vp||{});const xy={add:"add",remove:"remove",moved:"moved"};var yp=(t=>(t.HOURS="hours",t.DAYS="days",t))(yp||{});const No={project:"projectId",assignee:"assigneeId"};function Ks(t){"@babel/helpers - typeof";return Ks=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},Ks(t)}function Rn(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 Ke(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function ht(t){Ke(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Ks(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 Sy(t,e){Ke(2,arguments);var n=ht(t).getTime(),o=Rn(e);return new Date(n+o)}var Ty={};function Gi(){return Ty}function Oi(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 vd(t){Ke(1,arguments);var e=ht(t);return e.setHours(0,0,0,0),e}var Ay=864e5;function Ny(t,e){Ke(2,arguments);var n=vd(t),o=vd(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/Ay)}function Dy(t,e){Ke(2,arguments);var n=ht(t),o=ht(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var _p=6e4,Cp=36e5;function My(t){return Ke(1,arguments),t instanceof Date||Ks(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function bp(t){if(Ke(1,arguments),!My(t)&&typeof t!="number")return!1;var e=ht(t);return!isNaN(Number(e))}function ac(t,e){Ke(2,arguments);var n=Rn(e);return Sy(t,-n)}var By=864e5;function $y(t){Ke(1,arguments);var e=ht(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/By)+1}function Gs(t){Ke(1,arguments);var e=1,n=ht(t),o=n.getUTCDay(),r=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function kp(t){Ke(1,arguments);var e=ht(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Gs(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Gs(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Oy(t){Ke(1,arguments);var e=kp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Gs(n);return o}var Ly=6048e5;function Iy(t){Ke(1,arguments);var e=ht(t),n=Gs(e).getTime()-Oy(e).getTime();return Math.round(n/Ly)+1}function Ys(t,e){var n,o,r,s,a,l,c,u;Ke(1,arguments);var d=Gi(),f=Rn((n=(o=(r=(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&&r!==void 0?r: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=ht(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 wp(t,e){var n,o,r,s,a,l,c,u;Ke(1,arguments);var d=ht(t),f=d.getUTCFullYear(),p=Gi(),m=Rn((n=(o=(r=(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&&r!==void 0?r: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=Ys(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Ys(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Py(t,e){var n,o,r,s,a,l,c,u;Ke(1,arguments);var d=Gi(),f=Rn((n=(o=(r=(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&&r!==void 0?r: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=wp(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Ys(m,e);return h}var Fy=6048e5;function Vy(t,e){Ke(1,arguments);var n=ht(t),o=Ys(n,e).getTime()-Py(n,e).getTime();return Math.round(o/Fy)+1}function Ae(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Ry={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return Ae(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Ae(o+1,2)},d:function(e,n){return Ae(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 Ae(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Ae(e.getUTCHours(),n.length)},m:function(e,n){return Ae(e.getUTCMinutes(),n.length)},s:function(e,n){return Ae(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,o-3));return Ae(s,n.length)}};const Qn=Ry;var dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zy={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return o.ordinalNumber(s,{unit:"year"})}return Qn.y(e,n)},Y:function(e,n,o,r){var s=wp(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Ae(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Ae(a,n.length)},R:function(e,n){var o=kp(e);return Ae(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Ae(o,n.length)},Q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Ae(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Ae(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Qn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return Ae(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var s=Vy(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Ae(s,n.length)},I:function(e,n,o){var r=Iy(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):Ae(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Qn.d(e,n)},D:function(e,n,o){var r=$y(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Ae(r,n.length)},E:function(e,n,o){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,o,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Ae(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,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Ae(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 r=e.getUTCDay(),s=r===0?7:r;switch(n){case"i":return String(s);case"ii":return Ae(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),s=r/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 r=e.getUTCHours(),s;switch(r===12?s=dr.noon:r===0?s=dr.midnight:s=r/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 r=e.getUTCHours(),s;switch(r>=17?s=dr.evening:r>=12?s=dr.afternoon:r>=4?s=dr.morning:s=dr.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 r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Qn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Qn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):Ae(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):Ae(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Qn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Qn.s(e,n)},S:function(e,n){return Qn.S(e,n)},X:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return _d(a);case"XXXX":case"XX":return Do(a);case"XXXXX":case"XXX":default:return Do(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return _d(a);case"xxxx":case"xx":return Do(a);case"xxxxx":case"xxx":default:return Do(a,":")}},O:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+yd(a,":");case"OOOO":default:return"GMT"+Do(a,":")}},z:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+yd(a,":");case"zzzz":default:return"GMT"+Do(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return Ae(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return Ae(a,n.length)}};function yd(t,e){var n=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(s===0)return n+String(r);var a=e||"";return n+String(r)+a+Ae(s,2)}function _d(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Ae(Math.abs(t)/60,2)}return Do(t,e)}function Do(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=Ae(Math.floor(r/60),2),a=Ae(r%60,2);return o+s+n+a}const Uy=zy;var Cd=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"})}},Ep=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"})}},qy=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return Cd(e,n);var a;switch(r){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}}",Cd(r,n)).replace("{{time}}",Ep(s,n))},Hy={p:Ep,P:qy};const jy=Hy;var Wy=["D","DD"],Zy=["YY","YYYY"];function Ky(t){return Wy.indexOf(t)!==-1}function Gy(t){return Zy.indexOf(t)!==-1}function bd(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 Yy={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"}},Jy=function(e,n,o){var r,s=Yy[e];return typeof s=="string"?r=s:n===1?r=s.one:r=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const Xy=Jy;function yl(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 Qy={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n7={date:yl({formats:Qy,defaultWidth:"full"}),time:yl({formats:e7,defaultWidth:"full"}),dateTime:yl({formats:t7,defaultWidth:"full"})};const o7=n7;var r7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i7=function(e,n,o,r){return r7[e]};const s7=i7;function ai(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return r[u]}}var a7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},c7={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"]},u7={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"]},d7={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"}},f7={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"}},p7=function(e,n){var o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},m7={ordinalNumber:p7,era:ai({values:a7,defaultWidth:"wide"}),quarter:ai({values:l7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:c7,defaultWidth:"wide"}),day:ai({values:u7,defaultWidth:"wide"}),dayPeriod:ai({values:d7,defaultWidth:"wide",formattingValues:f7,defaultFormattingWidth:"wide"})};const h7=m7;function li(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?v7(l,function(f){return f.test(a)}):g7(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 g7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function v7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function y7(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 r=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(r.length);return{value:a,rest:l}}}var _7=/^(\d+)(th|st|nd|rd)?/i,C7=/\d+/i,b7={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},k7={any:[/^b/i,/^(a|c)/i]},w7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},E7={any:[/1/i,/2/i,/3/i,/4/i]},x7={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},S7={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]},T7={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},A7={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]},N7={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},D7={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}},M7={ordinalNumber:y7({matchPattern:_7,parsePattern:C7,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:b7,defaultMatchWidth:"wide",parsePatterns:k7,defaultParseWidth:"any"}),quarter:li({matchPatterns:w7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:x7,defaultMatchWidth:"wide",parsePatterns:S7,defaultParseWidth:"any"}),day:li({matchPatterns:T7,defaultMatchWidth:"wide",parsePatterns:A7,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:N7,defaultMatchWidth:"any",parsePatterns:D7,defaultParseWidth:"any"})};const B7=M7;var $7={code:"en-US",formatDistance:Xy,formatLong:o7,formatRelative:s7,localize:h7,match:B7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const xp=$7;var O7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I7=/^'([^]*?)'?$/,P7=/''/g,F7=/[a-zA-Z]/;function Sp(t,e,n){var o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k;Ke(2,arguments);var w=String(e),b=Gi(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:xp,T=Rn((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:b.firstWeekContainsDate)!==null&&a!==void 0?a:(f=b.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=Rn((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:b.weekStartsOn)!==null&&h!==void 0?h:(_=b.locale)===null||_===void 0||(k=_.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&m!==void 0?m:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var N=ht(t);if(!bp(N))throw new RangeError("Invalid time value");var L=Oi(N),A=ac(N,L),D={firstWeekContainsDate:T,weekStartsOn:S,locale:E,_originalDate:N},M=w.match(L7).map(function(I){var P=I[0];if(P==="p"||P==="P"){var W=jy[P];return W(I,E.formatLong)}return I}).join("").match(O7).map(function(I){if(I==="''")return"'";var P=I[0];if(P==="'")return V7(I);var W=Uy[P];if(W)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Gy(I)&&bd(I,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ky(I)&&bd(I,e,String(t)),W(A,I,E.localize,D);if(P.match(F7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return I}).join("");return M}function V7(t){var e=t.match(I7);return e?e[1].replace(P7,"'"):t}function R7(t,e,n){var o,r,s,a,l,c,u,d,f,p;Ke(2,arguments);var m=ht(t),h=ht(e),g=Gi(),y=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:xp,C=Rn((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=Ny(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 k=ac(m,Oi(m)),w=ac(h,Oi(h)),b=y.formatRelative(_,k,w,{locale:y,weekStartsOn:C});return Sp(m,b,{locale:y,weekStartsOn:C})}function Li(t,e){var n;Ke(1,arguments);var o=Rn((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 r=H7(t),s;if(r.date){var a=j7(r.date,o);s=W7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=Z7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=K7(r.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 ws={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},z7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,U7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,q7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function H7(t){var e={},n=t.split(ws.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],ws.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ws.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=ws.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function j7(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 r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function W7(t,e){if(e===null)return new Date(NaN);var n=t.match(z7);if(!n)return new Date(NaN);var o=!!n[4],r=ci(n[1]),s=ci(n[2])-1,a=ci(n[3]),l=ci(n[4]),c=ci(n[5])-1;if(o)return Q7(e,l,c)?G7(e,l,c):new Date(NaN);var u=new Date(0);return!J7(e,s,a)||!X7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function Z7(t){var e=t.match(U7);if(!e)return NaN;var n=_l(e[1]),o=_l(e[2]),r=_l(e[3]);return e_(n,o,r)?n*Cp+o*_p+r*1e3:NaN}function _l(t){return t&&parseFloat(t.replace(",","."))||0}function K7(t){if(t==="Z")return 0;var e=t.match(q7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return t_(o,r)?n*(o*Cp+r*_p):NaN}function G7(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,s=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}var Y7=[31,null,31,30,31,30,31,31,30,31,30,31];function Tp(t){return t%400===0||t%4===0&&t%100!==0}function J7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Y7[e]||(Tp(t)?29:28))}function X7(t,e){return e>=1&&e<=(Tp(t)?366:365)}function Q7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function e_(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function t_(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 n_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function o_(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var r=[null];r.push.apply(r,arguments);var s=Function.bind.apply(e,r);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 r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var et={},Ap={},ui={},Yi={},Rr={},xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.lexoHelper=void 0;xa.lexoHelper={arrayCopy:r_};function r_(t,e,n,o,r){let s=o;const a=e+r;for(let l=e;l<a;l++)n[s]=t[l],++s}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});class i_{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}}Ji.default=i_;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.LexoInteger=void 0;const Es=xa,s_=Ji;class fe{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-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 fe.make(n,r,s)}static zero(e){return new fe(e,0,fe.ZERO_MAG)}static one(e){return fe.make(e,1,fe.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return fe.zero(e);if(r===o.length)return new fe(e,n,o);const s=new Array(r).fill(0);return Es.lexoHelper.arrayCopy(o,0,s,0,r),new fe(e,n,s)}static add(e,n,o){const r=Math.max(n.length,o.length),s=new Array(r).fill(0);let a=0;for(let l=0;l<r;++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 fe.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return Es.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=fe.complement(e,o,n.length),s=fe.add(e,n,r);return s[s.length-1]=0,fe.add(e,s,fe.ONE_MAG)}static multiply(e,n,o){const r=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(r[l]+=n[s]*o[a];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)r[s]=e.getBase()-1-n[s];return r}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=fe.add(this.sys,this.mag,e.mag);return fe.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=fe.compare(this.mag,e.mag);return n===0?fe.zero(this.sys):n<0?fe.make(this.sys,this.sign===-1?1:-1,fe.subtract(this.sys,e.mag,this.mag)):fe.make(this.sys,this.sign===-1?-1:1,fe.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?fe.make(this.sys,1,e.mag):fe.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?fe.make(this.sys,1,this.mag):fe.make(this.sys,-1,this.mag);const n=fe.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?fe.make(this.sys,1,n):fe.make(this.sys,-1,n)}negate(){return this.isZero()?this:fe.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 Es.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),fe.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return fe.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return Es.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),fe.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return fe.make(this.sys,this.sign,fe.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=fe.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?fe.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 s_.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const s=n[r];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")}}Rr.LexoInteger=fe;fe.ZERO_MAG=[0];fe.ONE_MAG=[1];fe.NEGATIVE_SIGN=-1;fe.ZERO_SIGN=0;fe.POSITIVE_SIGN=1;Object.defineProperty(Yi,"__esModule",{value:!0});Yi.LexoDecimal=void 0;const di=Rr,a_=Ji;class Pt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Pt.make(di.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 Pt.make(di.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Pt.make(di.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Pt.make(e,0)}static make(e,n){if(e.isZero())return new Pt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const r=e.shiftRight(o),s=n-o;return new Pt(r,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.subtract(r),o)}multiply(e){return Pt.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(di.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 r=this.mag.shiftRight(o);return n&&(r=r.add(di.LexoInteger.one(r.getSystem()))),Pt.make(r,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 a_.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&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)),r&&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()}}Yi.LexoDecimal=Pt;var xs={},kd;function Np(){if(kd)return xs;kd=1,Object.defineProperty(xs,"__esModule",{value:!0});const t=Rr,e=Mp();class n{constructor(r){this.value=t.LexoInteger.parse(r,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(r){const s=t.LexoInteger.parse(r,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: "+r)}static resolve(r){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}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(r){return this===r?!0:r?this.value.equals(r.value):!1}}return xs.default=n,xs}var Gc={},Dp={};Object.defineProperty(Dp,"__esModule",{value:!0});var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.LexoNumeralSystem10=void 0;class l_{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)}}Sa.LexoNumeralSystem10=l_;var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem36=void 0;class c_{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]}}Ta.LexoNumeralSystem36=c_;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.LexoNumeralSystem64=void 0;class u_{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]}}Aa.LexoNumeralSystem64=u_;(function(t){var e=bt&&bt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=bt&&bt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Dp,t),n(Sa,t),n(Ta,t),n(Aa,t)})(Gc);var wd;function Mp(){if(wd)return ui;wd=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.LexoRank=void 0;const t=Yi,e=Np(),n=Ji,o=Gc;class r{constructor(a,l){this.value=a.format()+"|"+r.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",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(e.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const a=r.min();return a.between(r.max(a.bucket))}static max(a=e.default.BUCKET_0){return r.from(a,r.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?r.from(a,r.INITIAL_MIN_DECIMAL):r.from(a,r.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 r.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return r.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 r.checkMid(a,l,y);if(y.compareTo(f)>0)break;h=g,c=y}let p=r.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],r.NUMERAL_SYSTEM);return new r(c,u)}static from(a,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(a,l)}static middleInternal(a,l,c,u){const d=r.mid(c,u);return r.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?r.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(r.NUMERAL_SYSTEM.getRadixPointChar());const d=r.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(r.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 r(this.bucket,r.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(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 r(this.bucket,r.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 r(this.bucket,r.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.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 ui.LexoRank=r,ui}(function(t){var e=bt&&bt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=bt&&bt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Mp(),t),n(Np(),t),n(Yi,t),n(Rr,t)})(Ap);(function(t){var e=bt&&bt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=bt&&bt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Ap,t),n(Gc,t)})(et);const _i=60,d_=8,Ed=_i*d_;function Na(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Ed),r=Math.floor(t%Ed/_i);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%_i;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/_i),r=t%_i;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function Bp(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 f_(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 p_(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?Bp(n.milestones):0;return e+o},0))??0}function m_(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Xi(t,e){if(t.moved)return Ar(e,t.moved.newIndex)}function Ar(t,e){if(e===0)if(t.length>1){const n=t[e+1];return et.LexoRank.parse(n.rank).genPrev().format()}else return et.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return et.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return et.LexoRank.parse(o.rank).between(et.LexoRank.parse(n.rank)).format()}}function Qi(t){if(t.length===0)return et.LexoRank.middle().format();const e=t[0];return et.LexoRank.parse(e.rank).genPrev().format()}function Da(t,e="dd/MM/yyyy"){if(!t)return"";const n=Li(t);return bp(n)?Sp(n,e):""}function Yc(t,e){return t.status.id===e.id}function h_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Yc(n,e))}function g_(t,e){return{...t,status:h_(t,e)?$i.done:$i.todo}}const $p=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function v_(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${r}, ${s}, ${e})`}function y_(t,e=.15){var n;if(t.startsWith("#"))return v_(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(r=>r.trim());if(o&&o.length>=3){const[r,s,a]=o;return`rgba(${r}, ${s}, ${a}, ${e})`}}return t}function Op(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function xd(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:Op(r)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(r=>r[1]);return Array.from(new Set(n.filter(r=>o.includes(r.name)).map(r=>r.id)))}const __=["title"],C_={key:0,className:"ao-avatar__initials"},b_=["src"],jn=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Ea.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=m_(n.userName),a=l=>{o("close",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",{role:"img",class:i.normalizeClass(r.value),title:t.userName},[t.avatarUrl?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",C_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,b_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(pe,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:i.withModifiers(a,["stop"])},null,8,["color"])):i.createCommentVNode("",!0)],10,__))}});const k_={class:"ao-card-template__subitems"},w_={class:"ao-card-template__subitem"},E_={class:"ao-card-template__subitem-number"},x_={class:"ao-card-template__subitem"},S_={class:"ao-card-template__subitem"},T_={class:"ao-card-template__body"},A_={class:"ao-card-template__col ao-card-template__col--phases"},N_={class:"ao-card-template__col-title"},D_={class:"ao-card-template__col-label"},M_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},B_={class:"ao-card-template__footer"},$_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},O_={class:"ao-card-template__col-title"},L_={class:"ao-card-template__col-label"},I_={class:"ao-card-template__col-body"},P_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},F_={class:"ao-card-template__col-title"},V_={class:"ao-card-template__col-label"},R_={class:"ao-card-template__col-body"},z_={class:"ao-card-template-item__secondary"},Cl=5,U_=i.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,r=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=i.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,Cl))??[]}),l=i.computed(()=>n.phases&&n.phases.length>Cl?n.phases.length-Cl:0);return(c,u)=>(i.openBlock(),i.createBlock(pp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",k_,[i.createElementVNode("li",w_,[i.createVNode(ye,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",E_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",x_,[i.createVNode(ye,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",S_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",T_,[i.createElementVNode("div",A_,[i.createElementVNode("div",N_,[i.createVNode(ye,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",D_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",M_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Bi,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Bi,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]),secondary:i.withCtx(()=>[i.createElementVNode("div",z_,[i.createVNode(pe,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=i.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",B_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",$_,[i.createElementVNode("div",O_,[i.createElementVNode("span",L_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",I_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",P_,[i.createElementVNode("div",F_,[i.createElementVNode("span",V_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",R_,[i.createVNode(jn,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const q_={class:"ao-page-header"},H_={class:"ao-page-header-main"},j_={key:0,class:"ao-page-header-secondary"},es=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",q_,[i.createElementVNode("div",H_,[t.canGoBack?(i.openBlock(),i.createBlock(pe,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(i.openBlock(),i.createElementBlock("div",j_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const W_=["type"],Z_={key:0,class:"ao-button-card__label"},vo=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Kc.BLACK},size:{default:()=>Ea.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>fp.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",Z_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(ye,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,W_))}});const K_={class:"ao-card-template-item__footer"},G_={key:0,class:"ao-card-template-item__subitem"},Y_={class:"ao-card-template-item__subitem-number"},J_={class:"ao-card-template-item__secondary"},Jc=i.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)},r=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(i.openBlock(),i.createBlock(pp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",K_,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(r,u=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:u},[l.$props[u]?(i.openBlock(),i.createElementBlock("li",G_,[i.createVNode(ye,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",Y_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",J_,[i.createVNode(pe,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const X_=i.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=i.computed(()=>{var r;return(r=e.milestones)==null?void 0:r.length}),o=i.computed(()=>e.milestones?Bp(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Jc,i.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},r.$attrs),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),Q_=i.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Jc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),eC={class:"ao-list__footer"},tC=i.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{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=Xi(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(go),{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:i.withCtx(()=>[i.createVNode(dt,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(Q_,{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:i.withCtx(()=>[i.createElementVNode("div",eC,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),nC=i.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Jc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),oC={class:"ao-list__footer"},rC=i.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=Xi(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(go),{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:i.withCtx(()=>[i.createVNode(dt,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(nC,{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:i.withCtx(()=>[i.createElementVNode("div",oC,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),iC={class:"ao-modal"},sC={key:0,class:"ao-modal__header"},aC={class:"ao-modal__header-meta"},lC={class:"ao-modal__title-group"},cC={class:"ao-modal__body"},uC={key:1,class:"ao-modal__footer"},Ma=i.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[i.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),i.createElementVNode("div",iC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",sC,[i.createElementVNode("div",aC,[i.createVNode(pe,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",lC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",cC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",uC,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Ii=Math.min,Ft=Math.max,Js=Math.round,Ss=Math.floor,uo=t=>({x:t,y:t}),dC={left:"right",right:"left",bottom:"top",top:"bottom"},fC={start:"end",end:"start"};function Xc(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function Ba(t){return t.split("-")[1]}function pC(t){return t==="x"?"y":"x"}function Lp(t){return t==="y"?"height":"width"}function Qc(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Ip(t){return pC(Qc(t))}function mC(t,e,n){n===void 0&&(n=!1);const o=Ba(t),r=Ip(t),s=Lp(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Xs(a)),[a,Xs(a)]}function hC(t){const e=Xs(t);return[lc(t),e,lc(e)]}function lc(t){return t.replace(/start|end/g,e=>fC[e])}function gC(t,e,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}function vC(t,e,n,o){const r=Ba(t);let s=gC(Nr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(lc)))),s}function Xs(t){return t.replace(/left|right|bottom|top/g,e=>dC[e])}function yC(t){return{top:0,right:0,bottom:0,left:0,...t}}function _C(t){return typeof t!="number"?yC(t):{top:t,right:t,bottom:t,left:t}}function Qs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Sd(t,e,n){let{reference:o,floating:r}=t;const s=Qc(e),a=Ip(e),l=Lp(a),c=Nr(e),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let m;switch(c){case"top":m={x:d,y:o.y-r.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-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Ba(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const CC=async(t,e,n)=>{const{placement:o="bottom",strategy:r="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:r}),{x:d,y:f}=Sd(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:k,reset:w}=await C({x:d,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=v??d,f=_??f,m={...m,[y]:{...m[y],...k}},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:r}):w.rects),{x:d,y:f}=Sd(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:m}};async function Pp(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Xc(e,t),h=_C(m),y=l[p?f==="floating"?"reference":"floating":f],C=Qs(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:r}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),k=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=Qs(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:_,strategy:c}):v);return{top:(C.top-w.top+h.top)/k.y,bottom:(w.bottom-C.bottom+h.bottom)/k.y,left:(C.left-w.left+h.left)/k.x,right:(w.right-C.right+h.right)/k.x}}const bC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,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}=Xc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Nr(r),v=Nr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=p||(v||!g?[Xs(l)]:hC(l));!p&&h!=="none"&&k.push(...vC(l,g,h,_));const w=[l,...k],b=await Pp(e,y),E=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[C]),f){const A=mC(r,a,_);E.push(b[A[0]],b[A[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(A=>A<=0)){var S,N;const A=(((S=s.flip)==null?void 0:S.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:T},reset:{placement:D}};let M=(N=T.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!M)switch(m){case"bestFit":{var L;const I=(L=T.map(P=>[P.placement,P.overflows.filter(W=>W>0).reduce((W,R)=>W+R,0)]).sort((P,W)=>P[1]-W[1])[0])==null?void 0:L[0];I&&(M=I);break}case"initialPlacement":M=l;break}if(r!==M)return{reset:{placement:M}}}return{}}}},kC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:s}=e,{apply:a=()=>{},...l}=Xc(t,e),c=await Pp(e,l),u=Nr(n),d=Ba(n),f=Qc(n)==="y",{width:p,height:m}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(r.isRTL==null?void 0:r.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,k=C;if(f){const b=p-c.left-c.right;k=d||v?Ii(C,b):b}else{const b=m-c.top-c.bottom;_=d||v?Ii(y,b):b}if(v&&!d){const b=Ft(c.left,0),E=Ft(c.right,0),T=Ft(c.top,0),S=Ft(c.bottom,0);f?k=p-2*(b!==0||E!==0?b+E:Ft(c.left,c.right)):_=m-2*(T!==0||S!==0?T+S:Ft(c.top,c.bottom))}await a({...e,availableWidth:k,availableHeight:_});const w=await r.getDimensions(s.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function fo(t){return Fp(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Wn(t){var e;return(e=(Fp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Fp(t){return t instanceof Node||t instanceof Bt(t).Node}function zn(t){return t instanceof Element||t instanceof Bt(t).Element}function Cn(t){return t instanceof HTMLElement||t instanceof Bt(t).HTMLElement}function Td(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}function ts(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function wC(t){return["table","td","th"].includes(fo(t))}function eu(t){const e=tu(),n=Ht(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 EC(t){let e=Dr(t);for(;Cn(e)&&!$a(e);){if(eu(e))return e;e=Dr(e)}return null}function tu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $a(t){return["html","body","#document"].includes(fo(t))}function Ht(t){return Bt(t).getComputedStyle(t)}function Oa(t){return zn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dr(t){if(fo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Td(t)&&t.host||Wn(t);return Td(e)?e.host:e}function Vp(t){const e=Dr(t);return $a(e)?t.ownerDocument?t.ownerDocument.body:t.body:Cn(e)&&ts(e)?e:Vp(e)}function Pi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Vp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Bt(r);return s?e.concat(a,a.visualViewport||[],ts(r)?r:[],a.frameElement&&n?Pi(a.frameElement):[]):e.concat(r,Pi(r))}function Rp(t){const e=Ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Cn(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Js(n)!==s||Js(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function nu(t){return zn(t)?t:t.contextElement}function br(t){const e=nu(t);if(!Cn(e))return uo(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Rp(e);let a=(s?Js(n.width):n.width)/o,l=(s?Js(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xC=uo(0);function zp(t){const e=Bt(t);return!tu()||!e.visualViewport?xC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function SC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Bt(t)?!1:e}function qo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=nu(t);let a=uo(1);e&&(o?zn(o)&&(a=br(o)):a=br(t));const l=SC(s,n,o)?zp(s):uo(0);let c=(r.left+l.x)/a.x,u=(r.top+l.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const p=Bt(s),m=o&&zn(o)?Bt(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=br(h),y=h.getBoundingClientRect(),C=Ht(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=Bt(h).frameElement}}return Qs({width:d,height:f,x:c,y:u})}function TC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=Cn(n),s=Wn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=uo(1);const c=uo(0);if((r||!r&&o!=="fixed")&&((fo(n)!=="body"||ts(s))&&(a=Oa(n)),Cn(n))){const u=qo(n);l=br(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 AC(t){return Array.from(t.getClientRects())}function Up(t){return qo(Wn(t)).left+Oa(t).scrollLeft}function NC(t){const e=Wn(t),n=Oa(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Up(t);const l=-n.scrollTop;return Ht(o).direction==="rtl"&&(a+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function DC(t,e){const n=Bt(t),o=Wn(t),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;const u=tu();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function MC(t,e){const n=qo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=Cn(t)?br(t):uo(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=r*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Ad(t,e,n){let o;if(e==="viewport")o=DC(t,n);else if(e==="document")o=NC(Wn(t));else if(zn(e))o=MC(e,n);else{const r=zp(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Qs(o)}function qp(t,e){const n=Dr(t);return n===e||!zn(n)||$a(n)?!1:Ht(n).position==="fixed"||qp(n,e)}function BC(t,e){const n=e.get(t);if(n)return n;let o=Pi(t,[],!1).filter(l=>zn(l)&&fo(l)!=="body"),r=null;const s=Ht(t).position==="fixed";let a=s?Dr(t):t;for(;zn(a)&&!$a(a);){const l=Ht(a),c=eu(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ts(a)&&!c&&qp(t,a))?o=o.filter(d=>d!==a):r=l,a=Dr(a)}return e.set(t,o),o}function $C(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?BC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Ad(e,d,r);return u.top=Ft(f.top,u.top),u.right=Ii(f.right,u.right),u.bottom=Ii(f.bottom,u.bottom),u.left=Ft(f.left,u.left),u},Ad(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function OC(t){return Rp(t)}function LC(t,e,n){const o=Cn(e),r=Wn(e),s=n==="fixed",a=qo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=uo(0);if(o||!o&&!s)if((fo(e)!=="body"||ts(r))&&(l=Oa(e)),o){const u=qo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=Up(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Nd(t,e){return!Cn(t)||Ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function Hp(t,e){const n=Bt(t);if(!Cn(t))return n;let o=Nd(t,e);for(;o&&wC(o)&&Ht(o).position==="static";)o=Nd(o,e);return o&&(fo(o)==="html"||fo(o)==="body"&&Ht(o).position==="static"&&!eu(o))?n:o||EC(t)||n}const IC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||Hp,s=this.getDimensions;return{reference:LC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function PC(t){return Ht(t).direction==="rtl"}const FC={convertOffsetParentRelativeRectToViewportRelativeRect:TC,getDocumentElement:Wn,getClippingRect:$C,getOffsetParent:Hp,getElementRects:IC,getClientRects:AC,getDimensions:OC,getScale:br,isElement:zn,isRTL:PC};function VC(t,e){let n=null,o;const r=Wn(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=Ss(d),h=Ss(r.clientWidth-(u+f)),g=Ss(r.clientHeight-(d+p)),y=Ss(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Ft(0,Ii(1,c))||1};let _=!0;function k(w){const b=w[0].intersectionRatio;if(b!==c){if(!_)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(k,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(k,v)}n.observe(t)}return a(!0),s}function RC(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=nu(t),d=r||s?[...u?Pi(u):[],...Pi(e)]:[];d.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?VC(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?qo(t):null;c&&y();function y(){const C=qo(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=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const zC=(t,e,n)=>{const o=new Map,r={platform:FC,...n},s={...r.platform,_c:o};return CC(t,e,{...r,platform:s})},UC=t=>{const e=i.ref(!1),n=i.ref(),o=i.ref(),r=i.ref(0);function s(){const f=i.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=i.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"),r.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=RC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||zC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[bC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),kC({apply({availableWidth:f,availableHeight:p,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${r.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`})})}i.onMounted(()=>{u()}),i.onBeforeUnmount(()=>{l.value()}),i.onUnmounted(()=>{l.value()})};function fn(t){return[null,void 0].indexOf(t)!==-1}function qC(t,e,n){const{object:o,valueProp:r,mode:s}=i.toRefs(t),a=i.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||fn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>fn(f)?s.value==="single"?{}:[]:f;return{update:c}}function HC(t,e){const{value:n,modelValue:o,mode:r,valueProp:s}=i.toRefs(t),a=i.ref(r.value!=="single"?[]:{}),l=i.computed(()=>o&&o.value!==void 0?o.value:n.value),c=i.computed(()=>r.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=i.computed(()=>r.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 jC(t,e,n){const{regex:o}=i.toRefs(t),r=i.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=i.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,r)};return i.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,r)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function WC(t,e,n){const{groupSelect:o,mode:r,groups:s,disabledProp:a}=i.toRefs(t),l=i.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(r.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function bl(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 ZC(t){return Object.prototype.toString.call(t)==="[object Object]"}function KC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function GC(t,e,n){const{options:o,mode:r,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:k,clearOnSelect:w,valueProp:b,allowAbsent:E,groupLabel:T,canDeselect:S,max:N,strict:L,closeOnSelect:A,closeOnDeselect:D,groups:M,reverse:I,infinite:P,groupOptions:W,groupHideEmpty:R,groupSelect:q,onCreate:V,disabledProp:te,searchStart:oe,searchFilter:_e}=i.toRefs(t),F=i.getCurrentInstance().proxy,j=n.iv,U=n.ev,G=n.search,ue=n.clearSearch,Ce=n.update,Be=n.pointer,$e=n.setPointer,de=n.clearPointer,qe=n.focus,be=n.deactivate,gt=n.close,O=n.localize,J=i.ref([]),me=i.ref([]),Me=i.ref(!1),ze=i.ref(null),ge=i.ref(P.value&&a.value===-1?10:a.value),cn=i.computed(()=>c.value||u.value||!1),Tn=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),He=i.computed(()=>{if(M.value){let B=Zt.value||[],X=[];return B.forEach(ve=>{ti(ve[W.value]).forEach(Le=>{X.push(Object.assign({},Le,ve[te.value]?{[te.value]:!0}:{}))})}),X}else{let B=ti(me.value||[]);return J.value.length&&(B=B.concat(J.value)),B}}),vt=i.computed(()=>{let B=He.value;return I.value&&(B=B.reverse()),Nn.value.length&&(B=Nn.value.concat(B)),ei(B)}),lt=i.computed(()=>{let B=vt.value;return ge.value>0&&(B=B.slice(0,ge.value)),B}),Zt=i.computed(()=>{if(!M.value)return[];let B=[],X=me.value||[];return J.value.length&&B.push({[T.value]:" ",[W.value]:[...J.value],__CREATE__:!0}),B.concat(X)}),An=i.computed(()=>{let B=[...Zt.value].map(X=>({...X}));return Nn.value.length&&(B[0]&&B[0].__CREATE__?B[0][W.value]=[...Nn.value,...B[0][W.value]]:B=[{[T.value]:" ",[W.value]:[...Nn.value],__CREATE__:!0}].concat(B)),B}),Kn=i.computed(()=>{if(!M.value)return[];let B=An.value;return Eo((B||[]).map((X,ve)=>{const Le=ti(X[W.value]);return{...X,index:ve,group:!0,[W.value]:ei(Le,!1).map(Dn=>Object.assign({},Dn,X[te.value]?{[te.value]:!0}:{})),__VISIBLE__:ei(Le).map(Dn=>Object.assign({},Dn,X[te.value]?{[te.value]:!0}:{}))}}))}),ko=i.computed(()=>{switch(r.value){case"single":return!fn(j.value[b.value]);case"multiple":case"tags":return!fn(j.value)&&j.value.length>0}}),Gn=i.computed(()=>m!==void 0&&m.value!==void 0?m.value(j.value,F):j.value&&j.value.length>1?`${j.value.length} options selected`:"1 option selected"),ir=i.computed(()=>!He.value.length&&!Me.value&&!Nn.value.length),sr=i.computed(()=>He.value.length>0&&lt.value.length==0&&(G.value&&M.value||!M.value)),Nn=i.computed(()=>cn.value===!1||!G.value?[]:vs(G.value)!==-1?[]:[{[b.value]:G.value,[un.value[0]]:G.value,[d.value]:G.value,__CREATE__:!0}]),un=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),ms=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Yr=i.computed(()=>g.value||Me.value),Kt=B=>{switch(typeof B!="object"&&(B=At(B)),r.value){case"single":Ce(B);break;case"multiple":case"tags":Ce(j.value.concat(B));break}e.emit("select",xt(B),B,F)},Et=B=>{switch(typeof B!="object"&&(B=At(B)),r.value){case"single":Jr();break;case"tags":case"multiple":Ce(Array.isArray(B)?j.value.filter(X=>B.map(ve=>ve[b.value]).indexOf(X[b.value])===-1):j.value.filter(X=>X[b.value]!=B[b.value]));break}e.emit("deselect",xt(B),B,F)},xt=B=>h.value?B:B[b.value],ar=B=>{Et(B)},hs=(B,X)=>{if(X.button!==0){X.preventDefault();return}ar(B)},Jr=()=>{Ce(ms.value),e.emit("clear",F)},St=B=>{if(B.group!==void 0)return r.value==="single"?!1:gs(B[W.value])&&B[W.value].length;switch(r.value){case"single":return!fn(j.value)&&j.value[b.value]==B[b.value];case"tags":case"multiple":return!fn(j.value)&&j.value.map(X=>X[b.value]).indexOf(B[b.value])!==-1}},lr=B=>B[te.value]===!0,Yn=()=>N===void 0||N.value===-1||!ko.value&&N.value>0?!1:j.value.length>=N.value,cr=B=>{if(!lr(B)){if(V&&V.value&&!St(B)&&B.__CREATE__&&(B={...B},delete B.__CREATE__,B=V.value(B,F),B instanceof Promise)){Me.value=!0,B.then(X=>{Me.value=!1,Tt(X)});return}Tt(B)}},Tt=B=>{switch(B.__CREATE__&&(B={...B},delete B.__CREATE__),r.value){case"single":if(B&&St(B)){S.value&&Et(B),D.value&&(de(),gt());return}B&&wo(B),w.value&&ue(),A.value&&(de(),gt()),B&&Kt(B);break;case"multiple":if(B&&St(B)){Et(B),D.value&&(de(),gt());return}if(Yn()){e.emit("max",F);return}B&&(wo(B),Kt(B)),w.value&&ue(),l.value&&de(),A.value&&gt();break;case"tags":if(B&&St(B)){Et(B),D.value&&(de(),gt());return}if(Yn()){e.emit("max",F);return}B&&wo(B),w.value&&ue(),B&&Kt(B),l.value&&de(),A.value&&gt();break}A.value||qe()},Jn=B=>{if(!(lr(B)||r.value==="single"||!q.value)){switch(r.value){case"multiple":case"tags":pl(B[W.value])?Et(B[W.value]):Kt(B[W.value].filter(X=>j.value.map(ve=>ve[b.value]).indexOf(X[b.value])===-1).filter(X=>!X[te.value]).filter((X,ve)=>j.value.length+1+ve<=N.value||N.value===-1)),l.value&&Be.value&&$e(Kn.value.filter(X=>!X[te.value])[Be.value.index]);break}A.value&&be()}},wo=B=>{At(B[b.value])===void 0&&cn.value&&(e.emit("tag",B[b.value],F),e.emit("option",B[b.value],F),e.emit("create",B[b.value],F),Tn.value&&ml(B),ue())},Xr=()=>{r.value!=="single"&&Kt(lt.value.filter(B=>!B.disabled&&!St(B)))},pl=B=>B.find(X=>!St(X)&&!X[te.value])===void 0,gs=B=>B.find(X=>!St(X))===void 0,At=B=>He.value[He.value.map(X=>String(X[b.value])).indexOf(String(B))],vs=B=>He.value.findIndex(X=>un.value.some(ve=>(parseInt(X[ve])==X[ve]?parseInt(X[ve]):X[ve])===(parseInt(B)==B?parseInt(B):B))),Qr=B=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&St(B),ml=B=>{J.value.push(B)},Eo=B=>R.value?B.filter(X=>G.value?X.__VISIBLE__.length:X[W.value].length):B.filter(X=>G.value?X.__VISIBLE__.length:!0),ei=(B,X=!0)=>{let ve=B;if(G.value&&_.value){let Le=_e.value;Le||(Le=(Dn,Yt,ri)=>un.value.some(Mn=>{let _s=bl(O(Dn[Mn]),L.value);return oe.value?_s.startsWith(bl(Yt,L.value)):_s.indexOf(bl(Yt,L.value))!==-1})),ve=ve.filter(Dn=>Le(Dn,G.value,F))}return l.value&&X&&(ve=ve.filter(Le=>!Qr(Le))),ve},ti=B=>{let X=B;return ZC(X)&&(X=Object.keys(X).map(ve=>{let Le=X[ve];return{[b.value]:ve,[un.value[0]]:Le,[d.value]:Le}})),X=X.map(ve=>typeof ve=="object"?ve:{[b.value]:ve,[un.value[0]]:ve,[d.value]:ve}),X},Ne=()=>{fn(U.value)||(j.value=Xn(U.value))},Gt=B=>(Me.value=!0,new Promise((X,ve)=>{o.value(G.value,F).then(Le=>{me.value=Le||[],typeof B=="function"&&B(Le),Me.value=!1}).catch(Le=>{console.error(Le),me.value=[],Me.value=!1}).finally(()=>{X()})})),ni=()=>{if(ko.value)if(r.value==="single"){let B=At(j.value[b.value]);if(B!==void 0){let X=B[d.value];j.value[d.value]=X,h.value&&(U.value[d.value]=X)}}else j.value.forEach((B,X)=>{let ve=At(j.value[X][b.value]);if(ve!==void 0){let Le=ve[d.value];j.value[X][d.value]=Le,h.value&&(U.value[X][d.value]=Le)}})},ys=B=>{Gt(B)},Xn=B=>fn(B)?r.value==="single"?{}:[]:h.value?B:r.value==="single"?At(B)||(E.value?{[d.value]:B,[b.value]:B,[un.value[0]]:B}:{}):B.filter(X=>!!At(X)||E.value).map(X=>At(X)||{[d.value]:X,[b.value]:X,[un.value[0]]:X}),oi=()=>{ze.value=i.watch(G,B=>{B.length<v.value||!B&&v.value!==0||(Me.value=!0,k.value&&(me.value=[]),setTimeout(()=>{B==G.value&&o.value(G.value,F).then(X=>{(B==G.value||!G.value)&&(me.value=X,Be.value=lt.value.filter(ve=>ve[te.value]!==!0)[0]||null,Me.value=!1)}).catch(X=>{console.error(X)})},y.value))},{flush:"sync"})};if(r.value!=="single"&&!fn(U.value)&&!Array.isArray(U.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?C.value?Gt(Ne):h.value==!0&&Ne():(me.value=o.value,Ne()),y.value>-1&&oi(),i.watch(y,(B,X)=>{ze.value&&ze.value(),B>=0&&oi()}),i.watch(U,B=>{if(fn(B)){Ce(Xn(B),!1);return}switch(r.value){case"single":(h.value?B[b.value]!=j.value[b.value]:B!=j.value[b.value])&&Ce(Xn(B),!1);break;case"multiple":case"tags":KC(h.value?B.map(X=>X[b.value]):B,j.value.map(X=>X[b.value]))||Ce(Xn(B),!1);break}},{deep:!0}),i.watch(o,(B,X)=>{typeof t.options=="function"?C.value&&(!X||B&&B.toString()!==X.toString())&&Gt():(me.value=t.options,Object.keys(j.value).length||Ne(),ni())}),i.watch(d,ni),i.watch(a,(B,X)=>{ge.value=P.value&&B===-1?10:B}),{pfo:vt,fo:lt,filteredOptions:lt,hasSelected:ko,multipleLabelText:Gn,eo:He,extendedOptions:He,eg:Zt,extendedGroups:Zt,fg:Kn,filteredGroups:Kn,noOptions:ir,noResults:sr,resolving:Me,busy:Yr,offset:ge,select:Kt,deselect:Et,remove:ar,selectAll:Xr,clear:Jr,isSelected:St,isDisabled:lr,isMax:Yn,getOption:At,handleOptionClick:cr,handleGroupClick:Jn,handleTagRemove:hs,refreshOptions:ys,resolveOptions:Gt,refreshLabels:ni}}function YC(t,e,n){const{valueProp:o,showOptions:r,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=i.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,k=n.multiselect,w=n.isOpen,b=i.computed(()=>p.value.filter(U=>!U[d.value])),E=i.computed(()=>m.value.filter(U=>!U[d.value])),T=i.computed(()=>c.value!=="single"&&u.value),S=i.computed(()=>C.value&&C.value.group),N=i.computed(()=>F(C.value)),L=i.computed(()=>{const U=S.value?C.value:F(C.value),G=E.value.map(Ce=>Ce[a.value]).indexOf(U[a.value]);let ue=E.value[G-1];return ue===void 0&&(ue=D.value),ue}),A=i.computed(()=>{let U=E.value.map(G=>G.label).indexOf(S.value?C.value[a.value]:F(C.value)[a.value])+1;return E.value.length<=U&&(U=0),E.value[U]}),D=i.computed(()=>[...E.value].slice(-1)[0]),M=i.computed(()=>C.value.__VISIBLE__.filter(U=>!U[d.value])[0]),I=i.computed(()=>{const U=N.value.__VISIBLE__.filter(G=>!G[d.value]);return U[U.map(G=>G[o.value]).indexOf(C.value[o.value])-1]}),P=i.computed(()=>{const U=F(C.value).__VISIBLE__.filter(G=>!G[d.value]);return U[U.map(G=>G[o.value]).indexOf(C.value[o.value])+1]}),W=i.computed(()=>[...L.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),R=i.computed(()=>[...D.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),q=U=>C.value&&(!U.group&&C.value[o.value]===U[o.value]||U.group!==void 0&&C.value[a.value]===U[a.value])?!0:void 0,V=()=>{v(b.value[0]||null)},te=()=>{!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?E.value[0].__CREATE__?b.value[0]:E.value[0]:b.value[0])||null);else if(l.value&&T.value){let U=S.value?M.value:P.value;U===void 0&&(U=A.value,U.__CREATE__&&(U=U[f.value][0])),v(U||null)}else{let U=b.value.map(G=>G[o.value]).indexOf(C.value[o.value])+1;b.value.length<=U&&(U=0),v(b.value[U]||null)}i.nextTick(()=>{j()})},_e=()=>{if(C.value===null){let U=b.value[b.value.length-1];l.value&&T.value&&(U=R.value,U===void 0&&(U=D.value)),v(U||null)}else if(l.value&&T.value){let U=S.value?W.value:I.value;U===void 0&&(U=S.value?L.value:N.value,U.__CREATE__&&(U=W.value,U===void 0&&(U=L.value))),v(U||null)}else{let U=b.value.map(G=>G[o.value]).indexOf(C.value[o.value])-1;U<0&&(U=b.value.length-1),v(b.value[U]||null)}i.nextTick(()=>{j()})},F=U=>E.value.find(G=>G.__VISIBLE__.map(ue=>ue[o.value]).indexOf(U[o.value])!==-1),j=()=>{let U=k.value.querySelector("[data-pointed]");if(!U)return;let G=U.parentElement.parentElement;l.value&&(G=S.value?U.parentElement.parentElement.parentElement:U.parentElement.parentElement.parentElement.parentElement),U.offsetTop+U.offsetHeight>G.clientHeight+G.scrollTop&&(G.scrollTop=U.offsetTop+U.offsetHeight-G.clientHeight),U.offsetTop<G.scrollTop&&(G.scrollTop=U.offsetTop)};return i.watch(y,U=>{s.value&&(U.length&&r.value?V():_())}),i.watch(w,U=>{if(U){let G=k.value.querySelectorAll("[data-selected]")[0];if(!G)return;let ue=G.parentElement.parentElement;i.nextTick(()=>{ue.scrollTop>0||(ue.scrollTop=G.offsetTop)})}}),{pointer:C,canPointGroups:T,isPointed:q,setPointerFirst:V,selectPointer:te,forwardPointer:oe,backwardPointer:_e}}function $t(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ho(t){var e=$t(t).Element;return t instanceof e||t instanceof Element}function Ut(t){var e=$t(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ou(t){if(typeof ShadowRoot>"u")return!1;var e=$t(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Fo=Math.max,ea=Math.min,Mr=Math.round;function cc(){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 jp(){return!/^((?!chrome|android).)*safari/i.test(cc())}function Br(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Ut(t)&&(r=t.offsetWidth>0&&Mr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mr(o.height)/t.offsetHeight||1);var a=Ho(t)?$t(t):window,l=a.visualViewport,c=!jp()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/r,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function ru(t){var e=$t(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function JC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function XC(t){return t===$t(t)||!Ut(t)?ru(t):JC(t)}function bn(t){return t?(t.nodeName||"").toLowerCase():null}function yo(t){return((Ho(t)?t.ownerDocument:t.document)||window.document).documentElement}function iu(t){return Br(yo(t)).left+ru(t).scrollLeft}function Un(t){return $t(t).getComputedStyle(t)}function su(t){var e=Un(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function QC(t){var e=t.getBoundingClientRect(),n=Mr(e.width)/t.offsetWidth||1,o=Mr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function eb(t,e,n){n===void 0&&(n=!1);var o=Ut(e),r=Ut(e)&&QC(e),s=yo(e),a=Br(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((bn(e)!=="body"||su(s))&&(l=XC(e)),Ut(e)?(c=Br(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=iu(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Wp(t){var e=Br(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 La(t){return bn(t)==="html"?t:t.assignedSlot||t.parentNode||(ou(t)?t.host:null)||yo(t)}function Zp(t){return["html","body","#document"].indexOf(bn(t))>=0?t.ownerDocument.body:Ut(t)&&su(t)?t:Zp(La(t))}function Ei(t,e){var n;e===void 0&&(e=[]);var o=Zp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=$t(o),a=r?[s].concat(s.visualViewport||[],su(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ei(La(a)))}function tb(t){return["table","td","th"].indexOf(bn(t))>=0}function Dd(t){return!Ut(t)||Un(t).position==="fixed"?null:t.offsetParent}function nb(t){var e=/firefox/i.test(cc()),n=/Trident/i.test(cc());if(n&&Ut(t)){var o=Un(t);if(o.position==="fixed")return null}var r=La(t);for(ou(r)&&(r=r.host);Ut(r)&&["html","body"].indexOf(bn(r))<0;){var s=Un(r);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 r;r=r.parentNode}return null}function Ia(t){for(var e=$t(t),n=Dd(t);n&&tb(n)&&Un(n).position==="static";)n=Dd(n);return n&&(bn(n)==="html"||bn(n)==="body"&&Un(n).position==="static")?e:n||nb(t)||e}var Qt="top",kn="bottom",po="right",Fn="left",au="auto",Pa=[Qt,kn,po,Fn],$r="start",Fi="end",ob="clippingParents",Kp="viewport",fi="popper",rb="reference",Md=Pa.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Fi])},[]),ib=[].concat(Pa,[au]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Fi])},[]),sb="beforeRead",ab="read",lb="afterRead",cb="beforeMain",ub="main",db="afterMain",fb="beforeWrite",pb="write",mb="afterWrite",hb=[sb,ab,lb,cb,ub,db,fb,pb,mb];function gb(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function r(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&&r(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||r(s)}),o}function vb(t){var e=gb(t);return hb.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function yb(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 r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function Cb(t,e){var n=$t(t),o=yo(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=jp();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+iu(t),y:c}}function bb(t){var e,n=yo(t),o=ru(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Fo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Fo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+iu(t),c=-o.scrollTop;return Un(r||n).direction==="rtl"&&(l+=Fo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function kb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ou(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function uc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function wb(t,e){var n=Br(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 Bd(t,e,n){return e===Kp?uc(Cb(t,n)):Ho(e)?wb(e,n):uc(bb(yo(t)))}function Eb(t){var e=Ei(La(t)),n=["absolute","fixed"].indexOf(Un(t).position)>=0,o=n&&Ut(t)?Ia(t):t;return Ho(o)?e.filter(function(r){return Ho(r)&&kb(r,o)&&bn(r)!=="body"}):[]}function xb(t,e,n,o){var r=e==="clippingParents"?Eb(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=Bd(t,u,o);return c.top=Fo(d.top,c.top),c.right=ea(d.right,c.right),c.bottom=ea(d.bottom,c.bottom),c.left=Fo(d.left,c.left),c},Bd(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 so(t){return t.split("-")[0]}function Or(t){return t.split("-")[1]}function Gp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Yp(t){var e=t.reference,n=t.element,o=t.placement,r=o?so(o):null,s=o?Or(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Qt:c={x:a,y:e.y-n.height};break;case kn:c={x:a,y:e.y+e.height};break;case po:c={x:e.x+e.width,y:l};break;case Fn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Gp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case $r:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Fi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Jp(){return{top:0,right:0,bottom:0,left:0}}function Sb(t){return Object.assign({},Jp(),t)}function Tb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function lu(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?ob:l,u=n.rootBoundary,d=u===void 0?Kp:u,f=n.elementContext,p=f===void 0?fi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=Sb(typeof y!="number"?y:Tb(y,Pa)),v=p===fi?rb:fi,_=t.rects.popper,k=t.elements[h?v:p],w=xb(Ho(k)?k:k.contextElement||yo(t.elements.popper),c,d,a),b=Br(t.elements.reference),E=Yp({reference:b,element:_,strategy:"absolute",placement:r}),T=uc(Object.assign({},_,E)),S=p===fi?T:b,N={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},L=t.modifiersData.offset;if(p===fi&&L){var A=L[r];Object.keys(N).forEach(function(D){var M=[po,kn].indexOf(D)>=0?1:-1,I=[Qt,kn].indexOf(D)>=0?"y":"x";N[D]+=A[I]*M})}return N}var $d={placement:"bottom",modifiers:[],strategy:"absolute"};function Od(){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 Ab(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?$d:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},$d,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:Ho(l)?Ei(l):l.contextElement?Ei(l.contextElement):[],popper:Ei(c)};var _=vb(_b([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(k){return k.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,v=C.reference,_=C.popper;if(Od(v,_)){d.rects={reference:eb(v,Ia(_),d.options.strategy==="fixed"),popper:Wp(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var w=d.orderedModifiers[k],b=w.fn,E=w.options,T=E===void 0?{}:E,S=w.name;typeof b=="function"&&(d=b({state:d,options:T,name:S,instance:m})||d)}}}},update:yb(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Od(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,k=y.effect;if(typeof k=="function"){var w=k({state:d,name:C,instance:m,options:_}),b=function(){};f.push(w||b)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var Ts={passive:!0};function Nb(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=$t(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ts)}),l&&c.addEventListener("resize",n.update,Ts),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ts)}),l&&c.removeEventListener("resize",n.update,Ts)}}var Db={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nb,data:{}};function Mb(t){var e=t.state,n=t.name;e.modifiersData[n]=Yp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Bb={name:"popperOffsets",enabled:!0,phase:"read",fn:Mb,data:{}},$b={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ob(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Mr(n*r)/r||0,y:Mr(o*r)/r||0}}function Ld(t){var e,n=t.popper,o=t.popperRect,r=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"),_=Fn,k=Qt,w=window;if(u){var b=Ia(n),E="clientHeight",T="clientWidth";if(b===$t(n)&&(b=yo(n),Un(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",T="scrollWidth")),b=b,r===Qt||(r===Fn||r===po)&&s===Fi){k=kn;var S=f&&b===w&&w.visualViewport?w.visualViewport.height:b[E];g-=S-o.height,g*=c?1:-1}if(r===Fn||(r===Qt||r===kn)&&s===Fi){_=po;var N=f&&b===w&&w.visualViewport?w.visualViewport.width:b[T];m-=N-o.width,m*=c?1:-1}}var L=Object.assign({position:l},u&&$b),A=d===!0?Ob({x:m,y:g},$t(n)):{x:m,y:g};if(m=A.x,g=A.y,c){var D;return Object.assign({},L,(D={},D[k]=v?"0":"",D[_]=C?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",D))}return Object.assign({},L,(e={},e[k]=v?g+"px":"",e[_]=C?m+"px":"",e.transform="",e))}function Lb(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=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:so(e.placement),variation:Or(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ld(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,Ld(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 Ib={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lb,data:{}};function Pb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Ut(s)||!bn(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Fb(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 r=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},{});!Ut(r)||!bn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Vb={name:"applyStyles",enabled:!0,phase:"write",fn:Pb,effect:Fb,requires:["computeStyles"]},Rb=[Db,Bb,Ib,Vb],zb=Ab({defaultModifiers:Rb});function Ub(t){return t==="x"?"y":"x"}function Us(t,e,n){return Fo(t,ea(e,n))}function qb(t,e,n){var o=Us(t,e,n);return o>n?n:o}function Hb(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,s=r===void 0?!0:r,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=lu(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=so(e.placement),v=Or(e.placement),_=!v,k=Gp(C),w=Ub(k),b=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,N=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(b){if(s){var D,M=k==="y"?Qt:Fn,I=k==="y"?kn:po,P=k==="y"?"height":"width",W=b[k],R=W+y[M],q=W-y[I],V=m?-T[P]/2:0,te=v===$r?E[P]:T[P],oe=v===$r?-T[P]:-E[P],_e=e.elements.arrow,F=m&&_e?Wp(_e):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Jp(),U=j[M],G=j[I],ue=Us(0,E[P],F[P]),Ce=_?E[P]/2-V-ue-U-N.mainAxis:te-ue-U-N.mainAxis,Be=_?-E[P]/2+V+ue+G+N.mainAxis:oe+ue+G+N.mainAxis,$e=e.elements.arrow&&Ia(e.elements.arrow),de=$e?k==="y"?$e.clientTop||0:$e.clientLeft||0:0,qe=(D=L==null?void 0:L[k])!=null?D:0,be=W+Ce-qe-de,gt=W+Be-qe,O=Us(m?ea(R,be):R,W,m?Fo(q,gt):q);b[k]=O,A[k]=O-W}if(l){var J,me=k==="x"?Qt:Fn,Me=k==="x"?kn:po,ze=b[w],ge=w==="y"?"height":"width",cn=ze+y[me],Tn=ze-y[Me],He=[Qt,Fn].indexOf(C)!==-1,vt=(J=L==null?void 0:L[w])!=null?J:0,lt=He?cn:ze-E[ge]-T[ge]-vt+N.altAxis,Zt=He?ze+E[ge]+T[ge]-vt-N.altAxis:Tn,An=m&&He?qb(lt,ze,Zt):Us(m?lt:cn,ze,m?Zt:Tn);b[w]=An,A[w]=An-ze}e.modifiersData[o]=A}}var jb={name:"preventOverflow",enabled:!0,phase:"main",fn:Hb,requiresIfExists:["offset"]},Wb={left:"right",right:"left",bottom:"top",top:"bottom"};function qs(t){return t.replace(/left|right|bottom|top/g,function(e){return Wb[e]})}var Zb={start:"end",end:"start"};function Id(t){return t.replace(/start|end/g,function(e){return Zb[e]})}function Kb(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?ib:c,d=Or(o),f=d?l?Md:Md.filter(function(h){return Or(h)===d}):Pa,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]=lu(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[so(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function Gb(t){if(so(t)===au)return[];var e=qs(t);return[Id(t),e,Id(e)]}function Yb(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,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=so(y),v=C===y,_=c||(v||!h?[qs(y)]:Gb(y)),k=[y].concat(_).reduce(function(F,j){return F.concat(so(j)===au?Kb(e,{placement:j,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):j)},[]),w=e.rects.reference,b=e.rects.popper,E=new Map,T=!0,S=k[0],N=0;N<k.length;N++){var L=k[N],A=so(L),D=Or(L)===$r,M=[Qt,kn].indexOf(A)>=0,I=M?"width":"height",P=lu(e,{placement:L,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),W=M?D?po:Fn:D?kn:Qt;w[I]>b[I]&&(W=qs(W));var R=qs(W),q=[];if(s&&q.push(P[A]<=0),l&&q.push(P[W]<=0,P[R]<=0),q.every(function(F){return F})){S=L,T=!1;break}E.set(L,q)}if(T)for(var V=h?3:1,te=function(j){var U=k.find(function(G){var ue=E.get(G);if(ue)return ue.slice(0,j).every(function(Ce){return Ce})});if(U)return S=U,"break"},oe=V;oe>0;oe--){var _e=te(oe);if(_e==="break")break}e.placement!==S&&(e.modifiersData[o]._skip=!0,e.placement=S,e.reset=!0)}}var Jb={name:"flip",enabled:!0,phase:"main",fn:Yb,requiresIfExists:["offset"],data:{_skip:!1}};function Xb(t,e,n){const{disabled:o,appendTo:r,appendToBody:s,openDirection:a}=i.toRefs(t),l=i.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=i.ref(!1),f=i.ref(null),p=i.ref(null),m=i.computed(()=>r.value||s.value),h=i.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&&i.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","")),k=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:k)*-1]}}]})),f.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return i.onMounted(()=>{m.value&&(f.value=zb(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[jb,Jb,{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}}]}))}),i.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:h,updatePopper:C}}function Qb(t,e,n){const{searchable:o,disabled:r,clearOnBlur:s}=i.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,m=i.ref(!1),h=i.ref(!1),g=i.computed(()=>o.value||r.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},C=()=>{o.value&&!r.value&&a.value.focus()},v=(T=!0)=>{r.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 e9(t,e,n){const{mode:o,addTagOn:r,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=i.toRefs(t),h=i.getCurrentInstance().proxy,g=n.iv,y=n.update,C=n.deselect,v=n.search,_=n.setPointer,k=n.selectPointer,w=n.backwardPointer,b=n.forwardPointer,E=n.multiselect,T=n.wrapper,S=n.tags,N=n.isOpen,L=n.open,A=n.blur,D=n.fo,M=i.computed(()=>f.value||p.value||!1),I=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),P=()=>{o.value==="tags"&&!l.value&&M.value&&a.value&&!u.value&&_(D.value[D.value.map(q=>q[c.value]).indexOf(v.value)])};return{handleKeydown:q=>{e.emit("keydown",q,h);let V,te;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&o.value==="tags"&&(V=[...E.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==S.value),te=V.findIndex(oe=>oe===document.activeElement)),q.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let oe=g.value.filter(_e=>!_e.disabled&&_e.remove!==!1);oe.length&&C(oe[oe.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(te!==-1&&te!==void 0){y([...g.value].filter((_e,F)=>F!==te)),te===V.length-1&&(V.length-1?V[V.length-2].focus():a.value?S.value.querySelector("input").focus():T.value.focus());return}if(I.value.indexOf("enter")===-1&&M.value)return;P(),k();break;case" ":if(!M.value&&!a.value){q.preventDefault(),P(),k();return}if(!M.value)return!1;if(I.value.indexOf("space")===-1&&M.value)return;q.preventDefault(),P(),k();break;case"Tab":case";":case",":if(I.value.indexOf(q.key.toLowerCase())===-1||!M.value)return;P(),k(),q.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(q.preventDefault(),!l.value)return;N.value||L(),w();break;case"ArrowDown":if(q.preventDefault(),!l.value)return;N.value||L(),b();break;case"ArrowLeft":if(a.value&&S.value&&S.value.querySelector("input").selectionStart||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),te===-1?V[V.length-1].focus():te>0&&V[te-1].focus();break;case"ArrowRight":if(te===-1||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),V.length>te+1?V[te+1].focus():a.value?S.value.querySelector("input").focus():a.value||T.value.focus();break}},handleKeyup:q=>{e.emit("keyup",q,h)},preparePointer:P}}function t9(t,e,n){const{classes:o,disabled:r,showOptions:s,breakTags:a}=i.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=i.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=i.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:i.computed(()=>{const _=y.value;return{container:[_.container].concat(r.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(r.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:k=>{let w=[_.groupLabel];return c(k)?w.push(u(k)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(k)&&p.value?w.push(d(k)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(k)&&w.push(_.groupLabelDisabled),p.value&&w.push(_.groupLabelPointable),w},groupOptions:_.groupOptions,option:(k,w)=>{let b=[_.option];return c(k)?b.push(u(k)?_.optionSelectedPointed:_.optionPointed):u(k)?b.push(d(k)?_.optionSelectedDisabled:_.optionSelected):(d(k)||w&&d(w))&&b.push(_.optionDisabled),b},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:C}}function n9(t,e,n){const{limit:o,infinite:r}=i.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=i.ref(null),f=i.ref(null),p=i.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,i.nextTick(()=>{v.scrollTop=_})}},h=()=>{s.value&&a.value<c.value.length?d.value.observe(f.value):!s.value&&d.value&&d.value.disconnect()};return i.watch(s,()=>{r.value&&h()}),i.watch(l,()=>{r.value&&(a.value=o.value,h())},{flush:"post"}),i.watch(u,()=>{r.value&&h()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function o9(t,e,n){const{placeholder:o,id:r,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=i.toRefs(t),f=n.pointer,p=n.iv,m=n.hasSelected,h=n.multipleLabelText,g=i.ref(null),y=i.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("assist"),A.join("-")}),C=i.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("multiselect-options"),A.join("-")}),v=i.computed(()=>{let A=[];if(r&&r.value&&A.push(r.value),f.value)return A.push(f.value.group?"multiselect-group":"multiselect-option"),A.push(f.value.group?f.value.index:f.value[s.value]),A.join("-")}),_=i.computed(()=>o.value),k=i.computed(()=>l.value!=="single"),w=i.computed(()=>{let A="";return l.value==="single"&&m.value&&(A+=p.value[a.value]),l.value==="multiple"&&m.value&&(A+=h.value),l.value==="tags"&&m.value&&(A+=p.value.map(D=>D[a.value]).join(", ")),A}),b=i.computed(()=>{let A={...u.value};return d.value&&(A["aria-labelledby"]=A["aria-labelledby"]?`${y.value} ${A["aria-labelledby"]}`:y.value,w.value&&A["aria-label"]&&(A["aria-label"]=`${w.value}, ${A["aria-label"]}`)),A}),E=A=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-option"),D.push(A[s.value]),D.join("-")},T=A=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-group"),D.push(A.index),D.join("-")},S=A=>{let D=[];return D.push(A),D.join(" ")},N=A=>{let D=[];return D.push(A),D.join(" ")},L=A=>`${A} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let A=document.querySelector(`[for="${r.value}"]`);g.value=A?A.innerText:null}}),{arias:b,ariaLabel:w,ariaAssist:y,ariaControls:C,ariaPlaceholder:_,ariaMultiselectable:k,ariaActiveDescendant:v,ariaOptionId:E,ariaOptionLabel:S,ariaGroupId:T,ariaGroupLabel:N,ariaTagLabel:L}}function r9(t,e,n){const{locale:o,fallbackLocale:r}=i.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[r.value]?a[r.value]:a&&r.value&&a[r.value.toUpperCase()]?a[r.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function i9(t,e,n){const o=i.ref(null),r=i.ref(null),s=i.ref(null),a=i.ref(null),l=i.ref(null);return{multiselect:o,wrapper:r,tags:s,input:a,dropdown:l}}function s9(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var no={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 s9(t,e,[i9,r9,HC,WC,Xb,jC,qC,Qb,GC,n9,YC,e9,t9,o9])},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 a9=["id","dir"],l9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],c9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],u9=["onKeyup","aria-label"],d9=["onClick"],f9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],p9=["innerHTML"],m9=["id"],h9=["id"],g9=["id","aria-label","aria-selected"],v9=["data-pointed","onMouseenter","onMousedown"],y9=["innerHTML"],_9=["aria-label"],C9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],b9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],k9=["innerHTML"],w9=["innerHTML"],E9=["value"],x9=["name","value"],S9=["name","value"],T9=["id"];function A9(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"multiselect",class:i.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))},[i.createElementVNode("div",i.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),[i.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.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]=i.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,c9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(t.classList.tags),"data-tags":""},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.iv,(a,l,c)=>i.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:i.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagWrapper)},i.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(t.classList.tagRemove),onClick:i.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,d9)):i.createCommentVNode("v-if",!0)],42,u9))])),256)),i.createElementVNode("div",{class:i.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[i.createCommentVNode(" Used for measuring search width "),i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagsSearchCopy)},i.toDisplayString(t.search),3),i.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.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]=i.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,f9)):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?i.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.singleLabel)},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.singleLabelText)},i.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?i.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,p9)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?i.renderSlot(t.$slots,"placeholder",{key:4},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},i.toDisplayString(n.placeholder),3)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Spinner "),n.loading||t.resolving?i.renderSlot(t.$slots,"spinner",{key:5},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?i.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[i.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:i.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=i.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.clearIcon)},null,2)],34)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Caret "),n.caret&&n.showOptions?i.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0)],16,l9),i.createCommentVNode(" Options "),(i.openBlock(),i.createBlock(i.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[i.createElementVNode("div",{id:`${n.id}-dropdown`,class:i.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[i.renderSlot(t.$slots,"beforelist",{options:t.fo}),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.fg,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.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__?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:i.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[i.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[i.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,y9)])],42,v9)),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.__VISIBLE__,(u,d,f)=>(i.openBlock(),i.createElementBlock("li",{class:i.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:i.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"},[i.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(u[n.label])),1)])],42,C9))),128))],10,_9)],10,g9))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.fo,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.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:i.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"},[i.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(a[n.label])),1)])],42,b9))),128))],10,h9),t.noOptions?i.renderSlot(t.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,k9)]):i.createCommentVNode("v-if",!0),t.noResults?i.renderSlot(t.$slots,"noresults",{key:1},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,w9)]):i.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[i.renderSlot(t.$slots,"infinite",{},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):i.createCommentVNode("v-if",!0),i.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,m9)],8,["to","disabled"])),i.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(i.openBlock(),i.createElementBlock("input",{key:0,class:i.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,E9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Native input support "),n.nativeSupport?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.mode=="single"?(i.openBlock(),i.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,x9)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.plainValue,(a,l)=>(i.openBlock(),i.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,S9))),128))],64)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},i.toDisplayString(t.ariaLabel),11,T9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,a9)}no.render=A9;no.__file="src/Multiselect.vue";const Ct=i.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=i.toRef(()=>e.appendTo),o=i.ref();return e.detached&&UC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(no),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},i.createSlots({_:2},[i.renderList(r.$slots,(a,l)=>({name:l,fn:i.withCtx(c=>[i.renderSlot(r.$slots,l,i.normalizeProps(i.guardReactiveProps(c??{})))])}))]),1536))}});var Pd;function En(){const t=N9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function N9(){const t=i.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}i.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let r,s=0;for(;(r=Pd.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Pd.lastIndex}return o.push(n.substring(s)),o}}});async function Vn(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 r=o[0].id;await i.nextTick();const s=document.getElementById(r);s==null||s.focus(),await i.nextTick();const a=document.getElementById(r);a==null||a.select()}}const D9={class:"ao-tasks"},M9={class:"ao-tasks__list"},B9=["id","value","readonly","onChange"],$9={class:"ao-tasks__list-footer"},O9=i.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}=En(),o=t,r=e;i.watch(()=>o.tasks,(p,m)=>{Vn(p,m)});const s=i.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),a=()=>{const p=o.tasks.length,m={name:n("task.defaultName",{idx:p+1}),activityId:o.activityId};r("add",m)},l=(p,m)=>{const g=p.target.value;r("update",{id:m,name:g})},c=(p,m)=>{o.isEditable&&r("update",{id:p,isDone:m})},u=p=>{r("delete",{id:p})},d=(p,m)=>{r("update",{id:m,assigneeId:p[0]??null})},f=p=>{const m=p.target;m==null||m.blur()};return(p,m)=>(i.openBlock(),i.createElementBlock("div",D9,[i.createElementVNode("ul",M9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tasks,h=>{var g,y;return i.openBlock(),i.createElementBlock("li",{key:h.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,h))??!1?(i.openBlock(),i.createBlock(pe,{key:0,class:"ao-subtask__check","icon-name":h.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(h.id,!h.isDone)},null,8,["icon-name","disabled","onClick"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:h.id,value:h.name,readonly:!t.isEditable,class:i.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":h.isDone}]),type:"text",onChange:C=>l(C,h.id),onKeyup:i.withKeys(f,["enter"])},null,42,B9),m[0]||(m[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(Ct,{key:1,value:(y=h.assignee)!=null&&y.id?[h.assignee.id]:[],options:s.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:p.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,onChange:C=>d(C,h.id)},{tag:i.withCtx(({option:C,handleTagRemove:v})=>[i.createVNode(jn,{"user-name":C.label,"avatar-url":C.avatar,"is-closable":!0,onClose:_=>v(C,_)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):i.createCommentVNode("",!0),t.isEditable?(i.openBlock(),i.createBlock(pe,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>u(h.id)},null,8,["onClick"])):i.createCommentVNode("",!0)])}),128))]),i.createElementVNode("div",$9,[t.isEditable?(i.openBlock(),i.createBlock(pe,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const L9={class:"ao-files__placeholder"},I9={key:0,class:"ao-files__list"},P9=["onClick"],F9={class:"ao-file__title"},V9={class:"ao-file__actions"},R9={key:0},z9={class:"ao-files__input"},U9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},q9={class:"ao-button__label"},H9={class:"ao-files__dropzone"},j9={class:"ao-files__dropzone-label"},W9=i.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove","preview"],setup(t,{emit:e}){const n=e,o=t,r=i.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()}i.onMounted(()=>{s.forEach(m=>{document.body.addEventListener(m,u)})}),i.onUnmounted(()=>{s.forEach(m=>{document.body.removeEventListener(m,u)})});function d(){o.isEditable&&(r.value=!0)}function f(){r.value=!1}i.watch(r,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 i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":r.value}]),onDrop:i.withModifiers(p,["prevent"]),onDragenter:i.withModifiers(d,["prevent"]),onDragover:i.withModifiers(d,["prevent"]),onDragleave:i.withModifiers(f,["prevent"])},[i.renderSlot(m.$slots,"default",{},()=>[i.createElementVNode("span",L9,i.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(i.openBlock(),i.createElementBlock("ul",I9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,(y,C)=>(i.openBlock(),i.createElementBlock("li",{key:y.id,class:"ao-file"},[i.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:v=>n("preview",C)},[i.createVNode(ye,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",F9,i.toDisplayString(y.name),1)],8,P9),i.createElementVNode("div",V9,[i.createVNode(pe,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:i.withModifiers(v=>l(y),["stop"])},null,8,["onClick"]),t.isEditable?(i.openBlock(),i.createBlock(pe,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:i.withModifiers(v=>a(y),["stop"])},null,8,["onClick"])):i.createCommentVNode("",!0)])]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",R9,[i.createElementVNode("label",z9,[i.createElementVNode("div",U9,[i.createVNode(ye,{name:"Add",size:"sm"}),i.createElementVNode("span",q9,i.toDisplayString(m.$t("activity.attachment.button.resting")),1)]),i.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:c},null,32)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",H9,[i.createElementVNode("span",j9,i.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,r.value]])],34)}}});var Se={};const 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="ā",y4="⨿",_4="&",C4="&",b4="⩕",k4="⩓",w4="∧",E4="⩜",x4="⩘",S4="⩚",T4="∠",A4="⦤",N4="∠",D4="⦨",M4="⦩",B4="⦪",$4="⦫",O4="⦬",L4="⦭",I4="⦮",P4="⦯",F4="∡",V4="∟",R4="⊾",z4="⦝",U4="∢",q4="Å",H4="⍼",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="⨑",y8="≌",_8="϶",C8="‵",b8="∽",k8="⋍",w8="∖",E8="⫧",x8="⊽",S8="⌅",T8="⌆",A8="⌅",N8="⎵",D8="⎶",M8="≌",B8="Б",$8="б",O8="„",L8="∵",I8="∵",P8="∵",F8="⦰",V8="϶",R8="ℬ",z8="ℬ",U8="Β",q8="β",H8="ℶ",j8="≬",W8="𝔅",Z8="𝔟",K8="⋂",G8="◯",Y8="⋃",J8="⨀",X8="⨁",Q8="⨂",ek="⨆",tk="★",nk="▽",ok="△",rk="⨄",ik="⋁",sk="⋀",ak="⤍",lk="⧫",ck="▪",uk="▴",dk="▾",fk="◂",pk="▸",mk="␣",hk="▒",gk="░",vk="▓",yk="█",_k="=⃥",Ck="≡⃥",bk="⫭",kk="⌐",wk="𝔹",Ek="𝕓",xk="⊥",Sk="⊥",Tk="⋈",Ak="⧉",Nk="┐",Dk="╕",Mk="╖",Bk="╗",$k="┌",Ok="╒",Lk="╓",Ik="╔",Pk="─",Fk="═",Vk="┬",Rk="╤",zk="╥",Uk="╦",qk="┴",Hk="╧",jk="╨",Wk="╩",Zk="⊟",Kk="⊞",Gk="⊠",Yk="┘",Jk="╛",Xk="╜",Qk="╝",e6="└",t6="╘",n6="╙",o6="╚",r6="│",i6="║",s6="┼",a6="╪",l6="╫",c6="╬",u6="┤",d6="╡",f6="╢",p6="╣",m6="├",h6="╞",g6="╟",v6="╠",y6="‵",_6="˘",C6="˘",b6="¦",k6="𝒷",w6="ℬ",E6="⁏",x6="∽",S6="⋍",T6="⧅",A6="\\",N6="⟈",D6="•",M6="•",B6="≎",$6="⪮",O6="≏",L6="≎",I6="≏",P6="Ć",F6="ć",V6="⩄",R6="⩉",z6="⩋",U6="∩",q6="⋒",H6="⩇",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="Ч",yw="ч",_w="✓",Cw="✓",bw="Χ",kw="χ",ww="ˆ",Ew="≗",xw="↺",Sw="↻",Tw="⊛",Aw="⊚",Nw="⊝",Dw="⊙",Mw="®",Bw="Ⓢ",$w="⊖",Ow="⊕",Lw="⊗",Iw="○",Pw="⧃",Fw="≗",Vw="⨐",Rw="⫯",zw="⧂",Uw="∲",qw="”",Hw="’",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="∳",yE="↵",_E="✗",CE="⨯",bE="𝒞",kE="𝒸",wE="⫏",EE="⫑",xE="⫐",SE="⫒",TE="⋯",AE="⤸",NE="⤵",DE="⋞",ME="⋟",BE="↶",$E="⤽",OE="⩈",LE="⩆",IE="≍",PE="∪",FE="⋓",VE="⩊",RE="⊍",zE="⩅",UE="∪︀",qE="↷",HE="⤼",jE="⋞",WE="⋟",ZE="⋎",KE="⋏",GE="¤",YE="↶",JE="↷",XE="⋎",QE="⋏",ex="∲",tx="∱",nx="⌭",ox="†",rx="‡",ix="ℸ",sx="↓",ax="↡",lx="⇓",cx="‐",ux="⫤",dx="⊣",fx="⤏",px="˝",mx="Ď",hx="ď",gx="Д",vx="д",yx="‡",_x="⇊",Cx="ⅅ",bx="ⅆ",kx="⤑",wx="⩷",Ex="°",xx="∇",Sx="Δ",Tx="δ",Ax="⦱",Nx="⥿",Dx="𝔇",Mx="𝔡",Bx="⥥",$x="⇃",Ox="⇂",Lx="´",Ix="˙",Px="˝",Fx="`",Vx="˜",Rx="⋄",zx="⋄",Ux="⋄",qx="♦",Hx="♦",jx="¨",Wx="ⅆ",Zx="ϝ",Kx="⋲",Gx="÷",Yx="÷",Jx="⋇",Xx="⋇",Qx="Ђ",eS="ђ",tS="⌞",nS="⌍",oS="$",rS="𝔻",iS="𝕕",sS="¨",aS="˙",lS="⃜",cS="≐",uS="≑",dS="≐",fS="∸",pS="∔",mS="⊡",hS="⌆",gS="∯",vS="¨",yS="⇓",_S="⇐",CS="⇔",bS="⫤",kS="⟸",wS="⟺",ES="⟹",xS="⇒",SS="⊨",TS="⇑",AS="⇕",NS="∥",DS="⤓",MS="↓",BS="↓",$S="⇓",OS="⇵",LS="̑",IS="⇊",PS="⇃",FS="⇂",VS="⥐",RS="⥞",zS="⥖",US="↽",qS="⥟",HS="⥗",jS="⇁",WS="↧",ZS="⊤",KS="⤐",GS="⌟",YS="⌌",JS="𝒟",XS="𝒹",QS="Ѕ",eT="ѕ",tT="⧶",nT="Đ",oT="đ",rT="⋱",iT="▿",sT="▾",aT="⇵",lT="⥯",cT="⦦",uT="Џ",dT="џ",fT="⟿",pT="É",mT="é",hT="⩮",gT="Ě",vT="ě",yT="Ê",_T="ê",CT="≖",bT="≕",kT="Э",wT="э",ET="⩷",xT="Ė",ST="ė",TT="≑",AT="ⅇ",NT="≒",DT="𝔈",MT="𝔢",BT="⪚",$T="È",OT="è",LT="⪖",IT="⪘",PT="⪙",FT="∈",VT="⏧",RT="ℓ",zT="⪕",UT="⪗",qT="Ē",HT="ē",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="⪕",yA="⩵",_A="=",CA="≂",bA="≟",kA="⇌",wA="≡",EA="⩸",xA="⧥",SA="⥱",TA="≓",AA="ℯ",NA="ℰ",DA="≐",MA="⩳",BA="≂",$A="Η",OA="η",LA="Ð",IA="ð",PA="Ë",FA="ë",VA="€",RA="!",zA="∃",UA="∃",qA="ℰ",HA="ⅇ",jA="ⅇ",WA="≒",ZA="Ф",KA="ф",GA="♀",YA="ffi",JA="ff",XA="ffl",QA="𝔉",eN="𝔣",tN="fi",nN="◼",oN="▪",rN="fj",iN="♭",sN="fl",aN="▱",lN="ƒ",cN="𝔽",uN="𝕗",dN="∀",fN="∀",pN="⋔",mN="⫙",hN="ℱ",gN="⨍",vN="½",yN="⅓",_N="¼",CN="⅕",bN="⅙",kN="⅛",wN="⅔",EN="⅖",xN="¾",SN="⅗",TN="⅜",AN="⅘",NN="⅚",DN="⅝",MN="⅞",BN="⁄",$N="⌢",ON="𝒻",LN="ℱ",IN="ǵ",PN="Γ",FN="γ",VN="Ϝ",RN="ϝ",zN="⪆",UN="Ğ",qN="ğ",HN="Ģ",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="Ѓ",yD="ѓ",_D="⪥",CD="≷",bD="⪒",kD="⪤",wD="⪊",ED="⪊",xD="⪈",SD="≩",TD="⪈",AD="≩",ND="⋧",DD="𝔾",MD="𝕘",BD="`",$D="≥",OD="⋛",LD="≧",ID="⪢",PD="≷",FD="⩾",VD="≳",RD="𝒢",zD="ℊ",UD="≳",qD="⪎",HD="⪐",jD="⪧",WD="⩺",ZD=">",KD=">",GD="≫",YD="⋗",JD="⦕",XD="⩼",QD="⪆",eM="⥸",tM="⋗",nM="⋛",oM="⪌",rM="≷",iM="≳",sM="≩︀",aM="≩︀",lM="ˇ",cM=" ",uM="½",dM="ℋ",fM="Ъ",pM="ъ",mM="⥈",hM="↔",gM="⇔",vM="↭",yM="^",_M="ℏ",CM="Ĥ",bM="ĥ",kM="♥",wM="♥",EM="…",xM="⊹",SM="𝔥",TM="ℌ",AM="ℋ",NM="⤥",DM="⤦",MM="⇿",BM="∻",$M="↩",OM="↪",LM="𝕙",IM="ℍ",PM="―",FM="─",VM="𝒽",RM="ℋ",zM="ℏ",UM="Ħ",qM="ħ",HM="≎",jM="≏",WM="⁃",ZM="‐",KM="Í",GM="í",YM="⁣",JM="Î",XM="î",QM="И",eB="и",tB="İ",nB="Е",oB="е",rB="¡",iB="⇔",sB="𝔦",aB="ℑ",lB="Ì",cB="ì",uB="ⅈ",dB="⨌",fB="∭",pB="⧜",mB="℩",hB="IJ",gB="ij",vB="Ī",yB="ī",_B="ℑ",CB="ⅈ",bB="ℐ",kB="ℑ",wB="ı",EB="ℑ",xB="⊷",SB="Ƶ",TB="⇒",AB="℅",NB="∞",DB="⧝",MB="ı",BB="⊺",$B="∫",OB="∬",LB="ℤ",IB="∫",PB="⊺",FB="⋂",VB="⨗",RB="⨼",zB="⁣",UB="⁢",qB="Ё",HB="ё",jB="Į",WB="į",ZB="𝕀",KB="𝕚",GB="Ι",YB="ι",JB="⨼",XB="¿",QB="𝒾",e$="ℐ",t$="∈",n$="⋵",o$="⋹",r$="⋴",i$="⋳",s$="∈",a$="⁢",l$="Ĩ",c$="ĩ",u$="І",d$="і",f$="Ï",p$="ï",m$="Ĵ",h$="ĵ",g$="Й",v$="й",y$="𝔍",_$="𝔧",C$="ȷ",b$="𝕁",k$="𝕛",w$="𝒥",E$="𝒿",x$="Ј",S$="ј",T$="Є",A$="є",N$="Κ",D$="κ",M$="ϰ",B$="Ķ",$$="ķ",O$="К",L$="к",I$="𝔎",P$="𝔨",F$="ĸ",V$="Х",R$="х",z$="Ќ",U$="ќ",q$="𝕂",H$="𝕜",j$="𝒦",W$="𝓀",Z$="⇚",K$="Ĺ",G$="ĺ",Y$="⦴",J$="ℒ",X$="Λ",Q$="λ",eO="⟨",tO="⟪",nO="⦑",oO="⟨",rO="⪅",iO="ℒ",sO="«",aO="⇤",lO="⤟",cO="←",uO="↞",dO="⇐",fO="⤝",pO="↩",mO="↫",hO="⤹",gO="⥳",vO="↢",yO="⤙",_O="⤛",CO="⪫",bO="⪭",kO="⪭︀",wO="⤌",EO="⤎",xO="❲",SO="{",TO="[",AO="⦋",NO="⦏",DO="⦍",MO="Ľ",BO="ľ",$O="Ļ",OO="ļ",LO="⌈",IO="{",PO="Л",FO="л",VO="⤶",RO="“",zO="„",UO="⥧",qO="⥋",HO="↲",jO="≤",WO="≦",ZO="⟨",KO="⇤",GO="←",YO="←",JO="⇐",XO="⇆",QO="↢",eL="⌈",tL="⟦",nL="⥡",oL="⥙",rL="⇃",iL="⌊",sL="↽",aL="↼",lL="⇇",cL="↔",uL="↔",dL="⇔",fL="⇆",pL="⇋",mL="↭",hL="⥎",gL="↤",vL="⊣",yL="⥚",_L="⋋",CL="⧏",bL="⊲",kL="⊴",wL="⥑",EL="⥠",xL="⥘",SL="↿",TL="⥒",AL="↼",NL="⪋",DL="⋚",ML="≤",BL="≦",$L="⩽",OL="⪨",LL="⩽",IL="⩿",PL="⪁",FL="⪃",VL="⋚︀",RL="⪓",zL="⪅",UL="⋖",qL="⋚",HL="⪋",jL="⋚",WL="≦",ZL="≶",KL="≶",GL="⪡",YL="≲",JL="⩽",XL="≲",QL="⥼",eI="⌊",tI="𝔏",nI="𝔩",oI="≶",rI="⪑",iI="⥢",sI="↽",aI="↼",lI="⥪",cI="▄",uI="Љ",dI="љ",fI="⇇",pI="≪",mI="⋘",hI="⌞",gI="⇚",vI="⥫",yI="◺",_I="Ŀ",CI="ŀ",bI="⎰",kI="⎰",wI="⪉",EI="⪉",xI="⪇",SI="≨",TI="⪇",AI="≨",NI="⋦",DI="⟬",MI="⇽",BI="⟦",$I="⟵",OI="⟵",LI="⟸",II="⟷",PI="⟷",FI="⟺",VI="⟼",RI="⟶",zI="⟶",UI="⟹",qI="↫",HI="↬",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="⪍",yP="⪏",_P="[",CP="‘",bP="‚",kP="Ł",wP="ł",EP="⪦",xP="⩹",SP="<",TP="<",AP="≪",NP="⋖",DP="⋋",MP="⋉",BP="⥶",$P="⩻",OP="◃",LP="⊴",IP="◂",PP="⦖",FP="⥊",VP="⥦",RP="≨︀",zP="≨︀",UP="¯",qP="♂",HP="✠",jP="✠",WP="↦",ZP="↦",KP="↧",GP="↤",YP="↥",JP="▮",XP="⨩",QP="М",eF="м",tF="—",nF="∺",oF="∡",rF=" ",iF="ℳ",sF="𝔐",aF="𝔪",lF="℧",cF="µ",uF="*",dF="⫰",fF="∣",pF="·",mF="⊟",hF="−",gF="∸",vF="⨪",yF="∓",_F="⫛",CF="…",bF="∓",kF="⊧",wF="𝕄",EF="𝕞",xF="∓",SF="𝓂",TF="ℳ",AF="∾",NF="Μ",DF="μ",MF="⊸",BF="⊸",$F="∇",OF="Ń",LF="ń",IF="∠⃒",PF="≉",FF="⩰̸",VF="≋̸",RF="ʼn",zF="≉",UF="♮",qF="ℕ",HF="♮",jF=" ",WF="≎̸",ZF="≏̸",KF="⩃",GF="Ň",YF="ň",JF="Ņ",XF="ņ",QF="≇",eV="⩭̸",tV="⩂",nV="Н",oV="н",rV="–",iV="⤤",sV="↗",aV="⇗",lV="↗",cV="≠",uV="≐̸",dV="​",fV="​",pV="​",mV="​",hV="≢",gV="⤨",vV="≂̸",yV="≫",_V="≪",CV=`
2
- `,bV="∄",kV="∄",wV="𝔑",EV="𝔫",xV="≧̸",SV="≱",TV="≱",AV="≧̸",NV="⩾̸",DV="⩾̸",MV="⋙̸",BV="≵",$V="≫⃒",OV="≯",LV="≯",IV="≫̸",PV="↮",FV="⇎",VV="⫲",RV="∋",zV="⋼",UV="⋺",qV="∋",HV="Њ",jV="њ",WV="↚",ZV="⇍",KV="‥",GV="≦̸",YV="≰",JV="↚",XV="⇍",QV="↮",eR="⇎",tR="≰",nR="≦̸",oR="⩽̸",rR="⩽̸",iR="≮",sR="⋘̸",aR="≴",lR="≪⃒",cR="≮",uR="⋪",dR="⋬",fR="≪̸",pR="∤",mR="⁠",hR=" ",gR="𝕟",vR="ℕ",yR="⫬",_R="¬",CR="≢",bR="≭",kR="∦",wR="∉",ER="≠",xR="≂̸",SR="∄",TR="≯",AR="≱",NR="≧̸",DR="≫̸",MR="≹",BR="⩾̸",$R="≵",OR="≎̸",LR="≏̸",IR="∉",PR="⋵̸",FR="⋹̸",VR="∉",RR="⋷",zR="⋶",UR="⧏̸",qR="⋪",HR="⋬",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="⪰̸",yz="⋡",_z="≿̸",Cz="⊃⃒",bz="⊉",kz="≁",wz="≄",Ez="≇",xz="≉",Sz="∤",Tz="∦",Az="∦",Nz="⫽⃥",Dz="∂̸",Mz="⨔",Bz="⊀",$z="⋠",Oz="⊀",Lz="⪯̸",Iz="⪯̸",Pz="⤳̸",Fz="↛",Vz="⇏",Rz="↝̸",zz="↛",Uz="⇏",qz="⋫",Hz="⋭",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="⊉",yU="⫆̸",_U="≹",CU="Ñ",bU="ñ",kU="≸",wU="⋪",EU="⋬",xU="⋫",SU="⋭",TU="Ν",AU="ν",NU="#",DU="№",MU=" ",BU="≍⃒",$U="⊬",OU="⊭",LU="⊮",IU="⊯",PU="≥⃒",FU=">⃒",VU="⤄",RU="⧞",zU="⤂",UU="≤⃒",qU="<⃒",HU="⊴⃒",jU="⤃",WU="⊵⃒",ZU="∼⃒",KU="⤣",GU="↖",YU="⇖",JU="↖",XU="⤧",QU="Ó",eq="ó",tq="⊛",nq="Ô",oq="ô",rq="⊚",iq="О",sq="о",aq="⊝",lq="Ő",cq="ő",uq="⨸",dq="⊙",fq="⦼",pq="Œ",mq="œ",hq="⦿",gq="𝔒",vq="𝔬",yq="˛",_q="Ò",Cq="ò",bq="⧁",kq="⦵",wq="Ω",Eq="∮",xq="↺",Sq="⦾",Tq="⦻",Aq="‾",Nq="⧀",Dq="Ō",Mq="ō",Bq="Ω",$q="ω",Oq="Ο",Lq="ο",Iq="⦶",Pq="⊖",Fq="𝕆",Vq="𝕠",Rq="⦷",zq="“",Uq="‘",qq="⦹",Hq="⊕",jq="↻",Wq="⩔",Zq="∨",Kq="⩝",Gq="ℴ",Yq="ℴ",Jq="ª",Xq="º",Qq="⊶",eH="⩖",tH="⩗",nH="⩛",oH="Ⓢ",rH="𝒪",iH="ℴ",sH="Ø",aH="ø",lH="⊘",cH="Õ",uH="õ",dH="⨶",fH="⨷",pH="⊗",mH="Ö",hH="ö",gH="⌽",vH="‾",yH="⏞",_H="⎴",CH="⏜",bH="¶",kH="∥",wH="∥",EH="⫳",xH="⫽",SH="∂",TH="∂",AH="П",NH="п",DH="%",MH=".",BH="‰",$H="⊥",OH="‱",LH="𝔓",IH="𝔭",PH="Φ",FH="φ",VH="ϕ",RH="ℳ",zH="☎",UH="Π",qH="π",HH="⋔",jH="ϖ",WH="ℏ",ZH="ℎ",KH="ℏ",GH="⨣",YH="⊞",JH="⨢",XH="+",QH="∔",ej="⨥",tj="⩲",nj="±",oj="±",rj="⨦",ij="⨧",sj="±",aj="ℌ",lj="⨕",cj="𝕡",uj="ℙ",dj="£",fj="⪷",pj="⪻",mj="≺",hj="≼",gj="⪷",vj="≺",yj="≼",_j="≺",Cj="⪯",bj="≼",kj="≾",wj="⪯",Ej="⪹",xj="⪵",Sj="⋨",Tj="⪯",Aj="⪳",Nj="≾",Dj="′",Mj="″",Bj="ℙ",$j="⪹",Oj="⪵",Lj="⋨",Ij="∏",Pj="∏",Fj="⌮",Vj="⌒",Rj="⌓",zj="∝",Uj="∝",qj="∷",Hj="∝",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="⦳",yW="⟩",_W="⟫",CW="⦒",bW="⦥",kW="⟩",wW="»",EW="⥵",xW="⇥",SW="⤠",TW="⤳",AW="→",NW="↠",DW="⇒",MW="⤞",BW="↪",$W="↬",OW="⥅",LW="⥴",IW="⤖",PW="↣",FW="↝",VW="⤚",RW="⤜",zW="∶",UW="ℚ",qW="⤍",HW="⤏",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="®",yZ="®",_Z="∋",CZ="⇋",bZ="⥯",kZ="⥽",wZ="⌋",EZ="𝔯",xZ="ℜ",SZ="⥤",TZ="⇁",AZ="⇀",NZ="⥬",DZ="Ρ",MZ="ρ",BZ="ϱ",$Z="⟩",OZ="⇥",LZ="→",IZ="→",PZ="⇒",FZ="⇄",VZ="↣",RZ="⌉",zZ="⟧",UZ="⥝",qZ="⥕",HZ="⇂",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="⎱",yK="⫮",_K="⟭",CK="⇾",bK="⟧",kK="⦆",wK="𝕣",EK="ℝ",xK="⨮",SK="⨵",TK="⥰",AK=")",NK="⦔",DK="⨒",MK="⇉",BK="⇛",$K="›",OK="𝓇",LK="ℛ",IK="↱",PK="↱",FK="]",VK="’",RK="’",zK="⋌",UK="⋊",qK="▹",HK="⊵",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="с",yG="⊡",_G="⋅",CG="⩦",bG="⤥",kG="↘",wG="⇘",EG="↘",xG="§",SG=";",TG="⤩",AG="∖",NG="∖",DG="✶",MG="𝔖",BG="𝔰",$G="⌢",OG="♯",LG="Щ",IG="щ",PG="Ш",FG="ш",VG="↓",RG="←",zG="∣",UG="∥",qG="→",HG="↑",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="Ь",yY="ь",_Y="⌿",CY="⧄",bY="/",kY="𝕊",wY="𝕤",EY="♠",xY="♠",SY="∥",TY="⊓",AY="⊓︀",NY="⊔",DY="⊔︀",MY="√",BY="⊏",$Y="⊑",OY="⊏",LY="⊑",IY="⊐",PY="⊒",FY="⊐",VY="⊒",RY="□",zY="□",UY="⊓",qY="⊏",HY="⊑",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="⊊",yJ="⪿",_J="⥹",CJ="⊂",bJ="⋐",kJ="⊆",wJ="⫅",EJ="⊆",xJ="⊊",SJ="⫋",TJ="⫇",AJ="⫕",NJ="⫓",DJ="⪸",MJ="≻",BJ="≽",$J="≻",OJ="⪰",LJ="≽",IJ="≿",PJ="⪰",FJ="⪺",VJ="⪶",RJ="⋩",zJ="≿",UJ="∋",qJ="∑",HJ="∑",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="⫈",yX="⫔",_X="⫖",CX="⤦",bX="↙",kX="⇙",wX="↙",EX="⤪",xX="ß",SX=" ",TX="⌖",AX="Τ",NX="τ",DX="⎴",MX="Ť",BX="ť",$X="Ţ",OX="ţ",LX="Т",IX="т",PX="⃛",FX="⌕",VX="𝔗",RX="𝔱",zX="∴",UX="∴",qX="∴",HX="Θ",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="𝕋",yQ="𝕥",_Q="⫚",CQ="⤩",bQ="‴",kQ="™",wQ="™",EQ="▵",xQ="▿",SQ="◃",TQ="⊴",AQ="≜",NQ="▹",DQ="⊵",MQ="◬",BQ="≜",$Q="⨺",OQ="⃛",LQ="⨹",IQ="⧍",PQ="⨻",FQ="⏢",VQ="𝒯",RQ="𝓉",zQ="Ц",UQ="ц",qQ="Ћ",HQ="ћ",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="Ù",yee="ù",_ee="⥣",Cee="↿",bee="↾",kee="▀",wee="⌜",Eee="⌜",xee="⌏",See="◸",Tee="Ū",Aee="ū",Nee="¨",Dee="_",Mee="⏟",Bee="⎵",$ee="⏝",Oee="⋃",Lee="⊎",Iee="Ų",Pee="ų",Fee="𝕌",Vee="𝕦",Ree="⤒",zee="↑",Uee="↑",qee="⇑",Hee="⇅",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="Ũ",yte="ũ",_te="▵",Cte="▴",bte="⇈",kte="Ü",wte="ü",Ete="⦧",xte="⦜",Ste="ϵ",Tte="ϰ",Ate="∅",Nte="ϕ",Dte="ϖ",Mte="∝",Bte="↕",$te="⇕",Ote="ϱ",Lte="ς",Ite="⊊︀",Pte="⫋︀",Fte="⊋︀",Vte="⫌︀",Rte="ϑ",zte="⊲",Ute="⊳",qte="⫨",Hte="⫫",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="⊃⃒",yne="𝕍",_ne="𝕧",Cne="∝",bne="⊳",kne="𝒱",wne="𝓋",Ene="⫋︀",xne="⊊︀",Sne="⫌︀",Tne="⊋︀",Ane="⊪",Nne="⦚",Dne="Ŵ",Mne="ŵ",Bne="⩟",$ne="∧",One="⋀",Lne="≙",Ine="℘",Pne="𝔚",Fne="𝔴",Vne="𝕎",Rne="𝕨",zne="℘",Une="≀",qne="≀",Hne="𝒲",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="△",yoe="⋁",_oe="⋀",Coe="Ý",boe="ý",koe="Я",woe="я",Eoe="Ŷ",xoe="ŷ",Soe="Ы",Toe="ы",Aoe="¥",Noe="𝔜",Doe="𝔶",Moe="Ї",Boe="ї",$oe="𝕐",Ooe="𝕪",Loe="𝒴",Ioe="𝓎",Poe="Ю",Foe="ю",Voe="ÿ",Roe="Ÿ",zoe="Ź",Uoe="ź",qoe="Ž",Hoe="ž",joe="З",Woe="з",Zoe="Ż",Koe="ż",Goe="ℨ",Yoe="​",Joe="Ζ",Xoe="ζ",Qoe="𝔷",ere="ℨ",tre="Ж",nre="ж",ore="⇝",rre="𝕫",ire="ℤ",sre="𝒵",are="𝓏",lre="‍",cre="‌",ure={Aacute:Z9,aacute:K9,Abreve:G9,abreve:Y9,ac:J9,acd:X9,acE:Q9,Acirc:e4,acirc:t4,acute:n4,Acy:o4,acy:r4,AElig:i4,aelig:s4,af:a4,Afr:l4,afr:c4,Agrave:u4,agrave:d4,alefsym:f4,aleph:p4,Alpha:m4,alpha:h4,Amacr:g4,amacr:v4,amalg:y4,amp:_4,AMP:C4,andand:b4,And:k4,and:w4,andd:E4,andslope:x4,andv:S4,ang:T4,ange:A4,angle:N4,angmsdaa:D4,angmsdab:M4,angmsdac:B4,angmsdad:$4,angmsdae:O4,angmsdaf:L4,angmsdag:I4,angmsdah:P4,angmsd:F4,angrt:V4,angrtvb:R4,angrtvbd:z4,angsph:U4,angst:q4,angzarr:H4,Aogon:j4,aogon:W4,Aopf:Z4,aopf:K4,apacir:G4,ap:Y4,apE:J4,ape:X4,apid:Q4,apos:e8,ApplyFunction:t8,approx:n8,approxeq:o8,Aring:r8,aring:i8,Ascr:s8,ascr:a8,Assign:l8,ast:c8,asymp:u8,asympeq:d8,Atilde:f8,atilde:p8,Auml:m8,auml:h8,awconint:g8,awint:v8,backcong:y8,backepsilon:_8,backprime:C8,backsim:b8,backsimeq:k8,Backslash:w8,Barv:E8,barvee:x8,barwed:S8,Barwed:T8,barwedge:A8,bbrk:N8,bbrktbrk:D8,bcong:M8,Bcy:B8,bcy:$8,bdquo:O8,becaus:L8,because:I8,Because:P8,bemptyv:F8,bepsi:V8,bernou:R8,Bernoullis:z8,Beta:U8,beta:q8,beth:H8,between:j8,Bfr:W8,bfr:Z8,bigcap:K8,bigcirc:G8,bigcup:Y8,bigodot:J8,bigoplus:X8,bigotimes:Q8,bigsqcup:ek,bigstar:tk,bigtriangledown:nk,bigtriangleup:ok,biguplus:rk,bigvee:ik,bigwedge:sk,bkarow:ak,blacklozenge:lk,blacksquare:ck,blacktriangle:uk,blacktriangledown:dk,blacktriangleleft:fk,blacktriangleright:pk,blank:mk,blk12:hk,blk14:gk,blk34:vk,block:yk,bne:_k,bnequiv:Ck,bNot:bk,bnot:kk,Bopf:wk,bopf:Ek,bot:xk,bottom:Sk,bowtie:Tk,boxbox:Ak,boxdl:Nk,boxdL:Dk,boxDl:Mk,boxDL:Bk,boxdr:$k,boxdR:Ok,boxDr:Lk,boxDR:Ik,boxh:Pk,boxH:Fk,boxhd:Vk,boxHd:Rk,boxhD:zk,boxHD:Uk,boxhu:qk,boxHu:Hk,boxhU:jk,boxHU:Wk,boxminus:Zk,boxplus:Kk,boxtimes:Gk,boxul:Yk,boxuL:Jk,boxUl:Xk,boxUL:Qk,boxur:e6,boxuR:t6,boxUr:n6,boxUR:o6,boxv:r6,boxV:i6,boxvh:s6,boxvH:a6,boxVh:l6,boxVH:c6,boxvl:u6,boxvL:d6,boxVl:f6,boxVL:p6,boxvr:m6,boxvR:h6,boxVr:g6,boxVR:v6,bprime:y6,breve:_6,Breve:C6,brvbar:b6,bscr:k6,Bscr:w6,bsemi:E6,bsim:x6,bsime:S6,bsolb:T6,bsol:A6,bsolhsub:N6,bull:D6,bullet:M6,bump:B6,bumpE:$6,bumpe:O6,Bumpeq:L6,bumpeq:I6,Cacute:P6,cacute:F6,capand:V6,capbrcup:R6,capcap:z6,cap:U6,Cap:q6,capcup:H6,capdot:j6,CapitalDifferentialD:W6,caps:Z6,caret:K6,caron:G6,Cayleys:Y6,ccaps:J6,Ccaron:X6,ccaron:Q6,Ccedil:ew,ccedil:tw,Ccirc:nw,ccirc:ow,Cconint:rw,ccups:iw,ccupssm:sw,Cdot:aw,cdot:lw,cedil:cw,Cedilla:uw,cemptyv:dw,cent:fw,centerdot:pw,CenterDot:mw,cfr:hw,Cfr:gw,CHcy:vw,chcy:yw,check:_w,checkmark:Cw,Chi:bw,chi:kw,circ:ww,circeq:Ew,circlearrowleft:xw,circlearrowright:Sw,circledast:Tw,circledcirc:Aw,circleddash:Nw,CircleDot:Dw,circledR:Mw,circledS:Bw,CircleMinus:$w,CirclePlus:Ow,CircleTimes:Lw,cir:Iw,cirE:Pw,cire:Fw,cirfnint:Vw,cirmid:Rw,cirscir:zw,ClockwiseContourIntegral:Uw,CloseCurlyDoubleQuote:qw,CloseCurlyQuote:Hw,clubs:jw,clubsuit:Ww,colon:Zw,Colon:Kw,Colone:Gw,colone:Yw,coloneq:Jw,comma:Xw,commat:Qw,comp:eE,compfn:tE,complement:nE,complexes:oE,cong:rE,congdot:iE,Congruent:sE,conint:aE,Conint:lE,ContourIntegral:cE,copf:uE,Copf:dE,coprod:fE,Coproduct:pE,copy:mE,COPY:hE,copysr:gE,CounterClockwiseContourIntegral:vE,crarr:yE,cross:_E,Cross:CE,Cscr:bE,cscr:kE,csub:wE,csube:EE,csup:xE,csupe:SE,ctdot:TE,cudarrl:AE,cudarrr:NE,cuepr:DE,cuesc:ME,cularr:BE,cularrp:$E,cupbrcap:OE,cupcap:LE,CupCap:IE,cup:PE,Cup:FE,cupcup:VE,cupdot:RE,cupor:zE,cups:UE,curarr:qE,curarrm:HE,curlyeqprec:jE,curlyeqsucc:WE,curlyvee:ZE,curlywedge:KE,curren:GE,curvearrowleft:YE,curvearrowright:JE,cuvee:XE,cuwed:QE,cwconint:ex,cwint:tx,cylcty:nx,dagger:ox,Dagger:rx,daleth:ix,darr:sx,Darr:ax,dArr:lx,dash:cx,Dashv:ux,dashv:dx,dbkarow:fx,dblac:px,Dcaron:mx,dcaron:hx,Dcy:gx,dcy:vx,ddagger:yx,ddarr:_x,DD:Cx,dd:bx,DDotrahd:kx,ddotseq:wx,deg:Ex,Del:xx,Delta:Sx,delta:Tx,demptyv:Ax,dfisht:Nx,Dfr:Dx,dfr:Mx,dHar:Bx,dharl:$x,dharr:Ox,DiacriticalAcute:Lx,DiacriticalDot:Ix,DiacriticalDoubleAcute:Px,DiacriticalGrave:Fx,DiacriticalTilde:Vx,diam:Rx,diamond:zx,Diamond:Ux,diamondsuit:qx,diams:Hx,die:jx,DifferentialD:Wx,digamma:Zx,disin:Kx,div:Gx,divide:Yx,divideontimes:Jx,divonx:Xx,DJcy:Qx,djcy:eS,dlcorn:tS,dlcrop:nS,dollar:oS,Dopf:rS,dopf:iS,Dot:sS,dot:aS,DotDot:lS,doteq:cS,doteqdot:uS,DotEqual:dS,dotminus:fS,dotplus:pS,dotsquare:mS,doublebarwedge:hS,DoubleContourIntegral:gS,DoubleDot:vS,DoubleDownArrow:yS,DoubleLeftArrow:_S,DoubleLeftRightArrow:CS,DoubleLeftTee:bS,DoubleLongLeftArrow:kS,DoubleLongLeftRightArrow:wS,DoubleLongRightArrow:ES,DoubleRightArrow:xS,DoubleRightTee:SS,DoubleUpArrow:TS,DoubleUpDownArrow:AS,DoubleVerticalBar:NS,DownArrowBar:DS,downarrow:MS,DownArrow:BS,Downarrow:$S,DownArrowUpArrow:OS,DownBreve:LS,downdownarrows:IS,downharpoonleft:PS,downharpoonright:FS,DownLeftRightVector:VS,DownLeftTeeVector:RS,DownLeftVectorBar:zS,DownLeftVector:US,DownRightTeeVector:qS,DownRightVectorBar:HS,DownRightVector:jS,DownTeeArrow:WS,DownTee:ZS,drbkarow:KS,drcorn:GS,drcrop:YS,Dscr:JS,dscr:XS,DScy:QS,dscy:eT,dsol:tT,Dstrok:nT,dstrok:oT,dtdot:rT,dtri:iT,dtrif:sT,duarr:aT,duhar:lT,dwangle:cT,DZcy:uT,dzcy:dT,dzigrarr:fT,Eacute:pT,eacute:mT,easter:hT,Ecaron:gT,ecaron:vT,Ecirc:yT,ecirc:_T,ecir:CT,ecolon:bT,Ecy:kT,ecy:wT,eDDot:ET,Edot:xT,edot:ST,eDot:TT,ee:AT,efDot:NT,Efr:DT,efr:MT,eg:BT,Egrave:$T,egrave:OT,egs:LT,egsdot:IT,el:PT,Element:FT,elinters:VT,ell:RT,els:zT,elsdot:UT,Emacr:qT,emacr:HT,empty:jT,emptyset:WT,EmptySmallSquare:ZT,emptyv:KT,EmptyVerySmallSquare:GT,emsp13:YT,emsp14:JT,emsp:XT,ENG:QT,eng:eA,ensp:tA,Eogon:nA,eogon:oA,Eopf:rA,eopf:iA,epar:sA,eparsl:aA,eplus:lA,epsi:cA,Epsilon:uA,epsilon:dA,epsiv:fA,eqcirc:pA,eqcolon:mA,eqsim:hA,eqslantgtr:gA,eqslantless:vA,Equal:yA,equals:_A,EqualTilde:CA,equest:bA,Equilibrium:kA,equiv:wA,equivDD:EA,eqvparsl:xA,erarr:SA,erDot:TA,escr:AA,Escr:NA,esdot:DA,Esim:MA,esim:BA,Eta:$A,eta:OA,ETH:LA,eth:IA,Euml:PA,euml:FA,euro:VA,excl:RA,exist:zA,Exists:UA,expectation:qA,exponentiale:HA,ExponentialE:jA,fallingdotseq:WA,Fcy:ZA,fcy:KA,female:GA,ffilig:YA,fflig:JA,ffllig:XA,Ffr:QA,ffr:eN,filig:tN,FilledSmallSquare:nN,FilledVerySmallSquare:oN,fjlig:rN,flat:iN,fllig:sN,fltns:aN,fnof:lN,Fopf:cN,fopf:uN,forall:dN,ForAll:fN,fork:pN,forkv:mN,Fouriertrf:hN,fpartint:gN,frac12:vN,frac13:yN,frac14:_N,frac15:CN,frac16:bN,frac18:kN,frac23:wN,frac25:EN,frac34:xN,frac35:SN,frac38:TN,frac45:AN,frac56:NN,frac58:DN,frac78:MN,frasl:BN,frown:$N,fscr:ON,Fscr:LN,gacute:IN,Gamma:PN,gamma:FN,Gammad:VN,gammad:RN,gap:zN,Gbreve:UN,gbreve:qN,Gcedil:HN,Gcirc:jN,gcirc:WN,Gcy:ZN,gcy:KN,Gdot:GN,gdot:YN,ge:JN,gE:XN,gEl:QN,gel:eD,geq:tD,geqq:nD,geqslant:oD,gescc:rD,ges:iD,gesdot:sD,gesdoto:aD,gesdotol:lD,gesl:cD,gesles:uD,Gfr:dD,gfr:fD,gg:pD,Gg:mD,ggg:hD,gimel:gD,GJcy:vD,gjcy:yD,gla:_D,gl:CD,glE:bD,glj:kD,gnap:wD,gnapprox:ED,gne:xD,gnE:SD,gneq:TD,gneqq:AD,gnsim:ND,Gopf:DD,gopf:MD,grave:BD,GreaterEqual:$D,GreaterEqualLess:OD,GreaterFullEqual:LD,GreaterGreater:ID,GreaterLess:PD,GreaterSlantEqual:FD,GreaterTilde:VD,Gscr:RD,gscr:zD,gsim:UD,gsime:qD,gsiml:HD,gtcc:jD,gtcir:WD,gt:ZD,GT:KD,Gt:GD,gtdot:YD,gtlPar:JD,gtquest:XD,gtrapprox:QD,gtrarr:eM,gtrdot:tM,gtreqless:nM,gtreqqless:oM,gtrless:rM,gtrsim:iM,gvertneqq:sM,gvnE:aM,Hacek:lM,hairsp:cM,half:uM,hamilt:dM,HARDcy:fM,hardcy:pM,harrcir:mM,harr:hM,hArr:gM,harrw:vM,Hat:yM,hbar:_M,Hcirc:CM,hcirc:bM,hearts:kM,heartsuit:wM,hellip:EM,hercon:xM,hfr:SM,Hfr:TM,HilbertSpace:AM,hksearow:NM,hkswarow:DM,hoarr:MM,homtht:BM,hookleftarrow:$M,hookrightarrow:OM,hopf:LM,Hopf:IM,horbar:PM,HorizontalLine:FM,hscr:VM,Hscr:RM,hslash:zM,Hstrok:UM,hstrok:qM,HumpDownHump:HM,HumpEqual:jM,hybull:WM,hyphen:ZM,Iacute:KM,iacute:GM,ic:YM,Icirc:JM,icirc:XM,Icy:QM,icy:eB,Idot:tB,IEcy:nB,iecy:oB,iexcl:rB,iff:iB,ifr:sB,Ifr:aB,Igrave:lB,igrave:cB,ii:uB,iiiint:dB,iiint:fB,iinfin:pB,iiota:mB,IJlig:hB,ijlig:gB,Imacr:vB,imacr:yB,image:_B,ImaginaryI:CB,imagline:bB,imagpart:kB,imath:wB,Im:EB,imof:xB,imped:SB,Implies:TB,incare:AB,in:"∈",infin:NB,infintie:DB,inodot:MB,intcal:BB,int:$B,Int:OB,integers:LB,Integral:IB,intercal:PB,Intersection:FB,intlarhk:VB,intprod:RB,InvisibleComma:zB,InvisibleTimes:UB,IOcy:qB,iocy:HB,Iogon:jB,iogon:WB,Iopf:ZB,iopf:KB,Iota:GB,iota:YB,iprod:JB,iquest:XB,iscr:QB,Iscr:e$,isin:t$,isindot:n$,isinE:o$,isins:r$,isinsv:i$,isinv:s$,it:a$,Itilde:l$,itilde:c$,Iukcy:u$,iukcy:d$,Iuml:f$,iuml:p$,Jcirc:m$,jcirc:h$,Jcy:g$,jcy:v$,Jfr:y$,jfr:_$,jmath:C$,Jopf:b$,jopf:k$,Jscr:w$,jscr:E$,Jsercy:x$,jsercy:S$,Jukcy:T$,jukcy:A$,Kappa:N$,kappa:D$,kappav:M$,Kcedil:B$,kcedil:$$,Kcy:O$,kcy:L$,Kfr:I$,kfr:P$,kgreen:F$,KHcy:V$,khcy:R$,KJcy:z$,kjcy:U$,Kopf:q$,kopf:H$,Kscr:j$,kscr:W$,lAarr:Z$,Lacute:K$,lacute:G$,laemptyv:Y$,lagran:J$,Lambda:X$,lambda:Q$,lang:eO,Lang:tO,langd:nO,langle:oO,lap:rO,Laplacetrf:iO,laquo:sO,larrb:aO,larrbfs:lO,larr:cO,Larr:uO,lArr:dO,larrfs:fO,larrhk:pO,larrlp:mO,larrpl:hO,larrsim:gO,larrtl:vO,latail:yO,lAtail:_O,lat:CO,late:bO,lates:kO,lbarr:wO,lBarr:EO,lbbrk:xO,lbrace:SO,lbrack:TO,lbrke:AO,lbrksld:NO,lbrkslu:DO,Lcaron:MO,lcaron:BO,Lcedil:$O,lcedil:OO,lceil:LO,lcub:IO,Lcy:PO,lcy:FO,ldca:VO,ldquo:RO,ldquor:zO,ldrdhar:UO,ldrushar:qO,ldsh:HO,le:jO,lE:WO,LeftAngleBracket:ZO,LeftArrowBar:KO,leftarrow:GO,LeftArrow:YO,Leftarrow:JO,LeftArrowRightArrow:XO,leftarrowtail:QO,LeftCeiling:eL,LeftDoubleBracket:tL,LeftDownTeeVector:nL,LeftDownVectorBar:oL,LeftDownVector:rL,LeftFloor:iL,leftharpoondown:sL,leftharpoonup:aL,leftleftarrows:lL,leftrightarrow:cL,LeftRightArrow:uL,Leftrightarrow:dL,leftrightarrows:fL,leftrightharpoons:pL,leftrightsquigarrow:mL,LeftRightVector:hL,LeftTeeArrow:gL,LeftTee:vL,LeftTeeVector:yL,leftthreetimes:_L,LeftTriangleBar:CL,LeftTriangle:bL,LeftTriangleEqual:kL,LeftUpDownVector:wL,LeftUpTeeVector:EL,LeftUpVectorBar:xL,LeftUpVector:SL,LeftVectorBar:TL,LeftVector:AL,lEg:NL,leg:DL,leq:ML,leqq:BL,leqslant:$L,lescc:OL,les:LL,lesdot:IL,lesdoto:PL,lesdotor:FL,lesg:VL,lesges:RL,lessapprox:zL,lessdot:UL,lesseqgtr:qL,lesseqqgtr:HL,LessEqualGreater:jL,LessFullEqual:WL,LessGreater:ZL,lessgtr:KL,LessLess:GL,lesssim:YL,LessSlantEqual:JL,LessTilde:XL,lfisht:QL,lfloor:eI,Lfr:tI,lfr:nI,lg:oI,lgE:rI,lHar:iI,lhard:sI,lharu:aI,lharul:lI,lhblk:cI,LJcy:uI,ljcy:dI,llarr:fI,ll:pI,Ll:mI,llcorner:hI,Lleftarrow:gI,llhard:vI,lltri:yI,Lmidot:_I,lmidot:CI,lmoustache:bI,lmoust:kI,lnap:wI,lnapprox:EI,lne:xI,lnE:SI,lneq:TI,lneqq:AI,lnsim:NI,loang:DI,loarr:MI,lobrk:BI,longleftarrow:$I,LongLeftArrow:OI,Longleftarrow:LI,longleftrightarrow:II,LongLeftRightArrow:PI,Longleftrightarrow:FI,longmapsto:VI,longrightarrow:RI,LongRightArrow:zI,Longrightarrow:UI,looparrowleft:qI,looparrowright:HI,lopar:jI,Lopf:WI,lopf:ZI,loplus:KI,lotimes:GI,lowast:YI,lowbar:JI,LowerLeftArrow:XI,LowerRightArrow:QI,loz:eP,lozenge:tP,lozf:nP,lpar:oP,lparlt:rP,lrarr:iP,lrcorner:sP,lrhar:aP,lrhard:lP,lrm:cP,lrtri:uP,lsaquo:dP,lscr:fP,Lscr:pP,lsh:mP,Lsh:hP,lsim:gP,lsime:vP,lsimg:yP,lsqb:_P,lsquo:CP,lsquor:bP,Lstrok:kP,lstrok:wP,ltcc:EP,ltcir:xP,lt:SP,LT:TP,Lt:AP,ltdot:NP,lthree:DP,ltimes:MP,ltlarr:BP,ltquest:$P,ltri:OP,ltrie:LP,ltrif:IP,ltrPar:PP,lurdshar:FP,luruhar:VP,lvertneqq:RP,lvnE:zP,macr:UP,male:qP,malt:HP,maltese:jP,Map:"⤅",map:WP,mapsto:ZP,mapstodown:KP,mapstoleft:GP,mapstoup:YP,marker:JP,mcomma:XP,Mcy:QP,mcy:eF,mdash:tF,mDDot:nF,measuredangle:oF,MediumSpace:rF,Mellintrf:iF,Mfr:sF,mfr:aF,mho:lF,micro:cF,midast:uF,midcir:dF,mid:fF,middot:pF,minusb:mF,minus:hF,minusd:gF,minusdu:vF,MinusPlus:yF,mlcp:_F,mldr:CF,mnplus:bF,models:kF,Mopf:wF,mopf:EF,mp:xF,mscr:SF,Mscr:TF,mstpos:AF,Mu:NF,mu:DF,multimap:MF,mumap:BF,nabla:$F,Nacute:OF,nacute:LF,nang:IF,nap:PF,napE:FF,napid:VF,napos:RF,napprox:zF,natural:UF,naturals:qF,natur:HF,nbsp:jF,nbump:WF,nbumpe:ZF,ncap:KF,Ncaron:GF,ncaron:YF,Ncedil:JF,ncedil:XF,ncong:QF,ncongdot:eV,ncup:tV,Ncy:nV,ncy:oV,ndash:rV,nearhk:iV,nearr:sV,neArr:aV,nearrow:lV,ne:cV,nedot:uV,NegativeMediumSpace:dV,NegativeThickSpace:fV,NegativeThinSpace:pV,NegativeVeryThinSpace:mV,nequiv:hV,nesear:gV,nesim:vV,NestedGreaterGreater:yV,NestedLessLess:_V,NewLine:CV,nexist:bV,nexists:kV,Nfr:wV,nfr:EV,ngE:xV,nge:SV,ngeq:TV,ngeqq:AV,ngeqslant:NV,nges:DV,nGg:MV,ngsim:BV,nGt:$V,ngt:OV,ngtr:LV,nGtv:IV,nharr:PV,nhArr:FV,nhpar:VV,ni:RV,nis:zV,nisd:UV,niv:qV,NJcy:HV,njcy:jV,nlarr:WV,nlArr:ZV,nldr:KV,nlE:GV,nle:YV,nleftarrow:JV,nLeftarrow:XV,nleftrightarrow:QV,nLeftrightarrow:eR,nleq:tR,nleqq:nR,nleqslant:oR,nles:rR,nless:iR,nLl:sR,nlsim:aR,nLt:lR,nlt:cR,nltri:uR,nltrie:dR,nLtv:fR,nmid:pR,NoBreak:mR,NonBreakingSpace:hR,nopf:gR,Nopf:vR,Not:yR,not:_R,NotCongruent:CR,NotCupCap:bR,NotDoubleVerticalBar:kR,NotElement:wR,NotEqual:ER,NotEqualTilde:xR,NotExists:SR,NotGreater:TR,NotGreaterEqual:AR,NotGreaterFullEqual:NR,NotGreaterGreater:DR,NotGreaterLess:MR,NotGreaterSlantEqual:BR,NotGreaterTilde:$R,NotHumpDownHump:OR,NotHumpEqual:LR,notin:IR,notindot:PR,notinE:FR,notinva:VR,notinvb:RR,notinvc:zR,NotLeftTriangleBar:UR,NotLeftTriangle:qR,NotLeftTriangleEqual:HR,NotLess:jR,NotLessEqual:WR,NotLessGreater:ZR,NotLessLess:KR,NotLessSlantEqual:GR,NotLessTilde:YR,NotNestedGreaterGreater:JR,NotNestedLessLess:XR,notni:QR,notniva:ez,notnivb:tz,notnivc:nz,NotPrecedes:oz,NotPrecedesEqual:rz,NotPrecedesSlantEqual:iz,NotReverseElement:sz,NotRightTriangleBar:az,NotRightTriangle:lz,NotRightTriangleEqual:cz,NotSquareSubset:uz,NotSquareSubsetEqual:dz,NotSquareSuperset:fz,NotSquareSupersetEqual:pz,NotSubset:mz,NotSubsetEqual:hz,NotSucceeds:gz,NotSucceedsEqual:vz,NotSucceedsSlantEqual:yz,NotSucceedsTilde:_z,NotSuperset:Cz,NotSupersetEqual:bz,NotTilde:kz,NotTildeEqual:wz,NotTildeFullEqual:Ez,NotTildeTilde:xz,NotVerticalBar:Sz,nparallel:Tz,npar:Az,nparsl:Nz,npart:Dz,npolint:Mz,npr:Bz,nprcue:$z,nprec:Oz,npreceq:Lz,npre:Iz,nrarrc:Pz,nrarr:Fz,nrArr:Vz,nrarrw:Rz,nrightarrow:zz,nRightarrow:Uz,nrtri:qz,nrtrie:Hz,nsc:jz,nsccue:Wz,nsce:Zz,Nscr:Kz,nscr:Gz,nshortmid:Yz,nshortparallel:Jz,nsim:Xz,nsime:Qz,nsimeq:eU,nsmid:tU,nspar:nU,nsqsube:oU,nsqsupe:rU,nsub:iU,nsubE:sU,nsube:aU,nsubset:lU,nsubseteq:cU,nsubseteqq:uU,nsucc:dU,nsucceq:fU,nsup:pU,nsupE:mU,nsupe:hU,nsupset:gU,nsupseteq:vU,nsupseteqq:yU,ntgl:_U,Ntilde:CU,ntilde:bU,ntlg:kU,ntriangleleft:wU,ntrianglelefteq:EU,ntriangleright:xU,ntrianglerighteq:SU,Nu:TU,nu:AU,num:NU,numero:DU,numsp:MU,nvap:BU,nvdash:$U,nvDash:OU,nVdash:LU,nVDash:IU,nvge:PU,nvgt:FU,nvHarr:VU,nvinfin:RU,nvlArr:zU,nvle:UU,nvlt:qU,nvltrie:HU,nvrArr:jU,nvrtrie:WU,nvsim:ZU,nwarhk:KU,nwarr:GU,nwArr:YU,nwarrow:JU,nwnear:XU,Oacute:QU,oacute:eq,oast:tq,Ocirc:nq,ocirc:oq,ocir:rq,Ocy:iq,ocy:sq,odash:aq,Odblac:lq,odblac:cq,odiv:uq,odot:dq,odsold:fq,OElig:pq,oelig:mq,ofcir:hq,Ofr:gq,ofr:vq,ogon:yq,Ograve:_q,ograve:Cq,ogt:bq,ohbar:kq,ohm:wq,oint:Eq,olarr:xq,olcir:Sq,olcross:Tq,oline:Aq,olt:Nq,Omacr:Dq,omacr:Mq,Omega:Bq,omega:$q,Omicron:Oq,omicron:Lq,omid:Iq,ominus:Pq,Oopf:Fq,oopf:Vq,opar:Rq,OpenCurlyDoubleQuote:zq,OpenCurlyQuote:Uq,operp:qq,oplus:Hq,orarr:jq,Or:Wq,or:Zq,ord:Kq,order:Gq,orderof:Yq,ordf:Jq,ordm:Xq,origof:Qq,oror:eH,orslope:tH,orv:nH,oS:oH,Oscr:rH,oscr:iH,Oslash:sH,oslash:aH,osol:lH,Otilde:cH,otilde:uH,otimesas:dH,Otimes:fH,otimes:pH,Ouml:mH,ouml:hH,ovbar:gH,OverBar:vH,OverBrace:yH,OverBracket:_H,OverParenthesis:CH,para:bH,parallel:kH,par:wH,parsim:EH,parsl:xH,part:SH,PartialD:TH,Pcy:AH,pcy:NH,percnt:DH,period:MH,permil:BH,perp:$H,pertenk:OH,Pfr:LH,pfr:IH,Phi:PH,phi:FH,phiv:VH,phmmat:RH,phone:zH,Pi:UH,pi:qH,pitchfork:HH,piv:jH,planck:WH,planckh:ZH,plankv:KH,plusacir:GH,plusb:YH,pluscir:JH,plus:XH,plusdo:QH,plusdu:ej,pluse:tj,PlusMinus:nj,plusmn:oj,plussim:rj,plustwo:ij,pm:sj,Poincareplane:aj,pointint:lj,popf:cj,Popf:uj,pound:dj,prap:fj,Pr:pj,pr:mj,prcue:hj,precapprox:gj,prec:vj,preccurlyeq:yj,Precedes:_j,PrecedesEqual:Cj,PrecedesSlantEqual:bj,PrecedesTilde:kj,preceq:wj,precnapprox:Ej,precneqq:xj,precnsim:Sj,pre:Tj,prE:Aj,precsim:Nj,prime:Dj,Prime:Mj,primes:Bj,prnap:$j,prnE:Oj,prnsim:Lj,prod:Ij,Product:Pj,profalar:Fj,profline:Vj,profsurf:Rj,prop:zj,Proportional:Uj,Proportion:qj,propto:Hj,prsim:jj,prurel:Wj,Pscr:Zj,pscr:Kj,Psi:Gj,psi:Yj,puncsp:Jj,Qfr:Xj,qfr:Qj,qint:eW,qopf:tW,Qopf:nW,qprime:oW,Qscr:rW,qscr:iW,quaternions:sW,quatint:aW,quest:lW,questeq:cW,quot:uW,QUOT:dW,rAarr:fW,race:pW,Racute:mW,racute:hW,radic:gW,raemptyv:vW,rang:yW,Rang:_W,rangd:CW,range:bW,rangle:kW,raquo:wW,rarrap:EW,rarrb:xW,rarrbfs:SW,rarrc:TW,rarr:AW,Rarr:NW,rArr:DW,rarrfs:MW,rarrhk:BW,rarrlp:$W,rarrpl:OW,rarrsim:LW,Rarrtl:IW,rarrtl:PW,rarrw:FW,ratail:VW,rAtail:RW,ratio:zW,rationals:UW,rbarr:qW,rBarr:HW,RBarr:jW,rbbrk:WW,rbrace:ZW,rbrack:KW,rbrke:GW,rbrksld:YW,rbrkslu:JW,Rcaron:XW,rcaron:QW,Rcedil:eZ,rcedil:tZ,rceil:nZ,rcub:oZ,Rcy:rZ,rcy:iZ,rdca:sZ,rdldhar:aZ,rdquo:lZ,rdquor:cZ,rdsh:uZ,real:dZ,realine:fZ,realpart:pZ,reals:mZ,Re:hZ,rect:gZ,reg:vZ,REG:yZ,ReverseElement:_Z,ReverseEquilibrium:CZ,ReverseUpEquilibrium:bZ,rfisht:kZ,rfloor:wZ,rfr:EZ,Rfr:xZ,rHar:SZ,rhard:TZ,rharu:AZ,rharul:NZ,Rho:DZ,rho:MZ,rhov:BZ,RightAngleBracket:$Z,RightArrowBar:OZ,rightarrow:LZ,RightArrow:IZ,Rightarrow:PZ,RightArrowLeftArrow:FZ,rightarrowtail:VZ,RightCeiling:RZ,RightDoubleBracket:zZ,RightDownTeeVector:UZ,RightDownVectorBar:qZ,RightDownVector:HZ,RightFloor:jZ,rightharpoondown:WZ,rightharpoonup:ZZ,rightleftarrows:KZ,rightleftharpoons:GZ,rightrightarrows:YZ,rightsquigarrow:JZ,RightTeeArrow:XZ,RightTee:QZ,RightTeeVector:eK,rightthreetimes:tK,RightTriangleBar:nK,RightTriangle:oK,RightTriangleEqual:rK,RightUpDownVector:iK,RightUpTeeVector:sK,RightUpVectorBar:aK,RightUpVector:lK,RightVectorBar:cK,RightVector:uK,ring:dK,risingdotseq:fK,rlarr:pK,rlhar:mK,rlm:hK,rmoustache:gK,rmoust:vK,rnmid:yK,roang:_K,roarr:CK,robrk:bK,ropar:kK,ropf:wK,Ropf:EK,roplus:xK,rotimes:SK,RoundImplies:TK,rpar:AK,rpargt:NK,rppolint:DK,rrarr:MK,Rrightarrow:BK,rsaquo:$K,rscr:OK,Rscr:LK,rsh:IK,Rsh:PK,rsqb:FK,rsquo:VK,rsquor:RK,rthree:zK,rtimes:UK,rtri:qK,rtrie:HK,rtrif:jK,rtriltri:WK,RuleDelayed:ZK,ruluhar:KK,rx:GK,Sacute:YK,sacute:JK,sbquo:XK,scap:QK,Scaron:eG,scaron:tG,Sc:nG,sc:oG,sccue:rG,sce:iG,scE:sG,Scedil:aG,scedil:lG,Scirc:cG,scirc:uG,scnap:dG,scnE:fG,scnsim:pG,scpolint:mG,scsim:hG,Scy:gG,scy:vG,sdotb:yG,sdot:_G,sdote:CG,searhk:bG,searr:kG,seArr:wG,searrow:EG,sect:xG,semi:SG,seswar:TG,setminus:AG,setmn:NG,sext:DG,Sfr:MG,sfr:BG,sfrown:$G,sharp:OG,SHCHcy:LG,shchcy:IG,SHcy:PG,shcy:FG,ShortDownArrow:VG,ShortLeftArrow:RG,shortmid:zG,shortparallel:UG,ShortRightArrow:qG,ShortUpArrow:HG,shy:jG,Sigma:WG,sigma:ZG,sigmaf:KG,sigmav:GG,sim:YG,simdot:JG,sime:XG,simeq:QG,simg:eY,simgE:tY,siml:nY,simlE:oY,simne:rY,simplus:iY,simrarr:sY,slarr:aY,SmallCircle:lY,smallsetminus:cY,smashp:uY,smeparsl:dY,smid:fY,smile:pY,smt:mY,smte:hY,smtes:gY,SOFTcy:vY,softcy:yY,solbar:_Y,solb:CY,sol:bY,Sopf:kY,sopf:wY,spades:EY,spadesuit:xY,spar:SY,sqcap:TY,sqcaps:AY,sqcup:NY,sqcups:DY,Sqrt:MY,sqsub:BY,sqsube:$Y,sqsubset:OY,sqsubseteq:LY,sqsup:IY,sqsupe:PY,sqsupset:FY,sqsupseteq:VY,square:RY,Square:zY,SquareIntersection:UY,SquareSubset:qY,SquareSubsetEqual:HY,SquareSuperset:jY,SquareSupersetEqual:WY,SquareUnion:ZY,squarf:KY,squ:GY,squf:YY,srarr:JY,Sscr:XY,sscr:QY,ssetmn:eJ,ssmile:tJ,sstarf:nJ,Star:oJ,star:rJ,starf:iJ,straightepsilon:sJ,straightphi:aJ,strns:lJ,sub:cJ,Sub:uJ,subdot:dJ,subE:fJ,sube:pJ,subedot:mJ,submult:hJ,subnE:gJ,subne:vJ,subplus:yJ,subrarr:_J,subset:CJ,Subset:bJ,subseteq:kJ,subseteqq:wJ,SubsetEqual:EJ,subsetneq:xJ,subsetneqq:SJ,subsim:TJ,subsub:AJ,subsup:NJ,succapprox:DJ,succ:MJ,succcurlyeq:BJ,Succeeds:$J,SucceedsEqual:OJ,SucceedsSlantEqual:LJ,SucceedsTilde:IJ,succeq:PJ,succnapprox:FJ,succneqq:VJ,succnsim:RJ,succsim:zJ,SuchThat:UJ,sum:qJ,Sum:HJ,sung:jJ,sup1:WJ,sup2:ZJ,sup3:KJ,sup:GJ,Sup:YJ,supdot:JJ,supdsub:XJ,supE:QJ,supe:eX,supedot:tX,Superset:nX,SupersetEqual:oX,suphsol:rX,suphsub:iX,suplarr:sX,supmult:aX,supnE:lX,supne:cX,supplus:uX,supset:dX,Supset:fX,supseteq:pX,supseteqq:mX,supsetneq:hX,supsetneqq:gX,supsim:vX,supsub:yX,supsup:_X,swarhk:CX,swarr:bX,swArr:kX,swarrow:wX,swnwar:EX,szlig:xX,Tab:SX,target:TX,Tau:AX,tau:NX,tbrk:DX,Tcaron:MX,tcaron:BX,Tcedil:$X,tcedil:OX,Tcy:LX,tcy:IX,tdot:PX,telrec:FX,Tfr:VX,tfr:RX,there4:zX,therefore:UX,Therefore:qX,Theta:HX,theta:jX,thetasym:WX,thetav:ZX,thickapprox:KX,thicksim:GX,ThickSpace:YX,ThinSpace:JX,thinsp:XX,thkap:QX,thksim:eQ,THORN:tQ,thorn:nQ,tilde:oQ,Tilde:rQ,TildeEqual:iQ,TildeFullEqual:sQ,TildeTilde:aQ,timesbar:lQ,timesb:cQ,times:uQ,timesd:dQ,tint:fQ,toea:pQ,topbot:mQ,topcir:hQ,top:gQ,Topf:vQ,topf:yQ,topfork:_Q,tosa:CQ,tprime:bQ,trade:kQ,TRADE:wQ,triangle:EQ,triangledown:xQ,triangleleft:SQ,trianglelefteq:TQ,triangleq:AQ,triangleright:NQ,trianglerighteq:DQ,tridot:MQ,trie:BQ,triminus:$Q,TripleDot:OQ,triplus:LQ,trisb:IQ,tritime:PQ,trpezium:FQ,Tscr:VQ,tscr:RQ,TScy:zQ,tscy:UQ,TSHcy:qQ,tshcy:HQ,Tstrok:jQ,tstrok:WQ,twixt:ZQ,twoheadleftarrow:KQ,twoheadrightarrow:GQ,Uacute:YQ,uacute:JQ,uarr:XQ,Uarr:QQ,uArr:eee,Uarrocir:tee,Ubrcy:nee,ubrcy:oee,Ubreve:ree,ubreve:iee,Ucirc:see,ucirc:aee,Ucy:lee,ucy:cee,udarr:uee,Udblac:dee,udblac:fee,udhar:pee,ufisht:mee,Ufr:hee,ufr:gee,Ugrave:vee,ugrave:yee,uHar:_ee,uharl:Cee,uharr:bee,uhblk:kee,ulcorn:wee,ulcorner:Eee,ulcrop:xee,ultri:See,Umacr:Tee,umacr:Aee,uml:Nee,UnderBar:Dee,UnderBrace:Mee,UnderBracket:Bee,UnderParenthesis:$ee,Union:Oee,UnionPlus:Lee,Uogon:Iee,uogon:Pee,Uopf:Fee,uopf:Vee,UpArrowBar:Ree,uparrow:zee,UpArrow:Uee,Uparrow:qee,UpArrowDownArrow:Hee,updownarrow:jee,UpDownArrow:Wee,Updownarrow:Zee,UpEquilibrium:Kee,upharpoonleft:Gee,upharpoonright:Yee,uplus:Jee,UpperLeftArrow:Xee,UpperRightArrow:Qee,upsi:ete,Upsi:tte,upsih:nte,Upsilon:ote,upsilon:rte,UpTeeArrow:ite,UpTee:ste,upuparrows:ate,urcorn:lte,urcorner:cte,urcrop:ute,Uring:dte,uring:fte,urtri:pte,Uscr:mte,uscr:hte,utdot:gte,Utilde:vte,utilde:yte,utri:_te,utrif:Cte,uuarr:bte,Uuml:kte,uuml:wte,uwangle:Ete,vangrt:xte,varepsilon:Ste,varkappa:Tte,varnothing:Ate,varphi:Nte,varpi:Dte,varpropto:Mte,varr:Bte,vArr:$te,varrho:Ote,varsigma:Lte,varsubsetneq:Ite,varsubsetneqq:Pte,varsupsetneq:Fte,varsupsetneqq:Vte,vartheta:Rte,vartriangleleft:zte,vartriangleright:Ute,vBar:qte,Vbar:Hte,vBarv:jte,Vcy:Wte,vcy:Zte,vdash:Kte,vDash:Gte,Vdash:Yte,VDash:Jte,Vdashl:Xte,veebar:Qte,vee:ene,Vee:tne,veeeq:nne,vellip:one,verbar:rne,Verbar:ine,vert:sne,Vert:ane,VerticalBar:lne,VerticalLine:cne,VerticalSeparator:une,VerticalTilde:dne,VeryThinSpace:fne,Vfr:pne,vfr:mne,vltri:hne,vnsub:gne,vnsup:vne,Vopf:yne,vopf:_ne,vprop:Cne,vrtri:bne,Vscr:kne,vscr:wne,vsubnE:Ene,vsubne:xne,vsupnE:Sne,vsupne:Tne,Vvdash:Ane,vzigzag:Nne,Wcirc:Dne,wcirc:Mne,wedbar:Bne,wedge:$ne,Wedge:One,wedgeq:Lne,weierp:Ine,Wfr:Pne,wfr:Fne,Wopf:Vne,wopf:Rne,wp:zne,wr:Une,wreath:qne,Wscr:Hne,wscr:jne,xcap:Wne,xcirc:Zne,xcup:Kne,xdtri:Gne,Xfr:Yne,xfr:Jne,xharr:Xne,xhArr:Qne,Xi:eoe,xi:toe,xlarr:noe,xlArr:ooe,xmap:roe,xnis:ioe,xodot:soe,Xopf:aoe,xopf:loe,xoplus:coe,xotime:uoe,xrarr:doe,xrArr:foe,Xscr:poe,xscr:moe,xsqcup:hoe,xuplus:goe,xutri:voe,xvee:yoe,xwedge:_oe,Yacute:Coe,yacute:boe,YAcy:koe,yacy:woe,Ycirc:Eoe,ycirc:xoe,Ycy:Soe,ycy:Toe,yen:Aoe,Yfr:Noe,yfr:Doe,YIcy:Moe,yicy:Boe,Yopf:$oe,yopf:Ooe,Yscr:Loe,yscr:Ioe,YUcy:Poe,yucy:Foe,yuml:Voe,Yuml:Roe,Zacute:zoe,zacute:Uoe,Zcaron:qoe,zcaron:Hoe,Zcy:joe,zcy:Woe,Zdot:Zoe,zdot:Koe,zeetrf:Goe,ZeroWidthSpace:Yoe,Zeta:Joe,zeta:Xoe,zfr:Qoe,Zfr:ere,ZHcy:tre,zhcy:nre,zigrarr:ore,zopf:rre,Zopf:ire,Zscr:sre,zscr:are,zwj:lre,zwnj:cre};var Xp=ure,cu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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={},Fd={};function dre(t){var e,n,o=Fd[t];if(o)return o;for(o=Fd[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 Fa(t,e,n){var o,r,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Fa.defaultChars),typeof n>"u"&&(n=!0),l=dre(e),o=0,r=t.length;o<r;o++){if(s=t.charCodeAt(o),n&&s===37&&o+2<r&&/^[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<r&&(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}Fa.defaultChars=";/?:@&=+$,-_.!~*'()#";Fa.componentChars="-_.!~*'()";var fre=Fa,Vd={};function pre(t){var e,n,o=Vd[t];if(o)return o;for(o=Vd[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 Va(t,e){var n;return typeof e!="string"&&(e=Va.defaultChars),n=pre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var r,s,a,l,c,u,d,f="";for(r=0,s=o.length;r<s;r+=3){if(a=parseInt(o.slice(r+1,r+3),16),a<128){f+=n[a];continue}if((a&224)===192&&r+3<s&&(l=parseInt(o.slice(r+4,r+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?f+="��":f+=String.fromCharCode(d),r+=3;continue}if((a&240)===224&&r+6<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+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),r+=6;continue}if((a&248)===240&&r+9<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),u=parseInt(o.slice(r+10,r+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))),r+=9;continue}f+="�"}return f})}Va.defaultChars=";/?:@&=+$,#";Va.componentChars="";var mre=Va,hre=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 ta(){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 gre=/^([a-z0-9.+-]+:)/i,vre=/:[0-9]*$/,yre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_re=["<",">",'"',"`"," ","\r",`
3
- `," "],Cre=["{","}","|","\\","^","`"].concat(_re),bre=["'"].concat(Cre),Rd=["%","/","?",";","#"].concat(bre),zd=["/","?","#"],kre=255,Ud=/^[+a-z0-9A-Z_-]{0,63}$/,wre=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qd={javascript:!0,"javascript:":!0},Hd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ere(t,e){if(t&&t instanceof ta)return t;var n=new ta;return n.parse(t,e),n}ta.prototype.parse=function(t,e){var n,o,r,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=yre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=gre.exec(l);if(u&&(u=u[0],r=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&qd[u])&&(l=l.substr(2),this.slashes=!0)),!qd[u]&&(a||u&&!Hd[u])){var d=-1;for(n=0;n<zd.length;n++)s=l.indexOf(zd[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<Rd.length;n++)s=l.indexOf(Rd[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(Ud)){for(var C="",v=0,_=y.length;v<_;v++)y.charCodeAt(v)>127?C+="x":C+=y[v];if(!C.match(Ud)){var k=g.slice(0,n),w=g.slice(n+1),b=y.match(wre);b&&(k.push(b[1]),w.unshift(b[2])),w.length&&(l=w.join(".")+l),this.hostname=k.join(".");break}}}}this.hostname.length>kre&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=l.indexOf("#");E!==-1&&(this.hash=l.substr(E),l=l.slice(0,E));var T=l.indexOf("?");return T!==-1&&(this.search=l.substr(T),l=l.slice(0,T)),l&&(this.pathname=l),Hd[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ta.prototype.parseHost=function(t){var e=vre.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 xre=Ere;zr.encode=fre;zr.decode=mre;zr.format=hre;zr.parse=xre;var xo={},kl,jd;function Qp(){return jd||(jd=1,kl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),kl}var wl,Wd;function em(){return Wd||(Wd=1,wl=/[\0-\x1F\x7F-\x9F]/),wl}var El,Zd;function Sre(){return Zd||(Zd=1,El=/[\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]/),El}var xl,Kd;function tm(){return Kd||(Kd=1,xl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),xl}var Gd;function Tre(){return Gd||(Gd=1,xo.Any=Qp(),xo.Cc=em(),xo.Cf=Sre(),xo.P=cu,xo.Z=tm()),xo}(function(t){function e(M){return Object.prototype.toString.call(M)}function n(M){return e(M)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(M,I){return o.call(M,I)}function s(M){var I=Array.prototype.slice.call(arguments,1);return I.forEach(function(P){if(P){if(typeof P!="object")throw new TypeError(P+"must be object");Object.keys(P).forEach(function(W){M[W]=P[W]})}}),M}function a(M,I,P){return[].concat(M.slice(0,I),P,M.slice(I+1))}function l(M){return!(M>=55296&&M<=57343||M>=64976&&M<=65007||(M&65535)===65535||(M&65535)===65534||M>=0&&M<=8||M===11||M>=14&&M<=31||M>=127&&M<=159||M>1114111)}function c(M){if(M>65535){M-=65536;var I=55296+(M>>10),P=56320+(M&1023);return String.fromCharCode(I,P)}return String.fromCharCode(M)}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=Xp;function h(M,I){var P;return r(m,I)?m[I]:I.charCodeAt(0)===35&&p.test(I)&&(P=I[1].toLowerCase()==="x"?parseInt(I.slice(2),16):parseInt(I.slice(1),10),l(P))?c(P):M}function g(M){return M.indexOf("\\")<0?M:M.replace(u,"$1")}function y(M){return M.indexOf("\\")<0&&M.indexOf("&")<0?M:M.replace(f,function(I,P,W){return P||h(I,W)})}var C=/[&<>"]/,v=/[&<>"]/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function k(M){return _[M]}function w(M){return C.test(M)?M.replace(v,k):M}var b=/[.?*+^$[\]\\(){}|-]/g;function E(M){return M.replace(b,"\\$&")}function T(M){switch(M){case 9:case 32:return!0}return!1}function S(M){if(M>=8192&&M<=8202)return!0;switch(M){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 N=cu;function L(M){return N.test(M)}function A(M){switch(M){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 D(M){return M=M.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(M=M.replace(/ẞ/g,"ß")),M.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=zr,t.lib.ucmicro=Tre(),t.assign=s,t.isString=n,t.has=r,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=A,t.isPunctChar=L,t.escapeRE=E,t.normalizeReference=D})(Se);var Ra={},Are=function(e,n,o){var r,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,r=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)r++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},Yd=Se.unescapeAll,Nre=function(e,n,o){var r,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(r=e.charCodeAt(a),r===10||r===60)return l;if(r===62)return l.pos=a+1,l.str=Yd(e.slice(n+1,a)),l.ok=!0,l;if(r===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(r=e.charCodeAt(a),!(r===32||r<32||r===127));){if(r===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(r===40&&(s++,s>32))return l;if(r===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=Yd(e.slice(n,a)),l.pos=a,l.ok=!0),l},Dre=Se.unescapeAll,Mre=function(e,n,o){var r,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(r=e.charCodeAt(l),r===s)return c.pos=l+1,c.lines=a,c.str=Dre(e.slice(n+1,l)),c.ok=!0,c;if(r===40&&s===41)return c;r===10?a++:r===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};Ra.parseLinkLabel=Are;Ra.parseLinkDestination=Nre;Ra.parseLinkTitle=Mre;var Bre=Se.assign,$re=Se.unescapeAll,jo=Se.escapeHtml,xn={};xn.code_inline=function(t,e,n,o,r){var s=t[e];return"<code"+r.renderAttrs(s)+">"+jo(s.content)+"</code>"};xn.code_block=function(t,e,n,o,r){var s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+jo(t[e].content)+`</code></pre>
4
- `};xn.fence=function(t,e,n,o,r){var s=t[e],a=s.info?$re(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 Gg=Object.defineProperty;var Yg=(t,e,n)=>e in t?Gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>(Yg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Nr=require("vue-router"),go=require("vuedraggable");const Jg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Nr.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),oe=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Xg={},Qg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e0(t,e){return i.openBlock(),i.createElementBlock("svg",Qg,[...e[0]||(e[0]=[i.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 t0=oe(Xg,[["render",e0]]),n0={},o0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r0(t,e){return i.openBlock(),i.createElementBlock("svg",o0,[...e[0]||(e[0]=[i.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 i0=oe(n0,[["render",r0]]),s0={},a0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l0(t,e){return i.openBlock(),i.createElementBlock("svg",a0,[...e[0]||(e[0]=[i.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=oe(s0,[["render",l0]]),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 i.openBlock(),i.createElementBlock("svg",d0,[...e[0]||(e[0]=[i.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 p0=oe(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 i.openBlock(),i.createElementBlock("svg",h0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const v0=oe(m0,[["render",g0]]),y0={},_0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C0(t,e){return i.openBlock(),i.createElementBlock("svg",_0,[...e[0]||(e[0]=[i.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=oe(y0,[["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 i.openBlock(),i.createElementBlock("svg",w0,[...e[0]||(e[0]=[i.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 x0=oe(k0,[["render",E0]]),S0={},T0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A0(t,e){return i.openBlock(),i.createElementBlock("svg",T0,[...e[0]||(e[0]=[i.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 N0=oe(S0,[["render",A0]]),D0={},M0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B0(t,e){return i.openBlock(),i.createElementBlock("svg",M0,[...e[0]||(e[0]=[i.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 $0=oe(D0,[["render",B0]]),O0={},L0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I0(t,e){return i.openBlock(),i.createElementBlock("svg",L0,[...e[0]||(e[0]=[i.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 P0=oe(O0,[["render",I0]]),F0={},V0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R0(t,e){return i.openBlock(),i.createElementBlock("svg",V0,[...e[0]||(e[0]=[i.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 z0=oe(F0,[["render",R0]]),U0={},q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H0(t,e){return i.openBlock(),i.createElementBlock("svg",q0,[...e[0]||(e[0]=[i.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 j0=oe(U0,[["render",H0]]),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 i.openBlock(),i.createElementBlock("svg",Z0,[...e[0]||(e[0]=[i.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 G0=oe(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 i.openBlock(),i.createElementBlock("svg",J0,[...e[0]||(e[0]=[i.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 Q0=oe(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 i.openBlock(),i.createElementBlock("svg",tv,[...e[0]||(e[0]=[i.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 ov=oe(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 i.openBlock(),i.createElementBlock("svg",iv,[...e[0]||(e[0]=[i.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 av=oe(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 i.openBlock(),i.createElementBlock("svg",cv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const dv=oe(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 i.openBlock(),i.createElementBlock("svg",pv,[...e[0]||(e[0]=[i.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 hv=oe(fv,[["render",mv]]),gv={},vv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yv(t,e){return i.openBlock(),i.createElementBlock("svg",vv,[...e[0]||(e[0]=[i.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=oe(gv,[["render",yv]]),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 i.openBlock(),i.createElementBlock("svg",bv,[...e[0]||(e[0]=[i.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 wv=oe(Cv,[["render",kv]]),Ev={},xv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sv(t,e){return i.openBlock(),i.createElementBlock("svg",xv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const Tv=oe(Ev,[["render",Sv]]),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 i.openBlock(),i.createElementBlock("svg",Nv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const Mv=oe(Av,[["render",Dv]]),Bv={},$v={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ov(t,e){return i.openBlock(),i.createElementBlock("svg",$v,[...e[0]||(e[0]=[i.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 Lv=oe(Bv,[["render",Ov]]),Iv={},Pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fv(t,e){return i.openBlock(),i.createElementBlock("svg",Pv,[...e[0]||(e[0]=[i.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 Vv=oe(Iv,[["render",Fv]]),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 i.openBlock(),i.createElementBlock("svg",zv,[...e[0]||(e[0]=[i.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 qv=oe(Rv,[["render",Uv]]),Hv={},jv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wv(t,e){return i.openBlock(),i.createElementBlock("svg",jv,[...e[0]||(e[0]=[i.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 Zv=oe(Hv,[["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 i.openBlock(),i.createElementBlock("svg",Gv,[...e[0]||(e[0]=[i.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),i.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 Jv=oe(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 i.openBlock(),i.createElementBlock("svg",Qv,[...e[0]||(e[0]=[i.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 t2=oe(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 i.openBlock(),i.createElementBlock("svg",o2,[...e[0]||(e[0]=[i.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 i2=oe(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 i.openBlock(),i.createElementBlock("svg",a2,[...e[0]||(e[0]=[i.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=oe(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 i.openBlock(),i.createElementBlock("svg",d2,[...e[0]||(e[0]=[i.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 p2=oe(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 i.openBlock(),i.createElementBlock("svg",h2,[...e[0]||(e[0]=[i.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 v2=oe(m2,[["render",g2]]),y2={},_2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C2(t,e){return i.openBlock(),i.createElementBlock("svg",_2,[...e[0]||(e[0]=[i.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=oe(y2,[["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 i.openBlock(),i.createElementBlock("svg",w2,[...e[0]||(e[0]=[i.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 x2=oe(k2,[["render",E2]]),S2={},T2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A2(t,e){return i.openBlock(),i.createElementBlock("svg",T2,[...e[0]||(e[0]=[i.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 N2=oe(S2,[["render",A2]]),D2={},M2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B2(t,e){return i.openBlock(),i.createElementBlock("svg",M2,[...e[0]||(e[0]=[i.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 $2=oe(D2,[["render",B2]]),O2={},L2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I2(t,e){return i.openBlock(),i.createElementBlock("svg",L2,[...e[0]||(e[0]=[i.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 P2=oe(O2,[["render",I2]]),F2={},V2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R2(t,e){return i.openBlock(),i.createElementBlock("svg",V2,[...e[0]||(e[0]=[i.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 z2=oe(F2,[["render",R2]]),U2={},q2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2(t,e){return i.openBlock(),i.createElementBlock("svg",q2,[...e[0]||(e[0]=[i.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 j2=oe(U2,[["render",H2]]),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 i.openBlock(),i.createElementBlock("svg",Z2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const G2=oe(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 i.openBlock(),i.createElementBlock("svg",J2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Q2=oe(Y2,[["render",X2]]),e3=i.defineComponent({name:"LoadingIcon"});const t3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n3(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",t3,[...e[0]||(e[0]=[i.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const o3=oe(e3,[["render",n3],["__scopeId","data-v-ad6da4a9"]]),r3={},i3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function s3(t,e){return i.openBlock(),i.createElementBlock("svg",i3,[...e[0]||(e[0]=[i.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 a3=oe(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 i.openBlock(),i.createElementBlock("svg",c3,[...e[0]||(e[0]=[i.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 d3=oe(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 i.openBlock(),i.createElementBlock("svg",p3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const h3=oe(f3,[["render",m3]]),g3={},v3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y3(t,e){return i.openBlock(),i.createElementBlock("svg",v3,[...e[0]||(e[0]=[i.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 _3=oe(g3,[["render",y3]]),C3={},b3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k3(t,e){return i.openBlock(),i.createElementBlock("svg",b3,[...e[0]||(e[0]=[i.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 w3=oe(C3,[["render",k3]]),E3={},x3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S3(t,e){return i.openBlock(),i.createElementBlock("svg",x3,[...e[0]||(e[0]=[i.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 T3=oe(E3,[["render",S3]]),A3={},N3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D3(t,e){return i.openBlock(),i.createElementBlock("svg",N3,[...e[0]||(e[0]=[i.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 M3=oe(A3,[["render",D3]]),B3={},$3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O3(t,e){return i.openBlock(),i.createElementBlock("svg",$3,[...e[0]||(e[0]=[i.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 L3=oe(B3,[["render",O3]]),I3={},P3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F3(t,e){return i.openBlock(),i.createElementBlock("svg",P3,[...e[0]||(e[0]=[i.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 V3=oe(I3,[["render",F3]]),R3={},z3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U3(t,e){return i.openBlock(),i.createElementBlock("svg",z3,[...e[0]||(e[0]=[i.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 q3=oe(R3,[["render",U3]]),H3={},j3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W3(t,e){return i.openBlock(),i.createElementBlock("svg",j3,[...e[0]||(e[0]=[i.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 Z3=oe(H3,[["render",W3]]),K3={},G3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y3(t,e){return i.openBlock(),i.createElementBlock("svg",G3,[...e[0]||(e[0]=[i.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 J3=oe(K3,[["render",Y3]]),X3={},Q3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e5(t,e){return i.openBlock(),i.createElementBlock("svg",Q3,[...e[0]||(e[0]=[i.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 t5=oe(X3,[["render",e5]]),n5={},o5={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r5(t,e){return i.openBlock(),i.createElementBlock("svg",o5,[...e[0]||(e[0]=[i.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 i5=oe(n5,[["render",r5]]),s5={},a5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l5(t,e){return i.openBlock(),i.createElementBlock("svg",a5,[...e[0]||(e[0]=[i.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 c5=oe(s5,[["render",l5]]),u5={},d5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f5(t,e){return i.openBlock(),i.createElementBlock("svg",d5,[...e[0]||(e[0]=[i.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 p5=oe(u5,[["render",f5]]),m5={},h5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g5(t,e){return i.openBlock(),i.createElementBlock("svg",h5,[...e[0]||(e[0]=[i.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 v5=oe(m5,[["render",g5]]),y5={},_5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C5(t,e){return i.openBlock(),i.createElementBlock("svg",_5,[...e[0]||(e[0]=[i.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 b5=oe(y5,[["render",C5]]),k5={},w5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E5(t,e){return i.openBlock(),i.createElementBlock("svg",w5,[...e[0]||(e[0]=[i.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 x5=oe(k5,[["render",E5]]),S5={},T5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A5(t,e){return i.openBlock(),i.createElementBlock("svg",T5,[...e[0]||(e[0]=[i.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 N5=oe(S5,[["render",A5]]),D5={},M5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B5(t,e){return i.openBlock(),i.createElementBlock("svg",M5,[...e[0]||(e[0]=[i.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 $5=oe(D5,[["render",B5]]),O5={},L5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I5(t,e){return i.openBlock(),i.createElementBlock("svg",L5,[...e[0]||(e[0]=[i.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 P5=oe(O5,[["render",I5]]),F5={},V5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R5(t,e){return i.openBlock(),i.createElementBlock("svg",V5,[...e[0]||(e[0]=[i.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 z5=oe(F5,[["render",R5]]),U5={},q5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H5(t,e){return i.openBlock(),i.createElementBlock("svg",q5,[...e[0]||(e[0]=[i.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 j5=oe(U5,[["render",H5]]),W5={},Z5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K5(t,e){return i.openBlock(),i.createElementBlock("svg",Z5,[...e[0]||(e[0]=[i.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 G5=oe(W5,[["render",K5]]),Y5={},J5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X5(t,e){return i.openBlock(),i.createElementBlock("svg",J5,[...e[0]||(e[0]=[i.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 Q5=oe(Y5,[["render",X5]]),ey={},ty={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ny(t,e){return i.openBlock(),i.createElementBlock("svg",ty,[...e[0]||(e[0]=[i.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 oy=oe(ey,[["render",ny]]),ry={},iy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sy(t,e){return i.openBlock(),i.createElementBlock("svg",iy,[...e[0]||(e[0]=[i.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 ay=oe(ry,[["render",sy]]),ly=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:t0,AccountCircle:i0,AccountTreeOutlineRounded:c0,AccountTreeRounded:p0,Add:v0,AddBoxOutlineRounded:b0,ArchiveOutlineRounded:x0,ArrowBackRounded:N0,ArrowDropDownRounded:$0,ArrowForwardRounded:P0,AssignmentOutlineRounded:z0,AttachFileRounded:j0,CalendarTodayOutlineRounded:G0,CancelRounded:Q0,ChatOutline:ov,CheckBoxOutlineBlank:av,CheckBoxOutlineBlankSharp:dv,CheckBoxOutlineRounded:hv,CheckSmallRounded:_v,ChecklistRounded:wv,ChevronLeft:Tv,ChevronRight:Mv,CloseRounded:Lv,ContactsOutlineRounded:Vv,ContentCopyOutline:qv,DeleteOutlineRounded:Zv,DownloadRounded:Jv,DragIndicator:t2,EditDocumentRounded:i2,EditOutline:c2,ErrorOutlineRounded:p2,FilterListRounded:v2,FlagRounded:b2,FlowsheetOutlineRounded:x2,GifBox:N2,GroupsOutline:$2,HomeOutlineRounded:P2,ImageRounded:z2,Info:j2,KeyboardArrowDown:G2,KeyboardArrowUp:Q2,Loading:o3,Lock:a3,LogoutRounded:d3,Menu:h3,MoreHoriz:_3,MoreTimeRounded:w3,MoreVert:T3,MountainFlagOutlineRounded:M3,PersonAddOutlineRounded:L3,PictureAsPdfRounded:V3,RadioButtonChecked:q3,RadioButtonCheckedOutline:Z3,RadioButtonUnchecked:J3,RemoveRounded:t5,SearchRounded:i5,SelectCheckBox:c5,SendRounded:p5,Settings:v5,SlideshowRounded:b5,Target:x5,TaskOutlineRounded:N5,TextSnippetRounded:$5,TimerOutline:P5,ViewComfyAltRounded:z5,ViewCompactAltRounded:j5,ViewTimelineRounded:G5,WarningOutlineRounded:Q5,WarningRounded:oy,WaterfallChartRounded:ay},Symbol.toStringTag,{value:"Module"})),cy={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},xa={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Gc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},uy={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Gc,...uy});const pp={ROUND:"round",ROUNDED:"rounded"},dy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},be=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:xa.MD}},setup(t){const e=t,n=i.computed(()=>ly[e.name]);return(o,r)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:i.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const fy=["type"],py={key:0,class:"ao-button__label"},ge=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>cy.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>xa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>pp.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.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}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",py,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(be,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,fy))}});function my(t){const e=i.ref(!1),n=i.ref(""),o=i.computed(()=>"value"in t.value?"value":"innerHTML"),r=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await i.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await i.nextTick(()=>{c(d,u)})};return i.watch(e,async c=>{await i.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:r,onUpdate:l,onDiscard:a}}const ft=i.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=i.ref(null),o=t,r=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=my(n),u=i.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=i.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;r("update:title",_)}),p=c(),m=async()=>{s.value&&a(!1)},h=()=>{r("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return i.watch(()=>o.isEditable,y=>{y||p()}),(y,C)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),i.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":i.unref(s),"ao-title--readonly":!i.unref(s)}],type:i.unref(s)?"text":null,value:i.unref(s)?t.title:null,tabindex:"0",onKeyup:i.withKeys(h,["enter"])},i.toHandlers(d.value),{onKeydown:i.withKeys(i.unref(p),["esc"])}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const hy={key:0,class:"ao-card-horiz__drag ao-card__drag"},gy={class:"ao-card-horiz__header"},vy={key:0,class:"ao-card-horiz__avatar"},yy={class:"ao-card-horiz__title-group"},_y={key:0,class:"ao-card-horiz__subtitle"},Cy={key:1,class:"ao-card-horiz__header"},by={key:1,class:"ao-card-horiz__body"},ky={key:2,class:"ao-card-horiz__footer"},wy={key:3,class:"ao-card-horiz__secondary"},mp=i.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=r=>{n("update:title",r)};return(r,s)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:i.withCtx(()=>[t.isDraggable?(i.openBlock(),i.createElementBlock("div",hy,[i.createVNode(be,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",gy,[t.icon?(i.openBlock(),i.createElementBlock("div",vy,[i.createVNode(be,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",yy,[i.createVNode(ft,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),i.renderSlot(r.$slots,"subtitle",{},()=>[t.subtitle?(i.openBlock(),i.createElementBlock("span",_y,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",Cy,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",by,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",ky,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",wy,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Oi=i.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=i.computed(()=>e.clickable?"button":"span"),o=i.computed(()=>n.value==="button"?{type:"button"}:{});return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.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:i.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),i.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>r.$emit("click",a))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.label)+" ",1),t.variant===i.unref(dy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(be,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):i.createCommentVNode("",!0)]),_:1},16)),t.closable?(i.openBlock(),i.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>r.$emit("close",a))},[i.createVNode(be,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const Li={todo:"todo",done:"done",archived:"archived"},Ey={months:"months",weeks:"weeks",days:"days"},xy={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},hp={BEFORE:"before",AFTER:"after"},gp={START:"start",end:"end"},vp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Ve={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var yp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(yp||{});const Sy={add:"add",remove:"remove",moved:"moved"};var _p=(t=>(t.HOURS="hours",t.DAYS="days",t))(_p||{});const No={project:"projectId",assignee:"assigneeId"};function Gs(t){"@babel/helpers - typeof";return Gs=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},Gs(t)}function Rn(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 Ke(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function gt(t){Ke(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Gs(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 Ty(t,e){Ke(2,arguments);var n=gt(t).getTime(),o=Rn(e);return new Date(n+o)}var Ay={};function Yi(){return Ay}function Ii(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 yd(t){Ke(1,arguments);var e=gt(t);return e.setHours(0,0,0,0),e}var Ny=864e5;function Dy(t,e){Ke(2,arguments);var n=yd(t),o=yd(e),r=n.getTime()-Ii(n),s=o.getTime()-Ii(o);return Math.round((r-s)/Ny)}function My(t,e){Ke(2,arguments);var n=gt(t),o=gt(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var Cp=6e4,bp=36e5;function By(t){return Ke(1,arguments),t instanceof Date||Gs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function kp(t){if(Ke(1,arguments),!By(t)&&typeof t!="number")return!1;var e=gt(t);return!isNaN(Number(e))}function lc(t,e){Ke(2,arguments);var n=Rn(e);return Ty(t,-n)}var $y=864e5;function Oy(t){Ke(1,arguments);var e=gt(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/$y)+1}function Ys(t){Ke(1,arguments);var e=1,n=gt(t),o=n.getUTCDay(),r=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function wp(t){Ke(1,arguments);var e=gt(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ys(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Ys(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Ly(t){Ke(1,arguments);var e=wp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Ys(n);return o}var Iy=6048e5;function Py(t){Ke(1,arguments);var e=gt(t),n=Ys(e).getTime()-Ly(e).getTime();return Math.round(n/Iy)+1}function Js(t,e){var n,o,r,s,a,l,c,u;Ke(1,arguments);var d=Yi(),f=Rn((n=(o=(r=(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&&r!==void 0?r: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=gt(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 Ep(t,e){var n,o,r,s,a,l,c,u;Ke(1,arguments);var d=gt(t),f=d.getUTCFullYear(),p=Yi(),m=Rn((n=(o=(r=(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&&r!==void 0?r: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=Js(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Js(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Fy(t,e){var n,o,r,s,a,l,c,u;Ke(1,arguments);var d=Yi(),f=Rn((n=(o=(r=(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&&r!==void 0?r: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=Ep(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Js(m,e);return h}var Vy=6048e5;function Ry(t,e){Ke(1,arguments);var n=gt(t),o=Js(n,e).getTime()-Fy(n,e).getTime();return Math.round(o/Vy)+1}function Ne(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var zy={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return Ne(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Ne(o+1,2)},d:function(e,n){return Ne(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 Ne(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Ne(e.getUTCHours(),n.length)},m:function(e,n){return Ne(e.getUTCMinutes(),n.length)},s:function(e,n){return Ne(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,o-3));return Ne(s,n.length)}};const Qn=zy;var fr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Uy={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return o.ordinalNumber(s,{unit:"year"})}return Qn.y(e,n)},Y:function(e,n,o,r){var s=Ep(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Ne(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Ne(a,n.length)},R:function(e,n){var o=wp(e);return Ne(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Ne(o,n.length)},Q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Ne(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Ne(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Qn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return Ne(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var s=Ry(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Ne(s,n.length)},I:function(e,n,o){var r=Py(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):Ne(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Qn.d(e,n)},D:function(e,n,o){var r=Oy(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Ne(r,n.length)},E:function(e,n,o){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,o,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Ne(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,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Ne(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 r=e.getUTCDay(),s=r===0?7:r;switch(n){case"i":return String(s);case"ii":return Ne(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),s=r/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 r=e.getUTCHours(),s;switch(r===12?s=fr.noon:r===0?s=fr.midnight:s=r/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 r=e.getUTCHours(),s;switch(r>=17?s=fr.evening:r>=12?s=fr.afternoon:r>=4?s=fr.morning:s=fr.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 r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Qn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Qn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):Ne(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):Ne(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Qn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Qn.s(e,n)},S:function(e,n){return Qn.S(e,n)},X:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Cd(a);case"XXXX":case"XX":return Do(a);case"XXXXX":case"XXX":default:return Do(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Cd(a);case"xxxx":case"xx":return Do(a);case"xxxxx":case"xxx":default:return Do(a,":")}},O:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+_d(a,":");case"OOOO":default:return"GMT"+Do(a,":")}},z:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+_d(a,":");case"zzzz":default:return"GMT"+Do(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return Ne(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return Ne(a,n.length)}};function _d(t,e){var n=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(s===0)return n+String(r);var a=e||"";return n+String(r)+a+Ne(s,2)}function Cd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Ne(Math.abs(t)/60,2)}return Do(t,e)}function Do(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=Ne(Math.floor(r/60),2),a=Ne(r%60,2);return o+s+n+a}const qy=Uy;var bd=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"})}},xp=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"})}},Hy=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return bd(e,n);var a;switch(r){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}}",bd(r,n)).replace("{{time}}",xp(s,n))},jy={p:xp,P:Hy};const Wy=jy;var Zy=["D","DD"],Ky=["YY","YYYY"];function Gy(t){return Zy.indexOf(t)!==-1}function Yy(t){return Ky.indexOf(t)!==-1}function kd(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 Jy={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"}},Xy=function(e,n,o){var r,s=Jy[e];return typeof s=="string"?r=s:n===1?r=s.one:r=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const Qy=Xy;function _l(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 e7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},t7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o7={date:_l({formats:e7,defaultWidth:"full"}),time:_l({formats:t7,defaultWidth:"full"}),dateTime:_l({formats:n7,defaultWidth:"full"})};const r7=o7;var i7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},s7=function(e,n,o,r){return i7[e]};const a7=s7;function ci(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return r[u]}}var l7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u7={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"]},d7={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"]},f7={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"}},p7={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"}},m7=function(e,n){var o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},h7={ordinalNumber:m7,era:ci({values:l7,defaultWidth:"wide"}),quarter:ci({values:c7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ci({values:u7,defaultWidth:"wide"}),day:ci({values:d7,defaultWidth:"wide"}),dayPeriod:ci({values:f7,defaultWidth:"wide",formattingValues:p7,defaultFormattingWidth:"wide"})};const g7=h7;function ui(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?y7(l,function(f){return f.test(a)}):v7(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 v7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function y7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function _7(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 r=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(r.length);return{value:a,rest:l}}}var C7=/^(\d+)(th|st|nd|rd)?/i,b7=/\d+/i,k7={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},w7={any:[/^b/i,/^(a|c)/i]},E7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},x7={any:[/1/i,/2/i,/3/i,/4/i]},S7={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},T7={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]},A7={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},N7={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]},D7={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},M7={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}},B7={ordinalNumber:_7({matchPattern:C7,parsePattern:b7,valueCallback:function(e){return parseInt(e,10)}}),era:ui({matchPatterns:k7,defaultMatchWidth:"wide",parsePatterns:w7,defaultParseWidth:"any"}),quarter:ui({matchPatterns:E7,defaultMatchWidth:"wide",parsePatterns:x7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ui({matchPatterns:S7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),day:ui({matchPatterns:A7,defaultMatchWidth:"wide",parsePatterns:N7,defaultParseWidth:"any"}),dayPeriod:ui({matchPatterns:D7,defaultMatchWidth:"any",parsePatterns:M7,defaultParseWidth:"any"})};const $7=B7;var O7={code:"en-US",formatDistance:Qy,formatLong:r7,formatRelative:a7,localize:g7,match:$7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Sp=O7;var L7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P7=/^'([^]*?)'?$/,F7=/''/g,V7=/[a-zA-Z]/;function Tp(t,e,n){var o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k;Ke(2,arguments);var w=String(e),b=Yi(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:Sp,T=Rn((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:b.firstWeekContainsDate)!==null&&a!==void 0?a:(f=b.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=Rn((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:b.weekStartsOn)!==null&&h!==void 0?h:(_=b.locale)===null||_===void 0||(k=_.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&m!==void 0?m:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var N=gt(t);if(!kp(N))throw new RangeError("Invalid time value");var L=Ii(N),A=lc(N,L),D={firstWeekContainsDate:T,weekStartsOn:S,locale:E,_originalDate:N},M=w.match(I7).map(function(I){var P=I[0];if(P==="p"||P==="P"){var j=Wy[P];return j(I,E.formatLong)}return I}).join("").match(L7).map(function(I){if(I==="''")return"'";var P=I[0];if(P==="'")return R7(I);var j=qy[P];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Yy(I)&&kd(I,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Gy(I)&&kd(I,e,String(t)),j(A,I,E.localize,D);if(P.match(V7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return I}).join("");return M}function R7(t){var e=t.match(P7);return e?e[1].replace(F7,"'"):t}function z7(t,e,n){var o,r,s,a,l,c,u,d,f,p;Ke(2,arguments);var m=gt(t),h=gt(e),g=Yi(),y=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:Sp,C=Rn((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=Dy(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 k=lc(m,Ii(m)),w=lc(h,Ii(h)),b=y.formatRelative(_,k,w,{locale:y,weekStartsOn:C});return Tp(m,b,{locale:y,weekStartsOn:C})}function Pi(t,e){var n;Ke(1,arguments);var o=Rn((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 r=j7(t),s;if(r.date){var a=W7(r.date,o);s=Z7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=K7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=G7(r.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 Es={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},U7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,q7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,H7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function j7(t){var e={},n=t.split(Es.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],Es.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Es.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=Es.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function W7(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 r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function Z7(t,e){if(e===null)return new Date(NaN);var n=t.match(U7);if(!n)return new Date(NaN);var o=!!n[4],r=di(n[1]),s=di(n[2])-1,a=di(n[3]),l=di(n[4]),c=di(n[5])-1;if(o)return e_(e,l,c)?Y7(e,l,c):new Date(NaN);var u=new Date(0);return!X7(e,s,a)||!Q7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function di(t){return t?parseInt(t):1}function K7(t){var e=t.match(q7);if(!e)return NaN;var n=Cl(e[1]),o=Cl(e[2]),r=Cl(e[3]);return t_(n,o,r)?n*bp+o*Cp+r*1e3:NaN}function Cl(t){return t&&parseFloat(t.replace(",","."))||0}function G7(t){if(t==="Z")return 0;var e=t.match(H7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return n_(o,r)?n*(o*bp+r*Cp):NaN}function Y7(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,s=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}var J7=[31,null,31,30,31,30,31,31,30,31,30,31];function Ap(t){return t%400===0||t%4===0&&t%100!==0}function X7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(J7[e]||(Ap(t)?29:28))}function Q7(t,e){return e>=1&&e<=(Ap(t)?366:365)}function e_(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function t_(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function n_(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 o_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r_(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var r=[null];r.push.apply(r,arguments);var s=Function.bind.apply(e,r);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 r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var tt={},Np={},fi={},Ji={},Ur={},Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.lexoHelper=void 0;Sa.lexoHelper={arrayCopy:i_};function i_(t,e,n,o,r){let s=o;const a=e+r;for(let l=e;l<a;l++)n[s]=t[l],++s}var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});class s_{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}}Xi.default=s_;Object.defineProperty(Ur,"__esModule",{value:!0});Ur.LexoInteger=void 0;const xs=Sa,a_=Xi;class he{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-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 he.make(n,r,s)}static zero(e){return new he(e,0,he.ZERO_MAG)}static one(e){return he.make(e,1,he.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return he.zero(e);if(r===o.length)return new he(e,n,o);const s=new Array(r).fill(0);return xs.lexoHelper.arrayCopy(o,0,s,0,r),new he(e,n,s)}static add(e,n,o){const r=Math.max(n.length,o.length),s=new Array(r).fill(0);let a=0;for(let l=0;l<r;++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 he.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 r=he.complement(e,o,n.length),s=he.add(e,n,r);return s[s.length-1]=0,he.add(e,s,he.ONE_MAG)}static multiply(e,n,o){const r=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(r[l]+=n[s]*o[a];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)r[s]=e.getBase()-1-n[s];return r}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=he.add(this.sys,this.mag,e.mag);return he.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=he.compare(this.mag,e.mag);return n===0?he.zero(this.sys):n<0?he.make(this.sys,this.sign===-1?1:-1,he.subtract(this.sys,e.mag,this.mag)):he.make(this.sys,this.sign===-1?-1:1,he.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?he.make(this.sys,1,e.mag):he.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?he.make(this.sys,1,this.mag):he.make(this.sys,-1,this.mag);const n=he.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?he.make(this.sys,1,n):he.make(this.sys,-1,n)}negate(){return this.isZero()?this:he.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),he.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return he.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return xs.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),he.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return he.make(this.sys,this.sign,he.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=he.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?he.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 a_.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const s=n[r];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")}}Ur.LexoInteger=he;he.ZERO_MAG=[0];he.ONE_MAG=[1];he.NEGATIVE_SIGN=-1;he.ZERO_SIGN=0;he.POSITIVE_SIGN=1;Object.defineProperty(Ji,"__esModule",{value:!0});Ji.LexoDecimal=void 0;const pi=Ur,l_=Xi;class Pt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Pt.make(pi.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 Pt.make(pi.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Pt.make(pi.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Pt.make(e,0)}static make(e,n){if(e.isZero())return new Pt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const r=e.shiftRight(o),s=n-o;return new Pt(r,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.subtract(r),o)}multiply(e){return Pt.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(pi.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 r=this.mag.shiftRight(o);return n&&(r=r.add(pi.LexoInteger.one(r.getSystem()))),Pt.make(r,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 l_.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&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)),r&&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()}}Ji.LexoDecimal=Pt;var Ss={},wd;function Dp(){if(wd)return Ss;wd=1,Object.defineProperty(Ss,"__esModule",{value:!0});const t=Ur,e=Bp();class n{constructor(r){this.value=t.LexoInteger.parse(r,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(r){const s=t.LexoInteger.parse(r,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: "+r)}static resolve(r){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}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(r){return this===r?!0:r?this.value.equals(r.value):!1}}return Ss.default=n,Ss}var Yc={},Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem10=void 0;class c_{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)}}Ta.LexoNumeralSystem10=c_;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.LexoNumeralSystem36=void 0;class u_{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]}}Aa.LexoNumeralSystem36=u_;var Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.LexoNumeralSystem64=void 0;class d_{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]}}Na.LexoNumeralSystem64=d_;(function(t){var e=bt&&bt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=bt&&bt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Mp,t),n(Ta,t),n(Aa,t),n(Na,t)})(Yc);var Ed;function Bp(){if(Ed)return fi;Ed=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.LexoRank=void 0;const t=Ji,e=Dp(),n=Xi,o=Yc;class r{constructor(a,l){this.value=a.format()+"|"+r.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",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(e.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const a=r.min();return a.between(r.max(a.bucket))}static max(a=e.default.BUCKET_0){return r.from(a,r.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?r.from(a,r.INITIAL_MIN_DECIMAL):r.from(a,r.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 r.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return r.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 r.checkMid(a,l,y);if(y.compareTo(f)>0)break;h=g,c=y}let p=r.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],r.NUMERAL_SYSTEM);return new r(c,u)}static from(a,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(a,l)}static middleInternal(a,l,c,u){const d=r.mid(c,u);return r.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?r.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(r.NUMERAL_SYSTEM.getRadixPointChar());const d=r.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(r.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 r(this.bucket,r.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(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 r(this.bucket,r.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 r(this.bucket,r.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.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 fi.LexoRank=r,fi}(function(t){var e=bt&&bt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=bt&&bt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Bp(),t),n(Dp(),t),n(Ji,t),n(Ur,t)})(Np);(function(t){var e=bt&&bt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=bt&&bt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Np,t),n(Yc,t)})(tt);const bi=60,f_=8,xd=bi*f_;function Da(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/xd),r=Math.floor(t%xd/bi);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%bi;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/bi),r=t%bi;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function $p(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 p_(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 m_(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?$p(n.milestones):0;return e+o},0))??0}function h_(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Qi(t,e){if(t.moved)return Dr(e,t.moved.newIndex)}function Dr(t,e){if(e===0)if(t.length>1){const n=t[e+1];return tt.LexoRank.parse(n.rank).genPrev().format()}else return tt.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return tt.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return tt.LexoRank.parse(o.rank).between(tt.LexoRank.parse(n.rank)).format()}}function es(t){if(t.length===0)return tt.LexoRank.middle().format();const e=t[0];return tt.LexoRank.parse(e.rank).genPrev().format()}function Ma(t,e="dd/MM/yyyy"){if(!t)return"";const n=Pi(t);return kp(n)?Tp(n,e):""}function Jc(t,e){return t.status.id===e.id}function g_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Jc(n,e))}function v_(t,e){return{...t,status:g_(t,e)?Li.done:Li.todo}}const Op=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function y_(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${r}, ${s}, ${e})`}function __(t,e=.15){var n;if(t.startsWith("#"))return y_(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(r=>r.trim());if(o&&o.length>=3){const[r,s,a]=o;return`rgba(${r}, ${s}, ${a}, ${e})`}}return t}function Lp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Sd(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:Lp(r)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(r=>r[1]);return Array.from(new Set(n.filter(r=>o.includes(r.name)).map(r=>r.id)))}const C_=["title"],b_={key:0,className:"ao-avatar__initials"},k_=["src"],jn=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:xa.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=h_(n.userName),a=l=>{o("close",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",{role:"img",class:i.normalizeClass(r.value),title:t.userName},[t.avatarUrl?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",b_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,k_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(ge,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:i.withModifiers(a,["stop"])},null,8,["color"])):i.createCommentVNode("",!0)],10,C_))}});const w_={class:"ao-card-template__subitems"},E_={class:"ao-card-template__subitem"},x_={class:"ao-card-template__subitem-number"},S_={class:"ao-card-template__subitem"},T_={class:"ao-card-template__subitem"},A_={class:"ao-card-template__body"},N_={class:"ao-card-template__col ao-card-template__col--phases"},D_={class:"ao-card-template__col-title"},M_={class:"ao-card-template__col-label"},B_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},$_={class:"ao-card-template__footer"},O_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},L_={class:"ao-card-template__col-title"},I_={class:"ao-card-template__col-label"},P_={class:"ao-card-template__col-body"},F_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},V_={class:"ao-card-template__col-title"},R_={class:"ao-card-template__col-label"},z_={class:"ao-card-template__col-body"},U_={class:"ao-card-template-item__secondary"},bl=5,q_=i.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,r=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=i.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,bl))??[]}),l=i.computed(()=>n.phases&&n.phases.length>bl?n.phases.length-bl:0);return(c,u)=>(i.openBlock(),i.createBlock(mp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",w_,[i.createElementVNode("li",E_,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",x_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",S_,[i.createVNode(be,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",T_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",A_,[i.createElementVNode("div",N_,[i.createElementVNode("div",D_,[i.createVNode(be,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",M_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",B_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Oi,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Oi,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]),secondary:i.withCtx(()=>[i.createElementVNode("div",U_,[i.createVNode(ge,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=i.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",$_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",O_,[i.createElementVNode("div",L_,[i.createElementVNode("span",I_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",P_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",F_,[i.createElementVNode("div",V_,[i.createElementVNode("span",R_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",z_,[i.createVNode(jn,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const H_={class:"ao-page-header"},j_={class:"ao-page-header-main"},W_={key:0,class:"ao-page-header-secondary"},ts=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",H_,[i.createElementVNode("div",j_,[t.canGoBack?(i.openBlock(),i.createBlock(ge,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(i.openBlock(),i.createElementBlock("div",W_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const Z_=["type"],K_={key:0,class:"ao-button-card__label"},vo=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Gc.BLACK},size:{default:()=>xa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>pp.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",K_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(be,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,Z_))}});const G_={class:"ao-card-template-item__footer"},Y_={key:0,class:"ao-card-template-item__subitem"},J_={class:"ao-card-template-item__subitem-number"},X_={class:"ao-card-template-item__secondary"},Xc=i.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)},r=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(i.openBlock(),i.createBlock(mp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",G_,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(r,u=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:u},[l.$props[u]?(i.openBlock(),i.createElementBlock("li",Y_,[i.createVNode(be,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",J_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",X_,[i.createVNode(ge,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const Q_=i.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=i.computed(()=>{var r;return(r=e.milestones)==null?void 0:r.length}),o=i.computed(()=>e.milestones?$p(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Xc,i.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},r.$attrs),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),eC=i.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Xc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),tC={class:"ao-list__footer"},nC=i.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{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=Qi(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(go),{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:i.withCtx(()=>[i.createVNode(ft,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(eC,{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:i.withCtx(()=>[i.createElementVNode("div",tC,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),oC=i.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Xc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),rC={class:"ao-list__footer"},iC=i.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=Qi(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(go),{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:i.withCtx(()=>[i.createVNode(ft,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(oC,{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:i.withCtx(()=>[i.createElementVNode("div",rC,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),sC={class:"ao-modal"},aC={key:0,class:"ao-modal__header"},lC={class:"ao-modal__header-meta"},cC={class:"ao-modal__title-group"},uC={class:"ao-modal__body"},dC={key:1,class:"ao-modal__footer"},Ba=i.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[i.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),i.createElementVNode("div",sC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",aC,[i.createElementVNode("div",lC,[i.createVNode(ge,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",cC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",uC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",dC,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Fi=Math.min,Ft=Math.max,Xs=Math.round,Ts=Math.floor,uo=t=>({x:t,y:t}),fC={left:"right",right:"left",bottom:"top",top:"bottom"},pC={start:"end",end:"start"};function Qc(t,e){return typeof t=="function"?t(e):t}function Mr(t){return t.split("-")[0]}function $a(t){return t.split("-")[1]}function mC(t){return t==="x"?"y":"x"}function Ip(t){return t==="y"?"height":"width"}function eu(t){return["top","bottom"].includes(Mr(t))?"y":"x"}function Pp(t){return mC(eu(t))}function hC(t,e,n){n===void 0&&(n=!1);const o=$a(t),r=Pp(t),s=Ip(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Qs(a)),[a,Qs(a)]}function gC(t){const e=Qs(t);return[cc(t),e,cc(e)]}function cc(t){return t.replace(/start|end/g,e=>pC[e])}function vC(t,e,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}function yC(t,e,n,o){const r=$a(t);let s=vC(Mr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(cc)))),s}function Qs(t){return t.replace(/left|right|bottom|top/g,e=>fC[e])}function _C(t){return{top:0,right:0,bottom:0,left:0,...t}}function CC(t){return typeof t!="number"?_C(t):{top:t,right:t,bottom:t,left:t}}function ea(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Td(t,e,n){let{reference:o,floating:r}=t;const s=eu(e),a=Pp(e),l=Ip(a),c=Mr(e),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let m;switch(c){case"top":m={x:d,y:o.y-r.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-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch($a(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const bC=async(t,e,n)=>{const{placement:o="bottom",strategy:r="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:r}),{x:d,y:f}=Td(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:k,reset:w}=await C({x:d,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=v??d,f=_??f,m={...m,[y]:{...m[y],...k}},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:r}):w.rects),{x:d,y:f}=Td(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:m}};async function Fp(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Qc(e,t),h=CC(m),y=l[p?f==="floating"?"reference":"floating":f],C=ea(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:r}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),k=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=ea(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:_,strategy:c}):v);return{top:(C.top-w.top+h.top)/k.y,bottom:(w.bottom-C.bottom+h.bottom)/k.y,left:(C.left-w.left+h.left)/k.x,right:(w.right-C.right+h.right)/k.x}}const kC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,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}=Qc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Mr(r),v=Mr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=p||(v||!g?[Qs(l)]:gC(l));!p&&h!=="none"&&k.push(...yC(l,g,h,_));const w=[l,...k],b=await Fp(e,y),E=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[C]),f){const A=hC(r,a,_);E.push(b[A[0]],b[A[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(A=>A<=0)){var S,N;const A=(((S=s.flip)==null?void 0:S.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:T},reset:{placement:D}};let M=(N=T.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!M)switch(m){case"bestFit":{var L;const I=(L=T.map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,V)=>j+V,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:L[0];I&&(M=I);break}case"initialPlacement":M=l;break}if(r!==M)return{reset:{placement:M}}}return{}}}},wC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:s}=e,{apply:a=()=>{},...l}=Qc(t,e),c=await Fp(e,l),u=Mr(n),d=$a(n),f=eu(n)==="y",{width:p,height:m}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(r.isRTL==null?void 0:r.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,k=C;if(f){const b=p-c.left-c.right;k=d||v?Fi(C,b):b}else{const b=m-c.top-c.bottom;_=d||v?Fi(y,b):b}if(v&&!d){const b=Ft(c.left,0),E=Ft(c.right,0),T=Ft(c.top,0),S=Ft(c.bottom,0);f?k=p-2*(b!==0||E!==0?b+E:Ft(c.left,c.right)):_=m-2*(T!==0||S!==0?T+S:Ft(c.top,c.bottom))}await a({...e,availableWidth:k,availableHeight:_});const w=await r.getDimensions(s.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function fo(t){return Vp(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Wn(t){var e;return(e=(Vp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Vp(t){return t instanceof Node||t instanceof Bt(t).Node}function zn(t){return t instanceof Element||t instanceof Bt(t).Element}function Cn(t){return t instanceof HTMLElement||t instanceof Bt(t).HTMLElement}function Ad(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}function ns(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function EC(t){return["table","td","th"].includes(fo(t))}function tu(t){const e=nu(),n=Ht(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 xC(t){let e=Br(t);for(;Cn(e)&&!Oa(e);){if(tu(e))return e;e=Br(e)}return null}function nu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oa(t){return["html","body","#document"].includes(fo(t))}function Ht(t){return Bt(t).getComputedStyle(t)}function La(t){return zn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Br(t){if(fo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ad(t)&&t.host||Wn(t);return Ad(e)?e.host:e}function Rp(t){const e=Br(t);return Oa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Cn(e)&&ns(e)?e:Rp(e)}function Vi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Rp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Bt(r);return s?e.concat(a,a.visualViewport||[],ns(r)?r:[],a.frameElement&&n?Vi(a.frameElement):[]):e.concat(r,Vi(r))}function zp(t){const e=Ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Cn(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Xs(n)!==s||Xs(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function ou(t){return zn(t)?t:t.contextElement}function kr(t){const e=ou(t);if(!Cn(e))return uo(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=zp(e);let a=(s?Xs(n.width):n.width)/o,l=(s?Xs(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const SC=uo(0);function Up(t){const e=Bt(t);return!nu()||!e.visualViewport?SC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function TC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Bt(t)?!1:e}function Ho(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=ou(t);let a=uo(1);e&&(o?zn(o)&&(a=kr(o)):a=kr(t));const l=TC(s,n,o)?Up(s):uo(0);let c=(r.left+l.x)/a.x,u=(r.top+l.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const p=Bt(s),m=o&&zn(o)?Bt(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=kr(h),y=h.getBoundingClientRect(),C=Ht(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=Bt(h).frameElement}}return ea({width:d,height:f,x:c,y:u})}function AC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=Cn(n),s=Wn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=uo(1);const c=uo(0);if((r||!r&&o!=="fixed")&&((fo(n)!=="body"||ns(s))&&(a=La(n)),Cn(n))){const u=Ho(n);l=kr(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 NC(t){return Array.from(t.getClientRects())}function qp(t){return Ho(Wn(t)).left+La(t).scrollLeft}function DC(t){const e=Wn(t),n=La(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+qp(t);const l=-n.scrollTop;return Ht(o).direction==="rtl"&&(a+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function MC(t,e){const n=Bt(t),o=Wn(t),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;const u=nu();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function BC(t,e){const n=Ho(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=Cn(t)?kr(t):uo(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=r*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Nd(t,e,n){let o;if(e==="viewport")o=MC(t,n);else if(e==="document")o=DC(Wn(t));else if(zn(e))o=BC(e,n);else{const r=Up(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return ea(o)}function Hp(t,e){const n=Br(t);return n===e||!zn(n)||Oa(n)?!1:Ht(n).position==="fixed"||Hp(n,e)}function $C(t,e){const n=e.get(t);if(n)return n;let o=Vi(t,[],!1).filter(l=>zn(l)&&fo(l)!=="body"),r=null;const s=Ht(t).position==="fixed";let a=s?Br(t):t;for(;zn(a)&&!Oa(a);){const l=Ht(a),c=tu(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ns(a)&&!c&&Hp(t,a))?o=o.filter(d=>d!==a):r=l,a=Br(a)}return e.set(t,o),o}function OC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?$C(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Nd(e,d,r);return u.top=Ft(f.top,u.top),u.right=Fi(f.right,u.right),u.bottom=Fi(f.bottom,u.bottom),u.left=Ft(f.left,u.left),u},Nd(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function LC(t){return zp(t)}function IC(t,e,n){const o=Cn(e),r=Wn(e),s=n==="fixed",a=Ho(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=uo(0);if(o||!o&&!s)if((fo(e)!=="body"||ns(r))&&(l=La(e)),o){const u=Ho(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=qp(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Dd(t,e){return!Cn(t)||Ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function jp(t,e){const n=Bt(t);if(!Cn(t))return n;let o=Dd(t,e);for(;o&&EC(o)&&Ht(o).position==="static";)o=Dd(o,e);return o&&(fo(o)==="html"||fo(o)==="body"&&Ht(o).position==="static"&&!tu(o))?n:o||xC(t)||n}const PC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||jp,s=this.getDimensions;return{reference:IC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function FC(t){return Ht(t).direction==="rtl"}const VC={convertOffsetParentRelativeRectToViewportRelativeRect:AC,getDocumentElement:Wn,getClippingRect:OC,getOffsetParent:jp,getElementRects:PC,getClientRects:NC,getDimensions:LC,getScale:kr,isElement:zn,isRTL:FC};function RC(t,e){let n=null,o;const r=Wn(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(r.clientWidth-(u+f)),g=Ts(r.clientHeight-(d+p)),y=Ts(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Ft(0,Fi(1,c))||1};let _=!0;function k(w){const b=w[0].intersectionRatio;if(b!==c){if(!_)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(k,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(k,v)}n.observe(t)}return a(!0),s}function zC(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=ou(t),d=r||s?[...u?Vi(u):[],...Vi(e)]:[];d.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?RC(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?Ho(t):null;c&&y();function y(){const C=Ho(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=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const UC=(t,e,n)=>{const o=new Map,r={platform:VC,...n},s={...r.platform,_c:o};return bC(t,e,{...r,platform:s})},qC=t=>{const e=i.ref(!1),n=i.ref(),o=i.ref(),r=i.ref(0);function s(){const f=i.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=i.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"),r.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=zC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||UC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[kC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),wC({apply({availableWidth:f,availableHeight:p,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${r.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`})})}i.onMounted(()=>{u()}),i.onBeforeUnmount(()=>{l.value()}),i.onUnmounted(()=>{l.value()})};function fn(t){return[null,void 0].indexOf(t)!==-1}function HC(t,e,n){const{object:o,valueProp:r,mode:s}=i.toRefs(t),a=i.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||fn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>fn(f)?s.value==="single"?{}:[]:f;return{update:c}}function jC(t,e){const{value:n,modelValue:o,mode:r,valueProp:s}=i.toRefs(t),a=i.ref(r.value!=="single"?[]:{}),l=i.computed(()=>o&&o.value!==void 0?o.value:n.value),c=i.computed(()=>r.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=i.computed(()=>r.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 WC(t,e,n){const{regex:o}=i.toRefs(t),r=i.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=i.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,r)};return i.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,r)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function ZC(t,e,n){const{groupSelect:o,mode:r,groups:s,disabledProp:a}=i.toRefs(t),l=i.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(r.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function kl(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 KC(t){return Object.prototype.toString.call(t)==="[object Object]"}function GC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function YC(t,e,n){const{options:o,mode:r,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:k,clearOnSelect:w,valueProp:b,allowAbsent:E,groupLabel:T,canDeselect:S,max:N,strict:L,closeOnSelect:A,closeOnDeselect:D,groups:M,reverse:I,infinite:P,groupOptions:j,groupHideEmpty:V,groupSelect:U,onCreate:F,disabledProp:Q,searchStart:ee,searchFilter:me}=i.toRefs(t),se=i.getCurrentInstance().proxy,ae=n.iv,z=n.ev,re=n.search,_e=n.clearSearch,De=n.update,Je=n.pointer,H=n.setPointer,te=n.clearPointer,Le=n.focus,le=n.deactivate,qe=n.close,$=n.localize,G=i.ref([]),de=i.ref([]),ke=i.ref(!1),Me=i.ref(null),ve=i.ref(P.value&&a.value===-1?10:a.value),cn=i.computed(()=>c.value||u.value||!1),Tn=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),He=i.computed(()=>{if(M.value){let B=Zt.value||[],Y=[];return B.forEach(Ce=>{oi(Ce[j.value]).forEach(Pe=>{Y.push(Object.assign({},Pe,Ce[Q.value]?{[Q.value]:!0}:{}))})}),Y}else{let B=oi(de.value||[]);return G.value.length&&(B=B.concat(G.value)),B}}),vt=i.computed(()=>{let B=He.value;return I.value&&(B=B.reverse()),Nn.value.length&&(B=Nn.value.concat(B)),ni(B)}),ct=i.computed(()=>{let B=vt.value;return ve.value>0&&(B=B.slice(0,ve.value)),B}),Zt=i.computed(()=>{if(!M.value)return[];let B=[],Y=de.value||[];return G.value.length&&B.push({[T.value]:" ",[j.value]:[...G.value],__CREATE__:!0}),B.concat(Y)}),An=i.computed(()=>{let B=[...Zt.value].map(Y=>({...Y}));return Nn.value.length&&(B[0]&&B[0].__CREATE__?B[0][j.value]=[...Nn.value,...B[0][j.value]]:B=[{[T.value]:" ",[j.value]:[...Nn.value],__CREATE__:!0}].concat(B)),B}),Kn=i.computed(()=>{if(!M.value)return[];let B=An.value;return Eo((B||[]).map((Y,Ce)=>{const Pe=oi(Y[j.value]);return{...Y,index:Ce,group:!0,[j.value]:ni(Pe,!1).map(Dn=>Object.assign({},Dn,Y[Q.value]?{[Q.value]:!0}:{})),__VISIBLE__:ni(Pe).map(Dn=>Object.assign({},Dn,Y[Q.value]?{[Q.value]:!0}:{}))}}))}),ko=i.computed(()=>{switch(r.value){case"single":return!fn(ae.value[b.value]);case"multiple":case"tags":return!fn(ae.value)&&ae.value.length>0}}),Gn=i.computed(()=>m!==void 0&&m.value!==void 0?m.value(ae.value,se):ae.value&&ae.value.length>1?`${ae.value.length} options selected`:"1 option selected"),sr=i.computed(()=>!He.value.length&&!ke.value&&!Nn.value.length),ar=i.computed(()=>He.value.length>0&&ct.value.length==0&&(re.value&&M.value||!M.value)),Nn=i.computed(()=>cn.value===!1||!re.value?[]:ys(re.value)!==-1?[]:[{[b.value]:re.value,[un.value[0]]:re.value,[d.value]:re.value,__CREATE__:!0}]),un=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),hs=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Xr=i.computed(()=>g.value||ke.value),Kt=B=>{switch(typeof B!="object"&&(B=At(B)),r.value){case"single":De(B);break;case"multiple":case"tags":De(ae.value.concat(B));break}e.emit("select",xt(B),B,se)},Et=B=>{switch(typeof B!="object"&&(B=At(B)),r.value){case"single":Qr();break;case"tags":case"multiple":De(Array.isArray(B)?ae.value.filter(Y=>B.map(Ce=>Ce[b.value]).indexOf(Y[b.value])===-1):ae.value.filter(Y=>Y[b.value]!=B[b.value]));break}e.emit("deselect",xt(B),B,se)},xt=B=>h.value?B:B[b.value],lr=B=>{Et(B)},gs=(B,Y)=>{if(Y.button!==0){Y.preventDefault();return}lr(B)},Qr=()=>{De(hs.value),e.emit("clear",se)},St=B=>{if(B.group!==void 0)return r.value==="single"?!1:vs(B[j.value])&&B[j.value].length;switch(r.value){case"single":return!fn(ae.value)&&ae.value[b.value]==B[b.value];case"tags":case"multiple":return!fn(ae.value)&&ae.value.map(Y=>Y[b.value]).indexOf(B[b.value])!==-1}},cr=B=>B[Q.value]===!0,Yn=()=>N===void 0||N.value===-1||!ko.value&&N.value>0?!1:ae.value.length>=N.value,ur=B=>{if(!cr(B)){if(F&&F.value&&!St(B)&&B.__CREATE__&&(B={...B},delete B.__CREATE__,B=F.value(B,se),B instanceof Promise)){ke.value=!0,B.then(Y=>{ke.value=!1,Tt(Y)});return}Tt(B)}},Tt=B=>{switch(B.__CREATE__&&(B={...B},delete B.__CREATE__),r.value){case"single":if(B&&St(B)){S.value&&Et(B),D.value&&(te(),qe());return}B&&wo(B),w.value&&_e(),A.value&&(te(),qe()),B&&Kt(B);break;case"multiple":if(B&&St(B)){Et(B),D.value&&(te(),qe());return}if(Yn()){e.emit("max",se);return}B&&(wo(B),Kt(B)),w.value&&_e(),l.value&&te(),A.value&&qe();break;case"tags":if(B&&St(B)){Et(B),D.value&&(te(),qe());return}if(Yn()){e.emit("max",se);return}B&&wo(B),w.value&&_e(),B&&Kt(B),l.value&&te(),A.value&&qe();break}A.value||Le()},Jn=B=>{if(!(cr(B)||r.value==="single"||!U.value)){switch(r.value){case"multiple":case"tags":ml(B[j.value])?Et(B[j.value]):Kt(B[j.value].filter(Y=>ae.value.map(Ce=>Ce[b.value]).indexOf(Y[b.value])===-1).filter(Y=>!Y[Q.value]).filter((Y,Ce)=>ae.value.length+1+Ce<=N.value||N.value===-1)),l.value&&Je.value&&H(Kn.value.filter(Y=>!Y[Q.value])[Je.value.index]);break}A.value&&le()}},wo=B=>{At(B[b.value])===void 0&&cn.value&&(e.emit("tag",B[b.value],se),e.emit("option",B[b.value],se),e.emit("create",B[b.value],se),Tn.value&&hl(B),_e())},ei=()=>{r.value!=="single"&&Kt(ct.value.filter(B=>!B.disabled&&!St(B)))},ml=B=>B.find(Y=>!St(Y)&&!Y[Q.value])===void 0,vs=B=>B.find(Y=>!St(Y))===void 0,At=B=>He.value[He.value.map(Y=>String(Y[b.value])).indexOf(String(B))],ys=B=>He.value.findIndex(Y=>un.value.some(Ce=>(parseInt(Y[Ce])==Y[Ce]?parseInt(Y[Ce]):Y[Ce])===(parseInt(B)==B?parseInt(B):B))),ti=B=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&St(B),hl=B=>{G.value.push(B)},Eo=B=>V.value?B.filter(Y=>re.value?Y.__VISIBLE__.length:Y[j.value].length):B.filter(Y=>re.value?Y.__VISIBLE__.length:!0),ni=(B,Y=!0)=>{let Ce=B;if(re.value&&_.value){let Pe=me.value;Pe||(Pe=(Dn,Yt,si)=>un.value.some(Mn=>{let Cs=kl($(Dn[Mn]),L.value);return ee.value?Cs.startsWith(kl(Yt,L.value)):Cs.indexOf(kl(Yt,L.value))!==-1})),Ce=Ce.filter(Dn=>Pe(Dn,re.value,se))}return l.value&&Y&&(Ce=Ce.filter(Pe=>!ti(Pe))),Ce},oi=B=>{let Y=B;return KC(Y)&&(Y=Object.keys(Y).map(Ce=>{let Pe=Y[Ce];return{[b.value]:Ce,[un.value[0]]:Pe,[d.value]:Pe}})),Y=Y.map(Ce=>typeof Ce=="object"?Ce:{[b.value]:Ce,[un.value[0]]:Ce,[d.value]:Ce}),Y},Be=()=>{fn(z.value)||(ae.value=Xn(z.value))},Gt=B=>(ke.value=!0,new Promise((Y,Ce)=>{o.value(re.value,se).then(Pe=>{de.value=Pe||[],typeof B=="function"&&B(Pe),ke.value=!1}).catch(Pe=>{console.error(Pe),de.value=[],ke.value=!1}).finally(()=>{Y()})})),ri=()=>{if(ko.value)if(r.value==="single"){let B=At(ae.value[b.value]);if(B!==void 0){let Y=B[d.value];ae.value[d.value]=Y,h.value&&(z.value[d.value]=Y)}}else ae.value.forEach((B,Y)=>{let Ce=At(ae.value[Y][b.value]);if(Ce!==void 0){let Pe=Ce[d.value];ae.value[Y][d.value]=Pe,h.value&&(z.value[Y][d.value]=Pe)}})},_s=B=>{Gt(B)},Xn=B=>fn(B)?r.value==="single"?{}:[]:h.value?B:r.value==="single"?At(B)||(E.value?{[d.value]:B,[b.value]:B,[un.value[0]]:B}:{}):B.filter(Y=>!!At(Y)||E.value).map(Y=>At(Y)||{[d.value]:Y,[b.value]:Y,[un.value[0]]:Y}),ii=()=>{Me.value=i.watch(re,B=>{B.length<v.value||!B&&v.value!==0||(ke.value=!0,k.value&&(de.value=[]),setTimeout(()=>{B==re.value&&o.value(re.value,se).then(Y=>{(B==re.value||!re.value)&&(de.value=Y,Je.value=ct.value.filter(Ce=>Ce[Q.value]!==!0)[0]||null,ke.value=!1)}).catch(Y=>{console.error(Y)})},y.value))},{flush:"sync"})};if(r.value!=="single"&&!fn(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?C.value?Gt(Be):h.value==!0&&Be():(de.value=o.value,Be()),y.value>-1&&ii(),i.watch(y,(B,Y)=>{Me.value&&Me.value(),B>=0&&ii()}),i.watch(z,B=>{if(fn(B)){De(Xn(B),!1);return}switch(r.value){case"single":(h.value?B[b.value]!=ae.value[b.value]:B!=ae.value[b.value])&&De(Xn(B),!1);break;case"multiple":case"tags":GC(h.value?B.map(Y=>Y[b.value]):B,ae.value.map(Y=>Y[b.value]))||De(Xn(B),!1);break}},{deep:!0}),i.watch(o,(B,Y)=>{typeof t.options=="function"?C.value&&(!Y||B&&B.toString()!==Y.toString())&&Gt():(de.value=t.options,Object.keys(ae.value).length||Be(),ri())}),i.watch(d,ri),i.watch(a,(B,Y)=>{ve.value=P.value&&B===-1?10:B}),{pfo:vt,fo:ct,filteredOptions:ct,hasSelected:ko,multipleLabelText:Gn,eo:He,extendedOptions:He,eg:Zt,extendedGroups:Zt,fg:Kn,filteredGroups:Kn,noOptions:sr,noResults:ar,resolving:ke,busy:Xr,offset:ve,select:Kt,deselect:Et,remove:lr,selectAll:ei,clear:Qr,isSelected:St,isDisabled:cr,isMax:Yn,getOption:At,handleOptionClick:ur,handleGroupClick:Jn,handleTagRemove:gs,refreshOptions:_s,resolveOptions:Gt,refreshLabels:ri}}function JC(t,e,n){const{valueProp:o,showOptions:r,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=i.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,k=n.multiselect,w=n.isOpen,b=i.computed(()=>p.value.filter(z=>!z[d.value])),E=i.computed(()=>m.value.filter(z=>!z[d.value])),T=i.computed(()=>c.value!=="single"&&u.value),S=i.computed(()=>C.value&&C.value.group),N=i.computed(()=>se(C.value)),L=i.computed(()=>{const z=S.value?C.value:se(C.value),re=E.value.map(De=>De[a.value]).indexOf(z[a.value]);let _e=E.value[re-1];return _e===void 0&&(_e=D.value),_e}),A=i.computed(()=>{let z=E.value.map(re=>re.label).indexOf(S.value?C.value[a.value]:se(C.value)[a.value])+1;return E.value.length<=z&&(z=0),E.value[z]}),D=i.computed(()=>[...E.value].slice(-1)[0]),M=i.computed(()=>C.value.__VISIBLE__.filter(z=>!z[d.value])[0]),I=i.computed(()=>{const z=N.value.__VISIBLE__.filter(re=>!re[d.value]);return z[z.map(re=>re[o.value]).indexOf(C.value[o.value])-1]}),P=i.computed(()=>{const z=se(C.value).__VISIBLE__.filter(re=>!re[d.value]);return z[z.map(re=>re[o.value]).indexOf(C.value[o.value])+1]}),j=i.computed(()=>[...L.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),V=i.computed(()=>[...D.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),U=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,F=()=>{v(b.value[0]||null)},Q=()=>{!C.value||C.value[d.value]===!0||(S.value?g(C.value):h(C.value))},ee=()=>{if(C.value===null)v((l.value&&T.value?E.value[0].__CREATE__?b.value[0]:E.value[0]:b.value[0])||null);else if(l.value&&T.value){let z=S.value?M.value:P.value;z===void 0&&(z=A.value,z.__CREATE__&&(z=z[f.value][0])),v(z||null)}else{let z=b.value.map(re=>re[o.value]).indexOf(C.value[o.value])+1;b.value.length<=z&&(z=0),v(b.value[z]||null)}i.nextTick(()=>{ae()})},me=()=>{if(C.value===null){let z=b.value[b.value.length-1];l.value&&T.value&&(z=V.value,z===void 0&&(z=D.value)),v(z||null)}else if(l.value&&T.value){let z=S.value?j.value:I.value;z===void 0&&(z=S.value?L.value:N.value,z.__CREATE__&&(z=j.value,z===void 0&&(z=L.value))),v(z||null)}else{let z=b.value.map(re=>re[o.value]).indexOf(C.value[o.value])-1;z<0&&(z=b.value.length-1),v(b.value[z]||null)}i.nextTick(()=>{ae()})},se=z=>E.value.find(re=>re.__VISIBLE__.map(_e=>_e[o.value]).indexOf(z[o.value])!==-1),ae=()=>{let z=k.value.querySelector("[data-pointed]");if(!z)return;let re=z.parentElement.parentElement;l.value&&(re=S.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>re.clientHeight+re.scrollTop&&(re.scrollTop=z.offsetTop+z.offsetHeight-re.clientHeight),z.offsetTop<re.scrollTop&&(re.scrollTop=z.offsetTop)};return i.watch(y,z=>{s.value&&(z.length&&r.value?F():_())}),i.watch(w,z=>{if(z){let re=k.value.querySelectorAll("[data-selected]")[0];if(!re)return;let _e=re.parentElement.parentElement;i.nextTick(()=>{_e.scrollTop>0||(_e.scrollTop=re.offsetTop)})}}),{pointer:C,canPointGroups:T,isPointed:U,setPointerFirst:F,selectPointer:Q,forwardPointer:ee,backwardPointer:me}}function $t(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jo(t){var e=$t(t).Element;return t instanceof e||t instanceof Element}function Ut(t){var e=$t(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ru(t){if(typeof ShadowRoot>"u")return!1;var e=$t(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Vo=Math.max,ta=Math.min,$r=Math.round;function uc(){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 Wp(){return!/^((?!chrome|android).)*safari/i.test(uc())}function Or(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Ut(t)&&(r=t.offsetWidth>0&&$r(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&$r(o.height)/t.offsetHeight||1);var a=jo(t)?$t(t):window,l=a.visualViewport,c=!Wp()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/r,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function iu(t){var e=$t(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function XC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function QC(t){return t===$t(t)||!Ut(t)?iu(t):XC(t)}function bn(t){return t?(t.nodeName||"").toLowerCase():null}function yo(t){return((jo(t)?t.ownerDocument:t.document)||window.document).documentElement}function su(t){return Or(yo(t)).left+iu(t).scrollLeft}function Un(t){return $t(t).getComputedStyle(t)}function au(t){var e=Un(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function eb(t){var e=t.getBoundingClientRect(),n=$r(e.width)/t.offsetWidth||1,o=$r(e.height)/t.offsetHeight||1;return n!==1||o!==1}function tb(t,e,n){n===void 0&&(n=!1);var o=Ut(e),r=Ut(e)&&eb(e),s=yo(e),a=Or(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((bn(e)!=="body"||au(s))&&(l=QC(e)),Ut(e)?(c=Or(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=su(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Zp(t){var e=Or(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 Ia(t){return bn(t)==="html"?t:t.assignedSlot||t.parentNode||(ru(t)?t.host:null)||yo(t)}function Kp(t){return["html","body","#document"].indexOf(bn(t))>=0?t.ownerDocument.body:Ut(t)&&au(t)?t:Kp(Ia(t))}function Si(t,e){var n;e===void 0&&(e=[]);var o=Kp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=$t(o),a=r?[s].concat(s.visualViewport||[],au(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Si(Ia(a)))}function nb(t){return["table","td","th"].indexOf(bn(t))>=0}function Md(t){return!Ut(t)||Un(t).position==="fixed"?null:t.offsetParent}function ob(t){var e=/firefox/i.test(uc()),n=/Trident/i.test(uc());if(n&&Ut(t)){var o=Un(t);if(o.position==="fixed")return null}var r=Ia(t);for(ru(r)&&(r=r.host);Ut(r)&&["html","body"].indexOf(bn(r))<0;){var s=Un(r);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 r;r=r.parentNode}return null}function Pa(t){for(var e=$t(t),n=Md(t);n&&nb(n)&&Un(n).position==="static";)n=Md(n);return n&&(bn(n)==="html"||bn(n)==="body"&&Un(n).position==="static")?e:n||ob(t)||e}var Qt="top",kn="bottom",po="right",Fn="left",lu="auto",Fa=[Qt,kn,po,Fn],Lr="start",Ri="end",rb="clippingParents",Gp="viewport",mi="popper",ib="reference",Bd=Fa.reduce(function(t,e){return t.concat([e+"-"+Lr,e+"-"+Ri])},[]),sb=[].concat(Fa,[lu]).reduce(function(t,e){return t.concat([e,e+"-"+Lr,e+"-"+Ri])},[]),ab="beforeRead",lb="read",cb="afterRead",ub="beforeMain",db="main",fb="afterMain",pb="beforeWrite",mb="write",hb="afterWrite",gb=[ab,lb,cb,ub,db,fb,pb,mb,hb];function vb(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function r(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&&r(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||r(s)}),o}function yb(t){var e=vb(t);return gb.reduce(function(n,o){return n.concat(e.filter(function(r){return r.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 Cb(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function bb(t,e){var n=$t(t),o=yo(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Wp();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+su(t),y:c}}function kb(t){var e,n=yo(t),o=iu(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Vo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Vo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+su(t),c=-o.scrollTop;return Un(r||n).direction==="rtl"&&(l+=Vo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function wb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ru(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function dc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Eb(t,e){var n=Or(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 $d(t,e,n){return e===Gp?dc(bb(t,n)):jo(e)?Eb(e,n):dc(kb(yo(t)))}function xb(t){var e=Si(Ia(t)),n=["absolute","fixed"].indexOf(Un(t).position)>=0,o=n&&Ut(t)?Pa(t):t;return jo(o)?e.filter(function(r){return jo(r)&&wb(r,o)&&bn(r)!=="body"}):[]}function Sb(t,e,n,o){var r=e==="clippingParents"?xb(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=$d(t,u,o);return c.top=Vo(d.top,c.top),c.right=ta(d.right,c.right),c.bottom=ta(d.bottom,c.bottom),c.left=Vo(d.left,c.left),c},$d(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 so(t){return t.split("-")[0]}function Ir(t){return t.split("-")[1]}function Yp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Jp(t){var e=t.reference,n=t.element,o=t.placement,r=o?so(o):null,s=o?Ir(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Qt:c={x:a,y:e.y-n.height};break;case kn:c={x:a,y:e.y+e.height};break;case po:c={x:e.x+e.width,y:l};break;case Fn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Yp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Lr:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Ri:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Xp(){return{top:0,right:0,bottom:0,left:0}}function Tb(t){return Object.assign({},Xp(),t)}function Ab(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function cu(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?rb:l,u=n.rootBoundary,d=u===void 0?Gp:u,f=n.elementContext,p=f===void 0?mi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=Tb(typeof y!="number"?y:Ab(y,Fa)),v=p===mi?ib:mi,_=t.rects.popper,k=t.elements[h?v:p],w=Sb(jo(k)?k:k.contextElement||yo(t.elements.popper),c,d,a),b=Or(t.elements.reference),E=Jp({reference:b,element:_,strategy:"absolute",placement:r}),T=dc(Object.assign({},_,E)),S=p===mi?T:b,N={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},L=t.modifiersData.offset;if(p===mi&&L){var A=L[r];Object.keys(N).forEach(function(D){var M=[po,kn].indexOf(D)>=0?1:-1,I=[Qt,kn].indexOf(D)>=0?"y":"x";N[D]+=A[I]*M})}return N}var Od={placement:"bottom",modifiers:[],strategy:"absolute"};function Ld(){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 Nb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?Od:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Od,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:jo(l)?Si(l):l.contextElement?Si(l.contextElement):[],popper:Si(c)};var _=yb(Cb([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(k){return k.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,v=C.reference,_=C.popper;if(Ld(v,_)){d.rects={reference:tb(v,Pa(_),d.options.strategy==="fixed"),popper:Zp(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var w=d.orderedModifiers[k],b=w.fn,E=w.options,T=E===void 0?{}:E,S=w.name;typeof b=="function"&&(d=b({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(!Ld(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,k=y.effect;if(typeof k=="function"){var w=k({state:d,name:C,instance:m,options:_}),b=function(){};f.push(w||b)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var As={passive:!0};function Db(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=$t(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,As)}),l&&c.addEventListener("resize",n.update,As),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,As)}),l&&c.removeEventListener("resize",n.update,As)}}var Mb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Db,data:{}};function Bb(t){var e=t.state,n=t.name;e.modifiersData[n]=Jp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var $b={name:"popperOffsets",enabled:!0,phase:"read",fn:Bb,data:{}},Ob={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lb(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:$r(n*r)/r||0,y:$r(o*r)/r||0}}function Id(t){var e,n=t.popper,o=t.popperRect,r=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"),_=Fn,k=Qt,w=window;if(u){var b=Pa(n),E="clientHeight",T="clientWidth";if(b===$t(n)&&(b=yo(n),Un(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",T="scrollWidth")),b=b,r===Qt||(r===Fn||r===po)&&s===Ri){k=kn;var S=f&&b===w&&w.visualViewport?w.visualViewport.height:b[E];g-=S-o.height,g*=c?1:-1}if(r===Fn||(r===Qt||r===kn)&&s===Ri){_=po;var N=f&&b===w&&w.visualViewport?w.visualViewport.width:b[T];m-=N-o.width,m*=c?1:-1}}var L=Object.assign({position:l},u&&Ob),A=d===!0?Lb({x:m,y:g},$t(n)):{x:m,y:g};if(m=A.x,g=A.y,c){var D;return Object.assign({},L,(D={},D[k]=v?"0":"",D[_]=C?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",D))}return Object.assign({},L,(e={},e[k]=v?g+"px":"",e[_]=C?m+"px":"",e.transform="",e))}function Ib(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=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:so(e.placement),variation:Ir(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Id(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,Id(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 Pb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ib,data:{}};function Fb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Ut(s)||!bn(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Vb(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 r=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},{});!Ut(r)||!bn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Rb={name:"applyStyles",enabled:!0,phase:"write",fn:Fb,effect:Vb,requires:["computeStyles"]},zb=[Mb,$b,Pb,Rb],Ub=Nb({defaultModifiers:zb});function qb(t){return t==="x"?"y":"x"}function qs(t,e,n){return Vo(t,ta(e,n))}function Hb(t,e,n){var o=qs(t,e,n);return o>n?n:o}function jb(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,s=r===void 0?!0:r,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=cu(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=so(e.placement),v=Ir(e.placement),_=!v,k=Yp(C),w=qb(k),b=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,N=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(b){if(s){var D,M=k==="y"?Qt:Fn,I=k==="y"?kn:po,P=k==="y"?"height":"width",j=b[k],V=j+y[M],U=j-y[I],F=m?-T[P]/2:0,Q=v===Lr?E[P]:T[P],ee=v===Lr?-T[P]:-E[P],me=e.elements.arrow,se=m&&me?Zp(me):{width:0,height:0},ae=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Xp(),z=ae[M],re=ae[I],_e=qs(0,E[P],se[P]),De=_?E[P]/2-F-_e-z-N.mainAxis:Q-_e-z-N.mainAxis,Je=_?-E[P]/2+F+_e+re+N.mainAxis:ee+_e+re+N.mainAxis,H=e.elements.arrow&&Pa(e.elements.arrow),te=H?k==="y"?H.clientTop||0:H.clientLeft||0:0,Le=(D=L==null?void 0:L[k])!=null?D:0,le=j+De-Le-te,qe=j+Je-Le,$=qs(m?ta(V,le):V,j,m?Vo(U,qe):U);b[k]=$,A[k]=$-j}if(l){var G,de=k==="x"?Qt:Fn,ke=k==="x"?kn:po,Me=b[w],ve=w==="y"?"height":"width",cn=Me+y[de],Tn=Me-y[ke],He=[Qt,Fn].indexOf(C)!==-1,vt=(G=L==null?void 0:L[w])!=null?G:0,ct=He?cn:Me-E[ve]-T[ve]-vt+N.altAxis,Zt=He?Me+E[ve]+T[ve]-vt-N.altAxis:Tn,An=m&&He?Hb(ct,Me,Zt):qs(m?ct:cn,Me,m?Zt:Tn);b[w]=An,A[w]=An-Me}e.modifiersData[o]=A}}var Wb={name:"preventOverflow",enabled:!0,phase:"main",fn:jb,requiresIfExists:["offset"]},Zb={left:"right",right:"left",bottom:"top",top:"bottom"};function Hs(t){return t.replace(/left|right|bottom|top/g,function(e){return Zb[e]})}var Kb={start:"end",end:"start"};function Pd(t){return t.replace(/start|end/g,function(e){return Kb[e]})}function Gb(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?sb:c,d=Ir(o),f=d?l?Bd:Bd.filter(function(h){return Ir(h)===d}):Fa,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]=cu(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[so(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function Yb(t){if(so(t)===lu)return[];var e=Hs(t);return[Pd(t),e,Pd(e)]}function Jb(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,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=so(y),v=C===y,_=c||(v||!h?[Hs(y)]:Yb(y)),k=[y].concat(_).reduce(function(se,ae){return se.concat(so(ae)===lu?Gb(e,{placement:ae,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):ae)},[]),w=e.rects.reference,b=e.rects.popper,E=new Map,T=!0,S=k[0],N=0;N<k.length;N++){var L=k[N],A=so(L),D=Ir(L)===Lr,M=[Qt,kn].indexOf(A)>=0,I=M?"width":"height",P=cu(e,{placement:L,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=M?D?po:Fn:D?kn:Qt;w[I]>b[I]&&(j=Hs(j));var V=Hs(j),U=[];if(s&&U.push(P[A]<=0),l&&U.push(P[j]<=0,P[V]<=0),U.every(function(se){return se})){S=L,T=!1;break}E.set(L,U)}if(T)for(var F=h?3:1,Q=function(ae){var z=k.find(function(re){var _e=E.get(re);if(_e)return _e.slice(0,ae).every(function(De){return De})});if(z)return S=z,"break"},ee=F;ee>0;ee--){var me=Q(ee);if(me==="break")break}e.placement!==S&&(e.modifiersData[o]._skip=!0,e.placement=S,e.reset=!0)}}var Xb={name:"flip",enabled:!0,phase:"main",fn:Jb,requiresIfExists:["offset"],data:{_skip:!1}};function Qb(t,e,n){const{disabled:o,appendTo:r,appendToBody:s,openDirection:a}=i.toRefs(t),l=i.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=i.ref(!1),f=i.ref(null),p=i.ref(null),m=i.computed(()=>r.value||s.value),h=i.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&&i.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","")),k=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:k)*-1]}}]})),f.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return i.onMounted(()=>{m.value&&(f.value=Ub(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[Wb,Xb,{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}}]}))}),i.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:h,updatePopper:C}}function e9(t,e,n){const{searchable:o,disabled:r,clearOnBlur:s}=i.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,m=i.ref(!1),h=i.ref(!1),g=i.computed(()=>o.value||r.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},C=()=>{o.value&&!r.value&&a.value.focus()},v=(T=!0)=>{r.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 t9(t,e,n){const{mode:o,addTagOn:r,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=i.toRefs(t),h=i.getCurrentInstance().proxy,g=n.iv,y=n.update,C=n.deselect,v=n.search,_=n.setPointer,k=n.selectPointer,w=n.backwardPointer,b=n.forwardPointer,E=n.multiselect,T=n.wrapper,S=n.tags,N=n.isOpen,L=n.open,A=n.blur,D=n.fo,M=i.computed(()=>f.value||p.value||!1),I=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),P=()=>{o.value==="tags"&&!l.value&&M.value&&a.value&&!u.value&&_(D.value[D.value.map(U=>U[c.value]).indexOf(v.value)])};return{handleKeydown:U=>{e.emit("keydown",U,h);let F,Q;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(U.key)!==-1&&o.value==="tags"&&(F=[...E.value.querySelectorAll("[data-tags] > *")].filter(ee=>ee!==S.value),Q=F.findIndex(ee=>ee===document.activeElement)),U.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let ee=g.value.filter(me=>!me.disabled&&me.remove!==!1);ee.length&&C(ee[ee.length-1]);break;case"Enter":if(U.preventDefault(),U.keyCode===229)return;if(Q!==-1&&Q!==void 0){y([...g.value].filter((me,se)=>se!==Q)),Q===F.length-1&&(F.length-1?F[F.length-2].focus():a.value?S.value.querySelector("input").focus():T.value.focus());return}if(I.value.indexOf("enter")===-1&&M.value)return;P(),k();break;case" ":if(!M.value&&!a.value){U.preventDefault(),P(),k();return}if(!M.value)return!1;if(I.value.indexOf("space")===-1&&M.value)return;U.preventDefault(),P(),k();break;case"Tab":case";":case",":if(I.value.indexOf(U.key.toLowerCase())===-1||!M.value)return;P(),k(),U.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(U.preventDefault(),!l.value)return;N.value||L(),w();break;case"ArrowDown":if(U.preventDefault(),!l.value)return;N.value||L(),b();break;case"ArrowLeft":if(a.value&&S.value&&S.value.querySelector("input").selectionStart||U.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;U.preventDefault(),Q===-1?F[F.length-1].focus():Q>0&&F[Q-1].focus();break;case"ArrowRight":if(Q===-1||U.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;U.preventDefault(),F.length>Q+1?F[Q+1].focus():a.value?S.value.querySelector("input").focus():a.value||T.value.focus();break}},handleKeyup:U=>{e.emit("keyup",U,h)},preparePointer:P}}function n9(t,e,n){const{classes:o,disabled:r,showOptions:s,breakTags:a}=i.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=i.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=i.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:i.computed(()=>{const _=y.value;return{container:[_.container].concat(r.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(r.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:k=>{let w=[_.groupLabel];return c(k)?w.push(u(k)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(k)&&p.value?w.push(d(k)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(k)&&w.push(_.groupLabelDisabled),p.value&&w.push(_.groupLabelPointable),w},groupOptions:_.groupOptions,option:(k,w)=>{let b=[_.option];return c(k)?b.push(u(k)?_.optionSelectedPointed:_.optionPointed):u(k)?b.push(d(k)?_.optionSelectedDisabled:_.optionSelected):(d(k)||w&&d(w))&&b.push(_.optionDisabled),b},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:C}}function o9(t,e,n){const{limit:o,infinite:r}=i.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=i.ref(null),f=i.ref(null),p=i.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,i.nextTick(()=>{v.scrollTop=_})}},h=()=>{s.value&&a.value<c.value.length?d.value.observe(f.value):!s.value&&d.value&&d.value.disconnect()};return i.watch(s,()=>{r.value&&h()}),i.watch(l,()=>{r.value&&(a.value=o.value,h())},{flush:"post"}),i.watch(u,()=>{r.value&&h()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function r9(t,e,n){const{placeholder:o,id:r,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=i.toRefs(t),f=n.pointer,p=n.iv,m=n.hasSelected,h=n.multipleLabelText,g=i.ref(null),y=i.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("assist"),A.join("-")}),C=i.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("multiselect-options"),A.join("-")}),v=i.computed(()=>{let A=[];if(r&&r.value&&A.push(r.value),f.value)return A.push(f.value.group?"multiselect-group":"multiselect-option"),A.push(f.value.group?f.value.index:f.value[s.value]),A.join("-")}),_=i.computed(()=>o.value),k=i.computed(()=>l.value!=="single"),w=i.computed(()=>{let A="";return l.value==="single"&&m.value&&(A+=p.value[a.value]),l.value==="multiple"&&m.value&&(A+=h.value),l.value==="tags"&&m.value&&(A+=p.value.map(D=>D[a.value]).join(", ")),A}),b=i.computed(()=>{let A={...u.value};return d.value&&(A["aria-labelledby"]=A["aria-labelledby"]?`${y.value} ${A["aria-labelledby"]}`:y.value,w.value&&A["aria-label"]&&(A["aria-label"]=`${w.value}, ${A["aria-label"]}`)),A}),E=A=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-option"),D.push(A[s.value]),D.join("-")},T=A=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-group"),D.push(A.index),D.join("-")},S=A=>{let D=[];return D.push(A),D.join(" ")},N=A=>{let D=[];return D.push(A),D.join(" ")},L=A=>`${A} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let A=document.querySelector(`[for="${r.value}"]`);g.value=A?A.innerText:null}}),{arias:b,ariaLabel:w,ariaAssist:y,ariaControls:C,ariaPlaceholder:_,ariaMultiselectable:k,ariaActiveDescendant:v,ariaOptionId:E,ariaOptionLabel:S,ariaGroupId:T,ariaGroupLabel:N,ariaTagLabel:L}}function i9(t,e,n){const{locale:o,fallbackLocale:r}=i.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[r.value]?a[r.value]:a&&r.value&&a[r.value.toUpperCase()]?a[r.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function s9(t,e,n){const o=i.ref(null),r=i.ref(null),s=i.ref(null),a=i.ref(null),l=i.ref(null);return{multiselect:o,wrapper:r,tags:s,input:a,dropdown:l}}function a9(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var no={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 a9(t,e,[s9,i9,jC,ZC,Qb,WC,HC,e9,YC,o9,JC,t9,n9,r9])},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 l9=["id","dir"],c9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],u9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],d9=["onKeyup","aria-label"],f9=["onClick"],p9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],m9=["innerHTML"],h9=["id"],g9=["id"],v9=["id","aria-label","aria-selected"],y9=["data-pointed","onMouseenter","onMousedown"],_9=["innerHTML"],C9=["aria-label"],b9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],k9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],w9=["innerHTML"],E9=["innerHTML"],x9=["value"],S9=["name","value"],T9=["name","value"],A9=["id"];function N9(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"multiselect",class:i.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))},[i.createElementVNode("div",i.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),[i.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.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]=i.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,u9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(t.classList.tags),"data-tags":""},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.iv,(a,l,c)=>i.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:i.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagWrapper)},i.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(t.classList.tagRemove),onClick:i.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,f9)):i.createCommentVNode("v-if",!0)],42,d9))])),256)),i.createElementVNode("div",{class:i.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[i.createCommentVNode(" Used for measuring search width "),i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagsSearchCopy)},i.toDisplayString(t.search),3),i.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.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]=i.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,p9)):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?i.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.singleLabel)},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.singleLabelText)},i.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?i.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,m9)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?i.renderSlot(t.$slots,"placeholder",{key:4},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},i.toDisplayString(n.placeholder),3)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Spinner "),n.loading||t.resolving?i.renderSlot(t.$slots,"spinner",{key:5},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?i.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[i.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:i.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=i.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.clearIcon)},null,2)],34)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Caret "),n.caret&&n.showOptions?i.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0)],16,c9),i.createCommentVNode(" Options "),(i.openBlock(),i.createBlock(i.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[i.createElementVNode("div",{id:`${n.id}-dropdown`,class:i.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[i.renderSlot(t.$slots,"beforelist",{options:t.fo}),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.fg,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.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__?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:i.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[i.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[i.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,_9)])],42,y9)),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.__VISIBLE__,(u,d,f)=>(i.openBlock(),i.createElementBlock("li",{class:i.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:i.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"},[i.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(u[n.label])),1)])],42,b9))),128))],10,C9)],10,v9))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.fo,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.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:i.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"},[i.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(a[n.label])),1)])],42,k9))),128))],10,g9),t.noOptions?i.renderSlot(t.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,w9)]):i.createCommentVNode("v-if",!0),t.noResults?i.renderSlot(t.$slots,"noresults",{key:1},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,E9)]):i.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[i.renderSlot(t.$slots,"infinite",{},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):i.createCommentVNode("v-if",!0),i.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,h9)],8,["to","disabled"])),i.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(i.openBlock(),i.createElementBlock("input",{key:0,class:i.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,x9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Native input support "),n.nativeSupport?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.mode=="single"?(i.openBlock(),i.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,S9)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.plainValue,(a,l)=>(i.openBlock(),i.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,T9))),128))],64)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},i.toDisplayString(t.ariaLabel),11,A9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,l9)}no.render=N9;no.__file="src/Multiselect.vue";const Ct=i.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=i.toRef(()=>e.appendTo),o=i.ref();return e.detached&&qC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(no),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},i.createSlots({_:2},[i.renderList(r.$slots,(a,l)=>({name:l,fn:i.withCtx(c=>[i.renderSlot(r.$slots,l,i.normalizeProps(i.guardReactiveProps(c??{})))])}))]),1536))}});var Fd;function En(){const t=D9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function D9(){const t=i.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}i.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let r,s=0;for(;(r=Fd.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Fd.lastIndex}return o.push(n.substring(s)),o}}});async function Vn(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 r=o[0].id;await i.nextTick();const s=document.getElementById(r);s==null||s.focus(),await i.nextTick();const a=document.getElementById(r);a==null||a.select()}}const M9={class:"ao-tasks"},B9={class:"ao-tasks__list"},$9=["id","value","readonly","onChange"],O9={class:"ao-tasks__list-footer"},L9=i.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}=En(),o=t,r=e;i.watch(()=>o.tasks,(p,m)=>{Vn(p,m)});const s=i.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),a=()=>{const p=o.tasks.length,m={name:n("task.defaultName",{idx:p+1}),activityId:o.activityId};r("add",m)},l=(p,m)=>{const g=p.target.value;r("update",{id:m,name:g})},c=(p,m)=>{o.isEditable&&r("update",{id:p,isDone:m})},u=p=>{r("delete",{id:p})},d=(p,m)=>{r("update",{id:m,assigneeId:p[0]??null})},f=p=>{const m=p.target;m==null||m.blur()};return(p,m)=>(i.openBlock(),i.createElementBlock("div",M9,[i.createElementVNode("ul",B9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tasks,h=>{var g,y;return i.openBlock(),i.createElementBlock("li",{key:h.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,h))??!1?(i.openBlock(),i.createBlock(ge,{key:0,class:"ao-subtask__check","icon-name":h.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(h.id,!h.isDone)},null,8,["icon-name","disabled","onClick"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:h.id,value:h.name,readonly:!t.isEditable,class:i.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":h.isDone}]),type:"text",onChange:C=>l(C,h.id),onKeyup:i.withKeys(f,["enter"])},null,42,$9),m[0]||(m[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(Ct,{key:1,value:(y=h.assignee)!=null&&y.id?[h.assignee.id]:[],options:s.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:p.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,onChange:C=>d(C,h.id)},{tag:i.withCtx(({option:C,handleTagRemove:v})=>[i.createVNode(jn,{"user-name":C.label,"avatar-url":C.avatar,"is-closable":!0,onClose:_=>v(C,_)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):i.createCommentVNode("",!0),t.isEditable?(i.openBlock(),i.createBlock(ge,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>u(h.id)},null,8,["onClick"])):i.createCommentVNode("",!0)])}),128))]),i.createElementVNode("div",O9,[t.isEditable?(i.openBlock(),i.createBlock(ge,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const I9={class:"ao-files__placeholder"},P9={key:0,class:"ao-files__list"},F9=["onClick"],V9={class:"ao-file__title"},R9={class:"ao-file__actions"},z9={key:0},U9={class:"ao-files__input"},q9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},H9={class:"ao-button__label"},j9={class:"ao-files__dropzone"},W9={class:"ao-files__dropzone-label"},Z9=i.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove","preview"],setup(t,{emit:e}){const n=e,o=t,r=i.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()}i.onMounted(()=>{s.forEach(m=>{document.body.addEventListener(m,u)})}),i.onUnmounted(()=>{s.forEach(m=>{document.body.removeEventListener(m,u)})});function d(){o.isEditable&&(r.value=!0)}function f(){r.value=!1}i.watch(r,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 i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":r.value}]),onDrop:i.withModifiers(p,["prevent"]),onDragenter:i.withModifiers(d,["prevent"]),onDragover:i.withModifiers(d,["prevent"]),onDragleave:i.withModifiers(f,["prevent"])},[i.renderSlot(m.$slots,"default",{},()=>[i.createElementVNode("span",I9,i.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(i.openBlock(),i.createElementBlock("ul",P9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,(y,C)=>(i.openBlock(),i.createElementBlock("li",{key:y.id,class:"ao-file"},[i.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:v=>n("preview",C)},[i.createVNode(be,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",V9,i.toDisplayString(y.name),1)],8,F9),i.createElementVNode("div",R9,[i.createVNode(ge,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:i.withModifiers(v=>l(y),["stop"])},null,8,["onClick"]),t.isEditable?(i.openBlock(),i.createBlock(ge,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:i.withModifiers(v=>a(y),["stop"])},null,8,["onClick"])):i.createCommentVNode("",!0)])]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",z9,[i.createElementVNode("label",U9,[i.createElementVNode("div",q9,[i.createVNode(be,{name:"Add",size:"sm"}),i.createElementVNode("span",H9,i.toDisplayString(m.$t("activity.attachment.button.resting")),1)]),i.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:c},null,32)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",j9,[i.createElementVNode("span",W9,i.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,r.value]])],34)}}});var Te={};const K9="Á",G9="á",Y9="Ă",J9="ă",X9="∾",Q9="∿",e4="∾̳",t4="Â",n4="â",o4="´",r4="А",i4="а",s4="Æ",a4="æ",l4="⁡",c4="𝔄",u4="𝔞",d4="À",f4="à",p4="ℵ",m4="ℵ",h4="Α",g4="α",v4="Ā",y4="ā",_4="⨿",C4="&",b4="&",k4="⩕",w4="⩓",E4="∧",x4="⩜",S4="⩘",T4="⩚",A4="∠",N4="⦤",D4="∠",M4="⦨",B4="⦩",$4="⦪",O4="⦫",L4="⦬",I4="⦭",P4="⦮",F4="⦯",V4="∡",R4="∟",z4="⊾",U4="⦝",q4="∢",H4="Å",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="∳",y8="⨑",_8="≌",C8="϶",b8="‵",k8="∽",w8="⋍",E8="∖",x8="⫧",S8="⊽",T8="⌅",A8="⌆",N8="⌅",D8="⎵",M8="⎶",B8="≌",$8="Б",O8="б",L8="„",I8="∵",P8="∵",F8="∵",V8="⦰",R8="϶",z8="ℬ",U8="ℬ",q8="Β",H8="β",j8="ℶ",W8="≬",Z8="𝔅",K8="𝔟",G8="⋂",Y8="◯",J8="⋃",X8="⨀",Q8="⨁",ek="⨂",tk="⨆",nk="★",ok="▽",rk="△",ik="⨄",sk="⋁",ak="⋀",lk="⤍",ck="⧫",uk="▪",dk="▴",fk="▾",pk="◂",mk="▸",hk="␣",gk="▒",vk="░",yk="▓",_k="█",Ck="=⃥",bk="≡⃥",kk="⫭",wk="⌐",Ek="𝔹",xk="𝕓",Sk="⊥",Tk="⊥",Ak="⋈",Nk="⧉",Dk="┐",Mk="╕",Bk="╖",$k="╗",Ok="┌",Lk="╒",Ik="╓",Pk="╔",Fk="─",Vk="═",Rk="┬",zk="╤",Uk="╥",qk="╦",Hk="┴",jk="╧",Wk="╨",Zk="╩",Kk="⊟",Gk="⊞",Yk="⊠",Jk="┘",Xk="╛",Qk="╜",e6="╝",t6="└",n6="╘",o6="╙",r6="╚",i6="│",s6="║",a6="┼",l6="╪",c6="╫",u6="╬",d6="┤",f6="╡",p6="╢",m6="╣",h6="├",g6="╞",v6="╟",y6="╠",_6="‵",C6="˘",b6="˘",k6="¦",w6="𝒷",E6="ℬ",x6="⁏",S6="∽",T6="⋍",A6="⧅",N6="\\",D6="⟈",M6="•",B6="•",$6="≎",O6="⪮",L6="≏",I6="≎",P6="≏",F6="Ć",V6="ć",R6="⩄",z6="⩉",U6="⩋",q6="∩",H6="⋒",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="ℭ",yw="Ч",_w="ч",Cw="✓",bw="✓",kw="Χ",ww="χ",Ew="ˆ",xw="≗",Sw="↺",Tw="↻",Aw="⊛",Nw="⊚",Dw="⊝",Mw="⊙",Bw="®",$w="Ⓢ",Ow="⊖",Lw="⊕",Iw="⊗",Pw="○",Fw="⧃",Vw="≗",Rw="⨐",zw="⫯",Uw="⧂",qw="∲",Hw="”",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="℗",yE="∳",_E="↵",CE="✗",bE="⨯",kE="𝒞",wE="𝒸",EE="⫏",xE="⫑",SE="⫐",TE="⫒",AE="⋯",NE="⤸",DE="⤵",ME="⋞",BE="⋟",$E="↶",OE="⤽",LE="⩈",IE="⩆",PE="≍",FE="∪",VE="⋓",RE="⩊",zE="⊍",UE="⩅",qE="∪︀",HE="↷",jE="⤼",WE="⋞",ZE="⋟",KE="⋎",GE="⋏",YE="¤",JE="↶",XE="↷",QE="⋎",ex="⋏",tx="∲",nx="∱",ox="⌭",rx="†",ix="‡",sx="ℸ",ax="↓",lx="↡",cx="⇓",ux="‐",dx="⫤",fx="⊣",px="⤏",mx="˝",hx="Ď",gx="ď",vx="Д",yx="д",_x="‡",Cx="⇊",bx="ⅅ",kx="ⅆ",wx="⤑",Ex="⩷",xx="°",Sx="∇",Tx="Δ",Ax="δ",Nx="⦱",Dx="⥿",Mx="𝔇",Bx="𝔡",$x="⥥",Ox="⇃",Lx="⇂",Ix="´",Px="˙",Fx="˝",Vx="`",Rx="˜",zx="⋄",Ux="⋄",qx="⋄",Hx="♦",jx="♦",Wx="¨",Zx="ⅆ",Kx="ϝ",Gx="⋲",Yx="÷",Jx="÷",Xx="⋇",Qx="⋇",eS="Ђ",tS="ђ",nS="⌞",oS="⌍",rS="$",iS="𝔻",sS="𝕕",aS="¨",lS="˙",cS="⃜",uS="≐",dS="≑",fS="≐",pS="∸",mS="∔",hS="⊡",gS="⌆",vS="∯",yS="¨",_S="⇓",CS="⇐",bS="⇔",kS="⫤",wS="⟸",ES="⟺",xS="⟹",SS="⇒",TS="⊨",AS="⇑",NS="⇕",DS="∥",MS="⤓",BS="↓",$S="↓",OS="⇓",LS="⇵",IS="̑",PS="⇊",FS="⇃",VS="⇂",RS="⥐",zS="⥞",US="⥖",qS="↽",HS="⥟",jS="⥗",WS="⇁",ZS="↧",KS="⊤",GS="⤐",YS="⌟",JS="⌌",XS="𝒟",QS="𝒹",eT="Ѕ",tT="ѕ",nT="⧶",oT="Đ",rT="đ",iT="⋱",sT="▿",aT="▾",lT="⇵",cT="⥯",uT="⦦",dT="Џ",fT="џ",pT="⟿",mT="É",hT="é",gT="⩮",vT="Ě",yT="ě",_T="Ê",CT="ê",bT="≖",kT="≕",wT="Э",ET="э",xT="⩷",ST="Ė",TT="ė",AT="≑",NT="ⅇ",DT="≒",MT="𝔈",BT="𝔢",$T="⪚",OT="È",LT="è",IT="⪖",PT="⪘",FT="⪙",VT="∈",RT="⏧",zT="ℓ",UT="⪕",qT="⪗",HT="Ē",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="⪖",yA="⪕",_A="⩵",CA="=",bA="≂",kA="≟",wA="⇌",EA="≡",xA="⩸",SA="⧥",TA="⥱",AA="≓",NA="ℯ",DA="ℰ",MA="≐",BA="⩳",$A="≂",OA="Η",LA="η",IA="Ð",PA="ð",FA="Ë",VA="ë",RA="€",zA="!",UA="∃",qA="∃",HA="ℰ",jA="ⅇ",WA="ⅇ",ZA="≒",KA="Ф",GA="ф",YA="♀",JA="ffi",XA="ff",QA="ffl",eN="𝔉",tN="𝔣",nN="fi",oN="◼",rN="▪",iN="fj",sN="♭",aN="fl",lN="▱",cN="ƒ",uN="𝔽",dN="𝕗",fN="∀",pN="∀",mN="⋔",hN="⫙",gN="ℱ",vN="⨍",yN="½",_N="⅓",CN="¼",bN="⅕",kN="⅙",wN="⅛",EN="⅔",xN="⅖",SN="¾",TN="⅗",AN="⅜",NN="⅘",DN="⅚",MN="⅝",BN="⅞",$N="⁄",ON="⌢",LN="𝒻",IN="ℱ",PN="ǵ",FN="Γ",VN="γ",RN="Ϝ",zN="ϝ",UN="⪆",qN="Ğ",HN="ğ",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="ℷ",yD="Ѓ",_D="ѓ",CD="⪥",bD="≷",kD="⪒",wD="⪤",ED="⪊",xD="⪊",SD="⪈",TD="≩",AD="⪈",ND="≩",DD="⋧",MD="𝔾",BD="𝕘",$D="`",OD="≥",LD="⋛",ID="≧",PD="⪢",FD="≷",VD="⩾",RD="≳",zD="𝒢",UD="ℊ",qD="≳",HD="⪎",jD="⪐",WD="⪧",ZD="⩺",KD=">",GD=">",YD="≫",JD="⋗",XD="⦕",QD="⩼",eM="⪆",tM="⥸",nM="⋗",oM="⋛",rM="⪌",iM="≷",sM="≳",aM="≩︀",lM="≩︀",cM="ˇ",uM=" ",dM="½",fM="ℋ",pM="Ъ",mM="ъ",hM="⥈",gM="↔",vM="⇔",yM="↭",_M="^",CM="ℏ",bM="Ĥ",kM="ĥ",wM="♥",EM="♥",xM="…",SM="⊹",TM="𝔥",AM="ℌ",NM="ℋ",DM="⤥",MM="⤦",BM="⇿",$M="∻",OM="↩",LM="↪",IM="𝕙",PM="ℍ",FM="―",VM="─",RM="𝒽",zM="ℋ",UM="ℏ",qM="Ħ",HM="ħ",jM="≎",WM="≏",ZM="⁃",KM="‐",GM="Í",YM="í",JM="⁣",XM="Î",QM="î",eB="И",tB="и",nB="İ",oB="Е",rB="е",iB="¡",sB="⇔",aB="𝔦",lB="ℑ",cB="Ì",uB="ì",dB="ⅈ",fB="⨌",pB="∭",mB="⧜",hB="℩",gB="IJ",vB="ij",yB="Ī",_B="ī",CB="ℑ",bB="ⅈ",kB="ℐ",wB="ℑ",EB="ı",xB="ℑ",SB="⊷",TB="Ƶ",AB="⇒",NB="℅",DB="∞",MB="⧝",BB="ı",$B="⊺",OB="∫",LB="∬",IB="ℤ",PB="∫",FB="⊺",VB="⋂",RB="⨗",zB="⨼",UB="⁣",qB="⁢",HB="Ё",jB="ё",WB="Į",ZB="į",KB="𝕀",GB="𝕚",YB="Ι",JB="ι",XB="⨼",QB="¿",e$="𝒾",t$="ℐ",n$="∈",o$="⋵",r$="⋹",i$="⋴",s$="⋳",a$="∈",l$="⁢",c$="Ĩ",u$="ĩ",d$="І",f$="і",p$="Ï",m$="ï",h$="Ĵ",g$="ĵ",v$="Й",y$="й",_$="𝔍",C$="𝔧",b$="ȷ",k$="𝕁",w$="𝕛",E$="𝒥",x$="𝒿",S$="Ј",T$="ј",A$="Є",N$="є",D$="Κ",M$="κ",B$="ϰ",$$="Ķ",O$="ķ",L$="К",I$="к",P$="𝔎",F$="𝔨",V$="ĸ",R$="Х",z$="х",U$="Ќ",q$="ќ",H$="𝕂",j$="𝕜",W$="𝒦",Z$="𝓀",K$="⇚",G$="Ĺ",Y$="ĺ",J$="⦴",X$="ℒ",Q$="Λ",eO="λ",tO="⟨",nO="⟪",oO="⦑",rO="⟨",iO="⪅",sO="ℒ",aO="«",lO="⇤",cO="⤟",uO="←",dO="↞",fO="⇐",pO="⤝",mO="↩",hO="↫",gO="⤹",vO="⥳",yO="↢",_O="⤙",CO="⤛",bO="⪫",kO="⪭",wO="⪭︀",EO="⤌",xO="⤎",SO="❲",TO="{",AO="[",NO="⦋",DO="⦏",MO="⦍",BO="Ľ",$O="ľ",OO="Ļ",LO="ļ",IO="⌈",PO="{",FO="Л",VO="л",RO="⤶",zO="“",UO="„",qO="⥧",HO="⥋",jO="↲",WO="≤",ZO="≦",KO="⟨",GO="⇤",YO="←",JO="←",XO="⇐",QO="⇆",eL="↢",tL="⌈",nL="⟦",oL="⥡",rL="⥙",iL="⇃",sL="⌊",aL="↽",lL="↼",cL="⇇",uL="↔",dL="↔",fL="⇔",pL="⇆",mL="⇋",hL="↭",gL="⥎",vL="↤",yL="⊣",_L="⥚",CL="⋋",bL="⧏",kL="⊲",wL="⊴",EL="⥑",xL="⥠",SL="⥘",TL="↿",AL="⥒",NL="↼",DL="⪋",ML="⋚",BL="≤",$L="≦",OL="⩽",LL="⪨",IL="⩽",PL="⩿",FL="⪁",VL="⪃",RL="⋚︀",zL="⪓",UL="⪅",qL="⋖",HL="⋚",jL="⪋",WL="⋚",ZL="≦",KL="≶",GL="≶",YL="⪡",JL="≲",XL="⩽",QL="≲",eI="⥼",tI="⌊",nI="𝔏",oI="𝔩",rI="≶",iI="⪑",sI="⥢",aI="↽",lI="↼",cI="⥪",uI="▄",dI="Љ",fI="љ",pI="⇇",mI="≪",hI="⋘",gI="⌞",vI="⇚",yI="⥫",_I="◺",CI="Ŀ",bI="ŀ",kI="⎰",wI="⎰",EI="⪉",xI="⪉",SI="⪇",TI="≨",AI="⪇",NI="≨",DI="⋦",MI="⟬",BI="⇽",$I="⟦",OI="⟵",LI="⟵",II="⟸",PI="⟷",FI="⟷",VI="⟺",RI="⟼",zI="⟶",UI="⟶",qI="⟹",HI="↫",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="≲",yP="⪍",_P="⪏",CP="[",bP="‘",kP="‚",wP="Ł",EP="ł",xP="⪦",SP="⩹",TP="<",AP="<",NP="≪",DP="⋖",MP="⋋",BP="⋉",$P="⥶",OP="⩻",LP="◃",IP="⊴",PP="◂",FP="⦖",VP="⥊",RP="⥦",zP="≨︀",UP="≨︀",qP="¯",HP="♂",jP="✠",WP="✠",ZP="↦",KP="↦",GP="↧",YP="↤",JP="↥",XP="▮",QP="⨩",eF="М",tF="м",nF="—",oF="∺",rF="∡",iF=" ",sF="ℳ",aF="𝔐",lF="𝔪",cF="℧",uF="µ",dF="*",fF="⫰",pF="∣",mF="·",hF="⊟",gF="−",vF="∸",yF="⨪",_F="∓",CF="⫛",bF="…",kF="∓",wF="⊧",EF="𝕄",xF="𝕞",SF="∓",TF="𝓂",AF="ℳ",NF="∾",DF="Μ",MF="μ",BF="⊸",$F="⊸",OF="∇",LF="Ń",IF="ń",PF="∠⃒",FF="≉",VF="⩰̸",RF="≋̸",zF="ʼn",UF="≉",qF="♮",HF="ℕ",jF="♮",WF=" ",ZF="≎̸",KF="≏̸",GF="⩃",YF="Ň",JF="ň",XF="Ņ",QF="ņ",eV="≇",tV="⩭̸",nV="⩂",oV="Н",rV="н",iV="–",sV="⤤",aV="↗",lV="⇗",cV="↗",uV="≠",dV="≐̸",fV="​",pV="​",mV="​",hV="​",gV="≢",vV="⤨",yV="≂̸",_V="≫",CV="≪",bV=`
2
+ `,kV="∄",wV="∄",EV="𝔑",xV="𝔫",SV="≧̸",TV="≱",AV="≱",NV="≧̸",DV="⩾̸",MV="⩾̸",BV="⋙̸",$V="≵",OV="≫⃒",LV="≯",IV="≯",PV="≫̸",FV="↮",VV="⇎",RV="⫲",zV="∋",UV="⋼",qV="⋺",HV="∋",jV="Њ",WV="њ",ZV="↚",KV="⇍",GV="‥",YV="≦̸",JV="≰",XV="↚",QV="⇍",eR="↮",tR="⇎",nR="≰",oR="≦̸",rR="⩽̸",iR="⩽̸",sR="≮",aR="⋘̸",lR="≴",cR="≪⃒",uR="≮",dR="⋪",fR="⋬",pR="≪̸",mR="∤",hR="⁠",gR=" ",vR="𝕟",yR="ℕ",_R="⫬",CR="¬",bR="≢",kR="≭",wR="∦",ER="∉",xR="≠",SR="≂̸",TR="∄",AR="≯",NR="≱",DR="≧̸",MR="≫̸",BR="≹",$R="⩾̸",OR="≵",LR="≎̸",IR="≏̸",PR="∉",FR="⋵̸",VR="⋹̸",RR="∉",zR="⋷",UR="⋶",qR="⧏̸",HR="⋪",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="⊁",yz="⪰̸",_z="⋡",Cz="≿̸",bz="⊃⃒",kz="⊉",wz="≁",Ez="≄",xz="≇",Sz="≉",Tz="∤",Az="∦",Nz="∦",Dz="⫽⃥",Mz="∂̸",Bz="⨔",$z="⊀",Oz="⋠",Lz="⊀",Iz="⪯̸",Pz="⪯̸",Fz="⤳̸",Vz="↛",Rz="⇏",zz="↝̸",Uz="↛",qz="⇏",Hz="⋫",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="⊃⃒",yU="⊉",_U="⫆̸",CU="≹",bU="Ñ",kU="ñ",wU="≸",EU="⋪",xU="⋬",SU="⋫",TU="⋭",AU="Ν",NU="ν",DU="#",MU="№",BU=" ",$U="≍⃒",OU="⊬",LU="⊭",IU="⊮",PU="⊯",FU="≥⃒",VU=">⃒",RU="⤄",zU="⧞",UU="⤂",qU="≤⃒",HU="<⃒",jU="⊴⃒",WU="⤃",ZU="⊵⃒",KU="∼⃒",GU="⤣",YU="↖",JU="⇖",XU="↖",QU="⤧",eq="Ó",tq="ó",nq="⊛",oq="Ô",rq="ô",iq="⊚",sq="О",aq="о",lq="⊝",cq="Ő",uq="ő",dq="⨸",fq="⊙",pq="⦼",mq="Œ",hq="œ",gq="⦿",vq="𝔒",yq="𝔬",_q="˛",Cq="Ò",bq="ò",kq="⧁",wq="⦵",Eq="Ω",xq="∮",Sq="↺",Tq="⦾",Aq="⦻",Nq="‾",Dq="⧀",Mq="Ō",Bq="ō",$q="Ω",Oq="ω",Lq="Ο",Iq="ο",Pq="⦶",Fq="⊖",Vq="𝕆",Rq="𝕠",zq="⦷",Uq="“",qq="‘",Hq="⦹",jq="⊕",Wq="↻",Zq="⩔",Kq="∨",Gq="⩝",Yq="ℴ",Jq="ℴ",Xq="ª",Qq="º",eH="⊶",tH="⩖",nH="⩗",oH="⩛",rH="Ⓢ",iH="𝒪",sH="ℴ",aH="Ø",lH="ø",cH="⊘",uH="Õ",dH="õ",fH="⨶",pH="⨷",mH="⊗",hH="Ö",gH="ö",vH="⌽",yH="‾",_H="⏞",CH="⎴",bH="⏜",kH="¶",wH="∥",EH="∥",xH="⫳",SH="⫽",TH="∂",AH="∂",NH="П",DH="п",MH="%",BH=".",$H="‰",OH="⊥",LH="‱",IH="𝔓",PH="𝔭",FH="Φ",VH="φ",RH="ϕ",zH="ℳ",UH="☎",qH="Π",HH="π",jH="⋔",WH="ϖ",ZH="ℏ",KH="ℎ",GH="ℏ",YH="⨣",JH="⊞",XH="⨢",QH="+",ej="∔",tj="⨥",nj="⩲",oj="±",rj="±",ij="⨦",sj="⨧",aj="±",lj="ℌ",cj="⨕",uj="𝕡",dj="ℙ",fj="£",pj="⪷",mj="⪻",hj="≺",gj="≼",vj="⪷",yj="≺",_j="≼",Cj="≺",bj="⪯",kj="≼",wj="≾",Ej="⪯",xj="⪹",Sj="⪵",Tj="⋨",Aj="⪯",Nj="⪳",Dj="≾",Mj="′",Bj="″",$j="ℙ",Oj="⪹",Lj="⪵",Ij="⋨",Pj="∏",Fj="∏",Vj="⌮",Rj="⌒",zj="⌓",Uj="∝",qj="∝",Hj="∷",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="√",yW="⦳",_W="⟩",CW="⟫",bW="⦒",kW="⦥",wW="⟩",EW="»",xW="⥵",SW="⇥",TW="⤠",AW="⤳",NW="→",DW="↠",MW="⇒",BW="⤞",$W="↪",OW="↬",LW="⥅",IW="⥴",PW="⤖",FW="↣",VW="↝",RW="⤚",zW="⤜",UW="∶",qW="ℚ",HW="⤍",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="▭",yZ="®",_Z="®",CZ="∋",bZ="⇋",kZ="⥯",wZ="⥽",EZ="⌋",xZ="𝔯",SZ="ℜ",TZ="⥤",AZ="⇁",NZ="⇀",DZ="⥬",MZ="Ρ",BZ="ρ",$Z="ϱ",OZ="⟩",LZ="⇥",IZ="→",PZ="→",FZ="⇒",VZ="⇄",RZ="↣",zZ="⌉",UZ="⟧",qZ="⥝",HZ="⥕",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="⎱",yK="⎱",_K="⫮",CK="⟭",bK="⇾",kK="⟧",wK="⦆",EK="𝕣",xK="ℝ",SK="⨮",TK="⨵",AK="⥰",NK=")",DK="⦔",MK="⨒",BK="⇉",$K="⇛",OK="›",LK="𝓇",IK="ℛ",PK="↱",FK="↱",VK="]",RK="’",zK="’",UK="⋌",qK="⋊",HK="▹",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="С",yG="с",_G="⊡",CG="⋅",bG="⩦",kG="⤥",wG="↘",EG="⇘",xG="↘",SG="§",TG=";",AG="⤩",NG="∖",DG="∖",MG="✶",BG="𝔖",$G="𝔰",OG="⌢",LG="♯",IG="Щ",PG="щ",FG="Ш",VG="ш",RG="↓",zG="←",UG="∣",qG="∥",HG="→",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="⪬︀",yY="Ь",_Y="ь",CY="⌿",bY="⧄",kY="/",wY="𝕊",EY="𝕤",xY="♠",SY="♠",TY="∥",AY="⊓",NY="⊓︀",DY="⊔",MY="⊔︀",BY="√",$Y="⊏",OY="⊑",LY="⊏",IY="⊑",PY="⊐",FY="⊒",VY="⊐",RY="⊒",zY="□",UY="□",qY="⊓",HY="⊏",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="⫋",yJ="⊊",_J="⪿",CJ="⥹",bJ="⊂",kJ="⋐",wJ="⊆",EJ="⫅",xJ="⊆",SJ="⊊",TJ="⫋",AJ="⫇",NJ="⫕",DJ="⫓",MJ="⪸",BJ="≻",$J="≽",OJ="≻",LJ="⪰",IJ="≽",PJ="≿",FJ="⪰",VJ="⪺",RJ="⪶",zJ="⋩",UJ="≿",qJ="∋",HJ="∑",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="⫌",yX="⫈",_X="⫔",CX="⫖",bX="⤦",kX="↙",wX="⇙",EX="↙",xX="⤪",SX="ß",TX=" ",AX="⌖",NX="Τ",DX="τ",MX="⎴",BX="Ť",$X="ť",OX="Ţ",LX="ţ",IX="Т",PX="т",FX="⃛",VX="⌕",RX="𝔗",zX="𝔱",UX="∴",qX="∴",HX="∴",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="⊤",yQ="𝕋",_Q="𝕥",CQ="⫚",bQ="⤩",kQ="‴",wQ="™",EQ="™",xQ="▵",SQ="▿",TQ="◃",AQ="⊴",NQ="≜",DQ="▹",MQ="⊵",BQ="◬",$Q="≜",OQ="⨺",LQ="⃛",IQ="⨹",PQ="⧍",FQ="⨻",VQ="⏢",RQ="𝒯",zQ="𝓉",UQ="Ц",qQ="ц",HQ="Ћ",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="𝔲",yee="Ù",_ee="ù",Cee="⥣",bee="↿",kee="↾",wee="▀",Eee="⌜",xee="⌜",See="⌏",Tee="◸",Aee="Ū",Nee="ū",Dee="¨",Mee="_",Bee="⏟",$ee="⎵",Oee="⏝",Lee="⋃",Iee="⊎",Pee="Ų",Fee="ų",Vee="𝕌",Ree="𝕦",zee="⤒",Uee="↑",qee="↑",Hee="⇑",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="⋰",yte="Ũ",_te="ũ",Cte="▵",bte="▴",kte="⇈",wte="Ü",Ete="ü",xte="⦧",Ste="⦜",Tte="ϵ",Ate="ϰ",Nte="∅",Dte="ϕ",Mte="ϖ",Bte="∝",$te="↕",Ote="⇕",Lte="ϱ",Ite="ς",Pte="⊊︀",Fte="⫋︀",Vte="⊋︀",Rte="⫌︀",zte="ϑ",Ute="⊲",qte="⊳",Hte="⫨",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="⊂⃒",yne="⊃⃒",_ne="𝕍",Cne="𝕧",bne="∝",kne="⊳",wne="𝒱",Ene="𝓋",xne="⫋︀",Sne="⊊︀",Tne="⫌︀",Ane="⊋︀",Nne="⊪",Dne="⦚",Mne="Ŵ",Bne="ŵ",$ne="⩟",One="∧",Lne="⋀",Ine="≙",Pne="℘",Fne="𝔚",Vne="𝔴",Rne="𝕎",zne="𝕨",Une="℘",qne="≀",Hne="≀",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="⨄",yoe="△",_oe="⋁",Coe="⋀",boe="Ý",koe="ý",woe="Я",Eoe="я",xoe="Ŷ",Soe="ŷ",Toe="Ы",Aoe="ы",Noe="¥",Doe="𝔜",Moe="𝔶",Boe="Ї",$oe="ї",Ooe="𝕐",Loe="𝕪",Ioe="𝒴",Poe="𝓎",Foe="Ю",Voe="ю",Roe="ÿ",zoe="Ÿ",Uoe="Ź",qoe="ź",Hoe="Ž",joe="ž",Woe="З",Zoe="з",Koe="Ż",Goe="ż",Yoe="ℨ",Joe="​",Xoe="Ζ",Qoe="ζ",ere="𝔷",tre="ℨ",nre="Ж",ore="ж",rre="⇝",ire="𝕫",sre="ℤ",are="𝒵",lre="𝓏",cre="‍",ure="‌",dre={Aacute:K9,aacute:G9,Abreve:Y9,abreve:J9,ac:X9,acd:Q9,acE:e4,Acirc:t4,acirc:n4,acute:o4,Acy:r4,acy:i4,AElig:s4,aelig:a4,af:l4,Afr:c4,afr:u4,Agrave:d4,agrave:f4,alefsym:p4,aleph:m4,Alpha:h4,alpha:g4,Amacr:v4,amacr:y4,amalg:_4,amp:C4,AMP:b4,andand:k4,And:w4,and:E4,andd:x4,andslope:S4,andv:T4,ang:A4,ange:N4,angle:D4,angmsdaa:M4,angmsdab:B4,angmsdac:$4,angmsdad:O4,angmsdae:L4,angmsdaf:I4,angmsdag:P4,angmsdah:F4,angmsd:V4,angrt:R4,angrtvb:z4,angrtvbd:U4,angsph:q4,angst:H4,angzarr:j4,Aogon:W4,aogon:Z4,Aopf:K4,aopf:G4,apacir:Y4,ap:J4,apE:X4,ape:Q4,apid:e8,apos:t8,ApplyFunction:n8,approx:o8,approxeq:r8,Aring:i8,aring:s8,Ascr:a8,ascr:l8,Assign:c8,ast:u8,asymp:d8,asympeq:f8,Atilde:p8,atilde:m8,Auml:h8,auml:g8,awconint:v8,awint:y8,backcong:_8,backepsilon:C8,backprime:b8,backsim:k8,backsimeq:w8,Backslash:E8,Barv:x8,barvee:S8,barwed:T8,Barwed:A8,barwedge:N8,bbrk:D8,bbrktbrk:M8,bcong:B8,Bcy:$8,bcy:O8,bdquo:L8,becaus:I8,because:P8,Because:F8,bemptyv:V8,bepsi:R8,bernou:z8,Bernoullis:U8,Beta:q8,beta:H8,beth:j8,between:W8,Bfr:Z8,bfr:K8,bigcap:G8,bigcirc:Y8,bigcup:J8,bigodot:X8,bigoplus:Q8,bigotimes:ek,bigsqcup:tk,bigstar:nk,bigtriangledown:ok,bigtriangleup:rk,biguplus:ik,bigvee:sk,bigwedge:ak,bkarow:lk,blacklozenge:ck,blacksquare:uk,blacktriangle:dk,blacktriangledown:fk,blacktriangleleft:pk,blacktriangleright:mk,blank:hk,blk12:gk,blk14:vk,blk34:yk,block:_k,bne:Ck,bnequiv:bk,bNot:kk,bnot:wk,Bopf:Ek,bopf:xk,bot:Sk,bottom:Tk,bowtie:Ak,boxbox:Nk,boxdl:Dk,boxdL:Mk,boxDl:Bk,boxDL:$k,boxdr:Ok,boxdR:Lk,boxDr:Ik,boxDR:Pk,boxh:Fk,boxH:Vk,boxhd:Rk,boxHd:zk,boxhD:Uk,boxHD:qk,boxhu:Hk,boxHu:jk,boxhU:Wk,boxHU:Zk,boxminus:Kk,boxplus:Gk,boxtimes:Yk,boxul:Jk,boxuL:Xk,boxUl:Qk,boxUL:e6,boxur:t6,boxuR:n6,boxUr:o6,boxUR:r6,boxv:i6,boxV:s6,boxvh:a6,boxvH:l6,boxVh:c6,boxVH:u6,boxvl:d6,boxvL:f6,boxVl:p6,boxVL:m6,boxvr:h6,boxvR:g6,boxVr:v6,boxVR:y6,bprime:_6,breve:C6,Breve:b6,brvbar:k6,bscr:w6,Bscr:E6,bsemi:x6,bsim:S6,bsime:T6,bsolb:A6,bsol:N6,bsolhsub:D6,bull:M6,bullet:B6,bump:$6,bumpE:O6,bumpe:L6,Bumpeq:I6,bumpeq:P6,Cacute:F6,cacute:V6,capand:R6,capbrcup:z6,capcap:U6,cap:q6,Cap:H6,capcup:j6,capdot:W6,CapitalDifferentialD:Z6,caps:K6,caret:G6,caron:Y6,Cayleys:J6,ccaps:X6,Ccaron:Q6,ccaron:ew,Ccedil:tw,ccedil:nw,Ccirc:ow,ccirc:rw,Cconint:iw,ccups:sw,ccupssm:aw,Cdot:lw,cdot:cw,cedil:uw,Cedilla:dw,cemptyv:fw,cent:pw,centerdot:mw,CenterDot:hw,cfr:gw,Cfr:vw,CHcy:yw,chcy:_w,check:Cw,checkmark:bw,Chi:kw,chi:ww,circ:Ew,circeq:xw,circlearrowleft:Sw,circlearrowright:Tw,circledast:Aw,circledcirc:Nw,circleddash:Dw,CircleDot:Mw,circledR:Bw,circledS:$w,CircleMinus:Ow,CirclePlus:Lw,CircleTimes:Iw,cir:Pw,cirE:Fw,cire:Vw,cirfnint:Rw,cirmid:zw,cirscir:Uw,ClockwiseContourIntegral:qw,CloseCurlyDoubleQuote:Hw,CloseCurlyQuote:jw,clubs:Ww,clubsuit:Zw,colon:Kw,Colon:Gw,Colone:Yw,colone:Jw,coloneq:Xw,comma:Qw,commat:eE,comp:tE,compfn:nE,complement:oE,complexes:rE,cong:iE,congdot:sE,Congruent:aE,conint:lE,Conint:cE,ContourIntegral:uE,copf:dE,Copf:fE,coprod:pE,Coproduct:mE,copy:hE,COPY:gE,copysr:vE,CounterClockwiseContourIntegral:yE,crarr:_E,cross:CE,Cross:bE,Cscr:kE,cscr:wE,csub:EE,csube:xE,csup:SE,csupe:TE,ctdot:AE,cudarrl:NE,cudarrr:DE,cuepr:ME,cuesc:BE,cularr:$E,cularrp:OE,cupbrcap:LE,cupcap:IE,CupCap:PE,cup:FE,Cup:VE,cupcup:RE,cupdot:zE,cupor:UE,cups:qE,curarr:HE,curarrm:jE,curlyeqprec:WE,curlyeqsucc:ZE,curlyvee:KE,curlywedge:GE,curren:YE,curvearrowleft:JE,curvearrowright:XE,cuvee:QE,cuwed:ex,cwconint:tx,cwint:nx,cylcty:ox,dagger:rx,Dagger:ix,daleth:sx,darr:ax,Darr:lx,dArr:cx,dash:ux,Dashv:dx,dashv:fx,dbkarow:px,dblac:mx,Dcaron:hx,dcaron:gx,Dcy:vx,dcy:yx,ddagger:_x,ddarr:Cx,DD:bx,dd:kx,DDotrahd:wx,ddotseq:Ex,deg:xx,Del:Sx,Delta:Tx,delta:Ax,demptyv:Nx,dfisht:Dx,Dfr:Mx,dfr:Bx,dHar:$x,dharl:Ox,dharr:Lx,DiacriticalAcute:Ix,DiacriticalDot:Px,DiacriticalDoubleAcute:Fx,DiacriticalGrave:Vx,DiacriticalTilde:Rx,diam:zx,diamond:Ux,Diamond:qx,diamondsuit:Hx,diams:jx,die:Wx,DifferentialD:Zx,digamma:Kx,disin:Gx,div:Yx,divide:Jx,divideontimes:Xx,divonx:Qx,DJcy:eS,djcy:tS,dlcorn:nS,dlcrop:oS,dollar:rS,Dopf:iS,dopf:sS,Dot:aS,dot:lS,DotDot:cS,doteq:uS,doteqdot:dS,DotEqual:fS,dotminus:pS,dotplus:mS,dotsquare:hS,doublebarwedge:gS,DoubleContourIntegral:vS,DoubleDot:yS,DoubleDownArrow:_S,DoubleLeftArrow:CS,DoubleLeftRightArrow:bS,DoubleLeftTee:kS,DoubleLongLeftArrow:wS,DoubleLongLeftRightArrow:ES,DoubleLongRightArrow:xS,DoubleRightArrow:SS,DoubleRightTee:TS,DoubleUpArrow:AS,DoubleUpDownArrow:NS,DoubleVerticalBar:DS,DownArrowBar:MS,downarrow:BS,DownArrow:$S,Downarrow:OS,DownArrowUpArrow:LS,DownBreve:IS,downdownarrows:PS,downharpoonleft:FS,downharpoonright:VS,DownLeftRightVector:RS,DownLeftTeeVector:zS,DownLeftVectorBar:US,DownLeftVector:qS,DownRightTeeVector:HS,DownRightVectorBar:jS,DownRightVector:WS,DownTeeArrow:ZS,DownTee:KS,drbkarow:GS,drcorn:YS,drcrop:JS,Dscr:XS,dscr:QS,DScy:eT,dscy:tT,dsol:nT,Dstrok:oT,dstrok:rT,dtdot:iT,dtri:sT,dtrif:aT,duarr:lT,duhar:cT,dwangle:uT,DZcy:dT,dzcy:fT,dzigrarr:pT,Eacute:mT,eacute:hT,easter:gT,Ecaron:vT,ecaron:yT,Ecirc:_T,ecirc:CT,ecir:bT,ecolon:kT,Ecy:wT,ecy:ET,eDDot:xT,Edot:ST,edot:TT,eDot:AT,ee:NT,efDot:DT,Efr:MT,efr:BT,eg:$T,Egrave:OT,egrave:LT,egs:IT,egsdot:PT,el:FT,Element:VT,elinters:RT,ell:zT,els:UT,elsdot:qT,Emacr:HT,emacr:jT,empty:WT,emptyset:ZT,EmptySmallSquare:KT,emptyv:GT,EmptyVerySmallSquare:YT,emsp13:JT,emsp14:XT,emsp:QT,ENG:eA,eng:tA,ensp:nA,Eogon:oA,eogon:rA,Eopf:iA,eopf:sA,epar:aA,eparsl:lA,eplus:cA,epsi:uA,Epsilon:dA,epsilon:fA,epsiv:pA,eqcirc:mA,eqcolon:hA,eqsim:gA,eqslantgtr:vA,eqslantless:yA,Equal:_A,equals:CA,EqualTilde:bA,equest:kA,Equilibrium:wA,equiv:EA,equivDD:xA,eqvparsl:SA,erarr:TA,erDot:AA,escr:NA,Escr:DA,esdot:MA,Esim:BA,esim:$A,Eta:OA,eta:LA,ETH:IA,eth:PA,Euml:FA,euml:VA,euro:RA,excl:zA,exist:UA,Exists:qA,expectation:HA,exponentiale:jA,ExponentialE:WA,fallingdotseq:ZA,Fcy:KA,fcy:GA,female:YA,ffilig:JA,fflig:XA,ffllig:QA,Ffr:eN,ffr:tN,filig:nN,FilledSmallSquare:oN,FilledVerySmallSquare:rN,fjlig:iN,flat:sN,fllig:aN,fltns:lN,fnof:cN,Fopf:uN,fopf:dN,forall:fN,ForAll:pN,fork:mN,forkv:hN,Fouriertrf:gN,fpartint:vN,frac12:yN,frac13:_N,frac14:CN,frac15:bN,frac16:kN,frac18:wN,frac23:EN,frac25:xN,frac34:SN,frac35:TN,frac38:AN,frac45:NN,frac56:DN,frac58:MN,frac78:BN,frasl:$N,frown:ON,fscr:LN,Fscr:IN,gacute:PN,Gamma:FN,gamma:VN,Gammad:RN,gammad:zN,gap:UN,Gbreve:qN,gbreve:HN,Gcedil:jN,Gcirc:WN,gcirc:ZN,Gcy:KN,gcy:GN,Gdot:YN,gdot:JN,ge:XN,gE:QN,gEl:eD,gel:tD,geq:nD,geqq:oD,geqslant:rD,gescc:iD,ges:sD,gesdot:aD,gesdoto:lD,gesdotol:cD,gesl:uD,gesles:dD,Gfr:fD,gfr:pD,gg:mD,Gg:hD,ggg:gD,gimel:vD,GJcy:yD,gjcy:_D,gla:CD,gl:bD,glE:kD,glj:wD,gnap:ED,gnapprox:xD,gne:SD,gnE:TD,gneq:AD,gneqq:ND,gnsim:DD,Gopf:MD,gopf:BD,grave:$D,GreaterEqual:OD,GreaterEqualLess:LD,GreaterFullEqual:ID,GreaterGreater:PD,GreaterLess:FD,GreaterSlantEqual:VD,GreaterTilde:RD,Gscr:zD,gscr:UD,gsim:qD,gsime:HD,gsiml:jD,gtcc:WD,gtcir:ZD,gt:KD,GT:GD,Gt:YD,gtdot:JD,gtlPar:XD,gtquest:QD,gtrapprox:eM,gtrarr:tM,gtrdot:nM,gtreqless:oM,gtreqqless:rM,gtrless:iM,gtrsim:sM,gvertneqq:aM,gvnE:lM,Hacek:cM,hairsp:uM,half:dM,hamilt:fM,HARDcy:pM,hardcy:mM,harrcir:hM,harr:gM,hArr:vM,harrw:yM,Hat:_M,hbar:CM,Hcirc:bM,hcirc:kM,hearts:wM,heartsuit:EM,hellip:xM,hercon:SM,hfr:TM,Hfr:AM,HilbertSpace:NM,hksearow:DM,hkswarow:MM,hoarr:BM,homtht:$M,hookleftarrow:OM,hookrightarrow:LM,hopf:IM,Hopf:PM,horbar:FM,HorizontalLine:VM,hscr:RM,Hscr:zM,hslash:UM,Hstrok:qM,hstrok:HM,HumpDownHump:jM,HumpEqual:WM,hybull:ZM,hyphen:KM,Iacute:GM,iacute:YM,ic:JM,Icirc:XM,icirc:QM,Icy:eB,icy:tB,Idot:nB,IEcy:oB,iecy:rB,iexcl:iB,iff:sB,ifr:aB,Ifr:lB,Igrave:cB,igrave:uB,ii:dB,iiiint:fB,iiint:pB,iinfin:mB,iiota:hB,IJlig:gB,ijlig:vB,Imacr:yB,imacr:_B,image:CB,ImaginaryI:bB,imagline:kB,imagpart:wB,imath:EB,Im:xB,imof:SB,imped:TB,Implies:AB,incare:NB,in:"∈",infin:DB,infintie:MB,inodot:BB,intcal:$B,int:OB,Int:LB,integers:IB,Integral:PB,intercal:FB,Intersection:VB,intlarhk:RB,intprod:zB,InvisibleComma:UB,InvisibleTimes:qB,IOcy:HB,iocy:jB,Iogon:WB,iogon:ZB,Iopf:KB,iopf:GB,Iota:YB,iota:JB,iprod:XB,iquest:QB,iscr:e$,Iscr:t$,isin:n$,isindot:o$,isinE:r$,isins:i$,isinsv:s$,isinv:a$,it:l$,Itilde:c$,itilde:u$,Iukcy:d$,iukcy:f$,Iuml:p$,iuml:m$,Jcirc:h$,jcirc:g$,Jcy:v$,jcy:y$,Jfr:_$,jfr:C$,jmath:b$,Jopf:k$,jopf:w$,Jscr:E$,jscr:x$,Jsercy:S$,jsercy:T$,Jukcy:A$,jukcy:N$,Kappa:D$,kappa:M$,kappav:B$,Kcedil:$$,kcedil:O$,Kcy:L$,kcy:I$,Kfr:P$,kfr:F$,kgreen:V$,KHcy:R$,khcy:z$,KJcy:U$,kjcy:q$,Kopf:H$,kopf:j$,Kscr:W$,kscr:Z$,lAarr:K$,Lacute:G$,lacute:Y$,laemptyv:J$,lagran:X$,Lambda:Q$,lambda:eO,lang:tO,Lang:nO,langd:oO,langle:rO,lap:iO,Laplacetrf:sO,laquo:aO,larrb:lO,larrbfs:cO,larr:uO,Larr:dO,lArr:fO,larrfs:pO,larrhk:mO,larrlp:hO,larrpl:gO,larrsim:vO,larrtl:yO,latail:_O,lAtail:CO,lat:bO,late:kO,lates:wO,lbarr:EO,lBarr:xO,lbbrk:SO,lbrace:TO,lbrack:AO,lbrke:NO,lbrksld:DO,lbrkslu:MO,Lcaron:BO,lcaron:$O,Lcedil:OO,lcedil:LO,lceil:IO,lcub:PO,Lcy:FO,lcy:VO,ldca:RO,ldquo:zO,ldquor:UO,ldrdhar:qO,ldrushar:HO,ldsh:jO,le:WO,lE:ZO,LeftAngleBracket:KO,LeftArrowBar:GO,leftarrow:YO,LeftArrow:JO,Leftarrow:XO,LeftArrowRightArrow:QO,leftarrowtail:eL,LeftCeiling:tL,LeftDoubleBracket:nL,LeftDownTeeVector:oL,LeftDownVectorBar:rL,LeftDownVector:iL,LeftFloor:sL,leftharpoondown:aL,leftharpoonup:lL,leftleftarrows:cL,leftrightarrow:uL,LeftRightArrow:dL,Leftrightarrow:fL,leftrightarrows:pL,leftrightharpoons:mL,leftrightsquigarrow:hL,LeftRightVector:gL,LeftTeeArrow:vL,LeftTee:yL,LeftTeeVector:_L,leftthreetimes:CL,LeftTriangleBar:bL,LeftTriangle:kL,LeftTriangleEqual:wL,LeftUpDownVector:EL,LeftUpTeeVector:xL,LeftUpVectorBar:SL,LeftUpVector:TL,LeftVectorBar:AL,LeftVector:NL,lEg:DL,leg:ML,leq:BL,leqq:$L,leqslant:OL,lescc:LL,les:IL,lesdot:PL,lesdoto:FL,lesdotor:VL,lesg:RL,lesges:zL,lessapprox:UL,lessdot:qL,lesseqgtr:HL,lesseqqgtr:jL,LessEqualGreater:WL,LessFullEqual:ZL,LessGreater:KL,lessgtr:GL,LessLess:YL,lesssim:JL,LessSlantEqual:XL,LessTilde:QL,lfisht:eI,lfloor:tI,Lfr:nI,lfr:oI,lg:rI,lgE:iI,lHar:sI,lhard:aI,lharu:lI,lharul:cI,lhblk:uI,LJcy:dI,ljcy:fI,llarr:pI,ll:mI,Ll:hI,llcorner:gI,Lleftarrow:vI,llhard:yI,lltri:_I,Lmidot:CI,lmidot:bI,lmoustache:kI,lmoust:wI,lnap:EI,lnapprox:xI,lne:SI,lnE:TI,lneq:AI,lneqq:NI,lnsim:DI,loang:MI,loarr:BI,lobrk:$I,longleftarrow:OI,LongLeftArrow:LI,Longleftarrow:II,longleftrightarrow:PI,LongLeftRightArrow:FI,Longleftrightarrow:VI,longmapsto:RI,longrightarrow:zI,LongRightArrow:UI,Longrightarrow:qI,looparrowleft:HI,looparrowright:jI,lopar:WI,Lopf:ZI,lopf:KI,loplus:GI,lotimes:YI,lowast:JI,lowbar:XI,LowerLeftArrow:QI,LowerRightArrow:eP,loz:tP,lozenge:nP,lozf:oP,lpar:rP,lparlt:iP,lrarr:sP,lrcorner:aP,lrhar:lP,lrhard:cP,lrm:uP,lrtri:dP,lsaquo:fP,lscr:pP,Lscr:mP,lsh:hP,Lsh:gP,lsim:vP,lsime:yP,lsimg:_P,lsqb:CP,lsquo:bP,lsquor:kP,Lstrok:wP,lstrok:EP,ltcc:xP,ltcir:SP,lt:TP,LT:AP,Lt:NP,ltdot:DP,lthree:MP,ltimes:BP,ltlarr:$P,ltquest:OP,ltri:LP,ltrie:IP,ltrif:PP,ltrPar:FP,lurdshar:VP,luruhar:RP,lvertneqq:zP,lvnE:UP,macr:qP,male:HP,malt:jP,maltese:WP,Map:"⤅",map:ZP,mapsto:KP,mapstodown:GP,mapstoleft:YP,mapstoup:JP,marker:XP,mcomma:QP,Mcy:eF,mcy:tF,mdash:nF,mDDot:oF,measuredangle:rF,MediumSpace:iF,Mellintrf:sF,Mfr:aF,mfr:lF,mho:cF,micro:uF,midast:dF,midcir:fF,mid:pF,middot:mF,minusb:hF,minus:gF,minusd:vF,minusdu:yF,MinusPlus:_F,mlcp:CF,mldr:bF,mnplus:kF,models:wF,Mopf:EF,mopf:xF,mp:SF,mscr:TF,Mscr:AF,mstpos:NF,Mu:DF,mu:MF,multimap:BF,mumap:$F,nabla:OF,Nacute:LF,nacute:IF,nang:PF,nap:FF,napE:VF,napid:RF,napos:zF,napprox:UF,natural:qF,naturals:HF,natur:jF,nbsp:WF,nbump:ZF,nbumpe:KF,ncap:GF,Ncaron:YF,ncaron:JF,Ncedil:XF,ncedil:QF,ncong:eV,ncongdot:tV,ncup:nV,Ncy:oV,ncy:rV,ndash:iV,nearhk:sV,nearr:aV,neArr:lV,nearrow:cV,ne:uV,nedot:dV,NegativeMediumSpace:fV,NegativeThickSpace:pV,NegativeThinSpace:mV,NegativeVeryThinSpace:hV,nequiv:gV,nesear:vV,nesim:yV,NestedGreaterGreater:_V,NestedLessLess:CV,NewLine:bV,nexist:kV,nexists:wV,Nfr:EV,nfr:xV,ngE:SV,nge:TV,ngeq:AV,ngeqq:NV,ngeqslant:DV,nges:MV,nGg:BV,ngsim:$V,nGt:OV,ngt:LV,ngtr:IV,nGtv:PV,nharr:FV,nhArr:VV,nhpar:RV,ni:zV,nis:UV,nisd:qV,niv:HV,NJcy:jV,njcy:WV,nlarr:ZV,nlArr:KV,nldr:GV,nlE:YV,nle:JV,nleftarrow:XV,nLeftarrow:QV,nleftrightarrow:eR,nLeftrightarrow:tR,nleq:nR,nleqq:oR,nleqslant:rR,nles:iR,nless:sR,nLl:aR,nlsim:lR,nLt:cR,nlt:uR,nltri:dR,nltrie:fR,nLtv:pR,nmid:mR,NoBreak:hR,NonBreakingSpace:gR,nopf:vR,Nopf:yR,Not:_R,not:CR,NotCongruent:bR,NotCupCap:kR,NotDoubleVerticalBar:wR,NotElement:ER,NotEqual:xR,NotEqualTilde:SR,NotExists:TR,NotGreater:AR,NotGreaterEqual:NR,NotGreaterFullEqual:DR,NotGreaterGreater:MR,NotGreaterLess:BR,NotGreaterSlantEqual:$R,NotGreaterTilde:OR,NotHumpDownHump:LR,NotHumpEqual:IR,notin:PR,notindot:FR,notinE:VR,notinva:RR,notinvb:zR,notinvc:UR,NotLeftTriangleBar:qR,NotLeftTriangle:HR,NotLeftTriangleEqual:jR,NotLess:WR,NotLessEqual:ZR,NotLessGreater:KR,NotLessLess:GR,NotLessSlantEqual:YR,NotLessTilde:JR,NotNestedGreaterGreater:XR,NotNestedLessLess:QR,notni:ez,notniva:tz,notnivb:nz,notnivc:oz,NotPrecedes:rz,NotPrecedesEqual:iz,NotPrecedesSlantEqual:sz,NotReverseElement:az,NotRightTriangleBar:lz,NotRightTriangle:cz,NotRightTriangleEqual:uz,NotSquareSubset:dz,NotSquareSubsetEqual:fz,NotSquareSuperset:pz,NotSquareSupersetEqual:mz,NotSubset:hz,NotSubsetEqual:gz,NotSucceeds:vz,NotSucceedsEqual:yz,NotSucceedsSlantEqual:_z,NotSucceedsTilde:Cz,NotSuperset:bz,NotSupersetEqual:kz,NotTilde:wz,NotTildeEqual:Ez,NotTildeFullEqual:xz,NotTildeTilde:Sz,NotVerticalBar:Tz,nparallel:Az,npar:Nz,nparsl:Dz,npart:Mz,npolint:Bz,npr:$z,nprcue:Oz,nprec:Lz,npreceq:Iz,npre:Pz,nrarrc:Fz,nrarr:Vz,nrArr:Rz,nrarrw:zz,nrightarrow:Uz,nRightarrow:qz,nrtri:Hz,nrtrie:jz,nsc:Wz,nsccue:Zz,nsce:Kz,Nscr:Gz,nscr:Yz,nshortmid:Jz,nshortparallel:Xz,nsim:Qz,nsime:eU,nsimeq:tU,nsmid:nU,nspar:oU,nsqsube:rU,nsqsupe:iU,nsub:sU,nsubE:aU,nsube:lU,nsubset:cU,nsubseteq:uU,nsubseteqq:dU,nsucc:fU,nsucceq:pU,nsup:mU,nsupE:hU,nsupe:gU,nsupset:vU,nsupseteq:yU,nsupseteqq:_U,ntgl:CU,Ntilde:bU,ntilde:kU,ntlg:wU,ntriangleleft:EU,ntrianglelefteq:xU,ntriangleright:SU,ntrianglerighteq:TU,Nu:AU,nu:NU,num:DU,numero:MU,numsp:BU,nvap:$U,nvdash:OU,nvDash:LU,nVdash:IU,nVDash:PU,nvge:FU,nvgt:VU,nvHarr:RU,nvinfin:zU,nvlArr:UU,nvle:qU,nvlt:HU,nvltrie:jU,nvrArr:WU,nvrtrie:ZU,nvsim:KU,nwarhk:GU,nwarr:YU,nwArr:JU,nwarrow:XU,nwnear:QU,Oacute:eq,oacute:tq,oast:nq,Ocirc:oq,ocirc:rq,ocir:iq,Ocy:sq,ocy:aq,odash:lq,Odblac:cq,odblac:uq,odiv:dq,odot:fq,odsold:pq,OElig:mq,oelig:hq,ofcir:gq,Ofr:vq,ofr:yq,ogon:_q,Ograve:Cq,ograve:bq,ogt:kq,ohbar:wq,ohm:Eq,oint:xq,olarr:Sq,olcir:Tq,olcross:Aq,oline:Nq,olt:Dq,Omacr:Mq,omacr:Bq,Omega:$q,omega:Oq,Omicron:Lq,omicron:Iq,omid:Pq,ominus:Fq,Oopf:Vq,oopf:Rq,opar:zq,OpenCurlyDoubleQuote:Uq,OpenCurlyQuote:qq,operp:Hq,oplus:jq,orarr:Wq,Or:Zq,or:Kq,ord:Gq,order:Yq,orderof:Jq,ordf:Xq,ordm:Qq,origof:eH,oror:tH,orslope:nH,orv:oH,oS:rH,Oscr:iH,oscr:sH,Oslash:aH,oslash:lH,osol:cH,Otilde:uH,otilde:dH,otimesas:fH,Otimes:pH,otimes:mH,Ouml:hH,ouml:gH,ovbar:vH,OverBar:yH,OverBrace:_H,OverBracket:CH,OverParenthesis:bH,para:kH,parallel:wH,par:EH,parsim:xH,parsl:SH,part:TH,PartialD:AH,Pcy:NH,pcy:DH,percnt:MH,period:BH,permil:$H,perp:OH,pertenk:LH,Pfr:IH,pfr:PH,Phi:FH,phi:VH,phiv:RH,phmmat:zH,phone:UH,Pi:qH,pi:HH,pitchfork:jH,piv:WH,planck:ZH,planckh:KH,plankv:GH,plusacir:YH,plusb:JH,pluscir:XH,plus:QH,plusdo:ej,plusdu:tj,pluse:nj,PlusMinus:oj,plusmn:rj,plussim:ij,plustwo:sj,pm:aj,Poincareplane:lj,pointint:cj,popf:uj,Popf:dj,pound:fj,prap:pj,Pr:mj,pr:hj,prcue:gj,precapprox:vj,prec:yj,preccurlyeq:_j,Precedes:Cj,PrecedesEqual:bj,PrecedesSlantEqual:kj,PrecedesTilde:wj,preceq:Ej,precnapprox:xj,precneqq:Sj,precnsim:Tj,pre:Aj,prE:Nj,precsim:Dj,prime:Mj,Prime:Bj,primes:$j,prnap:Oj,prnE:Lj,prnsim:Ij,prod:Pj,Product:Fj,profalar:Vj,profline:Rj,profsurf:zj,prop:Uj,Proportional:qj,Proportion:Hj,propto:jj,prsim:Wj,prurel:Zj,Pscr:Kj,pscr:Gj,Psi:Yj,psi:Jj,puncsp:Xj,Qfr:Qj,qfr:eW,qint:tW,qopf:nW,Qopf:oW,qprime:rW,Qscr:iW,qscr:sW,quaternions:aW,quatint:lW,quest:cW,questeq:uW,quot:dW,QUOT:fW,rAarr:pW,race:mW,Racute:hW,racute:gW,radic:vW,raemptyv:yW,rang:_W,Rang:CW,rangd:bW,range:kW,rangle:wW,raquo:EW,rarrap:xW,rarrb:SW,rarrbfs:TW,rarrc:AW,rarr:NW,Rarr:DW,rArr:MW,rarrfs:BW,rarrhk:$W,rarrlp:OW,rarrpl:LW,rarrsim:IW,Rarrtl:PW,rarrtl:FW,rarrw:VW,ratail:RW,rAtail:zW,ratio:UW,rationals:qW,rbarr:HW,rBarr:jW,RBarr:WW,rbbrk:ZW,rbrace:KW,rbrack:GW,rbrke:YW,rbrksld:JW,rbrkslu:XW,Rcaron:QW,rcaron:eZ,Rcedil:tZ,rcedil:nZ,rceil:oZ,rcub:rZ,Rcy:iZ,rcy:sZ,rdca:aZ,rdldhar:lZ,rdquo:cZ,rdquor:uZ,rdsh:dZ,real:fZ,realine:pZ,realpart:mZ,reals:hZ,Re:gZ,rect:vZ,reg:yZ,REG:_Z,ReverseElement:CZ,ReverseEquilibrium:bZ,ReverseUpEquilibrium:kZ,rfisht:wZ,rfloor:EZ,rfr:xZ,Rfr:SZ,rHar:TZ,rhard:AZ,rharu:NZ,rharul:DZ,Rho:MZ,rho:BZ,rhov:$Z,RightAngleBracket:OZ,RightArrowBar:LZ,rightarrow:IZ,RightArrow:PZ,Rightarrow:FZ,RightArrowLeftArrow:VZ,rightarrowtail:RZ,RightCeiling:zZ,RightDoubleBracket:UZ,RightDownTeeVector:qZ,RightDownVectorBar:HZ,RightDownVector:jZ,RightFloor:WZ,rightharpoondown:ZZ,rightharpoonup:KZ,rightleftarrows:GZ,rightleftharpoons:YZ,rightrightarrows:JZ,rightsquigarrow:XZ,RightTeeArrow:QZ,RightTee:eK,RightTeeVector:tK,rightthreetimes:nK,RightTriangleBar:oK,RightTriangle:rK,RightTriangleEqual:iK,RightUpDownVector:sK,RightUpTeeVector:aK,RightUpVectorBar:lK,RightUpVector:cK,RightVectorBar:uK,RightVector:dK,ring:fK,risingdotseq:pK,rlarr:mK,rlhar:hK,rlm:gK,rmoustache:vK,rmoust:yK,rnmid:_K,roang:CK,roarr:bK,robrk:kK,ropar:wK,ropf:EK,Ropf:xK,roplus:SK,rotimes:TK,RoundImplies:AK,rpar:NK,rpargt:DK,rppolint:MK,rrarr:BK,Rrightarrow:$K,rsaquo:OK,rscr:LK,Rscr:IK,rsh:PK,Rsh:FK,rsqb:VK,rsquo:RK,rsquor:zK,rthree:UK,rtimes:qK,rtri:HK,rtrie:jK,rtrif:WK,rtriltri:ZK,RuleDelayed:KK,ruluhar:GK,rx:YK,Sacute:JK,sacute:XK,sbquo:QK,scap:eG,Scaron:tG,scaron:nG,Sc:oG,sc:rG,sccue:iG,sce:sG,scE:aG,Scedil:lG,scedil:cG,Scirc:uG,scirc:dG,scnap:fG,scnE:pG,scnsim:mG,scpolint:hG,scsim:gG,Scy:vG,scy:yG,sdotb:_G,sdot:CG,sdote:bG,searhk:kG,searr:wG,seArr:EG,searrow:xG,sect:SG,semi:TG,seswar:AG,setminus:NG,setmn:DG,sext:MG,Sfr:BG,sfr:$G,sfrown:OG,sharp:LG,SHCHcy:IG,shchcy:PG,SHcy:FG,shcy:VG,ShortDownArrow:RG,ShortLeftArrow:zG,shortmid:UG,shortparallel:qG,ShortRightArrow:HG,ShortUpArrow:jG,shy:WG,Sigma:ZG,sigma:KG,sigmaf:GG,sigmav:YG,sim:JG,simdot:XG,sime:QG,simeq:eY,simg:tY,simgE:nY,siml:oY,simlE:rY,simne:iY,simplus:sY,simrarr:aY,slarr:lY,SmallCircle:cY,smallsetminus:uY,smashp:dY,smeparsl:fY,smid:pY,smile:mY,smt:hY,smte:gY,smtes:vY,SOFTcy:yY,softcy:_Y,solbar:CY,solb:bY,sol:kY,Sopf:wY,sopf:EY,spades:xY,spadesuit:SY,spar:TY,sqcap:AY,sqcaps:NY,sqcup:DY,sqcups:MY,Sqrt:BY,sqsub:$Y,sqsube:OY,sqsubset:LY,sqsubseteq:IY,sqsup:PY,sqsupe:FY,sqsupset:VY,sqsupseteq:RY,square:zY,Square:UY,SquareIntersection:qY,SquareSubset:HY,SquareSubsetEqual:jY,SquareSuperset:WY,SquareSupersetEqual:ZY,SquareUnion:KY,squarf:GY,squ:YY,squf:JY,srarr:XY,Sscr:QY,sscr:eJ,ssetmn:tJ,ssmile:nJ,sstarf:oJ,Star:rJ,star:iJ,starf:sJ,straightepsilon:aJ,straightphi:lJ,strns:cJ,sub:uJ,Sub:dJ,subdot:fJ,subE:pJ,sube:mJ,subedot:hJ,submult:gJ,subnE:vJ,subne:yJ,subplus:_J,subrarr:CJ,subset:bJ,Subset:kJ,subseteq:wJ,subseteqq:EJ,SubsetEqual:xJ,subsetneq:SJ,subsetneqq:TJ,subsim:AJ,subsub:NJ,subsup:DJ,succapprox:MJ,succ:BJ,succcurlyeq:$J,Succeeds:OJ,SucceedsEqual:LJ,SucceedsSlantEqual:IJ,SucceedsTilde:PJ,succeq:FJ,succnapprox:VJ,succneqq:RJ,succnsim:zJ,succsim:UJ,SuchThat:qJ,sum:HJ,Sum:jJ,sung:WJ,sup1:ZJ,sup2:KJ,sup3:GJ,sup:YJ,Sup:JJ,supdot:XJ,supdsub:QJ,supE:eX,supe:tX,supedot:nX,Superset:oX,SupersetEqual:rX,suphsol:iX,suphsub:sX,suplarr:aX,supmult:lX,supnE:cX,supne:uX,supplus:dX,supset:fX,Supset:pX,supseteq:mX,supseteqq:hX,supsetneq:gX,supsetneqq:vX,supsim:yX,supsub:_X,supsup:CX,swarhk:bX,swarr:kX,swArr:wX,swarrow:EX,swnwar:xX,szlig:SX,Tab:TX,target:AX,Tau:NX,tau:DX,tbrk:MX,Tcaron:BX,tcaron:$X,Tcedil:OX,tcedil:LX,Tcy:IX,tcy:PX,tdot:FX,telrec:VX,Tfr:RX,tfr:zX,there4:UX,therefore:qX,Therefore:HX,Theta:jX,theta:WX,thetasym:ZX,thetav:KX,thickapprox:GX,thicksim:YX,ThickSpace:JX,ThinSpace:XX,thinsp:QX,thkap:eQ,thksim:tQ,THORN:nQ,thorn:oQ,tilde:rQ,Tilde:iQ,TildeEqual:sQ,TildeFullEqual:aQ,TildeTilde:lQ,timesbar:cQ,timesb:uQ,times:dQ,timesd:fQ,tint:pQ,toea:mQ,topbot:hQ,topcir:gQ,top:vQ,Topf:yQ,topf:_Q,topfork:CQ,tosa:bQ,tprime:kQ,trade:wQ,TRADE:EQ,triangle:xQ,triangledown:SQ,triangleleft:TQ,trianglelefteq:AQ,triangleq:NQ,triangleright:DQ,trianglerighteq:MQ,tridot:BQ,trie:$Q,triminus:OQ,TripleDot:LQ,triplus:IQ,trisb:PQ,tritime:FQ,trpezium:VQ,Tscr:RQ,tscr:zQ,TScy:UQ,tscy:qQ,TSHcy:HQ,tshcy:jQ,Tstrok:WQ,tstrok:ZQ,twixt:KQ,twoheadleftarrow:GQ,twoheadrightarrow:YQ,Uacute:JQ,uacute:XQ,uarr:QQ,Uarr:eee,uArr:tee,Uarrocir:nee,Ubrcy:oee,ubrcy:ree,Ubreve:iee,ubreve:see,Ucirc:aee,ucirc:lee,Ucy:cee,ucy:uee,udarr:dee,Udblac:fee,udblac:pee,udhar:mee,ufisht:hee,Ufr:gee,ufr:vee,Ugrave:yee,ugrave:_ee,uHar:Cee,uharl:bee,uharr:kee,uhblk:wee,ulcorn:Eee,ulcorner:xee,ulcrop:See,ultri:Tee,Umacr:Aee,umacr:Nee,uml:Dee,UnderBar:Mee,UnderBrace:Bee,UnderBracket:$ee,UnderParenthesis:Oee,Union:Lee,UnionPlus:Iee,Uogon:Pee,uogon:Fee,Uopf:Vee,uopf:Ree,UpArrowBar:zee,uparrow:Uee,UpArrow:qee,Uparrow:Hee,UpArrowDownArrow:jee,updownarrow:Wee,UpDownArrow:Zee,Updownarrow:Kee,UpEquilibrium:Gee,upharpoonleft:Yee,upharpoonright:Jee,uplus:Xee,UpperLeftArrow:Qee,UpperRightArrow:ete,upsi:tte,Upsi:nte,upsih:ote,Upsilon:rte,upsilon:ite,UpTeeArrow:ste,UpTee:ate,upuparrows:lte,urcorn:cte,urcorner:ute,urcrop:dte,Uring:fte,uring:pte,urtri:mte,Uscr:hte,uscr:gte,utdot:vte,Utilde:yte,utilde:_te,utri:Cte,utrif:bte,uuarr:kte,Uuml:wte,uuml:Ete,uwangle:xte,vangrt:Ste,varepsilon:Tte,varkappa:Ate,varnothing:Nte,varphi:Dte,varpi:Mte,varpropto:Bte,varr:$te,vArr:Ote,varrho:Lte,varsigma:Ite,varsubsetneq:Pte,varsubsetneqq:Fte,varsupsetneq:Vte,varsupsetneqq:Rte,vartheta:zte,vartriangleleft:Ute,vartriangleright:qte,vBar:Hte,Vbar:jte,vBarv:Wte,Vcy:Zte,vcy:Kte,vdash:Gte,vDash:Yte,Vdash:Jte,VDash:Xte,Vdashl:Qte,veebar:ene,vee:tne,Vee:nne,veeeq:one,vellip:rne,verbar:ine,Verbar:sne,vert:ane,Vert:lne,VerticalBar:cne,VerticalLine:une,VerticalSeparator:dne,VerticalTilde:fne,VeryThinSpace:pne,Vfr:mne,vfr:hne,vltri:gne,vnsub:vne,vnsup:yne,Vopf:_ne,vopf:Cne,vprop:bne,vrtri:kne,Vscr:wne,vscr:Ene,vsubnE:xne,vsubne:Sne,vsupnE:Tne,vsupne:Ane,Vvdash:Nne,vzigzag:Dne,Wcirc:Mne,wcirc:Bne,wedbar:$ne,wedge:One,Wedge:Lne,wedgeq:Ine,weierp:Pne,Wfr:Fne,wfr:Vne,Wopf:Rne,wopf:zne,wp:Une,wr:qne,wreath:Hne,Wscr:jne,wscr:Wne,xcap:Zne,xcirc:Kne,xcup:Gne,xdtri:Yne,Xfr:Jne,xfr:Xne,xharr:Qne,xhArr:eoe,Xi:toe,xi:noe,xlarr:ooe,xlArr:roe,xmap:ioe,xnis:soe,xodot:aoe,Xopf:loe,xopf:coe,xoplus:uoe,xotime:doe,xrarr:foe,xrArr:poe,Xscr:moe,xscr:hoe,xsqcup:goe,xuplus:voe,xutri:yoe,xvee:_oe,xwedge:Coe,Yacute:boe,yacute:koe,YAcy:woe,yacy:Eoe,Ycirc:xoe,ycirc:Soe,Ycy:Toe,ycy:Aoe,yen:Noe,Yfr:Doe,yfr:Moe,YIcy:Boe,yicy:$oe,Yopf:Ooe,yopf:Loe,Yscr:Ioe,yscr:Poe,YUcy:Foe,yucy:Voe,yuml:Roe,Yuml:zoe,Zacute:Uoe,zacute:qoe,Zcaron:Hoe,zcaron:joe,Zcy:Woe,zcy:Zoe,Zdot:Koe,zdot:Goe,zeetrf:Yoe,ZeroWidthSpace:Joe,Zeta:Xoe,zeta:Qoe,zfr:ere,Zfr:tre,ZHcy:nre,zhcy:ore,zigrarr:rre,zopf:ire,Zopf:sre,Zscr:are,zscr:lre,zwj:cre,zwnj:ure};var Qp=dre,uu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,qr={},Vd={};function fre(t){var e,n,o=Vd[t];if(o)return o;for(o=Vd[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 Va(t,e,n){var o,r,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Va.defaultChars),typeof n>"u"&&(n=!0),l=fre(e),o=0,r=t.length;o<r;o++){if(s=t.charCodeAt(o),n&&s===37&&o+2<r&&/^[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<r&&(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}Va.defaultChars=";/?:@&=+$,-_.!~*'()#";Va.componentChars="-_.!~*'()";var pre=Va,Rd={};function mre(t){var e,n,o=Rd[t];if(o)return o;for(o=Rd[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 Ra(t,e){var n;return typeof e!="string"&&(e=Ra.defaultChars),n=mre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var r,s,a,l,c,u,d,f="";for(r=0,s=o.length;r<s;r+=3){if(a=parseInt(o.slice(r+1,r+3),16),a<128){f+=n[a];continue}if((a&224)===192&&r+3<s&&(l=parseInt(o.slice(r+4,r+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?f+="��":f+=String.fromCharCode(d),r+=3;continue}if((a&240)===224&&r+6<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+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),r+=6;continue}if((a&248)===240&&r+9<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),u=parseInt(o.slice(r+10,r+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))),r+=9;continue}f+="�"}return f})}Ra.defaultChars=";/?:@&=+$,#";Ra.componentChars="";var hre=Ra,gre=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 na(){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 vre=/^([a-z0-9.+-]+:)/i,yre=/:[0-9]*$/,_re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Cre=["<",">",'"',"`"," ","\r",`
3
+ `," "],bre=["{","}","|","\\","^","`"].concat(Cre),kre=["'"].concat(bre),zd=["%","/","?",";","#"].concat(kre),Ud=["/","?","#"],wre=255,qd=/^[+a-z0-9A-Z_-]{0,63}$/,Ere=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Hd={javascript:!0,"javascript:":!0},jd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function xre(t,e){if(t&&t instanceof na)return t;var n=new na;return n.parse(t,e),n}na.prototype.parse=function(t,e){var n,o,r,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=_re.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=vre.exec(l);if(u&&(u=u[0],r=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&Hd[u])&&(l=l.substr(2),this.slashes=!0)),!Hd[u]&&(a||u&&!jd[u])){var d=-1;for(n=0;n<Ud.length;n++)s=l.indexOf(Ud[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<zd.length;n++)s=l.indexOf(zd[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(qd)){for(var C="",v=0,_=y.length;v<_;v++)y.charCodeAt(v)>127?C+="x":C+=y[v];if(!C.match(qd)){var k=g.slice(0,n),w=g.slice(n+1),b=y.match(Ere);b&&(k.push(b[1]),w.unshift(b[2])),w.length&&(l=w.join(".")+l),this.hostname=k.join(".");break}}}}this.hostname.length>wre&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=l.indexOf("#");E!==-1&&(this.hash=l.substr(E),l=l.slice(0,E));var T=l.indexOf("?");return T!==-1&&(this.search=l.substr(T),l=l.slice(0,T)),l&&(this.pathname=l),jd[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};na.prototype.parseHost=function(t){var e=yre.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 Sre=xre;qr.encode=pre;qr.decode=hre;qr.format=gre;qr.parse=Sre;var xo={},wl,Wd;function em(){return Wd||(Wd=1,wl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),wl}var El,Zd;function tm(){return Zd||(Zd=1,El=/[\0-\x1F\x7F-\x9F]/),El}var xl,Kd;function Tre(){return Kd||(Kd=1,xl=/[\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]/),xl}var Sl,Gd;function nm(){return Gd||(Gd=1,Sl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Sl}var Yd;function Are(){return Yd||(Yd=1,xo.Any=em(),xo.Cc=tm(),xo.Cf=Tre(),xo.P=uu,xo.Z=nm()),xo}(function(t){function e(M){return Object.prototype.toString.call(M)}function n(M){return e(M)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(M,I){return o.call(M,I)}function s(M){var I=Array.prototype.slice.call(arguments,1);return I.forEach(function(P){if(P){if(typeof P!="object")throw new TypeError(P+"must be object");Object.keys(P).forEach(function(j){M[j]=P[j]})}}),M}function a(M,I,P){return[].concat(M.slice(0,I),P,M.slice(I+1))}function l(M){return!(M>=55296&&M<=57343||M>=64976&&M<=65007||(M&65535)===65535||(M&65535)===65534||M>=0&&M<=8||M===11||M>=14&&M<=31||M>=127&&M<=159||M>1114111)}function c(M){if(M>65535){M-=65536;var I=55296+(M>>10),P=56320+(M&1023);return String.fromCharCode(I,P)}return String.fromCharCode(M)}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=Qp;function h(M,I){var P;return r(m,I)?m[I]:I.charCodeAt(0)===35&&p.test(I)&&(P=I[1].toLowerCase()==="x"?parseInt(I.slice(2),16):parseInt(I.slice(1),10),l(P))?c(P):M}function g(M){return M.indexOf("\\")<0?M:M.replace(u,"$1")}function y(M){return M.indexOf("\\")<0&&M.indexOf("&")<0?M:M.replace(f,function(I,P,j){return P||h(I,j)})}var C=/[&<>"]/,v=/[&<>"]/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function k(M){return _[M]}function w(M){return C.test(M)?M.replace(v,k):M}var b=/[.?*+^$[\]\\(){}|-]/g;function E(M){return M.replace(b,"\\$&")}function T(M){switch(M){case 9:case 32:return!0}return!1}function S(M){if(M>=8192&&M<=8202)return!0;switch(M){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 N=uu;function L(M){return N.test(M)}function A(M){switch(M){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 D(M){return M=M.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(M=M.replace(/ẞ/g,"ß")),M.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=qr,t.lib.ucmicro=Are(),t.assign=s,t.isString=n,t.has=r,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=A,t.isPunctChar=L,t.escapeRE=E,t.normalizeReference=D})(Te);var za={},Nre=function(e,n,o){var r,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,r=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)r++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},Jd=Te.unescapeAll,Dre=function(e,n,o){var r,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(r=e.charCodeAt(a),r===10||r===60)return l;if(r===62)return l.pos=a+1,l.str=Jd(e.slice(n+1,a)),l.ok=!0,l;if(r===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(r=e.charCodeAt(a),!(r===32||r<32||r===127));){if(r===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(r===40&&(s++,s>32))return l;if(r===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=Jd(e.slice(n,a)),l.pos=a,l.ok=!0),l},Mre=Te.unescapeAll,Bre=function(e,n,o){var r,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(r=e.charCodeAt(l),r===s)return c.pos=l+1,c.lines=a,c.str=Mre(e.slice(n+1,l)),c.ok=!0,c;if(r===40&&s===41)return c;r===10?a++:r===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};za.parseLinkLabel=Nre;za.parseLinkDestination=Dre;za.parseLinkTitle=Bre;var $re=Te.assign,Ore=Te.unescapeAll,Wo=Te.escapeHtml,xn={};xn.code_inline=function(t,e,n,o,r){var s=t[e];return"<code"+r.renderAttrs(s)+">"+Wo(s.content)+"</code>"};xn.code_block=function(t,e,n,o,r){var s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+Wo(t[e].content)+`</code></pre>
4
+ `};xn.fence=function(t,e,n,o,r){var s=t[e],a=s.info?Ore(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)||Wo(s.content):u=Wo(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"+r.renderAttrs(m)+">"+u+`</code></pre>
6
6
  `):"<pre><code"+r.renderAttrs(s)+">"+u+`</code></pre>
7
7
  `};xn.image=function(t,e,n,o,r){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,o),r.renderToken(t,e,n)};xn.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
@@ -9,50 +9,50 @@
9
9
  `};xn.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
10
10
  `:`<br>
11
11
  `:`
12
- `};xn.text=function(t,e){return jo(t[e].content)};xn.html_block=function(t,e){return t[e].content};xn.html_inline=function(t,e){return t[e].content};function Ur(){this.rules=Bre({},xn)}Ur.prototype.renderAttrs=function(e){var n,o,r;if(!e.attrs)return"";for(r="",n=0,o=e.attrs.length;n<o;n++)r+=" "+jo(e.attrs[n][0])+'="'+jo(e.attrs[n][1])+'"';return r};Ur.prototype.renderToken=function(e,n,o){var r,s="",a=!1,l=e[n];return l.hidden?"":(l.block&&l.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
12
+ `};xn.text=function(t,e){return Wo(t[e].content)};xn.html_block=function(t,e){return t[e].content};xn.html_inline=function(t,e){return t[e].content};function Hr(){this.rules=$re({},xn)}Hr.prototype.renderAttrs=function(e){var n,o,r;if(!e.attrs)return"";for(r="",n=0,o=e.attrs.length;n<o;n++)r+=" "+Wo(e.attrs[n][0])+'="'+Wo(e.attrs[n][1])+'"';return r};Hr.prototype.renderToken=function(e,n,o){var r,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&&(r=e[n+1],(r.type==="inline"||r.hidden||r.nesting===-1&&r.tag===l.tag)&&(a=!1))),s+=a?`>
14
- `:">",s)};Ur.prototype.renderInline=function(t,e,n){for(var o,r="",s=this.rules,a=0,l=t.length;a<l;a++)o=t[a].type,typeof s[o]<"u"?r+=s[o](t,a,e,n,this):r+=this.renderToken(t,a,e);return r};Ur.prototype.renderInlineAsText=function(t,e,n){for(var o="",r=0,s=t.length;r<s;r++)t[r].type==="text"?o+=t[r].content:t[r].type==="image"?o+=this.renderInlineAsText(t[r].children,e,n):t[r].type==="softbreak"&&(o+=`
15
- `);return o};Ur.prototype.render=function(t,e,n){var o,r,s,a="",l=this.rules;for(o=0,r=t.length;o<r;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 Ore=Ur;function sn(){this.__rules__=[],this.__cache__=null}sn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};sn.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))})})};sn.prototype.at=function(t,e,n){var o=this.__find__(t),r=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=r.alt||[],this.__cache__=null};sn.prototype.before=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};sn.prototype.after=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};sn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};sn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,n.push(o)},this),this.__cache__=null,n};sn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};sn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,n.push(o)},this),this.__cache__=null,n};sn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var uu=sn,Lre=/\r\n?|\n/g,Ire=/\0/g,Pre=function(e){var n;n=e.src.replace(Lre,`
16
- `),n=n.replace(Ire,"�"),e.src=n},Fre=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)},Vre=function(e){var n=e.tokens,o,r,s;for(r=0,s=n.length;r<s;r++)o=n[r],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Rre=Se.arrayReplaceAt;function zre(t){return/^<a[>\s]/i.test(t)}function Ure(t){return/^<\/a\s*>/i.test(t)}var qre=function(e){var n,o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v=e.tokens,_;if(e.md.options.linkify){for(o=0,r=v.length;o<r;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"&&(zre(l.content)&&h>0&&h--,Ure(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=Rre(s,n,c)}}}},nm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Hre=/\((c|tm|r)\)/i,jre=/\((c|tm|r)\)/ig,Wre={c:"©",r:"®",tm:"™"};function Zre(t,e){return Wre[e.toLowerCase()]}function Kre(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(jre,Zre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Gre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&nm.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 Yre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Hre.test(e.tokens[n].content)&&Kre(e.tokens[n].children),nm.test(e.tokens[n].content)&&Gre(e.tokens[n].children))},Jd=Se.isWhiteSpace,Xd=Se.isPunctChar,Qd=Se.isMdAsciiPunct,Jre=/['"]/,e1=/['"]/g,t1="’";function As(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Xre(t,e){var n,o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b;for(k=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,v=k.length-1;v>=0&&!(k[v].level<=c);v--);if(k.length=v+1,o.type==="text"){r=o.content,a=0,l=r.length;e:for(;a<l&&(e1.lastIndex=a,s=e1.exec(r),!!s);){if(y=C=!0,a=s.index+1,_=s[0]==="'",d=32,s.index-1>=0)d=r.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=r.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=Qd(d)||Xd(String.fromCharCode(d)),m=Qd(f)||Xd(String.fromCharCode(f)),h=Jd(d),g=Jd(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=As(o.content,s.index,t1));continue}if(C){for(v=k.length-1;v>=0&&(u=k[v],!(k[v].level<c));v--)if(u.single===_&&k[v].level===c){u=k[v],_?(w=e.md.options.quotes[2],b=e.md.options.quotes[3]):(w=e.md.options.quotes[0],b=e.md.options.quotes[1]),o.content=As(o.content,s.index,b),t[u.token].content=As(t[u.token].content,u.pos,w),a+=b.length-1,u.token===n&&(a+=w.length-1),r=o.content,l=r.length,k.length=v;continue e}}y?k.push({token:n,pos:s.index,single:_,level:c}):C&&_&&(o.content=As(o.content,s.index,t1))}}}}var Qre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Jre.test(e.tokens[n].content)||Xre(e.tokens[n].children,e)},eie=function(e){var n,o,r,s,a,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(r=c[n].children,a=r.length,s=0;s<a;s++)r[s].type==="text_special"&&(r[s].type="text");for(s=l=0;s<a;s++)r[s].type==="text"&&s+1<a&&r[s+1].type==="text"?r[s+1].content=r[s].content+r[s+1].content:(s!==l&&(r[l]=r[s]),l++);s!==l&&(r.length=l)}};function qr(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}qr.prototype.attrIndex=function(e){var n,o,r;if(!this.attrs)return-1;for(n=this.attrs,o=0,r=n.length;o<r;o++)if(n[o][0]===e)return o;return-1};qr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};qr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r};qr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};qr.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 du=qr,tie=du;function om(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}om.prototype.Token=tie;var nie=om,oie=uu,Sl=[["normalize",Pre],["block",Fre],["inline",Vre],["linkify",qre],["replacements",Yre],["smartquotes",Qre],["text_join",eie]];function fu(){this.ruler=new oie;for(var t=0;t<Sl.length;t++)this.ruler.push(Sl[t][0],Sl[t][1])}fu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};fu.prototype.State=nie;var rie=fu,Tl=Se.isSpace;function Al(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function n1(t){var e=[],n=0,o=t.length,r,s=!1,a=0,l="";for(r=t.charCodeAt(n);n<o;)r===124&&(s?(l+=t.substring(a,n-1),a=n):(e.push(l+t.substring(a,n)),l="",a=n+1)),s=r===92,n++,r=t.charCodeAt(n);return e.push(l+t.substring(a)),e}var iie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b;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]||(b=e.src.charCodeAt(l++),b!==124&&b!==45&&b!==58&&!Tl(b))||w===45&&Tl(b))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Tl(s))return!1;l++}for(a=Al(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=Al(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=n1(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(r)return!0;for(v=e.parentType,e.parentType="table",k=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=k.length;c<u;c++)if(k[c](e,d,o,!0)){_=!0;break}if(_||(a=Al(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=n1(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},sie=function(e,n,o){var r,s,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=r=n+1;r<o;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,s=r;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},aie=function(e,n,o,r){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(r)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},lie=Se.isSpace,cie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b,E,T,S=e.lineMax,N=e.bMarks[n]+e.tShift[n],L=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(N)!==62)return!1;if(r)return!0;for(h=[],g=[],v=[],_=[],b=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",p=n;p<o&&(T=e.sCount[p]<e.blkIndent,N=e.bMarks[p]+e.tShift[p],L=e.eMarks[p],!(N>=L));p++){if(e.src.charCodeAt(N++)===62&&!T){for(c=e.sCount[p]+1,e.src.charCodeAt(N)===32?(N++,c++,s=!1,k=!0):e.src.charCodeAt(N)===9?(k=!0,(e.bsCount[p]+c)%4===3?(N++,c++,s=!1):s=!0):k=!1,m=c,h.push(e.bMarks[p]),e.bMarks[p]=N;N<L&&(a=e.src.charCodeAt(N),lie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;N++}d=N>=L,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(k?1:0),v.push(e.sCount[p]),e.sCount[p]=m-c,_.push(e.tShift[p]),e.tShift[p]=N-e.bMarks[p];continue}if(d)break;for(w=!1,l=0,u=b.length;l<u;l++)if(b[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,E=e.push("blockquote_open","blockquote",1),E.markup=">",E.map=f=[n,0],e.md.block.tokenize(e,n,p),E=e.push("blockquote_close","blockquote",-1),E.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},uie=Se.isSpace,die=function(e,n,o,r){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&&!uie(l))return!1;l===s&&a++}return a<3?!1:(r||(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)},rm=Se.isSpace;function o1(t,e){var n,o,r,s;return o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(s=t.src.charCodeAt(o),!rm(s))?-1:o}function r1(t,e){var n,o=t.bMarks[e]+t.tShift[e],r=o,s=t.eMarks[e];if(r+1>=s||(n=t.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=s)return-1;if(n=t.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<s&&(n=t.src.charCodeAt(r),!rm(n))?-1:r}function fie(t,e){var n,o,r=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var pie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b,E,T,S,N,L,A,D,M,I,P=n,W=!1,R=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&(W=!0),(N=r1(e,P))>=0){if(f=!0,A=e.bMarks[P]+e.tShift[P],C=Number(e.src.slice(A,N-1)),W&&C!==1)return!1}else if((N=o1(e,P))>=0)f=!1;else return!1;if(W&&e.skipSpaces(N)>=e.eMarks[P])return!1;if(r)return!0;for(y=e.src.charCodeAt(N-1),g=e.tokens.length,f?(I=e.push("ordered_list_open","ol",1),C!==1&&(I.attrs=[["start",C]])):I=e.push("bullet_list_open","ul",1),I.map=h=[P,0],I.markup=String.fromCharCode(y),L=!1,M=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";P<o;){for(S=N,v=e.eMarks[P],d=_=e.sCount[P]+N-(e.bMarks[P]+e.tShift[P]);S<v;){if(s=e.src.charCodeAt(S),s===9)_+=4-(_+e.bsCount[P])%4;else if(s===32)_++;else break;S++}if(a=S,a>=v?u=1:u=_-d,u>4&&(u=1),c=d+u,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(y),I.map=p=[P,0],f&&(I.info=e.src.slice(A,N-1)),T=e.tight,E=e.tShift[P],b=e.sCount[P],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[P]=a-e.bMarks[P],e.sCount[P]=_,a>=v&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,P,o,!0),(!e.tight||L)&&(R=!1),L=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[P]=E,e.sCount[P]=b,e.tight=T,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(y),P=e.line,p[1]=P,P>=o||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(D=!1,l=0,m=M.length;l<m;l++)if(M[l](e,P,o,!0)){D=!0;break}if(D)break;if(f){if(N=r1(e,P),N<0)break;A=e.bMarks[P]+e.tShift[P]}else if(N=o1(e,P),N<0)break;if(y!==e.src.charCodeAt(N-1))break}return f?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(y),h[1]=P,e.line=P,e.parentType=w,R&&fie(e,g),!0},mie=Se.normalizeReference,Ns=Se.isSpace,hie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w=0,b=e.bMarks[n]+e.tShift[n],E=e.eMarks[n],T=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<E;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===E||e.src.charCodeAt(b+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(),E=C.length,b=1;b<E;b++){if(s=C.charCodeAt(b),s===91)return!1;if(s===93){m=b;break}else s===10?w++:s===92&&(b++,b<E&&C.charCodeAt(b)===10&&w++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(b=m+2;b<E;b++)if(s=C.charCodeAt(b),s===10)w++;else if(!Ns(s))break;if(g=e.md.helpers.parseLinkDestination(C,b,E),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(b=g.pos,w+=g.lines,a=b,l=w,y=b;b<E;b++)if(s=C.charCodeAt(b),s===10)w++;else if(!Ns(s))break;for(g=e.md.helpers.parseLinkTitle(C,b,E),b<E&&y!==b&&g.ok?(k=g.str,b=g.pos,w+=g.lines):(k="",b=a,w=l);b<E&&(s=C.charCodeAt(b),!!Ns(s));)b++;if(b<E&&C.charCodeAt(b)!==10&&k)for(k="",b=a,w=l;b<E&&(s=C.charCodeAt(b),!!Ns(s));)b++;return b<E&&C.charCodeAt(b)!==10||(p=mie(C.slice(1,m)),!p)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:k,href:u}),e.parentType=h,e.line=n+w+1),!0)},gie=["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"],za={},vie="[a-zA-Z_:][a-zA-Z0-9:._-]*",yie="[^\"'=<>`\\x00-\\x20]+",_ie="'[^']*'",Cie='"[^"]*"',bie="(?:"+yie+"|"+_ie+"|"+Cie+")",kie="(?:\\s+"+vie+"(?:\\s*=\\s*"+bie+")?)",im="<[A-Za-z][A-Za-z0-9\\-]*"+kie+"*\\s*\\/?>",sm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",wie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Eie="<[?][\\s\\S]*?[?]>",xie="<![A-Z]+\\s+[^>]*>",Sie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Tie=new RegExp("^(?:"+im+"|"+sm+"|"+wie+"|"+Eie+"|"+xie+"|"+Sie+")"),Aie=new RegExp("^(?:"+im+"|"+sm+")");za.HTML_TAG_RE=Tie;za.HTML_OPEN_CLOSE_TAG_RE=Aie;var Nie=gie,Die=za.HTML_OPEN_CLOSE_TAG_RE,fr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Nie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Die.source+"\\s*$"),/^$/,!1]],Mie=function(e,n,o,r){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<fr.length&&!fr[s][0].test(c);s++);if(s===fr.length)return!1;if(r)return fr[s][2];if(a=n+1,!fr[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),fr[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},i1=Se.isSpace,Bie=function(e,n,o,r){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&&!i1(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&i1(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)},$ie=function(e,n,o){var r,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?(r=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=r,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},Oie=function(e,n,o){var r,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 r=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=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},am=du,Ua=Se.isSpace;function Sn(t,e,n,o){var r,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(r=s.charCodeAt(l),!f)if(Ua(r)){u++,r===9?d+=4-d%4:d++;continue}else f=!0;(r===10||l===c-1)&&(r!==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}Sn.prototype.push=function(t,e,n){var o=new am(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Sn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Sn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Sn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Ua(n));e++);return e};Sn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ua(this.src.charCodeAt(--e)))return e+1;return e};Sn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Sn.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};Sn.prototype.getLines=function(e,n,o,r){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||r?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),Ua(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("")};Sn.prototype.Token=am;var Lie=Sn,Iie=uu,Ds=[["table",iie,["paragraph","reference"]],["code",sie],["fence",aie,["paragraph","reference","blockquote","list"]],["blockquote",cie,["paragraph","reference","blockquote","list"]],["hr",die,["paragraph","reference","blockquote","list"]],["list",pie,["paragraph","reference","blockquote"]],["reference",hie],["html_block",Mie,["paragraph","reference","blockquote"]],["heading",Bie,["paragraph","reference","blockquote"]],["lheading",$ie],["paragraph",Oie]];function qa(){this.ruler=new Iie;for(var t=0;t<Ds.length;t++)this.ruler.push(Ds[t][0],Ds[t][1],{alt:(Ds[t][2]||[]).slice()})}qa.prototype.tokenize=function(t,e,n){for(var o,r,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,r=0;r<l;r++)if(o=a[r](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)}};qa.prototype.parse=function(t,e,n,o){var r;t&&(r=new this.State(t,e,n,o),this.tokenize(r,r.line,r.lineMax))};qa.prototype.State=Lie;var Pie=qa;function Fie(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 Vie=function(e,n){for(var o=e.pos;o<e.posMax&&!Fie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Rie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,zie=function(e,n){var o,r,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,r=e.posMax,o+3>r)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(Rie),!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)},Uie=Se.isSpace,qie=function(e,n){var o,r,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,r=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<r&&Uie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},Hie=Se.isSpace,pu=[];for(var s1=0;s1<256;s1++)pu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){pu[t.charCodeAt(0)]=1});var jie=function(e,n){var o,r,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),!!Hie(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(r=e.src.charCodeAt(c+1),r>=56320&&r<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&pu[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Wie=function(e,n){var o,r,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,r=e.posMax;f<r&&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<r&&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},Ha={};Ha.tokenize=function(e,n){var o,r,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(r=e.scanDelims(e.pos,!0),a=r.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:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function a1(t,e){var n,o,r,s,a,l=[],c=e.length;for(n=0;n<c;n++)r=e[n],r.marker===126&&r.end!==-1&&(s=e[r.end],a=t.tokens[r.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)}}Ha.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(a1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&a1(e,o[n].delimiters)};var ja={};ja.tokenize=function(e,n){var o,r,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(r=e.scanDelims(e.pos,l===42),o=0;o<r.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function l1(t,e){var n,o,r,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&&(r=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===r.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[r.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--))}ja.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(l1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&l1(e,o[n].delimiters)};var Zie=Se.normalizeReference,Nl=Se.isSpace,Kie=function(e,n){var o,r,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&&(r=e.src.charCodeAt(c),!(!Nl(r)&&r!==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&&(r=e.src.charCodeAt(c),!(!Nl(r)&&r!==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&&(r=e.src.charCodeAt(c),!(!Nl(r)&&r!==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[Zie(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},Gie=Se.normalizeReference,Dl=Se.isSpace,Yie=function(e,n){var o,r,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&&(r=e.src.charCodeAt(u),!(!Dl(r)&&r!==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&&(r=e.src.charCodeAt(u),!(!Dl(r)&&r!==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&&(r=e.src.charCodeAt(u),!(!Dl(r)&&r!==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[Gie(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},Jie=/^([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])?)*)$/,Xie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Qie=function(e,n){var o,r,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),Xie.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],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):Jie.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],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},ese=za.HTML_TAG_RE;function tse(t){return/^<a[>\s]/i.test(t)}function nse(t){return/^<\/a\s*>/i.test(t)}function ose(t){var e=t|32;return e>=97&&e<=122}var rse=function(e,n){var o,r,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&&!ose(o))||(r=e.src.slice(l).match(ese),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],tse(a.content)&&e.linkLevel++,nse(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},c1=Xp,ise=Se.has,sse=Se.isValidEntityCode,u1=Se.fromCodePoint,ase=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,lse=/^&([a-z][a-z0-9]{1,31});/i,cse=function(e,n){var o,r,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(ase),s)return n||(r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=sse(r)?u1(r):u1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(lse),s&&ise(c1,s[1]))return n||(a=e.push("text_special","",0),a.content=c1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function d1(t){var e,n,o,r,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(r=t[n],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.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,r.end=e,r.close=!1,a=-1,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var use=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(d1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&d1(o[n].delimiters)},dse=function(e){var n,o,r=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&r--,s[n].level=r,s[n].nesting>0&&r++,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)},mu=du,f1=Se.isWhiteSpace,p1=Se.isPunctChar,m1=Se.isMdAsciiPunct;function ns(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}ns.prototype.pushPending=function(){var t=new mu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ns.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new mu(t,e,n),r=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=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};ns.prototype.scanDelims=function(t,e){var n=t,o,r,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,r=n<h?this.src.charCodeAt(n):32,u=m1(o)||p1(String.fromCharCode(o)),f=m1(r)||p1(String.fromCharCode(r)),c=f1(o),d=f1(r),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}};ns.prototype.Token=mu;var fse=ns,h1=uu,Ml=[["text",Vie],["linkify",zie],["newline",qie],["escape",jie],["backticks",Wie],["strikethrough",Ha.tokenize],["emphasis",ja.tokenize],["link",Kie],["image",Yie],["autolink",Qie],["html_inline",rse],["entity",cse]],Bl=[["balance_pairs",use],["strikethrough",Ha.postProcess],["emphasis",ja.postProcess],["fragments_join",dse]];function os(){var t;for(this.ruler=new h1,t=0;t<Ml.length;t++)this.ruler.push(Ml[t][0],Ml[t][1]);for(this.ruler2=new h1,t=0;t<Bl.length;t++)this.ruler2.push(Bl[t][0],Bl[t][1])}os.prototype.skipToken=function(t){var e,n,o=t.pos,r=this.ruler.getRules(""),s=r.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=r[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};os.prototype.tokenize=function(t){for(var e,n,o,r=this.ruler.getRules(""),s=r.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=r[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()};os.prototype.parse=function(t,e,n,o){var r,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,r=0;r<a;r++)s[r](l)};os.prototype.State=fse;var pse=os,$l,g1;function mse(){return g1||(g1=1,$l=function(t){var e={};t=t||{},e.src_Any=Qp().source,e.src_Cc=em().source,e.src_Z=tm().source,e.src_P=cu.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}),$l}function dc(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 Wa(t){return Object.prototype.toString.call(t)}function hse(t){return Wa(t)==="[object String]"}function gse(t){return Wa(t)==="[object Object]"}function vse(t){return Wa(t)==="[object RegExp]"}function v1(t){return Wa(t)==="[object Function]"}function yse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var lm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function _se(t){return Object.keys(t||{}).reduce(function(e,n){return e||lm.hasOwnProperty(n)},!1)}var Cse={"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]",kse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function wse(t){t.__index__=-1,t.__text_cache__=""}function Ese(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function y1(){return function(t,e){e.normalize(t)}}function na(t){var e=t.re=mse()(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 r=[];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,gse(c)){vse(c.validate)?u.validate=Ese(c.validate):v1(c.validate)?u.validate=c.validate:s(l,c),v1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=y1();return}if(hse(c)){r.push(l);return}s(l,c)}}),r.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:y1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(yse).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"),wse(t)}function xse(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function fc(t,e){var n=new xse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||_se(t)&&(e=t,t={}),this.__opts__=dc({},lm,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=dc({},Cse,t),this.__compiled__={},this.__tlds__=kse,this.__tlds_replaced__=!1,this.re={},na(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,na(this),this};Ot.prototype.set=function(e){return this.__opts__=dc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,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&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,l=r.index+r[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};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Ot.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(fc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(fc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Ot.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,fc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,s){return o!==s[r-1]}).reverse(),na(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,na(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};var Sse=Ot;const kr=2147483647,gn=36,hu=1,Vi=26,Tse=38,Ase=700,cm=72,um=128,dm="-",Nse=/^xn--/,Dse=/[^\0-\x7F]/,Mse=/[\x2E\u3002\uFF0E\uFF61]/g,Bse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ol=gn-hu,vn=Math.floor,Ll=String.fromCharCode;function to(t){throw new RangeError(Bse[t])}function $se(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function fm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Mse,".");const r=t.split("."),s=$se(r,e).join(".");return o+s}function gu(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const pm=t=>String.fromCodePoint(...t),Ose=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:gn},_1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},mm=function(t,e,n){let o=0;for(t=n?vn(t/Ase):t>>1,t+=vn(t/e);t>Ol*Vi>>1;o+=gn)t=vn(t/Ol);return vn(o+(Ol+1)*t/(t+Tse))},vu=function(t){const e=[],n=t.length;let o=0,r=um,s=cm,a=t.lastIndexOf(dm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&to("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=gn;;f+=gn){l>=n&&to("invalid-input");const p=Ose(t.charCodeAt(l++));p>=gn&&to("invalid-input"),p>vn((kr-o)/d)&&to("overflow"),o+=p*d;const m=f<=s?hu:f>=s+Vi?Vi:f-s;if(p<m)break;const h=gn-m;d>vn(kr/h)&&to("overflow"),d*=h}const u=e.length+1;s=mm(o-c,u,c==0),vn(o/u)>kr-r&&to("overflow"),r+=vn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},yu=function(t){const e=[];t=gu(t);const n=t.length;let o=um,r=0,s=cm;for(const c of t)c<128&&e.push(Ll(c));const a=e.length;let l=a;for(a&&e.push(dm);l<n;){let c=kr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>vn((kr-r)/u)&&to("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>kr&&to("overflow"),d===o){let f=r;for(let p=gn;;p+=gn){const m=p<=s?hu:p>=s+Vi?Vi:p-s;if(f<m)break;const h=f-m,g=gn-m;e.push(Ll(_1(m+h%g,0))),f=vn(h/g)}e.push(Ll(_1(f,0))),s=mm(r,u,l===a),r=0,++l}++r,++o}return e.join("")},hm=function(t){return fm(t,function(e){return Nse.test(e)?vu(e.slice(4).toLowerCase()):e})},gm=function(t){return fm(t,function(e){return Dse.test(e)?"xn--"+yu(e):e})},Lse={version:"2.1.0",ucs2:{decode:gu,encode:pm},decode:vu,encode:yu,toASCII:gm,toUnicode:hm},Ise=Object.freeze(Object.defineProperty({__proto__:null,decode:vu,default:Lse,encode:yu,toASCII:gm,toUnicode:hm,ucs2decode:gu,ucs2encode:pm},Symbol.toStringTag,{value:"Module"})),Pse=o_(Ise);var Fse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Vse={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"]}}},Rse={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"]}}},xi=Se,zse=Ra,Use=Ore,qse=rie,Hse=Pie,jse=pse,Wse=Sse,Oo=zr,vm=Pse,Zse={default:Fse,zero:Vse,commonmark:Rse},Kse=/^(vbscript|javascript|file|data):/,Gse=/^data:image\/(gif|png|jpeg|webp);/;function Yse(t){var e=t.trim().toLowerCase();return Kse.test(e)?!!Gse.test(e):!0}var ym=["http:","https:","mailto:"];function Jse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||ym.indexOf(e.protocol)>=0))try{e.hostname=vm.toASCII(e.hostname)}catch{}return Oo.encode(Oo.format(e))}function Xse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||ym.indexOf(e.protocol)>=0))try{e.hostname=vm.toUnicode(e.hostname)}catch{}return Oo.decode(Oo.format(e),Oo.decode.defaultChars+"%")}function jt(t,e){if(!(this instanceof jt))return new jt(t,e);e||xi.isString(t)||(e=t||{},t="default"),this.inline=new jse,this.block=new Hse,this.core=new qse,this.renderer=new Use,this.linkify=new Wse,this.validateLink=Yse,this.normalizeLink=Jse,this.normalizeLinkText=Xse,this.utils=xi,this.helpers=xi.assign({},zse),this.options={},this.configure(t),e&&this.set(e)}jt.prototype.set=function(t){return xi.assign(this.options,t),this};jt.prototype.configure=function(t){var e=this,n;if(xi.isString(t)&&(n=t,t=Zse[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};jt.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};jt.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};jt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};jt.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};jt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};jt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};jt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Qse=jt,eae=Qse;const tae=n_(eae);/*! @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 C1(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 nae(t){if(Array.isArray(t))return t}function oae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,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,r=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function rae(){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 iae(t,e){return nae(t)||oae(t,e)||sae(t,e)||rae()}function sae(t,e){if(t){if(typeof t=="string")return C1(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)?C1(t,e):void 0}}const _m=Object.entries,b1=Object.setPrototypeOf,aae=Object.isFrozen,lae=Object.getPrototypeOf,cae=Object.getOwnPropertyDescriptor;let rt=Object.freeze,st=Object.seal,vr=Object.create,Cm=typeof Reflect<"u"&&Reflect,pc=Cm.apply,mc=Cm.construct;rt||(rt=function(e){return e});st||(st=function(e){return e});pc||(pc=function(e,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),s=2;s<o;s++)r[s-2]=arguments[s];return e.apply(n,r)});mc||(mc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const pr=We(Array.prototype.forEach),uae=We(Array.prototype.lastIndexOf),k1=We(Array.prototype.pop),mr=We(Array.prototype.push),dae=We(Array.prototype.splice),oo=Array.isArray,Ci=We(String.prototype.toLowerCase),Il=We(String.prototype.toString),w1=We(String.prototype.match),pi=We(String.prototype.replace),E1=We(String.prototype.indexOf),fae=We(String.prototype.trim),pae=We(Number.prototype.toString),mae=We(Boolean.prototype.toString),x1=typeof BigInt>"u"?null:We(BigInt.prototype.toString),S1=typeof Symbol>"u"?null:We(Symbol.prototype.toString),Xe=We(Object.prototype.hasOwnProperty),mi=We(Object.prototype.toString),Je=We(RegExp.prototype.test),So=hae(TypeError);function We(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return pc(t,e,o)}}function hae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return mc(t,n)}}function ke(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ci;if(b1&&b1(t,null),!oo(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(aae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function gae(t){for(let e=0;e<t.length;e++)Xe(t,e)||(t[e]=null);return t}function ct(t){const e=vr(null);for(const o of _m(t)){var n=iae(o,2);const r=n[0],s=n[1];Xe(t,r)&&(oo(s)?e[r]=gae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=ct(s):e[r]=s)}return e}function vae(t){switch(typeof t){case"string":return t;case"number":return pae(t);case"boolean":return mae(t);case"bigint":return x1?x1(t):"0";case"symbol":return S1?S1(t):"Symbol()";case"undefined":return mi(t);case"function":case"object":{if(t===null)return mi(t);const e=t,n=Jt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:mi(o)}return mi(t)}default:return mi(t)}}function Jt(t,e){for(;t!==null;){const o=cae(t,e);if(o){if(o.get)return We(o.get);if(typeof o.value=="function")return We(o.value)}t=lae(t)}function n(){return null}return n}function yae(t){try{return Je(t,""),!0}catch{return!1}}const T1=rt(["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"]),Pl=rt(["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"]),Fl=rt(["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=rt(["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"]),Vl=rt(["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"]),Cae=rt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),A1=rt(["#text"]),N1=rt(["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"]),Rl=rt(["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"]),D1=rt(["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=rt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bae=st(/{{[\w\W]*|^[\w\W]*}}/g),kae=st(/<%[\w\W]*|^[\w\W]*%>/g),wae=st(/\${[\w\W]*/g),Eae=st(/^data-[\-\w.\u00B7-\uFFFF]+$/),xae=st(/^aria-[\-\w]+$/),M1=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sae=st(/^(?:\w+script|data):/i),Tae=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Aae=st(/^html$/i),Nae=st(/^[a-z][.\w]*(-[.\w]+)+$/i),B1=st(/<[/\w!]/g),$1=st(/<[/\w]/g),Dae=st(/<\/no(script|embed|frames)/i),Mae=st(/\/>/i),Nt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Bae=function(){return typeof window>"u"?null:window},$ae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));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}},O1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},eo=function(e,n,o,r){return Xe(e,n)&&oo(e[n])?ke(r.base?ct(r.base):{},e[n],r.transform):o};function bm(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bae();const e=Q=>bm(Q);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Nt.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=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=Jt(p,"cloneNode"),h=Jt(p,"remove"),g=Jt(p,"nextSibling"),y=Jt(p,"childNodes"),C=Jt(p,"parentNode"),v=Jt(p,"shadowRoot"),_=Jt(p,"attributes"),k=a&&a.prototype?Jt(a.prototype,"nodeType"):null,w=a&&a.prototype?Jt(a.prototype,"nodeName"):null,b=a&&a.prototype?Jt(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const Q=n.createElement("template");Q.content&&Q.content.ownerDocument&&(n=Q.content.ownerDocument)}let E,T="",S,N=!1,L=0;const A=function(){if(L>0)throw So('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.')},D=function(x){A(),L++;try{return E.createHTML(x)}finally{L--}},M=function(x){A(),L++;try{return E.createScriptURL(x)}finally{L--}},I=function(){return N||(S=$ae(f,r),N=!0),S},P=n,W=P.implementation,R=P.createNodeIterator,q=P.createDocumentFragment,V=P.getElementsByTagName,te=o.importNode;let oe=O1();e.isSupported=typeof _m=="function"&&typeof C=="function"&&W&&W.createHTMLDocument!==void 0;const _e=bae,F=kae,j=wae,U=Eae,G=xae,ue=Sae,Ce=Tae,Be=Nae;let $e=M1,de=null;const qe=ke({},[...T1,...Pl,...Fl,...Vl,...A1]);let be=null;const gt=ke({},[...N1,...Rl,...D1,...Ms]);let O=Object.seal(vr(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}})),J=null,me=null;const Me=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ze=!0,ge=!0,cn=!1,Tn=!0,He=!1,vt=!0,lt=!1,Zt=!1,An=null,Kn=null,ko=!1,Gn=!1,ir=!1,sr=!1,Nn=!0,un=!1;const ms="user-content-";let Yr=!0,Kt=!1,Et={},xt=null;const ar=ke({},["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 hs=null;const Jr=ke({},["audio","video","img","source","image","track"]);let St=null;const lr=ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yn="http://www.w3.org/1998/Math/MathML",cr="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let Jn=Tt,wo=!1,Xr=null;const pl=ke({},[Yn,cr,Tt],Il),gs=rt(["mi","mo","mn","ms","mtext"]);let At=ke({},gs);const vs=rt(["annotation-xml"]);let Qr=ke({},vs);const ml=ke({},["title","style","font","a","script"]);let Eo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Ne=null,Gt=null;const ni=n.createElement("form"),ys=function(x){return x instanceof RegExp||x instanceof Function},Xn=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===x)return;(!x||typeof x!="object")&&(x={}),x=ct(x),Eo=ei.indexOf(x.PARSER_MEDIA_TYPE)===-1?ti:x.PARSER_MEDIA_TYPE,Ne=Eo==="application/xhtml+xml"?Il:Ci,de=eo(x,"ALLOWED_TAGS",qe,{transform:Ne}),be=eo(x,"ALLOWED_ATTR",gt,{transform:Ne}),Xr=eo(x,"ALLOWED_NAMESPACES",pl,{transform:Il}),St=eo(x,"ADD_URI_SAFE_ATTR",lr,{transform:Ne,base:lr}),hs=eo(x,"ADD_DATA_URI_TAGS",Jr,{transform:Ne,base:Jr}),xt=eo(x,"FORBID_CONTENTS",ar,{transform:Ne}),J=eo(x,"FORBID_TAGS",ct({}),{transform:Ne}),me=eo(x,"FORBID_ATTR",ct({}),{transform:Ne}),Et=Xe(x,"USE_PROFILES")?x.USE_PROFILES&&typeof x.USE_PROFILES=="object"?ct(x.USE_PROFILES):x.USE_PROFILES:!1,ze=x.ALLOW_ARIA_ATTR!==!1,ge=x.ALLOW_DATA_ATTR!==!1,cn=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Tn=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=x.SAFE_FOR_TEMPLATES||!1,vt=x.SAFE_FOR_XML!==!1,lt=x.WHOLE_DOCUMENT||!1,Gn=x.RETURN_DOM||!1,ir=x.RETURN_DOM_FRAGMENT||!1,sr=x.RETURN_TRUSTED_TYPE||!1,ko=x.FORCE_BODY||!1,Nn=x.SANITIZE_DOM!==!1,un=x.SANITIZE_NAMED_PROPS||!1,Yr=x.KEEP_CONTENT!==!1,Kt=x.IN_PLACE||!1,$e=yae(x.ALLOWED_URI_REGEXP)?x.ALLOWED_URI_REGEXP:M1,Jn=typeof x.NAMESPACE=="string"?x.NAMESPACE:Tt,At=Xe(x,"MATHML_TEXT_INTEGRATION_POINTS")&&x.MATHML_TEXT_INTEGRATION_POINTS&&typeof x.MATHML_TEXT_INTEGRATION_POINTS=="object"?ct(x.MATHML_TEXT_INTEGRATION_POINTS):ke({},gs),Qr=Xe(x,"HTML_INTEGRATION_POINTS")&&x.HTML_INTEGRATION_POINTS&&typeof x.HTML_INTEGRATION_POINTS=="object"?ct(x.HTML_INTEGRATION_POINTS):ke({},vs);const $=Xe(x,"CUSTOM_ELEMENT_HANDLING")&&x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING=="object"?ct(x.CUSTOM_ELEMENT_HANDLING):vr(null);if(O=vr(null),Xe($,"tagNameCheck")&&ys($.tagNameCheck)&&(O.tagNameCheck=$.tagNameCheck),Xe($,"attributeNameCheck")&&ys($.attributeNameCheck)&&(O.attributeNameCheck=$.attributeNameCheck),Xe($,"allowCustomizedBuiltInElements")&&typeof $.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=$.allowCustomizedBuiltInElements),st(O),He&&(ge=!1),ir&&(Gn=!0),Et&&(de=ke({},A1),be=vr(null),Et.html===!0&&(ke(de,T1),ke(be,N1)),Et.svg===!0&&(ke(de,Pl),ke(be,Rl),ke(be,Ms)),Et.svgFilters===!0&&(ke(de,Fl),ke(be,Rl),ke(be,Ms)),Et.mathMl===!0&&(ke(de,Vl),ke(be,D1),ke(be,Ms))),Me.tagCheck=null,Me.attributeCheck=null,Xe(x,"ADD_TAGS")&&(typeof x.ADD_TAGS=="function"?Me.tagCheck=x.ADD_TAGS:oo(x.ADD_TAGS)&&(de===qe&&(de=ct(de)),ke(de,x.ADD_TAGS,Ne))),Xe(x,"ADD_ATTR")&&(typeof x.ADD_ATTR=="function"?Me.attributeCheck=x.ADD_ATTR:oo(x.ADD_ATTR)&&(be===gt&&(be=ct(be)),ke(be,x.ADD_ATTR,Ne))),Xe(x,"ADD_URI_SAFE_ATTR")&&oo(x.ADD_URI_SAFE_ATTR)&&ke(St,x.ADD_URI_SAFE_ATTR,Ne),Xe(x,"FORBID_CONTENTS")&&oo(x.FORBID_CONTENTS)&&(xt===ar&&(xt=ct(xt)),ke(xt,x.FORBID_CONTENTS,Ne)),Xe(x,"ADD_FORBID_CONTENTS")&&oo(x.ADD_FORBID_CONTENTS)&&(xt===ar&&(xt=ct(xt)),ke(xt,x.ADD_FORBID_CONTENTS,Ne)),Yr&&(de["#text"]=!0),lt&&ke(de,["html","head","body"]),de.table&&(ke(de,["tbody"]),delete J.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Z=E;E=x.TRUSTED_TYPES_POLICY;try{T=D("")}catch(se){throw E=Z,se}}else x.TRUSTED_TYPES_POLICY===null?(E=void 0,T=""):(E===void 0&&(E=I()),E&&typeof T=="string"&&(T=D("")));rt&&rt(x),Gt=x},oi=ke({},[...Pl,...Fl,..._ae]),B=ke({},[...Vl,...Cae]),X=function(x,$,Z){return $.namespaceURI===Tt?x==="svg":$.namespaceURI===Yn?x==="svg"&&(Z==="annotation-xml"||At[Z]):!!oi[x]},ve=function(x,$,Z){return $.namespaceURI===Tt?x==="math":$.namespaceURI===cr?x==="math"&&Qr[Z]:!!B[x]},Le=function(x,$,Z){return $.namespaceURI===cr&&!Qr[Z]||$.namespaceURI===Yn&&!At[Z]?!1:!B[x]&&(ml[x]||!oi[x])},Dn=function(x){let $=C(x);(!$||!$.tagName)&&($={namespaceURI:Jn,tagName:"template"});const Z=Ci(x.tagName),se=Ci($.tagName);return Xr[x.namespaceURI]?x.namespaceURI===cr?X(Z,$,se):x.namespaceURI===Yn?ve(Z,$,se):x.namespaceURI===Tt?Le(Z,$,se):!!(Eo==="application/xhtml+xml"&&Xr[x.namespaceURI]):!1},Yt=function(x){mr(e.removed,{element:x});try{C(x).removeChild(x)}catch{if(h(x),!C(x))throw So("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ri=function(x){ii(x);const $=y(x);if($){const se=[];pr($,ae=>{mr(se,ae)}),pr(se,ae=>{try{h(ae)}catch{}})}const Z=_(x);if(Z)for(let se=Z.length-1;se>=0;--se){const ae=Z[se],he=ae&&ae.name;if(typeof he=="string")try{x.removeAttribute(he)}catch{}}},Mn=function(x,$){try{mr(e.removed,{attribute:$.getAttributeNode(x),from:$})}catch{mr(e.removed,{attribute:null,from:$})}if($.removeAttribute(x),x==="is")if(Gn||ir)try{Yt($)}catch{}else try{$.setAttribute(x,"")}catch{}},_s=function(x){const $=_(x);if($)for(let Z=$.length-1;Z>=0;--Z){const se=$[Z],ae=se&&se.name;if(!(typeof ae!="string"||be[Ne(ae)]))try{x.removeAttribute(ae)}catch{}}},ii=function(x){const $=[x];for(;$.length>0;){const Z=$.pop();(k?k(Z):Z.nodeType)===Nt.element&&_s(Z);const ae=y(Z);if(ae)for(let he=ae.length-1;he>=0;--he)$.push(ae[he])}},Ug=function(x){if(!vt)return;const $=[x];for(;$.length>0;){const Z=$.pop(),se=k?k(Z):Z.nodeType;if(se===Nt.processingInstruction||se===Nt.comment&&Je($1,Z.data)){try{h(Z)}catch{}continue}if(se===Nt.element){const he=Z,De=Ne(w?w(Z):Z.nodeName);try{he.hasAttribute&&he.hasAttribute("patchsrc")&&he.removeAttribute("patchsrc"),he.hasAttribute&&he.hasAttribute("for")&&De!=="label"&&De!=="output"&&he.removeAttribute("for")}catch{}}const ae=y(Z);if(ae)for(let he=ae.length-1;he>=0;--he)$.push(ae[he])}},ud=function(x){let $=null,Z=null;if(ko)x="<remove></remove>"+x;else{const he=w1(x,/^[\r\n\t ]+/);Z=he&&he[0]}Eo==="application/xhtml+xml"&&Jn===Tt&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const se=E?D(x):x;if(Jn===Tt)try{$=new d().parseFromString(se,Eo)}catch{}if(!$||!$.documentElement){$=W.createDocument(Jn,"template",null);try{$.documentElement.innerHTML=wo?T:se}catch{}}const ae=$.body||$.documentElement;return x&&Z&&ae.insertBefore(n.createTextNode(Z),ae.childNodes[0]||null),Jn===Tt?V.call($,lt?"html":"body")[0]:lt?$.documentElement:ae},dd=function(x){const $=b?b(x):x.ownerDocument;return R.call($||x,x,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Cs=function(x){return x=pi(x,_e," "),x=pi(x,F," "),x=pi(x,j," "),x},hl=function(x){var $;x.normalize();const Z=b?b(x):x.ownerDocument,se=R.call(Z||x,x,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ae=se.nextNode();for(;ae;)ae.data=Cs(ae.data),ae=se.nextNode();const he=($=x.querySelectorAll)===null||$===void 0?void 0:$.call(x,"template");he&&pr(he,De=>{ur(De.content)&&hl(De.content)})},bs=function(x){const $=w?w(x):null;return typeof $!="string"||Ne($)!=="form"?!1:typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||x.attributes!==_(x)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function"||x.nodeType!==k(x)||x.childNodes!==y(x)},ur=function(x){if(!k||typeof x!="object"||x===null)return!1;try{return k(x)===Nt.documentFragment}catch{return!1}},si=function(x){if(!k||typeof x!="object"||x===null)return!1;try{return typeof k(x)=="number"}catch{return!1}};function dn(Q,x,$){Q.length!==0&&pr(Q,Z=>{Z.call(e,x,$,Gt)})}const qg=function(x,$){return!!(vt&&x.hasChildNodes()&&!si(x.firstElementChild)&&Je(B1,x.textContent)&&Je(B1,x.innerHTML)||vt&&x.namespaceURI===Tt&&$==="style"&&si(x.firstElementChild)||x.nodeType===Nt.processingInstruction||vt&&x.nodeType===Nt.comment&&Je($1,x.data))},Hg=function(x,$,Z){if(!J[$]&&hd($)&&(O.tagNameCheck instanceof RegExp&&Je(O.tagNameCheck,$)||O.tagNameCheck instanceof Function&&O.tagNameCheck($)))return!1;if(Yr&&!xt[$]){const se=C(x),ae=y(x);if(ae&&se){const he=ae.length;for(let De=he-1;De>=0;--De){const Ie=x===Z?m(ae[De],!0):ae[De];se.insertBefore(Ie,g(x))}}}return Yt(x),!0},fd=function(x,$,Z,se){return x.length===0?$:$===Z||$===se?ct($):$},pd=function(x,$){if(dn(oe.beforeSanitizeElements,x,null),x!==$&&C(x)===null)return Kt&&ii(x),!0;if(bs(x))return Yt(x),!0;const Z=Ne(w?w(x):x.nodeName);if(de=fd(oe.uponSanitizeElement,de,qe,An),dn(oe.uponSanitizeElement,x,{tagName:Z,allowedTags:de}),x!==$&&C(x)===null)return Kt&&ii(x),!0;if(qg(x,Z))return Yt(x),!0;if(J[Z]||!(Me.tagCheck instanceof Function&&Me.tagCheck(Z))&&!de[Z]){const ae=Hg(x,Z,$);return ae===!1&&dn(oe.afterSanitizeElements,x,null),ae}if((k?k(x):x.nodeType)===Nt.element&&!Dn(x)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&Je(Dae,x.innerHTML))return Yt(x),!0;if(He&&x.nodeType===Nt.text){const ae=Cs(x.textContent);x.textContent!==ae&&(mr(e.removed,{element:x.cloneNode()}),x.textContent=ae)}return dn(oe.afterSanitizeElements,x,null),!1},md=function(x,$,Z){if(me[$]||vt&&$==="patchsrc"||vt&&$==="for"&&x!=="label"&&x!=="output"||Nn&&($==="id"||$==="name")&&(Z in n||Z in ni))return!1;const se=be[$]||Me.attributeCheck instanceof Function&&Me.attributeCheck($,x);if(!(ge&&Je(U,$))){if(!(ze&&Je(G,$))){if(se){if(!St[$]){if(!Je($e,pi(Z,Ce,""))){if(!(($==="src"||$==="xlink:href"||$==="href")&&x!=="script"&&E1(Z,"data:")===0&&hs[x])){if(!(cn&&!Je(ue,pi(Z,Ce,"")))){if(Z)return!1}}}}}else if(!(hd(x)&&(O.tagNameCheck instanceof RegExp&&Je(O.tagNameCheck,x)||O.tagNameCheck instanceof Function&&O.tagNameCheck(x))&&(O.attributeNameCheck instanceof RegExp&&Je(O.attributeNameCheck,$)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck($,x))||$==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&Je(O.tagNameCheck,Z)||O.tagNameCheck instanceof Function&&O.tagNameCheck(Z))))return!1}}return!0},jg=ke({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),hd=function(x){return!jg[Ci(x)]&&Je(Be,x)},Wg=function(x,$,Z,se){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Z)switch(f.getAttributeType(x,$)){case"TrustedHTML":return D(se);case"TrustedScriptURL":return M(se)}return se},Zg=function(x,$,Z,se){try{Z?x.setAttributeNS(Z,$,se):x.setAttribute($,se),bs(x)?Yt(x):k1(e.removed)}catch{Mn($,x)}},gd=function(x){dn(oe.beforeSanitizeAttributes,x,null);const $=x.attributes;if(!$||bs(x))return;be=fd(oe.uponSanitizeAttribute,be,gt,Kn);const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be,forceKeepAttr:void 0};let se=$.length;const ae=Ne(x.nodeName);for(;se--;){const he=$[se],De=he.name,Ie=he.namespaceURI,yt=he.value,_t=Ne(De),vl=yt;let ft=De==="value"?vl:fae(vl);if(Z.attrName=_t,Z.attrValue=ft,Z.keepAttr=!0,Z.forceKeepAttr=void 0,dn(oe.uponSanitizeAttribute,x,Z),ft=Z.attrValue,un&&(_t==="id"||_t==="name")&&E1(ft,ms)!==0&&(Mn(De,x),ft=ms+ft),vt&&Je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ft)){Mn(De,x);continue}if(_t==="attributename"&&w1(ft,"href")){Mn(De,x);continue}if(!Z.forceKeepAttr){if(!Z.keepAttr){Mn(De,x);continue}if(!Tn&&Je(Mae,ft)){Mn(De,x);continue}if(He&&(ft=Cs(ft)),!md(ae,_t,ft)){Mn(De,x);continue}ft=Wg(ae,_t,Ie,ft),ft!==vl&&Zg(x,De,Ie,ft)}}dn(oe.afterSanitizeAttributes,x,null)},ks=function(x){let $=null;const Z=dd(x);for(dn(oe.beforeSanitizeShadowDOM,x,null);$=Z.nextNode();)if(dn(oe.uponSanitizeShadowNode,$,null),pd($,x),gd($),ur($.content)&&ks($.content),(k?k($):$.nodeType)===Nt.element){const ae=v($);ur(ae)&&(gl(ae),ks(ae))}dn(oe.afterSanitizeShadowDOM,x,null)},gl=function(x){const $=[{node:x,shadow:null}];for(;$.length>0;){const Z=$.pop();if(Z.shadow){ks(Z.shadow);continue}const se=Z.node,he=(k?k(se):se.nodeType)===Nt.element,De=y(se);if(De)for(let Ie=De.length-1;Ie>=0;--Ie)$.push({node:De[Ie],shadow:null});if(he){const Ie=w?w(se):null;if(typeof Ie=="string"&&Ne(Ie)==="template"){const yt=se.content;ur(yt)&&$.push({node:yt,shadow:null})}}if(he){const Ie=v(se);ur(Ie)&&$.push({node:null,shadow:Ie},{node:Ie,shadow:null})}}};return e.sanitize=function(Q){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,Z=null,se=null,ae=null;if(wo=!Q,wo&&(Q="<!-->"),typeof Q!="string"&&!si(Q)&&(Q=vae(Q),typeof Q!="string"))throw So("dirty is not a string, aborting");if(!e.isSupported)return Q;Zt?(de=An,be=Kn):Xn(x),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(de=ct(de)),oe.uponSanitizeAttribute.length>0&&(be=ct(be)),e.removed=[];const he=Kt&&typeof Q!="string"&&si(Q);if(he){Ug(Q);const yt=w?w(Q):Q.nodeName;if(typeof yt=="string"){const _t=Ne(yt);if(!de[_t]||J[_t])throw ri(Q),So("root node is forbidden and cannot be sanitized in-place")}if(bs(Q))throw ri(Q),So("root node is clobbered and cannot be sanitized in-place");try{gl(Q)}catch(_t){throw ri(Q),_t}}else if(si(Q))$=ud("<!---->"),Z=$.ownerDocument.importNode(Q,!0),Z.nodeType===Nt.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?$=Z:$.appendChild(Z),gl(Z);else{if(!Gn&&!He&&!lt&&Q.indexOf("<")===-1)return E&&sr?D(Q):Q;if($=ud(Q),!$)return Gn?null:sr?T:""}$&&ko&&Yt($.firstChild);const De=he?Q:$;try{const yt=dd(De);for(;se=yt.nextNode();)pd(se,De),gd(se),ur(se.content)&&ks(se.content)}catch(yt){throw he&&(ri(Q),pr(e.removed,_t=>{_t.element&&ii(_t.element)})),yt}if(he)return pr(e.removed,yt=>{yt.element&&ii(yt.element)}),He&&hl(Q),Q;if(Gn){if(He&&hl($),ir)for(ae=q.call($.ownerDocument);$.firstChild;)ae.appendChild($.firstChild);else ae=$;return(be.shadowroot||be.shadowrootmode)&&(ae=te.call(o,ae,!0)),ae}let Ie=lt?$.outerHTML:$.innerHTML;return lt&&de["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&Je(Aae,$.ownerDocument.doctype.name)&&(Ie="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
19
- `+Ie),He&&(Ie=Cs(Ie)),E&&sr?D(Ie):Ie},e.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xn(Q),Zt=!0,An=de,Kn=be},e.clearConfig=function(){Gt=null,Zt=!1,An=null,Kn=null,E=S,T=""},e.isValidAttribute=function(Q,x,$){Gt||Xn({});const Z=Ne(Q),se=Ne(x);return md(Z,se,$)},e.addHook=function(Q,x){typeof x=="function"&&Xe(oe,Q)&&mr(oe[Q],x)},e.removeHook=function(Q,x){if(Xe(oe,Q)){if(x!==void 0){const $=uae(oe[Q],x);return $===-1?void 0:dae(oe[Q],$,1)[0]}return k1(oe[Q])}},e.removeHooks=function(Q){Xe(oe,Q)&&(oe[Q]=[])},e.removeAllHooks=function(){oe=O1()},e}var Oae=bm();const Lae=["innerHTML"],Iae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},km=i.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new tae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?Oae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(r,s)=>t.content?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Lae)):(i.openBlock(),i.createElementBlock("div",Iae,i.toDisplayString(t.placeholder),1))}});function Y(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 wm(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 an=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Pae=an&&"documentMode"in document?document.documentMode:null,Xt=an&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Wo=an&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),oa=!(!an||!("InputEvent"in window)||Pae)&&"getTargetRanges"in new window.InputEvent("input"),Ri=an&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lr=an&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Fae=an&&/Android/.test(navigator.userAgent),Em=an&&/^(?=.*Chrome).*/i.test(navigator.userAgent),L1=an&&Fae&&Em,zi=an&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Xt&&!Em;function xm(...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 Vae=0,Rae=1,zae=2,Sm=128,Uae=1,qae=2,Hae=3,jae=4,Wae=5,Zae=6,Za=Ri||Lr||zi?" ":"​",mo=`
14
+ `:">",s)};Hr.prototype.renderInline=function(t,e,n){for(var o,r="",s=this.rules,a=0,l=t.length;a<l;a++)o=t[a].type,typeof s[o]<"u"?r+=s[o](t,a,e,n,this):r+=this.renderToken(t,a,e);return r};Hr.prototype.renderInlineAsText=function(t,e,n){for(var o="",r=0,s=t.length;r<s;r++)t[r].type==="text"?o+=t[r].content:t[r].type==="image"?o+=this.renderInlineAsText(t[r].children,e,n):t[r].type==="softbreak"&&(o+=`
15
+ `);return o};Hr.prototype.render=function(t,e,n){var o,r,s,a="",l=this.rules;for(o=0,r=t.length;o<r;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 Lre=Hr;function sn(){this.__rules__=[],this.__cache__=null}sn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};sn.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))})})};sn.prototype.at=function(t,e,n){var o=this.__find__(t),r=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=r.alt||[],this.__cache__=null};sn.prototype.before=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};sn.prototype.after=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};sn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};sn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,n.push(o)},this),this.__cache__=null,n};sn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};sn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,n.push(o)},this),this.__cache__=null,n};sn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var du=sn,Ire=/\r\n?|\n/g,Pre=/\0/g,Fre=function(e){var n;n=e.src.replace(Ire,`
16
+ `),n=n.replace(Pre,"�"),e.src=n},Vre=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)},Rre=function(e){var n=e.tokens,o,r,s;for(r=0,s=n.length;r<s;r++)o=n[r],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},zre=Te.arrayReplaceAt;function Ure(t){return/^<a[>\s]/i.test(t)}function qre(t){return/^<\/a\s*>/i.test(t)}var Hre=function(e){var n,o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v=e.tokens,_;if(e.md.options.linkify){for(o=0,r=v.length;o<r;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"&&(Ure(l.content)&&h>0&&h--,qre(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=zre(s,n,c)}}}},om=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,jre=/\((c|tm|r)\)/i,Wre=/\((c|tm|r)\)/ig,Zre={c:"©",r:"®",tm:"™"};function Kre(t,e){return Zre[e.toLowerCase()]}function Gre(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(Wre,Kre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Yre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&om.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 Jre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(jre.test(e.tokens[n].content)&&Gre(e.tokens[n].children),om.test(e.tokens[n].content)&&Yre(e.tokens[n].children))},Xd=Te.isWhiteSpace,Qd=Te.isPunctChar,e1=Te.isMdAsciiPunct,Xre=/['"]/,t1=/['"]/g,n1="’";function Ns(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Qre(t,e){var n,o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b;for(k=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,v=k.length-1;v>=0&&!(k[v].level<=c);v--);if(k.length=v+1,o.type==="text"){r=o.content,a=0,l=r.length;e:for(;a<l&&(t1.lastIndex=a,s=t1.exec(r),!!s);){if(y=C=!0,a=s.index+1,_=s[0]==="'",d=32,s.index-1>=0)d=r.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=r.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=e1(d)||Qd(String.fromCharCode(d)),m=e1(f)||Qd(String.fromCharCode(f)),h=Xd(d),g=Xd(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=Ns(o.content,s.index,n1));continue}if(C){for(v=k.length-1;v>=0&&(u=k[v],!(k[v].level<c));v--)if(u.single===_&&k[v].level===c){u=k[v],_?(w=e.md.options.quotes[2],b=e.md.options.quotes[3]):(w=e.md.options.quotes[0],b=e.md.options.quotes[1]),o.content=Ns(o.content,s.index,b),t[u.token].content=Ns(t[u.token].content,u.pos,w),a+=b.length-1,u.token===n&&(a+=w.length-1),r=o.content,l=r.length,k.length=v;continue e}}y?k.push({token:n,pos:s.index,single:_,level:c}):C&&_&&(o.content=Ns(o.content,s.index,n1))}}}}var eie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Xre.test(e.tokens[n].content)||Qre(e.tokens[n].children,e)},tie=function(e){var n,o,r,s,a,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(r=c[n].children,a=r.length,s=0;s<a;s++)r[s].type==="text_special"&&(r[s].type="text");for(s=l=0;s<a;s++)r[s].type==="text"&&s+1<a&&r[s+1].type==="text"?r[s+1].content=r[s].content+r[s+1].content:(s!==l&&(r[l]=r[s]),l++);s!==l&&(r.length=l)}};function jr(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}jr.prototype.attrIndex=function(e){var n,o,r;if(!this.attrs)return-1;for(n=this.attrs,o=0,r=n.length;o<r;o++)if(n[o][0]===e)return o;return-1};jr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};jr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r};jr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};jr.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 fu=jr,nie=fu;function rm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}rm.prototype.Token=nie;var oie=rm,rie=du,Tl=[["normalize",Fre],["block",Vre],["inline",Rre],["linkify",Hre],["replacements",Jre],["smartquotes",eie],["text_join",tie]];function pu(){this.ruler=new rie;for(var t=0;t<Tl.length;t++)this.ruler.push(Tl[t][0],Tl[t][1])}pu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};pu.prototype.State=oie;var iie=pu,Al=Te.isSpace;function Nl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function o1(t){var e=[],n=0,o=t.length,r,s=!1,a=0,l="";for(r=t.charCodeAt(n);n<o;)r===124&&(s?(l+=t.substring(a,n-1),a=n):(e.push(l+t.substring(a,n)),l="",a=n+1)),s=r===92,n++,r=t.charCodeAt(n);return e.push(l+t.substring(a)),e}var sie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b;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]||(b=e.src.charCodeAt(l++),b!==124&&b!==45&&b!==58&&!Al(b))||w===45&&Al(b))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Al(s))return!1;l++}for(a=Nl(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=Nl(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=o1(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(r)return!0;for(v=e.parentType,e.parentType="table",k=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=k.length;c<u;c++)if(k[c](e,d,o,!0)){_=!0;break}if(_||(a=Nl(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=o1(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},aie=function(e,n,o){var r,s,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=r=n+1;r<o;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,s=r;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},lie=function(e,n,o,r){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(r)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=Te.isSpace,uie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b,E,T,S=e.lineMax,N=e.bMarks[n]+e.tShift[n],L=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(N)!==62)return!1;if(r)return!0;for(h=[],g=[],v=[],_=[],b=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",p=n;p<o&&(T=e.sCount[p]<e.blkIndent,N=e.bMarks[p]+e.tShift[p],L=e.eMarks[p],!(N>=L));p++){if(e.src.charCodeAt(N++)===62&&!T){for(c=e.sCount[p]+1,e.src.charCodeAt(N)===32?(N++,c++,s=!1,k=!0):e.src.charCodeAt(N)===9?(k=!0,(e.bsCount[p]+c)%4===3?(N++,c++,s=!1):s=!0):k=!1,m=c,h.push(e.bMarks[p]),e.bMarks[p]=N;N<L&&(a=e.src.charCodeAt(N),cie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;N++}d=N>=L,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(k?1:0),v.push(e.sCount[p]),e.sCount[p]=m-c,_.push(e.tShift[p]),e.tShift[p]=N-e.bMarks[p];continue}if(d)break;for(w=!1,l=0,u=b.length;l<u;l++)if(b[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,E=e.push("blockquote_open","blockquote",1),E.markup=">",E.map=f=[n,0],e.md.block.tokenize(e,n,p),E=e.push("blockquote_close","blockquote",-1),E.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},die=Te.isSpace,fie=function(e,n,o,r){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&&!die(l))return!1;l===s&&a++}return a<3?!1:(r||(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)},im=Te.isSpace;function r1(t,e){var n,o,r,s;return o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(s=t.src.charCodeAt(o),!im(s))?-1:o}function i1(t,e){var n,o=t.bMarks[e]+t.tShift[e],r=o,s=t.eMarks[e];if(r+1>=s||(n=t.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=s)return-1;if(n=t.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<s&&(n=t.src.charCodeAt(r),!im(n))?-1:r}function pie(t,e){var n,o,r=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var mie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b,E,T,S,N,L,A,D,M,I,P=n,j=!1,V=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&(j=!0),(N=i1(e,P))>=0){if(f=!0,A=e.bMarks[P]+e.tShift[P],C=Number(e.src.slice(A,N-1)),j&&C!==1)return!1}else if((N=r1(e,P))>=0)f=!1;else return!1;if(j&&e.skipSpaces(N)>=e.eMarks[P])return!1;if(r)return!0;for(y=e.src.charCodeAt(N-1),g=e.tokens.length,f?(I=e.push("ordered_list_open","ol",1),C!==1&&(I.attrs=[["start",C]])):I=e.push("bullet_list_open","ul",1),I.map=h=[P,0],I.markup=String.fromCharCode(y),L=!1,M=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";P<o;){for(S=N,v=e.eMarks[P],d=_=e.sCount[P]+N-(e.bMarks[P]+e.tShift[P]);S<v;){if(s=e.src.charCodeAt(S),s===9)_+=4-(_+e.bsCount[P])%4;else if(s===32)_++;else break;S++}if(a=S,a>=v?u=1:u=_-d,u>4&&(u=1),c=d+u,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(y),I.map=p=[P,0],f&&(I.info=e.src.slice(A,N-1)),T=e.tight,E=e.tShift[P],b=e.sCount[P],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[P]=a-e.bMarks[P],e.sCount[P]=_,a>=v&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,P,o,!0),(!e.tight||L)&&(V=!1),L=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[P]=E,e.sCount[P]=b,e.tight=T,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(y),P=e.line,p[1]=P,P>=o||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(D=!1,l=0,m=M.length;l<m;l++)if(M[l](e,P,o,!0)){D=!0;break}if(D)break;if(f){if(N=i1(e,P),N<0)break;A=e.bMarks[P]+e.tShift[P]}else if(N=r1(e,P),N<0)break;if(y!==e.src.charCodeAt(N-1))break}return f?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(y),h[1]=P,e.line=P,e.parentType=w,V&&pie(e,g),!0},hie=Te.normalizeReference,Ds=Te.isSpace,gie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w=0,b=e.bMarks[n]+e.tShift[n],E=e.eMarks[n],T=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<E;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===E||e.src.charCodeAt(b+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(),E=C.length,b=1;b<E;b++){if(s=C.charCodeAt(b),s===91)return!1;if(s===93){m=b;break}else s===10?w++:s===92&&(b++,b<E&&C.charCodeAt(b)===10&&w++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(b=m+2;b<E;b++)if(s=C.charCodeAt(b),s===10)w++;else if(!Ds(s))break;if(g=e.md.helpers.parseLinkDestination(C,b,E),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(b=g.pos,w+=g.lines,a=b,l=w,y=b;b<E;b++)if(s=C.charCodeAt(b),s===10)w++;else if(!Ds(s))break;for(g=e.md.helpers.parseLinkTitle(C,b,E),b<E&&y!==b&&g.ok?(k=g.str,b=g.pos,w+=g.lines):(k="",b=a,w=l);b<E&&(s=C.charCodeAt(b),!!Ds(s));)b++;if(b<E&&C.charCodeAt(b)!==10&&k)for(k="",b=a,w=l;b<E&&(s=C.charCodeAt(b),!!Ds(s));)b++;return b<E&&C.charCodeAt(b)!==10||(p=hie(C.slice(1,m)),!p)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:k,href:u}),e.parentType=h,e.line=n+w+1),!0)},vie=["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"],Ua={},yie="[a-zA-Z_:][a-zA-Z0-9:._-]*",_ie="[^\"'=<>`\\x00-\\x20]+",Cie="'[^']*'",bie='"[^"]*"',kie="(?:"+_ie+"|"+Cie+"|"+bie+")",wie="(?:\\s+"+yie+"(?:\\s*=\\s*"+kie+")?)",sm="<[A-Za-z][A-Za-z0-9\\-]*"+wie+"*\\s*\\/?>",am="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Eie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",xie="<[?][\\s\\S]*?[?]>",Sie="<![A-Z]+\\s+[^>]*>",Tie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Aie=new RegExp("^(?:"+sm+"|"+am+"|"+Eie+"|"+xie+"|"+Sie+"|"+Tie+")"),Nie=new RegExp("^(?:"+sm+"|"+am+")");Ua.HTML_TAG_RE=Aie;Ua.HTML_OPEN_CLOSE_TAG_RE=Nie;var Die=vie,Mie=Ua.HTML_OPEN_CLOSE_TAG_RE,pr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Die.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mie.source+"\\s*$"),/^$/,!1]],Bie=function(e,n,o,r){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<pr.length&&!pr[s][0].test(c);s++);if(s===pr.length)return!1;if(r)return pr[s][2];if(a=n+1,!pr[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),pr[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},s1=Te.isSpace,$ie=function(e,n,o,r){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&&!s1(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&s1(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)},Oie=function(e,n,o){var r,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?(r=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=r,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},Lie=function(e,n,o){var r,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 r=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=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},lm=fu,qa=Te.isSpace;function Sn(t,e,n,o){var r,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(r=s.charCodeAt(l),!f)if(qa(r)){u++,r===9?d+=4-d%4:d++;continue}else f=!0;(r===10||l===c-1)&&(r!==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}Sn.prototype.push=function(t,e,n){var o=new lm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Sn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Sn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Sn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!qa(n));e++);return e};Sn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!qa(this.src.charCodeAt(--e)))return e+1;return e};Sn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Sn.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};Sn.prototype.getLines=function(e,n,o,r){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||r?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),qa(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("")};Sn.prototype.Token=lm;var Iie=Sn,Pie=du,Ms=[["table",sie,["paragraph","reference"]],["code",aie],["fence",lie,["paragraph","reference","blockquote","list"]],["blockquote",uie,["paragraph","reference","blockquote","list"]],["hr",fie,["paragraph","reference","blockquote","list"]],["list",mie,["paragraph","reference","blockquote"]],["reference",gie],["html_block",Bie,["paragraph","reference","blockquote"]],["heading",$ie,["paragraph","reference","blockquote"]],["lheading",Oie],["paragraph",Lie]];function Ha(){this.ruler=new Pie;for(var t=0;t<Ms.length;t++)this.ruler.push(Ms[t][0],Ms[t][1],{alt:(Ms[t][2]||[]).slice()})}Ha.prototype.tokenize=function(t,e,n){for(var o,r,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,r=0;r<l;r++)if(o=a[r](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)}};Ha.prototype.parse=function(t,e,n,o){var r;t&&(r=new this.State(t,e,n,o),this.tokenize(r,r.line,r.lineMax))};Ha.prototype.State=Iie;var Fie=Ha;function Vie(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 Rie=function(e,n){for(var o=e.pos;o<e.posMax&&!Vie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},zie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Uie=function(e,n){var o,r,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,r=e.posMax,o+3>r)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(zie),!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=Te.isSpace,Hie=function(e,n){var o,r,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,r=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<r&&qie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},jie=Te.isSpace,mu=[];for(var a1=0;a1<256;a1++)mu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){mu[t.charCodeAt(0)]=1});var Wie=function(e,n){var o,r,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),!!jie(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(r=e.src.charCodeAt(c+1),r>=56320&&r<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&mu[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Zie=function(e,n){var o,r,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,r=e.posMax;f<r&&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<r&&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},ja={};ja.tokenize=function(e,n){var o,r,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(r=e.scanDelims(e.pos,!0),a=r.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:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function l1(t,e){var n,o,r,s,a,l=[],c=e.length;for(n=0;n<c;n++)r=e[n],r.marker===126&&r.end!==-1&&(s=e[r.end],a=t.tokens[r.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)}}ja.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(l1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&l1(e,o[n].delimiters)};var Wa={};Wa.tokenize=function(e,n){var o,r,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(r=e.scanDelims(e.pos,l===42),o=0;o<r.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function c1(t,e){var n,o,r,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&&(r=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===r.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[r.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--))}Wa.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(c1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&c1(e,o[n].delimiters)};var Kie=Te.normalizeReference,Dl=Te.isSpace,Gie=function(e,n){var o,r,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&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==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&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==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&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==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[Kie(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},Yie=Te.normalizeReference,Ml=Te.isSpace,Jie=function(e,n){var o,r,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&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==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&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==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&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==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[Yie(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},Xie=/^([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])?)*)$/,Qie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ese=function(e,n){var o,r,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),Qie.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],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):Xie.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],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},tse=Ua.HTML_TAG_RE;function nse(t){return/^<a[>\s]/i.test(t)}function ose(t){return/^<\/a\s*>/i.test(t)}function rse(t){var e=t|32;return e>=97&&e<=122}var ise=function(e,n){var o,r,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&&!rse(o))||(r=e.src.slice(l).match(tse),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],nse(a.content)&&e.linkLevel++,ose(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},u1=Qp,sse=Te.has,ase=Te.isValidEntityCode,d1=Te.fromCodePoint,lse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,cse=/^&([a-z][a-z0-9]{1,31});/i,use=function(e,n){var o,r,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(lse),s)return n||(r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=ase(r)?d1(r):d1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(cse),s&&sse(u1,s[1]))return n||(a=e.push("text_special","",0),a.content=u1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function f1(t){var e,n,o,r,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(r=t[n],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.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,r.end=e,r.close=!1,a=-1,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var dse=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(f1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&f1(o[n].delimiters)},fse=function(e){var n,o,r=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&r--,s[n].level=r,s[n].nesting>0&&r++,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)},hu=fu,p1=Te.isWhiteSpace,m1=Te.isPunctChar,h1=Te.isMdAsciiPunct;function os(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}os.prototype.pushPending=function(){var t=new hu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};os.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new hu(t,e,n),r=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=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};os.prototype.scanDelims=function(t,e){var n=t,o,r,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,r=n<h?this.src.charCodeAt(n):32,u=h1(o)||m1(String.fromCharCode(o)),f=h1(r)||m1(String.fromCharCode(r)),c=p1(o),d=p1(r),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}};os.prototype.Token=hu;var pse=os,g1=du,Bl=[["text",Rie],["linkify",Uie],["newline",Hie],["escape",Wie],["backticks",Zie],["strikethrough",ja.tokenize],["emphasis",Wa.tokenize],["link",Gie],["image",Jie],["autolink",ese],["html_inline",ise],["entity",use]],$l=[["balance_pairs",dse],["strikethrough",ja.postProcess],["emphasis",Wa.postProcess],["fragments_join",fse]];function rs(){var t;for(this.ruler=new g1,t=0;t<Bl.length;t++)this.ruler.push(Bl[t][0],Bl[t][1]);for(this.ruler2=new g1,t=0;t<$l.length;t++)this.ruler2.push($l[t][0],$l[t][1])}rs.prototype.skipToken=function(t){var e,n,o=t.pos,r=this.ruler.getRules(""),s=r.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=r[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};rs.prototype.tokenize=function(t){for(var e,n,o,r=this.ruler.getRules(""),s=r.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=r[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()};rs.prototype.parse=function(t,e,n,o){var r,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,r=0;r<a;r++)s[r](l)};rs.prototype.State=pse;var mse=rs,Ol,v1;function hse(){return v1||(v1=1,Ol=function(t){var e={};t=t||{},e.src_Any=em().source,e.src_Cc=tm().source,e.src_Z=nm().source,e.src_P=uu.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}),Ol}function fc(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 Za(t){return Object.prototype.toString.call(t)}function gse(t){return Za(t)==="[object String]"}function vse(t){return Za(t)==="[object Object]"}function yse(t){return Za(t)==="[object RegExp]"}function y1(t){return Za(t)==="[object Function]"}function _se(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var cm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Cse(t){return Object.keys(t||{}).reduce(function(e,n){return e||cm.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}}},kse="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]",wse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ese(t){t.__index__=-1,t.__text_cache__=""}function xse(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function _1(){return function(t,e){e.normalize(t)}}function oa(t){var e=t.re=hse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(kse),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 r=[];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,vse(c)){yse(c.validate)?u.validate=xse(c.validate):y1(c.validate)?u.validate=c.validate:s(l,c),y1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=_1();return}if(gse(c)){r.push(l);return}s(l,c)}}),r.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:_1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(_se).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"),Ese(t)}function Sse(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function pc(t,e){var n=new Sse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||Cse(t)&&(e=t,t={}),this.__opts__=fc({},cm,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=fc({},bse,t),this.__compiled__={},this.__tlds__=wse,this.__tlds_replaced__=!1,this.re={},oa(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,oa(this),this};Ot.prototype.set=function(e){return this.__opts__=fc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,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&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,l=r.index+r[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};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Ot.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(pc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(pc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Ot.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,pc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,s){return o!==s[r-1]}).reverse(),oa(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,oa(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};var Tse=Ot;const wr=2147483647,gn=36,gu=1,zi=26,Ase=38,Nse=700,um=72,dm=128,fm="-",Dse=/^xn--/,Mse=/[^\0-\x7F]/,Bse=/[\x2E\u3002\uFF0E\uFF61]/g,$se={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ll=gn-gu,vn=Math.floor,Il=String.fromCharCode;function to(t){throw new RangeError($se[t])}function Ose(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function pm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Bse,".");const r=t.split("."),s=Ose(r,e).join(".");return o+s}function vu(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const mm=t=>String.fromCodePoint(...t),Lse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:gn},C1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},hm=function(t,e,n){let o=0;for(t=n?vn(t/Nse):t>>1,t+=vn(t/e);t>Ll*zi>>1;o+=gn)t=vn(t/Ll);return vn(o+(Ll+1)*t/(t+Ase))},yu=function(t){const e=[],n=t.length;let o=0,r=dm,s=um,a=t.lastIndexOf(fm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&to("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=gn;;f+=gn){l>=n&&to("invalid-input");const p=Lse(t.charCodeAt(l++));p>=gn&&to("invalid-input"),p>vn((wr-o)/d)&&to("overflow"),o+=p*d;const m=f<=s?gu:f>=s+zi?zi:f-s;if(p<m)break;const h=gn-m;d>vn(wr/h)&&to("overflow"),d*=h}const u=e.length+1;s=hm(o-c,u,c==0),vn(o/u)>wr-r&&to("overflow"),r+=vn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},_u=function(t){const e=[];t=vu(t);const n=t.length;let o=dm,r=0,s=um;for(const c of t)c<128&&e.push(Il(c));const a=e.length;let l=a;for(a&&e.push(fm);l<n;){let c=wr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>vn((wr-r)/u)&&to("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>wr&&to("overflow"),d===o){let f=r;for(let p=gn;;p+=gn){const m=p<=s?gu:p>=s+zi?zi:p-s;if(f<m)break;const h=f-m,g=gn-m;e.push(Il(C1(m+h%g,0))),f=vn(h/g)}e.push(Il(C1(f,0))),s=hm(r,u,l===a),r=0,++l}++r,++o}return e.join("")},gm=function(t){return pm(t,function(e){return Dse.test(e)?yu(e.slice(4).toLowerCase()):e})},vm=function(t){return pm(t,function(e){return Mse.test(e)?"xn--"+_u(e):e})},Ise={version:"2.1.0",ucs2:{decode:vu,encode:mm},decode:yu,encode:_u,toASCII:vm,toUnicode:gm},Pse=Object.freeze(Object.defineProperty({__proto__:null,decode:yu,default:Ise,encode:_u,toASCII:vm,toUnicode:gm,ucs2decode:vu,ucs2encode:mm},Symbol.toStringTag,{value:"Module"})),Fse=r_(Pse);var Vse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Rse={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"]}}},zse={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"]}}},Ti=Te,Use=za,qse=Lre,Hse=iie,jse=Fie,Wse=mse,Zse=Tse,Lo=qr,ym=Fse,Kse={default:Vse,zero:Rse,commonmark:zse},Gse=/^(vbscript|javascript|file|data):/,Yse=/^data:image\/(gif|png|jpeg|webp);/;function Jse(t){var e=t.trim().toLowerCase();return Gse.test(e)?!!Yse.test(e):!0}var _m=["http:","https:","mailto:"];function Xse(t){var e=Lo.parse(t,!0);if(e.hostname&&(!e.protocol||_m.indexOf(e.protocol)>=0))try{e.hostname=ym.toASCII(e.hostname)}catch{}return Lo.encode(Lo.format(e))}function Qse(t){var e=Lo.parse(t,!0);if(e.hostname&&(!e.protocol||_m.indexOf(e.protocol)>=0))try{e.hostname=ym.toUnicode(e.hostname)}catch{}return Lo.decode(Lo.format(e),Lo.decode.defaultChars+"%")}function jt(t,e){if(!(this instanceof jt))return new jt(t,e);e||Ti.isString(t)||(e=t||{},t="default"),this.inline=new Wse,this.block=new jse,this.core=new Hse,this.renderer=new qse,this.linkify=new Zse,this.validateLink=Jse,this.normalizeLink=Xse,this.normalizeLinkText=Qse,this.utils=Ti,this.helpers=Ti.assign({},Use),this.options={},this.configure(t),e&&this.set(e)}jt.prototype.set=function(t){return Ti.assign(this.options,t),this};jt.prototype.configure=function(t){var e=this,n;if(Ti.isString(t)&&(n=t,t=Kse[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};jt.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};jt.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};jt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};jt.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};jt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};jt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};jt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var eae=jt,tae=eae;const nae=o_(tae);/*! @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 b1(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 oae(t){if(Array.isArray(t))return t}function rae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,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,r=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function iae(){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 sae(t,e){return oae(t)||rae(t,e)||aae(t,e)||iae()}function aae(t,e){if(t){if(typeof t=="string")return b1(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)?b1(t,e):void 0}}const Cm=Object.entries,k1=Object.setPrototypeOf,lae=Object.isFrozen,cae=Object.getPrototypeOf,uae=Object.getOwnPropertyDescriptor;let it=Object.freeze,at=Object.seal,yr=Object.create,bm=typeof Reflect<"u"&&Reflect,mc=bm.apply,hc=bm.construct;it||(it=function(e){return e});at||(at=function(e){return e});mc||(mc=function(e,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),s=2;s<o;s++)r[s-2]=arguments[s];return e.apply(n,r)});hc||(hc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const mr=We(Array.prototype.forEach),dae=We(Array.prototype.lastIndexOf),w1=We(Array.prototype.pop),hr=We(Array.prototype.push),fae=We(Array.prototype.splice),oo=Array.isArray,ki=We(String.prototype.toLowerCase),Pl=We(String.prototype.toString),E1=We(String.prototype.match),hi=We(String.prototype.replace),x1=We(String.prototype.indexOf),pae=We(String.prototype.trim),mae=We(Number.prototype.toString),hae=We(Boolean.prototype.toString),S1=typeof BigInt>"u"?null:We(BigInt.prototype.toString),T1=typeof Symbol>"u"?null:We(Symbol.prototype.toString),Qe=We(Object.prototype.hasOwnProperty),gi=We(Object.prototype.toString),Xe=We(RegExp.prototype.test),So=gae(TypeError);function We(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return mc(t,e,o)}}function gae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return hc(t,n)}}function we(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ki;if(k1&&k1(t,null),!oo(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(lae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function vae(t){for(let e=0;e<t.length;e++)Qe(t,e)||(t[e]=null);return t}function ut(t){const e=yr(null);for(const o of Cm(t)){var n=sae(o,2);const r=n[0],s=n[1];Qe(t,r)&&(oo(s)?e[r]=vae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=ut(s):e[r]=s)}return e}function yae(t){switch(typeof t){case"string":return t;case"number":return mae(t);case"boolean":return hae(t);case"bigint":return S1?S1(t):"0";case"symbol":return T1?T1(t):"Symbol()";case"undefined":return gi(t);case"function":case"object":{if(t===null)return gi(t);const e=t,n=Jt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:gi(o)}return gi(t)}default:return gi(t)}}function Jt(t,e){for(;t!==null;){const o=uae(t,e);if(o){if(o.get)return We(o.get);if(typeof o.value=="function")return We(o.value)}t=cae(t)}function n(){return null}return n}function _ae(t){try{return Xe(t,""),!0}catch{return!1}}const A1=it(["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"]),Fl=it(["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"]),Vl=it(["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"]),Cae=it(["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"]),Rl=it(["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=it(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N1=it(["#text"]),D1=it(["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"]),zl=it(["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"]),M1=it(["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"]),Bs=it(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kae=at(/{{[\w\W]*|^[\w\W]*}}/g),wae=at(/<%[\w\W]*|^[\w\W]*%>/g),Eae=at(/\${[\w\W]*/g),xae=at(/^data-[\-\w.\u00B7-\uFFFF]+$/),Sae=at(/^aria-[\-\w]+$/),B1=at(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tae=at(/^(?:\w+script|data):/i),Aae=at(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nae=at(/^html$/i),Dae=at(/^[a-z][.\w]*(-[.\w]+)+$/i),$1=at(/<[/\w!]/g),O1=at(/<[/\w]/g),Mae=at(/<\/no(script|embed|frames)/i),Bae=at(/\/>/i),Nt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$ae=function(){return typeof window>"u"?null:window},Oae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));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}},L1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},eo=function(e,n,o,r){return Qe(e,n)&&oo(e[n])?we(r.base?ut(r.base):{},e[n],r.transform):o};function km(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$ae();const e=J=>km(J);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Nt.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=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=Jt(p,"cloneNode"),h=Jt(p,"remove"),g=Jt(p,"nextSibling"),y=Jt(p,"childNodes"),C=Jt(p,"parentNode"),v=Jt(p,"shadowRoot"),_=Jt(p,"attributes"),k=a&&a.prototype?Jt(a.prototype,"nodeType"):null,w=a&&a.prototype?Jt(a.prototype,"nodeName"):null,b=a&&a.prototype?Jt(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let E,T="",S,N=!1,L=0;const A=function(){if(L>0)throw So('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.')},D=function(x){A(),L++;try{return E.createHTML(x)}finally{L--}},M=function(x){A(),L++;try{return E.createScriptURL(x)}finally{L--}},I=function(){return N||(S=Oae(f,r),N=!0),S},P=n,j=P.implementation,V=P.createNodeIterator,U=P.createDocumentFragment,F=P.getElementsByTagName,Q=o.importNode;let ee=L1();e.isSupported=typeof Cm=="function"&&typeof C=="function"&&j&&j.createHTMLDocument!==void 0;const me=kae,se=wae,ae=Eae,z=xae,re=Sae,_e=Tae,De=Aae,Je=Dae;let H=B1,te=null;const Le=we({},[...A1,...Fl,...Vl,...Rl,...N1]);let le=null;const qe=we({},[...D1,...zl,...M1,...Bs]);let $=Object.seal(yr(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}})),G=null,de=null;const ke=Object.seal(yr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Me=!0,ve=!0,cn=!1,Tn=!0,He=!1,vt=!0,ct=!1,Zt=!1,An=null,Kn=null,ko=!1,Gn=!1,sr=!1,ar=!1,Nn=!0,un=!1;const hs="user-content-";let Xr=!0,Kt=!1,Et={},xt=null;const lr=we({},["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 gs=null;const Qr=we({},["audio","video","img","source","image","track"]);let St=null;const cr=we({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yn="http://www.w3.org/1998/Math/MathML",ur="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let Jn=Tt,wo=!1,ei=null;const ml=we({},[Yn,ur,Tt],Pl),vs=it(["mi","mo","mn","ms","mtext"]);let At=we({},vs);const ys=it(["annotation-xml"]);let ti=we({},ys);const hl=we({},["title","style","font","a","script"]);let Eo=null;const ni=["application/xhtml+xml","text/html"],oi="text/html";let Be=null,Gt=null;const ri=n.createElement("form"),_s=function(x){return x instanceof RegExp||x instanceof Function},Xn=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===x)return;(!x||typeof x!="object")&&(x={}),x=ut(x),Eo=ni.indexOf(x.PARSER_MEDIA_TYPE)===-1?oi:x.PARSER_MEDIA_TYPE,Be=Eo==="application/xhtml+xml"?Pl:ki,te=eo(x,"ALLOWED_TAGS",Le,{transform:Be}),le=eo(x,"ALLOWED_ATTR",qe,{transform:Be}),ei=eo(x,"ALLOWED_NAMESPACES",ml,{transform:Pl}),St=eo(x,"ADD_URI_SAFE_ATTR",cr,{transform:Be,base:cr}),gs=eo(x,"ADD_DATA_URI_TAGS",Qr,{transform:Be,base:Qr}),xt=eo(x,"FORBID_CONTENTS",lr,{transform:Be}),G=eo(x,"FORBID_TAGS",ut({}),{transform:Be}),de=eo(x,"FORBID_ATTR",ut({}),{transform:Be}),Et=Qe(x,"USE_PROFILES")?x.USE_PROFILES&&typeof x.USE_PROFILES=="object"?ut(x.USE_PROFILES):x.USE_PROFILES:!1,Me=x.ALLOW_ARIA_ATTR!==!1,ve=x.ALLOW_DATA_ATTR!==!1,cn=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Tn=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=x.SAFE_FOR_TEMPLATES||!1,vt=x.SAFE_FOR_XML!==!1,ct=x.WHOLE_DOCUMENT||!1,Gn=x.RETURN_DOM||!1,sr=x.RETURN_DOM_FRAGMENT||!1,ar=x.RETURN_TRUSTED_TYPE||!1,ko=x.FORCE_BODY||!1,Nn=x.SANITIZE_DOM!==!1,un=x.SANITIZE_NAMED_PROPS||!1,Xr=x.KEEP_CONTENT!==!1,Kt=x.IN_PLACE||!1,H=_ae(x.ALLOWED_URI_REGEXP)?x.ALLOWED_URI_REGEXP:B1,Jn=typeof x.NAMESPACE=="string"?x.NAMESPACE:Tt,At=Qe(x,"MATHML_TEXT_INTEGRATION_POINTS")&&x.MATHML_TEXT_INTEGRATION_POINTS&&typeof x.MATHML_TEXT_INTEGRATION_POINTS=="object"?ut(x.MATHML_TEXT_INTEGRATION_POINTS):we({},vs),ti=Qe(x,"HTML_INTEGRATION_POINTS")&&x.HTML_INTEGRATION_POINTS&&typeof x.HTML_INTEGRATION_POINTS=="object"?ut(x.HTML_INTEGRATION_POINTS):we({},ys);const O=Qe(x,"CUSTOM_ELEMENT_HANDLING")&&x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING=="object"?ut(x.CUSTOM_ELEMENT_HANDLING):yr(null);if($=yr(null),Qe(O,"tagNameCheck")&&_s(O.tagNameCheck)&&($.tagNameCheck=O.tagNameCheck),Qe(O,"attributeNameCheck")&&_s(O.attributeNameCheck)&&($.attributeNameCheck=O.attributeNameCheck),Qe(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),at($),He&&(ve=!1),sr&&(Gn=!0),Et&&(te=we({},N1),le=yr(null),Et.html===!0&&(we(te,A1),we(le,D1)),Et.svg===!0&&(we(te,Fl),we(le,zl),we(le,Bs)),Et.svgFilters===!0&&(we(te,Vl),we(le,zl),we(le,Bs)),Et.mathMl===!0&&(we(te,Rl),we(le,M1),we(le,Bs))),ke.tagCheck=null,ke.attributeCheck=null,Qe(x,"ADD_TAGS")&&(typeof x.ADD_TAGS=="function"?ke.tagCheck=x.ADD_TAGS:oo(x.ADD_TAGS)&&(te===Le&&(te=ut(te)),we(te,x.ADD_TAGS,Be))),Qe(x,"ADD_ATTR")&&(typeof x.ADD_ATTR=="function"?ke.attributeCheck=x.ADD_ATTR:oo(x.ADD_ATTR)&&(le===qe&&(le=ut(le)),we(le,x.ADD_ATTR,Be))),Qe(x,"ADD_URI_SAFE_ATTR")&&oo(x.ADD_URI_SAFE_ATTR)&&we(St,x.ADD_URI_SAFE_ATTR,Be),Qe(x,"FORBID_CONTENTS")&&oo(x.FORBID_CONTENTS)&&(xt===lr&&(xt=ut(xt)),we(xt,x.FORBID_CONTENTS,Be)),Qe(x,"ADD_FORBID_CONTENTS")&&oo(x.ADD_FORBID_CONTENTS)&&(xt===lr&&(xt=ut(xt)),we(xt,x.ADD_FORBID_CONTENTS,Be)),Xr&&(te["#text"]=!0),ct&&we(te,["html","head","body"]),te.table&&(we(te,["tbody"]),delete G.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=E;E=x.TRUSTED_TYPES_POLICY;try{T=D("")}catch(ce){throw E=W,ce}}else x.TRUSTED_TYPES_POLICY===null?(E=void 0,T=""):(E===void 0&&(E=I()),E&&typeof T=="string"&&(T=D("")));it&&it(x),Gt=x},ii=we({},[...Fl,...Vl,...Cae]),B=we({},[...Rl,...bae]),Y=function(x,O,W){return O.namespaceURI===Tt?x==="svg":O.namespaceURI===Yn?x==="svg"&&(W==="annotation-xml"||At[W]):!!ii[x]},Ce=function(x,O,W){return O.namespaceURI===Tt?x==="math":O.namespaceURI===ur?x==="math"&&ti[W]:!!B[x]},Pe=function(x,O,W){return O.namespaceURI===ur&&!ti[W]||O.namespaceURI===Yn&&!At[W]?!1:!B[x]&&(hl[x]||!ii[x])},Dn=function(x){let O=C(x);(!O||!O.tagName)&&(O={namespaceURI:Jn,tagName:"template"});const W=ki(x.tagName),ce=ki(O.tagName);return ei[x.namespaceURI]?x.namespaceURI===ur?Y(W,O,ce):x.namespaceURI===Yn?Ce(W,O,ce):x.namespaceURI===Tt?Pe(W,O,ce):!!(Eo==="application/xhtml+xml"&&ei[x.namespaceURI]):!1},Yt=function(x){hr(e.removed,{element:x});try{C(x).removeChild(x)}catch{if(h(x),!C(x))throw So("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},si=function(x){ai(x);const O=y(x);if(O){const ce=[];mr(O,ue=>{hr(ce,ue)}),mr(ce,ue=>{try{h(ue)}catch{}})}const W=_(x);if(W)for(let ce=W.length-1;ce>=0;--ce){const ue=W[ce],ye=ue&&ue.name;if(typeof ye=="string")try{x.removeAttribute(ye)}catch{}}},Mn=function(x,O){try{hr(e.removed,{attribute:O.getAttributeNode(x),from:O})}catch{hr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(x),x==="is")if(Gn||sr)try{Yt(O)}catch{}else try{O.setAttribute(x,"")}catch{}},Cs=function(x){const O=_(x);if(O)for(let W=O.length-1;W>=0;--W){const ce=O[W],ue=ce&&ce.name;if(!(typeof ue!="string"||le[Be(ue)]))try{x.removeAttribute(ue)}catch{}}},ai=function(x){const O=[x];for(;O.length>0;){const W=O.pop();(k?k(W):W.nodeType)===Nt.element&&Cs(W);const ue=y(W);if(ue)for(let ye=ue.length-1;ye>=0;--ye)O.push(ue[ye])}},qg=function(x){if(!vt)return;const O=[x];for(;O.length>0;){const W=O.pop(),ce=k?k(W):W.nodeType;if(ce===Nt.processingInstruction||ce===Nt.comment&&Xe(O1,W.data)){try{h(W)}catch{}continue}if(ce===Nt.element){const ye=W,$e=Be(w?w(W):W.nodeName);try{ye.hasAttribute&&ye.hasAttribute("patchsrc")&&ye.removeAttribute("patchsrc"),ye.hasAttribute&&ye.hasAttribute("for")&&$e!=="label"&&$e!=="output"&&ye.removeAttribute("for")}catch{}}const ue=y(W);if(ue)for(let ye=ue.length-1;ye>=0;--ye)O.push(ue[ye])}},dd=function(x){let O=null,W=null;if(ko)x="<remove></remove>"+x;else{const ye=E1(x,/^[\r\n\t ]+/);W=ye&&ye[0]}Eo==="application/xhtml+xml"&&Jn===Tt&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const ce=E?D(x):x;if(Jn===Tt)try{O=new d().parseFromString(ce,Eo)}catch{}if(!O||!O.documentElement){O=j.createDocument(Jn,"template",null);try{O.documentElement.innerHTML=wo?T:ce}catch{}}const ue=O.body||O.documentElement;return x&&W&&ue.insertBefore(n.createTextNode(W),ue.childNodes[0]||null),Jn===Tt?F.call(O,ct?"html":"body")[0]:ct?O.documentElement:ue},fd=function(x){const O=b?b(x):x.ownerDocument;return V.call(O||x,x,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},bs=function(x){return x=hi(x,me," "),x=hi(x,se," "),x=hi(x,ae," "),x},gl=function(x){var O;x.normalize();const W=b?b(x):x.ownerDocument,ce=V.call(W||x,x,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ue=ce.nextNode();for(;ue;)ue.data=bs(ue.data),ue=ce.nextNode();const ye=(O=x.querySelectorAll)===null||O===void 0?void 0:O.call(x,"template");ye&&mr(ye,$e=>{dr($e.content)&&gl($e.content)})},ks=function(x){const O=w?w(x):null;return typeof O!="string"||Be(O)!=="form"?!1:typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||x.attributes!==_(x)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function"||x.nodeType!==k(x)||x.childNodes!==y(x)},dr=function(x){if(!k||typeof x!="object"||x===null)return!1;try{return k(x)===Nt.documentFragment}catch{return!1}},li=function(x){if(!k||typeof x!="object"||x===null)return!1;try{return typeof k(x)=="number"}catch{return!1}};function dn(J,x,O){J.length!==0&&mr(J,W=>{W.call(e,x,O,Gt)})}const Hg=function(x,O){return!!(vt&&x.hasChildNodes()&&!li(x.firstElementChild)&&Xe($1,x.textContent)&&Xe($1,x.innerHTML)||vt&&x.namespaceURI===Tt&&O==="style"&&li(x.firstElementChild)||x.nodeType===Nt.processingInstruction||vt&&x.nodeType===Nt.comment&&Xe(O1,x.data))},jg=function(x,O,W){if(!G[O]&&gd(O)&&($.tagNameCheck instanceof RegExp&&Xe($.tagNameCheck,O)||$.tagNameCheck instanceof Function&&$.tagNameCheck(O)))return!1;if(Xr&&!xt[O]){const ce=C(x),ue=y(x);if(ue&&ce){const ye=ue.length;for(let $e=ye-1;$e>=0;--$e){const Fe=x===W?m(ue[$e],!0):ue[$e];ce.insertBefore(Fe,g(x))}}}return Yt(x),!0},pd=function(x,O,W,ce){return x.length===0?O:O===W||O===ce?ut(O):O},md=function(x,O){if(dn(ee.beforeSanitizeElements,x,null),x!==O&&C(x)===null)return Kt&&ai(x),!0;if(ks(x))return Yt(x),!0;const W=Be(w?w(x):x.nodeName);if(te=pd(ee.uponSanitizeElement,te,Le,An),dn(ee.uponSanitizeElement,x,{tagName:W,allowedTags:te}),x!==O&&C(x)===null)return Kt&&ai(x),!0;if(Hg(x,W))return Yt(x),!0;if(G[W]||!(ke.tagCheck instanceof Function&&ke.tagCheck(W))&&!te[W]){const ue=jg(x,W,O);return ue===!1&&dn(ee.afterSanitizeElements,x,null),ue}if((k?k(x):x.nodeType)===Nt.element&&!Dn(x)||(W==="noscript"||W==="noembed"||W==="noframes")&&Xe(Mae,x.innerHTML))return Yt(x),!0;if(He&&x.nodeType===Nt.text){const ue=bs(x.textContent);x.textContent!==ue&&(hr(e.removed,{element:x.cloneNode()}),x.textContent=ue)}return dn(ee.afterSanitizeElements,x,null),!1},hd=function(x,O,W){if(de[O]||vt&&O==="patchsrc"||vt&&O==="for"&&x!=="label"&&x!=="output"||Nn&&(O==="id"||O==="name")&&(W in n||W in ri))return!1;const ce=le[O]||ke.attributeCheck instanceof Function&&ke.attributeCheck(O,x);if(!(ve&&Xe(z,O))){if(!(Me&&Xe(re,O))){if(ce){if(!St[O]){if(!Xe(H,hi(W,De,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&x!=="script"&&x1(W,"data:")===0&&gs[x])){if(!(cn&&!Xe(_e,hi(W,De,"")))){if(W)return!1}}}}}else if(!(gd(x)&&($.tagNameCheck instanceof RegExp&&Xe($.tagNameCheck,x)||$.tagNameCheck instanceof Function&&$.tagNameCheck(x))&&($.attributeNameCheck instanceof RegExp&&Xe($.attributeNameCheck,O)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(O,x))||O==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Xe($.tagNameCheck,W)||$.tagNameCheck instanceof Function&&$.tagNameCheck(W))))return!1}}return!0},Wg=we({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),gd=function(x){return!Wg[ki(x)]&&Xe(Je,x)},Zg=function(x,O,W,ce){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!W)switch(f.getAttributeType(x,O)){case"TrustedHTML":return D(ce);case"TrustedScriptURL":return M(ce)}return ce},Kg=function(x,O,W,ce){try{W?x.setAttributeNS(W,O,ce):x.setAttribute(O,ce),ks(x)?Yt(x):w1(e.removed)}catch{Mn(O,x)}},vd=function(x){dn(ee.beforeSanitizeAttributes,x,null);const O=x.attributes;if(!O||ks(x))return;le=pd(ee.uponSanitizeAttribute,le,qe,Kn);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le,forceKeepAttr:void 0};let ce=O.length;const ue=Be(x.nodeName);for(;ce--;){const ye=O[ce],$e=ye.name,Fe=ye.namespaceURI,yt=ye.value,_t=Be($e),yl=yt;let pt=$e==="value"?yl:pae(yl);if(W.attrName=_t,W.attrValue=pt,W.keepAttr=!0,W.forceKeepAttr=void 0,dn(ee.uponSanitizeAttribute,x,W),pt=W.attrValue,un&&(_t==="id"||_t==="name")&&x1(pt,hs)!==0&&(Mn($e,x),pt=hs+pt),vt&&Xe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,pt)){Mn($e,x);continue}if(_t==="attributename"&&E1(pt,"href")){Mn($e,x);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Mn($e,x);continue}if(!Tn&&Xe(Bae,pt)){Mn($e,x);continue}if(He&&(pt=bs(pt)),!hd(ue,_t,pt)){Mn($e,x);continue}pt=Zg(ue,_t,Fe,pt),pt!==yl&&Kg(x,$e,Fe,pt)}}dn(ee.afterSanitizeAttributes,x,null)},ws=function(x){let O=null;const W=fd(x);for(dn(ee.beforeSanitizeShadowDOM,x,null);O=W.nextNode();)if(dn(ee.uponSanitizeShadowNode,O,null),md(O,x),vd(O),dr(O.content)&&ws(O.content),(k?k(O):O.nodeType)===Nt.element){const ue=v(O);dr(ue)&&(vl(ue),ws(ue))}dn(ee.afterSanitizeShadowDOM,x,null)},vl=function(x){const O=[{node:x,shadow:null}];for(;O.length>0;){const W=O.pop();if(W.shadow){ws(W.shadow);continue}const ce=W.node,ye=(k?k(ce):ce.nodeType)===Nt.element,$e=y(ce);if($e)for(let Fe=$e.length-1;Fe>=0;--Fe)O.push({node:$e[Fe],shadow:null});if(ye){const Fe=w?w(ce):null;if(typeof Fe=="string"&&Be(Fe)==="template"){const yt=ce.content;dr(yt)&&O.push({node:yt,shadow:null})}}if(ye){const Fe=v(ce);dr(Fe)&&O.push({node:null,shadow:Fe},{node:Fe,shadow:null})}}};return e.sanitize=function(J){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,W=null,ce=null,ue=null;if(wo=!J,wo&&(J="<!-->"),typeof J!="string"&&!li(J)&&(J=yae(J),typeof J!="string"))throw So("dirty is not a string, aborting");if(!e.isSupported)return J;Zt?(te=An,le=Kn):Xn(x),(ee.uponSanitizeElement.length>0||ee.uponSanitizeAttribute.length>0)&&(te=ut(te)),ee.uponSanitizeAttribute.length>0&&(le=ut(le)),e.removed=[];const ye=Kt&&typeof J!="string"&&li(J);if(ye){qg(J);const yt=w?w(J):J.nodeName;if(typeof yt=="string"){const _t=Be(yt);if(!te[_t]||G[_t])throw si(J),So("root node is forbidden and cannot be sanitized in-place")}if(ks(J))throw si(J),So("root node is clobbered and cannot be sanitized in-place");try{vl(J)}catch(_t){throw si(J),_t}}else if(li(J))O=dd("<!---->"),W=O.ownerDocument.importNode(J,!0),W.nodeType===Nt.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?O=W:O.appendChild(W),vl(W);else{if(!Gn&&!He&&!ct&&J.indexOf("<")===-1)return E&&ar?D(J):J;if(O=dd(J),!O)return Gn?null:ar?T:""}O&&ko&&Yt(O.firstChild);const $e=ye?J:O;try{const yt=fd($e);for(;ce=yt.nextNode();)md(ce,$e),vd(ce),dr(ce.content)&&ws(ce.content)}catch(yt){throw ye&&(si(J),mr(e.removed,_t=>{_t.element&&ai(_t.element)})),yt}if(ye)return mr(e.removed,yt=>{yt.element&&ai(yt.element)}),He&&gl(J),J;if(Gn){if(He&&gl(O),sr)for(ue=U.call(O.ownerDocument);O.firstChild;)ue.appendChild(O.firstChild);else ue=O;return(le.shadowroot||le.shadowrootmode)&&(ue=Q.call(o,ue,!0)),ue}let Fe=ct?O.outerHTML:O.innerHTML;return ct&&te["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&Xe(Nae,O.ownerDocument.doctype.name)&&(Fe="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
19
+ `+Fe),He&&(Fe=bs(Fe)),E&&ar?D(Fe):Fe},e.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xn(J),Zt=!0,An=te,Kn=le},e.clearConfig=function(){Gt=null,Zt=!1,An=null,Kn=null,E=S,T=""},e.isValidAttribute=function(J,x,O){Gt||Xn({});const W=Be(J),ce=Be(x);return hd(W,ce,O)},e.addHook=function(J,x){typeof x=="function"&&Qe(ee,J)&&hr(ee[J],x)},e.removeHook=function(J,x){if(Qe(ee,J)){if(x!==void 0){const O=dae(ee[J],x);return O===-1?void 0:fae(ee[J],O,1)[0]}return w1(ee[J])}},e.removeHooks=function(J){Qe(ee,J)&&(ee[J]=[])},e.removeAllHooks=function(){ee=L1()},e}var Lae=km();const Iae=["innerHTML"],Pae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},wm=i.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new nae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?Lae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(r,s)=>t.content?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Iae)):(i.openBlock(),i.createElementBlock("div",Pae,i.toDisplayString(t.placeholder),1))}});function K(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Em(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 an=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Fae=an&&"documentMode"in document?document.documentMode:null,Xt=an&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Zo=an&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ra=!(!an||!("InputEvent"in window)||Fae)&&"getTargetRanges"in new window.InputEvent("input"),Ui=an&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Pr=an&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Vae=an&&/Android/.test(navigator.userAgent),xm=an&&/^(?=.*Chrome).*/i.test(navigator.userAgent),I1=an&&Vae&&xm,qi=an&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Xt&&!xm;function Sm(...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 Rae=0,zae=1,Uae=2,Tm=128,qae=1,Hae=2,jae=3,Wae=4,Zae=5,Kae=6,Ka=Ui||Pr||qi?" ":"​",mo=`
20
20
 
21
- `,Kae=Wo?" ":Za,pt={bold:1,capitalize:1024,code:16,highlight:Sm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Gae={directionless:1,unmergeable:2},I1={center:2,end:6,justify:4,left:1,right:3,start:5},Yae={[qae]:"center",[Zae]:"end",[jae]:"justify",[Uae]:"left",[Hae]:"right",[Wae]:"start"},Jae={normal:0,segmented:2,token:1},Xae={[Vae]:"normal",[zae]:"segmented",[Rae]:"token"},P1="$config";function Tm(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(z(a)&&Tm(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let hc=!1,_u=0;function Qae(t){_u=t.timeStamp}function zl(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&nl(t,n)!==void 0}function ele(t,e,n){const o=on(Wt(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Lu(e,a,r,s,!1)}function tle(t,e,n){if(K(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return Zn(e)&&n.isAttached()}function nle(t,e,n,o){for(let r=t;r&&!ice(r);r=ds(r)){const s=nl(r,e);if(s!==void 0){const a=Ye(s,n);if(a)return Ee(a)||!Ze(r)?void 0:[r,a]}else if(r===o)return[o,Nh(n)]}}function Am(t,e,n){hc=!0;const o=performance.now()-_u>100;try{Mt(t,()=>{const r=ne()||function(p){return p.getEditorState().read(()=>{const m=ne();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=nle(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&ee(v)&&Zn(g)&&tle(r,g,v)&&ele(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let b=0;b<_.length;b++){const E=_[b],T=Th(E),S=E.parentNode;if(S!=null&&E!==c&&T===null&&!zl(E,S,t)){if(Wo){const N=(Ze(E)?E.innerText:null)||E.nodeValue;N&&(d+=N)}S.removeChild(E)}}const k=m.removedNodes,w=k.length;if(w>0){let b=0;for(let E=0;E<w;E++){const T=k[E];(zl(T,g,t)||c===T)&&(g.appendChild(T),b++)}w!==b&&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"||zl(C,g,t)||v.removeChild(C)}}n.takeRecords()}r!==null&&(u&&at(r),Wo&&$h(t)&&r.insertRawText(d))})}finally{hc=!1}}function Nm(t){const e=t._observer;e!==null&&Am(t,e.takeRecords(),e)}function Dm(t){(function(e){_u===0&&Wt(e).addEventListener("textInput",Qae,!0)})(t),t._observer=new MutationObserver((e,n)=>{Am(t,e,n)})}let ole=class{constructor(e,n){H(this,"key");H(this,"parse");H(this,"unparse");H(this,"isEqual");H(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||ale).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function rle(t,e){return new ole(t,e)}function Mm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Ul(t,e,n){let o;if(Qe(),typeof n=="function"){const s=t.getLatest(),a=Mm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return $m(r).updateFromKnown(e,o),r}function ile(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:r}=il(o);if(r&&r.stateConfigs)for(const s of r.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 sle=class Bm{constructor(e,n,o=void 0,r=new Map,s=void 0){H(this,"node");H(this,"knownState");H(this,"unknownState");H(this,"sharedNodeState");H(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=r;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,r);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 r=this.unknownState[e.key];r!==void 0&&(o=e.parse(r)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,r]of this.knownState)o.isEqual(r,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(r);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return F1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,r=new Map(this.knownState);return new Bm(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,r,o),r,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:r,unknownState:s}=this;r.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=F1(s)),this.size++),r.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,r]of Object.entries(e))this.updateFromUnknown(o,r)}};function $m(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new sle(e,Om(e));return e.__state=n,n}function Om(t){return t.__state?t.__state.sharedNodeState:wh(rl(),t.getType()).sharedNodeState}function F1(t){if(t)for(const e in t)return t}function ale(t){return t}function V1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==r&&!o.isEqual(s,r))return!0}return!1}function R1(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(r?r[s]:void 0)))return!0}return!1}function z1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function U1(t,e){const n=t.__mode,o=t.__format,r=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)&&(r===null||r===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&&V1(p,d,f)||f&&V1(p,f,d)||d&&R1(p,d,f)||f&&R1(p,f,d))}(c,u))}function q1(t,e){const n=t.mergeWithSibling(e),o=Ve()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function H1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&ee(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(U1(e,o)){o=q1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&ee(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(U1(o,n)){o=q1(o,n);break}break}n.remove()}}else o.remove()}function ra(t){return j1(t.anchor),j1(t.focus),t}function j1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),ee(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!z(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Zo,ut,Ui,Ka,gc,vc,Ko,en,yc,qi,Ge="",pn=null,mn="",In="",yr=!1,ia=!1;function sa(t,e){const n=Ko.get(t);if(e!==null){const o=kc(t);o.parentNode===e&&e.removeChild(o)}if(en.has(t)||ut._keyToDOMMap.delete(t),z(n)){const o=la(n,Ko);_c(o,0,o.length-1,null)}n!==void 0&&Iu(qi,Ui,Ka,n,"destroyed")}function _c(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&sa(s,o)}}function To(t,e){t.setProperty("text-align",e)}const lle="40px";function Lm(t,e){const n=Zo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||lle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Im(t,e){const n=t.style;e===0?To(n,""):e===1?To(n,"left"):e===2?To(n,"center"):e===3?To(n,"right"):e===4?To(n,"justify"):e===5?To(n,"start"):e===6&&To(n,"end")}function Cc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(je(o))return null;const s=o.getParentOrThrow();return je(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function aa(t,e){const n=en.get(t);n===void 0&&Y(60);const o=n.createDOM(Zo,ut);if(function(r,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,r),l.set(r,s)}(t,o,ut),ee(n)?o.setAttribute("data-lexical-text","true"):Ee(n)&&o.setAttribute("data-lexical-decorator","true"),z(n)){const r=n.__indent,s=n.__size;if(Cc(o,n),r!==0&&Lm(o,r),s!==0){const l=s-1;bc(la(n,en),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Im(o,a),n.isInline()||Pm(null,n,o),ol(n)&&(Ge+=mo,In+=mo)}else{const r=n.getTextContent();if(Ee(n)){const s=n.decorate(ut,Zo);s!==null&&Fm(t,s),o.contentEditable="false"}Ge+=r,In+=r}return e!==null&&e.insertChild(o),Iu(qi,Ui,Ka,n,"created"),o}function bc(t,e,n,o,r){const s=Ge;Ge="";let a=n;for(;a<=o;++a){aa(t[a],r);const l=en.get(t[a]);l!==null&&ee(l)&&(pn===null&&(pn=l.getFormat()),mn===""&&(mn=l.getStyle()))}ol(e)&&(Ge+=mo),r.element.__lexicalTextContent=Ge,Ge=s+Ge}function W1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return ao(o)?"line-break":Ee(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Pm(t,e,n){const o=W1(t,Ko),r=W1(e,en);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function cle(t,e,n){var o;pn=null,mn="",function(r,s,a){const l=Ge,c=r.__size,u=s.__size;Ge="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)bi(f,d);else{const h=kc(f),g=aa(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}sa(f,null)}const m=en.get(p);ee(m)&&(pn===null&&(pn=m.getFormat()),mn===""&&(mn=m.getStyle()))}else{const f=la(r,Ko),p=la(s,en);if(f.length!==c&&Y(227),p.length!==u&&Y(228),c===0)u!==0&&bc(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;_c(f,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,g,y,C,v){const _=y-1,k=C-1;let w,b,E=v.getFirstChild(),T=0,S=0;for(;T<=_&&S<=k;){const A=h[T],D=g[S];if(A===D)E=ql(bi(D,v.element)),T++,S++;else{w===void 0&&(w=new Set(h)),b===void 0&&(b=new Set(g));const I=b.has(A),P=w.has(D);if(I)if(P){const W=Yo(ut,D);W===E?E=ql(bi(D,v.element)):(v.withBefore(E).insertChild(W),bi(D,v.element)),T++,S++}else aa(D,v.withBefore(E)),S++;else E=ql(kc(A)),sa(A,v.element),T++}const M=en.get(D);M!==null&&ee(M)&&(pn===null&&(pn=M.getFormat()),mn===""&&(mn=M.getStyle()))}const N=T>_,L=S>k;if(N&&!L){const A=g[k+1],D=A===void 0?null:ut.getElementByKey(A);bc(g,m,S,k,v.withBefore(D))}else L&&!N&&_c(h,T,_,v.element)})(s,f,p,c,u,a)}ol(s)&&(Ge+=mo),d.__lexicalTextContent=Ge,Ge=l+Ge}(t,e,e.getDOMSlot(n)),o=e,pn==null||pn===o.__textFormat||ia||o.setTextFormat(pn),function(r){mn===""||mn===r.__textStyle||ia||r.setTextStyle(mn)}(e)}function la(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&Y(101),n.push(o),o=r.__next}return n}function bi(t,e){const n=Ko.get(t);let o=en.get(t);n!==void 0&&o!==void 0||Y(61);const r=yr||vc.has(t)||gc.has(t),s=Yo(ut,t);if(n===o&&!r){if(z(n)){const a=s.__lexicalTextContent;a!==void 0&&(Ge+=a,In+=a)}else{const a=n.getTextContent();In+=a,Ge+=a}return s}if(n!==o&&r&&Iu(qi,Ui,Ka,o,"updated"),o.updateDOM(n,s,Zo)){const a=aa(t,null);return e===null&&Y(62),e.replaceChild(a,s),sa(t,null),a}if(z(n)&&z(o)){const a=o.__indent;(yr||a!==n.__indent)&&Lm(s,a);const l=o.__format;if((yr||l!==n.__format)&&Im(s,l),r&&(cle(n,o,s),je(o)||o.isInline()||Pm(n,o,s)),ol(o)&&(Ge+=mo,In+=mo),(yr||o.__dir!==n.__dir)&&(Cc(s,o),je(o)&&!yr))for(const c of o.getChildren())z(c)&&Cc(Yo(ut,c.getKey()),c)}else{const a=o.getTextContent();if(Ee(o)){const l=o.decorate(ut,Zo);l!==null&&Fm(t,l)}Ge+=a,In+=a}if(!ia&&je(o)&&o.__cachedText!==In){const a=o.getWritable();a.__cachedText=In,o=a}return s}function Fm(t,e){let n=ut._pendingDecorators;const o=ut._decorators;if(n===null){if(o[t]===e)return;n=Ah(ut)}n[t]=e}function ql(t){let e=t.nextSibling;return e!==null&&e===ut._blockCursorElement&&(e=e.nextSibling),e}function ule(t,e,n,o,r,s){Ge="",In="",yr=o===2,ut=n,Zo=n._config,Ui=n._nodes,Ka=ut._listeners.mutation,gc=r,vc=s,Ko=t._nodeMap,en=e._nodeMap,ia=e._readOnly,yc=new Map(n._keyToDOMMap);const a=new Map;return qi=a,bi("root",null),ut=void 0,Ui=void 0,gc=void 0,vc=void 0,Ko=void 0,en=void 0,Zo=void 0,yc=void 0,qi=void 0,a}function kc(t){const e=yc.get(t);return e===void 0&&Y(75,t),e}function le(t){return{type:t}}const Vm=le("SELECTION_CHANGE_COMMAND"),dle=le("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Rm=le("CLICK_COMMAND"),Vo=le("DELETE_CHARACTER_COMMAND"),wr=le("INSERT_LINE_BREAK_COMMAND"),Hi=le("INSERT_PARAGRAPH_COMMAND"),Er=le("CONTROLLED_TEXT_INSERTION_COMMAND"),Cu=le("PASTE_COMMAND"),wc=le("REMOVE_TEXT_COMMAND"),ji=le("DELETE_WORD_COMMAND"),Wi=le("DELETE_LINE_COMMAND"),Rt=le("FORMAT_TEXT_COMMAND"),bu=le("UNDO_COMMAND"),ku=le("REDO_COMMAND"),fle=le("KEYDOWN_COMMAND"),zm=le("KEY_ARROW_RIGHT_COMMAND"),ple=le("MOVE_TO_END"),Um=le("KEY_ARROW_LEFT_COMMAND"),mle=le("MOVE_TO_START"),qm=le("KEY_ARROW_UP_COMMAND"),Hm=le("KEY_ARROW_DOWN_COMMAND"),ca=le("KEY_ENTER_COMMAND"),jm=le("KEY_SPACE_COMMAND"),Wm=le("KEY_BACKSPACE_COMMAND"),Zm=le("KEY_ESCAPE_COMMAND"),Km=le("KEY_DELETE_COMMAND"),Gm=le("KEY_TAB_COMMAND"),hle=le("INSERT_TAB_COMMAND"),gle=le("INDENT_CONTENT_COMMAND"),Z1=le("OUTDENT_CONTENT_COMMAND"),Ym=le("DROP_COMMAND"),vle=le("FORMAT_ELEMENT_COMMAND"),Jm=le("DRAGSTART_COMMAND"),Xm=le("DRAGOVER_COMMAND"),yle=le("DRAGEND_COMMAND"),Ga=le("COPY_COMMAND"),wu=le("CUT_COMMAND"),Ec=le("SELECT_ALL_COMMAND"),_le=le("CLEAR_EDITOR_COMMAND"),Cle=le("CLEAR_HISTORY_COMMAND"),Bs=le("CAN_REDO_COMMAND"),$s=le("CAN_UNDO_COMMAND"),ble=le("FOCUS_COMMAND"),kle=le("BLUR_COMMAND"),wle=le("KEY_MODIFIER_COMMAND"),Bn=Object.freeze({}),xc=[["keydown",function(t,e){if(Si=t.timeStamp,Qm=t.key,!e.isComposing()&&!ie(e,fle,t)&&t.key!=null){if(Hl&&wf(t))return Mt(e,()=>{Os(e,jl)}),Hl=!1,void(jl="");if(function(n){return Te(n,"ArrowRight",{shiftKey:"any"})}(t))ie(e,zm,t);else if(function(n){return Te(n,"ArrowRight",On)}(t))ie(e,ple,t);else if(function(n){return Te(n,"ArrowLeft",{shiftKey:"any"})}(t))ie(e,Um,t);else if(function(n){return Te(n,"ArrowLeft",On)}(t))ie(e,mle,t);else if(function(n){return Te(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))ie(e,qm,t);else if(function(n){return Te(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))ie(e,Hm,t);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Ti=!0,ie(e,ca,t);else if(function(n){return n.key===" "}(t))ie(e,jm,t);else if(function(n){return Xt&&Te(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,ie(e,wr,!0);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,ie(e,ca,t);else if(function(n){return Te(n,"Backspace",{shiftKey:"any"})||Xt&&Te(n,"h",{ctrlKey:!0})}(t))wf(t)?ie(e,Wm,t):(t.preventDefault(),ie(e,Vo,!0));else if(function(n){return n.key==="Escape"}(t))ie(e,Zm,t);else if(function(n){return Te(n,"Delete",{})||Xt&&Te(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?ie(e,Km,t):(t.preventDefault(),ie(e,Vo,!1));else if(function(n){return Te(n,"Backspace",kf)}(t))t.preventDefault(),ie(e,ji,!0);else if(function(n){return Te(n,"Delete",kf)}(t))t.preventDefault(),ie(e,ji,!1);else if(function(n){return Xt&&Te(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),ie(e,Wi,!0);else if(function(n){return Xt&&(Te(n,"Delete",{metaKey:!0})||Te(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),ie(e,Wi,!1);else if(function(n){return Te(n,"b",On)}(t))t.preventDefault(),ie(e,Rt,"bold");else if(function(n){return Te(n,"u",On)}(t))t.preventDefault(),ie(e,Rt,"underline");else if(function(n){return Te(n,"i",On)}(t))t.preventDefault(),ie(e,Rt,"italic");else if(function(n){return Te(n,"Tab",{shiftKey:"any"})}(t))ie(e,Gm,t);else if(function(n){return Te(n,"z",On)}(t))t.preventDefault(),ie(e,bu,void 0);else if(function(n){return Xt?Te(n,"z",{metaKey:!0,shiftKey:!0}):Te(n,"y",{ctrlKey:!0})||Te(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),ie(e,ku,void 0);else{const n=e._editorState._selection;n===null||K(n)?Ef(t)&&(t.preventDefault(),ie(e,Ec,t)):function(o){return Te(o,"c",On)}(t)?(t.preventDefault(),ie(e,Ga,t)):function(o){return Te(o,"x",On)}(t)?(t.preventDefault(),ie(e,wu,t)):Ef(t)&&(t.preventDefault(),ie(e,Ec,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&ie(e,wle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Wr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Mt(e,()=>{_f(n)||(Ac=!0)})}],["compositionstart",function(t,e){Mt(e,()=>{const n=ne();if(K(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();ot(o.key),(t.timeStamp<Si+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||ee(r)&&r.getStyle()!==n.style)&&ie(e,Er,Kae)}})}],["compositionend",function(t,e){Wo?hi=!0:Lr||!Ri&&!zi?Mt(e,()=>{Os(e,t.data)}):(Hl=!0,jl=t.data)}],["input",function(t,e){t.stopPropagation(),Mt(e,()=>{if(Ze(t.target)&&_f(t.target))return;const n=ne(),o=t.data,r=rh(t);if(o!=null&&K(n)&&nh(n,r,o,t.timeStamp,!1)){hi&&(Os(e,o),hi=!1);const s=n.anchor.getNode(),a=on(Wt(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;oa&&!n.isCollapsed()&&ee(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Bh(a.anchorNode)||ie(e,Er,o);const d=o.length;Wo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Ri||Lr||zi||!e.isComposing()||(Si=0,ot(null))}else Ou(!1,e,o!==null?o:void 0),hi&&(Os(e,o||void 0),hi=!1);(function(){Qe();const s=Ve();Nm(s)})()},{event:t}),_r=null}],["click",function(t,e){Mt(e,()=>{const n=ne(),o=on(Wt(e)),r=jr();if(o){if(K(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!je(a)&&Re().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=qt(a,c=>z(c)&&!c.isInline());z(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(Ze(s)||Zn(s))&&at(xu(r,o,e,t))}}ie(e,Rm,t)})}],["cut",Bn],["copy",Bn],["dragstart",Bn],["dragover",Bn],["dragend",Bn],["paste",Bn],["focus",Bn],["blur",Bn],["drop",Bn]];oa&&xc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=rh(n);r==="deleteCompositionText"||Wo&&$h(o)||r!=="insertCompositionText"&&Mt(o,()=>{const a=ne();if(r==="deleteContentBackward"){if(a===null){const m=jr();if(!K(m))return;at(m.clone())}if(K(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,Qm==="MediaLast"&&l<Si+30&&o.isComposing()&&m){if(ot(null),Si=0,setTimeout(()=>{Mt(o,()=>{ot(null)})},30),K(a)){const h=a.anchor.getNode();h.markDirty(),ee(h)||Y(142),oh(a,h)}}else{ot(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=L1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!Ee($c(a.anchor,!0))),!v){ie(o,Vo,!0);const _=ne();L1&&K(_)&&_.isCollapsed()&&($o=_,setTimeout(()=>$o=null))}}return}}var l;if(!K(a))return;const c=n.data;_r!==null&&Ou(!1,o,_r),a.dirty&&_r===null||!a.isCollapsed()||je(a.anchor.getNode())||s===null||a.applyDOMRange(s),_r=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(o,Er,n);break;case"insertFromComposition":ot(null),ie(o,Er,n);break;case"insertLineBreak":ot(null),ie(o,wr,!1);break;case"insertParagraph":ot(null),Ti&&!Lr?(Ti=!1,ie(o,wr,!1)):ie(o,Hi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(o,Cu,n);break;case"deleteByComposition":(function(m,h){return m!==h||z(m)||z(h)||!Ro(m)||!Ro(h)})(f,p)&&ie(o,wc,n);break;case"deleteByDrag":case"deleteByCut":ie(o,wc,n);break;case"deleteContent":ie(o,Vo,!1);break;case"deleteWordBackward":ie(o,ji,!0);break;case"deleteWordForward":ie(o,ji,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(o,Wi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(o,Wi,!1);break;case"formatStrikeThrough":ie(o,Rt,"strikethrough");break;case"formatBold":ie(o,Rt,"bold");break;case"formatItalic":ie(o,Rt,"italic");break;case"formatUnderline":ie(o,Rt,"underline");break;case"historyUndo":ie(o,bu,void 0);break;case"historyRedo":ie(o,ku,void 0)}else{if(c===`
22
- `)n.preventDefault(),ie(o,wr,!1);else if(c===mo)n.preventDefault(),ie(o,Hi,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&nh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),ie(o,Er,c)):_r=c;eh=n.timeStamp}})}(t,e)]);let Si=0,Qm=null,eh=0,_r=null;const Sc=new WeakMap,ua=new WeakMap;let Tc=!1,Ac=!1,Ti=!1,hi=!1,Hl=!1,jl="",$o=null,th=[0,"",0,"root",0];function nh(t,e,n,o,r){const s=t.anchor,a=t.focus,l=s.getNode(),c=Ve(),u=on(Wt(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),m=n.length;return f!==a.key||!ee(l)||(!r&&(!oa||eh<o+50)||l.isDirty()&&m<2||Dh(n))&&s.offset!==a.offset&&!l.isComposing()||Ln(l)||l.isDirty()&&m>1||(r||!oa)&&p!==null&&!l.isComposing()&&d!==Ir(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=Ro(g);return y===0?!g.canInsertTextBefore()||!C.canInsertTextBefore()&&!g.isComposing()||v||function(_){const k=_.getPreviousSibling();return(ee(k)||z(k)&&k.isInline())&&!k.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!C.canInsertTextAfter()&&!g.isComposing()||v)}(t,l)}function K1(t,e){return Zn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function G1(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=t;Tc&&(Tc=!1,K1(o,r)&&K1(s,a)&&!$o)||Mt(e,()=>{if(!n)return void at(null);if(!us(e,o,s))return;let l=ne();if($o&&K(l)&&l.isCollapsed()){const c=l.anchor,u=$o.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=$o.clone(),at(l))}if($o=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=Wt(e).event,f=d?d.timeStamp:performance.now(),[p,m,h,g,y]=th,C=Re(),v=e.isComposing()===!1&&C.getTextContent()==="";if(f<y+200&&c.offset===h&&c.key===g)Hs(l,p,m);else if(c.type==="text")ee(u)||Y(141),oh(l,u);else if(c.type==="element"&&!v){z(u)||Y(259);const _=c.getNode();_.isEmpty()?function(k,w){const b=w.getTextFormat(),E=w.getTextStyle();Hs(k,b,E)}(l,_):Hs(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),m=p.length,h=l.isBackward(),g=h?a:r,y=h?r:a,C=h?f:d,v=h?d:f;let _=2047,k=!1;for(let w=0;w<m;w++){const b=p[w],E=b.getTextContentSize();if(ee(b)&&E!==0&&!(w===0&&b.__key===C&&g===E||w===m-1&&b.__key===v&&y===0)&&(k=!0,_&=b.getFormat(),_===0))break}l.format=k?_:0}}ie(e,Vm,void 0)})}function Hs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function oh(t,e){Hs(t,e.getFormat(),e.getStyle())}function rh(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Os(t,e){const n=t._compositionKey;if(ot(null),n!==null&&e!=null){if(e===""){const o=Ye(n),r=Ir(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&ee(o)&&Lu(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
- `){const o=ne();if(K(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void ie(t,ca,null)}}}Ou(!0,t,e)}function ih(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const xr=new Map;function sh(t){const e=nce(t.target);if(e===null)return;const n=Eh(e.anchorNode);if(n===null)return;Ac&&(Ac=!1,Mt(n,()=>{const c=jr(),u=e.anchorNode;(Ze(u)||Zn(u))&&at(xu(c,e,n,t))}));const o=$u(n),r=o[o.length-1],s=r._key,a=xr.get(s),l=a||r;l!==n&&G1(e,l,!1),G1(e,n,!0),n!==r?xr.set(s,n):a&&xr.delete(s)}function Y1(t){t._lexicalHandled=!0}function J1(t){return t._lexicalHandled===!0}const X1=()=>{};function Ele(t){const e=Sc.get(t);if(e===void 0)return void X1();const n=ua.get(e);if(n===void 0)return void X1();const o=n-1;o>=0||Y(164),Sc.delete(t),ua.set(e,o),o===0&&e.removeEventListener("selectionchange",sh);const r=tl(t);Bu(r)?(function(a){if(a._parentEditor!==null){const l=$u(a),c=l[l.length-1]._key;xr.get(c)===a&&xr.delete(c)}else xr.delete(a._key)}(r),t.__lexicalEditor=null):r&&Y(198);const s=ih(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Nc(t,e,n){Qe();const o=t.__key,r=t.getParent();if(r===null)return;const s=function(l){const c=ne();if(!K(c)||!z(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Oc(f,l)&&u.set(l.__key,0,"element"),Oc(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&&(ma(l,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(ma(c,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Dt(s)&&e&&t.isSelected()&&t.selectPrevious();if(K(s)&&e&&!a){const l=t.getIndexWithinParent();zo(t),pa(s,r,l,-1)}else zo(t);n||mt(r)||r.canBeEmpty()||!r.isEmpty()||Nc(r,e),e&&s&&je(r)&&r.isEmpty()&&r.selectEnd()}const ah=Symbol.for("ephemeral");function da(t){return t[ah]||!1}class tn{constructor(e){H(this,"__type");H(this,"__key");H(this,"__parent");H(this,"__prev");H(this,"__next");H(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}),Gle(this,e)}static getType(){const{ownNodeType:e}=il(this);return e===void 0&&Y(64,this.name),e}static clone(e){Y(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(){Y(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=Ye(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||ne();if(n==null)return!1;const o=n.getNodes().some(r=>r.__key===this.__key);if(ee(this))return o;if(K(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(Ee(this)&&this.isInline()&&r){const s=n.isBackward()?n.focus:n.anchor;if(r.is(s.getNode())&&s.offset===r.getChildrenSize()&&this.is(r.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:Ye(e)}getParentOrThrow(){const e=this.getParent();return e===null&&Y(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(mt(n))return z(e)||e===this&&Ee(e)||Y(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&Y(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:Ye(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:Ye(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=z(this)?this:this.getParent(),o=z(e)?e:e.getParent(),r=n&&o?Ws(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Ws(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Vh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&Y(279),!1)))}isParentOf(e){const n=Ws(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],r=new Set;let s=this;for(;s!==null;){const a=s.__key;if(r.has(a)||(r.add(a),o.push(s)),s===e)break;const l=z(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(r.has(u.__key)||o.push(u),u===e)break;let d=null,f=u;do{if(f===null&&Y(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||r.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=Ve()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(da(this))return this;const e=Ye(this.__key);return e===null&&Y(113),e}getWritable(){if(da(this))return this;Qe();const e=Co(),n=Ve(),o=e._nodeMap,r=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=ne();if(l!==null&&l.setCachedNodes(null),a.has(r))return ga(s),s;const c=Ih(s);return a.add(r),ga(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){Y(70)}updateDOM(e,n,o){Y(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){Y(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),s=o.$;let a=s;for(const l of Om(r).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(r.__state||a)&&$m(n).updateFromJSON(a),r}(this,e)}static transform(){return null}remove(e){Nc(this,!0,e)}replace(e,n){Qe();let o=ne();o!==null&&(o=o.clone()),Jl(this,e);const r=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;zo(l);const d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;if(Nc(r,!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&&(z(this)&&z(l)||Y(139),this.getChildren().forEach(g=>{l.append(g)})),K(o)){at(o);const g=o.anchor,y=o.focus;g.key===s&&nf(g,l),y.key===s&&nf(y,l)}return ro()===s&&ot(a),l}insertAfter(e,n=!0){Qe(),Jl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.getParent(),a=ne();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(zo(r),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=r.__key,p=o.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,o.__next=f,r.__next=p,r.__prev=o.__key,r.__parent=o.__parent,n&&K(a)){const m=this.getIndexWithinParent();pa(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){Qe(),Jl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.__key;zo(r);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,r.__prev=c,r.__next=o.__key,r.__parent=o.__parent;const d=ne();return n&&K(d)&&pa(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return Oe()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Qe();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(z(o))return o.select();if(!ee(o)){const s=o.getIndexWithinParent()+1;return r.select(s,s)}return o.select(e,n)}selectNext(e,n){Qe();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(z(o))return o.select(0,0);if(!ee(o)){const s=o.getIndexWithinParent();return r.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}H(tn,"importDOM");const fa="historic",xle="history-push",Ai="history-merge",Sle="paste",lh="collaboration",Tle="skip-scroll-into-view",Ale="skip-dom-selection",Nle="skip-selection-focus";class rs extends tn{static getType(){return"linebreak"}static clone(e){return new rs(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&&va(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Ls(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Ls(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&va(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Ls(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Ls(s))return!0}return!1}(e)?null:{conversion:Dle,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Dle(t){return{node:nn()}}function nn(){return ln(new rs)}function ao(t){return t instanceof rs}function Ls(t){return Zn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Wl(t,e){return 16&e?"code":e&Sm?"mark":32&e?"sub":64&e?"sup":null}function Zl(t,e){return 1&e?"strong":2&e?"em":"span"}function ch(t,e,n,o,r){const s=o.classList;let a=Sr(r,"base");a!==void 0&&s.add(...a),a=Sr(r,"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 pt){const d=pt[u];if(a=Sr(r,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 uh(t,e,n){const o=e.firstChild,r=n.isComposing(),s=t+(r?Za:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(r||Wo){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 Q1(t,e,n,o,r,s){uh(r,t,e);const a=s.theme.text;a!==void 0&&ch(0,0,o,t,a)}function Is(t,e){const n=document.createElement(e);return n.appendChild(t),n}class _o extends tn{constructor(n="",o){super(o);H(this,"__text");H(this,"__format");H(this,"__style");H(this,"__mode");H(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 _o(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 Xae[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===ro()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=pt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ha(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,s=Wl(0,r),a=Zl(0,r),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)),Q1(u,this,0,r,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,r){const s=this.__text,a=n.__format,l=this.__format,c=Wl(0,a),u=Wl(0,l),d=Zl(0,a),f=Zl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&Y(48);const C=document.createElement(f);return Q1(C,this,0,l,s,r),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&Y(49)),uh(s,p,this);const m=r.theme.text;m!==void 0&&a!==l&&ch(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:Ole,priority:0}),b:()=>({conversion:Ble,priority:0}),code:()=>({conversion:$n,priority:0}),em:()=>({conversion:$n,priority:0}),i:()=>({conversion:$n,priority:0}),mark:()=>({conversion:$n,priority:0}),s:()=>({conversion:$n,priority:0}),span:()=>({conversion:Mle,priority:0}),strong:()=>({conversion:$n,priority:0}),sub:()=>({conversion:$n,priority:0}),sup:()=>({conversion:$n,priority:0}),u:()=>({conversion:$n,priority:0})}}static importJSON(n){return Ue().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 Ze(o)||Y(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=Is(o,"b")),this.hasFormat("italic")&&(o=Is(o,"i")),this.hasFormat("strikethrough")&&(o=Is(o,"s")),this.hasFormat("underline")&&(o=Is(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"?pt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?Gae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ha(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=Jae[n];if(this.__mode===o)return this;const r=this.getWritable();return r.__mode=o,r}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){Qe();let r=n,s=o;const a=ne(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;r===void 0&&(r=u),s===void 0&&(s=u)}else r=0,s=0;if(!K(a))return ph(c,r,c,s,"text","text");{const u=ro();u!==a.anchor.key&&u!==a.focus.key||ot(c),a.setTextNodeRange(this,r,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,r,s){const a=this.getWritable(),l=a.__text,c=r.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=ne();if(s&&K(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+r+l.slice(u+o);return a.__text=f,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){Qe();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const s=o.__key,a=ro(),l=r.length;n.sort((S,N)=>S-N),n.push(l);const c=[],u=n.length;for(let S=0,N=0;S<l&&N<=u;N++){const L=n[N];L>S&&(c.push(r.slice(S,L)),S=L)}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 k=ne();if(K(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===s&&(v=S),N.type==="text"&&N.key===s&&(_=N)}o.isSegmented()?(m=Ue(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=z1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let S=1;S<d;S++){const N=Ue(c[S]);N.__format=h,N.__style=g,N.__detail=y,N.__state=z1(o,N);const L=N.__key;a===s&&ot(L),w.push(N)}const b=v?v.offset:null,E=_?_.offset:null;let T=0;for(const S of w){if(!v&&!_)break;const N=T+S.getTextContentSize();if(v!==null&&b!==null&&b<=N&&b>=T&&(v.set(S.getKey(),b-T,"text"),b<N&&(v=null)),_!==null&&E!==null&&E<=N&&E>=T){_.set(S.getKey(),E-T,"text");break}T=N}if(p!==null){(function(L){const A=L.getPreviousSibling(),D=L.getNextSibling();A!==null&&ga(A),D!==null&&ga(D)})(this);const S=p.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,w),this.remove()):S.splice(N,1,w),K(k)&&pa(k,p,N,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||Y(50);const r=this.__key,s=n.__key,a=this.__text,l=a.length;ro()===s&&ot(r);const c=ne();if(K(c)){const p=c.anchor,m=c.focus;p!==null&&p.key===s&&uf(p,o,r,n,l),m!==null&&m.key===s&&uf(m,o,r,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 Mle(t){return{forChild:Eu(t.style),node:null}}function Ble(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:Eu(e.style,n?void 0:"bold"),node:null}}const ef=new WeakMap;function $le(t){if(!Ze(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Ole(t){const e=t;t.parentElement===null&&Y(129);let n=e.textContent||"";if(function(o){let r,s=o.parentNode;const a=[o];for(;s!==null&&(r=ef.get(s))===void 0&&!$le(s);)a.push(s),s=s.parentNode;const l=r===void 0?s:r;for(let c=0;c<a.length;c++)ef.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),r=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
21
+ `,Gae=Zo?" ":Ka,mt={bold:1,capitalize:1024,code:16,highlight:Tm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Yae={directionless:1,unmergeable:2},P1={center:2,end:6,justify:4,left:1,right:3,start:5},Jae={[Hae]:"center",[Kae]:"end",[Wae]:"justify",[qae]:"left",[jae]:"right",[Zae]:"start"},Xae={normal:0,segmented:2,token:1},Qae={[Rae]:"normal",[Uae]:"segmented",[zae]:"token"},F1="$config";function Am(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(R(a)&&Am(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let gc=!1,Cu=0;function ele(t){Cu=t.timeStamp}function Ul(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&ol(t,n)!==void 0}function tle(t,e,n){const o=on(Wt(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Iu(e,a,r,s,!1)}function nle(t,e,n){if(Z(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return Zn(e)&&n.isAttached()}function ole(t,e,n,o){for(let r=t;r&&!sce(r);r=fs(r)){const s=ol(r,e);if(s!==void 0){const a=Ye(s,n);if(a)return xe(a)||!Ze(r)?void 0:[r,a]}else if(r===o)return[o,Dh(n)]}}function Nm(t,e,n){gc=!0;const o=performance.now()-Cu>100;try{Mt(t,()=>{const r=ne()||function(p){return p.getEditorState().read(()=>{const m=ne();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=ole(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&X(v)&&Zn(g)&&nle(r,g,v)&&tle(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let b=0;b<_.length;b++){const E=_[b],T=Ah(E),S=E.parentNode;if(S!=null&&E!==c&&T===null&&!Ul(E,S,t)){if(Zo){const N=(Ze(E)?E.innerText:null)||E.nodeValue;N&&(d+=N)}S.removeChild(E)}}const k=m.removedNodes,w=k.length;if(w>0){let b=0;for(let E=0;E<w;E++){const T=k[E];(Ul(T,g,t)||c===T)&&(g.appendChild(T),b++)}w!==b&&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"||Ul(C,g,t)||v.removeChild(C)}}n.takeRecords()}r!==null&&(u&&lt(r),Zo&&Oh(t)&&r.insertRawText(d))})}finally{gc=!1}}function Dm(t){const e=t._observer;e!==null&&Nm(t,e.takeRecords(),e)}function Mm(t){(function(e){Cu===0&&Wt(e).addEventListener("textInput",ele,!0)})(t),t._observer=new MutationObserver((e,n)=>{Nm(t,e,n)})}let rle=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||lle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function ile(t,e){return new rle(t,e)}function Bm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function ql(t,e,n){let o;if(et(),typeof n=="function"){const s=t.getLatest(),a=Bm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Om(r).updateFromKnown(e,o),r}function sle(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:r}=sl(o);if(r&&r.stateConfigs)for(const s of r.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 ale=class $m{constructor(e,n,o=void 0,r=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=r;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,r);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 r=this.unknownState[e.key];r!==void 0&&(o=e.parse(r)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,r]of this.knownState)o.isEqual(r,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(r);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return V1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,r=new Map(this.knownState);return new $m(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,r,o),r,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:r,unknownState:s}=this;r.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=V1(s)),this.size++),r.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,r]of Object.entries(e))this.updateFromUnknown(o,r)}};function Om(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new ale(e,Lm(e));return e.__state=n,n}function Lm(t){return t.__state?t.__state.sharedNodeState:Eh(il(),t.getType()).sharedNodeState}function V1(t){if(t)for(const e in t)return t}function lle(t){return t}function R1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==r&&!o.isEqual(s,r))return!0}return!1}function z1(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(r?r[s]:void 0)))return!0}return!1}function U1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function q1(t,e){const n=t.__mode,o=t.__format,r=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)&&(r===null||r===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&&R1(p,d,f)||f&&R1(p,f,d)||d&&z1(p,d,f)||f&&z1(p,f,d))}(c,u))}function H1(t,e){const n=t.mergeWithSibling(e),o=Re()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function j1(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(q1(e,o)){o=H1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(q1(o,n)){o=H1(o,n);break}break}n.remove()}}else o.remove()}function ia(t){return W1(t.anchor),W1(t.focus),t}function W1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),X(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!R(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Ko,dt,Hi,Ga,vc,yc,Go,en,_c,ji,Ge="",pn=null,mn="",In="",_r=!1,sa=!1;function aa(t,e){const n=Go.get(t);if(e!==null){const o=wc(t);o.parentNode===e&&e.removeChild(o)}if(en.has(t)||dt._keyToDOMMap.delete(t),R(n)){const o=ca(n,Go);Cc(o,0,o.length-1,null)}n!==void 0&&Pu(ji,Hi,Ga,n,"destroyed")}function Cc(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&aa(s,o)}}function To(t,e){t.setProperty("text-align",e)}const cle="40px";function Im(t,e){const n=Ko.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&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 Pm(t,e){const n=t.style;e===0?To(n,""):e===1?To(n,"left"):e===2?To(n,"center"):e===3?To(n,"right"):e===4?To(n,"justify"):e===5?To(n,"start"):e===6&&To(n,"end")}function bc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(je(o))return null;const s=o.getParentOrThrow();return je(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function la(t,e){const n=en.get(t);n===void 0&&K(60);const o=n.createDOM(Ko,dt);if(function(r,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,r),l.set(r,s)}(t,o,dt),X(n)?o.setAttribute("data-lexical-text","true"):xe(n)&&o.setAttribute("data-lexical-decorator","true"),R(n)){const r=n.__indent,s=n.__size;if(bc(o,n),r!==0&&Im(o,r),s!==0){const l=s-1;kc(ca(n,en),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Pm(o,a),n.isInline()||Fm(null,n,o),rl(n)&&(Ge+=mo,In+=mo)}else{const r=n.getTextContent();if(xe(n)){const s=n.decorate(dt,Ko);s!==null&&Vm(t,s),o.contentEditable="false"}Ge+=r,In+=r}return e!==null&&e.insertChild(o),Pu(ji,Hi,Ga,n,"created"),o}function kc(t,e,n,o,r){const s=Ge;Ge="";let a=n;for(;a<=o;++a){la(t[a],r);const l=en.get(t[a]);l!==null&&X(l)&&(pn===null&&(pn=l.getFormat()),mn===""&&(mn=l.getStyle()))}rl(e)&&(Ge+=mo),r.element.__lexicalTextContent=Ge,Ge=s+Ge}function Z1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return ao(o)?"line-break":xe(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Fm(t,e,n){const o=Z1(t,Go),r=Z1(e,en);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function ule(t,e,n){var o;pn=null,mn="",function(r,s,a){const l=Ge,c=r.__size,u=s.__size;Ge="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)wi(f,d);else{const h=wc(f),g=la(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}aa(f,null)}const m=en.get(p);X(m)&&(pn===null&&(pn=m.getFormat()),mn===""&&(mn=m.getStyle()))}else{const f=ca(r,Go),p=ca(s,en);if(f.length!==c&&K(227),p.length!==u&&K(228),c===0)u!==0&&kc(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;Cc(f,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,g,y,C,v){const _=y-1,k=C-1;let w,b,E=v.getFirstChild(),T=0,S=0;for(;T<=_&&S<=k;){const A=h[T],D=g[S];if(A===D)E=Hl(wi(D,v.element)),T++,S++;else{w===void 0&&(w=new Set(h)),b===void 0&&(b=new Set(g));const I=b.has(A),P=w.has(D);if(I)if(P){const j=Jo(dt,D);j===E?E=Hl(wi(D,v.element)):(v.withBefore(E).insertChild(j),wi(D,v.element)),T++,S++}else la(D,v.withBefore(E)),S++;else E=Hl(wc(A)),aa(A,v.element),T++}const M=en.get(D);M!==null&&X(M)&&(pn===null&&(pn=M.getFormat()),mn===""&&(mn=M.getStyle()))}const N=T>_,L=S>k;if(N&&!L){const A=g[k+1],D=A===void 0?null:dt.getElementByKey(A);kc(g,m,S,k,v.withBefore(D))}else L&&!N&&Cc(h,T,_,v.element)})(s,f,p,c,u,a)}rl(s)&&(Ge+=mo),d.__lexicalTextContent=Ge,Ge=l+Ge}(t,e,e.getDOMSlot(n)),o=e,pn==null||pn===o.__textFormat||sa||o.setTextFormat(pn),function(r){mn===""||mn===r.__textStyle||sa||r.setTextStyle(mn)}(e)}function ca(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&K(101),n.push(o),o=r.__next}return n}function wi(t,e){const n=Go.get(t);let o=en.get(t);n!==void 0&&o!==void 0||K(61);const r=_r||yc.has(t)||vc.has(t),s=Jo(dt,t);if(n===o&&!r){if(R(n)){const a=s.__lexicalTextContent;a!==void 0&&(Ge+=a,In+=a)}else{const a=n.getTextContent();In+=a,Ge+=a}return s}if(n!==o&&r&&Pu(ji,Hi,Ga,o,"updated"),o.updateDOM(n,s,Ko)){const a=la(t,null);return e===null&&K(62),e.replaceChild(a,s),aa(t,null),a}if(R(n)&&R(o)){const a=o.__indent;(_r||a!==n.__indent)&&Im(s,a);const l=o.__format;if((_r||l!==n.__format)&&Pm(s,l),r&&(ule(n,o,s),je(o)||o.isInline()||Fm(n,o,s)),rl(o)&&(Ge+=mo,In+=mo),(_r||o.__dir!==n.__dir)&&(bc(s,o),je(o)&&!_r))for(const c of o.getChildren())R(c)&&bc(Jo(dt,c.getKey()),c)}else{const a=o.getTextContent();if(xe(o)){const l=o.decorate(dt,Ko);l!==null&&Vm(t,l)}Ge+=a,In+=a}if(!sa&&je(o)&&o.__cachedText!==In){const a=o.getWritable();a.__cachedText=In,o=a}return s}function Vm(t,e){let n=dt._pendingDecorators;const o=dt._decorators;if(n===null){if(o[t]===e)return;n=Nh(dt)}n[t]=e}function Hl(t){let e=t.nextSibling;return e!==null&&e===dt._blockCursorElement&&(e=e.nextSibling),e}function dle(t,e,n,o,r,s){Ge="",In="",_r=o===2,dt=n,Ko=n._config,Hi=n._nodes,Ga=dt._listeners.mutation,vc=r,yc=s,Go=t._nodeMap,en=e._nodeMap,sa=e._readOnly,_c=new Map(n._keyToDOMMap);const a=new Map;return ji=a,wi("root",null),dt=void 0,Hi=void 0,vc=void 0,yc=void 0,Go=void 0,en=void 0,Ko=void 0,_c=void 0,ji=void 0,a}function wc(t){const e=_c.get(t);return e===void 0&&K(75,t),e}function fe(t){return{type:t}}const Rm=fe("SELECTION_CHANGE_COMMAND"),fle=fe("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),zm=fe("CLICK_COMMAND"),Ro=fe("DELETE_CHARACTER_COMMAND"),Er=fe("INSERT_LINE_BREAK_COMMAND"),Wi=fe("INSERT_PARAGRAPH_COMMAND"),xr=fe("CONTROLLED_TEXT_INSERTION_COMMAND"),bu=fe("PASTE_COMMAND"),Ec=fe("REMOVE_TEXT_COMMAND"),Zi=fe("DELETE_WORD_COMMAND"),Ki=fe("DELETE_LINE_COMMAND"),Rt=fe("FORMAT_TEXT_COMMAND"),ku=fe("UNDO_COMMAND"),wu=fe("REDO_COMMAND"),ple=fe("KEYDOWN_COMMAND"),Um=fe("KEY_ARROW_RIGHT_COMMAND"),mle=fe("MOVE_TO_END"),qm=fe("KEY_ARROW_LEFT_COMMAND"),hle=fe("MOVE_TO_START"),Hm=fe("KEY_ARROW_UP_COMMAND"),jm=fe("KEY_ARROW_DOWN_COMMAND"),ua=fe("KEY_ENTER_COMMAND"),Wm=fe("KEY_SPACE_COMMAND"),Zm=fe("KEY_BACKSPACE_COMMAND"),Km=fe("KEY_ESCAPE_COMMAND"),Gm=fe("KEY_DELETE_COMMAND"),Ym=fe("KEY_TAB_COMMAND"),gle=fe("INSERT_TAB_COMMAND"),vle=fe("INDENT_CONTENT_COMMAND"),K1=fe("OUTDENT_CONTENT_COMMAND"),Jm=fe("DROP_COMMAND"),yle=fe("FORMAT_ELEMENT_COMMAND"),Xm=fe("DRAGSTART_COMMAND"),Qm=fe("DRAGOVER_COMMAND"),_le=fe("DRAGEND_COMMAND"),Ya=fe("COPY_COMMAND"),Eu=fe("CUT_COMMAND"),xc=fe("SELECT_ALL_COMMAND"),Cle=fe("CLEAR_EDITOR_COMMAND"),ble=fe("CLEAR_HISTORY_COMMAND"),$s=fe("CAN_REDO_COMMAND"),Os=fe("CAN_UNDO_COMMAND"),kle=fe("FOCUS_COMMAND"),wle=fe("BLUR_COMMAND"),Ele=fe("KEY_MODIFIER_COMMAND"),Bn=Object.freeze({}),Sc=[["keydown",function(t,e){if(Ai=t.timeStamp,eh=t.key,!e.isComposing()&&!ie(e,ple,t)&&t.key!=null){if(jl&&Ef(t))return Mt(e,()=>{Ls(e,Wl)}),jl=!1,void(Wl="");if(function(n){return Ae(n,"ArrowRight",{shiftKey:"any"})}(t))ie(e,Um,t);else if(function(n){return Ae(n,"ArrowRight",On)}(t))ie(e,mle,t);else if(function(n){return Ae(n,"ArrowLeft",{shiftKey:"any"})}(t))ie(e,qm,t);else if(function(n){return Ae(n,"ArrowLeft",On)}(t))ie(e,hle,t);else if(function(n){return Ae(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))ie(e,Hm,t);else if(function(n){return Ae(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))ie(e,jm,t);else if(function(n){return Ae(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Ni=!0,ie(e,ua,t);else if(function(n){return n.key===" "}(t))ie(e,Wm,t);else if(function(n){return Xt&&Ae(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ni=!0,ie(e,Er,!0);else if(function(n){return Ae(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ni=!1,ie(e,ua,t);else if(function(n){return Ae(n,"Backspace",{shiftKey:"any"})||Xt&&Ae(n,"h",{ctrlKey:!0})}(t))Ef(t)?ie(e,Zm,t):(t.preventDefault(),ie(e,Ro,!0));else if(function(n){return n.key==="Escape"}(t))ie(e,Km,t);else if(function(n){return Ae(n,"Delete",{})||Xt&&Ae(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?ie(e,Gm,t):(t.preventDefault(),ie(e,Ro,!1));else if(function(n){return Ae(n,"Backspace",wf)}(t))t.preventDefault(),ie(e,Zi,!0);else if(function(n){return Ae(n,"Delete",wf)}(t))t.preventDefault(),ie(e,Zi,!1);else if(function(n){return Xt&&Ae(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),ie(e,Ki,!0);else if(function(n){return Xt&&(Ae(n,"Delete",{metaKey:!0})||Ae(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),ie(e,Ki,!1);else if(function(n){return Ae(n,"b",On)}(t))t.preventDefault(),ie(e,Rt,"bold");else if(function(n){return Ae(n,"u",On)}(t))t.preventDefault(),ie(e,Rt,"underline");else if(function(n){return Ae(n,"i",On)}(t))t.preventDefault(),ie(e,Rt,"italic");else if(function(n){return Ae(n,"Tab",{shiftKey:"any"})}(t))ie(e,Ym,t);else if(function(n){return Ae(n,"z",On)}(t))t.preventDefault(),ie(e,ku,void 0);else if(function(n){return Xt?Ae(n,"z",{metaKey:!0,shiftKey:!0}):Ae(n,"y",{ctrlKey:!0})||Ae(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),ie(e,wu,void 0);else{const n=e._editorState._selection;n===null||Z(n)?xf(t)&&(t.preventDefault(),ie(e,xc,t)):function(o){return Ae(o,"c",On)}(t)?(t.preventDefault(),ie(e,Ya,t)):function(o){return Ae(o,"x",On)}(t)?(t.preventDefault(),ie(e,Eu,t)):xf(t)&&(t.preventDefault(),ie(e,xc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&ie(e,Ele,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Kr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Mt(e,()=>{Cf(n)||(Nc=!0)})}],["compositionstart",function(t,e){Mt(e,()=>{const n=ne();if(Z(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();rt(o.key),(t.timeStamp<Ai+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||X(r)&&r.getStyle()!==n.style)&&ie(e,xr,Gae)}})}],["compositionend",function(t,e){Zo?vi=!0:Pr||!Ui&&!qi?Mt(e,()=>{Ls(e,t.data)}):(jl=!0,Wl=t.data)}],["input",function(t,e){t.stopPropagation(),Mt(e,()=>{if(Ze(t.target)&&Cf(t.target))return;const n=ne(),o=t.data,r=ih(t);if(o!=null&&Z(n)&&oh(n,r,o,t.timeStamp,!1)){vi&&(Ls(e,o),vi=!1);const s=n.anchor.getNode(),a=on(Wt(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;ra&&!n.isCollapsed()&&X(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===$h(a.anchorNode)||ie(e,xr,o);const d=o.length;Zo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Ui||Pr||qi||!e.isComposing()||(Ai=0,rt(null))}else Lu(!1,e,o!==null?o:void 0),vi&&(Ls(e,o||void 0),vi=!1);(function(){et();const s=Re();Dm(s)})()},{event:t}),Cr=null}],["click",function(t,e){Mt(e,()=>{const n=ne(),o=on(Wt(e)),r=Zr();if(o){if(Z(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!je(a)&&ze().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=qt(a,c=>R(c)&&!c.isInline());R(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(Ze(s)||Zn(s))&&lt(Su(r,o,e,t))}}ie(e,zm,t)})}],["cut",Bn],["copy",Bn],["dragstart",Bn],["dragover",Bn],["dragend",Bn],["paste",Bn],["focus",Bn],["blur",Bn],["drop",Bn]];ra&&Sc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=ih(n);r==="deleteCompositionText"||Zo&&Oh(o)||r!=="insertCompositionText"&&Mt(o,()=>{const a=ne();if(r==="deleteContentBackward"){if(a===null){const m=Zr();if(!Z(m))return;lt(m.clone())}if(Z(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,eh==="MediaLast"&&l<Ai+30&&o.isComposing()&&m){if(rt(null),Ai=0,setTimeout(()=>{Mt(o,()=>{rt(null)})},30),Z(a)){const h=a.anchor.getNode();h.markDirty(),X(h)||K(142),rh(a,h)}}else{rt(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=I1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!xe(Oc(a.anchor,!0))),!v){ie(o,Ro,!0);const _=ne();I1&&Z(_)&&_.isCollapsed()&&(Oo=_,setTimeout(()=>Oo=null))}}return}}var l;if(!Z(a))return;const c=n.data;Cr!==null&&Lu(!1,o,Cr),a.dirty&&Cr===null||!a.isCollapsed()||je(a.anchor.getNode())||s===null||a.applyDOMRange(s),Cr=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(o,xr,n);break;case"insertFromComposition":rt(null),ie(o,xr,n);break;case"insertLineBreak":rt(null),ie(o,Er,!1);break;case"insertParagraph":rt(null),Ni&&!Pr?(Ni=!1,ie(o,Er,!1)):ie(o,Wi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(o,bu,n);break;case"deleteByComposition":(function(m,h){return m!==h||R(m)||R(h)||!zo(m)||!zo(h)})(f,p)&&ie(o,Ec,n);break;case"deleteByDrag":case"deleteByCut":ie(o,Ec,n);break;case"deleteContent":ie(o,Ro,!1);break;case"deleteWordBackward":ie(o,Zi,!0);break;case"deleteWordForward":ie(o,Zi,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(o,Ki,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(o,Ki,!1);break;case"formatStrikeThrough":ie(o,Rt,"strikethrough");break;case"formatBold":ie(o,Rt,"bold");break;case"formatItalic":ie(o,Rt,"italic");break;case"formatUnderline":ie(o,Rt,"underline");break;case"historyUndo":ie(o,ku,void 0);break;case"historyRedo":ie(o,wu,void 0)}else{if(c===`
22
+ `)n.preventDefault(),ie(o,Er,!1);else if(c===mo)n.preventDefault(),ie(o,Wi,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&oh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),ie(o,xr,c)):Cr=c;th=n.timeStamp}})}(t,e)]);let Ai=0,eh=null,th=0,Cr=null;const Tc=new WeakMap,da=new WeakMap;let Ac=!1,Nc=!1,Ni=!1,vi=!1,jl=!1,Wl="",Oo=null,nh=[0,"",0,"root",0];function oh(t,e,n,o,r){const s=t.anchor,a=t.focus,l=s.getNode(),c=Re(),u=on(Wt(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),m=n.length;return f!==a.key||!X(l)||(!r&&(!ra||th<o+50)||l.isDirty()&&m<2||Mh(n))&&s.offset!==a.offset&&!l.isComposing()||Ln(l)||l.isDirty()&&m>1||(r||!ra)&&p!==null&&!l.isComposing()&&d!==Fr(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=zo(g);return y===0?!g.canInsertTextBefore()||!C.canInsertTextBefore()&&!g.isComposing()||v||function(_){const k=_.getPreviousSibling();return(X(k)||R(k)&&k.isInline())&&!k.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!C.canInsertTextAfter()&&!g.isComposing()||v)}(t,l)}function G1(t,e){return Zn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function Y1(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=t;Ac&&(Ac=!1,G1(o,r)&&G1(s,a)&&!Oo)||Mt(e,()=>{if(!n)return void lt(null);if(!ds(e,o,s))return;let l=ne();if(Oo&&Z(l)&&l.isCollapsed()){const c=l.anchor,u=Oo.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Oo.clone(),lt(l))}if(Oo=null,Z(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=Wt(e).event,f=d?d.timeStamp:performance.now(),[p,m,h,g,y]=nh,C=ze(),v=e.isComposing()===!1&&C.getTextContent()==="";if(f<y+200&&c.offset===h&&c.key===g)js(l,p,m);else if(c.type==="text")X(u)||K(141),rh(l,u);else if(c.type==="element"&&!v){R(u)||K(259);const _=c.getNode();_.isEmpty()?function(k,w){const b=w.getTextFormat(),E=w.getTextStyle();js(k,b,E)}(l,_):js(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),m=p.length,h=l.isBackward(),g=h?a:r,y=h?r:a,C=h?f:d,v=h?d:f;let _=2047,k=!1;for(let w=0;w<m;w++){const b=p[w],E=b.getTextContentSize();if(X(b)&&E!==0&&!(w===0&&b.__key===C&&g===E||w===m-1&&b.__key===v&&y===0)&&(k=!0,_&=b.getFormat(),_===0))break}l.format=k?_:0}}ie(e,Rm,void 0)})}function js(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function rh(t,e){js(t,e.getFormat(),e.getStyle())}function ih(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Ls(t,e){const n=t._compositionKey;if(rt(null),n!==null&&e!=null){if(e===""){const o=Ye(n),r=Fr(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&X(o)&&Iu(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
+ `){const o=ne();if(Z(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void ie(t,ua,null)}}}Lu(!0,t,e)}function sh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Sr=new Map;function ah(t){const e=oce(t.target);if(e===null)return;const n=xh(e.anchorNode);if(n===null)return;Nc&&(Nc=!1,Mt(n,()=>{const c=Zr(),u=e.anchorNode;(Ze(u)||Zn(u))&&lt(Su(c,e,n,t))}));const o=Ou(n),r=o[o.length-1],s=r._key,a=Sr.get(s),l=a||r;l!==n&&Y1(e,l,!1),Y1(e,n,!0),n!==r?Sr.set(s,n):a&&Sr.delete(s)}function J1(t){t._lexicalHandled=!0}function X1(t){return t._lexicalHandled===!0}const Q1=()=>{};function xle(t){const e=Tc.get(t);if(e===void 0)return void Q1();const n=da.get(e);if(n===void 0)return void Q1();const o=n-1;o>=0||K(164),Tc.delete(t),da.set(e,o),o===0&&e.removeEventListener("selectionchange",ah);const r=nl(t);$u(r)?(function(a){if(a._parentEditor!==null){const l=Ou(a),c=l[l.length-1]._key;Sr.get(c)===a&&Sr.delete(c)}else Sr.delete(a._key)}(r),t.__lexicalEditor=null):r&&K(198);const s=sh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Dc(t,e,n){et();const o=t.__key,r=t.getParent();if(r===null)return;const s=function(l){const c=ne();if(!Z(c)||!R(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Lc(f,l)&&u.set(l.__key,0,"element"),Lc(p,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(Z(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(ha(l,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(ha(c,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Dt(s)&&e&&t.isSelected()&&t.selectPrevious();if(Z(s)&&e&&!a){const l=t.getIndexWithinParent();Uo(t),ma(s,r,l,-1)}else Uo(t);n||ht(r)||r.canBeEmpty()||!r.isEmpty()||Dc(r,e),e&&s&&je(r)&&r.isEmpty()&&r.selectEnd()}const lh=Symbol.for("ephemeral");function fa(t){return t[lh]||!1}class tn{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}),Yle(this,e)}static getType(){const{ownNodeType:e}=sl(this);return e===void 0&&K(64,this.name),e}static clone(e){K(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(){K(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=Ye(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||ne();if(n==null)return!1;const o=n.getNodes().some(r=>r.__key===this.__key);if(X(this))return o;if(Z(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(xe(this)&&this.isInline()&&r){const s=n.isBackward()?n.focus:n.anchor;if(r.is(s.getNode())&&s.offset===r.getChildrenSize()&&this.is(r.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:Ye(e)}getParentOrThrow(){const e=this.getParent();return e===null&&K(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(ht(n))return R(e)||e===this&&xe(e)||K(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&K(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:Ye(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:Ye(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=R(this)?this:this.getParent(),o=R(e)?e:e.getParent(),r=n&&o?Zs(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Zs(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Rh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&K(279),!1)))}isParentOf(e){const n=Zs(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],r=new Set;let s=this;for(;s!==null;){const a=s.__key;if(r.has(a)||(r.add(a),o.push(s)),s===e)break;const l=R(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(r.has(u.__key)||o.push(u),u===e)break;let d=null,f=u;do{if(f===null&&K(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||r.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=Re()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(fa(this))return this;const e=Ye(this.__key);return e===null&&K(113),e}getWritable(){if(fa(this))return this;et();const e=Co(),n=Re(),o=e._nodeMap,r=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=ne();if(l!==null&&l.setCachedNodes(null),a.has(r))return va(s),s;const c=Ph(s);return a.add(r),va(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){K(70)}updateDOM(e,n,o){K(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){K(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),s=o.$;let a=s;for(const l of Lm(r).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(r.__state||a)&&Om(n).updateFromJSON(a),r}(this,e)}static transform(){return null}remove(e){Dc(this,!0,e)}replace(e,n){et();let o=ne();o!==null&&(o=o.clone()),Xl(this,e);const r=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Uo(l);const d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;if(Dc(r,!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&&(R(this)&&R(l)||K(139),this.getChildren().forEach(g=>{l.append(g)})),Z(o)){lt(o);const g=o.anchor,y=o.focus;g.key===s&&of(g,l),y.key===s&&of(y,l)}return ro()===s&&rt(a),l}insertAfter(e,n=!0){et(),Xl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.getParent(),a=ne();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(Uo(r),Z(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=r.__key,p=o.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,o.__next=f,r.__next=p,r.__prev=o.__key,r.__parent=o.__parent,n&&Z(a)){const m=this.getIndexWithinParent();ma(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){et(),Xl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.__key;Uo(r);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,r.__prev=c,r.__next=o.__key,r.__parent=o.__parent;const d=ne();return n&&Z(d)&&ma(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return Ie()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){et();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(R(o))return o.select();if(!X(o)){const s=o.getIndexWithinParent()+1;return r.select(s,s)}return o.select(e,n)}selectNext(e,n){et();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(R(o))return o.select(0,0);if(!X(o)){const s=o.getIndexWithinParent();return r.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}q(tn,"importDOM");const pa="historic",Sle="history-push",Di="history-merge",Tle="paste",ch="collaboration",Ale="skip-scroll-into-view",Nle="skip-dom-selection",Dle="skip-selection-focus";class is extends tn{static getType(){return"linebreak"}static clone(e){return new is(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 r=o.firstChild;if(r===n||r.nextSibling===n&&Is(r)){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 r=o.firstChild;if(r===n||r.nextSibling===n&&Is(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}return!1}(e)?null:{conversion:Mle,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Mle(t){return{node:nn()}}function nn(){return ln(new is)}function ao(t){return t instanceof is}function Is(t){return Zn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Zl(t,e){return 16&e?"code":e&Tm?"mark":32&e?"sub":64&e?"sup":null}function Kl(t,e){return 1&e?"strong":2&e?"em":"span"}function uh(t,e,n,o,r){const s=o.classList;let a=Tr(r,"base");a!==void 0&&s.add(...a),a=Tr(r,"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 mt){const d=mt[u];if(a=Tr(r,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 dh(t,e,n){const o=e.firstChild,r=n.isComposing(),s=t+(r?Ka:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(r||Zo){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 ef(t,e,n,o,r,s){dh(r,t,e);const a=s.theme.text;a!==void 0&&uh(0,0,o,t,a)}function Ps(t,e){const n=document.createElement(e);return n.appendChild(t),n}class _o extends tn{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 _o(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 Qae[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===ro()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=mt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ga(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,s=Zl(0,r),a=Kl(0,r),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)),ef(u,this,0,r,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,r){const s=this.__text,a=n.__format,l=this.__format,c=Zl(0,a),u=Zl(0,l),d=Kl(0,a),f=Kl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&K(48);const C=document.createElement(f);return ef(C,this,0,l,s,r),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&K(49)),dh(s,p,this);const m=r.theme.text;m!==void 0&&a!==l&&uh(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:Lle,priority:0}),b:()=>({conversion:$le,priority:0}),code:()=>({conversion:$n,priority:0}),em:()=>({conversion:$n,priority:0}),i:()=>({conversion:$n,priority:0}),mark:()=>({conversion:$n,priority:0}),s:()=>({conversion:$n,priority:0}),span:()=>({conversion:Ble,priority:0}),strong:()=>({conversion:$n,priority:0}),sub:()=>({conversion:$n,priority:0}),sup:()=>({conversion:$n,priority:0}),u:()=>({conversion:$n,priority:0})}}static importJSON(n){return Ue().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 Ze(o)||K(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"?mt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?Yae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ga(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=Xae[n];if(this.__mode===o)return this;const r=this.getWritable();return r.__mode=o,r}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){et();let r=n,s=o;const a=ne(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;r===void 0&&(r=u),s===void 0&&(s=u)}else r=0,s=0;if(!Z(a))return mh(c,r,c,s,"text","text");{const u=ro();u!==a.anchor.key&&u!==a.focus.key||rt(c),a.setTextNodeRange(this,r,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,r,s){const a=this.getWritable(),l=a.__text,c=r.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=ne();if(s&&Z(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+r+l.slice(u+o);return a.__text=f,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){et();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const s=o.__key,a=ro(),l=r.length;n.sort((S,N)=>S-N),n.push(l);const c=[],u=n.length;for(let S=0,N=0;S<l&&N<=u;N++){const L=n[N];L>S&&(c.push(r.slice(S,L)),S=L)}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 k=ne();if(Z(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===s&&(v=S),N.type==="text"&&N.key===s&&(_=N)}o.isSegmented()?(m=Ue(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=U1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let S=1;S<d;S++){const N=Ue(c[S]);N.__format=h,N.__style=g,N.__detail=y,N.__state=U1(o,N);const L=N.__key;a===s&&rt(L),w.push(N)}const b=v?v.offset:null,E=_?_.offset:null;let T=0;for(const S of w){if(!v&&!_)break;const N=T+S.getTextContentSize();if(v!==null&&b!==null&&b<=N&&b>=T&&(v.set(S.getKey(),b-T,"text"),b<N&&(v=null)),_!==null&&E!==null&&E<=N&&E>=T){_.set(S.getKey(),E-T,"text");break}T=N}if(p!==null){(function(L){const A=L.getPreviousSibling(),D=L.getNextSibling();A!==null&&va(A),D!==null&&va(D)})(this);const S=p.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,w),this.remove()):S.splice(N,1,w),Z(k)&&ma(k,p,N,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||K(50);const r=this.__key,s=n.__key,a=this.__text,l=a.length;ro()===s&&rt(r);const c=ne();if(Z(c)){const p=c.anchor,m=c.focus;p!==null&&p.key===s&&df(p,o,r,n,l),m!==null&&m.key===s&&df(m,o,r,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 Ble(t){return{forChild:xu(t.style),node:null}}function $le(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:xu(e.style,n?void 0:"bold"),node:null}}const tf=new WeakMap;function Ole(t){if(!Ze(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Lle(t){const e=t;t.parentElement===null&&K(129);let n=e.textContent||"";if(function(o){let r,s=o.parentNode;const a=[o];for(;s!==null&&(r=tf.get(s))===void 0&&!Ole(s);)a.push(s),s=s.parentNode;const l=r===void 0?s:r;for(let c=0;c<a.length;c++)tf.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),r=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
25
25
  `||l===`\r
26
- `?r.push(nn()):l===" "?r.push(Hr()):l!==""&&r.push(Ue(l))}return{node:r}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,r=!0;for(;o!==null&&(o=tf(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,r=!0;for(;o!==null&&(o=tf(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Ue(n)}}function tf(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,Ze(n)){const s=n.style.display;if(s===""&&!Pc(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Zn(n))return n;if(n.nodeName==="BR")return null}}const Lle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function $n(t){const e=Lle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Eu(t.style,e),node:null}}function Ue(t=""){return ln(new _o(t))}function ee(t){return t instanceof _o}function Eu(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(ee(u)&&(r&&!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 is extends _o{static getType(){return"tab"}static clone(e){return new is(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Sr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Hr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&wm(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||Y(286),this}setDetail(e){return e!==2&&Y(127),this}setMode(e){return e!=="normal"&&Y(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Hr(){return ln(new is)}function Ya(t){return t instanceof is}class Ile{constructor(e,n,o){H(this,"key");H(this,"offset");H(this,"type");H(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:Fh(zt(qn(this,"next")),zt(qn(e,"next")))<0}getNode(){const e=Ye(this.key);return e===null&&Y(20),e}set(e,n,o,r){const s=this._selection,a=this.key;r&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,ss()||(ro()===a&&ot(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function wn(t,e,n){return new Ile(t,e,n)}function Kl(t,e){let n=e.__key,o=t.offset,r="element";if(ee(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!z(e)){const s=e.getNextSibling();if(ee(s))n=s.__key,o=0,r="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function nf(t,e){if(z(e)){const n=e.getLastDescendant();z(n)||ee(n)?Kl(t,n):Kl(t,e)}else Kl(t,e)}class Ja{constructor(e){H(this,"_nodes");H(this,"_cachedNodes");H(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Dt(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(r=>o.has(r))}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 Ja(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let s;if(ee(r))s=r.select();else{const a=r.getIndexWithinParent()+1;s=r.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 r of n){const s=Ye(r);s!==null&&o.push(s)}return ss()||(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((ne()||jr())===this&&e[0]){const n=it(e[0],"next");hce(ho(n,n))}for(const n of e)n.remove()}}function K(t){return t instanceof nr}class nr{constructor(e,n,o,r){H(this,"format");H(this,"style");H(this,"anchor");H(this,"focus");H(this,"_cachedNodes");H(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=r,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 r=[],[s,a]=o.getTextSlices();s&&r.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if(_n(u)){const{origin:d}=u;r.length===0?l.add(d):(c.add(d),r.push(d))}else{const{origin:d}=u;z(d)&&c.has(d)||r.push(d)}if(a&&r.push(a.caret.origin),Fr(o.focus)&&z(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=rn(o.focus.origin,"previous");_n(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(r[r.length-1]);u=zu(u))l.delete(u.origin),r.pop();for(;r.length>1;){const u=r[r.length-1];if(!z(u)||c.has(u)||u.isEmpty()||l.has(u))break;r.pop()}if(r.length===0&&o.isCollapsed()){const u=zt(o.anchor),d=zt(o.anchor.getFlipped()),f=m=>lo(m)?m.origin:m.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);r.push(p)}return r}(zh(Df(this),"next"));return ss()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,r){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,r,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],r=this.anchor,s=this.focus,a=r.isBefore(s),[l,c]=Dc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(z(p)&&!p.isInline())d||(u+=`
27
- `),d=!p.isEmpty();else if(d=!1,ee(p)){let m=p.getTextContent();p===n?p===o?r.type==="element"&&s.type==="element"&&s.offset!==r.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!Ee(p)&&!ao(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=Ve(),o=n.getEditorState()._selection,r=fh(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,o);if(r===null)return;const[s,a]=r;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(a.key,a.offset,a.type,!0),ra(this)}clone(){const e=this.anchor,n=this.focus;return new nr(wn(e.key,e.offset,e.type),wn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ha(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=pt[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],r=n.length;for(let s=0;s<r;s++){const a=n[s];a===`
26
+ `?r.push(nn()):l===" "?r.push(Wr()):l!==""&&r.push(Ue(l))}return{node:r}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,r=!0;for(;o!==null&&(o=nf(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,r=!0;for(;o!==null&&(o=nf(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Ue(n)}}function nf(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,Ze(n)){const s=n.style.display;if(s===""&&!Fc(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Zn(n))return n;if(n.nodeName==="BR")return null}}const Ile={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function $n(t){const e=Ile[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:xu(t.style,e),node:null}}function Ue(t=""){return ln(new _o(t))}function X(t){return t instanceof _o}function xu(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(X(u)&&(r&&!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 ss extends _o{static getType(){return"tab"}static clone(e){return new ss(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Tr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Wr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Em(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||K(286),this}setDetail(e){return e!==2&&K(127),this}setMode(e){return e!=="normal"&&K(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Wr(){return ln(new ss)}function Ja(t){return t instanceof ss}class Ple{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:Vh(zt(qn(this,"next")),zt(qn(e,"next")))<0}getNode(){const e=Ye(this.key);return e===null&&K(20),e}set(e,n,o,r){const s=this._selection,a=this.key;r&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,as()||(ro()===a&&rt(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function wn(t,e,n){return new Ple(t,e,n)}function Gl(t,e){let n=e.__key,o=t.offset,r="element";if(X(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!R(e)){const s=e.getNextSibling();if(X(s))n=s.__key,o=0,r="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function of(t,e){if(R(e)){const n=e.getLastDescendant();R(n)||X(n)?Gl(t,n):Gl(t,e)}else Gl(t,e)}class Xa{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(!Dt(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(r=>o.has(r))}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 Xa(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let s;if(X(r))s=r.select();else{const a=r.getIndexWithinParent()+1;s=r.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 r of n){const s=Ye(r);s!==null&&o.push(s)}return as()||(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((ne()||Zr())===this&&e[0]){const n=st(e[0],"next");gce(ho(n,n))}for(const n of e)n.remove()}}function Z(t){return t instanceof or}class or{constructor(e,n,o,r){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=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Z(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 r=[],[s,a]=o.getTextSlices();s&&r.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if(_n(u)){const{origin:d}=u;r.length===0?l.add(d):(c.add(d),r.push(d))}else{const{origin:d}=u;R(d)&&c.has(d)||r.push(d)}if(a&&r.push(a.caret.origin),Rr(o.focus)&&R(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=rn(o.focus.origin,"previous");_n(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(r[r.length-1]);u=Uu(u))l.delete(u.origin),r.pop();for(;r.length>1;){const u=r[r.length-1];if(!R(u)||c.has(u)||u.isEmpty()||l.has(u))break;r.pop()}if(r.length===0&&o.isCollapsed()){const u=zt(o.anchor),d=zt(o.anchor.getFlipped()),f=m=>lo(m)?m.origin:m.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);r.push(p)}return r}(Uh(Mf(this),"next"));return as()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,r){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,r,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],r=this.anchor,s=this.focus,a=r.isBefore(s),[l,c]=Mc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(R(p)&&!p.isInline())d||(u+=`
27
+ `),d=!p.isEmpty();else if(d=!1,X(p)){let m=p.getTextContent();p===n?p===o?r.type==="element"&&s.type==="element"&&s.offset!==r.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!xe(p)&&!ao(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=Re(),o=n.getEditorState()._selection,r=ph(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,o);if(r===null)return;const[s,a]=r;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(a.key,a.offset,a.type,!0),ia(this)}clone(){const e=this.anchor,n=this.focus;return new or(wn(e.key,e.offset,e.type),wn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ga(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=mt[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],r=n.length;for(let s=0;s<r;s++){const a=n[s];a===`
28
28
  `||a===`\r
29
- `?o.push(nn()):a===" "?o.push(Hr()):o.push(Ue(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,r=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 k=y.getNode(),w=k.getChildAtIndex(y.offset),b=Ue();if(b.setFormat(v),b.setStyle(_),cs(w))w.splice(0,0,[b]);else{const E=je(k)?Oe().append(b):b;w===null?k.append(E):w.insertBefore(E)}y.is(C)&&C.set(b.__key,0,"text"),y.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&er(l,zt(qn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];ee(p)||Y(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&&(Ln(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(ee(y)&&y.canInsertTextBefore()&&!Ln(y)||(y=Ue(),y.setFormat(r),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&&(Ln(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(ee(y)&&!Ln(y)||(y=Ue(),y.setFormat(r),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=Ue(p.getTextContent());y.setFormat(r),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||z(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),dh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Ro(p)){const _=Ue(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===r&&C===s){if(Ya(p)){const _=Ue(e);return _.setFormat(r),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Ue(e);if(_.setFormat(r),_.setStyle(s),_.select(),c===0)p.insertBefore(_,!1);else{const[k]=p.splitText(c);k.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(r),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=z(p)?p:p.getParentOrThrow();let v=z(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(ee(g)&&!Ro(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Ue(g.getTextContent());g.replace(T),g=T}je(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 k=v.getChildren(),w=new Set(d),b=C.is(v),E=C.isInline()&&p.getNextSibling()===null?C:p;for(let T=k.length-1;T>=0;T--){const S=k[T];if(S.is(p)||z(S)&&S.isParentOf(p))break;S.isAttached()&&(!w.has(S)||S.is(_)?b||E.insertAfter(S,!1):S.remove())}if(!b){let T=v,S=null;for(;T!==null;){const N=T.getChildren(),L=N.length;(L===0||N[L-1].is(S))&&(y.delete(T.__key),S=T),T=T.getParent()}}if(Ro(p))if(c===m)p.select();else{const T=Ue(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],N=S.__key;y.has(N)||S.remove()}}}removeText(){const e=ne()===this;Zs(this,gce(Df(this))),e&&ne()!==this&&at(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void ot(null);const o=this.getNodes(),r=[];for(const k of o)ee(k)&&r.push(k);const s=k=>{o.forEach(w=>{if(z(w)){const b=w.getFormatFlags(e,k);w.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),ot(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=r[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(p=1,m=r[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);s(g);const y=a-1;let C=r[y];const v=f.type==="text"?f.offset:C.getTextContentSize();if(m.is(C)){if(h===v)return;if(Ln(m)||h===0&&v===m.getTextContentSize())m.setFormat(g);else{const k=m.splitText(h,v),w=h===0?k[0]:k[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||Ln(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||Ln(C)||([C]=C.splitText(v)),C.setFormat(_));for(let k=p+1;k<y;k++){const w=r[k],b=w.getFormatFlags(e,_);w.setFormat(b)}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=ne();return K(h)||Y(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=qt(n,Vt),r=e[e.length-1];if(z(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Gl(this);o.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(z(h)||Ee(h))&&!h.isInline())){z(o)||Y(211,n.constructor.name,n.getType());const h=Gl(this);return o.splice(h,0,e),void r.selectEnd()}const s=function(h){const g=Oe();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=ao(v);if(_||Ee(v)&&v.isInline()||z(v)&&v.isInline()||ee(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=!z(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;z(f=d)&&Vt(f)&&!f.isEmpty()&&z(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(z(o)||Y(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&Y(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()||Y(140),C=C.getNextSibling(),v.push(C);let _=h;for(const k of v)_=_.insertAfter(k)}(o,d));const p=qt(a,Vt);c&&z(p)&&(c.canMergeWhenEmpty()||Vt(u))&&(p.append(...c.getChildren()),c.remove()),z(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=z(o)?o.getLastChild():null;ao(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Oe();return Re().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Gl(this),n=qt(this.anchor.getNode(),Vt);z(n)||Y(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...r),s.selectStart(),s):null}insertLineBreak(e){const n=nn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[s,a]=Dc(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(ee(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(ee(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),ee(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(df(this,e,n,o))return;const r=e==="move",s=Ve(),a=on(Wt(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!z(u)||u.isInline()||u.canBeEmpty()||Lc(l,s,c),this.dirty){let d=Yo(s,this.anchor.key),f=Yo(s,this.focus.key);this.anchor.type==="text"&&(d=Ir(d)),this.focus.type==="text"&&(f=Ir(f)),d&&f&&hh(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=je(f)?f:ece(f);if(this.applyDOMRange(d),this.dirty=!0,!r){const m=this.getNodes(),h=[];let g=!1;for(let y=0;y<m.length;y++){const C=m[y];Oc(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];z(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];z(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,k=v.offset,w=v.type;v.set(C.key,C.offset,C.type,!0),C.set(_,k,w,!0)}(this)}}o==="lineboundary"&&df(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&z(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const r=n.getParent(),s=n.getNextSibling()||(r===null?null:r.getNextSibling());if(z(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let r=o.getNode();if(this.forwardDeletion(o,r,e))return;const s=qu(qn(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(_n(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(z(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=zt(c);Zs(this,ho(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(Fr(c)){if(z(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(Ee(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&z(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=mh();u.add(c.origin.getKey()),at(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Zs(this,ho(!c.origin.isEmpty()&&u.isEmpty()?Hu(it(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&&rf(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(r=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(r)||e&&c!==u||!e&&c!==0)return void sf(l,e,c)}else if(r!==null&&r.isSegmented()){const c=o.offset,u=r.getTextContentSize();if(r.is(l)||e&&c!==0||!e&&c!==u)return void sf(r,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(k){return!(Dh(k)||Ple(k))}(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()&&je(o.getParent())&&o.getPreviousSibling()===null&&rf(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 Dt(t){return t instanceof Ja}function of(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Dc(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]:[of(n),of(o)]}function rf(t,e){for(let n=e;n;n=n.getParent()){if(z(n)){if(n.collapseAtStart(t))return!0;if(mt(n))break}if(n.getPreviousSibling())break}return!1}const Ple=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function sf(t,e,n){const o=t,r=o.getTextContent().split(/(?=\s)/g),s=r.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=r[u].length,e&&a===n||a>n||d){r.splice(u,1),d&&(l=void 0);break}}const c=r.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function af(t,e,n,o){let r,s=e;if(Ze(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(r=Cr(d),ee(r))s=co(r,a?"next":"previous");else{let p=Cr(t);if(p===null)return null;if(z(p)){const m=o.getElementByKey(p.getKey());m===null&&Y(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),z(p)||Y(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(z(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=z(g)?g:g.getParentOrThrow()),s=0}ee(g)?(r=g,p=null,s=co(g,a?"next":"previous")):g!==p&&a&&!f&&(z(p)||Y(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&Ee(p)&&Cr(t)===p?m:m+1,p=p.getParentOrThrow()}if(z(p))return wn(p.__key,s,"element")}}else r=Cr(t);return ee(r)?wn(r.__key,co(r,s,"clamp"),"text"):null}function lf(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const s=r.getPreviousSibling(),a=r.getParent();if(e){if((n||!e)&&s===null&&z(a)&&a.isInline()){const l=a.getPreviousSibling();ee(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else z(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):ee(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&z(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&z(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();ee(l)&&t.set(l.__key,0,"text")}}}function dh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);lf(t,o,r),lf(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=Ve();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 fh(t,e,n,o,r,s){if(t===null||n===null||!us(r,t,n))return null;const a=af(t,e,K(s)?s.anchor:null,r);if(a===null)return null;const l=af(n,o,K(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=Cr(t),u=Cr(n);if(Ee(c)&&Ee(u))return null}return dh(a,l,s),[a,l]}function Mc(t){return z(t)&&!t.isInline()}function ph(t,e,n,o,r,s){const a=Co(),l=new nr(wn(t,e,r),wn(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function Xa(){const t=wn("root",0,"element"),e=wn("root",0,"element");return new nr(t,e,0,"")}function mh(){return new Ja(new Set)}function xu(t,e,n,o){const r=n._window;if(r===null)return null;const s=o||r.event,a=s?s.type:void 0,l=a==="selectionchange",c=!hc&&(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)&&!us(n,u,d))return t.clone();const m=fh(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new nr(h,g,K(t)?t.format:0,K(t)?t.style:"")}function ne(){return Co()._selection}function jr(){return Ve()._editorState._selection}function pa(t,e,n,o=1){const r=t.anchor,s=t.focus,a=r.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=r.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);r.set(c,d,"element"),s.set(c,d,"element"),cf(t)}}else{const u=t.isBackward(),d=u?s:r,f=d.getNode(),p=u?r: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")}}cf(t)}function cf(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!z(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(ee(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(z(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(ee(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(z(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(ee(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function ma(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,ee(o)?(a=o.getTextContentSize(),l="text"):z(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,ee(r)?l="text":z(r)&&(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 uf(t,e,n,o,r){t.type==="text"?t.set(n,t.offset+(e?0:r),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function hh(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function Fle(t,e,n,o,r,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(r.has(lh)&&f!==s||f!==null&&Mu(f))return;if(!K(e))return void(t!==null&&us(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=Yo(n,h),C=Yo(n,g),v=p.offset,_=m.offset,k=e.format,w=e.style,b=e.isCollapsed();let E=y,T=C,S=!1;if(p.type==="text"){E=Ir(y);const I=p.getNode();S=I.getFormat()!==k||I.getStyle()!==w}else K(t)&&t.anchor.type==="text"&&(S=!0);var N,L,A,D,M;if(m.type==="text"&&(T=Ir(C)),E!==null&&T!==null&&(b&&(t===null||S||K(t)&&(t.format!==k||t.style!==w))&&(N=k,L=w,A=v,D=h,M=performance.now(),th=[N,L,A,D,M]),u!==v||d!==_||l!==E||c!==T||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Nle)||s.focus({preventScroll:!0}),p.type==="element"))){if(hh(o,E,v,T,_),!r.has(Tle)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const I=K(e)&&e.anchor.type==="element"?E.childNodes[v]||null:o.rangeCount>0?o.getRangeAt(0):null;if(I!==null){let P;if(I instanceof Text){const W=document.createRange();W.selectNode(I),P=W.getBoundingClientRect()}else P=I.getBoundingClientRect();(function(W,R,q){const V=Oh(q),te=Pu(V);if(V===null||te===null)return;let{top:oe,bottom:_e}=R,F=0,j=0,U=q;for(;U!==null;){const G=U===V.body;if(G)F=0,j=Wt(W).innerHeight;else{const Ce=U.getBoundingClientRect();F=Ce.top,j=Ce.bottom}let ue=0;if(oe<F?ue=-(F-oe):_e>j&&(ue=_e-j),ue!==0)if(G)te.scrollBy(0,ue);else{const Ce=U.scrollTop;U.scrollTop+=ue;const Be=U.scrollTop-Ce;oe-=Be,_e-=Be}if(G)break;U=ds(U)}})(n,P,s)}}Tc=!0}}function Vle(t){let e=ne()||jr();e===null&&(e=Re().selectEnd()),e.insertNodes(t)}function Gl(t){let e=t;t.isCollapsed()||e.removeText();const n=ne();K(n)&&(e=n),K(e)||Y(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Vt(r);){const a=r;if([r,s]=Rle(r,s),a.is(r))break}return s}function Rle(t,e){const n=t.getParent();if(!n){const r=Oe();return Re().append(r),r.select(),[Re(),0]}if(ee(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!z(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new nr(wn(t.__key,e,"element"),wn(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function df(t,e,n,o,r="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=qn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!Rh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Ee(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of qu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(_n(d))d.origin.isInline()||(c=d);else{if(z(d.origin))continue;Ee(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ee(c.origin)&&c.origin.isKeyboardSelectable()){const d=mh();return d.add(c.origin.getKey()),at(d),!0}return c=zt(c),l&&er(t.anchor,c),er(t.focus,c),u||!a}let tt=null,nt=null,kt=!1,Yl=!1,js=0;const ff={characterData:!0,childList:!0,subtree:!0};function ss(){return kt||tt!==null&&tt._readOnly}function Qe(){kt&&Y(13)}function gh(){js>99&&Y(14)}function Co(){return tt===null&&Y(195,vh()),tt}function Ve(){return nt===null&&Y(196,vh()),nt}function vh(){let t=0;const e=new Set,n=Go.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=tl(r);if(Bu(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 zle(){return nt}function pf(t,e,n){const o=e.__type,r=wh(t,o);let s=n.get(o);s===void 0&&(s=Array.from(r.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function mf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function yh(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const r of o)n.add(r)}function Ule(t){return Su(t,Ve()._nodes)}function Su(t,e){const n=t.type,o=e.get(n);o===void 0&&Y(17,n);const r=o.klass;t.type!==r.getType()&&Y(18,r.name);const s=r.importJSON(t),a=t.children;if(z(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=Su(a[l],e);s.append(c)}return s}function hf(t,e,n){const o=tt,r=kt,s=nt;tt=e,kt=!0,nt=t;try{return n()}finally{tt=o,kt=r,nt=s}}function Pn(t,e){const n=t._pendingEditorState,o=t._rootElement,r=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=tt,d=kt,f=nt,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&m!==null){nt=t,tt=n,kt=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,T=t._dirtyLeaves;m.disconnect(),h=ule(s,n,t,b,E,T)}catch(b){if(b instanceof Error&&t._onError(b),Yl)throw b;return kh(t,null,o,n),Dm(t),t._dirtyType=2,Yl=!0,Pn(t,s),void(Yl=!1)}finally{m.observe(o,ff),t._updating=p,tt=u,kt=d,nt=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(b,E){const T=b._decorators;let S=b._pendingDecorators||T;const N=E._nodeMap;let L;for(L in S)N.has(L)||(S===T&&(S=Ah(b)),delete S[L])}(t,n);const k=r?null:on(Wt(t));if(t._editable&&k!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Ale)){nt=t,tt=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Lc(b,t,o),Fle(a,l,t,k,v,o)}(function(b,E,T){let S=b._blockCursorElement;if(K(T)&&T.isCollapsed()&&T.anchor.type==="element"&&E.contains(document.activeElement)){const N=T.anchor,L=N.getNode(),A=N.offset;let D=!1,M=null;if(A===L.getChildrenSize())Xl(L.getChildAtIndex(A-1))&&(D=!0);else{const I=L.getChildAtIndex(A);if(I!==null&&Xl(I)){const P=I.getPreviousSibling();(P===null||Xl(P))&&(D=!0,M=b.getElementByKey(I.__key))}}if(D){const I=b.getElementByKey(L.__key);return S===null&&(b._blockCursorElement=S=function(P){const W=P.theme,R=document.createElement("div");R.contentEditable="false",R.setAttribute("data-lexical-cursor","true");let q=W.blockCursor;if(q!==void 0){if(typeof q=="string"){const V=xm(q);q=W.blockCursor=V}q!==void 0&&R.classList.add(...q)}return R}(b._config)),E.style.caretColor="transparent",void(M===null?I.appendChild(S):I.insertBefore(S,M))}}S!==null&&Lc(S,b,E)})(t,o,l)}finally{m!==null&&m.observe(o,ff),nt=f,tt=u}}h!==null&&function(b,E,T,S,N){const L=Array.from(b._listeners.mutation),A=L.length;for(let D=0;D<A;D++){const[M,I]=L[D];for(const P of I){const W=E.get(P);W!==void 0&&M(W,{dirtyLeaves:S,prevEditorState:N,updateTags:T})}}}(t,h,v,g,s),K(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Vm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Ni("decorator",t,!0,w)),function(b,E,T){const S=Cf(E),N=Cf(T);S!==N&&Ni("textcontent",b,!0,N)}(t,e||s,n),Ni("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:C,prevEditorState:e||s,tags:v}),function(b,E){if(b._deferred=[],E.length!==0){const T=b._updating;b._updating=!0;try{for(let S=0;S<E.length;S++)E[S]()}finally{b._updating=T}}}(t,_),function(b){const E=b._updates;if(E.length!==0){const T=E.shift();if(T){const[S,N]=T;Qa(b,S,N)}}}(t)}function Ni(t,e,n,...o){const r=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=r}}function gf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[s,a]=r,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&Y(191),l._flushSync=!0),c&&t._deferred.push(c),yh(t,a.tag)),l==null?Qa(t,s,a):s()}}return o}function Qa(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,yh(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),r&&t._deferred.push(r);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=Ch(c||l),u=!0),c._flushSync=a;const d=tt,f=kt,p=nt,m=t._updating;tt=c,kt=!1,t._updating=!0,nt=t;const h=t._headless||t.getRootElement()===null;Nu(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const k=v.getEditorState()._selection,w=on(Wt(v));return K(k)||k==null?xu(k,w,v,_):k.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=gf(t,s),function(v,_){const k=_.getEditorState()._selection,w=v._selection;if(K(w)){const b=w.anchor,E=w.focus;let T;if(b.type==="text"&&(T=b.getNode(),T.selectionTransform(k,w)),E.type==="text"){const S=E.getNode();T!==S&&S.selectionTransform(k,w)}}}(c,t),t._dirtyType!==0&&(s?function(v,_){const k=_._dirtyLeaves,w=v._nodeMap;for(const b of k){const E=w.get(b);ee(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&H1(E)}}(c,t):function(v,_){const k=_._dirtyLeaves,w=_._dirtyElements,b=v._nodeMap,E=ro(),T=new Map;let S=k,N=S.size,L=w,A=L.size;for(;N>0||A>0;){if(N>0){_._dirtyLeaves=new Set;for(const D of S){const M=b.get(D);ee(M)&&M.isAttached()&&M.isSimpleText()&&!M.isUnmergeable()&&H1(M),M!==void 0&&mf(M,E)&&pf(_,M,T),k.add(D)}if(S=_._dirtyLeaves,N=S.size,N>0){js++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,L.delete("root")&&L.set("root",!0);for(const D of L){const M=D[0],I=D[1];if(w.set(M,I),!I)continue;const P=b.get(M);P!==void 0&&mf(P,E)&&pf(_,P,T)}S=_._dirtyLeaves,N=S.size,L=_._dirtyElements,A=L.size,js++}_._dirtyLeaves=k,_._dirtyElements=w}(c,t),gf(t),function(v,_,k,w){const b=v._nodeMap,E=_._nodeMap,T=[];for(const[S]of w){const N=E.get(S);N!==void 0&&(N.isAttached()||(z(N)&&Tm(N,S,b,E,T,w),b.has(S)||w.delete(S),T.push(S)))}for(const S of T)E.delete(S);for(const S of k){const N=E.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),E.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,k=C.focus.key;v.get(_)!==void 0&&v.get(k)!==void 0||Y(19)}else Dt(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 Pn(t)}finally{tt=d,kt=f,nt=p,t._updating=m,js=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,Pn(t)):u&&Kle(()=>{Pn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Mt(t,e,n){nt===t&&n===void 0?e():Qa(t,e,n)}class Di{constructor(e,n,o){H(this,"element");H(this,"before");H(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Di(this.element,e,this.after)}withAfter(e){return new Di(this.element,this.before,e)}withElement(e){return this.element===e?this:new Di(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&Y(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&Y(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&Y(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"&&(zi||Lr||Ri);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,r=this.before,s=document.createElement("br");if(o.insertBefore(s,r),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,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const s=vf(n,o);s.push(r);const a=vf(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 vf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)r++;n.push(r)}return o!==t&&Y(225),n.reverse()}class Lt extends tn{constructor(n){super(n);H(this,"__first");H(this,"__last");H(this,"__size");H(this,"__format");H(this,"__style");H(this,"__indent");H(this,"__dir");H(this,"__textFormat");H(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 Yae[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=Ve()._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(ee(o)&&n.push(o),z(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;z(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;z(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const a=o[r-1];return z(a)&&a.getLastDescendant()||a||null}const s=o[n];return z(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:Ye(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&Y(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:Ye(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&Y(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,s;if(n<o/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=n;){if(s===n)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=o-1;r!==null&&s>=n;){if(s===n)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContent(),z(a)&&s!==r-1&&!a.isInline()&&(n+=mo)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContentSize(),z(a)&&s!==r-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=I1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=pt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ha(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Qe();const r=ne();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(ee(u)||z(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(ee(u)||z(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return K(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,a,"element"),r.dirty=!0,r):ph(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!==""?I1[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,r){da(this)&&Y(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||Y(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+r.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&&Y(100);const y=h.getNextSibling(),C=h.__key;zo(h.getWritable()),u.push(C),h=y}}let m=f;for(const h of r){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&&Y(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=ne();if(K(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;yf(C,g,y)&&ma(C,C.getNode(),this,f,d),yf(v,g,y)&&ma(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||mt(this)||this.remove()}}return a}getDOMSlot(n){return new Di(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(Ze(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"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(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),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,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let s=r.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(r.insertChild(l),s=l):s!==l&&r.replaceChild(l,s),s=s.nextSibling)}}}function z(t){return t instanceof Lt}function yf(t,e,n){let o=t.getNode();for(;o;){const r=o.__key;if(e.has(r)&&!n.has(r))return!0;o=o.getParent()}return!1}class _h extends tn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ee(t){return t instanceof _h}class as extends Lt{constructor(){super("root");H(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new as}getTopLevelElementOrThrow(){Y(51)}getTextContent(){const n=this.__cachedText;return!ss()&&Ve()._dirtyType!==0||n===null?super.getTextContent():n}remove(){Y(52)}replace(n){Y(53)}insertBefore(n){Y(54)}insertAfter(n){Y(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)z(s)||Ee(s)||Y(282);return super.splice(n,o,r)}static importJSON(n){return Re().updateFromJSON(n)}collapseAtStart(){return!0}}function je(t){return t instanceof as}function Ch(t){return new el(new Map(t._nodeMap))}function Tu(){return new el(new Map([["root",new as]]))}function bh(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&Y(130,n.name),z(t)){const o=e.children;Array.isArray(o)||Y(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=bh(r[s]);o.push(a)}}return e}class el{constructor(e,n){H(this,"_nodeMap");H(this,"_selection");H(this,"_flushSync");H(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 hf(n&&n.editor||null,this,e)}clone(e){const n=new el(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return hf(null,this,()=>({root:bh(Re())}))}}class Au extends Lt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ls extends Lt{static getType(){return"paragraph"}static clone(e){return new ls(e.__key)}createDOM(e){const n=document.createElement("p"),o=Sr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:qle,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Oe().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Oe();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||ee(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 qle(t){const e=Oe();return t.style&&(e.setFormat(t.style.textAlign),Fu(t,e)),{node:e}}function Oe(){return ln(new ls)}function cs(t){return t instanceof ls}const we=0,gi=1,Hle=4;function kh(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=Tu(),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="",r.set("root",n))}function jle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=il(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(r){const a=r.$transform;a&&e.add(a),o=r.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof tn&&a!==tn?a:void 0}}return e}function Wle(t){const e=t||{},n=zle(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Tu(),l=e.namespace||(r!==null?r._config.namespace:Mh()),c=e.editorState,u=[as,_o,rs,is,ls,Au,...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}il(y);const _=y.getType(),k=jle(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:ile(u[g]),transforms:k})}}const h=new Go(a,r,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const C=new Map,v=new Set,_=k=>{Object.keys(k).forEach(w=>{let b=C.get(w);b===void 0&&(b=[],C.set(w,b)),b.push(k[w])})};return g.forEach(k=>{const w=k.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const b=w.call(k.klass);b!==null&&_(b)}),y&&_(y),C}(m,f?f.import:void 0),p,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class Go{constructor(e,n,o,r,s,a,l,c){H(this,"_headless");H(this,"_parentEditor");H(this,"_rootElement");H(this,"_editorState");H(this,"_pendingEditorState");H(this,"_compositionKey");H(this,"_deferred");H(this,"_keyToDOMMap");H(this,"_updates");H(this,"_updating");H(this,"_listeners");H(this,"_commands");H(this,"_nodes");H(this,"_decorators");H(this,"_pendingDecorators");H(this,"_config");H(this,"_dirtyType");H(this,"_cloneNotNeeded");H(this,"_dirtyLeaves");H(this,"_dirtyElements");H(this,"_normalizedNodes");H(this,"_updateTags");H(this,"_observer");H(this,"_key");H(this,"_onError");H(this,"_htmlConversions");H(this,"_window");H(this,"_editable");H(this,"_blockCursorElement");H(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=r,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=Mh(),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&&Y(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=r.get(e);s===void 0&&Y(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=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(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{a.delete(r),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&Y(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=Tf(o).get(n.getType());if(!r)return;const s=new Map;for(const a of r.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),r=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);r.push(a)}return function(a,l){const c=Tf(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=Ye(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Ai}:void 0)}(this,r.map(a=>a.klass.getType())),()=>{r.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=Sr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,kh(this,n,e,r),n!==null&&(this._config.disableEvents||Ele(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Pu(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,Dm(this),this._updateTags.add(Ai),Pn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Sc.set(l,u);const d=ua.get(u)??0;d<1&&u.addEventListener("selectionchange",sh),ua.set(u,d+1),l.__lexicalEditor=c;const f=ih(l);for(let p=0;p<xc.length;p++){const[m,h]=xc[p],g=typeof h=="function"?y=>{J1(y)||(Y1(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(J1(y))return;Y1(y);const C=c.isEditable();switch(m){case"cut":return C&&ie(c,wu,y);case"copy":return ie(c,Ga,y);case"paste":return C&&ie(c,Cu,y);case"dragstart":return C&&ie(c,Jm,y);case"dragover":return C&&ie(c,Xm,y);case"dragend":return C&&ie(c,yle,y);case"focus":return C&&ie(c,ble,y);case"blur":return C&&ie(c,kle,y);case"drop":return C&&ie(c,Ym,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(Ai),Pn(this);Ni("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Y(38);let o=e;o._readOnly&&(o=Ch(e),o._selection=e._selection?e._selection.clone():null),Nm(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),Pn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Pn(this)}parseEditorState(e,n){return function(o,r,s){const a=Tu(),l=tt,c=kt,u=nt,d=r._dirtyElements,f=r._dirtyLeaves,p=r._cloneNotNeeded,m=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,tt=a,kt=!1,nt=r,Nu(null);try{const h=r._nodes;Su(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&r._onError(h)}finally{r._dirtyElements=d,r._dirtyLeaves=f,r._cloneNotNeeded=p,r._dirtyType=m,tt=l,kt=c,nt=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Pn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):Qa(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Mt(this,()=>{const r=ne(),s=Re();r!==null?r.dirty||at(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Xle("focus"),Qle(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=on(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ni("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}H(Go,"version");Go.version="0.38.1+prod.esm";let Bc=null;function Nu(t){Bc=t}let Zle=1;function wh(t,e){const n=Du(t,e);return n===void 0&&Y(30,e),n}function Du(t,e){return t._nodes.get(e)}const Kle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function _f(t){return Ee(Pr(t))}function Mu(t){const e=document.activeElement;if(!Ze(e))return!1;const n=e.nodeName;return Ee(Pr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&tl(e)==null)}function us(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Mu(e)&&Eh(e)===t}catch{return!1}}function Bu(t){return t instanceof Go}function Eh(t){let e=t;for(;e!=null;){const n=tl(e);if(Bu(n))return n;e=ds(e)}return null}function tl(t){return t?t.__lexicalEditor:null}function Ro(t){return Ya(t)||t.isToken()}function Ln(t){return Ro(t)||t.isSegmented()}function Zn(t){return Wr(t)&&t.nodeType===3}function xh(t){return Wr(t)&&t.nodeType===9}function Ir(t){let e=t;for(;e!=null;){if(Zn(e))return e;e=e.firstChild}return null}function ha(t,e,n){const o=pt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~pt.superscript:e==="superscript"?r&=~pt.subscript:e==="lowercase"?(r&=~pt.uppercase,r&=~pt.capitalize):e==="uppercase"?(r&=~pt.lowercase,r&=~pt.capitalize):e==="capitalize"&&(r&=~pt.lowercase,r&=~pt.uppercase),r}function Sh(t){return ee(t)||ao(t)||Ee(t)}function Gle(t,e){const n=function(){const a=Bc;return Bc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Qe(),gh();const o=Ve(),r=Co(),s=""+Zle++;r._nodeMap.set(s,t),z(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(),r=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,u=s!==null?s.getWritable():null;r===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 ga(t){gh(),da(t)&&Y(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=Co(),r=Ve(),s=o._nodeMap,a=r._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;r._dirtyType=1,z(t)?a.set(l,!0):r._dirtyLeaves.add(l)}function ot(t){Qe();const e=Ve(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=Ye(n);o!==null&&o.getWritable()}if(t!==null){const o=Ye(t);o!==null&&o.getWritable()}}}function ro(){return ss()?null:Ve()._compositionKey}function Ye(t,e){const n=(e||Co())._nodeMap.get(t);return n===void 0?null:n}function Th(t,e){const n=nl(t,Ve());return n!==void 0?Ye(n,e):null}function nl(t,e){return t[`__lexicalKey_${e._key}`]}function Pr(t,e){let n=t;for(;n!=null;){const o=Th(n,e);if(o!==null)return o;n=ds(n)}return null}function Ah(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Cf(t){return t.read(()=>Re().getTextContent())}function Re(){return Nh(Co())}function Nh(t){return t._nodeMap.get("root")}function at(t){Qe();const e=Co();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Cr(t){const e=Ve(),n=function(o,r){let s=o;for(;s!=null;){const a=nl(s,r);if(a!==void 0)return a;s=ds(s)}return null}(t,e);return n===null?t===e.getRootElement()?Ye("root"):null:Ye(n)}function Dh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function $u(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Mh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Bh(t){return Zn(t)?t.nodeValue:null}function Ou(t,e,n){const o=on(Wt(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=Bh(r);const c=Pr(r);if(l!==null&&ee(c)){if(l===Za&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Lu(c,l,s,a,t)}}}function Lu(t,e,n,o,r){let s=t;if(s.isAttached()&&(r||!s.isDirty())){const a=s.isComposing();let l=e;(a||r)&&e[e.length-1]===Za&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(ot(null),Ri||Lr||zi)s.remove();else{const g=Ve();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=jr(),f=s.getTextContentSize(),p=ro(),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=ne();if(!K(h)||n===null||o===null)return void bf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ue(s.getTextContent());s.replace(g),s=g}bf(s,l,h)}}}function bf(t,e,n){if(t.setTextContent(e),K(n)){const o=t.getKey();for(const r of["anchor","focus"]){const s=n[r];s.type==="text"&&s.key===o&&(s.offset=co(t,s.offset,"clamp"))}}}function Ps(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Yle(t,e){return Ps(t,e,"altKey")&&Ps(t,e,"ctrlKey")&&Ps(t,e,"shiftKey")&&Ps(t,e,"metaKey")}function Te(t,e,n){return Yle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const On={ctrlKey:!Xt,metaKey:Xt},kf={altKey:Xt,ctrlKey:!Xt};function wf(t){return t.key==="Backspace"}function Ef(t){return Te(t,"a",On)}function Jle(t){const e=Re();if(K(t)){const n=t.anchor,o=t.focus,r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(r.getKey(),0,"element"),o.set(r.getKey(),r.getChildrenSize(),"element"),ra(t),t}{const n=e.select(0,e.getChildrenSize());return at(ra(n)),n}}function Sr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const s=xm(r);return n[e]=s,s}return r}function Iu(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&Y(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"&&r==="created";(d===void 0||f)&&u.set(a,f?"updated":r)}function xf(t,e,n){const o=t.getParent();let r=n,s=t;return o!==null&&(e&&n===0?(r=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(r=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?r-1:r)}function $c(t,e){const n=t.offset;if(t.type==="element")return xf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const r=e?o.getPreviousSibling():o.getNextSibling();return r===null?xf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function $h(t){const e=Wt(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(t,e,n){return function(o,r,s){const a=$u(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(r);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),m=p.length;let h=!1;if(Mt(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 ol(t){return!je(t)&&!t.isLastChild()&&!t.isInline()}function Yo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&Y(75,e),n}function ds(t){const e=t.assignedSlot||t.parentElement;return Ic(e)?e.host:e}function Oh(t){return xh(t)?t:Ze(t)?t.ownerDocument:null}function Xle(t){Qe(),Ve()._updateTags.add(t)}function Qle(t){Qe(),Ve()._deferred.push(t)}function Oc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Pu(t){const e=Oh(t);return e?e.defaultView:null}function Wt(t){const e=t._window;return e===null&&Y(78),e}function ece(t){let e=t.getParentOrThrow();for(;e!==null;){if(mt(e))return e;e=e.getParentOrThrow()}return e}function mt(t){return je(t)||z(t)&&t.isShadowRoot()}function ln(t){const e=Ve(),n=t.getType(),o=Du(e,n);o===void 0&&Y(200,t.constructor.name,n);const{replace:r,replaceWithKlass:s}=o;if(r!==null){const a=r(t),l=a.constructor;return s!==null?a instanceof s||Y(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||Y(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&Y(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Jl(t,e){!je(t.getParent())||z(e)||Ee(e)||Y(99)}function tce(t){const e=Ye(t);return e===null&&Y(63,t),e}function Xl(t){return(Ee(t)||z(t)&&!t.canBeEmpty())&&!t.isInline()}function Lc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function on(t){return an?(t||window).getSelection():null}function nce(t){const e=Pu(t);return e?e.getSelection():null}function Lh(t){return Ze(t)&&t.tagName==="A"}function Ze(t){return Wr(t)&&t.nodeType===1}function Wr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Ic(t){return Wr(t)&&t.nodeType===11}function Pc(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 va(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 Vt(t){if(Ee(t)&&!t.isInline())return!0;if(!z(t)||mt(t))return!1;const e=t.getFirstChild(),n=e===null||ao(e)||ee(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function rl(){return Ve()}const Sf=new WeakMap,oce=new Map;function Tf(t){if(!t._readOnly&&t.isEmpty())return oce;t._readOnly||Y(192);let e=Sf.get(t);return e||(e=function(n){const o=new Map;for(const[r,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(r,s)}return o}(t),Sf.set(t,e)),e}function Ih(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function rce(t){return(e=Ih(t))[ah]=!0,e;var e}function Fu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function ice(t){return t.__lexicalUnmanaged===!0}function vi(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==tn[e]}function il(t){const e=P1 in t.prototype?t.prototype[P1]():void 0,n=function(a){if(!(a===tn||a.prototype instanceof tn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Go.version&&(c=JSON.parse(Go.version))}catch{}Y(290,a.name,l,c)}return a===_h||a===Lt||a===tn}(t),o=!n&&vi(t,"getType")?t.getType():void 0;let r,s=o;if(e)if(o)r=e[o];else for(const[a,l]of Object.entries(e))s=a,r=l;if(!n&&s&&(vi(t,"getType")||(t.getType=()=>s),vi(t,"clone")||(t.clone=a=>(Nu(a),new t)),vi(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!vi(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function sce(t){const e=rl();return Qe(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const qt=(t,e)=>{let n=t;for(;n!=null&&!je(n);){if(e(n))return n;n=n.getParent()}return null},ace={next:"previous",previous:"next"};class Vu{constructor(e){H(this,"origin");this.origin=e}[Symbol.iterator](){return Ph({hasNext:Fr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return it(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return it(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 r=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 r){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&&Y(263,Array.from(l).join(" "))}else s.insert(c);s=it(c,this.direction)}for(const c of l.values())c.remove();return this}}class Zi extends Vu{constructor(){super(...arguments);H(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rn(n,this.direction)}getParentCaret(n="root"){return it(Ru(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return it(this.getNodeAtCaret(),n)||rn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Zi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const lce={root:je,shadowRoot:mt};function Zr(t){return ace[t]}function Ru(t,e="root"){return lce[e](t)?null:t}class Jo extends Vu{constructor(){super(...arguments);H(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:it(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return z(this.origin)?rn(this.origin,this.direction):null}getParentCaret(n="root"){return it(Ru(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return it(this.getNodeAtCaret(),n)||rn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Jo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Xo extends Vu{constructor(n,o){super(n);H(this,"type","text");H(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Qo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return it(Ru(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Qo(this.origin,Zr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Xo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return it(this.origin,this.direction)}}function lo(t){return t instanceof Xo}function Fr(t){return t instanceof Jo}function _n(t){return t instanceof Zi}const cce={next:class extends Xo{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Xo{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},uce={next:class extends Jo{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Jo{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dce={next:class extends Zi{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Zi{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function it(t,e){return t?new uce[e](t):null}function Qo(t,e,n){return t?new cce[e](t,co(t,n)):null}function co(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&wm(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Af(t,e){return new pce(t,e)}function rn(t,e){return z(t)?new dce[e](t):null}function fce(t){return t&&t.getChildCaret()||t}function zu(t){return t&&fce(t.getAdjacentCaret())}class Uu{constructor(e,n,o){H(this,"type","node-caret-range");H(this,"direction");H(this,"anchor");H(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 Uu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return lo(s)?function(a,l){const{direction:c,origin:u}=a,d=co(u,l==="focus"?Zr(c):c);return Af(a,d-a.offset)}(s,r):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:r}=n,{caret:s}=o;if(r.isSameNodeCaret(s))return[Af(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=lo(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=lo(o),s=a=>a.isSameNodeCaret(o)?null:zu(a)||a.getParentCaret(e);return Ph({hasNext:a=>a!==null&&!(r&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class pce{constructor(e,n){H(this,"type","slice");H(this,"caret");H(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,r]=this.getSliceIndices(),s=e.getTextContent();return Qo(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function qu(t){return ho(t,it(Re(),t.direction))}function mce(t){return ho(t,t)}function ho(t,e){return t.direction!==e.direction&&Y(265),new Uu(t,e,t.direction)}function Ph(t){const{initial:e,hasNext:n,step:o,map:r}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:r(s)};return s=o(s),a}}}function Fh(t,e){const n=Ws(t.origin,e.origin);switch(n===null&&Y(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?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 Vh(n)}}function Vh(t){const{a:e,b:n}=t,o=e.__key,r=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===r)return-1;if(a.__key===o)return 1}return s===null?1:-1}function Fs(t,e){return e.is(t)}function Nf(t){return z(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Ws(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Nf(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Nf(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Fs(t,o)||Y(276),{commonAncestor:o,type:"ancestor"}):r===null?(Fs(e,o)||Y(277),{commonAncestor:o,type:"descendant"}):((z(s)||Fs(t,s))&&(z(r)||Fs(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||Y(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function qn(t,e){const{type:n,key:o,offset:r}=t,s=tce(t.key);return n==="text"?(ee(s)||Y(266,s.getType(),o),Qo(s,e,r)):(z(s)||Y(267,s.getType(),o),vce(s,t.offset,e))}function er(t,e){const{origin:n,direction:o}=e,r=o==="next";lo(e)?t.set(n.getKey(),e.offset,"text"):Fr(e)?ee(n)?t.set(n.getKey(),co(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(_n(e)&&z(n)||Y(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function hce(t){const e=ne(),n=K(e)?e:Xa();return Zs(n,t),at(n),n}function Zs(t,e){er(t.anchor,e.anchor),er(t.focus,e.focus)}function Df(t){const{anchor:e,focus:n}=t,o=qn(e,"next"),r=qn(n,"next"),s=Fh(o,r)<=0?"next":"previous";return ho(Vr(o,s),Vr(r,s))}function Hu(t){const{direction:e,origin:n}=t,o=it(n,Zr(e)).getNodeAtCaret();return o?it(o,e):rn(n.getParentOrThrow(),e)}function Mf(t,e="root"){const n=[t];for(let o=_n(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Hu(o));return n}function Ql(t){return!!t&&t.origin.isAttached()}function gce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=zh(t,o),a=Mf(s.anchor,n),l=Mf(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(_n(h))c.add(h.origin.getKey());else if(Fr(h)){const{origin:g}=h;z(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=Hu(it(g,o)),v=g.getMode();if(Math.abs(h.distance)===y&&r==="removeEmptySlices"||v==="token"&&h.distance!==0)C.remove();else if(h.distance!==0){r="removeEmptySlices";let _=h.removeTextSlice();const k=h.caret.origin;if(v==="segmented"){const w=_.origin,b=Ue(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(b),_=Qo(b,o,_.offset)}k.is(a[0].origin)&&(a[0]=_),k.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,f;for(const h of a)if(Ql(h)){d=zt(h);break}for(const h of l)if(Ql(h)){f=zt(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 k=v.getParents().reverse();k.push(v);const w=Math.min(_.length,k.length);let b;for(b=0;b<w&&_[b]===k[b];b++);const E=(N,L)=>{let A;for(let D=b;D<N.length;D++){const M=N[D];if(mt(M))return;!A&&L(M)&&(A=M)}return A},T=E(_,Vt),S=T&&E(k,N=>y.has(N.getKey())&&Vt(N));return T&&S?[T,S]:null}(d,f,c);if(p){const[h,g]=p;rn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(Ql);if(m)return mce(Vr(zt(m),t.direction));Y(269,JSON.stringify(a.map(h=>h.origin.__key)))}function zt(t){const e=function(r){let s=r;for(;_n(s);){const a=zu(s);if(!_n(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(ee(e.origin))return lo(e)?e:Qo(e.origin,n,n);const o=e.getAdjacentCaret();return Fr(o)&&ee(o.origin)?Qo(o.origin,n,Zr(n)):e}function Rh(t){return lo(t)&&t.offset!==co(t.origin,t.direction)}function Vr(t,e){return t.direction===e?t:t.getFlipped()}function zh(t,e){return t.direction===e?t:ho(Vr(t.focus,e),Vr(t.anchor,e))}function vce(t,e,n){let o=rn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Vr(o,n)}const Fc=new Map;function Uh(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[r,s]=o.split(/:([^]+)/);r&&s&&(e[r.trim()]=s.trim())}return e}function Bf(t){let e=Fc.get(t);return e===void 0&&(e=Uh(t),Fc.set(t,e)),e}function qh(t){const e=rl().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function Hh(t){return qh(je(t)?t:t.getParentOrThrow())}function $f(t){const e=Hh(t);return e!==null&&e.direction==="rtl"}function jh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Ln(e)&&o!==null){const[r,s]=o,a=t.isBackward(),l=r.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[f,p]=Dc(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=rce(e)),e.__text=v)}}return e}function yce(t){const e=t.getStyle(),n=Uh(e);Fc.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 ec(t,e,n=_ce){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let s=null;if(o){const[a,l]=o;s=Xa(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=qt(a.getNode(),Vt),u=qt(l.getNode(),Vt);z(c)&&r.set(c.getKey(),c),z(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(z(a)&&Vt(a))r.set(a.getKey(),a);else if(o===null){const l=qt(a,Vt);z(l)&&r.set(l.getKey(),l)}for(const[a,l]of r){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(ne())&&at(s)}function Wh(t){const e=Zh(t);return e!==null&&e.writingMode==="vertical-rl"}function Zh(t){const e=t.anchor.getNode();return z(e)?qh(e):Hh(e)}function Of(t,e){let n=Wh(t)?!e:e;Kh(t)&&(n=!n);const o=qn(t.focus,n?"previous":"next");if(Rh(o))return!1;for(const r of qu(o)){if(_n(r))return!r.origin.isInline();if(!z(r.origin)){if(Ee(r.origin))return!0;break}}return!1}function Cce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Kh(t){const e=Zh(t);return e!==null&&e.direction==="rtl"}function Lf(t,e,n){const o=Kh(t);let r;r=Wh(t)||o?!n:n,Cce(t,e,r,"character")}function bce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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,kce=ju&&"documentMode"in document?document.documentMode:null;!(!ju||!("InputEvent"in window)||kce)&&"getTargetRanges"in new window.InputEvent("input");function Gh(...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 fs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const wce=ju;function Hn(t,...e){const n=Gh(...e);n.length>0&&t.classList.add(...n)}function Wu(t,...e){const n=Gh(...e);n.length>0&&t.classList.remove(...n)}function Ece(t){return t?t.getAdjacentCaret():null}function xce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Sce(t){const e=qt(t,n=>z(n)&&!n.isInline());return z(e)||bce(4,t.__key),e}function Lo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function io(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Vc(t){let e=1,n=t.getParent();for(;n!=null;){if(xe(n)){const o=n.getParent();if(ce(o)){e++,n=o.getParent();continue}io(40)}return e}return e}function Rc(t){let e=t.getParent();ce(e)||io(40);let n=e;for(;n!==null;)n=n.getParent(),ce(n)&&(e=n);return e}function Yh(t){let e=[];const n=t.getChildren().filter(xe);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();ce(s)?e=e.concat(Yh(s)):e.push(r)}return e}function hn(t){return xe(t)&&ce(t.getFirstChild())}function If(t){return It().append(t)}function Jh(t,e){return xe(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Pf(t){const e=ne();if(e!==null){let n=e.getNodes();if(K(e)){const r=e.getStartEndPoints();r===null&&io(143);const[s]=r,a=s.getNode(),l=a.getParent();if(mt(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Oe();a.append(u),n=u.select().getNodes()}}else if(Jh(a,n)){const c=wt(t);if(mt(l)){a.replace(c);const u=It();z(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(xe(a)){const u=a.getParentOrThrow();tr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const s=n[r];if(z(s)&&s.isEmpty()&&!xe(s)&&!o.has(s.getKey())){Ff(s,t);continue}let a=Sh(s)?s.getParent():xe(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ce(a)){if(!o.has(l)){const c=wt(t);tr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(mt(c)&&!o.has(l)){o.add(l),Ff(a,t);break}a=c}}}}}function tr(t,e){t.splice(t.getChildrenSize(),0,e)}function Ff(t,e){if(ce(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(tr(r,t.getChildren()),ce(n)&&e===n.getListType())n.append(r),ce(o)&&e===o.getListType()&&(tr(n,o.getChildren()),o.remove()),s=n;else if(ce(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=wt(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function Zu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&hn(n)&&hn(o)&&(Zu(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function Tce(){const t=ne();if(K(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Jh(o,n))e.add(Rc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(Sh(s)){const a=xce(s,bo);a!=null&&e.add(Rc(a))}}for(const r of e){let s=r;const a=Yh(r);for(const l of a){const c=Oe().setTextStyle(t.style).setTextFormat(t.format);tr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&er(t.anchor,zt(rn(c,"next"))),l.__key===t.focus.key&&er(t.focus,zt(rn(c,"next"))),l.remove()}r.remove()}}}function Xh(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())xe(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ce(o.getFirstChild())||n++)}function Ace(t){const e=new Set;if(hn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(hn(o)&&hn(r)){const s=r.getFirstChild();if(ce(s)){s.append(t);const a=o.getFirstChild();ce(a)&&(tr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(hn(o)){const s=o.getFirstChild();if(ce(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(hn(r)){const s=r.getFirstChild();ce(s)&&s.append(t)}else if(ce(n)){const s=It().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=wt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),r?r.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function Nce(t){if(hn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ce(n?n.getParent():void 0)&&xe(n)&&ce(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=It(),l=wt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=It(),u=wt(s);c.append(u),tr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Dce(){const t=ne();if(!K(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!xe(e)||e.getChildrenSize()!==0)return!1;const n=Rc(e),o=e.getParent();ce(o)||io(40);const r=o.getParent();let s;if(mt(r))s=Oe(),n.insertAfter(s);else{if(!xe(r))return!1;s=It(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=wt(o.getListType());if(xe(s)){const c=It();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||!xe(u)&&!ce(u))break;c=u}c.remove()}(e),!0}function ya(...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 bo=class extends Lt{constructor(n=1,o=void 0,r){super(r);H(this,"__value");H(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();ce(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:Mce,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,r){(function(l,c,u){const d=c.getParent();!ce(d)||d.getListType()!=="check"||ce(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(...ya(m)),p){const g=u.getParent(),y=ce(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=ya(h);u.getChildren().some(y=>ce(y))?d.push(...g):f.push(...g)}f.length>0&&Wu(l,...f),d.length>0&&Hn(l,...d)}(o,r.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=Bf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Bf(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(o,this,n)}updateDOM(n,o,r){const s=o;return this.updateListItemDOM(n,s,r),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),r=this.getFormatType();r&&(o.style.textAlign=r);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 r=n[o];if(z(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(n,o){if(xe(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!ce(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=wt(r.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}r.insertAfter(n),n.insertAfter(s)}return o&&(z(n)||io(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(ce(r)||io(39),xe(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=wt(r.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&hn(o)&&hn(r)&&(Zu(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=It().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Oe();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=xe(s);if(r.getChildrenSize()===1)if(a)r.remove(),s.select();else{r.insertBefore(o),r.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 r.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 r=this.getParent();return ce(r)&&(o=r.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(),r=0;for(;xe(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&io(117),(n=Math.floor(n))>=0||io(199);let o=this.getIndent();for(;o!==n;)o<n?(Ace(this),o++):(Nce(this),o--);return this}canInsertAfter(n){return xe(n)}canReplaceWith(n){return xe(n)}canMergeWith(n){return xe(n)||cs(n)}extractWithChild(n,o){if(!K(o))return!1;const r=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return wt("bullet")}canMergeWhenEmpty(){return!0}};function Mce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Vf(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 Vf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:It(e==="true"||e!=="false"&&void 0)}}function Vf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:It(t.hasAttribute("checked"))}}function It(t){return ln(new bo(void 0,t))}function xe(t){return t instanceof bo}let or=class extends Lt{constructor(n="number",o=1,r){super(r);H(this,"__tag");H(this,"__start");H(this,"__listType");const s=$ce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();ce(r)&&o.getListType()===r.getListType()&&Zu(o,r)})(n),Xh(n)},extends:Lt,importDOM:{ol:()=>({conversion:zf,priority:0}),ul:()=>({conversion:zf,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 r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Rf(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Rf(o,r.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 Ze(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,r){let s=r;for(let a=0;a<r.length;a++){const l=r[a];xe(l)||(s===r&&(s=[...r]),s[a]=It().append(!z(l)||ce(l)||l.isInline()?l:Ue(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return xe(n)}};function Rf(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Vc(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(...ya(u));for(let h=0;h<a.length;h++)h!==c&&r.push(n.__tag+h)}if(f!==void 0){const h=ya(f);l>1?o.push(...h):r.push(...h)}}r.length>0&&Wu(t,...r),o.length>0&&Hn(t,...o)}function Bce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(xe(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{ce(s)&&e.push(If(s))})}else e.push(If(o))}return e}function zf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=wt("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 r of o.childNodes)if(Ze(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?wt("check"):wt("bullet")),{after:Bce,node:n}}const $ce={ol:"number",ul:"bullet"};function wt(t="number",e=1){return ln(new or(t,e))}function ce(t){return t instanceof or}const Oce=le("UPDATE_LIST_START_COMMAND"),Qh=le("INSERT_UNORDERED_LIST_COMMAND"),eg=le("INSERT_ORDERED_LIST_COMMAND"),Lce=le("REMOVE_LIST_COMMAND");function Ice(t){return fs(t.registerCommand(eg,()=>(Pf("number"),!0),gi),t.registerCommand(Oce,e=>{const{listNodeKey:n,newStart:o}=e,r=Ye(n);return!!ce(r)&&(r.getListType()==="number"&&(r.setStart(o),Xh(r)),!0)},gi),t.registerCommand(Qh,()=>(Pf("bullet"),!0),gi),t.registerCommand(Lce,()=>(Tce(),!0),gi),t.registerCommand(Hi,()=>Dce(),gi),t.registerNodeTransform(bo,e=>{const n=e.getFirstChild();if(n){if(ee(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=ne();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(_o,e=>{const n=e.getParent();if(xe(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Pce(t){const e=n=>{const o=n.getParent();if(ce(n.getFirstChild())||!ce(o))return;const r=qt(n,s=>xe(s)&&ce(s.getParent())&&xe(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(xe(r)){const s=r.getPreviousSibling();if(xe(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ce(d);){const f=d.getLastChild();if(!xe(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ce(l)){const c=Vc(l);c+1<Vc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(or,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(ce(r)){for(const s of r.getChildren())if(xe(s)){e(s);const a=s.getFirstChild();ce(a)&&o.push(a)}}}})}function Fce(t,e){const n=xh(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!ng.has(s.nodeName)){const a=og(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Au&&a.insertAfter(nn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function Vce(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=Re().getChildren();for(let r=0;r<o.length;r++)tg(t,o[r],n,e);return n.innerHTML}function tg(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=z(e)&&e.excludeFromCopy("html");let a=e;o!==null&&ee(e)&&(a=jh(o,e,"clone"));const l=z(a)?a.getChildren():[],c=Du(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=tg(t,h,p,o);!r&&z(e)&&g&&e.extractWithChild(h,o,"html")&&(r=!0)}if(r&&!s){if((Ze(d)||Ic(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Ic(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return r}const ng=new Set(["STYLE","SCRIPT"]);function og(t,e,n,o,r=new Map,s){let a=[];if(ng.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 k=_(h);k!==null&&(v===null||(v.priority||0)<=(k.priority||0))&&(v=k)}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 r)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&r.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const m=(l==null||!mt(l))&&(l!=null&&Mc(l)||o);for(let h=0;h<f.length;h++)p.push(...og(f[h],e,n,m,new Map(r),l));return d!=null&&(p=d(p)),va(t)&&(p=Rce(t,p,m?()=>{const h=new Au;return n.push(h),h}:Oe)),l==null?p.length>0?a=a.concat(p):va(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Pc(h.nextSibling)&&Pc(h.previousSibling)}(t)&&(a=a.concat(nn())):z(l)&&l.append(...p),a}function Rce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Mc(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Mc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function _a(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 zce(t,e=ne()){return e==null&&_a(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?"":Vce(t,e)}function Uce(t,e=ne()){return e==null&&_a(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(qce(t,e))}function Uf(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 qf(n,Hce(l.nodes),e)}catch(l){console.error(l)}const r=t.getData("text/html"),s=t.getData("text/plain");if(r&&s!==r)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(r),"text/html");return qf(n,Fce(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=ne();if(K(u)){const d=l[c];d===`
29
+ `?o.push(nn()):a===" "?o.push(Wr()):o.push(Ue(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,r=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 k=y.getNode(),w=k.getChildAtIndex(y.offset),b=Ue();if(b.setFormat(v),b.setStyle(_),us(w))w.splice(0,0,[b]);else{const E=je(k)?Ie().append(b):b;w===null?k.append(E):w.insertBefore(E)}y.is(C)&&C.set(b.__key,0,"text"),y.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&tr(l,zt(qn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||K(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&&(Ln(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(X(y)&&y.canInsertTextBefore()&&!Ln(y)||(y=Ue(),y.setFormat(r),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&&(Ln(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(X(y)&&!Ln(y)||(y=Ue(),y.setFormat(r),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=Ue(p.getTextContent());y.setFormat(r),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||R(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),fh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(zo(p)){const _=Ue(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===r&&C===s){if(Ja(p)){const _=Ue(e);return _.setFormat(r),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Ue(e);if(_.setFormat(r),_.setStyle(s),_.select(),c===0)p.insertBefore(_,!1);else{const[k]=p.splitText(c);k.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(r),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=R(p)?p:p.getParentOrThrow();let v=R(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)&&!zo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Ue(g.getTextContent());g.replace(T),g=T}je(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 k=v.getChildren(),w=new Set(d),b=C.is(v),E=C.isInline()&&p.getNextSibling()===null?C:p;for(let T=k.length-1;T>=0;T--){const S=k[T];if(S.is(p)||R(S)&&S.isParentOf(p))break;S.isAttached()&&(!w.has(S)||S.is(_)?b||E.insertAfter(S,!1):S.remove())}if(!b){let T=v,S=null;for(;T!==null;){const N=T.getChildren(),L=N.length;(L===0||N[L-1].is(S))&&(y.delete(T.__key),S=T),T=T.getParent()}}if(zo(p))if(c===m)p.select();else{const T=Ue(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],N=S.__key;y.has(N)||S.remove()}}}removeText(){const e=ne()===this;Ks(this,vce(Mf(this))),e&&ne()!==this&&lt(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void rt(null);const o=this.getNodes(),r=[];for(const k of o)X(k)&&r.push(k);const s=k=>{o.forEach(w=>{if(R(w)){const b=w.getFormatFlags(e,k);w.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),rt(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=r[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(p=1,m=r[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);s(g);const y=a-1;let C=r[y];const v=f.type==="text"?f.offset:C.getTextContentSize();if(m.is(C)){if(h===v)return;if(Ln(m)||h===0&&v===m.getTextContentSize())m.setFormat(g);else{const k=m.splitText(h,v),w=h===0?k[0]:k[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||Ln(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||Ln(C)||([C]=C.splitText(v)),C.setFormat(_));for(let k=p+1;k<y;k++){const w=r[k],b=w.getFormatFlags(e,_);w.setFormat(b)}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=ne();return Z(h)||K(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=qt(n,Vt),r=e[e.length-1];if(R(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Yl(this);o.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(R(h)||xe(h))&&!h.isInline())){R(o)||K(211,n.constructor.name,n.getType());const h=Yl(this);return o.splice(h,0,e),void r.selectEnd()}const s=function(h){const g=Ie();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=ao(v);if(_||xe(v)&&v.isInline()||R(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=!R(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;R(f=d)&&Vt(f)&&!f.isEmpty()&&R(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(R(o)||K(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&K(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()||K(140),C=C.getNextSibling(),v.push(C);let _=h;for(const k of v)_=_.insertAfter(k)}(o,d));const p=qt(a,Vt);c&&R(p)&&(c.canMergeWhenEmpty()||Vt(u))&&(p.append(...c.getChildren()),c.remove()),R(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=R(o)?o.getLastChild():null;ao(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Ie();return ze().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Yl(this),n=qt(this.anchor.getNode(),Vt);R(n)||K(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...r),s.selectStart(),s):null}insertLineBreak(e){const n=nn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=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(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(ff(this,e,n,o))return;const r=e==="move",s=Re(),a=on(Wt(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!R(u)||u.isInline()||u.canBeEmpty()||Ic(l,s,c),this.dirty){let d=Jo(s,this.anchor.key),f=Jo(s,this.focus.key);this.anchor.type==="text"&&(d=Fr(d)),this.focus.type==="text"&&(f=Fr(f)),d&&f&&gh(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=je(f)?f:tce(f);if(this.applyDOMRange(d),this.dirty=!0,!r){const m=this.getNodes(),h=[];let g=!1;for(let y=0;y<m.length;y++){const C=m[y];Lc(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];R(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];R(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,k=v.offset,w=v.type;v.set(C.key,C.offset,C.type,!0),C.set(_,k,w,!0)}(this)}}o==="lineboundary"&&ff(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&R(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const r=n.getParent(),s=n.getNextSibling()||(r===null?null:r.getNextSibling());if(R(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let r=o.getNode();if(this.forwardDeletion(o,r,e))return;const s=Hu(qn(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(_n(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(R(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=zt(c);Ks(this,ho(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(Rr(c)){if(R(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(xe(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&R(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=hh();u.add(c.origin.getKey()),lt(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ks(this,ho(!c.origin.isEmpty()&&u.isEmpty()?ju(st(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&&sf(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(r=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(r)||e&&c!==u||!e&&c!==0)return void af(l,e,c)}else if(r!==null&&r.isSegmented()){const c=o.offset,u=r.getTextContentSize();if(r.is(l)||e&&c!==0||!e&&c!==u)return void af(r,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(k){return!(Mh(k)||Fle(k))}(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()&&je(o.getParent())&&o.getPreviousSibling()===null&&sf(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 Dt(t){return t instanceof Xa}function rf(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]:[rf(n),rf(o)]}function sf(t,e){for(let n=e;n;n=n.getParent()){if(R(n)){if(n.collapseAtStart(t))return!0;if(ht(n))break}if(n.getPreviousSibling())break}return!1}const Fle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function af(t,e,n){const o=t,r=o.getTextContent().split(/(?=\s)/g),s=r.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=r[u].length,e&&a===n||a>n||d){r.splice(u,1),d&&(l=void 0);break}}const c=r.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function lf(t,e,n,o){let r,s=e;if(Ze(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(r=br(d),X(r))s=co(r,a?"next":"previous");else{let p=br(t);if(p===null)return null;if(R(p)){const m=o.getElementByKey(p.getKey());m===null&&K(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),R(p)||K(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(R(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=R(g)?g:g.getParentOrThrow()),s=0}X(g)?(r=g,p=null,s=co(g,a?"next":"previous")):g!==p&&a&&!f&&(R(p)||K(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&xe(p)&&br(t)===p?m:m+1,p=p.getParentOrThrow()}if(R(p))return wn(p.__key,s,"element")}}else r=br(t);return X(r)?wn(r.__key,co(r,s,"clamp"),"text"):null}function cf(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const s=r.getPreviousSibling(),a=r.getParent();if(e){if((n||!e)&&s===null&&R(a)&&a.isInline()){const l=a.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else R(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&R(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&R(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function fh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);cf(t,o,r),cf(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=Re();if(s.isComposing()&&s._compositionKey!==t.key&&Z(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 ph(t,e,n,o,r,s){if(t===null||n===null||!ds(r,t,n))return null;const a=lf(t,e,Z(s)?s.anchor:null,r);if(a===null)return null;const l=lf(n,o,Z(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=br(t),u=br(n);if(xe(c)&&xe(u))return null}return fh(a,l,s),[a,l]}function Bc(t){return R(t)&&!t.isInline()}function mh(t,e,n,o,r,s){const a=Co(),l=new or(wn(t,e,r),wn(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function Qa(){const t=wn("root",0,"element"),e=wn("root",0,"element");return new or(t,e,0,"")}function hh(){return new Xa(new Set)}function Su(t,e,n,o){const r=n._window;if(r===null)return null;const s=o||r.event,a=s?s.type:void 0,l=a==="selectionchange",c=!gc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(Z(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)&&Z(t)&&!ds(n,u,d))return t.clone();const m=ph(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new or(h,g,Z(t)?t.format:0,Z(t)?t.style:"")}function ne(){return Co()._selection}function Zr(){return Re()._editorState._selection}function ma(t,e,n,o=1){const r=t.anchor,s=t.focus,a=r.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=r.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);r.set(c,d,"element"),s.set(c,d,"element"),uf(t)}}else{const u=t.isBackward(),d=u?s:r,f=d.getNode(),p=u?r: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")}}uf(t)}function uf(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!R(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(R(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(R(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function ha(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,X(o)?(a=o.getTextContentSize(),l="text"):R(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,X(r)?l="text":R(r)&&(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 df(t,e,n,o,r){t.type==="text"?t.set(n,t.offset+(e?0:r),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function gh(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function Vle(t,e,n,o,r,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(r.has(ch)&&f!==s||f!==null&&Bu(f))return;if(!Z(e))return void(t!==null&&ds(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=Jo(n,h),C=Jo(n,g),v=p.offset,_=m.offset,k=e.format,w=e.style,b=e.isCollapsed();let E=y,T=C,S=!1;if(p.type==="text"){E=Fr(y);const I=p.getNode();S=I.getFormat()!==k||I.getStyle()!==w}else Z(t)&&t.anchor.type==="text"&&(S=!0);var N,L,A,D,M;if(m.type==="text"&&(T=Fr(C)),E!==null&&T!==null&&(b&&(t===null||S||Z(t)&&(t.format!==k||t.style!==w))&&(N=k,L=w,A=v,D=h,M=performance.now(),nh=[N,L,A,D,M]),u!==v||d!==_||l!==E||c!==T||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Dle)||s.focus({preventScroll:!0}),p.type==="element"))){if(gh(o,E,v,T,_),!r.has(Ale)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const I=Z(e)&&e.anchor.type==="element"?E.childNodes[v]||null:o.rangeCount>0?o.getRangeAt(0):null;if(I!==null){let P;if(I instanceof Text){const j=document.createRange();j.selectNode(I),P=j.getBoundingClientRect()}else P=I.getBoundingClientRect();(function(j,V,U){const F=Lh(U),Q=Fu(F);if(F===null||Q===null)return;let{top:ee,bottom:me}=V,se=0,ae=0,z=U;for(;z!==null;){const re=z===F.body;if(re)se=0,ae=Wt(j).innerHeight;else{const De=z.getBoundingClientRect();se=De.top,ae=De.bottom}let _e=0;if(ee<se?_e=-(se-ee):me>ae&&(_e=me-ae),_e!==0)if(re)Q.scrollBy(0,_e);else{const De=z.scrollTop;z.scrollTop+=_e;const Je=z.scrollTop-De;ee-=Je,me-=Je}if(re)break;z=fs(z)}})(n,P,s)}}Ac=!0}}function Rle(t){let e=ne()||Zr();e===null&&(e=ze().selectEnd()),e.insertNodes(t)}function Yl(t){let e=t;t.isCollapsed()||e.removeText();const n=ne();Z(n)&&(e=n),Z(e)||K(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Vt(r);){const a=r;if([r,s]=zle(r,s),a.is(r))break}return s}function zle(t,e){const n=t.getParent();if(!n){const r=Ie();return ze().append(r),r.select(),[ze(),0]}if(X(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!R(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new or(wn(t.__key,e,"element"),wn(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function ff(t,e,n,o,r="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=qn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!zh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!xe(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Hu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(_n(d))d.origin.isInline()||(c=d);else{if(R(d.origin))continue;xe(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&xe(c.origin)&&c.origin.isKeyboardSelectable()){const d=hh();return d.add(c.origin.getKey()),lt(d),!0}return c=zt(c),l&&tr(t.anchor,c),tr(t.focus,c),u||!a}let nt=null,ot=null,kt=!1,Jl=!1,Ws=0;const pf={characterData:!0,childList:!0,subtree:!0};function as(){return kt||nt!==null&&nt._readOnly}function et(){kt&&K(13)}function vh(){Ws>99&&K(14)}function Co(){return nt===null&&K(195,yh()),nt}function Re(){return ot===null&&K(196,yh()),ot}function yh(){let t=0;const e=new Set,n=Yo.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=nl(r);if($u(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 Ule(){return ot}function mf(t,e,n){const o=e.__type,r=Eh(t,o);let s=n.get(o);s===void 0&&(s=Array.from(r.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function hf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function _h(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const r of o)n.add(r)}function qle(t){return Tu(t,Re()._nodes)}function Tu(t,e){const n=t.type,o=e.get(n);o===void 0&&K(17,n);const r=o.klass;t.type!==r.getType()&&K(18,r.name);const s=r.importJSON(t),a=t.children;if(R(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=Tu(a[l],e);s.append(c)}return s}function gf(t,e,n){const o=nt,r=kt,s=ot;nt=e,kt=!0,ot=t;try{return n()}finally{nt=o,kt=r,ot=s}}function Pn(t,e){const n=t._pendingEditorState,o=t._rootElement,r=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=nt,d=kt,f=ot,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&m!==null){ot=t,nt=n,kt=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,T=t._dirtyLeaves;m.disconnect(),h=dle(s,n,t,b,E,T)}catch(b){if(b instanceof Error&&t._onError(b),Jl)throw b;return wh(t,null,o,n),Mm(t),t._dirtyType=2,Jl=!0,Pn(t,s),void(Jl=!1)}finally{m.observe(o,pf),t._updating=p,nt=u,kt=d,ot=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(b,E){const T=b._decorators;let S=b._pendingDecorators||T;const N=E._nodeMap;let L;for(L in S)N.has(L)||(S===T&&(S=Nh(b)),delete S[L])}(t,n);const k=r?null:on(Wt(t));if(t._editable&&k!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Nle)){ot=t,nt=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Ic(b,t,o),Vle(a,l,t,k,v,o)}(function(b,E,T){let S=b._blockCursorElement;if(Z(T)&&T.isCollapsed()&&T.anchor.type==="element"&&E.contains(document.activeElement)){const N=T.anchor,L=N.getNode(),A=N.offset;let D=!1,M=null;if(A===L.getChildrenSize())Ql(L.getChildAtIndex(A-1))&&(D=!0);else{const I=L.getChildAtIndex(A);if(I!==null&&Ql(I)){const P=I.getPreviousSibling();(P===null||Ql(P))&&(D=!0,M=b.getElementByKey(I.__key))}}if(D){const I=b.getElementByKey(L.__key);return S===null&&(b._blockCursorElement=S=function(P){const j=P.theme,V=document.createElement("div");V.contentEditable="false",V.setAttribute("data-lexical-cursor","true");let U=j.blockCursor;if(U!==void 0){if(typeof U=="string"){const F=Sm(U);U=j.blockCursor=F}U!==void 0&&V.classList.add(...U)}return V}(b._config)),E.style.caretColor="transparent",void(M===null?I.appendChild(S):I.insertBefore(S,M))}}S!==null&&Ic(S,b,E)})(t,o,l)}finally{m!==null&&m.observe(o,pf),ot=f,nt=u}}h!==null&&function(b,E,T,S,N){const L=Array.from(b._listeners.mutation),A=L.length;for(let D=0;D<A;D++){const[M,I]=L[D];for(const P of I){const j=E.get(P);j!==void 0&&M(j,{dirtyLeaves:S,prevEditorState:N,updateTags:T})}}}(t,h,v,g,s),Z(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Rm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Mi("decorator",t,!0,w)),function(b,E,T){const S=bf(E),N=bf(T);S!==N&&Mi("textcontent",b,!0,N)}(t,e||s,n),Mi("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:C,prevEditorState:e||s,tags:v}),function(b,E){if(b._deferred=[],E.length!==0){const T=b._updating;b._updating=!0;try{for(let S=0;S<E.length;S++)E[S]()}finally{b._updating=T}}}(t,_),function(b){const E=b._updates;if(E.length!==0){const T=E.shift();if(T){const[S,N]=T;el(b,S,N)}}}(t)}function Mi(t,e,n,...o){const r=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=r}}function vf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[s,a]=r,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&K(191),l._flushSync=!0),c&&t._deferred.push(c),_h(t,a.tag)),l==null?el(t,s,a):s()}}return o}function el(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,_h(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),r&&t._deferred.push(r);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=bh(c||l),u=!0),c._flushSync=a;const d=nt,f=kt,p=ot,m=t._updating;nt=c,kt=!1,t._updating=!0,ot=t;const h=t._headless||t.getRootElement()===null;Du(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const k=v.getEditorState()._selection,w=on(Wt(v));return Z(k)||k==null?Su(k,w,v,_):k.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=vf(t,s),function(v,_){const k=_.getEditorState()._selection,w=v._selection;if(Z(w)){const b=w.anchor,E=w.focus;let T;if(b.type==="text"&&(T=b.getNode(),T.selectionTransform(k,w)),E.type==="text"){const S=E.getNode();T!==S&&S.selectionTransform(k,w)}}}(c,t),t._dirtyType!==0&&(s?function(v,_){const k=_._dirtyLeaves,w=v._nodeMap;for(const b of k){const E=w.get(b);X(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&j1(E)}}(c,t):function(v,_){const k=_._dirtyLeaves,w=_._dirtyElements,b=v._nodeMap,E=ro(),T=new Map;let S=k,N=S.size,L=w,A=L.size;for(;N>0||A>0;){if(N>0){_._dirtyLeaves=new Set;for(const D of S){const M=b.get(D);X(M)&&M.isAttached()&&M.isSimpleText()&&!M.isUnmergeable()&&j1(M),M!==void 0&&hf(M,E)&&mf(_,M,T),k.add(D)}if(S=_._dirtyLeaves,N=S.size,N>0){Ws++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,L.delete("root")&&L.set("root",!0);for(const D of L){const M=D[0],I=D[1];if(w.set(M,I),!I)continue;const P=b.get(M);P!==void 0&&hf(P,E)&&mf(_,P,T)}S=_._dirtyLeaves,N=S.size,L=_._dirtyElements,A=L.size,Ws++}_._dirtyLeaves=k,_._dirtyElements=w}(c,t),vf(t),function(v,_,k,w){const b=v._nodeMap,E=_._nodeMap,T=[];for(const[S]of w){const N=E.get(S);N!==void 0&&(N.isAttached()||(R(N)&&Am(N,S,b,E,T,w),b.has(S)||w.delete(S),T.push(S)))}for(const S of T)E.delete(S);for(const S of k){const N=E.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),E.delete(S))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const C=c._selection;if(Z(C)){const v=c._nodeMap,_=C.anchor.key,k=C.focus.key;v.get(_)!==void 0&&v.get(k)!==void 0||K(19)}else Dt(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 Pn(t)}finally{nt=d,kt=f,ot=p,t._updating=m,Ws=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,Pn(t)):u&&Gle(()=>{Pn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Mt(t,e,n){ot===t&&n===void 0?e():el(t,e,n)}class Bi{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 Bi(this.element,e,this.after)}withAfter(e){return new Bi(this.element,this.before,e)}withElement(e){return this.element===e?this:new Bi(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&K(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&K(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&K(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"&&(qi||Pr||Ui);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,r=this.before,s=document.createElement("br");if(o.insertBefore(s,r),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,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const s=yf(n,o);s.push(r);const a=yf(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 yf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)r++;n.push(r)}return o!==t&&K(225),n.reverse()}class Lt extends tn{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 Jae[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=Re()._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),R(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;R(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;R(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const a=o[r-1];return R(a)&&a.getLastDescendant()||a||null}const s=o[n];return R(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:Ye(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&K(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:Ye(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&K(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,s;if(n<o/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=n;){if(s===n)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=o-1;r!==null&&s>=n;){if(s===n)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContent(),R(a)&&s!==r-1&&!a.isInline()&&(n+=mo)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContentSize(),R(a)&&s!==r-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=P1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=mt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ga(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){et();const r=ne();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(X(u)||R(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)||R(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return Z(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,a,"element"),r.dirty=!0,r):mh(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!==""?P1[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,r){fa(this)&&K(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||K(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+r.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&&K(100);const y=h.getNextSibling(),C=h.__key;Uo(h.getWritable()),u.push(C),h=y}}let m=f;for(const h of r){m!==null&&h.is(m)&&(f=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&p--,Uo(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&&K(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=ne();if(Z(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;_f(C,g,y)&&ha(C,C.getNode(),this,f,d),_f(v,g,y)&&ha(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||ht(this)||this.remove()}}return a}getDOMSlot(n){return new Bi(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(Ze(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"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(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),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,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let s=r.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(r.insertChild(l),s=l):s!==l&&r.replaceChild(l,s),s=s.nextSibling)}}}function R(t){return t instanceof Lt}function _f(t,e,n){let o=t.getNode();for(;o;){const r=o.__key;if(e.has(r)&&!n.has(r))return!0;o=o.getParent()}return!1}class Ch extends tn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function xe(t){return t instanceof Ch}class ls extends Lt{constructor(){super("root");q(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ls}getTopLevelElementOrThrow(){K(51)}getTextContent(){const n=this.__cachedText;return!as()&&Re()._dirtyType!==0||n===null?super.getTextContent():n}remove(){K(52)}replace(n){K(53)}insertBefore(n){K(54)}insertAfter(n){K(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)R(s)||xe(s)||K(282);return super.splice(n,o,r)}static importJSON(n){return ze().updateFromJSON(n)}collapseAtStart(){return!0}}function je(t){return t instanceof ls}function bh(t){return new tl(new Map(t._nodeMap))}function Au(){return new tl(new Map([["root",new ls]]))}function kh(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&K(130,n.name),R(t)){const o=e.children;Array.isArray(o)||K(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=kh(r[s]);o.push(a)}}return e}class tl{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 gf(n&&n.editor||null,this,e)}clone(e){const n=new tl(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return gf(null,this,()=>({root:kh(ze())}))}}class Nu extends Lt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class cs extends Lt{static getType(){return"paragraph"}static clone(e){return new cs(e.__key)}createDOM(e){const n=document.createElement("p"),o=Tr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Hle,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Ie().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Ie();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),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 Hle(t){const e=Ie();return t.style&&(e.setFormat(t.style.textAlign),Vu(t,e)),{node:e}}function Ie(){return ln(new cs)}function us(t){return t instanceof cs}const Ee=0,yi=1,jle=4;function wh(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=Au(),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="",r.set("root",n))}function Wle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=sl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(r){const a=r.$transform;a&&e.add(a),o=r.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof tn&&a!==tn?a:void 0}}return e}function Zle(t){const e=t||{},n=Ule(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Au(),l=e.namespace||(r!==null?r._config.namespace:Bh()),c=e.editorState,u=[ls,_o,is,ss,cs,Nu,...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}sl(y);const _=y.getType(),k=Wle(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:sle(u[g]),transforms:k})}}const h=new Yo(a,r,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const C=new Map,v=new Set,_=k=>{Object.keys(k).forEach(w=>{let b=C.get(w);b===void 0&&(b=[],C.set(w,b)),b.push(k[w])})};return g.forEach(k=>{const w=k.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const b=w.call(k.klass);b!==null&&_(b)}),y&&_(y),C}(m,f?f.import:void 0),p,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class Yo{constructor(e,n,o,r,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=r,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=Bh(),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&&K(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=r.get(e);s===void 0&&K(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=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(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{a.delete(r),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&K(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=Af(o).get(n.getType());if(!r)return;const s=new Map;for(const a of r.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),r=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);r.push(a)}return function(a,l){const c=Af(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=Ye(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Di}:void 0)}(this,r.map(a=>a.klass.getType())),()=>{r.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=Tr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,wh(this,n,e,r),n!==null&&(this._config.disableEvents||xle(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Fu(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,Mm(this),this._updateTags.add(Di),Pn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Tc.set(l,u);const d=da.get(u)??0;d<1&&u.addEventListener("selectionchange",ah),da.set(u,d+1),l.__lexicalEditor=c;const f=sh(l);for(let p=0;p<Sc.length;p++){const[m,h]=Sc[p],g=typeof h=="function"?y=>{X1(y)||(J1(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(X1(y))return;J1(y);const C=c.isEditable();switch(m){case"cut":return C&&ie(c,Eu,y);case"copy":return ie(c,Ya,y);case"paste":return C&&ie(c,bu,y);case"dragstart":return C&&ie(c,Xm,y);case"dragover":return C&&ie(c,Qm,y);case"dragend":return C&&ie(c,_le,y);case"focus":return C&&ie(c,kle,y);case"blur":return C&&ie(c,wle,y);case"drop":return C&&ie(c,Jm,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(Di),Pn(this);Mi("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&K(38);let o=e;o._readOnly&&(o=bh(e),o._selection=e._selection?e._selection.clone():null),Dm(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),Pn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Pn(this)}parseEditorState(e,n){return function(o,r,s){const a=Au(),l=nt,c=kt,u=ot,d=r._dirtyElements,f=r._dirtyLeaves,p=r._cloneNotNeeded,m=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,nt=a,kt=!1,ot=r,Du(null);try{const h=r._nodes;Tu(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&r._onError(h)}finally{r._dirtyElements=d,r._dirtyLeaves=f,r._cloneNotNeeded=p,r._dirtyType=m,nt=l,kt=c,ot=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Pn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):el(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Mt(this,()=>{const r=ne(),s=ze();r!==null?r.dirty||lt(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Qle("focus"),ece(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=on(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Mi("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}q(Yo,"version");Yo.version="0.38.1+prod.esm";let $c=null;function Du(t){$c=t}let Kle=1;function Eh(t,e){const n=Mu(t,e);return n===void 0&&K(30,e),n}function Mu(t,e){return t._nodes.get(e)}const Gle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Cf(t){return xe(Vr(t))}function Bu(t){const e=document.activeElement;if(!Ze(e))return!1;const n=e.nodeName;return xe(Vr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&nl(e)==null)}function ds(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Bu(e)&&xh(e)===t}catch{return!1}}function $u(t){return t instanceof Yo}function xh(t){let e=t;for(;e!=null;){const n=nl(e);if($u(n))return n;e=fs(e)}return null}function nl(t){return t?t.__lexicalEditor:null}function zo(t){return Ja(t)||t.isToken()}function Ln(t){return zo(t)||t.isSegmented()}function Zn(t){return Kr(t)&&t.nodeType===3}function Sh(t){return Kr(t)&&t.nodeType===9}function Fr(t){let e=t;for(;e!=null;){if(Zn(e))return e;e=e.firstChild}return null}function ga(t,e,n){const o=mt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~mt.superscript:e==="superscript"?r&=~mt.subscript:e==="lowercase"?(r&=~mt.uppercase,r&=~mt.capitalize):e==="uppercase"?(r&=~mt.lowercase,r&=~mt.capitalize):e==="capitalize"&&(r&=~mt.lowercase,r&=~mt.uppercase),r}function Th(t){return X(t)||ao(t)||xe(t)}function Yle(t,e){const n=function(){const a=$c;return $c=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);et(),vh();const o=Re(),r=Co(),s=""+Kle++;r._nodeMap.set(s,t),R(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Uo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,u=s!==null?s.getWritable():null;r===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 va(t){vh(),fa(t)&&K(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=Co(),r=Re(),s=o._nodeMap,a=r._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;r._dirtyType=1,R(t)?a.set(l,!0):r._dirtyLeaves.add(l)}function rt(t){et();const e=Re(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=Ye(n);o!==null&&o.getWritable()}if(t!==null){const o=Ye(t);o!==null&&o.getWritable()}}}function ro(){return as()?null:Re()._compositionKey}function Ye(t,e){const n=(e||Co())._nodeMap.get(t);return n===void 0?null:n}function Ah(t,e){const n=ol(t,Re());return n!==void 0?Ye(n,e):null}function ol(t,e){return t[`__lexicalKey_${e._key}`]}function Vr(t,e){let n=t;for(;n!=null;){const o=Ah(n,e);if(o!==null)return o;n=fs(n)}return null}function Nh(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function bf(t){return t.read(()=>ze().getTextContent())}function ze(){return Dh(Co())}function Dh(t){return t._nodeMap.get("root")}function lt(t){et();const e=Co();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function br(t){const e=Re(),n=function(o,r){let s=o;for(;s!=null;){const a=ol(s,r);if(a!==void 0)return a;s=fs(s)}return null}(t,e);return n===null?t===e.getRootElement()?Ye("root"):null:Ye(n)}function Mh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Ou(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Bh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function $h(t){return Zn(t)?t.nodeValue:null}function Lu(t,e,n){const o=on(Wt(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=$h(r);const c=Vr(r);if(l!==null&&X(c)){if(l===Ka&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Iu(c,l,s,a,t)}}}function Iu(t,e,n,o,r){let s=t;if(s.isAttached()&&(r||!s.isDirty())){const a=s.isComposing();let l=e;(a||r)&&e[e.length-1]===Ka&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(rt(null),Ui||Pr||qi)s.remove();else{const g=Re();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Zr(),f=s.getTextContentSize(),p=ro(),m=s.getKey();if(s.isToken()||p!==null&&m===p&&!a||Z(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=ne();if(!Z(h)||n===null||o===null)return void kf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ue(s.getTextContent());s.replace(g),s=g}kf(s,l,h)}}}function kf(t,e,n){if(t.setTextContent(e),Z(n)){const o=t.getKey();for(const r of["anchor","focus"]){const s=n[r];s.type==="text"&&s.key===o&&(s.offset=co(t,s.offset,"clamp"))}}}function Fs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Jle(t,e){return Fs(t,e,"altKey")&&Fs(t,e,"ctrlKey")&&Fs(t,e,"shiftKey")&&Fs(t,e,"metaKey")}function Ae(t,e,n){return Jle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const On={ctrlKey:!Xt,metaKey:Xt},wf={altKey:Xt,ctrlKey:!Xt};function Ef(t){return t.key==="Backspace"}function xf(t){return Ae(t,"a",On)}function Xle(t){const e=ze();if(Z(t)){const n=t.anchor,o=t.focus,r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(r.getKey(),0,"element"),o.set(r.getKey(),r.getChildrenSize(),"element"),ia(t),t}{const n=e.select(0,e.getChildrenSize());return lt(ia(n)),n}}function Tr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const s=Sm(r);return n[e]=s,s}return r}function Pu(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&K(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"&&r==="created";(d===void 0||f)&&u.set(a,f?"updated":r)}function Sf(t,e,n){const o=t.getParent();let r=n,s=t;return o!==null&&(e&&n===0?(r=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(r=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?r-1:r)}function Oc(t,e){const n=t.offset;if(t.type==="element")return Sf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const r=e?o.getPreviousSibling():o.getNextSibling();return r===null?Sf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Oh(t){const e=Wt(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(t,e,n){return function(o,r,s){const a=Ou(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(r);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),m=p.length;let h=!1;if(Mt(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 rl(t){return!je(t)&&!t.isLastChild()&&!t.isInline()}function Jo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&K(75,e),n}function fs(t){const e=t.assignedSlot||t.parentElement;return Pc(e)?e.host:e}function Lh(t){return Sh(t)?t:Ze(t)?t.ownerDocument:null}function Qle(t){et(),Re()._updateTags.add(t)}function ece(t){et(),Re()._deferred.push(t)}function Lc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Fu(t){const e=Lh(t);return e?e.defaultView:null}function Wt(t){const e=t._window;return e===null&&K(78),e}function tce(t){let e=t.getParentOrThrow();for(;e!==null;){if(ht(e))return e;e=e.getParentOrThrow()}return e}function ht(t){return je(t)||R(t)&&t.isShadowRoot()}function ln(t){const e=Re(),n=t.getType(),o=Mu(e,n);o===void 0&&K(200,t.constructor.name,n);const{replace:r,replaceWithKlass:s}=o;if(r!==null){const a=r(t),l=a.constructor;return s!==null?a instanceof s||K(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||K(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&K(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Xl(t,e){!je(t.getParent())||R(e)||xe(e)||K(99)}function nce(t){const e=Ye(t);return e===null&&K(63,t),e}function Ql(t){return(xe(t)||R(t)&&!t.canBeEmpty())&&!t.isInline()}function Ic(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function on(t){return an?(t||window).getSelection():null}function oce(t){const e=Fu(t);return e?e.getSelection():null}function Ih(t){return Ze(t)&&t.tagName==="A"}function Ze(t){return Kr(t)&&t.nodeType===1}function Kr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Pc(t){return Kr(t)&&t.nodeType===11}function Fc(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 Vt(t){if(xe(t)&&!t.isInline())return!0;if(!R(t)||ht(t))return!1;const e=t.getFirstChild(),n=e===null||ao(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function il(){return Re()}const Tf=new WeakMap,rce=new Map;function Af(t){if(!t._readOnly&&t.isEmpty())return rce;t._readOnly||K(192);let e=Tf.get(t);return e||(e=function(n){const o=new Map;for(const[r,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(r,s)}return o}(t),Tf.set(t,e)),e}function Ph(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function ice(t){return(e=Ph(t))[lh]=!0,e;var e}function Vu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function sce(t){return t.__lexicalUnmanaged===!0}function _i(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==tn[e]}function sl(t){const e=F1 in t.prototype?t.prototype[F1]():void 0,n=function(a){if(!(a===tn||a.prototype instanceof tn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Yo.version&&(c=JSON.parse(Yo.version))}catch{}K(290,a.name,l,c)}return a===Ch||a===Lt||a===tn}(t),o=!n&&_i(t,"getType")?t.getType():void 0;let r,s=o;if(e)if(o)r=e[o];else for(const[a,l]of Object.entries(e))s=a,r=l;if(!n&&s&&(_i(t,"getType")||(t.getType=()=>s),_i(t,"clone")||(t.clone=a=>(Du(a),new t)),_i(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!_i(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function ace(t){const e=il();return et(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const qt=(t,e)=>{let n=t;for(;n!=null&&!je(n);){if(e(n))return n;n=n.getParent()}return null},lce={next:"previous",previous:"next"};class Ru{constructor(e){q(this,"origin");this.origin=e}[Symbol.iterator](){return Fh({hasNext:Rr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return st(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return st(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 r=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 r){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&&K(263,Array.from(l).join(" "))}else s.insert(c);s=st(c,this.direction)}for(const c of l.values())c.remove();return this}}class Gi extends Ru{constructor(){super(...arguments);q(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rn(n,this.direction)}getParentCaret(n="root"){return st(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Gr(this.direction);return st(this.getNodeAtCaret(),n)||rn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Gi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const cce={root:je,shadowRoot:ht};function Gr(t){return lce[t]}function zu(t,e="root"){return cce[e](t)?null:t}class Xo extends Ru{constructor(){super(...arguments);q(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:st(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?rn(this.origin,this.direction):null}getParentCaret(n="root"){return st(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Gr(this.direction);return st(this.getNodeAtCaret(),n)||rn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Xo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Xo||n instanceof Qo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Qo extends Ru{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:er(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return st(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return er(this.origin,Gr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Qo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Xo||n instanceof Qo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return st(this.origin,this.direction)}}function lo(t){return t instanceof Qo}function Rr(t){return t instanceof Xo}function _n(t){return t instanceof Gi}const uce={next:class extends Qo{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Qo{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dce={next:class extends Xo{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Xo{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},fce={next:class extends Gi{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 Gi{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 st(t,e){return t?new dce[e](t):null}function er(t,e,n){return t?new uce[e](t,co(t,n)):null}function co(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&Em(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Nf(t,e){return new mce(t,e)}function rn(t,e){return R(t)?new fce[e](t):null}function pce(t){return t&&t.getChildCaret()||t}function Uu(t){return t&&pce(t.getAdjacentCaret())}class qu{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 qu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return lo(s)?function(a,l){const{direction:c,origin:u}=a,d=co(u,l==="focus"?Gr(c):c);return Nf(a,d-a.offset)}(s,r):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:r}=n,{caret:s}=o;if(r.isSameNodeCaret(s))return[Nf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=lo(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=lo(o),s=a=>a.isSameNodeCaret(o)?null:Uu(a)||a.getParentCaret(e);return Fh({hasNext:a=>a!==null&&!(r&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class mce{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,r]=this.getSliceIndices(),s=e.getTextContent();return er(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function Hu(t){return ho(t,st(ze(),t.direction))}function hce(t){return ho(t,t)}function ho(t,e){return t.direction!==e.direction&&K(265),new qu(t,e,t.direction)}function Fh(t){const{initial:e,hasNext:n,step:o,map:r}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:r(s)};return s=o(s),a}}}function Vh(t,e){const n=Zs(t.origin,e.origin);switch(n===null&&K(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?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 Rh(n)}}function Rh(t){const{a:e,b:n}=t,o=e.__key,r=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===r)return-1;if(a.__key===o)return 1}return s===null?1:-1}function Vs(t,e){return e.is(t)}function Df(t){return R(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Zs(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Df(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Df(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Vs(t,o)||K(276),{commonAncestor:o,type:"ancestor"}):r===null?(Vs(e,o)||K(277),{commonAncestor:o,type:"descendant"}):((R(s)||Vs(t,s))&&(R(r)||Vs(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||K(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function qn(t,e){const{type:n,key:o,offset:r}=t,s=nce(t.key);return n==="text"?(X(s)||K(266,s.getType(),o),er(s,e,r)):(R(s)||K(267,s.getType(),o),yce(s,t.offset,e))}function tr(t,e){const{origin:n,direction:o}=e,r=o==="next";lo(e)?t.set(n.getKey(),e.offset,"text"):Rr(e)?X(n)?t.set(n.getKey(),co(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(_n(e)&&R(n)||K(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function gce(t){const e=ne(),n=Z(e)?e:Qa();return Ks(n,t),lt(n),n}function Ks(t,e){tr(t.anchor,e.anchor),tr(t.focus,e.focus)}function Mf(t){const{anchor:e,focus:n}=t,o=qn(e,"next"),r=qn(n,"next"),s=Vh(o,r)<=0?"next":"previous";return ho(zr(o,s),zr(r,s))}function ju(t){const{direction:e,origin:n}=t,o=st(n,Gr(e)).getNodeAtCaret();return o?st(o,e):rn(n.getParentOrThrow(),e)}function Bf(t,e="root"){const n=[t];for(let o=_n(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(ju(o));return n}function ec(t){return!!t&&t.origin.isAttached()}function vce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Uh(t,o),a=Bf(s.anchor,n),l=Bf(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(_n(h))c.add(h.origin.getKey());else if(Rr(h)){const{origin:g}=h;R(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=ju(st(g,o)),v=g.getMode();if(Math.abs(h.distance)===y&&r==="removeEmptySlices"||v==="token"&&h.distance!==0)C.remove();else if(h.distance!==0){r="removeEmptySlices";let _=h.removeTextSlice();const k=h.caret.origin;if(v==="segmented"){const w=_.origin,b=Ue(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(b),_=er(b,o,_.offset)}k.is(a[0].origin)&&(a[0]=_),k.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,f;for(const h of a)if(ec(h)){d=zt(h);break}for(const h of l)if(ec(h)){f=zt(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 k=v.getParents().reverse();k.push(v);const w=Math.min(_.length,k.length);let b;for(b=0;b<w&&_[b]===k[b];b++);const E=(N,L)=>{let A;for(let D=b;D<N.length;D++){const M=N[D];if(ht(M))return;!A&&L(M)&&(A=M)}return A},T=E(_,Vt),S=T&&E(k,N=>y.has(N.getKey())&&Vt(N));return T&&S?[T,S]:null}(d,f,c);if(p){const[h,g]=p;rn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(ec);if(m)return hce(zr(zt(m),t.direction));K(269,JSON.stringify(a.map(h=>h.origin.__key)))}function zt(t){const e=function(r){let s=r;for(;_n(s);){const a=Uu(s);if(!_n(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return lo(e)?e:er(e.origin,n,n);const o=e.getAdjacentCaret();return Rr(o)&&X(o.origin)?er(o.origin,n,Gr(n)):e}function zh(t){return lo(t)&&t.offset!==co(t.origin,t.direction)}function zr(t,e){return t.direction===e?t:t.getFlipped()}function Uh(t,e){return t.direction===e?t:ho(zr(t.focus,e),zr(t.anchor,e))}function yce(t,e,n){let o=rn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return zr(o,n)}const Vc=new Map;function qh(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[r,s]=o.split(/:([^]+)/);r&&s&&(e[r.trim()]=s.trim())}return e}function $f(t){let e=Vc.get(t);return e===void 0&&(e=qh(t),Vc.set(t,e)),e}function Hh(t){const e=il().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function jh(t){return Hh(je(t)?t:t.getParentOrThrow())}function Of(t){const e=jh(t);return e!==null&&e.direction==="rtl"}function Wh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Ln(e)&&o!==null){const[r,s]=o,a=t.isBackward(),l=r.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=ice(e)),e.__text=v)}}return e}function _ce(t){const e=t.getStyle(),n=qh(e);Vc.set(e,n)}function Cce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function tc(t,e,n=Cce){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let s=null;if(o){const[a,l]=o;s=Qa(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=qt(a.getNode(),Vt),u=qt(l.getNode(),Vt);R(c)&&r.set(c.getKey(),c),R(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(R(a)&&Vt(a))r.set(a.getKey(),a);else if(o===null){const l=qt(a,Vt);R(l)&&r.set(l.getKey(),l)}for(const[a,l]of r){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(ne())&&lt(s)}function Zh(t){const e=Kh(t);return e!==null&&e.writingMode==="vertical-rl"}function Kh(t){const e=t.anchor.getNode();return R(e)?Hh(e):jh(e)}function Lf(t,e){let n=Zh(t)?!e:e;Gh(t)&&(n=!n);const o=qn(t.focus,n?"previous":"next");if(zh(o))return!1;for(const r of Hu(o)){if(_n(r))return!r.origin.isInline();if(!R(r.origin)){if(xe(r.origin))return!0;break}}return!1}function bce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Gh(t){const e=Kh(t);return e!==null&&e.direction==="rtl"}function If(t,e,n){const o=Gh(t);let r;r=Zh(t)||o?!n:n,bce(t,e,r,"character")}function kce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Wu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,wce=Wu&&"documentMode"in document?document.documentMode:null;!(!Wu||!("InputEvent"in window)||wce)&&"getTargetRanges"in new window.InputEvent("input");function Yh(...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 ps(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const Ece=Wu;function Hn(t,...e){const n=Yh(...e);n.length>0&&t.classList.add(...n)}function Zu(t,...e){const n=Yh(...e);n.length>0&&t.classList.remove(...n)}function xce(t){return t?t.getAdjacentCaret():null}function Sce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Tce(t){const e=qt(t,n=>R(n)&&!n.isInline());return R(e)||kce(4,t.__key),e}function Io(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function io(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Rc(t){let e=1,n=t.getParent();for(;n!=null;){if(Se(n)){const o=n.getParent();if(pe(o)){e++,n=o.getParent();continue}io(40)}return e}return e}function zc(t){let e=t.getParent();pe(e)||io(40);let n=e;for(;n!==null;)n=n.getParent(),pe(n)&&(e=n);return e}function Jh(t){let e=[];const n=t.getChildren().filter(Se);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();pe(s)?e=e.concat(Jh(s)):e.push(r)}return e}function hn(t){return Se(t)&&pe(t.getFirstChild())}function Pf(t){return It().append(t)}function Xh(t,e){return Se(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Ff(t){const e=ne();if(e!==null){let n=e.getNodes();if(Z(e)){const r=e.getStartEndPoints();r===null&&io(143);const[s]=r,a=s.getNode(),l=a.getParent();if(ht(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Ie();a.append(u),n=u.select().getNodes()}}else if(Xh(a,n)){const c=wt(t);if(ht(l)){a.replace(c);const u=It();R(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(Se(a)){const u=a.getParentOrThrow();nr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const s=n[r];if(R(s)&&s.isEmpty()&&!Se(s)&&!o.has(s.getKey())){Vf(s,t);continue}let a=Th(s)?s.getParent():Se(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(pe(a)){if(!o.has(l)){const c=wt(t);nr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(ht(c)&&!o.has(l)){o.add(l),Vf(a,t);break}a=c}}}}}function nr(t,e){t.splice(t.getChildrenSize(),0,e)}function Vf(t,e){if(pe(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(nr(r,t.getChildren()),pe(n)&&e===n.getListType())n.append(r),pe(o)&&e===o.getListType()&&(nr(n,o.getChildren()),o.remove()),s=n;else if(pe(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=wt(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function Ku(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&hn(n)&&hn(o)&&(Ku(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function Ace(){const t=ne();if(Z(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Xh(o,n))e.add(zc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(Th(s)){const a=Sce(s,bo);a!=null&&e.add(zc(a))}}for(const r of e){let s=r;const a=Jh(r);for(const l of a){const c=Ie().setTextStyle(t.style).setTextFormat(t.format);nr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&tr(t.anchor,zt(rn(c,"next"))),l.__key===t.focus.key&&tr(t.focus,zt(rn(c,"next"))),l.remove()}r.remove()}}}function Qh(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())Se(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),pe(o.getFirstChild())||n++)}function Nce(t){const e=new Set;if(hn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(hn(o)&&hn(r)){const s=r.getFirstChild();if(pe(s)){s.append(t);const a=o.getFirstChild();pe(a)&&(nr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(hn(o)){const s=o.getFirstChild();if(pe(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(hn(r)){const s=r.getFirstChild();pe(s)&&s.append(t)}else if(pe(n)){const s=It().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=wt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),r?r.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function Dce(t){if(hn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(pe(n?n.getParent():void 0)&&Se(n)&&pe(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=It(),l=wt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=It(),u=wt(s);c.append(u),nr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Mce(){const t=ne();if(!Z(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!Se(e)||e.getChildrenSize()!==0)return!1;const n=zc(e),o=e.getParent();pe(o)||io(40);const r=o.getParent();let s;if(ht(r))s=Ie(),n.insertAfter(s);else{if(!Se(r))return!1;s=It(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=wt(o.getListType());if(Se(s)){const c=It();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||!Se(u)&&!pe(u))break;c=u}c.remove()}(e),!0}function _a(...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 bo=class extends Lt{constructor(n=1,o=void 0,r){super(r);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();pe(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:Bce,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,r){(function(l,c,u){const d=c.getParent();!pe(d)||d.getListType()!=="check"||pe(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(..._a(m)),p){const g=u.getParent(),y=pe(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=_a(h);u.getChildren().some(y=>pe(y))?d.push(...g):f.push(...g)}f.length>0&&Zu(l,...f),d.length>0&&Hn(l,...d)}(o,r.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=$f(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in $f(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(o,this,n)}updateDOM(n,o,r){const s=o;return this.updateListItemDOM(n,s,r),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),r=this.getFormatType();r&&(o.style.textAlign=r);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 r=n[o];if(R(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(n,o){if(Se(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!pe(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=wt(r.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}r.insertAfter(n),n.insertAfter(s)}return o&&(R(n)||io(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(pe(r)||io(39),Se(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=wt(r.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&hn(o)&&hn(r)&&(Ku(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=It().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Ie();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=Se(s);if(r.getChildrenSize()===1)if(a)r.remove(),s.select();else{r.insertBefore(o),r.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 r.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 r=this.getParent();return pe(r)&&(o=r.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(),r=0;for(;Se(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&io(117),(n=Math.floor(n))>=0||io(199);let o=this.getIndent();for(;o!==n;)o<n?(Nce(this),o++):(Dce(this),o--);return this}canInsertAfter(n){return Se(n)}canReplaceWith(n){return Se(n)}canMergeWith(n){return Se(n)||us(n)}extractWithChild(n,o){if(!Z(o))return!1;const r=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return wt("bullet")}canMergeWhenEmpty(){return!0}};function Bce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Rf(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 Rf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:It(e==="true"||e!=="false"&&void 0)}}function Rf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:It(t.hasAttribute("checked"))}}function It(t){return ln(new bo(void 0,t))}function Se(t){return t instanceof bo}let rr=class extends Lt{constructor(n="number",o=1,r){super(r);q(this,"__tag");q(this,"__start");q(this,"__listType");const s=Oce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();pe(r)&&o.getListType()===r.getListType()&&Ku(o,r)})(n),Qh(n)},extends:Lt,importDOM:{ol:()=>({conversion:Uf,priority:0}),ul:()=>({conversion:Uf,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 r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,zf(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(zf(o,r.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 Ze(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,r){let s=r;for(let a=0;a<r.length;a++){const l=r[a];Se(l)||(s===r&&(s=[...r]),s[a]=It().append(!R(l)||pe(l)||l.isInline()?l:Ue(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return Se(n)}};function zf(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Rc(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(..._a(u));for(let h=0;h<a.length;h++)h!==c&&r.push(n.__tag+h)}if(f!==void 0){const h=_a(f);l>1?o.push(...h):r.push(...h)}}r.length>0&&Zu(t,...r),o.length>0&&Hn(t,...o)}function $ce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(Se(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{pe(s)&&e.push(Pf(s))})}else e.push(Pf(o))}return e}function Uf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=wt("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 r of o.childNodes)if(Ze(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?wt("check"):wt("bullet")),{after:$ce,node:n}}const Oce={ol:"number",ul:"bullet"};function wt(t="number",e=1){return ln(new rr(t,e))}function pe(t){return t instanceof rr}const Lce=fe("UPDATE_LIST_START_COMMAND"),eg=fe("INSERT_UNORDERED_LIST_COMMAND"),tg=fe("INSERT_ORDERED_LIST_COMMAND"),Ice=fe("REMOVE_LIST_COMMAND");function Pce(t){return ps(t.registerCommand(tg,()=>(Ff("number"),!0),yi),t.registerCommand(Lce,e=>{const{listNodeKey:n,newStart:o}=e,r=Ye(n);return!!pe(r)&&(r.getListType()==="number"&&(r.setStart(o),Qh(r)),!0)},yi),t.registerCommand(eg,()=>(Ff("bullet"),!0),yi),t.registerCommand(Ice,()=>(Ace(),!0),yi),t.registerCommand(Wi,()=>Mce(),yi),t.registerNodeTransform(bo,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=ne();Z(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(_o,e=>{const n=e.getParent();if(Se(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Fce(t){const e=n=>{const o=n.getParent();if(pe(n.getFirstChild())||!pe(o))return;const r=qt(n,s=>Se(s)&&pe(s.getParent())&&Se(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(Se(r)){const s=r.getPreviousSibling();if(Se(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;pe(d);){const f=d.getLastChild();if(!Se(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(pe(l)){const c=Rc(l);c+1<Rc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(rr,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(pe(r)){for(const s of r.getChildren())if(Se(s)){e(s);const a=s.getFirstChild();pe(a)&&o.push(a)}}}})}function Vce(t,e){const n=Sh(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!og.has(s.nodeName)){const a=rg(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Nu&&a.insertAfter(nn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function Rce(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 r=0;r<o.length;r++)ng(t,o[r],n,e);return n.innerHTML}function ng(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=R(e)&&e.excludeFromCopy("html");let a=e;o!==null&&X(e)&&(a=Wh(o,e,"clone"));const l=R(a)?a.getChildren():[],c=Mu(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=ng(t,h,p,o);!r&&R(e)&&g&&e.extractWithChild(h,o,"html")&&(r=!0)}if(r&&!s){if((Ze(d)||Pc(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Pc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return r}const og=new Set(["STYLE","SCRIPT"]);function rg(t,e,n,o,r=new Map,s){let a=[];if(og.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 k=_(h);k!==null&&(v===null||(v.priority||0)<=(k.priority||0))&&(v=k)}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 r)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&r.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const m=(l==null||!ht(l))&&(l!=null&&Bc(l)||o);for(let h=0;h<f.length;h++)p.push(...rg(f[h],e,n,m,new Map(r),l));return d!=null&&(p=d(p)),ya(t)&&(p=zce(t,p,m?()=>{const h=new Nu;return n.push(h),h}:Ie)),l==null?p.length>0?a=a.concat(p):ya(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Fc(h.nextSibling)&&Fc(h.previousSibling)}(t)&&(a=a.concat(nn())):R(l)&&l.append(...p),a}function zce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Bc(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Bc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function Ca(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Uce(t,e=ne()){return e==null&&Ca(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?"":Rce(t,e)}function qce(t,e=ne()){return e==null&&Ca(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Hce(t,e))}function qf(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 Hf(n,jce(l.nodes),e)}catch(l){console.error(l)}const r=t.getData("text/html"),s=t.getData("text/plain");if(r&&s!==r)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(r),"text/html");return Hf(n,Vce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(Z(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=ne();if(Z(u)){const d=l[c];d===`
30
30
  `||d===`\r
31
- `?u.insertParagraph():d===" "?u.insertNodes([Hr()]):u.insertText(d)}}}else e.insertRawText(a)}function qf(t,e,n){t.dispatchCommand(dle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(K(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=qn(r,"previous");if(a)if(lo(a))s=a.origin;else{const l=ho(a,rn(Re(),"next").getFlipped());for(const c of l){if(ee(c.origin)){s=c.origin;break}if(z(c.origin)&&!c.origin.isInline())break}}if(s&&ee(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 rg(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=z(n)&&n.excludeFromCopy("html");let a=n;e!==null&&ee(a)&&(a=jh(e,a,"clone"));const l=z(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&_a(58,f.name),z(u)){const p=d.children;Array.isArray(p)||_a(59,f.name)}return d}(a);ee(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=rg(t,e,d,c.children);!r&&z(n)&&f&&n.extractWithChild(d,e,"clone")&&(r=!0)}if(r&&!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 r}function qce(t,e){const n=[],o=Re().getChildren();for(let r=0;r<o.length;r++)rg(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function Hce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=Ule(o);ee(r)&&yce(r),e.push(r)}return e}let hr=null;async function Hf(t,e,n){if(hr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(jf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=on(r);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(Ga,p=>(Lo(p,ClipboardEvent)&&(f(),hr!==null&&(r.clearTimeout(hr),hr=null),u(jf(t,p,n))),!0),Hle);hr=r.setTimeout(()=>{f(),hr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function jf(t,e,n){if(n===void 0){const r=on(t._window),s=ne();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!us(t,a,l))return!1;n=jce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Wce(o,n),!0)}const ig=[["text/html",zce],["application/x-lexical-editor",Uce]];function jce(t=ne()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=rl();for(const[o,r]of ig){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Wce(t,e){for(const[n]of ig)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Zce(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)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=ne();if(K(h)){const g=h.anchor;let y=g.getNode(),C=0,v=0;if(ee(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()),ee(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 Wf(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 rr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Kce=rr&&"documentMode"in document?document.documentMode:null,Gce=rr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Yce=!(!rr||!("InputEvent"in window)||Kce)&&"getTargetRanges"in new window.InputEvent("input"),Jce=rr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Zf=rr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Xce=rr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Qce=rr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Gce&&!Xce,Kf=le("DRAG_DROP_PASTE_FILE");let Ku=class sg extends Lt{static getType(){return"quote"}static clone(e){return new sg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Hn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:eue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Gu().updateFromJSON(e)}insertNewAfter(e,n){const o=Oe(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Oe();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Gu(){return ln(new Ku)}function zc(t){return t instanceof Ku}let sl=class ag extends Lt{constructor(n,o){super(o);H(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new ag(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,r=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];Hn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:gr,priority:0}),h2:n=>({conversion:gr,priority:0}),h3:n=>({conversion:gr,priority:0}),h4:n=>({conversion:gr,priority:0}),h5:n=>({conversion:gr,priority:0}),h6:n=>({conversion:gr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Gf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Gf(n)?{conversion:o=>({node:Io("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(Ze(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Io(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 r=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&r===s.getTextContentSize()||!n?Oe():Io(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=Oe();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Oe():Io(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Gf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function gr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Io(e),t.style!==null&&(Fu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function eue(t){const e=Gu();return t.style!==null&&(e.setFormat(t.style.textAlign),Fu(t,e)),{node:e}}function Io(t="h1"){return ln(new sl(t))}function lg(t){return t instanceof sl}function Vs(t){let e=null;if(Lo(t,DragEvent)?e=t.dataTransfer:Lo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Yf(t){const e=ne();if(!K(e))return!1;const n=new Set,o=e.getNodes();for(let r=0;r<o.length;r++){const s=o[r],a=s.getKey();if(n.has(a))continue;const l=qt(s,u=>z(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 Jf(t){const e=Pr(t);return Ee(e)}function tc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function tue(t){return fs(t.registerCommand(Rm,e=>{const n=ne();return!!Dt(n)&&(n.clear(),!0)},we),t.registerCommand(Vo,e=>{const n=ne();return K(n)?(n.deleteCharacter(e),!0):!!Dt(n)&&(n.deleteNodes(),!0)},we),t.registerCommand(ji,e=>{const n=ne();return!!K(n)&&(n.deleteWord(e),!0)},we),t.registerCommand(Wi,e=>{const n=ne();return!!K(n)&&(n.deleteLine(e),!0)},we),t.registerCommand(Er,e=>{const n=ne();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Uf(o,n,t);else if(K(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},we),t.registerCommand(wc,()=>{const e=ne();return!!K(e)&&(e.removeText(),!0)},we),t.registerCommand(Rt,e=>{const n=ne();return!!K(n)&&(n.formatText(e),!0)},we),t.registerCommand(vle,e=>{const n=ne();if(!K(n)&&!Dt(n))return!1;const o=n.getNodes();for(const r of o){const s=qt(r,a=>z(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},we),t.registerCommand(wr,e=>{const n=ne();return!!K(n)&&(n.insertLineBreak(e),!0)},we),t.registerCommand(Hi,()=>{const e=ne();return!!K(e)&&(e.insertParagraph(),!0)},we),t.registerCommand(hle,()=>(Vle([Hr()]),!0),we),t.registerCommand(gle,()=>Yf(e=>{const n=e.getIndent();e.setIndent(n+1)}),we),t.registerCommand(Z1,()=>Yf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),we),t.registerCommand(qm,e=>{const n=ne();if(Dt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(K(n)){const o=$c(n.focus,!0);if(!e.shiftKey&&Ee(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},we),t.registerCommand(Hm,e=>{const n=ne();if(Dt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(K(n)){if(function(r){const s=r.focus;return s.key==="root"&&s.offset===Re().getChildrenSize()}(n))return e.preventDefault(),!0;const o=$c(n.focus,!1);if(!e.shiftKey&&Ee(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},we),t.registerCommand(Um,e=>{const n=ne();if(Dt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),$f(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!K(n))return!1;if(Of(n,!0)){const o=e.shiftKey;return e.preventDefault(),Lf(n,o,!0),!0}return!1},we),t.registerCommand(zm,e=>{const n=ne();if(Dt(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),$f(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!K(n))return!1;const o=e.shiftKey;return!!Of(n,!1)&&(e.preventDefault(),Lf(n,o,!1),!0)},we),t.registerCommand(Wm,e=>{if(Jf(e.target))return!1;const n=ne();if(K(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const s=r.getNode();if(je(s))return!1;const a=Sce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(Z1,void 0);if(Zf&&navigator.language==="ko-KR")return!1}else if(!Dt(n))return!1;return e.preventDefault(),t.dispatchCommand(Vo,!0)},we),t.registerCommand(Km,e=>{if(Jf(e.target))return!1;const n=ne();return!(!K(n)&&!Dt(n))&&(e.preventDefault(),t.dispatchCommand(Vo,!1))},we),t.registerCommand(ca,e=>{const n=ne();if(!K(n))return!1;if(tc(n),e!==null){if((Zf||Jce||Qce)&&Yce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wr,!1)}return t.dispatchCommand(Hi,void 0)},we),t.registerCommand(Zm,()=>{const e=ne();return!!K(e)&&(t.blur(),!0)},we),t.registerCommand(Ym,e=>{const[,n]=Vs(e);if(n.length>0){const r=Wf(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Pr(a);if(l!==null){const c=Xa();if(ee(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=ra(c);at(u)}t.dispatchCommand(Kf,n)}return e.preventDefault(),!0}const o=ne();return!!K(o)},we),t.registerCommand(Jm,e=>{const[n]=Vs(e),o=ne();return!(n&&!K(o))},we),t.registerCommand(Xm,e=>{const[n]=Vs(e),o=ne();if(n&&!K(o))return!1;const r=Wf(e.clientX,e.clientY);if(r!==null){const s=Pr(r.node);Ee(s)&&e.preventDefault()}return!0},we),t.registerCommand(Ec,()=>(Jle(),!0),we),t.registerCommand(Ga,e=>(Hf(t,Lo(e,ClipboardEvent)?e:null),!0),we),t.registerCommand(wu,e=>(async function(n,o){await Hf(o,Lo(n,ClipboardEvent)?n:null),o.update(()=>{const r=ne();K(r)?r.removeText():Dt(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),we),t.registerCommand(Cu,e=>{const[,n,o]=Vs(e);return n.length>0&&!o?(t.dispatchCommand(Kf,n),!0):Wr(e.target)&&Mu(e.target)?!1:ne()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=ne(),l=Lo(r,InputEvent)||Lo(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&Uf(l,a,s)},{tag:Sle})}(e,t),!0)},we),t.registerCommand(jm,e=>{const n=ne();return K(n)&&tc(n),!1},we),t.registerCommand(Gm,e=>{const n=ne();return K(n)&&tc(n),!1},we))}var nue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
31
+ `?u.insertParagraph():d===" "?u.insertNodes([Wr()]):u.insertText(d)}}}else e.insertRawText(a)}function Hf(t,e,n){t.dispatchCommand(fle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(Z(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=qn(r,"previous");if(a)if(lo(a))s=a.origin;else{const l=ho(a,rn(ze(),"next").getFlipped());for(const c of l){if(X(c.origin)){s=c.origin;break}if(R(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 ig(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=R(n)&&n.excludeFromCopy("html");let a=n;e!==null&&X(a)&&(a=Wh(e,a,"clone"));const l=R(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&Ca(58,f.name),R(u)){const p=d.children;Array.isArray(p)||Ca(59,f.name)}return d}(a);X(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=ig(t,e,d,c.children);!r&&R(n)&&f&&n.extractWithChild(d,e,"clone")&&(r=!0)}if(r&&!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 r}function Hce(t,e){const n=[],o=ze().getChildren();for(let r=0;r<o.length;r++)ig(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function jce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=qle(o);X(r)&&_ce(r),e.push(r)}return e}let gr=null;async function jf(t,e,n){if(gr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Wf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=on(r);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(Ya,p=>(Io(p,ClipboardEvent)&&(f(),gr!==null&&(r.clearTimeout(gr),gr=null),u(Wf(t,p,n))),!0),jle);gr=r.setTimeout(()=>{f(),gr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Wf(t,e,n){if(n===void 0){const r=on(t._window),s=ne();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!ds(t,a,l))return!1;n=Wce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Zce(o,n),!0)}const sg=[["text/html",Uce],["application/x-lexical-editor",qce]];function Wce(t=ne()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=il();for(const[o,r]of sg){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Zce(t,e){for(const[n]of sg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Kce(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)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=ne();if(Z(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 Zf(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 ir=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Gce=ir&&"documentMode"in document?document.documentMode:null,Yce=ir&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Jce=!(!ir||!("InputEvent"in window)||Gce)&&"getTargetRanges"in new window.InputEvent("input"),Xce=ir&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Kf=ir&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Qce=ir&&/^(?=.*Chrome).*/i.test(navigator.userAgent),eue=ir&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Yce&&!Qce,Gf=fe("DRAG_DROP_PASTE_FILE");let Gu=class ag extends Lt{static getType(){return"quote"}static clone(e){return new ag(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Hn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:tue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Yu().updateFromJSON(e)}insertNewAfter(e,n){const o=Ie(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Ie();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Yu(){return ln(new Gu)}function Uc(t){return t instanceof Gu}let al=class lg extends Lt{constructor(n,o){super(o);q(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new lg(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,r=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];Hn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:vr,priority:0}),h2:n=>({conversion:vr,priority:0}),h3:n=>({conversion:vr,priority:0}),h4:n=>({conversion:vr,priority:0}),h5:n=>({conversion:vr,priority:0}),h6:n=>({conversion:vr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Yf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Yf(n)?{conversion:o=>({node:Po("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(Ze(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Po(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 r=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&r===s.getTextContentSize()||!n?Ie():Po(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=Ie();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Ie():Po(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Yf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function vr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Po(e),t.style!==null&&(Vu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function tue(t){const e=Yu();return t.style!==null&&(e.setFormat(t.style.textAlign),Vu(t,e)),{node:e}}function Po(t="h1"){return ln(new al(t))}function cg(t){return t instanceof al}function Rs(t){let e=null;if(Io(t,DragEvent)?e=t.dataTransfer:Io(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Jf(t){const e=ne();if(!Z(e))return!1;const n=new Set,o=e.getNodes();for(let r=0;r<o.length;r++){const s=o[r],a=s.getKey();if(n.has(a))continue;const l=qt(s,u=>R(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 Xf(t){const e=Vr(t);return xe(e)}function nc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function nue(t){return ps(t.registerCommand(zm,e=>{const n=ne();return!!Dt(n)&&(n.clear(),!0)},Ee),t.registerCommand(Ro,e=>{const n=ne();return Z(n)?(n.deleteCharacter(e),!0):!!Dt(n)&&(n.deleteNodes(),!0)},Ee),t.registerCommand(Zi,e=>{const n=ne();return!!Z(n)&&(n.deleteWord(e),!0)},Ee),t.registerCommand(Ki,e=>{const n=ne();return!!Z(n)&&(n.deleteLine(e),!0)},Ee),t.registerCommand(xr,e=>{const n=ne();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)qf(o,n,t);else if(Z(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},Ee),t.registerCommand(Ec,()=>{const e=ne();return!!Z(e)&&(e.removeText(),!0)},Ee),t.registerCommand(Rt,e=>{const n=ne();return!!Z(n)&&(n.formatText(e),!0)},Ee),t.registerCommand(yle,e=>{const n=ne();if(!Z(n)&&!Dt(n))return!1;const o=n.getNodes();for(const r of o){const s=qt(r,a=>R(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},Ee),t.registerCommand(Er,e=>{const n=ne();return!!Z(n)&&(n.insertLineBreak(e),!0)},Ee),t.registerCommand(Wi,()=>{const e=ne();return!!Z(e)&&(e.insertParagraph(),!0)},Ee),t.registerCommand(gle,()=>(Rle([Wr()]),!0),Ee),t.registerCommand(vle,()=>Jf(e=>{const n=e.getIndent();e.setIndent(n+1)}),Ee),t.registerCommand(K1,()=>Jf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),Ee),t.registerCommand(Hm,e=>{const n=ne();if(Dt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(Z(n)){const o=Oc(n.focus,!0);if(!e.shiftKey&&xe(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},Ee),t.registerCommand(jm,e=>{const n=ne();if(Dt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(Z(n)){if(function(r){const s=r.focus;return s.key==="root"&&s.offset===ze().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Oc(n.focus,!1);if(!e.shiftKey&&xe(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},Ee),t.registerCommand(qm,e=>{const n=ne();if(Dt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Of(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!Z(n))return!1;if(Lf(n,!0)){const o=e.shiftKey;return e.preventDefault(),If(n,o,!0),!0}return!1},Ee),t.registerCommand(Um,e=>{const n=ne();if(Dt(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),Of(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!Z(n))return!1;const o=e.shiftKey;return!!Lf(n,!1)&&(e.preventDefault(),If(n,o,!1),!0)},Ee),t.registerCommand(Zm,e=>{if(Xf(e.target))return!1;const n=ne();if(Z(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const s=r.getNode();if(je(s))return!1;const a=Tce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(K1,void 0);if(Kf&&navigator.language==="ko-KR")return!1}else if(!Dt(n))return!1;return e.preventDefault(),t.dispatchCommand(Ro,!0)},Ee),t.registerCommand(Gm,e=>{if(Xf(e.target))return!1;const n=ne();return!(!Z(n)&&!Dt(n))&&(e.preventDefault(),t.dispatchCommand(Ro,!1))},Ee),t.registerCommand(ua,e=>{const n=ne();if(!Z(n))return!1;if(nc(n),e!==null){if((Kf||Xce||eue)&&Jce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Er,!1)}return t.dispatchCommand(Wi,void 0)},Ee),t.registerCommand(Km,()=>{const e=ne();return!!Z(e)&&(t.blur(),!0)},Ee),t.registerCommand(Jm,e=>{const[,n]=Rs(e);if(n.length>0){const r=Zf(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Vr(a);if(l!==null){const c=Qa();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=ia(c);lt(u)}t.dispatchCommand(Gf,n)}return e.preventDefault(),!0}const o=ne();return!!Z(o)},Ee),t.registerCommand(Xm,e=>{const[n]=Rs(e),o=ne();return!(n&&!Z(o))},Ee),t.registerCommand(Qm,e=>{const[n]=Rs(e),o=ne();if(n&&!Z(o))return!1;const r=Zf(e.clientX,e.clientY);if(r!==null){const s=Vr(r.node);xe(s)&&e.preventDefault()}return!0},Ee),t.registerCommand(xc,()=>(Xle(),!0),Ee),t.registerCommand(Ya,e=>(jf(t,Io(e,ClipboardEvent)?e:null),!0),Ee),t.registerCommand(Eu,e=>(async function(n,o){await jf(o,Io(n,ClipboardEvent)?n:null),o.update(()=>{const r=ne();Z(r)?r.removeText():Dt(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),Ee),t.registerCommand(bu,e=>{const[,n,o]=Rs(e);return n.length>0&&!o?(t.dispatchCommand(Gf,n),!0):Kr(e.target)&&Bu(e.target)?!1:ne()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=ne(),l=Io(r,InputEvent)||Io(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&qf(l,a,s)},{tag:Tle})}(e,t),!0)},Ee),t.registerCommand(Wm,e=>{const n=ne();return Z(n)&&nc(n),!1},Ee),t.registerCommand(Ym,e=>{const n=ne();return Z(n)&&nc(n),!1},Ee))}var oue={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 r=/(?:^|\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(_,k){k=k||{};var w,b;switch(l.util.type(_)){case"Object":if(b=l.util.objId(_),k[b])return k[b];w={},k[b]=w;for(var E in _)_.hasOwnProperty(E)&&(w[E]=v(_[E],k));return w;case"Array":return b=l.util.objId(_),k[b]?k[b]:(w=[],k[b]=w,_.forEach(function(T,S){w[S]=v(T,k)}),w);default:return _}},getLanguage:function(v){for(;v;){var _=r.exec(v.className);if(_)return _[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,_){v.className=v.className.replace(RegExp(r,"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 k in _)if(_[k].src==v)return _[k]}return null}},isActive:function(v,_,k){for(var w="no-"+_;v;){var b=v.classList;if(b.contains(_))return!0;if(b.contains(w))return!1;v=v.parentElement}return!!k}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,_){var k=l.util.clone(l.languages[v]);for(var w in _)k[w]=_[w];return k},insertBefore:function(v,_,k,w){w=w||l.languages;var b=w[v],E={};for(var T in b)if(b.hasOwnProperty(T)){if(T==_)for(var S in k)k.hasOwnProperty(S)&&(E[S]=k[S]);k.hasOwnProperty(T)||(E[T]=b[T])}var N=w[v];return w[v]=E,l.languages.DFS(l.languages,function(L,A){A===N&&L!=v&&(this[L]=E)}),E},DFS:function v(_,k,w,b){b=b||{};var E=l.util.objId;for(var T in _)if(_.hasOwnProperty(T)){k.call(_,T,_[T],w||T);var S=_[T],N=l.util.type(S);N==="Object"&&!b[E(S)]?(b[E(S)]=!0,v(S,k,null,b)):N==="Array"&&!b[E(S)]&&(b[E(S)]=!0,v(S,k,T,b))}}},plugins:{},highlightAll:function(v,_){l.highlightAllUnder(document,v,_)},highlightAllUnder:function(v,_,k){var w={callback:k,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 b=0,E;E=w.elements[b++];)l.highlightElement(E,_===!0,w.callback)},highlightElement:function(v,_,k){var w=l.util.getLanguage(v),b=l.languages[w];l.util.setLanguage(v,w);var E=v.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(E,w);var T=v.textContent,S={element:v,language:w,grammar:b,code:T};function N(A){S.highlightedCode=A,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),k&&k.call(S.element)}if(l.hooks.run("before-sanity-check",S),E=S.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),k&&k.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){N(l.util.encode(S.code));return}if(_&&o.Worker){var L=new Worker(l.filename);L.onmessage=function(A){N(A.data)},L.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else N(l.highlight(S.code,S.grammar,S.language))},highlight:function(v,_,k){var w={code:v,grammar:_,language:k};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 k=_.rest;if(k){for(var w in k)_[w]=k[w];delete _.rest}var b=new f;return p(b,b.head,v),d(v,b,_,b.head,0),h(b)},hooks:{all:{},add:function(v,_){var k=l.hooks.all;k[v]=k[v]||[],k[v].push(_)},run:function(v,_){var k=l.hooks.all[v];if(!(!k||!k.length))for(var w=0,b;b=k[w++];)b(_)}},Token:c};o.Prism=l;function c(v,_,k,w){this.type=v,this.content=_,this.alias=k,this.length=(w||"").length|0}c.stringify=function v(_,k){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(N){w+=v(N,k)}),w}var b={type:_.type,content:v(_.content,k),tag:"span",classes:["token",_.type],attributes:{},language:k},E=_.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(b.classes,E):b.classes.push(E)),l.hooks.run("wrap",b);var T="";for(var S in b.attributes)T+=" "+S+'="'+(b.attributes[S]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+T+">"+b.content+"</"+b.tag+">"};function u(v,_,k,w){v.lastIndex=_;var b=v.exec(k);if(b&&w&&b[1]){var E=b[1].length;b.index+=E,b[0]=b[0].slice(E)}return b}function d(v,_,k,w,b,E){for(var T in k)if(!(!k.hasOwnProperty(T)||!k[T])){var S=k[T];S=Array.isArray(S)?S:[S];for(var N=0;N<S.length;++N){if(E&&E.cause==T+","+N)return;var L=S[N],A=L.inside,D=!!L.lookbehind,M=!!L.greedy,I=L.alias;if(M&&!L.pattern.global){var P=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,P+"g")}for(var W=L.pattern||L,R=w.next,q=b;R!==_.tail&&!(E&&q>=E.reach);q+=R.value.length,R=R.next){var V=R.value;if(_.length>v.length)return;if(!(V instanceof c)){var te=1,oe;if(M){if(oe=u(W,q,v,D),!oe||oe.index>=v.length)break;var U=oe.index,_e=oe.index+oe[0].length,F=q;for(F+=R.value.length;U>=F;)R=R.next,F+=R.value.length;if(F-=R.value.length,q=F,R.value instanceof c)continue;for(var j=R;j!==_.tail&&(F<_e||typeof j.value=="string");j=j.next)te++,F+=j.value.length;te--,V=v.slice(q,F),oe.index-=q}else if(oe=u(W,0,V,D),!oe)continue;var U=oe.index,G=oe[0],ue=V.slice(0,U),Ce=V.slice(U+G.length),Be=q+V.length;E&&Be>E.reach&&(E.reach=Be);var $e=R.prev;ue&&($e=p(_,$e,ue),q+=ue.length),m(_,$e,te);var de=new c(T,A?l.tokenize(G,A):G,I,G);if(R=p(_,$e,de),Ce&&p(_,R,Ce),te>1){var qe={cause:T+","+N,reach:Be};d(v,_,k,R.prev,q,qe),E&&qe.reach>E.reach&&(E.reach=qe.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,_,k){var w=_.next,b={value:k,prev:_,next:w};return _.next=b,w.prev=b,v.length++,b}function m(v,_,k){for(var w=_.next,b=0;b<k&&w!==v.tail;b++)w=w.next;_.next=w,w.prev=_,v.length-=b}function h(v){for(var _=[],k=v.head.next;k!==v.tail;)_.push(k.value),k=k.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(v){var _=JSON.parse(v.data),k=_.language,w=_.code,b=_.immediateClose;o.postMessage(l.highlight(w,l.languages[k],k)),b&&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(r,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[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,r){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:[r,"language-"+r],inside:n.languages[r]},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 r=/(?:"(?:\\(?:\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+"|"+r.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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…",r=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(r(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 k=(/\.(\w+)$/.exec(v)||[,"none"])[1];_=a[k]||k}n.util.setLanguage(C,_),n.util.setLanguage(y,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),p(v,function(b){y.setAttribute(l,u);var E=m(y.getAttribute("data-range"));if(E){var T=b.split(/\r\n?|\n/g),S=E[0],N=E[1]==null?T.length:E[1];S<0&&(S+=T.length),S=Math.max(0,Math.min(S-1,T.length)),N<0&&(N+=T.length),N=Math.max(0,Math.min(N,T.length)),b=T.slice(S,N).join(`
39
- `),y.hasAttribute("data-start")||y.setAttribute("data-start",String(S+1))}C.textContent=b,n.highlightElement(C)},function(b){y.setAttribute(l,d),C.textContent=b})}}),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)}}()})(nue);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 r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["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:r},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,r=/\|?__(?:\|__)+\|?(?:(?:\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("^"+r+s+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+s+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),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 cg(t,e){for(const n of t.childNodes){if(Ze(n)&&n.tagName===e)return!0;cg(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Rs="data-theme";let al=class ug extends Lt{constructor(n,o){super(o);H(this,"__language");H(this,"__theme");H(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new ug(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");Hn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,r){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(ki,s):a&&o.removeAttribute(ki);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(yi,s):o.removeAttribute(yi):l&&s&&o.setAttribute(yi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Rs,c):u&&o.removeAttribute(Rs);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");Hn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,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)||cg(n,"BR"))?{conversion:Xf,priority:1}:null,div:()=>({conversion:oue,priority:1}),pre:()=>({conversion:Xf,priority:0}),table:n=>nc(n)?{conversion:rue,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&nc(r)?{conversion:Qf,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&nc(o)?{conversion:Qf,priority:3}:null}}}static importJSON(n){return yn().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 r=this.getChildren(),s=r.length;if(s>=2&&r[s-1].getTextContent()===`
38
+ */var n=function(o){var r=/(?:^|\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(_,k){k=k||{};var w,b;switch(l.util.type(_)){case"Object":if(b=l.util.objId(_),k[b])return k[b];w={},k[b]=w;for(var E in _)_.hasOwnProperty(E)&&(w[E]=v(_[E],k));return w;case"Array":return b=l.util.objId(_),k[b]?k[b]:(w=[],k[b]=w,_.forEach(function(T,S){w[S]=v(T,k)}),w);default:return _}},getLanguage:function(v){for(;v;){var _=r.exec(v.className);if(_)return _[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,_){v.className=v.className.replace(RegExp(r,"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 k in _)if(_[k].src==v)return _[k]}return null}},isActive:function(v,_,k){for(var w="no-"+_;v;){var b=v.classList;if(b.contains(_))return!0;if(b.contains(w))return!1;v=v.parentElement}return!!k}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,_){var k=l.util.clone(l.languages[v]);for(var w in _)k[w]=_[w];return k},insertBefore:function(v,_,k,w){w=w||l.languages;var b=w[v],E={};for(var T in b)if(b.hasOwnProperty(T)){if(T==_)for(var S in k)k.hasOwnProperty(S)&&(E[S]=k[S]);k.hasOwnProperty(T)||(E[T]=b[T])}var N=w[v];return w[v]=E,l.languages.DFS(l.languages,function(L,A){A===N&&L!=v&&(this[L]=E)}),E},DFS:function v(_,k,w,b){b=b||{};var E=l.util.objId;for(var T in _)if(_.hasOwnProperty(T)){k.call(_,T,_[T],w||T);var S=_[T],N=l.util.type(S);N==="Object"&&!b[E(S)]?(b[E(S)]=!0,v(S,k,null,b)):N==="Array"&&!b[E(S)]&&(b[E(S)]=!0,v(S,k,T,b))}}},plugins:{},highlightAll:function(v,_){l.highlightAllUnder(document,v,_)},highlightAllUnder:function(v,_,k){var w={callback:k,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 b=0,E;E=w.elements[b++];)l.highlightElement(E,_===!0,w.callback)},highlightElement:function(v,_,k){var w=l.util.getLanguage(v),b=l.languages[w];l.util.setLanguage(v,w);var E=v.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(E,w);var T=v.textContent,S={element:v,language:w,grammar:b,code:T};function N(A){S.highlightedCode=A,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),k&&k.call(S.element)}if(l.hooks.run("before-sanity-check",S),E=S.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),k&&k.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){N(l.util.encode(S.code));return}if(_&&o.Worker){var L=new Worker(l.filename);L.onmessage=function(A){N(A.data)},L.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else N(l.highlight(S.code,S.grammar,S.language))},highlight:function(v,_,k){var w={code:v,grammar:_,language:k};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 k=_.rest;if(k){for(var w in k)_[w]=k[w];delete _.rest}var b=new f;return p(b,b.head,v),d(v,b,_,b.head,0),h(b)},hooks:{all:{},add:function(v,_){var k=l.hooks.all;k[v]=k[v]||[],k[v].push(_)},run:function(v,_){var k=l.hooks.all[v];if(!(!k||!k.length))for(var w=0,b;b=k[w++];)b(_)}},Token:c};o.Prism=l;function c(v,_,k,w){this.type=v,this.content=_,this.alias=k,this.length=(w||"").length|0}c.stringify=function v(_,k){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(N){w+=v(N,k)}),w}var b={type:_.type,content:v(_.content,k),tag:"span",classes:["token",_.type],attributes:{},language:k},E=_.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(b.classes,E):b.classes.push(E)),l.hooks.run("wrap",b);var T="";for(var S in b.attributes)T+=" "+S+'="'+(b.attributes[S]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+T+">"+b.content+"</"+b.tag+">"};function u(v,_,k,w){v.lastIndex=_;var b=v.exec(k);if(b&&w&&b[1]){var E=b[1].length;b.index+=E,b[0]=b[0].slice(E)}return b}function d(v,_,k,w,b,E){for(var T in k)if(!(!k.hasOwnProperty(T)||!k[T])){var S=k[T];S=Array.isArray(S)?S:[S];for(var N=0;N<S.length;++N){if(E&&E.cause==T+","+N)return;var L=S[N],A=L.inside,D=!!L.lookbehind,M=!!L.greedy,I=L.alias;if(M&&!L.pattern.global){var P=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,P+"g")}for(var j=L.pattern||L,V=w.next,U=b;V!==_.tail&&!(E&&U>=E.reach);U+=V.value.length,V=V.next){var F=V.value;if(_.length>v.length)return;if(!(F instanceof c)){var Q=1,ee;if(M){if(ee=u(j,U,v,D),!ee||ee.index>=v.length)break;var z=ee.index,me=ee.index+ee[0].length,se=U;for(se+=V.value.length;z>=se;)V=V.next,se+=V.value.length;if(se-=V.value.length,U=se,V.value instanceof c)continue;for(var ae=V;ae!==_.tail&&(se<me||typeof ae.value=="string");ae=ae.next)Q++,se+=ae.value.length;Q--,F=v.slice(U,se),ee.index-=U}else if(ee=u(j,0,F,D),!ee)continue;var z=ee.index,re=ee[0],_e=F.slice(0,z),De=F.slice(z+re.length),Je=U+F.length;E&&Je>E.reach&&(E.reach=Je);var H=V.prev;_e&&(H=p(_,H,_e),U+=_e.length),m(_,H,Q);var te=new c(T,A?l.tokenize(re,A):re,I,re);if(V=p(_,H,te),De&&p(_,V,De),Q>1){var Le={cause:T+","+N,reach:Je};d(v,_,k,V.prev,U,Le),E&&Le.reach>E.reach&&(E.reach=Le.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,_,k){var w=_.next,b={value:k,prev:_,next:w};return _.next=b,w.prev=b,v.length++,b}function m(v,_,k){for(var w=_.next,b=0;b<k&&w!==v.tail;b++)w=w.next;_.next=w,w.prev=_,v.length-=b}function h(v){for(var _=[],k=v.head.next;k!==v.tail;)_.push(k.value),k=k.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(v){var _=JSON.parse(v.data),k=_.language,w=_.code,b=_.immediateClose;o.postMessage(l.highlight(w,l.languages[k],k)),b&&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(r,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[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,r){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:[r,"language-"+r],inside:n.languages[r]},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 r=/(?:"(?:\\(?:\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+"|"+r.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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…",r=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(r(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 k=(/\.(\w+)$/.exec(v)||[,"none"])[1];_=a[k]||k}n.util.setLanguage(C,_),n.util.setLanguage(y,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),p(v,function(b){y.setAttribute(l,u);var E=m(y.getAttribute("data-range"));if(E){var T=b.split(/\r\n?|\n/g),S=E[0],N=E[1]==null?T.length:E[1];S<0&&(S+=T.length),S=Math.max(0,Math.min(S-1,T.length)),N<0&&(N+=T.length),N=Math.max(0,Math.min(N,T.length)),b=T.slice(S,N).join(`
39
+ `),y.hasAttribute("data-start")||y.setAttribute("data-start",String(S+1))}C.textContent=b,n.highlightElement(C)},function(b){y.setAttribute(l,d),C.textContent=b})}}),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)}}()})(oue);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 r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["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:r},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,r=/\|?__(?:\|__)+\|?(?:(?:\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("^"+r+s+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+s+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),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 ug(t,e){for(const n of t.childNodes){if(Ze(n)&&n.tagName===e)return!0;ug(n,e)}return!1}const Ei="data-language",Ci="data-highlight-language",zs="data-theme";let ll=class dg extends Lt{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 dg(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");Hn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Ei,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Ci,r));const s=this.getTheme();s&&o.setAttribute(zs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,r){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(Ei,s):a&&o.removeAttribute(Ei);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(Ci,s):o.removeAttribute(Ci):l&&s&&o.setAttribute(Ci,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(zs,c):u&&o.removeAttribute(zs);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");Hn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Ei,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Ci,r));const s=this.getTheme();s&&o.setAttribute(zs,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)||ug(n,"BR"))?{conversion:Qf,priority:1}:null,div:()=>({conversion:rue,priority:1}),pre:()=>({conversion:Qf,priority:0}),table:n=>oc(n)?{conversion:iue,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&oc(r)?{conversion:ep,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&oc(o)?{conversion:ep,priority:3}:null}}}static importJSON(n){return yn().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 r=this.getChildren(),s=r.length;if(s>=2&&r[s-1].getTextContent()===`
40
40
  `&&r[s-2].getTextContent()===`
41
- `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const u=Oe();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(ee(c)){let u=sue(c);const d=[];for(;;)if(Ya(u))d.push(Hr()),u=u.getNextSibling();else{if(!mg(u))break;{let C=0;const v=u.getTextContent(),_=u.getTextContentSize();for(;C<_&&v[C]===" ";)C++;if(C!==0&&d.push(pg(" ".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=[nn(),...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(ll(c)){const{offset:u}=n.anchor;c.splice(u,0,[nn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Oe();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 yn(t,e){return sce(al).setLanguage(t).setTheme(e)}function ll(t){return t instanceof al}function Xf(t){return{node:yn(t.getAttribute(ki))}}function oue(t){const e=t,n=ep(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(ep(r))return!0;r=r.parentElement}return!1}(e)?{node:n?yn():null}:{node:null}}function rue(){return{node:yn()}}function Qf(){return{node:null}}function ep(t){return t.style.fontFamily.match("monospace")!==null}function nc(t){return t.classList.contains("js-file-line-container")}let dg=class fg extends _o{constructor(n="",o,r){super(n,r);H(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new fg(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),r=oc(n.theme,this.__highlightType);return Hn(o,r),o}updateDOM(n,o,r){const s=super.updateDOM(n,o,r),a=oc(r.theme,n.__highlightType),l=oc(r.theme,this.__highlightType);return a!==l&&(a&&Wu(o,a),l&&Hn(o,l)),s}static importJSON(n){return pg().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 yn()}};function oc(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function pg(t="",e){return ln(new dg(t,e))}function mg(t){return t instanceof dg}function iue(t,e){let n=t;for(let o=it(t,e);o&&(mg(o.origin)||Ya(o.origin));o=Ece(o))n=o.origin;return n}function sue(t){return iue(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],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),n==="diff"&&r.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
41
+ `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const u=Ie();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(X(c)){let u=aue(c);const d=[];for(;;)if(Ja(u))d.push(Wr()),u=u.getNextSibling();else{if(!hg(u))break;{let C=0;const v=u.getTextContent(),_=u.getTextContentSize();for(;C<_&&v[C]===" ";)C++;if(C!==0&&d.push(mg(" ".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=[nn(),...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(cl(c)){const{offset:u}=n.anchor;c.splice(u,0,[nn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Ie();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 yn(t,e){return ace(ll).setLanguage(t).setTheme(e)}function cl(t){return t instanceof ll}function Qf(t){return{node:yn(t.getAttribute(Ei))}}function rue(t){const e=t,n=tp(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(tp(r))return!0;r=r.parentElement}return!1}(e)?{node:n?yn():null}:{node:null}}function iue(){return{node:yn()}}function ep(){return{node:null}}function tp(t){return t.style.fontFamily.match("monospace")!==null}function oc(t){return t.classList.contains("js-file-line-container")}let fg=class pg extends _o{constructor(n="",o,r){super(n,r);q(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new pg(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),r=rc(n.theme,this.__highlightType);return Hn(o,r),o}updateDOM(n,o,r){const s=super.updateDOM(n,o,r),a=rc(r.theme,n.__highlightType),l=rc(r.theme,this.__highlightType);return a!==l&&(a&&Zu(o,a),l&&Hn(o,l)),s}static importJSON(n){return mg().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 yn()}};function rc(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function mg(t="",e){return ln(new fg(t,e))}function hg(t){return t instanceof fg}function sue(t,e){let n=t;for(let o=st(t,e);o&&(hg(o.origin)||Ja(o.origin));o=xce(o))n=o.origin;return n}function aue(t){return sue(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],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),n==="diff"&&r.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
42
42
  ?|
43
- |(?![\\s\\S])))+`,"m"),alias:r,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 aue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Kr extends Lt{constructor(n="",o={},r){super(r);H(this,"__url");H(this,"__target");H(this,"__rel");H(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 Kr(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),Hn(o,n.theme.link),o}updateLinkDOM(n,o,r){if(Lh(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,r){return this.updateLinkDOM(n,o,r),!1}static importDOM(){return{a:n=>({conversion:lue,priority:1})}}static importJSON(n){return Ca().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=np(n);try{const o=new URL(np(n));if(!aue.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 r=Ca(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,o),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,r){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 lue(t){let e=null;if(Lh(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=Ca(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function Ca(t="",e){return ln(new Kr(t,e))}function cue(t){return t instanceof Kr}class cl extends Kr{constructor(n="",o={},r){super(n,o,r);H(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new cl(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,r){return super.updateDOM(n,o,r)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return tp().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 r=this.getParentOrThrow().insertNewAfter(n,o);if(z(r)){const s=tp(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}}function tp(t="",e){return ln(new cl(t,e))}function uue(t){return t instanceof cl}const due=/^\+?[0-9\s()-]{5,}$/;function np(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:due.test(t)?`tel:${t}`:`https://${t}`}function Uc(t,e){const n={};for(const o of t){const r=e(o);r&&(n[r]?n[r].push(o):n[r]=[o])}return n}function Yu(t){const e=Uc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const ba=/[!-/:-@[-`{-~\s]/,fue=/^\s{0,3}$/;function qc(t){if(!cs(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&ee(e)&&fue.test(e.getTextContent())}function pue(t,e,n,o){for(const r of e){if(!r.export)continue;const s=r.export(t,a=>ka(a,n,o));if(s!=null)return s}return z(t)?ka(t,n,o):Ee(t)?t.getTextContent():null}function ka(t,e,n,o,r){const s=[],a=t.getChildren();o||(o=[]),r||(r=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>ka(d,e,n,o,[...r,...o]),(d,f)=>op(d,f,e,o,r));if(u!=null){s.push(u);continue e}}ao(l)?s.push(`
44
- `):ee(l)?s.push(op(l,l.getTextContent(),e,o,r)):z(l)?s.push(ka(l,e,n,o,r)):Ee(l)&&s.push(l.getTextContent())}return s.join("")}function op(t,e,n,o,r){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=rp(t,!0),d=rp(t,!1),f=new Set;for(const p of n){const m=p.format[0],h=p.tag;zs(t,m)&&!f.has(m)&&(f.add(m),zs(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=zs(t,o[p].format),h=zs(d,o[p].format);if(m&&h)continue;const g=[...o];for(;g.length>p;){const y=g.pop();r&&y&&r.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 rp(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(z(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(ee(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(ee(n))return n;if(!z(n))return null}return null}function zs(t,e){return ee(t)&&t.hasFormat(e)}function mue(t,e){const n=function(r,s){const a=r.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=r.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,m=r[p-1],h=r[p+d[0].length];if((!m||ba.test(m))&&(!h||ba.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 Mo(t){return ee(t)&&!t.hasFormat("code")}function Bo(t,e,n){let o=mue(t,e),r=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&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=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);Mo(a.nodeAfter)&&Bo(a.nodeAfter,e,n),Mo(a.nodeBefore)&&Bo(a.nodeBefore,e,n),Mo(a.transformedNode)&&Bo(a.transformedNode,e,n)}else if(r){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,r.startIndex,r.endIndex,r.transformer,r.match);if(!a)return;Mo(a.nodeAfter)&&Bo(a.nodeAfter,e,n),Mo(a.nodeBefore)&&Bo(a.nodeBefore,e,n),Mo(a.transformedNode)&&Bo(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function hue(t,e=!1){const n=Yu(t),o=function(r){const s={},a={},l=[],c="(?<![\\\\])";for(const u of r){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(r,s)=>{const a=r.split(`
45
- `),l=a.length,c=s||Re();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=gue(a,d,n.multilineElement,c);p?d=m:vue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&qc(d)&&c.getChildrenSize()>1&&d.remove();ne()!==null&&c.selectStart()}}function gue(t,e,n,o){for(const r of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=r,u=t[e].match(l);if(!u)continue;if(s){const h=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:r});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 vue(t,e,n,o,r,s){const a=Ue(t),l=Oe();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(Bo(a,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(cs(c)||zc(c)||ce(c))){let u=c;if(ce(c)){const d=c.getLastDescendant();u=d==null?null:qt(d,xe)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[nn(),...l.getChildren()]),l.remove())}}}function yue(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 hg=/^(\s*)(\d{1,})\.\s/,gg=/^(\s*)[-*+]\s/,_ue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Hc=/^(#{1,6})\s/,vg=/^>\s/,yg=/^[ \t]*```([\w-]+)?/,jc=/[ \t]*```$/,Cue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,bue=/^(?:\|)(.+)(?:\|)\s?$/,kue=/^(\| ?:?-*:? ?)+\|\s?$/,ip=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,sp=/^<\/[a-z_][\w-]*\s*>/i,ap=t=>new RegExp(`(?:${t.source})$`,t.flags),wi=rle("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),_g=t=>(e,n,o,r)=>{const s=t(o);s.append(...n),e.replace(s),r||s.select(0,0)},Cg=t=>(e,n,o,r)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=It(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==wi.parse(c)?void 0:c;if(ce(a)&&a.getListType()===t){u&&Ul(a,wi,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(ce(s)&&s.getListType()===t)u&&Ul(s,wi,u),s.append(l),e.remove();else{const f=wt(t,t==="number"?Number(o[2]):void 0);u&&Ul(f,wi,u),f.append(l),e.replace(f)}l.append(...n),r||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)},Ju=(t,e,n)=>{const o=[],r=t.getChildren();let s=0;for(const a of r)if(xe(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(ce(f)){o.push(Ju(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=Mm(t,wi),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
46
- `)},bg={dependencies:[sl],export:(t,e)=>{if(!lg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Hc,replace:_g(t=>{const e="h"+t[1].length;return Io(e)}),type:"element"},wue={dependencies:[Ku],export:(t,e)=>{if(!zc(t))return null;const n=e(t).split(`
43
+ |(?![\\s\\S])))+`,"m"),alias:r,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 lue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Yr extends Lt{constructor(n="",o={},r){super(r);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 Yr(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),Hn(o,n.theme.link),o}updateLinkDOM(n,o,r){if(Ih(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,r){return this.updateLinkDOM(n,o,r),!1}static importDOM(){return{a:n=>({conversion:cue,priority:1})}}static importJSON(n){return ba().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=op(n);try{const o=new URL(op(n));if(!lue.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 r=ba(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,o),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,r){if(!Z(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(Ih(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=ba(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function ba(t="",e){return ln(new Yr(t,e))}function uue(t){return t instanceof Yr}class ul extends Yr{constructor(n="",o={},r){super(n,o,r);q(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new ul(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,r){return super.updateDOM(n,o,r)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return np().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 r=this.getParentOrThrow().insertNewAfter(n,o);if(R(r)){const s=np(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}}function np(t="",e){return ln(new ul(t,e))}function due(t){return t instanceof ul}const fue=/^\+?[0-9\s()-]{5,}$/;function op(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:fue.test(t)?`tel:${t}`:`https://${t}`}function qc(t,e){const n={};for(const o of t){const r=e(o);r&&(n[r]?n[r].push(o):n[r]=[o])}return n}function Ju(t){const e=qc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const ka=/[!-/:-@[-`{-~\s]/,pue=/^\s{0,3}$/;function Hc(t){if(!us(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&X(e)&&pue.test(e.getTextContent())}function mue(t,e,n,o){for(const r of e){if(!r.export)continue;const s=r.export(t,a=>wa(a,n,o));if(s!=null)return s}return R(t)?wa(t,n,o):xe(t)?t.getTextContent():null}function wa(t,e,n,o,r){const s=[],a=t.getChildren();o||(o=[]),r||(r=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>wa(d,e,n,o,[...r,...o]),(d,f)=>rp(d,f,e,o,r));if(u!=null){s.push(u);continue e}}ao(l)?s.push(`
44
+ `):X(l)?s.push(rp(l,l.getTextContent(),e,o,r)):R(l)?s.push(wa(l,e,n,o,r)):xe(l)&&s.push(l.getTextContent())}return s.join("")}function rp(t,e,n,o,r){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=ip(t,!0),d=ip(t,!1),f=new Set;for(const p of n){const m=p.format[0],h=p.tag;Us(t,m)&&!f.has(m)&&(f.add(m),Us(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=Us(t,o[p].format),h=Us(d,o[p].format);if(m&&h)continue;const g=[...o];for(;g.length>p;){const y=g.pop();r&&y&&r.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 ip(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(R(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(!R(n))return null}return null}function Us(t,e){return X(t)&&t.hasFormat(e)}function hue(t,e){const n=function(r,s){const a=r.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=r.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,m=r[p-1],h=r[p+d[0].length];if((!m||ka.test(m))&&(!h||ka.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 Mo(t){return X(t)&&!t.hasFormat("code")}function Bo(t,e,n){let o=hue(t,e),r=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&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=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);Mo(a.nodeAfter)&&Bo(a.nodeAfter,e,n),Mo(a.nodeBefore)&&Bo(a.nodeBefore,e,n),Mo(a.transformedNode)&&Bo(a.transformedNode,e,n)}else if(r){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,r.startIndex,r.endIndex,r.transformer,r.match);if(!a)return;Mo(a.nodeAfter)&&Bo(a.nodeAfter,e,n),Mo(a.nodeBefore)&&Bo(a.nodeBefore,e,n),Mo(a.transformedNode)&&Bo(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function gue(t,e=!1){const n=Ju(t),o=function(r){const s={},a={},l=[],c="(?<![\\\\])";for(const u of r){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(r,s)=>{const a=r.split(`
45
+ `),l=a.length,c=s||ze();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=vue(a,d,n.multilineElement,c);p?d=m:yue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&Hc(d)&&c.getChildrenSize()>1&&d.remove();ne()!==null&&c.selectStart()}}function vue(t,e,n,o){for(const r of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=r,u=t[e].match(l);if(!u)continue;if(s){const h=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:r});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 yue(t,e,n,o,r,s){const a=Ue(t),l=Ie();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(Bo(a,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(us(c)||Uc(c)||pe(c))){let u=c;if(pe(c)){const d=c.getLastDescendant();u=d==null?null:qt(d,Se)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[nn(),...l.getChildren()]),l.remove())}}}function _ue(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 gg=/^(\s*)(\d{1,})\.\s/,vg=/^(\s*)[-*+]\s/,Cue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,jc=/^(#{1,6})\s/,yg=/^>\s/,_g=/^[ \t]*```([\w-]+)?/,Wc=/[ \t]*```$/,bue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,kue=/^(?:\|)(.+)(?:\|)\s?$/,wue=/^(\| ?:?-*:? ?)+\|\s?$/,sp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,ap=/^<\/[a-z_][\w-]*\s*>/i,lp=t=>new RegExp(`(?:${t.source})$`,t.flags),xi=ile("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),Cg=t=>(e,n,o,r)=>{const s=t(o);s.append(...n),e.replace(s),r||s.select(0,0)},bg=t=>(e,n,o,r)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=It(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==xi.parse(c)?void 0:c;if(pe(a)&&a.getListType()===t){u&&ql(a,xi,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(pe(s)&&s.getListType()===t)u&&ql(s,xi,u),s.append(l),e.remove();else{const f=wt(t,t==="number"?Number(o[2]):void 0);u&&ql(f,xi,u),f.append(l),e.replace(f)}l.append(...n),r||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)},Xu=(t,e,n)=>{const o=[],r=t.getChildren();let s=0;for(const a of r)if(Se(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(pe(f)){o.push(Xu(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=Bm(t,xi),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
46
+ `)},kg={dependencies:[al],export:(t,e)=>{if(!cg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:jc,replace:Cg(t=>{const e="h"+t[1].length;return Po(e)}),type:"element"},Eue={dependencies:[Gu],export:(t,e)=>{if(!Uc(t))return null;const n=e(t).split(`
47
47
  `),o=[];for(const r of n)o.push("> "+r);return o.join(`
48
- `)},regExp:vg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(zc(s))return s.splice(s.getChildrenSize(),0,[nn(),...e]),void t.remove()}const r=Gu();r.append(...e),t.replace(r),o||r.select(0,0)},type:"element"},kg={dependencies:[al],export:t=>{if(!ll(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
49
- `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:jc},regExpStart:yg,replace:(t,e,n,o,r,s)=>{let a,l;if(!e&&r){if(r.length===1)o?(a=yn(),l=n[1]+r[0]):(a=yn(n[1]),l=r[0].startsWith(" ")?r[0].slice(1):r[0]);else{if(a=yn(n[1]),r[0].trim().length===0)for(;r.length>0&&!r[0].length;)r.shift();else r[0]=r[0].startsWith(" ")?r[0].slice(1):r[0];for(;r.length>0&&!r[r.length-1].length;)r.pop();l=r.join(`
50
- `)}const c=Ue(l);a.append(c),t.append(a)}else e&&_g(c=>yn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},wg={dependencies:[or,bo],export:(t,e)=>ce(t)?Ju(t,e,0):null,regExp:gg,replace:Cg("bullet"),type:"element"},Eg={dependencies:[or,bo],export:(t,e)=>ce(t)?Ju(t,e,0):null,regExp:hg,replace:Cg("number"),type:"element"},xg={format:["code"],tag:"`",type:"text-format"},Eue={format:["highlight"],tag:"==",type:"text-format"},Sg={format:["bold","italic"],tag:"***",type:"text-format"},xue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Tg={format:["bold"],tag:"**",type:"text-format"},Sue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Ag={format:["strikethrough"],tag:"~~",type:"text-format"},Ng={format:["italic"],tag:"*",type:"text-format"},Tue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Aue={dependencies:[Kr],export:(t,e,n)=>{if(!cue(t)||uue(t))return null;const o=t.getTitle(),r=e(t);return o?`[${r}](${t.getURL()} "${o}")`:`[${r}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,r]=e,s=Ca(o,{title:r}),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=Ue(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ue(u)),d},trigger:")",type:"text-match"},Nue=[bg,wue,wg,Eg],Due=[kg],Mue=[xg,Sg,xue,Tg,Sue,Eue,Ng,Tue,Ag],Bue=[Aue],Xu=[...Nue,...Due,...Mue,...Bue];function lp(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const s=r-o;if(Dg(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Dg(t,e,n,o,r){for(let s=0;s<r;s++)if(t[e+s]!==n[o+s])return!1;return!0}function $ue(t,e=Xu){const n=Yu(e),o=Uc(n.textFormat,({tag:a})=>a[a.length-1]),r=Uc(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)||yue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const m=u.getParent();if(!mt(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(),[_,k]=d.splitText(f);if(y(u,k?[k,...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(!mt(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(),[k,w]=d.splitText(f);if(y(u,w?[w,..._]:_,v,null,null,!1)!==!1)return k.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,r)||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&&!Dg(p,_,C,0,v)||p[_-1]===" ")continue;const k=p[m+1];if(y.intraword===!1&&k&&!ba.test(k))continue;const w=u;let b=w,E=lp(p,_,C),T=b;for(;E<0&&(T=T.getPreviousSibling())&&!ao(T);)if(ee(T)){if(T.hasFormat("code"))continue;const W=T.getTextContent();b=T,E=lp(W,W.length,C)}if(E<0||b===w&&E+v===_)continue;const S=b.getTextContent();if(E>0&&S[E-1]===h)continue;const N=S[E-1];if(y.intraword===!1&&N&&!ba.test(N))continue;const L=w.getTextContent(),A=L.slice(0,_)+L.slice(m+1);w.setTextContent(A);const D=b===w?A:S;b.setTextContent(D.slice(0,E)+D.slice(E+v));const M=ne(),I=Xa();at(I);const P=m-v*(b===w?2:1)+1;I.anchor.set(b.__key,E,"text"),I.focus.set(w.__key,P,"text");for(const W of y.format)I.hasFormat(W)||I.formatText(W);I.anchor.set(I.focus.key,I.focus.offset,I.focus.type);for(const W of y.format)I.hasFormat(W)&&I.toggleFormat(W);return K(M)&&(I.format=M.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(lh)||a.has(fa)||t.isComposing())return;const d=c.read(ne),f=u.read(ne);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);!ee(h)||!l.has(p)||m!==1&&m>f.anchor.offset+1||t.update(()=>{if(!Mo(h))return;const g=h.getParent();g===null||ll(g)||s(g,h,d.anchor.offset)})})}function Oue(t,e=Xu,n,o=!1,r=!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];Cue.test(p)?d.push(p):yg.test(p)||jc.test(p)?(u=!u,d.push(p)):u||p===""||m===""||!m||Hc.test(m)||Hc.test(p)||vg.test(p)||hg.test(p)||gg.test(p)||_ue.test(p)||bue.test(p)||kue.test(p)||!l||ip.test(p)||sp.test(p)||ap(sp).test(m)||ap(ip).test(m)||jc.test(m)?d.push(p):d[d.length-1]=m+" "+p.trimStart()}return d.join(`
52
- `)}(t,r);return hue(e,o)(s,n)}function Lue(t=Xu,e,n=!1){return function(r,s=!1){const a=Yu(r),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||Re()).getChildren();for(let m=0;m<p.length;m++){const h=p[m],g=pue(h,l,u,a.textMatch);g!=null&&f.push(c&&m>0&&!qc(h)&&!qc(p[m-1])?`
48
+ `)},regExp:yg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(Uc(s))return s.splice(s.getChildrenSize(),0,[nn(),...e]),void t.remove()}const r=Yu();r.append(...e),t.replace(r),o||r.select(0,0)},type:"element"},wg={dependencies:[ll],export:t=>{if(!cl(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
49
+ `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Wc},regExpStart:_g,replace:(t,e,n,o,r,s)=>{let a,l;if(!e&&r){if(r.length===1)o?(a=yn(),l=n[1]+r[0]):(a=yn(n[1]),l=r[0].startsWith(" ")?r[0].slice(1):r[0]);else{if(a=yn(n[1]),r[0].trim().length===0)for(;r.length>0&&!r[0].length;)r.shift();else r[0]=r[0].startsWith(" ")?r[0].slice(1):r[0];for(;r.length>0&&!r[r.length-1].length;)r.pop();l=r.join(`
50
+ `)}const c=Ue(l);a.append(c),t.append(a)}else e&&Cg(c=>yn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},Eg={dependencies:[rr,bo],export:(t,e)=>pe(t)?Xu(t,e,0):null,regExp:vg,replace:bg("bullet"),type:"element"},xg={dependencies:[rr,bo],export:(t,e)=>pe(t)?Xu(t,e,0):null,regExp:gg,replace:bg("number"),type:"element"},Sg={format:["code"],tag:"`",type:"text-format"},xue={format:["highlight"],tag:"==",type:"text-format"},Tg={format:["bold","italic"],tag:"***",type:"text-format"},Sue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Ag={format:["bold"],tag:"**",type:"text-format"},Tue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Ng={format:["strikethrough"],tag:"~~",type:"text-format"},Dg={format:["italic"],tag:"*",type:"text-format"},Aue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Nue={dependencies:[Yr],export:(t,e,n)=>{if(!uue(t)||due(t))return null;const o=t.getTitle(),r=e(t);return o?`[${r}](${t.getURL()} "${o}")`:`[${r}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,r]=e,s=ba(o,{title:r}),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=Ue(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ue(u)),d},trigger:")",type:"text-match"},Due=[kg,Eue,Eg,xg],Mue=[wg],Bue=[Sg,Tg,Sue,Ag,Tue,xue,Dg,Aue,Ng],$ue=[Nue],Qu=[...Due,...Mue,...Bue,...$ue];function cp(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const s=r-o;if(Mg(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Mg(t,e,n,o,r){for(let s=0;s<r;s++)if(t[e+s]!==n[o+s])return!1;return!0}function Oue(t,e=Qu){const n=Ju(e),o=qc(n.textFormat,({tag:a})=>a[a.length-1]),r=qc(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)||_ue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const m=u.getParent();if(!ht(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(),[_,k]=d.splitText(f);if(y(u,k?[k,...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(!ht(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(),[k,w]=d.splitText(f);if(y(u,w?[w,..._]:_,v,null,null,!1)!==!1)return k.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,r)||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&&!Mg(p,_,C,0,v)||p[_-1]===" ")continue;const k=p[m+1];if(y.intraword===!1&&k&&!ka.test(k))continue;const w=u;let b=w,E=cp(p,_,C),T=b;for(;E<0&&(T=T.getPreviousSibling())&&!ao(T);)if(X(T)){if(T.hasFormat("code"))continue;const j=T.getTextContent();b=T,E=cp(j,j.length,C)}if(E<0||b===w&&E+v===_)continue;const S=b.getTextContent();if(E>0&&S[E-1]===h)continue;const N=S[E-1];if(y.intraword===!1&&N&&!ka.test(N))continue;const L=w.getTextContent(),A=L.slice(0,_)+L.slice(m+1);w.setTextContent(A);const D=b===w?A:S;b.setTextContent(D.slice(0,E)+D.slice(E+v));const M=ne(),I=Qa();lt(I);const P=m-v*(b===w?2:1)+1;I.anchor.set(b.__key,E,"text"),I.focus.set(w.__key,P,"text");for(const j of y.format)I.hasFormat(j)||I.formatText(j);I.anchor.set(I.focus.key,I.focus.offset,I.focus.type);for(const j of y.format)I.hasFormat(j)&&I.toggleFormat(j);return Z(M)&&(I.format=M.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(ch)||a.has(pa)||t.isComposing())return;const d=c.read(ne),f=u.read(ne);if(!Z(f)||!Z(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(!Mo(h))return;const g=h.getParent();g===null||cl(g)||s(g,h,d.anchor.offset)})})}function Lue(t,e=Qu,n,o=!1,r=!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):_g.test(p)||Wc.test(p)?(u=!u,d.push(p)):u||p===""||m===""||!m||jc.test(m)||jc.test(p)||yg.test(p)||gg.test(p)||vg.test(p)||Cue.test(p)||kue.test(p)||wue.test(p)||!l||sp.test(p)||ap.test(p)||lp(ap).test(m)||lp(sp).test(m)||Wc.test(m)?d.push(p):d[d.length-1]=m+" "+p.trimStart()}return d.join(`
52
+ `)}(t,r);return gue(e,o)(s,n)}function Iue(t=Qu,e,n=!1){return function(r,s=!1){const a=Ju(r),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=mue(h,l,u,a.textMatch);g!=null&&f.push(c&&m>0&&!Hc(h)&&!Hc(p[m-1])?`
53
53
  `.concat(g):g)}return f.join(`
54
- `)}}(t,n)(e)}var Iue=process.env.NODE_ENV==="production",rc="Invariant failed";function Pue(t,e){if(!t){if(Iue)throw new Error(rc);var n=typeof e=="function"?e():e,o=n?"".concat(rc,": ").concat(n):rc;throw new Error(o)}}const Mg=Symbol("LexicalEditor"),Fue=(()=>{const t=i.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const s=o;r();const a=e,l={tag:Ai},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:m}=a.initialConfig,h=Wle({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=Re();if(v.isEmpty()){const _=Oe();v.append(_);const k=wce?document.activeElement:null;(ne()!==null||k!==null&&k===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(()=>{Re().isEmpty()&&C(y)},l);break}}}return i.provide(Mg,h),i.onMounted(()=>{const y=a.initialConfig.editable;h.setEditable(y!==void 0?y:!0)}),(y,C)=>i.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function Gr(){const t=i.inject(Mg,null);return t||Pue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Vue(t,e){if(t==null)return{};var n=Rue(t,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Rue(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],e.indexOf(r)>=0||(n[r]=t[r]);return n}const zue=(()=>{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=i.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:r}=o;r();const s=n,a=i.useTemplateRef("root"),l=i.ref(s.editor.isEditable()),c=i.computed(()=>Vue(s,["editor"]));i.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});i.onUnmounted(f)});const u=i.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(i.openBlock(),i.createElementBlock("div",i.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 Uue(){return Re().getTextContent()}function que(t,e=!0){if(t)return!1;let n=Uue();return e&&(n=n.trim()),n===""}function Hue(t){if(!que(t,!1))return!1;const e=Re().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(Ee(r))return!1;if(z(r)){if(!cs(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!ee(c))return!1}}}return!0}function Bg(t){return()=>Hue(t)}function jue(t){return t.getEditorState().read(Bg(t.isComposing()))}function $g(t){const e=t.getEditorState().read(Bg(t.isComposing())),n=i.ref(e);function o(){const r=jue(t);n.value=r}return i.onMounted(()=>{const r=fs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function Wue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zue(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(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Wue(t,r,n[r])})}return t}function Kue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function Gue(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Kue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Yue=(()=>{const t={key:0,"aria-hidden":"true"},e=i.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:r}=o;r();const s=Gr(),a=i.ref(!1),l=$g(s);return i.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});i.onUnmounted(c)}),(c,u)=>{var d,f;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(zue),i.mergeProps({editor:i.unref(s)},Gue(Zue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),i.unref(l)?(i.openBlock(),i.createElementBlock("div",t,[i.renderSlot(c.$slots,"placeholder")])):i.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function Jue(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const s=e._selection,a=t._selection;if(r)return 1;if(!(K(s)&&K(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(C,v,_){const k=C._nodeMap,w=[];for(const b of v){const E=k.get(b);E!==void 0&&w.push(E)}for(const[b,E]of _){if(!E)continue;const T=k.get(b);T===void 0||je(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)&&ee(v)&&v.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!ee(u)||!ee(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 Xue(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(fa))return o=0,n=d,2;const f=Jue(r,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(xle);if(!h&&m&&u.has(Ai))return 0;if(r===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 k=v._nodeMap.get(C),w=_._nodeMap.get(C),b=v._selection,E=_._selection;return!(K(b)&&K(E)&&b.anchor.type==="element"&&b.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!ee(k)||!ee(w)||k.__parent!==w.__parent)&&JSON.stringify(v.read(()=>k.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],r,s)?0:1})();return n=d,o=f,p}}function cp(t){t.undoStack=[],t.redoStack=[],t.current=null}function Que(t,e,n){const o=Xue(t,n);return fs(t.registerCommand(bu,()=>(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(Bs,!0)),c.length===0&&s.dispatchCommand($s,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:fa})}}(t,e),!0),we),t.registerCommand(ku,()=>(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($s,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Bs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:fa})}}(t,e),!0),we),t.registerCommand(_le,()=>(cp(e),!1),we),t.registerCommand(Cle,()=>(cp(e),t.dispatchCommand(Bs,!1),t.dispatchCommand($s,!1),!0),we),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(Bs,!1)),d!==null&&(p.push({...d}),t.dispatchCommand($s,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function ede(){return{current:null,redoStack:[],undoStack:[]}}function tde(t,e,n){const o=i.computed(()=>i.toValue(e)||ede());i.watchEffect(r=>{const s=Que(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const nde=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return tde(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function ode(t){i.onMounted(()=>{const e=Ice(t);i.onUnmounted(()=>{e()})})}const rde=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return i.watchEffect(a=>{if(!s.hasNodes([or,bo]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Pce(s);a(l)}),ode(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function ide(t){const e=i.shallowRef(t.getDecorators());return i.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});i.onUnmounted(()=>{n()})}),i.computed(()=>{const n=[],o=Object.keys(i.unref(e));for(let r=0;r<o.length;r++){const s=o[r],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(i.h(i.Teleport,{to:l},a))}return n})}const sde=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=ide(t);return()=>e.value}});function ade(t){i.onMounted(()=>{const e=fs(tue(t),Zce(t));i.onUnmounted(e)})}const lde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=$g(r);return ade(r),(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.renderSlot(a.$slots,"placeholder",{key:0}):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"contentEditable"),i.createVNode(i.unref(sde))],64))}});return t.__vue_vine=!0,t})(),ic=[bg,kg,wg,Eg,Sg,Tg,Ng,Ag,xg],cde={class:"ao-lexical-editor__placeholder"},Og=i.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,r=n,s=i.shallowRef(null),a=i.shallowRef(null),l=i.ref("paragraph"),c=i.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),u={namespace:"AoLexicalEditor",nodes:[or,bo,sl,al],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:()=>{Oue(o.initialMarkdown||"",ic)},onError(A){console.error("Lexical error:",A)}},d=i.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:A=>!0,blockStyleChange:A=>!0,selectionChange:A=>!0},setup(A,{emit:D}){const M=Gr();let I=null,P=null;function W(){M.getEditorState().read(()=>{const R=ne();if(!K(R))return;D("selectionChange",R.clone());const q=R.anchor.getNode(),V=q.getKey()==="root"?q:q.getTopLevelElementOrThrow();if(lg(V)){const te=V.getTag();if(te==="h1"||te==="h2"||te==="h3"){D("blockStyleChange",te);return}}if(ll(V)){D("blockStyleChange","code");return}D("blockStyleChange","paragraph")})}return i.onMounted(()=>{D("ready",M),W(),P=$ue(M,ic),I=M.registerUpdateListener(()=>{W()})}),i.onUnmounted(()=>{P==null||P(),I==null||I()}),()=>null}});function f(A){s.value=A,r("ready",A)}function p(A){a.value=A}function m(A){r("keydown",A)}function h(A){const D=A.clipboardData;if(!D)return;const M=[],I=D.items;if(I){for(const P of I)if(P.kind==="file"&&P.type.startsWith("image/")){const W=P.getAsFile();if(W){const R=g(W);M.push(R)}}M.length>0&&(A.preventDefault(),r("paste",M))}}function g(A){if(A.name&&A.name.length>0&&A.name!=="image.png"&&A.name!=="screenshot.png"&&!A.name.startsWith("image-"))return A;const M=new Date,I=M.getFullYear(),P=String(M.getMonth()+1).padStart(2,"0"),W=String(M.getDate()).padStart(2,"0"),R=String(M.getHours()).padStart(2,"0"),q=String(M.getMinutes()).padStart(2,"0");let V="png";A.type==="image/jpeg"?V="jpg":A.type==="image/webp"?V="webp":A.type==="image/gif"&&(V="gif");const te=`pasted-image-${I}-${P}-${W}-${R}${q}.${V}`;return new File([A],te,{type:A.type})}function y(){a.value&&at(a.value.clone())}function C(A){const D=s.value;D&&(D.update(()=>{y(),A()}),D.focus())}function v(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"bold"),A.focus())}function _(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"italic"),A.focus())}function k(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"strikethrough"),A.focus())}function w(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"code"),A.focus())}function b(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Qh,void 0),A.focus())}function E(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(eg,void 0),A.focus())}function T(A){C(()=>{const D=ne();if(K(D)){if(D.isCollapsed()||D.focus.set(D.anchor.key,D.anchor.offset,D.anchor.type),A==="paragraph"){ec(D,()=>Oe());return}if(A==="code"){ec(D,()=>yn());return}ec(D,()=>Io(A))}}),l.value=A}function S(){const A=s.value;return A?A.getEditorState().read(()=>Lue(ic)):""}function N(){const A=s.value;A&&A.update(()=>{const D=Re();D.clear(),D.append(Oe())})}function L(){var A;(A=s.value)==null||A.focus()}return e({toggleBold:v,toggleItalic:_,toggleStrikethrough:k,toggleInlineCode:w,insertBulletList:b,insertNumberedList:E,setBlockStyle:T,getMarkdown:S,clear:N,focus:L,blockStyle:l}),(A,D)=>(i.openBlock(),i.createBlock(i.unref(Fue),{"initial-config":u},{default:i.withCtx(()=>[i.renderSlot(A.$slots,"toolbar"),i.createElementVNode("div",{class:i.normalizeClass(["ao-lexical-editor",c.value])},[i.createVNode(i.unref(lde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Yue),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:i.withCtx(()=>[i.createElementVNode("div",cde,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(nde)),i.createVNode(i.unref(rde)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:D[0]||(D[0]=M=>l.value=M),onSelectionChange:p})]),_:3}))}});function ude(t,e){const n=i.ref(""),o=i.ref(!1),r=i.ref({top:0,left:0}),s=i.ref(0),a=i.computed(()=>e.value.filter(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:Op(h)}))),l=i.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=ne();if(!K(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!ee(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();r.value={top:C.bottom-_.top+4,left:C.left-_.left}}function f(h){const g=t.value;g&&(g.update(()=>{const y=ne();if(!K(y)||!y.isCollapsed())return;const C=y.anchor.getNode();if(!ee(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 b=_-w[0].length,E=`@${h} `,T=v.slice(0,b)+E+v.slice(_);C.setTextContent(T);const S=b+E.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:r,filteredUsers:l,selectedIndex:s,selectUserMention:f,handleKeydown:p,closeMentionList:c,setupMentionTracking:m}}const dde={key:0,class:"ao-comment-editor__toolbar"},fde=["onClick"],Lg=i.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,r=n,s=i.ref(null),a=i.shallowRef(null),l=i.ref(!1),c=i.toRef(o,"mentionableUsers"),{showMentionList:u,mentionListPosition:d,filteredUsers:f,selectedIndex:p,selectUserMention:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:y}=ude(a,c);let C,v;const _=i.computed(()=>o.toolbarVisibility==="always"||l.value);i.onUnmounted(()=>{C==null||C(),v!==void 0&&window.clearTimeout(v)});function k(A){a.value=A,C==null||C(),C=y()}function w(){v!==void 0&&(window.clearTimeout(v),v=void 0),l.value||(l.value=!0,r("focus"))}function b(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{var M;v=void 0;const A=(M=a.value)==null?void 0:M.getRootElement(),D=document.activeElement;A&&D instanceof Node&&A.contains(D)||l.value&&(l.value=!1,r("blur"))},100)}function E(A){if(!h(A)){if(A.key==="Enter"&&(A.ctrlKey||A.metaKey)){A.preventDefault(),T();return}if(A.key==="Escape"){if(u.value){g();return}A.preventDefault(),S()}}}function T(){const A=s.value;if(!A)return;const D=A.getMarkdown();D.trim()&&r("submit",D)}function S(){g(),r("cancel")}function N(){var A;(A=s.value)==null||A.clear(),g()}function L(){var A;(A=s.value)==null||A.focus()}return e({submit:T,cancel:S,reset:N,focus:L}),(A,D)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(i.openBlock(),i.createElementBlock("div",dde,[i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:D[0]||(D[0]=i.withModifiers(()=>{},["prevent"])),onClick:D[1]||(D[1]=M=>{var I;return(I=s.value)==null?void 0:I.toggleBold()})},[...D[14]||(D[14]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:D[2]||(D[2]=i.withModifiers(()=>{},["prevent"])),onClick:D[3]||(D[3]=M=>{var I;return(I=s.value)==null?void 0:I.toggleItalic()})},[...D[15]||(D[15]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:D[4]||(D[4]=i.withModifiers(()=>{},["prevent"])),onClick:D[5]||(D[5]=M=>{var I;return(I=s.value)==null?void 0:I.toggleStrikethrough()})},[...D[16]||(D[16]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:D[6]||(D[6]=i.withModifiers(()=>{},["prevent"])),onClick:D[7]||(D[7]=M=>{var I;return(I=s.value)==null?void 0:I.toggleInlineCode()})},[...D[17]||(D[17]=[i.createElementVNode("span",null,"</>",-1)])],32),D[18]||(D[18]=i.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:D[8]||(D[8]=i.withModifiers(()=>{},["prevent"])),onClick:D[9]||(D[9]=M=>{var I;return(I=s.value)==null?void 0:I.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:D[10]||(D[10]=i.withModifiers(()=>{},["prevent"])),onClick:D[11]||(D[11]=M=>{var I;return(I=s.value)==null?void 0:I.insertNumberedList()})}," 1. ",32)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:b},[i.createVNode(Og,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:k,onKeydown:E},null,8,["initial-markdown","placeholder"]),i.unref(u)&&i.unref(f).length>0?(i.openBlock(),i.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:i.normalizeStyle({top:i.unref(d).top+"px",left:i.unref(d).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f),(M,I)=>(i.openBlock(),i.createElementBlock("li",{key:M.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":I===i.unref(p)}),onMousedown:D[12]||(D[12]=i.withModifiers(()=>{},["prevent"])),onClick:P=>i.unref(m)(M.name)}," @"+i.toDisplayString(M.name),43,fde))),128))],4)):i.createCommentVNode("",!0),t.showSubmitButton?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:D[13]||(D[13]=i.withModifiers(()=>{},["prevent"])),onClick:T},[i.createVNode(ye,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const pde={class:"ao-comment"},mde={class:"ao-comment__created-at"},hde={class:"ao-comment__body"},gde={class:"ao-comment__content-wrapper"},vde={key:0,class:"ao-comment__footer"},yde=i.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{const h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),s=i.ref(!1),a=i.ref(n.content),l=i.ref(null),c=i.computed(()=>{const h=n.editedAt&&Li(n.editedAt),g=Li(n.createdAt),y=new Date,C=h??g;return C&&R7(C,y)});i.watch(()=>n.content,h=>{s.value||(a.value=h)});function u(){a.value=n.content,s.value=!0,i.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 i.openBlock(),i.createElementBlock("li",pde,[i.createElementVNode("span",mde,i.toDisplayString(c.value),1),r.value?(i.openBlock(),i.createBlock(jn,{key:0,"avatar-url":(y=t.user)==null?void 0:y.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):i.createCommentVNode("",!0),i.createElementVNode("div",hde,[i.createElementVNode("div",gde,[s.value?(i.openBlock(),i.createBlock(Lg,{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"])):(i.openBlock(),i.createBlock(km,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(i.openBlock(),i.createElementBlock("div",vde,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(pe,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),i.createVNode(pe,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(pe,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(pe,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const _de={class:"ao-comments__new"},Cde={key:0,class:"ao-comments__list"},bde=i.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[...n.comments].sort((f,p)=>Dy(Li(f.createdAt),Li(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=i.ref(null);i.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=i.ref(null);function c(f){var m;if(!f.trim())return;const p=xd(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=xd(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:m})}function d(f){o("removeComment",{id:f})}return(f,p)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[i.createElementVNode("div",_de,[i.createVNode(Lg,{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"])]),r.value.length>0?(i.openBlock(),i.createElementBlock("ul",Cde,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,m=>(i.openBlock(),i.createBlock(yde,{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))])):i.createCommentVNode("",!0)],512))}});const kde=["aria-label"],wde={class:"ao-file-preview__actions"},Ede=["aria-label"],xde={key:0,class:"ao-file-preview__loading"},Sde=["src","alt"],Tde=["src","title"],Ade={key:3,class:"ao-file-preview__fallback"},Nde={class:"ao-file-preview__fallback-title"},Dde={class:"ao-file-preview__fallback-filename"},Mde=["aria-label"],Bde={key:2,class:"ao-file-preview__info"},$de=["title"],Ode={key:0,class:"ao-file-preview__info-counter"},Lde={key:3,class:"ao-file-preview__info"},Ide={class:"ao-file-preview__info-counter"},Pde=i.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){En();const n=t,o=e,r=i.ref(null),s=i.ref(!1),a=i.ref(!1);let l=0;const c=i.computed(()=>n.attachments[n.currentIndex]),u=i.computed(()=>n.currentIndex===0),d=i.computed(()=>n.currentIndex===n.attachments.length-1),f=i.computed(()=>{var N,L;return((L=(N=c.value)==null?void 0:N.mimeType)==null?void 0:L.toLowerCase())??""}),p=i.computed(()=>{var N;return((N=c.value)==null?void 0:N.name)??""}),m=i.computed(()=>{var N;return((N=p.value.split(".").pop())==null?void 0:N.toLowerCase())??""}),h=i.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),g=i.computed(()=>f.value==="application/pdf"||m.value==="pdf"),y=i.computed(()=>h.value||g.value),C=i.computed(()=>h.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function v(){r.value&&(URL.revokeObjectURL(r.value),r.value=null)}async function _(){const N=c.value,L=++l;if(v(),a.value=!1,s.value=!1,!N||!y.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const A=await n.loadPreview(N);if(L!==l)return;if(!A.size)throw new Error("Empty file received");r.value=URL.createObjectURL(A)}catch(A){if(L!==l)return;console.error("Failed to load attachment preview:",A),a.value=!0}finally{L===l&&(s.value=!1)}}function k(){u.value||o("update:currentIndex",n.currentIndex-1)}function w(){d.value||o("update:currentIndex",n.currentIndex+1)}function b(){const N=c.value;if(!(N!=null&&N.url))return;const L=document.createElement("a");L.href=N.url,L.download=N.name,L.target="_blank",L.rel="noopener noreferrer",document.body.appendChild(L),L.click(),L.remove()}function E(){v(),a.value=!0}function T(){++l,v(),o("close")}function S(N){switch(N.key){case"Escape":T();break;case"ArrowLeft":k();break;case"ArrowRight":w();break}}return i.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){T();return}_()},{immediate:!0}),i.onMounted(()=>{document.addEventListener("keydown",S)}),i.onUnmounted(()=>{++l,document.removeEventListener("keydown",S),v()}),(N,L)=>{var A,D,M,I,P,W;return i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(A=c.value)==null?void 0:A.name},[i.createElementVNode("div",wde,[i.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:i.withModifiers(b,["stop"])},[i.createVNode(ye,{name:"DownloadRounded",size:"sm"}),L[2]||(L[2]=i.createElementVNode("span",null,"Download",-1))]),i.createElementVNode("button",{type:"button",class:"ao-file-preview__action ao-file-preview__action--close",title:"Close","aria-label":"Close",onClick:i.withModifiers(T,["stop"])},[i.createVNode(ye,{name:"CloseRounded",size:"sm"})])]),i.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:T}),u.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--prev","aria-label":N.$t("activity.attachment.preview.previous"),onClick:i.withModifiers(k,["stop"])},[i.createVNode(ye,{name:"ArrowBackRounded",size:"lg"})],8,Ede)),i.createElementVNode("div",{class:"ao-file-preview__content",onClick:L[1]||(L[1]=i.withModifiers(()=>{},["stop"]))},[s.value?(i.openBlock(),i.createElementBlock("div",xde,[...L[3]||(L[3]=[i.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),i.createElementVNode("span",null,"Loading...",-1)])])):h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("img",{key:1,src:r.value,alt:(D=c.value)==null?void 0:D.name,class:"ao-file-preview__image",onError:E},null,40,Sde)):g.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:L[0]||(L[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("iframe",{src:r.value,title:(M=c.value)==null?void 0:M.name,class:"ao-file-preview__pdf"},null,8,Tde)])):(i.openBlock(),i.createElementBlock("div",Ade,[i.createVNode(ye,{name:C.value,size:"xl"},null,8,["name"]),i.createElementVNode("p",Nde,i.toDisplayString(N.$t("activity.attachment.preview.notAvailable")),1),i.createElementVNode("p",Dde,i.toDisplayString((I=c.value)==null?void 0:I.name),1),i.createVNode(pe,{variant:"solid",color:"primary",size:"sm",label:N.$t("activity.attachment.preview.download"),onClick:b},null,8,["label"])]))]),d.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--next","aria-label":N.$t("activity.attachment.preview.next"),onClick:i.withModifiers(w,["stop"])},[i.createVNode(ye,{name:"ArrowForwardRounded",size:"lg"})],8,Mde)),h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",Bde,[i.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(P=c.value)==null?void 0:P.name},i.toDisplayString((W=c.value)==null?void 0:W.name),9,$de),t.attachments.length>1?(i.openBlock(),i.createElementBlock("span",Ode,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)):i.createCommentVNode("",!0)])):t.attachments.length>1?(i.openBlock(),i.createElementBlock("div",Lde,[i.createElementVNode("span",Ide,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)])):i.createCommentVNode("",!0)],8,kde)])}}});const Ig=i.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(i.openBlock(),i.createBlock(pe,{color:t.modelValue?t.color:i.unref(Kc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),Fde=i.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 Vde={class:"toggle-wrapper"};function Rde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",Vde,[i.createElementVNode("button",{class:i.normalizeClass({button:!0,"button--left":!0,"button--inactive":!t.isLeft}),type:"button",onClick:e[0]||(e[0]=(...a)=>t.selectLeft&&t.selectLeft(...a))},i.toDisplayString(t.leftLabel),3),i.createElementVNode("button",{class:i.normalizeClass({button:!0,"button--right":!0,"button--inactive":t.isLeft}),type:"button",onClick:e[1]||(e[1]=(...a)=>t.selectRight&&t.selectRight(...a))},i.toDisplayString(t.rightLabel),3)])}const zde=re(Fde,[["render",Rde],["__scopeId","data-v-cbe33527"]]),Ude=i.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 qde=["onClick"],Hde={class:"tab-button__label"},jde={key:0,class:"tab-button__badge"};function Wde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,a=>(i.openBlock(),i.createElementBlock("button",{key:a.value,class:i.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[i.createElementVNode("span",Hde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",jde,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,qde))),128))],2)}const ps=re(Ude,[["render",Wde],["__scopeId","data-v-3d268d7b"]]),Zde={class:"ao-rich-text-editor"},Kde={class:"ao-rich-text-editor__toolbar"},Gde=["value"],Yde={class:"ao-rich-text-editor__actions"},Jde=i.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel","paste"],setup(t,{emit:e}){const n=e,o=i.ref(null);function r(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)=>(i.openBlock(),i.createElementBlock("div",Zde,[i.createVNode(Og,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:i.withCtx(()=>{var d;return[i.createElementVNode("div",Kde,[i.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:r},[...u[12]||(u[12]=[i.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),i.createElementVNode("option",{value:"h1"},"Heading 1",-1),i.createElementVNode("option",{value:"h2"},"Heading 2",-1),i.createElementVNode("option",{value:"h3"},"Heading 3",-1),i.createElementVNode("option",{value:"code"},"Code block",-1)])],40,Gde),u[17]||(u[17]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:u[0]||(u[0]=i.withModifiers(()=>{},["prevent"])),onClick:u[1]||(u[1]=f=>{var p;return(p=o.value)==null?void 0:p.toggleBold()})},[...u[13]||(u[13]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:u[2]||(u[2]=i.withModifiers(()=>{},["prevent"])),onClick:u[3]||(u[3]=f=>{var p;return(p=o.value)==null?void 0:p.toggleItalic()})},[...u[14]||(u[14]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:u[4]||(u[4]=i.withModifiers(()=>{},["prevent"])),onClick:u[5]||(u[5]=f=>{var p;return(p=o.value)==null?void 0:p.toggleStrikethrough()})},[...u[15]||(u[15]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:u[6]||(u[6]=i.withModifiers(()=>{},["prevent"])),onClick:u[7]||(u[7]=f=>{var p;return(p=o.value)==null?void 0:p.toggleInlineCode()})},[...u[16]||(u[16]=[i.createElementVNode("span",null,"</>",-1)])],32),u[18]||(u[18]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:u[8]||(u[8]=i.withModifiers(()=>{},["prevent"])),onClick:u[9]||(u[9]=f=>{var p;return(p=o.value)==null?void 0:p.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:u[10]||(u[10]=i.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"]),i.createElementVNode("div",Yde,[i.createVNode(pe,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(pe,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Xde={class:"ao-activity-details"},Qde={class:"ao-activity-details__main"},e1e={class:"ao-activity-details__header"},t1e={key:1,class:"ao-activity__category"},n1e={key:2,class:"ao-activity-details__created-by"},o1e={class:"ao-feed__activity-details__header"},r1e={key:0,class:"ao-field ao-feed__activity-details__project"},i1e={class:"ao-field__label"},s1e={key:1,class:"ao-field ao-feed__activity-details__project"},a1e={class:"ao-field__label"},l1e={class:"ao-activity-details__content"},c1e={class:"ao-activity-details__tab-content"},u1e={class:"ao-fieldset"},d1e={class:"ao-field__row"},f1e={class:"ao-activity-details__tab-content"},p1e={class:"ao-fieldset"},m1e={class:"ao-fieldset__body"},h1e={class:"ao-activity-details__tab-content"},g1e={key:0,class:"ao-fieldset"},v1e={class:"ao-activity-details__aside"},y1e={class:"ao-activity-details__close-button"},_1e={class:"ao-activity-details__aside-section"},C1e={class:"ao-field__label"},b1e={key:0,class:"ao-activity-details__aside-section"},k1e={class:"ao-field"},w1e={class:"ao-field__label"},E1e={key:1,class:"ao-activity-details__aside-section"},x1e={class:"ao-field"},S1e={class:"ao-field__label"},T1e={class:"ao-activity-details__aside-section"},A1e={class:"ao-field ao-field--multiselect"},N1e={class:"assignee-inline"},D1e={class:"ao-field__label"},M1e={class:"ao-activity-details__aside-section"},B1e={key:0,class:"ao-field__row"},$1e={class:"ao-field"},O1e={class:"ao-field__label"},L1e=["readonly"],I1e={class:"ao-activity-details__aside-section"},P1e={class:"ao-field__row"},F1e={class:"ao-field ao-field--inline"},V1e={class:"ao-field__label"},R1e=["readonly"],z1e={class:"ao-field__row"},U1e={class:"ao-field ao-field--inline"},q1e={class:"ao-field__label"},H1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},j1e={class:"ao-activity-details__aside-section"},W1e={class:"ao-fieldset ao-activity-details__aside-section"},Z1e={class:"ao-fieldset__title"},K1e={class:"ao-fieldset__body"},G1e={class:"ao-field__row"},Y1e={class:"ao-field ao-field--multiselect"},J1e={class:"ao-field__label"},X1e={class:"ao-field__row"},Q1e={class:"ao-field ao-field--multiselect"},efe={class:"ao-field__label"},Qu=i.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:()=>[]},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=En(),s=i.ref("description"),a=i.computed(()=>{var O,J;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((O=n.activity.tasks)==null?void 0:O.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((J=n.activity.comments)==null?void 0:J.length)??0}]}),l=i.computed(()=>{var O;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((O=n.activity.assignee)==null?void 0:O.id):!1}),c=i.ref(!1),u=i.ref(null),d=O=>{o("update:activity",{id:n.activity.id,name:O})},f=i.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},m=O=>{o("update:activity",{id:n.activity.id,description:O}),c.value=!1},h=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const g=i.computed({get(){return n.activity.estimation??0},set(O){o("update:activity",{id:n.activity.id,estimation:O})}}),y=i.computed({get(){var J;const O=(J=n.timeTrackingData)==null?void 0:J[n.activity.id];return(O==null?void 0:O.timeSpent)??0},set(){}}),C=i.computed(()=>{var J;return((J=n.activity.project)==null?void 0:J.estimationUnit)==="days"?"d":"h"}),v=i.computed(()=>{var J;const O=(J=n.activity.project)==null?void 0:J.estimationUnit;return Na(y.value,O)}),_=i.computed({get(){return n.activity.important??!1},set(O){o("update:activity",{id:n.activity.id,important:O})}});i.computed({get(){return n.activity.private??!1},set(O){o("update:activity",{id:n.activity.id,private:O})}});const k=i.computed({get(){return n.activity.deadline},set(O){o("update:activity",{id:n.activity.id,deadline:O})}}),w=i.computed({get(){return n.activity.activityType!=="dev"},set(O){var me;const J=O?"standard":"dev";n.activity.activityType!=="dev"&&J==="dev"&&!n.activity.devStatus&&((me=n.devStatuses)!=null&&me.length)?o("update:activity",{id:n.activity.id,type:J,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:J})}}),b=i.computed(()=>{var O;return((O=n.devStatuses)==null?void 0:O.map(J=>({value:J.id,label:J.name})))??[]}),E=i.computed({get(){var O;return(O=n.activity.devStatus)==null?void 0:O.id},set(O){o("update:activity",{id:n.activity.id,statusDevId:O})}}),T=i.computed(()=>n.templateActivities.filter(O=>O.id!==n.activity.id).map(O=>({label:O.name,value:O.id}))),S=i.computed({get(){var O;return(O=n.activity.dependingOn)==null?void 0:O.map(J=>J.id)},set(O){O&&o("update:activity",{id:n.activity.id,dependingOn:O})}}),N=i.computed(()=>T.value.map(O=>{var J;return{...O,disabled:(J=n.activity.blocking)==null?void 0:J.some(me=>me.id===O.value)}})),L=i.computed({get(){var O;return(O=n.activity.blocking)==null?void 0:O.map(J=>J.id)},set(O){O&&o("update:activity",{id:n.activity.id,blocking:O})}}),A=i.computed(()=>T.value.map(O=>{var J;return{...O,disabled:(J=n.activity.dependingOn)==null?void 0:J.some(me=>me.id===O.value)}})),D=O=>{o("addSubtask",O)},M=O=>{o("updateSubtask",O)},I=O=>{o("deleteSubtask",O)};function P(){n.userId?q.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function W(O){q.value=[O]}const R=i.computed(()=>{var J;const O=new Map;return(J=n.users)==null||J.forEach(me=>{O.has(me.id)||O.set(me.id,me)}),Array.from(O.values()).map(me=>({label:`${me.firstName} ${me.lastName}`,value:me.id,avatar:me.avatarUrl}))}),q=i.computed({get(){var O,J;return(O=n.activity.assignee)!=null&&O.id?[(J=n.activity.assignee)==null?void 0:J.id]:[]},set(O){o("update:activity",{id:n.activity.id,assigneeId:O[0]??null})}}),V=O=>{o("addFiles",{activityId:n.activity.id,files:O})},te=O=>{V(O)},oe=O=>{o("removeFile",{activityId:n.activity.id,file:O})},_e=i.computed(()=>n.projects.map(O=>({value:O.id,label:O.name}))),F=i.computed(()=>{var J,me,Me;const O=(Me=(me=(J=n.activity)==null?void 0:J.project)==null?void 0:me.phases)==null?void 0:Me.reduce((ze,ge)=>[...ze,...ge.milestones],[]);return O==null?void 0:O.map(ze=>({value:ze.id,label:ze.name}))}),j=O=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:O})},U=O=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:O})},G=i.computed(()=>{var O;return(O=n.statuses)==null?void 0:O.map(J=>({value:J.id,label:J.name}))}),ue=O=>{o("update:activity",{id:n.activity.id,statusId:O})},Ce=O=>{o("update:activity",{id:n.activity.id,statusDevId:O})},Be=O=>{o("addComment",{...O,activityId:n.activity.id})},$e=O=>{o("updateComment",O)},de=O=>{o("removeComment",O)},qe=i.computed(()=>{var O,J;return((O=n.activity.createdBy)==null?void 0:O.firstName)&&((J=n.activity.createdBy)==null?void 0:J.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),be=i.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function gt(){const O=window.location.origin,J=n.activity.slug,me=`${O}/activity-feed/slug/${J}`;navigator.clipboard.writeText(me).then(()=>{console.log(`Link copied to clipboard: ${me}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(O,J)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Ma,{onClose:J[10]||(J[10]=me=>O.$emit("close"))},{default:i.withCtx(()=>{var me,Me,ze;return[i.createElementVNode("div",Xde,[i.createElementVNode("div",Qde,[i.createElementVNode("div",e1e,[t.activity.slug?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:gt},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",t1e,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(dt,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),qe.value?(i.openBlock(),i.createElementBlock("div",n1e,i.toDisplayString(O.$t("activity.createdBy.label",{name:qe.value,date:be.value})),1)):i.createCommentVNode("",!0),i.createElementVNode("div",o1e,[_e.value?(i.openBlock(),i.createElementBlock("label",r1e,[i.createElementVNode("span",i1e,i.toDisplayString(O.$t("activity.project.label")),1),i.createVNode(Ct,{options:_e.value,value:(me=t.activity.project)==null?void 0:me.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:j},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),F.value?(i.openBlock(),i.createElementBlock("label",s1e,[i.createElementVNode("span",a1e,i.toDisplayString(O.$t("activity.milestone.label")),1),i.createVNode(Ct,{options:F.value,value:(Me=t.activity.milestone)==null?void 0:Me.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:U},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(O.$slots,"header")]),i.createElementVNode("div",l1e,[i.createVNode(ps,{modelValue:s.value,"onUpdate:modelValue":J[0]||(J[0]=ge=>s.value=ge),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",c1e,[i.createElementVNode("fieldset",u1e,[i.createElementVNode("div",d1e,[i.createVNode(W9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&!t.isTemplate&&!!t.userId,onAdd:V,onRemove:oe,onPreview:J[1]||(J[1]=ge=>u.value=ge)},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(Jde,{key:1,"initial-markdown":f.value,onSave:m,onCancel:h,onPaste:te},null,8,["initial-markdown"])):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:p},[i.createVNode(km,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",f1e,[i.createElementVNode("fieldset",p1e,[i.createElementVNode("div",m1e,[i.createVNode(O9,{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":l.value,"is-template":t.isTemplate,onAdd:D,onUpdate:M,onDelete:I},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",h1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",g1e,[i.createVNode(bde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Be,onUpdateComment:$e,onRemoveComment:de},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",v1e,[i.createElementVNode("div",y1e,[i.createVNode(ye,{name:"CloseRounded",onClick:J[2]||(J[2]=ge=>O.$emit("close"))})]),i.createElementVNode("div",_1e,[i.createElementVNode("span",C1e,i.toDisplayString(O.$t("activity.type.label")),1),i.createVNode(zde,{"is-left":w.value,"onUpdate:isLeft":J[3]||(J[3]=ge=>w.value=ge),"left-label":"Standard","right-label":"Development"},null,8,["is-left"])]),G.value?(i.openBlock(),i.createElementBlock("div",b1e,[i.createElementVNode("label",k1e,[i.createElementVNode("span",w1e,i.toDisplayString(O.$t("activity.status.label")),1),i.createVNode(Ct,{class:"ao-activity-details__multiselect",options:G.value,value:(ze=t.activity.status)==null?void 0:ze.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:ue},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),t.activity.activityType==="dev"&&b.value.length?(i.openBlock(),i.createElementBlock("div",E1e,[i.createElementVNode("label",x1e,[i.createElementVNode("span",S1e,i.toDisplayString(O.$t("activity.devStatus.label")),1),i.createVNode(Ct,{class:"ao-activity-details__multiselect",options:b.value,value:E.value,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:Ce},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",T1e,[i.createElementVNode("div",A1e,[i.createElementVNode("div",N1e,[i.createElementVNode("span",D1e,i.toDisplayString(O.$t("activity.assignee.label")),1),i.createVNode(pe,{label:O.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:P},null,8,["label"])]),i.createVNode(Ct,{modelValue:q.value,"onUpdate:modelValue":J[4]||(J[4]=ge=>q.value=ge),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:R.value,"close-on-select":!0,searchable:!0,placeholder:O.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:W},{tag:i.withCtx(({option:ge,handleTagRemove:cn})=>[i.createVNode(jn,{"user-name":ge.label,"avatar-url":ge.avatar,"is-closable":!0,onClose:Tn=>cn(ge,Tn)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",M1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",B1e,[i.createElementVNode("label",$1e,[i.createElementVNode("span",O1e,i.toDisplayString(O.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":J[5]||(J[5]=ge=>k.value=ge),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,L1e),[[i.vModelText,k.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",I1e,[i.createElementVNode("div",P1e,[i.createElementVNode("label",F1e,[i.createElementVNode("span",V1e,i.toDisplayString(O.$t("activity.estimation.label"))+" ("+i.toDisplayString(C.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":J[6]||(J[6]=ge=>g.value=ge),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,R1e),[[i.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",z1e,[i.createElementVNode("label",U1e,[i.createElementVNode("span",q1e,i.toDisplayString(O.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(C.value)+")",1),i.createElementVNode("span",H1e,i.toDisplayString(v.value),1)])])]),i.createElementVNode("div",j1e,[i.createVNode(Ig,{modelValue:_.value,"onUpdate:modelValue":J[7]||(J[7]=ge=>_.value=ge),modelModifiers:{lazy:!0},label:O.$t("activity.important.label"),disabled:!l.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),i.createElementVNode("fieldset",W1e,[i.createElementVNode("div",Z1e,[i.createVNode(ye,{name:"FlowsheetOutlineRounded"}),i.createVNode(dt,{level:4,title:O.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",K1e,[i.createElementVNode("div",G1e,[i.createElementVNode("label",Y1e,[i.createElementVNode("span",J1e,i.toDisplayString(O.$t("activity.dependingOn.label")),1),i.createVNode(Ct,{modelValue:S.value,"onUpdate:modelValue":J[8]||(J[8]=ge=>S.value=ge),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:N.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",X1e,[i.createElementVNode("label",Q1e,[i.createElementVNode("span",efe,i.toDisplayString(O.$t("activity.blocking.label")),1),i.createVNode(Ct,{modelValue:L.value,"onUpdate:modelValue":J[9]||(J[9]=ge=>L.value=ge),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:A.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(O.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(i.openBlock(),i.createBlock(Pde,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":J[11]||(J[11]=me=>u.value=me),onClose:J[12]||(J[12]=me=>u.value=null)},null,8,["attachments","current-index","load-preview"])):i.createCommentVNode("",!0)],64))}});const tfe=i.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,r=i.toRef(n.rule.itemType||Pe.ACTIVITIES),s=i.computed({get(){return r.value},set(v){r.value=v,o("update:rule",{...n.rule,itemType:v,subItemId:void 0})}}),a=i.computed(()=>Object.values(Pe)),l=i.computed({get(){return n.rule.subItemId},set(v){o("update:rule",{...n.rule,subItemId:v,itemType:n.rule.itemType||s.value})}}),c=i.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[Pe.ACTIVITIES]:n.templateActivities,[Pe.MILESTONES]:n.templateMilestones,[Pe.PHASES]:n.templatePhases}[r.value])==null?void 0:_.map(k=>({value:k.id,label:k.name}))}),u=i.toRef(n.rule.comparator),d=i.computed({get(){return u.value},set(v){o("update:rule",{...n.rule,comparator:v})}}),f=i.computed(()=>Object.values(mp)),p=i.toRef(n.rule.trigger),m=i.computed({get(){return p.value},set(v){o("update:rule",{...n.rule,trigger:v})}}),h=i.computed(()=>Object.values(hp)),g=i.computed({get(){return n.rule.duration},set(v){o("update:rule",{...n.rule,duration:v})}}),y=i.computed({get(){return n.rule.durationUnit},set(v){o("update:rule",{...n.rule,durationUnit:v})}}),C=i.computed(()=>Object.values(gp));return(v,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(no),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=k=>s.value=k),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=k=>l.value=k),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=k=>m.value=k),options:h.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=k=>d.value=k),options:f.value},null,8,["modelValue","options"]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=k=>g.value=k),type:"number",min:"0"},null,512),[[i.vModelText,g.value,void 0,{number:!0}]]),i.createVNode(i.unref(no),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=k=>y.value=k),options:C.value},null,8,["modelValue","options"]),i.createVNode(pe,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=k=>v.$emit("close"))})]),_:1}))}});const nfe={class:"ao-template-rules__body"},ofe={class:"ao-template-rules__list"},rfe=i.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},r=s=>{n("removeRule",s)};return(s,a)=>(i.openBlock(),i.createBlock(Ma,null,{header:i.withCtx(()=>[i.createVNode(dt,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",nfe,[i.createElementVNode("ul",ofe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(tfe,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),i.createVNode(vo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Uo(t,e,n){const o=t.length,r=t.at(-1),s=r?et.LexoRank.parse(r.rank).genNext():et.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const ife={key:0,class:"ao-template-details"},sfe={class:"ao-template-details__body"},afe={class:"ao-template-details__cols"},lfe={class:"ao-template-details__col"},cfe={class:"ao-list__footer"},ufe={class:"ao-template-details__col"},dfe={class:"ao-template-details__col"},Pg=i.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}=En(),o=t,r=e,s=i.computed(()=>{var R;return(R=o.templates)==null?void 0:R.find(q=>q.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var R;return(R=s.value)==null?void 0:R.phases},(R,q)=>{a.value&&Vn(R,q)});const l=i.computed(()=>{var R,q;return(q=(R=s==null?void 0:s.value)==null?void 0:R.phases)==null?void 0:q.find(V=>V.id===o.phaseId)});i.watch(()=>{var R;return(R=l.value)==null?void 0:R.milestones},(R,q)=>{a.value&&Vn(R,q)});const c=i.computed(()=>{var R,q;return(q=(R=l.value)==null?void 0:R.milestones)==null?void 0:q.find(V=>V.id===o.milestoneId)});i.watch(()=>{var R;return(R=c.value)==null?void 0:R.activities},(R,q)=>{a.value&&Vn(R,q)});const u=i.computed(()=>{var R,q;return((q=(R=s.value)==null?void 0:R.phases)==null?void 0:q.reduce((V,te)=>{const oe=te.milestones||[];return[...V,...oe]},[]))||[]}),d=i.computed(()=>{var R,q;return((q=(R=s.value)==null?void 0:R.phases)==null?void 0:q.reduce((V,te)=>{const _e=(te.milestones||[]).reduce((F,j)=>j.activities?[...F,...j.activities]:F,[]);return[...V,..._e]},[]))||[]}),f=i.computed(()=>{var R,q;return(q=(R=c.value)==null?void 0:R.activities)==null?void 0:q.find(V=>V.id===o.activityId)}),p=i.computed(()=>{var R;return((R=s.value)==null?void 0:R.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:R,rank:q}=Uo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:Pe.PHASES,templateId:o.templateId,item:{name:R,rank:q}})},h=R=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Pe.TEMPLATES,data:{name:R}})},g=R=>{r("removeItem",{itemType:Pe.PHASES,templateId:o.templateId,data:{id:R}})},y=(R,q)=>{r("updateItem",{templateId:o.templateId,id:R,itemType:Pe.PHASES,data:{name:q}})},C=R=>{r("updateItem",R)},v=R=>{if(!l.value)return;const{name:q,rank:V}=Uo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:Pe.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,item:{name:q,rank:V,phaseId:R.phaseId}})},_=R=>{r("removeItem",{itemType:Pe.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,data:{id:R.id}})},k=R=>{const{id:q,...V}=R;r("updateItem",{itemType:Pe.MILESTONES,id:q,templateId:o.templateId,data:V})},w=R=>{const{milestoneId:q}=R;if(!c.value)return;const{name:V,rank:te}=Uo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:Pe.ACTIVITIES,milestoneId:q,templateId:o.templateId,item:{name:V,rank:te,milestoneId:q}})},b=R=>{var q,V;r("removeItem",{itemType:Pe.ACTIVITIES,templateId:o.templateId,phaseId:(q=l.value)==null?void 0:q.id,milestoneId:(V=c.value)==null?void 0:V.id,data:{id:R.id}})},E=R=>{const{id:q,...V}=R;r("updateItem",{itemType:Pe.ACTIVITIES,id:q,templateId:o.templateId,data:V})},T=i.ref(!1),S=()=>{T.value=!T.value},N=()=>{r("addRule",{templateId:o.templateId})},L=R=>{r("removeRule",{id:R,templateId:o.templateId})},A=R=>{var q;if(R.moved){const V=Xi(R,((q=s.value)==null?void 0:q.phases)??[]);r("updateItem",{itemType:Pe.PHASES,id:R.moved.element.id,templateId:o.templateId,data:{rank:V}})}},D=R=>{!l.value||!c.value||!f.value||r("addItem",{type:Pe.TASKS,activityId:R.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:R})},M=R=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:Pe.TASKS,id:R.id,templateId:o.templateId,data:R})},I=R=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:Pe.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:R})},P=R=>{r("addFiles",R)},W=R=>{r("removeFile",R)};return(R,q)=>{var V,te,oe,_e,F,j;return s.value?(i.openBlock(),i.createElementBlock("div",ife,[i.createVNode(es,{"can-go-back":!0,onGoBack:q[1]||(q[1]=U=>R.$router.push({name:i.unref(Po).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(dt,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":q[0]||(q[0]=U=>{h(U)})},null,8,["title"])]),_:1}),i.createElementVNode("div",sfe,[i.createElementVNode("ol",afe,[i.createElementVNode("li",lfe,[i.createVNode(i.unref(go),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:A},{header:i.withCtx(()=>[i.createVNode(dt,{title:R.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:U})=>{var G;return[i.createVNode(X_,{id:U.id,name:U.name,milestones:U.milestones,"is-active":((G=l.value)==null?void 0:G.id)===U.id,"is-draggable":!0,onClick:ue=>R.$router.push({params:{templateId:t.templateId,phaseId:U.id}}),"onUpdate:title":ue=>{y(U.id,ue)},onRemove:()=>g(U.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",cfe,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:R.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",ufe,[l.value?(i.openBlock(),i.createBlock(tC,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(V=c.value)==null?void 0:V.id,onAddMilestone:v,onUpdateMilestone:k,onUpdatePhase:C,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):i.createCommentVNode("",!0)]),i.createElementVNode("li",dfe,[l.value&&c.value?(i.openBlock(),i.createBlock(rC,{key:0,"template-id":t.templateId,"phase-id":(te=l.value)==null?void 0:te.id,milestone:c.value,"activity-id":(oe=f.value)==null?void 0:oe.id,onAddActivity:w,onUpdateActivity:E,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):i.createCommentVNode("",!0)])])]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(Qu,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(_e=l.value)==null?void 0:_e.name} / ${(F=c.value)==null?void 0:F.name}`,"milestone-id":(j=c.value)==null?void 0:j.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,"onUpdate:activity":q[2]||(q[2]=U=>{f.value&&E(U)}),onClose:R.$router.back,onAddSubtask:D,onUpdateSubtask:M,onDeleteSubtask:I,onAddFiles:P,onRemoveFile:W},{default:i.withCtx(U=>[i.renderSlot(R.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(U)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):i.createCommentVNode("",!0)])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[T.value?(i.openBlock(),i.createBlock(rfe,{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:N,onRemoveRule:L},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const ffe={class:"ao-card__content"},pfe={key:0,class:"ao-card__header"},mfe={class:"ao-card__body"},hfe={key:1,class:"ao-card__footer"},ul=i.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:i.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:i.withCtx(()=>[t.withLeftBorder?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-card__left-border",style:i.normalizeStyle({backgroundColor:t.color})},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",ffe,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",pfe,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",mfe,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",hfe,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const dl=i.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=i.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:i.normalizeClass(["ao-progress__progress"]),style:i.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
54
+ `)}}(t,n)(e)}var Pue=process.env.NODE_ENV==="production",ic="Invariant failed";function Fue(t,e){if(!t){if(Pue)throw new Error(ic);var n=typeof e=="function"?e():e,o=n?"".concat(ic,": ").concat(n):ic;throw new Error(o)}}const Bg=Symbol("LexicalEditor"),Vue=(()=>{const t=i.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const s=o;r();const a=e,l={tag:Di},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:m}=a.initialConfig,h=Zle({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 _=Ie();v.append(_);const k=Ece?document.activeElement:null;(ne()!==null||k!==null&&k===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 i.provide(Bg,h),i.onMounted(()=>{const y=a.initialConfig.editable;h.setEditable(y!==void 0?y:!0)}),(y,C)=>i.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function Jr(){const t=i.inject(Bg,null);return t||Fue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Rue(t,e){if(t==null)return{};var n=zue(t,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function zue(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],e.indexOf(r)>=0||(n[r]=t[r]);return n}const Uue=(()=>{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=i.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:r}=o;r();const s=n,a=i.useTemplateRef("root"),l=i.ref(s.editor.isEditable()),c=i.computed(()=>Rue(s,["editor"]));i.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});i.onUnmounted(f)});const u=i.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(i.openBlock(),i.createElementBlock("div",i.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 Hue(t,e=!0){if(t)return!1;let n=que();return e&&(n=n.trim()),n===""}function jue(t){if(!Hue(t,!1))return!1;const e=ze().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(xe(r))return!1;if(R(r)){if(!us(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!X(c))return!1}}}return!0}function $g(t){return()=>jue(t)}function Wue(t){return t.getEditorState().read($g(t.isComposing()))}function Og(t){const e=t.getEditorState().read($g(t.isComposing())),n=i.ref(e);function o(){const r=Wue(t);n.value=r}return i.onMounted(()=>{const r=ps(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function Zue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kue(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(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Zue(t,r,n[r])})}return t}function Gue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function Yue(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Jue=(()=>{const t={key:0,"aria-hidden":"true"},e=i.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:r}=o;r();const s=Jr(),a=i.ref(!1),l=Og(s);return i.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});i.onUnmounted(c)}),(c,u)=>{var d,f;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(Uue),i.mergeProps({editor:i.unref(s)},Yue(Kue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),i.unref(l)?(i.openBlock(),i.createElementBlock("div",t,[i.renderSlot(c.$slots,"placeholder")])):i.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function Xue(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const s=e._selection,a=t._selection;if(r)return 1;if(!(Z(s)&&Z(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(C,v,_){const k=C._nodeMap,w=[];for(const b of v){const E=k.get(b);E!==void 0&&w.push(E)}for(const[b,E]of _){if(!E)continue;const T=k.get(b);T===void 0||je(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 Que(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(pa))return o=0,n=d,2;const f=Xue(r,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(Sle);if(!h&&m&&u.has(Di))return 0;if(r===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 k=v._nodeMap.get(C),w=_._nodeMap.get(C),b=v._selection,E=_._selection;return!(Z(b)&&Z(E)&&b.anchor.type==="element"&&b.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!X(k)||!X(w)||k.__parent!==w.__parent)&&JSON.stringify(v.read(()=>k.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],r,s)?0:1})();return n=d,o=f,p}}function up(t){t.undoStack=[],t.redoStack=[],t.current=null}function ede(t,e,n){const o=Que(t,n);return ps(t.registerCommand(ku,()=>(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($s,!0)),c.length===0&&s.dispatchCommand(Os,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:pa})}}(t,e),!0),Ee),t.registerCommand(wu,()=>(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($s,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:pa})}}(t,e),!0),Ee),t.registerCommand(Cle,()=>(up(e),!1),Ee),t.registerCommand(ble,()=>(up(e),t.dispatchCommand($s,!1),t.dispatchCommand(Os,!1),!0),Ee),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($s,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Os,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function tde(){return{current:null,redoStack:[],undoStack:[]}}function nde(t,e,n){const o=i.computed(()=>i.toValue(e)||tde());i.watchEffect(r=>{const s=ede(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const ode=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Jr();return nde(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function rde(t){i.onMounted(()=>{const e=Pce(t);i.onUnmounted(()=>{e()})})}const ide=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Jr();return i.watchEffect(a=>{if(!s.hasNodes([rr,bo]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Fce(s);a(l)}),rde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function sde(t){const e=i.shallowRef(t.getDecorators());return i.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});i.onUnmounted(()=>{n()})}),i.computed(()=>{const n=[],o=Object.keys(i.unref(e));for(let r=0;r<o.length;r++){const s=o[r],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(i.h(i.Teleport,{to:l},a))}return n})}const ade=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Jr(),e=sde(t);return()=>e.value}});function lde(t){i.onMounted(()=>{const e=ps(nue(t),Kce(t));i.onUnmounted(e)})}const cde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Jr(),s=Og(r);return lde(r),(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.renderSlot(a.$slots,"placeholder",{key:0}):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"contentEditable"),i.createVNode(i.unref(ade))],64))}});return t.__vue_vine=!0,t})(),sc=[kg,wg,Eg,xg,Tg,Ag,Dg,Ng,Sg],ude={class:"ao-lexical-editor__placeholder"},Lg=i.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,r=n,s=i.shallowRef(null),a=i.shallowRef(null),l=i.ref("paragraph"),c=i.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),u={namespace:"AoLexicalEditor",nodes:[rr,bo,al,ll],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:()=>{Lue(o.initialMarkdown||"",sc)},onError(A){console.error("Lexical error:",A)}},d=i.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:A=>!0,blockStyleChange:A=>!0,selectionChange:A=>!0},setup(A,{emit:D}){const M=Jr();let I=null,P=null;function j(){M.getEditorState().read(()=>{const V=ne();if(!Z(V))return;D("selectionChange",V.clone());const U=V.anchor.getNode(),F=U.getKey()==="root"?U:U.getTopLevelElementOrThrow();if(cg(F)){const Q=F.getTag();if(Q==="h1"||Q==="h2"||Q==="h3"){D("blockStyleChange",Q);return}}if(cl(F)){D("blockStyleChange","code");return}D("blockStyleChange","paragraph")})}return i.onMounted(()=>{D("ready",M),j(),P=Oue(M,sc),I=M.registerUpdateListener(()=>{j()})}),i.onUnmounted(()=>{P==null||P(),I==null||I()}),()=>null}});function f(A){s.value=A,r("ready",A)}function p(A){a.value=A}function m(A){r("keydown",A)}function h(A){const D=A.clipboardData;if(!D)return;const M=[],I=D.items;if(I){for(const P of I)if(P.kind==="file"&&P.type.startsWith("image/")){const j=P.getAsFile();if(j){const V=g(j);M.push(V)}}M.length>0&&(A.preventDefault(),r("paste",M))}}function g(A){if(A.name&&A.name.length>0&&A.name!=="image.png"&&A.name!=="screenshot.png"&&!A.name.startsWith("image-"))return A;const M=new Date,I=M.getFullYear(),P=String(M.getMonth()+1).padStart(2,"0"),j=String(M.getDate()).padStart(2,"0"),V=String(M.getHours()).padStart(2,"0"),U=String(M.getMinutes()).padStart(2,"0");let F="png";A.type==="image/jpeg"?F="jpg":A.type==="image/webp"?F="webp":A.type==="image/gif"&&(F="gif");const Q=`pasted-image-${I}-${P}-${j}-${V}${U}.${F}`;return new File([A],Q,{type:A.type})}function y(){a.value&&lt(a.value.clone())}function C(A){const D=s.value;D&&(D.update(()=>{y(),A()}),D.focus())}function v(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"bold"),A.focus())}function _(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"italic"),A.focus())}function k(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"strikethrough"),A.focus())}function w(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"code"),A.focus())}function b(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(eg,void 0),A.focus())}function E(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(tg,void 0),A.focus())}function T(A){C(()=>{const D=ne();if(Z(D)){if(D.isCollapsed()||D.focus.set(D.anchor.key,D.anchor.offset,D.anchor.type),A==="paragraph"){tc(D,()=>Ie());return}if(A==="code"){tc(D,()=>yn());return}tc(D,()=>Po(A))}}),l.value=A}function S(){const A=s.value;return A?A.getEditorState().read(()=>Iue(sc)):""}function N(){const A=s.value;A&&A.update(()=>{const D=ze();D.clear(),D.append(Ie())})}function L(){var A;(A=s.value)==null||A.focus()}return e({toggleBold:v,toggleItalic:_,toggleStrikethrough:k,toggleInlineCode:w,insertBulletList:b,insertNumberedList:E,setBlockStyle:T,getMarkdown:S,clear:N,focus:L,blockStyle:l}),(A,D)=>(i.openBlock(),i.createBlock(i.unref(Vue),{"initial-config":u},{default:i.withCtx(()=>[i.renderSlot(A.$slots,"toolbar"),i.createElementVNode("div",{class:i.normalizeClass(["ao-lexical-editor",c.value])},[i.createVNode(i.unref(cde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Jue),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:i.withCtx(()=>[i.createElementVNode("div",ude,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(ode)),i.createVNode(i.unref(ide)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:D[0]||(D[0]=M=>l.value=M),onSelectionChange:p})]),_:3}))}});function dde(t,e){const n=i.ref(""),o=i.ref(!1),r=i.ref({top:0,left:0}),s=i.ref(0),a=i.computed(()=>e.value.filter(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:Lp(h)}))),l=i.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=ne();if(!Z(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();r.value={top:C.bottom-_.top+4,left:C.left-_.left}}function f(h){const g=t.value;g&&(g.update(()=>{const y=ne();if(!Z(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 b=_-w[0].length,E=`@${h} `,T=v.slice(0,b)+E+v.slice(_);C.setTextContent(T);const S=b+E.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:r,filteredUsers:l,selectedIndex:s,selectUserMention:f,handleKeydown:p,closeMentionList:c,setupMentionTracking:m}}const fde={key:0,class:"ao-comment-editor__toolbar"},pde=["onClick"],Ig=i.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,r=n,s=i.ref(null),a=i.shallowRef(null),l=i.ref(!1),c=i.toRef(o,"mentionableUsers"),{showMentionList:u,mentionListPosition:d,filteredUsers:f,selectedIndex:p,selectUserMention:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:y}=dde(a,c);let C,v;const _=i.computed(()=>o.toolbarVisibility==="always"||l.value);i.onUnmounted(()=>{C==null||C(),v!==void 0&&window.clearTimeout(v)});function k(A){a.value=A,C==null||C(),C=y()}function w(){v!==void 0&&(window.clearTimeout(v),v=void 0),l.value||(l.value=!0,r("focus"))}function b(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{var M;v=void 0;const A=(M=a.value)==null?void 0:M.getRootElement(),D=document.activeElement;A&&D instanceof Node&&A.contains(D)||l.value&&(l.value=!1,r("blur"))},100)}function E(A){if(!h(A)){if(A.key==="Enter"&&(A.ctrlKey||A.metaKey)){A.preventDefault(),T();return}if(A.key==="Escape"){if(u.value){g();return}A.preventDefault(),S()}}}function T(){const A=s.value;if(!A)return;const D=A.getMarkdown();D.trim()&&r("submit",D)}function S(){g(),r("cancel")}function N(){var A;(A=s.value)==null||A.clear(),g()}function L(){var A;(A=s.value)==null||A.focus()}return e({submit:T,cancel:S,reset:N,focus:L}),(A,D)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(i.openBlock(),i.createElementBlock("div",fde,[i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:D[0]||(D[0]=i.withModifiers(()=>{},["prevent"])),onClick:D[1]||(D[1]=M=>{var I;return(I=s.value)==null?void 0:I.toggleBold()})},[...D[14]||(D[14]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:D[2]||(D[2]=i.withModifiers(()=>{},["prevent"])),onClick:D[3]||(D[3]=M=>{var I;return(I=s.value)==null?void 0:I.toggleItalic()})},[...D[15]||(D[15]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:D[4]||(D[4]=i.withModifiers(()=>{},["prevent"])),onClick:D[5]||(D[5]=M=>{var I;return(I=s.value)==null?void 0:I.toggleStrikethrough()})},[...D[16]||(D[16]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:D[6]||(D[6]=i.withModifiers(()=>{},["prevent"])),onClick:D[7]||(D[7]=M=>{var I;return(I=s.value)==null?void 0:I.toggleInlineCode()})},[...D[17]||(D[17]=[i.createElementVNode("span",null,"</>",-1)])],32),D[18]||(D[18]=i.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:D[8]||(D[8]=i.withModifiers(()=>{},["prevent"])),onClick:D[9]||(D[9]=M=>{var I;return(I=s.value)==null?void 0:I.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:D[10]||(D[10]=i.withModifiers(()=>{},["prevent"])),onClick:D[11]||(D[11]=M=>{var I;return(I=s.value)==null?void 0:I.insertNumberedList()})}," 1. ",32)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:b},[i.createVNode(Lg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:k,onKeydown:E},null,8,["initial-markdown","placeholder"]),i.unref(u)&&i.unref(f).length>0?(i.openBlock(),i.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:i.normalizeStyle({top:i.unref(d).top+"px",left:i.unref(d).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f),(M,I)=>(i.openBlock(),i.createElementBlock("li",{key:M.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":I===i.unref(p)}),onMousedown:D[12]||(D[12]=i.withModifiers(()=>{},["prevent"])),onClick:P=>i.unref(m)(M.name)}," @"+i.toDisplayString(M.name),43,pde))),128))],4)):i.createCommentVNode("",!0),t.showSubmitButton?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:D[13]||(D[13]=i.withModifiers(()=>{},["prevent"])),onClick:T},[i.createVNode(be,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const mde={class:"ao-comment"},hde={class:"ao-comment__created-at"},gde={class:"ao-comment__body"},vde={class:"ao-comment__content-wrapper"},yde={key:0,class:"ao-comment__footer"},_de=i.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{const h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),s=i.ref(!1),a=i.ref(n.content),l=i.ref(null),c=i.computed(()=>{const h=n.editedAt&&Pi(n.editedAt),g=Pi(n.createdAt),y=new Date,C=h??g;return C&&z7(C,y)});i.watch(()=>n.content,h=>{s.value||(a.value=h)});function u(){a.value=n.content,s.value=!0,i.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 i.openBlock(),i.createElementBlock("li",mde,[i.createElementVNode("span",hde,i.toDisplayString(c.value),1),r.value?(i.openBlock(),i.createBlock(jn,{key:0,"avatar-url":(y=t.user)==null?void 0:y.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):i.createCommentVNode("",!0),i.createElementVNode("div",gde,[i.createElementVNode("div",vde,[s.value?(i.openBlock(),i.createBlock(Ig,{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"])):(i.openBlock(),i.createBlock(wm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(i.openBlock(),i.createElementBlock("div",yde,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(ge,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),i.createVNode(ge,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(ge,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(ge,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const Cde={class:"ao-comments__new"},bde={key:0,class:"ao-comments__list"},kde=i.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[...n.comments].sort((f,p)=>My(Pi(f.createdAt),Pi(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=i.ref(null);i.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=i.ref(null);function c(f){var m;if(!f.trim())return;const p=Sd(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=Sd(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:m})}function d(f){o("removeComment",{id:f})}return(f,p)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[i.createElementVNode("div",Cde,[i.createVNode(Ig,{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"])]),r.value.length>0?(i.openBlock(),i.createElementBlock("ul",bde,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,m=>(i.openBlock(),i.createBlock(_de,{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))])):i.createCommentVNode("",!0)],512))}});const wde=["aria-label"],Ede={class:"ao-file-preview__actions"},xde=["aria-label"],Sde={key:0,class:"ao-file-preview__loading"},Tde=["src","alt"],Ade=["src","title"],Nde={key:3,class:"ao-file-preview__fallback"},Dde={class:"ao-file-preview__fallback-title"},Mde={class:"ao-file-preview__fallback-filename"},Bde=["aria-label"],$de={key:2,class:"ao-file-preview__info"},Ode=["title"],Lde={key:0,class:"ao-file-preview__info-counter"},Ide={key:3,class:"ao-file-preview__info"},Pde={class:"ao-file-preview__info-counter"},Fde=i.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){En();const n=t,o=e,r=i.ref(null),s=i.ref(!1),a=i.ref(!1);let l=0;const c=i.computed(()=>n.attachments[n.currentIndex]),u=i.computed(()=>n.currentIndex===0),d=i.computed(()=>n.currentIndex===n.attachments.length-1),f=i.computed(()=>{var N,L;return((L=(N=c.value)==null?void 0:N.mimeType)==null?void 0:L.toLowerCase())??""}),p=i.computed(()=>{var N;return((N=c.value)==null?void 0:N.name)??""}),m=i.computed(()=>{var N;return((N=p.value.split(".").pop())==null?void 0:N.toLowerCase())??""}),h=i.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),g=i.computed(()=>f.value==="application/pdf"||m.value==="pdf"),y=i.computed(()=>h.value||g.value),C=i.computed(()=>h.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function v(){r.value&&(URL.revokeObjectURL(r.value),r.value=null)}async function _(){const N=c.value,L=++l;if(v(),a.value=!1,s.value=!1,!N||!y.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const A=await n.loadPreview(N);if(L!==l)return;if(!A.size)throw new Error("Empty file received");r.value=URL.createObjectURL(A)}catch(A){if(L!==l)return;console.error("Failed to load attachment preview:",A),a.value=!0}finally{L===l&&(s.value=!1)}}function k(){u.value||o("update:currentIndex",n.currentIndex-1)}function w(){d.value||o("update:currentIndex",n.currentIndex+1)}function b(){const N=c.value;if(!(N!=null&&N.url))return;const L=document.createElement("a");L.href=N.url,L.download=N.name,L.target="_blank",L.rel="noopener noreferrer",document.body.appendChild(L),L.click(),L.remove()}function E(){v(),a.value=!0}function T(){++l,v(),o("close")}function S(N){switch(N.key){case"Escape":T();break;case"ArrowLeft":k();break;case"ArrowRight":w();break}}return i.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){T();return}_()},{immediate:!0}),i.onMounted(()=>{document.addEventListener("keydown",S)}),i.onUnmounted(()=>{++l,document.removeEventListener("keydown",S),v()}),(N,L)=>{var A,D,M,I,P,j;return i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(A=c.value)==null?void 0:A.name},[i.createElementVNode("div",Ede,[i.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:i.withModifiers(b,["stop"])},[i.createVNode(be,{name:"DownloadRounded",size:"sm"}),L[2]||(L[2]=i.createElementVNode("span",null,"Download",-1))]),i.createElementVNode("button",{type:"button",class:"ao-file-preview__action ao-file-preview__action--close",title:"Close","aria-label":"Close",onClick:i.withModifiers(T,["stop"])},[i.createVNode(be,{name:"CloseRounded",size:"sm"})])]),i.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:T}),u.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--prev","aria-label":N.$t("activity.attachment.preview.previous"),onClick:i.withModifiers(k,["stop"])},[i.createVNode(be,{name:"ArrowBackRounded",size:"lg"})],8,xde)),i.createElementVNode("div",{class:"ao-file-preview__content",onClick:L[1]||(L[1]=i.withModifiers(()=>{},["stop"]))},[s.value?(i.openBlock(),i.createElementBlock("div",Sde,[...L[3]||(L[3]=[i.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),i.createElementVNode("span",null,"Loading...",-1)])])):h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("img",{key:1,src:r.value,alt:(D=c.value)==null?void 0:D.name,class:"ao-file-preview__image",onError:E},null,40,Tde)):g.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:L[0]||(L[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("iframe",{src:r.value,title:(M=c.value)==null?void 0:M.name,class:"ao-file-preview__pdf"},null,8,Ade)])):(i.openBlock(),i.createElementBlock("div",Nde,[i.createVNode(be,{name:C.value,size:"xl"},null,8,["name"]),i.createElementVNode("p",Dde,i.toDisplayString(N.$t("activity.attachment.preview.notAvailable")),1),i.createElementVNode("p",Mde,i.toDisplayString((I=c.value)==null?void 0:I.name),1),i.createVNode(ge,{variant:"solid",color:"primary",size:"sm",label:N.$t("activity.attachment.preview.download"),onClick:b},null,8,["label"])]))]),d.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--next","aria-label":N.$t("activity.attachment.preview.next"),onClick:i.withModifiers(w,["stop"])},[i.createVNode(be,{name:"ArrowForwardRounded",size:"lg"})],8,Bde)),h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",$de,[i.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(P=c.value)==null?void 0:P.name},i.toDisplayString((j=c.value)==null?void 0:j.name),9,Ode),t.attachments.length>1?(i.openBlock(),i.createElementBlock("span",Lde,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)):i.createCommentVNode("",!0)])):t.attachments.length>1?(i.openBlock(),i.createElementBlock("div",Ide,[i.createElementVNode("span",Pde,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)])):i.createCommentVNode("",!0)],8,wde)])}}});const Pg=i.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(i.openBlock(),i.createBlock(ge,{color:t.modelValue?t.color:i.unref(Gc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),Vde=i.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 Rde={class:"toggle-wrapper"};function zde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",Rde,[i.createElementVNode("button",{class:i.normalizeClass({button:!0,"button--left":!0,"button--inactive":!t.isLeft}),type:"button",onClick:e[0]||(e[0]=(...a)=>t.selectLeft&&t.selectLeft(...a))},i.toDisplayString(t.leftLabel),3),i.createElementVNode("button",{class:i.normalizeClass({button:!0,"button--right":!0,"button--inactive":t.isLeft}),type:"button",onClick:e[1]||(e[1]=(...a)=>t.selectRight&&t.selectRight(...a))},i.toDisplayString(t.rightLabel),3)])}const Ude=oe(Vde,[["render",zde],["__scopeId","data-v-cbe33527"]]),qde=i.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 Hde=["onClick"],jde={class:"tab-button__label"},Wde={key:0,class:"tab-button__badge"};function Zde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,a=>(i.openBlock(),i.createElementBlock("button",{key:a.value,class:i.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[i.createElementVNode("span",jde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",Wde,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,Hde))),128))],2)}const ms=oe(qde,[["render",Zde],["__scopeId","data-v-3d268d7b"]]),Kde={class:"ao-rich-text-editor"},Gde={class:"ao-rich-text-editor__toolbar"},Yde=["value"],Jde={class:"ao-rich-text-editor__actions"},Xde=i.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel","paste"],setup(t,{emit:e}){const n=e,o=i.ref(null);function r(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)=>(i.openBlock(),i.createElementBlock("div",Kde,[i.createVNode(Lg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:i.withCtx(()=>{var d;return[i.createElementVNode("div",Gde,[i.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:r},[...u[12]||(u[12]=[i.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),i.createElementVNode("option",{value:"h1"},"Heading 1",-1),i.createElementVNode("option",{value:"h2"},"Heading 2",-1),i.createElementVNode("option",{value:"h3"},"Heading 3",-1),i.createElementVNode("option",{value:"code"},"Code block",-1)])],40,Yde),u[17]||(u[17]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:u[0]||(u[0]=i.withModifiers(()=>{},["prevent"])),onClick:u[1]||(u[1]=f=>{var p;return(p=o.value)==null?void 0:p.toggleBold()})},[...u[13]||(u[13]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:u[2]||(u[2]=i.withModifiers(()=>{},["prevent"])),onClick:u[3]||(u[3]=f=>{var p;return(p=o.value)==null?void 0:p.toggleItalic()})},[...u[14]||(u[14]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:u[4]||(u[4]=i.withModifiers(()=>{},["prevent"])),onClick:u[5]||(u[5]=f=>{var p;return(p=o.value)==null?void 0:p.toggleStrikethrough()})},[...u[15]||(u[15]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:u[6]||(u[6]=i.withModifiers(()=>{},["prevent"])),onClick:u[7]||(u[7]=f=>{var p;return(p=o.value)==null?void 0:p.toggleInlineCode()})},[...u[16]||(u[16]=[i.createElementVNode("span",null,"</>",-1)])],32),u[18]||(u[18]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:u[8]||(u[8]=i.withModifiers(()=>{},["prevent"])),onClick:u[9]||(u[9]=f=>{var p;return(p=o.value)==null?void 0:p.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:u[10]||(u[10]=i.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"]),i.createElementVNode("div",Jde,[i.createVNode(ge,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(ge,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Qde={class:"ao-activity-details"},e1e={class:"ao-activity-details__main"},t1e={class:"ao-activity-details__header"},n1e={key:1,class:"ao-activity__category"},o1e={key:2,class:"ao-activity-details__created-by"},r1e={class:"ao-feed__activity-details__header"},i1e={key:0,class:"ao-field ao-feed__activity-details__project"},s1e={class:"ao-field__label"},a1e={key:1,class:"ao-field ao-feed__activity-details__project"},l1e={class:"ao-field__label"},c1e={class:"ao-activity-details__content"},u1e={class:"ao-activity-details__tab-content"},d1e={class:"ao-fieldset"},f1e={class:"ao-field__row"},p1e={class:"ao-activity-details__tab-content"},m1e={class:"ao-fieldset"},h1e={class:"ao-fieldset__body"},g1e={class:"ao-activity-details__tab-content"},v1e={key:0,class:"ao-fieldset"},y1e={class:"ao-activity-details__aside"},_1e={class:"ao-activity-details__close-button"},C1e={class:"ao-activity-details__aside-section"},b1e={class:"ao-field__label"},k1e={key:0,class:"ao-activity-details__aside-section"},w1e={class:"ao-field"},E1e={class:"ao-field__label"},x1e={key:1,class:"ao-activity-details__aside-section"},S1e={class:"ao-field"},T1e={class:"ao-field__label"},A1e={class:"ao-activity-details__aside-section"},N1e={class:"ao-field ao-field--multiselect"},D1e={class:"assignee-inline"},M1e={class:"ao-field__label"},B1e={class:"ao-activity-details__aside-section"},$1e={key:0,class:"ao-field__row"},O1e={class:"ao-field"},L1e={class:"ao-field__label"},I1e=["readonly"],P1e={class:"ao-activity-details__aside-section"},F1e={class:"ao-field__row"},V1e={class:"ao-field ao-field--inline"},R1e={class:"ao-field__label"},z1e=["readonly"],U1e={class:"ao-field__row"},q1e={class:"ao-field ao-field--inline"},H1e={class:"ao-field__label"},j1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},W1e={class:"ao-activity-details__aside-section"},Z1e={class:"ao-fieldset ao-activity-details__aside-section"},K1e={class:"ao-fieldset__title"},G1e={class:"ao-fieldset__body"},Y1e={class:"ao-field__row"},J1e={class:"ao-field ao-field--multiselect"},X1e={class:"ao-field__label"},Q1e={class:"ao-field__row"},efe={class:"ao-field ao-field--multiselect"},tfe={class:"ao-field__label"},ed=i.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:()=>[]},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=En(),s=i.ref("description"),a=i.computed(()=>{var $,G;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:(($=n.activity.tasks)==null?void 0:$.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((G=n.activity.comments)==null?void 0:G.length)??0}]}),l=i.computed(()=>{var $;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===(($=n.activity.assignee)==null?void 0:$.id):!1}),c=i.ref(!1),u=i.ref(null),d=$=>{o("update:activity",{id:n.activity.id,name:$})},f=i.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},m=$=>{o("update:activity",{id:n.activity.id,description:$}),c.value=!1},h=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const g=i.computed({get(){return n.activity.estimation??0},set($){o("update:activity",{id:n.activity.id,estimation:$})}}),y=i.computed({get(){var G;const $=(G=n.timeTrackingData)==null?void 0:G[n.activity.id];return($==null?void 0:$.timeSpent)??0},set(){}}),C=i.computed(()=>{var G;return((G=n.activity.project)==null?void 0:G.estimationUnit)==="days"?"d":"h"}),v=i.computed(()=>{var G;const $=(G=n.activity.project)==null?void 0:G.estimationUnit;return Da(y.value,$)}),_=i.computed({get(){return n.activity.important??!1},set($){o("update:activity",{id:n.activity.id,important:$})}});i.computed({get(){return n.activity.private??!1},set($){o("update:activity",{id:n.activity.id,private:$})}});const k=i.computed({get(){return n.activity.deadline},set($){o("update:activity",{id:n.activity.id,deadline:$})}}),w=i.computed({get(){return n.activity.activityType!=="dev"},set($){var de;const G=$?"standard":"dev";n.activity.activityType!=="dev"&&G==="dev"&&!n.activity.devStatus&&((de=n.devStatuses)!=null&&de.length)?o("update:activity",{id:n.activity.id,type:G,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:G})}}),b=i.computed(()=>{var $;return(($=n.devStatuses)==null?void 0:$.map(G=>({value:G.id,label:G.name})))??[]}),E=i.computed({get(){var $;return($=n.activity.devStatus)==null?void 0:$.id},set($){o("update:activity",{id:n.activity.id,statusDevId:$})}}),T=i.computed(()=>n.templateActivities.filter($=>$.id!==n.activity.id).map($=>({label:$.name,value:$.id}))),S=i.computed({get(){var $;return($=n.activity.dependingOn)==null?void 0:$.map(G=>G.id)},set($){$&&o("update:activity",{id:n.activity.id,dependingOn:$})}}),N=i.computed(()=>T.value.map($=>{var G;return{...$,disabled:(G=n.activity.blocking)==null?void 0:G.some(de=>de.id===$.value)}})),L=i.computed({get(){var $;return($=n.activity.blocking)==null?void 0:$.map(G=>G.id)},set($){$&&o("update:activity",{id:n.activity.id,blocking:$})}}),A=i.computed(()=>T.value.map($=>{var G;return{...$,disabled:(G=n.activity.dependingOn)==null?void 0:G.some(de=>de.id===$.value)}})),D=$=>{o("addSubtask",$)},M=$=>{o("updateSubtask",$)},I=$=>{o("deleteSubtask",$)};function P(){n.userId?U.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function j($){U.value=[$]}const V=i.computed(()=>{var G;const $=new Map;return(G=n.users)==null||G.forEach(de=>{$.has(de.id)||$.set(de.id,de)}),Array.from($.values()).map(de=>({label:`${de.firstName} ${de.lastName}`,value:de.id,avatar:de.avatarUrl}))}),U=i.computed({get(){var $,G;return($=n.activity.assignee)!=null&&$.id?[(G=n.activity.assignee)==null?void 0:G.id]:[]},set($){o("update:activity",{id:n.activity.id,assigneeId:$[0]??null})}}),F=$=>{o("addFiles",{activityId:n.activity.id,files:$})},Q=$=>{F($)},ee=$=>{o("removeFile",{activityId:n.activity.id,file:$})},me=i.computed(()=>n.projects.map($=>({value:$.id,label:$.name}))),se=i.computed(()=>{var G,de,ke;const $=(ke=(de=(G=n.activity)==null?void 0:G.project)==null?void 0:de.phases)==null?void 0:ke.reduce((Me,ve)=>[...Me,...ve.milestones],[]);return $==null?void 0:$.map(Me=>({value:Me.id,label:Me.name}))}),ae=$=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:$})},z=$=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:$})},re=i.computed(()=>{var $;return($=n.statuses)==null?void 0:$.map(G=>({value:G.id,label:G.name}))}),_e=$=>{o("update:activity",{id:n.activity.id,statusId:$})},De=$=>{o("update:activity",{id:n.activity.id,statusDevId:$})},Je=$=>{o("addComment",{...$,activityId:n.activity.id})},H=$=>{o("updateComment",$)},te=$=>{o("removeComment",$)},Le=i.computed(()=>{var $,G;return(($=n.activity.createdBy)==null?void 0:$.firstName)&&((G=n.activity.createdBy)==null?void 0:G.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),le=i.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function qe(){const $=window.location.origin,G=n.activity.slug,de=`${$}/activity-feed/slug/${G}`;navigator.clipboard.writeText(de).then(()=>{console.log(`Link copied to clipboard: ${de}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return($,G)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Ba,{onClose:G[10]||(G[10]=de=>$.$emit("close"))},{default:i.withCtx(()=>{var de,ke,Me;return[i.createElementVNode("div",Qde,[i.createElementVNode("div",e1e,[i.createElementVNode("div",t1e,[t.activity.slug?(i.openBlock(),i.createBlock(Oi,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:qe},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",n1e,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(ft,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),Le.value?(i.openBlock(),i.createElementBlock("div",o1e,i.toDisplayString($.$t("activity.createdBy.label",{name:Le.value,date:le.value})),1)):i.createCommentVNode("",!0),i.createElementVNode("div",r1e,[me.value?(i.openBlock(),i.createElementBlock("label",i1e,[i.createElementVNode("span",s1e,i.toDisplayString($.$t("activity.project.label")),1),i.createVNode(Ct,{options:me.value,value:(de=t.activity.project)==null?void 0:de.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:ae},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),se.value?(i.openBlock(),i.createElementBlock("label",a1e,[i.createElementVNode("span",l1e,i.toDisplayString($.$t("activity.milestone.label")),1),i.createVNode(Ct,{options:se.value,value:(ke=t.activity.milestone)==null?void 0:ke.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:z},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot($.$slots,"header")]),i.createElementVNode("div",c1e,[i.createVNode(ms,{modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=ve=>s.value=ve),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",u1e,[i.createElementVNode("fieldset",d1e,[i.createElementVNode("div",f1e,[i.createVNode(Z9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&!t.isTemplate&&!!t.userId,onAdd:F,onRemove:ee,onPreview:G[1]||(G[1]=ve=>u.value=ve)},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(Xde,{key:1,"initial-markdown":f.value,onSave:m,onCancel:h,onPaste:Q},null,8,["initial-markdown"])):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:p},[i.createVNode(wm,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",p1e,[i.createElementVNode("fieldset",m1e,[i.createElementVNode("div",h1e,[i.createVNode(L9,{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":l.value,"is-template":t.isTemplate,onAdd:D,onUpdate:M,onDelete:I},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",g1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",v1e,[i.createVNode(kde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Je,onUpdateComment:H,onRemoveComment:te},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",y1e,[i.createElementVNode("div",_1e,[i.createVNode(be,{name:"CloseRounded",onClick:G[2]||(G[2]=ve=>$.$emit("close"))})]),i.createElementVNode("div",C1e,[i.createElementVNode("span",b1e,i.toDisplayString($.$t("activity.type.label")),1),i.createVNode(Ude,{"is-left":w.value,"onUpdate:isLeft":G[3]||(G[3]=ve=>w.value=ve),"left-label":"Standard","right-label":"Development"},null,8,["is-left"])]),re.value?(i.openBlock(),i.createElementBlock("div",k1e,[i.createElementVNode("label",w1e,[i.createElementVNode("span",E1e,i.toDisplayString($.$t("activity.status.label")),1),i.createVNode(Ct,{class:"ao-activity-details__multiselect",options:re.value,value:(Me=t.activity.status)==null?void 0:Me.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:_e},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),t.activity.activityType==="dev"&&b.value.length?(i.openBlock(),i.createElementBlock("div",x1e,[i.createElementVNode("label",S1e,[i.createElementVNode("span",T1e,i.toDisplayString($.$t("activity.devStatus.label")),1),i.createVNode(Ct,{class:"ao-activity-details__multiselect",options:b.value,value:E.value,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:De},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",A1e,[i.createElementVNode("div",N1e,[i.createElementVNode("div",D1e,[i.createElementVNode("span",M1e,i.toDisplayString($.$t("activity.assignee.label")),1),i.createVNode(ge,{label:$.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:P},null,8,["label"])]),i.createVNode(Ct,{modelValue:U.value,"onUpdate:modelValue":G[4]||(G[4]=ve=>U.value=ve),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:V.value,"close-on-select":!0,searchable:!0,placeholder:$.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:j},{tag:i.withCtx(({option:ve,handleTagRemove:cn})=>[i.createVNode(jn,{"user-name":ve.label,"avatar-url":ve.avatar,"is-closable":!0,onClose:Tn=>cn(ve,Tn)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",B1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",$1e,[i.createElementVNode("label",O1e,[i.createElementVNode("span",L1e,i.toDisplayString($.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":G[5]||(G[5]=ve=>k.value=ve),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,I1e),[[i.vModelText,k.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",P1e,[i.createElementVNode("div",F1e,[i.createElementVNode("label",V1e,[i.createElementVNode("span",R1e,i.toDisplayString($.$t("activity.estimation.label"))+" ("+i.toDisplayString(C.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":G[6]||(G[6]=ve=>g.value=ve),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,z1e),[[i.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",U1e,[i.createElementVNode("label",q1e,[i.createElementVNode("span",H1e,i.toDisplayString($.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(C.value)+")",1),i.createElementVNode("span",j1e,i.toDisplayString(v.value),1)])])]),i.createElementVNode("div",W1e,[i.createVNode(Pg,{modelValue:_.value,"onUpdate:modelValue":G[7]||(G[7]=ve=>_.value=ve),modelModifiers:{lazy:!0},label:$.$t("activity.important.label"),disabled:!l.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),i.createElementVNode("fieldset",Z1e,[i.createElementVNode("div",K1e,[i.createVNode(be,{name:"FlowsheetOutlineRounded"}),i.createVNode(ft,{level:4,title:$.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",G1e,[i.createElementVNode("div",Y1e,[i.createElementVNode("label",J1e,[i.createElementVNode("span",X1e,i.toDisplayString($.$t("activity.dependingOn.label")),1),i.createVNode(Ct,{modelValue:S.value,"onUpdate:modelValue":G[8]||(G[8]=ve=>S.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:N.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",Q1e,[i.createElementVNode("label",efe,[i.createElementVNode("span",tfe,i.toDisplayString($.$t("activity.blocking.label")),1),i.createVNode(Ct,{modelValue:L.value,"onUpdate:modelValue":G[9]||(G[9]=ve=>L.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:A.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot($.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(i.openBlock(),i.createBlock(Fde,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":G[11]||(G[11]=de=>u.value=de),onClose:G[12]||(G[12]=de=>u.value=null)},null,8,["attachments","current-index","load-preview"])):i.createCommentVNode("",!0)],64))}});const nfe=i.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,r=i.toRef(n.rule.itemType||Ve.ACTIVITIES),s=i.computed({get(){return r.value},set(v){r.value=v,o("update:rule",{...n.rule,itemType:v,subItemId:void 0})}}),a=i.computed(()=>Object.values(Ve)),l=i.computed({get(){return n.rule.subItemId},set(v){o("update:rule",{...n.rule,subItemId:v,itemType:n.rule.itemType||s.value})}}),c=i.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[Ve.ACTIVITIES]:n.templateActivities,[Ve.MILESTONES]:n.templateMilestones,[Ve.PHASES]:n.templatePhases}[r.value])==null?void 0:_.map(k=>({value:k.id,label:k.name}))}),u=i.toRef(n.rule.comparator),d=i.computed({get(){return u.value},set(v){o("update:rule",{...n.rule,comparator:v})}}),f=i.computed(()=>Object.values(hp)),p=i.toRef(n.rule.trigger),m=i.computed({get(){return p.value},set(v){o("update:rule",{...n.rule,trigger:v})}}),h=i.computed(()=>Object.values(gp)),g=i.computed({get(){return n.rule.duration},set(v){o("update:rule",{...n.rule,duration:v})}}),y=i.computed({get(){return n.rule.durationUnit},set(v){o("update:rule",{...n.rule,durationUnit:v})}}),C=i.computed(()=>Object.values(vp));return(v,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(no),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=k=>s.value=k),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=k=>l.value=k),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=k=>m.value=k),options:h.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=k=>d.value=k),options:f.value},null,8,["modelValue","options"]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=k=>g.value=k),type:"number",min:"0"},null,512),[[i.vModelText,g.value,void 0,{number:!0}]]),i.createVNode(i.unref(no),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=k=>y.value=k),options:C.value},null,8,["modelValue","options"]),i.createVNode(ge,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=k=>v.$emit("close"))})]),_:1}))}});const ofe={class:"ao-template-rules__body"},rfe={class:"ao-template-rules__list"},ife=i.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},r=s=>{n("removeRule",s)};return(s,a)=>(i.openBlock(),i.createBlock(Ba,null,{header:i.withCtx(()=>[i.createVNode(ft,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",ofe,[i.createElementVNode("ul",rfe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(nfe,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),i.createVNode(vo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function qo(t,e,n){const o=t.length,r=t.at(-1),s=r?tt.LexoRank.parse(r.rank).genNext():tt.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const sfe={key:0,class:"ao-template-details"},afe={class:"ao-template-details__body"},lfe={class:"ao-template-details__cols"},cfe={class:"ao-template-details__col"},ufe={class:"ao-list__footer"},dfe={class:"ao-template-details__col"},ffe={class:"ao-template-details__col"},Fg=i.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}=En(),o=t,r=e,s=i.computed(()=>{var V;return(V=o.templates)==null?void 0:V.find(U=>U.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var V;return(V=s.value)==null?void 0:V.phases},(V,U)=>{a.value&&Vn(V,U)});const l=i.computed(()=>{var V,U;return(U=(V=s==null?void 0:s.value)==null?void 0:V.phases)==null?void 0:U.find(F=>F.id===o.phaseId)});i.watch(()=>{var V;return(V=l.value)==null?void 0:V.milestones},(V,U)=>{a.value&&Vn(V,U)});const c=i.computed(()=>{var V,U;return(U=(V=l.value)==null?void 0:V.milestones)==null?void 0:U.find(F=>F.id===o.milestoneId)});i.watch(()=>{var V;return(V=c.value)==null?void 0:V.activities},(V,U)=>{a.value&&Vn(V,U)});const u=i.computed(()=>{var V,U;return((U=(V=s.value)==null?void 0:V.phases)==null?void 0:U.reduce((F,Q)=>{const ee=Q.milestones||[];return[...F,...ee]},[]))||[]}),d=i.computed(()=>{var V,U;return((U=(V=s.value)==null?void 0:V.phases)==null?void 0:U.reduce((F,Q)=>{const me=(Q.milestones||[]).reduce((se,ae)=>ae.activities?[...se,...ae.activities]:se,[]);return[...F,...me]},[]))||[]}),f=i.computed(()=>{var V,U;return(U=(V=c.value)==null?void 0:V.activities)==null?void 0:U.find(F=>F.id===o.activityId)}),p=i.computed(()=>{var V;return((V=s.value)==null?void 0:V.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:V,rank:U}=qo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:Ve.PHASES,templateId:o.templateId,item:{name:V,rank:U}})},h=V=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Ve.TEMPLATES,data:{name:V}})},g=V=>{r("removeItem",{itemType:Ve.PHASES,templateId:o.templateId,data:{id:V}})},y=(V,U)=>{r("updateItem",{templateId:o.templateId,id:V,itemType:Ve.PHASES,data:{name:U}})},C=V=>{r("updateItem",V)},v=V=>{if(!l.value)return;const{name:U,rank:F}=qo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:Ve.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,item:{name:U,rank:F,phaseId:V.phaseId}})},_=V=>{r("removeItem",{itemType:Ve.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,data:{id:V.id}})},k=V=>{const{id:U,...F}=V;r("updateItem",{itemType:Ve.MILESTONES,id:U,templateId:o.templateId,data:F})},w=V=>{const{milestoneId:U}=V;if(!c.value)return;const{name:F,rank:Q}=qo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:Ve.ACTIVITIES,milestoneId:U,templateId:o.templateId,item:{name:F,rank:Q,milestoneId:U}})},b=V=>{var U,F;r("removeItem",{itemType:Ve.ACTIVITIES,templateId:o.templateId,phaseId:(U=l.value)==null?void 0:U.id,milestoneId:(F=c.value)==null?void 0:F.id,data:{id:V.id}})},E=V=>{const{id:U,...F}=V;r("updateItem",{itemType:Ve.ACTIVITIES,id:U,templateId:o.templateId,data:F})},T=i.ref(!1),S=()=>{T.value=!T.value},N=()=>{r("addRule",{templateId:o.templateId})},L=V=>{r("removeRule",{id:V,templateId:o.templateId})},A=V=>{var U;if(V.moved){const F=Qi(V,((U=s.value)==null?void 0:U.phases)??[]);r("updateItem",{itemType:Ve.PHASES,id:V.moved.element.id,templateId:o.templateId,data:{rank:F}})}},D=V=>{!l.value||!c.value||!f.value||r("addItem",{type:Ve.TASKS,activityId:V.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:V})},M=V=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:Ve.TASKS,id:V.id,templateId:o.templateId,data:V})},I=V=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:Ve.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:V})},P=V=>{r("addFiles",V)},j=V=>{r("removeFile",V)};return(V,U)=>{var F,Q,ee,me,se,ae;return s.value?(i.openBlock(),i.createElementBlock("div",sfe,[i.createVNode(ts,{"can-go-back":!0,onGoBack:U[1]||(U[1]=z=>V.$router.push({name:i.unref(Fo).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(ft,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":U[0]||(U[0]=z=>{h(z)})},null,8,["title"])]),_:1}),i.createElementVNode("div",afe,[i.createElementVNode("ol",lfe,[i.createElementVNode("li",cfe,[i.createVNode(i.unref(go),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:A},{header:i.withCtx(()=>[i.createVNode(ft,{title:V.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:z})=>{var re;return[i.createVNode(Q_,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((re=l.value)==null?void 0:re.id)===z.id,"is-draggable":!0,onClick:_e=>V.$router.push({params:{templateId:t.templateId,phaseId:z.id}}),"onUpdate:title":_e=>{y(z.id,_e)},onRemove:()=>g(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",ufe,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:V.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",dfe,[l.value?(i.openBlock(),i.createBlock(nC,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(F=c.value)==null?void 0:F.id,onAddMilestone:v,onUpdateMilestone:k,onUpdatePhase:C,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):i.createCommentVNode("",!0)]),i.createElementVNode("li",ffe,[l.value&&c.value?(i.openBlock(),i.createBlock(iC,{key:0,"template-id":t.templateId,"phase-id":(Q=l.value)==null?void 0:Q.id,milestone:c.value,"activity-id":(ee=f.value)==null?void 0:ee.id,onAddActivity:w,onUpdateActivity:E,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):i.createCommentVNode("",!0)])])]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(ed,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(me=l.value)==null?void 0:me.name} / ${(se=c.value)==null?void 0:se.name}`,"milestone-id":(ae=c.value)==null?void 0:ae.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,"onUpdate:activity":U[2]||(U[2]=z=>{f.value&&E(z)}),onClose:V.$router.back,onAddSubtask:D,onUpdateSubtask:M,onDeleteSubtask:I,onAddFiles:P,onRemoveFile:j},{default:i.withCtx(z=>[i.renderSlot(V.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(z)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):i.createCommentVNode("",!0)])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[T.value?(i.openBlock(),i.createBlock(ife,{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:N,onRemoveRule:L},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const pfe={class:"ao-card__content"},mfe={key:0,class:"ao-card__header"},hfe={class:"ao-card__body"},gfe={key:1,class:"ao-card__footer"},dl=i.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:i.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:i.withCtx(()=>[t.withLeftBorder?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-card__left-border",style:i.normalizeStyle({backgroundColor:t.color})},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",pfe,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",mfe,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",hfe,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",gfe,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const fl=i.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=i.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:i.normalizeClass(["ao-progress__progress"]),style:i.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 Ao(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=vfe(t):/rgb/.test(t)?e=up(t):typeof t=="string"?e=up(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:r,a:s}=e,{h:a,s:l,v:c}=yfe(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function ed(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 Wc(t,e,n,o,r,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,r),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function gfe({r:t,g:e,b:n},o){const r=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${r(t)}${r(e)}${r(n)}`;return o?s.toUpperCase():s}function vfe(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 up(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 yfe({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),r=Math.min(t,e,n),s=o-r;let a=0;o===r?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-r/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var td=i.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),Wc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Wc("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"),r=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})};r(t);const s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}}});const _fe={ref:"canvasSaturation"};function Cfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[i.createVNode("canvas",_fe,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}td.render=Cfe;td.__file="src/color/Saturation.vue";var nd=i.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 r=o.createLinearGradient(0,0,0,n);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),o.fillStyle=r,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 r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const bfe={ref:"canvasHue"};function kfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[i.createVNode("canvas",bfe,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}nd.render=kfe;nd.__file="src/color/Hue.vue";var od=i.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,r=ed(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),Wc("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=r=>{let s=r.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 wfe={ref:"canvasAlpha"};function Efe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[i.createVNode("canvas",wfe,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}od.render=Efe;od.__file="src/color/Alpha.vue";var rd=i.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,r=ed(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function xfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}rd.render=xfe;rd.__file="src/color/Preview.vue";var id=i.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:r,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-r,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:r,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-r,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 Sfe=i.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),Tfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Afe=i.createVNode("g",{fill:"none","fill-rule":"evenodd"},[i.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[i.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),i.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[i.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function Nfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[t.isSucking?i.createCommentVNode("v-if",!0):(i.openBlock(),i.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))},[Sfe],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",Tfe,[Afe])):i.createCommentVNode("v-if",!0)])}id.render=Nfe;id.__file="src/color/Sucker.vue";var sd=i.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:i.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const Dfe={class:"color-type"},Mfe={class:"name"};function Bfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",Dfe,[i.createVNode("span",Mfe,i.toDisplayString(t.name),1),i.withDirectives(i.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),[[i.vModelText,t.modelColor]])])}sd.render=Bfe;sd.__file="src/color/Box.vue";var ad=i.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=i.ref(),o=i.ref([]),r=i.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),r.value=ed(4).toDataURL(),i.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:r,selectColor:a}}});const $fe={class:"colors"},Ofe={key:0,class:"colors history"};function Lfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",$fe,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsDefault,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(i.openBlock(),i.createBlock("ul",Ofe,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsHistory,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):i.createCommentVNode("v-if",!0)])}ad.render=Lfe;ad.__file="src/color/Colors.vue";var Tr=i.defineComponent({components:{Saturation:td,Hue:nd,Alpha:od,Preview:rd,Sucker:id,Box:sd,Colors:ad},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 gfe(this.rgba,!0)}},created(){Object.assign(this,Ao(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:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,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:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,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:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Ife={class:"color-set"};function Pfe(t,e,n,o,r,s){const a=i.resolveComponent("Saturation"),l=i.resolveComponent("Hue"),c=i.resolveComponent("Alpha"),u=i.resolveComponent("Preview"),d=i.resolveComponent("Sucker"),f=i.resolveComponent("Box"),p=i.resolveComponent("Colors");return i.openBlock(),i.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[i.createVNode("div",Ife,[i.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),i.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),i.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"])]),i.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[i.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?i.createCommentVNode("v-if",!0):(i.openBlock(),i.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),i.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.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"]),i.createCommentVNode(" custom options "),i.renderSlot(t.$slots,"default")],6)}Tr.render=Pfe;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const Ffe={class:"color-picker-wrapper"},fl=i.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null),a=i.ref(null),l=i.ref(0),c=i.ref(0),u=async h=>{a.value=h,r.value=!0,await i.nextTick();const g=h.getBoundingClientRect(),y=s.value,C=(y==null?void 0:y.offsetHeight)||300,v=window.innerHeight-g.bottom,_=g.top,k=v<C&&_>C;console.log("pickerHeight = "+C),l.value=k?g.top-C-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=i.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)&&(r.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};i.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),i.watch(()=>n.color,h=>{r.value||(p.value=h)});const p=i.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)=>(i.openBlock(),i.createElementBlock("div",Ffe,[i.renderSlot(h.$slots,"clickable",{openPicker:u,bgColor:t.color}),r.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:i.normalizeStyle(d.value)},[i.createVNode(i.unref(Tr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const Vfe={class:"ao-card-project-phase__header"},Rfe={class:"ao-card-project-item__title-line"},zfe={key:0,class:"ao-card-project-item-phase__estimation"},Ufe={class:"ao-card-project-phase__footer"},qfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},Hfe={class:"ao-card-project-phase__subitem"},jfe={class:"ao-card-project-phase__subitem"},Wfe={key:0,class:"ao-card-project-phase__secondary"},Zfe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Kfe=i.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,r=g=>{o("update:title",g)},s=i.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((_,k)=>_+(k.estimation||0),0))},0))||0}),a=i.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 k=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Na(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=i.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)=>(i.openBlock(),i.createBlock(fl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(ul,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Rfe,[i.createVNode(dt,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",zfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Ufe,[u.value?(i.openBlock(),i.createElementBlock("div",qfe,[i.createElementVNode("div",Hfe,[i.createVNode(ye,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",jfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(dl,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Wfe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.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)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",Zfe,i.toDisplayString(i.unref(Da)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Vfe,[i.createVNode(pe,{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]=i.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 Gfe=i.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("span",{class:"aoBadge",style:i.normalizeStyle({backgroundColor:t.color})},null,4))}});const Yfe={class:"ao-card-project-milestone__default"},Jfe={class:"ao-title-with-badge-wrapper"},Xfe={class:"ao-card-project-item__title-line"},Qfe={key:0,class:"ao-card-project-item-milestone__estimation"},epe={key:0,class:"ao-card-project-milestone__archive"},tpe={class:"ao-card-project-milestone__activities"},npe={class:"ao-card-project-milestone__activities-row"},ope={class:"ao-card-project-milestone__subitem"},rpe={class:"ao-card-project-milestone__subitem"},ipe={key:1,class:"ao-card-project-milestone__secondary"},spe={class:"ao-card-project-milestone__footer"},ape={key:1,class:"ao-field ao-card-project-milestone__deadline"},lpe={class:"ao-field__label"},cpe={key:2,class:"ao-card-project-milestone__assignee"},upe=i.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,r=i.computed(()=>{var p;return((p=n.activities)==null?void 0:p.reduce((m,h)=>m+(h.estimation||0),0))||0}),s=i.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=i.computed(()=>n.estimationUnit==="days"?"d":"h"),l=i.computed(()=>Na(s.value,n.estimationUnit));i.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(m=>Yc(m,n.closedStatus)).length}),d=i.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,m)=>(i.openBlock(),i.createBlock(ul,{class:i.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:i.withCtx(()=>[i.createElementVNode("div",Yfe,[i.createElementVNode("div",Jfe,[i.createVNode(Gfe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",Xfe,[i.createVNode(dt,{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"]),r.value||s.value?(i.openBlock(),i.createElementBlock("span",Qfe," ("+i.toDisplayString(l.value)+"/"+i.toDisplayString(r.value)+i.toDisplayString(a.value)+")",1)):i.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(i.openBlock(),i.createElementBlock("div",epe,[i.createVNode(pe,{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]=i.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",tpe,[i.createElementVNode("div",npe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",ope,[i.createVNode(ye,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",rpe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(dl,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):i.createCommentVNode("",!0),p.$slots.secondary?(i.openBlock(),i.createElementBlock("div",ipe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",spe,[t.important?(i.openBlock(),i.createBlock(ye,{key:0,name:"FlagRounded",class:i.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):i.createCommentVNode("",!0),t.deadline?(i.openBlock(),i.createElementBlock("label",ape,[i.createElementVNode("span",lpe,i.toDisplayString(i.unref(Da)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",cpe,[i.createVNode(jn,{"user-name":i.unref($p)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):i.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const dpe={class:"ao-mapping-card-project-phase__header"},fpe={class:"ao-card-project-item__title-line"},ppe={key:0,class:"ao-card-project-item-phase__estimation"},mpe={class:"ao-mapping-card-project-phase__footer"},hpe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},gpe={class:"ao-mapping-card-project-phase__subitem"},vpe={class:"ao-mapping-card-project-phase__subitem"},ype={key:0,class:"ao-mapping-card-project-phase__secondary"},_pe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Cpe=i.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,r=g=>{o("update:title",g)},s=i.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((_,k)=>_+(k.estimation||0),0))},0))||0}),a=i.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 k=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Na(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=i.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)=>(i.openBlock(),i.createBlock(fl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(ul,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",fpe,[i.createVNode(dt,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",ppe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",mpe,[u.value?(i.openBlock(),i.createElementBlock("div",hpe,[i.createElementVNode("div",gpe,[i.createVNode(ye,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",vpe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(dl,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",ype,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.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)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",_pe,i.toDisplayString(i.unref(Da)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",dpe,[i.createVNode(pe,{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]=i.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 bpe={class:"ao-project-phase"},kpe={key:0,class:"ao-project-phase__drag ao-card__drag"},wpe={key:1,class:"ao-project-phase__col-phase"},Epe={key:2,class:"ao-mapping-project-phase__col-phase"},xpe={key:0,class:"ao-project-phase__col-milestones"},Spe=["title"],Tpe={class:"ao-project-phase__milestones-list-footer"},Ape=i.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e;i.watch(()=>o.phase.milestones,(w,b)=>{Vn(w,b)});const s=w=>{r("updatePhase",{id:o.phase.id,name:w})},a=w=>{r("updatePhase",{id:o.phase.id,deadline:w})},l=w=>{r("updatePhase",w)},c=i.computed(()=>o.phase.milestones.map(w=>g_(w,o.closedStatus))),u=w=>{const{name:b,rank:E}=Uo(c.value??[],"milestone",n);r("addMilestone",{name:b,rank:E,phaseId:w})},d=w=>{const b=n("template.defaultName.milestone",{idx:1}),E=Qi(c.value??[]);r("addMilestone",{name:b,rank:E,phaseId:w})},f=w=>{r("updateMilestone",w)},p=w=>{r("archiveMilestone",w)},m=w=>{r("unarchiveMilestone",w)},h=w=>{r("archivePhase",w)},g=w=>{r("unarchivePhase",w)},y=w=>{"added"in w?r("updateMilestone",{id:w.added.element.id,phaseId:o.phase.id,rank:Ar(c.value,w.added.newIndex)}):"removed"in w||"moved"in w&&r("updateMilestone",{id:w.moved.element.id,rank:Ar(c.value,w.moved.newIndex)})},C=Ki.useRoute(),v=i.computed(()=>C.path.includes("/mapping")),_=i.computed(()=>{var w;return o.phase.id===((w=C.params)==null?void 0:w.phaseId)});i.ref(!1);const k=i.computed(()=>{var w;return o.phase.id!==((w=C.params)==null?void 0:w.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:y_(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(w,b)=>(i.openBlock(),i.createElementBlock("li",bpe,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",kpe,[i.createVNode(ye,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),v.value?(i.openBlock(),i.createElementBlock("div",Epe,[i.createVNode(Cpe,{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"])])):(i.openBlock(),i.createElementBlock("div",wpe,[i.createVNode(Kfe,{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),v.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",xpe,[i.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-project-phase__milestone-quick-add",{"ao-project-phase__milestone-quick-add--visible":_.value}]),title:w.$t("project.milestone.add"),onClick:b[0]||(b[0]=()=>d(t.phase.id))},[i.createVNode(ye,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],10,Spe)):i.createCommentVNode("",!0),i.createVNode(i.unref(go),i.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},w.$attrs,{onChange:y}),{item:i.withCtx(({element:E})=>{var T;return[i.createVNode(upe,{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===((T=w.$route.params)==null?void 0:T.milestoneId),assignee:E.assignee,important:E.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:i.normalizeClass(["ao-project-phase__milestone"]),onClick:S=>!t.readonly&&w.$router.push({name:i.unref(Fe).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"]),i.createElementVNode("div",Tpe,[t.isEditable?(i.openBlock(),i.createBlock(vo,{key:0,label:w.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:b[1]||(b[1]=()=>u(t.phase.id))},null,8,["label"])):i.createCommentVNode("",!0)])],4)]))]))}});const Npe={class:"ao-project__phases"},Dpe={key:0,class:"ao-project-phase__phases-list-footer"},Mpe={class:"ao-project-phase__col-phase"},ld=i.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;i.watch(()=>n.phases,(m,h)=>{Vn(m,h)});const r=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=Xi(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)=>(i.openBlock(),i.createElementBlock("div",Npe,[i.createVNode(i.unref(go),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:i.withCtx(({element:g})=>[i.createVNode(Ape,{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:r,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?(i.openBlock(),i.createElementBlock("div",Dpe,[h[0]||(h[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",Mpe,[i.createVNode(vo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),h[1]||(h[1]=i.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):i.createCommentVNode("",!0)]))}});const Bpe={class:"ao-add-template-modal__form-body"},$pe={class:"field__row"},Ope={class:"ao-add-template-modal__form-footer"},Fg=i.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=i.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(i.openBlock(),i.createBlock(Ma,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(dt,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:i.withModifiers(l,["prevent"])},[i.createElementVNode("p",null,i.toDisplayString(c.$t("project.template.apply.notice")),1),i.createElementVNode("div",Bpe,[i.createElementVNode("div",$pe,[i.createVNode(Ct,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",Ope,[i.createVNode(pe,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Lpe={class:"ao-save-template-modal__form-body"},Ipe={class:"field__row"},Ppe={class:"ao-field ao-field--inline"},Fpe={class:"ao-field__label"},Vpe={class:"ao-save-template-modal__phases"},Rpe={class:"ao-field__label"},zpe={class:"ao-save-template-modal__phases-list"},Upe=["value"],qpe={class:"ao-save-template-modal__form-footer"},Vg=i.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(""),s=i.ref([]);i.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{r.value&&o("save",r.value,s.value)};return(l,c)=>(i.openBlock(),i.createBlock(Ma,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(dt,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:i.withModifiers(a,["prevent"])},[i.createElementVNode("div",Lpe,[i.createElementVNode("div",Ipe,[i.createElementVNode("label",Ppe,[i.createElementVNode("span",Fpe,i.toDisplayString(l.$t("project.template.name.label"))+": ",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u),type:"text"},null,512),[[i.vModelText,r.value]])])]),i.createElementVNode("div",Vpe,[i.createElementVNode("div",Rpe,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",zpe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.phases,u=>(i.openBlock(),i.createElementBlock("label",{key:u.id,class:"ao-field ao-field--checkbox"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),type:"checkbox",value:u.id},null,8,Upe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",qpe,[i.createVNode(pe,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const Hpe={class:"ao-project"},jpe={class:"ao-project__body"},Wpe=i.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(V=>V.milestones)),a=()=>{const{name:V,rank:te}=Uo(o.phases,"phase",n);r("addPhase",{name:V,rank:te,projectId:o.project.id})},l=()=>{const V=n("template.defaultName.phase",{idx:1}),te=Qi(o.phases);r("addPhase",{name:V,rank:te,projectId:o.project.id})},c=V=>{r("updatePhase",V)},u=V=>{r("archivePhase",V)},d=V=>{r("unarchivePhase",V)},f=V=>{r("copyPhaseToTemplate",V)},p=V=>{r("addMilestone",V)},m=V=>{r("updateMilestone",V)},h=V=>{r("archiveMilestone",V)},g=V=>{r("unarchiveMilestone",V)},y=V=>{r("addActivity",V)},C=V=>{r("update:activity",V)},v=V=>{r("archiveActivity",V)},_=V=>{r("unarchiveActivity",V)},k=V=>{r("addSubtask",V)},w=V=>{r("updateSubtask",V)},b=V=>{r("deleteSubtask",V)},E=i.computed(()=>s.value.flatMap(V=>V.activities)),T=V=>{r("addFiles",V)},S=V=>{r("removeFile",V)},N=V=>{r("addComment",V)},L=V=>{r("updateComment",V)},A=V=>{r("removeComment",V)},D=i.ref(!1),M=i.ref(!1),I=(V,te)=>{r("applyTemplate",{templateId:V,projectId:te}),D.value=!1},P=(V,te)=>{var F;const oe=(F=o.templates)==null?void 0:F.at(-1),_e=oe?et.LexoRank.parse(oe.rank).genNext():et.LexoRank.middle();r("saveTemplate",{templateName:V,rank:_e.format(),phaseIds:te}),M.value=!1},W=Ki.useRouter(),R=i.ref("overview"),q=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(R,V=>{V==="feed"?(W.push({name:Fe.feed}),console.log("Navigating to feed...")):V==="dev"?(W.push({name:Fe.dev}),console.log("Navigating to dev...")):V==="overview"?(W.push({name:Fe.project}),console.log("Navigating to feed...")):V==="mapping"&&(W.push({name:Fe.mapping}),console.log("Navigating to feed..."))}),(V,te)=>{var _e;const oe=i.resolveComponent("RouterView");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-overview"},V.$attrs),[i.createElementVNode("div",Hpe,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createVNode(ps,{modelValue:R.value,"onUpdate:modelValue":te[0]||(te[0]=F=>R.value=F),tabs:q},null,8,["modelValue"]),i.createVNode(pe,{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:te[1]||(te[1]=F=>V.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(pe,{key:0,class:"ao-project-overview__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("project.phase.add"),onClick:l},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(pe,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:V.$t("project.template.save.label"),onClick:te[2]||(te[2]=F=>M.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(pe,{key:2,class:"ao-project-overview__add-template",color:"primary",label:V.$t("project.template.apply.label"),onClick:te[3]||(te[3]=F=>D.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",jpe,[i.createVNode(ld,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(_e=t.project)==null?void 0:_e.estimationUnit,onAddMilestone:p,onUpdateMilestone:m,onArchiveMilestone:h,onUnarchiveMilestone:g,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),i.createVNode(oe,{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:te[4]||(te[4]=F=>V.$router.push({name:i.unref(Fe).project})),onUpdateMilestone:m,onAddActivity:y,onUpdateActivity:C,onArchiveActivity:v,onUnarchiveActivity:_},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(oe,{name:"modal",activities:E.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,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":C,onAddSubtask:k,onUpdateSubtask:w,onDeleteSubtask:b,onAddFiles:T,onRemoveFile:S,onAddComment:N,onUpdateComment:L,onRemoveComment:A},{default:i.withCtx(({Component:F})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(F),null,{default:i.withCtx(j=>[i.renderSlot(V.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(j)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data","load-attachment-preview"])]))],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[M.value?(i.openBlock(),i.createBlock(Vg,{key:0,phases:t.phases,onClose:te[5]||(te[5]=F=>M.value=!1),onSave:P},null,8,["phases"])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createBlock(Fg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:te[6]||(te[6]=F=>D.value=!1),onApply:I},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Zpe={class:"ao-card-feed__header"},Kpe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Gpe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},Ype={class:"ao-card-feed__body"},Jpe={key:0,class:"ao-card-feed__breadcrumbs"},Xpe={class:i.normalizeClass(["ao-card-feed__title-group"])},Qpe={class:"ao-card-feed__title-line"},eme={key:0,class:"ao-card-feed__slug"},tme={key:1,class:"ao-card-feed__deadline"},nme={class:"ao-card-feed__footer"},ome={class:"ao-card-feed__footer-row"},rme={class:"ao-assignees"},ime={key:0,class:"ao-assignee"},sme={key:0,class:"ao-card-feed__subitems"},ame={key:0,class:"ao-card-feed__subitem"},lme={class:"ao-card-feed__subitem"},cme={key:1,class:"ao-card-feed__subitem"},ume={class:"ao-card-feed__subitem"},dme={class:"ao-card-feed__timer-wrapper"},fme={class:"ao-card-feed__footer-row"},pme={key:0,class:"ao-card-feed__progress-wrapper"},mme={class:"ao-card-feed__subitem"},hme={class:"ao-card-feed__subitem"},cd=i.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{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,r=i.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=i.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=g=>{o("updateActivity",{id:n.id,name:g})},l=i.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=i.computed(()=>n.assignee?[n.assignee]:[]),u=i.computed(()=>Da(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=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),m=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),h=i.computed(()=>(m.value||0)/(p.value||1));return(g,y)=>(i.openBlock(),i.createBlock(ul,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",Zpe,[r.value?(i.openBlock(),i.createBlock(Bi,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):i.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(i.openBlock(),i.createElementBlock("div",Kpe,[t.isPrivate?(i.openBlock(),i.createBlock(ye,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(ye,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(ye,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Gpe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",Ype,[l.value?(i.openBlock(),i.createElementBlock("span",Jpe,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Xpe,[i.createElementVNode("div",Qpe,[t.slug?(i.openBlock(),i.createElementBlock("span",eme,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(dt,{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?(i.openBlock(),i.createElementBlock("span",tme,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",nme,[i.createElementVNode("div",ome,[i.createElementVNode("ul",rme,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,C=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C.id},[C?(i.openBlock(),i.createElementBlock("li",ime,[i.createVNode(jn,{"user-name":i.unref($p)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):i.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(i.openBlock(),i.createElementBlock("ul",sme,[t.comments?(i.openBlock(),i.createElementBlock("li",ame,[i.createVNode(ye,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",lme,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",cme,[i.createVNode(ye,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",ume,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",dme,[i.createVNode(ye,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",fme,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",pme,[i.createElementVNode("div",mme,[i.createVNode(ye,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",hme,i.toDisplayString(m.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(dl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const gme={class:"ao-project-milestone"},vme={class:"ao-project-milestone__header"},yme={class:"ao-project-milestone__header_line"},_me={class:"ao-project-milestone__header_line"},Cme={class:"ao-project-milestone__title"},bme={key:0,class:"ao-fieldset ao-milestone__fieldset"},kme={class:"ao-field__row ao-milestone__field-row"},wme={class:"ao-field ao-field--inline"},Eme={class:"ao-field__row ao-milestone__field-row"},xme={class:"ao-field ao-milestone__field-multiselect"},Sme={class:"ao-milestone__color-actions"},Tme=["onClick"],Ame=["title"],Nme={class:"ao-project-milestone__body"},Dme={key:0,class:"ao-project-milestone__footer"},dp=i.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e,s=b=>{var E;r("startTimer",b),(E=window.parent)==null||E.postMessage({type:"startTimer",data:b},"*")},a=i.computed(()=>{var b;return(b=o.phases)==null?void 0:b.find(E=>E.id===o.phaseId)}),l=i.computed(()=>{var b;return(b=o.phases)==null?void 0:b.flatMap(E=>E.milestones)}),c=i.computed(()=>{var b;return(b=l.value)==null?void 0:b.find(E=>E.id===o.milestoneId)}),u=i.computed(()=>{var b;return(b=c.value)==null?void 0:b.activities});i.watch(u,(b,E)=>{Vn(b,E)});const d=b=>{r("close",b)},f=()=>{const{name:b,rank:E}=Uo(u.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:b,rank:E,projectId:o.projectId})},p=()=>{const b=n("template.defaultName.activity",{idx:1}),E=Qi(u.value??[]);r("addActivity",{milestoneId:o.milestoneId,name:b,rank:E,projectId:o.projectId})},m=b=>{r("updateActivity",b)},h=b=>{u.value&&"moved"in b&&r("updateActivity",{id:b.moved.element.id,rank:Ar(u.value,b.moved.newIndex)})},g=i.computed({get:()=>{var b;return(b=c.value)==null?void 0:b.color},set:b=>{c.value&&r("updateMilestone",{id:c.value.id,color:b})}}),y=i.computed({get:()=>{var b;return((b=c==null?void 0:c.value)==null?void 0:b.deadline)??""},set:b=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:b!=null&&b.length?b:null})}}),C=b=>o.closedStatus?Yc(b,o.closedStatus):!1,v=i.computed(()=>{var b;return((b=o.users)==null?void 0:b.map(E=>({label:`${E.firstName} ${E.lastName}`,value:E.id,avatar:E.avatarUrl})))||[]}),_=i.computed({get(){var b,E;return(E=(b=c.value)==null?void 0:b.assignee)!=null&&E.id?[c.value.assignee.id]:[]},set(b){r("updateMilestone",{id:o.milestoneId,assigneeId:b[0]??null})}}),k=i.computed({get(){var b;return((b=c.value)==null?void 0:b.important)??!1},set(b){r("updateMilestone",{id:o.milestoneId,important:b})}}),w=(b,E)=>{const T=b.currentTarget;T instanceof HTMLElement&&E(T)};return(b,E)=>{var T;return i.openBlock(),i.createElementBlock("div",gme,[i.createElementVNode("header",vme,[i.createElementVNode("div",yme,[i.createVNode(pe,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",_me,[i.createElementVNode("div",Cme,[i.createVNode(dt,{title:((T=c.value)==null?void 0:T.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Ig,{modelValue:k.value,"onUpdate:modelValue":E[0]||(E[0]=S=>k.value=S),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:b.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(i.openBlock(),i.createElementBlock("div",bme,[i.createElementVNode("div",kme,[i.createElementVNode("label",wme,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=S=>y.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,y.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",Eme,[i.createElementVNode("label",xme,[i.createVNode(Ct,{modelValue:_.value,"onUpdate:modelValue":E[2]||(E[2]=S=>_.value=S),options:v.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:b.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:i.withCtx(({option:S,handleTagRemove:N})=>[i.createVNode(jn,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:L=>N(S,L)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Sme,[i.createVNode(fl,{color:g.value,"onUpdate:color":E[3]||(E[3]=S=>g.value=S)},{clickable:i.withCtx(({openPicker:S,bgColor:N})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:N}),class:"color-button",onClick:L=>w(L,S)},null,12,Tme)]),_:1},8,["color"]),t.isEditable?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"ao-project-milestone__quick-add",title:b.$t("project.activity.add"),onClick:p},[i.createVNode(ye,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,Ame)):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Nme,[i.createVNode(i.unref(go),i.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},b.$attrs,{onChange:h}),{item:i.withCtx(({element:S})=>{var N,L,A,D,M;return[i.createVNode(cd,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(N=a.value)==null?void 0:N.name,"milestone-name":(L=c.value)==null?void 0:L.name,"milestone-color":(A=c.value)==null?void 0:A.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(D=S.comments)==null?void 0:D.length,attachments:(M=S.attachments)==null?void 0:M.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":C(S),onClick:I=>b.$router.push({name:i.unref(Fe).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:S.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&S.active?(i.openBlock(),i.createBlock(pe,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("archive"),onClick:i.withModifiers(()=>b.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!S.active?(i.openBlock(),i.createBlock(pe,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>b.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Dme,[i.createVNode(vo,{"icon-name":"Add",label:b.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const Mme=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var C;return(C=n.phases)==null?void 0:C.find(v=>v.id===n.phaseId)}),s=i.computed(()=>{var C;return(C=n.phases)==null?void 0:C.flatMap(v=>v.milestones)}),a=i.computed(()=>{var C;return(C=s.value)==null?void 0:C.find(v=>v.id===n.milestoneId)}),l=i.computed(()=>{var C;return(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 _,k;return l.value?(i.openBlock(),i.createBlock(Qu,{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:`${(_=r.value)==null?void 0:_.name} / ${(k=a.value)==null?void 0:k.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,"load-attachment-preview":n.loadAttachmentPreview,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y},{default:i.withCtx(w=>[i.renderSlot(C.$slots,"default",i.normalizeProps(i.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","onClose"])):i.createCommentVNode("",!0)}}}),Bme={class:"ao-col-header"},$me=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",Bme,[i.createVNode(dt,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Ome(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function wa(t){return typeof t=="function"?t():i.unref(t)}const Lme=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ime=t=>t!=null,Mi=()=>{};function Pme(t,e){function n(...o){return new Promise((r,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(s)})}return n}function Fme(t,e={}){let n,o,r=Mi;const s=l=>{clearTimeout(l),r(),r=Mi};return l=>{const c=wa(t),u=wa(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)=>{r=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 Vme(t,e=200,n={}){return Pme(Fme(e,n),t)}function sc(t){var e;const n=wa(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Rme=Lme?window:void 0;function zme(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function Ume(t){const e=zme();return i.computed(()=>(e.value,!!t()))}function qme(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=Rme,immediate:l=!0}=n,c=Ume(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const h=wa(t);return(Array.isArray(h)?h:[h]).map(sc).filter(Ime)});let d=Mi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,sc(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:sc(g),rootMargin:r,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Mi}},{immediate:l,flush:"post"}):Mi,m=()=>{d(),p(),f.value=!1};return Ome(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const Hme={class:i.normalizeClass(["ao-list-kanban"])},jme={class:"ao-list-kanban__header"},Wme=["title"],Zme={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},Kme={key:1,class:"ao-list-kanban__end"},Gme={key:0,class:"ao-list-kanban__no-more"},Yme={key:1,class:"ao-list-kanban__divider"},Jme={key:1,class:"ao-list-kanban__footer"},Xme=i.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,r=i.ref(!1),s=i.ref(null);qme(s,([{isIntersecting:f}])=>{r.value=f}),i.watch(r,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:Ar(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:Ar(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",Hme,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var m;return[i.createElementVNode("div",jme,[t.title?(i.openBlock(),i.createBlock($me,{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"])):i.createCommentVNode("",!0),t.showHeaderAdd?(i.openBlock(),i.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"))},[i.createVNode(ye,{name:"Add"})],8,Wme)):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(go),i.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:i.withCtx(({element:m})=>{var h,g,y,C,v,_,k,w,b,E;return[i.createVNode(cd,{id:m.id,class:i.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":(k=m.milestone)==null?void 0:k.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(b=m.comments)==null?void 0:b.length,attachments:(E=m.attachments)==null?void 0:E.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:i.withCtx(()=>[a(m)&&m.active?(i.openBlock(),i.createBlock(pe,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:i.withModifiers(()=>f.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),a(m)&&!m.active?(i.openBlock(),i.createBlock(pe,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>f.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),_:2},1032,["id","class","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:i.withCtx(()=>[t.isLoading?(i.openBlock(),i.createElementBlock("div",Zme,[i.createVNode(ye,{name:"Loading"})])):t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(i.openBlock(),i.createElementBlock("div",Kme,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",Gme,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",Yme)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",Jme,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(vo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[4]||(p[4]=m=>f.$emit("add"))},null,8,["label"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}});const Qme={class:"ao-field ao-search-field"},ehe=["value","placeholder"],the=i.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,r=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=Vme(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",Qme,[i.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>i.unref(s)&&i.unref(s)(...u)),onKeypress:i.withKeys(r,["enter"])},null,40,ehe),i.createVNode(ye,{name:"SearchRounded",class:i.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),i.createVNode(pe,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:i.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const nhe={class:"ao-feed"},ohe={class:"ao-feed__filters"},rhe={class:"ao-feed__body"},Zc=i.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"}},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"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e;function s(F,j){r("toast",F,j)}const a=i.toRef(o,"activities"),l=i.computed(()=>o.feedMode==="dev"?o.devStatuses:o.statuses);i.computed(()=>o.feedMode==="dev"?"devStatus":"status");const c=i.computed(()=>o.feedMode==="dev"?a.value.filter(F=>F.activityType==="dev"):a.value),u=async(F,j)=>{await r("selectActivity",F,j)},d=i.ref({}),f=i.ref(!1),p=i.ref(!1),m=i.computed(()=>o.project?"milestone":"project");i.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([F,j,U,G],[ue,Ce])=>{const Be=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(F.map($e=>[$e.id,j.filter(de=>{const qe=de[Be];return(qe==null?void 0:qe.id)===$e.id})])),U&&!f.value?(u(U,null),f.value=!0):G&&!f.value&&(u(null,G),f.value=!0),p.value&&Vn(j,Ce)},{immediate:!0});const h=i.computed(()=>{var F;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((F=o.selectedActivity.milestone.phase)==null?void 0:F.name)??""} / ${o.selectedActivity.milestone.name??""}`}),g=F=>{var $e;const j=o.feedMode==="dev"?o.activities.filter(de=>de.activityType==="dev"):o.activities,U=j==null?void 0:j.at(-1),G=U?et.LexoRank.parse(U.rank).genNext():et.LexoRank.middle(),ue=(($e=o.activities)==null?void 0:$e.length)??0,Ce=o.feedMode==="dev",Be={name:n("activity.defaultName",{idx:ue+1}),rank:G.format(),...Ce?{statusDevId:F.id,type:"dev"}:{statusId:F.id}};o.filters.assigneeId.length>0&&(Be.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(Be.projectId=o.filters.projectId[0]),p.value=!0,r("addActivity",Be)},y=F=>{var $e,de;const j=o.feedMode==="dev"?"devStatus":"status",U=(($e=o.activities)==null?void 0:$e.filter(qe=>{const be=qe[j];return(be==null?void 0:be.id)===F.id}))??[],G=Qi(U),ue=((de=o.activities)==null?void 0:de.length)??0,Ce=o.feedMode==="dev",Be={name:n("activity.defaultName",{idx:ue+1}),rank:G,...Ce?{statusDevId:F.id,type:"dev"}:{statusId:F.id}};o.filters.assigneeId.length>0&&(Be.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(Be.projectId=o.filters.projectId[0]),p.value=!0,r("addActivity",Be)},C=(F,j)=>{p.value=!1,r("update:filters",{...o.filters,[F]:j})},v=i.computed(()=>o.project?[o.project]:o.projects??[]),_=i.computed(()=>v.value.map(F=>({value:F.id,label:F.name}))),k=i.computed(()=>{var F;return(F=o.activityTypes)==null?void 0:F.map(j=>({value:j.id,label:j.name}))}),w=i.computed(()=>o.users.map(F=>({value:F.id,label:`${F.firstName} ${F.lastName}`,avatar:F.avatarUrl}))),b=F=>{o.selectedActivity&&r("update:activity",F)},E=F=>{r("update:activity",F)},T=F=>{r("archiveActivity",F)},S=F=>{r("unarchiveActivity",F)},N=F=>{var j;r("startTimer",F),(j=window.parent)==null||j.postMessage({type:"startTimer",data:F},"*")},L=F=>{p.value=!1,r("update:searchText",F)},A=F=>{p.value=!1,r("clear:searchText",F)},D=F=>{o.selectedActivity&&r("addSubtask",F)},M=F=>{o.selectedActivity&&r("updateSubtask",F)},I=F=>{o.selectedActivity&&r("deleteSubtask",F)},P=F=>{r("addFiles",F)},W=F=>{r("removeFile",F)},R=F=>{o.selectedActivity&&r("addComment",{...F,activityId:o.selectedActivity.id})},q=F=>{const{id:j}=o.selectedActivity||{};j&&r("updateComment",F)},V=F=>{const{id:j}=o.selectedActivity||{};j&&r("removeComment",F)},te=Ki.useRouter(),oe=i.ref("feed"),_e=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(oe,F=>{F==="feed"?(te.push({name:Fe.feed}),console.log("Navigating to feed...")):F==="dev"?(te.push({name:Fe.dev}),console.log("Navigating to dev...")):F==="overview"?(te.push({name:Fe.project}),console.log("Navigating to feed...")):F==="mapping"&&(te.push({name:Fe.mapping}),console.log("Navigating to feed..."))}),(F,j)=>{var U;return i.openBlock(),i.createElementBlock("div",nhe,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createElementVNode("div",ohe,[i.createVNode(ps,{modelValue:oe.value,"onUpdate:modelValue":j[0]||(j[0]=G=>oe.value=G),tabs:_e},null,8,["modelValue"]),i.createVNode(the,{"model-value":t.searchText,placeholder:F.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":L,onClear:A},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Ct,{key:0,"model-value":t.filters[i.unref(No).project],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:F.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":j[1]||(j[1]=G=>C(i.unref(No).project,G))},null,8,["model-value","options","placeholder"])),k.value?(i.openBlock(),i.createBlock(Ct,{key:1,"model-value":t.filters[i.unref(No).type],mode:"tags",options:k.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:F.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":j[2]||(j[2]=G=>C(i.unref(No).type,G))},null,8,["model-value","options","placeholder"])):i.createCommentVNode("",!0),w.value.length?(i.openBlock(),i.createBlock(Ct,{key:2,"model-value":t.filters[i.unref(No).assignee],mode:"tags",options:w.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:F.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":j[3]||(j[3]=G=>C(i.unref(No).assignee,G))},{tag:i.withCtx(({option:G,handleTagRemove:ue})=>[i.createVNode(jn,{"user-name":G.label,"avatar-url":G.avatar,"is-closable":!0,onClose:Ce=>ue(G,Ce)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(pe,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:j[4]||(j[4]=G=>F.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(pe,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:j[5]||(j[5]=G=>F.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(pe,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:j[6]||(j[6]=G=>F.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",rhe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,G=>(i.openBlock(),i.createBlock(Xme,{key:G.id,status:G,list:d.value[G.id],title:G.name,"footer-label":F.$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(G),onAddAtBeginning:()=>y(G),onSelectActivity:u,onArchiveActivity:T,onUnarchiveActivity:S,onUpdateActivity:E,onStartTimer:N},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","is-dev-mode","onAdd","onAddAtBeginning"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(Qu,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(U=t.selectedActivity.milestone)==null?void 0:U.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,"load-attachment-preview":o.loadAttachmentPreview,onClose:j[7]||(j[7]=()=>u(null,null)),"onUpdate:activity":b,onAddSubtask:D,onUpdateSubtask:M,onDeleteSubtask:I,onAddFiles:P,onRemoveFile:W,onAddComment:R,onUpdateComment:q,onRemoveComment:V,onToast:s},{default:i.withCtx(G=>[i.renderSlot(F.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(G)))]),_: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"])):i.createCommentVNode("",!0)]))])}}});const ihe={class:"ao-project-mapping"},she={class:"ao-project-mapping-mapping__body"},ahe={class:"ao-project-mapping-mapping__phases"},lhe={key:0,class:"ao-project-mapping-mapping__image-wrapper"},che=["src","alt"],uhe=i.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}=En(),o=t,r=e,s=()=>{const{name:v,rank:_}=Uo(o.phases,"phase",n);r("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=Qi(o.phases);r("addPhase",{name:v,rank:_,projectId:o.project.id})},l=v=>{r("updatePhase",v)},c=v=>{r("archivePhase",v)},u=v=>{r("unarchivePhase",v)},d=v=>{r("copyPhaseToTemplate",v)},f=i.ref(!1),p=i.ref(!1),m=(v,_)=>{r("applyTemplate",{templateId:v,projectId:_}),f.value=!1},h=(v,_)=>{var b;const k=(b=o.templates)==null?void 0:b.at(-1),w=k?et.LexoRank.parse(k.rank).genNext():et.LexoRank.middle();r("saveTemplate",{templateName:v,rank:w.format(),phaseIds:_}),p.value=!1},g=Ki.useRouter(),y=i.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(y,v=>{v==="feed"?(g.push({name:Fe.feed}),console.log("Navigating to feed...")):v==="dev"?(g.push({name:Fe.dev}),console.log("Navigating to dev...")):v==="overview"?(g.push({name:Fe.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:Fe.mapping}),console.log("Navigating to feed..."))}),(v,_)=>{var k;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[i.createElementVNode("div",ihe,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createVNode(ps,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=w=>y.value=w),tabs:C},null,8,["modelValue"]),i.createVNode(pe,{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:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(pe,{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"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(pe,{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"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(pe,{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"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",she,[i.createElementVNode("div",ahe,[i.createVNode(ld,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(k=t.project)==null?void 0:k.estimationUnit,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(i.openBlock(),i.createElementBlock("div",lhe,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,che)])):i.createCommentVNode("",!0)])])],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[p.value?(i.openBlock(),i.createBlock(Vg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>p.value=!1),onSave:h},null,8,["phases"])):i.createCommentVNode("",!0),f.value?(i.openBlock(),i.createBlock(Fg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>f.value=!1),onApply:m},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Po={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},dhe=(t,e={})=>[{path:t,name:Po.TEMPLATES,redirect:{name:Po.TEMPLATES_LIST},...e,children:[{path:"",name:Po.TEMPLATES_LIST,component:Rg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Po.TEMPLATE_DETAILS,component:Pg,props:!0}]}],Fe={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},fhe=(t,e={})=>[{path:t,...e,redirect:{name:Fe.project},children:[{path:"",name:Fe.project,component:Wpe,props:!0,children:[{path:":phaseId/:milestoneId",name:Fe.milestone,component:dp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Fe.activity,props:{default:!0,modal:!0},components:{default:dp,modal:Mme}}]},{path:"feed",name:Fe.feed,component:Zc,props:!0},{path:"dev",name:Fe.dev,component:Zc,props:!0},{path:"mapping",name:Fe.mapping,component:uhe,props:!0}]}],phe={class:"ao-templates"},Rg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{Vn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?et.LexoRank.parse(u.rank).genNext():et.LexoRank.middle(),f=((h=o.templates)==null?void 0:h.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};r("addTemplate",p)},a=(u,d)=>{r("updateItem",{itemType:Pe.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:Pe.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=Xi(u,o.templates??[]);r("updateItem",{itemType:Pe.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(i.openBlock(),i.createElementBlock("div",phe,[i.createVNode(es,null,{secondary:i.withCtx(()=>[i.createVNode(pe,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),i.createVNode(i.unref(go),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:i.withCtx(({element:f})=>{var p;return[i.createVNode(U_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(f_)(f.phases):0,activities:f.phases?i.unref(p_)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:m=>a(f.id,m),onClick:m=>u.$router.push({name:i.unref(Po).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 mhe={class:"ao-field__label"},zg=i.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[i.createElementVNode("span",mhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),hhe=["type","value","disabled","readonly"],ghe=i.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,r=i.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(i.openBlock(),i.createBlock(zg,{label:t.label},{default:i.withCtx(()=>[i.createElementVNode("input",i.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[i.toHandlerKey(r.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,hhe)]),_:1},8,["label"]))}}),vhe={class:"ao-field"},yhe={class:"ao-field__label"},_he=["checked","disabled"],Che=i.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)=>(i.openBlock(),i.createElementBlock("label",vhe,[i.createElementVNode("span",yhe,i.toDisplayString(t.label),1),i.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var r;return e.$emit("update:modelValue",((r=o.target)==null?void 0:r.checked)??!1)})},null,40,_he)]))}});exports.AoAvatar=jn;exports.AoCardFeed=cd;exports.AoCheckboxField=Che;exports.AoColorPicker=fl;exports.AoFeed=Zc;exports.AoField=zg;exports.AoInputField=ghe;exports.AoMultiselect=Ct;exports.AoProjectPhases=ld;exports.AoTabBar=ps;exports.AoTemplateDetails=Pg;exports.AoTemplates=Yg;exports.AoTemplatesList=Rg;exports.EstimationUnit=yp;exports.TemplateItemTypeEnum=vp;exports.activityFeedStatus=Ey;exports.durationTypes=wy;exports.feedFilterTypes=No;exports.getProjectOverviewRoutes=fhe;exports.getTemplateRoutes=dhe;exports.listUpdateTypes=xy;exports.milestoneStatus=$i;exports.projectOverviewRoutes=Fe;exports.ruleComparators=mp;exports.ruleDurationUnits=gp;exports.ruleTriggerTypes=hp;exports.templateItemType=Pe;exports.templateRouteNames=Po;
58
+ */function Ao(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=yfe(t):/rgb/.test(t)?e=dp(t):typeof t=="string"?e=dp(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:r,a:s}=e,{h:a,s:l,v:c}=_fe(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function td(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 Zc(t,e,n,o,r,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,r),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function vfe({r:t,g:e,b:n},o){const r=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${r(t)}${r(e)}${r(n)}`;return o?s.toUpperCase():s}function yfe(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 dp(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 _fe({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),r=Math.min(t,e,n),s=o-r;let a=0;o===r?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-r/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var nd=i.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),Zc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Zc("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"),r=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})};r(t);const s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}}});const Cfe={ref:"canvasSaturation"};function bfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[i.createVNode("canvas",Cfe,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}nd.render=bfe;nd.__file="src/color/Saturation.vue";var od=i.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 r=o.createLinearGradient(0,0,0,n);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),o.fillStyle=r,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 r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const kfe={ref:"canvasHue"};function wfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[i.createVNode("canvas",kfe,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}od.render=wfe;od.__file="src/color/Hue.vue";var rd=i.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,r=td(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),Zc("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=r=>{let s=r.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 Efe={ref:"canvasAlpha"};function xfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[i.createVNode("canvas",Efe,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}rd.render=xfe;rd.__file="src/color/Alpha.vue";var id=i.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,r=td(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function Sfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}id.render=Sfe;id.__file="src/color/Preview.vue";var sd=i.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:r,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-r,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:r,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-r,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 Tfe=i.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),Afe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Nfe=i.createVNode("g",{fill:"none","fill-rule":"evenodd"},[i.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[i.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),i.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[i.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function Dfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[t.isSucking?i.createCommentVNode("v-if",!0):(i.openBlock(),i.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))},[Tfe],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",Afe,[Nfe])):i.createCommentVNode("v-if",!0)])}sd.render=Dfe;sd.__file="src/color/Sucker.vue";var ad=i.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:i.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const Mfe={class:"color-type"},Bfe={class:"name"};function $fe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",Mfe,[i.createVNode("span",Bfe,i.toDisplayString(t.name),1),i.withDirectives(i.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),[[i.vModelText,t.modelColor]])])}ad.render=$fe;ad.__file="src/color/Box.vue";var ld=i.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=i.ref(),o=i.ref([]),r=i.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),r.value=td(4).toDataURL(),i.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:r,selectColor:a}}});const Ofe={class:"colors"},Lfe={key:0,class:"colors history"};function Ife(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",Ofe,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsDefault,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(i.openBlock(),i.createBlock("ul",Lfe,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsHistory,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):i.createCommentVNode("v-if",!0)])}ld.render=Ife;ld.__file="src/color/Colors.vue";var Ar=i.defineComponent({components:{Saturation:nd,Hue:od,Alpha:rd,Preview:id,Sucker:sd,Box:ad,Colors:ld},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 vfe(this.rgba,!0)}},created(){Object.assign(this,Ao(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:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,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:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,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:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Pfe={class:"color-set"};function Ffe(t,e,n,o,r,s){const a=i.resolveComponent("Saturation"),l=i.resolveComponent("Hue"),c=i.resolveComponent("Alpha"),u=i.resolveComponent("Preview"),d=i.resolveComponent("Sucker"),f=i.resolveComponent("Box"),p=i.resolveComponent("Colors");return i.openBlock(),i.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[i.createVNode("div",Pfe,[i.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),i.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),i.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"])]),i.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[i.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?i.createCommentVNode("v-if",!0):(i.openBlock(),i.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),i.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.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"]),i.createCommentVNode(" custom options "),i.renderSlot(t.$slots,"default")],6)}Ar.render=Ffe;Ar.__file="src/color/ColorPicker.vue";Ar.install=t=>{t.component(Ar.name,Ar)};const Vfe={class:"color-picker-wrapper"},pl=i.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null),a=i.ref(null),l=i.ref(0),c=i.ref(0),u=async h=>{a.value=h,r.value=!0,await i.nextTick();const g=h.getBoundingClientRect(),y=s.value,C=(y==null?void 0:y.offsetHeight)||300,v=window.innerHeight-g.bottom,_=g.top,k=v<C&&_>C;console.log("pickerHeight = "+C),l.value=k?g.top-C-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=i.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)&&(r.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};i.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),i.watch(()=>n.color,h=>{r.value||(p.value=h)});const p=i.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)=>(i.openBlock(),i.createElementBlock("div",Vfe,[i.renderSlot(h.$slots,"clickable",{openPicker:u,bgColor:t.color}),r.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:i.normalizeStyle(d.value)},[i.createVNode(i.unref(Ar),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const Rfe={class:"ao-card-project-phase__header"},zfe={class:"ao-card-project-item__title-line"},Ufe={key:0,class:"ao-card-project-item-phase__estimation"},qfe={class:"ao-card-project-phase__footer"},Hfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},jfe={class:"ao-card-project-phase__subitem"},Wfe={class:"ao-card-project-phase__subitem"},Zfe={key:0,class:"ao-card-project-phase__secondary"},Kfe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Gfe=i.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,r=g=>{o("update:title",g)},s=i.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((_,k)=>_+(k.estimation||0),0))},0))||0}),a=i.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 k=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Da(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Li.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=i.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)=>(i.openBlock(),i.createBlock(pl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(dl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",zfe,[i.createVNode(ft,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",Ufe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",qfe,[u.value?(i.openBlock(),i.createElementBlock("div",Hfe,[i.createElementVNode("div",jfe,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Wfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(fl,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Zfe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.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)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",Kfe,i.toDisplayString(i.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Rfe,[i.createVNode(ge,{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]=i.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 Yfe=i.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("span",{class:"aoBadge",style:i.normalizeStyle({backgroundColor:t.color})},null,4))}});const Jfe={class:"ao-card-project-milestone__default"},Xfe={class:"ao-title-with-badge-wrapper"},Qfe={class:"ao-card-project-item__title-line"},epe={key:0,class:"ao-card-project-item-milestone__estimation"},tpe={key:0,class:"ao-card-project-milestone__archive"},npe={class:"ao-card-project-milestone__activities"},ope={class:"ao-card-project-milestone__activities-row"},rpe={class:"ao-card-project-milestone__subitem"},ipe={class:"ao-card-project-milestone__subitem"},spe={key:1,class:"ao-card-project-milestone__secondary"},ape={class:"ao-card-project-milestone__footer"},lpe={key:1,class:"ao-field ao-card-project-milestone__deadline"},cpe={class:"ao-field__label"},upe={key:2,class:"ao-card-project-milestone__assignee"},dpe=i.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,r=i.computed(()=>{var p;return((p=n.activities)==null?void 0:p.reduce((m,h)=>m+(h.estimation||0),0))||0}),s=i.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=i.computed(()=>n.estimationUnit==="days"?"d":"h"),l=i.computed(()=>Da(s.value,n.estimationUnit));i.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(m=>Jc(m,n.closedStatus)).length}),d=i.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,m)=>(i.openBlock(),i.createBlock(dl,{class:i.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:i.withCtx(()=>[i.createElementVNode("div",Jfe,[i.createElementVNode("div",Xfe,[i.createVNode(Yfe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",Qfe,[i.createVNode(ft,{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"]),r.value||s.value?(i.openBlock(),i.createElementBlock("span",epe," ("+i.toDisplayString(l.value)+"/"+i.toDisplayString(r.value)+i.toDisplayString(a.value)+")",1)):i.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(i.openBlock(),i.createElementBlock("div",tpe,[i.createVNode(ge,{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]=i.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",npe,[i.createElementVNode("div",ope,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",rpe,[i.createVNode(be,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",ipe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(fl,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):i.createCommentVNode("",!0),p.$slots.secondary?(i.openBlock(),i.createElementBlock("div",spe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",ape,[t.important?(i.openBlock(),i.createBlock(be,{key:0,name:"FlagRounded",class:i.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):i.createCommentVNode("",!0),t.deadline?(i.openBlock(),i.createElementBlock("label",lpe,[i.createElementVNode("span",cpe,i.toDisplayString(i.unref(Ma)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",upe,[i.createVNode(jn,{"user-name":i.unref(Op)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):i.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const fpe={class:"ao-mapping-card-project-phase__header"},ppe={class:"ao-card-project-item__title-line"},mpe={key:0,class:"ao-card-project-item-phase__estimation"},hpe={class:"ao-mapping-card-project-phase__footer"},gpe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},vpe={class:"ao-mapping-card-project-phase__subitem"},ype={class:"ao-mapping-card-project-phase__subitem"},_pe={key:0,class:"ao-mapping-card-project-phase__secondary"},Cpe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},bpe=i.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,r=g=>{o("update:title",g)},s=i.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((_,k)=>_+(k.estimation||0),0))},0))||0}),a=i.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 k=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Da(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Li.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=i.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)=>(i.openBlock(),i.createBlock(pl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(dl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",ppe,[i.createVNode(ft,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",mpe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",hpe,[u.value?(i.openBlock(),i.createElementBlock("div",gpe,[i.createElementVNode("div",vpe,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",ype,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(fl,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",_pe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.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)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",Cpe,i.toDisplayString(i.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",fpe,[i.createVNode(ge,{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]=i.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 kpe={class:"ao-project-phase"},wpe={key:0,class:"ao-project-phase__drag ao-card__drag"},Epe={key:1,class:"ao-project-phase__col-phase"},xpe={key:2,class:"ao-mapping-project-phase__col-phase"},Spe={key:0,class:"ao-project-phase__col-milestones"},Tpe=["title"],Ape={class:"ao-project-phase__milestones-list-footer"},Npe=i.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e;i.watch(()=>o.phase.milestones,(w,b)=>{Vn(w,b)});const s=w=>{r("updatePhase",{id:o.phase.id,name:w})},a=w=>{r("updatePhase",{id:o.phase.id,deadline:w})},l=w=>{r("updatePhase",w)},c=i.computed(()=>o.phase.milestones.map(w=>v_(w,o.closedStatus))),u=w=>{const{name:b,rank:E}=qo(c.value??[],"milestone",n);r("addMilestone",{name:b,rank:E,phaseId:w})},d=w=>{const b=n("template.defaultName.milestone",{idx:1}),E=es(c.value??[]);r("addMilestone",{name:b,rank:E,phaseId:w})},f=w=>{r("updateMilestone",w)},p=w=>{r("archiveMilestone",w)},m=w=>{r("unarchiveMilestone",w)},h=w=>{r("archivePhase",w)},g=w=>{r("unarchivePhase",w)},y=w=>{"added"in w?r("updateMilestone",{id:w.added.element.id,phaseId:o.phase.id,rank:Dr(c.value,w.added.newIndex)}):"removed"in w||"moved"in w&&r("updateMilestone",{id:w.moved.element.id,rank:Dr(c.value,w.moved.newIndex)})},C=Nr.useRoute(),v=i.computed(()=>C.path.includes("/mapping")),_=i.computed(()=>{var w;return o.phase.id===((w=C.params)==null?void 0:w.phaseId)});i.ref(!1);const k=i.computed(()=>{var w;return o.phase.id!==((w=C.params)==null?void 0:w.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:__(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(w,b)=>(i.openBlock(),i.createElementBlock("li",kpe,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",wpe,[i.createVNode(be,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),v.value?(i.openBlock(),i.createElementBlock("div",xpe,[i.createVNode(bpe,{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"])])):(i.openBlock(),i.createElementBlock("div",Epe,[i.createVNode(Gfe,{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),v.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Spe,[i.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-project-phase__milestone-quick-add",{"ao-project-phase__milestone-quick-add--visible":_.value}]),title:w.$t("project.milestone.add"),onClick:b[0]||(b[0]=()=>d(t.phase.id))},[i.createVNode(be,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],10,Tpe)):i.createCommentVNode("",!0),i.createVNode(i.unref(go),i.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},w.$attrs,{onChange:y}),{item:i.withCtx(({element:E})=>{var T;return[i.createVNode(dpe,{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===((T=w.$route.params)==null?void 0:T.milestoneId),assignee:E.assignee,important:E.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:i.normalizeClass(["ao-project-phase__milestone"]),onClick:S=>!t.readonly&&w.$router.push({name:i.unref(Oe).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"]),i.createElementVNode("div",Ape,[t.isEditable?(i.openBlock(),i.createBlock(vo,{key:0,label:w.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:b[1]||(b[1]=()=>u(t.phase.id))},null,8,["label"])):i.createCommentVNode("",!0)])],4)]))]))}});const Dpe={class:"ao-project__phases"},Mpe={key:0,class:"ao-project-phase__phases-list-footer"},Bpe={class:"ao-project-phase__col-phase"},cd=i.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;i.watch(()=>n.phases,(m,h)=>{Vn(m,h)});const r=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=Qi(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)=>(i.openBlock(),i.createElementBlock("div",Dpe,[i.createVNode(i.unref(go),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:i.withCtx(({element:g})=>[i.createVNode(Npe,{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:r,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?(i.openBlock(),i.createElementBlock("div",Mpe,[h[0]||(h[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",Bpe,[i.createVNode(vo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),h[1]||(h[1]=i.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):i.createCommentVNode("",!0)]))}});const $pe={class:"ao-add-template-modal__form-body"},Ope={class:"field__row"},Lpe={class:"ao-add-template-modal__form-footer"},Vg=i.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=i.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(i.openBlock(),i.createBlock(Ba,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(ft,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:i.withModifiers(l,["prevent"])},[i.createElementVNode("p",null,i.toDisplayString(c.$t("project.template.apply.notice")),1),i.createElementVNode("div",$pe,[i.createElementVNode("div",Ope,[i.createVNode(Ct,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",Lpe,[i.createVNode(ge,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Ipe={class:"ao-save-template-modal__form-body"},Ppe={class:"field__row"},Fpe={class:"ao-field ao-field--inline"},Vpe={class:"ao-field__label"},Rpe={class:"ao-save-template-modal__phases"},zpe={class:"ao-field__label"},Upe={class:"ao-save-template-modal__phases-list"},qpe=["value"],Hpe={class:"ao-save-template-modal__form-footer"},Rg=i.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(""),s=i.ref([]);i.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{r.value&&o("save",r.value,s.value)};return(l,c)=>(i.openBlock(),i.createBlock(Ba,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(ft,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:i.withModifiers(a,["prevent"])},[i.createElementVNode("div",Ipe,[i.createElementVNode("div",Ppe,[i.createElementVNode("label",Fpe,[i.createElementVNode("span",Vpe,i.toDisplayString(l.$t("project.template.name.label"))+": ",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u),type:"text"},null,512),[[i.vModelText,r.value]])])]),i.createElementVNode("div",Rpe,[i.createElementVNode("div",zpe,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",Upe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.phases,u=>(i.openBlock(),i.createElementBlock("label",{key:u.id,class:"ao-field ao-field--checkbox"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),type:"checkbox",value:u.id},null,8,qpe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",Hpe,[i.createVNode(ge,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const jpe={class:"ao-project"},Wpe={class:"ao-project__body"},Zpe=i.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(F=>F.milestones)),a=()=>{const{name:F,rank:Q}=qo(o.phases,"phase",n);r("addPhase",{name:F,rank:Q,projectId:o.project.id})},l=()=>{const F=n("template.defaultName.phase",{idx:1}),Q=es(o.phases);r("addPhase",{name:F,rank:Q,projectId:o.project.id})},c=F=>{r("updatePhase",F)},u=F=>{r("archivePhase",F)},d=F=>{r("unarchivePhase",F)},f=F=>{r("copyPhaseToTemplate",F)},p=F=>{r("addMilestone",F)},m=F=>{r("updateMilestone",F)},h=F=>{r("archiveMilestone",F)},g=F=>{r("unarchiveMilestone",F)},y=F=>{r("addActivity",F)},C=F=>{r("update:activity",F)},v=F=>{r("archiveActivity",F)},_=F=>{r("unarchiveActivity",F)},k=F=>{r("addSubtask",F)},w=F=>{r("updateSubtask",F)},b=F=>{r("deleteSubtask",F)},E=i.computed(()=>s.value.flatMap(F=>F.activities)),T=F=>{r("addFiles",F)},S=F=>{r("removeFile",F)},N=F=>{r("addComment",F)},L=F=>{r("updateComment",F)},A=F=>{r("removeComment",F)},D=i.ref(!1),M=i.ref(!1),I=(F,Q)=>{r("applyTemplate",{templateId:F,projectId:Q}),D.value=!1},P=(F,Q)=>{var se;const ee=(se=o.templates)==null?void 0:se.at(-1),me=ee?tt.LexoRank.parse(ee.rank).genNext():tt.LexoRank.middle();r("saveTemplate",{templateName:F,rank:me.format(),phaseIds:Q}),M.value=!1},j=Nr.useRouter(),V=i.ref("overview"),U=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(V,F=>{F==="feed"?(j.push({name:Oe.feed}),console.log("Navigating to feed...")):F==="dev"?(j.push({name:Oe.dev}),console.log("Navigating to dev...")):F==="overview"?(j.push({name:Oe.project}),console.log("Navigating to feed...")):F==="mapping"&&(j.push({name:Oe.mapping}),console.log("Navigating to feed..."))}),(F,Q)=>{var me;const ee=i.resolveComponent("RouterView");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-overview"},F.$attrs),[i.createElementVNode("div",jpe,[i.createVNode(ts,null,{primary:i.withCtx(()=>[i.createVNode(ms,{modelValue:V.value,"onUpdate:modelValue":Q[0]||(Q[0]=se=>V.value=se),tabs:U},null,8,["modelValue"]),i.createVNode(ge,{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:Q[1]||(Q[1]=se=>F.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(ge,{key:0,class:"ao-project-overview__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("project.phase.add"),onClick:l},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(ge,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:F.$t("project.template.save.label"),onClick:Q[2]||(Q[2]=se=>M.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(ge,{key:2,class:"ao-project-overview__add-template",color:"primary",label:F.$t("project.template.apply.label"),onClick:Q[3]||(Q[3]=se=>D.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",Wpe,[i.createVNode(cd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(me=t.project)==null?void 0:me.estimationUnit,onAddMilestone:p,onUpdateMilestone:m,onArchiveMilestone:h,onUnarchiveMilestone:g,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),i.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:Q[4]||(Q[4]=se=>F.$router.push({name:i.unref(Oe).project})),onUpdateMilestone:m,onAddActivity:y,onUpdateActivity:C,onArchiveActivity:v,onUnarchiveActivity:_},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(ee,{name:"modal",activities:E.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,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":C,onAddSubtask:k,onUpdateSubtask:w,onDeleteSubtask:b,onAddFiles:T,onRemoveFile:S,onAddComment:N,onUpdateComment:L,onRemoveComment:A},{default:i.withCtx(({Component:se})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(se),null,{default:i.withCtx(ae=>[i.renderSlot(F.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(ae)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data","load-attachment-preview"])]))],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[M.value?(i.openBlock(),i.createBlock(Rg,{key:0,phases:t.phases,onClose:Q[5]||(Q[5]=se=>M.value=!1),onSave:P},null,8,["phases"])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createBlock(Vg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:Q[6]||(Q[6]=se=>D.value=!1),onApply:I},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Kpe={class:"ao-card-feed__header"},Gpe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Ype={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},Jpe={class:"ao-card-feed__body"},Xpe={key:0,class:"ao-card-feed__breadcrumbs"},Qpe={class:i.normalizeClass(["ao-card-feed__title-group"])},eme={class:"ao-card-feed__title-line"},tme={key:0,class:"ao-card-feed__slug"},nme={key:1,class:"ao-card-feed__deadline"},ome={class:"ao-card-feed__footer"},rme={class:"ao-card-feed__footer-row"},ime={class:"ao-assignees"},sme={key:0,class:"ao-assignee"},ame={key:0,class:"ao-card-feed__subitems"},lme={key:0,class:"ao-card-feed__subitem"},cme={class:"ao-card-feed__subitem"},ume={key:1,class:"ao-card-feed__subitem"},dme={class:"ao-card-feed__subitem"},fme={class:"ao-card-feed__timer-wrapper"},pme={class:"ao-card-feed__footer-row"},mme={key:0,class:"ao-card-feed__progress-wrapper"},hme={class:"ao-card-feed__subitem"},gme={class:"ao-card-feed__subitem"},ud=i.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{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,r=i.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=i.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=g=>{o("updateActivity",{id:n.id,name:g})},l=i.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=i.computed(()=>n.assignee?[n.assignee]:[]),u=i.computed(()=>Ma(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=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),m=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),h=i.computed(()=>(m.value||0)/(p.value||1));return(g,y)=>(i.openBlock(),i.createBlock(dl,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",Kpe,[r.value?(i.openBlock(),i.createBlock(Oi,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):i.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(i.openBlock(),i.createElementBlock("div",Gpe,[t.isPrivate?(i.openBlock(),i.createBlock(be,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(be,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(be,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Ype,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",Jpe,[l.value?(i.openBlock(),i.createElementBlock("span",Xpe,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Qpe,[i.createElementVNode("div",eme,[t.slug?(i.openBlock(),i.createElementBlock("span",tme,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(ft,{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?(i.openBlock(),i.createElementBlock("span",nme,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",ome,[i.createElementVNode("div",rme,[i.createElementVNode("ul",ime,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,C=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C.id},[C?(i.openBlock(),i.createElementBlock("li",sme,[i.createVNode(jn,{"user-name":i.unref(Op)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):i.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(i.openBlock(),i.createElementBlock("ul",ame,[t.comments?(i.openBlock(),i.createElementBlock("li",lme,[i.createVNode(be,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",cme,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",ume,[i.createVNode(be,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",dme,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",fme,[i.createVNode(be,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",pme,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",mme,[i.createElementVNode("div",hme,[i.createVNode(be,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",gme,i.toDisplayString(m.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(fl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const vme={class:"ao-project-milestone"},yme={class:"ao-project-milestone__header"},_me={class:"ao-project-milestone__header_line"},Cme={class:"ao-project-milestone__header_line"},bme={class:"ao-project-milestone__title"},kme={key:0,class:"ao-fieldset ao-milestone__fieldset"},wme={class:"ao-field__row ao-milestone__field-row"},Eme={class:"ao-field ao-field--inline"},xme={class:"ao-field__row ao-milestone__field-row"},Sme={class:"ao-field ao-milestone__field-multiselect"},Tme={class:"ao-milestone__color-actions"},Ame=["onClick"],Nme=["title"],Dme={class:"ao-project-milestone__body"},Mme={key:0,class:"ao-project-milestone__footer"},fp=i.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e,s=b=>{var E;r("startTimer",b),(E=window.parent)==null||E.postMessage({type:"startTimer",data:b},"*")},a=i.computed(()=>{var b;return(b=o.phases)==null?void 0:b.find(E=>E.id===o.phaseId)}),l=i.computed(()=>{var b;return(b=o.phases)==null?void 0:b.flatMap(E=>E.milestones)}),c=i.computed(()=>{var b;return(b=l.value)==null?void 0:b.find(E=>E.id===o.milestoneId)}),u=i.computed(()=>{var b;return(b=c.value)==null?void 0:b.activities});i.watch(u,(b,E)=>{Vn(b,E)});const d=b=>{r("close",b)},f=()=>{const{name:b,rank:E}=qo(u.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:b,rank:E,projectId:o.projectId})},p=()=>{const b=n("template.defaultName.activity",{idx:1}),E=es(u.value??[]);r("addActivity",{milestoneId:o.milestoneId,name:b,rank:E,projectId:o.projectId})},m=b=>{r("updateActivity",b)},h=b=>{u.value&&"moved"in b&&r("updateActivity",{id:b.moved.element.id,rank:Dr(u.value,b.moved.newIndex)})},g=i.computed({get:()=>{var b;return(b=c.value)==null?void 0:b.color},set:b=>{c.value&&r("updateMilestone",{id:c.value.id,color:b})}}),y=i.computed({get:()=>{var b;return((b=c==null?void 0:c.value)==null?void 0:b.deadline)??""},set:b=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:b!=null&&b.length?b:null})}}),C=b=>o.closedStatus?Jc(b,o.closedStatus):!1,v=i.computed(()=>{var b;return((b=o.users)==null?void 0:b.map(E=>({label:`${E.firstName} ${E.lastName}`,value:E.id,avatar:E.avatarUrl})))||[]}),_=i.computed({get(){var b,E;return(E=(b=c.value)==null?void 0:b.assignee)!=null&&E.id?[c.value.assignee.id]:[]},set(b){r("updateMilestone",{id:o.milestoneId,assigneeId:b[0]??null})}}),k=i.computed({get(){var b;return((b=c.value)==null?void 0:b.important)??!1},set(b){r("updateMilestone",{id:o.milestoneId,important:b})}}),w=(b,E)=>{const T=b.currentTarget;T instanceof HTMLElement&&E(T)};return(b,E)=>{var T;return i.openBlock(),i.createElementBlock("div",vme,[i.createElementVNode("header",yme,[i.createElementVNode("div",_me,[i.createVNode(ge,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",Cme,[i.createElementVNode("div",bme,[i.createVNode(ft,{title:((T=c.value)==null?void 0:T.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Pg,{modelValue:k.value,"onUpdate:modelValue":E[0]||(E[0]=S=>k.value=S),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:b.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(i.openBlock(),i.createElementBlock("div",kme,[i.createElementVNode("div",wme,[i.createElementVNode("label",Eme,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=S=>y.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,y.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",xme,[i.createElementVNode("label",Sme,[i.createVNode(Ct,{modelValue:_.value,"onUpdate:modelValue":E[2]||(E[2]=S=>_.value=S),options:v.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:b.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:i.withCtx(({option:S,handleTagRemove:N})=>[i.createVNode(jn,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:L=>N(S,L)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Tme,[i.createVNode(pl,{color:g.value,"onUpdate:color":E[3]||(E[3]=S=>g.value=S)},{clickable:i.withCtx(({openPicker:S,bgColor:N})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:N}),class:"color-button",onClick:L=>w(L,S)},null,12,Ame)]),_:1},8,["color"]),t.isEditable?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"ao-project-milestone__quick-add",title:b.$t("project.activity.add"),onClick:p},[i.createVNode(be,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,Nme)):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Dme,[i.createVNode(i.unref(go),i.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},b.$attrs,{onChange:h}),{item:i.withCtx(({element:S})=>{var N,L,A,D,M;return[i.createVNode(ud,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(N=a.value)==null?void 0:N.name,"milestone-name":(L=c.value)==null?void 0:L.name,"milestone-color":(A=c.value)==null?void 0:A.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(D=S.comments)==null?void 0:D.length,attachments:(M=S.attachments)==null?void 0:M.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":C(S),onClick:I=>b.$router.push({name:i.unref(Oe).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:S.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&S.active?(i.openBlock(),i.createBlock(ge,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("archive"),onClick:i.withModifiers(()=>b.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!S.active?(i.openBlock(),i.createBlock(ge,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>b.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Mme,[i.createVNode(vo,{"icon-name":"Add",label:b.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const Bme=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var C;return(C=n.phases)==null?void 0:C.find(v=>v.id===n.phaseId)}),s=i.computed(()=>{var C;return(C=n.phases)==null?void 0:C.flatMap(v=>v.milestones)}),a=i.computed(()=>{var C;return(C=s.value)==null?void 0:C.find(v=>v.id===n.milestoneId)}),l=i.computed(()=>{var C;return(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 _,k;return l.value?(i.openBlock(),i.createBlock(ed,{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:`${(_=r.value)==null?void 0:_.name} / ${(k=a.value)==null?void 0:k.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,"load-attachment-preview":n.loadAttachmentPreview,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y},{default:i.withCtx(w=>[i.renderSlot(C.$slots,"default",i.normalizeProps(i.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","onClose"])):i.createCommentVNode("",!0)}}}),$me={class:"ao-col-header"},Ome=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",$me,[i.createVNode(ft,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Oi,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Lme(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Ea(t){return typeof t=="function"?t():i.unref(t)}const Ime=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Pme=t=>t!=null,$i=()=>{};function Fme(t,e){function n(...o){return new Promise((r,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(s)})}return n}function Vme(t,e={}){let n,o,r=$i;const s=l=>{clearTimeout(l),r(),r=$i};return l=>{const c=Ea(t),u=Ea(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)=>{r=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 Rme(t,e=200,n={}){return Fme(Vme(e,n),t)}function ac(t){var e;const n=Ea(t);return(e=n==null?void 0:n.$el)!=null?e:n}const zme=Ime?window:void 0;function Ume(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function qme(t){const e=Ume();return i.computed(()=>(e.value,!!t()))}function Hme(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=zme,immediate:l=!0}=n,c=qme(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const h=Ea(t);return(Array.isArray(h)?h:[h]).map(ac).filter(Pme)});let d=$i;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,ac(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:ac(g),rootMargin:r,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=$i}},{immediate:l,flush:"post"}):$i,m=()=>{d(),p(),f.value=!1};return Lme(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const jme={class:i.normalizeClass(["ao-list-kanban"])},Wme={class:"ao-list-kanban__header"},Zme=["title"],Kme={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},Gme={key:1,class:"ao-list-kanban__end"},Yme={key:0,class:"ao-list-kanban__no-more"},Jme={key:1,class:"ao-list-kanban__divider"},Xme={key:1,class:"ao-list-kanban__footer"},Qme=i.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,r=i.ref(!1),s=i.ref(null);Hme(s,([{isIntersecting:f}])=>{r.value=f}),i.watch(r,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:Dr(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:Dr(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",jme,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var m;return[i.createElementVNode("div",Wme,[t.title?(i.openBlock(),i.createBlock(Ome,{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"])):i.createCommentVNode("",!0),t.showHeaderAdd?(i.openBlock(),i.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"))},[i.createVNode(be,{name:"Add"})],8,Zme)):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(go),i.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:i.withCtx(({element:m})=>{var h,g,y,C,v,_,k,w,b,E;return[i.createVNode(ud,{id:m.id,class:i.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":(k=m.milestone)==null?void 0:k.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(b=m.comments)==null?void 0:b.length,attachments:(E=m.attachments)==null?void 0:E.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:i.withCtx(()=>[a(m)&&m.active?(i.openBlock(),i.createBlock(ge,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:i.withModifiers(()=>f.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),a(m)&&!m.active?(i.openBlock(),i.createBlock(ge,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>f.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),_:2},1032,["id","class","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:i.withCtx(()=>[t.isLoading?(i.openBlock(),i.createElementBlock("div",Kme,[i.createVNode(be,{name:"Loading"})])):t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(i.openBlock(),i.createElementBlock("div",Gme,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",Yme,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",Jme)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",Xme,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(vo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[4]||(p[4]=m=>f.$emit("add"))},null,8,["label"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}});const ehe={class:"ao-field ao-search-field"},the=["value","placeholder"],nhe=i.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,r=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=Rme(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",ehe,[i.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>i.unref(s)&&i.unref(s)(...u)),onKeypress:i.withKeys(r,["enter"])},null,40,the),i.createVNode(be,{name:"SearchRounded",class:i.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),i.createVNode(ge,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:i.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const ohe={class:"ao-feed"},rhe={class:"ao-feed__filters"},ihe={class:"ao-feed__body"},Kc=i.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"}},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"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e;function s(H,te){r("toast",H,te)}const a=i.toRef(o,"activities"),l=i.computed(()=>o.feedMode==="dev"?o.devStatuses:o.statuses);i.computed(()=>o.feedMode==="dev"?"devStatus":"status");const c=i.computed(()=>o.feedMode==="dev"?a.value.filter(H=>H.activityType==="dev"):a.value),u=async(H,te)=>{await r("selectActivity",H,te)},d=i.ref({}),f=i.ref(!1),p=i.ref(!1),m=i.computed(()=>o.project?"milestone":"project");i.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([H,te,Le,le],[qe,$])=>{const G=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(H.map(de=>[de.id,te.filter(ke=>{const Me=ke[G];return(Me==null?void 0:Me.id)===de.id})])),Le&&!f.value?(u(Le,null),f.value=!0):le&&!f.value&&(u(null,le),f.value=!0),p.value&&Vn(te,$)},{immediate:!0});const h=i.computed(()=>{var H;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((H=o.selectedActivity.milestone.phase)==null?void 0:H.name)??""} / ${o.selectedActivity.milestone.name??""}`}),g=H=>{var de;const te=o.feedMode==="dev"?o.activities.filter(ke=>ke.activityType==="dev"):o.activities,Le=te==null?void 0:te.at(-1),le=Le?tt.LexoRank.parse(Le.rank).genNext():tt.LexoRank.middle(),qe=((de=o.activities)==null?void 0:de.length)??0,$=o.feedMode==="dev",G={name:n("activity.defaultName",{idx:qe+1}),rank:le.format(),...$?{statusDevId:H.id,type:"dev"}:{statusId:H.id}};o.filters.assigneeId.length>0&&(G.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(G.projectId=o.filters.projectId[0]),p.value=!0,r("addActivity",G)},y=H=>{var de,ke;const te=o.feedMode==="dev"?"devStatus":"status",Le=((de=o.activities)==null?void 0:de.filter(Me=>{const ve=Me[te];return(ve==null?void 0:ve.id)===H.id}))??[],le=es(Le),qe=((ke=o.activities)==null?void 0:ke.length)??0,$=o.feedMode==="dev",G={name:n("activity.defaultName",{idx:qe+1}),rank:le,...$?{statusDevId:H.id,type:"dev"}:{statusId:H.id}};o.filters.assigneeId.length>0&&(G.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(G.projectId=o.filters.projectId[0]),p.value=!0,r("addActivity",G)},C=(H,te)=>{p.value=!1,r("update:filters",{...o.filters,[H]:te})},v=i.computed(()=>o.project?[o.project]:o.projects??[]),_=i.computed(()=>v.value.map(H=>({value:H.id,label:H.name}))),k=i.computed(()=>{var H;return(H=o.activityTypes)==null?void 0:H.map(te=>({value:te.id,label:te.name}))}),w=i.computed(()=>o.users.map(H=>({value:H.id,label:`${H.firstName} ${H.lastName}`,avatar:H.avatarUrl}))),b=H=>{o.selectedActivity&&r("update:activity",H)},E=H=>{r("update:activity",H)},T=H=>{r("archiveActivity",H)},S=H=>{r("unarchiveActivity",H)},N=H=>{var te;r("startTimer",H),(te=window.parent)==null||te.postMessage({type:"startTimer",data:H},"*")},L=H=>{p.value=!1,r("update:searchText",H)},A=H=>{p.value=!1,r("clear:searchText",H)},D=H=>{o.selectedActivity&&r("addSubtask",H)},M=H=>{o.selectedActivity&&r("updateSubtask",H)},I=H=>{o.selectedActivity&&r("deleteSubtask",H)},P=H=>{r("addFiles",H)},j=H=>{r("removeFile",H)},V=H=>{o.selectedActivity&&r("addComment",{...H,activityId:o.selectedActivity.id})},U=H=>{const{id:te}=o.selectedActivity||{};te&&r("updateComment",H)},F=H=>{const{id:te}=o.selectedActivity||{};te&&r("removeComment",H)},Q=Nr.useRouter(),ee=Nr.useRoute(),me=i.ref("feed");i.watch(()=>ee.name,H=>{H===$o.feed||H==="ActivityFeed"||H==="ActivityFeedWithActivity"?me.value="feed":H===$o.dev||H==="ActivityFeedDev"||H==="ActivityFeedDevWithActivity"?me.value="dev":H===Oe.feed?me.value="feed":H===Oe.dev?me.value="dev":H===Oe.project?me.value="overview":H===Oe.mapping&&(me.value="mapping")},{immediate:!0});const se=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],ae=i.computed(()=>z.value?se.filter(H=>H.value==="feed"||H.value==="dev"):se),z=i.computed(()=>!o.project&&ee.name&&(ee.name===$o.feed||ee.name===$o.dev||ee.name==="ActivityFeed"||ee.name==="ActivityFeedDev"||ee.name==="ActivityFeedWithActivity"||ee.name==="ActivityFeedDevWithActivity")),re=i.computed(()=>z.value?$o.feed:Oe.feed),_e=i.computed(()=>z.value?$o.dev:Oe.dev),De=i.computed(()=>Oe.project),Je=i.computed(()=>Oe.mapping);return i.watch(me,H=>{H==="feed"?Q.push({name:re.value}):H==="dev"?Q.push({name:_e.value}):H==="overview"?Q.push({name:De.value}):H==="mapping"&&Q.push({name:Je.value})}),(H,te)=>{var Le;return i.openBlock(),i.createElementBlock("div",ohe,[i.createVNode(ts,null,{primary:i.withCtx(()=>[i.createElementVNode("div",rhe,[i.createVNode(ms,{modelValue:me.value,"onUpdate:modelValue":te[0]||(te[0]=le=>me.value=le),tabs:ae.value},null,8,["modelValue","tabs"]),i.createVNode(nhe,{"model-value":t.searchText,placeholder:H.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":L,onClear:A},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Ct,{key:0,"model-value":t.filters[i.unref(No).project],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:H.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":te[1]||(te[1]=le=>C(i.unref(No).project,le))},null,8,["model-value","options","placeholder"])),k.value?(i.openBlock(),i.createBlock(Ct,{key:1,"model-value":t.filters[i.unref(No).type],mode:"tags",options:k.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:H.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":te[2]||(te[2]=le=>C(i.unref(No).type,le))},null,8,["model-value","options","placeholder"])):i.createCommentVNode("",!0),w.value.length?(i.openBlock(),i.createBlock(Ct,{key:2,"model-value":t.filters[i.unref(No).assignee],mode:"tags",options:w.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:H.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":te[3]||(te[3]=le=>C(i.unref(No).assignee,le))},{tag:i.withCtx(({option:le,handleTagRemove:qe})=>[i.createVNode(jn,{"user-name":le.label,"avatar-url":le.avatar,"is-closable":!0,onClose:$=>qe(le,$)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(ge,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:H.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:te[4]||(te[4]=le=>H.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(ge,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:H.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:te[5]||(te[5]=le=>H.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(ge,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:H.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:te[6]||(te[6]=le=>H.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",ihe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,le=>(i.openBlock(),i.createBlock(Qme,{key:le.id,status:le,list:d.value[le.id],title:le.name,"footer-label":H.$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(le),onAddAtBeginning:()=>y(le),onSelectActivity:u,onArchiveActivity:T,onUnarchiveActivity:S,onUpdateActivity:E,onStartTimer:N},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","is-dev-mode","onAdd","onAddAtBeginning"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(ed,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(Le=t.selectedActivity.milestone)==null?void 0:Le.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,"load-attachment-preview":o.loadAttachmentPreview,onClose:te[7]||(te[7]=()=>u(null,null)),"onUpdate:activity":b,onAddSubtask:D,onUpdateSubtask:M,onDeleteSubtask:I,onAddFiles:P,onRemoveFile:j,onAddComment:V,onUpdateComment:U,onRemoveComment:F,onToast:s},{default:i.withCtx(le=>[i.renderSlot(H.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(le)))]),_: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"])):i.createCommentVNode("",!0)]))])}}});const she={class:"ao-project-mapping"},ahe={class:"ao-project-mapping-mapping__body"},lhe={class:"ao-project-mapping-mapping__phases"},che={key:0,class:"ao-project-mapping-mapping__image-wrapper"},uhe=["src","alt"],dhe=i.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}=En(),o=t,r=e,s=()=>{const{name:v,rank:_}=qo(o.phases,"phase",n);r("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=es(o.phases);r("addPhase",{name:v,rank:_,projectId:o.project.id})},l=v=>{r("updatePhase",v)},c=v=>{r("archivePhase",v)},u=v=>{r("unarchivePhase",v)},d=v=>{r("copyPhaseToTemplate",v)},f=i.ref(!1),p=i.ref(!1),m=(v,_)=>{r("applyTemplate",{templateId:v,projectId:_}),f.value=!1},h=(v,_)=>{var b;const k=(b=o.templates)==null?void 0:b.at(-1),w=k?tt.LexoRank.parse(k.rank).genNext():tt.LexoRank.middle();r("saveTemplate",{templateName:v,rank:w.format(),phaseIds:_}),p.value=!1},g=Nr.useRouter(),y=i.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(y,v=>{v==="feed"?(g.push({name:Oe.feed}),console.log("Navigating to feed...")):v==="dev"?(g.push({name:Oe.dev}),console.log("Navigating to dev...")):v==="overview"?(g.push({name:Oe.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:Oe.mapping}),console.log("Navigating to feed..."))}),(v,_)=>{var k;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[i.createElementVNode("div",she,[i.createVNode(ts,null,{primary:i.withCtx(()=>[i.createVNode(ms,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=w=>y.value=w),tabs:C},null,8,["modelValue"]),i.createVNode(ge,{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:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(ge,{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"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(ge,{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"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(ge,{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"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",ahe,[i.createElementVNode("div",lhe,[i.createVNode(cd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(k=t.project)==null?void 0:k.estimationUnit,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(i.openBlock(),i.createElementBlock("div",che,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,uhe)])):i.createCommentVNode("",!0)])])],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[p.value?(i.openBlock(),i.createBlock(Rg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>p.value=!1),onSave:h},null,8,["phases"])):i.createCommentVNode("",!0),f.value?(i.openBlock(),i.createBlock(Vg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>f.value=!1),onApply:m},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Fo={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},fhe=(t,e={})=>[{path:t,name:Fo.TEMPLATES,redirect:{name:Fo.TEMPLATES_LIST},...e,children:[{path:"",name:Fo.TEMPLATES_LIST,component:zg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Fo.TEMPLATE_DETAILS,component:Fg,props:!0}]}],Oe={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},$o={feed:"ActivityFeed",dev:"ActivityFeedDev"},phe=(t,e={})=>[{path:t,...e,redirect:{name:Oe.project},children:[{path:"",name:Oe.project,component:Zpe,props:!0,children:[{path:":phaseId/:milestoneId",name:Oe.milestone,component:fp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Oe.activity,props:{default:!0,modal:!0},components:{default:fp,modal:Bme}}]},{path:"feed",name:Oe.feed,component:Kc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Oe.dev,component:Kc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Oe.mapping,component:dhe,props:!0}]}],mhe={class:"ao-templates"},zg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{Vn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?tt.LexoRank.parse(u.rank).genNext():tt.LexoRank.middle(),f=((h=o.templates)==null?void 0:h.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};r("addTemplate",p)},a=(u,d)=>{r("updateItem",{itemType:Ve.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:Ve.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=Qi(u,o.templates??[]);r("updateItem",{itemType:Ve.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(i.openBlock(),i.createElementBlock("div",mhe,[i.createVNode(ts,null,{secondary:i.withCtx(()=>[i.createVNode(ge,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),i.createVNode(i.unref(go),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:i.withCtx(({element:f})=>{var p;return[i.createVNode(q_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(p_)(f.phases):0,activities:f.phases?i.unref(m_)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:m=>a(f.id,m),onClick:m=>u.$router.push({name:i.unref(Fo).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 hhe={class:"ao-field__label"},Ug=i.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[i.createElementVNode("span",hhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),ghe=["type","value","disabled","readonly"],vhe=i.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,r=i.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(i.openBlock(),i.createBlock(Ug,{label:t.label},{default:i.withCtx(()=>[i.createElementVNode("input",i.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[i.toHandlerKey(r.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,ghe)]),_:1},8,["label"]))}}),yhe={class:"ao-field"},_he={class:"ao-field__label"},Che=["checked","disabled"],bhe=i.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)=>(i.openBlock(),i.createElementBlock("label",yhe,[i.createElementVNode("span",_he,i.toDisplayString(t.label),1),i.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var r;return e.$emit("update:modelValue",((r=o.target)==null?void 0:r.checked)??!1)})},null,40,Che)]))}});exports.AoAvatar=jn;exports.AoCardFeed=ud;exports.AoCheckboxField=bhe;exports.AoColorPicker=pl;exports.AoFeed=Kc;exports.AoField=Ug;exports.AoInputField=vhe;exports.AoMultiselect=Ct;exports.AoProjectPhases=cd;exports.AoTabBar=ms;exports.AoTemplateDetails=Fg;exports.AoTemplates=Jg;exports.AoTemplatesList=zg;exports.EstimationUnit=_p;exports.TemplateItemTypeEnum=yp;exports.activityFeedRoutes=$o;exports.activityFeedStatus=xy;exports.durationTypes=Ey;exports.feedFilterTypes=No;exports.getProjectOverviewRoutes=phe;exports.getTemplateRoutes=fhe;exports.listUpdateTypes=Sy;exports.milestoneStatus=Li;exports.projectOverviewRoutes=Oe;exports.ruleComparators=hp;exports.ruleDurationUnits=vp;exports.ruleTriggerTypes=gp;exports.templateItemType=Ve;exports.templateRouteNames=Fo;