@beterdichtbij/component-library 0.58.0 → 0.58.1
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.
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
c23.8-1.58,46-9.02,65.15-20.91c0.4-4.68,0.64-9.4,0.64-14.18C217.04,209.86,204.14,174.73,182.52,146.67z"></path><path class="st9" d="M272.67,87.44c-22.45,5.72-43.03,16.06-60.78,29.87l-0.86,0.86c20.64,16.28,45.23,27.76,72.1,32.78
|
|
56
56
|
c0.2-3.05,0.33-6.12,0.33-9.22C283.46,122.5,279.61,104.17,272.67,87.44z"></path></g></g>`,1)])])}const Zh=ge(b4,[["render",E4]]),k4={},w4={class:"icon icon-luscii-open luscii-open",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S4(t,e){return l.openBlock(),l.createElementBlock("svg",w4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M7 0.5L13.5 11.5H0.5L7 0.5Z",fill:"#FF8800"},null,-1)])])}const Jh=ge(k4,[["render",S4]]),A4={},x4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T4(t,e){return l.openBlock(),l.createElementBlock("svg",x4,[...e[0]||(e[0]=[l.createElementVNode("circle",{cx:"12",cy:"12",r:"6",fill:"#FF6266"},null,-1),l.createElementVNode("circle",{cx:"14.5",cy:"9.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)])])}const Xh=ge(A4,[["render",T4]]),I4={},_4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N4(t,e){return l.openBlock(),l.createElementBlock("svg",_4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M4.92892 13.4142C4.14787 12.6332 4.14787 11.3668 4.92892 10.5858L10.5858 4.92893C11.3668 4.14788 12.6332 4.14788 13.4142 4.92893L19.0711 10.5858C19.8521 11.3668 19.8521 12.6332 19.0711 13.4142L13.4142 19.0711C12.6332 19.8521 11.3668 19.8521 10.5858 19.0711L4.92892 13.4142Z",fill:"#9CA3AF"},null,-1),l.createElementVNode("circle",{cx:"12",cy:"7.05029",r:"1.5",transform:"rotate(-45 12 7.05029)",fill:"white","fill-opacity":"0.1"},null,-1)])])}const qh=ge(I4,[["render",N4]]),O4={},M4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L4(t,e){return l.openBlock(),l.createElementBlock("svg",M4,[...e[0]||(e[0]=[l.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"#FB923C"},null,-1),l.createElementVNode("circle",{cx:"15.5",cy:"8.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)])])}const Vh=ge(O4,[["render",L4]]),D4={},P4={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"};function B4(t,e){return l.openBlock(),l.createElementBlock("svg",P4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1)])])}const Uc=ge(D4,[["render",B4]]),R4={},$4={class:"icon icon-message",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"};function F4(t,e){return l.openBlock(),l.createElementBlock("svg",$4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M17.75 2.587V12.2a2.355 2.355 0 0 1-2.35 2.35H2.6A2.355 2.355 0 0 1 .25 12.2V2.61v-.023A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337zm-1.572-.327a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zm.072 1.78L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h12.8c.466 0 .85-.384.85-.85V4.04z"},null,-1)])])}const ep=ge(R4,[["render",F4]]),z4={},U4={class:"icon icon-message-forward",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"19",viewBox:"0 0 21 19"};function H4(t,e){return l.openBlock(),l.createElementBlock("svg",U4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M17.75 8.755a5.25 5.25 0 1 1-7.395 5.795H2.6A2.355 2.355 0 0 1 .25 12.2V2.587A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337v6.168zm-1.5-.452V4.04L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h7.669a5.25 5.25 0 0 1 5.981-4.747zm-.072-6.043a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zM15.5 17.25a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5zm-.31-3l.84.841a.75.75 0 1 1-1.06 1.06l-2.122-2.12a.75.75 0 0 1 0-1.061l2.122-2.122a.75.75 0 0 1 1.06 1.061l-.84.841h2.431a.75.75 0 1 1 0 1.5H15.19z"},null,-1)])])}const tp=ge(z4,[["render",H4]]),j4={};function W4(t,e){return l.openBlock(),l.createElementBlock("svg",l.mergeProps(t.$attrs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"icon"}),[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L472.1 344.7c15.2-26 23.9-56.3 23.9-88.7V216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 21.2-5.1 41.1-14.2 58.7L416 300.8V96c0-53-43-96-96-96s-96 43-96 96v54.3L38.8 5.1zM344 430.4c20.4-2.8 39.7-9.1 57.3-18.2l-43.1-33.9C346.1 382 333.3 384 320 384c-70.7 0-128-57.3-128-128v-8.7L144.7 210c-.5 1.9-.7 3.9-.7 6v40c0 89.1 66.2 162.7 152 174.4V464H248c-13.3 0-24 10.7-24 24s10.7 24 24 24h72 72c13.3 0 24-10.7 24-24s-10.7-24-24-24H344V430.4z"},null,-1)])],16)}const np=ge(j4,[["render",W4]]),K4={},Y4={class:"icon icon-microsoft-teams",xmlns:"http://www.w3.org/2000/svg",width:"18px",height:"18px",viewBox:"0 0 64 64"};function G4(t,e){return l.openBlock(),l.createElementBlock("svg",Y4,[...e[0]||(e[0]=[l.createStaticVNode('<path d="M42 40.531V27.205A1.204 1.204 0 0143.204 26h13.494A2.302 2.302 0 0159 28.302v12.23A8.469 8.469 0 0150.531 49h-.062A8.469 8.469 0 0142 40.531z" fill="#5059c9"></path><circle cx="50.5" cy="17.5" r="5.5" fill="#5059c9"></circle><path d="M49.855 49.622q-.17-.008-.35-.022.174.015.35.022zm.157.005l-.077-.002z" fill="#5059c9"></path><circle cx="33" cy="15" r="8" fill="#7b83eb"></circle><path d="M45.667 26H22.333A2.32 2.32 0 0020 28.308v13.846a14 14 0 0028 0V28.308A2.32 2.32 0 0045.667 26z" fill="#7b83eb"></path><path d="M33 26v20.67a1.734 1.734 0 01-.04.4A2.314 2.314 0 0130.67 49h-8.83a10.81 10.81 0 01-.53-1c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M34 26v18.67A3.362 3.362 0 0130.67 48h-9.36c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67v2.61a8.355 8.355 0 01-2 0A8.02 8.02 0 0125.58 18a8.353 8.353 0 01-.33-1h5.42A3.342 3.342 0 0134 20.33z" opacity=".1"></path><path d="M33 26v18.67A2.326 2.326 0 0130.67 47h-9.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M32 20.33v2.61A8.02 8.02 0 0125.58 18h4.09A2.326 2.326 0 0132 20.33zM22.33 26H32v18.67A2.326 2.326 0 0129.67 47h-8.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26z" opacity=".1"></path><rect x="4" y="18" width="28" height="28" rx="2.333" fill="#4b53bc"></rect><path d="M24.008 26.528h-4.564v13.028h-2.909V26.528h-4.543V24h12.016z" fill="#fff"></path>',11)])])}const rp=ge(K4,[["render",G4]]),Q4={},Z4={class:"icon icon-min",viewBox:"0 0 21 2",width:"21",height:"2",xmlns:"http://www.w3.org/2000/svg"};function J4(t,e){return l.openBlock(),l.createElementBlock("svg",Z4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M1.525 2h18.05a1 1 0 0 0 0-2H1.525a1 1 0 0 0 0 2z"},null,-1)])])}const op=ge(Q4,[["render",J4]]),X4={},q4={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"};function V4(t,e){return l.openBlock(),l.createElementBlock("svg",q4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1)])])}const Hc=ge(X4,[["render",V4]]),e8={},t8={class:"icon icon-plus",width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg"};function n8(t,e){return l.openBlock(),l.createElementBlock("svg",t8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M11.604 7.675H7.027v4.807H4.888V7.675h-4.6V5.628h4.6V.844h2.139v4.784h4.577z"},null,-1)])])}const ia=ge(e8,[["render",n8]]),r8={},o8={class:"icon icon-refresh",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"};function i8(t,e){return l.openBlock(),l.createElementBlock("svg",o8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M15.107 5.34l-2.012-1.891a5.795 5.795 0 0 0-9.563 2.163.75.75 0 0 1-1.414-.5 7.295 7.295 0 0 1 12.021-2.74l2.111 1.983v-2.63a.75.75 0 1 1 1.5 0V6.09a.75.75 0 0 1-.75.75h-4.364a.75.75 0 0 1 0-1.5h2.47zM1.75 10.731v2.63a.75.75 0 0 1-1.5 0V8.998a.75.75 0 0 1 .75-.75h4.364a.75.75 0 1 1 0 1.5h-2.47l2.011 1.891a5.795 5.795 0 0 0 9.563-2.164.75.75 0 0 1 1.414.5 7.295 7.295 0 0 1-12.021 2.74L1.75 10.733z"},null,-1)])])}const ip=ge(r8,[["render",i8]]),s8={},a8={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"};function l8(t,e){return l.openBlock(),l.createElementBlock("svg",a8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1)])])}const _i=ge(s8,[["render",l8]]),c8={},d8={"xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-sananet",viewBox:"0 0 145.82668 130.58667",height:"130.58667",width:"145.82668","xml:space":"preserve",id:"svg2",version:"1.1"},u8={id:"metadata8"};function f8(t,e){const n=l.resolveComponent("dc:format"),r=l.resolveComponent("dc:type"),o=l.resolveComponent("cc:Work"),i=l.resolveComponent("rdf:RDF");return l.openBlock(),l.createElementBlock("svg",d8,[l.createElementVNode("metadata",u8,[l.createVNode(i,null,{default:l.withCtx(()=>[l.createVNode(o,{"rdf:about":""},{default:l.withCtx(()=>[l.createVNode(n,null,{default:l.withCtx(()=>[...e[0]||(e[0]=[l.createTextVNode("image/svg+xml",-1)])]),_:1}),l.createVNode(r,{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})]),_:1})]),_:1})]),e[1]||(e[1]=l.createStaticVNode('<defs id="defs6"><clipPath id="clipPath32" clipPathUnits="userSpaceOnUse"><path id="path30" d="M 0,0 H 1094 V 979 H 0 Z"></path></clipPath><clipPath id="clipPath38" clipPathUnits="userSpaceOnUse"><path id="path36" d="m 726.516,800.508 c 0,-98.836 -80.121,-178.938 -178.938,-178.938 -98.816,0 -178.926,80.102 -178.926,178.938 0,98.808 80.11,178.918 178.926,178.918 98.817,0 178.938,-80.11 178.938,-178.918 z"></path></clipPath><radialGradient id="radialGradient46" spreadMethod="pad" gradientTransform="matrix(390.284,0,0,-390.284,547.578,925.479)" gradientUnits="userSpaceOnUse" r="1" cy="0" cx="0" fy="0.151961" fx="-0.24949799"><stop id="stop40" offset="0" style="stop-opacity:1;stop-color:#ffffff;"></stop><stop id="stop42" offset="0.715" style="stop-opacity:1;stop-color:#f5772a;"></stop><stop id="stop44" offset="1" style="stop-opacity:1;stop-color:#f5772a;"></stop></radialGradient></defs><g transform="matrix(1.3333333,0,0,-1.3333333,0,130.58667)" id="g10"><g transform="scale(0.1)" id="g12"><path id="path14" style="fill:#bfc1e2;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="M 546.836,0 C 250.422,0 0,111.121 0,242.648 c 0,43.133 26.418,84.11 72.6016,119.688 -17.586,-23.32 -27.0821,-48.32 -27.0821,-74.328 0,-127.442 220.2035,-227.2736 501.3165,-227.2736 281.102,0 501.304,99.8316 501.304,227.2736 0,26.008 -9.5,51.015 -27.09,74.336 46.19,-35.586 72.61,-76.563 72.61,-119.696 C 1093.66,111.121 843.242,0 546.836,0"></path><path id="path16" style="fill:#9ba1d3;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,125.039 c -195.918,0 -361.433,66.113 -361.433,144.367 0,29.305 22.75,56.942 61.714,80.028 -17.468,-16.329 -27.097,-34.356 -27.097,-53.274 0,-74.39 143.554,-132.664 326.816,-132.664 183.289,0 326.875,58.274 326.875,132.664 0,18.879 -9.59,36.86 -26.98,53.156 38.843,-23.066 61.519,-50.656 61.519,-79.91 0,-78.254 -165.508,-144.367 -361.414,-144.367"></path><path id="path18" style="fill:#516ab4;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,205.82 c -118.73,0 -219.031,39.27 -219.031,85.754 0,12.711 7.39,24.91 20.625,35.906 -3.379,-6.242 -5.156,-12.773 -5.156,-19.5 0,-47.296 89.414,-84.335 203.562,-84.335 114.133,0 203.535,37.039 203.535,84.335 0,6.727 -1.777,13.243 -5.144,19.481 13.211,-10.996 20.593,-23.176 20.593,-35.887 0,-46.484 -100.285,-85.754 -218.984,-85.754"></path><path id="path20" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 423.379,332.805 c -6.934,-6.223 -10.801,-12.989 -10.801,-19.953 0,-28.321 61.387,-52.247 134.043,-52.247 72.637,0 133.992,23.926 133.992,52.247 0,6.925 -3.816,13.652 -10.672,19.843 1.36,-3.152 2.063,-6.418 2.063,-9.765 0,-29.258 -55.078,-52.168 -125.383,-52.168 -70.293,0 -125.351,22.91 -125.351,52.168 0,3.39 0.722,6.687 2.109,9.875"></path><path id="path22" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 358.75,618.84 c 0,0 144.551,-54.758 144.551,-297.871 h -24.102 c 0,0 -2.187,205.886 -124.824,219.019 l 4.375,78.852"></path><path id="path24" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 735.313,618.84 c 0,0 -144.551,-54.758 -144.551,-297.871 h 24.101 c 0,0 2.188,205.886 124.832,219.019 l -4.382,78.852"></path><g id="g26"><g clip-path="url(#clipPath32)" id="g28"><g clip-path="url(#clipPath38)" id="g34"><path id="path48" style="fill:url(#radialGradient46);fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 536,621 v 1 h -11 v 1 h -6 v 1 h -7 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -3 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 3 h -1 v 3 h -1 v 2 h -1 v 3 h -1 v 4 h -1 v 3 h -1 v 4 h -1 v 4 h -1 v 5 h -1 v 6 h -1 v 7 h -1 v 11 h -1 v 21 h 1 v 11 h 1 v 7 h 1 v 6 h 1 v 5 h 1 v 4 h 1 v 4 h 1 v 3 h 1 v 4 h 1 v 3 h 1 v 2 h 1 v 3 h 1 v 3 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 3 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 7 v 1 h 7 v 1 h 44 v -1 h 6 v -1 h 7 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -6 h 1 v -7 h 1 v -10 h 1 v -25 h -1 v -10 h -1 v -7 h -1 v -6 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -7 v -1 h -6 v -1 h -11 v -1"></path></g></g></g></g></g>',2))])}const sp=ge(c8,[["render",f8]]),h8={},p8={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"};function m8(t,e){return l.openBlock(),l.createElementBlock("svg",p8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M1.875 10.5V12.0625C1.875 12.6094 1.44531 13 0.9375 13C0.390625 13 0 12.6094 0 12.0625V10.5C0 4.99219 4.45312 0.5 10 0.5C15.5078 0.5 20 4.99219 20 10.5V16.1641C20 18.0391 18.4375 19.6016 16.5625 19.6016L12.2266 19.5625C11.9141 20.1484 11.2891 20.5 10.625 20.5H9.375C8.32031 20.5 7.5 19.6797 7.5 18.625C7.5 17.6094 8.32031 16.75 9.375 16.75H10.625C11.2891 16.75 11.9141 17.1406 12.2266 17.6875L16.5625 17.7266C17.4219 17.7266 18.125 17.0234 18.125 16.1641V10.5C18.125 6.04688 14.4531 2.375 10 2.375C5.50781 2.375 1.875 6.04688 1.875 10.5ZM6.25 9.25C5.54688 9.25 5 9.83594 5 10.5V12.375C5 13.0781 5.54688 13.625 6.25 13.625V9.25ZM3.125 10.5C3.125 8.78125 4.49219 7.375 6.25 7.375H6.875C7.53906 7.375 8.125 7.96094 8.125 8.625V14.25C8.125 14.9531 7.53906 15.5 6.875 15.5H6.25C4.49219 15.5 3.125 14.1328 3.125 12.375V10.5ZM13.75 9.25V13.625C14.4141 13.625 15 13.0781 15 12.375V10.5C15 9.83594 14.4141 9.25 13.75 9.25ZM16.875 10.5V12.375C16.875 14.1328 15.4688 15.5 13.75 15.5H13.125C12.4219 15.5 11.875 14.9531 11.875 14.25V8.625C11.875 7.96094 12.4219 7.375 13.125 7.375H13.75C15.4688 7.375 16.875 8.78125 16.875 10.5Z"},null,-1)])])}const ap=ge(h8,[["render",m8]]),g8={},v8={class:"icon icon-share-screen",width:"12",height:"16",viewBox:"0 0 12 16",xmlns:"http://www.w3.org/2000/svg"};function y8(t,e){return l.openBlock(),l.createElementBlock("svg",v8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M-1.31134e-07 12.9961C-5.87372e-08 14.6523 1.34375 15.9961 3 15.9961L9 15.9961C10.6562 15.9961 12 14.6523 12 12.9961L12 10.3711C12 10.1836 11.8437 9.99609 11.625 9.99609L10.875 9.99609C10.6875 9.99609 10.5 10.1836 10.5 10.3711L10.5 12.9961C10.5 13.8398 9.84375 14.4961 9 14.4961L3 14.4961C2.1875 14.4961 1.5 13.8398 1.5 12.9961L1.5 10.3711C1.5 10.1836 1.34375 9.99609 1.125 9.99609L0.375 9.99609C0.1875 9.99609 -2.54072e-07 10.1836 -2.45877e-07 10.3711L-1.31134e-07 12.9961ZM0.625 5.77734L1.25 6.40234C1.375 6.55859 1.625 6.55859 1.78125 6.40234L5.1875 2.87109L5.1875 10.6211C5.1875 10.8398 5.375 10.9961 5.5625 10.9961L6.4375 10.9961C6.65625 10.9961 6.8125 10.8398 6.8125 10.6211L6.8125 2.87109L10.25 6.40234C10.4062 6.55859 10.6562 6.55859 10.7812 6.40234L11.4062 5.77734C11.5625 5.65234 11.5625 5.40234 11.4062 5.24609L6.28125 0.121093C6.125 -0.0351565 5.90625 -0.0351565 5.75 0.121093L0.625 5.24609C0.46875 5.40234 0.46875 5.65234 0.625 5.77734Z"},null,-1)])])}const lp=ge(g8,[["render",y8]]),b8={},C8={xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 18 18",width:"18",height:"18"};function E8(t,e){return l.openBlock(),l.createElementBlock("svg",C8,[...e[0]||(e[0]=[l.createElementVNode("g",{transform:"matrix(0.75,0,0,0.75,0,0)"},[l.createElementVNode("path",{d:"M6.750 6.000 A5.250 5.250 0 1 0 17.250 6.000 A5.250 5.250 0 1 0 6.750 6.000 Z",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),l.createElementVNode("path",{d:"M2.25,23.25a9.75,9.75,0,0,1,19.5,0",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})],-1)])])}const cp=ge(b8,[["render",E8]]),k8={},w8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"};function S8(t,e){return l.openBlock(),l.createElementBlock("svg",w8,[...e[0]||(e[0]=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#4D5875" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)])])}const dp=ge(k8,[["render",S8]]),A8={},x8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"};function T8(t,e){return l.openBlock(),l.createElementBlock("svg",x8,[...e[0]||(e[0]=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="#ABB0BE" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)])])}const jc=ge(A8,[["render",T8]]),I8={},_8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"};function N8(t,e){return l.openBlock(),l.createElementBlock("svg",_8,[...e[0]||(e[0]=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="#ABB0BE" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)])])}const Wc=ge(I8,[["render",N8]]),O8={},M8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"};function L8(t,e){return l.openBlock(),l.createElementBlock("svg",M8,[...e[0]||(e[0]=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#ABB0BE" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)])])}const Kc=ge(O8,[["render",L8]]),D8={},P8={class:"icon icon-triangle-down",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"8",viewBox:"0 0 12 8"};function B8(t,e){return l.openBlock(),l.createElementBlock("svg",P8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M11.071 2.414L6.414 7.071a1 1 0 0 1-1.414 0L.343 2.414A1 1 0 0 1 1.05.707h9.314a1 1 0 0 1 .707 1.707z"},null,-1)])])}const up=ge(D8,[["render",B8]]),R8={},$8={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F8(t,e){return l.openBlock(),l.createElementBlock("svg",$8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M38.5547 28.6992C39.7422 30.7773 38.2578 33.375 35.8086 33.375H4.11719C1.66797 33.375 0.183594 30.7773 1.29688 28.6992L17.1797 1.68359C17.8477 0.644531 18.8867 0.125 20 0.125C21.0391 0.125 22.0781 0.644531 22.7461 1.68359L38.5547 28.6992ZM4.85938 29.8125H35.0664L19.9258 4.05859L4.85938 29.8125ZM20 22.8359C21.2617 22.8359 22.3008 23.875 22.3008 25.1367C22.3008 26.3984 21.2617 27.4375 20 27.4375C18.6641 27.4375 17.625 26.3984 17.625 25.1367C17.625 23.875 18.6641 22.8359 20 22.8359ZM18.2188 11.4062C18.2188 10.4414 18.9609 9.625 20 9.625C20.9648 9.625 21.7812 10.4414 21.7812 11.4062V18.5312C21.7812 19.5703 20.9648 20.3125 20 20.3125C18.9609 20.3125 18.2188 19.5703 18.2188 18.5312V11.4062Z",fill:"#F65139"},null,-1)])])}const Yc=ge(R8,[["render",F8]]),z8={},U8={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"};function H8(t,e){return l.openBlock(),l.createElementBlock("svg",U8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1)])])}const Gc=ge(z8,[["render",H8]]),j8={},W8={class:"icon icon-videocall",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14"};function K8(t,e){return l.openBlock(),l.createElementBlock("svg",W8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M12.673.25c1.48 0 2.68 1.186 2.68 2.648V4.16l2.76-1.82a.733.733 0 0 1 1.13.502l.007.1v7.703a.73.73 0 0 1-1.035.657l-2.862-1.298v.598c0 1.462-1.2 2.648-2.68 2.648H2.93C1.45 13.25.25 12.064.25 10.602V2.898C.25 1.436 1.45.25 2.93.25h9.743zm0 1.444H2.93a1.21 1.21 0 0 0-1.217 1.204v7.704a1.21 1.21 0 0 0 1.217 1.204h9.744a1.21 1.21 0 0 0 1.218-1.204V5.53 2.898a1.21 1.21 0 0 0-1.218-1.204zm5.115 2.597l-2.435 1.605v2.519l2.435 1.104V4.291z"},null,-1)])])}const fp=ge(j8,[["render",K8]]),Y8={};function G8(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps(t.$attrs,{class:"icon icon-video-disabled",width:"23",height:"19",viewBox:"0 0 23 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M14.1719 4.1875C14.2422 4.1875 14.2773 4.22266 14.3125 4.25781V8.26562L16 9.56641V8.23047L19.9375 5.76953V12.6602L21.5898 13.9609C21.5898 13.8906 21.625 13.8555 21.625 13.7852V4.75C21.625 4.08203 21.0625 3.625 20.4648 3.625C20.2539 3.625 20.043 3.69531 19.832 3.83594L16 6.26172V4.1875C16 3.27344 15.1562 2.5 14.1719 2.5H6.96484L9.10938 4.1875H14.1719ZM22.5391 16.8086L17.0898 12.5898L14.3125 10.4102L4.29297 2.57031L4.22266 2.5L1.51562 0.390625C1.26953 0.179688 0.917969 0.25 0.707031 0.460938L0.355469 0.917969C0.179688 1.16406 0.214844 1.51562 0.460938 1.69141L2.00781 2.92188L3.37891 4.01172L21.4844 18.1445C21.6953 18.3203 22.082 18.2852 22.2578 18.0391L22.6094 17.6172C22.8203 17.3711 22.75 17.0195 22.5391 16.8086ZM3.16797 14.3125C3.09766 14.3125 3.0625 14.3125 3.0625 14.2773V5.875L1.375 4.57422V14.3477C1.375 15.2617 2.18359 16 3.16797 16H14.1719C14.6641 16 15.0859 15.8242 15.4023 15.543L13.8555 14.3125H3.16797Z"},null,-1)])],16)}const hp=ge(Y8,[["render",G8]]),Q8={},Z8={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-exclamation-triangle",viewBox:"0 0 16 16"};function J8(t,e){return l.openBlock(),l.createElementBlock("svg",Z8,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.15.15 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.2.2 0 0 1-.054.06.1.1 0 0 1-.066.017H1.146a.1.1 0 0 1-.066-.017.2.2 0 0 1-.054-.06.18.18 0 0 1 .002-.183L7.884 2.073a.15.15 0 0 1 .054-.057m1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767z"},null,-1),l.createElementVNode("path",{d:"M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"},null,-1)])])}const pp=ge(Q8,[["render",J8]]),X8={},q8={width:"162",height:"124",viewBox:"0 0 162 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-zorgkaart-nederland"};function V8(t,e){return l.openBlock(),l.createElementBlock("svg",q8,[...e[0]||(e[0]=[l.createStaticVNode('<path d="M61.5 38.1C60 38.1 58.8 36.9 58.8 35.4C58.8 33.9 60 32.7 61.5 32.7C63 32.7 64.2 33.9 64.2 35.4C64.2 36.9 63 38.1 61.5 38.1Z" fill="#F29018"></path><path d="M68.1 38.1C66.6 38.1 65.4 36.9 65.4 35.4C65.4 33.9 66.6 32.7 68.1 32.7C69.6 32.7 70.8 33.9 70.8 35.4C70.8 36.9 69.6 38.1 68.1 38.1Z" fill="#F29018"></path><path d="M74.6 38.1C73.1 38.1 71.9 36.9 71.9 35.4C71.9 33.9 73.1 32.7 74.6 32.7C76.1 32.7 77.3 33.9 77.3 35.4C77.3 36.9 76.1 38.1 74.6 38.1Z" fill="#F29018"></path><path d="M81.1 38.1C79.6 38.1 78.4 36.9 78.4 35.4C78.4 33.9 79.6 32.7 81.1 32.7C82.6 32.7 83.8 33.9 83.8 35.4C83.8 36.9 82.6 38.1 81.1 38.1Z" fill="#F29018"></path><path d="M61.5 44.6C60 44.6 58.8 43.4 58.8 41.9C58.8 40.4 60 39.2 61.5 39.2C63 39.2 64.2 40.4 64.2 41.9C64.2 43.4 63 44.6 61.5 44.6Z" fill="#F29018"></path><path d="M68.1 44.6C66.6 44.6 65.4 43.4 65.4 41.9C65.4 40.4 66.6 39.2 68.1 39.2C69.6 39.2 70.8 40.4 70.8 41.9C70.8 43.4 69.6 44.6 68.1 44.6Z" fill="#F29018"></path><path d="M74.6 44.6C73.1 44.6 71.9 43.4 71.9 41.9C71.9 40.4 73.1 39.2 74.6 39.2C76.1 39.2 77.3 40.4 77.3 41.9C77.3 43.4 76.1 44.6 74.6 44.6Z" fill="#F29018"></path><path d="M61.5 51.2C60 51.2 58.8 50 58.8 48.5C58.8 47 60 45.8 61.5 45.8C63 45.8 64.2 47 64.2 48.5C64.2 50 63 51.2 61.5 51.2Z" fill="#F29018"></path><path d="M68.1 51.2C66.6 51.2 65.4 50 65.4 48.5C65.4 47 66.6 45.8 68.1 45.8C69.6 45.8 70.8 47 70.8 48.5C70.8 50 69.6 51.2 68.1 51.2Z" fill="#F29018"></path><path d="M74.6 51.2C73.1 51.2 71.9 50 71.9 48.5C71.9 47 73.1 45.8 74.6 45.8C76.1 45.8 77.3 47 77.3 48.5C77.3 50 76.1 51.2 74.6 51.2Z" fill="#F29018"></path><path d="M61.5 57.7C60 57.7 58.8 56.5 58.8 55C58.8 53.5 60 52.3 61.5 52.3C63 52.3 64.2 53.5 64.2 55C64.2 56.5 63 57.7 61.5 57.7Z" fill="#F29018"></path><path d="M68.1 57.7C66.6 57.7 65.4 56.5 65.4 55C65.4 53.5 66.6 52.3 68.1 52.3C69.6 52.3 70.8 53.5 70.8 55C70.8 56.5 69.6 57.7 68.1 57.7Z" fill="#F29018"></path><path d="M74.6 57.7C73.1 57.7 71.9 56.5 71.9 55C71.9 53.5 73.1 52.3 74.6 52.3C76.1 52.3 77.3 53.5 77.3 55C77.3 56.5 76.1 57.7 74.6 57.7Z" fill="#F29018"></path><path d="M41.9 57.7C40.4 57.7 39.2 56.5 39.2 55C39.2 53.5 40.4 52.3 41.9 52.3C43.4 52.3 44.6 53.5 44.6 55C44.6 56.5 43.4 57.7 41.9 57.7Z" fill="#F29018"></path><path d="M35.4 57.7C33.9 57.7 32.7 56.5 32.7 55C32.7 53.5 33.9 52.3 35.4 52.3C36.9 52.3 38.1 53.5 38.1 55C38.1 56.5 36.9 57.7 35.4 57.7Z" fill="#F29018"></path><path d="M41.9 51.2C40.4 51.2 39.2 50 39.2 48.5C39.2 47 40.4 45.8 41.9 45.8C43.4 45.8 44.6 47 44.6 48.5C44.6 50 43.4 51.2 41.9 51.2Z" fill="#F29018"></path><path d="M35.4 51.2C33.9 51.2 32.7 50 32.7 48.5C32.7 47 33.9 45.8 35.4 45.8C36.9 45.8 38.1 47 38.1 48.5C38.1 50 36.9 51.2 35.4 51.2Z" fill="#F29018"></path><path d="M41.9 44.6C40.4 44.6 39.2 43.4 39.2 41.9C39.2 40.4 40.4 39.2 41.9 39.2C43.4 39.2 44.6 40.4 44.6 41.9C44.6 43.4 43.4 44.6 41.9 44.6Z" fill="#F29018"></path><path d="M35.4 44.6C33.9 44.6 32.7 43.4 32.7 41.9C32.7 40.4 33.9 39.2 35.4 39.2C36.9 39.2 38.1 40.4 38.1 41.9C38.1 43.4 36.9 44.6 35.4 44.6Z" fill="#F29018"></path><path d="M41.9 38.1C40.4 38.1 39.2 36.9 39.2 35.4C39.2 33.9 40.4 32.7 41.9 32.7C43.4 32.7 44.6 33.9 44.6 35.4C44.6 36.9 43.4 38.1 41.9 38.1Z" fill="#F29018"></path><path d="M35.4 38.1C33.9 38.1 32.7 36.9 32.7 35.4C32.7 33.9 33.9 32.7 35.4 32.7C36.9 32.7 38.1 33.9 38.1 35.4C38.1 36.9 36.9 38.1 35.4 38.1Z" fill="#F29018"></path><path d="M48.4 57.7C46.9 57.7 45.7 56.5 45.7 55C45.7 53.5 46.9 52.3 48.4 52.3C49.9 52.3 51.1 53.5 51.1 55C51.2 56.5 49.9 57.7 48.4 57.7Z" fill="#F29018"></path><path d="M55 57.7C53.5 57.7 52.3 56.5 52.3 55C52.3 53.5 53.5 52.3 55 52.3C56.5 52.3 57.7 53.5 57.7 55C57.7 56.5 56.5 57.7 55 57.7Z" fill="#F29018"></path><path d="M61.5 64.3C60 64.3 58.8 63.1 58.8 61.6C58.8 60.1 60 58.9 61.5 58.9C63 58.9 64.2 60.1 64.2 61.6C64.2 63 63 64.3 61.5 64.3Z" fill="#F29018"></path><path d="M68.1 64.3C66.6 64.3 65.4 63.1 65.4 61.6C65.4 60.1 66.6 58.9 68.1 58.9C69.6 58.9 70.8 60.1 70.8 61.6C70.8 63 69.6 64.3 68.1 64.3Z" fill="#F29018"></path><path d="M74.6 64.3C73.1 64.3 71.9 63.1 71.9 61.6C71.9 60.1 73.1 58.9 74.6 58.9C76.1 58.9 77.3 60.1 77.3 61.6C77.3 63 76.1 64.3 74.6 64.3Z" fill="#F29018"></path><path d="M41.9 64.3C40.4 64.3 39.2 63.1 39.2 61.6C39.2 60.1 40.4 58.9 41.9 58.9C43.4 58.9 44.6 60.1 44.6 61.6C44.6 63 43.4 64.3 41.9 64.3Z" fill="#F29018"></path><path d="M35.4 64.3C33.9 64.3 32.7 63.1 32.7 61.6C32.7 60.1 33.9 58.9 35.4 58.9C36.9 58.9 38.1 60 38.1 61.5C38.1 63 36.9 64.3 35.4 64.3Z" fill="#F29018"></path><path d="M28.8 64.3C27.3 64.3 26.1 63.1 26.1 61.6C26.1 60.1 27.3 58.9 28.8 58.9C30.3 58.9 31.5 60.1 31.5 61.6C31.5 63 30.3 64.3 28.8 64.3Z" fill="#F29018"></path><path d="M48.4 64.3C46.9 64.3 45.7 63.1 45.7 61.6C45.7 60.1 46.9 58.9 48.4 58.9C49.9 58.9 51.1 60.1 51.1 61.6C51.2 63 49.9 64.3 48.4 64.3Z" fill="#F29018"></path><path d="M55 64.3C53.5 64.3 52.3 63.1 52.3 61.6C52.3 60.1 53.5 58.9 55 58.9C56.5 58.9 57.7 60.1 57.7 61.6C57.7 63 56.5 64.3 55 64.3Z" fill="#F29018"></path><path d="M61.5 70.8C60 70.8 58.8 69.6 58.8 68.1C58.8 66.6 60 65.4 61.5 65.4C63 65.4 64.2 66.6 64.2 68.1C64.2 69.6 63 70.8 61.5 70.8Z" fill="#F29018"></path><path d="M68.1 70.8C66.6 70.8 65.4 69.6 65.4 68.1C65.4 66.6 66.6 65.4 68.1 65.4C69.6 65.4 70.8 66.6 70.8 68.1C70.8 69.6 69.6 70.8 68.1 70.8Z" fill="#F29018"></path><path d="M74.6 70.8C73.1 70.8 71.9 69.6 71.9 68.1C71.9 66.6 73.1 65.4 74.6 65.4C76.1 65.4 77.3 66.6 77.3 68.1C77.3 69.6 76.1 70.8 74.6 70.8Z" fill="#F29018"></path><path d="M41.9 70.8C40.4 70.8 39.2 69.6 39.2 68.1C39.2 66.6 40.4 65.4 41.9 65.4C43.4 65.4 44.6 66.6 44.6 68.1C44.6 69.6 43.4 70.8 41.9 70.8Z" fill="#F29018"></path><path d="M35.4 70.8C33.9 70.8 32.7 69.6 32.7 68.1C32.7 66.6 33.9 65.4 35.4 65.4C36.9 65.4 38.1 66.6 38.1 68.1C38.1 69.6 36.9 70.8 35.4 70.8Z" fill="#F29018"></path><path d="M28.8 70.8C27.3 70.8 26.1 69.6 26.1 68.1C26.1 66.6 27.3 65.4 28.8 65.4C30.3 65.4 31.5 66.6 31.5 68.1C31.5 69.6 30.3 70.8 28.8 70.8Z" fill="#F29018"></path><path d="M48.4 70.8C46.9 70.8 45.7 69.6 45.7 68.1C45.7 66.6 46.9 65.4 48.4 65.4C49.9 65.4 51.1 66.6 51.1 68.1C51.2 69.6 49.9 70.8 48.4 70.8Z" fill="#F29018"></path><path d="M55 70.8C53.5 70.8 52.3 69.6 52.3 68.1C52.3 66.6 53.5 65.4 55 65.4C56.5 65.4 57.7 66.6 57.7 68.1C57.7 69.6 56.5 70.8 55 70.8Z" fill="#F29018"></path><path d="M55 77.3C53.5 77.3 52.3 76.1 52.3 74.6C52.3 73.1 53.5 71.9 55 71.9C56.5 71.9 57.7 73.1 57.7 74.6C57.7 76.1 56.5 77.3 55 77.3Z" fill="#F29018"></path><path d="M61.5 77.3C60 77.3 58.8 76.1 58.8 74.6C58.8 73.1 60 71.9 61.5 71.9C63 71.9 64.2 73.1 64.2 74.6C64.2 76.1 63 77.3 61.5 77.3Z" fill="#F29018"></path><path d="M68.1 77.3C66.6 77.3 65.4 76.1 65.4 74.6C65.4 73.1 66.6 71.9 68.1 71.9C69.6 71.9 70.8 73.1 70.8 74.6C70.8 76.1 69.6 77.3 68.1 77.3Z" fill="#F29018"></path><path d="M35.4 77.3C33.9 77.3 32.7 76.1 32.7 74.6C32.7 73.1 33.9 71.9 35.4 71.9C36.9 71.9 38.1 73.1 38.1 74.6C38.1 76.1 36.9 77.3 35.4 77.3Z" fill="#F29018"></path><path d="M28.8 77.3C27.3 77.3 26.1 76.1 26.1 74.6C26.1 73.1 27.3 71.9 28.8 71.9C30.3 71.9 31.5 73.1 31.5 74.6C31.5 76.1 30.3 77.3 28.8 77.3Z" fill="#F29018"></path><path d="M22.3 77.3C20.8 77.3 19.6 76.1 19.6 74.6C19.6 73.1 20.8 71.9 22.3 71.9C23.8 71.9 25 73.1 25 74.6C25 76.1 23.8 77.3 22.3 77.3Z" fill="#F29018"></path><path d="M41.9 77.3C40.4 77.3 39.2 76.1 39.2 74.6C39.2 73.1 40.4 71.9 41.9 71.9C43.4 71.9 44.6 73.1 44.6 74.6C44.6 76.1 43.4 77.3 41.9 77.3Z" fill="#F29018"></path><path d="M48.4 77.3C46.9 77.3 45.7 76.1 45.7 74.6C45.7 73.1 46.9 71.9 48.4 71.9C49.9 71.9 51.1 73.1 51.1 74.6C51.2 76.1 49.9 77.3 48.4 77.3Z" fill="#F29018"></path><path d="M55 83.9C53.5 83.9 52.3 82.7 52.3 81.2C52.3 79.7 53.5 78.5 55 78.5C56.5 78.5 57.7 79.7 57.7 81.2C57.7 82.7 56.5 83.9 55 83.9Z" fill="#F29018"></path><path d="M61.5 83.9C60 83.9 58.8 82.7 58.8 81.2C58.8 79.7 60 78.5 61.5 78.5C63 78.5 64.2 79.7 64.2 81.2C64.2 82.7 63 83.9 61.5 83.9Z" fill="#F29018"></path><path d="M68.1 83.9C66.6 83.9 65.4 82.7 65.4 81.2C65.4 79.7 66.6 78.5 68.1 78.5C69.6 78.5 70.8 79.7 70.8 81.2C70.8 82.7 69.6 83.9 68.1 83.9Z" fill="#F29018"></path><path d="M35.4 83.9C33.9 83.9 32.7 82.7 32.7 81.2C32.7 79.7 33.9 78.5 35.4 78.5C36.9 78.5 38.1 79.7 38.1 81.2C38.1 82.7 36.9 83.9 35.4 83.9Z" fill="#F29018"></path><path d="M28.8 83.9C27.3 83.9 26.1 82.7 26.1 81.2C26.1 79.7 27.3 78.5 28.8 78.5C30.3 78.5 31.5 79.7 31.5 81.2C31.5 82.7 30.3 83.9 28.8 83.9Z" fill="#F29018"></path><path d="M22.3 83.9C20.8 83.9 19.6 82.7 19.6 81.2C19.6 79.7 20.8 78.5 22.3 78.5C23.8 78.5 25 79.7 25 81.2C25 82.7 23.8 83.9 22.3 83.9Z" fill="#F29018"></path><path d="M41.9 83.9C40.4 83.9 39.2 82.7 39.2 81.2C39.2 79.7 40.4 78.5 41.9 78.5C43.4 78.5 44.6 79.7 44.6 81.2C44.6 82.7 43.4 83.9 41.9 83.9Z" fill="#F29018"></path><path d="M48.4 83.9C46.9 83.9 45.7 82.7 45.7 81.2C45.7 79.7 46.9 78.5 48.4 78.5C49.9 78.5 51.1 79.7 51.1 81.2C51.2 82.7 49.9 83.9 48.4 83.9Z" fill="#F29018"></path><path d="M55 90.4C53.5 90.4 52.3 89.2 52.3 87.7C52.3 86.2 53.5 85 55 85C56.5 85 57.7 86.2 57.7 87.7C57.7 89.2 56.5 90.4 55 90.4Z" fill="#F29018"></path><path d="M61.5 90.4C60 90.4 58.8 89.2 58.8 87.7C58.8 86.2 60 85 61.5 85C63 85 64.2 86.2 64.2 87.7C64.2 89.2 63 90.4 61.5 90.4Z" fill="#F29018"></path><path d="M68.1 90.4C66.6 90.4 65.4 89.2 65.4 87.7C65.4 86.2 66.6 85 68.1 85C69.6 85 70.8 86.2 70.8 87.7C70.8 89.2 69.6 90.4 68.1 90.4Z" fill="#F29018"></path><path d="M74.6 90.4C73.1 90.4 71.9 89.2 71.9 87.7C71.9 86.2 73.1 85 74.6 85C76.1 85 77.3 86.2 77.3 87.7C77.3 89.2 76.1 90.4 74.6 90.4Z" fill="#F29018"></path><path d="M35.4 90.4C33.9 90.4 32.7 89.2 32.7 87.7C32.7 86.2 33.9 85 35.4 85C36.9 85 38.1 86.2 38.1 87.7C38.1 89.2 36.9 90.4 35.4 90.4Z" fill="#F29018"></path><path d="M28.8 90.4C27.3 90.4 26.1 89.2 26.1 87.7C26.1 86.2 27.3 85 28.8 85C30.3 85 31.5 86.2 31.5 87.7C31.5 89.2 30.3 90.4 28.8 90.4Z" fill="#F29018"></path><path d="M22.3 90.4C20.8 90.4 19.6 89.2 19.6 87.7C19.6 86.2 20.8 85 22.3 85C23.8 85 25 86.2 25 87.7C25 89.2 23.8 90.4 22.3 90.4Z" fill="#F29018"></path><path d="M15.8 90.4C14.3 90.4 13.1 89.2 13.1 87.7C13.1 86.2 14.3 85 15.8 85C17.3 85 18.5 86.2 18.5 87.7C18.5 89.2 17.3 90.4 15.8 90.4Z" fill="#F29018"></path><path d="M41.9 90.4C40.4 90.4 39.2 89.2 39.2 87.7C39.2 86.2 40.4 85 41.9 85C43.4 85 44.6 86.2 44.6 87.7C44.6 89.2 43.4 90.4 41.9 90.4Z" fill="#F29018"></path><path d="M48.4 90.4C46.9 90.4 45.7 89.2 45.7 87.7C45.7 86.2 46.9 85 48.4 85C49.9 85 51.1 86.2 51.1 87.7C51.2 89.2 49.9 90.4 48.4 90.4Z" fill="#F29018"></path><path d="M55 96.9C53.5 96.9 52.3 95.7 52.3 94.2C52.3 92.7 53.5 91.5 55 91.5C56.5 91.5 57.7 92.7 57.7 94.2C57.7 95.7 56.5 96.9 55 96.9Z" fill="#F29018"></path><path d="M61.5 96.9C60 96.9 58.8 95.7 58.8 94.2C58.8 92.7 60 91.5 61.5 91.5C63 91.5 64.2 92.7 64.2 94.2C64.2 95.7 63 96.9 61.5 96.9Z" fill="#F29018"></path><path d="M68.1 96.9C66.6 96.9 65.4 95.7 65.4 94.2C65.4 92.7 66.6 91.5 68.1 91.5C69.6 91.5 70.8 92.7 70.8 94.2C70.8 95.7 69.6 96.9 68.1 96.9Z" fill="#F29018"></path><path d="M74.6 96.9C73.1 96.9 71.9 95.7 71.9 94.2C71.9 92.7 73.1 91.5 74.6 91.5C76.1 91.5 77.3 92.7 77.3 94.2C77.3 95.7 76.1 96.9 74.6 96.9Z" fill="#F29018"></path><path d="M68.1 103.5C66.6 103.5 65.4 102.3 65.4 100.8C65.4 99.3 66.6 98.1 68.1 98.1C69.6 98.1 70.8 99.3 70.8 100.8C70.8 102.3 69.6 103.5 68.1 103.5Z" fill="#F29018"></path><path d="M74.6 103.5C73.1 103.5 71.9 102.3 71.9 100.8C71.9 99.3 73.1 98.1 74.6 98.1C76.1 98.1 77.3 99.3 77.3 100.8C77.3 102.3 76.1 103.5 74.6 103.5Z" fill="#F29018"></path><path d="M68.1 116.6C66.6 116.6 65.4 115.4 65.4 113.9C65.4 112.4 66.6 111.2 68.1 111.2C69.6 111.2 70.8 112.4 70.8 113.9C70.8 115.3 69.6 116.6 68.1 116.6Z" fill="#F29018"></path><path d="M74.6 116.6C73.1 116.6 71.9 115.4 71.9 113.9C71.9 112.4 73.1 111.2 74.6 111.2C76.1 111.2 77.3 112.4 77.3 113.9C77.3 115.3 76.1 116.6 74.6 116.6Z" fill="#F29018"></path><path d="M74.6 110C73.1 110 71.9 108.8 71.9 107.3C71.9 105.8 73.1 104.6 74.6 104.6C76.1 104.6 77.3 105.8 77.3 107.3C77.3 108.8 76.1 110 74.6 110Z" fill="#F29018"></path><path d="M68.1 123.1C66.6 123.1 65.4 121.9 65.4 120.4C65.4 118.9 66.6 117.7 68.1 117.7C69.6 117.7 70.8 118.9 70.8 120.4C70.8 121.9 69.6 123.1 68.1 123.1Z" fill="#F29018"></path><path d="M74.6 123.1C73.1 123.1 71.9 121.9 71.9 120.4C71.9 118.9 73.1 117.7 74.6 117.7C76.1 117.7 77.3 118.9 77.3 120.4C77.3 121.9 76.1 123.1 74.6 123.1Z" fill="#F29018"></path><path d="M35.4 96.9C33.9 96.9 32.7 95.7 32.7 94.2C32.7 92.7 33.9 91.5 35.4 91.5C36.9 91.5 38.1 92.7 38.1 94.2C38.1 95.7 36.9 96.9 35.4 96.9Z" fill="#F29018"></path><path d="M28.8 96.9C27.3 96.9 26.1 95.7 26.1 94.2C26.1 92.7 27.3 91.5 28.8 91.5C30.3 91.5 31.5 92.7 31.5 94.2C31.5 95.7 30.3 96.9 28.8 96.9Z" fill="#F29018"></path><path d="M22.3 96.9C20.8 96.9 19.6 95.7 19.6 94.2C19.6 92.7 20.8 91.5 22.3 91.5C23.8 91.5 25 92.7 25 94.2C25 95.7 23.8 96.9 22.3 96.9Z" fill="#F29018"></path><path d="M15.8 96.9C14.3 96.9 13.1 95.7 13.1 94.2C13.1 92.7 14.3 91.5 15.8 91.5C17.3 91.5 18.5 92.7 18.5 94.2C18.5 95.7 17.3 96.9 15.8 96.9Z" fill="#F29018"></path><path d="M9.2 96.9C7.7 96.9 6.5 95.7 6.5 94.2C6.5 92.7 7.7 91.5 9.2 91.5C10.7 91.5 11.9 92.7 11.9 94.2C11.9 95.7 10.7 96.9 9.2 96.9Z" fill="#F29018"></path><path d="M22.3 103.5C20.8 103.5 19.6 102.3 19.6 100.8C19.6 99.3 20.8 98.1 22.3 98.1C23.8 98.1 25 99.3 25 100.8C25 102.3 23.8 103.5 22.3 103.5Z" fill="#F29018"></path><path d="M15.8 103.5C14.3 103.5 13.1 102.3 13.1 100.8C13.1 99.3 14.3 98.1 15.8 98.1C17.3 98.1 18.5 99.3 18.5 100.8C18.5 102.3 17.3 103.5 15.8 103.5Z" fill="#F29018"></path><path d="M9.2 103.5C7.7 103.5 6.5 102.3 6.5 100.8C6.5 99.3 7.7 98.1 9.2 98.1C10.7 98.1 11.9 99.3 11.9 100.8C11.9 102.3 10.7 103.5 9.2 103.5Z" fill="#F29018"></path><path d="M2.7 103.5C1.2 103.5 0 102.3 0 100.8C0 99.3 1.2 98.1 2.7 98.1C4.2 98.1 5.4 99.3 5.4 100.8C5.4 102.3 4.2 103.5 2.7 103.5Z" fill="#F29018"></path><path d="M41.9 96.9C40.4 96.9 39.2 95.7 39.2 94.2C39.2 92.7 40.4 91.5 41.9 91.5C43.4 91.5 44.6 92.7 44.6 94.2C44.6 95.7 43.4 96.9 41.9 96.9Z" fill="#F29018"></path><path d="M48.4 96.9C46.9 96.9 45.7 95.7 45.7 94.2C45.7 92.7 46.9 91.5 48.4 91.5C49.9 91.5 51.1 92.7 51.1 94.2C51.2 95.7 49.9 96.9 48.4 96.9Z" fill="#F29018"></path><path d="M81.1 44.6C79.6 44.6 78.4 43.4 78.4 41.9C78.4 40.4 79.6 39.2 81.1 39.2C82.6 39.2 83.8 40.4 83.8 41.9C83.9 43.4 82.6 44.6 81.1 44.6Z" fill="#F29018"></path><path d="M41.9 31.6C40.4 31.6 39.2 30.4 39.2 28.9C39.2 27.4 40.4 26.2 41.9 26.2C43.4 26.2 44.6 27.4 44.6 28.9C44.6 30.4 43.4 31.6 41.9 31.6Z" fill="#F29018"></path><path d="M61.5 31.6C60 31.6 58.8 30.4 58.8 28.9C58.8 27.4 60 26.2 61.5 26.2C63 26.2 64.2 27.4 64.2 28.9C64.2 30.4 63 31.6 61.5 31.6Z" fill="#F29018"></path><path d="M68.1 31.6C66.6 31.6 65.4 30.4 65.4 28.9C65.4 27.4 66.6 26.2 68.1 26.2C69.6 26.2 70.8 27.4 70.8 28.9C70.8 30.4 69.6 31.6 68.1 31.6Z" fill="#F29018"></path><path d="M74.6 31.6C73.1 31.6 71.9 30.4 71.9 28.9C71.9 27.4 73.1 26.2 74.6 26.2C76.1 26.2 77.3 27.4 77.3 28.9C77.3 30.4 76.1 31.6 74.6 31.6Z" fill="#F29018"></path><path d="M81.1 31.6C79.6 31.6 78.4 30.4 78.4 28.9C78.4 27.4 79.6 26.2 81.1 26.2C82.6 26.2 83.8 27.4 83.8 28.9C83.8 30.4 82.6 31.6 81.1 31.6Z" fill="#F29018"></path><path d="M61.5 25C60 25 58.8 23.8 58.8 22.3C58.8 20.8 60 19.6 61.5 19.6C63 19.6 64.2 20.8 64.2 22.3C64.2 23.8 63 25 61.5 25Z" fill="#F29018"></path><path d="M55 31.6C53.5 31.6 52.3 30.4 52.3 28.9C52.3 27.4 53.5 26.2 55 26.2C56.5 26.2 57.7 27.4 57.7 28.9C57.7 30.4 56.5 31.6 55 31.6Z" fill="#F29018"></path><path d="M55 25C53.5 25 52.3 23.8 52.3 22.3C52.3 20.8 53.5 19.6 55 19.6C56.5 19.6 57.7 20.8 57.7 22.3C57.7 23.8 56.5 25 55 25Z" fill="#F29018"></path><path d="M41.9 18.5C40.4 18.5 39.2 17.3 39.2 15.8C39.2 14.3 40.4 13.1 41.9 13.1C43.4 13.1 44.6 14.3 44.6 15.8C44.6 17.3 43.4 18.5 41.9 18.5Z" fill="#F29018"></path><path d="M48.4 11.9C46.9 11.9 45.7 10.7 45.7 9.2C45.7 7.7 46.9 6.5 48.4 6.5C49.9 6.5 51.1 7.7 51.1 9.2C51.2 10.7 49.9 11.9 48.4 11.9Z" fill="#F29018"></path><path d="M55 5.4C53.5 5.4 52.3 4.2 52.3 2.7C52.3 1.2 53.5 0 55 0C56.5 0 57.7 1.2 57.7 2.7C57.7 4.2 56.5 5.4 55 5.4Z" fill="#F29018"></path><path d="M68.1 25C66.6 25 65.4 23.8 65.4 22.3C65.4 20.8 66.6 19.6 68.1 19.6C69.6 19.6 70.8 20.8 70.8 22.3C70.8 23.8 69.6 25 68.1 25Z" fill="#F29018"></path><path d="M74.6 25C73.1 25 71.9 23.8 71.9 22.3C71.9 20.8 73.1 19.6 74.6 19.6C76.1 19.6 77.3 20.8 77.3 22.3C77.3 23.8 76.1 25 74.6 25Z" fill="#F29018"></path><path d="M81.1 25C79.6 25 78.4 23.8 78.4 22.3C78.4 20.8 79.6 19.6 81.1 19.6C82.6 19.6 83.8 20.8 83.8 22.3C83.8 23.8 82.6 25 81.1 25Z" fill="#F29018"></path><path d="M61.5 18.5C60 18.5 58.8 17.3 58.8 15.8C58.8 14.3 60 13.1 61.5 13.1C63 13.1 64.2 14.3 64.2 15.8C64.2 17.3 63 18.5 61.5 18.5Z" fill="#F29018"></path><path d="M68.1 18.5C66.6 18.5 65.4 17.3 65.4 15.8C65.4 14.3 66.6 13.1 68.1 13.1C69.6 13.1 70.8 14.3 70.8 15.8C70.8 17.3 69.6 18.5 68.1 18.5Z" fill="#F29018"></path><path d="M74.6 18.5C73.1 18.5 71.9 17.3 71.9 15.8C71.9 14.3 73.1 13.1 74.6 13.1C76.1 13.1 77.3 14.3 77.3 15.8C77.3 17.3 76.1 18.5 74.6 18.5Z" fill="#F29018"></path><path d="M81.1 18.5C79.6 18.5 78.4 17.3 78.4 15.8C78.4 14.3 79.6 13.1 81.1 13.1C82.6 13.1 83.8 14.3 83.8 15.8C83.8 17.3 82.6 18.5 81.1 18.5Z" fill="#F29018"></path><path d="M87.7 31.6C86.2 31.6 85 30.4 85 28.9C85 27.4 86.2 26.2 87.7 26.2C89.2 26.2 90.4 27.4 90.4 28.9C90.4 30.4 89.2 31.6 87.7 31.6Z" fill="#F29018"></path><path d="M87.7 25C86.2 25 85 23.8 85 22.3C85 20.8 86.2 19.6 87.7 19.6C89.2 19.6 90.4 20.8 90.4 22.3C90.4 23.8 89.2 25 87.7 25Z" fill="#F29018"></path><path d="M87.7 18.5C86.2 18.5 85 17.3 85 15.8C85 14.3 86.2 13.1 87.7 13.1C89.2 13.1 90.4 14.3 90.4 15.8C90.4 17.3 89.2 18.5 87.7 18.5Z" fill="#F29018"></path><path d="M68.1 11.9C66.6 11.9 65.4 10.7 65.4 9.2C65.4 7.7 66.6 6.5 68.1 6.5C69.6 6.5 70.8 7.7 70.8 9.2C70.8 10.7 69.6 11.9 68.1 11.9Z" fill="#F29018"></path><path d="M74.6 11.9C73.1 11.9 71.9 10.7 71.9 9.2C71.9 7.7 73.1 6.5 74.6 6.5C76.1 6.5 77.3 7.7 77.3 9.2C77.3 10.7 76.1 11.9 74.6 11.9Z" fill="#F29018"></path><path d="M81.1 11.9C79.6 11.9 78.4 10.7 78.4 9.2C78.4 7.7 79.6 6.5 81.1 6.5C82.6 6.5 83.8 7.7 83.8 9.2C83.9 10.7 82.6 11.9 81.1 11.9Z" fill="#F29018"></path><path d="M87.7 11.9C86.2 11.9 85 10.7 85 9.2C85 7.7 86.2 6.5 87.7 6.5C89.2 6.5 90.4 7.7 90.4 9.2C90.4 10.7 89.2 11.9 87.7 11.9Z" fill="#F29018"></path><path d="M94.2 25C92.7 25 91.5 23.8 91.5 22.3C91.5 20.8 92.7 19.6 94.2 19.6C95.7 19.6 96.9 20.8 96.9 22.3C96.9 23.8 95.7 25 94.2 25Z" fill="#F29018"></path><path d="M94.2 18.5C92.7 18.5 91.5 17.3 91.5 15.8C91.5 14.3 92.7 13.1 94.2 13.1C95.7 13.1 96.9 14.3 96.9 15.8C96.9 17.3 95.7 18.5 94.2 18.5Z" fill="#F29018"></path><path d="M135.1 58.6V61.6C135.1 61.6 135.1 64.6 132.1 64.6H120.1V75V76.6C120.1 76.7 120.1 76.8 120.1 76.9C120.1 77 120.1 77 120.1 77.1C120 77.8 119.8 78.3 119.4 78.6C119.4 78.6 119.4 78.7 119.3 78.7C119.2 78.8 119.1 78.9 119 79C118.7 79.3 118.3 79.5 117.7 79.6C117.3 79.7 117.1 79.7 117.1 79.7H114.1C114.1 79.7 113.8 79.7 113.5 79.6C112.9 79.5 112.5 79.3 112.2 79C112.1 78.9 112 78.8 111.9 78.7C111.9 78.7 111.9 78.6 111.8 78.6C111.5 78.2 111.2 77.7 111.1 77.1C111.1 77 111.1 77 111.1 76.9C111.1 76.8 111.1 76.7 111.1 76.6V75V64.6H99.1C96.1 64.6 96.1 61.6 96.1 61.6V58.6C96.1 55.6 99.1 55.6 99.1 55.6H111.1V45.5V43.7C111.1 43.7 111.1 43.4 111.2 43C111.3 42.5 111.5 42.1 111.7 41.8C111.8 41.7 111.9 41.6 112 41.5L112.1 41.4C112.4 41.1 112.9 40.9 113.5 40.8C113.8 40.7 114 40.7 114.1 40.7H117.1C117.1 40.7 117.4 40.7 117.7 40.8C118.3 40.9 118.8 41.1 119.1 41.4L119.2 41.5C119.3 41.6 119.4 41.7 119.5 41.8C119.8 42.1 119.9 42.5 120 43C120.1 43.4 120.1 43.7 120.1 43.7V45.5V55.6H132.1C132.1 55.6 135.1 55.6 135.1 58.6Z" fill="#F29018"></path><path d="M132.1 83.9C119.1 92.9 101.2 89.6 92.3 76.6C83.4 63.6 86.6 45.7 99.6 36.8C112.6 27.8 130.5 31.1 139.4 44.1C148.3 57.1 145.1 74.9 132.1 83.9ZM149.2 37.3C136.5 18.9 111.2 14.2 92.8 27C74.4 39.7 69.7 65 82.5 83.4C93.8 99.8 115 105.2 132.5 97.4L148.1 120C150.4 123.3 154.9 124.1 158.3 121.8C161.6 119.5 162.5 115 160.2 111.7L144.5 89C158.1 75.4 160.5 53.6 149.2 37.3Z" fill="#110E72"></path>',117)])])}const mp=ge(X8,[["render",V8]]),sa={PRIMARY:"primary"},e6={key:0,class:"b-d-alert-title"},Vr=l.defineComponent({__name:"BDAlert",props:{variant:{default:sa.PRIMARY},title:{default:""}},setup(t){const e=t,n=l.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value),role:"alert"},[t.title?(l.openBlock(),l.createElementBlock("div",e6,[l.createVNode(l.unref(mr)),l.createElementVNode("span",null,[l.createElementVNode("strong",null,l.toDisplayString(e.title),1)])])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}}),t6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const n6=t=>typeof t<"u",r6=Object.prototype.toString,o6=t=>r6.call(t)==="[object Object]",gp=()=>{};function i6(t,e){function n(...r){return new Promise((o,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return n}function s6(t,e={}){let n,r,o=gp;const i=a=>{clearTimeout(a),o(),o=gp};let s;return a=>{const d=l.toValue(t),u=l.toValue(e.maxWait);return n&&i(n),d<=0||u!==void 0&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(a())):new Promise((f,h)=>{o=e.rejectOnCancel?h:f,s=a,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(s())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,f(a())},d)})}}function Qc(t){return Array.isArray(t)?t:[t]}function a6(t,e=200,n={}){return i6(s6(e,n),t)}function l6(t,e,n){return l.watch(t,e,{...n,immediate:!0})}const c6=t6?window:void 0;function vp(t){var e;const n=l.toValue(t);return(e=n?.$el)!==null&&e!==void 0?e:n}function yp(...t){const e=(r,o,i,s)=>(r.addEventListener(o,i,s),()=>r.removeEventListener(o,i,s)),n=l.computed(()=>{const r=Qc(l.toValue(t[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return l6(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>vp(i)))!==null&&r!==void 0?r:[c6].filter(i=>i!=null),Qc(l.toValue(n.value?t[1]:t[0])),Qc(l.unref(n.value?t[2]:t[1])),l.toValue(n.value?t[3]:t[2])]},([r,o,i,s],c,a)=>{if(!r?.length||!o?.length||!i?.length)return;const d=o6(s)?{...s}:s,u=r.flatMap(f=>o.flatMap(h=>i.map(p=>e(f,h,p,d))));a(()=>{u.forEach(f=>f())})},{flush:"post"})}function d6(t){return JSON.parse(JSON.stringify(t))}function u6(t,e={}){const{initialValue:n=!1,focusVisible:r=!1,preventScroll:o=!1}=e,i=l.shallowRef(!1),s=l.computed(()=>vp(t)),c={passive:!0};yp(s,"focus",d=>{var u,f;(!r||!((u=(f=d.target).matches)===null||u===void 0)&&u.call(f,":focus-visible"))&&(i.value=!0)},c),yp(s,"blur",()=>i.value=!1,c);const a=l.computed({get:()=>i.value,set(d){var u,f;!d&&i.value?(u=s.value)===null||u===void 0||u.blur():d&&!i.value&&((f=s.value)===null||f===void 0||f.focus({preventScroll:o}))}});return l.watch(s,()=>{a.value=n},{immediate:!0,flush:"post"}),{focused:a}}function eo(t,e,n,r={}){var o,i;const{clone:s=!1,passive:c=!1,eventName:a,deep:d=!1,defaultValue:u,shouldEmit:f}=r,h=l.getCurrentInstance(),p=n||h?.emit||(h==null||(o=h.$emit)===null||o===void 0?void 0:o.bind(h))||(h==null||(i=h.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(h?.proxy));let m=a;m=m||`update:${e.toString()}`;const g=b=>s?typeof s=="function"?s(b):d6(b):b,v=()=>n6(t[e])?g(t[e]):u,y=b=>{f?f(b)&&p(m,b):p(m,b)};if(c){const b=l.ref(v());let E=!1;return l.watch(()=>t[e],C=>{E||(E=!0,b.value=g(C),l.nextTick(()=>E=!1))}),l.watch(b,C=>{!E&&(C!==t[e]||d)&&y(C)},{deep:d}),b}else return l.computed({get(){return v()},set(b){y(b)}})}const f6={class:"bd-zoom-slider d-flex"},h6=["max"],Zc=l.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=eo(n,"modelValue",e);function i(){o.value!==0&&o.value--}function s(){o.value<n.maxValue&&o.value++}return(c,a)=>(l.openBlock(),l.createElementBlock("div",f6,[(l.openBlock(),l.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:i},[...a[1]||(a[1]=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)])])),l.withDirectives(l.createElementVNode("input",{type:"range","onUpdate:modelValue":a[0]||(a[0]=d=>l.isRef(o)?o.value=d:null),min:"0",max:t.maxValue,class:"bd-zoom-slider-input"},null,8,h6),[[l.vModelText,l.unref(o)]]),(l.openBlock(),l.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:s},[...a[2]||(a[2]=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)])]))]))}}),p6={class:"bd-profile-picture"},m6=["src","alt"],Ni=l.defineComponent({__name:"BDProfileImage",props:{src:{default:""},username:{default:null},size:{default:at.LG},linkText:{default:null}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>`${n.username?`${n.username}'s `:""}profielfoto`),i=()=>{r("click")};return(s,c)=>(l.openBlock(),l.createElementBlock("div",p6,[l.createElementVNode("div",{class:l.normalizeClass(["rounded-circle",n.size])},[l.createElementVNode("img",{src:n.src,alt:o.value},null,8,m6)],2),n.linkText?(l.openBlock(),l.createBlock(Re,{key:0,variant:"link",onClick:i,textContent:l.toDisplayString(n.linkText)},null,8,["textContent"])):l.createCommentVNode("",!0)]))}});for(var to=256,bp=[],Cp=256,aa;to--;)bp[to]=(to+256).toString(16).substring(1);function Ep(t){var e=0,n=11;if(!aa||to+n>Cp*2)for(aa="",to=0;e<Cp;e++)aa+=bp[Math.random()*256|0];return aa.substring(to,to+++n)}function zo(){return{uniqueIdentifier:l.ref(Ep())}}const g6=["id"],v6={key:0},la=l.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(t){const{uniqueIdentifier:e}=zo(),n=e.value,r=t,o=l.computed(()=>({"bd-card card":!0,[`${r.class}`]:r.class,"no-body":r.noBody})),i=l.computed(()=>({"card-header":!0,"no-title":!r.title,[`${r.headerClass}`]:r.headerClass,[`${r.headerVariant}`]:r.headerVariant})),s=l.computed(()=>({"card-body":!0,[`${r.bodyClass}`]:r.bodyClass}));return(c,a)=>(l.openBlock(),l.createElementBlock("div",{id:l.unref(n),class:l.normalizeClass(o.value)},[!t.noHeader||t.noBody?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(i.value)},[l.renderSlot(c.$slots,"header",{},()=>[t.title?(l.openBlock(),l.createElementBlock("h2",v6,l.toDisplayString(t.title),1)):l.createCommentVNode("",!0)])],2)):l.createCommentVNode("",!0),t.noBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(s.value)},[l.renderSlot(c.$slots,"body")],2))],10,g6))}}),y6={key:0},b6={class:"bd-collapsable-card__actions"},C6=["data-bs-target","aria-expanded"],Jc=l.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},collapseOn:{default:null},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(t){const{uniqueIdentifier:e}=zo(),n=e.value,r=t,o=l.computed(()=>`bd-collapsable-card__collapse-${n}`),i=l.computed(()=>({"d-block":[at.SM,at.MD].includes(r.showOn.toLowerCase()),"d-md-none":r.showOn.toLowerCase()==at.SM,"d-lg-none":r.showOn.toLowerCase()==at.MD})),s=l.computed(()=>{let p={"round-corners-sm":r.showOn.toLowerCase()==at.SM,"round-corners-md":r.showOn.toLowerCase()==at.MD,"is-disabled":r.disabled,"round-corners":!r.visible};return Object.keys(p).filter(m=>p[m]).join(" ")}),c=l.computed(()=>r.collapseOn?u.value>=d:!0),a=l.computed(()=>{let p={show:c.value,collapse:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!r.visible||r.disabled,"open-collapse-lg":r.visible&&[at.SM,at.MD].includes(r.showOn.toLowerCase()),"open-collapse-md":r.showOn.toLowerCase()==at.SM&&r.visible};return Object.keys(p).filter(m=>p[m]).join(" ")}),d=h(),u=l.ref(0);l.onMounted(()=>{f(),window.addEventListener("resize",f)}),l.onUnmounted(()=>{window.removeEventListener("resize",f)});function f(){u.value=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}function h(){if(!r.collapseOn)return 0;switch(r.collapseOn.toLowerCase()){case at.XS:return 576;case at.SM:return 768;case at.MD:return 992;case at.LG:return 1200;case at.XL:return 1400;default:return 0}}return(p,m)=>(l.openBlock(),l.createBlock(la,{class:"bd-collapsable-card",title:t.title,"header-class":s.value,"body-class":a.value},{header:l.withCtx(()=>[t.title?(l.openBlock(),l.createElementBlock("h2",y6,l.toDisplayString(t.title),1)):l.createCommentVNode("",!0),l.createElementVNode("div",b6,[l.renderSlot(p.$slots,"action"),!t.disabled&&t.visible?(l.openBlock(),l.createElementBlock("button",{key:0,class:l.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":c.value},[l.createVNode(l.unref(ta))],10,C6)):l.createCommentVNode("",!0)])]),body:l.withCtx(()=>[l.renderSlot(p.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});function In(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const kp={};function E6(t){kp[t]||(kp[t]=!0,In(t))}const Yn=typeof window<"u";let Zt,no;if(process.env.NODE_ENV!=="production"){const t=Yn&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(Zt=e=>{t.mark(e)},no=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const k6=/\{([0-9a-zA-Z]+)\}/g;function ca(t,...e){return e.length===1&&Ue(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(k6,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const Gn=(t,e=!1)=>e?Symbol.for(t):Symbol(t),w6=(t,e,n)=>S6({l:t,k:e,s:n}),S6=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),gt=t=>typeof t=="number"&&isFinite(t),A6=t=>Xc(t)==="[object Date]",da=t=>Xc(t)==="[object RegExp]",ua=t=>He(t)&&Object.keys(t).length===0,vt=Object.assign,x6=Object.create,We=(t=null)=>x6(t);let wp;const ro=()=>wp||(wp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:We());function Sp(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Ap(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function T6(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,o,i)=>`${o}="${Ap(i)}"`),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,o,i)=>`${o}='${Ap(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(process.env.NODE_ENV!=="production"&&In("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{t=t.replace(r,"$1javascript:")}),t}const I6=Object.prototype.hasOwnProperty;function yn(t,e){return I6.call(t,e)}const it=Array.isArray,Je=t=>typeof t=="function",Ee=t=>typeof t=="string",st=t=>typeof t=="boolean",Ue=t=>t!==null&&typeof t=="object",_6=t=>Ue(t)&&Je(t.then)&&Je(t.catch),xp=Object.prototype.toString,Xc=t=>xp.call(t),He=t=>Xc(t)==="[object Object]",N6=t=>t==null?"":it(t)||He(t)&&t.toString===xp?JSON.stringify(t,null,2):String(t);function qc(t,e=""){return t.reduce((n,r,o)=>o===0?n+r:n+e+r,"")}const Tp=2;function O6(t,e=0,n=t.length){const r=t.split(/\r?\n/);let o=0;const i=[];for(let s=0;s<r.length;s++)if(o+=r[s].length+1,o>=e){for(let c=s-Tp;c<=s+Tp||n>o;c++){if(c<0||c>=r.length)continue;const a=c+1;i.push(`${a}${" ".repeat(3-String(a).length)}| ${r[c]}`);const d=r[c].length;if(c===s){const u=e-(o-d)+1,f=Math.max(1,n>o?d-u:n-e);i.push(" | "+" ".repeat(u)+"^".repeat(f))}else if(c>s){if(n>o){const u=Math.max(Math.min(n-o,d),1);i.push(" | "+"^".repeat(u))}o+=d+1}}break}return i.join(`
|
|
57
57
|
`)}function M6(){const t=new Map;return{events:t,on(n,r){const o=t.get(n);o&&o.push(r)||t.set(n,[r])},off(n,r){const o=t.get(n);o&&o.splice(o.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(o=>o(r)),(t.get("*")||[]).slice().map(o=>o(n,r))}}}const fa=t=>!Ue(t)||it(t);function ha(t,e){if(fa(t)||fa(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ue(r[i])&&!Ue(o[i])&&(o[i]=Array.isArray(r[i])?[]:We()),fa(o[i])||fa(r[i])?o[i]=r[i]:n.push({src:r[i],des:o[i]}))})}}function L6(t,e,n){return{line:t,column:e,offset:n}}function Vc(t,e,n){return{start:t,end:e}}const Ie={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},D6=17,P6={[Ie.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ie.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ie.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ie.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ie.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ie.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ie.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ie.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ie.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ie.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ie.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ie.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ie.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ie.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ie.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Uo(t,e,n={}){const{domain:r,messages:o,args:i}=n,s=process.env.NODE_ENV!=="production"?ca((o||P6)[t]||"",...i||[]):t,c=new SyntaxError(String(s));return c.code=t,e&&(c.location=e),c.domain=r,c}function B6(t){throw t}const R6=/<\/?[\w\s="/.':;#-\/]+>/,$6=t=>R6.test(t),_n=" ",F6="\r",_t=`
|
|
58
|
-
`,z6="\u2028",U6="\u2029";function H6(t){const e=t;let n=0,r=1,o=1,i=0;const s=A=>e[A]===F6&&e[A+1]===_t,c=A=>e[A]===_t,a=A=>e[A]===U6,d=A=>e[A]===z6,u=A=>s(A)||c(A)||a(A)||d(A),f=()=>n,h=()=>r,p=()=>o,m=()=>i,g=A=>s(A)||a(A)||d(A)?_t:e[A],v=()=>g(n),y=()=>g(n+i);function b(){return i=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,e[n]}function E(){return s(n+i)&&i++,i++,e[n+i]}function C(){n=0,r=1,o=1,i=0}function w(A=0){i=A}function I(){const A=n+i;for(;A!==n;)b();i=0}return{index:f,line:h,column:p,peekOffset:m,charAt:g,currentChar:v,currentPeek:y,next:b,peek:E,reset:C,resetPeek:w,skipToPeek:I}}const Qn=void 0,j6=".",Ip="'",W6="tokenizer";function K6(t,e={}){const n=e.location!==!1,r=H6(t),o=()=>r.index(),i=()=>L6(r.line(),r.column(),r.index()),s=i(),c=o(),a={currentType:13,offset:c,startLoc:s,endLoc:s,lastType:13,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},d=()=>a,{onError:u}=e;function f(x,T,F,...Q){const q=d();if(T.column+=F,T.offset+=F,u){const ne=n?Vc(q.startLoc,T):null,se=Uo(x,ne,{domain:W6,args:Q});u(se)}}function h(x,T,F){x.endLoc=i(),x.currentType=T;const Q={type:T};return n&&(Q.loc=Vc(x.startLoc,x.endLoc)),F!=null&&(Q.value=F),Q}const p=x=>h(x,13);function m(x,T){return x.currentChar()===T?(x.next(),T):(f(Ie.EXPECTED_TOKEN,i(),0,T),"")}function g(x){let T="";for(;x.currentPeek()===_n||x.currentPeek()===_t;)T+=x.currentPeek(),x.peek();return T}function v(x){const T=g(x);return x.skipToPeek(),T}function y(x){if(x===Qn)return!1;const T=x.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T===95}function b(x){if(x===Qn)return!1;const T=x.charCodeAt(0);return T>=48&&T<=57}function E(x,T){const{currentType:F}=T;if(F!==2)return!1;g(x);const Q=y(x.currentPeek());return x.resetPeek(),Q}function C(x,T){const{currentType:F}=T;if(F!==2)return!1;g(x);const Q=x.currentPeek()==="-"?x.peek():x.currentPeek(),q=b(Q);return x.resetPeek(),q}function w(x,T){const{currentType:F}=T;if(F!==2)return!1;g(x);const Q=x.currentPeek()===Ip;return x.resetPeek(),Q}function I(x,T){const{currentType:F}=T;if(F!==7)return!1;g(x);const Q=x.currentPeek()===".";return x.resetPeek(),Q}function A(x,T){const{currentType:F}=T;if(F!==8)return!1;g(x);const Q=y(x.currentPeek());return x.resetPeek(),Q}function O(x,T){const{currentType:F}=T;if(!(F===7||F===11))return!1;g(x);const Q=x.currentPeek()===":";return x.resetPeek(),Q}function W(x,T){const{currentType:F}=T;if(F!==9)return!1;const Q=()=>{const ne=x.currentPeek();return ne==="{"?y(x.peek()):ne==="@"||ne==="|"||ne===":"||ne==="."||ne===_n||!ne?!1:ne===_t?(x.peek(),Q()):z(x,!1)},q=Q();return x.resetPeek(),q}function $(x){g(x);const T=x.currentPeek()==="|";return x.resetPeek(),T}function z(x,T=!0){const F=(q=!1,ne="")=>{const se=x.currentPeek();return se==="{"||se==="@"||!se?q:se==="|"?!(ne===_n||ne===_t):se===_n?(x.peek(),F(!0,_n)):se===_t?(x.peek(),F(!0,_t)):!0},Q=F();return T&&x.resetPeek(),Q}function j(x,T){const F=x.currentChar();return F===Qn?Qn:T(F)?(x.next(),F):null}function Z(x){const T=x.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36}function K(x){return j(x,Z)}function P(x){const T=x.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36||T===45}function N(x){return j(x,P)}function J(x){const T=x.charCodeAt(0);return T>=48&&T<=57}function U(x){return j(x,J)}function V(x){const T=x.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102}function te(x){return j(x,V)}function ae(x){let T="",F="";for(;T=U(x);)F+=T;return F}function pe(x){let T="";for(;;){const F=x.currentChar();if(F==="{"||F==="}"||F==="@"||F==="|"||!F)break;if(F===_n||F===_t)if(z(x))T+=F,x.next();else{if($(x))break;T+=F,x.next()}else T+=F,x.next()}return T}function me(x){v(x);let T="",F="";for(;T=N(x);)F+=T;const Q=x.currentChar();if(Q&&Q!=="}"&&Q!==Qn&&Q!==_n&&Q!==_t&&Q!==" "){const q=_(x);return f(Ie.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,F+q),F+q}return x.currentChar()===Qn&&f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),F}function ye(x){v(x);let T="";return x.currentChar()==="-"?(x.next(),T+=`-${ae(x)}`):T+=ae(x),x.currentChar()===Qn&&f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),T}function Ce(x){return x!==Ip&&x!==_t}function Se(x){v(x),m(x,"'");let T="",F="";for(;T=j(x,Ce);)T==="\\"?F+=ve(x):F+=T;const Q=x.currentChar();return Q===_t||Q===Qn?(f(Ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Q===_t&&(x.next(),m(x,"'")),F):(m(x,"'"),F)}function ve(x){const T=x.currentChar();switch(T){case"\\":case"'":return x.next(),`\\${T}`;case"u":return M(x,T,4);case"U":return M(x,T,6);default:return f(Ie.UNKNOWN_ESCAPE_SEQUENCE,i(),0,T),""}}function M(x,T,F){m(x,T);let Q="";for(let q=0;q<F;q++){const ne=te(x);if(!ne){f(Ie.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${T}${Q}${x.currentChar()}`);break}Q+=ne}return`\\${T}${Q}`}function D(x){return x!=="{"&&x!=="}"&&x!==_n&&x!==_t}function _(x){v(x);let T="",F="";for(;T=j(x,D);)F+=T;return F}function L(x){let T="",F="";for(;T=K(x);)F+=T;return F}function k(x){const T=F=>{const Q=x.currentChar();return Q==="{"||Q==="@"||Q==="|"||Q==="("||Q===")"||!Q||Q===_n?F:(F+=Q,x.next(),T(F))};return T("")}function S(x){v(x);const T=m(x,"|");return v(x),T}function R(x,T){let F=null;switch(x.currentChar()){case"{":return T.braceNest>=1&&f(Ie.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),x.next(),F=h(T,2,"{"),v(x),T.braceNest++,F;case"}":return T.braceNest>0&&T.currentType===2&&f(Ie.EMPTY_PLACEHOLDER,i(),0),x.next(),F=h(T,3,"}"),T.braceNest--,T.braceNest>0&&v(x),T.inLinked&&T.braceNest===0&&(T.inLinked=!1),F;case"@":return T.braceNest>0&&f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),F=H(x,T)||p(T),T.braceNest=0,F;default:{let q=!0,ne=!0,se=!0;if($(x))return T.braceNest>0&&f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),F=h(T,1,S(x)),T.braceNest=0,T.inLinked=!1,F;if(T.braceNest>0&&(T.currentType===4||T.currentType===5||T.currentType===6))return f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),T.braceNest=0,Y(x,T);if(q=E(x,T))return F=h(T,4,me(x)),v(x),F;if(ne=C(x,T))return F=h(T,5,ye(x)),v(x),F;if(se=w(x,T))return F=h(T,6,Se(x)),v(x),F;if(!q&&!ne&&!se)return F=h(T,12,_(x)),f(Ie.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,F.value),v(x),F;break}}return F}function H(x,T){const{currentType:F}=T;let Q=null;const q=x.currentChar();switch((F===7||F===8||F===11||F===9)&&(q===_t||q===_n)&&f(Ie.INVALID_LINKED_FORMAT,i(),0),q){case"@":return x.next(),Q=h(T,7,"@"),T.inLinked=!0,Q;case".":return v(x),x.next(),h(T,8,".");case":":return v(x),x.next(),h(T,9,":");default:return $(x)?(Q=h(T,1,S(x)),T.braceNest=0,T.inLinked=!1,Q):I(x,T)||O(x,T)?(v(x),H(x,T)):A(x,T)?(v(x),h(T,11,L(x))):W(x,T)?(v(x),q==="{"?R(x,T)||Q:h(T,10,k(x))):(F===7&&f(Ie.INVALID_LINKED_FORMAT,i(),0),T.braceNest=0,T.inLinked=!1,Y(x,T))}}function Y(x,T){let F={type:13};if(T.braceNest>0)return R(x,T)||p(T);if(T.inLinked)return H(x,T)||p(T);switch(x.currentChar()){case"{":return R(x,T)||p(T);case"}":return f(Ie.UNBALANCED_CLOSING_BRACE,i(),0),x.next(),h(T,3,"}");case"@":return H(x,T)||p(T);default:{if($(x))return F=h(T,1,S(x)),T.braceNest=0,T.inLinked=!1,F;if(z(x))return h(T,0,pe(x));break}}return F}function G(){const{currentType:x,offset:T,startLoc:F,endLoc:Q}=a;return a.lastType=x,a.lastOffset=T,a.lastStartLoc=F,a.lastEndLoc=Q,a.offset=o(),a.startLoc=i(),r.currentChar()===Qn?h(a,13):Y(r,a)}return{nextToken:G,currentOffset:o,currentPosition:i,context:d}}const Y6="parser",G6=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Q6(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Z6(t={}){const e=t.location!==!1,{onError:n}=t;function r(y,b,E,C,...w){const I=y.currentPosition();if(I.offset+=C,I.column+=C,n){const A=e?Vc(E,I):null,O=Uo(b,A,{domain:Y6,args:w});n(O)}}function o(y,b,E){const C={type:y};return e&&(C.start=b,C.end=b,C.loc={start:E,end:E}),C}function i(y,b,E,C){e&&(y.end=b,y.loc&&(y.loc.end=E))}function s(y,b){const E=y.context(),C=o(3,E.offset,E.startLoc);return C.value=b,i(C,y.currentOffset(),y.currentPosition()),C}function c(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:w}=E,I=o(5,C,w);return I.index=parseInt(b,10),y.nextToken(),i(I,y.currentOffset(),y.currentPosition()),I}function a(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:w}=E,I=o(4,C,w);return I.key=b,y.nextToken(),i(I,y.currentOffset(),y.currentPosition()),I}function d(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:w}=E,I=o(9,C,w);return I.value=b.replace(G6,Q6),y.nextToken(),i(I,y.currentOffset(),y.currentPosition()),I}function u(y){const b=y.nextToken(),E=y.context(),{lastOffset:C,lastStartLoc:w}=E,I=o(8,C,w);return b.type!==11?(r(y,Ie.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),I.value="",i(I,C,w),{nextConsumeToken:b,node:I}):(b.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Nn(b)),I.value=b.value||"",i(I,y.currentOffset(),y.currentPosition()),{node:I})}function f(y,b){const E=y.context(),C=o(7,E.offset,E.startLoc);return C.value=b,i(C,y.currentOffset(),y.currentPosition()),C}function h(y){const b=y.context(),E=o(6,b.offset,b.startLoc);let C=y.nextToken();if(C.type===8){const w=u(y);E.modifier=w.node,C=w.nextConsumeToken||y.nextToken()}switch(C.type!==9&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),C=y.nextToken(),C.type===2&&(C=y.nextToken()),C.type){case 10:C.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=f(y,C.value||"");break;case 4:C.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=a(y,C.value||"");break;case 5:C.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=c(y,C.value||"");break;case 6:C.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=d(y,C.value||"");break;default:{r(y,Ie.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const w=y.context(),I=o(7,w.offset,w.startLoc);return I.value="",i(I,w.offset,w.startLoc),E.key=I,i(E,w.offset,w.startLoc),{nextConsumeToken:C,node:E}}}return i(E,y.currentOffset(),y.currentPosition()),{node:E}}function p(y){const b=y.context(),E=b.currentType===1?y.currentOffset():b.offset,C=b.currentType===1?b.endLoc:b.startLoc,w=o(2,E,C);w.items=[];let I=null;do{const W=I||y.nextToken();switch(I=null,W.type){case 0:W.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(W)),w.items.push(s(y,W.value||""));break;case 5:W.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(W)),w.items.push(c(y,W.value||""));break;case 4:W.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(W)),w.items.push(a(y,W.value||""));break;case 6:W.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(W)),w.items.push(d(y,W.value||""));break;case 7:{const $=h(y);w.items.push($.node),I=$.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:y.currentOffset(),O=b.currentType===1?b.lastEndLoc:y.currentPosition();return i(w,A,O),w}function m(y,b,E,C){const w=y.context();let I=C.items.length===0;const A=o(1,b,E);A.cases=[],A.cases.push(C);do{const O=p(y);I||(I=O.items.length===0),A.cases.push(O)}while(w.currentType!==13);return I&&r(y,Ie.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),i(A,y.currentOffset(),y.currentPosition()),A}function g(y){const b=y.context(),{offset:E,startLoc:C}=b,w=p(y);return b.currentType===13?w:m(y,E,C,w)}function v(y){const b=K6(y,vt({},t)),E=b.context(),C=o(0,E.offset,E.startLoc);return e&&C.loc&&(C.loc.source=y),C.body=g(b),t.onCacheKey&&(C.cacheKey=t.onCacheKey(y)),E.currentType!==13&&r(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,y[E.offset]||""),i(C,b.currentOffset(),b.currentPosition()),C}return{parse:v}}function Nn(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function J6(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function _p(t,e){for(let n=0;n<t.length;n++)ed(t[n],e)}function ed(t,e){switch(t.type){case 1:_p(t.cases,e),e.helper("plural");break;case 2:_p(t.items,e);break;case 6:{ed(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function X6(t,e={}){const n=J6(t);n.helper("normalize"),t.body&&ed(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function q6(t){const e=t.body;return e.type===2?Np(e):e.cases.forEach(n=>Np(n)),t}function Np(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=qc(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const V6="minifier";function Ho(t){switch(t.t=t.type,t.type){case 0:{const e=t;Ho(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)Ho(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)Ho(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Ho(e.key),e.k=e.key,delete e.key,e.modifier&&(Ho(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:if(process.env.NODE_ENV!=="production")throw Uo(Ie.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:V6,args:[t.type]})}delete t.type}const eC="parser";function tC(t,e){const{filename:n,breakLineCode:r,needIndent:o}=e,i=e.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};i&&t.loc&&(s.source=t.loc.source);const c=()=>s;function a(g,v){s.code+=g}function d(g,v=!0){const y=v?r:"";a(o?y+" ".repeat(g):y)}function u(g=!0){const v=++s.indentLevel;g&&d(v)}function f(g=!0){const v=--s.indentLevel;g&&d(v)}function h(){d(s.indentLevel)}return{context:c,push:a,indent:u,deindent:f,newline:h,helper:g=>`_${g}`,needIndent:()=>s.needIndent}}function nC(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),jo(t,e.key),e.modifier?(t.push(", "),jo(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function rC(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const o=e.items.length;for(let i=0;i<o&&(jo(t,e.items[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function oC(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const o=e.cases.length;for(let i=0;i<o&&(jo(t,e.cases[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function iC(t,e){e.body?jo(t,e.body):t.push("null")}function jo(t,e){const{helper:n}=t;switch(e.type){case 0:iC(t,e);break;case 1:oC(t,e);break;case 2:rC(t,e);break;case 6:nC(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw Uo(Ie.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:eC,args:[e.type]})}}const sC=(t,e={})=>{const n=Ee(e.mode)?e.mode:"normal",r=Ee(e.filename)?e.filename:"message.intl";e.sourceMap;const o=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
|
|
59
|
-
`,i=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],c=tC(t,{filename:r,breakLineCode:o,needIndent:i});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(i),s.length>0&&(c.push(`const { ${qc(s.map(u=>`${u}: _${u}`),", ")} } = ctx`),c.newline()),c.push("return "),jo(c,t),c.deindent(i),c.push("}"),delete t.helpers;const{code:a,map:d}=c.context();return{ast:t,code:a,map:d?d.toJSON():void 0}};function aC(t,e={}){const n=vt({},e),r=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,c=Z6(n).parse(t);return r?(i&&q6(c),o&&Ho(c),{ast:c,code:""}):(X6(c,n),sC(c,n))}function lC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ro().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ro().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function bn(t){return Ue(t)&&td(t)===0&&(yn(t,"b")||yn(t,"body"))}const Op=["b","body"];function cC(t){return gr(t,Op)}const Mp=["c","cases"];function dC(t){return gr(t,Mp,[])}const Lp=["s","static"];function uC(t){return gr(t,Lp)}const Dp=["i","items"];function fC(t){return gr(t,Dp,[])}const Pp=["t","type"];function td(t){return gr(t,Pp)}const Bp=["v","value"];function pa(t,e){const n=gr(t,Bp);if(n!=null)return n;throw Oi(e)}const Rp=["m","modifier"];function hC(t){return gr(t,Rp)}const $p=["k","key"];function pC(t){const e=gr(t,$p);if(e)return e;throw Oi(6)}function gr(t,e,n){for(let r=0;r<e.length;r++){const o=e[r];if(yn(t,o)&&t[o]!=null)return t[o]}return n}const Fp=[...Op,...Mp,...Lp,...Dp,...$p,...Rp,...Bp,...Pp];function Oi(t){return new Error(`unhandled node type: ${t}`)}function nd(t){return n=>mC(n,t)}function mC(t,e){const n=cC(e);if(n==null)throw Oi(0);if(td(n)===1){const i=dC(n);return t.plural(i.reduce((s,c)=>[...s,zp(t,c)],[]))}else return zp(t,n)}function zp(t,e){const n=uC(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=fC(e).reduce((o,i)=>[...o,rd(t,i)],[]);return t.normalize(r)}}function rd(t,e){const n=td(e);switch(n){case 3:return pa(e,n);case 9:return pa(e,n);case 4:{const r=e;if(yn(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(yn(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Oi(n)}case 5:{const r=e;if(yn(r,"i")&>(r.i))return t.interpolate(t.list(r.i));if(yn(r,"index")&>(r.index))return t.interpolate(t.list(r.index));throw Oi(n)}case 6:{const r=e,o=hC(r),i=pC(r);return t.linked(rd(t,i),o?rd(t,o):void 0,t.type)}case 7:return pa(e,n);case 8:return pa(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const gC="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function vC(t,e){e&&$6(t)&&In(ca(gC,{source:t}))}const yC=t=>t;let ma=We();function bC(t,e={}){let n=!1;const r=e.onError||B6;return e.onError=o=>{n=!0,r(o)},{...aC(t,e),detectError:n}}function CC(t,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ee(t)){const n=st(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&vC(t,n);const o=(e.onCacheKey||yC)(t),i=ma[o];if(i)return i;const{ast:s,detectError:c}=bC(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),a=nd(s);return c?a:ma[o]=a}else{if(process.env.NODE_ENV!=="production"&&!bn(t))return In(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),(()=>t);const n=t.cacheKey;if(n){const r=ma[n];return r||(ma[n]=nd(t))}else return nd(t)}}let Mi=null;function EC(t){Mi=t}function kC(t,e,n){Mi&&Mi.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const wC=SC("function:translate");function SC(t){return e=>Mi&&Mi.emit(t,e)}const Nt={INVALID_ARGUMENT:D6,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},AC=24;function Zn(t){return Uo(t,null,process.env.NODE_ENV!=="production"?{messages:xC}:void 0)}const xC={[Nt.INVALID_ARGUMENT]:"Invalid arguments",[Nt.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Nt.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Nt.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Nt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Nt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Nt.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function od(t,e){return e.locale!=null?Up(e.locale):Up(t.locale)}let id;function Up(t){if(Ee(t))return t;if(Je(t)){if(t.resolvedOnce&&id!=null)return id;if(t.constructor.name==="Function"){const e=t();if(_6(e))throw Zn(Nt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return id=e}else throw Zn(Nt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Zn(Nt.NOT_SUPPORT_LOCALE_TYPE)}function TC(t,e,n){return[...new Set([n,...it(e)?e:Ue(e)?Object.keys(e):Ee(e)?[e]:[n]])]}function Hp(t,e,n){const r=Ee(n)?n:va,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;it(s);)s=jp(i,s,e);const c=it(e)||!He(e)?e:e.default?e.default:null;s=Ee(c)?[c]:c,it(s)&&jp(i,s,!1),o.__localeChainCache.set(r,i)}return i}function jp(t,e,n){let r=!0;for(let o=0;o<e.length&&st(r);o++){const i=e[o];Ee(i)&&(r=IC(t,e[o],n))}return r}function IC(t,e,n){let r;const o=e.split("-");do{const i=o.join("-");r=_C(t,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function _C(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const o=e.replace(/!/g,"");t.push(o),(it(n)||He(n))&&n[o]&&(r=n[o])}return r}const vr=[];vr[0]={w:[0],i:[3,0],"[":[4],o:[7]},vr[1]={w:[1],".":[2],"[":[4],o:[7]},vr[2]={w:[2],i:[3,0],0:[3,0]},vr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},vr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},vr[5]={"'":[4,0],o:8,l:[5,0]},vr[6]={'"':[4,0],o:8,l:[6,0]};const NC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function OC(t){return NC.test(t)}function MC(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function LC(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function DC(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:OC(e)?MC(e):"*"+e}function PC(t){const e=[];let n=-1,r=0,o=0,i,s,c,a,d,u,f;const h=[];h[0]=()=>{s===void 0?s=c:s+=c},h[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,s===void 0||(s=DC(s),s===!1))return!1;h[1]()}};function p(){const m=t[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,c="\\"+m,h[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&p())){if(a=LC(i),f=vr[r],d=f[a]||f.l||8,d===8||(r=d[0],d[1]!==void 0&&(u=h[d[1]],u&&(c=i,u()===!1))))return;if(r===7)return e}}const Wp=new Map;function BC(t,e){return Ue(t)?t[e]:null}function RC(t,e){if(!Ue(t))return null;let n=Wp.get(e);if(n||(n=PC(e),n&&Wp.set(e,n)),!n)return null;const r=n.length;let o=t,i=0;for(;i<r;){const s=n[i];if(Fp.includes(s)&&bn(o))return null;const c=o[s];if(c===void 0||Je(o))return null;o=c,i++}return o}const Ht={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},$C=8,FC={[Ht.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ht.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ht.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ht.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ht.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ht.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function oo(t,...e){return ca(FC[t],...e)}const zC="11.2.8",ga=-1,va="en-US",ya="",Kp=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function UC(){return{upper:(t,e)=>e==="text"&&Ee(t)?t.toUpperCase():e==="vnode"&&Ue(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Ee(t)?t.toLowerCase():e==="vnode"&&Ue(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Ee(t)?Kp(t):e==="vnode"&&Ue(t)&&"__v_isVNode"in t?Kp(t.children):t}}let Yp;function HC(t){Yp=t}let Gp;function jC(t){Gp=t}let Qp;function WC(t){Qp=t}let Zp=null;const KC=t=>{Zp=t},YC=()=>Zp;let Jp=null;const Xp=t=>{Jp=t},GC=()=>Jp;let qp=0;function QC(t={}){const e=Je(t.onWarn)?t.onWarn:In,n=Ee(t.version)?t.version:zC,r=Ee(t.locale)||Je(t.locale)?t.locale:va,o=Je(r)?va:r,i=it(t.fallbackLocale)||He(t.fallbackLocale)||Ee(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,s=He(t.messages)?t.messages:sd(o),c=He(t.datetimeFormats)?t.datetimeFormats:sd(o),a=He(t.numberFormats)?t.numberFormats:sd(o),d=vt(We(),t.modifiers,UC()),u=t.pluralRules||We(),f=Je(t.missing)?t.missing:null,h=st(t.missingWarn)||da(t.missingWarn)?t.missingWarn:!0,p=st(t.fallbackWarn)||da(t.fallbackWarn)?t.fallbackWarn:!0,m=!!t.fallbackFormat,g=!!t.unresolving,v=Je(t.postTranslation)?t.postTranslation:null,y=He(t.processor)?t.processor:null,b=st(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter,C=Je(t.messageCompiler)?t.messageCompiler:Yp;process.env.NODE_ENV!=="production"&&Je(t.messageCompiler)&&E6(oo(Ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=Je(t.messageResolver)?t.messageResolver:Gp||BC,I=Je(t.localeFallbacker)?t.localeFallbacker:Qp||TC,A=Ue(t.fallbackContext)?t.fallbackContext:void 0,O=t,W=Ue(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,$=Ue(O.__numberFormatters)?O.__numberFormatters:new Map,z=Ue(O.__meta)?O.__meta:{};qp++;const j={version:n,cid:qp,locale:r,fallbackLocale:i,messages:s,modifiers:d,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:m,unresolving:g,postTranslation:v,processor:y,warnHtmlMessage:b,escapeParameter:E,messageCompiler:C,messageResolver:w,localeFallbacker:I,fallbackContext:A,onWarn:e,__meta:z};return j.datetimeFormats=c,j.numberFormats=a,j.__datetimeFormatters=W,j.__numberFormatters=$,process.env.NODE_ENV!=="production"&&(j.__v_emitter=O.__v_emitter!=null?O.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&kC(j,n,z),j}const sd=t=>({[t]:We()});function ba(t,e){return t instanceof RegExp?t.test(e):t}function Vp(t,e){return t instanceof RegExp?t.test(e):t}function ad(t,e,n,r,o){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const c=t.__v_emitter;c&&c.emit("missing",{locale:n,key:e,type:o,groupId:`${o}:${e}`})}if(i!==null){const c=i(t,n,e,o);return Ee(c)?c:e}else return process.env.NODE_ENV!=="production"&&Vp(r,e)&&s(oo(Ht.NOT_FOUND_KEY,{key:e,locale:n})),e}function Li(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function e1(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function ZC(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(e1(t,e[r]))return!0;return!1}const t1=typeof Intl<"u",n1={dateTimeFormat:t1&&typeof Intl.DateTimeFormat<"u",numberFormat:t1&&typeof Intl.NumberFormat<"u"};function r1(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!n1.dateTimeFormat)return i(oo(Ht.CANNOT_FORMAT_DATE)),ya;const[a,d,u,f]=ld(...e),h=st(u.missingWarn)?u.missingWarn:t.missingWarn,p=st(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,g=od(t,u),v=s(t,o,g);if(!Ee(a)||a==="")return new Intl.DateTimeFormat(g,f).format(d);let y={},b,E=null,C=g,w=null;const I="datetime format";for(let W=0;W<v.length;W++){if(b=w=v[W],process.env.NODE_ENV!=="production"&&g!==b&&ba(p,a)&&i(oo(Ht.FALLBACK_TO_DATE_FORMAT,{key:a,target:b})),process.env.NODE_ENV!=="production"&&g!==b){const $=t.__v_emitter;$&&$.emit("fallback",{type:I,key:a,from:C,to:w,groupId:`${I}:${a}`})}if(y=n[b]||{},E=y[a],He(E))break;ad(t,a,b,h,I),C=w}if(!He(E)||!Ee(b))return r?ga:a;let A=`${b}__${a}`;ua(f)||(A=`${A}__${JSON.stringify(f)}`);let O=c.get(A);return O||(O=new Intl.DateTimeFormat(b,vt({},E,f)),c.set(A,O)),m?O.formatToParts(d):O.format(d)}const o1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ld(...t){const[e,n,r,o]=t,i=We();let s=We(),c;if(Ee(e)){const a=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw Zn(Nt.INVALID_ISO_DATE_ARGUMENT);const d=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();c=new Date(d);try{c.toISOString()}catch{throw Zn(Nt.INVALID_ISO_DATE_ARGUMENT)}}else if(A6(e)){if(isNaN(e.getTime()))throw Zn(Nt.INVALID_DATE_ARGUMENT);c=e}else if(gt(e))c=e;else throw Zn(Nt.INVALID_ARGUMENT);return Ee(n)?i.key=n:He(n)&&Object.keys(n).forEach(a=>{o1.includes(a)?s[a]=n[a]:i[a]=n[a]}),Ee(r)?i.locale=r:He(r)&&(s=r),He(o)&&(s=o),[i.key||"",c,i,s]}function i1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function s1(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!n1.numberFormat)return i(oo(Ht.CANNOT_FORMAT_NUMBER)),ya;const[a,d,u,f]=cd(...e),h=st(u.missingWarn)?u.missingWarn:t.missingWarn,p=st(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,g=od(t,u),v=s(t,o,g);if(!Ee(a)||a==="")return new Intl.NumberFormat(g,f).format(d);let y={},b,E=null,C=g,w=null;const I="number format";for(let W=0;W<v.length;W++){if(b=w=v[W],process.env.NODE_ENV!=="production"&&g!==b&&ba(p,a)&&i(oo(Ht.FALLBACK_TO_NUMBER_FORMAT,{key:a,target:b})),process.env.NODE_ENV!=="production"&&g!==b){const $=t.__v_emitter;$&&$.emit("fallback",{type:I,key:a,from:C,to:w,groupId:`${I}:${a}`})}if(y=n[b]||{},E=y[a],He(E))break;ad(t,a,b,h,I),C=w}if(!He(E)||!Ee(b))return r?ga:a;let A=`${b}__${a}`;ua(f)||(A=`${A}__${JSON.stringify(f)}`);let O=c.get(A);return O||(O=new Intl.NumberFormat(b,vt({},E,f)),c.set(A,O)),m?O.formatToParts(d):O.format(d)}const a1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function cd(...t){const[e,n,r,o]=t,i=We();let s=We();if(!gt(e))throw Zn(Nt.INVALID_ARGUMENT);const c=e;return Ee(n)?i.key=n:He(n)&&Object.keys(n).forEach(a=>{a1.includes(a)?s[a]=n[a]:i[a]=n[a]}),Ee(r)?i.locale=r:He(r)&&(s=r),He(o)&&(s=o),[i.key||"",c,i,s]}function l1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const JC=t=>t,XC=t=>"",qC="text",VC=t=>t.length===0?"":qc(t),e9=N6;function c1(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function t9(t){const e=gt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(gt(t.named.count)||gt(t.named.n))?gt(t.named.count)?t.named.count:gt(t.named.n)?t.named.n:e:e}function n9(t,e){e.count||(e.count=t),e.n||(e.n=t)}function r9(t={}){const e=t.locale,n=t9(t),r=Ue(t.pluralRules)&&Ee(e)&&Je(t.pluralRules[e])?t.pluralRules[e]:c1,o=Ue(t.pluralRules)&&Ee(e)&&Je(t.pluralRules[e])?c1:void 0,i=y=>y[r(n,y.length,o)],s=t.list||[],c=y=>s[y],a=t.named||We();gt(t.pluralIndex)&&n9(n,a);const d=y=>a[y];function u(y,b){const E=Je(t.messages)?t.messages(y,!!b):Ue(t.messages)?t.messages[y]:!1;return E||(t.parent?t.parent.message(y):XC)}const f=y=>t.modifiers?t.modifiers[y]:JC,h=He(t.processor)&&Je(t.processor.normalize)?t.processor.normalize:VC,p=He(t.processor)&&Je(t.processor.interpolate)?t.processor.interpolate:e9,m=He(t.processor)&&Ee(t.processor.type)?t.processor.type:qC,v={list:c,named:d,plural:i,linked:(y,...b)=>{const[E,C]=b;let w="text",I="";b.length===1?Ue(E)?(I=E.modifier||I,w=E.type||w):Ee(E)&&(I=E||I):b.length===2&&(Ee(E)&&(I=E||I),Ee(C)&&(w=C||w));const A=u(y,!0)(v),O=w==="vnode"&&it(A)&&I?A[0]:A;return I?f(I)(O,w):O},message:u,type:m,interpolate:p,normalize:h,values:vt(We(),s,a)};return v}const d1=()=>"",nn=t=>Je(t);function u1(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:c}=t,[a,d]=dd(...e),u=st(d.missingWarn)?d.missingWarn:t.missingWarn,f=st(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,h=st(d.escapeParameter)?d.escapeParameter:t.escapeParameter,p=!!d.resolvedMessage,m=Ee(d.default)||st(d.default)?st(d.default)?i?a:()=>a:d.default:n?i?a:()=>a:null,g=n||m!=null&&(Ee(m)||Je(m)),v=od(t,d);h&&o9(d);let[y,b,E]=p?[a,v,c[v]||We()]:f1(t,a,v,s,f,u),C=y,w=a;if(!p&&!(Ee(C)||bn(C)||nn(C))&&g&&(C=m,w=C),!p&&(!(Ee(C)||bn(C)||nn(C))||!Ee(b)))return o?ga:a;if(process.env.NODE_ENV!=="production"&&Ee(C)&&t.messageCompiler==null)return In(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${a}'.`),a;let I=!1;const A=()=>{I=!0},O=nn(C)?C:h1(t,a,b,C,w,A);if(I)return C;const W=l9(t,b,E,d),$=r9(W),z=i9(t,O,$);let j=r?r(z,a):z;if(h&&Ee(j)&&(j=T6(j)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Z={timestamp:Date.now(),key:Ee(a)?a:nn(C)?C.key:"",locale:b||(nn(C)?C.locale:""),format:Ee(C)?C:nn(C)?C.source:"",message:j};Z.meta=vt({},t.__meta,YC()||{}),wC(Z)}return j}function o9(t){it(t.list)?t.list=t.list.map(e=>Ee(e)?Sp(e):e):Ue(t.named)&&Object.keys(t.named).forEach(e=>{Ee(t.named[e])&&(t.named[e]=Sp(t.named[e]))})}function f1(t,e,n,r,o,i){const{messages:s,onWarn:c,messageResolver:a,localeFallbacker:d}=t,u=d(t,r,n);let f=We(),h,p=null,m=n,g=null;const v="translate";for(let y=0;y<u.length;y++){if(h=g=u[y],process.env.NODE_ENV!=="production"&&n!==h&&!e1(n,h)&&ba(o,e)&&c(oo(Ht.FALLBACK_TO_TRANSLATE,{key:e,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const w=t.__v_emitter;w&&w.emit("fallback",{type:v,key:e,from:m,to:g,groupId:`${v}:${e}`})}f=s[h]||We();let b=null,E,C;if(process.env.NODE_ENV!=="production"&&Yn&&(b=window.performance.now(),E="intlify-message-resolve-start",C="intlify-message-resolve-end",Zt&&Zt(E)),(p=a(f,e))===null&&(p=f[e]),process.env.NODE_ENV!=="production"&&Yn){const w=window.performance.now(),I=t.__v_emitter;I&&b&&p&&I.emit("message-resolve",{type:"message-resolve",key:e,message:p,time:w-b,groupId:`${v}:${e}`}),E&&C&&Zt&&no&&(Zt(C),no("intlify message resolve",E,C))}if(Ee(p)||bn(p)||nn(p))break;if(!ZC(h,u)){const w=ad(t,e,h,i,v);w!==e&&(p=w)}m=g}return[p,h,f]}function h1(t,e,n,r,o,i){const{messageCompiler:s,warnHtmlMessage:c}=t;if(nn(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||e,h}if(s==null){const h=(()=>r);return h.locale=n,h.key=e,h}let a=null,d,u;process.env.NODE_ENV!=="production"&&Yn&&(a=window.performance.now(),d="intlify-message-compilation-start",u="intlify-message-compilation-end",Zt&&Zt(d));const f=s(r,s9(t,n,o,r,c,i));if(process.env.NODE_ENV!=="production"&&Yn){const h=window.performance.now(),p=t.__v_emitter;p&&a&&p.emit("message-compilation",{type:"message-compilation",message:r,time:h-a,groupId:`translate:${e}`}),d&&u&&Zt&&no&&(Zt(u),no("intlify message compilation",d,u))}return f.locale=n,f.key=e,f.source=r,f}function i9(t,e,n){let r=null,o,i;process.env.NODE_ENV!=="production"&&Yn&&(r=window.performance.now(),o="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Zt&&Zt(o));const s=e(n);if(process.env.NODE_ENV!=="production"&&Yn){const c=window.performance.now(),a=t.__v_emitter;a&&r&&a.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-r,groupId:`translate:${e.key}`}),o&&i&&Zt&&no&&(Zt(i),no("intlify message evaluation",o,i))}return s}function dd(...t){const[e,n,r]=t,o=We();if(!Ee(e)&&!gt(e)&&!nn(e)&&!bn(e))throw Zn(Nt.INVALID_ARGUMENT);const i=gt(e)?String(e):(nn(e),e);return gt(n)?o.plural=n:Ee(n)?o.default=n:He(n)&&!ua(n)?o.named=n:it(n)&&(o.list=n),gt(r)?o.plural=r:Ee(r)?o.default=r:He(r)&&vt(o,r),[i,o]}function s9(t,e,n,r,o,i){return{locale:e,key:n,warnHtmlMessage:o,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const c=a9(r),a=`Message compilation error: ${s.message}`,d=s.location&&c&&O6(c,s.location.start.offset,s.location.end.offset),u=t.__v_emitter;u&&c&&u.emit("compile-error",{message:c,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(d?`${a}
|
|
58
|
+
`,z6="\u2028",U6="\u2029";function H6(t){const e=t;let n=0,r=1,o=1,i=0;const s=A=>e[A]===F6&&e[A+1]===_t,c=A=>e[A]===_t,a=A=>e[A]===U6,d=A=>e[A]===z6,u=A=>s(A)||c(A)||a(A)||d(A),f=()=>n,h=()=>r,p=()=>o,m=()=>i,g=A=>s(A)||a(A)||d(A)?_t:e[A],v=()=>g(n),y=()=>g(n+i);function b(){return i=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,e[n]}function E(){return s(n+i)&&i++,i++,e[n+i]}function C(){n=0,r=1,o=1,i=0}function w(A=0){i=A}function I(){const A=n+i;for(;A!==n;)b();i=0}return{index:f,line:h,column:p,peekOffset:m,charAt:g,currentChar:v,currentPeek:y,next:b,peek:E,reset:C,resetPeek:w,skipToPeek:I}}const Qn=void 0,j6=".",Ip="'",W6="tokenizer";function K6(t,e={}){const n=e.location!==!1,r=H6(t),o=()=>r.index(),i=()=>L6(r.line(),r.column(),r.index()),s=i(),c=o(),a={currentType:13,offset:c,startLoc:s,endLoc:s,lastType:13,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},d=()=>a,{onError:u}=e;function f(x,T,$,...Q){const q=d();if(T.column+=$,T.offset+=$,u){const ne=n?Vc(q.startLoc,T):null,se=Uo(x,ne,{domain:W6,args:Q});u(se)}}function h(x,T,$){x.endLoc=i(),x.currentType=T;const Q={type:T};return n&&(Q.loc=Vc(x.startLoc,x.endLoc)),$!=null&&(Q.value=$),Q}const p=x=>h(x,13);function m(x,T){return x.currentChar()===T?(x.next(),T):(f(Ie.EXPECTED_TOKEN,i(),0,T),"")}function g(x){let T="";for(;x.currentPeek()===_n||x.currentPeek()===_t;)T+=x.currentPeek(),x.peek();return T}function v(x){const T=g(x);return x.skipToPeek(),T}function y(x){if(x===Qn)return!1;const T=x.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T===95}function b(x){if(x===Qn)return!1;const T=x.charCodeAt(0);return T>=48&&T<=57}function E(x,T){const{currentType:$}=T;if($!==2)return!1;g(x);const Q=y(x.currentPeek());return x.resetPeek(),Q}function C(x,T){const{currentType:$}=T;if($!==2)return!1;g(x);const Q=x.currentPeek()==="-"?x.peek():x.currentPeek(),q=b(Q);return x.resetPeek(),q}function w(x,T){const{currentType:$}=T;if($!==2)return!1;g(x);const Q=x.currentPeek()===Ip;return x.resetPeek(),Q}function I(x,T){const{currentType:$}=T;if($!==7)return!1;g(x);const Q=x.currentPeek()===".";return x.resetPeek(),Q}function A(x,T){const{currentType:$}=T;if($!==8)return!1;g(x);const Q=y(x.currentPeek());return x.resetPeek(),Q}function O(x,T){const{currentType:$}=T;if(!($===7||$===11))return!1;g(x);const Q=x.currentPeek()===":";return x.resetPeek(),Q}function K(x,T){const{currentType:$}=T;if($!==9)return!1;const Q=()=>{const ne=x.currentPeek();return ne==="{"?y(x.peek()):ne==="@"||ne==="|"||ne===":"||ne==="."||ne===_n||!ne?!1:ne===_t?(x.peek(),Q()):F(x,!1)},q=Q();return x.resetPeek(),q}function B(x){g(x);const T=x.currentPeek()==="|";return x.resetPeek(),T}function F(x,T=!0){const $=(q=!1,ne="")=>{const se=x.currentPeek();return se==="{"||se==="@"||!se?q:se==="|"?!(ne===_n||ne===_t):se===_n?(x.peek(),$(!0,_n)):se===_t?(x.peek(),$(!0,_t)):!0},Q=$();return T&&x.resetPeek(),Q}function H(x,T){const $=x.currentChar();return $===Qn?Qn:T($)?(x.next(),$):null}function Z(x){const T=x.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36}function W(x){return H(x,Z)}function j(x){const T=x.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36||T===45}function N(x){return H(x,j)}function J(x){const T=x.charCodeAt(0);return T>=48&&T<=57}function z(x){return H(x,J)}function V(x){const T=x.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102}function te(x){return H(x,V)}function ae(x){let T="",$="";for(;T=z(x);)$+=T;return $}function pe(x){let T="";for(;;){const $=x.currentChar();if($==="{"||$==="}"||$==="@"||$==="|"||!$)break;if($===_n||$===_t)if(F(x))T+=$,x.next();else{if(B(x))break;T+=$,x.next()}else T+=$,x.next()}return T}function me(x){v(x);let T="",$="";for(;T=N(x);)$+=T;const Q=x.currentChar();if(Q&&Q!=="}"&&Q!==Qn&&Q!==_n&&Q!==_t&&Q!==" "){const q=_(x);return f(Ie.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,$+q),$+q}return x.currentChar()===Qn&&f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),$}function ye(x){v(x);let T="";return x.currentChar()==="-"?(x.next(),T+=`-${ae(x)}`):T+=ae(x),x.currentChar()===Qn&&f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),T}function Ce(x){return x!==Ip&&x!==_t}function Se(x){v(x),m(x,"'");let T="",$="";for(;T=H(x,Ce);)T==="\\"?$+=ve(x):$+=T;const Q=x.currentChar();return Q===_t||Q===Qn?(f(Ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Q===_t&&(x.next(),m(x,"'")),$):(m(x,"'"),$)}function ve(x){const T=x.currentChar();switch(T){case"\\":case"'":return x.next(),`\\${T}`;case"u":return M(x,T,4);case"U":return M(x,T,6);default:return f(Ie.UNKNOWN_ESCAPE_SEQUENCE,i(),0,T),""}}function M(x,T,$){m(x,T);let Q="";for(let q=0;q<$;q++){const ne=te(x);if(!ne){f(Ie.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${T}${Q}${x.currentChar()}`);break}Q+=ne}return`\\${T}${Q}`}function D(x){return x!=="{"&&x!=="}"&&x!==_n&&x!==_t}function _(x){v(x);let T="",$="";for(;T=H(x,D);)$+=T;return $}function L(x){let T="",$="";for(;T=W(x);)$+=T;return $}function k(x){const T=$=>{const Q=x.currentChar();return Q==="{"||Q==="@"||Q==="|"||Q==="("||Q===")"||!Q||Q===_n?$:($+=Q,x.next(),T($))};return T("")}function S(x){v(x);const T=m(x,"|");return v(x),T}function R(x,T){let $=null;switch(x.currentChar()){case"{":return T.braceNest>=1&&f(Ie.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),x.next(),$=h(T,2,"{"),v(x),T.braceNest++,$;case"}":return T.braceNest>0&&T.currentType===2&&f(Ie.EMPTY_PLACEHOLDER,i(),0),x.next(),$=h(T,3,"}"),T.braceNest--,T.braceNest>0&&v(x),T.inLinked&&T.braceNest===0&&(T.inLinked=!1),$;case"@":return T.braceNest>0&&f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),$=U(x,T)||p(T),T.braceNest=0,$;default:{let q=!0,ne=!0,se=!0;if(B(x))return T.braceNest>0&&f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),$=h(T,1,S(x)),T.braceNest=0,T.inLinked=!1,$;if(T.braceNest>0&&(T.currentType===4||T.currentType===5||T.currentType===6))return f(Ie.UNTERMINATED_CLOSING_BRACE,i(),0),T.braceNest=0,Y(x,T);if(q=E(x,T))return $=h(T,4,me(x)),v(x),$;if(ne=C(x,T))return $=h(T,5,ye(x)),v(x),$;if(se=w(x,T))return $=h(T,6,Se(x)),v(x),$;if(!q&&!ne&&!se)return $=h(T,12,_(x)),f(Ie.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,$.value),v(x),$;break}}return $}function U(x,T){const{currentType:$}=T;let Q=null;const q=x.currentChar();switch(($===7||$===8||$===11||$===9)&&(q===_t||q===_n)&&f(Ie.INVALID_LINKED_FORMAT,i(),0),q){case"@":return x.next(),Q=h(T,7,"@"),T.inLinked=!0,Q;case".":return v(x),x.next(),h(T,8,".");case":":return v(x),x.next(),h(T,9,":");default:return B(x)?(Q=h(T,1,S(x)),T.braceNest=0,T.inLinked=!1,Q):I(x,T)||O(x,T)?(v(x),U(x,T)):A(x,T)?(v(x),h(T,11,L(x))):K(x,T)?(v(x),q==="{"?R(x,T)||Q:h(T,10,k(x))):($===7&&f(Ie.INVALID_LINKED_FORMAT,i(),0),T.braceNest=0,T.inLinked=!1,Y(x,T))}}function Y(x,T){let $={type:13};if(T.braceNest>0)return R(x,T)||p(T);if(T.inLinked)return U(x,T)||p(T);switch(x.currentChar()){case"{":return R(x,T)||p(T);case"}":return f(Ie.UNBALANCED_CLOSING_BRACE,i(),0),x.next(),h(T,3,"}");case"@":return U(x,T)||p(T);default:{if(B(x))return $=h(T,1,S(x)),T.braceNest=0,T.inLinked=!1,$;if(F(x))return h(T,0,pe(x));break}}return $}function G(){const{currentType:x,offset:T,startLoc:$,endLoc:Q}=a;return a.lastType=x,a.lastOffset=T,a.lastStartLoc=$,a.lastEndLoc=Q,a.offset=o(),a.startLoc=i(),r.currentChar()===Qn?h(a,13):Y(r,a)}return{nextToken:G,currentOffset:o,currentPosition:i,context:d}}const Y6="parser",G6=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Q6(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Z6(t={}){const e=t.location!==!1,{onError:n}=t;function r(y,b,E,C,...w){const I=y.currentPosition();if(I.offset+=C,I.column+=C,n){const A=e?Vc(E,I):null,O=Uo(b,A,{domain:Y6,args:w});n(O)}}function o(y,b,E){const C={type:y};return e&&(C.start=b,C.end=b,C.loc={start:E,end:E}),C}function i(y,b,E,C){e&&(y.end=b,y.loc&&(y.loc.end=E))}function s(y,b){const E=y.context(),C=o(3,E.offset,E.startLoc);return C.value=b,i(C,y.currentOffset(),y.currentPosition()),C}function c(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:w}=E,I=o(5,C,w);return I.index=parseInt(b,10),y.nextToken(),i(I,y.currentOffset(),y.currentPosition()),I}function a(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:w}=E,I=o(4,C,w);return I.key=b,y.nextToken(),i(I,y.currentOffset(),y.currentPosition()),I}function d(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:w}=E,I=o(9,C,w);return I.value=b.replace(G6,Q6),y.nextToken(),i(I,y.currentOffset(),y.currentPosition()),I}function u(y){const b=y.nextToken(),E=y.context(),{lastOffset:C,lastStartLoc:w}=E,I=o(8,C,w);return b.type!==11?(r(y,Ie.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),I.value="",i(I,C,w),{nextConsumeToken:b,node:I}):(b.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Nn(b)),I.value=b.value||"",i(I,y.currentOffset(),y.currentPosition()),{node:I})}function f(y,b){const E=y.context(),C=o(7,E.offset,E.startLoc);return C.value=b,i(C,y.currentOffset(),y.currentPosition()),C}function h(y){const b=y.context(),E=o(6,b.offset,b.startLoc);let C=y.nextToken();if(C.type===8){const w=u(y);E.modifier=w.node,C=w.nextConsumeToken||y.nextToken()}switch(C.type!==9&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),C=y.nextToken(),C.type===2&&(C=y.nextToken()),C.type){case 10:C.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=f(y,C.value||"");break;case 4:C.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=a(y,C.value||"");break;case 5:C.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=c(y,C.value||"");break;case 6:C.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=d(y,C.value||"");break;default:{r(y,Ie.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const w=y.context(),I=o(7,w.offset,w.startLoc);return I.value="",i(I,w.offset,w.startLoc),E.key=I,i(E,w.offset,w.startLoc),{nextConsumeToken:C,node:E}}}return i(E,y.currentOffset(),y.currentPosition()),{node:E}}function p(y){const b=y.context(),E=b.currentType===1?y.currentOffset():b.offset,C=b.currentType===1?b.endLoc:b.startLoc,w=o(2,E,C);w.items=[];let I=null;do{const K=I||y.nextToken();switch(I=null,K.type){case 0:K.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(K)),w.items.push(s(y,K.value||""));break;case 5:K.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(K)),w.items.push(c(y,K.value||""));break;case 4:K.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(K)),w.items.push(a(y,K.value||""));break;case 6:K.value==null&&r(y,Ie.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(K)),w.items.push(d(y,K.value||""));break;case 7:{const B=h(y);w.items.push(B.node),I=B.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:y.currentOffset(),O=b.currentType===1?b.lastEndLoc:y.currentPosition();return i(w,A,O),w}function m(y,b,E,C){const w=y.context();let I=C.items.length===0;const A=o(1,b,E);A.cases=[],A.cases.push(C);do{const O=p(y);I||(I=O.items.length===0),A.cases.push(O)}while(w.currentType!==13);return I&&r(y,Ie.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),i(A,y.currentOffset(),y.currentPosition()),A}function g(y){const b=y.context(),{offset:E,startLoc:C}=b,w=p(y);return b.currentType===13?w:m(y,E,C,w)}function v(y){const b=K6(y,vt({},t)),E=b.context(),C=o(0,E.offset,E.startLoc);return e&&C.loc&&(C.loc.source=y),C.body=g(b),t.onCacheKey&&(C.cacheKey=t.onCacheKey(y)),E.currentType!==13&&r(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,y[E.offset]||""),i(C,b.currentOffset(),b.currentPosition()),C}return{parse:v}}function Nn(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function J6(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function _p(t,e){for(let n=0;n<t.length;n++)ed(t[n],e)}function ed(t,e){switch(t.type){case 1:_p(t.cases,e),e.helper("plural");break;case 2:_p(t.items,e);break;case 6:{ed(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function X6(t,e={}){const n=J6(t);n.helper("normalize"),t.body&&ed(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function q6(t){const e=t.body;return e.type===2?Np(e):e.cases.forEach(n=>Np(n)),t}function Np(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=qc(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const V6="minifier";function Ho(t){switch(t.t=t.type,t.type){case 0:{const e=t;Ho(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)Ho(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)Ho(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Ho(e.key),e.k=e.key,delete e.key,e.modifier&&(Ho(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:if(process.env.NODE_ENV!=="production")throw Uo(Ie.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:V6,args:[t.type]})}delete t.type}const eC="parser";function tC(t,e){const{filename:n,breakLineCode:r,needIndent:o}=e,i=e.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};i&&t.loc&&(s.source=t.loc.source);const c=()=>s;function a(g,v){s.code+=g}function d(g,v=!0){const y=v?r:"";a(o?y+" ".repeat(g):y)}function u(g=!0){const v=++s.indentLevel;g&&d(v)}function f(g=!0){const v=--s.indentLevel;g&&d(v)}function h(){d(s.indentLevel)}return{context:c,push:a,indent:u,deindent:f,newline:h,helper:g=>`_${g}`,needIndent:()=>s.needIndent}}function nC(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),jo(t,e.key),e.modifier?(t.push(", "),jo(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function rC(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const o=e.items.length;for(let i=0;i<o&&(jo(t,e.items[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function oC(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const o=e.cases.length;for(let i=0;i<o&&(jo(t,e.cases[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function iC(t,e){e.body?jo(t,e.body):t.push("null")}function jo(t,e){const{helper:n}=t;switch(e.type){case 0:iC(t,e);break;case 1:oC(t,e);break;case 2:rC(t,e);break;case 6:nC(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw Uo(Ie.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:eC,args:[e.type]})}}const sC=(t,e={})=>{const n=Ee(e.mode)?e.mode:"normal",r=Ee(e.filename)?e.filename:"message.intl";e.sourceMap;const o=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
|
|
59
|
+
`,i=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],c=tC(t,{filename:r,breakLineCode:o,needIndent:i});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(i),s.length>0&&(c.push(`const { ${qc(s.map(u=>`${u}: _${u}`),", ")} } = ctx`),c.newline()),c.push("return "),jo(c,t),c.deindent(i),c.push("}"),delete t.helpers;const{code:a,map:d}=c.context();return{ast:t,code:a,map:d?d.toJSON():void 0}};function aC(t,e={}){const n=vt({},e),r=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,c=Z6(n).parse(t);return r?(i&&q6(c),o&&Ho(c),{ast:c,code:""}):(X6(c,n),sC(c,n))}function lC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ro().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ro().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function bn(t){return Ue(t)&&td(t)===0&&(yn(t,"b")||yn(t,"body"))}const Op=["b","body"];function cC(t){return gr(t,Op)}const Mp=["c","cases"];function dC(t){return gr(t,Mp,[])}const Lp=["s","static"];function uC(t){return gr(t,Lp)}const Dp=["i","items"];function fC(t){return gr(t,Dp,[])}const Pp=["t","type"];function td(t){return gr(t,Pp)}const Bp=["v","value"];function pa(t,e){const n=gr(t,Bp);if(n!=null)return n;throw Oi(e)}const Rp=["m","modifier"];function hC(t){return gr(t,Rp)}const $p=["k","key"];function pC(t){const e=gr(t,$p);if(e)return e;throw Oi(6)}function gr(t,e,n){for(let r=0;r<e.length;r++){const o=e[r];if(yn(t,o)&&t[o]!=null)return t[o]}return n}const Fp=[...Op,...Mp,...Lp,...Dp,...$p,...Rp,...Bp,...Pp];function Oi(t){return new Error(`unhandled node type: ${t}`)}function nd(t){return n=>mC(n,t)}function mC(t,e){const n=cC(e);if(n==null)throw Oi(0);if(td(n)===1){const i=dC(n);return t.plural(i.reduce((s,c)=>[...s,zp(t,c)],[]))}else return zp(t,n)}function zp(t,e){const n=uC(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=fC(e).reduce((o,i)=>[...o,rd(t,i)],[]);return t.normalize(r)}}function rd(t,e){const n=td(e);switch(n){case 3:return pa(e,n);case 9:return pa(e,n);case 4:{const r=e;if(yn(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(yn(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Oi(n)}case 5:{const r=e;if(yn(r,"i")&>(r.i))return t.interpolate(t.list(r.i));if(yn(r,"index")&>(r.index))return t.interpolate(t.list(r.index));throw Oi(n)}case 6:{const r=e,o=hC(r),i=pC(r);return t.linked(rd(t,i),o?rd(t,o):void 0,t.type)}case 7:return pa(e,n);case 8:return pa(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const gC="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function vC(t,e){e&&$6(t)&&In(ca(gC,{source:t}))}const yC=t=>t;let ma=We();function bC(t,e={}){let n=!1;const r=e.onError||B6;return e.onError=o=>{n=!0,r(o)},{...aC(t,e),detectError:n}}function CC(t,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ee(t)){const n=st(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&vC(t,n);const o=(e.onCacheKey||yC)(t),i=ma[o];if(i)return i;const{ast:s,detectError:c}=bC(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),a=nd(s);return c?a:ma[o]=a}else{if(process.env.NODE_ENV!=="production"&&!bn(t))return In(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),(()=>t);const n=t.cacheKey;if(n){const r=ma[n];return r||(ma[n]=nd(t))}else return nd(t)}}let Mi=null;function EC(t){Mi=t}function kC(t,e,n){Mi&&Mi.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const wC=SC("function:translate");function SC(t){return e=>Mi&&Mi.emit(t,e)}const Nt={INVALID_ARGUMENT:D6,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},AC=24;function Zn(t){return Uo(t,null,process.env.NODE_ENV!=="production"?{messages:xC}:void 0)}const xC={[Nt.INVALID_ARGUMENT]:"Invalid arguments",[Nt.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Nt.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Nt.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Nt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Nt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Nt.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function od(t,e){return e.locale!=null?Up(e.locale):Up(t.locale)}let id;function Up(t){if(Ee(t))return t;if(Je(t)){if(t.resolvedOnce&&id!=null)return id;if(t.constructor.name==="Function"){const e=t();if(_6(e))throw Zn(Nt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return id=e}else throw Zn(Nt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Zn(Nt.NOT_SUPPORT_LOCALE_TYPE)}function TC(t,e,n){return[...new Set([n,...it(e)?e:Ue(e)?Object.keys(e):Ee(e)?[e]:[n]])]}function Hp(t,e,n){const r=Ee(n)?n:va,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;it(s);)s=jp(i,s,e);const c=it(e)||!He(e)?e:e.default?e.default:null;s=Ee(c)?[c]:c,it(s)&&jp(i,s,!1),o.__localeChainCache.set(r,i)}return i}function jp(t,e,n){let r=!0;for(let o=0;o<e.length&&st(r);o++){const i=e[o];Ee(i)&&(r=IC(t,e[o],n))}return r}function IC(t,e,n){let r;const o=e.split("-");do{const i=o.join("-");r=_C(t,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function _C(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const o=e.replace(/!/g,"");t.push(o),(it(n)||He(n))&&n[o]&&(r=n[o])}return r}const vr=[];vr[0]={w:[0],i:[3,0],"[":[4],o:[7]},vr[1]={w:[1],".":[2],"[":[4],o:[7]},vr[2]={w:[2],i:[3,0],0:[3,0]},vr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},vr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},vr[5]={"'":[4,0],o:8,l:[5,0]},vr[6]={'"':[4,0],o:8,l:[6,0]};const NC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function OC(t){return NC.test(t)}function MC(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function LC(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function DC(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:OC(e)?MC(e):"*"+e}function PC(t){const e=[];let n=-1,r=0,o=0,i,s,c,a,d,u,f;const h=[];h[0]=()=>{s===void 0?s=c:s+=c},h[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,s===void 0||(s=DC(s),s===!1))return!1;h[1]()}};function p(){const m=t[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,c="\\"+m,h[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&p())){if(a=LC(i),f=vr[r],d=f[a]||f.l||8,d===8||(r=d[0],d[1]!==void 0&&(u=h[d[1]],u&&(c=i,u()===!1))))return;if(r===7)return e}}const Wp=new Map;function BC(t,e){return Ue(t)?t[e]:null}function RC(t,e){if(!Ue(t))return null;let n=Wp.get(e);if(n||(n=PC(e),n&&Wp.set(e,n)),!n)return null;const r=n.length;let o=t,i=0;for(;i<r;){const s=n[i];if(Fp.includes(s)&&bn(o))return null;const c=o[s];if(c===void 0||Je(o))return null;o=c,i++}return o}const Ht={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},$C=8,FC={[Ht.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ht.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ht.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ht.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ht.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ht.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function oo(t,...e){return ca(FC[t],...e)}const zC="11.2.8",ga=-1,va="en-US",ya="",Kp=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function UC(){return{upper:(t,e)=>e==="text"&&Ee(t)?t.toUpperCase():e==="vnode"&&Ue(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Ee(t)?t.toLowerCase():e==="vnode"&&Ue(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Ee(t)?Kp(t):e==="vnode"&&Ue(t)&&"__v_isVNode"in t?Kp(t.children):t}}let Yp;function HC(t){Yp=t}let Gp;function jC(t){Gp=t}let Qp;function WC(t){Qp=t}let Zp=null;const KC=t=>{Zp=t},YC=()=>Zp;let Jp=null;const Xp=t=>{Jp=t},GC=()=>Jp;let qp=0;function QC(t={}){const e=Je(t.onWarn)?t.onWarn:In,n=Ee(t.version)?t.version:zC,r=Ee(t.locale)||Je(t.locale)?t.locale:va,o=Je(r)?va:r,i=it(t.fallbackLocale)||He(t.fallbackLocale)||Ee(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,s=He(t.messages)?t.messages:sd(o),c=He(t.datetimeFormats)?t.datetimeFormats:sd(o),a=He(t.numberFormats)?t.numberFormats:sd(o),d=vt(We(),t.modifiers,UC()),u=t.pluralRules||We(),f=Je(t.missing)?t.missing:null,h=st(t.missingWarn)||da(t.missingWarn)?t.missingWarn:!0,p=st(t.fallbackWarn)||da(t.fallbackWarn)?t.fallbackWarn:!0,m=!!t.fallbackFormat,g=!!t.unresolving,v=Je(t.postTranslation)?t.postTranslation:null,y=He(t.processor)?t.processor:null,b=st(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter,C=Je(t.messageCompiler)?t.messageCompiler:Yp;process.env.NODE_ENV!=="production"&&Je(t.messageCompiler)&&E6(oo(Ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=Je(t.messageResolver)?t.messageResolver:Gp||BC,I=Je(t.localeFallbacker)?t.localeFallbacker:Qp||TC,A=Ue(t.fallbackContext)?t.fallbackContext:void 0,O=t,K=Ue(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,B=Ue(O.__numberFormatters)?O.__numberFormatters:new Map,F=Ue(O.__meta)?O.__meta:{};qp++;const H={version:n,cid:qp,locale:r,fallbackLocale:i,messages:s,modifiers:d,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:m,unresolving:g,postTranslation:v,processor:y,warnHtmlMessage:b,escapeParameter:E,messageCompiler:C,messageResolver:w,localeFallbacker:I,fallbackContext:A,onWarn:e,__meta:F};return H.datetimeFormats=c,H.numberFormats=a,H.__datetimeFormatters=K,H.__numberFormatters=B,process.env.NODE_ENV!=="production"&&(H.__v_emitter=O.__v_emitter!=null?O.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&kC(H,n,F),H}const sd=t=>({[t]:We()});function ba(t,e){return t instanceof RegExp?t.test(e):t}function Vp(t,e){return t instanceof RegExp?t.test(e):t}function ad(t,e,n,r,o){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const c=t.__v_emitter;c&&c.emit("missing",{locale:n,key:e,type:o,groupId:`${o}:${e}`})}if(i!==null){const c=i(t,n,e,o);return Ee(c)?c:e}else return process.env.NODE_ENV!=="production"&&Vp(r,e)&&s(oo(Ht.NOT_FOUND_KEY,{key:e,locale:n})),e}function Li(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function e1(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function ZC(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(e1(t,e[r]))return!0;return!1}const t1=typeof Intl<"u",n1={dateTimeFormat:t1&&typeof Intl.DateTimeFormat<"u",numberFormat:t1&&typeof Intl.NumberFormat<"u"};function r1(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!n1.dateTimeFormat)return i(oo(Ht.CANNOT_FORMAT_DATE)),ya;const[a,d,u,f]=ld(...e),h=st(u.missingWarn)?u.missingWarn:t.missingWarn,p=st(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,g=od(t,u),v=s(t,o,g);if(!Ee(a)||a==="")return new Intl.DateTimeFormat(g,f).format(d);let y={},b,E=null,C=g,w=null;const I="datetime format";for(let K=0;K<v.length;K++){if(b=w=v[K],process.env.NODE_ENV!=="production"&&g!==b&&ba(p,a)&&i(oo(Ht.FALLBACK_TO_DATE_FORMAT,{key:a,target:b})),process.env.NODE_ENV!=="production"&&g!==b){const B=t.__v_emitter;B&&B.emit("fallback",{type:I,key:a,from:C,to:w,groupId:`${I}:${a}`})}if(y=n[b]||{},E=y[a],He(E))break;ad(t,a,b,h,I),C=w}if(!He(E)||!Ee(b))return r?ga:a;let A=`${b}__${a}`;ua(f)||(A=`${A}__${JSON.stringify(f)}`);let O=c.get(A);return O||(O=new Intl.DateTimeFormat(b,vt({},E,f)),c.set(A,O)),m?O.formatToParts(d):O.format(d)}const o1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ld(...t){const[e,n,r,o]=t,i=We();let s=We(),c;if(Ee(e)){const a=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw Zn(Nt.INVALID_ISO_DATE_ARGUMENT);const d=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();c=new Date(d);try{c.toISOString()}catch{throw Zn(Nt.INVALID_ISO_DATE_ARGUMENT)}}else if(A6(e)){if(isNaN(e.getTime()))throw Zn(Nt.INVALID_DATE_ARGUMENT);c=e}else if(gt(e))c=e;else throw Zn(Nt.INVALID_ARGUMENT);return Ee(n)?i.key=n:He(n)&&Object.keys(n).forEach(a=>{o1.includes(a)?s[a]=n[a]:i[a]=n[a]}),Ee(r)?i.locale=r:He(r)&&(s=r),He(o)&&(s=o),[i.key||"",c,i,s]}function i1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function s1(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!n1.numberFormat)return i(oo(Ht.CANNOT_FORMAT_NUMBER)),ya;const[a,d,u,f]=cd(...e),h=st(u.missingWarn)?u.missingWarn:t.missingWarn,p=st(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,g=od(t,u),v=s(t,o,g);if(!Ee(a)||a==="")return new Intl.NumberFormat(g,f).format(d);let y={},b,E=null,C=g,w=null;const I="number format";for(let K=0;K<v.length;K++){if(b=w=v[K],process.env.NODE_ENV!=="production"&&g!==b&&ba(p,a)&&i(oo(Ht.FALLBACK_TO_NUMBER_FORMAT,{key:a,target:b})),process.env.NODE_ENV!=="production"&&g!==b){const B=t.__v_emitter;B&&B.emit("fallback",{type:I,key:a,from:C,to:w,groupId:`${I}:${a}`})}if(y=n[b]||{},E=y[a],He(E))break;ad(t,a,b,h,I),C=w}if(!He(E)||!Ee(b))return r?ga:a;let A=`${b}__${a}`;ua(f)||(A=`${A}__${JSON.stringify(f)}`);let O=c.get(A);return O||(O=new Intl.NumberFormat(b,vt({},E,f)),c.set(A,O)),m?O.formatToParts(d):O.format(d)}const a1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function cd(...t){const[e,n,r,o]=t,i=We();let s=We();if(!gt(e))throw Zn(Nt.INVALID_ARGUMENT);const c=e;return Ee(n)?i.key=n:He(n)&&Object.keys(n).forEach(a=>{a1.includes(a)?s[a]=n[a]:i[a]=n[a]}),Ee(r)?i.locale=r:He(r)&&(s=r),He(o)&&(s=o),[i.key||"",c,i,s]}function l1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const JC=t=>t,XC=t=>"",qC="text",VC=t=>t.length===0?"":qc(t),e9=N6;function c1(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function t9(t){const e=gt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(gt(t.named.count)||gt(t.named.n))?gt(t.named.count)?t.named.count:gt(t.named.n)?t.named.n:e:e}function n9(t,e){e.count||(e.count=t),e.n||(e.n=t)}function r9(t={}){const e=t.locale,n=t9(t),r=Ue(t.pluralRules)&&Ee(e)&&Je(t.pluralRules[e])?t.pluralRules[e]:c1,o=Ue(t.pluralRules)&&Ee(e)&&Je(t.pluralRules[e])?c1:void 0,i=y=>y[r(n,y.length,o)],s=t.list||[],c=y=>s[y],a=t.named||We();gt(t.pluralIndex)&&n9(n,a);const d=y=>a[y];function u(y,b){const E=Je(t.messages)?t.messages(y,!!b):Ue(t.messages)?t.messages[y]:!1;return E||(t.parent?t.parent.message(y):XC)}const f=y=>t.modifiers?t.modifiers[y]:JC,h=He(t.processor)&&Je(t.processor.normalize)?t.processor.normalize:VC,p=He(t.processor)&&Je(t.processor.interpolate)?t.processor.interpolate:e9,m=He(t.processor)&&Ee(t.processor.type)?t.processor.type:qC,v={list:c,named:d,plural:i,linked:(y,...b)=>{const[E,C]=b;let w="text",I="";b.length===1?Ue(E)?(I=E.modifier||I,w=E.type||w):Ee(E)&&(I=E||I):b.length===2&&(Ee(E)&&(I=E||I),Ee(C)&&(w=C||w));const A=u(y,!0)(v),O=w==="vnode"&&it(A)&&I?A[0]:A;return I?f(I)(O,w):O},message:u,type:m,interpolate:p,normalize:h,values:vt(We(),s,a)};return v}const d1=()=>"",nn=t=>Je(t);function u1(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:c}=t,[a,d]=dd(...e),u=st(d.missingWarn)?d.missingWarn:t.missingWarn,f=st(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,h=st(d.escapeParameter)?d.escapeParameter:t.escapeParameter,p=!!d.resolvedMessage,m=Ee(d.default)||st(d.default)?st(d.default)?i?a:()=>a:d.default:n?i?a:()=>a:null,g=n||m!=null&&(Ee(m)||Je(m)),v=od(t,d);h&&o9(d);let[y,b,E]=p?[a,v,c[v]||We()]:f1(t,a,v,s,f,u),C=y,w=a;if(!p&&!(Ee(C)||bn(C)||nn(C))&&g&&(C=m,w=C),!p&&(!(Ee(C)||bn(C)||nn(C))||!Ee(b)))return o?ga:a;if(process.env.NODE_ENV!=="production"&&Ee(C)&&t.messageCompiler==null)return In(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${a}'.`),a;let I=!1;const A=()=>{I=!0},O=nn(C)?C:h1(t,a,b,C,w,A);if(I)return C;const K=l9(t,b,E,d),B=r9(K),F=i9(t,O,B);let H=r?r(F,a):F;if(h&&Ee(H)&&(H=T6(H)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Z={timestamp:Date.now(),key:Ee(a)?a:nn(C)?C.key:"",locale:b||(nn(C)?C.locale:""),format:Ee(C)?C:nn(C)?C.source:"",message:H};Z.meta=vt({},t.__meta,YC()||{}),wC(Z)}return H}function o9(t){it(t.list)?t.list=t.list.map(e=>Ee(e)?Sp(e):e):Ue(t.named)&&Object.keys(t.named).forEach(e=>{Ee(t.named[e])&&(t.named[e]=Sp(t.named[e]))})}function f1(t,e,n,r,o,i){const{messages:s,onWarn:c,messageResolver:a,localeFallbacker:d}=t,u=d(t,r,n);let f=We(),h,p=null,m=n,g=null;const v="translate";for(let y=0;y<u.length;y++){if(h=g=u[y],process.env.NODE_ENV!=="production"&&n!==h&&!e1(n,h)&&ba(o,e)&&c(oo(Ht.FALLBACK_TO_TRANSLATE,{key:e,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const w=t.__v_emitter;w&&w.emit("fallback",{type:v,key:e,from:m,to:g,groupId:`${v}:${e}`})}f=s[h]||We();let b=null,E,C;if(process.env.NODE_ENV!=="production"&&Yn&&(b=window.performance.now(),E="intlify-message-resolve-start",C="intlify-message-resolve-end",Zt&&Zt(E)),(p=a(f,e))===null&&(p=f[e]),process.env.NODE_ENV!=="production"&&Yn){const w=window.performance.now(),I=t.__v_emitter;I&&b&&p&&I.emit("message-resolve",{type:"message-resolve",key:e,message:p,time:w-b,groupId:`${v}:${e}`}),E&&C&&Zt&&no&&(Zt(C),no("intlify message resolve",E,C))}if(Ee(p)||bn(p)||nn(p))break;if(!ZC(h,u)){const w=ad(t,e,h,i,v);w!==e&&(p=w)}m=g}return[p,h,f]}function h1(t,e,n,r,o,i){const{messageCompiler:s,warnHtmlMessage:c}=t;if(nn(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||e,h}if(s==null){const h=(()=>r);return h.locale=n,h.key=e,h}let a=null,d,u;process.env.NODE_ENV!=="production"&&Yn&&(a=window.performance.now(),d="intlify-message-compilation-start",u="intlify-message-compilation-end",Zt&&Zt(d));const f=s(r,s9(t,n,o,r,c,i));if(process.env.NODE_ENV!=="production"&&Yn){const h=window.performance.now(),p=t.__v_emitter;p&&a&&p.emit("message-compilation",{type:"message-compilation",message:r,time:h-a,groupId:`translate:${e}`}),d&&u&&Zt&&no&&(Zt(u),no("intlify message compilation",d,u))}return f.locale=n,f.key=e,f.source=r,f}function i9(t,e,n){let r=null,o,i;process.env.NODE_ENV!=="production"&&Yn&&(r=window.performance.now(),o="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Zt&&Zt(o));const s=e(n);if(process.env.NODE_ENV!=="production"&&Yn){const c=window.performance.now(),a=t.__v_emitter;a&&r&&a.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-r,groupId:`translate:${e.key}`}),o&&i&&Zt&&no&&(Zt(i),no("intlify message evaluation",o,i))}return s}function dd(...t){const[e,n,r]=t,o=We();if(!Ee(e)&&!gt(e)&&!nn(e)&&!bn(e))throw Zn(Nt.INVALID_ARGUMENT);const i=gt(e)?String(e):(nn(e),e);return gt(n)?o.plural=n:Ee(n)?o.default=n:He(n)&&!ua(n)?o.named=n:it(n)&&(o.list=n),gt(r)?o.plural=r:Ee(r)?o.default=r:He(r)&&vt(o,r),[i,o]}function s9(t,e,n,r,o,i){return{locale:e,key:n,warnHtmlMessage:o,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const c=a9(r),a=`Message compilation error: ${s.message}`,d=s.location&&c&&O6(c,s.location.start.offset,s.location.end.offset),u=t.__v_emitter;u&&c&&u.emit("compile-error",{message:c,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(d?`${a}
|
|
60
60
|
${d}`:a)}else throw s},onCacheKey:s=>w6(e,n,s)}}function a9(t){if(Ee(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function l9(t,e,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:c,fallbackWarn:a,missingWarn:d,fallbackContext:u}=t,h={locale:e,modifiers:o,pluralRules:i,messages:(p,m)=>{let g=s(n,p);if(g==null&&(u||m)){const[,,v]=f1(u||t,p,e,c,a,d);g=s(v,p)}if(Ee(g)||bn(g)){let v=!1;const b=h1(t,p,e,g,p,()=>{v=!0});return v?d1:b}else return nn(g)?g:d1}};return t.processor&&(h.processor=t.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),gt(r.plural)&&(h.pluralIndex=r.plural),h}lC();const c9="11.2.8";function d9(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ro().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ro().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ro().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ro().__INTLIFY_PROD_DEVTOOLS__=!1)}const wt={UNEXPECTED_RETURN_TYPE:AC,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Di(t,...e){return Uo(t,null,process.env.NODE_ENV!=="production"?{messages:u9,args:e}:void 0)}const u9={[wt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[wt.INVALID_ARGUMENT]:"Invalid argument",[wt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[wt.NOT_INSTALLED]:"Need to install with `app.use` function",[wt.UNEXPECTED_ERROR]:"Unexpected error",[wt.REQUIRED_VALUE]:"Required in value: {0}",[wt.INVALID_VALUE]:"Invalid value",[wt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[wt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[wt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[wt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},ud=Gn("__translateVNode"),fd=Gn("__datetimeParts"),hd=Gn("__numberParts"),pd=Gn("__enableEmitter"),md=Gn("__disableEmitter"),f9=Gn("__setPluralRules"),p1=Gn("__injectWithOption"),gd=Gn("__dispose"),On={FALLBACK_TO_ROOT:$C,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},h9={[On.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[On.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[On.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[On.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
61
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[On.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[On.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Ca(t,...e){return ca(h9[t],...e)}function Pi(t){if(!Ue(t)||bn(t))return t;for(const e in t)if(yn(t,e))if(!e.includes("."))Ue(t[e])&&Pi(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=We()),!Ue(o[n[s]])){process.env.NODE_ENV!=="production"&&In(Ca(On.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(bn(o)?Fp.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!bn(o)){const s=o[n[r]];Ue(s)&&Pi(s)}}return t}function m1(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=He(n)?n:it(r)?We():{[t]:We()};if(it(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:a,resource:d}=c;a?(s[a]=s[a]||We(),ha(d,s[a])):ha(d,s)}else Ee(c)&&ha(JSON.parse(c),s)}),o==null&&i)for(const c in s)yn(s,c)&&Pi(s[c]);return s}function g1(t){return t.type}function p9(t,e,n){let r=Ue(e.messages)?e.messages:We();"__i18nGlobal"in n&&(r=m1(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ue(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ue(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function v1(t){return l.createVNode(l.Text,null,t,0)}function vd(){const t="currentInstance";return t in Sc?Sc[t]:Sc.getCurrentInstance()}const y1="__INTLIFY_META__",b1=()=>[],m9=()=>!1;let C1=0;function E1(t){return((e,n,r,o)=>t(n,r,vd()||void 0,o))}const g9=()=>{const t=vd();let e=null;return t&&(e=g1(t)[y1])?{[y1]:e}:null};function v9(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,o=t.flatJson,i=Yn?l.ref:l.shallowRef;let s=st(t.inheritLocale)?t.inheritLocale:!0;const c=i(e&&s?e.locale.value:Ee(t.locale)?t.locale:va),a=i(e&&s?e.fallbackLocale.value:Ee(t.fallbackLocale)||it(t.fallbackLocale)||He(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),d=i(m1(c.value,t)),u=i(He(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),f=i(He(t.numberFormats)?t.numberFormats:{[c.value]:{}});let h=e?e.missingWarn:st(t.missingWarn)||da(t.missingWarn)?t.missingWarn:!0,p=e?e.fallbackWarn:st(t.fallbackWarn)||da(t.fallbackWarn)?t.fallbackWarn:!0,m=e?e.fallbackRoot:st(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,v=Je(t.missing)?t.missing:null,y=Je(t.missing)?E1(t.missing):null,b=Je(t.postTranslation)?t.postTranslation:null,E=e?e.warnHtmlMessage:st(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter;const w=e?e.modifiers:He(t.modifiers)?t.modifiers:{};let I=t.pluralRules||e&&e.pluralRules,A;A=(()=>{r&&Xp(null);const X={version:c9,locale:c.value,fallbackLocale:a.value,messages:d.value,modifiers:w,pluralRules:I,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:p,fallbackFormat:g,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:E,escapeParameter:C,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};X.datetimeFormats=u.value,X.numberFormats=f.value,X.__datetimeFormatters=He(A)?A.__datetimeFormatters:void 0,X.__numberFormatters=He(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(X.__v_emitter=He(A)?A.__v_emitter:void 0);const re=QC(X);return r&&Xp(re),re})(),Li(A,c.value,a.value);function W(){return[c.value,a.value,d.value,u.value,f.value]}const $=l.computed({get:()=>c.value,set:X=>{A.locale=X,c.value=X}}),z=l.computed({get:()=>a.value,set:X=>{A.fallbackLocale=X,a.value=X,Li(A,c.value,X)}}),j=l.computed(()=>d.value),Z=l.computed(()=>u.value),K=l.computed(()=>f.value);function P(){return Je(b)?b:null}function N(X){b=X,A.postTranslation=X}function J(){return v}function U(X){X!==null&&(y=E1(X)),v=X,A.missing=y}function V(X,re){return X!=="translate"||!re.resolvedMessage}const te=(X,re,Ae,Ne,Oe,nt)=>{W();let mt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=e?GC():void 0),mt=X(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(Ae!=="translate exists"&>(mt)&&mt===ga||Ae==="translate exists"&&!mt){const[rt,Zr]=re();if(process.env.NODE_ENV!=="production"&&e&&Ee(rt)&&V(Ae,Zr)&&(m&&(ba(p,rt)||Vp(h,rt))&&In(Ca(On.FALLBACK_TO_ROOT,{key:rt,type:Ae})),process.env.NODE_ENV!=="production")){const{__v_emitter:Tn}=A;Tn&&m&&Tn.emit("fallback",{type:Ae,key:rt,to:"global",groupId:`${Ae}:${rt}`})}return e&&m?Ne(e):Oe(rt)}else{if(nt(mt))return mt;throw Di(wt.UNEXPECTED_RETURN_TYPE)}};function ae(...X){return te(re=>Reflect.apply(u1,null,[re,...X]),()=>dd(...X),"translate",re=>Reflect.apply(re.t,re,[...X]),re=>re,re=>Ee(re))}function pe(...X){const[re,Ae,Ne]=X;if(Ne&&!Ue(Ne))throw Di(wt.INVALID_ARGUMENT);return ae(re,Ae,vt({resolvedMessage:!0},Ne||{}))}function me(...X){return te(re=>Reflect.apply(r1,null,[re,...X]),()=>ld(...X),"datetime format",re=>Reflect.apply(re.d,re,[...X]),()=>ya,re=>Ee(re)||it(re))}function ye(...X){return te(re=>Reflect.apply(s1,null,[re,...X]),()=>cd(...X),"number format",re=>Reflect.apply(re.n,re,[...X]),()=>ya,re=>Ee(re)||it(re))}function Ce(X){return X.map(re=>Ee(re)||gt(re)||st(re)?v1(String(re)):re)}const ve={normalize:Ce,interpolate:X=>X,type:"vnode"};function M(...X){return te(re=>{let Ae;const Ne=re;try{Ne.processor=ve,Ae=Reflect.apply(u1,null,[Ne,...X])}finally{Ne.processor=null}return Ae},()=>dd(...X),"translate",re=>re[ud](...X),re=>[v1(re)],re=>it(re))}function D(...X){return te(re=>Reflect.apply(s1,null,[re,...X]),()=>cd(...X),"number format",re=>re[hd](...X),b1,re=>Ee(re)||it(re))}function _(...X){return te(re=>Reflect.apply(r1,null,[re,...X]),()=>ld(...X),"datetime format",re=>re[fd](...X),b1,re=>Ee(re)||it(re))}function L(X){I=X,A.pluralRules=I}function k(X,re){return te(()=>{if(!X)return!1;const Ae=Ee(re)?re:c.value,Ne=H(Ae),Oe=A.messageResolver(Ne,X);return bn(Oe)||nn(Oe)||Ee(Oe)},()=>[X],"translate exists",Ae=>Reflect.apply(Ae.te,Ae,[X,re]),m9,Ae=>st(Ae))}function S(X){let re=null;const Ae=Hp(A,a.value,c.value);for(let Ne=0;Ne<Ae.length;Ne++){const Oe=d.value[Ae[Ne]]||{},nt=A.messageResolver(Oe,X);if(nt!=null){re=nt;break}}return re}function R(X){const re=S(X);return re??(e?e.tm(X)||{}:{})}function H(X){return d.value[X]||{}}function Y(X,re){if(o){const Ae={[X]:re};for(const Ne in Ae)yn(Ae,Ne)&&Pi(Ae[Ne]);re=Ae[X]}d.value[X]=re,A.messages=d.value}function G(X,re){d.value[X]=d.value[X]||{};const Ae={[X]:re};if(o)for(const Ne in Ae)yn(Ae,Ne)&&Pi(Ae[Ne]);re=Ae[X],ha(re,d.value[X]),A.messages=d.value}function x(X){return u.value[X]||{}}function T(X,re){u.value[X]=re,A.datetimeFormats=u.value,i1(A,X,re)}function F(X,re){u.value[X]=vt(u.value[X]||{},re),A.datetimeFormats=u.value,i1(A,X,re)}function Q(X){return f.value[X]||{}}function q(X,re){f.value[X]=re,A.numberFormats=f.value,l1(A,X,re)}function ne(X,re){f.value[X]=vt(f.value[X]||{},re),A.numberFormats=f.value,l1(A,X,re)}C1++,e&&Yn&&(l.watch(e.locale,X=>{s&&(c.value=X,A.locale=X,Li(A,c.value,a.value))}),l.watch(e.fallbackLocale,X=>{s&&(a.value=X,A.fallbackLocale=X,Li(A,c.value,a.value))}));const se={id:C1,locale:$,fallbackLocale:z,get inheritLocale(){return s},set inheritLocale(X){s=X,X&&e&&(c.value=e.locale.value,a.value=e.fallbackLocale.value,Li(A,c.value,a.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:j,get modifiers(){return w},get pluralRules(){return I||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(X){h=X,A.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(X){p=X,A.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(X){m=X},get fallbackFormat(){return g},set fallbackFormat(X){g=X,A.fallbackFormat=g},get warnHtmlMessage(){return E},set warnHtmlMessage(X){E=X,A.warnHtmlMessage=X},get escapeParameter(){return C},set escapeParameter(X){C=X,A.escapeParameter=X},t:ae,getLocaleMessage:H,setLocaleMessage:Y,mergeLocaleMessage:G,getPostTranslationHandler:P,setPostTranslationHandler:N,getMissingHandler:J,setMissingHandler:U,[f9]:L};return se.datetimeFormats=Z,se.numberFormats=K,se.rt=pe,se.te=k,se.tm=R,se.d=me,se.n=ye,se.getDateTimeFormat=x,se.setDateTimeFormat=T,se.mergeDateTimeFormat=F,se.getNumberFormat=Q,se.setNumberFormat=q,se.mergeNumberFormat=ne,se[p1]=n,se[ud]=M,se[fd]=_,se[hd]=D,process.env.NODE_ENV!=="production"&&(se[pd]=X=>{A.__v_emitter=X},se[md]=()=>{A.__v_emitter=void 0}),se}function k1(t,e){}const yd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function y9({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===l.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},We())}function w1(){return l.Fragment}vt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>gt(t)||!isNaN(t)}},yd);function b9(t){return it(t)&&!Ee(t[0])}function S1(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let c=We();t.locale&&(s.locale=t.locale),Ee(t.format)?s.key=t.format:Ue(t.format)&&(Ee(t.format.key)&&(s.key=t.format.key),c=Object.keys(t.format).reduce((h,p)=>n.includes(p)?vt(We(),h,{[p]:t.format[p]}):h,We()));const a=r(t.value,s,c);let d=[s.key];it(a)?d=a.map((h,p)=>{const m=o[h.type],g=m?m({[h.type]:h.value,index:p,parts:a}):[h.value];return b9(g)&&(g[0].key=`${h.type}-${p}`),g}):Ee(a)&&(d=[a]);const u=vt(We(),i),f=Ee(t.tag)||Ue(t.tag)?t.tag:w1();return l.h(f,u,d)}}vt({value:{type:Number,required:!0},format:{type:[String,Object]}},yd);const C9=Gn("global-vue-i18n");function Ot(t={}){const e=vd();if(e==null)throw Di(wt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Di(wt.NOT_INSTALLED);const n=E9(e),r=w9(n),o=g1(e),i=k9(t,o);if(i==="global")return p9(r,t,o),r;if(i==="parent"){let a=S9(n,e,t.__useComponent);return a==null&&(process.env.NODE_ENV!=="production"&&In(Ca(On.NOT_FOUND_PARENT_SCOPE)),a=r),a}const s=n;let c=s.__getInstance(e);if(c==null){const a=vt({},t);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),c=v9(a),s.__composerExtend&&(c[gd]=s.__composerExtend(c)),x9(s,e,c),s.__setInstance(e,c)}else process.env.NODE_ENV!=="production"&&i==="local"&&In(Ca(On.DUPLICATE_USE_I18N_CALLING));return c}function E9(t){const e=l.inject(t.isCE?C9:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Di(t.isCE?wt.NOT_INSTALLED_WITH_PROVIDE:wt.UNEXPECTED_ERROR);return e}function k9(t,e){return ua(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function w9(t){return t.mode==="composition"?t.global:t.global.__composer}function S9(t,e,n=!1){let r=null;const o=e.root;let i=A9(e,n);for(;i!=null;){const s=t;if(t.mode==="composition")r=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const c=s.__getInstance(i);c!=null&&(r=c.__composer,n&&r&&!r[p1]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function A9(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function x9(t,e,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"){e.__VUE_I18N__=n,r=M6();const o=n;o[pd]&&o[pd](r),r.on("*",k1)}},e),l.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",k1),o[md]&&o[md](),delete e.__VUE_I18N__),t.__deleteInstance(e);const i=o[gd];i&&(i(),delete o[gd])},e)}if(vt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yd),d9(),HC(CC),jC(RC),WC(Hp),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=ro();t.__INTLIFY__=!0,EC(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Cn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function bd(t){return typeof t=="function"&&"call"in t&&"apply"in t}function je(t){return!Cn(t)}function yr(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function A1(t,e){let n=-1;if(je(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function Bt(t,...e){return bd(t)?t(...e):t}function jt(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Mn(t){return jt(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Cd(t,e="",n={}){let r=Mn(e).split("."),o=r.shift();if(o){if(yr(t)){let i=Object.keys(t).find(s=>Mn(s)===o)||"";return Cd(Bt(t[i],n),r.join("."),n)}return}return Bt(t,n)}function x1(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function T9(t){return je(t)&&!isNaN(t)}function I9(t=""){return je(t)&&t.length===1&&!!t.match(/\S| /)}function io(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Bi(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function _9(t){return jt(t,!1)?t[0].toUpperCase()+t.slice(1):t}function T1(t){return jt(t)?t.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():t}function Ed(){let t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.forEach(o=>{o(n)})},clear(){t.clear()}}}function Ri(...t){if(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];if(!r)continue;let o=typeof r;if(o==="string"||o==="number")e.push(r);else if(o==="object"){let i=Array.isArray(r)?[Ri(...r)]:Object.entries(r).map(([s,c])=>c?s:void 0);e=i.length?e.concat(i.filter(s=>!!s)):e}}return e.join(" ").trim()}}function N9(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function O9(t,e){if(t&&e){let n=r=>{N9(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function kd(t,e){if(t&&e){let n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function I1(t){for(let e of document?.styleSheets)try{for(let n of e?.cssRules)for(let r of n?.style)if(t.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function M9(t){let e={width:0,height:0};if(t){let[n,r]=[t.style.visibility,t.style.display],o=t.getBoundingClientRect();t.style.visibility="hidden",t.style.display="block",e.width=o.width||t.offsetWidth,e.height=o.height||t.offsetHeight,t.style.display=r,t.style.visibility=n}return e}function _1(){let t=window,e=document,n=e.documentElement,r=e.getElementsByTagName("body")[0],o=t.innerWidth||n.clientWidth||r.clientWidth,i=t.innerHeight||n.clientHeight||r.clientHeight;return{width:o,height:i}}function wd(t){return t?Math.abs(t.scrollLeft):0}function L9(){let t=document.documentElement;return(window.pageXOffset||wd(t))-(t.clientLeft||0)}function D9(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function P9(t){return t?getComputedStyle(t).direction==="rtl":!1}function B9(t,e,n=!0){var r,o,i,s;if(t){let c=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:M9(t),a=c.height,d=c.width,u=e.offsetHeight,f=e.offsetWidth,h=e.getBoundingClientRect(),p=D9(),m=L9(),g=_1(),v,y,b="top";h.top+u+a>g.height?(v=h.top+p-a,b="bottom",v<0&&(v=p)):v=u+h.top+p,h.left+d>g.width?y=Math.max(0,h.left+m+f-d):y=h.left+m,P9(t)?t.style.insetInlineEnd=y+"px":t.style.insetInlineStart=y+"px",t.style.top=v+"px",t.style.transformOrigin=b,n&&(t.style.marginTop=b==="bottom"?`calc(${(o=(r=I1(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=I1(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function N1(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,r])=>t.style[n]=r))}function $i(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function O1(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function R9(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&O1(t))}function Fi(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Sd;function M1(t){{if(Sd!=null)return Sd;let e=document.createElement("div");N1(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);let n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),Sd=n,n}}function Ea(t,e={}){if(Fi(t)){let n=(r,o)=>{var i,s;let c=(i=t?.$attrs)!=null&&i[r]?[(s=t?.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((a,d)=>{if(d!=null){let u=typeof d;if(u==="string"||u==="number")a.push(d);else if(u==="object"){let f=Array.isArray(d)?n(r,d):Object.entries(d).map(([h,p])=>r==="style"&&(p||p===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?h:void 0);a=f.length?a.concat(f.filter(h=>!!h)):a}}return a},c)};Object.entries(e).forEach(([r,o])=>{if(o!=null){let i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"||r==="pBind"?Ea(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function $9(t,e={},...n){{let r=document.createElement(t);return Ea(r,e),r.append(...n),r}}function zi(t,e){return Fi(t)?t.matches(e)?t:t.querySelector(e):null}function so(t,e){t&&document.activeElement!==t&&t.focus(e)}function F9(t,e){if(Fi(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function L1(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function z9(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let r=t.offsetHeight;return t.style.display=n,t.style.visibility=e,r}return 0}function U9(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let r=t.offsetWidth;return t.style.display=n,t.style.visibility=e,r}return 0}function D1(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||wd(document.documentElement)||wd(document.body)||0)}}return{top:"auto",left:"auto"}}function P1(t,e){return t?t.offsetHeight:0}function B1(t,e=[]){let n=O1(t);return n===null?e:B1(n,e.concat([n]))}function H9(t){let e=[];if(t){let n=B1(t),r=/(auto|scroll)/,o=i=>{try{let s=window.getComputedStyle(i,null);return r.test(s.getPropertyValue("overflow"))||r.test(s.getPropertyValue("overflowX"))||r.test(s.getPropertyValue("overflowY"))}catch{return!1}};for(let i of n){let s=i.nodeType===1&&i.dataset.scrollselectors;if(s){let c=s.split(",");for(let a of c){let d=zi(i,a);d&&o(d)&&e.push(d)}}i.nodeType!==9&&o(i)&&e.push(i)}}return e}function R1(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function $1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function j9(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function W9(t,e){var n,r;if(t){let o=t.parentElement,i=D1(o),s=_1(),c=t.offsetParent?t.offsetWidth:U9(t),a=t.offsetParent?t.offsetHeight:z9(t),d=$i((n=o?.children)==null?void 0:n[0]),u=P1((r=o?.children)==null?void 0:r[0]),f="",h="";i.left+d+c>s.width-M1()?i.left<c?e%2===1?f=i.left?"-"+i.left+"px":"100%":e%2===0&&(f=s.width-c-M1()+"px"):f="-100%":f="100%",t.getBoundingClientRect().top+u+a>s.height?h=`-${a-u}px`:h="0px",t.style.top=h,t.style.insetInlineStart=f}}function K9(t,e="",n){Fi(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var ka={};function Y9(t="pui_id_"){return Object.hasOwn(ka,t)||(ka[t]=0),ka[t]++,`${t}${ka[t]}`}function G9(){let t=[],e=(s,c,a=999)=>{let d=o(s,c,a),u=d.value+(d.key===s?0:a)+1;return t.push({key:s,value:u}),u},n=s=>{t=t.filter(c=>c.value!==s)},r=(s,c)=>o(s).value,o=(s,c,a=0)=>[...t].reverse().find(d=>!0)||{key:s,value:a},i=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:i,set:(s,c,a)=>{c&&(c.style.zIndex=String(e(s,!0,a)))},clear:s=>{s&&(n(i(s)),s.style.zIndex="")},getCurrent:s=>r(s)}}var Ad=G9(),Q9=Object.defineProperty,Z9=Object.defineProperties,J9=Object.getOwnPropertyDescriptors,wa=Object.getOwnPropertySymbols,F1=Object.prototype.hasOwnProperty,z1=Object.prototype.propertyIsEnumerable,U1=(t,e,n)=>e in t?Q9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,En=(t,e)=>{for(var n in e||(e={}))F1.call(e,n)&&U1(t,n,e[n]);if(wa)for(var n of wa(e))z1.call(e,n)&&U1(t,n,e[n]);return t},xd=(t,e)=>Z9(t,J9(e)),Jn=(t,e)=>{var n={};for(var r in t)F1.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wa)for(var r of wa(t))e.indexOf(r)<0&&z1.call(t,r)&&(n[r]=t[r]);return n},X9=Ed(),Rt=X9,Ui=/{([^}]*)}/g,H1=/(\d+\s+[\+\-\*\/]\s+\d+)/g,j1=/var\([^)]+\)/g;function W1(t){return jt(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function q9(t){return yr(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function V9(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Td(t="",e=""){return V9(`${jt(t,!1)&&jt(e,!1)?`${t}-`:t}${e}`)}function K1(t="",e=""){return`--${Td(t,e)}`}function eE(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function Y1(t,e="",n="",r=[],o){if(jt(t)){let i=t.trim();if(eE(i))return;if(io(i,Ui)){let s=i.replaceAll(Ui,c=>{let a=c.replace(/{|}/g,"").split(".").filter(d=>!r.some(u=>io(d,u)));return`var(${K1(n,T1(a.join("-")))}${je(o)?`, ${o}`:""})`});return io(s.replace(j1,"0"),H1)?`calc(${s})`:s}return i}else if(T9(t))return t}function tE(t,e,n){jt(e,!1)&&t.push(`${e}:${n};`)}function Wo(t,e){return t?`${t}{${e}}`:""}function G1(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,c){let a=[],d=0,u="",f=null,h=0;for(;d<=s.length;){let p=s[d];if((p==='"'||p==="'"||p==="`")&&s[d-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||d===s.length)&&h===0)){let m=u.trim();m.startsWith("dt(")?a.push(G1(m,c)):a.push(r(m)),u="",d++;continue}p!==void 0&&(u+=p),d++}return a}function r(s){let c=s[0];if((c==='"'||c==="'"||c==="`")&&s[s.length-1]===c)return s.slice(1,-1);let a=Number(s);return isNaN(a)?s:a}let o=[],i=[];for(let s=0;s<t.length;s++)if(t[s]==="d"&&t.slice(s,s+3)==="dt(")i.push(s),s+=2;else if(t[s]===")"&&i.length>0){let c=i.pop();i.length===0&&o.push([c,s])}if(!o.length)return t;for(let s=o.length-1;s>=0;s--){let[c,a]=o[s],d=t.slice(c+3,a),u=n(d,e),f=e(...u);t=t.slice(0,c)+f+t.slice(a+1)}return t}var ao=(...t)=>nE(Qe.getTheme(),...t),nE=(t={},e,n,r)=>{if(e){let{variable:o,options:i}=Qe.defaults||{},{prefix:s,transform:c}=t?.options||i||{},a=io(e,Ui)?e:`{${e}}`;return r==="value"||Cn(r)&&c==="strict"?Qe.getTokenValue(e):Y1(a,void 0,s,[o.excludedKeyRegex],n)}return""};function Sa(t,...e){if(t instanceof Array){let n=t.reduce((r,o,i)=>{var s;return r+o+((s=Bt(e[i],{dt:ao}))!=null?s:"")},"");return G1(n,ao)}return Bt(t,{dt:ao})}function rE(t,e={}){let n=Qe.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=[],c=[],a=[{node:t,path:r}];for(;a.length;){let{node:u,path:f}=a.pop();for(let h in u){let p=u[h],m=q9(p),g=io(h,i)?Td(f):Td(f,T1(h));if(yr(m))a.push({node:m,path:g});else{let v=K1(g),y=Y1(m,g,r,[i]);tE(c,v,y);let b=g;r&&b.startsWith(r+"-")&&(b=b.slice(r.length+1)),s.push(b.replace(/-/g,"."))}}}let d=c.join("");return{value:c,tokens:s,declarations:d,css:Wo(o,d)}}var kn={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t},:host${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return rE(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,c,a,d,u,f;let{preset:h,options:p}=e,m,g,v,y,b,E,C;if(je(h)&&p.transform!=="strict"){let{primitive:w,semantic:I,extend:A}=h,O=I||{},{colorScheme:W}=O,$=Jn(O,["colorScheme"]),z=A||{},{colorScheme:j}=z,Z=Jn(z,["colorScheme"]),K=W||{},{dark:P}=K,N=Jn(K,["dark"]),J=j||{},{dark:U}=J,V=Jn(J,["dark"]),te=je(w)?this._toVariables({primitive:w},p):{},ae=je($)?this._toVariables({semantic:$},p):{},pe=je(N)?this._toVariables({light:N},p):{},me=je(P)?this._toVariables({dark:P},p):{},ye=je(Z)?this._toVariables({semantic:Z},p):{},Ce=je(V)?this._toVariables({light:V},p):{},Se=je(U)?this._toVariables({dark:U},p):{},[ve,M]=[(i=te.declarations)!=null?i:"",te.tokens],[D,_]=[(s=ae.declarations)!=null?s:"",ae.tokens||[]],[L,k]=[(c=pe.declarations)!=null?c:"",pe.tokens||[]],[S,R]=[(a=me.declarations)!=null?a:"",me.tokens||[]],[H,Y]=[(d=ye.declarations)!=null?d:"",ye.tokens||[]],[G,x]=[(u=Ce.declarations)!=null?u:"",Ce.tokens||[]],[T,F]=[(f=Se.declarations)!=null?f:"",Se.tokens||[]];m=this.transformCSS(t,ve,"light","variable",p,r,o),g=M;let Q=this.transformCSS(t,`${D}${L}`,"light","variable",p,r,o),q=this.transformCSS(t,`${S}`,"dark","variable",p,r,o);v=`${Q}${q}`,y=[...new Set([..._,...k,...R])];let ne=this.transformCSS(t,`${H}${G}color-scheme:light`,"light","variable",p,r,o),se=this.transformCSS(t,`${T}color-scheme:dark`,"dark","variable",p,r,o);b=`${ne}${se}`,E=[...new Set([...Y,...x,...F])],C=Bt(h.css,{dt:ao})}return{primitive:{css:m,tokens:g},semantic:{css:v,tokens:y},global:{css:b,tokens:E},style:C}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var c,a,d;let u,f,h;if(je(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),m=e,{colorScheme:g,extend:v,css:y}=m,b=Jn(m,["colorScheme","extend","css"]),E=v||{},{colorScheme:C}=E,w=Jn(E,["colorScheme"]),I=g||{},{dark:A}=I,O=Jn(I,["dark"]),W=C||{},{dark:$}=W,z=Jn(W,["dark"]),j=je(b)?this._toVariables({[p]:En(En({},b),w)},n):{},Z=je(O)?this._toVariables({[p]:En(En({},O),z)},n):{},K=je(A)?this._toVariables({[p]:En(En({},A),$)},n):{},[P,N]=[(c=j.declarations)!=null?c:"",j.tokens||[]],[J,U]=[(a=Z.declarations)!=null?a:"",Z.tokens||[]],[V,te]=[(d=K.declarations)!=null?d:"",K.tokens||[]],ae=this.transformCSS(p,`${P}${J}`,"light","variable",n,o,i,s),pe=this.transformCSS(p,V,"dark","variable",n,o,i,s);u=`${ae}${pe}`,f=[...new Set([...N,...U,...te])],h=Bt(y,{dt:ao})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;let{preset:s,options:c}=e,a=(i=s?.components)==null?void 0:i[t];return this.getPreset({name:t,preset:a,options:c,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s;let c=t.replace("-directive",""),{preset:a,options:d}=e,u=((i=a?.components)==null?void 0:i[c])||((s=a?.directives)==null?void 0:s[c]);return this.getPreset({name:c,preset:u,options:d,params:n,set:r,defaults:o})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,r){let{cssLayer:o}=e;return o?`@layer ${Bt(o.order||o.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){let s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),c=Object.entries(r).reduce((a,[d,u])=>a.push(`${d}="${u}"`)&&a,[]).join(" ");return Object.entries(s||{}).reduce((a,[d,u])=>{if(yr(u)&&Object.hasOwn(u,"css")){let f=Bi(u.css),h=`${d}-variables`;a.push(`<style type="text/css" data-primevue-style-id="${h}" ${c}>${f}</style>`)}return a},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var s;let c={name:t,theme:e,params:n,set:o,defaults:i},a=(s=t.includes("-directive")?this.getPresetD(c):this.getPresetC(c))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Bi(a)}</style>`:""},createTokens(t={},e,n="",r="",o={}){let i=function(c,a={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:c,path:this.path,paths:a,value:void 0};d.push(this.path),a.name=this.path,a.binding||(a.binding={});let u=this.value;if(typeof this.value=="string"&&Ui.test(this.value)){let f=this.value.trim().replace(Ui,h=>{var p;let m=h.slice(1,-1),g=this.tokens[m];if(!g)return console.warn(`Token not found for path: ${m}`),"__UNRESOLVED__";let v=g.computed(c,a,d);return Array.isArray(v)&&v.length===2?`light-dark(${v[0].value},${v[1].value})`:(p=v?.value)!=null?p:"__UNRESOLVED__"});u=H1.test(f.replace(j1,"0"))?`calc(${f})`:f}return Cn(a.binding)&&delete a.binding,d.pop(),{colorScheme:c,path:this.path,paths:a,value:u.includes("__UNRESOLVED__")?void 0:u}},s=(c,a,d)=>{Object.entries(c).forEach(([u,f])=>{let h=io(u,e.variable.excludedKeyRegex)?a:a?`${a}.${W1(u)}`:W1(u),p=d?`${d}.${u}`:u;yr(f)?s(f,h,p):(o[h]||(o[h]={paths:[],computed:(m,g={},v=[])=>{if(o[h].paths.length===1)return o[h].paths[0].computed(o[h].paths[0].scheme,g.binding,v);if(m&&m!=="none")for(let y=0;y<o[h].paths.length;y++){let b=o[h].paths[y];if(b.scheme===m)return b.computed(m,g.binding,v)}return o[h].paths.map(y=>y.computed(y.scheme,g[y.scheme],v))}}),o[h].paths.push({path:p,value:f,scheme:p.includes("colorScheme.light")?"light":p.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:o}))})};return s(t,n,r),o},getTokenValue(t,e,n){var r;let o=(c=>c.split(".").filter(a=>!io(a.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,s=[(r=t[o])==null?void 0:r.computed(i)].flat().filter(c=>c);return s.length===1?s[0].value:s.reduce((c={},a)=>{let d=a,{colorScheme:u}=d,f=Jn(d,["colorScheme"]);return c[u]=f,c},void 0)},getSelectorRule(t,e,n,r){return n==="class"||n==="attr"?Wo(je(e)?`${t}${e},${t} ${e}`:t,r):Wo(t,Wo(e??":root,:host",r))},transformCSS(t,e,n,r,o={},i,s,c){if(je(e)){let{cssLayer:a}=o;if(r!=="style"){let d=this.getColorSchemeOption(o,s);e=n==="dark"?d.reduce((u,{type:f,selector:h})=>(je(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,c,f,e)),u),""):Wo(c??":root,:host",e)}if(a){let d={name:"primeui"};yr(a)&&(d.name=Bt(a.name,{name:t,type:r})),je(d.name)&&(e=Wo(`@layer ${d.name}`,e),i?.layerNames(d.name))}return e}return""}},Qe={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=xd(En({},e),{options:En(En({},this.defaults.options),e.options)}),this._tokens=kn.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Rt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=xd(En({},this.theme),{preset:t}),this._tokens=kn.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Rt.emit("preset:change",t),Rt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=xd(En({},this.theme),{options:t}),this.clearLoadedStyleNames(),Rt.emit("options:change",t),Rt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return kn.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return kn.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return kn.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return kn.getPresetD(n)},getCustomPreset(t="",e,n,r){let o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return kn.getPreset(o)},getLayerOrderCSS(t=""){return kn.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return kn.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return kn.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return kn.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Rt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Rt.emit("theme:load"))}},br={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},oE=`
|
|
61
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[On.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[On.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Ca(t,...e){return ca(h9[t],...e)}function Pi(t){if(!Ue(t)||bn(t))return t;for(const e in t)if(yn(t,e))if(!e.includes("."))Ue(t[e])&&Pi(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=We()),!Ue(o[n[s]])){process.env.NODE_ENV!=="production"&&In(Ca(On.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(bn(o)?Fp.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!bn(o)){const s=o[n[r]];Ue(s)&&Pi(s)}}return t}function m1(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=He(n)?n:it(r)?We():{[t]:We()};if(it(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:a,resource:d}=c;a?(s[a]=s[a]||We(),ha(d,s[a])):ha(d,s)}else Ee(c)&&ha(JSON.parse(c),s)}),o==null&&i)for(const c in s)yn(s,c)&&Pi(s[c]);return s}function g1(t){return t.type}function p9(t,e,n){let r=Ue(e.messages)?e.messages:We();"__i18nGlobal"in n&&(r=m1(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ue(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ue(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function v1(t){return l.createVNode(l.Text,null,t,0)}function vd(){const t="currentInstance";return t in Sc?Sc[t]:Sc.getCurrentInstance()}const y1="__INTLIFY_META__",b1=()=>[],m9=()=>!1;let C1=0;function E1(t){return((e,n,r,o)=>t(n,r,vd()||void 0,o))}const g9=()=>{const t=vd();let e=null;return t&&(e=g1(t)[y1])?{[y1]:e}:null};function v9(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,o=t.flatJson,i=Yn?l.ref:l.shallowRef;let s=st(t.inheritLocale)?t.inheritLocale:!0;const c=i(e&&s?e.locale.value:Ee(t.locale)?t.locale:va),a=i(e&&s?e.fallbackLocale.value:Ee(t.fallbackLocale)||it(t.fallbackLocale)||He(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),d=i(m1(c.value,t)),u=i(He(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),f=i(He(t.numberFormats)?t.numberFormats:{[c.value]:{}});let h=e?e.missingWarn:st(t.missingWarn)||da(t.missingWarn)?t.missingWarn:!0,p=e?e.fallbackWarn:st(t.fallbackWarn)||da(t.fallbackWarn)?t.fallbackWarn:!0,m=e?e.fallbackRoot:st(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,v=Je(t.missing)?t.missing:null,y=Je(t.missing)?E1(t.missing):null,b=Je(t.postTranslation)?t.postTranslation:null,E=e?e.warnHtmlMessage:st(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter;const w=e?e.modifiers:He(t.modifiers)?t.modifiers:{};let I=t.pluralRules||e&&e.pluralRules,A;A=(()=>{r&&Xp(null);const X={version:c9,locale:c.value,fallbackLocale:a.value,messages:d.value,modifiers:w,pluralRules:I,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:p,fallbackFormat:g,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:E,escapeParameter:C,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};X.datetimeFormats=u.value,X.numberFormats=f.value,X.__datetimeFormatters=He(A)?A.__datetimeFormatters:void 0,X.__numberFormatters=He(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(X.__v_emitter=He(A)?A.__v_emitter:void 0);const re=QC(X);return r&&Xp(re),re})(),Li(A,c.value,a.value);function K(){return[c.value,a.value,d.value,u.value,f.value]}const B=l.computed({get:()=>c.value,set:X=>{A.locale=X,c.value=X}}),F=l.computed({get:()=>a.value,set:X=>{A.fallbackLocale=X,a.value=X,Li(A,c.value,X)}}),H=l.computed(()=>d.value),Z=l.computed(()=>u.value),W=l.computed(()=>f.value);function j(){return Je(b)?b:null}function N(X){b=X,A.postTranslation=X}function J(){return v}function z(X){X!==null&&(y=E1(X)),v=X,A.missing=y}function V(X,re){return X!=="translate"||!re.resolvedMessage}const te=(X,re,Ae,Ne,Oe,nt)=>{K();let mt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=e?GC():void 0),mt=X(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(Ae!=="translate exists"&>(mt)&&mt===ga||Ae==="translate exists"&&!mt){const[rt,Zr]=re();if(process.env.NODE_ENV!=="production"&&e&&Ee(rt)&&V(Ae,Zr)&&(m&&(ba(p,rt)||Vp(h,rt))&&In(Ca(On.FALLBACK_TO_ROOT,{key:rt,type:Ae})),process.env.NODE_ENV!=="production")){const{__v_emitter:Tn}=A;Tn&&m&&Tn.emit("fallback",{type:Ae,key:rt,to:"global",groupId:`${Ae}:${rt}`})}return e&&m?Ne(e):Oe(rt)}else{if(nt(mt))return mt;throw Di(wt.UNEXPECTED_RETURN_TYPE)}};function ae(...X){return te(re=>Reflect.apply(u1,null,[re,...X]),()=>dd(...X),"translate",re=>Reflect.apply(re.t,re,[...X]),re=>re,re=>Ee(re))}function pe(...X){const[re,Ae,Ne]=X;if(Ne&&!Ue(Ne))throw Di(wt.INVALID_ARGUMENT);return ae(re,Ae,vt({resolvedMessage:!0},Ne||{}))}function me(...X){return te(re=>Reflect.apply(r1,null,[re,...X]),()=>ld(...X),"datetime format",re=>Reflect.apply(re.d,re,[...X]),()=>ya,re=>Ee(re)||it(re))}function ye(...X){return te(re=>Reflect.apply(s1,null,[re,...X]),()=>cd(...X),"number format",re=>Reflect.apply(re.n,re,[...X]),()=>ya,re=>Ee(re)||it(re))}function Ce(X){return X.map(re=>Ee(re)||gt(re)||st(re)?v1(String(re)):re)}const ve={normalize:Ce,interpolate:X=>X,type:"vnode"};function M(...X){return te(re=>{let Ae;const Ne=re;try{Ne.processor=ve,Ae=Reflect.apply(u1,null,[Ne,...X])}finally{Ne.processor=null}return Ae},()=>dd(...X),"translate",re=>re[ud](...X),re=>[v1(re)],re=>it(re))}function D(...X){return te(re=>Reflect.apply(s1,null,[re,...X]),()=>cd(...X),"number format",re=>re[hd](...X),b1,re=>Ee(re)||it(re))}function _(...X){return te(re=>Reflect.apply(r1,null,[re,...X]),()=>ld(...X),"datetime format",re=>re[fd](...X),b1,re=>Ee(re)||it(re))}function L(X){I=X,A.pluralRules=I}function k(X,re){return te(()=>{if(!X)return!1;const Ae=Ee(re)?re:c.value,Ne=U(Ae),Oe=A.messageResolver(Ne,X);return bn(Oe)||nn(Oe)||Ee(Oe)},()=>[X],"translate exists",Ae=>Reflect.apply(Ae.te,Ae,[X,re]),m9,Ae=>st(Ae))}function S(X){let re=null;const Ae=Hp(A,a.value,c.value);for(let Ne=0;Ne<Ae.length;Ne++){const Oe=d.value[Ae[Ne]]||{},nt=A.messageResolver(Oe,X);if(nt!=null){re=nt;break}}return re}function R(X){const re=S(X);return re??(e?e.tm(X)||{}:{})}function U(X){return d.value[X]||{}}function Y(X,re){if(o){const Ae={[X]:re};for(const Ne in Ae)yn(Ae,Ne)&&Pi(Ae[Ne]);re=Ae[X]}d.value[X]=re,A.messages=d.value}function G(X,re){d.value[X]=d.value[X]||{};const Ae={[X]:re};if(o)for(const Ne in Ae)yn(Ae,Ne)&&Pi(Ae[Ne]);re=Ae[X],ha(re,d.value[X]),A.messages=d.value}function x(X){return u.value[X]||{}}function T(X,re){u.value[X]=re,A.datetimeFormats=u.value,i1(A,X,re)}function $(X,re){u.value[X]=vt(u.value[X]||{},re),A.datetimeFormats=u.value,i1(A,X,re)}function Q(X){return f.value[X]||{}}function q(X,re){f.value[X]=re,A.numberFormats=f.value,l1(A,X,re)}function ne(X,re){f.value[X]=vt(f.value[X]||{},re),A.numberFormats=f.value,l1(A,X,re)}C1++,e&&Yn&&(l.watch(e.locale,X=>{s&&(c.value=X,A.locale=X,Li(A,c.value,a.value))}),l.watch(e.fallbackLocale,X=>{s&&(a.value=X,A.fallbackLocale=X,Li(A,c.value,a.value))}));const se={id:C1,locale:B,fallbackLocale:F,get inheritLocale(){return s},set inheritLocale(X){s=X,X&&e&&(c.value=e.locale.value,a.value=e.fallbackLocale.value,Li(A,c.value,a.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:H,get modifiers(){return w},get pluralRules(){return I||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(X){h=X,A.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(X){p=X,A.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(X){m=X},get fallbackFormat(){return g},set fallbackFormat(X){g=X,A.fallbackFormat=g},get warnHtmlMessage(){return E},set warnHtmlMessage(X){E=X,A.warnHtmlMessage=X},get escapeParameter(){return C},set escapeParameter(X){C=X,A.escapeParameter=X},t:ae,getLocaleMessage:U,setLocaleMessage:Y,mergeLocaleMessage:G,getPostTranslationHandler:j,setPostTranslationHandler:N,getMissingHandler:J,setMissingHandler:z,[f9]:L};return se.datetimeFormats=Z,se.numberFormats=W,se.rt=pe,se.te=k,se.tm=R,se.d=me,se.n=ye,se.getDateTimeFormat=x,se.setDateTimeFormat=T,se.mergeDateTimeFormat=$,se.getNumberFormat=Q,se.setNumberFormat=q,se.mergeNumberFormat=ne,se[p1]=n,se[ud]=M,se[fd]=_,se[hd]=D,process.env.NODE_ENV!=="production"&&(se[pd]=X=>{A.__v_emitter=X},se[md]=()=>{A.__v_emitter=void 0}),se}function k1(t,e){}const yd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function y9({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===l.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},We())}function w1(){return l.Fragment}vt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>gt(t)||!isNaN(t)}},yd);function b9(t){return it(t)&&!Ee(t[0])}function S1(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let c=We();t.locale&&(s.locale=t.locale),Ee(t.format)?s.key=t.format:Ue(t.format)&&(Ee(t.format.key)&&(s.key=t.format.key),c=Object.keys(t.format).reduce((h,p)=>n.includes(p)?vt(We(),h,{[p]:t.format[p]}):h,We()));const a=r(t.value,s,c);let d=[s.key];it(a)?d=a.map((h,p)=>{const m=o[h.type],g=m?m({[h.type]:h.value,index:p,parts:a}):[h.value];return b9(g)&&(g[0].key=`${h.type}-${p}`),g}):Ee(a)&&(d=[a]);const u=vt(We(),i),f=Ee(t.tag)||Ue(t.tag)?t.tag:w1();return l.h(f,u,d)}}vt({value:{type:Number,required:!0},format:{type:[String,Object]}},yd);const C9=Gn("global-vue-i18n");function Ot(t={}){const e=vd();if(e==null)throw Di(wt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Di(wt.NOT_INSTALLED);const n=E9(e),r=w9(n),o=g1(e),i=k9(t,o);if(i==="global")return p9(r,t,o),r;if(i==="parent"){let a=S9(n,e,t.__useComponent);return a==null&&(process.env.NODE_ENV!=="production"&&In(Ca(On.NOT_FOUND_PARENT_SCOPE)),a=r),a}const s=n;let c=s.__getInstance(e);if(c==null){const a=vt({},t);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),c=v9(a),s.__composerExtend&&(c[gd]=s.__composerExtend(c)),x9(s,e,c),s.__setInstance(e,c)}else process.env.NODE_ENV!=="production"&&i==="local"&&In(Ca(On.DUPLICATE_USE_I18N_CALLING));return c}function E9(t){const e=l.inject(t.isCE?C9:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Di(t.isCE?wt.NOT_INSTALLED_WITH_PROVIDE:wt.UNEXPECTED_ERROR);return e}function k9(t,e){return ua(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function w9(t){return t.mode==="composition"?t.global:t.global.__composer}function S9(t,e,n=!1){let r=null;const o=e.root;let i=A9(e,n);for(;i!=null;){const s=t;if(t.mode==="composition")r=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const c=s.__getInstance(i);c!=null&&(r=c.__composer,n&&r&&!r[p1]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function A9(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function x9(t,e,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"){e.__VUE_I18N__=n,r=M6();const o=n;o[pd]&&o[pd](r),r.on("*",k1)}},e),l.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",k1),o[md]&&o[md](),delete e.__VUE_I18N__),t.__deleteInstance(e);const i=o[gd];i&&(i(),delete o[gd])},e)}if(vt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yd),d9(),HC(CC),jC(RC),WC(Hp),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=ro();t.__INTLIFY__=!0,EC(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Cn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function bd(t){return typeof t=="function"&&"call"in t&&"apply"in t}function je(t){return!Cn(t)}function yr(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function A1(t,e){let n=-1;if(je(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function Bt(t,...e){return bd(t)?t(...e):t}function jt(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Mn(t){return jt(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Cd(t,e="",n={}){let r=Mn(e).split("."),o=r.shift();if(o){if(yr(t)){let i=Object.keys(t).find(s=>Mn(s)===o)||"";return Cd(Bt(t[i],n),r.join("."),n)}return}return Bt(t,n)}function x1(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function T9(t){return je(t)&&!isNaN(t)}function I9(t=""){return je(t)&&t.length===1&&!!t.match(/\S| /)}function io(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Bi(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function _9(t){return jt(t,!1)?t[0].toUpperCase()+t.slice(1):t}function T1(t){return jt(t)?t.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():t}function Ed(){let t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.forEach(o=>{o(n)})},clear(){t.clear()}}}function Ri(...t){if(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];if(!r)continue;let o=typeof r;if(o==="string"||o==="number")e.push(r);else if(o==="object"){let i=Array.isArray(r)?[Ri(...r)]:Object.entries(r).map(([s,c])=>c?s:void 0);e=i.length?e.concat(i.filter(s=>!!s)):e}}return e.join(" ").trim()}}function N9(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function O9(t,e){if(t&&e){let n=r=>{N9(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function kd(t,e){if(t&&e){let n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function I1(t){for(let e of document?.styleSheets)try{for(let n of e?.cssRules)for(let r of n?.style)if(t.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function M9(t){let e={width:0,height:0};if(t){let[n,r]=[t.style.visibility,t.style.display],o=t.getBoundingClientRect();t.style.visibility="hidden",t.style.display="block",e.width=o.width||t.offsetWidth,e.height=o.height||t.offsetHeight,t.style.display=r,t.style.visibility=n}return e}function _1(){let t=window,e=document,n=e.documentElement,r=e.getElementsByTagName("body")[0],o=t.innerWidth||n.clientWidth||r.clientWidth,i=t.innerHeight||n.clientHeight||r.clientHeight;return{width:o,height:i}}function wd(t){return t?Math.abs(t.scrollLeft):0}function L9(){let t=document.documentElement;return(window.pageXOffset||wd(t))-(t.clientLeft||0)}function D9(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function P9(t){return t?getComputedStyle(t).direction==="rtl":!1}function B9(t,e,n=!0){var r,o,i,s;if(t){let c=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:M9(t),a=c.height,d=c.width,u=e.offsetHeight,f=e.offsetWidth,h=e.getBoundingClientRect(),p=D9(),m=L9(),g=_1(),v,y,b="top";h.top+u+a>g.height?(v=h.top+p-a,b="bottom",v<0&&(v=p)):v=u+h.top+p,h.left+d>g.width?y=Math.max(0,h.left+m+f-d):y=h.left+m,P9(t)?t.style.insetInlineEnd=y+"px":t.style.insetInlineStart=y+"px",t.style.top=v+"px",t.style.transformOrigin=b,n&&(t.style.marginTop=b==="bottom"?`calc(${(o=(r=I1(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=I1(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function N1(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,r])=>t.style[n]=r))}function $i(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function O1(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function R9(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&O1(t))}function Fi(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Sd;function M1(t){{if(Sd!=null)return Sd;let e=document.createElement("div");N1(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);let n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),Sd=n,n}}function Ea(t,e={}){if(Fi(t)){let n=(r,o)=>{var i,s;let c=(i=t?.$attrs)!=null&&i[r]?[(s=t?.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((a,d)=>{if(d!=null){let u=typeof d;if(u==="string"||u==="number")a.push(d);else if(u==="object"){let f=Array.isArray(d)?n(r,d):Object.entries(d).map(([h,p])=>r==="style"&&(p||p===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?h:void 0);a=f.length?a.concat(f.filter(h=>!!h)):a}}return a},c)};Object.entries(e).forEach(([r,o])=>{if(o!=null){let i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"||r==="pBind"?Ea(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function $9(t,e={},...n){{let r=document.createElement(t);return Ea(r,e),r.append(...n),r}}function zi(t,e){return Fi(t)?t.matches(e)?t:t.querySelector(e):null}function so(t,e){t&&document.activeElement!==t&&t.focus(e)}function F9(t,e){if(Fi(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function L1(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function z9(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let r=t.offsetHeight;return t.style.display=n,t.style.visibility=e,r}return 0}function U9(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let r=t.offsetWidth;return t.style.display=n,t.style.visibility=e,r}return 0}function D1(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||wd(document.documentElement)||wd(document.body)||0)}}return{top:"auto",left:"auto"}}function P1(t,e){return t?t.offsetHeight:0}function B1(t,e=[]){let n=O1(t);return n===null?e:B1(n,e.concat([n]))}function H9(t){let e=[];if(t){let n=B1(t),r=/(auto|scroll)/,o=i=>{try{let s=window.getComputedStyle(i,null);return r.test(s.getPropertyValue("overflow"))||r.test(s.getPropertyValue("overflowX"))||r.test(s.getPropertyValue("overflowY"))}catch{return!1}};for(let i of n){let s=i.nodeType===1&&i.dataset.scrollselectors;if(s){let c=s.split(",");for(let a of c){let d=zi(i,a);d&&o(d)&&e.push(d)}}i.nodeType!==9&&o(i)&&e.push(i)}}return e}function R1(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function $1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function j9(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function W9(t,e){var n,r;if(t){let o=t.parentElement,i=D1(o),s=_1(),c=t.offsetParent?t.offsetWidth:U9(t),a=t.offsetParent?t.offsetHeight:z9(t),d=$i((n=o?.children)==null?void 0:n[0]),u=P1((r=o?.children)==null?void 0:r[0]),f="",h="";i.left+d+c>s.width-M1()?i.left<c?e%2===1?f=i.left?"-"+i.left+"px":"100%":e%2===0&&(f=s.width-c-M1()+"px"):f="-100%":f="100%",t.getBoundingClientRect().top+u+a>s.height?h=`-${a-u}px`:h="0px",t.style.top=h,t.style.insetInlineStart=f}}function K9(t,e="",n){Fi(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var ka={};function Y9(t="pui_id_"){return Object.hasOwn(ka,t)||(ka[t]=0),ka[t]++,`${t}${ka[t]}`}function G9(){let t=[],e=(s,c,a=999)=>{let d=o(s,c,a),u=d.value+(d.key===s?0:a)+1;return t.push({key:s,value:u}),u},n=s=>{t=t.filter(c=>c.value!==s)},r=(s,c)=>o(s).value,o=(s,c,a=0)=>[...t].reverse().find(d=>!0)||{key:s,value:a},i=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:i,set:(s,c,a)=>{c&&(c.style.zIndex=String(e(s,!0,a)))},clear:s=>{s&&(n(i(s)),s.style.zIndex="")},getCurrent:s=>r(s)}}var Ad=G9(),Q9=Object.defineProperty,Z9=Object.defineProperties,J9=Object.getOwnPropertyDescriptors,wa=Object.getOwnPropertySymbols,F1=Object.prototype.hasOwnProperty,z1=Object.prototype.propertyIsEnumerable,U1=(t,e,n)=>e in t?Q9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,En=(t,e)=>{for(var n in e||(e={}))F1.call(e,n)&&U1(t,n,e[n]);if(wa)for(var n of wa(e))z1.call(e,n)&&U1(t,n,e[n]);return t},xd=(t,e)=>Z9(t,J9(e)),Jn=(t,e)=>{var n={};for(var r in t)F1.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wa)for(var r of wa(t))e.indexOf(r)<0&&z1.call(t,r)&&(n[r]=t[r]);return n},X9=Ed(),Rt=X9,Ui=/{([^}]*)}/g,H1=/(\d+\s+[\+\-\*\/]\s+\d+)/g,j1=/var\([^)]+\)/g;function W1(t){return jt(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function q9(t){return yr(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function V9(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Td(t="",e=""){return V9(`${jt(t,!1)&&jt(e,!1)?`${t}-`:t}${e}`)}function K1(t="",e=""){return`--${Td(t,e)}`}function eE(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function Y1(t,e="",n="",r=[],o){if(jt(t)){let i=t.trim();if(eE(i))return;if(io(i,Ui)){let s=i.replaceAll(Ui,c=>{let a=c.replace(/{|}/g,"").split(".").filter(d=>!r.some(u=>io(d,u)));return`var(${K1(n,T1(a.join("-")))}${je(o)?`, ${o}`:""})`});return io(s.replace(j1,"0"),H1)?`calc(${s})`:s}return i}else if(T9(t))return t}function tE(t,e,n){jt(e,!1)&&t.push(`${e}:${n};`)}function Wo(t,e){return t?`${t}{${e}}`:""}function G1(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,c){let a=[],d=0,u="",f=null,h=0;for(;d<=s.length;){let p=s[d];if((p==='"'||p==="'"||p==="`")&&s[d-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||d===s.length)&&h===0)){let m=u.trim();m.startsWith("dt(")?a.push(G1(m,c)):a.push(r(m)),u="",d++;continue}p!==void 0&&(u+=p),d++}return a}function r(s){let c=s[0];if((c==='"'||c==="'"||c==="`")&&s[s.length-1]===c)return s.slice(1,-1);let a=Number(s);return isNaN(a)?s:a}let o=[],i=[];for(let s=0;s<t.length;s++)if(t[s]==="d"&&t.slice(s,s+3)==="dt(")i.push(s),s+=2;else if(t[s]===")"&&i.length>0){let c=i.pop();i.length===0&&o.push([c,s])}if(!o.length)return t;for(let s=o.length-1;s>=0;s--){let[c,a]=o[s],d=t.slice(c+3,a),u=n(d,e),f=e(...u);t=t.slice(0,c)+f+t.slice(a+1)}return t}var ao=(...t)=>nE(Qe.getTheme(),...t),nE=(t={},e,n,r)=>{if(e){let{variable:o,options:i}=Qe.defaults||{},{prefix:s,transform:c}=t?.options||i||{},a=io(e,Ui)?e:`{${e}}`;return r==="value"||Cn(r)&&c==="strict"?Qe.getTokenValue(e):Y1(a,void 0,s,[o.excludedKeyRegex],n)}return""};function Sa(t,...e){if(t instanceof Array){let n=t.reduce((r,o,i)=>{var s;return r+o+((s=Bt(e[i],{dt:ao}))!=null?s:"")},"");return G1(n,ao)}return Bt(t,{dt:ao})}function rE(t,e={}){let n=Qe.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=[],c=[],a=[{node:t,path:r}];for(;a.length;){let{node:u,path:f}=a.pop();for(let h in u){let p=u[h],m=q9(p),g=io(h,i)?Td(f):Td(f,T1(h));if(yr(m))a.push({node:m,path:g});else{let v=K1(g),y=Y1(m,g,r,[i]);tE(c,v,y);let b=g;r&&b.startsWith(r+"-")&&(b=b.slice(r.length+1)),s.push(b.replace(/-/g,"."))}}}let d=c.join("");return{value:c,tokens:s,declarations:d,css:Wo(o,d)}}var kn={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t},:host${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return rE(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,c,a,d,u,f;let{preset:h,options:p}=e,m,g,v,y,b,E,C;if(je(h)&&p.transform!=="strict"){let{primitive:w,semantic:I,extend:A}=h,O=I||{},{colorScheme:K}=O,B=Jn(O,["colorScheme"]),F=A||{},{colorScheme:H}=F,Z=Jn(F,["colorScheme"]),W=K||{},{dark:j}=W,N=Jn(W,["dark"]),J=H||{},{dark:z}=J,V=Jn(J,["dark"]),te=je(w)?this._toVariables({primitive:w},p):{},ae=je(B)?this._toVariables({semantic:B},p):{},pe=je(N)?this._toVariables({light:N},p):{},me=je(j)?this._toVariables({dark:j},p):{},ye=je(Z)?this._toVariables({semantic:Z},p):{},Ce=je(V)?this._toVariables({light:V},p):{},Se=je(z)?this._toVariables({dark:z},p):{},[ve,M]=[(i=te.declarations)!=null?i:"",te.tokens],[D,_]=[(s=ae.declarations)!=null?s:"",ae.tokens||[]],[L,k]=[(c=pe.declarations)!=null?c:"",pe.tokens||[]],[S,R]=[(a=me.declarations)!=null?a:"",me.tokens||[]],[U,Y]=[(d=ye.declarations)!=null?d:"",ye.tokens||[]],[G,x]=[(u=Ce.declarations)!=null?u:"",Ce.tokens||[]],[T,$]=[(f=Se.declarations)!=null?f:"",Se.tokens||[]];m=this.transformCSS(t,ve,"light","variable",p,r,o),g=M;let Q=this.transformCSS(t,`${D}${L}`,"light","variable",p,r,o),q=this.transformCSS(t,`${S}`,"dark","variable",p,r,o);v=`${Q}${q}`,y=[...new Set([..._,...k,...R])];let ne=this.transformCSS(t,`${U}${G}color-scheme:light`,"light","variable",p,r,o),se=this.transformCSS(t,`${T}color-scheme:dark`,"dark","variable",p,r,o);b=`${ne}${se}`,E=[...new Set([...Y,...x,...$])],C=Bt(h.css,{dt:ao})}return{primitive:{css:m,tokens:g},semantic:{css:v,tokens:y},global:{css:b,tokens:E},style:C}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var c,a,d;let u,f,h;if(je(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),m=e,{colorScheme:g,extend:v,css:y}=m,b=Jn(m,["colorScheme","extend","css"]),E=v||{},{colorScheme:C}=E,w=Jn(E,["colorScheme"]),I=g||{},{dark:A}=I,O=Jn(I,["dark"]),K=C||{},{dark:B}=K,F=Jn(K,["dark"]),H=je(b)?this._toVariables({[p]:En(En({},b),w)},n):{},Z=je(O)?this._toVariables({[p]:En(En({},O),F)},n):{},W=je(A)?this._toVariables({[p]:En(En({},A),B)},n):{},[j,N]=[(c=H.declarations)!=null?c:"",H.tokens||[]],[J,z]=[(a=Z.declarations)!=null?a:"",Z.tokens||[]],[V,te]=[(d=W.declarations)!=null?d:"",W.tokens||[]],ae=this.transformCSS(p,`${j}${J}`,"light","variable",n,o,i,s),pe=this.transformCSS(p,V,"dark","variable",n,o,i,s);u=`${ae}${pe}`,f=[...new Set([...N,...z,...te])],h=Bt(y,{dt:ao})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;let{preset:s,options:c}=e,a=(i=s?.components)==null?void 0:i[t];return this.getPreset({name:t,preset:a,options:c,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s;let c=t.replace("-directive",""),{preset:a,options:d}=e,u=((i=a?.components)==null?void 0:i[c])||((s=a?.directives)==null?void 0:s[c]);return this.getPreset({name:c,preset:u,options:d,params:n,set:r,defaults:o})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,r){let{cssLayer:o}=e;return o?`@layer ${Bt(o.order||o.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){let s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),c=Object.entries(r).reduce((a,[d,u])=>a.push(`${d}="${u}"`)&&a,[]).join(" ");return Object.entries(s||{}).reduce((a,[d,u])=>{if(yr(u)&&Object.hasOwn(u,"css")){let f=Bi(u.css),h=`${d}-variables`;a.push(`<style type="text/css" data-primevue-style-id="${h}" ${c}>${f}</style>`)}return a},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var s;let c={name:t,theme:e,params:n,set:o,defaults:i},a=(s=t.includes("-directive")?this.getPresetD(c):this.getPresetC(c))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Bi(a)}</style>`:""},createTokens(t={},e,n="",r="",o={}){let i=function(c,a={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:c,path:this.path,paths:a,value:void 0};d.push(this.path),a.name=this.path,a.binding||(a.binding={});let u=this.value;if(typeof this.value=="string"&&Ui.test(this.value)){let f=this.value.trim().replace(Ui,h=>{var p;let m=h.slice(1,-1),g=this.tokens[m];if(!g)return console.warn(`Token not found for path: ${m}`),"__UNRESOLVED__";let v=g.computed(c,a,d);return Array.isArray(v)&&v.length===2?`light-dark(${v[0].value},${v[1].value})`:(p=v?.value)!=null?p:"__UNRESOLVED__"});u=H1.test(f.replace(j1,"0"))?`calc(${f})`:f}return Cn(a.binding)&&delete a.binding,d.pop(),{colorScheme:c,path:this.path,paths:a,value:u.includes("__UNRESOLVED__")?void 0:u}},s=(c,a,d)=>{Object.entries(c).forEach(([u,f])=>{let h=io(u,e.variable.excludedKeyRegex)?a:a?`${a}.${W1(u)}`:W1(u),p=d?`${d}.${u}`:u;yr(f)?s(f,h,p):(o[h]||(o[h]={paths:[],computed:(m,g={},v=[])=>{if(o[h].paths.length===1)return o[h].paths[0].computed(o[h].paths[0].scheme,g.binding,v);if(m&&m!=="none")for(let y=0;y<o[h].paths.length;y++){let b=o[h].paths[y];if(b.scheme===m)return b.computed(m,g.binding,v)}return o[h].paths.map(y=>y.computed(y.scheme,g[y.scheme],v))}}),o[h].paths.push({path:p,value:f,scheme:p.includes("colorScheme.light")?"light":p.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:o}))})};return s(t,n,r),o},getTokenValue(t,e,n){var r;let o=(c=>c.split(".").filter(a=>!io(a.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,s=[(r=t[o])==null?void 0:r.computed(i)].flat().filter(c=>c);return s.length===1?s[0].value:s.reduce((c={},a)=>{let d=a,{colorScheme:u}=d,f=Jn(d,["colorScheme"]);return c[u]=f,c},void 0)},getSelectorRule(t,e,n,r){return n==="class"||n==="attr"?Wo(je(e)?`${t}${e},${t} ${e}`:t,r):Wo(t,Wo(e??":root,:host",r))},transformCSS(t,e,n,r,o={},i,s,c){if(je(e)){let{cssLayer:a}=o;if(r!=="style"){let d=this.getColorSchemeOption(o,s);e=n==="dark"?d.reduce((u,{type:f,selector:h})=>(je(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,c,f,e)),u),""):Wo(c??":root,:host",e)}if(a){let d={name:"primeui"};yr(a)&&(d.name=Bt(a.name,{name:t,type:r})),je(d.name)&&(e=Wo(`@layer ${d.name}`,e),i?.layerNames(d.name))}return e}return""}},Qe={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=xd(En({},e),{options:En(En({},this.defaults.options),e.options)}),this._tokens=kn.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Rt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=xd(En({},this.theme),{preset:t}),this._tokens=kn.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Rt.emit("preset:change",t),Rt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=xd(En({},this.theme),{options:t}),this.clearLoadedStyleNames(),Rt.emit("options:change",t),Rt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return kn.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return kn.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return kn.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return kn.getPresetD(n)},getCustomPreset(t="",e,n,r){let o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return kn.getPreset(o)},getLayerOrderCSS(t=""){return kn.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return kn.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return kn.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return kn.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Rt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Rt.emit("theme:load"))}},br={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},oE=`
|
|
62
62
|
*,
|
|
63
63
|
::before,
|
|
64
64
|
::after {
|
|
@@ -170,7 +170,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
170
170
|
transform: scale(0.93);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
`;function Hi(t){"@babel/helpers - typeof";return Hi=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},Hi(t)}function Q1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Z1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q1(Object(n),!0).forEach(function(r){iE(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q1(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function iE(t,e,n){return(e=sE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sE(t){var e=aE(t,"string");return Hi(e)=="symbol"?e:e+""}function aE(t,e){if(Hi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Hi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()&&l.getCurrentInstance().components?l.onMounted(t):e?t():l.nextTick(t)}var cE=0;function dE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=$1()?window.document:void 0,s=e.document,c=s===void 0?i:s,a=e.immediate,d=a===void 0?!0:a,u=e.manual,f=u===void 0?!1:u,h=e.name,p=h===void 0?"style_".concat(++cE):h,m=e.id,g=m===void 0?void 0:m,v=e.media,y=v===void 0?void 0:v,b=e.nonce,E=b===void 0?void 0:b,C=e.first,w=C===void 0?!1:C,I=e.onMounted,A=I===void 0?void 0:I,O=e.onUpdated,
|
|
173
|
+
`;function Hi(t){"@babel/helpers - typeof";return Hi=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},Hi(t)}function Q1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Z1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q1(Object(n),!0).forEach(function(r){iE(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q1(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function iE(t,e,n){return(e=sE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sE(t){var e=aE(t,"string");return Hi(e)=="symbol"?e:e+""}function aE(t,e){if(Hi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Hi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()&&l.getCurrentInstance().components?l.onMounted(t):e?t():l.nextTick(t)}var cE=0;function dE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=$1()?window.document:void 0,s=e.document,c=s===void 0?i:s,a=e.immediate,d=a===void 0?!0:a,u=e.manual,f=u===void 0?!1:u,h=e.name,p=h===void 0?"style_".concat(++cE):h,m=e.id,g=m===void 0?void 0:m,v=e.media,y=v===void 0?void 0:v,b=e.nonce,E=b===void 0?void 0:b,C=e.first,w=C===void 0?!1:C,I=e.onMounted,A=I===void 0?void 0:I,O=e.onUpdated,K=O===void 0?void 0:O,B=e.onLoad,F=B===void 0?void 0:B,H=e.props,Z=H===void 0?{}:H,W=function(){},j=function(z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(c){var te=Z1(Z1({},Z),V),ae=te.name||p,pe=te.id||g,me=te.nonce||E;o.value=c.querySelector('style[data-primevue-style-id="'.concat(ae,'"]'))||c.getElementById(pe)||c.createElement("style"),o.value.isConnected||(r.value=z||t,Ea(o.value,{type:"text/css",id:pe,media:y,nonce:me}),w?c.head.prepend(o.value):c.head.appendChild(o.value),K9(o.value,"data-primevue-style-id",ae),Ea(o.value,te),o.value.onload=function(ye){return F?.(ye,{name:ae})},A?.(ae)),!n.value&&(W=l.watch(r,function(ye){o.value.textContent=ye,K?.(ae)},{immediate:!0}),n.value=!0)}},N=function(){!c||!n.value||(W(),R9(o.value)&&c.head.removeChild(o.value),n.value=!1,o.value=null)};return d&&!f&&lE(j),{id:g,name:p,el:o,css:r,unload:N,load:j,isLoaded:l.readonly(n)}}function ji(t){"@babel/helpers - typeof";return ji=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},ji(t)}var J1,X1,q1,V1;function em(t,e){return pE(t)||hE(t,e)||fE(t,e)||uE()}function uE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
174
174
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fE(t,e){if(t){if(typeof t=="string")return tm(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)?tm(t,e):void 0}}function tm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function hE(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function pE(t){if(Array.isArray(t))return t}function nm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Id(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nm(Object(n),!0).forEach(function(r){mE(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mE(t,e,n){return(e=gE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gE(t){var e=vE(t,"string");return ji(e)=="symbol"?e:e+""}function vE(t,e){if(ji(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ji(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Aa(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var yE=function(e){var n=e.dt;return`
|
|
175
175
|
.p-hidden-accessible {
|
|
176
176
|
border: 0;
|
|
@@ -1171,14 +1171,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1171
1171
|
.p-splitbutton-raised {
|
|
1172
1172
|
box-shadow: dt('splitbutton.raised.shadow');
|
|
1173
1173
|
}
|
|
1174
|
-
`,tw={root:function(e){var n=e.instance,r=e.props;return["p-splitbutton p-component",{"p-splitbutton-raised":r.raised,"p-splitbutton-rounded":r.rounded,"p-splitbutton-fluid":n.hasFluid}]},pcButton:"p-splitbutton-button",pcDropdown:"p-splitbutton-dropdown"},nw=lt.extend({name:"splitbutton",style:ew,classes:tw}),rw={name:"BaseSplitButton",extends:Ko,props:{label:{type:String,default:null},icon:{type:String,default:null},model:{type:Array,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:null},class:{type:null,default:null},style:{type:null,default:null},buttonProps:{type:null,default:null},menuButtonProps:{type:null,default:null},menuButtonIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:nw,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},Sm={name:"SplitButton",extends:rw,inheritAttrs:!1,emits:["click"],inject:{$pcFluid:{default:null}},data:function(){return{isExpanded:!1}},mounted:function(){var e=this;this.$watch("$refs.menu.visible",function(n){e.isExpanded=n})},methods:{onDropdownButtonClick:function(e){e&&e.preventDefault(),this.$refs.menu.toggle({currentTarget:this.$el,relatedTarget:this.$refs.button.$el}),this.isExpanded=this.$refs.menu.visible},onDropdownKeydown:function(e){(e.code==="ArrowDown"||e.code==="ArrowUp")&&(this.onDropdownButtonClick(),e.preventDefault())},onDefaultButtonClick:function(e){this.isExpanded&&this.$refs.menu.hide(e),this.$emit("click",e)}},computed:{containerClass:function(){return[this.cx("root"),this.class]},hasFluid:function(){return Cn(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:bm,PVSMenu:wm,ChevronDownIcon:dm}},ow=["data-p-severity"];function iw(t,e,n,r,o,i){var s=l.resolveComponent("PVSButton"),c=l.resolveComponent("PVSMenu");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:i.containerClass,style:t.style},t.ptmi("root"),{"data-p-severity":t.severity}),[l.createVNode(s,l.mergeProps({type:"button",class:t.cx("pcButton"),label:t.label,disabled:t.disabled,severity:t.severity,text:t.text,icon:t.icon,outlined:t.outlined,size:t.size,fluid:t.fluid,"aria-label":t.label,onClick:i.onDefaultButtonClick},t.buttonProps,{pt:t.ptm("pcButton"),unstyled:t.unstyled}),l.createSlots({default:l.withCtx(function(){return[l.renderSlot(t.$slots,"default")]}),_:2},[t.$slots.icon?{name:"icon",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"icon",{class:l.normalizeClass(a.class)},function(){return[l.createElementVNode("span",l.mergeProps({class:[t.icon,a.class]},t.ptm("pcButton").icon,{"data-pc-section":"buttonicon"}),null,16)]})]}),key:"0"}:void 0]),1040,["class","label","disabled","severity","text","icon","outlined","size","fluid","aria-label","onClick","pt","unstyled"]),l.createVNode(s,l.mergeProps({ref:"button",type:"button",class:t.cx("pcDropdown"),disabled:t.disabled,"aria-haspopup":"true","aria-expanded":o.isExpanded,"aria-controls":o.isExpanded?t.$id+"_overlay":void 0,onClick:i.onDropdownButtonClick,onKeydown:i.onDropdownKeydown,severity:t.severity,text:t.text,outlined:t.outlined,size:t.size,unstyled:t.unstyled},t.menuButtonProps,{pt:t.ptm("pcDropdown")}),{icon:l.withCtx(function(a){return[l.renderSlot(t.$slots,t.$slots.dropdownicon?"dropdownicon":"menubuttonicon",{class:l.normalizeClass(a.class)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.menuButtonIcon||t.dropdownIcon?"span":"ChevronDownIcon"),l.mergeProps({class:[t.dropdownIcon||t.menuButtonIcon,a.class]},t.ptm("pcDropdown").icon,{"data-pc-section":"menubuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","aria-expanded","aria-controls","onClick","onKeydown","severity","text","outlined","size","unstyled","pt"]),l.createVNode(c,{ref:"menu",id:t.$id+"_overlay",model:t.model,popup:!0,autoZIndex:t.autoZIndex,baseZIndex:t.baseZIndex,appendTo:t.appendTo,unstyled:t.unstyled,pt:t.ptm("pcMenu")},l.createSlots({_:2},[t.$slots.menuitemicon?{name:"itemicon",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"menuitemicon",{item:a.item,class:l.normalizeClass(a.class)})]}),key:"0"}:void 0,t.$slots.item?{name:"item",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"item",{item:a.item,hasSubmenu:a.hasSubmenu,label:a.label,props:a.props})]}),key:"1"}:void 0]),1032,["id","model","autoZIndex","baseZIndex","appendTo","unstyled","pt"])],16,ow)}Sm.render=iw;const sw=["src"],aw={class:"menu-item"},lw=["src"],Am={__name:"BDContentLibrarySplitButton",props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:["content-library"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.computed(()=>r.contentLibraryProviders.map(f=>({label:f.label,image:f.img,value:f.value,command:()=>o("content-library",f.value)}))),s=l.computed(()=>{let f=i.value;return f.length!==0&&r.isExternalOnly&&(f=f.slice(1)),f}),c=l.computed(()=>{const f=i.value;return r.isExternalOnly&&f.length>0?f[0].label:n("contentLibrarySplitButton.messageTemplatesTitle")}),a=l.computed(()=>{const f=i.value;return r.isExternalOnly&&f.length>0}),d=l.computed(()=>{const f=i.value;return f.length>0?f[0].image:""}),u=()=>{const f=i.value;let h="message-template";r.isExternalOnly&&f.length>0&&(h=f[0].value),o("content-library",h)};return(f,h)=>(l.openBlock(),l.createBlock(l.unref(Sm),{class:"bd-content-library-split-button",model:s.value,outlined:"",severity:"secondary",onClick:u},{default:l.withCtx(()=>[a.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:d.value,alt:""},null,8,sw)):(l.openBlock(),l.createBlock(Lc,{key:1})),l.createElementVNode("span",null,l.toDisplayString(c.value),1)]),item:l.withCtx(({item:p})=>[l.createElementVNode("div",aw,[l.createElementVNode("img",{src:p.image,alt:"",class:"icon-image"},null,8,lw),l.createElementVNode("span",null,l.toDisplayString(p.label),1)])]),_:1},8,["model"]))}},cw={class:"invalid-feedback bd-invalid-feedback"},Ta=l.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(t){const e=t;return(n,r)=>(l.openBlock(),l.createElementBlock("div",cw,[e.state?(l.openBlock(),l.createBlock(l.unref(Fo),{key:0})):(l.openBlock(),l.createBlock(l.unref(ra),{key:1})),l.createTextVNode(" "+l.toDisplayString(e.text),1)]))}});var dw=Object.defineProperty,uw=(t,e,n)=>e in t?dw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,es=(t,e,n)=>uw(t,typeof e!="symbol"?e+"":e,n);const xm={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Tm=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Im=(t,e,n)=>{var r;return new Intl.NumberFormat(((r=n.number)==null?void 0:r.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},fw=(t,e=!0,n)=>{var r,o,i,s;const c=((r=n.number)==null?void 0:r.unsigned)!==!0&&t.startsWith("-")?"-":"",a=((o=n.number)==null?void 0:o.fraction)??0;let d=Im(0,a,n);const u=d.formatToParts(1000.12),f=((i=u.find(v=>v.type==="group"))==null?void 0:i.value)??" ",h=((s=u.find(v=>v.type==="decimal"))==null?void 0:s.value)??".",p=Tm(t,f,h);if(Number.isNaN(parseFloat(p)))return c;const m=p.split(".");if(m[1]!=null&&m[1].length>=1){const v=m[1].length<=a?m[1].length:a;d=Im(v,a,n)}let g=d.format(parseFloat(p));return e?a>0&&p.endsWith(".")&&!p.slice(0,-1).includes(".")&&(g+=h):g=Tm(g,f,h),c+g},_m=t=>JSON.parse(t.replaceAll("'",'"')),hw=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=pw(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Ia(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Ia(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Ia(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=mw(t.dataset.maskaTokens));const r={};return t.dataset.maskaNumberLocale!=null&&(r.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(r.unsigned=Ia(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},Ia=t=>t!==""?!!JSON.parse(t):!0,pw=t=>t.startsWith("[")&&t.endsWith("]")?_m(t):t,mw=t=>{if(t.startsWith("{")&&t.endsWith("}"))return _m(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:Nm()?new RegExp(r[1],"u"):new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e},Nm=()=>{try{return new RegExp("\\p{L}","u"),!0}catch{return!1}};class gw{constructor(e={}){es(this,"opts",{}),es(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...xm,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=Nm()?new RegExp(r.pattern,"u"):new RegExp(r.pattern))}else n.tokens=xm;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,o)=>r.length-o.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(String(e),this.findMask(String(e)))}unmasked(e){return this.process(String(e),this.findMask(String(e)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(String(e));if(this.opts.mask==null||n==null)return!1;const r=this.process(String(e),n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:r>=n.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((o,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-r.length):n.push(o)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(this.opts.number!=null)return fw(e,r,this.opts);if(n==null)return e;const o=`v=${e},mr=${n},m=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:i,escaped:s}=this.escapeMask(n),c=[],a=this.opts.tokens!=null?this.opts.tokens:{},d=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>v>-1&&y>-1:()=>v<i.length&&y<e.length,p=E=>!this.isReversed()&&E<=f||this.isReversed()&&E>=f;let m,g=-1,v=this.isReversed()?i.length-1:0,y=this.isReversed()?e.length-1:0,b=!1;for(;h();){const E=i.charAt(v),C=a[E],w=C?.transform!=null?C.transform(e.charAt(y)):e.charAt(y);if(!s.includes(v)&&C!=null?(w.match(C.pattern)!=null?(c[u](w),C.repeated?(g===-1?g=v:v===f&&v!==g&&(v=g-d),f===g&&(v-=d)):C.multiple&&(b=!0,v-=d),v+=d):C.multiple?b&&(v+=d,y-=d,b=!1):w===m?m=void 0:C.optional&&(v+=d,y-=d),y+=d):(r&&!this.isEager()&&c[u](E),w===E&&!this.isEager()?y+=d:m=E,this.isEager()||(v+=d)),this.isEager())for(;p(v)&&(a[i.charAt(v)]==null||s.includes(v));){if(r){if(c[u](i.charAt(v)),e.charAt(y)===i.charAt(v)){v+=d,y+=d;continue}}else i.charAt(v)===e.charAt(y)&&(y+=d);v+=d}}return this.memo.set(o,c.join("")),this.memo.get(o)}}let vw=class{constructor(e,n={}){es(this,"items",new Map),es(this,"eventAbortController"),es(this,"onInput",r=>{if(r instanceof CustomEvent&&r.type==="input"&&!r.isTrusted&&!r.bubbles)return;const o=r.target,i=this.items.get(o);if(i===void 0)return;const s="inputType"in r&&r.inputType.startsWith("delete"),c=i.isEager(),a=s&&c&&i.unmasked(o.value)===""?"":o.value;this.fixCursor(o,s,()=>this.setValue(o,a))}),this.options=n,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){var n;e.value!==""&&e.value!==((n=this.processInput(e))==null?void 0:n.masked)&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){const n=this.getOptions(this.options);for(const r of e){if(!this.items.has(r)){const{signal:i}=this.eventAbortController;r.addEventListener("input",this.onInput,{capture:!0,signal:i})}const o=new gw(hw(r,n));this.items.set(r,o),queueMicrotask(()=>this.updateValue(r)),r.selectionStart===null&&o.isEager()&&console.warn("Maska: input of `%s` type is not supported",r.type)}}getInputs(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):"length"in e?Array.from(e):[e]}getOptions(e){const{onMaska:n,preProcess:r,postProcess:o,...i}=e;return i}fixCursor(e,n,r){var o,i;const s=e.selectionStart,c=e.value;if(r(),s===null||s===c.length&&!n)return;const a=e.value,d=c.slice(0,s),u=a.slice(0,s),f=(o=this.processInput(e,d))==null?void 0:o.unmasked,h=(i=this.processInput(e,u))==null?void 0:i.unmasked;if(f===void 0||h===void 0)return;let p=s;d!==u&&(p+=n?a.length-c.length:f.length-h.length),e.setSelectionRange(p,p)}setValue(e,n){const r=this.processInput(e,n);r!==void 0&&(e.value=r.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(o=>o(r)):this.options.onMaska(r)),e.dispatchEvent(new CustomEvent("maska",{detail:r})),e.dispatchEvent(new CustomEvent("input",{detail:r.masked})))}processInput(e,n){const r=this.items.get(e);if(r===void 0)return;let o=n??e.value;this.options.preProcess!=null&&(o=this.options.preProcess(o));let i=r.masked(o);return this.options.postProcess!=null&&(i=this.options.postProcess(i)),{masked:i,unmasked:r.unmasked(o),completed:r.completed(o)}}};const Bd=new WeakMap,yw=(t,e)=>{if(t.arg==null||t.instance==null)return;const n="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=e:n&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},bw=(t,e)=>{var n;const r=t instanceof HTMLInputElement?t:t.querySelector("input");if(r==null||r?.type==="file")return;let o={};if(e.value!=null&&(o=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const i=s=>{const c=e.modifiers.unmasked?s.unmasked:e.modifiers.completed?s.completed:s.masked;yw(e,c)};o.onMaska=o.onMaska==null?i:Array.isArray(o.onMaska)?[...o.onMaska,i]:[o.onMaska,i]}Bd.has(r)?(n=Bd.get(r))==null||n.update(o):Bd.set(r,new vw(r,o))},Cw=["value","type"],Cr=l.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:at.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(t,{emit:e}){const n=t,r=e,{uniqueIdentifier:o}=zo(),i=eo(n,"modelValue",r),s=`__BD__FORM__LABEL__${o.value}`,c=`__BD__FORM__GROUP__${o.value}`,a=`form-input-${n.label?n.label.replace(/ /g,"-").toLowerCase():o.value}`,d=`validationFeedback${n.label?n.label.replace(/ /g,""):o.value}`,u=l.computed(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),f=l.computed(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),h=l.computed(()=>({placeholder:n.placeholder?n.placeholder:null,readonly:n.readonly===!0,disabled:n.disabled===!0,autofocus:n.autofocus===!0,tabindex:n.tabindex?n.tabindex:null,"aria-describedby":n.state===!1&&n.invalidFeedbackText?d:null,"data-maska":n.mask})),p=a6(m=>{i.value=m.target.value},n.delayTimeMs);return(m,g)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-form-input",t.formGroupClass]),id:c},[l.renderSlot(m.$slots,"label",{},()=>[t.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:a,id:s,class:l.normalizeClass(["form-label",t.labelClass])},l.toDisplayString(t.label),3)):l.createCommentVNode("",!0)]),l.createElementVNode("div",{class:l.normalizeClass(t.formFieldClass)},[l.withDirectives(l.createElementVNode("input",l.mergeProps({value:t.modelValue,type:t.type,id:a,class:["form-control",u.value]},h.value,{onInput:g[0]||(g[0]=(...v)=>l.unref(p)&&l.unref(p)(...v)),onClick:g[1]||(g[1]=v=>m.$emit("click")),onBlur:g[2]||(g[2]=v=>m.$emit("blur")),onKeydown:g[3]||(g[3]=l.withKeys(v=>m.$emit("enter"),["enter"]))}),null,16,Cw),[[l.unref(bw)]]),l.renderSlot(m.$slots,"default")],2),l.createVNode(Ta,{text:t.invalidFeedbackText,class:l.normalizeClass(f.value),state:t.state,id:d},null,8,["text","class","state"])],2))}}),Ew={class:"input-group bd-input-group"},kw=["for"],ts=l.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(t){const e=l.useAttrs(),n=t;return(r,o)=>(l.openBlock(),l.createElementBlock("fieldset",Ew,[n.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:n.labelForId,class:"form-label"},l.toDisplayString(n.label),9,kw)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(l.unref(e).class)},[l.renderSlot(r.$slots,"default")],2)]))}}),ww={key:0},Sw={key:1},Om=l.defineComponent({__name:"BDBadge",props:{variant:{default:sa.PRIMARY}},setup(t){const e=t,n=l.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(l.openBlock(),l.createElementBlock("span",{role:"status",class:l.normalizeClass(n.value)},[t.variant==="danger"?(l.openBlock(),l.createElementBlock("span",ww,[l.createVNode(l.unref(mr))])):l.createCommentVNode("",!0),t.variant==="success"?(l.openBlock(),l.createElementBlock("span",Sw,[l.createVNode(l.unref(Fo))])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}}),Mm=l.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(t,{emit:e}){const n=e;function r(){n("submit")}function o(){n("reset")}return(i,s)=>(l.openBlock(),l.createElementBlock("form",{onSubmit:l.withModifiers(r,["prevent"]),onReset:l.withModifiers(o,["prevent"])},[l.renderSlot(i.$slots,"default")],32))}}),Aw={"aria-label":"Page navigation",class:"bd-pagination"},xw={class:"page-item"},Tw=["data-page"],Iw=["data-page"],_w={class:"page-item"},Nw=["data-page"],Rd=l.defineComponent({__name:"BDPagination",props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:["click","update:modelValue"],setup(t,{emit:e}){const n=t,r=e,o=eo(n,"modelValue",r),i=l.ref(Math.ceil(n.totalRows/n.rowsPerPage)),s=l.ref([]);l.watch([()=>n.totalRows,()=>n.rowsPerPage],()=>{i.value=Math.ceil(n.totalRows/n.rowsPerPage),s.value=f(o.value)}),l.onMounted(()=>{s.value=f(o.value)});const c=l.computed(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),a=h=>{const p=h.currentTarget.getAttribute("data-page"),m=Number(p);isNaN(Number(m))||(o.value=m,s.value=f(m)),r("click",m)},d=(h,p,m)=>m<=p?m:h==1?6:h<=4?5:1,u=(h,p,m)=>m<=p?0:h==m?6:h>m-4?5:1,f=h=>{const p=[],g=d(h,7,i.value),v=i.value>7&&h>4,y=i.value>7&&h<i.value-3,b=v&&y,E=u(h,7,i.value);for(let C=1;C<=g;C++)p.push(C);if(v&&p.push("..."),b)for(let C=h-1;C<=h+1;C++)p.push(C);y&&p.push("...");for(let C=1;C<=E;C++)p.push(i.value-E+C);return p};return(h,p)=>(l.openBlock(),l.createElementBlock("div",Aw,[l.createElementVNode("ul",{class:l.normalizeClass(["pagination",c.value])},[l.withDirectives(l.createElementVNode("li",xw,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:a,"data-page":l.unref(o)-1},[l.createVNode(l.unref(Oc))],8,Tw)],512),[[l.vShow,l.unref(o)>1]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,m=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["page-item",{active:l.unref(o)===m,disabled:typeof m=="string"}]),key:m},[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:a,"data-page":m},l.toDisplayString(m),9,Iw)],2))),128)),l.withDirectives(l.createElementVNode("li",_w,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:a,"data-page":l.unref(o)+1},[l.createVNode(l.unref(Mc))],8,Nw)],512),[[l.vShow,l.unref(o)<i.value]])],2)]))}}),Ow=["disabled"],Mw=["label"],Lw=["value"],Dw=["value"],Lm=l.defineComponent({__name:"BDFormSelect",props:{size:{default:at.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,r=e,o=eo(n,"modelValue",r),i=l.ref(null),{focused:s}=u6(i,{initialValue:n.autofocus}),c=l.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":n.state===!1,[`form-select-${n.size}`]:["xs","sm","lg"].includes(n.size)}));l.watch(()=>n.autofocus,f=>{f&&(s.value=!0)});const a=f=>{o.value=f.target.value;let h=u(f.target.value);r("input",h)},d=f=>{let h=u(f.target.value);r("change",h)},u=f=>{try{return JSON.parse(f)}catch{return f}};return(f,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:l.normalizeClass(c.value),"onUpdate:modelValue":h[0]||(h[0]=p=>l.isRef(o)?o.value=p:null),disabled:n.disabled,ref_key:"input",ref:i,onInput:a,onChange:d},[l.renderSlot(f.$slots,"first"),n.options&&n.options.length>0&&n.options[0].label&&n.options[0].options?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(n.options,p=>(l.openBlock(),l.createElementBlock("optgroup",{label:p.label},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.options,m=>(l.openBlock(),l.createElementBlock("option",{value:JSON.stringify(m.value),key:m.value},l.toDisplayString(m.text),9,Lw))),128))],8,Mw))),256)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(n.options,p=>(l.openBlock(),l.createElementBlock("option",{value:p.value,key:p.value},l.toDisplayString(p.text),9,Dw))),128))],42,Ow)),[[l.vModelSelect,l.unref(o)]])}}),Pw=["value","true-value","false-value","data-checked","disabled"],Er=l.defineComponent({__name:"BDFormCheckbox",props:{disabled:{type:Boolean,default:!1},modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const{uniqueIdentifier:n}=zo(),r=t,o=e,i=eo(r,"modelValue",o),s=`form-check-input-${n.value}`,c=l.computed(()=>["form-check","bd-form-checkbox"]),a=l.computed(()=>({"form-check-input":!0,"is-invalid":r.state===!1})),d=u=>o("change",u.target.value);return(u,f)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(c.value)},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>l.isRef(i)?i.value=h:null),id:s,class:l.normalizeClass(a.value),type:"checkbox",value:t.value,"true-value":t.value,"false-value":t.uncheckedValue,"data-checked":l.unref(i)===t.value,disabled:r.disabled,onChange:d},null,42,Pw),[[l.vModelCheckbox,l.unref(i)]]),l.createElementVNode("label",{class:"form-check-label",for:s},[l.renderSlot(u.$slots,"default")]),l.renderSlot(u.$slots,"last")],2))}}),Bw={key:0,class:"bd-article__body"},Rw={key:1},Dm=l.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,o=i=>r("click",{event:i,identifier:n.identifier});return(i,s)=>(l.openBlock(),l.createElementBlock("article",{class:"bd-article",onClick:o},[l.createElementVNode("header",null,[l.renderSlot(i.$slots,"header",{},()=>[l.createElementVNode("h5",null,l.toDisplayString(n.title),1)])]),n.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Bw,[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])])),n.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",Rw,[l.renderSlot(i.$slots,"footer")]))]))}}),Yo={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},$w=["id"],Fw={class:"toast-header"},zw={class:"toast-body"},$d=l.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Yo.INFO},title:{default:""},text:{default:""}},setup(t){const e=t,n=l.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=l.computed(()=>e.variant!==Yo.SUCCESS);return(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["toast bd-toast",n.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[l.createElementVNode("div",Fw,[r.value?(l.openBlock(),l.createBlock(l.unref(mr),{key:0})):(l.openBlock(),l.createBlock(l.unref(Fo),{key:1})),l.createElementVNode("h5",null,l.toDisplayString(e.title),1),i[0]||(i[0]=l.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1))]),l.createElementVNode("div",zw,[l.createElementVNode("span",null,l.toDisplayString(e.text),1)])],10,$w))}}),_e="",_a=t=>typeof t=="string"||t instanceof String,Uw={class:"bd-pill"},Hw=["src"],jw={class:"bd-pill__description"},Ww=["href"],Kw=["id","textContent","title"],Yw=["id","textContent","title"],Na=l.defineComponent({__name:"BDPill",props:{imgSrc:{default:_e},uri:{default:_e},uriDisplayName:{default:_e},title:{default:_e},subtitle:{default:_e},showClose:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const{uniqueIdentifier:n}=zo(),r=t,o=l.computed(()=>r.uri),i=l.computed(()=>r.uriDisplayName!==_e?r.uriDisplayName:r.uri),s=l.computed(()=>r.imgSrc),c=l.computed(()=>r.title),a=l.computed(()=>r.subtitle),d=l.computed(()=>`bd-pill-title-${n.value}`),u=l.computed(()=>`bd-pill-subtitle-${n.value}`);return(f,h)=>(l.openBlock(),l.createElementBlock("div",Uw,[l.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,Hw),l.createElementVNode("div",jw,[l.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[l.createVNode(l.unref(oa),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),l.createTextVNode(" "+l.toDisplayString(i.value),1)],8,Ww),l.createElementVNode("span",{class:"bd-pill__title",id:d.value,textContent:l.toDisplayString(c.value),"data-bs-toggle":"tooltip",title:c.value},null,8,Kw),l.createElementVNode("span",{class:"bd-pill__subtitle",id:u.value,textContent:l.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,Yw)])]))}});function Gw(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Qw(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(u){try{d(r.next(u))}catch(f){s(f)}}function a(u){try{d(r.throw(u))}catch(f){s(f)}}function d(u){u.done?i(u.value):o(u.value).then(c,a)}d((r=r.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Zw=t=>Array.isArray(t)&&t.length>0,Jw=t=>Object.keys(t).map(e=>t[e]),Fd=t=>Array.isArray(t)&&t.length>0,Pm=t=>!t||Array.isArray(t)&&!t.length,zd={name:"BDUserInformation",props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){const t=this.value,{name:e,profilePictureUri:n,extra:r}=t,o=Gw(t,["name","profilePictureUri","extra"]),i=n&&this.showProfilePicture?l.h("img",{class:"bd-user-information__profile-picture",src:n,alt:e}):null;let c=[l.h("h4",null,e)];this.$slots.default&&c.push(this.$slots.default());const a=l.h("div",{class:"bd-user-information__header"},c),d=l.h("small",null,Jw(o).filter(f=>f).join(" • ")),u=l.h("div",{class:"bd-user-information__detail"},[a,d]);return l.h("div",{class:"bd-user-information"},[i,u])}},Bm={displayTime:!0,format:"numeric"};function Go(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oa={exports:{}},Xw=Oa.exports,Rm;function $m(){return Rm||(Rm=1,(function(t,e){(function(n,r){t.exports=r()})(Xw,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",a="hour",d="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var P=["th","st","nd","rd"],N=K%100;return"["+K+(P[(N-20)%10]||P[N]||P[0])+"]"}},E=function(K,P,N){var J=String(K);return!J||J.length>=P?K:""+Array(P+1-J.length).join(N)+K},C={s:E,z:function(K){var P=-K.utcOffset(),N=Math.abs(P),J=Math.floor(N/60),U=N%60;return(P<=0?"+":"-")+E(J,2,"0")+":"+E(U,2,"0")},m:function K(P,N){if(P.date()<N.date())return-K(N,P);var J=12*(N.year()-P.year())+(N.month()-P.month()),U=P.clone().add(J,f),V=N-U<0,te=P.clone().add(J+(V?-1:1),f);return+(-(J+(N-U)/(V?U-te:te-U))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:f,y:p,w:u,d,D:m,h:a,m:c,s,ms:i,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},w="en",I={};I[w]=b;var A="$isDayjsObject",O=function(K){return K instanceof j||!(!K||!K[A])},W=function K(P,N,J){var U;if(!P)return w;if(typeof P=="string"){var V=P.toLowerCase();I[V]&&(U=V),N&&(I[V]=N,U=V);var te=P.split("-");if(!U&&te.length>1)return K(te[0])}else{var ae=P.name;I[ae]=P,U=ae}return!J&&U&&(w=U),U||!J&&w},$=function(K,P){if(O(K))return K.clone();var N=typeof P=="object"?P:{};return N.date=K,N.args=arguments,new j(N)},z=C;z.l=W,z.i=O,z.w=function(K,P){return $(K,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var j=(function(){function K(N){this.$L=W(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[A]=!0}var P=K.prototype;return P.parse=function(N){this.$d=(function(J){var U=J.date,V=J.utc;if(U===null)return new Date(NaN);if(z.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var te=U.match(v);if(te){var ae=te[2]-1||0,pe=(te[7]||"0").substring(0,3);return V?new Date(Date.UTC(te[1],ae,te[3]||1,te[4]||0,te[5]||0,te[6]||0,pe)):new Date(te[1],ae,te[3]||1,te[4]||0,te[5]||0,te[6]||0,pe)}}return new Date(U)})(N),this.init()},P.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},P.$utils=function(){return z},P.isValid=function(){return this.$d.toString()!==g},P.isSame=function(N,J){var U=$(N);return this.startOf(J)<=U&&U<=this.endOf(J)},P.isAfter=function(N,J){return $(N)<this.startOf(J)},P.isBefore=function(N,J){return this.endOf(J)<$(N)},P.$g=function(N,J,U){return z.u(N)?this[J]:this.set(U,N)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(N,J){var U=this,V=!!z.u(J)||J,te=z.p(N),ae=function(D,_){var L=z.w(U.$u?Date.UTC(U.$y,_,D):new Date(U.$y,_,D),U);return V?L:L.endOf(d)},pe=function(D,_){return z.w(U.toDate()[D].apply(U.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(_)),U)},me=this.$W,ye=this.$M,Ce=this.$D,Se="set"+(this.$u?"UTC":"");switch(te){case p:return V?ae(1,0):ae(31,11);case f:return V?ae(1,ye):ae(0,ye+1);case u:var ve=this.$locale().weekStart||0,M=(me<ve?me+7:me)-ve;return ae(V?Ce-M:Ce+(6-M),ye);case d:case m:return pe(Se+"Hours",0);case a:return pe(Se+"Minutes",1);case c:return pe(Se+"Seconds",2);case s:return pe(Se+"Milliseconds",3);default:return this.clone()}},P.endOf=function(N){return this.startOf(N,!1)},P.$set=function(N,J){var U,V=z.p(N),te="set"+(this.$u?"UTC":""),ae=(U={},U[d]=te+"Date",U[m]=te+"Date",U[f]=te+"Month",U[p]=te+"FullYear",U[a]=te+"Hours",U[c]=te+"Minutes",U[s]=te+"Seconds",U[i]=te+"Milliseconds",U)[V],pe=V===d?this.$D+(J-this.$W):J;if(V===f||V===p){var me=this.clone().set(m,1);me.$d[ae](pe),me.init(),this.$d=me.set(m,Math.min(this.$D,me.daysInMonth())).$d}else ae&&this.$d[ae](pe);return this.init(),this},P.set=function(N,J){return this.clone().$set(N,J)},P.get=function(N){return this[z.p(N)]()},P.add=function(N,J){var U,V=this;N=Number(N);var te=z.p(J),ae=function(ye){var Ce=$(V);return z.w(Ce.date(Ce.date()+Math.round(ye*N)),V)};if(te===f)return this.set(f,this.$M+N);if(te===p)return this.set(p,this.$y+N);if(te===d)return ae(1);if(te===u)return ae(7);var pe=(U={},U[c]=r,U[a]=o,U[s]=n,U)[te]||1,me=this.$d.getTime()+N*pe;return z.w(me,this)},P.subtract=function(N,J){return this.add(-1*N,J)},P.format=function(N){var J=this,U=this.$locale();if(!this.isValid())return U.invalidDate||g;var V=N||"YYYY-MM-DDTHH:mm:ssZ",te=z.z(this),ae=this.$H,pe=this.$m,me=this.$M,ye=U.weekdays,Ce=U.months,Se=U.meridiem,ve=function(_,L,k,S){return _&&(_[L]||_(J,V))||k[L].slice(0,S)},M=function(_){return z.s(ae%12||12,_,"0")},D=Se||function(_,L,k){var S=_<12?"AM":"PM";return k?S.toLowerCase():S};return V.replace(y,(function(_,L){return L||(function(k){switch(k){case"YY":return String(J.$y).slice(-2);case"YYYY":return z.s(J.$y,4,"0");case"M":return me+1;case"MM":return z.s(me+1,2,"0");case"MMM":return ve(U.monthsShort,me,Ce,3);case"MMMM":return ve(Ce,me);case"D":return J.$D;case"DD":return z.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return ve(U.weekdaysMin,J.$W,ye,2);case"ddd":return ve(U.weekdaysShort,J.$W,ye,3);case"dddd":return ye[J.$W];case"H":return String(ae);case"HH":return z.s(ae,2,"0");case"h":return M(1);case"hh":return M(2);case"a":return D(ae,pe,!0);case"A":return D(ae,pe,!1);case"m":return String(pe);case"mm":return z.s(pe,2,"0");case"s":return String(J.$s);case"ss":return z.s(J.$s,2,"0");case"SSS":return z.s(J.$ms,3,"0");case"Z":return te}return null})(_)||te.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(N,J,U){var V,te=this,ae=z.p(J),pe=$(N),me=(pe.utcOffset()-this.utcOffset())*r,ye=this-pe,Ce=function(){return z.m(te,pe)};switch(ae){case p:V=Ce()/12;break;case f:V=Ce();break;case h:V=Ce()/3;break;case u:V=(ye-me)/6048e5;break;case d:V=(ye-me)/864e5;break;case a:V=ye/o;break;case c:V=ye/r;break;case s:V=ye/n;break;default:V=ye}return U?V:z.a(V)},P.daysInMonth=function(){return this.endOf(f).$D},P.$locale=function(){return I[this.$L]},P.locale=function(N,J){if(!N)return this.$L;var U=this.clone(),V=W(N,J,!0);return V&&(U.$L=V),U},P.clone=function(){return z.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},K})(),Z=j.prototype;return $.prototype=Z,[["$ms",i],["$s",s],["$m",c],["$H",a],["$W",d],["$M",f],["$y",p],["$D",m]].forEach((function(K){Z[K[1]]=function(P){return this.$g(P,K[0],K[1])}})),$.extend=function(K,P){return K.$i||(K(P,j,$),K.$i=!0),$},$.locale=W,$.isDayjs=O,$.unix=function(K){return $(1e3*K)},$.en=I[w],$.Ls=I,$.p={},$}))})(Oa)),Oa.exports}var qw=$m();const Kt=Go(qw);var Ma={exports:{}},Vw=Ma.exports,Fm;function eS(){return Fm||(Fm=1,(function(t,e){(function(n,r){t.exports=r($m())})(Vw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),i={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(s){return"["+s+(s===1||s===8||s>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(i,null,!0),i}))})(Ma)),Ma.exports}eS();var La={exports:{}},tS=La.exports,zm;function nS(){return zm||(zm=1,(function(t,e){(function(n,r){t.exports=r()})(tS,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,a={},d=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),E=60*b[1]+(+b[2]||0);return E===0?0:b[0]==="+"?-E:E})(v)}],h=function(v){var y=a[v];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(v,y){var b,E=a.meridiem;if(E){for(var C=1;C<=24;C+=1)if(v.indexOf(E(C,0,y))>-1){b=C>12;break}}else b=v===(y?"pm":"PM");return b},m={A:[c,function(v){this.afternoon=p(v,!1)}],a:[c,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[c,function(v){var y=a.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("month")],MMM:[c,function(v){var y=h("months"),b=(h("monthsShort")||y.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[c,function(v){var y=h("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=d(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var y,b;y=v,b=a&&a.formats;for(var E=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,z,j){var Z=j&&j.toUpperCase();return z||b[j]||n[j]||b[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(K,P,N){return P||N.slice(1)}))}))).match(r),C=E.length,w=0;w<C;w+=1){var I=E[w],A=m[I],O=A&&A[0],W=A&&A[1];E[w]=W?{regex:O,parser:W}:I.replace(/^\[|\]$/g,"")}return function($){for(var z={},j=0,Z=0;j<C;j+=1){var K=E[j];if(typeof K=="string")Z+=K.length;else{var P=K.regex,N=K.parser,J=$.slice(Z),U=P.exec(J)[0];N.call(z,U),$=$.replace(U,"")}}return(function(V){var te=V.afternoon;if(te!==void 0){var ae=V.hours;te?ae<12&&(V.hours+=12):ae===12&&(V.hours=0),delete V.afternoon}})(z),z}}return function(v,y,b){b.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(d=v.parseTwoDigitYear);var E=y.prototype,C=E.parse;E.parse=function(w){var I=w.date,A=w.utc,O=w.args;this.$u=A;var W=O[1];if(typeof W=="string"){var $=O[2]===!0,z=O[3]===!0,j=$||z,Z=O[2];z&&(Z=O[2]),a=this.$locale(),!$&&Z&&(a=b.Ls[Z]),this.$d=(function(J,U,V,te){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*J);var ae=g(U)(J),pe=ae.year,me=ae.month,ye=ae.day,Ce=ae.hours,Se=ae.minutes,ve=ae.seconds,M=ae.milliseconds,D=ae.zone,_=ae.week,L=new Date,k=ye||(pe||me?1:L.getDate()),S=pe||L.getFullYear(),R=0;pe&&!me||(R=me>0?me-1:L.getMonth());var H,Y=Ce||0,G=Se||0,x=ve||0,T=M||0;return D?new Date(Date.UTC(S,R,k,Y,G,x,T+60*D.offset*1e3)):V?new Date(Date.UTC(S,R,k,Y,G,x,T)):(H=new Date(S,R,k,Y,G,x,T),_&&(H=te(H).week(_).toDate()),H)}catch{return new Date("")}})(I,W,A,b),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),j&&I!=this.format(W)&&(this.$d=new Date("")),a={}}else if(W instanceof Array)for(var K=W.length,P=1;P<=K;P+=1){O[1]=W[P-1];var N=b.apply(this,O);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}P===K&&(this.$d=new Date(""))}else C.call(this,w)}}}))})(La)),La.exports}var rS=nS();const oS=Go(rS);var Da={exports:{}},iS=Da.exports,Um;function sS(){return Um||(Um=1,(function(t,e){(function(n,r){t.exports=r()})(iS,(function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}}))})(Da)),Da.exports}var aS=sS();const lS=Go(aS);var Pa={exports:{}},cS=Pa.exports,Hm;function dS(){return Hm||(Hm=1,(function(t,e){(function(n,r){t.exports=r()})(cS,(function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}}))})(Pa)),Pa.exports}var uS=dS();const fS=Go(uS);var Ba={exports:{}},hS=Ba.exports,jm;function pS(){return jm||(jm=1,(function(t,e){(function(n,r){t.exports=r()})(hS,(function(){var n="week",r="year";return function(o,i,s){var c=i.prototype;c.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(d),f=s(this).endOf(n);if(u.isBefore(f))return 1}var h=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?s(this).startOf("week").week():Math.ceil(p)},c.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}}))})(Ba)),Ba.exports}var mS=pS();const gS=Go(mS);Kt.extend(oS),Kt.locale("nl"),Kt.extend(lS),Kt.extend(fS),Kt.extend(gS);const Ud=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"";function Wm(t,e=Kt()){const n=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0);if(!n.isValid())return"";const r=e.startOf("day");if(n.isSame(r,"day"))return"Vandaag";const o=r.subtract(1,"day");if(n.isSame(o,"day"))return"Gisteren";const i=r.subtract(6,"day");if(n.isSameOrAfter(i)&&n.isBefore(r))return Ud(n.format("dddd"));const s=r.subtract(7,"day");return n.isSame(s)||n.isSame(e,"year")?n.format("D MMMM"):n.format("DD-MM-YYYY")}function Km(t,e=Kt()){const n=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0),r=t.includes(" ")&&t.includes(":");if(!n.isValid())return"";const o=e.startOf("day");if(n.isSame(o,"day"))return r?n.format("H:mm"):"Vandaag";const i=o.subtract(1,"day");if(n.isSame(i,"day"))return r?`Gisteren ${n.format("H:mm")}`:"Gisteren";const s=o.subtract(6,"day");if(n.isSameOrAfter(s)&&n.isBefore(o))return Ud(r?n.format("dddd H:mm"):n.format("dddd"));const c=o.subtract(7,"day");return n.isSame(c)||n.isSame(e,"year")?r?n.format("D MMM H:mm"):n.format("D MMMM"):n.format("DD-MM-YYYY")}function Hd(t){const e=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY","YYYY-MM-DDTHH:mm:ss"],!0),n=t.includes(" ")&&t.includes(":");return e.isValid()?n&&e.isSame(Kt(),"year")?e.format("DD-MM-YYYY H:mm"):e.format("DD-MM-YYYY"):""}function jd(t){const e=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY","YYYY-MM-DDTHH:mm:ss"],!0);return e.isValid()?e.format("DD-MM-YYYY"):""}const vS={class:"bd-date"},Ym=l.defineComponent({__name:"BDDate",props:{date:{},displayTime:{type:Boolean,default:Bm.displayTime},format:{default:Bm.format}},setup(t){const e=t,n=l.computed(()=>e.date?e.format==="textual"?e.displayTime?Km(e.date):Wm(e.date):(e.format==="numeric",e.displayTime?Hd(e.date):jd(e.date)):"");return(r,o)=>(l.openBlock(),l.createElementBlock("span",vS,l.toDisplayString(n.value),1))}}),Ra=l.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,o=()=>{r("click")};return(i,s)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"bd-dropdown-item"},i.$attrs),[l.createVNode(qr,l.mergeProps({class:"dropdown-item",onClick:o},n),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16)],16))}});var Wd={exports:{}},Gm;function yS(){return Gm||(Gm=1,(function(t,e){(function(r,o){t.exports=o()})(self,function(){return(function(){var n={3099:(function(s){s.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}}),6077:(function(s,c,a){var d=a(111);s.exports=function(u){if(!d(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}}),1223:(function(s,c,a){var d=a(5112),u=a(30),f=a(3070),h=d("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:u(null)}),s.exports=function(m){p[h][m]=!0}}),1530:(function(s,c,a){var d=a(8710).charAt;s.exports=function(u,f,h){return f+(h?d(u,f).length:1)}}),5787:(function(s){s.exports=function(c,a,d){if(!(c instanceof a))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return c}}),9670:(function(s,c,a){var d=a(111);s.exports=function(u){if(!d(u))throw TypeError(String(u)+" is not an object");return u}}),4019:(function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),260:(function(s,c,a){var d=a(4019),u=a(9781),f=a(7854),h=a(111),p=a(6656),m=a(648),g=a(8880),v=a(1320),y=a(3070).f,b=a(9518),E=a(7674),C=a(5112),w=a(9711),I=f.Int8Array,A=I&&I.prototype,O=f.Uint8ClampedArray,W=O&&O.prototype,$=I&&b(I),z=A&&b(A),j=Object.prototype,Z=j.isPrototypeOf,K=C("toStringTag"),P=w("TYPED_ARRAY_TAG"),N=d&&!!E&&m(f.opera)!=="Opera",J=!1,U,V={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},ae=function(M){if(!h(M))return!1;var D=m(M);return D==="DataView"||p(V,D)||p(te,D)},pe=function(ve){if(!h(ve))return!1;var M=m(ve);return p(V,M)||p(te,M)},me=function(ve){if(pe(ve))return ve;throw TypeError("Target is not a typed array")},ye=function(ve){if(E){if(Z.call($,ve))return ve}else for(var M in V)if(p(V,U)){var D=f[M];if(D&&(ve===D||Z.call(D,ve)))return ve}throw TypeError("Target is not a typed array constructor")},Ce=function(ve,M,D){if(u){if(D)for(var _ in V){var L=f[_];L&&p(L.prototype,ve)&&delete L.prototype[ve]}(!z[ve]||D)&&v(z,ve,D?M:N&&A[ve]||M)}},Se=function(ve,M,D){var _,L;if(u){if(E){if(D)for(_ in V)L=f[_],L&&p(L,ve)&&delete L[ve];if(!$[ve]||D)try{return v($,ve,D?M:N&&I[ve]||M)}catch{}else return}for(_ in V)L=f[_],L&&(!L[ve]||D)&&v(L,ve,M)}};for(U in V)f[U]||(N=!1);if((!N||typeof $!="function"||$===Function.prototype)&&($=function(){throw TypeError("Incorrect invocation")},N))for(U in V)f[U]&&E(f[U],$);if((!N||!z||z===j)&&(z=$.prototype,N))for(U in V)f[U]&&E(f[U].prototype,z);if(N&&b(W)!==z&&E(W,z),u&&!p(z,K)){J=!0,y(z,K,{get:function(){return h(this)?this[P]:void 0}});for(U in V)f[U]&&g(f[U],P,U)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:J&&P,aTypedArray:me,aTypedArrayConstructor:ye,exportTypedArrayMethod:Ce,exportTypedArrayStaticMethod:Se,isView:ae,isTypedArray:pe,TypedArray:$,TypedArrayPrototype:z}}),3331:(function(s,c,a){var d=a(7854),u=a(9781),f=a(4019),h=a(8880),p=a(2248),m=a(7293),g=a(5787),v=a(9958),y=a(7466),b=a(7067),E=a(1179),C=a(9518),w=a(7674),I=a(8006).f,A=a(3070).f,O=a(1285),W=a(8003),$=a(9909),z=$.get,j=$.set,Z="ArrayBuffer",K="DataView",P="prototype",N="Wrong length",J="Wrong index",U=d[Z],V=U,te=d[K],ae=te&&te[P],pe=Object.prototype,me=d.RangeError,ye=E.pack,Ce=E.unpack,Se=function(Q){return[Q&255]},ve=function(Q){return[Q&255,Q>>8&255]},M=function(Q){return[Q&255,Q>>8&255,Q>>16&255,Q>>24&255]},D=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},_=function(Q){return ye(Q,23,4)},L=function(Q){return ye(Q,52,8)},k=function(Q,q){A(Q[P],q,{get:function(){return z(this)[q]}})},S=function(Q,q,ne,se){var X=b(ne),re=z(Q);if(X+q>re.byteLength)throw me(J);var Ae=z(re.buffer).bytes,Ne=X+re.byteOffset,Oe=Ae.slice(Ne,Ne+q);return se?Oe:Oe.reverse()},R=function(Q,q,ne,se,X,re){var Ae=b(ne),Ne=z(Q);if(Ae+q>Ne.byteLength)throw me(J);for(var Oe=z(Ne.buffer).bytes,nt=Ae+Ne.byteOffset,mt=se(+X),rt=0;rt<q;rt++)Oe[nt+rt]=mt[re?rt:q-rt-1]};if(!f)V=function(q){g(this,V,Z);var ne=b(q);j(this,{bytes:O.call(new Array(ne),0),byteLength:ne}),u||(this.byteLength=ne)},te=function(q,ne,se){g(this,te,K),g(q,V,K);var X=z(q).byteLength,re=v(ne);if(re<0||re>X)throw me("Wrong offset");if(se=se===void 0?X-re:y(se),re+se>X)throw me(N);j(this,{buffer:q,byteLength:se,byteOffset:re}),u||(this.buffer=q,this.byteLength=se,this.byteOffset=re)},u&&(k(V,"byteLength"),k(te,"buffer"),k(te,"byteLength"),k(te,"byteOffset")),p(te[P],{getInt8:function(q){return S(this,1,q)[0]<<24>>24},getUint8:function(q){return S(this,1,q)[0]},getInt16:function(q){var ne=S(this,2,q,arguments.length>1?arguments[1]:void 0);return(ne[1]<<8|ne[0])<<16>>16},getUint16:function(q){var ne=S(this,2,q,arguments.length>1?arguments[1]:void 0);return ne[1]<<8|ne[0]},getInt32:function(q){return D(S(this,4,q,arguments.length>1?arguments[1]:void 0))},getUint32:function(q){return D(S(this,4,q,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(q){return Ce(S(this,4,q,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(q){return Ce(S(this,8,q,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(q,ne){R(this,1,q,Se,ne)},setUint8:function(q,ne){R(this,1,q,Se,ne)},setInt16:function(q,ne){R(this,2,q,ve,ne,arguments.length>2?arguments[2]:void 0)},setUint16:function(q,ne){R(this,2,q,ve,ne,arguments.length>2?arguments[2]:void 0)},setInt32:function(q,ne){R(this,4,q,M,ne,arguments.length>2?arguments[2]:void 0)},setUint32:function(q,ne){R(this,4,q,M,ne,arguments.length>2?arguments[2]:void 0)},setFloat32:function(q,ne){R(this,4,q,_,ne,arguments.length>2?arguments[2]:void 0)},setFloat64:function(q,ne){R(this,8,q,L,ne,arguments.length>2?arguments[2]:void 0)}});else{if(!m(function(){U(1)})||!m(function(){new U(-1)})||m(function(){return new U,new U(1.5),new U(NaN),U.name!=Z})){V=function(q){return g(this,V),new U(b(q))};for(var H=V[P]=U[P],Y=I(U),G=0,x;Y.length>G;)(x=Y[G++])in V||h(V,x,U[x]);H.constructor=V}w&&C(ae)!==pe&&w(ae,pe);var T=new te(new V(2)),F=ae.setInt8;T.setInt8(0,2147483648),T.setInt8(1,2147483649),(T.getInt8(0)||!T.getInt8(1))&&p(ae,{setInt8:function(q,ne){F.call(this,q,ne<<24>>24)},setUint8:function(q,ne){F.call(this,q,ne<<24>>24)}},{unsafe:!0})}W(V,Z),W(te,K),s.exports={ArrayBuffer:V,DataView:te}}),1048:(function(s,c,a){var d=a(7908),u=a(1400),f=a(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var v=d(this),y=f(v.length),b=u(m,y),E=u(g,y),C=arguments.length>2?arguments[2]:void 0,w=h((C===void 0?y:u(C,y))-E,y-b),I=1;for(E<b&&b<E+w&&(I=-1,E+=w-1,b+=w-1);w-- >0;)E in v?v[b]=v[E]:delete v[b],b+=I,E+=I;return v}}),1285:(function(s,c,a){var d=a(7908),u=a(1400),f=a(7466);s.exports=function(p){for(var m=d(this),g=f(m.length),v=arguments.length,y=u(v>1?arguments[1]:void 0,g),b=v>2?arguments[2]:void 0,E=b===void 0?g:u(b,g);E>y;)m[y++]=p;return m}}),8533:(function(s,c,a){var d=a(2092).forEach,u=a(9341),f=u("forEach");s.exports=f?[].forEach:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}}),8457:(function(s,c,a){var d=a(9974),u=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);s.exports=function(y){var b=u(y),E=typeof this=="function"?this:Array,C=arguments.length,w=C>1?arguments[1]:void 0,I=w!==void 0,A=g(b),O=0,W,$,z,j,Z,K;if(I&&(w=d(w,C>2?arguments[2]:void 0,2)),A!=null&&!(E==Array&&h(A)))for(j=A.call(b),Z=j.next,$=new E;!(z=Z.call(j)).done;O++)K=I?f(j,w,[z.value,O],!0):z.value,m($,O,K);else for(W=p(b.length),$=new E(W);W>O;O++)K=I?w(b[O],O):b[O],m($,O,K);return $.length=O,$}}),1318:(function(s,c,a){var d=a(5656),u=a(7466),f=a(1400),h=function(p){return function(m,g,v){var y=d(m),b=u(y.length),E=f(v,b),C;if(p&&g!=g){for(;b>E;)if(C=y[E++],C!=C)return!0}else for(;b>E;E++)if((p||E in y)&&y[E]===g)return p||E||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}}),2092:(function(s,c,a){var d=a(9974),u=a(8361),f=a(7908),h=a(7466),p=a(5417),m=[].push,g=function(v){var y=v==1,b=v==2,E=v==3,C=v==4,w=v==6,I=v==7,A=v==5||w;return function(O,W,$,z){for(var j=f(O),Z=u(j),K=d(W,$,3),P=h(Z.length),N=0,J=z||p,U=y?J(O,P):b||I?J(O,0):void 0,V,te;P>N;N++)if((A||N in Z)&&(V=Z[N],te=K(V,N,j),v))if(y)U[N]=te;else if(te)switch(v){case 3:return!0;case 5:return V;case 6:return N;case 2:m.call(U,V)}else switch(v){case 4:return!1;case 7:m.call(U,V)}return w?-1:E||C?C:U}};s.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}}),6583:(function(s,c,a){var d=a(5656),u=a(9958),f=a(7466),h=a(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,v=h("lastIndexOf"),y=g||!v;s.exports=y?function(E){if(g)return m.apply(this,arguments)||0;var C=d(this),w=f(C.length),I=w-1;for(arguments.length>1&&(I=p(I,u(arguments[1]))),I<0&&(I=w+I);I>=0;I--)if(I in C&&C[I]===E)return I||0;return-1}:m}),1194:(function(s,c,a){var d=a(7293),u=a(5112),f=a(7392),h=u("species");s.exports=function(p){return f>=51||!d(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}}),9341:(function(s,c,a){var d=a(7293);s.exports=function(u,f){var h=[][u];return!!h&&d(function(){h.call(null,f||function(){throw 1},1)})}}),3671:(function(s,c,a){var d=a(3099),u=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,v,y,b){d(v);var E=u(g),C=f(E),w=h(E.length),I=m?w-1:0,A=m?-1:1;if(y<2)for(;;){if(I in C){b=C[I],I+=A;break}if(I+=A,m?I<0:w<=I)throw TypeError("Reduce of empty array with no initial value")}for(;m?I>=0:w>I;I+=A)I in C&&(b=v(b,C[I],I,E));return b}};s.exports={left:p(!1),right:p(!0)}}),5417:(function(s,c,a){var d=a(111),u=a(3157),f=a(5112),h=f("species");s.exports=function(p,m){var g;return u(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||u(g.prototype))?g=void 0:d(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(m===0?0:m)}}),3411:(function(s,c,a){var d=a(9670),u=a(9212);s.exports=function(f,h,p,m){try{return m?h(d(p)[0],p[1]):h(p)}catch(g){throw u(f),g}}}),7072:(function(s,c,a){var d=a(5112),u=d("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[u]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var v=!1;try{var y={};y[u]=function(){return{next:function(){return{done:v=!0}}}},m(y)}catch{}return v}}),4326:(function(s){var c={}.toString;s.exports=function(a){return c.call(a).slice(8,-1)}}),648:(function(s,c,a){var d=a(1694),u=a(4326),f=a(5112),h=f("toStringTag"),p=u((function(){return arguments})())=="Arguments",m=function(g,v){try{return g[v]}catch{}};s.exports=d?u:function(g){var v,y,b;return g===void 0?"Undefined":g===null?"Null":typeof(y=m(v=Object(g),h))=="string"?y:p?u(v):(b=u(v))=="Object"&&typeof v.callee=="function"?"Arguments":b}}),9920:(function(s,c,a){var d=a(6656),u=a(3887),f=a(1236),h=a(3070);s.exports=function(p,m){for(var g=u(m),v=h.f,y=f.f,b=0;b<g.length;b++){var E=g[b];d(p,E)||v(p,E,y(m,E))}}}),8544:(function(s,c,a){var d=a(7293);s.exports=!d(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})}),4994:(function(s,c,a){var d=a(3383).IteratorPrototype,u=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};s.exports=function(g,v,y){var b=v+" Iterator";return g.prototype=u(d,{next:f(1,y)}),h(g,b,!1,!0),p[b]=m,g}}),8880:(function(s,c,a){var d=a(9781),u=a(3070),f=a(9114);s.exports=d?function(h,p,m){return u.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}}),9114:(function(s){s.exports=function(c,a){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:a}}}),6135:(function(s,c,a){var d=a(7593),u=a(3070),f=a(9114);s.exports=function(h,p,m){var g=d(p);g in h?u.f(h,g,f(0,m)):h[g]=m}}),654:(function(s,c,a){var d=a(2109),u=a(4994),f=a(9518),h=a(7674),p=a(8003),m=a(8880),g=a(1320),v=a(5112),y=a(1913),b=a(7497),E=a(3383),C=E.IteratorPrototype,w=E.BUGGY_SAFARI_ITERATORS,I=v("iterator"),A="keys",O="values",W="entries",$=function(){return this};s.exports=function(z,j,Z,K,P,N,J){u(Z,j,K);var U=function(M){if(M===P&&me)return me;if(!w&&M in ae)return ae[M];switch(M){case A:return function(){return new Z(this,M)};case O:return function(){return new Z(this,M)};case W:return function(){return new Z(this,M)}}return function(){return new Z(this)}},V=j+" Iterator",te=!1,ae=z.prototype,pe=ae[I]||ae["@@iterator"]||P&&ae[P],me=!w&&pe||U(P),ye=j=="Array"&&ae.entries||pe,Ce,Se,ve;if(ye&&(Ce=f(ye.call(new z)),C!==Object.prototype&&Ce.next&&(!y&&f(Ce)!==C&&(h?h(Ce,C):typeof Ce[I]!="function"&&m(Ce,I,$)),p(Ce,V,!0,!0),y&&(b[V]=$))),P==O&&pe&&pe.name!==O&&(te=!0,me=function(){return pe.call(this)}),(!y||J)&&ae[I]!==me&&m(ae,I,me),b[j]=me,P)if(Se={values:U(O),keys:N?me:U(A),entries:U(W)},J)for(ve in Se)(w||te||!(ve in ae))&&g(ae,ve,Se[ve]);else d({target:j,proto:!0,forced:w||te},Se);return Se}}),9781:(function(s,c,a){var d=a(7293);s.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(s,c,a){var d=a(7854),u=a(111),f=d.document,h=u(f)&&u(f.createElement);s.exports=function(p){return h?f.createElement(p):{}}}),8324:(function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),8113:(function(s,c,a){var d=a(5005);s.exports=d("navigator","userAgent")||""}),7392:(function(s,c,a){var d=a(7854),u=a(8113),f=d.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(g=m[1]))),s.exports=g&&+g}),748:(function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),2109:(function(s,c,a){var d=a(7854),u=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);s.exports=function(v,y){var b=v.target,E=v.global,C=v.stat,w,I,A,O,W,$;if(E?I=d:C?I=d[b]||p(b,{}):I=(d[b]||{}).prototype,I)for(A in y){if(W=y[A],v.noTargetGet?($=u(I,A),O=$&&$.value):O=I[A],w=g(E?A:b+(C?".":"#")+A,v.forced),!w&&O!==void 0){if(typeof W==typeof O)continue;m(W,O)}(v.sham||O&&O.sham)&&f(W,"sham",!0),h(I,A,W,v)}}}),7293:(function(s){s.exports=function(c){try{return!!c()}catch{return!0}}}),7007:(function(s,c,a){a(4916);var d=a(1320),u=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!u(function(){var C=/./;return C.exec=function(){var w=[];return w.groups={a:"7"},w},"".replace(C,"$<a>")!=="7"}),v=(function(){return"a".replace(/./,"$0")==="$0"})(),y=f("replace"),b=(function(){return/./[y]?/./[y]("a","$0")==="":!1})(),E=!u(function(){var C=/(?:)/,w=C.exec;C.exec=function(){return w.apply(this,arguments)};var I="ab".split(C);return I.length!==2||I[0]!=="a"||I[1]!=="b"});s.exports=function(C,w,I,A){var O=f(C),W=!u(function(){var P={};return P[O]=function(){return 7},""[C](P)!=7}),$=W&&!u(function(){var P=!1,N=/a/;return C==="split"&&(N={},N.constructor={},N.constructor[m]=function(){return N},N.flags="",N[O]=/./[O]),N.exec=function(){return P=!0,null},N[O](""),!P});if(!W||!$||C==="replace"&&!(g&&v&&!b)||C==="split"&&!E){var z=/./[O],j=I(O,""[C],function(P,N,J,U,V){return N.exec===h?W&&!V?{done:!0,value:z.call(N,J,U)}:{done:!0,value:P.call(J,N,U)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:b}),Z=j[0],K=j[1];d(String.prototype,C,Z),d(RegExp.prototype,O,w==2?function(P,N){return K.call(P,this,N)}:function(P){return K.call(P,this)})}A&&p(RegExp.prototype[O],"sham",!0)}}),9974:(function(s,c,a){var d=a(3099);s.exports=function(u,f,h){if(d(u),f===void 0)return u;switch(h){case 0:return function(){return u.call(f)};case 1:return function(p){return u.call(f,p)};case 2:return function(p,m){return u.call(f,p,m)};case 3:return function(p,m,g){return u.call(f,p,m,g)}}return function(){return u.apply(f,arguments)}}}),5005:(function(s,c,a){var d=a(857),u=a(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(d[h])||f(u[h]):d[h]&&d[h][p]||u[h]&&u[h][p]}}),1246:(function(s,c,a){var d=a(648),u=a(7497),f=a(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||u[d(p)]}}),8554:(function(s,c,a){var d=a(9670),u=a(1246);s.exports=function(f){var h=u(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return d(h.call(f))}}),647:(function(s,c,a){var d=a(7908),u=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,v,y,b,E){var C=v+m.length,w=y.length,I=p;return b!==void 0&&(b=d(b),I=h),f.call(E,I,function(A,O){var W;switch(O.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,v);case"'":return g.slice(C);case"<":W=b[O.slice(1,-1)];break;default:var $=+O;if($===0)return A;if($>w){var z=u($/10);return z===0?A:z<=w?y[z-1]===void 0?O.charAt(1):y[z-1]+O.charAt(1):A}W=y[$-1]}return W===void 0?"":W})}}),7854:(function(s,c,a){var d=function(u){return u&&u.Math==Math&&u};s.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof a.g=="object"&&a.g)||(function(){return this})()||Function("return this")()}),6656:(function(s){var c={}.hasOwnProperty;s.exports=function(a,d){return c.call(a,d)}}),3501:(function(s){s.exports={}}),490:(function(s,c,a){var d=a(5005);s.exports=d("document","documentElement")}),4664:(function(s,c,a){var d=a(9781),u=a(7293),f=a(317);s.exports=!d&&!u(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})}),1179:(function(s){var c=Math.abs,a=Math.pow,d=Math.floor,u=Math.log,f=Math.LN2,h=function(m,g,v){var y=new Array(v),b=v*8-g-1,E=(1<<b)-1,C=E>>1,w=g===23?a(2,-24)-a(2,-77):0,I=m<0||m===0&&1/m<0?1:0,A=0,O,W,$;for(m=c(m),m!=m||m===1/0?(W=m!=m?1:0,O=E):(O=d(u(m)/f),m*($=a(2,-O))<1&&(O--,$*=2),O+C>=1?m+=w/$:m+=w*a(2,1-C),m*$>=2&&(O++,$/=2),O+C>=E?(W=0,O=E):O+C>=1?(W=(m*$-1)*a(2,g),O=O+C):(W=m*a(2,C-1)*a(2,g),O=0));g>=8;y[A++]=W&255,W/=256,g-=8);for(O=O<<g|W,b+=g;b>0;y[A++]=O&255,O/=256,b-=8);return y[--A]|=I*128,y},p=function(m,g){var v=m.length,y=v*8-g-1,b=(1<<y)-1,E=b>>1,C=y-7,w=v-1,I=m[w--],A=I&127,O;for(I>>=7;C>0;A=A*256+m[w],w--,C-=8);for(O=A&(1<<-C)-1,A>>=-C,C+=g;C>0;O=O*256+m[w],w--,C-=8);if(A===0)A=1-E;else{if(A===b)return O?NaN:I?-1/0:1/0;O=O+a(2,g),A=A-E}return(I?-1:1)*O*a(2,A-g)};s.exports={pack:h,unpack:p}}),8361:(function(s,c,a){var d=a(7293),u=a(4326),f="".split;s.exports=d(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?f.call(h,""):Object(h)}:Object}),9587:(function(s,c,a){var d=a(111),u=a(7674);s.exports=function(f,h,p){var m,g;return u&&typeof(m=h.constructor)=="function"&&m!==p&&d(g=m.prototype)&&g!==p.prototype&&u(f,g),f}}),2788:(function(s,c,a){var d=a(5465),u=Function.toString;typeof d.inspectSource!="function"&&(d.inspectSource=function(f){return u.call(f)}),s.exports=d.inspectSource}),9909:(function(s,c,a){var d=a(8536),u=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),v=a(3501),y=u.WeakMap,b,E,C,w=function(j){return C(j)?E(j):b(j,{})},I=function(j){return function(Z){var K;if(!f(Z)||(K=E(Z)).type!==j)throw TypeError("Incompatible receiver, "+j+" required");return K}};if(d){var A=m.state||(m.state=new y),O=A.get,W=A.has,$=A.set;b=function(j,Z){return Z.facade=j,$.call(A,j,Z),Z},E=function(j){return O.call(A,j)||{}},C=function(j){return W.call(A,j)}}else{var z=g("state");v[z]=!0,b=function(j,Z){return Z.facade=j,h(j,z,Z),Z},E=function(j){return p(j,z)?j[z]:{}},C=function(j){return p(j,z)}}s.exports={set:b,get:E,has:C,enforce:w,getterFor:I}}),7659:(function(s,c,a){var d=a(5112),u=a(7497),f=d("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(u.Array===p||h[f]===p)}}),3157:(function(s,c,a){var d=a(4326);s.exports=Array.isArray||function(f){return d(f)=="Array"}}),4705:(function(s,c,a){var d=a(7293),u=/#|\.prototype\./,f=function(v,y){var b=p[h(v)];return b==g?!0:b==m?!1:typeof y=="function"?d(y):!!y},h=f.normalize=function(v){return String(v).replace(u,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";s.exports=f}),111:(function(s){s.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}}),1913:(function(s){s.exports=!1}),7850:(function(s,c,a){var d=a(111),u=a(4326),f=a(5112),h=f("match");s.exports=function(p){var m;return d(p)&&((m=p[h])!==void 0?!!m:u(p)=="RegExp")}}),9212:(function(s,c,a){var d=a(9670);s.exports=function(u){var f=u.return;if(f!==void 0)return d(f.call(u)).value}}),3383:(function(s,c,a){var d=a(7293),u=a(9518),f=a(8880),h=a(6656),p=a(5112),m=a(1913),g=p("iterator"),v=!1,y=function(){return this},b,E,C;[].keys&&(C=[].keys(),"next"in C?(E=u(u(C)),E!==Object.prototype&&(b=E)):v=!0);var w=b==null||d(function(){var I={};return b[g].call(I)!==I});w&&(b={}),(!m||w)&&!h(b,g)&&f(b,g,y),s.exports={IteratorPrototype:b,BUGGY_SAFARI_ITERATORS:v}}),7497:(function(s){s.exports={}}),133:(function(s,c,a){var d=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!d(function(){return!String(Symbol())})}),590:(function(s,c,a){var d=a(7293),u=a(5112),f=a(1913),h=u("iterator");s.exports=!d(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),m=p.searchParams,g="";return p.pathname="c%20d",m.forEach(function(v,y){m.delete("b"),g+=y+v}),f&&!p.toJSON||!m.sort||p.href!=="http://a/c%20d?a=1&c=3"||m.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!m[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})}),8536:(function(s,c,a){var d=a(7854),u=a(2788),f=d.WeakMap;s.exports=typeof f=="function"&&/native code/.test(u(f))}),1574:(function(s,c,a){var d=a(9781),u=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),v=Object.assign,y=Object.defineProperty;s.exports=!v||u(function(){if(d&&v({b:1},v(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},E={},C=Symbol(),w="abcdefghijklmnopqrst";return b[C]=7,w.split("").forEach(function(I){E[I]=I}),v({},b)[C]!=7||f(v({},E)).join("")!=w})?function(E,C){for(var w=m(E),I=arguments.length,A=1,O=h.f,W=p.f;I>A;)for(var $=g(arguments[A++]),z=O?f($).concat(O($)):f($),j=z.length,Z=0,K;j>Z;)K=z[Z++],(!d||W.call($,K))&&(w[K]=$[K]);return w}:v}),30:(function(s,c,a){var d=a(9670),u=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),v=">",y="<",b="prototype",E="script",C=g("IE_PROTO"),w=function(){},I=function(z){return y+E+v+z+y+"/"+E+v},A=function(z){z.write(I("")),z.close();var j=z.parentWindow.Object;return z=null,j},O=function(){var z=m("iframe"),j="java"+E+":",Z;return z.style.display="none",p.appendChild(z),z.src=String(j),Z=z.contentWindow.document,Z.open(),Z.write(I("document.F=Object")),Z.close(),Z.F},W,$=function(){try{W=document.domain&&new ActiveXObject("htmlfile")}catch{}$=W?A(W):O();for(var z=f.length;z--;)delete $[b][f[z]];return $()};h[C]=!0,s.exports=Object.create||function(j,Z){var K;return j!==null?(w[b]=d(j),K=new w,w[b]=null,K[C]=j):K=$(),Z===void 0?K:u(K,Z)}}),6048:(function(s,c,a){var d=a(9781),u=a(3070),f=a(9670),h=a(1956);s.exports=d?Object.defineProperties:function(m,g){f(m);for(var v=h(g),y=v.length,b=0,E;y>b;)u.f(m,E=v[b++],g[E]);return m}}),3070:(function(s,c,a){var d=a(9781),u=a(4664),f=a(9670),h=a(7593),p=Object.defineProperty;c.f=d?p:function(g,v,y){if(f(g),v=h(v,!0),f(y),u)try{return p(g,v,y)}catch{}if("get"in y||"set"in y)throw TypeError("Accessors not supported");return"value"in y&&(g[v]=y.value),g}}),1236:(function(s,c,a){var d=a(9781),u=a(5296),f=a(9114),h=a(5656),p=a(7593),m=a(6656),g=a(4664),v=Object.getOwnPropertyDescriptor;c.f=d?v:function(b,E){if(b=h(b),E=p(E,!0),g)try{return v(b,E)}catch{}if(m(b,E))return f(!u.f.call(b,E),b[E])}}),8006:(function(s,c,a){var d=a(6324),u=a(748),f=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(p){return d(p,f)}}),5181:(function(s,c){c.f=Object.getOwnPropertySymbols}),9518:(function(s,c,a){var d=a(6656),u=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),d(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}}),6324:(function(s,c,a){var d=a(6656),u=a(5656),f=a(1318).indexOf,h=a(3501);s.exports=function(p,m){var g=u(p),v=0,y=[],b;for(b in g)!d(h,b)&&d(g,b)&&y.push(b);for(;m.length>v;)d(g,b=m[v++])&&(~f(y,b)||y.push(b));return y}}),1956:(function(s,c,a){var d=a(6324),u=a(748);s.exports=Object.keys||function(h){return d(h,u)}}),5296:(function(s,c){var a={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,u=d&&!a.call({1:2},1);c.f=u?function(h){var p=d(this,h);return!!p&&p.enumerable}:a}),7674:(function(s,c,a){var d=a(9670),u=a(6077);s.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var f=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),f=h instanceof Array}catch{}return function(g,v){return d(g),u(v),f?p.call(g,v):g.__proto__=v,g}})():void 0)}),288:(function(s,c,a){var d=a(1694),u=a(648);s.exports=d?{}.toString:function(){return"[object "+u(this)+"]"}}),3887:(function(s,c,a){var d=a(5005),u=a(8006),f=a(5181),h=a(9670);s.exports=d("Reflect","ownKeys")||function(m){var g=u.f(h(m)),v=f.f;return v?g.concat(v(m)):g}}),857:(function(s,c,a){var d=a(7854);s.exports=d}),2248:(function(s,c,a){var d=a(1320);s.exports=function(u,f,h){for(var p in f)d(u,p,f[p],h);return u}}),1320:(function(s,c,a){var d=a(7854),u=a(8880),f=a(6656),h=a(3505),p=a(2788),m=a(9909),g=m.get,v=m.enforce,y=String(String).split("String");(s.exports=function(b,E,C,w){var I=w?!!w.unsafe:!1,A=w?!!w.enumerable:!1,O=w?!!w.noTargetGet:!1,W;if(typeof C=="function"&&(typeof E=="string"&&!f(C,"name")&&u(C,"name",E),W=v(C),W.source||(W.source=y.join(typeof E=="string"?E:""))),b===d){A?b[E]=C:h(E,C);return}else I?!O&&b[E]&&(A=!0):delete b[E];A?b[E]=C:u(b,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})}),7651:(function(s,c,a){var d=a(4326),u=a(2261);s.exports=function(f,h){var p=f.exec;if(typeof p=="function"){var m=p.call(f,h);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(d(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(f,h)}}),2261:(function(s,c,a){var d=a(7066),u=a(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=(function(){var b=/a/,E=/b*/g;return f.call(b,"a"),f.call(E,"a"),b.lastIndex!==0||E.lastIndex!==0})(),g=u.UNSUPPORTED_Y||u.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,y=m||v||g;y&&(p=function(E){var C=this,w,I,A,O,W=g&&C.sticky,$=d.call(C),z=C.source,j=0,Z=E;return W&&($=$.replace("y",""),$.indexOf("g")===-1&&($+="g"),Z=String(E).slice(C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&E[C.lastIndex-1]!==`
|
|
1175
|
-
`)&&(
|
|
1176
|
-
\v\f\r \u2028\u2029\uFEFF`}),8264:(function(s,c,a){var d=a(2109),u=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=u[p];d({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)}),2222:(function(s,c,a){var d=a(2109),u=a(7293),f=a(3157),h=a(111),p=a(7908),m=a(7466),g=a(6135),v=a(5417),y=a(1194),b=a(5112),E=a(7392),C=b("isConcatSpreadable"),w=9007199254740991,I="Maximum allowed index exceeded",A=E>=51||!u(function(){var z=[];return z[C]=!1,z.concat()[0]!==z}),O=y("concat"),W=function(z){if(!h(z))return!1;var j=z[C];return j!==void 0?!!j:f(z)},$=!A||!O;d({target:"Array",proto:!0,forced:$},{concat:function(j){var Z=p(this),K=v(Z,0),P=0,N,J,U,V,te;for(N=-1,U=arguments.length;N<U;N++)if(te=N===-1?Z:arguments[N],W(te)){if(V=m(te.length),P+V>w)throw TypeError(I);for(J=0;J<V;J++,P++)J in te&&g(K,P,te[J])}else{if(P>=w)throw TypeError(I);g(K,P++,te)}return K.length=P,K}})}),7327:(function(s,c,a){var d=a(2109),u=a(2092).filter,f=a(1194),h=f("filter");d({target:"Array",proto:!0,forced:!h},{filter:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})}),2772:(function(s,c,a){var d=a(2109),u=a(1318).indexOf,f=a(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");d({target:"Array",proto:!0,forced:p||!m},{indexOf:function(v){return p?h.apply(this,arguments)||0:u(this,v,arguments.length>1?arguments[1]:void 0)}})}),6992:(function(s,c,a){var d=a(5656),u=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,v=h.getterFor(m);s.exports=p(Array,"Array",function(y,b){g(this,{type:m,target:d(y),index:0,kind:b})},function(){var y=v(this),b=y.target,E=y.kind,C=y.index++;return!b||C>=b.length?(y.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:b[C],done:!1}:{value:[C,b[C]],done:!1}},"values"),f.Arguments=f.Array,u("keys"),u("values"),u("entries")}),1249:(function(s,c,a){var d=a(2109),u=a(2092).map,f=a(1194),h=f("map");d({target:"Array",proto:!0,forced:!h},{map:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})}),7042:(function(s,c,a){var d=a(2109),u=a(111),f=a(3157),h=a(1400),p=a(7466),m=a(5656),g=a(6135),v=a(5112),y=a(1194),b=y("slice"),E=v("species"),C=[].slice,w=Math.max;d({target:"Array",proto:!0,forced:!b},{slice:function(A,O){var W=m(this),$=p(W.length),z=h(A,$),j=h(O===void 0?$:O,$),Z,K,P;if(f(W)&&(Z=W.constructor,typeof Z=="function"&&(Z===Array||f(Z.prototype))?Z=void 0:u(Z)&&(Z=Z[E],Z===null&&(Z=void 0)),Z===Array||Z===void 0))return C.call(W,z,j);for(K=new(Z===void 0?Array:Z)(w(j-z,0)),P=0;z<j;z++,P++)z in W&&g(K,P,W[z]);return K.length=P,K}})}),561:(function(s,c,a){var d=a(2109),u=a(1400),f=a(9958),h=a(7466),p=a(7908),m=a(5417),g=a(6135),v=a(1194),y=v("splice"),b=Math.max,E=Math.min,C=9007199254740991,w="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!y},{splice:function(A,O){var W=p(this),$=h(W.length),z=u(A,$),j=arguments.length,Z,K,P,N,J,U;if(j===0?Z=K=0:j===1?(Z=0,K=$-z):(Z=j-2,K=E(b(f(O),0),$-z)),$+Z-K>C)throw TypeError(w);for(P=m(W,K),N=0;N<K;N++)J=z+N,J in W&&g(P,N,W[J]);if(P.length=K,Z<K){for(N=z;N<$-K;N++)J=N+K,U=N+Z,J in W?W[U]=W[J]:delete W[U];for(N=$;N>$-K+Z;N--)delete W[N-1]}else if(Z>K)for(N=$-K;N>z;N--)J=N+K-1,U=N+Z-1,J in W?W[U]=W[J]:delete W[U];for(N=0;N<Z;N++)W[N+z]=arguments[N+2];return W.length=$-K+Z,P}})}),8309:(function(s,c,a){var d=a(9781),u=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";d&&!(m in f)&&u(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})}),489:(function(s,c,a){var d=a(2109),u=a(7293),f=a(7908),h=a(9518),p=a(8544),m=u(function(){h(1)});d({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(v){return h(f(v))}})}),1539:(function(s,c,a){var d=a(1694),u=a(1320),f=a(288);d||u(Object.prototype,"toString",f,{unsafe:!0})}),4916:(function(s,c,a){var d=a(2109),u=a(2261);d({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})}),9714:(function(s,c,a){var d=a(1320),u=a(9670),f=a(7293),h=a(7066),p="toString",m=RegExp.prototype,g=m[p],v=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),y=g.name!=p;(v||y)&&d(RegExp.prototype,p,function(){var E=u(this),C=String(E.source),w=E.flags,I=String(w===void 0&&E instanceof RegExp&&!("flags"in m)?h.call(E):w);return"/"+C+"/"+I},{unsafe:!0})}),8783:(function(s,c,a){var d=a(8710).charAt,u=a(9909),f=a(654),h="String Iterator",p=u.set,m=u.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var v=m(this),y=v.string,b=v.index,E;return b>=y.length?{value:void 0,done:!0}:(E=d(y,b),v.index+=E.length,{value:E,done:!1})})}),4723:(function(s,c,a){var d=a(7007),u=a(9670),f=a(7466),h=a(4488),p=a(1530),m=a(7651);d("match",1,function(g,v,y){return[function(E){var C=h(this),w=E?.[g];return w!==void 0?w.call(E,C):new RegExp(E)[g](String(C))},function(b){var E=y(v,b,this);if(E.done)return E.value;var C=u(b),w=String(this);if(!C.global)return m(C,w);var I=C.unicode;C.lastIndex=0;for(var A=[],O=0,W;(W=m(C,w))!==null;){var $=String(W[0]);A[O]=$,$===""&&(C.lastIndex=p(w,f(C.lastIndex),I)),O++}return O===0?null:A}]})}),5306:(function(s,c,a){var d=a(7007),u=a(9670),f=a(7466),h=a(9958),p=a(4488),m=a(1530),g=a(647),v=a(7651),y=Math.max,b=Math.min,E=function(C){return C===void 0?C:String(C)};d("replace",2,function(C,w,I,A){var O=A.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,W=A.REPLACE_KEEPS_$0,$=O?"$":"$0";return[function(j,Z){var K=p(this),P=j?.[C];return P!==void 0?P.call(j,K,Z):w.call(String(K),j,Z)},function(z,j){if(!O&&W||typeof j=="string"&&j.indexOf($)===-1){var Z=I(w,z,this,j);if(Z.done)return Z.value}var K=u(z),P=String(this),N=typeof j=="function";N||(j=String(j));var J=K.global;if(J){var U=K.unicode;K.lastIndex=0}for(var V=[];;){var te=v(K,P);if(te===null||(V.push(te),!J))break;var ae=String(te[0]);ae===""&&(K.lastIndex=m(P,f(K.lastIndex),U))}for(var pe="",me=0,ye=0;ye<V.length;ye++){te=V[ye];for(var Ce=String(te[0]),Se=y(b(h(te.index),P.length),0),ve=[],M=1;M<te.length;M++)ve.push(E(te[M]));var D=te.groups;if(N){var _=[Ce].concat(ve,Se,P);D!==void 0&&_.push(D);var L=String(j.apply(void 0,_))}else L=g(Ce,P,Se,ve,D,j);Se>=me&&(pe+=P.slice(me,Se)+L,me=Se+Ce.length)}return pe+P.slice(me)}]})}),3123:(function(s,c,a){var d=a(7007),u=a(7850),f=a(9670),h=a(4488),p=a(6707),m=a(1530),g=a(7466),v=a(7651),y=a(2261),b=a(7293),E=[].push,C=Math.min,w=4294967295,I=!b(function(){return!RegExp(w,"y")});d("split",2,function(A,O,W){var $;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?$=function(z,j){var Z=String(h(this)),K=j===void 0?w:j>>>0;if(K===0)return[];if(z===void 0)return[Z];if(!u(z))return O.call(Z,z,K);for(var P=[],N=(z.ignoreCase?"i":"")+(z.multiline?"m":"")+(z.unicode?"u":"")+(z.sticky?"y":""),J=0,U=new RegExp(z.source,N+"g"),V,te,ae;(V=y.call(U,Z))&&(te=U.lastIndex,!(te>J&&(P.push(Z.slice(J,V.index)),V.length>1&&V.index<Z.length&&E.apply(P,V.slice(1)),ae=V[0].length,J=te,P.length>=K)));)U.lastIndex===V.index&&U.lastIndex++;return J===Z.length?(ae||!U.test(""))&&P.push(""):P.push(Z.slice(J)),P.length>K?P.slice(0,K):P}:"0".split(void 0,0).length?$=function(z,j){return z===void 0&&j===0?[]:O.call(this,z,j)}:$=O,[function(j,Z){var K=h(this),P=j?.[A];return P!==void 0?P.call(j,K,Z):$.call(String(K),j,Z)},function(z,j){var Z=W($,z,this,j,$!==O);if(Z.done)return Z.value;var K=f(z),P=String(this),N=p(K,RegExp),J=K.unicode,U=(K.ignoreCase?"i":"")+(K.multiline?"m":"")+(K.unicode?"u":"")+(I?"y":"g"),V=new N(I?K:"^(?:"+K.source+")",U),te=j===void 0?w:j>>>0;if(te===0)return[];if(P.length===0)return v(V,P)===null?[P]:[];for(var ae=0,pe=0,me=[];pe<P.length;){V.lastIndex=I?pe:0;var ye=v(V,I?P:P.slice(pe)),Ce;if(ye===null||(Ce=C(g(V.lastIndex+(I?0:pe)),P.length))===ae)pe=m(P,pe,J);else{if(me.push(P.slice(ae,pe)),me.length===te)return me;for(var Se=1;Se<=ye.length-1;Se++)if(me.push(ye[Se]),me.length===te)return me;pe=ae=Ce}}return me.push(P.slice(ae)),me}]},!I)}),3210:(function(s,c,a){var d=a(2109),u=a(3111).trim,f=a(6091);d({target:"String",proto:!0,forced:f("trim")},{trim:function(){return u(this)}})}),2990:(function(s,c,a){var d=a(260),u=a(1048),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("copyWithin",function(m,g){return u.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})}),8927:(function(s,c,a){var d=a(260),u=a(2092).every,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("every",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),3105:(function(s,c,a){var d=a(260),u=a(1285),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("fill",function(m){return u.apply(f(this),arguments)})}),5035:(function(s,c,a){var d=a(260),u=a(2092).filter,f=a(3074),h=d.aTypedArray,p=d.exportTypedArrayMethod;p("filter",function(g){var v=u(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,v)})}),7174:(function(s,c,a){var d=a(260),u=a(2092).findIndex,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("findIndex",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),4345:(function(s,c,a){var d=a(260),u=a(2092).find,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("find",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),2846:(function(s,c,a){var d=a(260),u=a(2092).forEach,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("forEach",function(m){u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),4731:(function(s,c,a){var d=a(260),u=a(1318).includes,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("includes",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),7209:(function(s,c,a){var d=a(260),u=a(1318).indexOf,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("indexOf",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),6319:(function(s,c,a){var d=a(7854),u=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=d.Uint8Array,g=f.values,v=f.keys,y=f.entries,b=u.aTypedArray,E=u.exportTypedArrayMethod,C=m&&m.prototype[p],w=!!C&&(C.name=="values"||C.name==null),I=function(){return g.call(b(this))};E("entries",function(){return y.call(b(this))}),E("keys",function(){return v.call(b(this))}),E("values",I,!w),E(p,I,!w)}),8867:(function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(u(this),arguments)})}),7789:(function(s,c,a){var d=a(260),u=a(6583),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("lastIndexOf",function(m){return u.apply(f(this),arguments)})}),3739:(function(s,c,a){var d=a(260),u=a(2092).map,f=a(6707),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod;m("map",function(v){return u(h(this),v,arguments.length>1?arguments[1]:void 0,function(y,b){return new(p(f(y,y.constructor)))(b)})})}),4483:(function(s,c,a){var d=a(260),u=a(3671).right,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduceRight",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})}),9368:(function(s,c,a){var d=a(260),u=a(3671).left,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduce",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})}),2056:(function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=u(m).length,v=h(g/2),y=0,b;y<v;)b=m[y],m[y++]=m[--g],m[g]=b;return m})}),3462:(function(s,c,a){var d=a(260),u=a(7466),f=a(4590),h=a(7908),p=a(7293),m=d.aTypedArray,g=d.exportTypedArrayMethod,v=p(function(){new Int8Array(1).set({})});g("set",function(b){m(this);var E=f(arguments.length>1?arguments[1]:void 0,1),C=this.length,w=h(b),I=u(w.length),A=0;if(I+E>C)throw RangeError("Wrong length");for(;A<I;)this[E+A]=w[A++]},v)}),678:(function(s,c,a){var d=a(260),u=a(6707),f=a(7293),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod,g=[].slice,v=f(function(){new Int8Array(1).slice()});m("slice",function(b,E){for(var C=g.call(h(this),b,E),w=u(this,this.constructor),I=0,A=C.length,O=new(p(w))(A);A>I;)O[I]=C[I++];return O},v)}),7462:(function(s,c,a){var d=a(260),u=a(2092).some,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("some",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),3824:(function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(u(this),m)})}),5021:(function(s,c,a){var d=a(260),u=a(7466),f=a(1400),h=a(6707),p=d.aTypedArray,m=d.exportTypedArrayMethod;m("subarray",function(v,y){var b=p(this),E=b.length,C=f(v,E);return new(h(b,b.constructor))(b.buffer,b.byteOffset+C*b.BYTES_PER_ELEMENT,u((y===void 0?E:f(y,E))-C))})}),2974:(function(s,c,a){var d=a(7854),u=a(260),f=a(7293),h=d.Int8Array,p=u.aTypedArray,m=u.exportTypedArrayMethod,g=[].toLocaleString,v=[].slice,y=!!h&&f(function(){g.call(new h(1))}),b=f(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!f(function(){h.prototype.toLocaleString.call([1,2])});m("toLocaleString",function(){return g.apply(y?v.call(p(this)):p(this),arguments)},b)}),5016:(function(s,c,a){var d=a(260).exportTypedArrayMethod,u=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;u(function(){m.call({})})&&(m=function(){return g.call(this)});var v=p.toString!=m;d("toString",m,v)}),2472:(function(s,c,a){var d=a(9843);d("Uint8",function(u){return function(h,p,m){return u(this,h,p,m)}})}),4747:(function(s,c,a){var d=a(7854),u=a(8324),f=a(8533),h=a(8880);for(var p in u){var m=d[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}}),3948:(function(s,c,a){var d=a(7854),u=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),v=f.values;for(var y in u){var b=d[y],E=b&&b.prototype;if(E){if(E[m]!==v)try{h(E,m,v)}catch{E[m]=v}if(E[g]||h(E,g,y),u[y]){for(var C in f)if(E[C]!==f[C])try{h(E,C,f[C])}catch{E[C]=f[C]}}}}}),1637:(function(s,c,a){a(6992);var d=a(2109),u=a(5005),f=a(590),h=a(1320),p=a(2248),m=a(8003),g=a(4994),v=a(9909),y=a(5787),b=a(6656),E=a(9974),C=a(648),w=a(9670),I=a(111),A=a(30),O=a(9114),W=a(8554),$=a(1246),z=a(5112),j=u("fetch"),Z=u("Headers"),K=z("iterator"),P="URLSearchParams",N=P+"Iterator",J=v.set,U=v.getterFor(P),V=v.getterFor(N),te=/\+/g,ae=Array(4),pe=function(H){return ae[H-1]||(ae[H-1]=RegExp("((?:%[\\da-f]{2}){"+H+"})","gi"))},me=function(H){try{return decodeURIComponent(H)}catch{return H}},ye=function(H){var Y=H.replace(te," "),G=4;try{return decodeURIComponent(Y)}catch{for(;G;)Y=Y.replace(pe(G--),me);return Y}},Ce=/[!'()~]|%20/g,Se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(H){return Se[H]},M=function(H){return encodeURIComponent(H).replace(Ce,ve)},D=function(H,Y){if(Y)for(var G=Y.split("&"),x=0,T,F;x<G.length;)T=G[x++],T.length&&(F=T.split("="),H.push({key:ye(F.shift()),value:ye(F.join("="))}))},_=function(H){this.entries.length=0,D(this.entries,H)},L=function(H,Y){if(H<Y)throw TypeError("Not enough arguments")},k=g(function(Y,G){J(this,{type:N,iterator:W(U(Y).entries),kind:G})},"Iterator",function(){var Y=V(this),G=Y.kind,x=Y.iterator.next(),T=x.value;return x.done||(x.value=G==="keys"?T.key:G==="values"?T.value:[T.key,T.value]),x}),S=function(){y(this,S,P);var Y=arguments.length>0?arguments[0]:void 0,G=this,x=[],T,F,Q,q,ne,se,X,re,Ae;if(J(G,{type:P,entries:x,updateURL:function(){},updateSearchParams:_}),Y!==void 0)if(I(Y))if(T=$(Y),typeof T=="function")for(F=T.call(Y),Q=F.next;!(q=Q.call(F)).done;){if(ne=W(w(q.value)),se=ne.next,(X=se.call(ne)).done||(re=se.call(ne)).done||!se.call(ne).done)throw TypeError("Expected sequence with length 2");x.push({key:X.value+"",value:re.value+""})}else for(Ae in Y)b(Y,Ae)&&x.push({key:Ae,value:Y[Ae]+""});else D(x,typeof Y=="string"?Y.charAt(0)==="?"?Y.slice(1):Y:Y+"")},R=S.prototype;p(R,{append:function(Y,G){L(arguments.length,2);var x=U(this);x.entries.push({key:Y+"",value:G+""}),x.updateURL()},delete:function(H){L(arguments.length,1);for(var Y=U(this),G=Y.entries,x=H+"",T=0;T<G.length;)G[T].key===x?G.splice(T,1):T++;Y.updateURL()},get:function(Y){L(arguments.length,1);for(var G=U(this).entries,x=Y+"",T=0;T<G.length;T++)if(G[T].key===x)return G[T].value;return null},getAll:function(Y){L(arguments.length,1);for(var G=U(this).entries,x=Y+"",T=[],F=0;F<G.length;F++)G[F].key===x&&T.push(G[F].value);return T},has:function(Y){L(arguments.length,1);for(var G=U(this).entries,x=Y+"",T=0;T<G.length;)if(G[T++].key===x)return!0;return!1},set:function(Y,G){L(arguments.length,1);for(var x=U(this),T=x.entries,F=!1,Q=Y+"",q=G+"",ne=0,se;ne<T.length;ne++)se=T[ne],se.key===Q&&(F?T.splice(ne--,1):(F=!0,se.value=q));F||T.push({key:Q,value:q}),x.updateURL()},sort:function(){var Y=U(this),G=Y.entries,x=G.slice(),T,F,Q;for(G.length=0,Q=0;Q<x.length;Q++){for(T=x[Q],F=0;F<Q;F++)if(G[F].key>T.key){G.splice(F,0,T);break}F===Q&&G.push(T)}Y.updateURL()},forEach:function(Y){for(var G=U(this).entries,x=E(Y,arguments.length>1?arguments[1]:void 0,3),T=0,F;T<G.length;)F=G[T++],x(F.value,F.key,this)},keys:function(){return new k(this,"keys")},values:function(){return new k(this,"values")},entries:function(){return new k(this,"entries")}},{enumerable:!0}),h(R,K,R.entries),h(R,"toString",function(){for(var Y=U(this).entries,G=[],x=0,T;x<Y.length;)T=Y[x++],G.push(M(T.key)+"="+M(T.value));return G.join("&")},{enumerable:!0}),m(S,P),d({global:!0,forced:!f},{URLSearchParams:S}),!f&&typeof j=="function"&&typeof Z=="function"&&d({global:!0,enumerable:!0,forced:!0},{fetch:function(Y){var G=[Y],x,T,F;return arguments.length>1&&(x=arguments[1],I(x)&&(T=x.body,C(T)===P&&(F=x.headers?new Z(x.headers):new Z,F.has("content-type")||F.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),x=A(x,{body:O(0,String(T)),headers:O(0,F)}))),G.push(x)),j.apply(this,G)}}),s.exports={URLSearchParams:S,getState:U}}),285:(function(s,c,a){a(8783);var d=a(2109),u=a(9781),f=a(590),h=a(7854),p=a(6048),m=a(1320),g=a(5787),v=a(6656),y=a(1574),b=a(8457),E=a(8710).codeAt,C=a(3197),w=a(8003),I=a(1637),A=a(9909),O=h.URL,W=I.URLSearchParams,$=I.getState,z=A.set,j=A.getterFor("URL"),Z=Math.floor,K=Math.pow,P="Invalid authority",N="Invalid scheme",J="Invalid host",U="Invalid port",V=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,ae=/\d/,pe=/^(0x|0X)/,me=/^[0-7]+$/,ye=/^\d+$/,Ce=/^[\dA-Fa-f]+$/,Se=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\t\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\t\u000A\u000D]/g,_,L=function(B,ie){var oe,le,fe;if(ie.charAt(0)=="["){if(ie.charAt(ie.length-1)!="]"||(oe=S(ie.slice(1,-1)),!oe))return J;B.host=oe}else if(q(B)){if(ie=C(ie),Se.test(ie)||(oe=k(ie),oe===null))return J;B.host=oe}else{if(ve.test(ie))return J;for(oe="",le=b(ie),fe=0;fe<le.length;fe++)oe+=F(le[fe],Y);B.host=oe}},k=function(B){var ie=B.split("."),oe,le,fe,Me,ke,Ke,ot;if(ie.length&&ie[ie.length-1]==""&&ie.pop(),oe=ie.length,oe>4)return B;for(le=[],fe=0;fe<oe;fe++){if(Me=ie[fe],Me=="")return B;if(ke=10,Me.length>1&&Me.charAt(0)=="0"&&(ke=pe.test(Me)?16:8,Me=Me.slice(ke==8?1:2)),Me==="")Ke=0;else{if(!(ke==10?ye:ke==8?me:Ce).test(Me))return B;Ke=parseInt(Me,ke)}le.push(Ke)}for(fe=0;fe<oe;fe++)if(Ke=le[fe],fe==oe-1){if(Ke>=K(256,5-oe))return null}else if(Ke>255)return null;for(ot=le.pop(),fe=0;fe<le.length;fe++)ot+=le[fe]*K(256,3-fe);return ot},S=function(B){var ie=[0,0,0,0,0,0,0,0],oe=0,le=null,fe=0,Me,ke,Ke,ot,pt,gn,ue,kt=function(){return B.charAt(fe)};if(kt()==":"){if(B.charAt(1)!=":")return;fe+=2,oe++,le=oe}for(;kt();){if(oe==8)return;if(kt()==":"){if(le!==null)return;fe++,oe++,le=oe;continue}for(Me=ke=0;ke<4&&Ce.test(kt());)Me=Me*16+parseInt(kt(),16),fe++,ke++;if(kt()=="."){if(ke==0||(fe-=ke,oe>6))return;for(Ke=0;kt();){if(ot=null,Ke>0)if(kt()=="."&&Ke<4)fe++;else return;if(!ae.test(kt()))return;for(;ae.test(kt());){if(pt=parseInt(kt(),10),ot===null)ot=pt;else{if(ot==0)return;ot=ot*10+pt}if(ot>255)return;fe++}ie[oe]=ie[oe]*256+ot,Ke++,(Ke==2||Ke==4)&&oe++}if(Ke!=4)return;break}else if(kt()==":"){if(fe++,!kt())return}else if(kt())return;ie[oe++]=Me}if(le!==null)for(gn=oe-le,oe=7;oe!=0&&gn>0;)ue=ie[oe],ie[oe--]=ie[le+gn-1],ie[le+--gn]=ue;else if(oe!=8)return;return ie},R=function(B){for(var ie=null,oe=1,le=null,fe=0,Me=0;Me<8;Me++)B[Me]!==0?(fe>oe&&(ie=le,oe=fe),le=null,fe=0):(le===null&&(le=Me),++fe);return fe>oe&&(ie=le,oe=fe),ie},H=function(B){var ie,oe,le,fe;if(typeof B=="number"){for(ie=[],oe=0;oe<4;oe++)ie.unshift(B%256),B=Z(B/256);return ie.join(".")}else if(typeof B=="object"){for(ie="",le=R(B),oe=0;oe<8;oe++)fe&&B[oe]===0||(fe&&(fe=!1),le===oe?(ie+=oe?":":"::",fe=!0):(ie+=B[oe].toString(16),oe<7&&(ie+=":")));return"["+ie+"]"}return B},Y={},G=y({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),x=y({},G,{"#":1,"?":1,"{":1,"}":1}),T=y({},x,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),F=function(B,ie){var oe=E(B,0);return oe>32&&oe<127&&!v(ie,B)?B:encodeURIComponent(B)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},q=function(B){return v(Q,B.scheme)},ne=function(B){return B.username!=""||B.password!=""},se=function(B){return!B.host||B.cannotBeABaseURL||B.scheme=="file"},X=function(B,ie){var oe;return B.length==2&&V.test(B.charAt(0))&&((oe=B.charAt(1))==":"||!ie&&oe=="|")},re=function(B){var ie;return B.length>1&&X(B.slice(0,2))&&(B.length==2||(ie=B.charAt(2))==="/"||ie==="\\"||ie==="?"||ie==="#")},Ae=function(B){var ie=B.path,oe=ie.length;oe&&(B.scheme!="file"||oe!=1||!X(ie[0],!0))&&ie.pop()},Ne=function(B){return B==="."||B.toLowerCase()==="%2e"},Oe=function(B){return B=B.toLowerCase(),B===".."||B==="%2e."||B===".%2e"||B==="%2e%2e"},nt={},mt={},rt={},Zr={},Tn={},qe={},$e={},ht={},tn={},Bo={},Jr={},Xr={},pn={},ur={},xi={},Ch={},Ti={},Wn={},y3={},Ro={},fr={},Kn=function(B,ie,oe,le){var fe=oe||nt,Me=0,ke="",Ke=!1,ot=!1,pt=!1,gn,ue,kt,hr;for(oe||(B.scheme="",B.username="",B.password="",B.host=null,B.port=null,B.path=[],B.query=null,B.fragment=null,B.cannotBeABaseURL=!1,ie=ie.replace(M,"")),ie=ie.replace(D,""),gn=b(ie);Me<=gn.length;){switch(ue=gn[Me],fe){case nt:if(ue&&V.test(ue))ke+=ue.toLowerCase(),fe=mt;else{if(oe)return N;fe=rt;continue}break;case mt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))ke+=ue.toLowerCase();else if(ue==":"){if(oe&&(q(B)!=v(Q,ke)||ke=="file"&&(ne(B)||B.port!==null)||B.scheme=="file"&&!B.host))return;if(B.scheme=ke,oe){q(B)&&Q[B.scheme]==B.port&&(B.port=null);return}ke="",B.scheme=="file"?fe=ur:q(B)&&le&&le.scheme==B.scheme?fe=Zr:q(B)?fe=ht:gn[Me+1]=="/"?(fe=Tn,Me++):(B.cannotBeABaseURL=!0,B.path.push(""),fe=y3)}else{if(oe)return N;ke="",fe=rt,Me=0;continue}break;case rt:if(!le||le.cannotBeABaseURL&&ue!="#")return N;if(le.cannotBeABaseURL&&ue=="#"){B.scheme=le.scheme,B.path=le.path.slice(),B.query=le.query,B.fragment="",B.cannotBeABaseURL=!0,fe=fr;break}fe=le.scheme=="file"?ur:qe;continue;case Zr:if(ue=="/"&&gn[Me+1]=="/")fe=tn,Me++;else{fe=qe;continue}break;case Tn:if(ue=="/"){fe=Bo;break}else{fe=Wn;continue}case qe:if(B.scheme=le.scheme,ue==_)B.username=le.username,B.password=le.password,B.host=le.host,B.port=le.port,B.path=le.path.slice(),B.query=le.query;else if(ue=="/"||ue=="\\"&&q(B))fe=$e;else if(ue=="?")B.username=le.username,B.password=le.password,B.host=le.host,B.port=le.port,B.path=le.path.slice(),B.query="",fe=Ro;else if(ue=="#")B.username=le.username,B.password=le.password,B.host=le.host,B.port=le.port,B.path=le.path.slice(),B.query=le.query,B.fragment="",fe=fr;else{B.username=le.username,B.password=le.password,B.host=le.host,B.port=le.port,B.path=le.path.slice(),B.path.pop(),fe=Wn;continue}break;case $e:if(q(B)&&(ue=="/"||ue=="\\"))fe=tn;else if(ue=="/")fe=Bo;else{B.username=le.username,B.password=le.password,B.host=le.host,B.port=le.port,fe=Wn;continue}break;case ht:if(fe=tn,ue!="/"||ke.charAt(Me+1)!="/")continue;Me++;break;case tn:if(ue!="/"&&ue!="\\"){fe=Bo;continue}break;case Bo:if(ue=="@"){Ke&&(ke="%40"+ke),Ke=!0,kt=b(ke);for(var kh=0;kh<kt.length;kh++){var M3=kt[kh];if(M3==":"&&!pt){pt=!0;continue}var L3=F(M3,T);pt?B.password+=L3:B.username+=L3}ke=""}else if(ue==_||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&q(B)){if(Ke&&ke=="")return P;Me-=b(ke).length+1,ke="",fe=Jr}else ke+=ue;break;case Jr:case Xr:if(oe&&B.scheme=="file"){fe=Ch;continue}else if(ue==":"&&!ot){if(ke=="")return J;if(hr=L(B,ke),hr)return hr;if(ke="",fe=pn,oe==Xr)return}else if(ue==_||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&q(B)){if(q(B)&&ke=="")return J;if(oe&&ke==""&&(ne(B)||B.port!==null))return;if(hr=L(B,ke),hr)return hr;if(ke="",fe=Ti,oe)return;continue}else ue=="["?ot=!0:ue=="]"&&(ot=!1),ke+=ue;break;case pn:if(ae.test(ue))ke+=ue;else if(ue==_||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&q(B)||oe){if(ke!=""){var wh=parseInt(ke,10);if(wh>65535)return U;B.port=q(B)&&wh===Q[B.scheme]?null:wh,ke=""}if(oe)return;fe=Ti;continue}else return U;break;case ur:if(B.scheme="file",ue=="/"||ue=="\\")fe=xi;else if(le&&le.scheme=="file")if(ue==_)B.host=le.host,B.path=le.path.slice(),B.query=le.query;else if(ue=="?")B.host=le.host,B.path=le.path.slice(),B.query="",fe=Ro;else if(ue=="#")B.host=le.host,B.path=le.path.slice(),B.query=le.query,B.fragment="",fe=fr;else{re(gn.slice(Me).join(""))||(B.host=le.host,B.path=le.path.slice(),Ae(B)),fe=Wn;continue}else{fe=Wn;continue}break;case xi:if(ue=="/"||ue=="\\"){fe=Ch;break}le&&le.scheme=="file"&&!re(gn.slice(Me).join(""))&&(X(le.path[0],!0)?B.path.push(le.path[0]):B.host=le.host),fe=Wn;continue;case Ch:if(ue==_||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!oe&&X(ke))fe=Wn;else if(ke==""){if(B.host="",oe)return;fe=Ti}else{if(hr=L(B,ke),hr)return hr;if(B.host=="localhost"&&(B.host=""),oe)return;ke="",fe=Ti}continue}else ke+=ue;break;case Ti:if(q(B)){if(fe=Wn,ue!="/"&&ue!="\\")continue}else if(!oe&&ue=="?")B.query="",fe=Ro;else if(!oe&&ue=="#")B.fragment="",fe=fr;else if(ue!=_&&(fe=Wn,ue!="/"))continue;break;case Wn:if(ue==_||ue=="/"||ue=="\\"&&q(B)||!oe&&(ue=="?"||ue=="#")){if(Oe(ke)?(Ae(B),ue!="/"&&!(ue=="\\"&&q(B))&&B.path.push("")):Ne(ke)?ue!="/"&&!(ue=="\\"&&q(B))&&B.path.push(""):(B.scheme=="file"&&!B.path.length&&X(ke)&&(B.host&&(B.host=""),ke=ke.charAt(0)+":"),B.path.push(ke)),ke="",B.scheme=="file"&&(ue==_||ue=="?"||ue=="#"))for(;B.path.length>1&&B.path[0]==="";)B.path.shift();ue=="?"?(B.query="",fe=Ro):ue=="#"&&(B.fragment="",fe=fr)}else ke+=F(ue,x);break;case y3:ue=="?"?(B.query="",fe=Ro):ue=="#"?(B.fragment="",fe=fr):ue!=_&&(B.path[0]+=F(ue,Y));break;case Ro:!oe&&ue=="#"?(B.fragment="",fe=fr):ue!=_&&(ue=="'"&&q(B)?B.query+="%27":ue=="#"?B.query+="%23":B.query+=F(ue,Y));break;case fr:ue!=_&&(B.fragment+=F(ue,G));break}Me++}},$o=function(ie){var oe=g(this,$o,"URL"),le=arguments.length>1?arguments[1]:void 0,fe=String(ie),Me=z(oe,{type:"URL"}),ke,Ke;if(le!==void 0){if(le instanceof $o)ke=j(le);else if(Ke=Kn(ke={},String(le)),Ke)throw TypeError(Ke)}if(Ke=Kn(Me,fe,null,ke),Ke)throw TypeError(Ke);var ot=Me.searchParams=new W,pt=$(ot);pt.updateSearchParams(Me.query),pt.updateURL=function(){Me.query=String(ot)||null},u||(oe.href=wc.call(oe),oe.origin=b3.call(oe),oe.protocol=C3.call(oe),oe.username=E3.call(oe),oe.password=k3.call(oe),oe.host=w3.call(oe),oe.hostname=S3.call(oe),oe.port=A3.call(oe),oe.pathname=x3.call(oe),oe.search=T3.call(oe),oe.searchParams=I3.call(oe),oe.hash=_3.call(oe))},Eh=$o.prototype,wc=function(){var B=j(this),ie=B.scheme,oe=B.username,le=B.password,fe=B.host,Me=B.port,ke=B.path,Ke=B.query,ot=B.fragment,pt=ie+":";return fe!==null?(pt+="//",ne(B)&&(pt+=oe+(le?":"+le:"")+"@"),pt+=H(fe),Me!==null&&(pt+=":"+Me)):ie=="file"&&(pt+="//"),pt+=B.cannotBeABaseURL?ke[0]:ke.length?"/"+ke.join("/"):"",Ke!==null&&(pt+="?"+Ke),ot!==null&&(pt+="#"+ot),pt},b3=function(){var B=j(this),ie=B.scheme,oe=B.port;if(ie=="blob")try{return new URL(ie.path[0]).origin}catch{return"null"}return ie=="file"||!q(B)?"null":ie+"://"+H(B.host)+(oe!==null?":"+oe:"")},C3=function(){return j(this).scheme+":"},E3=function(){return j(this).username},k3=function(){return j(this).password},w3=function(){var B=j(this),ie=B.host,oe=B.port;return ie===null?"":oe===null?H(ie):H(ie)+":"+oe},S3=function(){var B=j(this).host;return B===null?"":H(B)},A3=function(){var B=j(this).port;return B===null?"":String(B)},x3=function(){var B=j(this),ie=B.path;return B.cannotBeABaseURL?ie[0]:ie.length?"/"+ie.join("/"):""},T3=function(){var B=j(this).query;return B?"?"+B:""},I3=function(){return j(this).searchParams},_3=function(){var B=j(this).fragment;return B?"#"+B:""},mn=function(B,ie){return{get:B,set:ie,configurable:!0,enumerable:!0}};if(u&&p(Eh,{href:mn(wc,function(B){var ie=j(this),oe=String(B),le=Kn(ie,oe);if(le)throw TypeError(le);$(ie.searchParams).updateSearchParams(ie.query)}),origin:mn(b3),protocol:mn(C3,function(B){var ie=j(this);Kn(ie,String(B)+":",nt)}),username:mn(E3,function(B){var ie=j(this),oe=b(String(B));if(!se(ie)){ie.username="";for(var le=0;le<oe.length;le++)ie.username+=F(oe[le],T)}}),password:mn(k3,function(B){var ie=j(this),oe=b(String(B));if(!se(ie)){ie.password="";for(var le=0;le<oe.length;le++)ie.password+=F(oe[le],T)}}),host:mn(w3,function(B){var ie=j(this);ie.cannotBeABaseURL||Kn(ie,String(B),Jr)}),hostname:mn(S3,function(B){var ie=j(this);ie.cannotBeABaseURL||Kn(ie,String(B),Xr)}),port:mn(A3,function(B){var ie=j(this);se(ie)||(B=String(B),B==""?ie.port=null:Kn(ie,B,pn))}),pathname:mn(x3,function(B){var ie=j(this);ie.cannotBeABaseURL||(ie.path=[],Kn(ie,B+"",Ti))}),search:mn(T3,function(B){var ie=j(this);B=String(B),B==""?ie.query=null:(B.charAt(0)=="?"&&(B=B.slice(1)),ie.query="",Kn(ie,B,Ro)),$(ie.searchParams).updateSearchParams(ie.query)}),searchParams:mn(I3),hash:mn(_3,function(B){var ie=j(this);if(B=String(B),B==""){ie.fragment=null;return}B.charAt(0)=="#"&&(B=B.slice(1)),ie.fragment="",Kn(ie,B,fr)})}),m(Eh,"toJSON",function(){return wc.call(this)},{enumerable:!0}),m(Eh,"toString",function(){return wc.call(this)},{enumerable:!0}),O){var N3=O.createObjectURL,O3=O.revokeObjectURL;N3&&m($o,"createObjectURL",function(ie){return N3.apply(O,arguments)}),O3&&m($o,"revokeObjectURL",function(ie){return O3.apply(O,arguments)})}w($o,"URL"),d({global:!0,forced:!f,sham:!u},{URL:$o})})},r={};function o(s){if(r[s])return r[s].exports;var c=r[s]={exports:{}};return n[s](c,c.exports,o),c.exports}(function(){o.d=function(s,c){for(var a in c)o.o(c,a)&&!o.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:c[a]})}})(),(function(){o.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)}})(),(function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}})();var i={};return(function(){o.r(i),o.d(i,{Dropzone:function(){return U},default:function(){return ve}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function s(M,D){var _;if(typeof Symbol>"u"||M[Symbol.iterator]==null){if(Array.isArray(M)||(_=c(M))||M&&typeof M.length=="number"){_&&(M=_);var L=0,k=function(){};return{s:k,n:function(){return L>=M.length?{done:!0}:{done:!1,value:M[L++]}},e:function(G){throw G},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1177
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,R=!1,
|
|
1178
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,R=!1,
|
|
1179
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,R=!1,H;return{s:function(){_=M[Symbol.iterator]()},n:function(){var G=_.next();return S=G.done,G},e:function(G){R=!0,H=G},f:function(){try{!S&&_.return!=null&&_.return()}finally{if(R)throw H}}}}function I(M,D){if(M){if(typeof M=="string")return A(M,D);var _=Object.prototype.toString.call(M).slice(8,-1);if(_==="Object"&&M.constructor&&(_=M.constructor.name),_==="Map"||_==="Set")return Array.from(M);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return A(M,D)}}function A(M,D){(D==null||D>M.length)&&(D=M.length);for(var _=0,L=new Array(D);_<D;_++)L[_]=M[_];return L}function O(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function W(M,D){for(var _=0;_<D.length;_++){var L=D[_];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(M,L.key,L)}}function $(M,D,_){return D&&W(M.prototype,D),_&&W(M,_),M}function z(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&j(M,D)}function j(M,D){return j=Object.setPrototypeOf||function(L,k){return L.__proto__=k,L},j(M,D)}function Z(M){var D=N();return function(){var L=J(M),k;if(D){var S=J(this).constructor;k=Reflect.construct(L,arguments,S)}else k=L.apply(this,arguments);return K(this,k)}}function K(M,D){return D&&(C(D)==="object"||typeof D=="function")?D:P(M)}function P(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function N(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function J(M){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},J(M)}var U=(function(M){z(_,M);var D=Z(_);function _(L,k){var S;O(this,_),S=D.call(this);var R,H;if(S.element=L,S.version=_.version,S.clickableElements=[],S.listeners=[],S.files=[],typeof S.element=="string"&&(S.element=document.querySelector(S.element)),!S.element||S.element.nodeType==null)throw new Error("Invalid dropzone element.");if(S.element.dropzone)throw new Error("Dropzone already attached.");_.instances.push(P(S)),S.element.dropzone=P(S);var Y=(H=_.optionsForElement(S.element))!=null?H:{};if(S.options=_.extend({},E,Y,k??{}),S.options.previewTemplate=S.options.previewTemplate.replace(/\n*/g,""),S.options.forceFallback||!_.isBrowserSupported())return K(S,S.options.fallback.call(P(S)));if(S.options.url==null&&(S.options.url=S.element.getAttribute("action")),!S.options.url)throw new Error("No URL provided.");if(S.options.acceptedFiles&&S.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(S.options.uploadMultiple&&S.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return S.options.acceptedMimeTypes&&(S.options.acceptedFiles=S.options.acceptedMimeTypes,delete S.options.acceptedMimeTypes),S.options.renameFilename!=null&&(S.options.renameFile=function(G){return S.options.renameFilename.call(P(S),G.name,G)}),typeof S.options.method=="string"&&(S.options.method=S.options.method.toUpperCase()),(R=S.getExistingFallback())&&R.parentNode&&R.parentNode.removeChild(R),S.options.previewsContainer!==!1&&(S.options.previewsContainer?S.previewsContainer=_.getElement(S.options.previewsContainer,"previewsContainer"):S.previewsContainer=S.element),S.options.clickable&&(S.options.clickable===!0?S.clickableElements=[S.element]:S.clickableElements=_.getElements(S.options.clickable,"clickable")),S.init(),S}return $(_,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(k){return k.accepted}).map(function(k){return k})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(k){return!k.accepted}).map(function(k){return k})}},{key:"getFilesWithStatus",value:function(k){return this.files.filter(function(S){return S.status===k}).map(function(S){return S})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(_.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(_.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(_.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(k){return k.status===_.UPLOADING||k.status===_.QUEUED}).map(function(k){return k})}},{key:"init",value:function(){var k=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(_.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var S=function T(){k.hiddenFileInput&&k.hiddenFileInput.parentNode.removeChild(k.hiddenFileInput),k.hiddenFileInput=document.createElement("input"),k.hiddenFileInput.setAttribute("type","file"),(k.options.maxFiles===null||k.options.maxFiles>1)&&k.hiddenFileInput.setAttribute("multiple","multiple"),k.hiddenFileInput.className="dz-hidden-input",k.options.acceptedFiles!==null&&k.hiddenFileInput.setAttribute("accept",k.options.acceptedFiles),k.options.capture!==null&&k.hiddenFileInput.setAttribute("capture",k.options.capture),k.hiddenFileInput.setAttribute("tabindex","-1"),k.hiddenFileInput.style.visibility="hidden",k.hiddenFileInput.style.position="absolute",k.hiddenFileInput.style.top="0",k.hiddenFileInput.style.left="0",k.hiddenFileInput.style.height="0",k.hiddenFileInput.style.width="0",_.getElement(k.options.hiddenInputContainer,"hiddenInputContainer").appendChild(k.hiddenFileInput),k.hiddenFileInput.addEventListener("change",function(){var F=k.hiddenFileInput.files;if(F.length){var Q=w(F),q;try{for(Q.s();!(q=Q.n()).done;){var ne=q.value;k.addFile(ne)}}catch(se){Q.e(se)}finally{Q.f()}}k.emit("addedfiles",F),T()})};S()}this.URL=window.URL!==null?window.URL:window.webkitURL;var R=w(this.events),H;try{for(R.s();!(H=R.n()).done;){var Y=H.value;this.on(Y,this.options[Y])}}catch(T){R.e(T)}finally{R.f()}this.on("uploadprogress",function(){return k.updateTotalUploadProgress()}),this.on("removedfile",function(){return k.updateTotalUploadProgress()}),this.on("canceled",function(T){return k.emit("complete",T)}),this.on("complete",function(T){if(k.getAddedFiles().length===0&&k.getUploadingFiles().length===0&&k.getQueuedFiles().length===0)return setTimeout(function(){return k.emit("queuecomplete")},0)});var G=function(F){if(F.dataTransfer.types){for(var Q=0;Q<F.dataTransfer.types.length;Q++)if(F.dataTransfer.types[Q]==="Files")return!0}return!1},x=function(F){if(G(F))return F.stopPropagation(),F.preventDefault?F.preventDefault():F.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(F){return k.emit("dragstart",F)},dragenter:function(F){return x(F),k.emit("dragenter",F)},dragover:function(F){var Q;try{Q=F.dataTransfer.effectAllowed}catch{}return F.dataTransfer.dropEffect=Q==="move"||Q==="linkMove"?"move":"copy",x(F),k.emit("dragover",F)},dragleave:function(F){return k.emit("dragleave",F)},drop:function(F){return x(F),k.drop(F)},dragend:function(F){return k.emit("dragend",F)}}}],this.clickableElements.forEach(function(T){return k.listeners.push({element:T,events:{click:function(Q){return(T!==k.element||Q.target===k.element||_.elementInside(Q.target,k.element.querySelector(".dz-message")))&&k.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,_.instances.splice(_.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var k,S=0,R=0,H=this.getActiveFiles();if(H.length){var Y=w(this.getActiveFiles()),G;try{for(Y.s();!(G=Y.n()).done;){var x=G.value;S+=x.upload.bytesSent,R+=x.upload.total}}catch(T){Y.e(T)}finally{Y.f()}k=100*S/R}else k=100;return this.emit("totaluploadprogress",k,R,S)}},{key:"_getParamName",value:function(k){return typeof this.options.paramName=="function"?this.options.paramName(k):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(k,"]"):"")}},{key:"_renameFile",value:function(k){return typeof this.options.renameFile!="function"?k.name:this.options.renameFile(k)}},{key:"getFallbackForm",value:function(){var k,S;if(k=this.getExistingFallback())return k;var R='<div class="dz-fallback">';this.options.dictFallbackText&&(R+="<p>".concat(this.options.dictFallbackText,"</p>")),R+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var H=_.createElement(R);return this.element.tagName!=="FORM"?(S=_.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),S.appendChild(H)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),S??H}},{key:"getExistingFallback",value:function(){for(var k=function(x){var T=w(x),F;try{for(T.s();!(F=T.n()).done;){var Q=F.value;if(/(^| )fallback($| )/.test(Q.className))return Q}}catch(q){T.e(q)}finally{T.f()}},S=0,R=["div","form"];S<R.length;S++){var H=R[S],Y;if(Y=k(this.element.getElementsByTagName(H)))return Y}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(k){return(function(){var S=[];for(var R in k.events){var H=k.events[R];S.push(k.element.addEventListener(R,H,!1))}return S})()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(k){return(function(){var S=[];for(var R in k.events){var H=k.events[R];S.push(k.element.removeEventListener(R,H,!1))}return S})()})}},{key:"disable",value:function(){var k=this;return this.clickableElements.forEach(function(S){return S.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(S){return k.cancelUpload(S)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(k){return k.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(k){var S=0,R="b";if(k>0){for(var H=["tb","gb","mb","kb","b"],Y=0;Y<H.length;Y++){var G=H[Y],x=Math.pow(this.options.filesizeBase,4-Y)/10;if(k>=x){S=k/Math.pow(this.options.filesizeBase,4-Y),R=G;break}}S=Math.round(10*S)/10}return"<strong>".concat(S,"</strong> ").concat(this.options.dictFileSizeUnits[R])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(k){if(k.dataTransfer){this.emit("drop",k);for(var S=[],R=0;R<k.dataTransfer.files.length;R++)S[R]=k.dataTransfer.files[R];if(S.length){var H=k.dataTransfer.items;H&&H.length&&H[0].webkitGetAsEntry!=null?this._addFilesFromItems(H):this.handleFiles(S)}this.emit("addedfiles",S)}}},{key:"paste",value:function(k){if(Ce(k?.clipboardData,function(R){return R.items})!=null){this.emit("paste",k);var S=k.clipboardData.items;if(S.length)return this._addFilesFromItems(S)}}},{key:"handleFiles",value:function(k){var S=w(k),R;try{for(S.s();!(R=S.n()).done;){var H=R.value;this.addFile(H)}}catch(Y){S.e(Y)}finally{S.f()}}},{key:"_addFilesFromItems",value:function(k){var S=this;return(function(){var R=[],H=w(k),Y;try{for(H.s();!(Y=H.n()).done;){var G=Y.value,x;G.webkitGetAsEntry!=null&&(x=G.webkitGetAsEntry())?x.isFile?R.push(S.addFile(G.getAsFile())):x.isDirectory?R.push(S._addFilesFromDirectory(x,x.name)):R.push(void 0):G.getAsFile!=null&&(G.kind==null||G.kind==="file")?R.push(S.addFile(G.getAsFile())):R.push(void 0)}}catch(T){H.e(T)}finally{H.f()}return R})()}},{key:"_addFilesFromDirectory",value:function(k,S){var R=this,H=k.createReader(),Y=function(T){return Se(console,"log",function(F){return F.log(T)})},G=function x(){return H.readEntries(function(T){if(T.length>0){var F=w(T),Q;try{for(F.s();!(Q=F.n()).done;){var q=Q.value;q.isFile?q.file(function(ne){if(!(R.options.ignoreHiddenFiles&&ne.name.substring(0,1)==="."))return ne.fullPath="".concat(S,"/").concat(ne.name),R.addFile(ne)}):q.isDirectory&&R._addFilesFromDirectory(q,"".concat(S,"/").concat(q.name))}}catch(ne){F.e(ne)}finally{F.f()}x()}return null},Y)};return G()}},{key:"accept",value:function(k,S){this.options.maxFilesize&&k.size>this.options.maxFilesize*1024*1024?S(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(k.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):_.isValidFile(k,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(S(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",k)):this.options.accept.call(this,k,S):S(this.options.dictInvalidFileType)}},{key:"addFile",value:function(k){var S=this;k.upload={uuid:_.uuidv4(),progress:0,total:k.size,bytesSent:0,filename:this._renameFile(k)},this.files.push(k),k.status=_.ADDED,this.emit("addedfile",k),this._enqueueThumbnail(k),this.accept(k,function(R){R?(k.accepted=!1,S._errorProcessing([k],R)):(k.accepted=!0,S.options.autoQueue&&S.enqueueFile(k)),S._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(k){var S=w(k),R;try{for(S.s();!(R=S.n()).done;){var H=R.value;this.enqueueFile(H)}}catch(Y){S.e(Y)}finally{S.f()}return null}},{key:"enqueueFile",value:function(k){var S=this;if(k.status===_.ADDED&&k.accepted===!0){if(k.status=_.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return S.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(k){var S=this;if(this.options.createImageThumbnails&&k.type.match(/image.*/)&&k.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(k),setTimeout(function(){return S._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var k=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var S=this._thumbnailQueue.shift();return this.createThumbnail(S,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(R){return k.emit("thumbnail",S,R),k._processingThumbnail=!1,k._processThumbnailQueue()})}}},{key:"removeFile",value:function(k){if(k.status===_.UPLOADING&&this.cancelUpload(k),this.files=V(this.files,k),this.emit("removedfile",k),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(k){k==null&&(k=!1);var S=w(this.files.slice()),R;try{for(S.s();!(R=S.n()).done;){var H=R.value;(H.status!==_.UPLOADING||k)&&this.removeFile(H)}}catch(Y){S.e(Y)}finally{S.f()}return null}},{key:"resizeImage",value:function(k,S,R,H,Y){var G=this;return this.createThumbnail(k,S,R,H,!0,function(x,T){if(T==null)return Y(k);var F=G.options.resizeMimeType;F==null&&(F=k.type);var Q=T.toDataURL(F,G.options.resizeQuality);return(F==="image/jpeg"||F==="image/jpg")&&(Q=me.restore(k.dataURL,Q)),Y(_.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(k,S,R,H,Y,G){var x=this,T=new FileReader;T.onload=function(){if(k.dataURL=T.result,k.type==="image/svg+xml"){G?.(T.result);return}x.createThumbnailFromUrl(k,S,R,H,Y,G)},T.readAsDataURL(k)}},{key:"displayExistingFile",value:function(k,S,R,H){var Y=this,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",k),this.emit("complete",k),!G)this.emit("thumbnail",k,S),R&&R();else{var x=function(F){Y.emit("thumbnail",k,F),R&&R()};k.dataURL=S,this.createThumbnailFromUrl(k,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,x,H)}}},{key:"createThumbnailFromUrl",value:function(k,S,R,H,Y,G,x){var T=this,F=document.createElement("img");return x&&(F.crossOrigin=x),Y=getComputedStyle(document.body).imageOrientation=="from-image"?!1:Y,F.onload=function(){var Q=function(ne){return ne(1)};return typeof EXIF<"u"&&EXIF!==null&&Y&&(Q=function(ne){return EXIF.getData(F,function(){return ne(EXIF.getTag(this,"Orientation"))})}),Q(function(q){k.width=F.width,k.height=F.height;var ne=T.options.resize.call(T,k,S,R,H),se=document.createElement("canvas"),X=se.getContext("2d");switch(se.width=ne.trgWidth,se.height=ne.trgHeight,q>4&&(se.width=ne.trgHeight,se.height=ne.trgWidth),q){case 2:X.translate(se.width,0),X.scale(-1,1);break;case 3:X.translate(se.width,se.height),X.rotate(Math.PI);break;case 4:X.translate(0,se.height),X.scale(1,-1);break;case 5:X.rotate(.5*Math.PI),X.scale(1,-1);break;case 6:X.rotate(.5*Math.PI),X.translate(0,-se.width);break;case 7:X.rotate(.5*Math.PI),X.translate(se.height,-se.width),X.scale(-1,1);break;case 8:X.rotate(-.5*Math.PI),X.translate(-se.height,0);break}pe(X,F,ne.srcX!=null?ne.srcX:0,ne.srcY!=null?ne.srcY:0,ne.srcWidth,ne.srcHeight,ne.trgX!=null?ne.trgX:0,ne.trgY!=null?ne.trgY:0,ne.trgWidth,ne.trgHeight);var re=se.toDataURL("image/png");if(G!=null)return G(re,se)})},G!=null&&(F.onerror=G),F.src=k.dataURL}},{key:"processQueue",value:function(){var k=this.options.parallelUploads,S=this.getUploadingFiles().length,R=S;if(!(S>=k)){var H=this.getQueuedFiles();if(H.length>0){if(this.options.uploadMultiple)return this.processFiles(H.slice(0,k-S));for(;R<k;){if(!H.length)return;this.processFile(H.shift()),R++}}}}},{key:"processFile",value:function(k){return this.processFiles([k])}},{key:"processFiles",value:function(k){var S=w(k),R;try{for(S.s();!(R=S.n()).done;){var H=R.value;H.processing=!0,H.status=_.UPLOADING,this.emit("processing",H)}}catch(Y){S.e(Y)}finally{S.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",k),this.uploadFiles(k)}},{key:"_getFilesWithXhr",value:function(k){return this.files.filter(function(S){return S.xhr===k}).map(function(S){return S})}},{key:"cancelUpload",value:function(k){if(k.status===_.UPLOADING){var S=this._getFilesWithXhr(k.xhr),R=w(S),H;try{for(R.s();!(H=R.n()).done;){var Y=H.value;Y.status=_.CANCELED}}catch(F){R.e(F)}finally{R.f()}typeof k.xhr<"u"&&k.xhr.abort();var G=w(S),x;try{for(G.s();!(x=G.n()).done;){var T=x.value;this.emit("canceled",T)}}catch(F){G.e(F)}finally{G.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",S)}else(k.status===_.ADDED||k.status===_.QUEUED)&&(k.status=_.CANCELED,this.emit("canceled",k),this.options.uploadMultiple&&this.emit("canceledmultiple",[k]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(k){if(typeof k=="function"){for(var S=arguments.length,R=new Array(S>1?S-1:0),H=1;H<S;H++)R[H-1]=arguments[H];return k.apply(this,R)}return k}},{key:"uploadFile",value:function(k){return this.uploadFiles([k])}},{key:"uploadFiles",value:function(k){var S=this;this._transformFiles(k,function(R){if(S.options.chunking){var H=R[0];k[0].upload.chunked=S.options.chunking&&(S.options.forceChunking||H.size>S.options.chunkSize),k[0].upload.totalChunkCount=Math.ceil(H.size/S.options.chunkSize)}if(k[0].upload.chunked){var Y=k[0],G=R[0];Y.upload.chunks=[];var x=function(){for(var ne=0;Y.upload.chunks[ne]!==void 0;)ne++;if(!(ne>=Y.upload.totalChunkCount)){var se=ne*S.options.chunkSize,X=Math.min(se+S.options.chunkSize,G.size),re={name:S._getParamName(0),data:G.webkitSlice?G.webkitSlice(se,X):G.slice(se,X),filename:Y.upload.filename,chunkIndex:ne};Y.upload.chunks[ne]={file:Y,index:ne,dataBlock:re,status:_.UPLOADING,progress:0,retries:0},S._uploadData(k,[re])}};if(Y.upload.finishedChunkUpload=function(q,ne){var se=!0;q.status=_.SUCCESS,q.dataBlock=null,q.xhr=null;for(var X=0;X<Y.upload.totalChunkCount;X++){if(Y.upload.chunks[X]===void 0)return x();Y.upload.chunks[X].status!==_.SUCCESS&&(se=!1)}se&&S.options.chunksUploaded(Y,function(){S._finished(k,ne,null)})},S.options.parallelChunkUploads)for(var T=0;T<Y.upload.totalChunkCount;T++)x();else x()}else{for(var F=[],Q=0;Q<k.length;Q++)F[Q]={name:S._getParamName(Q),data:R[Q],filename:k[Q].upload.filename};S._uploadData(k,F)}})}},{key:"_getChunk",value:function(k,S){for(var R=0;R<k.upload.totalChunkCount;R++)if(k.upload.chunks[R]!==void 0&&k.upload.chunks[R].xhr===S)return k.upload.chunks[R]}},{key:"_uploadData",value:function(k,S){var R=this,H=new XMLHttpRequest,Y=w(k),G;try{for(Y.s();!(G=Y.n()).done;){var x=G.value;x.xhr=H}}catch($e){Y.e($e)}finally{Y.f()}k[0].upload.chunked&&(k[0].upload.chunks[S[0].chunkIndex].xhr=H);var T=this.resolveOption(this.options.method,k),F=this.resolveOption(this.options.url,k);H.open(T,F,!0);var Q=this.resolveOption(this.options.timeout,k);Q&&(H.timeout=this.resolveOption(this.options.timeout,k)),H.withCredentials=!!this.options.withCredentials,H.onload=function($e){R._finishedUploading(k,H,$e)},H.ontimeout=function(){R._handleUploadError(k,H,"Request timedout after ".concat(R.options.timeout/1e3," seconds"))},H.onerror=function(){R._handleUploadError(k,H)};var q=H.upload!=null?H.upload:H;q.onprogress=function($e){return R._updateFilesUploadProgress(k,H,$e)};var ne={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&_.extend(ne,this.options.headers);for(var se in ne){var X=ne[se];X&&H.setRequestHeader(se,X)}var re=new FormData;if(this.options.params){var Ae=this.options.params;typeof Ae=="function"&&(Ae=Ae.call(this,k,H,k[0].upload.chunked?this._getChunk(k[0],H):null));for(var Ne in Ae){var Oe=Ae[Ne];if(Array.isArray(Oe))for(var nt=0;nt<Oe.length;nt++)re.append(Ne,Oe[nt]);else re.append(Ne,Oe)}}var mt=w(k),rt;try{for(mt.s();!(rt=mt.n()).done;){var Zr=rt.value;this.emit("sending",Zr,H,re)}}catch($e){mt.e($e)}finally{mt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",k,H,re),this._addFormElementData(re);for(var Tn=0;Tn<S.length;Tn++){var qe=S[Tn];re.append(qe.name,qe.data,qe.filename)}this.submitRequest(H,re,k)}},{key:"_transformFiles",value:function(k,S){for(var R=this,H=[],Y=0,G=function(F){R.options.transformFile.call(R,k[F],function(Q){H[F]=Q,++Y===k.length&&S(H)})},x=0;x<k.length;x++)G(x)}},{key:"_addFormElementData",value:function(k){if(this.element.tagName==="FORM"){var S=w(this.element.querySelectorAll("input, textarea, select, button")),R;try{for(S.s();!(R=S.n()).done;){var H=R.value,Y=H.getAttribute("name"),G=H.getAttribute("type");if(G&&(G=G.toLowerCase()),!(typeof Y>"u"||Y===null))if(H.tagName==="SELECT"&&H.hasAttribute("multiple")){var x=w(H.options,!0),T;try{for(x.s();!(T=x.n()).done;){var F=T.value;F.selected&&k.append(Y,F.value)}}catch(Q){x.e(Q)}finally{x.f()}}else(!G||G!=="checkbox"&&G!=="radio"||H.checked)&&k.append(Y,H.value)}}catch(Q){S.e(Q)}finally{S.f()}}}},{key:"_updateFilesUploadProgress",value:function(k,S,R){if(k[0].upload.chunked){var x=k[0],T=this._getChunk(x,S);R?(T.progress=100*R.loaded/R.total,T.total=R.total,T.bytesSent=R.loaded):(T.progress=100,T.bytesSent=T.total),x.upload.progress=0,x.upload.total=0,x.upload.bytesSent=0;for(var F=0;F<x.upload.totalChunkCount;F++)x.upload.chunks[F]&&typeof x.upload.chunks[F].progress<"u"&&(x.upload.progress+=x.upload.chunks[F].progress,x.upload.total+=x.upload.chunks[F].total,x.upload.bytesSent+=x.upload.chunks[F].bytesSent);x.upload.progress=x.upload.progress/x.upload.totalChunkCount,this.emit("uploadprogress",x,x.upload.progress,x.upload.bytesSent)}else{var H=w(k),Y;try{for(H.s();!(Y=H.n()).done;){var G=Y.value;G.upload.total&&G.upload.bytesSent&&G.upload.bytesSent==G.upload.total||(R?(G.upload.progress=100*R.loaded/R.total,G.upload.total=R.total,G.upload.bytesSent=R.loaded):(G.upload.progress=100,G.upload.bytesSent=G.upload.total),this.emit("uploadprogress",G,G.upload.progress,G.upload.bytesSent))}}catch(Q){H.e(Q)}finally{H.f()}}}},{key:"_finishedUploading",value:function(k,S,R){var H;if(k[0].status!==_.CANCELED&&S.readyState===4){if(S.responseType!=="arraybuffer"&&S.responseType!=="blob"&&(H=S.responseText,S.getResponseHeader("content-type")&&~S.getResponseHeader("content-type").indexOf("application/json")))try{H=JSON.parse(H)}catch(Y){R=Y,H="Invalid JSON response from server."}this._updateFilesUploadProgress(k,S),200<=S.status&&S.status<300?k[0].upload.chunked?k[0].upload.finishedChunkUpload(this._getChunk(k[0],S),H):this._finished(k,H,R):this._handleUploadError(k,S,H)}}},{key:"_handleUploadError",value:function(k,S,R){if(k[0].status!==_.CANCELED){if(k[0].upload.chunked&&this.options.retryChunks){var H=this._getChunk(k[0],S);if(H.retries++<this.options.retryChunksLimit){this._uploadData(k,[H.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(k,R||this.options.dictResponseError.replace("{{statusCode}}",S.status),S)}}},{key:"submitRequest",value:function(k,S,R){if(k.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}k.send(S)}},{key:"_finished",value:function(k,S,R){var H=w(k),Y;try{for(H.s();!(Y=H.n()).done;){var G=Y.value;G.status=_.SUCCESS,this.emit("success",G,S,R),this.emit("complete",G)}}catch(x){H.e(x)}finally{H.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",k,S,R),this.emit("completemultiple",k)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(k,S,R){var H=w(k),Y;try{for(H.s();!(Y=H.n()).done;){var G=Y.value;G.status=_.ERROR,this.emit("error",G,S,R),this.emit("complete",G)}}catch(x){H.e(x)}finally{H.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",k,S,R),this.emit("completemultiple",k)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=h,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(k){for(var S=arguments.length,R=new Array(S>1?S-1:0),H=1;H<S;H++)R[H-1]=arguments[H];for(var Y=0,G=R;Y<G.length;Y++){var x=G[Y];for(var T in x){var F=x[T];k[T]=F}}return k}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(k){var S=Math.random()*16|0,R=k==="x"?S:S&3|8;return R.toString(16)})}}]),_})(h);U.initClass(),U.version="5.9.3",U.options={},U.optionsForElement=function(M){if(M.getAttribute("id"))return U.options[te(M.getAttribute("id"))]},U.instances=[],U.forElement=function(M){if(typeof M=="string"&&(M=document.querySelector(M)),M?.dropzone==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return M.dropzone},U.autoDiscover=!0,U.discover=function(){var M;if(document.querySelectorAll)M=document.querySelectorAll(".dropzone");else{M=[];var D=function(L){return(function(){var k=[],S=w(L),R;try{for(S.s();!(R=S.n()).done;){var H=R.value;/(^| )dropzone($| )/.test(H.className)?k.push(M.push(H)):k.push(void 0)}}catch(Y){S.e(Y)}finally{S.f()}return k})()};D(document.getElementsByTagName("div")),D(document.getElementsByTagName("form"))}return(function(){var _=[],L=w(M),k;try{for(L.s();!(k=L.n()).done;){var S=k.value;U.optionsForElement(S)!==!1?_.push(new U(S)):_.push(void 0)}}catch(R){L.e(R)}finally{L.f()}return _})()},U.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],U.isBrowserSupported=function(){var M=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))M=!1;else{U.blacklistedBrowsers!==void 0&&(U.blockedBrowsers=U.blacklistedBrowsers);var D=w(U.blockedBrowsers),_;try{for(D.s();!(_=D.n()).done;){var L=_.value;if(L.test(navigator.userAgent)){M=!1;continue}}}catch(k){D.e(k)}finally{D.f()}}else M=!1;return M},U.dataURItoBlob=function(M){for(var D=atob(M.split(",")[1]),_=M.split(",")[0].split(":")[1].split(";")[0],L=new ArrayBuffer(D.length),k=new Uint8Array(L),S=0,R=D.length,H=0<=R;H?S<=R:S>=R;H?S++:S--)k[S]=D.charCodeAt(S);return new Blob([L],{type:_})};var V=function(D,_){return D.filter(function(L){return L!==_}).map(function(L){return L})},te=function(D){return D.replace(/[\-_](\w)/g,function(_){return _.charAt(1).toUpperCase()})};U.createElement=function(M){var D=document.createElement("div");return D.innerHTML=M,D.childNodes[0]},U.elementInside=function(M,D){if(M===D)return!0;for(;M=M.parentNode;)if(M===D)return!0;return!1},U.getElement=function(M,D){var _;if(typeof M=="string"?_=document.querySelector(M):M.nodeType!=null&&(_=M),_==null)throw new Error("Invalid `".concat(D,"` option provided. Please provide a CSS selector or a plain HTML element."));return _},U.getElements=function(M,D){var _,L;if(M instanceof Array){L=[];try{var k=w(M,!0),S;try{for(k.s();!(S=k.n()).done;)_=S.value,L.push(this.getElement(_,D))}catch(Y){k.e(Y)}finally{k.f()}}catch{L=null}}else if(typeof M=="string"){L=[];var R=w(document.querySelectorAll(M)),H;try{for(R.s();!(H=R.n()).done;)_=H.value,L.push(_)}catch(Y){R.e(Y)}finally{R.f()}}else M.nodeType!=null&&(L=[M]);if(L==null||!L.length)throw new Error("Invalid `".concat(D,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return L},U.confirm=function(M,D,_){if(window.confirm(M))return D();if(_!=null)return _()},U.isValidFile=function(M,D){if(!D)return!0;D=D.split(",");var _=M.type,L=_.replace(/\/.*$/,""),k=w(D),S;try{for(k.s();!(S=k.n()).done;){var R=S.value;if(R=R.trim(),R.charAt(0)==="."){if(M.name.toLowerCase().indexOf(R.toLowerCase(),M.name.length-R.length)!==-1)return!0}else if(/\/\*$/.test(R)){if(L===R.replace(/\/.*$/,""))return!0}else if(_===R)return!0}}catch(H){k.e(H)}finally{k.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(M){return this.each(function(){return new U(this,M)})}),U.ADDED="added",U.QUEUED="queued",U.ACCEPTED=U.QUEUED,U.UPLOADING="uploading",U.PROCESSING=U.UPLOADING,U.CANCELED="canceled",U.ERROR="error",U.SUCCESS="success";var ae=function(D){D.naturalWidth;var _=D.naturalHeight,L=document.createElement("canvas");L.width=1,L.height=_;var k=L.getContext("2d");k.drawImage(D,0,0);for(var S=k.getImageData(1,0,1,_),R=S.data,H=0,Y=_,G=_;G>H;){var x=R[(G-1)*4+3];x===0?Y=G:H=G,G=Y+H>>1}var T=G/_;return T===0?1:T},pe=function(D,_,L,k,S,R,H,Y,G,x){var T=ae(_);return D.drawImage(_,L,k,S,R,H,Y,G,x/T)},me=(function(){function M(){O(this,M)}return $(M,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(_){for(var L="",k=void 0,S=void 0,R="",H=void 0,Y=void 0,G=void 0,x="",T=0;k=_[T++],S=_[T++],R=_[T++],H=k>>2,Y=(k&3)<<4|S>>4,G=(S&15)<<2|R>>6,x=R&63,isNaN(S)?G=x=64:isNaN(R)&&(x=64),L=L+this.KEY_STR.charAt(H)+this.KEY_STR.charAt(Y)+this.KEY_STR.charAt(G)+this.KEY_STR.charAt(x),k=S=R="",H=Y=G=x="",T<_.length;);return L}},{key:"restore",value:function(_,L){if(!_.match("data:image/jpeg;base64,"))return L;var k=this.decode64(_.replace("data:image/jpeg;base64,","")),S=this.slice2Segments(k),R=this.exifManipulation(L,S);return"data:image/jpeg;base64,".concat(this.encode64(R))}},{key:"exifManipulation",value:function(_,L){var k=this.getExifArray(L),S=this.insertExif(_,k),R=new Uint8Array(S);return R}},{key:"getExifArray",value:function(_){for(var L=void 0,k=0;k<_.length;){if(L=_[k],L[0]===255&L[1]===225)return L;k++}return[]}},{key:"insertExif",value:function(_,L){var k=_.replace("data:image/jpeg;base64,",""),S=this.decode64(k),R=S.indexOf(255,3),H=S.slice(0,R),Y=S.slice(R),G=H;return G=G.concat(L),G=G.concat(Y),G}},{key:"slice2Segments",value:function(_){for(var L=0,k=[];;){var S;if(_[L]===255&_[L+1]===218)break;if(_[L]===255&_[L+1]===216)L+=2;else{S=_[L+2]*256+_[L+3];var R=L+S+2,H=_.slice(L,R);k.push(H),L=R}if(L>_.length)break}return k}},{key:"decode64",value:function(_){var L=void 0,k=void 0,S="",R=void 0,H=void 0,Y=void 0,G="",x=0,T=[],F=/[^A-Za-z0-9\+\/\=]/g;for(F.exec(_)&&console.warn(`There were invalid base64 characters in the input text.
|
|
1174
|
+
`,tw={root:function(e){var n=e.instance,r=e.props;return["p-splitbutton p-component",{"p-splitbutton-raised":r.raised,"p-splitbutton-rounded":r.rounded,"p-splitbutton-fluid":n.hasFluid}]},pcButton:"p-splitbutton-button",pcDropdown:"p-splitbutton-dropdown"},nw=lt.extend({name:"splitbutton",style:ew,classes:tw}),rw={name:"BaseSplitButton",extends:Ko,props:{label:{type:String,default:null},icon:{type:String,default:null},model:{type:Array,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:null},class:{type:null,default:null},style:{type:null,default:null},buttonProps:{type:null,default:null},menuButtonProps:{type:null,default:null},menuButtonIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:nw,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},Sm={name:"SplitButton",extends:rw,inheritAttrs:!1,emits:["click"],inject:{$pcFluid:{default:null}},data:function(){return{isExpanded:!1}},mounted:function(){var e=this;this.$watch("$refs.menu.visible",function(n){e.isExpanded=n})},methods:{onDropdownButtonClick:function(e){e&&e.preventDefault(),this.$refs.menu.toggle({currentTarget:this.$el,relatedTarget:this.$refs.button.$el}),this.isExpanded=this.$refs.menu.visible},onDropdownKeydown:function(e){(e.code==="ArrowDown"||e.code==="ArrowUp")&&(this.onDropdownButtonClick(),e.preventDefault())},onDefaultButtonClick:function(e){this.isExpanded&&this.$refs.menu.hide(e),this.$emit("click",e)}},computed:{containerClass:function(){return[this.cx("root"),this.class]},hasFluid:function(){return Cn(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:bm,PVSMenu:wm,ChevronDownIcon:dm}},ow=["data-p-severity"];function iw(t,e,n,r,o,i){var s=l.resolveComponent("PVSButton"),c=l.resolveComponent("PVSMenu");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:i.containerClass,style:t.style},t.ptmi("root"),{"data-p-severity":t.severity}),[l.createVNode(s,l.mergeProps({type:"button",class:t.cx("pcButton"),label:t.label,disabled:t.disabled,severity:t.severity,text:t.text,icon:t.icon,outlined:t.outlined,size:t.size,fluid:t.fluid,"aria-label":t.label,onClick:i.onDefaultButtonClick},t.buttonProps,{pt:t.ptm("pcButton"),unstyled:t.unstyled}),l.createSlots({default:l.withCtx(function(){return[l.renderSlot(t.$slots,"default")]}),_:2},[t.$slots.icon?{name:"icon",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"icon",{class:l.normalizeClass(a.class)},function(){return[l.createElementVNode("span",l.mergeProps({class:[t.icon,a.class]},t.ptm("pcButton").icon,{"data-pc-section":"buttonicon"}),null,16)]})]}),key:"0"}:void 0]),1040,["class","label","disabled","severity","text","icon","outlined","size","fluid","aria-label","onClick","pt","unstyled"]),l.createVNode(s,l.mergeProps({ref:"button",type:"button",class:t.cx("pcDropdown"),disabled:t.disabled,"aria-haspopup":"true","aria-expanded":o.isExpanded,"aria-controls":o.isExpanded?t.$id+"_overlay":void 0,onClick:i.onDropdownButtonClick,onKeydown:i.onDropdownKeydown,severity:t.severity,text:t.text,outlined:t.outlined,size:t.size,unstyled:t.unstyled},t.menuButtonProps,{pt:t.ptm("pcDropdown")}),{icon:l.withCtx(function(a){return[l.renderSlot(t.$slots,t.$slots.dropdownicon?"dropdownicon":"menubuttonicon",{class:l.normalizeClass(a.class)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.menuButtonIcon||t.dropdownIcon?"span":"ChevronDownIcon"),l.mergeProps({class:[t.dropdownIcon||t.menuButtonIcon,a.class]},t.ptm("pcDropdown").icon,{"data-pc-section":"menubuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","aria-expanded","aria-controls","onClick","onKeydown","severity","text","outlined","size","unstyled","pt"]),l.createVNode(c,{ref:"menu",id:t.$id+"_overlay",model:t.model,popup:!0,autoZIndex:t.autoZIndex,baseZIndex:t.baseZIndex,appendTo:t.appendTo,unstyled:t.unstyled,pt:t.ptm("pcMenu")},l.createSlots({_:2},[t.$slots.menuitemicon?{name:"itemicon",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"menuitemicon",{item:a.item,class:l.normalizeClass(a.class)})]}),key:"0"}:void 0,t.$slots.item?{name:"item",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"item",{item:a.item,hasSubmenu:a.hasSubmenu,label:a.label,props:a.props})]}),key:"1"}:void 0]),1032,["id","model","autoZIndex","baseZIndex","appendTo","unstyled","pt"])],16,ow)}Sm.render=iw;const sw=["src"],aw={class:"menu-item"},lw=["src"],Am={__name:"BDContentLibrarySplitButton",props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:["content-library"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.computed(()=>r.contentLibraryProviders.map(f=>({label:f.label,image:f.img,value:f.value,command:()=>o("content-library",f.value)}))),s=l.computed(()=>{let f=i.value;return f.length!==0&&r.isExternalOnly&&(f=f.slice(1)),f}),c=l.computed(()=>{const f=i.value;return r.isExternalOnly&&f.length>0?f[0].label:n("contentLibrarySplitButton.messageTemplatesTitle")}),a=l.computed(()=>{const f=i.value;return r.isExternalOnly&&f.length>0}),d=l.computed(()=>{const f=i.value;return f.length>0?f[0].image:""}),u=()=>{const f=i.value;let h="message-template";r.isExternalOnly&&f.length>0&&(h=f[0].value),o("content-library",h)};return(f,h)=>(l.openBlock(),l.createBlock(l.unref(Sm),{class:"bd-content-library-split-button",model:s.value,outlined:"",severity:"secondary",onClick:u},{default:l.withCtx(()=>[a.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:d.value,alt:""},null,8,sw)):(l.openBlock(),l.createBlock(Lc,{key:1})),l.createElementVNode("span",null,l.toDisplayString(c.value),1)]),item:l.withCtx(({item:p})=>[l.createElementVNode("div",aw,[l.createElementVNode("img",{src:p.image,alt:"",class:"icon-image"},null,8,lw),l.createElementVNode("span",null,l.toDisplayString(p.label),1)])]),_:1},8,["model"]))}},cw={class:"invalid-feedback bd-invalid-feedback"},Ta=l.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(t){const e=t;return(n,r)=>(l.openBlock(),l.createElementBlock("div",cw,[e.state?(l.openBlock(),l.createBlock(l.unref(Fo),{key:0})):(l.openBlock(),l.createBlock(l.unref(ra),{key:1})),l.createTextVNode(" "+l.toDisplayString(e.text),1)]))}});var dw=Object.defineProperty,uw=(t,e,n)=>e in t?dw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,es=(t,e,n)=>uw(t,typeof e!="symbol"?e+"":e,n);const xm={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Tm=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Im=(t,e,n)=>{var r;return new Intl.NumberFormat(((r=n.number)==null?void 0:r.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},fw=(t,e=!0,n)=>{var r,o,i,s;const c=((r=n.number)==null?void 0:r.unsigned)!==!0&&t.startsWith("-")?"-":"",a=((o=n.number)==null?void 0:o.fraction)??0;let d=Im(0,a,n);const u=d.formatToParts(1000.12),f=((i=u.find(v=>v.type==="group"))==null?void 0:i.value)??" ",h=((s=u.find(v=>v.type==="decimal"))==null?void 0:s.value)??".",p=Tm(t,f,h);if(Number.isNaN(parseFloat(p)))return c;const m=p.split(".");if(m[1]!=null&&m[1].length>=1){const v=m[1].length<=a?m[1].length:a;d=Im(v,a,n)}let g=d.format(parseFloat(p));return e?a>0&&p.endsWith(".")&&!p.slice(0,-1).includes(".")&&(g+=h):g=Tm(g,f,h),c+g},_m=t=>JSON.parse(t.replaceAll("'",'"')),hw=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=pw(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Ia(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Ia(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Ia(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=mw(t.dataset.maskaTokens));const r={};return t.dataset.maskaNumberLocale!=null&&(r.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(r.unsigned=Ia(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},Ia=t=>t!==""?!!JSON.parse(t):!0,pw=t=>t.startsWith("[")&&t.endsWith("]")?_m(t):t,mw=t=>{if(t.startsWith("{")&&t.endsWith("}"))return _m(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:Nm()?new RegExp(r[1],"u"):new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e},Nm=()=>{try{return new RegExp("\\p{L}","u"),!0}catch{return!1}};class gw{constructor(e={}){es(this,"opts",{}),es(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...xm,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=Nm()?new RegExp(r.pattern,"u"):new RegExp(r.pattern))}else n.tokens=xm;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,o)=>r.length-o.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(String(e),this.findMask(String(e)))}unmasked(e){return this.process(String(e),this.findMask(String(e)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(String(e));if(this.opts.mask==null||n==null)return!1;const r=this.process(String(e),n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:r>=n.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((o,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-r.length):n.push(o)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(this.opts.number!=null)return fw(e,r,this.opts);if(n==null)return e;const o=`v=${e},mr=${n},m=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:i,escaped:s}=this.escapeMask(n),c=[],a=this.opts.tokens!=null?this.opts.tokens:{},d=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>v>-1&&y>-1:()=>v<i.length&&y<e.length,p=E=>!this.isReversed()&&E<=f||this.isReversed()&&E>=f;let m,g=-1,v=this.isReversed()?i.length-1:0,y=this.isReversed()?e.length-1:0,b=!1;for(;h();){const E=i.charAt(v),C=a[E],w=C?.transform!=null?C.transform(e.charAt(y)):e.charAt(y);if(!s.includes(v)&&C!=null?(w.match(C.pattern)!=null?(c[u](w),C.repeated?(g===-1?g=v:v===f&&v!==g&&(v=g-d),f===g&&(v-=d)):C.multiple&&(b=!0,v-=d),v+=d):C.multiple?b&&(v+=d,y-=d,b=!1):w===m?m=void 0:C.optional&&(v+=d,y-=d),y+=d):(r&&!this.isEager()&&c[u](E),w===E&&!this.isEager()?y+=d:m=E,this.isEager()||(v+=d)),this.isEager())for(;p(v)&&(a[i.charAt(v)]==null||s.includes(v));){if(r){if(c[u](i.charAt(v)),e.charAt(y)===i.charAt(v)){v+=d,y+=d;continue}}else i.charAt(v)===e.charAt(y)&&(y+=d);v+=d}}return this.memo.set(o,c.join("")),this.memo.get(o)}}let vw=class{constructor(e,n={}){es(this,"items",new Map),es(this,"eventAbortController"),es(this,"onInput",r=>{if(r instanceof CustomEvent&&r.type==="input"&&!r.isTrusted&&!r.bubbles)return;const o=r.target,i=this.items.get(o);if(i===void 0)return;const s="inputType"in r&&r.inputType.startsWith("delete"),c=i.isEager(),a=s&&c&&i.unmasked(o.value)===""?"":o.value;this.fixCursor(o,s,()=>this.setValue(o,a))}),this.options=n,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){var n;e.value!==""&&e.value!==((n=this.processInput(e))==null?void 0:n.masked)&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){const n=this.getOptions(this.options);for(const r of e){if(!this.items.has(r)){const{signal:i}=this.eventAbortController;r.addEventListener("input",this.onInput,{capture:!0,signal:i})}const o=new gw(hw(r,n));this.items.set(r,o),queueMicrotask(()=>this.updateValue(r)),r.selectionStart===null&&o.isEager()&&console.warn("Maska: input of `%s` type is not supported",r.type)}}getInputs(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):"length"in e?Array.from(e):[e]}getOptions(e){const{onMaska:n,preProcess:r,postProcess:o,...i}=e;return i}fixCursor(e,n,r){var o,i;const s=e.selectionStart,c=e.value;if(r(),s===null||s===c.length&&!n)return;const a=e.value,d=c.slice(0,s),u=a.slice(0,s),f=(o=this.processInput(e,d))==null?void 0:o.unmasked,h=(i=this.processInput(e,u))==null?void 0:i.unmasked;if(f===void 0||h===void 0)return;let p=s;d!==u&&(p+=n?a.length-c.length:f.length-h.length),e.setSelectionRange(p,p)}setValue(e,n){const r=this.processInput(e,n);r!==void 0&&(e.value=r.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(o=>o(r)):this.options.onMaska(r)),e.dispatchEvent(new CustomEvent("maska",{detail:r})),e.dispatchEvent(new CustomEvent("input",{detail:r.masked})))}processInput(e,n){const r=this.items.get(e);if(r===void 0)return;let o=n??e.value;this.options.preProcess!=null&&(o=this.options.preProcess(o));let i=r.masked(o);return this.options.postProcess!=null&&(i=this.options.postProcess(i)),{masked:i,unmasked:r.unmasked(o),completed:r.completed(o)}}};const Bd=new WeakMap,yw=(t,e)=>{if(t.arg==null||t.instance==null)return;const n="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=e:n&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},bw=(t,e)=>{var n;const r=t instanceof HTMLInputElement?t:t.querySelector("input");if(r==null||r?.type==="file")return;let o={};if(e.value!=null&&(o=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const i=s=>{const c=e.modifiers.unmasked?s.unmasked:e.modifiers.completed?s.completed:s.masked;yw(e,c)};o.onMaska=o.onMaska==null?i:Array.isArray(o.onMaska)?[...o.onMaska,i]:[o.onMaska,i]}Bd.has(r)?(n=Bd.get(r))==null||n.update(o):Bd.set(r,new vw(r,o))},Cw=["value","type"],Cr=l.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:at.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(t,{emit:e}){const n=t,r=e,{uniqueIdentifier:o}=zo(),i=eo(n,"modelValue",r),s=`__BD__FORM__LABEL__${o.value}`,c=`__BD__FORM__GROUP__${o.value}`,a=`form-input-${n.label?n.label.replace(/ /g,"-").toLowerCase():o.value}`,d=`validationFeedback${n.label?n.label.replace(/ /g,""):o.value}`,u=l.computed(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),f=l.computed(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),h=l.computed(()=>({placeholder:n.placeholder?n.placeholder:null,readonly:n.readonly===!0,disabled:n.disabled===!0,autofocus:n.autofocus===!0,tabindex:n.tabindex?n.tabindex:null,"aria-describedby":n.state===!1&&n.invalidFeedbackText?d:null,"data-maska":n.mask})),p=a6(m=>{i.value=m.target.value},n.delayTimeMs);return(m,g)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-form-input",t.formGroupClass]),id:c},[l.renderSlot(m.$slots,"label",{},()=>[t.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:a,id:s,class:l.normalizeClass(["form-label",t.labelClass])},l.toDisplayString(t.label),3)):l.createCommentVNode("",!0)]),l.createElementVNode("div",{class:l.normalizeClass(t.formFieldClass)},[l.withDirectives(l.createElementVNode("input",l.mergeProps({value:t.modelValue,type:t.type,id:a,class:["form-control",u.value]},h.value,{onInput:g[0]||(g[0]=(...v)=>l.unref(p)&&l.unref(p)(...v)),onClick:g[1]||(g[1]=v=>m.$emit("click")),onBlur:g[2]||(g[2]=v=>m.$emit("blur")),onKeydown:g[3]||(g[3]=l.withKeys(v=>m.$emit("enter"),["enter"]))}),null,16,Cw),[[l.unref(bw)]]),l.renderSlot(m.$slots,"default")],2),l.createVNode(Ta,{text:t.invalidFeedbackText,class:l.normalizeClass(f.value),state:t.state,id:d},null,8,["text","class","state"])],2))}}),Ew={class:"input-group bd-input-group"},kw=["for"],ts=l.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(t){const e=l.useAttrs(),n=t;return(r,o)=>(l.openBlock(),l.createElementBlock("fieldset",Ew,[n.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:n.labelForId,class:"form-label"},l.toDisplayString(n.label),9,kw)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(l.unref(e).class)},[l.renderSlot(r.$slots,"default")],2)]))}}),ww={key:0},Sw={key:1},Om=l.defineComponent({__name:"BDBadge",props:{variant:{default:sa.PRIMARY}},setup(t){const e=t,n=l.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(l.openBlock(),l.createElementBlock("span",{role:"status",class:l.normalizeClass(n.value)},[t.variant==="danger"?(l.openBlock(),l.createElementBlock("span",ww,[l.createVNode(l.unref(mr))])):l.createCommentVNode("",!0),t.variant==="success"?(l.openBlock(),l.createElementBlock("span",Sw,[l.createVNode(l.unref(Fo))])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}}),Mm=l.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(t,{emit:e}){const n=e;function r(){n("submit")}function o(){n("reset")}return(i,s)=>(l.openBlock(),l.createElementBlock("form",{onSubmit:l.withModifiers(r,["prevent"]),onReset:l.withModifiers(o,["prevent"])},[l.renderSlot(i.$slots,"default")],32))}}),Aw={"aria-label":"Page navigation",class:"bd-pagination"},xw={class:"page-item"},Tw=["data-page"],Iw=["data-page"],_w={class:"page-item"},Nw=["data-page"],Rd=l.defineComponent({__name:"BDPagination",props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:["click","update:modelValue"],setup(t,{emit:e}){const n=t,r=e,o=eo(n,"modelValue",r),i=l.ref(Math.ceil(n.totalRows/n.rowsPerPage)),s=l.ref([]);l.watch([()=>n.totalRows,()=>n.rowsPerPage],()=>{i.value=Math.ceil(n.totalRows/n.rowsPerPage),s.value=f(o.value)}),l.onMounted(()=>{s.value=f(o.value)});const c=l.computed(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),a=h=>{const p=h.currentTarget.getAttribute("data-page"),m=Number(p);isNaN(Number(m))||(o.value=m,s.value=f(m)),r("click",m)},d=(h,p,m)=>m<=p?m:h==1?6:h<=4?5:1,u=(h,p,m)=>m<=p?0:h==m?6:h>m-4?5:1,f=h=>{const p=[],g=d(h,7,i.value),v=i.value>7&&h>4,y=i.value>7&&h<i.value-3,b=v&&y,E=u(h,7,i.value);for(let C=1;C<=g;C++)p.push(C);if(v&&p.push("..."),b)for(let C=h-1;C<=h+1;C++)p.push(C);y&&p.push("...");for(let C=1;C<=E;C++)p.push(i.value-E+C);return p};return(h,p)=>(l.openBlock(),l.createElementBlock("div",Aw,[l.createElementVNode("ul",{class:l.normalizeClass(["pagination",c.value])},[l.withDirectives(l.createElementVNode("li",xw,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:a,"data-page":l.unref(o)-1},[l.createVNode(l.unref(Oc))],8,Tw)],512),[[l.vShow,l.unref(o)>1]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,m=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["page-item",{active:l.unref(o)===m,disabled:typeof m=="string"}]),key:m},[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:a,"data-page":m},l.toDisplayString(m),9,Iw)],2))),128)),l.withDirectives(l.createElementVNode("li",_w,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:a,"data-page":l.unref(o)+1},[l.createVNode(l.unref(Mc))],8,Nw)],512),[[l.vShow,l.unref(o)<i.value]])],2)]))}}),Ow=["disabled"],Mw=["label"],Lw=["value"],Dw=["value"],Lm=l.defineComponent({__name:"BDFormSelect",props:{size:{default:at.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,r=e,o=eo(n,"modelValue",r),i=l.ref(null),{focused:s}=u6(i,{initialValue:n.autofocus}),c=l.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":n.state===!1,[`form-select-${n.size}`]:["xs","sm","lg"].includes(n.size)}));l.watch(()=>n.autofocus,f=>{f&&(s.value=!0)});const a=f=>{o.value=f.target.value;let h=u(f.target.value);r("input",h)},d=f=>{let h=u(f.target.value);r("change",h)},u=f=>{try{return JSON.parse(f)}catch{return f}};return(f,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:l.normalizeClass(c.value),"onUpdate:modelValue":h[0]||(h[0]=p=>l.isRef(o)?o.value=p:null),disabled:n.disabled,ref_key:"input",ref:i,onInput:a,onChange:d},[l.renderSlot(f.$slots,"first"),n.options&&n.options.length>0&&n.options[0].label&&n.options[0].options?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(n.options,p=>(l.openBlock(),l.createElementBlock("optgroup",{label:p.label},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.options,m=>(l.openBlock(),l.createElementBlock("option",{value:JSON.stringify(m.value),key:m.value},l.toDisplayString(m.text),9,Lw))),128))],8,Mw))),256)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(n.options,p=>(l.openBlock(),l.createElementBlock("option",{value:p.value,key:p.value},l.toDisplayString(p.text),9,Dw))),128))],42,Ow)),[[l.vModelSelect,l.unref(o)]])}}),Pw=["value","true-value","false-value","data-checked","disabled"],Er=l.defineComponent({__name:"BDFormCheckbox",props:{disabled:{type:Boolean,default:!1},modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const{uniqueIdentifier:n}=zo(),r=t,o=e,i=eo(r,"modelValue",o),s=`form-check-input-${n.value}`,c=l.computed(()=>["form-check","bd-form-checkbox"]),a=l.computed(()=>({"form-check-input":!0,"is-invalid":r.state===!1})),d=u=>o("change",u.target.value);return(u,f)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(c.value)},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>l.isRef(i)?i.value=h:null),id:s,class:l.normalizeClass(a.value),type:"checkbox",value:t.value,"true-value":t.value,"false-value":t.uncheckedValue,"data-checked":l.unref(i)===t.value,disabled:r.disabled,onChange:d},null,42,Pw),[[l.vModelCheckbox,l.unref(i)]]),l.createElementVNode("label",{class:"form-check-label",for:s},[l.renderSlot(u.$slots,"default")]),l.renderSlot(u.$slots,"last")],2))}}),Bw={key:0,class:"bd-article__body"},Rw={key:1},Dm=l.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,o=i=>r("click",{event:i,identifier:n.identifier});return(i,s)=>(l.openBlock(),l.createElementBlock("article",{class:"bd-article",onClick:o},[l.createElementVNode("header",null,[l.renderSlot(i.$slots,"header",{},()=>[l.createElementVNode("h5",null,l.toDisplayString(n.title),1)])]),n.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Bw,[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])])),n.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",Rw,[l.renderSlot(i.$slots,"footer")]))]))}}),Yo={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},$w=["id"],Fw={class:"toast-header"},zw={class:"toast-body"},$d=l.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Yo.INFO},title:{default:""},text:{default:""}},setup(t){const e=t,n=l.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=l.computed(()=>e.variant!==Yo.SUCCESS);return(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["toast bd-toast",n.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[l.createElementVNode("div",Fw,[r.value?(l.openBlock(),l.createBlock(l.unref(mr),{key:0})):(l.openBlock(),l.createBlock(l.unref(Fo),{key:1})),l.createElementVNode("h5",null,l.toDisplayString(e.title),1),i[0]||(i[0]=l.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1))]),l.createElementVNode("div",zw,[l.createElementVNode("span",null,l.toDisplayString(e.text),1)])],10,$w))}}),_e="",_a=t=>typeof t=="string"||t instanceof String,Uw={class:"bd-pill"},Hw=["src"],jw={class:"bd-pill__description"},Ww=["href"],Kw=["id","textContent","title"],Yw=["id","textContent","title"],Na=l.defineComponent({__name:"BDPill",props:{imgSrc:{default:_e},uri:{default:_e},uriDisplayName:{default:_e},title:{default:_e},subtitle:{default:_e},showClose:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const{uniqueIdentifier:n}=zo(),r=t,o=l.computed(()=>r.uri),i=l.computed(()=>r.uriDisplayName!==_e?r.uriDisplayName:r.uri),s=l.computed(()=>r.imgSrc),c=l.computed(()=>r.title),a=l.computed(()=>r.subtitle),d=l.computed(()=>`bd-pill-title-${n.value}`),u=l.computed(()=>`bd-pill-subtitle-${n.value}`);return(f,h)=>(l.openBlock(),l.createElementBlock("div",Uw,[l.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,Hw),l.createElementVNode("div",jw,[l.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[l.createVNode(l.unref(oa),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),l.createTextVNode(" "+l.toDisplayString(i.value),1)],8,Ww),l.createElementVNode("span",{class:"bd-pill__title",id:d.value,textContent:l.toDisplayString(c.value),"data-bs-toggle":"tooltip",title:c.value},null,8,Kw),l.createElementVNode("span",{class:"bd-pill__subtitle",id:u.value,textContent:l.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,Yw)])]))}});function Gw(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Qw(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(u){try{d(r.next(u))}catch(f){s(f)}}function a(u){try{d(r.throw(u))}catch(f){s(f)}}function d(u){u.done?i(u.value):o(u.value).then(c,a)}d((r=r.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Zw=t=>Array.isArray(t)&&t.length>0,Jw=t=>Object.keys(t).map(e=>t[e]),Fd=t=>Array.isArray(t)&&t.length>0,Pm=t=>!t||Array.isArray(t)&&!t.length,zd={name:"BDUserInformation",props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){const t=this.value,{name:e,profilePictureUri:n,extra:r}=t,o=Gw(t,["name","profilePictureUri","extra"]),i=n&&this.showProfilePicture?l.h("img",{class:"bd-user-information__profile-picture",src:n,alt:e}):null;let c=[l.h("h4",null,e)];this.$slots.default&&c.push(this.$slots.default());const a=l.h("div",{class:"bd-user-information__header"},c),d=l.h("small",null,Jw(o).filter(f=>f).join(" • ")),u=l.h("div",{class:"bd-user-information__detail"},[a,d]);return l.h("div",{class:"bd-user-information"},[i,u])}},Bm={displayTime:!0,format:"numeric"};function Go(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oa={exports:{}},Xw=Oa.exports,Rm;function $m(){return Rm||(Rm=1,(function(t,e){(function(n,r){t.exports=r()})(Xw,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",a="hour",d="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var j=["th","st","nd","rd"],N=W%100;return"["+W+(j[(N-20)%10]||j[N]||j[0])+"]"}},E=function(W,j,N){var J=String(W);return!J||J.length>=j?W:""+Array(j+1-J.length).join(N)+W},C={s:E,z:function(W){var j=-W.utcOffset(),N=Math.abs(j),J=Math.floor(N/60),z=N%60;return(j<=0?"+":"-")+E(J,2,"0")+":"+E(z,2,"0")},m:function W(j,N){if(j.date()<N.date())return-W(N,j);var J=12*(N.year()-j.year())+(N.month()-j.month()),z=j.clone().add(J,f),V=N-z<0,te=j.clone().add(J+(V?-1:1),f);return+(-(J+(N-z)/(V?z-te:te-z))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:f,y:p,w:u,d,D:m,h:a,m:c,s,ms:i,Q:h}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},w="en",I={};I[w]=b;var A="$isDayjsObject",O=function(W){return W instanceof H||!(!W||!W[A])},K=function W(j,N,J){var z;if(!j)return w;if(typeof j=="string"){var V=j.toLowerCase();I[V]&&(z=V),N&&(I[V]=N,z=V);var te=j.split("-");if(!z&&te.length>1)return W(te[0])}else{var ae=j.name;I[ae]=j,z=ae}return!J&&z&&(w=z),z||!J&&w},B=function(W,j){if(O(W))return W.clone();var N=typeof j=="object"?j:{};return N.date=W,N.args=arguments,new H(N)},F=C;F.l=K,F.i=O,F.w=function(W,j){return B(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var H=(function(){function W(N){this.$L=K(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[A]=!0}var j=W.prototype;return j.parse=function(N){this.$d=(function(J){var z=J.date,V=J.utc;if(z===null)return new Date(NaN);if(F.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var te=z.match(v);if(te){var ae=te[2]-1||0,pe=(te[7]||"0").substring(0,3);return V?new Date(Date.UTC(te[1],ae,te[3]||1,te[4]||0,te[5]||0,te[6]||0,pe)):new Date(te[1],ae,te[3]||1,te[4]||0,te[5]||0,te[6]||0,pe)}}return new Date(z)})(N),this.init()},j.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(N,J){var z=B(N);return this.startOf(J)<=z&&z<=this.endOf(J)},j.isAfter=function(N,J){return B(N)<this.startOf(J)},j.isBefore=function(N,J){return this.endOf(J)<B(N)},j.$g=function(N,J,z){return F.u(N)?this[J]:this.set(z,N)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(N,J){var z=this,V=!!F.u(J)||J,te=F.p(N),ae=function(D,_){var L=F.w(z.$u?Date.UTC(z.$y,_,D):new Date(z.$y,_,D),z);return V?L:L.endOf(d)},pe=function(D,_){return F.w(z.toDate()[D].apply(z.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(_)),z)},me=this.$W,ye=this.$M,Ce=this.$D,Se="set"+(this.$u?"UTC":"");switch(te){case p:return V?ae(1,0):ae(31,11);case f:return V?ae(1,ye):ae(0,ye+1);case u:var ve=this.$locale().weekStart||0,M=(me<ve?me+7:me)-ve;return ae(V?Ce-M:Ce+(6-M),ye);case d:case m:return pe(Se+"Hours",0);case a:return pe(Se+"Minutes",1);case c:return pe(Se+"Seconds",2);case s:return pe(Se+"Milliseconds",3);default:return this.clone()}},j.endOf=function(N){return this.startOf(N,!1)},j.$set=function(N,J){var z,V=F.p(N),te="set"+(this.$u?"UTC":""),ae=(z={},z[d]=te+"Date",z[m]=te+"Date",z[f]=te+"Month",z[p]=te+"FullYear",z[a]=te+"Hours",z[c]=te+"Minutes",z[s]=te+"Seconds",z[i]=te+"Milliseconds",z)[V],pe=V===d?this.$D+(J-this.$W):J;if(V===f||V===p){var me=this.clone().set(m,1);me.$d[ae](pe),me.init(),this.$d=me.set(m,Math.min(this.$D,me.daysInMonth())).$d}else ae&&this.$d[ae](pe);return this.init(),this},j.set=function(N,J){return this.clone().$set(N,J)},j.get=function(N){return this[F.p(N)]()},j.add=function(N,J){var z,V=this;N=Number(N);var te=F.p(J),ae=function(ye){var Ce=B(V);return F.w(Ce.date(Ce.date()+Math.round(ye*N)),V)};if(te===f)return this.set(f,this.$M+N);if(te===p)return this.set(p,this.$y+N);if(te===d)return ae(1);if(te===u)return ae(7);var pe=(z={},z[c]=r,z[a]=o,z[s]=n,z)[te]||1,me=this.$d.getTime()+N*pe;return F.w(me,this)},j.subtract=function(N,J){return this.add(-1*N,J)},j.format=function(N){var J=this,z=this.$locale();if(!this.isValid())return z.invalidDate||g;var V=N||"YYYY-MM-DDTHH:mm:ssZ",te=F.z(this),ae=this.$H,pe=this.$m,me=this.$M,ye=z.weekdays,Ce=z.months,Se=z.meridiem,ve=function(_,L,k,S){return _&&(_[L]||_(J,V))||k[L].slice(0,S)},M=function(_){return F.s(ae%12||12,_,"0")},D=Se||function(_,L,k){var S=_<12?"AM":"PM";return k?S.toLowerCase():S};return V.replace(y,(function(_,L){return L||(function(k){switch(k){case"YY":return String(J.$y).slice(-2);case"YYYY":return F.s(J.$y,4,"0");case"M":return me+1;case"MM":return F.s(me+1,2,"0");case"MMM":return ve(z.monthsShort,me,Ce,3);case"MMMM":return ve(Ce,me);case"D":return J.$D;case"DD":return F.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return ve(z.weekdaysMin,J.$W,ye,2);case"ddd":return ve(z.weekdaysShort,J.$W,ye,3);case"dddd":return ye[J.$W];case"H":return String(ae);case"HH":return F.s(ae,2,"0");case"h":return M(1);case"hh":return M(2);case"a":return D(ae,pe,!0);case"A":return D(ae,pe,!1);case"m":return String(pe);case"mm":return F.s(pe,2,"0");case"s":return String(J.$s);case"ss":return F.s(J.$s,2,"0");case"SSS":return F.s(J.$ms,3,"0");case"Z":return te}return null})(_)||te.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(N,J,z){var V,te=this,ae=F.p(J),pe=B(N),me=(pe.utcOffset()-this.utcOffset())*r,ye=this-pe,Ce=function(){return F.m(te,pe)};switch(ae){case p:V=Ce()/12;break;case f:V=Ce();break;case h:V=Ce()/3;break;case u:V=(ye-me)/6048e5;break;case d:V=(ye-me)/864e5;break;case a:V=ye/o;break;case c:V=ye/r;break;case s:V=ye/n;break;default:V=ye}return z?V:F.a(V)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return I[this.$L]},j.locale=function(N,J){if(!N)return this.$L;var z=this.clone(),V=K(N,J,!0);return V&&(z.$L=V),z},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W})(),Z=H.prototype;return B.prototype=Z,[["$ms",i],["$s",s],["$m",c],["$H",a],["$W",d],["$M",f],["$y",p],["$D",m]].forEach((function(W){Z[W[1]]=function(j){return this.$g(j,W[0],W[1])}})),B.extend=function(W,j){return W.$i||(W(j,H,B),W.$i=!0),B},B.locale=K,B.isDayjs=O,B.unix=function(W){return B(1e3*W)},B.en=I[w],B.Ls=I,B.p={},B}))})(Oa)),Oa.exports}var qw=$m();const Kt=Go(qw);var Ma={exports:{}},Vw=Ma.exports,Fm;function eS(){return Fm||(Fm=1,(function(t,e){(function(n,r){t.exports=r($m())})(Vw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),i={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(s){return"["+s+(s===1||s===8||s>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(i,null,!0),i}))})(Ma)),Ma.exports}eS();var La={exports:{}},tS=La.exports,zm;function nS(){return zm||(zm=1,(function(t,e){(function(n,r){t.exports=r()})(tS,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,a={},d=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),E=60*b[1]+(+b[2]||0);return E===0?0:b[0]==="+"?-E:E})(v)}],h=function(v){var y=a[v];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(v,y){var b,E=a.meridiem;if(E){for(var C=1;C<=24;C+=1)if(v.indexOf(E(C,0,y))>-1){b=C>12;break}}else b=v===(y?"pm":"PM");return b},m={A:[c,function(v){this.afternoon=p(v,!1)}],a:[c,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[c,function(v){var y=a.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("month")],MMM:[c,function(v){var y=h("months"),b=(h("monthsShort")||y.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[c,function(v){var y=h("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=d(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var y,b;y=v,b=a&&a.formats;for(var E=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,F,H){var Z=H&&H.toUpperCase();return F||b[H]||n[H]||b[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(W,j,N){return j||N.slice(1)}))}))).match(r),C=E.length,w=0;w<C;w+=1){var I=E[w],A=m[I],O=A&&A[0],K=A&&A[1];E[w]=K?{regex:O,parser:K}:I.replace(/^\[|\]$/g,"")}return function(B){for(var F={},H=0,Z=0;H<C;H+=1){var W=E[H];if(typeof W=="string")Z+=W.length;else{var j=W.regex,N=W.parser,J=B.slice(Z),z=j.exec(J)[0];N.call(F,z),B=B.replace(z,"")}}return(function(V){var te=V.afternoon;if(te!==void 0){var ae=V.hours;te?ae<12&&(V.hours+=12):ae===12&&(V.hours=0),delete V.afternoon}})(F),F}}return function(v,y,b){b.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(d=v.parseTwoDigitYear);var E=y.prototype,C=E.parse;E.parse=function(w){var I=w.date,A=w.utc,O=w.args;this.$u=A;var K=O[1];if(typeof K=="string"){var B=O[2]===!0,F=O[3]===!0,H=B||F,Z=O[2];F&&(Z=O[2]),a=this.$locale(),!B&&Z&&(a=b.Ls[Z]),this.$d=(function(J,z,V,te){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*J);var ae=g(z)(J),pe=ae.year,me=ae.month,ye=ae.day,Ce=ae.hours,Se=ae.minutes,ve=ae.seconds,M=ae.milliseconds,D=ae.zone,_=ae.week,L=new Date,k=ye||(pe||me?1:L.getDate()),S=pe||L.getFullYear(),R=0;pe&&!me||(R=me>0?me-1:L.getMonth());var U,Y=Ce||0,G=Se||0,x=ve||0,T=M||0;return D?new Date(Date.UTC(S,R,k,Y,G,x,T+60*D.offset*1e3)):V?new Date(Date.UTC(S,R,k,Y,G,x,T)):(U=new Date(S,R,k,Y,G,x,T),_&&(U=te(U).week(_).toDate()),U)}catch{return new Date("")}})(I,K,A,b),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),H&&I!=this.format(K)&&(this.$d=new Date("")),a={}}else if(K instanceof Array)for(var W=K.length,j=1;j<=W;j+=1){O[1]=K[j-1];var N=b.apply(this,O);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}j===W&&(this.$d=new Date(""))}else C.call(this,w)}}}))})(La)),La.exports}var rS=nS();const oS=Go(rS);var Da={exports:{}},iS=Da.exports,Um;function sS(){return Um||(Um=1,(function(t,e){(function(n,r){t.exports=r()})(iS,(function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}}))})(Da)),Da.exports}var aS=sS();const lS=Go(aS);var Pa={exports:{}},cS=Pa.exports,Hm;function dS(){return Hm||(Hm=1,(function(t,e){(function(n,r){t.exports=r()})(cS,(function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}}))})(Pa)),Pa.exports}var uS=dS();const fS=Go(uS);var Ba={exports:{}},hS=Ba.exports,jm;function pS(){return jm||(jm=1,(function(t,e){(function(n,r){t.exports=r()})(hS,(function(){var n="week",r="year";return function(o,i,s){var c=i.prototype;c.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(d),f=s(this).endOf(n);if(u.isBefore(f))return 1}var h=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?s(this).startOf("week").week():Math.ceil(p)},c.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}}))})(Ba)),Ba.exports}var mS=pS();const gS=Go(mS);Kt.extend(oS),Kt.locale("nl"),Kt.extend(lS),Kt.extend(fS),Kt.extend(gS);const Ud=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"";function Wm(t,e=Kt()){const n=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0);if(!n.isValid())return"";const r=e.startOf("day");if(n.isSame(r,"day"))return"Vandaag";const o=r.subtract(1,"day");if(n.isSame(o,"day"))return"Gisteren";const i=r.subtract(6,"day");if(n.isSameOrAfter(i)&&n.isBefore(r))return Ud(n.format("dddd"));const s=r.subtract(7,"day");return n.isSame(s)||n.isSame(e,"year")?n.format("D MMMM"):n.format("DD-MM-YYYY")}function Km(t,e=Kt()){const n=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0),r=t.includes(" ")&&t.includes(":");if(!n.isValid())return"";const o=e.startOf("day");if(n.isSame(o,"day"))return r?n.format("H:mm"):"Vandaag";const i=o.subtract(1,"day");if(n.isSame(i,"day"))return r?`Gisteren ${n.format("H:mm")}`:"Gisteren";const s=o.subtract(6,"day");if(n.isSameOrAfter(s)&&n.isBefore(o))return Ud(r?n.format("dddd H:mm"):n.format("dddd"));const c=o.subtract(7,"day");return n.isSame(c)||n.isSame(e,"year")?r?n.format("D MMM H:mm"):n.format("D MMMM"):n.format("DD-MM-YYYY")}function Hd(t){const e=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY","YYYY-MM-DDTHH:mm:ss"],!0),n=t.includes(" ")&&t.includes(":");return e.isValid()?n&&e.isSame(Kt(),"year")?e.format("DD-MM-YYYY H:mm"):e.format("DD-MM-YYYY"):""}function jd(t){const e=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY","YYYY-MM-DDTHH:mm:ss"],!0);return e.isValid()?e.format("DD-MM-YYYY"):""}const vS={class:"bd-date"},Ym=l.defineComponent({__name:"BDDate",props:{date:{},displayTime:{type:Boolean,default:Bm.displayTime},format:{default:Bm.format}},setup(t){const e=t,n=l.computed(()=>e.date?e.format==="textual"?e.displayTime?Km(e.date):Wm(e.date):(e.format==="numeric",e.displayTime?Hd(e.date):jd(e.date)):"");return(r,o)=>(l.openBlock(),l.createElementBlock("span",vS,l.toDisplayString(n.value),1))}}),Ra=l.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,o=()=>{r("click")};return(i,s)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"bd-dropdown-item"},i.$attrs),[l.createVNode(qr,l.mergeProps({class:"dropdown-item",onClick:o},n),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16)],16))}});var Wd={exports:{}},Gm;function yS(){return Gm||(Gm=1,(function(t,e){(function(r,o){t.exports=o()})(self,function(){return(function(){var n={3099:(function(s){s.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}}),6077:(function(s,c,a){var d=a(111);s.exports=function(u){if(!d(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}}),1223:(function(s,c,a){var d=a(5112),u=a(30),f=a(3070),h=d("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:u(null)}),s.exports=function(m){p[h][m]=!0}}),1530:(function(s,c,a){var d=a(8710).charAt;s.exports=function(u,f,h){return f+(h?d(u,f).length:1)}}),5787:(function(s){s.exports=function(c,a,d){if(!(c instanceof a))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return c}}),9670:(function(s,c,a){var d=a(111);s.exports=function(u){if(!d(u))throw TypeError(String(u)+" is not an object");return u}}),4019:(function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),260:(function(s,c,a){var d=a(4019),u=a(9781),f=a(7854),h=a(111),p=a(6656),m=a(648),g=a(8880),v=a(1320),y=a(3070).f,b=a(9518),E=a(7674),C=a(5112),w=a(9711),I=f.Int8Array,A=I&&I.prototype,O=f.Uint8ClampedArray,K=O&&O.prototype,B=I&&b(I),F=A&&b(A),H=Object.prototype,Z=H.isPrototypeOf,W=C("toStringTag"),j=w("TYPED_ARRAY_TAG"),N=d&&!!E&&m(f.opera)!=="Opera",J=!1,z,V={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},ae=function(M){if(!h(M))return!1;var D=m(M);return D==="DataView"||p(V,D)||p(te,D)},pe=function(ve){if(!h(ve))return!1;var M=m(ve);return p(V,M)||p(te,M)},me=function(ve){if(pe(ve))return ve;throw TypeError("Target is not a typed array")},ye=function(ve){if(E){if(Z.call(B,ve))return ve}else for(var M in V)if(p(V,z)){var D=f[M];if(D&&(ve===D||Z.call(D,ve)))return ve}throw TypeError("Target is not a typed array constructor")},Ce=function(ve,M,D){if(u){if(D)for(var _ in V){var L=f[_];L&&p(L.prototype,ve)&&delete L.prototype[ve]}(!F[ve]||D)&&v(F,ve,D?M:N&&A[ve]||M)}},Se=function(ve,M,D){var _,L;if(u){if(E){if(D)for(_ in V)L=f[_],L&&p(L,ve)&&delete L[ve];if(!B[ve]||D)try{return v(B,ve,D?M:N&&I[ve]||M)}catch{}else return}for(_ in V)L=f[_],L&&(!L[ve]||D)&&v(L,ve,M)}};for(z in V)f[z]||(N=!1);if((!N||typeof B!="function"||B===Function.prototype)&&(B=function(){throw TypeError("Incorrect invocation")},N))for(z in V)f[z]&&E(f[z],B);if((!N||!F||F===H)&&(F=B.prototype,N))for(z in V)f[z]&&E(f[z].prototype,F);if(N&&b(K)!==F&&E(K,F),u&&!p(F,W)){J=!0,y(F,W,{get:function(){return h(this)?this[j]:void 0}});for(z in V)f[z]&&g(f[z],j,z)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:J&&j,aTypedArray:me,aTypedArrayConstructor:ye,exportTypedArrayMethod:Ce,exportTypedArrayStaticMethod:Se,isView:ae,isTypedArray:pe,TypedArray:B,TypedArrayPrototype:F}}),3331:(function(s,c,a){var d=a(7854),u=a(9781),f=a(4019),h=a(8880),p=a(2248),m=a(7293),g=a(5787),v=a(9958),y=a(7466),b=a(7067),E=a(1179),C=a(9518),w=a(7674),I=a(8006).f,A=a(3070).f,O=a(1285),K=a(8003),B=a(9909),F=B.get,H=B.set,Z="ArrayBuffer",W="DataView",j="prototype",N="Wrong length",J="Wrong index",z=d[Z],V=z,te=d[W],ae=te&&te[j],pe=Object.prototype,me=d.RangeError,ye=E.pack,Ce=E.unpack,Se=function(Q){return[Q&255]},ve=function(Q){return[Q&255,Q>>8&255]},M=function(Q){return[Q&255,Q>>8&255,Q>>16&255,Q>>24&255]},D=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},_=function(Q){return ye(Q,23,4)},L=function(Q){return ye(Q,52,8)},k=function(Q,q){A(Q[j],q,{get:function(){return F(this)[q]}})},S=function(Q,q,ne,se){var X=b(ne),re=F(Q);if(X+q>re.byteLength)throw me(J);var Ae=F(re.buffer).bytes,Ne=X+re.byteOffset,Oe=Ae.slice(Ne,Ne+q);return se?Oe:Oe.reverse()},R=function(Q,q,ne,se,X,re){var Ae=b(ne),Ne=F(Q);if(Ae+q>Ne.byteLength)throw me(J);for(var Oe=F(Ne.buffer).bytes,nt=Ae+Ne.byteOffset,mt=se(+X),rt=0;rt<q;rt++)Oe[nt+rt]=mt[re?rt:q-rt-1]};if(!f)V=function(q){g(this,V,Z);var ne=b(q);H(this,{bytes:O.call(new Array(ne),0),byteLength:ne}),u||(this.byteLength=ne)},te=function(q,ne,se){g(this,te,W),g(q,V,W);var X=F(q).byteLength,re=v(ne);if(re<0||re>X)throw me("Wrong offset");if(se=se===void 0?X-re:y(se),re+se>X)throw me(N);H(this,{buffer:q,byteLength:se,byteOffset:re}),u||(this.buffer=q,this.byteLength=se,this.byteOffset=re)},u&&(k(V,"byteLength"),k(te,"buffer"),k(te,"byteLength"),k(te,"byteOffset")),p(te[j],{getInt8:function(q){return S(this,1,q)[0]<<24>>24},getUint8:function(q){return S(this,1,q)[0]},getInt16:function(q){var ne=S(this,2,q,arguments.length>1?arguments[1]:void 0);return(ne[1]<<8|ne[0])<<16>>16},getUint16:function(q){var ne=S(this,2,q,arguments.length>1?arguments[1]:void 0);return ne[1]<<8|ne[0]},getInt32:function(q){return D(S(this,4,q,arguments.length>1?arguments[1]:void 0))},getUint32:function(q){return D(S(this,4,q,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(q){return Ce(S(this,4,q,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(q){return Ce(S(this,8,q,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(q,ne){R(this,1,q,Se,ne)},setUint8:function(q,ne){R(this,1,q,Se,ne)},setInt16:function(q,ne){R(this,2,q,ve,ne,arguments.length>2?arguments[2]:void 0)},setUint16:function(q,ne){R(this,2,q,ve,ne,arguments.length>2?arguments[2]:void 0)},setInt32:function(q,ne){R(this,4,q,M,ne,arguments.length>2?arguments[2]:void 0)},setUint32:function(q,ne){R(this,4,q,M,ne,arguments.length>2?arguments[2]:void 0)},setFloat32:function(q,ne){R(this,4,q,_,ne,arguments.length>2?arguments[2]:void 0)},setFloat64:function(q,ne){R(this,8,q,L,ne,arguments.length>2?arguments[2]:void 0)}});else{if(!m(function(){z(1)})||!m(function(){new z(-1)})||m(function(){return new z,new z(1.5),new z(NaN),z.name!=Z})){V=function(q){return g(this,V),new z(b(q))};for(var U=V[j]=z[j],Y=I(z),G=0,x;Y.length>G;)(x=Y[G++])in V||h(V,x,z[x]);U.constructor=V}w&&C(ae)!==pe&&w(ae,pe);var T=new te(new V(2)),$=ae.setInt8;T.setInt8(0,2147483648),T.setInt8(1,2147483649),(T.getInt8(0)||!T.getInt8(1))&&p(ae,{setInt8:function(q,ne){$.call(this,q,ne<<24>>24)},setUint8:function(q,ne){$.call(this,q,ne<<24>>24)}},{unsafe:!0})}K(V,Z),K(te,W),s.exports={ArrayBuffer:V,DataView:te}}),1048:(function(s,c,a){var d=a(7908),u=a(1400),f=a(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var v=d(this),y=f(v.length),b=u(m,y),E=u(g,y),C=arguments.length>2?arguments[2]:void 0,w=h((C===void 0?y:u(C,y))-E,y-b),I=1;for(E<b&&b<E+w&&(I=-1,E+=w-1,b+=w-1);w-- >0;)E in v?v[b]=v[E]:delete v[b],b+=I,E+=I;return v}}),1285:(function(s,c,a){var d=a(7908),u=a(1400),f=a(7466);s.exports=function(p){for(var m=d(this),g=f(m.length),v=arguments.length,y=u(v>1?arguments[1]:void 0,g),b=v>2?arguments[2]:void 0,E=b===void 0?g:u(b,g);E>y;)m[y++]=p;return m}}),8533:(function(s,c,a){var d=a(2092).forEach,u=a(9341),f=u("forEach");s.exports=f?[].forEach:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}}),8457:(function(s,c,a){var d=a(9974),u=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);s.exports=function(y){var b=u(y),E=typeof this=="function"?this:Array,C=arguments.length,w=C>1?arguments[1]:void 0,I=w!==void 0,A=g(b),O=0,K,B,F,H,Z,W;if(I&&(w=d(w,C>2?arguments[2]:void 0,2)),A!=null&&!(E==Array&&h(A)))for(H=A.call(b),Z=H.next,B=new E;!(F=Z.call(H)).done;O++)W=I?f(H,w,[F.value,O],!0):F.value,m(B,O,W);else for(K=p(b.length),B=new E(K);K>O;O++)W=I?w(b[O],O):b[O],m(B,O,W);return B.length=O,B}}),1318:(function(s,c,a){var d=a(5656),u=a(7466),f=a(1400),h=function(p){return function(m,g,v){var y=d(m),b=u(y.length),E=f(v,b),C;if(p&&g!=g){for(;b>E;)if(C=y[E++],C!=C)return!0}else for(;b>E;E++)if((p||E in y)&&y[E]===g)return p||E||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}}),2092:(function(s,c,a){var d=a(9974),u=a(8361),f=a(7908),h=a(7466),p=a(5417),m=[].push,g=function(v){var y=v==1,b=v==2,E=v==3,C=v==4,w=v==6,I=v==7,A=v==5||w;return function(O,K,B,F){for(var H=f(O),Z=u(H),W=d(K,B,3),j=h(Z.length),N=0,J=F||p,z=y?J(O,j):b||I?J(O,0):void 0,V,te;j>N;N++)if((A||N in Z)&&(V=Z[N],te=W(V,N,H),v))if(y)z[N]=te;else if(te)switch(v){case 3:return!0;case 5:return V;case 6:return N;case 2:m.call(z,V)}else switch(v){case 4:return!1;case 7:m.call(z,V)}return w?-1:E||C?C:z}};s.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}}),6583:(function(s,c,a){var d=a(5656),u=a(9958),f=a(7466),h=a(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,v=h("lastIndexOf"),y=g||!v;s.exports=y?function(E){if(g)return m.apply(this,arguments)||0;var C=d(this),w=f(C.length),I=w-1;for(arguments.length>1&&(I=p(I,u(arguments[1]))),I<0&&(I=w+I);I>=0;I--)if(I in C&&C[I]===E)return I||0;return-1}:m}),1194:(function(s,c,a){var d=a(7293),u=a(5112),f=a(7392),h=u("species");s.exports=function(p){return f>=51||!d(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}}),9341:(function(s,c,a){var d=a(7293);s.exports=function(u,f){var h=[][u];return!!h&&d(function(){h.call(null,f||function(){throw 1},1)})}}),3671:(function(s,c,a){var d=a(3099),u=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,v,y,b){d(v);var E=u(g),C=f(E),w=h(E.length),I=m?w-1:0,A=m?-1:1;if(y<2)for(;;){if(I in C){b=C[I],I+=A;break}if(I+=A,m?I<0:w<=I)throw TypeError("Reduce of empty array with no initial value")}for(;m?I>=0:w>I;I+=A)I in C&&(b=v(b,C[I],I,E));return b}};s.exports={left:p(!1),right:p(!0)}}),5417:(function(s,c,a){var d=a(111),u=a(3157),f=a(5112),h=f("species");s.exports=function(p,m){var g;return u(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||u(g.prototype))?g=void 0:d(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(m===0?0:m)}}),3411:(function(s,c,a){var d=a(9670),u=a(9212);s.exports=function(f,h,p,m){try{return m?h(d(p)[0],p[1]):h(p)}catch(g){throw u(f),g}}}),7072:(function(s,c,a){var d=a(5112),u=d("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[u]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var v=!1;try{var y={};y[u]=function(){return{next:function(){return{done:v=!0}}}},m(y)}catch{}return v}}),4326:(function(s){var c={}.toString;s.exports=function(a){return c.call(a).slice(8,-1)}}),648:(function(s,c,a){var d=a(1694),u=a(4326),f=a(5112),h=f("toStringTag"),p=u((function(){return arguments})())=="Arguments",m=function(g,v){try{return g[v]}catch{}};s.exports=d?u:function(g){var v,y,b;return g===void 0?"Undefined":g===null?"Null":typeof(y=m(v=Object(g),h))=="string"?y:p?u(v):(b=u(v))=="Object"&&typeof v.callee=="function"?"Arguments":b}}),9920:(function(s,c,a){var d=a(6656),u=a(3887),f=a(1236),h=a(3070);s.exports=function(p,m){for(var g=u(m),v=h.f,y=f.f,b=0;b<g.length;b++){var E=g[b];d(p,E)||v(p,E,y(m,E))}}}),8544:(function(s,c,a){var d=a(7293);s.exports=!d(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})}),4994:(function(s,c,a){var d=a(3383).IteratorPrototype,u=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};s.exports=function(g,v,y){var b=v+" Iterator";return g.prototype=u(d,{next:f(1,y)}),h(g,b,!1,!0),p[b]=m,g}}),8880:(function(s,c,a){var d=a(9781),u=a(3070),f=a(9114);s.exports=d?function(h,p,m){return u.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}}),9114:(function(s){s.exports=function(c,a){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:a}}}),6135:(function(s,c,a){var d=a(7593),u=a(3070),f=a(9114);s.exports=function(h,p,m){var g=d(p);g in h?u.f(h,g,f(0,m)):h[g]=m}}),654:(function(s,c,a){var d=a(2109),u=a(4994),f=a(9518),h=a(7674),p=a(8003),m=a(8880),g=a(1320),v=a(5112),y=a(1913),b=a(7497),E=a(3383),C=E.IteratorPrototype,w=E.BUGGY_SAFARI_ITERATORS,I=v("iterator"),A="keys",O="values",K="entries",B=function(){return this};s.exports=function(F,H,Z,W,j,N,J){u(Z,H,W);var z=function(M){if(M===j&&me)return me;if(!w&&M in ae)return ae[M];switch(M){case A:return function(){return new Z(this,M)};case O:return function(){return new Z(this,M)};case K:return function(){return new Z(this,M)}}return function(){return new Z(this)}},V=H+" Iterator",te=!1,ae=F.prototype,pe=ae[I]||ae["@@iterator"]||j&&ae[j],me=!w&&pe||z(j),ye=H=="Array"&&ae.entries||pe,Ce,Se,ve;if(ye&&(Ce=f(ye.call(new F)),C!==Object.prototype&&Ce.next&&(!y&&f(Ce)!==C&&(h?h(Ce,C):typeof Ce[I]!="function"&&m(Ce,I,B)),p(Ce,V,!0,!0),y&&(b[V]=B))),j==O&&pe&&pe.name!==O&&(te=!0,me=function(){return pe.call(this)}),(!y||J)&&ae[I]!==me&&m(ae,I,me),b[H]=me,j)if(Se={values:z(O),keys:N?me:z(A),entries:z(K)},J)for(ve in Se)(w||te||!(ve in ae))&&g(ae,ve,Se[ve]);else d({target:H,proto:!0,forced:w||te},Se);return Se}}),9781:(function(s,c,a){var d=a(7293);s.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(s,c,a){var d=a(7854),u=a(111),f=d.document,h=u(f)&&u(f.createElement);s.exports=function(p){return h?f.createElement(p):{}}}),8324:(function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),8113:(function(s,c,a){var d=a(5005);s.exports=d("navigator","userAgent")||""}),7392:(function(s,c,a){var d=a(7854),u=a(8113),f=d.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(g=m[1]))),s.exports=g&&+g}),748:(function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),2109:(function(s,c,a){var d=a(7854),u=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);s.exports=function(v,y){var b=v.target,E=v.global,C=v.stat,w,I,A,O,K,B;if(E?I=d:C?I=d[b]||p(b,{}):I=(d[b]||{}).prototype,I)for(A in y){if(K=y[A],v.noTargetGet?(B=u(I,A),O=B&&B.value):O=I[A],w=g(E?A:b+(C?".":"#")+A,v.forced),!w&&O!==void 0){if(typeof K==typeof O)continue;m(K,O)}(v.sham||O&&O.sham)&&f(K,"sham",!0),h(I,A,K,v)}}}),7293:(function(s){s.exports=function(c){try{return!!c()}catch{return!0}}}),7007:(function(s,c,a){a(4916);var d=a(1320),u=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!u(function(){var C=/./;return C.exec=function(){var w=[];return w.groups={a:"7"},w},"".replace(C,"$<a>")!=="7"}),v=(function(){return"a".replace(/./,"$0")==="$0"})(),y=f("replace"),b=(function(){return/./[y]?/./[y]("a","$0")==="":!1})(),E=!u(function(){var C=/(?:)/,w=C.exec;C.exec=function(){return w.apply(this,arguments)};var I="ab".split(C);return I.length!==2||I[0]!=="a"||I[1]!=="b"});s.exports=function(C,w,I,A){var O=f(C),K=!u(function(){var j={};return j[O]=function(){return 7},""[C](j)!=7}),B=K&&!u(function(){var j=!1,N=/a/;return C==="split"&&(N={},N.constructor={},N.constructor[m]=function(){return N},N.flags="",N[O]=/./[O]),N.exec=function(){return j=!0,null},N[O](""),!j});if(!K||!B||C==="replace"&&!(g&&v&&!b)||C==="split"&&!E){var F=/./[O],H=I(O,""[C],function(j,N,J,z,V){return N.exec===h?K&&!V?{done:!0,value:F.call(N,J,z)}:{done:!0,value:j.call(J,N,z)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:b}),Z=H[0],W=H[1];d(String.prototype,C,Z),d(RegExp.prototype,O,w==2?function(j,N){return W.call(j,this,N)}:function(j){return W.call(j,this)})}A&&p(RegExp.prototype[O],"sham",!0)}}),9974:(function(s,c,a){var d=a(3099);s.exports=function(u,f,h){if(d(u),f===void 0)return u;switch(h){case 0:return function(){return u.call(f)};case 1:return function(p){return u.call(f,p)};case 2:return function(p,m){return u.call(f,p,m)};case 3:return function(p,m,g){return u.call(f,p,m,g)}}return function(){return u.apply(f,arguments)}}}),5005:(function(s,c,a){var d=a(857),u=a(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(d[h])||f(u[h]):d[h]&&d[h][p]||u[h]&&u[h][p]}}),1246:(function(s,c,a){var d=a(648),u=a(7497),f=a(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||u[d(p)]}}),8554:(function(s,c,a){var d=a(9670),u=a(1246);s.exports=function(f){var h=u(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return d(h.call(f))}}),647:(function(s,c,a){var d=a(7908),u=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,v,y,b,E){var C=v+m.length,w=y.length,I=p;return b!==void 0&&(b=d(b),I=h),f.call(E,I,function(A,O){var K;switch(O.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,v);case"'":return g.slice(C);case"<":K=b[O.slice(1,-1)];break;default:var B=+O;if(B===0)return A;if(B>w){var F=u(B/10);return F===0?A:F<=w?y[F-1]===void 0?O.charAt(1):y[F-1]+O.charAt(1):A}K=y[B-1]}return K===void 0?"":K})}}),7854:(function(s,c,a){var d=function(u){return u&&u.Math==Math&&u};s.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof a.g=="object"&&a.g)||(function(){return this})()||Function("return this")()}),6656:(function(s){var c={}.hasOwnProperty;s.exports=function(a,d){return c.call(a,d)}}),3501:(function(s){s.exports={}}),490:(function(s,c,a){var d=a(5005);s.exports=d("document","documentElement")}),4664:(function(s,c,a){var d=a(9781),u=a(7293),f=a(317);s.exports=!d&&!u(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})}),1179:(function(s){var c=Math.abs,a=Math.pow,d=Math.floor,u=Math.log,f=Math.LN2,h=function(m,g,v){var y=new Array(v),b=v*8-g-1,E=(1<<b)-1,C=E>>1,w=g===23?a(2,-24)-a(2,-77):0,I=m<0||m===0&&1/m<0?1:0,A=0,O,K,B;for(m=c(m),m!=m||m===1/0?(K=m!=m?1:0,O=E):(O=d(u(m)/f),m*(B=a(2,-O))<1&&(O--,B*=2),O+C>=1?m+=w/B:m+=w*a(2,1-C),m*B>=2&&(O++,B/=2),O+C>=E?(K=0,O=E):O+C>=1?(K=(m*B-1)*a(2,g),O=O+C):(K=m*a(2,C-1)*a(2,g),O=0));g>=8;y[A++]=K&255,K/=256,g-=8);for(O=O<<g|K,b+=g;b>0;y[A++]=O&255,O/=256,b-=8);return y[--A]|=I*128,y},p=function(m,g){var v=m.length,y=v*8-g-1,b=(1<<y)-1,E=b>>1,C=y-7,w=v-1,I=m[w--],A=I&127,O;for(I>>=7;C>0;A=A*256+m[w],w--,C-=8);for(O=A&(1<<-C)-1,A>>=-C,C+=g;C>0;O=O*256+m[w],w--,C-=8);if(A===0)A=1-E;else{if(A===b)return O?NaN:I?-1/0:1/0;O=O+a(2,g),A=A-E}return(I?-1:1)*O*a(2,A-g)};s.exports={pack:h,unpack:p}}),8361:(function(s,c,a){var d=a(7293),u=a(4326),f="".split;s.exports=d(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?f.call(h,""):Object(h)}:Object}),9587:(function(s,c,a){var d=a(111),u=a(7674);s.exports=function(f,h,p){var m,g;return u&&typeof(m=h.constructor)=="function"&&m!==p&&d(g=m.prototype)&&g!==p.prototype&&u(f,g),f}}),2788:(function(s,c,a){var d=a(5465),u=Function.toString;typeof d.inspectSource!="function"&&(d.inspectSource=function(f){return u.call(f)}),s.exports=d.inspectSource}),9909:(function(s,c,a){var d=a(8536),u=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),v=a(3501),y=u.WeakMap,b,E,C,w=function(H){return C(H)?E(H):b(H,{})},I=function(H){return function(Z){var W;if(!f(Z)||(W=E(Z)).type!==H)throw TypeError("Incompatible receiver, "+H+" required");return W}};if(d){var A=m.state||(m.state=new y),O=A.get,K=A.has,B=A.set;b=function(H,Z){return Z.facade=H,B.call(A,H,Z),Z},E=function(H){return O.call(A,H)||{}},C=function(H){return K.call(A,H)}}else{var F=g("state");v[F]=!0,b=function(H,Z){return Z.facade=H,h(H,F,Z),Z},E=function(H){return p(H,F)?H[F]:{}},C=function(H){return p(H,F)}}s.exports={set:b,get:E,has:C,enforce:w,getterFor:I}}),7659:(function(s,c,a){var d=a(5112),u=a(7497),f=d("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(u.Array===p||h[f]===p)}}),3157:(function(s,c,a){var d=a(4326);s.exports=Array.isArray||function(f){return d(f)=="Array"}}),4705:(function(s,c,a){var d=a(7293),u=/#|\.prototype\./,f=function(v,y){var b=p[h(v)];return b==g?!0:b==m?!1:typeof y=="function"?d(y):!!y},h=f.normalize=function(v){return String(v).replace(u,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";s.exports=f}),111:(function(s){s.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}}),1913:(function(s){s.exports=!1}),7850:(function(s,c,a){var d=a(111),u=a(4326),f=a(5112),h=f("match");s.exports=function(p){var m;return d(p)&&((m=p[h])!==void 0?!!m:u(p)=="RegExp")}}),9212:(function(s,c,a){var d=a(9670);s.exports=function(u){var f=u.return;if(f!==void 0)return d(f.call(u)).value}}),3383:(function(s,c,a){var d=a(7293),u=a(9518),f=a(8880),h=a(6656),p=a(5112),m=a(1913),g=p("iterator"),v=!1,y=function(){return this},b,E,C;[].keys&&(C=[].keys(),"next"in C?(E=u(u(C)),E!==Object.prototype&&(b=E)):v=!0);var w=b==null||d(function(){var I={};return b[g].call(I)!==I});w&&(b={}),(!m||w)&&!h(b,g)&&f(b,g,y),s.exports={IteratorPrototype:b,BUGGY_SAFARI_ITERATORS:v}}),7497:(function(s){s.exports={}}),133:(function(s,c,a){var d=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!d(function(){return!String(Symbol())})}),590:(function(s,c,a){var d=a(7293),u=a(5112),f=a(1913),h=u("iterator");s.exports=!d(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),m=p.searchParams,g="";return p.pathname="c%20d",m.forEach(function(v,y){m.delete("b"),g+=y+v}),f&&!p.toJSON||!m.sort||p.href!=="http://a/c%20d?a=1&c=3"||m.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!m[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})}),8536:(function(s,c,a){var d=a(7854),u=a(2788),f=d.WeakMap;s.exports=typeof f=="function"&&/native code/.test(u(f))}),1574:(function(s,c,a){var d=a(9781),u=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),v=Object.assign,y=Object.defineProperty;s.exports=!v||u(function(){if(d&&v({b:1},v(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},E={},C=Symbol(),w="abcdefghijklmnopqrst";return b[C]=7,w.split("").forEach(function(I){E[I]=I}),v({},b)[C]!=7||f(v({},E)).join("")!=w})?function(E,C){for(var w=m(E),I=arguments.length,A=1,O=h.f,K=p.f;I>A;)for(var B=g(arguments[A++]),F=O?f(B).concat(O(B)):f(B),H=F.length,Z=0,W;H>Z;)W=F[Z++],(!d||K.call(B,W))&&(w[W]=B[W]);return w}:v}),30:(function(s,c,a){var d=a(9670),u=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),v=">",y="<",b="prototype",E="script",C=g("IE_PROTO"),w=function(){},I=function(F){return y+E+v+F+y+"/"+E+v},A=function(F){F.write(I("")),F.close();var H=F.parentWindow.Object;return F=null,H},O=function(){var F=m("iframe"),H="java"+E+":",Z;return F.style.display="none",p.appendChild(F),F.src=String(H),Z=F.contentWindow.document,Z.open(),Z.write(I("document.F=Object")),Z.close(),Z.F},K,B=function(){try{K=document.domain&&new ActiveXObject("htmlfile")}catch{}B=K?A(K):O();for(var F=f.length;F--;)delete B[b][f[F]];return B()};h[C]=!0,s.exports=Object.create||function(H,Z){var W;return H!==null?(w[b]=d(H),W=new w,w[b]=null,W[C]=H):W=B(),Z===void 0?W:u(W,Z)}}),6048:(function(s,c,a){var d=a(9781),u=a(3070),f=a(9670),h=a(1956);s.exports=d?Object.defineProperties:function(m,g){f(m);for(var v=h(g),y=v.length,b=0,E;y>b;)u.f(m,E=v[b++],g[E]);return m}}),3070:(function(s,c,a){var d=a(9781),u=a(4664),f=a(9670),h=a(7593),p=Object.defineProperty;c.f=d?p:function(g,v,y){if(f(g),v=h(v,!0),f(y),u)try{return p(g,v,y)}catch{}if("get"in y||"set"in y)throw TypeError("Accessors not supported");return"value"in y&&(g[v]=y.value),g}}),1236:(function(s,c,a){var d=a(9781),u=a(5296),f=a(9114),h=a(5656),p=a(7593),m=a(6656),g=a(4664),v=Object.getOwnPropertyDescriptor;c.f=d?v:function(b,E){if(b=h(b),E=p(E,!0),g)try{return v(b,E)}catch{}if(m(b,E))return f(!u.f.call(b,E),b[E])}}),8006:(function(s,c,a){var d=a(6324),u=a(748),f=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(p){return d(p,f)}}),5181:(function(s,c){c.f=Object.getOwnPropertySymbols}),9518:(function(s,c,a){var d=a(6656),u=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),d(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}}),6324:(function(s,c,a){var d=a(6656),u=a(5656),f=a(1318).indexOf,h=a(3501);s.exports=function(p,m){var g=u(p),v=0,y=[],b;for(b in g)!d(h,b)&&d(g,b)&&y.push(b);for(;m.length>v;)d(g,b=m[v++])&&(~f(y,b)||y.push(b));return y}}),1956:(function(s,c,a){var d=a(6324),u=a(748);s.exports=Object.keys||function(h){return d(h,u)}}),5296:(function(s,c){var a={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,u=d&&!a.call({1:2},1);c.f=u?function(h){var p=d(this,h);return!!p&&p.enumerable}:a}),7674:(function(s,c,a){var d=a(9670),u=a(6077);s.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var f=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),f=h instanceof Array}catch{}return function(g,v){return d(g),u(v),f?p.call(g,v):g.__proto__=v,g}})():void 0)}),288:(function(s,c,a){var d=a(1694),u=a(648);s.exports=d?{}.toString:function(){return"[object "+u(this)+"]"}}),3887:(function(s,c,a){var d=a(5005),u=a(8006),f=a(5181),h=a(9670);s.exports=d("Reflect","ownKeys")||function(m){var g=u.f(h(m)),v=f.f;return v?g.concat(v(m)):g}}),857:(function(s,c,a){var d=a(7854);s.exports=d}),2248:(function(s,c,a){var d=a(1320);s.exports=function(u,f,h){for(var p in f)d(u,p,f[p],h);return u}}),1320:(function(s,c,a){var d=a(7854),u=a(8880),f=a(6656),h=a(3505),p=a(2788),m=a(9909),g=m.get,v=m.enforce,y=String(String).split("String");(s.exports=function(b,E,C,w){var I=w?!!w.unsafe:!1,A=w?!!w.enumerable:!1,O=w?!!w.noTargetGet:!1,K;if(typeof C=="function"&&(typeof E=="string"&&!f(C,"name")&&u(C,"name",E),K=v(C),K.source||(K.source=y.join(typeof E=="string"?E:""))),b===d){A?b[E]=C:h(E,C);return}else I?!O&&b[E]&&(A=!0):delete b[E];A?b[E]=C:u(b,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})}),7651:(function(s,c,a){var d=a(4326),u=a(2261);s.exports=function(f,h){var p=f.exec;if(typeof p=="function"){var m=p.call(f,h);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(d(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(f,h)}}),2261:(function(s,c,a){var d=a(7066),u=a(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=(function(){var b=/a/,E=/b*/g;return f.call(b,"a"),f.call(E,"a"),b.lastIndex!==0||E.lastIndex!==0})(),g=u.UNSUPPORTED_Y||u.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,y=m||v||g;y&&(p=function(E){var C=this,w,I,A,O,K=g&&C.sticky,B=d.call(C),F=C.source,H=0,Z=E;return K&&(B=B.replace("y",""),B.indexOf("g")===-1&&(B+="g"),Z=String(E).slice(C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&E[C.lastIndex-1]!==`
|
|
1175
|
+
`)&&(F="(?: "+F+")",Z=" "+Z,H++),I=new RegExp("^(?:"+F+")",B)),v&&(I=new RegExp("^"+F+"$(?!\\s)",B)),m&&(w=C.lastIndex),A=f.call(K?I:C,Z),K?A?(A.input=A.input.slice(H),A[0]=A[0].slice(H),A.index=C.lastIndex,C.lastIndex+=A[0].length):C.lastIndex=0:m&&A&&(C.lastIndex=C.global?A.index+A[0].length:w),v&&A&&A.length>1&&h.call(A[0],I,function(){for(O=1;O<arguments.length-2;O++)arguments[O]===void 0&&(A[O]=void 0)}),A}),s.exports=p}),7066:(function(s,c,a){var d=a(9670);s.exports=function(){var u=d(this),f="";return u.global&&(f+="g"),u.ignoreCase&&(f+="i"),u.multiline&&(f+="m"),u.dotAll&&(f+="s"),u.unicode&&(f+="u"),u.sticky&&(f+="y"),f}}),2999:(function(s,c,a){var d=a(7293);function u(f,h){return RegExp(f,h)}c.UNSUPPORTED_Y=d(function(){var f=u("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),c.BROKEN_CARET=d(function(){var f=u("^r","gy");return f.lastIndex=2,f.exec("str")!=null})}),4488:(function(s){s.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}}),3505:(function(s,c,a){var d=a(7854),u=a(8880);s.exports=function(f,h){try{u(d,f,h)}catch{d[f]=h}return h}}),6340:(function(s,c,a){var d=a(5005),u=a(3070),f=a(5112),h=a(9781),p=f("species");s.exports=function(m){var g=d(m),v=u.f;h&&g&&!g[p]&&v(g,p,{configurable:!0,get:function(){return this}})}}),8003:(function(s,c,a){var d=a(3070).f,u=a(6656),f=a(5112),h=f("toStringTag");s.exports=function(p,m,g){p&&!u(p=g?p:p.prototype,h)&&d(p,h,{configurable:!0,value:m})}}),6200:(function(s,c,a){var d=a(2309),u=a(9711),f=d("keys");s.exports=function(h){return f[h]||(f[h]=u(h))}}),5465:(function(s,c,a){var d=a(7854),u=a(3505),f="__core-js_shared__",h=d[f]||u(f,{});s.exports=h}),2309:(function(s,c,a){var d=a(1913),u=a(5465);(s.exports=function(f,h){return u[f]||(u[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:d?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),6707:(function(s,c,a){var d=a(9670),u=a(3099),f=a(5112),h=f("species");s.exports=function(p,m){var g=d(p).constructor,v;return g===void 0||(v=d(g)[h])==null?m:u(v)}}),8710:(function(s,c,a){var d=a(9958),u=a(4488),f=function(h){return function(p,m){var g=String(u(p)),v=d(m),y=g.length,b,E;return v<0||v>=y?h?"":void 0:(b=g.charCodeAt(v),b<55296||b>56319||v+1===y||(E=g.charCodeAt(v+1))<56320||E>57343?h?g.charAt(v):b:h?g.slice(v,v+2):(b-55296<<10)+(E-56320)+65536)}};s.exports={codeAt:f(!1),charAt:f(!0)}}),3197:(function(s){var c=2147483647,a=36,d=1,u=26,f=38,h=700,p=72,m=128,g="-",v=/[^\0-\u007E]/,y=/[.\u3002\uFF0E\uFF61]/g,b="Overflow: input needs wider integers to process",E=a-d,C=Math.floor,w=String.fromCharCode,I=function(B){for(var F=[],H=0,Z=B.length;H<Z;){var W=B.charCodeAt(H++);if(W>=55296&&W<=56319&&H<Z){var j=B.charCodeAt(H++);(j&64512)==56320?F.push(((W&1023)<<10)+(j&1023)+65536):(F.push(W),H--)}else F.push(W)}return F},A=function(B){return B+22+75*(B<26)},O=function(B,F,H){var Z=0;for(B=H?C(B/h):B>>1,B+=C(B/F);B>E*u>>1;Z+=a)B=C(B/E);return C(Z+(E+1)*B/(B+f))},K=function(B){var F=[];B=I(B);var H=B.length,Z=m,W=0,j=p,N,J;for(N=0;N<B.length;N++)J=B[N],J<128&&F.push(w(J));var z=F.length,V=z;for(z&&F.push(g);V<H;){var te=c;for(N=0;N<B.length;N++)J=B[N],J>=Z&&J<te&&(te=J);var ae=V+1;if(te-Z>C((c-W)/ae))throw RangeError(b);for(W+=(te-Z)*ae,Z=te,N=0;N<B.length;N++){if(J=B[N],J<Z&&++W>c)throw RangeError(b);if(J==Z){for(var pe=W,me=a;;me+=a){var ye=me<=j?d:me>=j+u?u:me-j;if(pe<ye)break;var Ce=pe-ye,Se=a-ye;F.push(w(A(ye+Ce%Se))),pe=C(Ce/Se)}F.push(w(A(pe))),j=O(W,ae,V==z),W=0,++V}}++W,++Z}return F.join("")};s.exports=function(B){var F=[],H=B.toLowerCase().replace(y,".").split("."),Z,W;for(Z=0;Z<H.length;Z++)W=H[Z],F.push(v.test(W)?"xn--"+K(W):W);return F.join(".")}}),6091:(function(s,c,a){var d=a(7293),u=a(1361),f="
";s.exports=function(h){return d(function(){return!!u[h]()||f[h]()!=f||u[h].name!==h})}}),3111:(function(s,c,a){var d=a(4488),u=a(1361),f="["+u+"]",h=RegExp("^"+f+f+"*"),p=RegExp(f+f+"*$"),m=function(g){return function(v){var y=String(d(v));return g&1&&(y=y.replace(h,"")),g&2&&(y=y.replace(p,"")),y}};s.exports={start:m(1),end:m(2),trim:m(3)}}),1400:(function(s,c,a){var d=a(9958),u=Math.max,f=Math.min;s.exports=function(h,p){var m=d(h);return m<0?u(m+p,0):f(m,p)}}),7067:(function(s,c,a){var d=a(9958),u=a(7466);s.exports=function(f){if(f===void 0)return 0;var h=d(f),p=u(h);if(h!==p)throw RangeError("Wrong length or index");return p}}),5656:(function(s,c,a){var d=a(8361),u=a(4488);s.exports=function(f){return d(u(f))}}),9958:(function(s){var c=Math.ceil,a=Math.floor;s.exports=function(d){return isNaN(d=+d)?0:(d>0?a:c)(d)}}),7466:(function(s,c,a){var d=a(9958),u=Math.min;s.exports=function(f){return f>0?u(d(f),9007199254740991):0}}),7908:(function(s,c,a){var d=a(4488);s.exports=function(u){return Object(d(u))}}),4590:(function(s,c,a){var d=a(3002);s.exports=function(u,f){var h=d(u);if(h%f)throw RangeError("Wrong offset");return h}}),3002:(function(s,c,a){var d=a(9958);s.exports=function(u){var f=d(u);if(f<0)throw RangeError("The argument can't be less than 0");return f}}),7593:(function(s,c,a){var d=a(111);s.exports=function(u,f){if(!d(u))return u;var h,p;if(f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u))||typeof(h=u.valueOf)=="function"&&!d(p=h.call(u))||!f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u)))return p;throw TypeError("Can't convert object to primitive value")}}),1694:(function(s,c,a){var d=a(5112),u=d("toStringTag"),f={};f[u]="z",s.exports=String(f)==="[object z]"}),9843:(function(s,c,a){var d=a(2109),u=a(7854),f=a(9781),h=a(3832),p=a(260),m=a(3331),g=a(5787),v=a(9114),y=a(8880),b=a(7466),E=a(7067),C=a(4590),w=a(7593),I=a(6656),A=a(648),O=a(111),K=a(30),B=a(7674),F=a(8006).f,H=a(7321),Z=a(2092).forEach,W=a(6340),j=a(3070),N=a(1236),J=a(9909),z=a(9587),V=J.get,te=J.set,ae=j.f,pe=N.f,me=Math.round,ye=u.RangeError,Ce=m.ArrayBuffer,Se=m.DataView,ve=p.NATIVE_ARRAY_BUFFER_VIEWS,M=p.TYPED_ARRAY_TAG,D=p.TypedArray,_=p.TypedArrayPrototype,L=p.aTypedArrayConstructor,k=p.isTypedArray,S="BYTES_PER_ELEMENT",R="Wrong length",U=function(Q,q){for(var ne=0,se=q.length,X=new(L(Q))(se);se>ne;)X[ne]=q[ne++];return X},Y=function(Q,q){ae(Q,q,{get:function(){return V(this)[q]}})},G=function(Q){var q;return Q instanceof Ce||(q=A(Q))=="ArrayBuffer"||q=="SharedArrayBuffer"},x=function(Q,q){return k(Q)&&typeof q!="symbol"&&q in Q&&String(+q)==String(q)},T=function(q,ne){return x(q,ne=w(ne,!0))?v(2,q[ne]):pe(q,ne)},$=function(q,ne,se){return x(q,ne=w(ne,!0))&&O(se)&&I(se,"value")&&!I(se,"get")&&!I(se,"set")&&!se.configurable&&(!I(se,"writable")||se.writable)&&(!I(se,"enumerable")||se.enumerable)?(q[ne]=se.value,q):ae(q,ne,se)};f?(ve||(N.f=T,j.f=$,Y(_,"buffer"),Y(_,"byteOffset"),Y(_,"byteLength"),Y(_,"length")),d({target:"Object",stat:!0,forced:!ve},{getOwnPropertyDescriptor:T,defineProperty:$}),s.exports=function(Q,q,ne){var se=Q.match(/\d+$/)[0]/8,X=Q+(ne?"Clamped":"")+"Array",re="get"+Q,Ae="set"+Q,Ne=u[X],Oe=Ne,nt=Oe&&Oe.prototype,mt={},rt=function(qe,$e){var ht=V(qe);return ht.view[re]($e*se+ht.byteOffset,!0)},Zr=function(qe,$e,ht){var tn=V(qe);ne&&(ht=(ht=me(ht))<0?0:ht>255?255:ht&255),tn.view[Ae]($e*se+tn.byteOffset,ht,!0)},Tn=function(qe,$e){ae(qe,$e,{get:function(){return rt(this,$e)},set:function(ht){return Zr(this,$e,ht)},enumerable:!0})};ve?h&&(Oe=q(function(qe,$e,ht,tn){return g(qe,Oe,X),z((function(){return O($e)?G($e)?tn!==void 0?new Ne($e,C(ht,se),tn):ht!==void 0?new Ne($e,C(ht,se)):new Ne($e):k($e)?U(Oe,$e):H.call(Oe,$e):new Ne(E($e))})(),qe,Oe)}),B&&B(Oe,D),Z(F(Ne),function(qe){qe in Oe||y(Oe,qe,Ne[qe])}),Oe.prototype=nt):(Oe=q(function(qe,$e,ht,tn){g(qe,Oe,X);var Bo=0,Jr=0,Xr,pn,ur;if(!O($e))ur=E($e),pn=ur*se,Xr=new Ce(pn);else if(G($e)){Xr=$e,Jr=C(ht,se);var xi=$e.byteLength;if(tn===void 0){if(xi%se||(pn=xi-Jr,pn<0))throw ye(R)}else if(pn=b(tn)*se,pn+Jr>xi)throw ye(R);ur=pn/se}else return k($e)?U(Oe,$e):H.call(Oe,$e);for(te(qe,{buffer:Xr,byteOffset:Jr,byteLength:pn,length:ur,view:new Se(Xr)});Bo<ur;)Tn(qe,Bo++)}),B&&B(Oe,D),nt=Oe.prototype=K(_)),nt.constructor!==Oe&&y(nt,"constructor",Oe),M&&y(nt,M,X),mt[X]=Oe,d({global:!0,forced:Oe!=Ne,sham:!ve},mt),S in Oe||y(Oe,S,se),S in nt||y(nt,S,se),W(X)}):s.exports=function(){}}),3832:(function(s,c,a){var d=a(7854),u=a(7293),f=a(7072),h=a(260).NATIVE_ARRAY_BUFFER_VIEWS,p=d.ArrayBuffer,m=d.Int8Array;s.exports=!h||!u(function(){m(1)})||!u(function(){new m(-1)})||!f(function(g){new m,new m(null),new m(1.5),new m(g)},!0)||u(function(){return new m(new p(2),1,void 0).length!==1})}),3074:(function(s,c,a){var d=a(260).aTypedArrayConstructor,u=a(6707);s.exports=function(f,h){for(var p=u(f,f.constructor),m=0,g=h.length,v=new(d(p))(g);g>m;)v[m]=h[m++];return v}}),7321:(function(s,c,a){var d=a(7908),u=a(7466),f=a(1246),h=a(7659),p=a(9974),m=a(260).aTypedArrayConstructor;s.exports=function(v){var y=d(v),b=arguments.length,E=b>1?arguments[1]:void 0,C=E!==void 0,w=f(y),I,A,O,K,B,F;if(w!=null&&!h(w))for(B=w.call(y),F=B.next,y=[];!(K=F.call(B)).done;)y.push(K.value);for(C&&b>2&&(E=p(E,arguments[2],2)),A=u(y.length),O=new(m(this))(A),I=0;A>I;I++)O[I]=C?E(y[I],I):y[I];return O}}),9711:(function(s){var c=0,a=Math.random();s.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++c+a).toString(36)}}),3307:(function(s,c,a){var d=a(133);s.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),5112:(function(s,c,a){var d=a(7854),u=a(2309),f=a(6656),h=a(9711),p=a(133),m=a(3307),g=u("wks"),v=d.Symbol,y=m?v:v&&v.withoutSetter||h;s.exports=function(b){return f(g,b)||(p&&f(v,b)?g[b]=v[b]:g[b]=y("Symbol."+b)),g[b]}}),1361:(function(s){s.exports=`
|
|
1176
|
+
\v\f\r \u2028\u2029\uFEFF`}),8264:(function(s,c,a){var d=a(2109),u=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=u[p];d({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)}),2222:(function(s,c,a){var d=a(2109),u=a(7293),f=a(3157),h=a(111),p=a(7908),m=a(7466),g=a(6135),v=a(5417),y=a(1194),b=a(5112),E=a(7392),C=b("isConcatSpreadable"),w=9007199254740991,I="Maximum allowed index exceeded",A=E>=51||!u(function(){var F=[];return F[C]=!1,F.concat()[0]!==F}),O=y("concat"),K=function(F){if(!h(F))return!1;var H=F[C];return H!==void 0?!!H:f(F)},B=!A||!O;d({target:"Array",proto:!0,forced:B},{concat:function(H){var Z=p(this),W=v(Z,0),j=0,N,J,z,V,te;for(N=-1,z=arguments.length;N<z;N++)if(te=N===-1?Z:arguments[N],K(te)){if(V=m(te.length),j+V>w)throw TypeError(I);for(J=0;J<V;J++,j++)J in te&&g(W,j,te[J])}else{if(j>=w)throw TypeError(I);g(W,j++,te)}return W.length=j,W}})}),7327:(function(s,c,a){var d=a(2109),u=a(2092).filter,f=a(1194),h=f("filter");d({target:"Array",proto:!0,forced:!h},{filter:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})}),2772:(function(s,c,a){var d=a(2109),u=a(1318).indexOf,f=a(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");d({target:"Array",proto:!0,forced:p||!m},{indexOf:function(v){return p?h.apply(this,arguments)||0:u(this,v,arguments.length>1?arguments[1]:void 0)}})}),6992:(function(s,c,a){var d=a(5656),u=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,v=h.getterFor(m);s.exports=p(Array,"Array",function(y,b){g(this,{type:m,target:d(y),index:0,kind:b})},function(){var y=v(this),b=y.target,E=y.kind,C=y.index++;return!b||C>=b.length?(y.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:b[C],done:!1}:{value:[C,b[C]],done:!1}},"values"),f.Arguments=f.Array,u("keys"),u("values"),u("entries")}),1249:(function(s,c,a){var d=a(2109),u=a(2092).map,f=a(1194),h=f("map");d({target:"Array",proto:!0,forced:!h},{map:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})}),7042:(function(s,c,a){var d=a(2109),u=a(111),f=a(3157),h=a(1400),p=a(7466),m=a(5656),g=a(6135),v=a(5112),y=a(1194),b=y("slice"),E=v("species"),C=[].slice,w=Math.max;d({target:"Array",proto:!0,forced:!b},{slice:function(A,O){var K=m(this),B=p(K.length),F=h(A,B),H=h(O===void 0?B:O,B),Z,W,j;if(f(K)&&(Z=K.constructor,typeof Z=="function"&&(Z===Array||f(Z.prototype))?Z=void 0:u(Z)&&(Z=Z[E],Z===null&&(Z=void 0)),Z===Array||Z===void 0))return C.call(K,F,H);for(W=new(Z===void 0?Array:Z)(w(H-F,0)),j=0;F<H;F++,j++)F in K&&g(W,j,K[F]);return W.length=j,W}})}),561:(function(s,c,a){var d=a(2109),u=a(1400),f=a(9958),h=a(7466),p=a(7908),m=a(5417),g=a(6135),v=a(1194),y=v("splice"),b=Math.max,E=Math.min,C=9007199254740991,w="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!y},{splice:function(A,O){var K=p(this),B=h(K.length),F=u(A,B),H=arguments.length,Z,W,j,N,J,z;if(H===0?Z=W=0:H===1?(Z=0,W=B-F):(Z=H-2,W=E(b(f(O),0),B-F)),B+Z-W>C)throw TypeError(w);for(j=m(K,W),N=0;N<W;N++)J=F+N,J in K&&g(j,N,K[J]);if(j.length=W,Z<W){for(N=F;N<B-W;N++)J=N+W,z=N+Z,J in K?K[z]=K[J]:delete K[z];for(N=B;N>B-W+Z;N--)delete K[N-1]}else if(Z>W)for(N=B-W;N>F;N--)J=N+W-1,z=N+Z-1,J in K?K[z]=K[J]:delete K[z];for(N=0;N<Z;N++)K[N+F]=arguments[N+2];return K.length=B-W+Z,j}})}),8309:(function(s,c,a){var d=a(9781),u=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";d&&!(m in f)&&u(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})}),489:(function(s,c,a){var d=a(2109),u=a(7293),f=a(7908),h=a(9518),p=a(8544),m=u(function(){h(1)});d({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(v){return h(f(v))}})}),1539:(function(s,c,a){var d=a(1694),u=a(1320),f=a(288);d||u(Object.prototype,"toString",f,{unsafe:!0})}),4916:(function(s,c,a){var d=a(2109),u=a(2261);d({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})}),9714:(function(s,c,a){var d=a(1320),u=a(9670),f=a(7293),h=a(7066),p="toString",m=RegExp.prototype,g=m[p],v=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),y=g.name!=p;(v||y)&&d(RegExp.prototype,p,function(){var E=u(this),C=String(E.source),w=E.flags,I=String(w===void 0&&E instanceof RegExp&&!("flags"in m)?h.call(E):w);return"/"+C+"/"+I},{unsafe:!0})}),8783:(function(s,c,a){var d=a(8710).charAt,u=a(9909),f=a(654),h="String Iterator",p=u.set,m=u.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var v=m(this),y=v.string,b=v.index,E;return b>=y.length?{value:void 0,done:!0}:(E=d(y,b),v.index+=E.length,{value:E,done:!1})})}),4723:(function(s,c,a){var d=a(7007),u=a(9670),f=a(7466),h=a(4488),p=a(1530),m=a(7651);d("match",1,function(g,v,y){return[function(E){var C=h(this),w=E?.[g];return w!==void 0?w.call(E,C):new RegExp(E)[g](String(C))},function(b){var E=y(v,b,this);if(E.done)return E.value;var C=u(b),w=String(this);if(!C.global)return m(C,w);var I=C.unicode;C.lastIndex=0;for(var A=[],O=0,K;(K=m(C,w))!==null;){var B=String(K[0]);A[O]=B,B===""&&(C.lastIndex=p(w,f(C.lastIndex),I)),O++}return O===0?null:A}]})}),5306:(function(s,c,a){var d=a(7007),u=a(9670),f=a(7466),h=a(9958),p=a(4488),m=a(1530),g=a(647),v=a(7651),y=Math.max,b=Math.min,E=function(C){return C===void 0?C:String(C)};d("replace",2,function(C,w,I,A){var O=A.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,K=A.REPLACE_KEEPS_$0,B=O?"$":"$0";return[function(H,Z){var W=p(this),j=H?.[C];return j!==void 0?j.call(H,W,Z):w.call(String(W),H,Z)},function(F,H){if(!O&&K||typeof H=="string"&&H.indexOf(B)===-1){var Z=I(w,F,this,H);if(Z.done)return Z.value}var W=u(F),j=String(this),N=typeof H=="function";N||(H=String(H));var J=W.global;if(J){var z=W.unicode;W.lastIndex=0}for(var V=[];;){var te=v(W,j);if(te===null||(V.push(te),!J))break;var ae=String(te[0]);ae===""&&(W.lastIndex=m(j,f(W.lastIndex),z))}for(var pe="",me=0,ye=0;ye<V.length;ye++){te=V[ye];for(var Ce=String(te[0]),Se=y(b(h(te.index),j.length),0),ve=[],M=1;M<te.length;M++)ve.push(E(te[M]));var D=te.groups;if(N){var _=[Ce].concat(ve,Se,j);D!==void 0&&_.push(D);var L=String(H.apply(void 0,_))}else L=g(Ce,j,Se,ve,D,H);Se>=me&&(pe+=j.slice(me,Se)+L,me=Se+Ce.length)}return pe+j.slice(me)}]})}),3123:(function(s,c,a){var d=a(7007),u=a(7850),f=a(9670),h=a(4488),p=a(6707),m=a(1530),g=a(7466),v=a(7651),y=a(2261),b=a(7293),E=[].push,C=Math.min,w=4294967295,I=!b(function(){return!RegExp(w,"y")});d("split",2,function(A,O,K){var B;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?B=function(F,H){var Z=String(h(this)),W=H===void 0?w:H>>>0;if(W===0)return[];if(F===void 0)return[Z];if(!u(F))return O.call(Z,F,W);for(var j=[],N=(F.ignoreCase?"i":"")+(F.multiline?"m":"")+(F.unicode?"u":"")+(F.sticky?"y":""),J=0,z=new RegExp(F.source,N+"g"),V,te,ae;(V=y.call(z,Z))&&(te=z.lastIndex,!(te>J&&(j.push(Z.slice(J,V.index)),V.length>1&&V.index<Z.length&&E.apply(j,V.slice(1)),ae=V[0].length,J=te,j.length>=W)));)z.lastIndex===V.index&&z.lastIndex++;return J===Z.length?(ae||!z.test(""))&&j.push(""):j.push(Z.slice(J)),j.length>W?j.slice(0,W):j}:"0".split(void 0,0).length?B=function(F,H){return F===void 0&&H===0?[]:O.call(this,F,H)}:B=O,[function(H,Z){var W=h(this),j=H?.[A];return j!==void 0?j.call(H,W,Z):B.call(String(W),H,Z)},function(F,H){var Z=K(B,F,this,H,B!==O);if(Z.done)return Z.value;var W=f(F),j=String(this),N=p(W,RegExp),J=W.unicode,z=(W.ignoreCase?"i":"")+(W.multiline?"m":"")+(W.unicode?"u":"")+(I?"y":"g"),V=new N(I?W:"^(?:"+W.source+")",z),te=H===void 0?w:H>>>0;if(te===0)return[];if(j.length===0)return v(V,j)===null?[j]:[];for(var ae=0,pe=0,me=[];pe<j.length;){V.lastIndex=I?pe:0;var ye=v(V,I?j:j.slice(pe)),Ce;if(ye===null||(Ce=C(g(V.lastIndex+(I?0:pe)),j.length))===ae)pe=m(j,pe,J);else{if(me.push(j.slice(ae,pe)),me.length===te)return me;for(var Se=1;Se<=ye.length-1;Se++)if(me.push(ye[Se]),me.length===te)return me;pe=ae=Ce}}return me.push(j.slice(ae)),me}]},!I)}),3210:(function(s,c,a){var d=a(2109),u=a(3111).trim,f=a(6091);d({target:"String",proto:!0,forced:f("trim")},{trim:function(){return u(this)}})}),2990:(function(s,c,a){var d=a(260),u=a(1048),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("copyWithin",function(m,g){return u.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})}),8927:(function(s,c,a){var d=a(260),u=a(2092).every,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("every",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),3105:(function(s,c,a){var d=a(260),u=a(1285),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("fill",function(m){return u.apply(f(this),arguments)})}),5035:(function(s,c,a){var d=a(260),u=a(2092).filter,f=a(3074),h=d.aTypedArray,p=d.exportTypedArrayMethod;p("filter",function(g){var v=u(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,v)})}),7174:(function(s,c,a){var d=a(260),u=a(2092).findIndex,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("findIndex",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),4345:(function(s,c,a){var d=a(260),u=a(2092).find,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("find",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),2846:(function(s,c,a){var d=a(260),u=a(2092).forEach,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("forEach",function(m){u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),4731:(function(s,c,a){var d=a(260),u=a(1318).includes,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("includes",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),7209:(function(s,c,a){var d=a(260),u=a(1318).indexOf,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("indexOf",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),6319:(function(s,c,a){var d=a(7854),u=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=d.Uint8Array,g=f.values,v=f.keys,y=f.entries,b=u.aTypedArray,E=u.exportTypedArrayMethod,C=m&&m.prototype[p],w=!!C&&(C.name=="values"||C.name==null),I=function(){return g.call(b(this))};E("entries",function(){return y.call(b(this))}),E("keys",function(){return v.call(b(this))}),E("values",I,!w),E(p,I,!w)}),8867:(function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(u(this),arguments)})}),7789:(function(s,c,a){var d=a(260),u=a(6583),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("lastIndexOf",function(m){return u.apply(f(this),arguments)})}),3739:(function(s,c,a){var d=a(260),u=a(2092).map,f=a(6707),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod;m("map",function(v){return u(h(this),v,arguments.length>1?arguments[1]:void 0,function(y,b){return new(p(f(y,y.constructor)))(b)})})}),4483:(function(s,c,a){var d=a(260),u=a(3671).right,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduceRight",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})}),9368:(function(s,c,a){var d=a(260),u=a(3671).left,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduce",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})}),2056:(function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=u(m).length,v=h(g/2),y=0,b;y<v;)b=m[y],m[y++]=m[--g],m[g]=b;return m})}),3462:(function(s,c,a){var d=a(260),u=a(7466),f=a(4590),h=a(7908),p=a(7293),m=d.aTypedArray,g=d.exportTypedArrayMethod,v=p(function(){new Int8Array(1).set({})});g("set",function(b){m(this);var E=f(arguments.length>1?arguments[1]:void 0,1),C=this.length,w=h(b),I=u(w.length),A=0;if(I+E>C)throw RangeError("Wrong length");for(;A<I;)this[E+A]=w[A++]},v)}),678:(function(s,c,a){var d=a(260),u=a(6707),f=a(7293),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod,g=[].slice,v=f(function(){new Int8Array(1).slice()});m("slice",function(b,E){for(var C=g.call(h(this),b,E),w=u(this,this.constructor),I=0,A=C.length,O=new(p(w))(A);A>I;)O[I]=C[I++];return O},v)}),7462:(function(s,c,a){var d=a(260),u=a(2092).some,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("some",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})}),3824:(function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(u(this),m)})}),5021:(function(s,c,a){var d=a(260),u=a(7466),f=a(1400),h=a(6707),p=d.aTypedArray,m=d.exportTypedArrayMethod;m("subarray",function(v,y){var b=p(this),E=b.length,C=f(v,E);return new(h(b,b.constructor))(b.buffer,b.byteOffset+C*b.BYTES_PER_ELEMENT,u((y===void 0?E:f(y,E))-C))})}),2974:(function(s,c,a){var d=a(7854),u=a(260),f=a(7293),h=d.Int8Array,p=u.aTypedArray,m=u.exportTypedArrayMethod,g=[].toLocaleString,v=[].slice,y=!!h&&f(function(){g.call(new h(1))}),b=f(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!f(function(){h.prototype.toLocaleString.call([1,2])});m("toLocaleString",function(){return g.apply(y?v.call(p(this)):p(this),arguments)},b)}),5016:(function(s,c,a){var d=a(260).exportTypedArrayMethod,u=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;u(function(){m.call({})})&&(m=function(){return g.call(this)});var v=p.toString!=m;d("toString",m,v)}),2472:(function(s,c,a){var d=a(9843);d("Uint8",function(u){return function(h,p,m){return u(this,h,p,m)}})}),4747:(function(s,c,a){var d=a(7854),u=a(8324),f=a(8533),h=a(8880);for(var p in u){var m=d[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}}),3948:(function(s,c,a){var d=a(7854),u=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),v=f.values;for(var y in u){var b=d[y],E=b&&b.prototype;if(E){if(E[m]!==v)try{h(E,m,v)}catch{E[m]=v}if(E[g]||h(E,g,y),u[y]){for(var C in f)if(E[C]!==f[C])try{h(E,C,f[C])}catch{E[C]=f[C]}}}}}),1637:(function(s,c,a){a(6992);var d=a(2109),u=a(5005),f=a(590),h=a(1320),p=a(2248),m=a(8003),g=a(4994),v=a(9909),y=a(5787),b=a(6656),E=a(9974),C=a(648),w=a(9670),I=a(111),A=a(30),O=a(9114),K=a(8554),B=a(1246),F=a(5112),H=u("fetch"),Z=u("Headers"),W=F("iterator"),j="URLSearchParams",N=j+"Iterator",J=v.set,z=v.getterFor(j),V=v.getterFor(N),te=/\+/g,ae=Array(4),pe=function(U){return ae[U-1]||(ae[U-1]=RegExp("((?:%[\\da-f]{2}){"+U+"})","gi"))},me=function(U){try{return decodeURIComponent(U)}catch{return U}},ye=function(U){var Y=U.replace(te," "),G=4;try{return decodeURIComponent(Y)}catch{for(;G;)Y=Y.replace(pe(G--),me);return Y}},Ce=/[!'()~]|%20/g,Se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(U){return Se[U]},M=function(U){return encodeURIComponent(U).replace(Ce,ve)},D=function(U,Y){if(Y)for(var G=Y.split("&"),x=0,T,$;x<G.length;)T=G[x++],T.length&&($=T.split("="),U.push({key:ye($.shift()),value:ye($.join("="))}))},_=function(U){this.entries.length=0,D(this.entries,U)},L=function(U,Y){if(U<Y)throw TypeError("Not enough arguments")},k=g(function(Y,G){J(this,{type:N,iterator:K(z(Y).entries),kind:G})},"Iterator",function(){var Y=V(this),G=Y.kind,x=Y.iterator.next(),T=x.value;return x.done||(x.value=G==="keys"?T.key:G==="values"?T.value:[T.key,T.value]),x}),S=function(){y(this,S,j);var Y=arguments.length>0?arguments[0]:void 0,G=this,x=[],T,$,Q,q,ne,se,X,re,Ae;if(J(G,{type:j,entries:x,updateURL:function(){},updateSearchParams:_}),Y!==void 0)if(I(Y))if(T=B(Y),typeof T=="function")for($=T.call(Y),Q=$.next;!(q=Q.call($)).done;){if(ne=K(w(q.value)),se=ne.next,(X=se.call(ne)).done||(re=se.call(ne)).done||!se.call(ne).done)throw TypeError("Expected sequence with length 2");x.push({key:X.value+"",value:re.value+""})}else for(Ae in Y)b(Y,Ae)&&x.push({key:Ae,value:Y[Ae]+""});else D(x,typeof Y=="string"?Y.charAt(0)==="?"?Y.slice(1):Y:Y+"")},R=S.prototype;p(R,{append:function(Y,G){L(arguments.length,2);var x=z(this);x.entries.push({key:Y+"",value:G+""}),x.updateURL()},delete:function(U){L(arguments.length,1);for(var Y=z(this),G=Y.entries,x=U+"",T=0;T<G.length;)G[T].key===x?G.splice(T,1):T++;Y.updateURL()},get:function(Y){L(arguments.length,1);for(var G=z(this).entries,x=Y+"",T=0;T<G.length;T++)if(G[T].key===x)return G[T].value;return null},getAll:function(Y){L(arguments.length,1);for(var G=z(this).entries,x=Y+"",T=[],$=0;$<G.length;$++)G[$].key===x&&T.push(G[$].value);return T},has:function(Y){L(arguments.length,1);for(var G=z(this).entries,x=Y+"",T=0;T<G.length;)if(G[T++].key===x)return!0;return!1},set:function(Y,G){L(arguments.length,1);for(var x=z(this),T=x.entries,$=!1,Q=Y+"",q=G+"",ne=0,se;ne<T.length;ne++)se=T[ne],se.key===Q&&($?T.splice(ne--,1):($=!0,se.value=q));$||T.push({key:Q,value:q}),x.updateURL()},sort:function(){var Y=z(this),G=Y.entries,x=G.slice(),T,$,Q;for(G.length=0,Q=0;Q<x.length;Q++){for(T=x[Q],$=0;$<Q;$++)if(G[$].key>T.key){G.splice($,0,T);break}$===Q&&G.push(T)}Y.updateURL()},forEach:function(Y){for(var G=z(this).entries,x=E(Y,arguments.length>1?arguments[1]:void 0,3),T=0,$;T<G.length;)$=G[T++],x($.value,$.key,this)},keys:function(){return new k(this,"keys")},values:function(){return new k(this,"values")},entries:function(){return new k(this,"entries")}},{enumerable:!0}),h(R,W,R.entries),h(R,"toString",function(){for(var Y=z(this).entries,G=[],x=0,T;x<Y.length;)T=Y[x++],G.push(M(T.key)+"="+M(T.value));return G.join("&")},{enumerable:!0}),m(S,j),d({global:!0,forced:!f},{URLSearchParams:S}),!f&&typeof H=="function"&&typeof Z=="function"&&d({global:!0,enumerable:!0,forced:!0},{fetch:function(Y){var G=[Y],x,T,$;return arguments.length>1&&(x=arguments[1],I(x)&&(T=x.body,C(T)===j&&($=x.headers?new Z(x.headers):new Z,$.has("content-type")||$.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),x=A(x,{body:O(0,String(T)),headers:O(0,$)}))),G.push(x)),H.apply(this,G)}}),s.exports={URLSearchParams:S,getState:z}}),285:(function(s,c,a){a(8783);var d=a(2109),u=a(9781),f=a(590),h=a(7854),p=a(6048),m=a(1320),g=a(5787),v=a(6656),y=a(1574),b=a(8457),E=a(8710).codeAt,C=a(3197),w=a(8003),I=a(1637),A=a(9909),O=h.URL,K=I.URLSearchParams,B=I.getState,F=A.set,H=A.getterFor("URL"),Z=Math.floor,W=Math.pow,j="Invalid authority",N="Invalid scheme",J="Invalid host",z="Invalid port",V=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,ae=/\d/,pe=/^(0x|0X)/,me=/^[0-7]+$/,ye=/^\d+$/,Ce=/^[\dA-Fa-f]+$/,Se=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\t\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\t\u000A\u000D]/g,_,L=function(P,ie){var oe,le,fe;if(ie.charAt(0)=="["){if(ie.charAt(ie.length-1)!="]"||(oe=S(ie.slice(1,-1)),!oe))return J;P.host=oe}else if(q(P)){if(ie=C(ie),Se.test(ie)||(oe=k(ie),oe===null))return J;P.host=oe}else{if(ve.test(ie))return J;for(oe="",le=b(ie),fe=0;fe<le.length;fe++)oe+=$(le[fe],Y);P.host=oe}},k=function(P){var ie=P.split("."),oe,le,fe,Me,ke,Ke,ot;if(ie.length&&ie[ie.length-1]==""&&ie.pop(),oe=ie.length,oe>4)return P;for(le=[],fe=0;fe<oe;fe++){if(Me=ie[fe],Me=="")return P;if(ke=10,Me.length>1&&Me.charAt(0)=="0"&&(ke=pe.test(Me)?16:8,Me=Me.slice(ke==8?1:2)),Me==="")Ke=0;else{if(!(ke==10?ye:ke==8?me:Ce).test(Me))return P;Ke=parseInt(Me,ke)}le.push(Ke)}for(fe=0;fe<oe;fe++)if(Ke=le[fe],fe==oe-1){if(Ke>=W(256,5-oe))return null}else if(Ke>255)return null;for(ot=le.pop(),fe=0;fe<le.length;fe++)ot+=le[fe]*W(256,3-fe);return ot},S=function(P){var ie=[0,0,0,0,0,0,0,0],oe=0,le=null,fe=0,Me,ke,Ke,ot,pt,gn,ue,kt=function(){return P.charAt(fe)};if(kt()==":"){if(P.charAt(1)!=":")return;fe+=2,oe++,le=oe}for(;kt();){if(oe==8)return;if(kt()==":"){if(le!==null)return;fe++,oe++,le=oe;continue}for(Me=ke=0;ke<4&&Ce.test(kt());)Me=Me*16+parseInt(kt(),16),fe++,ke++;if(kt()=="."){if(ke==0||(fe-=ke,oe>6))return;for(Ke=0;kt();){if(ot=null,Ke>0)if(kt()=="."&&Ke<4)fe++;else return;if(!ae.test(kt()))return;for(;ae.test(kt());){if(pt=parseInt(kt(),10),ot===null)ot=pt;else{if(ot==0)return;ot=ot*10+pt}if(ot>255)return;fe++}ie[oe]=ie[oe]*256+ot,Ke++,(Ke==2||Ke==4)&&oe++}if(Ke!=4)return;break}else if(kt()==":"){if(fe++,!kt())return}else if(kt())return;ie[oe++]=Me}if(le!==null)for(gn=oe-le,oe=7;oe!=0&&gn>0;)ue=ie[oe],ie[oe--]=ie[le+gn-1],ie[le+--gn]=ue;else if(oe!=8)return;return ie},R=function(P){for(var ie=null,oe=1,le=null,fe=0,Me=0;Me<8;Me++)P[Me]!==0?(fe>oe&&(ie=le,oe=fe),le=null,fe=0):(le===null&&(le=Me),++fe);return fe>oe&&(ie=le,oe=fe),ie},U=function(P){var ie,oe,le,fe;if(typeof P=="number"){for(ie=[],oe=0;oe<4;oe++)ie.unshift(P%256),P=Z(P/256);return ie.join(".")}else if(typeof P=="object"){for(ie="",le=R(P),oe=0;oe<8;oe++)fe&&P[oe]===0||(fe&&(fe=!1),le===oe?(ie+=oe?":":"::",fe=!0):(ie+=P[oe].toString(16),oe<7&&(ie+=":")));return"["+ie+"]"}return P},Y={},G=y({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),x=y({},G,{"#":1,"?":1,"{":1,"}":1}),T=y({},x,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(P,ie){var oe=E(P,0);return oe>32&&oe<127&&!v(ie,P)?P:encodeURIComponent(P)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},q=function(P){return v(Q,P.scheme)},ne=function(P){return P.username!=""||P.password!=""},se=function(P){return!P.host||P.cannotBeABaseURL||P.scheme=="file"},X=function(P,ie){var oe;return P.length==2&&V.test(P.charAt(0))&&((oe=P.charAt(1))==":"||!ie&&oe=="|")},re=function(P){var ie;return P.length>1&&X(P.slice(0,2))&&(P.length==2||(ie=P.charAt(2))==="/"||ie==="\\"||ie==="?"||ie==="#")},Ae=function(P){var ie=P.path,oe=ie.length;oe&&(P.scheme!="file"||oe!=1||!X(ie[0],!0))&&ie.pop()},Ne=function(P){return P==="."||P.toLowerCase()==="%2e"},Oe=function(P){return P=P.toLowerCase(),P===".."||P==="%2e."||P===".%2e"||P==="%2e%2e"},nt={},mt={},rt={},Zr={},Tn={},qe={},$e={},ht={},tn={},Bo={},Jr={},Xr={},pn={},ur={},xi={},Ch={},Ti={},Wn={},y3={},Ro={},fr={},Kn=function(P,ie,oe,le){var fe=oe||nt,Me=0,ke="",Ke=!1,ot=!1,pt=!1,gn,ue,kt,hr;for(oe||(P.scheme="",P.username="",P.password="",P.host=null,P.port=null,P.path=[],P.query=null,P.fragment=null,P.cannotBeABaseURL=!1,ie=ie.replace(M,"")),ie=ie.replace(D,""),gn=b(ie);Me<=gn.length;){switch(ue=gn[Me],fe){case nt:if(ue&&V.test(ue))ke+=ue.toLowerCase(),fe=mt;else{if(oe)return N;fe=rt;continue}break;case mt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))ke+=ue.toLowerCase();else if(ue==":"){if(oe&&(q(P)!=v(Q,ke)||ke=="file"&&(ne(P)||P.port!==null)||P.scheme=="file"&&!P.host))return;if(P.scheme=ke,oe){q(P)&&Q[P.scheme]==P.port&&(P.port=null);return}ke="",P.scheme=="file"?fe=ur:q(P)&&le&&le.scheme==P.scheme?fe=Zr:q(P)?fe=ht:gn[Me+1]=="/"?(fe=Tn,Me++):(P.cannotBeABaseURL=!0,P.path.push(""),fe=y3)}else{if(oe)return N;ke="",fe=rt,Me=0;continue}break;case rt:if(!le||le.cannotBeABaseURL&&ue!="#")return N;if(le.cannotBeABaseURL&&ue=="#"){P.scheme=le.scheme,P.path=le.path.slice(),P.query=le.query,P.fragment="",P.cannotBeABaseURL=!0,fe=fr;break}fe=le.scheme=="file"?ur:qe;continue;case Zr:if(ue=="/"&&gn[Me+1]=="/")fe=tn,Me++;else{fe=qe;continue}break;case Tn:if(ue=="/"){fe=Bo;break}else{fe=Wn;continue}case qe:if(P.scheme=le.scheme,ue==_)P.username=le.username,P.password=le.password,P.host=le.host,P.port=le.port,P.path=le.path.slice(),P.query=le.query;else if(ue=="/"||ue=="\\"&&q(P))fe=$e;else if(ue=="?")P.username=le.username,P.password=le.password,P.host=le.host,P.port=le.port,P.path=le.path.slice(),P.query="",fe=Ro;else if(ue=="#")P.username=le.username,P.password=le.password,P.host=le.host,P.port=le.port,P.path=le.path.slice(),P.query=le.query,P.fragment="",fe=fr;else{P.username=le.username,P.password=le.password,P.host=le.host,P.port=le.port,P.path=le.path.slice(),P.path.pop(),fe=Wn;continue}break;case $e:if(q(P)&&(ue=="/"||ue=="\\"))fe=tn;else if(ue=="/")fe=Bo;else{P.username=le.username,P.password=le.password,P.host=le.host,P.port=le.port,fe=Wn;continue}break;case ht:if(fe=tn,ue!="/"||ke.charAt(Me+1)!="/")continue;Me++;break;case tn:if(ue!="/"&&ue!="\\"){fe=Bo;continue}break;case Bo:if(ue=="@"){Ke&&(ke="%40"+ke),Ke=!0,kt=b(ke);for(var kh=0;kh<kt.length;kh++){var M3=kt[kh];if(M3==":"&&!pt){pt=!0;continue}var L3=$(M3,T);pt?P.password+=L3:P.username+=L3}ke=""}else if(ue==_||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&q(P)){if(Ke&&ke=="")return j;Me-=b(ke).length+1,ke="",fe=Jr}else ke+=ue;break;case Jr:case Xr:if(oe&&P.scheme=="file"){fe=Ch;continue}else if(ue==":"&&!ot){if(ke=="")return J;if(hr=L(P,ke),hr)return hr;if(ke="",fe=pn,oe==Xr)return}else if(ue==_||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&q(P)){if(q(P)&&ke=="")return J;if(oe&&ke==""&&(ne(P)||P.port!==null))return;if(hr=L(P,ke),hr)return hr;if(ke="",fe=Ti,oe)return;continue}else ue=="["?ot=!0:ue=="]"&&(ot=!1),ke+=ue;break;case pn:if(ae.test(ue))ke+=ue;else if(ue==_||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&q(P)||oe){if(ke!=""){var wh=parseInt(ke,10);if(wh>65535)return z;P.port=q(P)&&wh===Q[P.scheme]?null:wh,ke=""}if(oe)return;fe=Ti;continue}else return z;break;case ur:if(P.scheme="file",ue=="/"||ue=="\\")fe=xi;else if(le&&le.scheme=="file")if(ue==_)P.host=le.host,P.path=le.path.slice(),P.query=le.query;else if(ue=="?")P.host=le.host,P.path=le.path.slice(),P.query="",fe=Ro;else if(ue=="#")P.host=le.host,P.path=le.path.slice(),P.query=le.query,P.fragment="",fe=fr;else{re(gn.slice(Me).join(""))||(P.host=le.host,P.path=le.path.slice(),Ae(P)),fe=Wn;continue}else{fe=Wn;continue}break;case xi:if(ue=="/"||ue=="\\"){fe=Ch;break}le&&le.scheme=="file"&&!re(gn.slice(Me).join(""))&&(X(le.path[0],!0)?P.path.push(le.path[0]):P.host=le.host),fe=Wn;continue;case Ch:if(ue==_||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!oe&&X(ke))fe=Wn;else if(ke==""){if(P.host="",oe)return;fe=Ti}else{if(hr=L(P,ke),hr)return hr;if(P.host=="localhost"&&(P.host=""),oe)return;ke="",fe=Ti}continue}else ke+=ue;break;case Ti:if(q(P)){if(fe=Wn,ue!="/"&&ue!="\\")continue}else if(!oe&&ue=="?")P.query="",fe=Ro;else if(!oe&&ue=="#")P.fragment="",fe=fr;else if(ue!=_&&(fe=Wn,ue!="/"))continue;break;case Wn:if(ue==_||ue=="/"||ue=="\\"&&q(P)||!oe&&(ue=="?"||ue=="#")){if(Oe(ke)?(Ae(P),ue!="/"&&!(ue=="\\"&&q(P))&&P.path.push("")):Ne(ke)?ue!="/"&&!(ue=="\\"&&q(P))&&P.path.push(""):(P.scheme=="file"&&!P.path.length&&X(ke)&&(P.host&&(P.host=""),ke=ke.charAt(0)+":"),P.path.push(ke)),ke="",P.scheme=="file"&&(ue==_||ue=="?"||ue=="#"))for(;P.path.length>1&&P.path[0]==="";)P.path.shift();ue=="?"?(P.query="",fe=Ro):ue=="#"&&(P.fragment="",fe=fr)}else ke+=$(ue,x);break;case y3:ue=="?"?(P.query="",fe=Ro):ue=="#"?(P.fragment="",fe=fr):ue!=_&&(P.path[0]+=$(ue,Y));break;case Ro:!oe&&ue=="#"?(P.fragment="",fe=fr):ue!=_&&(ue=="'"&&q(P)?P.query+="%27":ue=="#"?P.query+="%23":P.query+=$(ue,Y));break;case fr:ue!=_&&(P.fragment+=$(ue,G));break}Me++}},$o=function(ie){var oe=g(this,$o,"URL"),le=arguments.length>1?arguments[1]:void 0,fe=String(ie),Me=F(oe,{type:"URL"}),ke,Ke;if(le!==void 0){if(le instanceof $o)ke=H(le);else if(Ke=Kn(ke={},String(le)),Ke)throw TypeError(Ke)}if(Ke=Kn(Me,fe,null,ke),Ke)throw TypeError(Ke);var ot=Me.searchParams=new K,pt=B(ot);pt.updateSearchParams(Me.query),pt.updateURL=function(){Me.query=String(ot)||null},u||(oe.href=wc.call(oe),oe.origin=b3.call(oe),oe.protocol=C3.call(oe),oe.username=E3.call(oe),oe.password=k3.call(oe),oe.host=w3.call(oe),oe.hostname=S3.call(oe),oe.port=A3.call(oe),oe.pathname=x3.call(oe),oe.search=T3.call(oe),oe.searchParams=I3.call(oe),oe.hash=_3.call(oe))},Eh=$o.prototype,wc=function(){var P=H(this),ie=P.scheme,oe=P.username,le=P.password,fe=P.host,Me=P.port,ke=P.path,Ke=P.query,ot=P.fragment,pt=ie+":";return fe!==null?(pt+="//",ne(P)&&(pt+=oe+(le?":"+le:"")+"@"),pt+=U(fe),Me!==null&&(pt+=":"+Me)):ie=="file"&&(pt+="//"),pt+=P.cannotBeABaseURL?ke[0]:ke.length?"/"+ke.join("/"):"",Ke!==null&&(pt+="?"+Ke),ot!==null&&(pt+="#"+ot),pt},b3=function(){var P=H(this),ie=P.scheme,oe=P.port;if(ie=="blob")try{return new URL(ie.path[0]).origin}catch{return"null"}return ie=="file"||!q(P)?"null":ie+"://"+U(P.host)+(oe!==null?":"+oe:"")},C3=function(){return H(this).scheme+":"},E3=function(){return H(this).username},k3=function(){return H(this).password},w3=function(){var P=H(this),ie=P.host,oe=P.port;return ie===null?"":oe===null?U(ie):U(ie)+":"+oe},S3=function(){var P=H(this).host;return P===null?"":U(P)},A3=function(){var P=H(this).port;return P===null?"":String(P)},x3=function(){var P=H(this),ie=P.path;return P.cannotBeABaseURL?ie[0]:ie.length?"/"+ie.join("/"):""},T3=function(){var P=H(this).query;return P?"?"+P:""},I3=function(){return H(this).searchParams},_3=function(){var P=H(this).fragment;return P?"#"+P:""},mn=function(P,ie){return{get:P,set:ie,configurable:!0,enumerable:!0}};if(u&&p(Eh,{href:mn(wc,function(P){var ie=H(this),oe=String(P),le=Kn(ie,oe);if(le)throw TypeError(le);B(ie.searchParams).updateSearchParams(ie.query)}),origin:mn(b3),protocol:mn(C3,function(P){var ie=H(this);Kn(ie,String(P)+":",nt)}),username:mn(E3,function(P){var ie=H(this),oe=b(String(P));if(!se(ie)){ie.username="";for(var le=0;le<oe.length;le++)ie.username+=$(oe[le],T)}}),password:mn(k3,function(P){var ie=H(this),oe=b(String(P));if(!se(ie)){ie.password="";for(var le=0;le<oe.length;le++)ie.password+=$(oe[le],T)}}),host:mn(w3,function(P){var ie=H(this);ie.cannotBeABaseURL||Kn(ie,String(P),Jr)}),hostname:mn(S3,function(P){var ie=H(this);ie.cannotBeABaseURL||Kn(ie,String(P),Xr)}),port:mn(A3,function(P){var ie=H(this);se(ie)||(P=String(P),P==""?ie.port=null:Kn(ie,P,pn))}),pathname:mn(x3,function(P){var ie=H(this);ie.cannotBeABaseURL||(ie.path=[],Kn(ie,P+"",Ti))}),search:mn(T3,function(P){var ie=H(this);P=String(P),P==""?ie.query=null:(P.charAt(0)=="?"&&(P=P.slice(1)),ie.query="",Kn(ie,P,Ro)),B(ie.searchParams).updateSearchParams(ie.query)}),searchParams:mn(I3),hash:mn(_3,function(P){var ie=H(this);if(P=String(P),P==""){ie.fragment=null;return}P.charAt(0)=="#"&&(P=P.slice(1)),ie.fragment="",Kn(ie,P,fr)})}),m(Eh,"toJSON",function(){return wc.call(this)},{enumerable:!0}),m(Eh,"toString",function(){return wc.call(this)},{enumerable:!0}),O){var N3=O.createObjectURL,O3=O.revokeObjectURL;N3&&m($o,"createObjectURL",function(ie){return N3.apply(O,arguments)}),O3&&m($o,"revokeObjectURL",function(ie){return O3.apply(O,arguments)})}w($o,"URL"),d({global:!0,forced:!f,sham:!u},{URL:$o})})},r={};function o(s){if(r[s])return r[s].exports;var c=r[s]={exports:{}};return n[s](c,c.exports,o),c.exports}(function(){o.d=function(s,c){for(var a in c)o.o(c,a)&&!o.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:c[a]})}})(),(function(){o.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)}})(),(function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}})();var i={};return(function(){o.r(i),o.d(i,{Dropzone:function(){return z},default:function(){return ve}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function s(M,D){var _;if(typeof Symbol>"u"||M[Symbol.iterator]==null){if(Array.isArray(M)||(_=c(M))||M&&typeof M.length=="number"){_&&(M=_);var L=0,k=function(){};return{s:k,n:function(){return L>=M.length?{done:!0}:{done:!1,value:M[L++]}},e:function(G){throw G},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1177
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,R=!1,U;return{s:function(){_=M[Symbol.iterator]()},n:function(){var G=_.next();return S=G.done,G},e:function(G){R=!0,U=G},f:function(){try{!S&&_.return!=null&&_.return()}finally{if(R)throw U}}}}function c(M,D){if(M){if(typeof M=="string")return a(M,D);var _=Object.prototype.toString.call(M).slice(8,-1);if(_==="Object"&&M.constructor&&(_=M.constructor.name),_==="Map"||_==="Set")return Array.from(M);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return a(M,D)}}function a(M,D){(D==null||D>M.length)&&(D=M.length);for(var _=0,L=new Array(D);_<D;_++)L[_]=M[_];return L}function d(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function u(M,D){for(var _=0;_<D.length;_++){var L=D[_];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(M,L.key,L)}}function f(M,D,_){return D&&u(M.prototype,D),M}var h=(function(){function M(){d(this,M)}return f(M,[{key:"on",value:function(_,L){return this._callbacks=this._callbacks||{},this._callbacks[_]||(this._callbacks[_]=[]),this._callbacks[_].push(L),this}},{key:"emit",value:function(_){this._callbacks=this._callbacks||{};for(var L=this._callbacks[_],k=arguments.length,S=new Array(k>1?k-1:0),R=1;R<k;R++)S[R-1]=arguments[R];if(L){var U=s(L),Y;try{for(U.s();!(Y=U.n()).done;){var G=Y.value;G.apply(this,S)}}catch(x){U.e(x)}finally{U.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+_,{args:S})),this}},{key:"makeEvent",value:function(_,L){var k={bubbles:!0,cancelable:!0,detail:L};if(typeof window.CustomEvent=="function")return new CustomEvent(_,k);var S=document.createEvent("CustomEvent");return S.initCustomEvent(_,k.bubbles,k.cancelable,k.detail),S}},{key:"off",value:function(_,L){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var k=this._callbacks[_];if(!k)return this;if(arguments.length===1)return delete this._callbacks[_],this;for(var S=0;S<k.length;S++){var R=k[S];if(R===L){k.splice(S,1);break}}return this}}]),M})(),p='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',m=p;function g(M,D){var _;if(typeof Symbol>"u"||M[Symbol.iterator]==null){if(Array.isArray(M)||(_=v(M))||M&&typeof M.length=="number"){_&&(M=_);var L=0,k=function(){};return{s:k,n:function(){return L>=M.length?{done:!0}:{done:!1,value:M[L++]}},e:function(G){throw G},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1178
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,R=!1,U;return{s:function(){_=M[Symbol.iterator]()},n:function(){var G=_.next();return S=G.done,G},e:function(G){R=!0,U=G},f:function(){try{!S&&_.return!=null&&_.return()}finally{if(R)throw U}}}}function v(M,D){if(M){if(typeof M=="string")return y(M,D);var _=Object.prototype.toString.call(M).slice(8,-1);if(_==="Object"&&M.constructor&&(_=M.constructor.name),_==="Map"||_==="Set")return Array.from(M);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return y(M,D)}}function y(M,D){(D==null||D>M.length)&&(D=M.length);for(var _=0,L=new Array(D);_<D;_++)L[_]=M[_];return L}var b={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(D,_,L){if(L)return{dzuuid:L.file.upload.uuid,dzchunkindex:L.index,dztotalfilesize:L.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:L.file.upload.totalChunkCount,dzchunkbyteoffset:L.index*this.options.chunkSize}},accept:function(D,_){return _()},chunksUploaded:function(D,_){_()},fallback:function(){var D;this.element.className="".concat(this.element.className," dz-browser-not-supported");var _=g(this.element.getElementsByTagName("div")),L;try{for(_.s();!(L=_.n()).done;){var k=L.value;if(/(^| )dz-message($| )/.test(k.className)){D=k,k.className="dz-message";break}}}catch(R){_.e(R)}finally{_.f()}D||(D=z.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(D));var S=D.getElementsByTagName("span")[0];return S&&(S.textContent!=null?S.textContent=this.options.dictFallbackMessage:S.innerText!=null&&(S.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(D,_,L,k){var S={srcX:0,srcY:0,srcWidth:D.width,srcHeight:D.height},R=D.width/D.height;_==null&&L==null?(_=S.srcWidth,L=S.srcHeight):_==null?_=L*R:L==null&&(L=_/R),_=Math.min(_,S.srcWidth),L=Math.min(L,S.srcHeight);var U=_/L;if(S.srcWidth>_||S.srcHeight>L)if(k==="crop")R>U?(S.srcHeight=D.height,S.srcWidth=S.srcHeight*U):(S.srcWidth=D.width,S.srcHeight=S.srcWidth/U);else if(k==="contain")R>U?L=_/R:_=L*R;else throw new Error("Unknown resizeMethod '".concat(k,"'"));return S.srcX=(D.width-S.srcWidth)/2,S.srcY=(D.height-S.srcHeight)/2,S.trgWidth=_,S.trgHeight=L,S},transformFile:function(D,_){return(this.options.resizeWidth||this.options.resizeHeight)&&D.type.match(/image.*/)?this.resizeImage(D,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,_):_(D)},previewTemplate:m,drop:function(D){return this.element.classList.remove("dz-drag-hover")},dragstart:function(D){},dragend:function(D){return this.element.classList.remove("dz-drag-hover")},dragenter:function(D){return this.element.classList.add("dz-drag-hover")},dragover:function(D){return this.element.classList.add("dz-drag-hover")},dragleave:function(D){return this.element.classList.remove("dz-drag-hover")},paste:function(D){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(D){var _=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){D.previewElement=z.createElement(this.options.previewTemplate.trim()),D.previewTemplate=D.previewElement,this.previewsContainer.appendChild(D.previewElement);var L=g(D.previewElement.querySelectorAll("[data-dz-name]")),k;try{for(L.s();!(k=L.n()).done;){var S=k.value;S.textContent=D.name}}catch($){L.e($)}finally{L.f()}var R=g(D.previewElement.querySelectorAll("[data-dz-size]")),U;try{for(R.s();!(U=R.n()).done;)S=U.value,S.innerHTML=this.filesize(D.size)}catch($){R.e($)}finally{R.f()}this.options.addRemoveLinks&&(D._removeLink=z.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),D.previewElement.appendChild(D._removeLink));var Y=function(Q){return Q.preventDefault(),Q.stopPropagation(),D.status===z.UPLOADING?z.confirm(_.options.dictCancelUploadConfirmation,function(){return _.removeFile(D)}):_.options.dictRemoveFileConfirmation?z.confirm(_.options.dictRemoveFileConfirmation,function(){return _.removeFile(D)}):_.removeFile(D)},G=g(D.previewElement.querySelectorAll("[data-dz-remove]")),x;try{for(G.s();!(x=G.n()).done;){var T=x.value;T.addEventListener("click",Y)}}catch($){G.e($)}finally{G.f()}}},removedfile:function(D){return D.previewElement!=null&&D.previewElement.parentNode!=null&&D.previewElement.parentNode.removeChild(D.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(D,_){if(D.previewElement){D.previewElement.classList.remove("dz-file-preview");var L=g(D.previewElement.querySelectorAll("[data-dz-thumbnail]")),k;try{for(L.s();!(k=L.n()).done;){var S=k.value;S.alt=D.name,S.src=_}}catch(R){L.e(R)}finally{L.f()}return setTimeout(function(){return D.previewElement.classList.add("dz-image-preview")},1)}},error:function(D,_){if(D.previewElement){D.previewElement.classList.add("dz-error"),typeof _!="string"&&_.error&&(_=_.error);var L=g(D.previewElement.querySelectorAll("[data-dz-errormessage]")),k;try{for(L.s();!(k=L.n()).done;){var S=k.value;S.textContent=_}}catch(R){L.e(R)}finally{L.f()}}},errormultiple:function(){},processing:function(D){if(D.previewElement&&(D.previewElement.classList.add("dz-processing"),D._removeLink))return D._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(D,_,L){if(D.previewElement){var k=g(D.previewElement.querySelectorAll("[data-dz-uploadprogress]")),S;try{for(k.s();!(S=k.n()).done;){var R=S.value;R.nodeName==="PROGRESS"?R.value=_:R.style.width="".concat(_,"%")}}catch(U){k.e(U)}finally{k.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(D){if(D.previewElement)return D.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(D){return this.emit("error",D,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(D){if(D._removeLink&&(D._removeLink.innerHTML=this.options.dictRemoveFile),D.previewElement)return D.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},E=b;function C(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(_){return typeof _}:C=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},C(M)}function w(M,D){var _;if(typeof Symbol>"u"||M[Symbol.iterator]==null){if(Array.isArray(M)||(_=I(M))||M&&typeof M.length=="number"){_&&(M=_);var L=0,k=function(){};return{s:k,n:function(){return L>=M.length?{done:!0}:{done:!1,value:M[L++]}},e:function(G){throw G},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1179
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,R=!1,U;return{s:function(){_=M[Symbol.iterator]()},n:function(){var G=_.next();return S=G.done,G},e:function(G){R=!0,U=G},f:function(){try{!S&&_.return!=null&&_.return()}finally{if(R)throw U}}}}function I(M,D){if(M){if(typeof M=="string")return A(M,D);var _=Object.prototype.toString.call(M).slice(8,-1);if(_==="Object"&&M.constructor&&(_=M.constructor.name),_==="Map"||_==="Set")return Array.from(M);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return A(M,D)}}function A(M,D){(D==null||D>M.length)&&(D=M.length);for(var _=0,L=new Array(D);_<D;_++)L[_]=M[_];return L}function O(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function K(M,D){for(var _=0;_<D.length;_++){var L=D[_];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(M,L.key,L)}}function B(M,D,_){return D&&K(M.prototype,D),_&&K(M,_),M}function F(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&H(M,D)}function H(M,D){return H=Object.setPrototypeOf||function(L,k){return L.__proto__=k,L},H(M,D)}function Z(M){var D=N();return function(){var L=J(M),k;if(D){var S=J(this).constructor;k=Reflect.construct(L,arguments,S)}else k=L.apply(this,arguments);return W(this,k)}}function W(M,D){return D&&(C(D)==="object"||typeof D=="function")?D:j(M)}function j(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function N(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function J(M){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},J(M)}var z=(function(M){F(_,M);var D=Z(_);function _(L,k){var S;O(this,_),S=D.call(this);var R,U;if(S.element=L,S.version=_.version,S.clickableElements=[],S.listeners=[],S.files=[],typeof S.element=="string"&&(S.element=document.querySelector(S.element)),!S.element||S.element.nodeType==null)throw new Error("Invalid dropzone element.");if(S.element.dropzone)throw new Error("Dropzone already attached.");_.instances.push(j(S)),S.element.dropzone=j(S);var Y=(U=_.optionsForElement(S.element))!=null?U:{};if(S.options=_.extend({},E,Y,k??{}),S.options.previewTemplate=S.options.previewTemplate.replace(/\n*/g,""),S.options.forceFallback||!_.isBrowserSupported())return W(S,S.options.fallback.call(j(S)));if(S.options.url==null&&(S.options.url=S.element.getAttribute("action")),!S.options.url)throw new Error("No URL provided.");if(S.options.acceptedFiles&&S.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(S.options.uploadMultiple&&S.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return S.options.acceptedMimeTypes&&(S.options.acceptedFiles=S.options.acceptedMimeTypes,delete S.options.acceptedMimeTypes),S.options.renameFilename!=null&&(S.options.renameFile=function(G){return S.options.renameFilename.call(j(S),G.name,G)}),typeof S.options.method=="string"&&(S.options.method=S.options.method.toUpperCase()),(R=S.getExistingFallback())&&R.parentNode&&R.parentNode.removeChild(R),S.options.previewsContainer!==!1&&(S.options.previewsContainer?S.previewsContainer=_.getElement(S.options.previewsContainer,"previewsContainer"):S.previewsContainer=S.element),S.options.clickable&&(S.options.clickable===!0?S.clickableElements=[S.element]:S.clickableElements=_.getElements(S.options.clickable,"clickable")),S.init(),S}return B(_,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(k){return k.accepted}).map(function(k){return k})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(k){return!k.accepted}).map(function(k){return k})}},{key:"getFilesWithStatus",value:function(k){return this.files.filter(function(S){return S.status===k}).map(function(S){return S})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(_.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(_.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(_.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(k){return k.status===_.UPLOADING||k.status===_.QUEUED}).map(function(k){return k})}},{key:"init",value:function(){var k=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(_.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var S=function T(){k.hiddenFileInput&&k.hiddenFileInput.parentNode.removeChild(k.hiddenFileInput),k.hiddenFileInput=document.createElement("input"),k.hiddenFileInput.setAttribute("type","file"),(k.options.maxFiles===null||k.options.maxFiles>1)&&k.hiddenFileInput.setAttribute("multiple","multiple"),k.hiddenFileInput.className="dz-hidden-input",k.options.acceptedFiles!==null&&k.hiddenFileInput.setAttribute("accept",k.options.acceptedFiles),k.options.capture!==null&&k.hiddenFileInput.setAttribute("capture",k.options.capture),k.hiddenFileInput.setAttribute("tabindex","-1"),k.hiddenFileInput.style.visibility="hidden",k.hiddenFileInput.style.position="absolute",k.hiddenFileInput.style.top="0",k.hiddenFileInput.style.left="0",k.hiddenFileInput.style.height="0",k.hiddenFileInput.style.width="0",_.getElement(k.options.hiddenInputContainer,"hiddenInputContainer").appendChild(k.hiddenFileInput),k.hiddenFileInput.addEventListener("change",function(){var $=k.hiddenFileInput.files;if($.length){var Q=w($),q;try{for(Q.s();!(q=Q.n()).done;){var ne=q.value;k.addFile(ne)}}catch(se){Q.e(se)}finally{Q.f()}}k.emit("addedfiles",$),T()})};S()}this.URL=window.URL!==null?window.URL:window.webkitURL;var R=w(this.events),U;try{for(R.s();!(U=R.n()).done;){var Y=U.value;this.on(Y,this.options[Y])}}catch(T){R.e(T)}finally{R.f()}this.on("uploadprogress",function(){return k.updateTotalUploadProgress()}),this.on("removedfile",function(){return k.updateTotalUploadProgress()}),this.on("canceled",function(T){return k.emit("complete",T)}),this.on("complete",function(T){if(k.getAddedFiles().length===0&&k.getUploadingFiles().length===0&&k.getQueuedFiles().length===0)return setTimeout(function(){return k.emit("queuecomplete")},0)});var G=function($){if($.dataTransfer.types){for(var Q=0;Q<$.dataTransfer.types.length;Q++)if($.dataTransfer.types[Q]==="Files")return!0}return!1},x=function($){if(G($))return $.stopPropagation(),$.preventDefault?$.preventDefault():$.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function($){return k.emit("dragstart",$)},dragenter:function($){return x($),k.emit("dragenter",$)},dragover:function($){var Q;try{Q=$.dataTransfer.effectAllowed}catch{}return $.dataTransfer.dropEffect=Q==="move"||Q==="linkMove"?"move":"copy",x($),k.emit("dragover",$)},dragleave:function($){return k.emit("dragleave",$)},drop:function($){return x($),k.drop($)},dragend:function($){return k.emit("dragend",$)}}}],this.clickableElements.forEach(function(T){return k.listeners.push({element:T,events:{click:function(Q){return(T!==k.element||Q.target===k.element||_.elementInside(Q.target,k.element.querySelector(".dz-message")))&&k.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,_.instances.splice(_.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var k,S=0,R=0,U=this.getActiveFiles();if(U.length){var Y=w(this.getActiveFiles()),G;try{for(Y.s();!(G=Y.n()).done;){var x=G.value;S+=x.upload.bytesSent,R+=x.upload.total}}catch(T){Y.e(T)}finally{Y.f()}k=100*S/R}else k=100;return this.emit("totaluploadprogress",k,R,S)}},{key:"_getParamName",value:function(k){return typeof this.options.paramName=="function"?this.options.paramName(k):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(k,"]"):"")}},{key:"_renameFile",value:function(k){return typeof this.options.renameFile!="function"?k.name:this.options.renameFile(k)}},{key:"getFallbackForm",value:function(){var k,S;if(k=this.getExistingFallback())return k;var R='<div class="dz-fallback">';this.options.dictFallbackText&&(R+="<p>".concat(this.options.dictFallbackText,"</p>")),R+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var U=_.createElement(R);return this.element.tagName!=="FORM"?(S=_.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),S.appendChild(U)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),S??U}},{key:"getExistingFallback",value:function(){for(var k=function(x){var T=w(x),$;try{for(T.s();!($=T.n()).done;){var Q=$.value;if(/(^| )fallback($| )/.test(Q.className))return Q}}catch(q){T.e(q)}finally{T.f()}},S=0,R=["div","form"];S<R.length;S++){var U=R[S],Y;if(Y=k(this.element.getElementsByTagName(U)))return Y}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(k){return(function(){var S=[];for(var R in k.events){var U=k.events[R];S.push(k.element.addEventListener(R,U,!1))}return S})()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(k){return(function(){var S=[];for(var R in k.events){var U=k.events[R];S.push(k.element.removeEventListener(R,U,!1))}return S})()})}},{key:"disable",value:function(){var k=this;return this.clickableElements.forEach(function(S){return S.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(S){return k.cancelUpload(S)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(k){return k.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(k){var S=0,R="b";if(k>0){for(var U=["tb","gb","mb","kb","b"],Y=0;Y<U.length;Y++){var G=U[Y],x=Math.pow(this.options.filesizeBase,4-Y)/10;if(k>=x){S=k/Math.pow(this.options.filesizeBase,4-Y),R=G;break}}S=Math.round(10*S)/10}return"<strong>".concat(S,"</strong> ").concat(this.options.dictFileSizeUnits[R])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(k){if(k.dataTransfer){this.emit("drop",k);for(var S=[],R=0;R<k.dataTransfer.files.length;R++)S[R]=k.dataTransfer.files[R];if(S.length){var U=k.dataTransfer.items;U&&U.length&&U[0].webkitGetAsEntry!=null?this._addFilesFromItems(U):this.handleFiles(S)}this.emit("addedfiles",S)}}},{key:"paste",value:function(k){if(Ce(k?.clipboardData,function(R){return R.items})!=null){this.emit("paste",k);var S=k.clipboardData.items;if(S.length)return this._addFilesFromItems(S)}}},{key:"handleFiles",value:function(k){var S=w(k),R;try{for(S.s();!(R=S.n()).done;){var U=R.value;this.addFile(U)}}catch(Y){S.e(Y)}finally{S.f()}}},{key:"_addFilesFromItems",value:function(k){var S=this;return(function(){var R=[],U=w(k),Y;try{for(U.s();!(Y=U.n()).done;){var G=Y.value,x;G.webkitGetAsEntry!=null&&(x=G.webkitGetAsEntry())?x.isFile?R.push(S.addFile(G.getAsFile())):x.isDirectory?R.push(S._addFilesFromDirectory(x,x.name)):R.push(void 0):G.getAsFile!=null&&(G.kind==null||G.kind==="file")?R.push(S.addFile(G.getAsFile())):R.push(void 0)}}catch(T){U.e(T)}finally{U.f()}return R})()}},{key:"_addFilesFromDirectory",value:function(k,S){var R=this,U=k.createReader(),Y=function(T){return Se(console,"log",function($){return $.log(T)})},G=function x(){return U.readEntries(function(T){if(T.length>0){var $=w(T),Q;try{for($.s();!(Q=$.n()).done;){var q=Q.value;q.isFile?q.file(function(ne){if(!(R.options.ignoreHiddenFiles&&ne.name.substring(0,1)==="."))return ne.fullPath="".concat(S,"/").concat(ne.name),R.addFile(ne)}):q.isDirectory&&R._addFilesFromDirectory(q,"".concat(S,"/").concat(q.name))}}catch(ne){$.e(ne)}finally{$.f()}x()}return null},Y)};return G()}},{key:"accept",value:function(k,S){this.options.maxFilesize&&k.size>this.options.maxFilesize*1024*1024?S(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(k.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):_.isValidFile(k,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(S(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",k)):this.options.accept.call(this,k,S):S(this.options.dictInvalidFileType)}},{key:"addFile",value:function(k){var S=this;k.upload={uuid:_.uuidv4(),progress:0,total:k.size,bytesSent:0,filename:this._renameFile(k)},this.files.push(k),k.status=_.ADDED,this.emit("addedfile",k),this._enqueueThumbnail(k),this.accept(k,function(R){R?(k.accepted=!1,S._errorProcessing([k],R)):(k.accepted=!0,S.options.autoQueue&&S.enqueueFile(k)),S._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(k){var S=w(k),R;try{for(S.s();!(R=S.n()).done;){var U=R.value;this.enqueueFile(U)}}catch(Y){S.e(Y)}finally{S.f()}return null}},{key:"enqueueFile",value:function(k){var S=this;if(k.status===_.ADDED&&k.accepted===!0){if(k.status=_.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return S.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(k){var S=this;if(this.options.createImageThumbnails&&k.type.match(/image.*/)&&k.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(k),setTimeout(function(){return S._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var k=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var S=this._thumbnailQueue.shift();return this.createThumbnail(S,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(R){return k.emit("thumbnail",S,R),k._processingThumbnail=!1,k._processThumbnailQueue()})}}},{key:"removeFile",value:function(k){if(k.status===_.UPLOADING&&this.cancelUpload(k),this.files=V(this.files,k),this.emit("removedfile",k),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(k){k==null&&(k=!1);var S=w(this.files.slice()),R;try{for(S.s();!(R=S.n()).done;){var U=R.value;(U.status!==_.UPLOADING||k)&&this.removeFile(U)}}catch(Y){S.e(Y)}finally{S.f()}return null}},{key:"resizeImage",value:function(k,S,R,U,Y){var G=this;return this.createThumbnail(k,S,R,U,!0,function(x,T){if(T==null)return Y(k);var $=G.options.resizeMimeType;$==null&&($=k.type);var Q=T.toDataURL($,G.options.resizeQuality);return($==="image/jpeg"||$==="image/jpg")&&(Q=me.restore(k.dataURL,Q)),Y(_.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(k,S,R,U,Y,G){var x=this,T=new FileReader;T.onload=function(){if(k.dataURL=T.result,k.type==="image/svg+xml"){G?.(T.result);return}x.createThumbnailFromUrl(k,S,R,U,Y,G)},T.readAsDataURL(k)}},{key:"displayExistingFile",value:function(k,S,R,U){var Y=this,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",k),this.emit("complete",k),!G)this.emit("thumbnail",k,S),R&&R();else{var x=function($){Y.emit("thumbnail",k,$),R&&R()};k.dataURL=S,this.createThumbnailFromUrl(k,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,x,U)}}},{key:"createThumbnailFromUrl",value:function(k,S,R,U,Y,G,x){var T=this,$=document.createElement("img");return x&&($.crossOrigin=x),Y=getComputedStyle(document.body).imageOrientation=="from-image"?!1:Y,$.onload=function(){var Q=function(ne){return ne(1)};return typeof EXIF<"u"&&EXIF!==null&&Y&&(Q=function(ne){return EXIF.getData($,function(){return ne(EXIF.getTag(this,"Orientation"))})}),Q(function(q){k.width=$.width,k.height=$.height;var ne=T.options.resize.call(T,k,S,R,U),se=document.createElement("canvas"),X=se.getContext("2d");switch(se.width=ne.trgWidth,se.height=ne.trgHeight,q>4&&(se.width=ne.trgHeight,se.height=ne.trgWidth),q){case 2:X.translate(se.width,0),X.scale(-1,1);break;case 3:X.translate(se.width,se.height),X.rotate(Math.PI);break;case 4:X.translate(0,se.height),X.scale(1,-1);break;case 5:X.rotate(.5*Math.PI),X.scale(1,-1);break;case 6:X.rotate(.5*Math.PI),X.translate(0,-se.width);break;case 7:X.rotate(.5*Math.PI),X.translate(se.height,-se.width),X.scale(-1,1);break;case 8:X.rotate(-.5*Math.PI),X.translate(-se.height,0);break}pe(X,$,ne.srcX!=null?ne.srcX:0,ne.srcY!=null?ne.srcY:0,ne.srcWidth,ne.srcHeight,ne.trgX!=null?ne.trgX:0,ne.trgY!=null?ne.trgY:0,ne.trgWidth,ne.trgHeight);var re=se.toDataURL("image/png");if(G!=null)return G(re,se)})},G!=null&&($.onerror=G),$.src=k.dataURL}},{key:"processQueue",value:function(){var k=this.options.parallelUploads,S=this.getUploadingFiles().length,R=S;if(!(S>=k)){var U=this.getQueuedFiles();if(U.length>0){if(this.options.uploadMultiple)return this.processFiles(U.slice(0,k-S));for(;R<k;){if(!U.length)return;this.processFile(U.shift()),R++}}}}},{key:"processFile",value:function(k){return this.processFiles([k])}},{key:"processFiles",value:function(k){var S=w(k),R;try{for(S.s();!(R=S.n()).done;){var U=R.value;U.processing=!0,U.status=_.UPLOADING,this.emit("processing",U)}}catch(Y){S.e(Y)}finally{S.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",k),this.uploadFiles(k)}},{key:"_getFilesWithXhr",value:function(k){return this.files.filter(function(S){return S.xhr===k}).map(function(S){return S})}},{key:"cancelUpload",value:function(k){if(k.status===_.UPLOADING){var S=this._getFilesWithXhr(k.xhr),R=w(S),U;try{for(R.s();!(U=R.n()).done;){var Y=U.value;Y.status=_.CANCELED}}catch($){R.e($)}finally{R.f()}typeof k.xhr<"u"&&k.xhr.abort();var G=w(S),x;try{for(G.s();!(x=G.n()).done;){var T=x.value;this.emit("canceled",T)}}catch($){G.e($)}finally{G.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",S)}else(k.status===_.ADDED||k.status===_.QUEUED)&&(k.status=_.CANCELED,this.emit("canceled",k),this.options.uploadMultiple&&this.emit("canceledmultiple",[k]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(k){if(typeof k=="function"){for(var S=arguments.length,R=new Array(S>1?S-1:0),U=1;U<S;U++)R[U-1]=arguments[U];return k.apply(this,R)}return k}},{key:"uploadFile",value:function(k){return this.uploadFiles([k])}},{key:"uploadFiles",value:function(k){var S=this;this._transformFiles(k,function(R){if(S.options.chunking){var U=R[0];k[0].upload.chunked=S.options.chunking&&(S.options.forceChunking||U.size>S.options.chunkSize),k[0].upload.totalChunkCount=Math.ceil(U.size/S.options.chunkSize)}if(k[0].upload.chunked){var Y=k[0],G=R[0];Y.upload.chunks=[];var x=function(){for(var ne=0;Y.upload.chunks[ne]!==void 0;)ne++;if(!(ne>=Y.upload.totalChunkCount)){var se=ne*S.options.chunkSize,X=Math.min(se+S.options.chunkSize,G.size),re={name:S._getParamName(0),data:G.webkitSlice?G.webkitSlice(se,X):G.slice(se,X),filename:Y.upload.filename,chunkIndex:ne};Y.upload.chunks[ne]={file:Y,index:ne,dataBlock:re,status:_.UPLOADING,progress:0,retries:0},S._uploadData(k,[re])}};if(Y.upload.finishedChunkUpload=function(q,ne){var se=!0;q.status=_.SUCCESS,q.dataBlock=null,q.xhr=null;for(var X=0;X<Y.upload.totalChunkCount;X++){if(Y.upload.chunks[X]===void 0)return x();Y.upload.chunks[X].status!==_.SUCCESS&&(se=!1)}se&&S.options.chunksUploaded(Y,function(){S._finished(k,ne,null)})},S.options.parallelChunkUploads)for(var T=0;T<Y.upload.totalChunkCount;T++)x();else x()}else{for(var $=[],Q=0;Q<k.length;Q++)$[Q]={name:S._getParamName(Q),data:R[Q],filename:k[Q].upload.filename};S._uploadData(k,$)}})}},{key:"_getChunk",value:function(k,S){for(var R=0;R<k.upload.totalChunkCount;R++)if(k.upload.chunks[R]!==void 0&&k.upload.chunks[R].xhr===S)return k.upload.chunks[R]}},{key:"_uploadData",value:function(k,S){var R=this,U=new XMLHttpRequest,Y=w(k),G;try{for(Y.s();!(G=Y.n()).done;){var x=G.value;x.xhr=U}}catch($e){Y.e($e)}finally{Y.f()}k[0].upload.chunked&&(k[0].upload.chunks[S[0].chunkIndex].xhr=U);var T=this.resolveOption(this.options.method,k),$=this.resolveOption(this.options.url,k);U.open(T,$,!0);var Q=this.resolveOption(this.options.timeout,k);Q&&(U.timeout=this.resolveOption(this.options.timeout,k)),U.withCredentials=!!this.options.withCredentials,U.onload=function($e){R._finishedUploading(k,U,$e)},U.ontimeout=function(){R._handleUploadError(k,U,"Request timedout after ".concat(R.options.timeout/1e3," seconds"))},U.onerror=function(){R._handleUploadError(k,U)};var q=U.upload!=null?U.upload:U;q.onprogress=function($e){return R._updateFilesUploadProgress(k,U,$e)};var ne={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&_.extend(ne,this.options.headers);for(var se in ne){var X=ne[se];X&&U.setRequestHeader(se,X)}var re=new FormData;if(this.options.params){var Ae=this.options.params;typeof Ae=="function"&&(Ae=Ae.call(this,k,U,k[0].upload.chunked?this._getChunk(k[0],U):null));for(var Ne in Ae){var Oe=Ae[Ne];if(Array.isArray(Oe))for(var nt=0;nt<Oe.length;nt++)re.append(Ne,Oe[nt]);else re.append(Ne,Oe)}}var mt=w(k),rt;try{for(mt.s();!(rt=mt.n()).done;){var Zr=rt.value;this.emit("sending",Zr,U,re)}}catch($e){mt.e($e)}finally{mt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",k,U,re),this._addFormElementData(re);for(var Tn=0;Tn<S.length;Tn++){var qe=S[Tn];re.append(qe.name,qe.data,qe.filename)}this.submitRequest(U,re,k)}},{key:"_transformFiles",value:function(k,S){for(var R=this,U=[],Y=0,G=function($){R.options.transformFile.call(R,k[$],function(Q){U[$]=Q,++Y===k.length&&S(U)})},x=0;x<k.length;x++)G(x)}},{key:"_addFormElementData",value:function(k){if(this.element.tagName==="FORM"){var S=w(this.element.querySelectorAll("input, textarea, select, button")),R;try{for(S.s();!(R=S.n()).done;){var U=R.value,Y=U.getAttribute("name"),G=U.getAttribute("type");if(G&&(G=G.toLowerCase()),!(typeof Y>"u"||Y===null))if(U.tagName==="SELECT"&&U.hasAttribute("multiple")){var x=w(U.options,!0),T;try{for(x.s();!(T=x.n()).done;){var $=T.value;$.selected&&k.append(Y,$.value)}}catch(Q){x.e(Q)}finally{x.f()}}else(!G||G!=="checkbox"&&G!=="radio"||U.checked)&&k.append(Y,U.value)}}catch(Q){S.e(Q)}finally{S.f()}}}},{key:"_updateFilesUploadProgress",value:function(k,S,R){if(k[0].upload.chunked){var x=k[0],T=this._getChunk(x,S);R?(T.progress=100*R.loaded/R.total,T.total=R.total,T.bytesSent=R.loaded):(T.progress=100,T.bytesSent=T.total),x.upload.progress=0,x.upload.total=0,x.upload.bytesSent=0;for(var $=0;$<x.upload.totalChunkCount;$++)x.upload.chunks[$]&&typeof x.upload.chunks[$].progress<"u"&&(x.upload.progress+=x.upload.chunks[$].progress,x.upload.total+=x.upload.chunks[$].total,x.upload.bytesSent+=x.upload.chunks[$].bytesSent);x.upload.progress=x.upload.progress/x.upload.totalChunkCount,this.emit("uploadprogress",x,x.upload.progress,x.upload.bytesSent)}else{var U=w(k),Y;try{for(U.s();!(Y=U.n()).done;){var G=Y.value;G.upload.total&&G.upload.bytesSent&&G.upload.bytesSent==G.upload.total||(R?(G.upload.progress=100*R.loaded/R.total,G.upload.total=R.total,G.upload.bytesSent=R.loaded):(G.upload.progress=100,G.upload.bytesSent=G.upload.total),this.emit("uploadprogress",G,G.upload.progress,G.upload.bytesSent))}}catch(Q){U.e(Q)}finally{U.f()}}}},{key:"_finishedUploading",value:function(k,S,R){var U;if(k[0].status!==_.CANCELED&&S.readyState===4){if(S.responseType!=="arraybuffer"&&S.responseType!=="blob"&&(U=S.responseText,S.getResponseHeader("content-type")&&~S.getResponseHeader("content-type").indexOf("application/json")))try{U=JSON.parse(U)}catch(Y){R=Y,U="Invalid JSON response from server."}this._updateFilesUploadProgress(k,S),200<=S.status&&S.status<300?k[0].upload.chunked?k[0].upload.finishedChunkUpload(this._getChunk(k[0],S),U):this._finished(k,U,R):this._handleUploadError(k,S,U)}}},{key:"_handleUploadError",value:function(k,S,R){if(k[0].status!==_.CANCELED){if(k[0].upload.chunked&&this.options.retryChunks){var U=this._getChunk(k[0],S);if(U.retries++<this.options.retryChunksLimit){this._uploadData(k,[U.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(k,R||this.options.dictResponseError.replace("{{statusCode}}",S.status),S)}}},{key:"submitRequest",value:function(k,S,R){if(k.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}k.send(S)}},{key:"_finished",value:function(k,S,R){var U=w(k),Y;try{for(U.s();!(Y=U.n()).done;){var G=Y.value;G.status=_.SUCCESS,this.emit("success",G,S,R),this.emit("complete",G)}}catch(x){U.e(x)}finally{U.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",k,S,R),this.emit("completemultiple",k)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(k,S,R){var U=w(k),Y;try{for(U.s();!(Y=U.n()).done;){var G=Y.value;G.status=_.ERROR,this.emit("error",G,S,R),this.emit("complete",G)}}catch(x){U.e(x)}finally{U.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",k,S,R),this.emit("completemultiple",k)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=h,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(k){for(var S=arguments.length,R=new Array(S>1?S-1:0),U=1;U<S;U++)R[U-1]=arguments[U];for(var Y=0,G=R;Y<G.length;Y++){var x=G[Y];for(var T in x){var $=x[T];k[T]=$}}return k}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(k){var S=Math.random()*16|0,R=k==="x"?S:S&3|8;return R.toString(16)})}}]),_})(h);z.initClass(),z.version="5.9.3",z.options={},z.optionsForElement=function(M){if(M.getAttribute("id"))return z.options[te(M.getAttribute("id"))]},z.instances=[],z.forElement=function(M){if(typeof M=="string"&&(M=document.querySelector(M)),M?.dropzone==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return M.dropzone},z.autoDiscover=!0,z.discover=function(){var M;if(document.querySelectorAll)M=document.querySelectorAll(".dropzone");else{M=[];var D=function(L){return(function(){var k=[],S=w(L),R;try{for(S.s();!(R=S.n()).done;){var U=R.value;/(^| )dropzone($| )/.test(U.className)?k.push(M.push(U)):k.push(void 0)}}catch(Y){S.e(Y)}finally{S.f()}return k})()};D(document.getElementsByTagName("div")),D(document.getElementsByTagName("form"))}return(function(){var _=[],L=w(M),k;try{for(L.s();!(k=L.n()).done;){var S=k.value;z.optionsForElement(S)!==!1?_.push(new z(S)):_.push(void 0)}}catch(R){L.e(R)}finally{L.f()}return _})()},z.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],z.isBrowserSupported=function(){var M=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))M=!1;else{z.blacklistedBrowsers!==void 0&&(z.blockedBrowsers=z.blacklistedBrowsers);var D=w(z.blockedBrowsers),_;try{for(D.s();!(_=D.n()).done;){var L=_.value;if(L.test(navigator.userAgent)){M=!1;continue}}}catch(k){D.e(k)}finally{D.f()}}else M=!1;return M},z.dataURItoBlob=function(M){for(var D=atob(M.split(",")[1]),_=M.split(",")[0].split(":")[1].split(";")[0],L=new ArrayBuffer(D.length),k=new Uint8Array(L),S=0,R=D.length,U=0<=R;U?S<=R:S>=R;U?S++:S--)k[S]=D.charCodeAt(S);return new Blob([L],{type:_})};var V=function(D,_){return D.filter(function(L){return L!==_}).map(function(L){return L})},te=function(D){return D.replace(/[\-_](\w)/g,function(_){return _.charAt(1).toUpperCase()})};z.createElement=function(M){var D=document.createElement("div");return D.innerHTML=M,D.childNodes[0]},z.elementInside=function(M,D){if(M===D)return!0;for(;M=M.parentNode;)if(M===D)return!0;return!1},z.getElement=function(M,D){var _;if(typeof M=="string"?_=document.querySelector(M):M.nodeType!=null&&(_=M),_==null)throw new Error("Invalid `".concat(D,"` option provided. Please provide a CSS selector or a plain HTML element."));return _},z.getElements=function(M,D){var _,L;if(M instanceof Array){L=[];try{var k=w(M,!0),S;try{for(k.s();!(S=k.n()).done;)_=S.value,L.push(this.getElement(_,D))}catch(Y){k.e(Y)}finally{k.f()}}catch{L=null}}else if(typeof M=="string"){L=[];var R=w(document.querySelectorAll(M)),U;try{for(R.s();!(U=R.n()).done;)_=U.value,L.push(_)}catch(Y){R.e(Y)}finally{R.f()}}else M.nodeType!=null&&(L=[M]);if(L==null||!L.length)throw new Error("Invalid `".concat(D,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return L},z.confirm=function(M,D,_){if(window.confirm(M))return D();if(_!=null)return _()},z.isValidFile=function(M,D){if(!D)return!0;D=D.split(",");var _=M.type,L=_.replace(/\/.*$/,""),k=w(D),S;try{for(k.s();!(S=k.n()).done;){var R=S.value;if(R=R.trim(),R.charAt(0)==="."){if(M.name.toLowerCase().indexOf(R.toLowerCase(),M.name.length-R.length)!==-1)return!0}else if(/\/\*$/.test(R)){if(L===R.replace(/\/.*$/,""))return!0}else if(_===R)return!0}}catch(U){k.e(U)}finally{k.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(M){return this.each(function(){return new z(this,M)})}),z.ADDED="added",z.QUEUED="queued",z.ACCEPTED=z.QUEUED,z.UPLOADING="uploading",z.PROCESSING=z.UPLOADING,z.CANCELED="canceled",z.ERROR="error",z.SUCCESS="success";var ae=function(D){D.naturalWidth;var _=D.naturalHeight,L=document.createElement("canvas");L.width=1,L.height=_;var k=L.getContext("2d");k.drawImage(D,0,0);for(var S=k.getImageData(1,0,1,_),R=S.data,U=0,Y=_,G=_;G>U;){var x=R[(G-1)*4+3];x===0?Y=G:U=G,G=Y+U>>1}var T=G/_;return T===0?1:T},pe=function(D,_,L,k,S,R,U,Y,G,x){var T=ae(_);return D.drawImage(_,L,k,S,R,U,Y,G,x/T)},me=(function(){function M(){O(this,M)}return B(M,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(_){for(var L="",k=void 0,S=void 0,R="",U=void 0,Y=void 0,G=void 0,x="",T=0;k=_[T++],S=_[T++],R=_[T++],U=k>>2,Y=(k&3)<<4|S>>4,G=(S&15)<<2|R>>6,x=R&63,isNaN(S)?G=x=64:isNaN(R)&&(x=64),L=L+this.KEY_STR.charAt(U)+this.KEY_STR.charAt(Y)+this.KEY_STR.charAt(G)+this.KEY_STR.charAt(x),k=S=R="",U=Y=G=x="",T<_.length;);return L}},{key:"restore",value:function(_,L){if(!_.match("data:image/jpeg;base64,"))return L;var k=this.decode64(_.replace("data:image/jpeg;base64,","")),S=this.slice2Segments(k),R=this.exifManipulation(L,S);return"data:image/jpeg;base64,".concat(this.encode64(R))}},{key:"exifManipulation",value:function(_,L){var k=this.getExifArray(L),S=this.insertExif(_,k),R=new Uint8Array(S);return R}},{key:"getExifArray",value:function(_){for(var L=void 0,k=0;k<_.length;){if(L=_[k],L[0]===255&L[1]===225)return L;k++}return[]}},{key:"insertExif",value:function(_,L){var k=_.replace("data:image/jpeg;base64,",""),S=this.decode64(k),R=S.indexOf(255,3),U=S.slice(0,R),Y=S.slice(R),G=U;return G=G.concat(L),G=G.concat(Y),G}},{key:"slice2Segments",value:function(_){for(var L=0,k=[];;){var S;if(_[L]===255&_[L+1]===218)break;if(_[L]===255&_[L+1]===216)L+=2;else{S=_[L+2]*256+_[L+3];var R=L+S+2,U=_.slice(L,R);k.push(U),L=R}if(L>_.length)break}return k}},{key:"decode64",value:function(_){var L=void 0,k=void 0,S="",R=void 0,U=void 0,Y=void 0,G="",x=0,T=[],$=/[^A-Za-z0-9\+\/\=]/g;for($.exec(_)&&console.warn(`There were invalid base64 characters in the input text.
|
|
1180
1180
|
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
|
|
1181
|
-
Expect errors in decoding.`),_=_.replace(/[^A-Za-z0-9\+\/\=]/g,"");R=this.KEY_STR.indexOf(_.charAt(x++)),H=this.KEY_STR.indexOf(_.charAt(x++)),Y=this.KEY_STR.indexOf(_.charAt(x++)),G=this.KEY_STR.indexOf(_.charAt(x++)),L=R<<2|H>>4,k=(H&15)<<4|Y>>2,S=(Y&3)<<6|G,T.push(L),Y!==64&&T.push(k),G!==64&&T.push(S),L=k=S="",R=H=Y=G="",x<_.length;);return T}}]),M})();me.initClass();var ye=function(D,_){var L=!1,k=!0,S=D.document,R=S.documentElement,H=S.addEventListener?"addEventListener":"attachEvent",Y=S.addEventListener?"removeEventListener":"detachEvent",G=S.addEventListener?"":"on",x=function F(Q){if(!(Q.type==="readystatechange"&&S.readyState!=="complete")&&((Q.type==="load"?D:S)[Y](G+Q.type,F,!1),!L&&(L=!0)))return _.call(D,Q.type||Q)},T=function F(){try{R.doScroll("left")}catch{setTimeout(F,50);return}return x("poll")};if(S.readyState!=="complete"){if(S.createEventObject&&R.doScroll){try{k=!D.frameElement}catch{}k&&T()}return S[H](G+"DOMContentLoaded",x,!1),S[H](G+"readystatechange",x,!1),D[H](G+"load",x,!1)}};U._autoDiscoverFunction=function(){if(U.autoDiscover)return U.discover()},ye(window,U._autoDiscoverFunction);function Ce(M,D){return typeof M<"u"&&M!==null?D(M):void 0}function Se(M,D,_){if(typeof M<"u"&&M!==null&&typeof M[D]=="function")return _(M,D)}window.Dropzone=U;var ve=U})(),i})()})})(Wd)),Wd.exports}var bS=yS();const Qm=Go(bS),CS={class:"fallback"},ES={for:"file"},kS={class:"dz-message","data-dz-message":""},wS={id:"bd-dropzone-theme",style:{display:"none"}},SS={class:"dz-preview dz-file-preview"},AS={class:"dz-details"},xS={class:"dz-success-mark"},TS={class:"dz-error-message text-danger"},Kd=l.defineComponent({__name:"BDDropzone",props:{modelValue:{default:[]},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:".jpg"},url:{default:""},tag:{default:"form"},token:{default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>({variant:sa.PRIMARY,size:at.SM})),i=eo(n,"modelValue",r);let s=null;Qm.autoDiscover=!1,l.watch(()=>n.modelValue,()=>{c()}),l.onMounted(()=>{document.getElementById("dropzone")&&a()});const c=()=>{s&&(s.destroy(),a())},a=()=>{s=new Qm("#dropzone",{url:n.url,method:"post",acceptedFiles:n.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:n.multiple?10:1,headers:{RequestVerificationToken:n.token},dictResponseError:n.errorMessage,dictFileTooBig:n.fileSizeExceededMessage,previewTemplate:document.querySelector("#bd-dropzone-theme")?.innerHTML}),s.on("error",u),s.on("success",d),s.on("removedfile",h)},d=function(m,g){i.value.push({UUID:m.upload?.uuid,CorrelationId:g.CorrelationId,Naam:g.Naam}),f(m)},u=function(m){f(m)},f=function(m){const g=m.name;if(!(g.endsWith(".png")||g.endsWith(".jpg")||g.endsWith(".jpeg")||g.endsWith(".gif"))){const v=m.previewElement.getElementsByClassName("icon-file"),y=m.previewElement.getElementsByClassName("dz-image");v[0].classList.remove("d-none"),y[0].classList.add("d-none")}},h=function(m){const g=i.value.findIndex(v=>v?.UUID===m.upload?.uuid);g!==-1&&i.value.splice(g,1)},p=l.computed(()=>n.tag??"form");return(m,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(p.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:l.withCtx(()=>[l.createElementVNode("div",CS,[g[0]||(g[0]=l.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1)),g[1]||(g[1]=l.createTextVNode(" test ",-1)),l.createElementVNode("label",ES,[l.createVNode(l.unref(pr)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)])]),l.createElementVNode("div",kS,[l.createVNode(Re,l.normalizeProps(l.guardReactiveProps(o.value)),{default:l.withCtx(()=>[l.createVNode(l.unref(pr)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)]),_:1},16)])]),_:1})),l.createElementVNode("div",wS,[l.createElementVNode("div",SS,[l.createElementVNode("div",AS,[g[2]||(g[2]=l.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1)),l.createVNode(l.unref($c),{"data-dz-thumbnail":"",class:"d-none"}),g[3]||(g[3]=l.createElementVNode("div",{class:"dz-filename"},[l.createElementVNode("small",{"data-dz-name":""})],-1)),l.createVNode(Re,{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:l.withCtx(()=>[l.createVNode(l.unref(_i))]),_:1})]),g[5]||(g[5]=l.createElementVNode("div",{class:"dz-progress"},[l.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[l.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1)),l.createElementVNode("div",xS,[l.createVNode(l.unref(Fo))]),l.createElementVNode("div",TS,[l.createVNode(l.unref(ra)),g[4]||(g[4]=l.createElementVNode("small",{"data-dz-errormessage":""},null,-1))])])])],64))}});function St(t){this.content=t}St.prototype={constructor:St,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new St(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new St(n)},addToStart:function(t,e){return new St([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new St(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new St(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=St.from(t),t.size?new St(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=St.from(t),t.size?new St(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=St.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},St.from=function(t){if(t instanceof St)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new St(e)};function Zm(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=Zm(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function Jm(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),c=e.child(--i),a=s.nodeSize;if(s==c){n-=a,r-=a;continue}if(!s.sameMarkup(c))return{a:n,b:r};if(s.isText&&s.text!=c.text){let d=0,u=Math.min(s.text.length,c.text.length);for(;d<u&&s.text[s.text.length-d-1]==c.text[c.text.length-d-1];)d++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let d=Jm(s.content,c.content,n-1,r-1);if(d)return d}n-=a,r-=a}}class ce{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,c=0;c<n;s++){let a=this.content[s],d=c+a.nodeSize;if(d>e&&r(a,o+c,i||null,s)!==!1&&a.content.size){let u=c+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,o+u)}c=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(c,a)=>{let d=c.isText?c.text.slice(Math.max(e,a)-a,n-a):c.isLeaf?o?typeof o=="function"?o(c):o:c.type.spec.leafText?c.type.spec.leafText(c):"":"";c.isBlock&&(c.isLeaf&&d||c.isTextblock)&&r&&(s?s=!1:i+=r),i+=d},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new ce(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let c=this.content[i],a=s+c.nodeSize;a>e&&((s<e||a>n)&&(c.isText?c=c.cut(Math.max(0,e-s),Math.min(c.text.length,n-s)):c=c.cut(Math.max(0,e-s-1),Math.min(c.content.size,n-s-1))),r.push(c),o+=c.nodeSize),s=a}return new ce(r,o)}cutByIndex(e,n){return e==n?ce.empty:e==0&&n==this.content.length?this:new ce(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new ce(o,i)}addToStart(e){return new ce([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new ce(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return Zm(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return Jm(this,e,n,r)}findIndex(e){if(e==0)return $a(0,e);if(e==this.size)return $a(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=this.child(n),i=r+o.nodeSize;if(i>=e)return i==e?$a(n+1,i):$a(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return ce.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ce(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return ce.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new ce(n||e,r)}static from(e){if(!e)return ce.empty;if(e instanceof ce)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new ce([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ce.empty=new ce([],0);const Yd={index:0,offset:0};function $a(t,e){return Yd.index=t,Yd.offset=e,Yd}function Fa(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Fa(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Fa(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let Ye=class Sh{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Fa(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let o=r.create(n.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Sh.none;if(e instanceof Sh)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};Ye.none=[];class za extends Error{}class be{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=qm(this.content,e+this.openStart,n);return r&&new be(r,this.openStart,this.openEnd)}removeBetween(e,n){return new be(Xm(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return be.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new be(ce.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new be(e,r,o)}}be.empty=new be(ce.empty,0,0);function Xm(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:c}=t.findIndex(n);if(o==e||i.isText){if(c!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(Xm(i.content,e-o-1,n-o-1)))}function qm(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=qm(s.content,e-i-1,n,s);return c&&t.replaceChild(o,s.copy(c))}function IS(t,e,n){if(n.openStart>t.depth)throw new za("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new za("Inconsistent open depths");return Vm(t,e,n,0)}function Vm(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=Vm(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,c=s.content;return co(s,c.cut(0,t.parentOffset).append(n.content).append(c.cut(e.parentOffset)))}else{let{start:s,end:c}=_S(n,t);return co(i,t0(t,s,c,e,r))}else return co(i,Ua(t,e,r))}function e0(t,e){if(!e.type.compatibleContent(t.type))throw new za("Cannot join "+e.type.name+" onto "+t.type.name)}function Gd(t,e,n){let r=t.node(n);return e0(r,e.node(n)),r}function lo(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function ns(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(lo(t.nodeAfter,r),i++));for(let c=i;c<s;c++)lo(o.child(c),r);e&&e.depth==n&&e.textOffset&&lo(e.nodeBefore,r)}function co(t,e){return t.type.checkContent(e),t.copy(e)}function t0(t,e,n,r,o){let i=t.depth>o&&Gd(t,e,o+1),s=r.depth>o&&Gd(n,r,o+1),c=[];return ns(null,t,o,c),i&&s&&e.index(o)==n.index(o)?(e0(i,s),lo(co(i,t0(t,e,n,r,o+1)),c)):(i&&lo(co(i,Ua(t,e,o+1)),c),ns(e,n,o,c),s&&lo(co(s,Ua(n,r,o+1)),c)),ns(r,null,o,c),new ce(c)}function Ua(t,e,n){let r=[];if(ns(null,t,n,r),t.depth>n){let o=Gd(t,e,n+1);lo(co(o,Ua(t,e,n+1)),r)}return ns(e,null,n,r),new ce(r)}function _S(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(ce.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class rs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Ye.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let c=r;r=o,o=c}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Ha(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:c,offset:a}=s.content.findIndex(i),d=i-a;if(r.push(s,c,o+a),!d||(s=s.child(c),s.isText))break;i=d-1,o+=a+1}return new rs(n,r,i)}static resolveCached(e,n){let r=n0.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==n)return s}else n0.set(e,r=new NS);let o=r.elts[r.i]=rs.resolve(e,n);return r.i=(r.i+1)%OS,o}}class NS{constructor(){this.elts=[],this.i=0}}const OS=12,n0=new WeakMap;class Ha{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const MS=Object.create(null);let Xn=class Ah{constructor(e,n,r,o=Ye.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||ce.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Fa(this.attrs,n||e.defaultAttrs||MS)&&Ye.sameSet(this.marks,r||Ye.none)}copy(e=null){return e==this.content?this:new Ah(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ah(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return be.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),c=o.start(s),d=o.node(s).content.cut(o.pos-c,i.pos-c);return new be(d,o.depth-s,i.depth-s)}replace(e,n,r){return IS(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return rs.resolveCached(this,e)}resolveNoCache(e){return rs.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),r0(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=ce.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),c=s&&s.matchFragment(this.content,n);if(!c||!c.validEnd)return!1;for(let a=o;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ye.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Ye.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=ce.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,o,r);return i.type.checkAttrs(i.attrs),i}};Xn.prototype.text=void 0;class ja extends Xn{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):r0(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ja(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ja(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function r0(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class uo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new LS(e,n);if(r.next==null)return uo.empty;let o=o0(r);r.next&&r.err("Unexpected trailing text");let i=zS(FS(o));return US(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(s,c){let a=s.matchFragment(e,r);if(a&&(!n||a.validEnd))return ce.from(c.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:u,next:f}=s.next[d];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,c.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let c=o;c.type;c=c.via)s.push(c.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:c,next:a}=i.next[s];!c.isLeaf&&!c.hasRequiredAttrs()&&!(c.name in n)&&(!o.type||a.validEnd)&&(r.push({match:c.contentMatch,type:c,via:o}),n[c.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
1181
|
+
Expect errors in decoding.`),_=_.replace(/[^A-Za-z0-9\+\/\=]/g,"");R=this.KEY_STR.indexOf(_.charAt(x++)),U=this.KEY_STR.indexOf(_.charAt(x++)),Y=this.KEY_STR.indexOf(_.charAt(x++)),G=this.KEY_STR.indexOf(_.charAt(x++)),L=R<<2|U>>4,k=(U&15)<<4|Y>>2,S=(Y&3)<<6|G,T.push(L),Y!==64&&T.push(k),G!==64&&T.push(S),L=k=S="",R=U=Y=G="",x<_.length;);return T}}]),M})();me.initClass();var ye=function(D,_){var L=!1,k=!0,S=D.document,R=S.documentElement,U=S.addEventListener?"addEventListener":"attachEvent",Y=S.addEventListener?"removeEventListener":"detachEvent",G=S.addEventListener?"":"on",x=function $(Q){if(!(Q.type==="readystatechange"&&S.readyState!=="complete")&&((Q.type==="load"?D:S)[Y](G+Q.type,$,!1),!L&&(L=!0)))return _.call(D,Q.type||Q)},T=function $(){try{R.doScroll("left")}catch{setTimeout($,50);return}return x("poll")};if(S.readyState!=="complete"){if(S.createEventObject&&R.doScroll){try{k=!D.frameElement}catch{}k&&T()}return S[U](G+"DOMContentLoaded",x,!1),S[U](G+"readystatechange",x,!1),D[U](G+"load",x,!1)}};z._autoDiscoverFunction=function(){if(z.autoDiscover)return z.discover()},ye(window,z._autoDiscoverFunction);function Ce(M,D){return typeof M<"u"&&M!==null?D(M):void 0}function Se(M,D,_){if(typeof M<"u"&&M!==null&&typeof M[D]=="function")return _(M,D)}window.Dropzone=z;var ve=z})(),i})()})})(Wd)),Wd.exports}var bS=yS();const Qm=Go(bS),CS={class:"fallback"},ES={for:"file"},kS={class:"dz-message","data-dz-message":""},wS={id:"bd-dropzone-theme",style:{display:"none"}},SS={class:"dz-preview dz-file-preview"},AS={class:"dz-details"},xS={class:"dz-success-mark"},TS={class:"dz-error-message text-danger"},Kd=l.defineComponent({__name:"BDDropzone",props:{modelValue:{default:[]},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:".jpg"},url:{default:""},tag:{default:"form"},token:{default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>({variant:sa.PRIMARY,size:at.SM})),i=eo(n,"modelValue",r);let s=null;Qm.autoDiscover=!1,l.watch(()=>n.modelValue,()=>{c()}),l.onMounted(()=>{document.getElementById("dropzone")&&a()});const c=()=>{s&&(s.destroy(),a())},a=()=>{s=new Qm("#dropzone",{url:n.url,method:"post",acceptedFiles:n.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:n.multiple?10:1,headers:{RequestVerificationToken:n.token},dictResponseError:n.errorMessage,dictFileTooBig:n.fileSizeExceededMessage,previewTemplate:document.querySelector("#bd-dropzone-theme")?.innerHTML}),s.on("error",u),s.on("success",d),s.on("removedfile",h)},d=function(m,g){i.value.push({UUID:m.upload?.uuid,CorrelationId:g.CorrelationId,Naam:g.Naam}),f(m)},u=function(m){f(m)},f=function(m){const g=m.name;if(!(g.endsWith(".png")||g.endsWith(".jpg")||g.endsWith(".jpeg")||g.endsWith(".gif"))){const v=m.previewElement.getElementsByClassName("icon-file"),y=m.previewElement.getElementsByClassName("dz-image");v[0].classList.remove("d-none"),y[0].classList.add("d-none")}},h=function(m){const g=i.value.findIndex(v=>v?.UUID===m.upload?.uuid);g!==-1&&i.value.splice(g,1)},p=l.computed(()=>n.tag??"form");return(m,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(p.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:l.withCtx(()=>[l.createElementVNode("div",CS,[g[0]||(g[0]=l.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1)),g[1]||(g[1]=l.createTextVNode(" test ",-1)),l.createElementVNode("label",ES,[l.createVNode(l.unref(pr)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)])]),l.createElementVNode("div",kS,[l.createVNode(Re,l.normalizeProps(l.guardReactiveProps(o.value)),{default:l.withCtx(()=>[l.createVNode(l.unref(pr)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)]),_:1},16)])]),_:1})),l.createElementVNode("div",wS,[l.createElementVNode("div",SS,[l.createElementVNode("div",AS,[g[2]||(g[2]=l.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1)),l.createVNode(l.unref($c),{"data-dz-thumbnail":"",class:"d-none"}),g[3]||(g[3]=l.createElementVNode("div",{class:"dz-filename"},[l.createElementVNode("small",{"data-dz-name":""})],-1)),l.createVNode(Re,{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:l.withCtx(()=>[l.createVNode(l.unref(_i))]),_:1})]),g[5]||(g[5]=l.createElementVNode("div",{class:"dz-progress"},[l.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[l.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1)),l.createElementVNode("div",xS,[l.createVNode(l.unref(Fo))]),l.createElementVNode("div",TS,[l.createVNode(l.unref(ra)),g[4]||(g[4]=l.createElementVNode("small",{"data-dz-errormessage":""},null,-1))])])])],64))}});function St(t){this.content=t}St.prototype={constructor:St,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new St(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new St(n)},addToStart:function(t,e){return new St([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new St(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new St(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=St.from(t),t.size?new St(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=St.from(t),t.size?new St(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=St.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},St.from=function(t){if(t instanceof St)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new St(e)};function Zm(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=Zm(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function Jm(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),c=e.child(--i),a=s.nodeSize;if(s==c){n-=a,r-=a;continue}if(!s.sameMarkup(c))return{a:n,b:r};if(s.isText&&s.text!=c.text){let d=0,u=Math.min(s.text.length,c.text.length);for(;d<u&&s.text[s.text.length-d-1]==c.text[c.text.length-d-1];)d++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let d=Jm(s.content,c.content,n-1,r-1);if(d)return d}n-=a,r-=a}}class ce{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,c=0;c<n;s++){let a=this.content[s],d=c+a.nodeSize;if(d>e&&r(a,o+c,i||null,s)!==!1&&a.content.size){let u=c+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,o+u)}c=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(c,a)=>{let d=c.isText?c.text.slice(Math.max(e,a)-a,n-a):c.isLeaf?o?typeof o=="function"?o(c):o:c.type.spec.leafText?c.type.spec.leafText(c):"":"";c.isBlock&&(c.isLeaf&&d||c.isTextblock)&&r&&(s?s=!1:i+=r),i+=d},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new ce(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let c=this.content[i],a=s+c.nodeSize;a>e&&((s<e||a>n)&&(c.isText?c=c.cut(Math.max(0,e-s),Math.min(c.text.length,n-s)):c=c.cut(Math.max(0,e-s-1),Math.min(c.content.size,n-s-1))),r.push(c),o+=c.nodeSize),s=a}return new ce(r,o)}cutByIndex(e,n){return e==n?ce.empty:e==0&&n==this.content.length?this:new ce(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new ce(o,i)}addToStart(e){return new ce([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new ce(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return Zm(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return Jm(this,e,n,r)}findIndex(e){if(e==0)return $a(0,e);if(e==this.size)return $a(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=this.child(n),i=r+o.nodeSize;if(i>=e)return i==e?$a(n+1,i):$a(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return ce.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ce(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return ce.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new ce(n||e,r)}static from(e){if(!e)return ce.empty;if(e instanceof ce)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new ce([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ce.empty=new ce([],0);const Yd={index:0,offset:0};function $a(t,e){return Yd.index=t,Yd.offset=e,Yd}function Fa(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Fa(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Fa(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let Ye=class Sh{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Fa(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let o=r.create(n.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Sh.none;if(e instanceof Sh)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};Ye.none=[];class za extends Error{}class be{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=qm(this.content,e+this.openStart,n);return r&&new be(r,this.openStart,this.openEnd)}removeBetween(e,n){return new be(Xm(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return be.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new be(ce.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new be(e,r,o)}}be.empty=new be(ce.empty,0,0);function Xm(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:c}=t.findIndex(n);if(o==e||i.isText){if(c!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(Xm(i.content,e-o-1,n-o-1)))}function qm(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=qm(s.content,e-i-1,n,s);return c&&t.replaceChild(o,s.copy(c))}function IS(t,e,n){if(n.openStart>t.depth)throw new za("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new za("Inconsistent open depths");return Vm(t,e,n,0)}function Vm(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=Vm(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,c=s.content;return co(s,c.cut(0,t.parentOffset).append(n.content).append(c.cut(e.parentOffset)))}else{let{start:s,end:c}=_S(n,t);return co(i,t0(t,s,c,e,r))}else return co(i,Ua(t,e,r))}function e0(t,e){if(!e.type.compatibleContent(t.type))throw new za("Cannot join "+e.type.name+" onto "+t.type.name)}function Gd(t,e,n){let r=t.node(n);return e0(r,e.node(n)),r}function lo(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function ns(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(lo(t.nodeAfter,r),i++));for(let c=i;c<s;c++)lo(o.child(c),r);e&&e.depth==n&&e.textOffset&&lo(e.nodeBefore,r)}function co(t,e){return t.type.checkContent(e),t.copy(e)}function t0(t,e,n,r,o){let i=t.depth>o&&Gd(t,e,o+1),s=r.depth>o&&Gd(n,r,o+1),c=[];return ns(null,t,o,c),i&&s&&e.index(o)==n.index(o)?(e0(i,s),lo(co(i,t0(t,e,n,r,o+1)),c)):(i&&lo(co(i,Ua(t,e,o+1)),c),ns(e,n,o,c),s&&lo(co(s,Ua(n,r,o+1)),c)),ns(r,null,o,c),new ce(c)}function Ua(t,e,n){let r=[];if(ns(null,t,n,r),t.depth>n){let o=Gd(t,e,n+1);lo(co(o,Ua(t,e,n+1)),r)}return ns(e,null,n,r),new ce(r)}function _S(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(ce.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class rs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Ye.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let c=r;r=o,o=c}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Ha(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:c,offset:a}=s.content.findIndex(i),d=i-a;if(r.push(s,c,o+a),!d||(s=s.child(c),s.isText))break;i=d-1,o+=a+1}return new rs(n,r,i)}static resolveCached(e,n){let r=n0.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==n)return s}else n0.set(e,r=new NS);let o=r.elts[r.i]=rs.resolve(e,n);return r.i=(r.i+1)%OS,o}}class NS{constructor(){this.elts=[],this.i=0}}const OS=12,n0=new WeakMap;class Ha{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const MS=Object.create(null);let Xn=class Ah{constructor(e,n,r,o=Ye.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||ce.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Fa(this.attrs,n||e.defaultAttrs||MS)&&Ye.sameSet(this.marks,r||Ye.none)}copy(e=null){return e==this.content?this:new Ah(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ah(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return be.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),c=o.start(s),d=o.node(s).content.cut(o.pos-c,i.pos-c);return new be(d,o.depth-s,i.depth-s)}replace(e,n,r){return IS(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return rs.resolveCached(this,e)}resolveNoCache(e){return rs.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),r0(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=ce.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),c=s&&s.matchFragment(this.content,n);if(!c||!c.validEnd)return!1;for(let a=o;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ye.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Ye.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=ce.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,o,r);return i.type.checkAttrs(i.attrs),i}};Xn.prototype.text=void 0;class ja extends Xn{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):r0(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ja(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ja(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function r0(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class uo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new LS(e,n);if(r.next==null)return uo.empty;let o=o0(r);r.next&&r.err("Unexpected trailing text");let i=zS(FS(o));return US(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(s,c){let a=s.matchFragment(e,r);if(a&&(!n||a.validEnd))return ce.from(c.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:u,next:f}=s.next[d];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,c.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let c=o;c.type;c=c.via)s.push(c.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:c,next:a}=i.next[s];!c.isLeaf&&!c.hasRequiredAttrs()&&!(c.name in n)&&(!o.type||a.validEnd)&&(r.push({match:c.contentMatch,type:c,via:o}),n[c.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
1182
1182
|
`)}}uo.empty=new uo(!0);class LS{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function o0(t){let e=[];do e.push(DS(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function DS(t){let e=[];do e.push(PS(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function PS(t){let e=$S(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=BS(t,e);else break;return e}function i0(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function BS(t,e){let n=i0(t),r=n;return t.eat(",")&&(t.next!="}"?r=i0(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function RS(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.isInGroup(e)&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function $S(t){if(t.eat("(")){let e=o0(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=RS(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function FS(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,c,a){let d={term:a,to:c};return e[s].push(d),d}function o(s,c){s.forEach(a=>a.to=c)}function i(s,c){if(s.type=="choice")return s.exprs.reduce((a,d)=>a.concat(i(d,c)),[]);if(s.type=="seq")for(let a=0;;a++){let d=i(s.exprs[a],c);if(a==s.exprs.length-1)return d;o(d,c=n())}else if(s.type=="star"){let a=n();return r(c,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=n();return o(i(s.expr,c),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(c)].concat(i(s.expr,c));if(s.type=="range"){let a=c;for(let d=0;d<s.min;d++){let u=n();o(i(s.expr,a),u),a=u}if(s.max==-1)o(i(s.expr,a),a);else for(let d=s.min;d<s.max;d++){let u=n();r(a,u),o(i(s.expr,a),u),a=u}return[r(a)]}else{if(s.type=="name")return[r(c,void 0,s.value)];throw new Error("Unknown expr type")}}}}function s0(t,e){return e-t}function a0(t,e){let n=[];return r(e),n.sort(s0);function r(o){let i=t[o];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(o);for(let s=0;s<i.length;s++){let{term:c,to:a}=i[s];!c&&n.indexOf(a)==-1&&r(a)}}}function zS(t){let e=Object.create(null);return n(a0(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:c,to:a})=>{if(!c)return;let d;for(let u=0;u<o.length;u++)o[u][0]==c&&(d=o[u][1]);a0(t,a).forEach(u=>{d||o.push([c,d=[]]),d.indexOf(u)==-1&&d.push(u)})})});let i=e[r.join(",")]=new uo(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let c=o[s][1].sort(s0);i.next.push({type:o[s][0],next:e[c.join(",")]||n(c)})}return i}}function US(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],i=!o.validEnd,s=[];for(let c=0;c<o.next.length;c++){let{type:a,next:d}=o.next[c];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(d)==-1&&r.push(d)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function l0(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function c0(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let i=t[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function d0(t,e,n,r){for(let o in e)if(!(o in t))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in t){let i=t[o];i.validate&&i.validate(e[o])}}function u0(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new jS(t,r,e[r]);return n}let f0=class D3{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=u0(e,r.attrs),this.defaultAttrs=l0(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==uo.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:c0(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Xn(this,this.computeAttrs(e),ce.from(n),Ye.setFrom(r))}createChecked(e=null,n,r){return n=ce.from(n),this.checkContent(n),new Xn(this,this.computeAttrs(e),n,Ye.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=ce.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(ce.empty,!0);return i?new Xn(this,e,n.append(i),Ye.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){d0(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:Ye.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new D3(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function HS(t,e,n){let r=n.split("|");return o=>{let i=o===null?"null":typeof o;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}}class jS{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?HS(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Wa{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=u0(e,o.attrs),this.excluded=null;let i=l0(this.attrs);this.instance=i?new Ye(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ye(this,c0(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Wa(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){d0(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class h0{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=St.from(e.nodes),n.marks=St.from(e.marks||{}),this.nodes=f0.compile(this.spec.nodes,this),this.marks=Wa.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",c=i.spec.marks;if(i.contentMatch=r[s]||(r[s]=uo.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=c=="_"?null:c?p0(this,c.split(" ")):c==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:p0(this,s.split(" "))}this.nodeFromJSON=o=>Xn.fromJSON(this,o),this.markFromJSON=o=>Ye.fromJSON(this,o),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof f0){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new ja(r,r.defaultAttrs,e,Ye.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function p0(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],s=i;if(i)n.push(i);else for(let c in t.marks){let a=t.marks[c];(o=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function WS(t){return t.tag!=null}function KS(t){return t.style!=null}class kr{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(o=>{if(WS(o))this.tags.push(o);else if(KS(o)){let i=/[^=]*/.exec(o.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let i=e.nodes[o.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let r=new y0(this,n,!1);return r.addAll(e,Ye.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new y0(this,n,!0);return r.addAll(e,Ye.none,n.from,n.to),be.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(QS(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],c=s.style;if(!(c.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||c.length>e.length&&(c.charCodeAt(e.length)!=61||c.slice(e.length+1)!=n))){if(s.getAttrs){let a=s.getAttrs(n);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s<n.length;s++){let c=n[s];if((c.priority==null?50:c.priority)<i)break}n.splice(s,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=b0(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=b0(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new kr(e,kr.schemaRules(e)))}}const m0={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},YS={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},g0={ol:!0,ul:!0},is=1,Qd=2,ss=4;function v0(t,e,n){return e!=null?(e?is:0)|(e==="full"?Qd:0):t&&t.whitespace=="pre"?is|Qd:n&~ss}class Ka{constructor(e,n,r,o,i,s){this.type=e,this.attrs=n,this.marks=r,this.solid=o,this.options=s,this.content=[],this.activeMarks=Ye.none,this.match=i||(s&ss?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ce.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&is)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=ce.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(ce.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!m0.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class y0{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let o=n.topNode,i,s=v0(null,n.preserveWhitespace,0)|(r?ss:0);o?i=new Ka(o.type,o.attrs,Ye.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new Ka(null,null,Ye.none,!0,null,s):i=new Ka(e.schema.topNodeType,null,Ye.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,o=this.top,i=o.options&Qd?"full":this.localPreserveWS||(o.options&is)>0,{schema:s}=this.parser;if(i==="full"||o.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
|
|
1183
1183
|
`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let c=r.split(/\r?\n|\r/);for(let a=0;a<c.length;a++)a&&this.insertNode(s.linebreakReplacement.create(),n,!0),c[a]&&this.insertNode(s.text(c[a]),n,!/\S/.test(c[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let c=o.content[o.content.length-1],a=e.previousSibling;(!c||a&&a.nodeName=="BR"||c.isText&&/[ \t\r\n\u000c]$/.test(c.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let o=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),c;g0.hasOwnProperty(s)&&this.parser.normalizeLists&&GS(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(c=this.parser.matchTag(e,this,r));e:if(a?a.ignore:YS.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let d,u=this.needsBlock;if(m0.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),d=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let f=a&&a.skip?n:this.readStyles(e,n);f&&this.addAll(e,f),d&&this.sync(i),this.needsBlock=u}else{let d=this.readStyles(e,n);d&&this.addElementByRule(e,a,d,a.consuming===!1?c:void 0)}this.localPreserveWS=o}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
1184
1184
|
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let i=this.parser.matchedStyles[o],s=r.getPropertyValue(i);if(s)for(let c=void 0;;){let a=this.parser.matchStyle(i,s,this,c);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(d=>!a.clearMark(d)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)c=a;else break}}return n}addElementByRule(e,n,r,o){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(s,n.attrs||null,r,n.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let c=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}i&&this.sync(c)&&this.open--}addAll(e,n,r,o){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,c=o==null?null:e.childNodes[o];s!=c;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,r){let o,i;for(let s=this.open,c=0;s>=0;s--){let a=this.nodes[s],d=a.findWrapping(e);if(d&&(!o||o.length>d.length+c)&&(o=d,i=a,!d.length))break;if(a.solid){if(r)break;c+=2}}if(!o)return null;this.sync(i);for(let s=0;s<o.length;s++)n=this.enterInner(o[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let o=this.findPlace(e,n,r);if(o){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=Ye.none;for(let c of o.concat(e.marks))(i.type?i.type.allowsMarkType(c.type):C0(c.type,e.type))&&(s=c.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,n,r,o){let i=this.findPlace(e.create(n),r,!1);return i&&(i=this.enterInner(e,n,r,!0,o)),i}enterInner(e,n,r,o=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let c=v0(e,i,s.options);s.options&ss&&s.content.length==0&&(c|=ss);let a=Ye.none;return r=r.filter(d=>(s.type?s.type.allowsMarkType(d.type):C0(d.type,e))?(a=d.addToSet(a),!1):!0),this.nodes.push(new Ka(e,n,a,o,null,c)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=is)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(c,a)=>{for(;c>=0;c--){let d=n[c];if(d==""){if(c==n.length-1||c==0)continue;for(;a>=i;a--)if(s(c-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=d&&!u.isInGroup(d))return!1;a--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function GS(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&g0.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function QS(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function b0(t){let e={};for(let n in t)e[n]=t[n];return e}function C0(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],s=c=>{i.push(c);for(let a=0;a<c.edgeCount;a++){let{type:d,next:u}=c.edge(a);if(d==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}class fo{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Zd(n).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let c=0,a=0;for(;c<i.length&&a<s.marks.length;){let d=s.marks[a];if(!this.marks[d.type.name]){a++;continue}if(!d.eq(i[c][0])||d.type.spec.spanning===!1)break;c++,a++}for(;c<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let d=s.marks[a++],u=this.serializeMark(d,s.isInline,n);u&&(i.push([d,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=Ya(Zd(n),this.nodes[e.type.name](e),null,e.attrs);if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&Ya(Zd(r),o(e,n),null,e.attrs)}static renderSpec(e,n,r=null,o){return Ya(e,n,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new fo(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=E0(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return E0(e.marks)}}function E0(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Zd(t){return t.document||window.document}const k0=new WeakMap;function ZS(t){let e=k0.get(t);return e===void 0&&k0.set(t,e=JS(t)),e}function JS(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let o=0;o<r.length;o++)n(r[o]);else for(let o in r)n(r[o])}return n(t),e}function Ya(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let o=e[0],i;if(typeof o!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=ZS(r))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=o.indexOf(" ");s>0&&(n=o.slice(0,s),o=o.slice(s+1));let c,a=n?t.createElementNS(n,o):t.createElement(o),d=e[1],u=1;if(d&&typeof d=="object"&&d.nodeType==null&&!Array.isArray(d)){u=2;for(let f in d)if(d[f]!=null){let h=f.indexOf(" ");h>0?a.setAttributeNS(f.slice(0,h),f.slice(h+1),d[f]):f=="style"&&a.style?a.style.cssText=d[f]:a.setAttribute(f,d[f])}}for(let f=u;f<e.length;f++){let h=e[f];if(h===0){if(f<e.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:p,contentDOM:m}=Ya(t,h,n,r);if(a.appendChild(p),m){if(c)throw new RangeError("Multiple content holes");c=m}}}return{dom:a,contentDOM:c}}const w0=65535,S0=Math.pow(2,16);function XS(t,e){return t+e*S0}function A0(t){return t&w0}function qS(t){return(t-(t&w0))/S0}const x0=1,T0=2,Ga=4,I0=8;class Jd{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&I0)>0}get deletedBefore(){return(this.delInfo&(x0|Ga))>0}get deletedAfter(){return(this.delInfo&(T0|Ga))>0}get deletedAcross(){return(this.delInfo&Ga)>0}}class Jt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Jt.empty)return Jt.empty}recover(e){let n=0,r=A0(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+qS(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let a=this.ranges[c]-(this.inverted?o:0);if(a>e)break;let d=this.ranges[c+i],u=this.ranges[c+s],f=a+d;if(e<=f){let h=d?e==a?-1:e==f?1:n:n,p=a+o+(h<0?0:u);if(r)return p;let m=e==(n<0?a:f)?null:XS(c/3,e-a),g=e==a?T0:e==f?x0:Ga;return(n<0?e!=a:e!=f)&&(g|=I0),new Jd(p,g,m)}o+=u-d}return r?e+o:new Jd(e+o,0,null)}touches(e,n){let r=0,o=A0(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let a=this.ranges[c]-(this.inverted?r:0);if(a>e)break;let d=this.ranges[c+i],u=a+d;if(e<=u&&c==o*3)return!0;r+=this.ranges[c+s]-d}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],c=s-(this.inverted?i:0),a=s+(this.inverted?0:i),d=this.ranges[o+n],u=this.ranges[o+r];e(c,c+d,a,a+u),i+=u-d}}invert(){return new Jt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Jt.empty:new Jt(e<0?[0,-e,0]:[0,0,e])}}Jt.empty=new Jt([]);class as{constructor(e,n,r=0,o=e?e.length:0){this.mirror=n,this.from=r,this.to=o,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new as(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let o=e.getMirror(n);this.appendMap(e._maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e._maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new as;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],c=s.mapResult(e,n);if(c.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this._maps[a].recover(c.recover);continue}}o|=c.delInfo,e=c.pos}return r?e:new Jd(e,o,null)}}const Xd=Object.create(null);class Mt{getMap(){return Jt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Xd[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Xd)throw new RangeError("Duplicate use of step JSON ID "+e);return Xd[e]=n,n.prototype.jsonID=e,n}}class ct{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ct(e,null)}static fail(e){return new ct(null,e)}static fromReplace(e,n,r,o){try{return ct.ok(e.replace(n,r,o))}catch(i){if(i instanceof za)return ct.fail(i.message);throw i}}}function qd(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(qd(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return ce.fromArray(r)}class wr extends Mt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new be(qd(n.content,(s,c)=>!s.isAtom||!c.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return ct.fromReplace(e,this.from,this.to,i)}invert(){return new wn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new wr(n.pos,r.pos,this.mark)}merge(e){return e instanceof wr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new wr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new wr(n.from,n.to,e.markFromJSON(n.mark))}}Mt.jsonID("addMark",wr);class wn extends Mt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new be(qd(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return ct.fromReplace(e,this.from,this.to,r)}invert(){return new wr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new wn(n.pos,r.pos,this.mark)}merge(e){return e instanceof wn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new wn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new wn(n.from,n.to,e.markFromJSON(n.mark))}}Mt.jsonID("removeMark",wn);class Sr extends Mt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ct.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ct.fromReplace(e,this.pos,this.pos+1,new be(ce.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new Sr(this.pos,n.marks[o]);return new Sr(this.pos,this.mark)}}return new ho(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Sr(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Sr(n.pos,e.markFromJSON(n.mark))}}Mt.jsonID("addNodeMark",Sr);class ho extends Mt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ct.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ct.fromReplace(e,this.pos,this.pos+1,new be(ce.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Sr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ho(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ho(n.pos,e.markFromJSON(n.mark))}}Mt.jsonID("removeNodeMark",ho);class yt extends Mt{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&Vd(e,this.from,this.to)?ct.fail("Structure replace would overwrite content"):ct.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Jt([this.from,this.to-this.from,this.slice.size])}invert(e){return new yt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new yt(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof yt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?be.empty:new be(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new yt(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?be.empty:new be(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new yt(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new yt(n.from,n.to,be.fromJSON(e,n.slice),!!n.structure)}}Mt.jsonID("replace",yt);class bt extends Mt{constructor(e,n,r,o,i,s,c=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=c}apply(e){if(this.structure&&(Vd(e,this.from,this.gapFrom)||Vd(e,this.gapTo,this.to)))return ct.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ct.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ct.fromReplace(e,this.from,this.to,r):ct.fail("Content does not fit in gap")}getMap(){return new Jt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new bt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new bt(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new bt(n.from,n.to,n.gapFrom,n.gapTo,be.fromJSON(e,n.slice),n.insert,!!n.structure)}}Mt.jsonID("replaceAround",bt);function Vd(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function VS(t,e,n,r){let o=[],i=[],s,c;t.doc.nodesBetween(e,n,(a,d,u)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let h=Math.max(d,e),p=Math.min(d+a.nodeSize,n),m=r.addToSet(f);for(let g=0;g<f.length;g++)f[g].isInSet(m)||(s&&s.to==h&&s.mark.eq(f[g])?s.to=p:o.push(s=new wn(h,p,f[g])));c&&c.to==h?c.to=p:i.push(c=new wr(h,p,r))}}),o.forEach(a=>t.step(a)),i.forEach(a=>t.step(a))}function eA(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,c)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Wa){let d=s.marks,u;for(;u=r.isInSet(d);)(a||(a=[])).push(u),d=u.removeFromSet(d)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let d=Math.min(c+s.nodeSize,n);for(let u=0;u<a.length;u++){let f=a[u],h;for(let p=0;p<o.length;p++){let m=o[p];m.step==i-1&&f.eq(o[p].style)&&(h=m)}h?(h.to=d,h.step=i):o.push({style:f,from:Math.max(c,e),to:d,step:i})}}}),o.forEach(s=>t.step(new wn(s.from,s.to,s.style)))}function eu(t,e,n,r=n.contentMatch,o=!0){let i=t.doc.nodeAt(e),s=[],c=e+1;for(let a=0;a<i.childCount;a++){let d=i.child(a),u=c+d.nodeSize,f=r.matchType(d.type);if(!f)s.push(new yt(c,u,be.empty));else{r=f;for(let h=0;h<d.marks.length;h++)n.allowsMarkType(d.marks[h].type)||t.step(new wn(c,u,d.marks[h]));if(o&&d.isText&&n.whitespace!="pre"){let h,p=/\r?\n|\r/g,m;for(;h=p.exec(d.text);)m||(m=new be(ce.from(n.schema.text(" ",n.allowedMarks(d.marks))),0,0)),s.push(new yt(c+h.index,c+h.index+h[0].length,m))}}c=u}if(!r.validEnd){let a=r.fillBefore(ce.empty,!0);t.replace(c,c,new be(a,0,0))}for(let a=s.length-1;a>=0;a--)t.step(s[a])}function tA(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Qo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,o=0,i=0;;--r){let s=t.$from.node(r),c=t.$from.index(r)+o,a=t.$to.indexAfter(r)-i;if(r<t.depth&&s.canReplace(c,a,n))return r;if(r==0||s.type.spec.isolating||!tA(s,c,a))break;c&&(o=1),a<s.childCount&&(i=1)}return null}function nA(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),c=o.after(i+1),a=s,d=c,u=ce.empty,f=0;for(let m=i,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,u=ce.from(r.node(m).copy(u)),f++):a--;let h=ce.empty,p=0;for(let m=i,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,h=ce.from(o.node(m).copy(h)),p++):d++;t.step(new bt(a,d,s,c,new be(u.append(h),f,p),u.size-f,!0))}function tu(t,e,n=null,r=t){let o=rA(t,e),i=o&&oA(r,e);return i?o.map(_0).concat({type:e,attrs:n}).concat(i.map(_0)):null}function _0(t){return{type:t,attrs:null}}function rA(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(r,o,s)?i:null}function oA(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:e).contentMatch;for(let d=r;a&&d<o;d++)a=a.matchType(n.child(d).type);return!a||!a.validEnd?null:s}function iA(t,e,n){let r=ce.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let c=n[s].type.contentMatch.matchFragment(r);if(!c||!c.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=ce.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new bt(o,i,o,i,new be(r,0,0),n.length,!0))}function sA(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,c)=>{let a=typeof o=="function"?o(s):o;if(s.isTextblock&&!s.hasMarkup(r,a)&&aA(t.doc,t.mapping.slice(i).map(c),r)){let d=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!m?d=!1:!p&&m&&(d=!0)}d===!1&&O0(t,s,c,i),eu(t,t.mapping.slice(i).map(c,1),r,void 0,d===null);let u=t.mapping.slice(i),f=u.map(c,1),h=u.map(c+s.nodeSize,1);return t.step(new bt(f,h,f+1,h-1,new be(ce.from(r.create(a,null,s.marks)),0,0),1,!0)),d===!0&&N0(t,s,c,i),!1}})}function N0(t,e,n,r){e.forEach((o,i)=>{if(o.isText){let s,c=/\r?\n|\r/g;for(;s=c.exec(o.text);){let a=t.mapping.slice(r).map(n+1+i+s.index);t.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function O0(t,e,n,r){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
|
|
@@ -1187,10 +1187,10 @@ Expect errors in decoding.`),_=_.replace(/[^A-Za-z0-9\+\/\=]/g,"");R=this.KEY_ST
|
|
|
1187
1187
|
`),f&&m==p.nodeValue.length)for(let g=p,v;g;g=g.parentNode){if(v=g.nextSibling){v.nodeName=="BR"&&(c=a={node:v.parentNode,offset:At(v)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=p.childNodes[m-1];f=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(on&&u.focusNode&&u.focusNode!=a.node&&u.focusNode.nodeType==1){let p=u.focusNode.childNodes[u.focusOffset];p&&p.contentEditable=="false"&&(o=!0)}if(!(o||f&&Lt)&&po(c.node,c.offset,u.anchorNode,u.anchorOffset)&&po(a.node,a.offset,u.focusNode,u.focusOffset))return;let h=!1;if((d.extend||e==n)&&!(f&&on)){d.collapse(c.node,c.offset);try{e!=n&&d.extend(a.node,a.offset),h=!0}catch{}}if(!h){if(e>n){let m=c;c=a,a=m}let p=document.createRange();p.setEnd(a.node,a.offset),p.setStart(c.node,c.offset),d.removeAllRanges(),d.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let c=r+i.border,a=s-i.border;if(e>=c&&n<=a){this.dirty=e==r||n==s?go:kg,e==c&&n==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Pn:i.markDirty(e-c,n-c);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?go:Pn}r=s}this.dirty=go}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?go:kg;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class wg extends ms{constructor(e,n,r,o){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let c=document.createElement("span");c.appendChild(s),s=c}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==an&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class fx extends ms{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class vo extends ms{constructor(e,n,r,o,i){super(e,[],r,o),this.mark=n,this.spec=i}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=fo.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new vo(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Pn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Pn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=an){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=an}}slice(e,n,r){let o=vo.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=Cu(i,n,s,r)),e>0&&(i=Cu(i,0,e,r));for(let c=0;c<i.length;c++)i[c].parent=o;return o.children=i,o}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class _r extends ms{constructor(e,n,r,o,i,s,c,a,d){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=c}static create(e,n,r,o,i,s){let c=i.nodeViews[n.type.name],a,d=c&&c(n,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),u=d&&d.dom,f=d&&d.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=fo.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let h=u;return u=Ig(u,r,n),d?a=new hx(e,n,r,o,u,f||null,h,d,i,s+1):n.isText?new Va(e,n,r,o,u,h,i):new _r(e,n,r,o,u,f||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>ce.empty)}return e}matchesNode(e,n,r){return this.dirty==an&&e.eq(this.node)&&el(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,c=i&&i.pos<0,a=new mx(this,s&&s.node,e);yx(this.node,this.innerDeco,(d,u,f)=>{d.spec.marks?a.syncToMarks(d.spec.marks,r,e,u):d.type.side>=0&&!f&&a.syncToMarks(u==this.node.childCount?Ye.none:this.node.child(u).marks,r,e,u),a.placeWidget(d,e,o)},(d,u,f,h)=>{a.syncToMarks(d.marks,r,e,h);let p;a.findNodeMatch(d,u,f,h)||c&&e.state.selection.from>o&&e.state.selection.to<o+d.nodeSize&&(p=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(d,u,f,p,e)||a.updateNextNode(d,u,f,e,h,o)||a.addNode(d,u,f,e,o),o+=d.nodeSize}),a.syncToMarks([],r,e,0),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==go)&&(s&&this.protectLocalComposition(e,s),xg(this.contentDOM,this.children,e),ti&&bx(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Le)||r<n||o>n+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,c=Cx(this.node.content,s,r-n,o-n);return c<0?null:{node:i,pos:c,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new fx(this,i,n,o);e.input.compositionNodes.push(s),this.children=Cu(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==Pn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=an}updateOuterDeco(e){if(el(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Tg(this.dom,this.nodeDOM,bu(this.outerDeco,this.node,n),bu(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Sg(t,e,n,r,o){Ig(r,e,t);let i=new _r(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Va extends _r{constructor(e,n,r,o,i,s,c){super(e,n,r,o,i,null,s,c,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==Pn||this.dirty!=an&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=an||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=an,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),i=document.createTextNode(o.text);return new Va(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Pn)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Ag extends ms{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==an&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class hx extends _r{constructor(e,n,r,o,i,s,c,a,d,u){super(e,n,r,o,i,s,c,d,u),this.spec=a}update(e,n,r,o){if(this.dirty==Pn)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function xg(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],c=s.dom;if(c.parentNode==t){for(;c!=r;)r=_g(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(c,r);if(s instanceof vo){let a=r?r.previousSibling:t.lastChild;xg(s.contentDOM,s.children,n),r=a?a.nextSibling:t.firstChild}}for(;r;)r=_g(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const gs=function(t){t&&(this.nodeName=t)};gs.prototype=Object.create(null);const yo=[new gs];function bu(t,e,n){if(t.length==0)return yo;let r=n?yo[0]:new gs,o=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&o.push(r=new gs(s.nodeName));for(let c in s){let a=s[c];a!=null&&(n&&o.length==1&&o.push(r=new gs(e.isInline?"span":"div")),c=="class"?r.class=(r.class?r.class+" ":"")+a:c=="style"?r.style=(r.style?r.style+";":"")+a:c!="nodeName"&&(r[c]=a))}}}return o}function Tg(t,e,n,r){if(n==yo&&r==yo)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],c=n[i];if(i){let a;c&&c.nodeName==s.nodeName&&o!=t&&(a=o.parentNode)&&a.nodeName.toLowerCase()==s.nodeName||(a=document.createElement(s.nodeName),a.pmIsDeco=!0,a.appendChild(o),c=yo[0]),o=a}px(o,c||yo[0],s)}return o}function px(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.add(o[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)t.style.removeProperty(o[1])}n.style&&(t.style.cssText+=n.style)}}function Ig(t,e,n){return Tg(t,t,yo,bu(e,n,t.nodeType!=1))}function el(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function _g(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class mx{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=gx(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r,o){let i=0,s=this.stack.length>>1,c=Math.min(s,e.length);for(;i<c&&(i==s-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<s;)this.destroyRest(),this.top.dirty=an,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let a=-1,d=this.top.children.length;o<this.preMatch.index&&(d=Math.min(this.index+3,d));for(let u=this.index;u<d;u++){let f=this.top.children[u];if(f.matchesMark(e[s])&&!this.isLocked(f.dom)){a=u;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let u=vo.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let c=this.index,a=Math.min(this.top.children.length,c+5);c<a;c++){let d=this.top.children[c];if(d.matchesNode(e,n,r)&&!this.preMatch.matched.has(d)){i=c;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,o,i){let s=this.top.children[o];return s.dirty==Pn&&s.dom==s.contentDOM&&(s.dirty=go),s.update(e,n,r,i)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=n}}updateNextNode(e,n,r,o,i,s){for(let c=this.index;c<this.top.children.length;c++){let a=this.top.children[c];if(a instanceof _r){let d=this.preMatch.matched.get(a);if(d!=null&&d!=i)return!1;let u=a.dom,f,h=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=Pn&&el(n,a.outerDeco));if(!h&&a.update(e,n,r,o))return this.destroyBetween(this.index,c),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(a,e,n,r,o,s)))return this.destroyBetween(this.index,c),this.top.children[this.index]=f,f.contentDOM&&(f.dirty=go,f.updateChildren(o,s+1),f.dirty=an),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!el(r,e.outerDeco)||!o.eq(e.innerDeco))return null;let c=_r.create(this.top,n,r,o,i,s);if(c.contentDOM){c.children=e.children,e.children=[];for(let a of c.children)a.parent=c}return e.destroy(),c}addNode(e,n,r,o,i){let s=_r.create(this.top,e,n,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let i=new wg(this.top,e,n,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof vo;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Va)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Lt||xt)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new Ag(this.top,[],r,null);n!=this.top?n.children.push(o):n.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function gx(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,s=[];e:for(;o>0;){let c;for(;;)if(r){let d=n.children[r-1];if(d instanceof vo)n=d,r=d.children.length;else{c=d,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let a=c.node;if(a){if(a!=t.child(o-1))break;--o,i.set(c,o),s.push(c)}}return{index:o,matched:i,matches:s.reverse()}}function vx(t,e){return t.type.side-e.type.side}function yx(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let d=0;d<t.childCount;d++){let u=t.child(d);r(u,o,e.forChild(i,u),d),i+=u.nodeSize}return}let s=0,c=[],a=null;for(let d=0;;){let u,f;for(;s<o.length&&o[s].to==i;){let v=o[s++];v.widget&&(u?(f||(f=[u])).push(v):u=v)}if(u)if(f){f.sort(vx);for(let v=0;v<f.length;v++)n(f[v],d,!!a)}else n(u,d,!!a);let h,p;if(a)p=-1,h=a,a=null;else if(d<t.childCount)p=d,h=t.child(d++);else break;for(let v=0;v<c.length;v++)c[v].to<=i&&c.splice(v--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)c.push(o[s++]);let m=i+h.nodeSize;if(h.isText){let v=m;s<o.length&&o[s].from<v&&(v=o[s].from);for(let y=0;y<c.length;y++)c[y].to<v&&(v=c[y].to);v<m&&(a=h.cut(v-i),h=h.cut(0,v-i),m=v,p=-1)}else for(;s<o.length&&o[s].to<m;)s++;let g=h.isInline&&!h.isLeaf?c.filter(v=>!v.inline):c.slice();r(h,g,e.forChild(i,h),p),i=m}}function bx(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function Cx(t,e,n,r){for(let o=0,i=0;o<t.childCount&&i<=r;){let s=t.child(o++),c=i;if(i+=s.nodeSize,!s.isText)continue;let a=s.text;for(;o<t.childCount;){let d=t.child(o++);if(i+=d.nodeSize,!d.isText)break;a+=d.text}if(i>=n){if(i>=r&&a.slice(r-e.length-c,r-c)==e)return r-e.length;let d=c<r?a.lastIndexOf(e,r-c-1):-1;if(d>=0&&d+e.length+c>=n)return c+d;if(n==r&&a.length>=r+e.length-c&&a.slice(r-c,r-c+e.length)==e)return r}}return-1}function Cu(t,e,n,r,o){let i=[];for(let s=0,c=0;s<t.length;s++){let a=t[s],d=c,u=c+=a.size;d>=n||u<=e?i.push(a):(d<e&&i.push(a.slice(0,e-d,r)),o&&(i.push(o),o=void 0),u>n&&i.push(a.slice(n-d,a.size,r)))}return i}function Eu(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),i=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let c=r.resolve(s),a,d;if(qa(n)){for(a=s;o&&!o.node;)o=o.parent;let f=o.node;if(o&&f.isAtom&&Te.isSelectable(f)&&o.parent&&!(f.isInline&&GA(n.focusNode,n.focusOffset,o.dom))){let h=o.posBefore;d=new Te(s==h?c:r.resolve(h))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let f=s,h=s;for(let p=0;p<n.rangeCount;p++){let m=n.getRangeAt(p);f=Math.min(f,t.docView.posFromDOM(m.startContainer,m.startOffset,1)),h=Math.max(h,t.docView.posFromDOM(m.endContainer,m.endOffset,-1))}if(f<0)return null;[a,s]=h==t.state.selection.anchor?[h,f]:[f,h],c=r.resolve(s)}else a=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(a<0)return null}let u=r.resolve(a);if(!d){let f=e=="pointer"||t.state.selection.head<c.pos&&!i?1:-1;d=wu(t,u,c,f)}return d}function Ng(t){return t.editable?t.hasFocus():Rg(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function nr(t,e=!1){let n=t.state.selection;if(Dg(t,n),!!Ng(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&xt){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&po(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)kx(t);else{let{anchor:r,head:o}=n,i,s;Og&&!(n instanceof Le)&&(n.$from.parent.inlineContent||(i=Mg(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Mg(t,n.to))),t.docView.setSelection(r,o,t,e),Og&&(i&&Lg(i),s&&Lg(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Ex(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Og=Lt||xt&&cg<63;function Mg(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(Lt&&o&&o.contentEditable=="false")return ku(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return ku(o);if(i)return ku(i)}}function ku(t){return t.contentEditable="true",Lt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Lg(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function Ex(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Ng(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function kx(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,At(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&Yt&&Tr<=11&&(n.disabled=!0,n.disabled=!1)}function Dg(t,e){if(e instanceof Te){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Pg(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Pg(t)}function Pg(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function wu(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Le.between(e,n,r)}function Bg(t){return t.editable&&!t.hasFocus()?!1:Rg(t)}function Rg(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function wx(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return po(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Su(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return i&&Be.findFrom(i,e)}function Nr(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function $g(t,e,n){let r=t.state.selection;if(r instanceof Le)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return Nr(t,new Le(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=Su(t.state,e);return o&&o instanceof Te?Nr(t,o):!1}else if(!(sn&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let c=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(c))&&!s.contentDOM?Te.isSelectable(i)?Nr(t,new Te(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):hs?Nr(t,new Le(t.state.doc.resolve(e<0?c:c+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Te&&r.node.isInline)return Nr(t,new Le(e>0?r.$to:r.$from));{let o=Su(t.state,e);return o?Nr(t,o):!1}}}function tl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function vs(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function ri(t,e){return e<0?Sx(t):Ax(t)}function Sx(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(on&&n.nodeType==1&&r<tl(n)&&vs(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let c=n.childNodes[r-1];if(vs(c,-1))o=n,i=--r;else if(c.nodeType==3)n=c,r=n.nodeValue.length;else break}}else{if(Fg(n))break;{let c=n.previousSibling;for(;c&&vs(c,-1);)o=n.parentNode,i=At(c),c=c.previousSibling;if(c)n=c,r=tl(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Au(t,n,r):o&&Au(t,o,i)}function Ax(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=tl(n),i,s;for(;;)if(r<o){if(n.nodeType!=1)break;let c=n.childNodes[r];if(vs(c,1))i=n,s=++r;else break}else{if(Fg(n))break;{let c=n.nextSibling;for(;c&&vs(c,1);)i=c.parentNode,s=At(c)+1,c=c.nextSibling;if(c)n=c,r=0,o=tl(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}i&&Au(t,i,s)}function Fg(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function xx(t,e){for(;t&&e==t.childNodes.length&&!fs(t);)e=At(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function Tx(t,e){for(;t&&!e&&!fs(t);)e=At(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Au(t,e,n){if(e.nodeType!=3){let i,s;(s=xx(e,n))?(e=s,n=0):(i=Tx(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(!r)return;if(qa(r)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&nr(t)},50)}function zg(t,e){let n=t.state.doc.resolve(e);if(!(xt||dg)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Ug(t,e,n){let r=t.state.selection;if(r instanceof Le&&!r.empty||n.indexOf("s")>-1||sn&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Su(t.state,e);if(s&&s instanceof Te)return Nr(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,c=r instanceof Xt?Be.near(s,e):Be.findFrom(s,e);return c?Nr(t,c):!1}return!1}function Hg(t,e){if(!(t.state.selection instanceof Le))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function jg(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Ix(t){if(!Lt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;jg(t,r,"true"),setTimeout(()=>jg(t,r,"false"),20)}return!1}function _x(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function Nx(t,e){let n=e.keyCode,r=_x(e);if(n==8||sn&&n==72&&r=="c")return Hg(t,-1)||ri(t,-1);if(n==46&&!e.shiftKey||sn&&n==68&&r=="c")return Hg(t,1)||ri(t,1);if(n==13||n==27)return!0;if(n==37||sn&&n==66&&r=="c"){let o=n==37?zg(t,t.state.selection.from)=="ltr"?-1:1:-1;return $g(t,o,r)||ri(t,o)}else if(n==39||sn&&n==70&&r=="c"){let o=n==39?zg(t,t.state.selection.from)=="ltr"?1:-1:1;return $g(t,o,r)||ri(t,o)}else{if(n==38||sn&&n==80&&r=="c")return Ug(t,-1,r)||ri(t,-1);if(n==40||sn&&n==78&&r=="c")return Ix(t)||Ug(t,1,r)||ri(t,1);if(r==(sn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function xu(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let s=t.someProp("clipboardSerializer")||fo.fromSchema(t.state.schema),c=Xg(),a=c.createElement("div");a.appendChild(s.serializeFragment(r,{document:c}));let d=a.firstChild,u,f=0;for(;d&&d.nodeType==1&&(u=Zg[d.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=c.createElement(u[p]);for(;a.firstChild;)m.appendChild(a.firstChild);a.appendChild(m),f++}d=a.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,`
|
|
1188
1188
|
|
|
1189
1189
|
`);return{dom:a,text:h,slice:e}}function Wg(t,e,n,r,o){let i=o.parent.type.spec.code,s,c;if(!n&&!e)return null;let a=!!e&&(r||i||!n);if(a){if(t.someProp("transformPastedText",h=>{e=h(e,i||r,t)}),i)return c=new be(ce.from(t.state.schema.text(e.replace(/\r\n?/g,`
|
|
1190
|
-
`))),0,0),t.someProp("transformPasted",h=>{c=h(c,t,!0)}),c;let f=t.someProp("clipboardTextParser",h=>h(e,o,r,t));if(f)c=f;else{let h=o.marks(),{schema:p}=t.state,m=fo.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=s.appendChild(document.createElement("p"));g&&v.appendChild(m.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=Dx(n),hs&&Px(s);let d=s&&s.querySelector("[data-pm-slice]"),u=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(c||(c=(t.someProp("clipboardParser")||t.someProp("domParser")||kr.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!Ox.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)c=Bx(Qg(c,+u[1],+u[2]),u[4]);else if(c=be.maxOpen(Mx(c.content,o),!0),c.openStart||c.openEnd){let f=0,h=0;for(let p=c.content.firstChild;f<c.openStart&&!p.type.spec.isolating;f++,p=p.firstChild);for(let p=c.content.lastChild;h<c.openEnd&&!p.type.spec.isolating;h++,p=p.lastChild);c=Qg(c,f,h)}return t.someProp("transformPasted",f=>{c=f(c,t,a)}),c}const Ox=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Mx(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(c=>{if(!s)return;let a=o.findWrapping(c.type),d;if(!a)return s=null;if(d=s.length&&i.length&&Yg(a,i,c,s[s.length-1],0))s[s.length-1]=d;else{s.length&&(s[s.length-1]=Gg(s[s.length-1],i.length));let u=Kg(c,a);s.push(u),o=o.matchType(u.type),i=a}}),s)return ce.from(s)}return t}function Kg(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,ce.from(t));return t}function Yg(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=Yg(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(ce.from(Kg(n,t,o+1))))}}function Gg(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Gg(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(ce.empty,!0);return t.copy(n.append(r))}function Tu(t,e,n,r,o,i){let s=e<0?t.firstChild:t.lastChild,c=s.content;return t.childCount>1&&(i=0),o<r-1&&(c=Tu(c,e,n,r,o+1,i)),o>=n&&(c=e<0?s.contentMatchAt(0).fillBefore(c,i<=o).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(ce.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(c))}function Qg(t,e,n){return e<t.openStart&&(t=new be(Tu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new be(Tu(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Zg={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Jg=null;function Xg(){return Jg||(Jg=document.implementation.createHTMLDocument("title"))}let Iu=null;function Lx(t){let e=window.trustedTypes;return e?(Iu||(Iu=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Iu.createHTML(t)):t}function Dx(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Xg().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&Zg[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=Lx(t),o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function Px(t){let e=t.querySelectorAll(xt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function Bx(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:i,openEnd:s}=t;for(let c=r.length-2;c>=0;c-=2){let a=n.nodes[r[c]];if(!a||a.hasRequiredAttrs())break;o=ce.from(a.create(r[c+1],o)),i++,s++}return new be(o,i,s)}const $t={},Ft={},Rx={touchstart:!0,touchmove:!0};class $x{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Fx(t){for(let e in $t){let n=$t[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Ux(t,r)&&!Nu(t,r)&&(t.editable||!(r.type in Ft))&&n(t,r)},Rx[e]?{passive:!0}:void 0)}Lt&&t.dom.addEventListener("input",()=>null),_u(t)}function Or(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function zx(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function _u(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Nu(t,r))})}function Nu(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function Ux(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function Hx(t,e){!Nu(t,e)&&$t[e.type]&&(t.editable||!(e.type in Ft))&&$t[e.type](t,e)}Ft.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Vg(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(er&&xt&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ti&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,mo(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||Nx(t,n)?n.preventDefault():Or(t,"key")},Ft.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Ft.keypress=(t,e)=>{let n=e;if(Vg(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||sn&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Le)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode),i=()=>t.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,o,i))&&t.dispatch(i()),n.preventDefault()}};function nl(t){return{left:t.clientX,top:t.clientY}}function jx(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Ou(t,e,n,r,o){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,c=>s>i.depth?c(t,n,i.nodeAfter,i.before(s),o,!0):c(t,n,i.node(s),i.before(s),o,!1)))return!0;return!1}function oi(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Wx(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Te.isSelectable(r)?(oi(t,new Te(n)),!0):!1}function Kx(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof Te&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let c=s>i.depth?i.nodeAfter:i.node(s);if(Te.isSelectable(c)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(oi(t,Te.create(t.state.doc,o)),!0):!1}function Yx(t,e,n,r,o){return Ou(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?Kx(t,n):Wx(t,n))}function Gx(t,e,n,r){return Ou(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function Qx(t,e,n,r){return Ou(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||Zx(t,n,r)}function Zx(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(oi(t,Le.create(r,0,r.content.size)),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),c=o.before(i);if(s.inlineContent)oi(t,Le.create(r,c+1,c+1+s.content.size));else if(Te.isSelectable(s))oi(t,Te.create(r,c));else continue;return!0}}function Mu(t){return rl(t)}const qg=sn?"metaKey":"ctrlKey";$t.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Mu(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&jx(n,t.input.lastClick)&&!n[qg]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i,button:n.button};let s=t.posAtCoords(nl(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Jx(t,s,n,!!r)):(i=="doubleClick"?Gx:Qx)(t,s.pos,s.inside,n)?n.preventDefault():Or(t,"pointer"))};class Jx{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[qg],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const c=o?null:r.target,a=c?e.docView.nearestDesc(c,!0):null;this.target=a&&a.nodeDOM.nodeType==1?a.nodeDOM:null;let{selection:d}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof Te&&d.from<=s&&d.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&on&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Or(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>nr(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(nl(e))),this.updateAllowDefault(e),this.allowDefault||!n?Or(this.view,"pointer"):Yx(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Lt&&this.mightDrag&&!this.mightDrag.node.isAtom||xt&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(oi(this.view,Be.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Or(this.view,"pointer")}move(e){this.updateAllowDefault(e),Or(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}$t.touchstart=t=>{t.input.lastTouch=Date.now(),Mu(t),Or(t,"pointer")},$t.touchmove=t=>{t.input.lastTouch=Date.now(),Or(t,"pointer")},$t.contextmenu=t=>Mu(t);function Vg(t,e){return t.composing?!0:Lt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Xx=er?5e3:-1;Ft.compositionstart=Ft.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Le&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||xt&&dg&&qx(t)))t.markCursor=t.state.storedMarks||n.marks(),rl(t,!0),t.markCursor=null;else if(rl(t,!e.selection.empty),on&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){let c=t.domSelection();c&&c.collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}ev(t,Xx)};function qx(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Ft.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,ev(t,20))};function ev(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>rl(t),e))}function tv(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=eT());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Vx(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=KA(e.focusNode,e.focusOffset),r=YA(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let o=r.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!o||!o.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function eT(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function rl(t,e=!1){if(!(er&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),tv(t),e||t.docView&&t.docView.dirty){let n=Eu(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function tT(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const ys=Yt&&Tr<15||ti&&JA<604;$t.copy=Ft.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=ys?null:n.clipboardData,s=r.content(),{dom:c,text:a}=xu(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",a)):tT(t,c),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function nT(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function rT(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?bs(t,r.value,null,o,e):bs(t,r.textContent,r.innerHTML,o,e)},50)}function bs(t,e,n,r,o){let i=Wg(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,o,i||be.empty)))return!0;if(!i)return!1;let s=nT(i),c=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(c.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function nv(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ft.paste=(t,e)=>{let n=e;if(t.composing&&!er)return;let r=ys?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&bs(t,nv(r),r.getData("text/html"),o,n)?n.preventDefault():rT(t,n)};class rv{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const oT=sn?"altKey":"ctrlKey";function ov(t,e){let n=t.someProp("dragCopies",r=>!r(e));return n??!e[oT]}$t.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,i=o.empty?null:t.posAtCoords(nl(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Te?o.to-1:o.to))){if(r&&r.mightDrag)s=Te.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=t.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(s=Te.create(t.state.doc,f.posBefore))}}let c=(s||t.state.selection).content(),{dom:a,text:d,slice:u}=xu(t,c);(!n.dataTransfer.files.length||!xt||cg>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(ys?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",ys||n.dataTransfer.setData("text/plain",d),t.dragging=new rv(u,ov(t,n),s)},$t.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Ft.dragover=Ft.dragenter=(t,e)=>e.preventDefault(),Ft.drop=(t,e)=>{try{iT(t,e,t.dragging)}finally{t.dragging=null}};function iT(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(nl(e));if(!r)return;let o=t.state.doc.resolve(r.pos),i=n&&n.slice;i?t.someProp("transformPasted",p=>{i=p(i,t,!1)}):i=Wg(t,nv(e.dataTransfer),ys?null:e.dataTransfer.getData("text/html"),!1,o);let s=!!(n&&ov(t,e));if(t.someProp("handleDrop",p=>p(t,e,i||be.empty,s))){e.preventDefault();return}if(!i)return;e.preventDefault();let c=i?L0(t.state.doc,o.pos,i):o.pos;c==null&&(c=o.pos);let a=t.state.tr;if(s){let{node:p}=n;p?p.replace(a):a.deleteSelection()}let d=a.mapping.map(c),u=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=a.doc;if(u?a.replaceRangeWith(d,d,i.content.firstChild):a.replaceRange(d,d,i),a.doc.eq(f))return;let h=a.doc.resolve(d);if(u&&Te.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))a.setSelection(new Te(h));else{let p=a.mapping.map(c);a.mapping.maps[a.mapping.maps.length-1].forEach((m,g,v,y)=>p=y),a.setSelection(wu(t,h,a.doc.resolve(p)))}t.focus(),t.dispatch(a.setMeta("uiEvent","drop"))}$t.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&nr(t)},20))},$t.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},$t.beforeinput=(t,e)=>{if(xt&&er&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,mo(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in Ft)$t[t]=Ft[t];function Cs(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class ol{constructor(e,n){this.toDOM=e,this.spec=n||bo,this.side=this.spec.side||0}map(e,n,r,o){let{pos:i,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new Dt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof ol&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Cs(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Mr{constructor(e,n){this.attrs=e,this.spec=n||bo}map(e,n,r,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new Dt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Mr&&Cs(this.attrs,e.attrs)&&Cs(this.spec,e.spec)}static is(e){return e.type instanceof Mr}destroy(){}}class Lu{constructor(e,n){this.attrs=e,this.spec=n||bo}map(e,n,r,o){let i=e.mapResult(n.from+o,1);if(i.deleted)return null;let s=e.mapResult(n.to+o,-1);return s.deleted||s.pos<=i.pos?null:new Dt(i.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),i;return o==n.from&&!(i=e.child(r)).isText&&o+i.nodeSize==n.to}eq(e){return this==e||e instanceof Lu&&Cs(this.attrs,e.attrs)&&Cs(this.spec,e.spec)}destroy(){}}class Dt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Dt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new Dt(e,e,new ol(n,r))}static inline(e,n,r,o){return new Dt(e,n,new Mr(r,o))}static node(e,n,r,o){return new Dt(e,n,new Lu(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Mr}get widget(){return this.type instanceof ol}}const ii=[],bo={};class Xe{constructor(e,n){this.local=e.length?e:ii,this.children=n.length?n:ii}static create(e,n){return n.length?il(n,e,0,bo):Pt}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,i){for(let s=0;s<this.local.length;s++){let c=this.local[s];c.from<=n&&c.to>=e&&(!i||i(c.spec))&&r.push(c.copy(c.from+o,c.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let c=this.children[s]+1;this.children[s+2].findInner(e-c,n-c,r,o+c,i)}}map(e,n,r){return this==Pt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||bo)}mapInner(e,n,r,o,i){let s;for(let c=0;c<this.local.length;c++){let a=this.local[c].map(e,r,o);a&&a.type.valid(n,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[c].spec)}return this.children.length?sT(this.children,s||[],e,n,r,o,i):s?new Xe(s.sort(Co),ii):Pt}add(e,n){return n.length?this==Pt?Xe.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((c,a)=>{let d=a+r,u;if(u=sv(n,c,d)){for(o||(o=this.children.slice());i<o.length&&o[i]<a;)i+=3;o[i]==a?o[i+2]=o[i+2].addInner(c,u,d+1):o.splice(i,0,a,a+c.nodeSize,il(u,c,d+1,bo)),i+=3}});let s=iv(i?av(n):n,-r);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||s.splice(c--,1);return new Xe(s.length?this.local.concat(s).sort(Co):this.local,o||this.children)}remove(e){return e.length==0||this==Pt?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,c=r[i]+n,a=r[i+1]+n;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>c&&f.to<a&&(e[u]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let d=r[i+2].removeInner(s,c+1);d!=Pt?r[i+2]=d:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let c=0;c<o.length;c++)o[c].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(c--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Xe(o,r):Pt}forChild(e,n){if(this==Pt)return this;if(n.isLeaf)return Xe.empty;let r,o;for(let c=0;c<this.children.length;c+=3)if(this.children[c]>=e){this.children[c]==e&&(r=this.children[c+2]);break}let i=e+1,s=i+n.content.size;for(let c=0;c<this.local.length;c++){let a=this.local[c];if(a.from<s&&a.to>i&&a.type instanceof Mr){let d=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;d<u&&(o||(o=[])).push(a.copy(d,u))}}if(o){let c=new Xe(o.sort(Co),ii);return r?new Lr([c,r]):c}return r||Pt}eq(e){if(this==e)return!0;if(!(e instanceof Xe)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return Du(this.localsInner(e))}localsInner(e){if(this==Pt)return ii;if(e.inlineContent||!this.local.some(Mr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Mr||n.push(this.local[r]);return n}forEachSet(e){e(this)}}Xe.empty=new Xe([],[]),Xe.removeOverlap=Du;const Pt=Xe.empty;class Lr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,bo));return Lr.from(r)}forChild(e,n){if(n.isLeaf)return Xe.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=Pt&&(i instanceof Lr?r=r.concat(i.members):r.push(i))}return Lr.from(r)}eq(e){if(!(e instanceof Lr)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let o=0;o<this.members.length;o++){let i=this.members[o].localsInner(e);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?Du(r?n:n.sort(Co)):ii}static from(e){switch(e.length){case 0:return Pt;case 1:return e[0];default:return new Lr(e.every(n=>n instanceof Xe)?e:e.reduce((n,r)=>n.concat(r instanceof Xe?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function sT(t,e,n,r,o,i,s){let c=t.slice();for(let d=0,u=i;d<n.maps.length;d++){let f=0;n.maps[d].forEach((h,p,m,g)=>{let v=g-m-(p-h);for(let y=0;y<c.length;y+=3){let b=c[y+1];if(b<0||h>b+u-f)continue;let E=c[y]+u-f;p>=E?c[y+1]=h<=E?-2:-1:h>=u&&v&&(c[y]+=v,c[y+1]+=v)}f+=v}),u=n.maps[d].map(u,-1)}let a=!1;for(let d=0;d<c.length;d+=3)if(c[d+1]<0){if(c[d+1]==-2){a=!0,c[d+1]=-1;continue}let u=n.map(t[d]+i),f=u-o;if(f<0||f>=r.content.size){a=!0;continue}let h=n.map(t[d+1]+i,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),v=r.maybeChild(m);if(v&&g==f&&g+v.nodeSize==p){let y=c[d+2].mapInner(n,v,u+1,t[d]+i+1,s);y!=Pt?(c[d]=f,c[d+1]=p,c[d+2]=y):(c[d+1]=-2,a=!0)}else a=!0}if(a){let d=aT(c,t,e,n,o,i,s),u=il(d,r,0,s);e=u.local;for(let f=0;f<c.length;f+=3)c[f+1]<0&&(c.splice(f,3),f-=3);for(let f=0,h=0;f<u.children.length;f+=3){let p=u.children[f];for(;h<c.length&&c[h]<p;)h+=3;c.splice(h,0,u.children[f],u.children[f+1],u.children[f+2])}}return new Xe(e.sort(Co),c)}function iv(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new Dt(o.from+e,o.to+e,o.type))}return n}function aT(t,e,n,r,o,i,s){function c(a,d){for(let u=0;u<a.local.length;u++){let f=a.local[u].map(r,o,d);f?n.push(f):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)c(a.children[u+2],a.children[u]+d+1)}for(let a=0;a<t.length;a+=3)t[a+1]==-1&&c(t[a+2],e[a]+i+1);return n}function sv(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[i]=null);return o}function av(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function il(t,e,n,r){let o=[],i=!1;e.forEach((c,a)=>{let d=sv(t,c,a+n);if(d){i=!0;let u=il(d,c,n+a+1,r);u!=Pt&&o.push(a,a+c.nodeSize,u)}});let s=iv(i?av(t):t,-n).sort(Co);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||(r.onRemove&&r.onRemove(s[c].spec),s.splice(c--,1));return s.length||o.length?new Xe(s,o):Pt}function Co(t,e){return t.from-e.from||t.to-e.to}function Du(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let i=e[o];if(i.from==r.from){i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),lv(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),lv(e,o,r.copy(i.from,r.to)));break}}}return e}function lv(t,e,n){for(;e<t.length&&Co(n,t[e])>0;)e++;t.splice(e,0,n)}function Pu(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Pt&&e.push(r)}),t.cursorWrapper&&e.push(Xe.create(t.state.doc,[t.cursorWrapper.deco])),Lr.from(e)}const lT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},cT=Yt&&Tr<=11;class dT{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class uT{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new dT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Yt&&Tr<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():Lt&&e.composing&&r.some(o=>o.type=="childList"&&o.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),cT&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,lT)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Bg(this.view)){if(this.suppressingSelectionUpdates)return nr(this.view);if(Yt&&Tr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&po(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=ei(i))n.add(i);for(let i=e.anchorNode;i;i=ei(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Bg(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,c=!1,a=[];if(e.editable)for(let u=0;u<n.length;u++){let f=this.registerMutation(n[u],a);f&&(i=i<0?f.from:Math.min(f.from,i),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(c=!0))}if(a.some(u=>u.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let u of a)if(u.nodeName=="BR"&&u.parentNode){let f=u.nextSibling;f&&f.nodeType==1&&f.contentEditable=="false"&&u.parentNode.removeChild(u)}}else if(on&&a.length){let u=a.filter(f=>f.nodeName=="BR");if(u.length==2){let[f,h]=u;f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let h of u){let p=h.parentNode;p&&p.nodeName=="LI"&&(!f||pT(e,f)!=p)&&h.remove()}}}let d=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&qa(r)&&(d=Eu(e))&&d.eq(Be.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,nr(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),fT(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,mT(e,a)),this.handleDOMChange(i,s,c,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||nr(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let f=e.addedNodes[u];n.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(Yt&&Tr<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:h}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?At(o)+1:0,c=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?At(i):e.target.childNodes.length,d=r.localPosFromDOM(e.target,a,1);return{from:c,to:d}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let cv=new WeakMap,dv=!1;function fT(t){if(!cv.has(t)&&(cv.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=on,dv)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),dv=!0}}function uv(t,e){let n=e.startContainer,r=e.startOffset,o=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return po(s.node,s.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function hT(t,e){if(e.getComposedRanges){let o=e.getComposedRanges(t.root)[0];if(o)return uv(t,o)}let n;function r(o){o.preventDefault(),o.stopImmediatePropagation(),n=o.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?uv(t,n):null}function pT(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function mT(t,e){var n;let{focusNode:r,focusOffset:o}=t.domSelectionRange();for(let i of e)if(((n=i.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=i.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let c=s;for(;;){let a=c.firstChild;if(!a||a.nodeType!=1||a.contentEditable=="false"||/^(BR|IMG)$/.test(a.nodeName))break;c=a}c.insertBefore(i,c.firstChild),r==i&&t.domSelection().collapse(i,o)}else i.parentNode.removeChild(i)}}function gT(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:c}=t.docView.parseRange(e,n),a=t.domSelectionRange(),d,u=a.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(d=[{node:u,offset:a.anchorOffset}],qa(a)||d.push({node:a.focusNode,offset:a.focusOffset})),xt&&t.input.lastKeyCode===8)for(let v=i;v>o;v--){let y=r.childNodes[v-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){i=v;break}if(!b||b.size)break}let f=t.state.doc,h=t.someProp("domParser")||kr.fromSchema(t.state.schema),p=f.resolve(s),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:vT,context:p});if(d&&d[0].pos!=null){let v=d[0].pos,y=d[1]&&d[1].pos;y==null&&(y=v),m={anchor:v+s,head:y+s}}return{doc:g,sel:m,from:s,to:c}}function vT(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Lt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Lt&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const yT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function bT(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let A=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,O=Eu(t,A);if(O&&!t.state.selection.eq(O)){if(xt&&er&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",$=>$(t,mo(13,"Enter"))))return;let W=t.state.tr.setSelection(O);A=="pointer"?W.setMeta("pointer",!0):A=="key"&&W.scrollIntoView(),i&&W.setMeta("composition",i),t.dispatch(W)}return}let s=t.state.doc.resolve(e),c=s.sharedDepth(n);e=s.before(c+1),n=t.state.doc.resolve(n).after(c+1);let a=t.state.selection,d=gT(t,e,n),u=t.state.doc,f=u.slice(d.from,d.to),h,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(h=t.state.selection.to,p="end"):(h=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let m=kT(f.content,d.doc.content,d.from,h,p);if(m&&t.input.domChangeCount++,(ti&&t.input.lastIOSEnter>Date.now()-225||er)&&o.some(A=>A.nodeType==1&&!yT.test(A.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",A=>A(t,mo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&a instanceof Le&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(d.sel){let A=fv(t,t.state.doc,d.sel);if(A&&!A.eq(t.state.selection)){let O=t.state.tr.setSelection(A);i&&O.setMeta("composition",i),t.dispatch(O)}}return}t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Le&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=d.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=d.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Yt&&Tr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>d.from&&d.doc.textBetween(m.start-d.from-1,m.start-d.from+1)==" "&&(m.start--,m.endA--,m.endB--);let g=d.doc.resolveNoCache(m.start-d.from),v=d.doc.resolveNoCache(m.endB-d.from),y=u.resolve(m.start),b=g.sameParent(v)&&g.parent.inlineContent&&y.end()>=m.endA;if((ti&&t.input.lastIOSEnter>Date.now()-225&&(!b||o.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!b&&g.pos<d.doc.content.size&&(!g.sameParent(v)||!g.parent.inlineContent)&&g.pos<v.pos&&!/\S/.test(d.doc.textBetween(g.pos,v.pos,"","")))&&t.someProp("handleKeyDown",A=>A(t,mo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&ET(u,m.start,m.endA,g,v)&&t.someProp("handleKeyDown",A=>A(t,mo(8,"Backspace")))){er&&xt&&t.domObserver.suppressSelectionUpdates();return}xt&&m.endB==m.start&&(t.input.lastChromeDelete=Date.now()),er&&!b&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==m.endA&&(m.endB-=2,v=d.doc.resolveNoCache(m.endB-d.from),setTimeout(()=>{t.someProp("handleKeyDown",function(A){return A(t,mo(13,"Enter"))})},20));let E=m.start,C=m.endA,w=A=>{let O=A||t.state.tr.replace(E,C,d.doc.slice(m.start-d.from,m.endB-d.from));if(d.sel){let W=fv(t,O.doc,d.sel);W&&!(xt&&t.composing&&W.empty&&(m.start!=m.endB||t.input.lastChromeDelete<Date.now()-100)&&(W.head==E||W.head==O.mapping.map(C)-1)||Yt&&W.empty&&W.head==E)&&O.setSelection(W)}return i&&O.setMeta("composition",i),O.scrollIntoView()},I;if(b)if(g.pos==v.pos){Yt&&Tr<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>nr(t),20));let A=w(t.state.tr.delete(E,C)),O=u.resolve(m.start).marksAcross(u.resolve(m.endA));O&&A.ensureMarks(O),t.dispatch(A)}else if(m.endA==m.endB&&(I=CT(g.parent.content.cut(g.parentOffset,v.parentOffset),y.parent.content.cut(y.parentOffset,m.endA-y.start())))){let A=w(t.state.tr);I.type=="add"?A.addMark(E,C,I.mark):A.removeMark(E,C,I.mark),t.dispatch(A)}else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let A=g.parent.textBetween(g.parentOffset,v.parentOffset),O=()=>w(t.state.tr.insertText(A,E,C));t.someProp("handleTextInput",W=>W(t,E,C,A,O))||t.dispatch(O())}else t.dispatch(w());else t.dispatch(w())}function fv(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:wu(t,e.resolve(n.anchor),e.resolve(n.head))}function CT(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,c,a;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(o.length==1&&i.length==0)c=o[0],s="add",a=u=>u.mark(c.addToSet(u.marks));else if(o.length==0&&i.length==1)c=i[0],s="remove",a=u=>u.mark(c.removeFromSet(u.marks));else return null;let d=[];for(let u=0;u<e.childCount;u++)d.push(a(e.child(u)));if(ce.from(d).eq(t))return{mark:c,type:s}}function ET(t,e,n,r,o){if(n-e<=o.pos-r.pos||Bu(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(!r.parent.isTextblock){let c=i.nodeAfter;return c!=null&&n==e+c.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Bu(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Bu(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Bu(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function kT(t,e,n,r,o){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:c}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,c));r-=s+a-i}if(s<i&&t.size<e.size){let a=r<=i&&r>=s?i-r:0;i-=a,i&&i<e.size&&hv(e.textBetween(i-1,i+1))&&(i+=a?1:-1),c=i+(c-s),s=i}else if(c<i){let a=r<=i&&r>=c?i-r:0;i-=a,i&&i<t.size&&hv(t.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-c),c=i}return{start:i,endA:s,endB:c}}function hv(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class pv{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new $x,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(bv),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=vv(this),gv(this),this.nodeViews=yv(this),this.docView=Sg(this.state.doc,mv(this),Pu(this),this.dom,this),this.domObserver=new uT(this,(r,o,i,s)=>bT(this,r,o,i,s)),this.domObserver.start(),Fx(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&_u(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(bv),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(tv(this),s=!0),this.state=e;let c=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(c||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=yv(this);ST(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&_u(this),this.editable=vv(this),gv(this);let a=Pu(this),d=mv(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,d,a);(f||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&VA(this);if(s){this.domObserver.stop();let p=f&&(Yt||xt)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&wT(o.selection,e.selection);if(f){let m=xt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Vx(this)),(i||!this.docView.update(e.doc,d,a,this))&&(this.docView.updateOuterDeco(d),this.docView.destroy(),this.docView=Sg(e.doc,d,a,this.dom,this)),m&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&wx(this))?nr(this,p):(Dg(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&ex(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Te){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&ug(this,n.getBoundingClientRect(),e)}else ug(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let i=r.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new rv(e.slice,e.move,o<0?void 0:Te.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let c=this.directPlugins[s].props[e];if(c!=null&&(o=n?n(c):c))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let c=i[s].props[e];if(c!=null&&(o=n?n(c):c))return o}}hasFocus(){if(Yt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&tx(this.dom),nr(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return sx(this,e)}coordsAtPos(e,n=1){return vg(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return ux(this,n||this.state,e)}pasteHTML(e,n){return bs(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return bs(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return xu(this,e)}destroy(){this.docView&&(zx(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Pu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,jA())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Hx(this,e)}domSelectionRange(){let e=this.domSelection();return e?Lt&&this.root.nodeType===11&&QA(this.dom.ownerDocument)==this.dom&&hT(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}pv.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function mv(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Dt.node(0,t.state.doc.content.size,e)]}function gv(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Dt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function vv(t){return!t.someProp("editable",e=>e(t.state)===!1)}function wT(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function yv(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function ST(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function bv(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Dr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},sl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},AT=typeof navigator<"u"&&/Mac/.test(navigator.platform),xT=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Tt=0;Tt<10;Tt++)Dr[48+Tt]=Dr[96+Tt]=String(Tt);for(var Tt=1;Tt<=24;Tt++)Dr[Tt+111]="F"+Tt;for(var Tt=65;Tt<=90;Tt++)Dr[Tt]=String.fromCharCode(Tt+32),sl[Tt]=String.fromCharCode(Tt);for(var Ru in Dr)sl.hasOwnProperty(Ru)||(sl[Ru]=Dr[Ru]);function TT(t){var e=AT&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||xT&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?sl:Dr)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const IT=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),_T=typeof navigator<"u"&&/Win/.test(navigator.platform);function NT(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,i,s;for(let c=0;c<e.length-1;c++){let a=e[c];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))IT?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function OT(t){let e=Object.create(null);for(let n in t)e[NT(n)]=t[n];return e}function $u(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function MT(t){return new Ve({props:{handleKeyDown:Cv(t)}})}function Cv(t){let e=OT(t);return function(n,r){let o=TT(r),i,s=e[$u(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let c=e[$u(o,r,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(_T&&r.ctrlKey&&r.altKey)&&(i=Dr[r.keyCode])&&i!=o){let c=e[$u(i,r)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}var LT=Object.defineProperty,Fu=(t,e)=>{for(var n in e)LT(t,n,{get:e[n],enumerable:!0})};function al(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}var ll=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,c])=>[s,(...d)=>{const u=c(...d)(i);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(o),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s=[],c=!!t,a=t||o.tr,d=()=>(!c&&e&&!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),s.every(f=>f===!0)),u={...Object.fromEntries(Object.entries(n).map(([f,h])=>[f,(...m)=>{const g=this.buildProps(a,e),v=h(...m)(g);return s.push(v),u}])),run:d};return u}createCan(t){const{rawCommands:e,state:n}=this,r=!1,o=t||n.tr,i=this.buildProps(o,r);return{...Object.fromEntries(Object.entries(e).map(([c,a])=>[c,(...d)=>a(...d)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s={tr:t,editor:r,view:i,state:al({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([c,a])=>[c,(...d)=>a(...d)(s)]))}};return s}},Ev={};Fu(Ev,{blur:()=>DT,clearContent:()=>PT,clearNodes:()=>BT,command:()=>RT,createParagraphNear:()=>$T,cut:()=>FT,deleteCurrentNode:()=>zT,deleteNode:()=>UT,deleteRange:()=>HT,deleteSelection:()=>jT,enter:()=>WT,exitCode:()=>KT,extendMarkRange:()=>YT,first:()=>GT,focus:()=>ZT,forEach:()=>JT,insertContent:()=>XT,insertContentAt:()=>eI,joinBackward:()=>rI,joinDown:()=>nI,joinForward:()=>oI,joinItemBackward:()=>iI,joinItemForward:()=>sI,joinTextblockBackward:()=>aI,joinTextblockForward:()=>lI,joinUp:()=>tI,keyboardShortcut:()=>dI,lift:()=>uI,liftEmptyBlock:()=>fI,liftListItem:()=>hI,newlineInCode:()=>pI,resetAttributes:()=>mI,scrollIntoView:()=>gI,selectAll:()=>vI,selectNodeBackward:()=>yI,selectNodeForward:()=>bI,selectParentNode:()=>CI,selectTextblockEnd:()=>EI,selectTextblockStart:()=>kI,setContent:()=>wI,setMark:()=>KI,setMeta:()=>YI,setNode:()=>GI,setNodeSelection:()=>QI,setTextDirection:()=>ZI,setTextSelection:()=>JI,sinkListItem:()=>XI,splitBlock:()=>qI,splitListItem:()=>VI,toggleList:()=>e_,toggleMark:()=>t_,toggleNode:()=>n_,toggleWrap:()=>r_,undoInputRule:()=>o_,unsetAllMarks:()=>i_,unsetMark:()=>s_,unsetTextDirection:()=>a_,updateAttributes:()=>l_,wrapIn:()=>c_,wrapInList:()=>d_});var DT=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),PT=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),BT=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(c,a)=>{if(c.type.isText)return;const{doc:d,mapping:u}=e,f=d.resolve(u.map(a)),h=d.resolve(u.map(a+c.nodeSize)),p=f.blockRange(h);if(!p)return;const m=Qo(p);if(c.type.isTextblock){const{defaultType:g}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(p.start,g)}(m||m===0)&&e.lift(p,m)})}),!0},RT=t=>e=>t(e),$T=()=>({state:t,dispatch:e})=>tg(t,e),FT=(t,e)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Le(r.doc.resolve(Math.max(s-1,0)))),!0},zT=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const c=o.before(i),a=o.after(i);t.delete(c,a).scrollIntoView()}return!0}return!1};function ut(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}var UT=t=>({tr:e,state:n,dispatch:r})=>{const o=ut(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const a=i.before(s),d=i.after(s);e.delete(a,d).scrollIntoView()}return!0}return!1},HT=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},jT=()=>({state:t,dispatch:e})=>lu(t,e),WT=()=>({commands:t})=>t.keyboardShortcut("Enter"),KT=()=>({state:t,dispatch:e})=>IA(t,e);function zu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function cl(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:zu(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function kv(t,e,n={}){return t.find(r=>r.type===e&&cl(Object.fromEntries(Object.keys(n).map(o=>[o,r.attrs[o]])),n))}function wv(t,e,n={}){return!!kv(t,e,n)}function Uu(t,e,n){var r;if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(u=>u.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(u=>u.type===e)||(n=n||((r=o.node.marks[0])==null?void 0:r.attrs),!kv([...o.node.marks],e,n)))return;let s=o.index,c=t.start()+o.offset,a=s+1,d=c+o.node.nodeSize;for(;s>0&&wv([...t.parent.child(s-1).marks],e,n);)s-=1,c-=t.parent.child(s).nodeSize;for(;a<t.parent.childCount&&wv([...t.parent.child(a).marks],e,n);)d+=t.parent.child(a).nodeSize,a+=1;return{from:c,to:d}}function rr(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}var YT=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=rr(t,r.schema),{doc:s,selection:c}=n,{$from:a,from:d,to:u}=c;if(o){const f=Uu(a,i,e);if(f&&f.from<=d&&f.to>=u){const h=Le.create(s,f.from,f.to);n.setSelection(h)}}return!0},GT=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function Sv(t){return t instanceof Le}function Eo(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function Av(t,e=null){if(!e)return null;const n=Be.atStart(t),r=Be.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?Le.create(t,Eo(0,o,i),Eo(t.content.size,o,i)):Le.create(t,Eo(e,o,i),Eo(e,o,i))}function xv(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function dl(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function QT(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var ZT=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(dl()||xv())&&r.dom.focus(),QT()&&!dl()&&!xv()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(i&&t===null&&!Sv(n.state.selection))return s(),!0;const c=Av(o.doc,t)||n.state.selection,a=n.state.selection.eq(c);return i&&(a||o.setSelection(c),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},JT=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),XT=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),Tv=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&Tv(r)}return t};function ul(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Tv(n)}function Es(t,e,n){if(t instanceof Xn||t instanceof ce)return t;n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,o=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return ce.fromArray(t.map(c=>e.nodeFromJSON(c)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),Es("",e,n)}if(o){if(n.errorOnInvalidContent){let s=!1,c="";const a=new h0({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:d=>(s=!0,c=typeof d=="string"?d:d.outerHTML,null)}]}})});if(n.slice?kr.fromSchema(a).parseSlice(ul(t),n.parseOptions):kr.fromSchema(a).parse(ul(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${c}`)})}const i=kr.fromSchema(e);return n.slice?i.parseSlice(ul(t),n.parseOptions).content:i.parse(ul(t),n.parseOptions)}return Es("",e,n)}function qT(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof yt||o instanceof bt))return;const i=t.mapping.maps[r];let s=0;i.forEach((c,a,d,u)=>{s===0&&(s=u)}),t.setSelection(Be.near(t.doc.resolve(s),n))}var VT=t=>!("type"in t),eI=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{var s;if(o){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let c;const a=v=>{i.emit("contentError",{editor:i,error:v,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},d={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Es(e,i.schema,{parseOptions:d,errorOnInvalidContent:!0})}catch(v){a(v)}try{c=Es(e,i.schema,{parseOptions:d,errorOnInvalidContent:(s=n.errorOnInvalidContent)!=null?s:i.options.enableContentCheck})}catch(v){return a(v),!1}let{from:u,to:f}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},h=!0,p=!0;if((VT(c)?c:[c]).forEach(v=>{v.check(),h=h?v.isText&&v.marks.length===0:!1,p=p?v.isBlock:!1}),u===f&&p){const{parent:v}=r.doc.resolve(u);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(u-=1,f+=1)}let g;if(h){if(Array.isArray(e))g=e.map(v=>v.text||"").join("");else if(e instanceof ce){let v="";e.forEach(y=>{y.text&&(v+=y.text)}),g=v}else typeof e=="object"&&e&&e.text?g=e.text:g=e;r.insertText(g,u,f)}else{g=c;const v=r.doc.resolve(u),y=v.node(),b=v.parentOffset===0,E=y.isText||y.isTextblock,C=y.content.size>0;b&&E&&C&&(u=Math.max(0,u-1)),r.replaceWith(u,f,g)}n.updateSelection&&qT(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:g})}return!0},tI=()=>({state:t,dispatch:e})=>AA(t,e),nI=()=>({state:t,dispatch:e})=>xA(t,e),rI=()=>({state:t,dispatch:e})=>Q0(t,e),oI=()=>({state:t,dispatch:e})=>q0(t,e),iI=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Qa(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},sI=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Qa(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},aI=()=>({state:t,dispatch:e})=>wA(t,e),lI=()=>({state:t,dispatch:e})=>SA(t,e);function Iv(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function cI(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,i,s;for(let c=0;c<e.length-1;c+=1){const a=e[c];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))dl()||Iv()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}var dI=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=cI(t).split(/-(?!$)/),s=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),c=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{n.someProp("handleKeyDown",d=>d(n,c))});return a?.steps.forEach(d=>{const u=d.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Pr(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?ut(e,t.schema):null,c=[];t.doc.nodesBetween(r,o,(f,h)=>{if(f.isText)return;const p=Math.max(r,h),m=Math.min(o,h+f.nodeSize);c.push({node:f,from:p,to:m})});const a=o-r,d=c.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>cl(f.node.attrs,n,{strict:!1}));return i?!!d.length:d.reduce((f,h)=>f+h.to-h.from,0)>=a}var uI=(t,e={})=>({state:n,dispatch:r})=>{const o=ut(t,n.schema);return Pr(n,o,e)?TA(n,r):!1},fI=()=>({state:t,dispatch:e})=>ng(t,e),hI=t=>({state:e,dispatch:n})=>{const r=ut(t,e.schema);return FA(r)(e,n)},pI=()=>({state:t,dispatch:e})=>eg(t,e);function fl(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function _v(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}var mI=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=fl(typeof t=="string"?t:t.name,r.schema);if(!c)return!1;c==="node"&&(i=ut(t,r.schema)),c==="mark"&&(s=rr(t,r.schema));let a=!1;return n.selection.ranges.forEach(d=>{r.doc.nodesBetween(d.$from.pos,d.$to.pos,(u,f)=>{i&&i===u.type&&(a=!0,o&&n.setNodeMarkup(f,void 0,_v(u.attrs,e))),s&&u.marks.length&&u.marks.forEach(h=>{s===h.type&&(a=!0,o&&n.addMark(f,f+u.nodeSize,s.create(_v(h.attrs,e))))})})}),a},gI=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),vI=()=>({tr:t,dispatch:e})=>{if(e){const n=new Xt(t.doc);t.setSelection(n)}return!0},yI=()=>({state:t,dispatch:e})=>J0(t,e),bI=()=>({state:t,dispatch:e})=>V0(t,e),CI=()=>({state:t,dispatch:e})=>OA(t,e),EI=()=>({state:t,dispatch:e})=>DA(t,e),kI=()=>({state:t,dispatch:e})=>LA(t,e);function Hu(t,e,n={},r={}){return Es(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var wI=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:o,tr:i,dispatch:s,commands:c})=>{const{doc:a}=i;if(r.preserveWhitespace!=="full"){const d=Hu(t,o.schema,r,{errorOnInvalidContent:e??o.options.enableContentCheck});return s&&i.replaceWith(0,a.content.size,d).setMeta("preventUpdate",!n),!0}return s&&i.setMeta("preventUpdate",!n),c.insertContentAt({from:0,to:a.content.size},t,{parseOptions:r,errorOnInvalidContent:e??o.options.enableContentCheck})};function Nv(t,e){const n=rr(e,t.schema),{from:r,to:o,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,a=>{s.push(...a.marks)});const c=s.find(a=>a.type.name===n.name);return c?{...c.attrs}:{}}function Ov(t,e){const n=new $0(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function SI(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function AI(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function xI(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function hl(t){return e=>xI(e.$from,t)}function we(t,e,n){return t.config[e]===void 0&&t.parent?we(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?we(t.parent,e,n):null}):t.config[e]}function ju(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=we(e,"addExtensions",n);return r?[e,...ju(r())]:e}).flat(10)}function Wu(t,e){const n=fo.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function Mv(t){return typeof t=="function"}function Ge(t,e=void 0,...n){return Mv(t)?e?t.bind(e)(...n):t(...n):t}function TI(t={}){return Object.keys(t).length===0&&t.constructor===Object}function si(t){const e=t.filter(o=>o.type==="extension"),n=t.filter(o=>o.type==="node"),r=t.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function Lv(t){const e=[],{nodeExtensions:n,markExtensions:r}=si(t),o=[...n,...r],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(d=>d.name!=="text").map(d=>d.name),c=r.map(d=>d.name),a=[...s,...c];return t.forEach(d=>{const u={name:d.name,options:d.options,storage:d.storage,extensions:o},f=we(d,"addGlobalAttributes",u);if(!f)return;f().forEach(p=>{let m;Array.isArray(p.types)?m=p.types:p.types==="*"?m=a:p.types==="nodes"?m=s:p.types==="marks"?m=c:m=[],m.forEach(g=>{Object.entries(p.attributes).forEach(([v,y])=>{e.push({type:g,name:v,attribute:{...i,...y}})})})})}),o.forEach(d=>{const u={name:d.name,options:d.options,storage:d.storage},f=we(d,"addAttributes",u);if(!f)return;const h=f();Object.entries(h).forEach(([p,m])=>{const g={...i,...m};typeof g?.default=="function"&&(g.default=g.default()),g?.isRequired&&g?.default===void 0&&delete g.default,e.push({type:d.name,name:p,attribute:g})})}),e}function II(t){const e=[];let n="",r=!1,o=!1,i=0;const s=t.length;for(let c=0;c<s;c+=1){const a=t[c];if(a==="'"&&!o){r=!r,n+=a;continue}if(a==='"'&&!r){o=!o,n+=a;continue}if(!r&&!o){if(a==="("){i+=1,n+=a;continue}if(a===")"&&i>0){i-=1,n+=a;continue}if(a===";"&&i===0){e.push(n),n="";continue}}n+=a}return n&&e.push(n),e}function Dv(t){const e=[],n=II(t||""),r=n.length;for(let o=0;o<r;o+=1){const i=n[o],s=i.indexOf(":");if(s===-1)continue;const c=i.slice(0,s).trim(),a=i.slice(s+1).trim();c&&a&&e.push([c,a])}return e}function Ct(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const c=i?String(i).split(" "):[],a=r[o]?r[o].split(" "):[],d=c.filter(u=>!a.includes(u));r[o]=[...a,...d].join(" ")}else if(o==="style"){const c=new Map([...Dv(r[o]),...Dv(i)]);r[o]=Array.from(c.entries()).map(([a,d])=>`${a}: ${d}`).join("; ")}else r[o]=i}),r},{})}function ks(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Ct(n,r),{})}function _I(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Pv(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const c=s.attribute.parseHTML?s.attribute.parseHTML(n):_I(n.getAttribute(s.name));return c==null?i:{...i,[s.name]:c}},{});return{...r,...o}}}}function Bv(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&TI(n)?!1:n!=null))}function Rv(t){var e,n;const r={};return!((e=t?.attribute)!=null&&e.isRequired)&&"default"in(t?.attribute||{})&&(r.default=t.attribute.default),((n=t?.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=t.attribute.validate),[t.name,r]}function NI(t,e){var n;const r=Lv(t),{nodeExtensions:o,markExtensions:i}=si(t),s=(n=o.find(d=>we(d,"topNode")))==null?void 0:n.name,c=Object.fromEntries(o.map(d=>{const u=r.filter(y=>y.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((y,b)=>{const E=we(b,"extendNodeSchema",f);return{...y,...E?E(d):{}}},{}),p=Bv({...h,content:Ge(we(d,"content",f)),marks:Ge(we(d,"marks",f)),group:Ge(we(d,"group",f)),inline:Ge(we(d,"inline",f)),atom:Ge(we(d,"atom",f)),selectable:Ge(we(d,"selectable",f)),draggable:Ge(we(d,"draggable",f)),code:Ge(we(d,"code",f)),whitespace:Ge(we(d,"whitespace",f)),linebreakReplacement:Ge(we(d,"linebreakReplacement",f)),defining:Ge(we(d,"defining",f)),isolating:Ge(we(d,"isolating",f)),attrs:Object.fromEntries(u.map(Rv))}),m=Ge(we(d,"parseHTML",f));m&&(p.parseDOM=m.map(y=>Pv(y,u)));const g=we(d,"renderHTML",f);g&&(p.toDOM=y=>g({node:y,HTMLAttributes:ks(y,u)}));const v=we(d,"renderText",f);return v&&(p.toText=v),[d.name,p]})),a=Object.fromEntries(i.map(d=>{const u=r.filter(v=>v.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((v,y)=>{const b=we(y,"extendMarkSchema",f);return{...v,...b?b(d):{}}},{}),p=Bv({...h,inclusive:Ge(we(d,"inclusive",f)),excludes:Ge(we(d,"excludes",f)),group:Ge(we(d,"group",f)),spanning:Ge(we(d,"spanning",f)),code:Ge(we(d,"code",f)),attrs:Object.fromEntries(u.map(Rv))}),m=Ge(we(d,"parseHTML",f));m&&(p.parseDOM=m.map(v=>Pv(v,u)));const g=we(d,"renderHTML",f);return g&&(p.toDOM=v=>g({mark:v,HTMLAttributes:ks(v,u)})),[d.name,p]}));return new h0({topNode:s,nodes:c,marks:a})}function OI(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}function ws(t){return t.sort((n,r)=>{const o=we(n,"priority")||100,i=we(r,"priority")||100;return o>i?-1:o<i?1:0})}function $v(t){const e=ws(ju(t)),n=OI(e.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}function Fv(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
|
|
1190
|
+
`))),0,0),t.someProp("transformPasted",h=>{c=h(c,t,!0)}),c;let f=t.someProp("clipboardTextParser",h=>h(e,o,r,t));if(f)c=f;else{let h=o.marks(),{schema:p}=t.state,m=fo.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=s.appendChild(document.createElement("p"));g&&v.appendChild(m.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=Dx(n),hs&&Px(s);let d=s&&s.querySelector("[data-pm-slice]"),u=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(c||(c=(t.someProp("clipboardParser")||t.someProp("domParser")||kr.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!Ox.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)c=Bx(Qg(c,+u[1],+u[2]),u[4]);else if(c=be.maxOpen(Mx(c.content,o),!0),c.openStart||c.openEnd){let f=0,h=0;for(let p=c.content.firstChild;f<c.openStart&&!p.type.spec.isolating;f++,p=p.firstChild);for(let p=c.content.lastChild;h<c.openEnd&&!p.type.spec.isolating;h++,p=p.lastChild);c=Qg(c,f,h)}return t.someProp("transformPasted",f=>{c=f(c,t,a)}),c}const Ox=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Mx(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(c=>{if(!s)return;let a=o.findWrapping(c.type),d;if(!a)return s=null;if(d=s.length&&i.length&&Yg(a,i,c,s[s.length-1],0))s[s.length-1]=d;else{s.length&&(s[s.length-1]=Gg(s[s.length-1],i.length));let u=Kg(c,a);s.push(u),o=o.matchType(u.type),i=a}}),s)return ce.from(s)}return t}function Kg(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,ce.from(t));return t}function Yg(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=Yg(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(ce.from(Kg(n,t,o+1))))}}function Gg(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Gg(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(ce.empty,!0);return t.copy(n.append(r))}function Tu(t,e,n,r,o,i){let s=e<0?t.firstChild:t.lastChild,c=s.content;return t.childCount>1&&(i=0),o<r-1&&(c=Tu(c,e,n,r,o+1,i)),o>=n&&(c=e<0?s.contentMatchAt(0).fillBefore(c,i<=o).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(ce.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(c))}function Qg(t,e,n){return e<t.openStart&&(t=new be(Tu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new be(Tu(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Zg={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Jg=null;function Xg(){return Jg||(Jg=document.implementation.createHTMLDocument("title"))}let Iu=null;function Lx(t){let e=window.trustedTypes;return e?(Iu||(Iu=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Iu.createHTML(t)):t}function Dx(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Xg().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&Zg[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=Lx(t),o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function Px(t){let e=t.querySelectorAll(xt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function Bx(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:i,openEnd:s}=t;for(let c=r.length-2;c>=0;c-=2){let a=n.nodes[r[c]];if(!a||a.hasRequiredAttrs())break;o=ce.from(a.create(r[c+1],o)),i++,s++}return new be(o,i,s)}const $t={},Ft={},Rx={touchstart:!0,touchmove:!0};class $x{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Fx(t){for(let e in $t){let n=$t[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Ux(t,r)&&!Nu(t,r)&&(t.editable||!(r.type in Ft))&&n(t,r)},Rx[e]?{passive:!0}:void 0)}Lt&&t.dom.addEventListener("input",()=>null),_u(t)}function Or(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function zx(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function _u(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Nu(t,r))})}function Nu(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function Ux(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function Hx(t,e){!Nu(t,e)&&$t[e.type]&&(t.editable||!(e.type in Ft))&&$t[e.type](t,e)}Ft.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Vg(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(er&&xt&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ti&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,mo(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||Nx(t,n)?n.preventDefault():Or(t,"key")},Ft.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Ft.keypress=(t,e)=>{let n=e;if(Vg(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||sn&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Le)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode),i=()=>t.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,o,i))&&t.dispatch(i()),n.preventDefault()}};function nl(t){return{left:t.clientX,top:t.clientY}}function jx(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Ou(t,e,n,r,o){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,c=>s>i.depth?c(t,n,i.nodeAfter,i.before(s),o,!0):c(t,n,i.node(s),i.before(s),o,!1)))return!0;return!1}function oi(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Wx(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Te.isSelectable(r)?(oi(t,new Te(n)),!0):!1}function Kx(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof Te&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let c=s>i.depth?i.nodeAfter:i.node(s);if(Te.isSelectable(c)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(oi(t,Te.create(t.state.doc,o)),!0):!1}function Yx(t,e,n,r,o){return Ou(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?Kx(t,n):Wx(t,n))}function Gx(t,e,n,r){return Ou(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function Qx(t,e,n,r){return Ou(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||Zx(t,n,r)}function Zx(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(oi(t,Le.create(r,0,r.content.size)),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),c=o.before(i);if(s.inlineContent)oi(t,Le.create(r,c+1,c+1+s.content.size));else if(Te.isSelectable(s))oi(t,Te.create(r,c));else continue;return!0}}function Mu(t){return rl(t)}const qg=sn?"metaKey":"ctrlKey";$t.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Mu(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&jx(n,t.input.lastClick)&&!n[qg]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i,button:n.button};let s=t.posAtCoords(nl(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Jx(t,s,n,!!r)):(i=="doubleClick"?Gx:Qx)(t,s.pos,s.inside,n)?n.preventDefault():Or(t,"pointer"))};class Jx{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[qg],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const c=o?null:r.target,a=c?e.docView.nearestDesc(c,!0):null;this.target=a&&a.nodeDOM.nodeType==1?a.nodeDOM:null;let{selection:d}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof Te&&d.from<=s&&d.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&on&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Or(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>nr(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(nl(e))),this.updateAllowDefault(e),this.allowDefault||!n?Or(this.view,"pointer"):Yx(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Lt&&this.mightDrag&&!this.mightDrag.node.isAtom||xt&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(oi(this.view,Be.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Or(this.view,"pointer")}move(e){this.updateAllowDefault(e),Or(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}$t.touchstart=t=>{t.input.lastTouch=Date.now(),Mu(t),Or(t,"pointer")},$t.touchmove=t=>{t.input.lastTouch=Date.now(),Or(t,"pointer")},$t.contextmenu=t=>Mu(t);function Vg(t,e){return t.composing?!0:Lt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Xx=er?5e3:-1;Ft.compositionstart=Ft.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Le&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||xt&&dg&&qx(t)))t.markCursor=t.state.storedMarks||n.marks(),rl(t,!0),t.markCursor=null;else if(rl(t,!e.selection.empty),on&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){let c=t.domSelection();c&&c.collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}ev(t,Xx)};function qx(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Ft.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,ev(t,20))};function ev(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>rl(t),e))}function tv(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=eT());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Vx(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=KA(e.focusNode,e.focusOffset),r=YA(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let o=r.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!o||!o.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function eT(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function rl(t,e=!1){if(!(er&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),tv(t),e||t.docView&&t.docView.dirty){let n=Eu(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function tT(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const ys=Yt&&Tr<15||ti&&JA<604;$t.copy=Ft.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=ys?null:n.clipboardData,s=r.content(),{dom:c,text:a}=xu(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",a)):tT(t,c),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function nT(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function rT(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?bs(t,r.value,null,o,e):bs(t,r.textContent,r.innerHTML,o,e)},50)}function bs(t,e,n,r,o){let i=Wg(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,o,i||be.empty)))return!0;if(!i)return!1;let s=nT(i),c=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(c.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function nv(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ft.paste=(t,e)=>{let n=e;if(t.composing&&!er)return;let r=ys?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&bs(t,nv(r),r.getData("text/html"),o,n)?n.preventDefault():rT(t,n)};class rv{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const oT=sn?"altKey":"ctrlKey";function ov(t,e){let n=t.someProp("dragCopies",r=>!r(e));return n??!e[oT]}$t.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,i=o.empty?null:t.posAtCoords(nl(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Te?o.to-1:o.to))){if(r&&r.mightDrag)s=Te.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=t.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(s=Te.create(t.state.doc,f.posBefore))}}let c=(s||t.state.selection).content(),{dom:a,text:d,slice:u}=xu(t,c);(!n.dataTransfer.files.length||!xt||cg>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(ys?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",ys||n.dataTransfer.setData("text/plain",d),t.dragging=new rv(u,ov(t,n),s)},$t.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Ft.dragover=Ft.dragenter=(t,e)=>e.preventDefault(),Ft.drop=(t,e)=>{try{iT(t,e,t.dragging)}finally{t.dragging=null}};function iT(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(nl(e));if(!r)return;let o=t.state.doc.resolve(r.pos),i=n&&n.slice;i?t.someProp("transformPasted",p=>{i=p(i,t,!1)}):i=Wg(t,nv(e.dataTransfer),ys?null:e.dataTransfer.getData("text/html"),!1,o);let s=!!(n&&ov(t,e));if(t.someProp("handleDrop",p=>p(t,e,i||be.empty,s))){e.preventDefault();return}if(!i)return;e.preventDefault();let c=i?L0(t.state.doc,o.pos,i):o.pos;c==null&&(c=o.pos);let a=t.state.tr;if(s){let{node:p}=n;p?p.replace(a):a.deleteSelection()}let d=a.mapping.map(c),u=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=a.doc;if(u?a.replaceRangeWith(d,d,i.content.firstChild):a.replaceRange(d,d,i),a.doc.eq(f))return;let h=a.doc.resolve(d);if(u&&Te.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))a.setSelection(new Te(h));else{let p=a.mapping.map(c);a.mapping.maps[a.mapping.maps.length-1].forEach((m,g,v,y)=>p=y),a.setSelection(wu(t,h,a.doc.resolve(p)))}t.focus(),t.dispatch(a.setMeta("uiEvent","drop"))}$t.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&nr(t)},20))},$t.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},$t.beforeinput=(t,e)=>{if(xt&&er&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,mo(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in Ft)$t[t]=Ft[t];function Cs(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class ol{constructor(e,n){this.toDOM=e,this.spec=n||bo,this.side=this.spec.side||0}map(e,n,r,o){let{pos:i,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new Dt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof ol&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Cs(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Mr{constructor(e,n){this.attrs=e,this.spec=n||bo}map(e,n,r,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new Dt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Mr&&Cs(this.attrs,e.attrs)&&Cs(this.spec,e.spec)}static is(e){return e.type instanceof Mr}destroy(){}}class Lu{constructor(e,n){this.attrs=e,this.spec=n||bo}map(e,n,r,o){let i=e.mapResult(n.from+o,1);if(i.deleted)return null;let s=e.mapResult(n.to+o,-1);return s.deleted||s.pos<=i.pos?null:new Dt(i.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),i;return o==n.from&&!(i=e.child(r)).isText&&o+i.nodeSize==n.to}eq(e){return this==e||e instanceof Lu&&Cs(this.attrs,e.attrs)&&Cs(this.spec,e.spec)}destroy(){}}class Dt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Dt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new Dt(e,e,new ol(n,r))}static inline(e,n,r,o){return new Dt(e,n,new Mr(r,o))}static node(e,n,r,o){return new Dt(e,n,new Lu(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Mr}get widget(){return this.type instanceof ol}}const ii=[],bo={};class Xe{constructor(e,n){this.local=e.length?e:ii,this.children=n.length?n:ii}static create(e,n){return n.length?il(n,e,0,bo):Pt}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,i){for(let s=0;s<this.local.length;s++){let c=this.local[s];c.from<=n&&c.to>=e&&(!i||i(c.spec))&&r.push(c.copy(c.from+o,c.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let c=this.children[s]+1;this.children[s+2].findInner(e-c,n-c,r,o+c,i)}}map(e,n,r){return this==Pt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||bo)}mapInner(e,n,r,o,i){let s;for(let c=0;c<this.local.length;c++){let a=this.local[c].map(e,r,o);a&&a.type.valid(n,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[c].spec)}return this.children.length?sT(this.children,s||[],e,n,r,o,i):s?new Xe(s.sort(Co),ii):Pt}add(e,n){return n.length?this==Pt?Xe.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((c,a)=>{let d=a+r,u;if(u=sv(n,c,d)){for(o||(o=this.children.slice());i<o.length&&o[i]<a;)i+=3;o[i]==a?o[i+2]=o[i+2].addInner(c,u,d+1):o.splice(i,0,a,a+c.nodeSize,il(u,c,d+1,bo)),i+=3}});let s=iv(i?av(n):n,-r);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||s.splice(c--,1);return new Xe(s.length?this.local.concat(s).sort(Co):this.local,o||this.children)}remove(e){return e.length==0||this==Pt?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,c=r[i]+n,a=r[i+1]+n;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>c&&f.to<a&&(e[u]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let d=r[i+2].removeInner(s,c+1);d!=Pt?r[i+2]=d:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let c=0;c<o.length;c++)o[c].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(c--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Xe(o,r):Pt}forChild(e,n){if(this==Pt)return this;if(n.isLeaf)return Xe.empty;let r,o;for(let c=0;c<this.children.length;c+=3)if(this.children[c]>=e){this.children[c]==e&&(r=this.children[c+2]);break}let i=e+1,s=i+n.content.size;for(let c=0;c<this.local.length;c++){let a=this.local[c];if(a.from<s&&a.to>i&&a.type instanceof Mr){let d=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;d<u&&(o||(o=[])).push(a.copy(d,u))}}if(o){let c=new Xe(o.sort(Co),ii);return r?new Lr([c,r]):c}return r||Pt}eq(e){if(this==e)return!0;if(!(e instanceof Xe)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return Du(this.localsInner(e))}localsInner(e){if(this==Pt)return ii;if(e.inlineContent||!this.local.some(Mr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Mr||n.push(this.local[r]);return n}forEachSet(e){e(this)}}Xe.empty=new Xe([],[]),Xe.removeOverlap=Du;const Pt=Xe.empty;class Lr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,bo));return Lr.from(r)}forChild(e,n){if(n.isLeaf)return Xe.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=Pt&&(i instanceof Lr?r=r.concat(i.members):r.push(i))}return Lr.from(r)}eq(e){if(!(e instanceof Lr)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let o=0;o<this.members.length;o++){let i=this.members[o].localsInner(e);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?Du(r?n:n.sort(Co)):ii}static from(e){switch(e.length){case 0:return Pt;case 1:return e[0];default:return new Lr(e.every(n=>n instanceof Xe)?e:e.reduce((n,r)=>n.concat(r instanceof Xe?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function sT(t,e,n,r,o,i,s){let c=t.slice();for(let d=0,u=i;d<n.maps.length;d++){let f=0;n.maps[d].forEach((h,p,m,g)=>{let v=g-m-(p-h);for(let y=0;y<c.length;y+=3){let b=c[y+1];if(b<0||h>b+u-f)continue;let E=c[y]+u-f;p>=E?c[y+1]=h<=E?-2:-1:h>=u&&v&&(c[y]+=v,c[y+1]+=v)}f+=v}),u=n.maps[d].map(u,-1)}let a=!1;for(let d=0;d<c.length;d+=3)if(c[d+1]<0){if(c[d+1]==-2){a=!0,c[d+1]=-1;continue}let u=n.map(t[d]+i),f=u-o;if(f<0||f>=r.content.size){a=!0;continue}let h=n.map(t[d+1]+i,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),v=r.maybeChild(m);if(v&&g==f&&g+v.nodeSize==p){let y=c[d+2].mapInner(n,v,u+1,t[d]+i+1,s);y!=Pt?(c[d]=f,c[d+1]=p,c[d+2]=y):(c[d+1]=-2,a=!0)}else a=!0}if(a){let d=aT(c,t,e,n,o,i,s),u=il(d,r,0,s);e=u.local;for(let f=0;f<c.length;f+=3)c[f+1]<0&&(c.splice(f,3),f-=3);for(let f=0,h=0;f<u.children.length;f+=3){let p=u.children[f];for(;h<c.length&&c[h]<p;)h+=3;c.splice(h,0,u.children[f],u.children[f+1],u.children[f+2])}}return new Xe(e.sort(Co),c)}function iv(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new Dt(o.from+e,o.to+e,o.type))}return n}function aT(t,e,n,r,o,i,s){function c(a,d){for(let u=0;u<a.local.length;u++){let f=a.local[u].map(r,o,d);f?n.push(f):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)c(a.children[u+2],a.children[u]+d+1)}for(let a=0;a<t.length;a+=3)t[a+1]==-1&&c(t[a+2],e[a]+i+1);return n}function sv(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[i]=null);return o}function av(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function il(t,e,n,r){let o=[],i=!1;e.forEach((c,a)=>{let d=sv(t,c,a+n);if(d){i=!0;let u=il(d,c,n+a+1,r);u!=Pt&&o.push(a,a+c.nodeSize,u)}});let s=iv(i?av(t):t,-n).sort(Co);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||(r.onRemove&&r.onRemove(s[c].spec),s.splice(c--,1));return s.length||o.length?new Xe(s,o):Pt}function Co(t,e){return t.from-e.from||t.to-e.to}function Du(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let i=e[o];if(i.from==r.from){i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),lv(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),lv(e,o,r.copy(i.from,r.to)));break}}}return e}function lv(t,e,n){for(;e<t.length&&Co(n,t[e])>0;)e++;t.splice(e,0,n)}function Pu(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Pt&&e.push(r)}),t.cursorWrapper&&e.push(Xe.create(t.state.doc,[t.cursorWrapper.deco])),Lr.from(e)}const lT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},cT=Yt&&Tr<=11;class dT{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class uT{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new dT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Yt&&Tr<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():Lt&&e.composing&&r.some(o=>o.type=="childList"&&o.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),cT&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,lT)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Bg(this.view)){if(this.suppressingSelectionUpdates)return nr(this.view);if(Yt&&Tr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&po(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=ei(i))n.add(i);for(let i=e.anchorNode;i;i=ei(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Bg(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,c=!1,a=[];if(e.editable)for(let u=0;u<n.length;u++){let f=this.registerMutation(n[u],a);f&&(i=i<0?f.from:Math.min(f.from,i),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(c=!0))}if(a.some(u=>u.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let u of a)if(u.nodeName=="BR"&&u.parentNode){let f=u.nextSibling;f&&f.nodeType==1&&f.contentEditable=="false"&&u.parentNode.removeChild(u)}}else if(on&&a.length){let u=a.filter(f=>f.nodeName=="BR");if(u.length==2){let[f,h]=u;f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let h of u){let p=h.parentNode;p&&p.nodeName=="LI"&&(!f||pT(e,f)!=p)&&h.remove()}}}let d=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&qa(r)&&(d=Eu(e))&&d.eq(Be.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,nr(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),fT(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,mT(e,a)),this.handleDOMChange(i,s,c,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||nr(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let f=e.addedNodes[u];n.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(Yt&&Tr<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:h}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?At(o)+1:0,c=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?At(i):e.target.childNodes.length,d=r.localPosFromDOM(e.target,a,1);return{from:c,to:d}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let cv=new WeakMap,dv=!1;function fT(t){if(!cv.has(t)&&(cv.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=on,dv)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),dv=!0}}function uv(t,e){let n=e.startContainer,r=e.startOffset,o=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return po(s.node,s.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function hT(t,e){if(e.getComposedRanges){let o=e.getComposedRanges(t.root)[0];if(o)return uv(t,o)}let n;function r(o){o.preventDefault(),o.stopImmediatePropagation(),n=o.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?uv(t,n):null}function pT(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function mT(t,e){var n;let{focusNode:r,focusOffset:o}=t.domSelectionRange();for(let i of e)if(((n=i.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=i.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let c=s;for(;;){let a=c.firstChild;if(!a||a.nodeType!=1||a.contentEditable=="false"||/^(BR|IMG)$/.test(a.nodeName))break;c=a}c.insertBefore(i,c.firstChild),r==i&&t.domSelection().collapse(i,o)}else i.parentNode.removeChild(i)}}function gT(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:c}=t.docView.parseRange(e,n),a=t.domSelectionRange(),d,u=a.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(d=[{node:u,offset:a.anchorOffset}],qa(a)||d.push({node:a.focusNode,offset:a.focusOffset})),xt&&t.input.lastKeyCode===8)for(let v=i;v>o;v--){let y=r.childNodes[v-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){i=v;break}if(!b||b.size)break}let f=t.state.doc,h=t.someProp("domParser")||kr.fromSchema(t.state.schema),p=f.resolve(s),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:vT,context:p});if(d&&d[0].pos!=null){let v=d[0].pos,y=d[1]&&d[1].pos;y==null&&(y=v),m={anchor:v+s,head:y+s}}return{doc:g,sel:m,from:s,to:c}}function vT(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Lt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Lt&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const yT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function bT(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let A=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,O=Eu(t,A);if(O&&!t.state.selection.eq(O)){if(xt&&er&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",B=>B(t,mo(13,"Enter"))))return;let K=t.state.tr.setSelection(O);A=="pointer"?K.setMeta("pointer",!0):A=="key"&&K.scrollIntoView(),i&&K.setMeta("composition",i),t.dispatch(K)}return}let s=t.state.doc.resolve(e),c=s.sharedDepth(n);e=s.before(c+1),n=t.state.doc.resolve(n).after(c+1);let a=t.state.selection,d=gT(t,e,n),u=t.state.doc,f=u.slice(d.from,d.to),h,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(h=t.state.selection.to,p="end"):(h=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let m=kT(f.content,d.doc.content,d.from,h,p);if(m&&t.input.domChangeCount++,(ti&&t.input.lastIOSEnter>Date.now()-225||er)&&o.some(A=>A.nodeType==1&&!yT.test(A.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",A=>A(t,mo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&a instanceof Le&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(d.sel){let A=fv(t,t.state.doc,d.sel);if(A&&!A.eq(t.state.selection)){let O=t.state.tr.setSelection(A);i&&O.setMeta("composition",i),t.dispatch(O)}}return}t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Le&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=d.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=d.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Yt&&Tr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>d.from&&d.doc.textBetween(m.start-d.from-1,m.start-d.from+1)==" "&&(m.start--,m.endA--,m.endB--);let g=d.doc.resolveNoCache(m.start-d.from),v=d.doc.resolveNoCache(m.endB-d.from),y=u.resolve(m.start),b=g.sameParent(v)&&g.parent.inlineContent&&y.end()>=m.endA;if((ti&&t.input.lastIOSEnter>Date.now()-225&&(!b||o.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!b&&g.pos<d.doc.content.size&&(!g.sameParent(v)||!g.parent.inlineContent)&&g.pos<v.pos&&!/\S/.test(d.doc.textBetween(g.pos,v.pos,"","")))&&t.someProp("handleKeyDown",A=>A(t,mo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&ET(u,m.start,m.endA,g,v)&&t.someProp("handleKeyDown",A=>A(t,mo(8,"Backspace")))){er&&xt&&t.domObserver.suppressSelectionUpdates();return}xt&&m.endB==m.start&&(t.input.lastChromeDelete=Date.now()),er&&!b&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==m.endA&&(m.endB-=2,v=d.doc.resolveNoCache(m.endB-d.from),setTimeout(()=>{t.someProp("handleKeyDown",function(A){return A(t,mo(13,"Enter"))})},20));let E=m.start,C=m.endA,w=A=>{let O=A||t.state.tr.replace(E,C,d.doc.slice(m.start-d.from,m.endB-d.from));if(d.sel){let K=fv(t,O.doc,d.sel);K&&!(xt&&t.composing&&K.empty&&(m.start!=m.endB||t.input.lastChromeDelete<Date.now()-100)&&(K.head==E||K.head==O.mapping.map(C)-1)||Yt&&K.empty&&K.head==E)&&O.setSelection(K)}return i&&O.setMeta("composition",i),O.scrollIntoView()},I;if(b)if(g.pos==v.pos){Yt&&Tr<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>nr(t),20));let A=w(t.state.tr.delete(E,C)),O=u.resolve(m.start).marksAcross(u.resolve(m.endA));O&&A.ensureMarks(O),t.dispatch(A)}else if(m.endA==m.endB&&(I=CT(g.parent.content.cut(g.parentOffset,v.parentOffset),y.parent.content.cut(y.parentOffset,m.endA-y.start())))){let A=w(t.state.tr);I.type=="add"?A.addMark(E,C,I.mark):A.removeMark(E,C,I.mark),t.dispatch(A)}else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let A=g.parent.textBetween(g.parentOffset,v.parentOffset),O=()=>w(t.state.tr.insertText(A,E,C));t.someProp("handleTextInput",K=>K(t,E,C,A,O))||t.dispatch(O())}else t.dispatch(w());else t.dispatch(w())}function fv(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:wu(t,e.resolve(n.anchor),e.resolve(n.head))}function CT(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,c,a;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(o.length==1&&i.length==0)c=o[0],s="add",a=u=>u.mark(c.addToSet(u.marks));else if(o.length==0&&i.length==1)c=i[0],s="remove",a=u=>u.mark(c.removeFromSet(u.marks));else return null;let d=[];for(let u=0;u<e.childCount;u++)d.push(a(e.child(u)));if(ce.from(d).eq(t))return{mark:c,type:s}}function ET(t,e,n,r,o){if(n-e<=o.pos-r.pos||Bu(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(!r.parent.isTextblock){let c=i.nodeAfter;return c!=null&&n==e+c.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Bu(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Bu(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Bu(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function kT(t,e,n,r,o){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:c}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,c));r-=s+a-i}if(s<i&&t.size<e.size){let a=r<=i&&r>=s?i-r:0;i-=a,i&&i<e.size&&hv(e.textBetween(i-1,i+1))&&(i+=a?1:-1),c=i+(c-s),s=i}else if(c<i){let a=r<=i&&r>=c?i-r:0;i-=a,i&&i<t.size&&hv(t.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-c),c=i}return{start:i,endA:s,endB:c}}function hv(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class pv{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new $x,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(bv),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=vv(this),gv(this),this.nodeViews=yv(this),this.docView=Sg(this.state.doc,mv(this),Pu(this),this.dom,this),this.domObserver=new uT(this,(r,o,i,s)=>bT(this,r,o,i,s)),this.domObserver.start(),Fx(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&_u(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(bv),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(tv(this),s=!0),this.state=e;let c=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(c||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=yv(this);ST(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&_u(this),this.editable=vv(this),gv(this);let a=Pu(this),d=mv(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,d,a);(f||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&VA(this);if(s){this.domObserver.stop();let p=f&&(Yt||xt)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&wT(o.selection,e.selection);if(f){let m=xt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Vx(this)),(i||!this.docView.update(e.doc,d,a,this))&&(this.docView.updateOuterDeco(d),this.docView.destroy(),this.docView=Sg(e.doc,d,a,this.dom,this)),m&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&wx(this))?nr(this,p):(Dg(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&ex(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Te){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&ug(this,n.getBoundingClientRect(),e)}else ug(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let i=r.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new rv(e.slice,e.move,o<0?void 0:Te.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let c=this.directPlugins[s].props[e];if(c!=null&&(o=n?n(c):c))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let c=i[s].props[e];if(c!=null&&(o=n?n(c):c))return o}}hasFocus(){if(Yt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&tx(this.dom),nr(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return sx(this,e)}coordsAtPos(e,n=1){return vg(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return ux(this,n||this.state,e)}pasteHTML(e,n){return bs(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return bs(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return xu(this,e)}destroy(){this.docView&&(zx(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Pu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,jA())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Hx(this,e)}domSelectionRange(){let e=this.domSelection();return e?Lt&&this.root.nodeType===11&&QA(this.dom.ownerDocument)==this.dom&&hT(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}pv.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function mv(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Dt.node(0,t.state.doc.content.size,e)]}function gv(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Dt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function vv(t){return!t.someProp("editable",e=>e(t.state)===!1)}function wT(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function yv(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function ST(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function bv(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Dr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},sl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},AT=typeof navigator<"u"&&/Mac/.test(navigator.platform),xT=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Tt=0;Tt<10;Tt++)Dr[48+Tt]=Dr[96+Tt]=String(Tt);for(var Tt=1;Tt<=24;Tt++)Dr[Tt+111]="F"+Tt;for(var Tt=65;Tt<=90;Tt++)Dr[Tt]=String.fromCharCode(Tt+32),sl[Tt]=String.fromCharCode(Tt);for(var Ru in Dr)sl.hasOwnProperty(Ru)||(sl[Ru]=Dr[Ru]);function TT(t){var e=AT&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||xT&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?sl:Dr)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const IT=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),_T=typeof navigator<"u"&&/Win/.test(navigator.platform);function NT(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,i,s;for(let c=0;c<e.length-1;c++){let a=e[c];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))IT?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function OT(t){let e=Object.create(null);for(let n in t)e[NT(n)]=t[n];return e}function $u(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function MT(t){return new Ve({props:{handleKeyDown:Cv(t)}})}function Cv(t){let e=OT(t);return function(n,r){let o=TT(r),i,s=e[$u(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let c=e[$u(o,r,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(_T&&r.ctrlKey&&r.altKey)&&(i=Dr[r.keyCode])&&i!=o){let c=e[$u(i,r)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}var LT=Object.defineProperty,Fu=(t,e)=>{for(var n in e)LT(t,n,{get:e[n],enumerable:!0})};function al(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}var ll=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,c])=>[s,(...d)=>{const u=c(...d)(i);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(o),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s=[],c=!!t,a=t||o.tr,d=()=>(!c&&e&&!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),s.every(f=>f===!0)),u={...Object.fromEntries(Object.entries(n).map(([f,h])=>[f,(...m)=>{const g=this.buildProps(a,e),v=h(...m)(g);return s.push(v),u}])),run:d};return u}createCan(t){const{rawCommands:e,state:n}=this,r=!1,o=t||n.tr,i=this.buildProps(o,r);return{...Object.fromEntries(Object.entries(e).map(([c,a])=>[c,(...d)=>a(...d)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s={tr:t,editor:r,view:i,state:al({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([c,a])=>[c,(...d)=>a(...d)(s)]))}};return s}},Ev={};Fu(Ev,{blur:()=>DT,clearContent:()=>PT,clearNodes:()=>BT,command:()=>RT,createParagraphNear:()=>$T,cut:()=>FT,deleteCurrentNode:()=>zT,deleteNode:()=>UT,deleteRange:()=>HT,deleteSelection:()=>jT,enter:()=>WT,exitCode:()=>KT,extendMarkRange:()=>YT,first:()=>GT,focus:()=>ZT,forEach:()=>JT,insertContent:()=>XT,insertContentAt:()=>eI,joinBackward:()=>rI,joinDown:()=>nI,joinForward:()=>oI,joinItemBackward:()=>iI,joinItemForward:()=>sI,joinTextblockBackward:()=>aI,joinTextblockForward:()=>lI,joinUp:()=>tI,keyboardShortcut:()=>dI,lift:()=>uI,liftEmptyBlock:()=>fI,liftListItem:()=>hI,newlineInCode:()=>pI,resetAttributes:()=>mI,scrollIntoView:()=>gI,selectAll:()=>vI,selectNodeBackward:()=>yI,selectNodeForward:()=>bI,selectParentNode:()=>CI,selectTextblockEnd:()=>EI,selectTextblockStart:()=>kI,setContent:()=>wI,setMark:()=>KI,setMeta:()=>YI,setNode:()=>GI,setNodeSelection:()=>QI,setTextDirection:()=>ZI,setTextSelection:()=>JI,sinkListItem:()=>XI,splitBlock:()=>qI,splitListItem:()=>VI,toggleList:()=>e_,toggleMark:()=>t_,toggleNode:()=>n_,toggleWrap:()=>r_,undoInputRule:()=>o_,unsetAllMarks:()=>i_,unsetMark:()=>s_,unsetTextDirection:()=>a_,updateAttributes:()=>l_,wrapIn:()=>c_,wrapInList:()=>d_});var DT=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),PT=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),BT=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(c,a)=>{if(c.type.isText)return;const{doc:d,mapping:u}=e,f=d.resolve(u.map(a)),h=d.resolve(u.map(a+c.nodeSize)),p=f.blockRange(h);if(!p)return;const m=Qo(p);if(c.type.isTextblock){const{defaultType:g}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(p.start,g)}(m||m===0)&&e.lift(p,m)})}),!0},RT=t=>e=>t(e),$T=()=>({state:t,dispatch:e})=>tg(t,e),FT=(t,e)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Le(r.doc.resolve(Math.max(s-1,0)))),!0},zT=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const c=o.before(i),a=o.after(i);t.delete(c,a).scrollIntoView()}return!0}return!1};function ut(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}var UT=t=>({tr:e,state:n,dispatch:r})=>{const o=ut(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const a=i.before(s),d=i.after(s);e.delete(a,d).scrollIntoView()}return!0}return!1},HT=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},jT=()=>({state:t,dispatch:e})=>lu(t,e),WT=()=>({commands:t})=>t.keyboardShortcut("Enter"),KT=()=>({state:t,dispatch:e})=>IA(t,e);function zu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function cl(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:zu(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function kv(t,e,n={}){return t.find(r=>r.type===e&&cl(Object.fromEntries(Object.keys(n).map(o=>[o,r.attrs[o]])),n))}function wv(t,e,n={}){return!!kv(t,e,n)}function Uu(t,e,n){var r;if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(u=>u.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(u=>u.type===e)||(n=n||((r=o.node.marks[0])==null?void 0:r.attrs),!kv([...o.node.marks],e,n)))return;let s=o.index,c=t.start()+o.offset,a=s+1,d=c+o.node.nodeSize;for(;s>0&&wv([...t.parent.child(s-1).marks],e,n);)s-=1,c-=t.parent.child(s).nodeSize;for(;a<t.parent.childCount&&wv([...t.parent.child(a).marks],e,n);)d+=t.parent.child(a).nodeSize,a+=1;return{from:c,to:d}}function rr(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}var YT=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=rr(t,r.schema),{doc:s,selection:c}=n,{$from:a,from:d,to:u}=c;if(o){const f=Uu(a,i,e);if(f&&f.from<=d&&f.to>=u){const h=Le.create(s,f.from,f.to);n.setSelection(h)}}return!0},GT=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function Sv(t){return t instanceof Le}function Eo(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function Av(t,e=null){if(!e)return null;const n=Be.atStart(t),r=Be.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?Le.create(t,Eo(0,o,i),Eo(t.content.size,o,i)):Le.create(t,Eo(e,o,i),Eo(e,o,i))}function xv(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function dl(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function QT(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var ZT=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(dl()||xv())&&r.dom.focus(),QT()&&!dl()&&!xv()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(i&&t===null&&!Sv(n.state.selection))return s(),!0;const c=Av(o.doc,t)||n.state.selection,a=n.state.selection.eq(c);return i&&(a||o.setSelection(c),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},JT=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),XT=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),Tv=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&Tv(r)}return t};function ul(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Tv(n)}function Es(t,e,n){if(t instanceof Xn||t instanceof ce)return t;n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,o=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return ce.fromArray(t.map(c=>e.nodeFromJSON(c)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),Es("",e,n)}if(o){if(n.errorOnInvalidContent){let s=!1,c="";const a=new h0({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:d=>(s=!0,c=typeof d=="string"?d:d.outerHTML,null)}]}})});if(n.slice?kr.fromSchema(a).parseSlice(ul(t),n.parseOptions):kr.fromSchema(a).parse(ul(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${c}`)})}const i=kr.fromSchema(e);return n.slice?i.parseSlice(ul(t),n.parseOptions).content:i.parse(ul(t),n.parseOptions)}return Es("",e,n)}function qT(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof yt||o instanceof bt))return;const i=t.mapping.maps[r];let s=0;i.forEach((c,a,d,u)=>{s===0&&(s=u)}),t.setSelection(Be.near(t.doc.resolve(s),n))}var VT=t=>!("type"in t),eI=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{var s;if(o){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let c;const a=v=>{i.emit("contentError",{editor:i,error:v,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},d={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Es(e,i.schema,{parseOptions:d,errorOnInvalidContent:!0})}catch(v){a(v)}try{c=Es(e,i.schema,{parseOptions:d,errorOnInvalidContent:(s=n.errorOnInvalidContent)!=null?s:i.options.enableContentCheck})}catch(v){return a(v),!1}let{from:u,to:f}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},h=!0,p=!0;if((VT(c)?c:[c]).forEach(v=>{v.check(),h=h?v.isText&&v.marks.length===0:!1,p=p?v.isBlock:!1}),u===f&&p){const{parent:v}=r.doc.resolve(u);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(u-=1,f+=1)}let g;if(h){if(Array.isArray(e))g=e.map(v=>v.text||"").join("");else if(e instanceof ce){let v="";e.forEach(y=>{y.text&&(v+=y.text)}),g=v}else typeof e=="object"&&e&&e.text?g=e.text:g=e;r.insertText(g,u,f)}else{g=c;const v=r.doc.resolve(u),y=v.node(),b=v.parentOffset===0,E=y.isText||y.isTextblock,C=y.content.size>0;b&&E&&C&&(u=Math.max(0,u-1)),r.replaceWith(u,f,g)}n.updateSelection&&qT(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:g})}return!0},tI=()=>({state:t,dispatch:e})=>AA(t,e),nI=()=>({state:t,dispatch:e})=>xA(t,e),rI=()=>({state:t,dispatch:e})=>Q0(t,e),oI=()=>({state:t,dispatch:e})=>q0(t,e),iI=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Qa(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},sI=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Qa(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},aI=()=>({state:t,dispatch:e})=>wA(t,e),lI=()=>({state:t,dispatch:e})=>SA(t,e);function Iv(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function cI(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,i,s;for(let c=0;c<e.length-1;c+=1){const a=e[c];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))dl()||Iv()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}var dI=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=cI(t).split(/-(?!$)/),s=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),c=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{n.someProp("handleKeyDown",d=>d(n,c))});return a?.steps.forEach(d=>{const u=d.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Pr(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?ut(e,t.schema):null,c=[];t.doc.nodesBetween(r,o,(f,h)=>{if(f.isText)return;const p=Math.max(r,h),m=Math.min(o,h+f.nodeSize);c.push({node:f,from:p,to:m})});const a=o-r,d=c.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>cl(f.node.attrs,n,{strict:!1}));return i?!!d.length:d.reduce((f,h)=>f+h.to-h.from,0)>=a}var uI=(t,e={})=>({state:n,dispatch:r})=>{const o=ut(t,n.schema);return Pr(n,o,e)?TA(n,r):!1},fI=()=>({state:t,dispatch:e})=>ng(t,e),hI=t=>({state:e,dispatch:n})=>{const r=ut(t,e.schema);return FA(r)(e,n)},pI=()=>({state:t,dispatch:e})=>eg(t,e);function fl(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function _v(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}var mI=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=fl(typeof t=="string"?t:t.name,r.schema);if(!c)return!1;c==="node"&&(i=ut(t,r.schema)),c==="mark"&&(s=rr(t,r.schema));let a=!1;return n.selection.ranges.forEach(d=>{r.doc.nodesBetween(d.$from.pos,d.$to.pos,(u,f)=>{i&&i===u.type&&(a=!0,o&&n.setNodeMarkup(f,void 0,_v(u.attrs,e))),s&&u.marks.length&&u.marks.forEach(h=>{s===h.type&&(a=!0,o&&n.addMark(f,f+u.nodeSize,s.create(_v(h.attrs,e))))})})}),a},gI=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),vI=()=>({tr:t,dispatch:e})=>{if(e){const n=new Xt(t.doc);t.setSelection(n)}return!0},yI=()=>({state:t,dispatch:e})=>J0(t,e),bI=()=>({state:t,dispatch:e})=>V0(t,e),CI=()=>({state:t,dispatch:e})=>OA(t,e),EI=()=>({state:t,dispatch:e})=>DA(t,e),kI=()=>({state:t,dispatch:e})=>LA(t,e);function Hu(t,e,n={},r={}){return Es(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var wI=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:o,tr:i,dispatch:s,commands:c})=>{const{doc:a}=i;if(r.preserveWhitespace!=="full"){const d=Hu(t,o.schema,r,{errorOnInvalidContent:e??o.options.enableContentCheck});return s&&i.replaceWith(0,a.content.size,d).setMeta("preventUpdate",!n),!0}return s&&i.setMeta("preventUpdate",!n),c.insertContentAt({from:0,to:a.content.size},t,{parseOptions:r,errorOnInvalidContent:e??o.options.enableContentCheck})};function Nv(t,e){const n=rr(e,t.schema),{from:r,to:o,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,a=>{s.push(...a.marks)});const c=s.find(a=>a.type.name===n.name);return c?{...c.attrs}:{}}function Ov(t,e){const n=new $0(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function SI(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function AI(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function xI(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function hl(t){return e=>xI(e.$from,t)}function we(t,e,n){return t.config[e]===void 0&&t.parent?we(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?we(t.parent,e,n):null}):t.config[e]}function ju(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=we(e,"addExtensions",n);return r?[e,...ju(r())]:e}).flat(10)}function Wu(t,e){const n=fo.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function Mv(t){return typeof t=="function"}function Ge(t,e=void 0,...n){return Mv(t)?e?t.bind(e)(...n):t(...n):t}function TI(t={}){return Object.keys(t).length===0&&t.constructor===Object}function si(t){const e=t.filter(o=>o.type==="extension"),n=t.filter(o=>o.type==="node"),r=t.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function Lv(t){const e=[],{nodeExtensions:n,markExtensions:r}=si(t),o=[...n,...r],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(d=>d.name!=="text").map(d=>d.name),c=r.map(d=>d.name),a=[...s,...c];return t.forEach(d=>{const u={name:d.name,options:d.options,storage:d.storage,extensions:o},f=we(d,"addGlobalAttributes",u);if(!f)return;f().forEach(p=>{let m;Array.isArray(p.types)?m=p.types:p.types==="*"?m=a:p.types==="nodes"?m=s:p.types==="marks"?m=c:m=[],m.forEach(g=>{Object.entries(p.attributes).forEach(([v,y])=>{e.push({type:g,name:v,attribute:{...i,...y}})})})})}),o.forEach(d=>{const u={name:d.name,options:d.options,storage:d.storage},f=we(d,"addAttributes",u);if(!f)return;const h=f();Object.entries(h).forEach(([p,m])=>{const g={...i,...m};typeof g?.default=="function"&&(g.default=g.default()),g?.isRequired&&g?.default===void 0&&delete g.default,e.push({type:d.name,name:p,attribute:g})})}),e}function II(t){const e=[];let n="",r=!1,o=!1,i=0;const s=t.length;for(let c=0;c<s;c+=1){const a=t[c];if(a==="'"&&!o){r=!r,n+=a;continue}if(a==='"'&&!r){o=!o,n+=a;continue}if(!r&&!o){if(a==="("){i+=1,n+=a;continue}if(a===")"&&i>0){i-=1,n+=a;continue}if(a===";"&&i===0){e.push(n),n="";continue}}n+=a}return n&&e.push(n),e}function Dv(t){const e=[],n=II(t||""),r=n.length;for(let o=0;o<r;o+=1){const i=n[o],s=i.indexOf(":");if(s===-1)continue;const c=i.slice(0,s).trim(),a=i.slice(s+1).trim();c&&a&&e.push([c,a])}return e}function Ct(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const c=i?String(i).split(" "):[],a=r[o]?r[o].split(" "):[],d=c.filter(u=>!a.includes(u));r[o]=[...a,...d].join(" ")}else if(o==="style"){const c=new Map([...Dv(r[o]),...Dv(i)]);r[o]=Array.from(c.entries()).map(([a,d])=>`${a}: ${d}`).join("; ")}else r[o]=i}),r},{})}function ks(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Ct(n,r),{})}function _I(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Pv(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const c=s.attribute.parseHTML?s.attribute.parseHTML(n):_I(n.getAttribute(s.name));return c==null?i:{...i,[s.name]:c}},{});return{...r,...o}}}}function Bv(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&TI(n)?!1:n!=null))}function Rv(t){var e,n;const r={};return!((e=t?.attribute)!=null&&e.isRequired)&&"default"in(t?.attribute||{})&&(r.default=t.attribute.default),((n=t?.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=t.attribute.validate),[t.name,r]}function NI(t,e){var n;const r=Lv(t),{nodeExtensions:o,markExtensions:i}=si(t),s=(n=o.find(d=>we(d,"topNode")))==null?void 0:n.name,c=Object.fromEntries(o.map(d=>{const u=r.filter(y=>y.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((y,b)=>{const E=we(b,"extendNodeSchema",f);return{...y,...E?E(d):{}}},{}),p=Bv({...h,content:Ge(we(d,"content",f)),marks:Ge(we(d,"marks",f)),group:Ge(we(d,"group",f)),inline:Ge(we(d,"inline",f)),atom:Ge(we(d,"atom",f)),selectable:Ge(we(d,"selectable",f)),draggable:Ge(we(d,"draggable",f)),code:Ge(we(d,"code",f)),whitespace:Ge(we(d,"whitespace",f)),linebreakReplacement:Ge(we(d,"linebreakReplacement",f)),defining:Ge(we(d,"defining",f)),isolating:Ge(we(d,"isolating",f)),attrs:Object.fromEntries(u.map(Rv))}),m=Ge(we(d,"parseHTML",f));m&&(p.parseDOM=m.map(y=>Pv(y,u)));const g=we(d,"renderHTML",f);g&&(p.toDOM=y=>g({node:y,HTMLAttributes:ks(y,u)}));const v=we(d,"renderText",f);return v&&(p.toText=v),[d.name,p]})),a=Object.fromEntries(i.map(d=>{const u=r.filter(v=>v.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((v,y)=>{const b=we(y,"extendMarkSchema",f);return{...v,...b?b(d):{}}},{}),p=Bv({...h,inclusive:Ge(we(d,"inclusive",f)),excludes:Ge(we(d,"excludes",f)),group:Ge(we(d,"group",f)),spanning:Ge(we(d,"spanning",f)),code:Ge(we(d,"code",f)),attrs:Object.fromEntries(u.map(Rv))}),m=Ge(we(d,"parseHTML",f));m&&(p.parseDOM=m.map(v=>Pv(v,u)));const g=we(d,"renderHTML",f);return g&&(p.toDOM=v=>g({mark:v,HTMLAttributes:ks(v,u)})),[d.name,p]}));return new h0({topNode:s,nodes:c,marks:a})}function OI(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}function ws(t){return t.sort((n,r)=>{const o=we(n,"priority")||100,i=we(r,"priority")||100;return o>i?-1:o<i?1:0})}function $v(t){const e=ws(ju(t)),n=OI(e.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}function Fv(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
|
|
1191
1191
|
|
|
1192
|
-
`,textSerializers:s={}}=n||{};let c="";return t.nodesBetween(r,o,(a,d,u,f)=>{var h;a.isBlock&&d>r&&(c+=i);const p=s?.[a.type.name];if(p)return u&&(c+=p({node:a,pos:d,parent:u,index:f,range:e})),!1;a.isText&&(c+=(h=a?.text)==null?void 0:h.slice(Math.max(r,d)-d,o-d))}),c}function MI(t,e){const n={from:0,to:t.content.size};return Fv(t,n,e)}function zv(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function LI(t,e){const n=ut(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,c=>{i.push(c)});const s=i.reverse().find(c=>c.type.name===n.name);return s?{...s.attrs}:{}}function Uv(t,e){const n=fl(typeof e=="string"?e:e.name,t.schema);return n==="node"?LI(t,e):n==="mark"?Nv(t,e):{}}function DI(t,e=JSON.stringify){const n={};return t.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function PI(t){const e=DI(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function Hv(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((c,a)=>{s.push({from:c,to:a})});else{const{from:c,to:a}=n[i];if(c===void 0||a===void 0)return;s.push({from:c,to:a})}s.forEach(({from:c,to:a})=>{const d=e.slice(i).map(c,-1),u=e.slice(i).map(a),f=e.invert().map(d,-1),h=e.invert().map(u);r.push({oldRange:{from:f,to:h},newRange:{from:d,to:u}})})}),PI(r)}function Ku(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t),s=Uu(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{!o||o?.nodeSize===void 0||r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}var BI=(t,e,n,r=20)=>{const o=t.doc.resolve(n);let i=r,s=null;for(;i>0&&s===null;){const c=o.node(i);c?.type.name===e?s=c:i-=1}return[s,i]};function Ss(t,e){return e.nodes[t]||e.marks[t]||null}function pl(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}var RI=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,c)=>{var a,d;const u=((d=(a=o.type.spec).toText)==null?void 0:d.call(a,{node:o,pos:i,parent:s,index:c}))||o.textContent||"%leaf%";n+=o.isAtom&&!o.isText?u:u.slice(0,Math.max(0,r-i))}),n};function Yu(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?rr(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>cl(f.attrs,n,{strict:!1}));let s=0;const c=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,m=h.pos;t.doc.nodesBetween(p,m,(g,v)=>{if(i&&g.inlineContent&&!g.type.allowsMarkType(i))return!1;if(!g.isText&&!g.marks.length)return;const y=Math.max(p,v),b=Math.min(m,v+g.nodeSize),E=b-y;s+=E,c.push(...g.marks.map(C=>({mark:C,from:y,to:b})))})}),s===0)return!1;const a=c.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>cl(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),d=c.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(a>0?a+d:a)>=s}function $I(t,e,n={}){if(!e)return Pr(t,null,n)||Yu(t,null,n);const r=fl(e,t.schema);return r==="node"?Pr(t,e,n):r==="mark"?Yu(t,e,n):!1}var FI=(t,e)=>{const{$from:n,$to:r,$anchor:o}=t.selection;if(e){const i=hl(c=>c.type.name===e)(t.selection);if(!i)return!1;const s=t.doc.resolve(i.pos+1);return o.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},zI=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function jv(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Wv(t,e){const{nodeExtensions:n}=si(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=Ge(we(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function ml(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!=null?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let o=!0;return t.content.forEach(i=>{o!==!1&&(ml(i,{ignoreWhitespace:n,checkChildren:e})||(o=!1))}),o}return!1}function UI(t){return t instanceof Te}var Kv=class P3{constructor(e){this.position=e}static fromJSON(e){return new P3(e.position)}toJSON(){return{position:this.position}}};function HI(t,e){const n=e.mapping.mapResult(t.position);return{position:new Kv(n.pos),mapResult:n}}function jI(t){return new Kv(t)}function WI(t,e,n){var r;const{selection:o}=e;let i=null;if(Sv(o)&&(i=o.$cursor),i){const c=(r=t.storedMarks)!=null?r:i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(c)||!c.some(d=>d.type.excludes(n)))}const{ranges:s}=o;return s.some(({$from:c,$to:a})=>{let d=c.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(c.pos,a.pos,(u,f,h)=>{if(d)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));d=p&&m}return!d}),d})}var KI=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:c}=i,a=rr(t,r.schema);if(o)if(s){const d=Nv(r,a);n.addStoredMark(a.create({...d,...e}))}else c.forEach(d=>{const u=d.$from.pos,f=d.$to.pos;r.doc.nodesBetween(u,f,(h,p)=>{const m=Math.max(p,u),g=Math.min(p+h.nodeSize,f);h.marks.find(y=>y.type===a)?h.marks.forEach(y=>{a===y.type&&n.addMark(m,g,a.create({...y.attrs,...e}))}):n.addMark(m,g,a.create(e))})});return WI(r,n,a)},YI=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),GI=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=ut(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?o().command(({commands:c})=>ig(i,{...s,...e})(n)?!0:c.clearNodes()).command(({state:c})=>ig(i,{...s,...e})(c,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},QI=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=Eo(t,0,r.content.size),i=Te.create(r,o);e.setSelection(i)}return!0},ZI=(t,e)=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=r;let s,c;return typeof e=="number"?(s=e,c=e):e&&"from"in e&&"to"in e?(s=e.from,c=e.to):(s=i.from,c=i.to),o&&n.doc.nodesBetween(s,c,(a,d)=>{a.isText||n.setNodeMarkup(d,void 0,{...a.attrs,dir:t})}),!0},JI=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Le.atStart(r).from,c=Le.atEnd(r).to,a=Eo(o,s,c),d=Eo(i,s,c),u=Le.create(r,a,d);e.setSelection(u)}return!0},XI=t=>({state:e,dispatch:n})=>{const r=ut(t,e.schema);return HA(r)(e,n)};function Yv(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e?.includes(o.type.name));t.tr.ensureMarks(r)}}var qI=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:c,$to:a}=i,d=o.extensionManager.attributes,u=pl(d,c.node().type.name,c.node().attrs);if(i instanceof Te&&i.node.isBlock)return!c.parentOffset||!qn(s,c.pos)?!1:(r&&(t&&Yv(n,o.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const f=a.parentOffset===a.parent.content.size,h=c.depth===0?void 0:SI(c.node(-1).contentMatchAt(c.indexAfter(-1)));let p=f&&h?[{type:h,attrs:u}]:void 0,m=qn(e.doc,e.mapping.map(c.pos),1,p);if(!p&&!m&&qn(e.doc,e.mapping.map(c.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),r){if(m&&(i instanceof Le&&e.deleteSelection(),e.split(e.mapping.map(c.pos),1,p),h&&!f&&!c.parentOffset&&c.parent.type!==h)){const g=e.mapping.map(c.before()),v=e.doc.resolve(g);c.node(-1).canReplaceWith(v.index(),v.index()+1,h)&&e.setNodeMarkup(e.mapping.map(c.before()),h)}t&&Yv(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return m},VI=(t,e={})=>({tr:n,state:r,dispatch:o,editor:i})=>{var s;const c=ut(t,r.schema),{$from:a,$to:d}=r.selection,u=r.selection.node;if(u&&u.isBlock||a.depth<2||!a.sameParent(d))return!1;const f=a.node(-1);if(f.type!==c)return!1;const h=i.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==c||a.index(-2)!==a.node(-2).childCount-1)return!1;if(o){let y=ce.empty;const b=a.index(-1)?1:a.index(-2)?2:3;for(let O=a.depth-b;O>=a.depth-3;O-=1)y=ce.from(a.node(O).copy(y));const E=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,C={...pl(h,a.node().type.name,a.node().attrs),...e},w=((s=c.contentMatch.defaultType)==null?void 0:s.createAndFill(C))||void 0;y=y.append(ce.from(c.createAndFill(null,w)||void 0));const I=a.before(a.depth-(b-1));n.replace(I,a.after(-E),new be(y,4-b,0));let A=-1;n.doc.nodesBetween(I,n.doc.content.size,(O,W)=>{if(A>-1)return!1;O.isTextblock&&O.content.size===0&&(A=W+1)}),A>-1&&n.setSelection(Le.near(n.doc.resolve(A))),n.scrollIntoView()}return!0}const p=d.pos===a.end()?f.contentMatchAt(0).defaultType:null,m={...pl(h,f.type.name,f.attrs),...e},g={...pl(h,a.node().type.name,a.node().attrs),...e};n.delete(a.pos,d.pos);const v=p?[{type:c,attrs:m},{type:p,attrs:g}]:[{type:c,attrs:m}];if(!qn(n.doc,a.pos,2))return!1;if(o){const{selection:y,storedMarks:b}=r,{splittableMarks:E}=i.extensionManager,C=b||y.$to.parentOffset&&y.$from.marks();if(n.split(a.pos,2,v).scrollIntoView(),!C||!o)return!0;const w=C.filter(I=>E.includes(I.type.name));n.ensureMarks(w)}return!0},Gu=(t,e)=>{const n=hl(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===o?.type&&Ar(t.doc,n.pos)&&t.join(n.pos),!0},Qu=(t,e)=>{const n=hl(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===o?.type&&Ar(t.doc,r)&&t.join(r),!0},e_=(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:c,chain:a,commands:d,can:u})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=ut(t,s.schema),m=ut(e,s.schema),{selection:g,storedMarks:v}=s,{$from:y,$to:b}=g,E=y.blockRange(b),C=v||g.$to.parentOffset&&g.$from.marks();if(!E)return!1;const w=hl(I=>Wv(I.type.name,f))(g);if(E.depth>=1&&w&&E.depth-w.depth<=1){if(w.node.type===p)return d.liftListItem(m);if(Wv(w.node.type.name,f)&&p.validContent(w.node.content)&&c)return a().command(()=>(i.setNodeMarkup(w.pos,p),!0)).command(()=>Gu(i,p)).command(()=>Qu(i,p)).run()}return!n||!C||!c?a().command(()=>u().wrapInList(p,r)?!0:d.clearNodes()).wrapInList(p,r).command(()=>Gu(i,p)).command(()=>Qu(i,p)).run():a().command(()=>{const I=u().wrapInList(p,r),A=C.filter(O=>h.includes(O.type.name));return i.ensureMarks(A),I?!0:d.clearNodes()}).wrapInList(p,r).command(()=>Gu(i,p)).command(()=>Qu(i,p)).run()},t_=(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=rr(t,r.schema);return Yu(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},n_=(t,e,n={})=>({state:r,commands:o})=>{const i=ut(t,r.schema),s=ut(e,r.schema),c=Pr(r,i,n);let a;return r.selection.$anchor.sameParent(r.selection.$head)&&(a=r.selection.$anchor.parent.attrs),c?o.setNode(s,a):o.setNode(i,{...a,...n})},r_=(t,e={})=>({state:n,commands:r})=>{const o=ut(t,n.schema);return Pr(n,o,e)?r.lift(o):r.wrapIn(o,e)},o_=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const s=t.tr,c=i.transform;for(let a=c.steps.length-1;a>=0;a-=1)s.step(c.steps[a].invert(c.docs[a]));if(i.text){const a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,a))}else s.delete(i.from,i.to)}return!0}}return!1},i_=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},s_=(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:c}=n,a=rr(t,r.schema),{$from:d,empty:u,ranges:f}=c;if(!o)return!0;if(u&&s){let{from:h,to:p}=c;const m=(i=d.marks().find(v=>v.type===a))==null?void 0:i.attrs,g=Uu(d,a,m);g&&(h=g.from,p=g.to),n.removeMark(h,p,a)}else f.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,a)});return n.removeStoredMark(a),!0},a_=t=>({tr:e,state:n,dispatch:r})=>{const{selection:o}=n;let i,s;return typeof t=="number"?(i=t,s=t):t&&"from"in t&&"to"in t?(i=t.from,s=t.to):(i=o.from,s=o.to),r&&e.doc.nodesBetween(i,s,(c,a)=>{if(c.isText)return;const d={...c.attrs};delete d.dir,e.setNodeMarkup(a,void 0,d)}),!0},l_=(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=fl(typeof t=="string"?t:t.name,r.schema);if(!c)return!1;c==="node"&&(i=ut(t,r.schema)),c==="mark"&&(s=rr(t,r.schema));let a=!1;return n.selection.ranges.forEach(d=>{const u=d.$from.pos,f=d.$to.pos;let h,p,m,g;n.selection.empty?r.doc.nodesBetween(u,f,(v,y)=>{i&&i===v.type&&(a=!0,m=Math.max(y,u),g=Math.min(y+v.nodeSize,f),h=y,p=v)}):r.doc.nodesBetween(u,f,(v,y)=>{y<u&&i&&i===v.type&&(a=!0,m=Math.max(y,u),g=Math.min(y+v.nodeSize,f),h=y,p=v),y>=u&&y<=f&&(i&&i===v.type&&(a=!0,o&&n.setNodeMarkup(y,void 0,{...v.attrs,...e})),s&&v.marks.length&&v.marks.forEach(b=>{if(s===b.type&&(a=!0,o)){const E=Math.max(y,u),C=Math.min(y+v.nodeSize,f);n.addMark(E,C,s.create({...b.attrs,...e}))}}))}),p&&(h!==void 0&&o&&n.setNodeMarkup(h,void 0,{...p.attrs,...e}),s&&p.marks.length&&p.marks.forEach(v=>{s===v.type&&o&&n.addMark(m,g,s.create({...v.attrs,...e}))}))}),a},c_=(t,e={})=>({state:n,dispatch:r})=>{const o=ut(t,n.schema);return PA(o,e)(n,r)},d_=(t,e={})=>({state:n,dispatch:r})=>{const o=ut(t,n.schema);return BA(o,e)(n,r)},u_=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(r=>r.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(r=>r!==e):delete this.callbacks[t]),this}once(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}},Gv=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},f_=(t,e)=>{if(zu(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function gl(t){var e;const{editor:n,from:r,to:o,text:i,rules:s,plugin:c}=t,{view:a}=n;if(a.composing)return!1;const d=a.state.doc.resolve(r);if(d.parent.type.spec.code||(e=d.nodeBefore||d.nodeAfter)!=null&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const f=RI(d)+i;return s.forEach(h=>{if(u)return;const p=f_(f,h.find);if(!p)return;const m=a.state.tr,g=al({state:a.state,transaction:m}),v={from:r-(p[0].length-i.length),to:o},{commands:y,chain:b,can:E}=new ll({editor:n,state:g});h.handler({state:g,range:v,match:p,commands:y,chain:b,can:E})===null||!m.steps.length||(h.undoable&&m.setMeta(c,{transform:m,from:r,to:o,text:i}),a.dispatch(m),u=!0)}),u}function h_(t){const{editor:e,rules:n}=t,r=new Ve({state:{init(){return null},apply(o,i,s){const c=o.getMeta(r);if(c)return c;const a=o.getMeta("applyInputRules");return a&&setTimeout(()=>{let{text:u}=a;typeof u=="string"?u=u:u=Wu(ce.from(u),s.schema);const{from:f}=a,h=f+u.length;gl({editor:e,from:f,to:h,text:u,rules:n,plugin:r})}),o.selectionSet||o.docChanged?null:i}},props:{handleTextInput(o,i,s,c){return gl({editor:e,from:i,to:s,text:c,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&gl({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?gl({editor:e,from:s.pos,to:s.pos,text:`
|
|
1193
|
-
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function p_(t){return Object.prototype.toString.call(t).slice(8,-1)}function vl(t){return p_(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Qv(t,e){const n={...t};return vl(t)&&vl(e)&&Object.keys(e).forEach(r=>{vl(e[r])&&vl(t[r])?n[r]=Qv(t[r],e[r]):n[r]=e[r]}),n}var Zu=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...Ge(we(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...Ge(we(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>Qv(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},As=class B3 extends Zu{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new B3(n)}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(d=>d?.type.name===n.name))return!1;const a=s.find(d=>d?.type.name===n.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function m_(t){return typeof t=="number"}var g_=class{constructor(t){this.find=t.find,this.handler=t.handler}},v_=(t,e,n)=>{if(zu(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(o=>{const i=[o.text];return i.index=o.index,i.input=t,i.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(o.replaceWith)),i}):[]};function y_(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:c}=t,{commands:a,chain:d,can:u}=new ll({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(p,m)=>{var g,v,y,b,E;if((v=(g=p.type)==null?void 0:g.spec)!=null&&v.code||!(p.isText||p.isTextblock||p.isInline))return;const C=(E=(b=(y=p.content)==null?void 0:y.size)!=null?b:p.nodeSize)!=null?E:0,w=Math.max(r,m),I=Math.min(o,m+C);if(w>=I)return;const A=p.isText?p.text||"":p.textBetween(w-m,I-m,void 0,"");v_(A,i.find,s).forEach(W=>{if(W.index===void 0)return;const $=w+W.index+1,z=$+W[0].length,j={from:n.tr.mapping.map($),to:n.tr.mapping.map(z)},Z=i.handler({state:n,range:j,match:W,commands:a,chain:d,can:u,pasteEvent:s,dropEvent:c});f.push(Z)})}),f.every(p=>p!==null)}var yl=null,b_=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function C_(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,c;try{c=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{c=null}const a=({state:u,from:f,to:h,rule:p,pasteEvt:m})=>{const g=u.tr,v=al({state:u,transaction:g});if(!(!y_({editor:e,state:v,from:Math.max(f-1,0),to:h.b-1,rule:p,pasteEvent:m,dropEvent:c})||!g.steps.length)){try{c=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{c=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(u=>new Ve({view(f){const h=m=>{var g;r=(g=f.dom.parentElement)!=null&&g.contains(m.target)?f.dom.parentElement:null,r&&(yl=e)},p=()=>{yl&&(yl=null)};return window.addEventListener("dragstart",h),window.addEventListener("dragend",p),{destroy(){window.removeEventListener("dragstart",h),window.removeEventListener("dragend",p)}}},props:{handleDOMEvents:{drop:(f,h)=>{if(i=r===f.dom.parentElement,c=h,!i){const p=yl;p?.isEditable&&setTimeout(()=>{const m=p.state.selection;m&&p.commands.deleteRange({from:m.from,to:m.to})},10)}return!1},paste:(f,h)=>{var p;const m=(p=h.clipboardData)==null?void 0:p.getData("text/html");return s=h,o=!!m?.includes("data-pm-slice"),!1}}},appendTransaction:(f,h,p)=>{const m=f[0],g=m.getMeta("uiEvent")==="paste"&&!o,v=m.getMeta("uiEvent")==="drop"&&!i,y=m.getMeta("applyPasteRules"),b=!!y;if(!g&&!v&&!b)return;if(b){let{text:w}=y;typeof w=="string"?w=w:w=Wu(ce.from(w),p.schema);const{from:I}=y,A=I+w.length,O=b_(w);return a({rule:u,state:p,from:I,to:{b:A},pasteEvt:O})}const E=h.doc.content.findDiffStart(p.doc.content),C=h.doc.content.findDiffEnd(p.doc.content);if(!(!m_(E)||!C||E===C.b))return a({rule:u,state:p,from:E,to:C,pasteEvt:s})}}))}var bl=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=$v(t),this.schema=NI(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Ss(e.name,this.schema)},r=we(e,"addCommands",n);return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this;return ws([...this.extensions].reverse()).flatMap(r=>{const o={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:Ss(r.name,this.schema)},i=[],s=we(r,"addKeyboardShortcuts",o);let c={};if(r.type==="mark"&&we(r,"exitable",o)&&(c.ArrowRight=()=>As.handleExit({editor:t,mark:r})),s){const h=Object.fromEntries(Object.entries(s()).map(([p,m])=>[p,()=>m({editor:t})]));c={...c,...h}}const a=MT(c);i.push(a);const d=we(r,"addInputRules",o);if(jv(r,t.options.enableInputRules)&&d){const h=d();if(h&&h.length){const p=h_({editor:t,rules:h}),m=Array.isArray(p)?p:[p];i.push(...m)}}const u=we(r,"addPasteRules",o);if(jv(r,t.options.enablePasteRules)&&u){const h=u();if(h&&h.length){const p=C_({editor:t,rules:h});i.push(...p)}}const f=we(r,"addProseMirrorPlugins",o);if(f){const h=f();i.push(...h)}return i})}get attributes(){return Lv(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=si(this.extensions);return Object.fromEntries(e.filter(n=>!!we(n,"addNodeView")).map(n=>{const r=this.attributes.filter(a=>a.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:ut(n.name,this.schema)},i=we(n,"addNodeView",o);if(!i)return[];const s=i();if(!s)return[];const c=(a,d,u,f,h)=>{const p=ks(a,r);return s({node:a,view:d,getPos:u,decorations:f,innerDecorations:h,editor:t,extension:n,HTMLAttributes:p})};return[n.name,c]}))}dispatchTransaction(t){const{editor:e}=this;return ws([...this.extensions].reverse()).reduceRight((r,o)=>{const i={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:e,type:Ss(o.name,this.schema)},s=we(o,"dispatchTransaction",i);return s?c=>{s.call(i,{transaction:c,next:r})}:r},t)}transformPastedHTML(t){const{editor:e}=this;return ws([...this.extensions]).reduce((r,o)=>{const i={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:e,type:Ss(o.name,this.schema)},s=we(o,"transformPastedHTML",i);return s?(c,a)=>{const d=r(c,a);return s.call(i,d)}:r},t||(r=>r))}get markViews(){const{editor:t}=this,{markExtensions:e}=si(this.extensions);return Object.fromEntries(e.filter(n=>!!we(n,"addMarkView")).map(n=>{const r=this.attributes.filter(c=>c.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:rr(n.name,this.schema)},i=we(n,"addMarkView",o);if(!i)return[];const s=(c,a,d)=>{const u=ks(c,r);return i()({mark:c,view:a,inline:d,editor:t,extension:n,HTMLAttributes:u,updateAttributes:f=>{M_(c,t,f)}})};return[n.name,s]}))}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const r={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Ss(e.name,this.schema)};e.type==="mark"&&((n=Ge(we(e,"keepOnSplit",r)))==null||n)&&this.splittableMarks.push(e.name);const o=we(e,"onBeforeCreate",r),i=we(e,"onCreate",r),s=we(e,"onUpdate",r),c=we(e,"onSelectionUpdate",r),a=we(e,"onTransaction",r),d=we(e,"onFocus",r),u=we(e,"onBlur",r),f=we(e,"onDestroy",r);o&&this.editor.on("beforeCreate",o),i&&this.editor.on("create",i),s&&this.editor.on("update",s),c&&this.editor.on("selectionUpdate",c),a&&this.editor.on("transaction",a),d&&this.editor.on("focus",d),u&&this.editor.on("blur",u),f&&this.editor.on("destroy",f)})}};bl.resolve=$v,bl.sort=ws,bl.flatten=ju;var E_={};Fu(E_,{ClipboardTextSerializer:()=>Zv,Commands:()=>Jv,Delete:()=>Xv,Drop:()=>qv,Editable:()=>Vv,FocusEvents:()=>t2,Keymap:()=>n2,Paste:()=>r2,Tabindex:()=>o2,TextDirection:()=>i2,focusEventsPluginKey:()=>e2});var ft=class R3 extends Zu{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new R3(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},Zv=ft.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ve({key:new dt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),c=Math.max(...i.map(u=>u.$to.pos)),a=zv(n);return Fv(r,{from:s,to:c},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:a})}}})]}}),Jv=ft.create({name:"commands",addCommands(){return{...Ev}}}),Xv=ft.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,r,o;const i=()=>{var s,c,a,d;if((d=(a=(c=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:c.filterTransaction)==null?void 0:a.call(c,t))!=null?d:t.getMeta("y-sync$"))return;const u=Ov(t.before,[t,...e]);Hv(u).forEach(p=>{u.mapping.mapResult(p.oldRange.from).deletedAfter&&u.mapping.mapResult(p.oldRange.to).deletedBefore&&u.before.nodesBetween(p.oldRange.from,p.oldRange.to,(m,g)=>{const v=g+m.nodeSize-2,y=p.oldRange.from<=g&&v<=p.oldRange.to;this.editor.emit("delete",{type:"node",node:m,from:g,to:v,newFrom:u.mapping.map(g),newTo:u.mapping.map(v),deletedRange:p.oldRange,newRange:p.newRange,partial:!y,editor:this.editor,transaction:t,combinedTransform:u})})});const h=u.mapping;u.steps.forEach((p,m)=>{var g,v;if(p instanceof wn){const y=h.slice(m).map(p.from,-1),b=h.slice(m).map(p.to),E=h.invert().map(y,-1),C=h.invert().map(b),w=(g=u.doc.nodeAt(y-1))==null?void 0:g.marks.some(A=>A.eq(p.mark)),I=(v=u.doc.nodeAt(b))==null?void 0:v.marks.some(A=>A.eq(p.mark));this.editor.emit("delete",{type:"mark",mark:p.mark,from:p.from,to:p.to,deletedRange:{from:E,to:C},newRange:{from:y,to:b},partial:!!(I||w),editor:this.editor,transaction:t,combinedTransform:u})}})};(o=(r=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:r.async)==null||o?setTimeout(i,0):i()}}),qv=ft.create({name:"drop",addProseMirrorPlugins(){return[new Ve({key:new dt("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),Vv=ft.create({name:"editable",addProseMirrorPlugins(){return[new Ve({key:new dt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),e2=new dt("focusEvents"),t2=ft.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ve({key:e2,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),n2=ft.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:c})=>{const{selection:a,doc:d}=c,{empty:u,$anchor:f}=a,{pos:h,parent:p}=f,m=f.parent.isTextblock&&h>0?c.doc.resolve(h-1):f,g=m.parent.type.spec.isolating,v=f.pos-f.parentOffset,y=g&&m.parent.childCount===1?v===f.pos:Be.atStart(d).from===h;return!u||!p.type.isTextblock||p.textContent.length||!y||y&&f.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return dl()||Iv()?i:o},addProseMirrorPlugins(){return[new Ve({key:new dt("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const r=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),o=t.some(g=>g.getMeta("preventClearDocument"));if(!r||o)return;const{empty:i,from:s,to:c}=e.selection,a=Be.atStart(e.doc).from,d=Be.atEnd(e.doc).to;if(i||!(s===a&&c===d)||!ml(n.doc))return;const h=n.tr,p=al({state:n,transaction:h}),{commands:m}=new ll({editor:this.editor,state:p});if(m.clearNodes(),!!h.steps.length)return h}})]}}),r2=ft.create({name:"paste",addProseMirrorPlugins(){return[new Ve({key:new dt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),o2=ft.create({name:"tabindex",addProseMirrorPlugins(){return[new Ve({key:new dt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),i2=ft.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=si(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const n=e.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new Ve({key:new dt("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}}),k_=class qs{constructor(e,n,r=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=o}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new qs(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new qs(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new qs(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const o=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=n.isInline,c=this.pos+r+(i?0:1);if(c<0||c>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(c);if(!o&&!s&&a.depth<=this.depth)return;const d=new qs(a,this.editor,o,o||s?n:null);o&&(d.actualDepth=this.depth+1),e.push(d)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,o=this.parent;for(;o&&!r;){if(o.node.type.name===e)if(Object.keys(n).length>0){const i=o.node.attrs,s=Object.keys(n);for(let c=0;c<s.length;c+=1){const a=s[c];if(i[a]!==n[a])break}}else r=o;o=o.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let o=[];if(!this.children||this.children.length===0)return o;const i=Object.keys(n);return this.children.forEach(s=>{r&&o.length>0||(s.node.type.name===e&&i.every(a=>n[a]===s.node.attrs[a])&&o.push(s),!(r&&o.length>0)&&(o=o.concat(s.querySelectorAll(e,n,r))))}),o}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},w_=`.ProseMirror {
|
|
1192
|
+
`,textSerializers:s={}}=n||{};let c="";return t.nodesBetween(r,o,(a,d,u,f)=>{var h;a.isBlock&&d>r&&(c+=i);const p=s?.[a.type.name];if(p)return u&&(c+=p({node:a,pos:d,parent:u,index:f,range:e})),!1;a.isText&&(c+=(h=a?.text)==null?void 0:h.slice(Math.max(r,d)-d,o-d))}),c}function MI(t,e){const n={from:0,to:t.content.size};return Fv(t,n,e)}function zv(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function LI(t,e){const n=ut(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,c=>{i.push(c)});const s=i.reverse().find(c=>c.type.name===n.name);return s?{...s.attrs}:{}}function Uv(t,e){const n=fl(typeof e=="string"?e:e.name,t.schema);return n==="node"?LI(t,e):n==="mark"?Nv(t,e):{}}function DI(t,e=JSON.stringify){const n={};return t.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function PI(t){const e=DI(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function Hv(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((c,a)=>{s.push({from:c,to:a})});else{const{from:c,to:a}=n[i];if(c===void 0||a===void 0)return;s.push({from:c,to:a})}s.forEach(({from:c,to:a})=>{const d=e.slice(i).map(c,-1),u=e.slice(i).map(a),f=e.invert().map(d,-1),h=e.invert().map(u);r.push({oldRange:{from:f,to:h},newRange:{from:d,to:u}})})}),PI(r)}function Ku(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t),s=Uu(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{!o||o?.nodeSize===void 0||r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}var BI=(t,e,n,r=20)=>{const o=t.doc.resolve(n);let i=r,s=null;for(;i>0&&s===null;){const c=o.node(i);c?.type.name===e?s=c:i-=1}return[s,i]};function Ss(t,e){return e.nodes[t]||e.marks[t]||null}function pl(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}var RI=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,c)=>{var a,d;const u=((d=(a=o.type.spec).toText)==null?void 0:d.call(a,{node:o,pos:i,parent:s,index:c}))||o.textContent||"%leaf%";n+=o.isAtom&&!o.isText?u:u.slice(0,Math.max(0,r-i))}),n};function Yu(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?rr(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>cl(f.attrs,n,{strict:!1}));let s=0;const c=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,m=h.pos;t.doc.nodesBetween(p,m,(g,v)=>{if(i&&g.inlineContent&&!g.type.allowsMarkType(i))return!1;if(!g.isText&&!g.marks.length)return;const y=Math.max(p,v),b=Math.min(m,v+g.nodeSize),E=b-y;s+=E,c.push(...g.marks.map(C=>({mark:C,from:y,to:b})))})}),s===0)return!1;const a=c.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>cl(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),d=c.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(a>0?a+d:a)>=s}function $I(t,e,n={}){if(!e)return Pr(t,null,n)||Yu(t,null,n);const r=fl(e,t.schema);return r==="node"?Pr(t,e,n):r==="mark"?Yu(t,e,n):!1}var FI=(t,e)=>{const{$from:n,$to:r,$anchor:o}=t.selection;if(e){const i=hl(c=>c.type.name===e)(t.selection);if(!i)return!1;const s=t.doc.resolve(i.pos+1);return o.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},zI=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function jv(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Wv(t,e){const{nodeExtensions:n}=si(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=Ge(we(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function ml(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!=null?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let o=!0;return t.content.forEach(i=>{o!==!1&&(ml(i,{ignoreWhitespace:n,checkChildren:e})||(o=!1))}),o}return!1}function UI(t){return t instanceof Te}var Kv=class P3{constructor(e){this.position=e}static fromJSON(e){return new P3(e.position)}toJSON(){return{position:this.position}}};function HI(t,e){const n=e.mapping.mapResult(t.position);return{position:new Kv(n.pos),mapResult:n}}function jI(t){return new Kv(t)}function WI(t,e,n){var r;const{selection:o}=e;let i=null;if(Sv(o)&&(i=o.$cursor),i){const c=(r=t.storedMarks)!=null?r:i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(c)||!c.some(d=>d.type.excludes(n)))}const{ranges:s}=o;return s.some(({$from:c,$to:a})=>{let d=c.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(c.pos,a.pos,(u,f,h)=>{if(d)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));d=p&&m}return!d}),d})}var KI=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:c}=i,a=rr(t,r.schema);if(o)if(s){const d=Nv(r,a);n.addStoredMark(a.create({...d,...e}))}else c.forEach(d=>{const u=d.$from.pos,f=d.$to.pos;r.doc.nodesBetween(u,f,(h,p)=>{const m=Math.max(p,u),g=Math.min(p+h.nodeSize,f);h.marks.find(y=>y.type===a)?h.marks.forEach(y=>{a===y.type&&n.addMark(m,g,a.create({...y.attrs,...e}))}):n.addMark(m,g,a.create(e))})});return WI(r,n,a)},YI=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),GI=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=ut(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?o().command(({commands:c})=>ig(i,{...s,...e})(n)?!0:c.clearNodes()).command(({state:c})=>ig(i,{...s,...e})(c,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},QI=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=Eo(t,0,r.content.size),i=Te.create(r,o);e.setSelection(i)}return!0},ZI=(t,e)=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=r;let s,c;return typeof e=="number"?(s=e,c=e):e&&"from"in e&&"to"in e?(s=e.from,c=e.to):(s=i.from,c=i.to),o&&n.doc.nodesBetween(s,c,(a,d)=>{a.isText||n.setNodeMarkup(d,void 0,{...a.attrs,dir:t})}),!0},JI=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Le.atStart(r).from,c=Le.atEnd(r).to,a=Eo(o,s,c),d=Eo(i,s,c),u=Le.create(r,a,d);e.setSelection(u)}return!0},XI=t=>({state:e,dispatch:n})=>{const r=ut(t,e.schema);return HA(r)(e,n)};function Yv(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e?.includes(o.type.name));t.tr.ensureMarks(r)}}var qI=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:c,$to:a}=i,d=o.extensionManager.attributes,u=pl(d,c.node().type.name,c.node().attrs);if(i instanceof Te&&i.node.isBlock)return!c.parentOffset||!qn(s,c.pos)?!1:(r&&(t&&Yv(n,o.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const f=a.parentOffset===a.parent.content.size,h=c.depth===0?void 0:SI(c.node(-1).contentMatchAt(c.indexAfter(-1)));let p=f&&h?[{type:h,attrs:u}]:void 0,m=qn(e.doc,e.mapping.map(c.pos),1,p);if(!p&&!m&&qn(e.doc,e.mapping.map(c.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),r){if(m&&(i instanceof Le&&e.deleteSelection(),e.split(e.mapping.map(c.pos),1,p),h&&!f&&!c.parentOffset&&c.parent.type!==h)){const g=e.mapping.map(c.before()),v=e.doc.resolve(g);c.node(-1).canReplaceWith(v.index(),v.index()+1,h)&&e.setNodeMarkup(e.mapping.map(c.before()),h)}t&&Yv(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return m},VI=(t,e={})=>({tr:n,state:r,dispatch:o,editor:i})=>{var s;const c=ut(t,r.schema),{$from:a,$to:d}=r.selection,u=r.selection.node;if(u&&u.isBlock||a.depth<2||!a.sameParent(d))return!1;const f=a.node(-1);if(f.type!==c)return!1;const h=i.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==c||a.index(-2)!==a.node(-2).childCount-1)return!1;if(o){let y=ce.empty;const b=a.index(-1)?1:a.index(-2)?2:3;for(let O=a.depth-b;O>=a.depth-3;O-=1)y=ce.from(a.node(O).copy(y));const E=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,C={...pl(h,a.node().type.name,a.node().attrs),...e},w=((s=c.contentMatch.defaultType)==null?void 0:s.createAndFill(C))||void 0;y=y.append(ce.from(c.createAndFill(null,w)||void 0));const I=a.before(a.depth-(b-1));n.replace(I,a.after(-E),new be(y,4-b,0));let A=-1;n.doc.nodesBetween(I,n.doc.content.size,(O,K)=>{if(A>-1)return!1;O.isTextblock&&O.content.size===0&&(A=K+1)}),A>-1&&n.setSelection(Le.near(n.doc.resolve(A))),n.scrollIntoView()}return!0}const p=d.pos===a.end()?f.contentMatchAt(0).defaultType:null,m={...pl(h,f.type.name,f.attrs),...e},g={...pl(h,a.node().type.name,a.node().attrs),...e};n.delete(a.pos,d.pos);const v=p?[{type:c,attrs:m},{type:p,attrs:g}]:[{type:c,attrs:m}];if(!qn(n.doc,a.pos,2))return!1;if(o){const{selection:y,storedMarks:b}=r,{splittableMarks:E}=i.extensionManager,C=b||y.$to.parentOffset&&y.$from.marks();if(n.split(a.pos,2,v).scrollIntoView(),!C||!o)return!0;const w=C.filter(I=>E.includes(I.type.name));n.ensureMarks(w)}return!0},Gu=(t,e)=>{const n=hl(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===o?.type&&Ar(t.doc,n.pos)&&t.join(n.pos),!0},Qu=(t,e)=>{const n=hl(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===o?.type&&Ar(t.doc,r)&&t.join(r),!0},e_=(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:c,chain:a,commands:d,can:u})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=ut(t,s.schema),m=ut(e,s.schema),{selection:g,storedMarks:v}=s,{$from:y,$to:b}=g,E=y.blockRange(b),C=v||g.$to.parentOffset&&g.$from.marks();if(!E)return!1;const w=hl(I=>Wv(I.type.name,f))(g);if(E.depth>=1&&w&&E.depth-w.depth<=1){if(w.node.type===p)return d.liftListItem(m);if(Wv(w.node.type.name,f)&&p.validContent(w.node.content)&&c)return a().command(()=>(i.setNodeMarkup(w.pos,p),!0)).command(()=>Gu(i,p)).command(()=>Qu(i,p)).run()}return!n||!C||!c?a().command(()=>u().wrapInList(p,r)?!0:d.clearNodes()).wrapInList(p,r).command(()=>Gu(i,p)).command(()=>Qu(i,p)).run():a().command(()=>{const I=u().wrapInList(p,r),A=C.filter(O=>h.includes(O.type.name));return i.ensureMarks(A),I?!0:d.clearNodes()}).wrapInList(p,r).command(()=>Gu(i,p)).command(()=>Qu(i,p)).run()},t_=(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=rr(t,r.schema);return Yu(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},n_=(t,e,n={})=>({state:r,commands:o})=>{const i=ut(t,r.schema),s=ut(e,r.schema),c=Pr(r,i,n);let a;return r.selection.$anchor.sameParent(r.selection.$head)&&(a=r.selection.$anchor.parent.attrs),c?o.setNode(s,a):o.setNode(i,{...a,...n})},r_=(t,e={})=>({state:n,commands:r})=>{const o=ut(t,n.schema);return Pr(n,o,e)?r.lift(o):r.wrapIn(o,e)},o_=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const s=t.tr,c=i.transform;for(let a=c.steps.length-1;a>=0;a-=1)s.step(c.steps[a].invert(c.docs[a]));if(i.text){const a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,a))}else s.delete(i.from,i.to)}return!0}}return!1},i_=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},s_=(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:c}=n,a=rr(t,r.schema),{$from:d,empty:u,ranges:f}=c;if(!o)return!0;if(u&&s){let{from:h,to:p}=c;const m=(i=d.marks().find(v=>v.type===a))==null?void 0:i.attrs,g=Uu(d,a,m);g&&(h=g.from,p=g.to),n.removeMark(h,p,a)}else f.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,a)});return n.removeStoredMark(a),!0},a_=t=>({tr:e,state:n,dispatch:r})=>{const{selection:o}=n;let i,s;return typeof t=="number"?(i=t,s=t):t&&"from"in t&&"to"in t?(i=t.from,s=t.to):(i=o.from,s=o.to),r&&e.doc.nodesBetween(i,s,(c,a)=>{if(c.isText)return;const d={...c.attrs};delete d.dir,e.setNodeMarkup(a,void 0,d)}),!0},l_=(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=fl(typeof t=="string"?t:t.name,r.schema);if(!c)return!1;c==="node"&&(i=ut(t,r.schema)),c==="mark"&&(s=rr(t,r.schema));let a=!1;return n.selection.ranges.forEach(d=>{const u=d.$from.pos,f=d.$to.pos;let h,p,m,g;n.selection.empty?r.doc.nodesBetween(u,f,(v,y)=>{i&&i===v.type&&(a=!0,m=Math.max(y,u),g=Math.min(y+v.nodeSize,f),h=y,p=v)}):r.doc.nodesBetween(u,f,(v,y)=>{y<u&&i&&i===v.type&&(a=!0,m=Math.max(y,u),g=Math.min(y+v.nodeSize,f),h=y,p=v),y>=u&&y<=f&&(i&&i===v.type&&(a=!0,o&&n.setNodeMarkup(y,void 0,{...v.attrs,...e})),s&&v.marks.length&&v.marks.forEach(b=>{if(s===b.type&&(a=!0,o)){const E=Math.max(y,u),C=Math.min(y+v.nodeSize,f);n.addMark(E,C,s.create({...b.attrs,...e}))}}))}),p&&(h!==void 0&&o&&n.setNodeMarkup(h,void 0,{...p.attrs,...e}),s&&p.marks.length&&p.marks.forEach(v=>{s===v.type&&o&&n.addMark(m,g,s.create({...v.attrs,...e}))}))}),a},c_=(t,e={})=>({state:n,dispatch:r})=>{const o=ut(t,n.schema);return PA(o,e)(n,r)},d_=(t,e={})=>({state:n,dispatch:r})=>{const o=ut(t,n.schema);return BA(o,e)(n,r)},u_=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(r=>r.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(r=>r!==e):delete this.callbacks[t]),this}once(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}},Gv=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},f_=(t,e)=>{if(zu(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function gl(t){var e;const{editor:n,from:r,to:o,text:i,rules:s,plugin:c}=t,{view:a}=n;if(a.composing)return!1;const d=a.state.doc.resolve(r);if(d.parent.type.spec.code||(e=d.nodeBefore||d.nodeAfter)!=null&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const f=RI(d)+i;return s.forEach(h=>{if(u)return;const p=f_(f,h.find);if(!p)return;const m=a.state.tr,g=al({state:a.state,transaction:m}),v={from:r-(p[0].length-i.length),to:o},{commands:y,chain:b,can:E}=new ll({editor:n,state:g});h.handler({state:g,range:v,match:p,commands:y,chain:b,can:E})===null||!m.steps.length||(h.undoable&&m.setMeta(c,{transform:m,from:r,to:o,text:i}),a.dispatch(m),u=!0)}),u}function h_(t){const{editor:e,rules:n}=t,r=new Ve({state:{init(){return null},apply(o,i,s){const c=o.getMeta(r);if(c)return c;const a=o.getMeta("applyInputRules");return a&&setTimeout(()=>{let{text:u}=a;typeof u=="string"?u=u:u=Wu(ce.from(u),s.schema);const{from:f}=a,h=f+u.length;gl({editor:e,from:f,to:h,text:u,rules:n,plugin:r})}),o.selectionSet||o.docChanged?null:i}},props:{handleTextInput(o,i,s,c){return gl({editor:e,from:i,to:s,text:c,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&gl({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?gl({editor:e,from:s.pos,to:s.pos,text:`
|
|
1193
|
+
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function p_(t){return Object.prototype.toString.call(t).slice(8,-1)}function vl(t){return p_(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Qv(t,e){const n={...t};return vl(t)&&vl(e)&&Object.keys(e).forEach(r=>{vl(e[r])&&vl(t[r])?n[r]=Qv(t[r],e[r]):n[r]=e[r]}),n}var Zu=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...Ge(we(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...Ge(we(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>Qv(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},As=class B3 extends Zu{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new B3(n)}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(d=>d?.type.name===n.name))return!1;const a=s.find(d=>d?.type.name===n.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function m_(t){return typeof t=="number"}var g_=class{constructor(t){this.find=t.find,this.handler=t.handler}},v_=(t,e,n)=>{if(zu(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(o=>{const i=[o.text];return i.index=o.index,i.input=t,i.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(o.replaceWith)),i}):[]};function y_(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:c}=t,{commands:a,chain:d,can:u}=new ll({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(p,m)=>{var g,v,y,b,E;if((v=(g=p.type)==null?void 0:g.spec)!=null&&v.code||!(p.isText||p.isTextblock||p.isInline))return;const C=(E=(b=(y=p.content)==null?void 0:y.size)!=null?b:p.nodeSize)!=null?E:0,w=Math.max(r,m),I=Math.min(o,m+C);if(w>=I)return;const A=p.isText?p.text||"":p.textBetween(w-m,I-m,void 0,"");v_(A,i.find,s).forEach(K=>{if(K.index===void 0)return;const B=w+K.index+1,F=B+K[0].length,H={from:n.tr.mapping.map(B),to:n.tr.mapping.map(F)},Z=i.handler({state:n,range:H,match:K,commands:a,chain:d,can:u,pasteEvent:s,dropEvent:c});f.push(Z)})}),f.every(p=>p!==null)}var yl=null,b_=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function C_(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,c;try{c=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{c=null}const a=({state:u,from:f,to:h,rule:p,pasteEvt:m})=>{const g=u.tr,v=al({state:u,transaction:g});if(!(!y_({editor:e,state:v,from:Math.max(f-1,0),to:h.b-1,rule:p,pasteEvent:m,dropEvent:c})||!g.steps.length)){try{c=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{c=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(u=>new Ve({view(f){const h=m=>{var g;r=(g=f.dom.parentElement)!=null&&g.contains(m.target)?f.dom.parentElement:null,r&&(yl=e)},p=()=>{yl&&(yl=null)};return window.addEventListener("dragstart",h),window.addEventListener("dragend",p),{destroy(){window.removeEventListener("dragstart",h),window.removeEventListener("dragend",p)}}},props:{handleDOMEvents:{drop:(f,h)=>{if(i=r===f.dom.parentElement,c=h,!i){const p=yl;p?.isEditable&&setTimeout(()=>{const m=p.state.selection;m&&p.commands.deleteRange({from:m.from,to:m.to})},10)}return!1},paste:(f,h)=>{var p;const m=(p=h.clipboardData)==null?void 0:p.getData("text/html");return s=h,o=!!m?.includes("data-pm-slice"),!1}}},appendTransaction:(f,h,p)=>{const m=f[0],g=m.getMeta("uiEvent")==="paste"&&!o,v=m.getMeta("uiEvent")==="drop"&&!i,y=m.getMeta("applyPasteRules"),b=!!y;if(!g&&!v&&!b)return;if(b){let{text:w}=y;typeof w=="string"?w=w:w=Wu(ce.from(w),p.schema);const{from:I}=y,A=I+w.length,O=b_(w);return a({rule:u,state:p,from:I,to:{b:A},pasteEvt:O})}const E=h.doc.content.findDiffStart(p.doc.content),C=h.doc.content.findDiffEnd(p.doc.content);if(!(!m_(E)||!C||E===C.b))return a({rule:u,state:p,from:E,to:C,pasteEvt:s})}}))}var bl=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=$v(t),this.schema=NI(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Ss(e.name,this.schema)},r=we(e,"addCommands",n);return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this;return ws([...this.extensions].reverse()).flatMap(r=>{const o={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:Ss(r.name,this.schema)},i=[],s=we(r,"addKeyboardShortcuts",o);let c={};if(r.type==="mark"&&we(r,"exitable",o)&&(c.ArrowRight=()=>As.handleExit({editor:t,mark:r})),s){const h=Object.fromEntries(Object.entries(s()).map(([p,m])=>[p,()=>m({editor:t})]));c={...c,...h}}const a=MT(c);i.push(a);const d=we(r,"addInputRules",o);if(jv(r,t.options.enableInputRules)&&d){const h=d();if(h&&h.length){const p=h_({editor:t,rules:h}),m=Array.isArray(p)?p:[p];i.push(...m)}}const u=we(r,"addPasteRules",o);if(jv(r,t.options.enablePasteRules)&&u){const h=u();if(h&&h.length){const p=C_({editor:t,rules:h});i.push(...p)}}const f=we(r,"addProseMirrorPlugins",o);if(f){const h=f();i.push(...h)}return i})}get attributes(){return Lv(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=si(this.extensions);return Object.fromEntries(e.filter(n=>!!we(n,"addNodeView")).map(n=>{const r=this.attributes.filter(a=>a.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:ut(n.name,this.schema)},i=we(n,"addNodeView",o);if(!i)return[];const s=i();if(!s)return[];const c=(a,d,u,f,h)=>{const p=ks(a,r);return s({node:a,view:d,getPos:u,decorations:f,innerDecorations:h,editor:t,extension:n,HTMLAttributes:p})};return[n.name,c]}))}dispatchTransaction(t){const{editor:e}=this;return ws([...this.extensions].reverse()).reduceRight((r,o)=>{const i={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:e,type:Ss(o.name,this.schema)},s=we(o,"dispatchTransaction",i);return s?c=>{s.call(i,{transaction:c,next:r})}:r},t)}transformPastedHTML(t){const{editor:e}=this;return ws([...this.extensions]).reduce((r,o)=>{const i={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:e,type:Ss(o.name,this.schema)},s=we(o,"transformPastedHTML",i);return s?(c,a)=>{const d=r(c,a);return s.call(i,d)}:r},t||(r=>r))}get markViews(){const{editor:t}=this,{markExtensions:e}=si(this.extensions);return Object.fromEntries(e.filter(n=>!!we(n,"addMarkView")).map(n=>{const r=this.attributes.filter(c=>c.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:rr(n.name,this.schema)},i=we(n,"addMarkView",o);if(!i)return[];const s=(c,a,d)=>{const u=ks(c,r);return i()({mark:c,view:a,inline:d,editor:t,extension:n,HTMLAttributes:u,updateAttributes:f=>{M_(c,t,f)}})};return[n.name,s]}))}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const r={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Ss(e.name,this.schema)};e.type==="mark"&&((n=Ge(we(e,"keepOnSplit",r)))==null||n)&&this.splittableMarks.push(e.name);const o=we(e,"onBeforeCreate",r),i=we(e,"onCreate",r),s=we(e,"onUpdate",r),c=we(e,"onSelectionUpdate",r),a=we(e,"onTransaction",r),d=we(e,"onFocus",r),u=we(e,"onBlur",r),f=we(e,"onDestroy",r);o&&this.editor.on("beforeCreate",o),i&&this.editor.on("create",i),s&&this.editor.on("update",s),c&&this.editor.on("selectionUpdate",c),a&&this.editor.on("transaction",a),d&&this.editor.on("focus",d),u&&this.editor.on("blur",u),f&&this.editor.on("destroy",f)})}};bl.resolve=$v,bl.sort=ws,bl.flatten=ju;var E_={};Fu(E_,{ClipboardTextSerializer:()=>Zv,Commands:()=>Jv,Delete:()=>Xv,Drop:()=>qv,Editable:()=>Vv,FocusEvents:()=>t2,Keymap:()=>n2,Paste:()=>r2,Tabindex:()=>o2,TextDirection:()=>i2,focusEventsPluginKey:()=>e2});var ft=class R3 extends Zu{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new R3(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},Zv=ft.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ve({key:new dt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),c=Math.max(...i.map(u=>u.$to.pos)),a=zv(n);return Fv(r,{from:s,to:c},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:a})}}})]}}),Jv=ft.create({name:"commands",addCommands(){return{...Ev}}}),Xv=ft.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,r,o;const i=()=>{var s,c,a,d;if((d=(a=(c=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:c.filterTransaction)==null?void 0:a.call(c,t))!=null?d:t.getMeta("y-sync$"))return;const u=Ov(t.before,[t,...e]);Hv(u).forEach(p=>{u.mapping.mapResult(p.oldRange.from).deletedAfter&&u.mapping.mapResult(p.oldRange.to).deletedBefore&&u.before.nodesBetween(p.oldRange.from,p.oldRange.to,(m,g)=>{const v=g+m.nodeSize-2,y=p.oldRange.from<=g&&v<=p.oldRange.to;this.editor.emit("delete",{type:"node",node:m,from:g,to:v,newFrom:u.mapping.map(g),newTo:u.mapping.map(v),deletedRange:p.oldRange,newRange:p.newRange,partial:!y,editor:this.editor,transaction:t,combinedTransform:u})})});const h=u.mapping;u.steps.forEach((p,m)=>{var g,v;if(p instanceof wn){const y=h.slice(m).map(p.from,-1),b=h.slice(m).map(p.to),E=h.invert().map(y,-1),C=h.invert().map(b),w=(g=u.doc.nodeAt(y-1))==null?void 0:g.marks.some(A=>A.eq(p.mark)),I=(v=u.doc.nodeAt(b))==null?void 0:v.marks.some(A=>A.eq(p.mark));this.editor.emit("delete",{type:"mark",mark:p.mark,from:p.from,to:p.to,deletedRange:{from:E,to:C},newRange:{from:y,to:b},partial:!!(I||w),editor:this.editor,transaction:t,combinedTransform:u})}})};(o=(r=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:r.async)==null||o?setTimeout(i,0):i()}}),qv=ft.create({name:"drop",addProseMirrorPlugins(){return[new Ve({key:new dt("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),Vv=ft.create({name:"editable",addProseMirrorPlugins(){return[new Ve({key:new dt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),e2=new dt("focusEvents"),t2=ft.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ve({key:e2,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),n2=ft.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:c})=>{const{selection:a,doc:d}=c,{empty:u,$anchor:f}=a,{pos:h,parent:p}=f,m=f.parent.isTextblock&&h>0?c.doc.resolve(h-1):f,g=m.parent.type.spec.isolating,v=f.pos-f.parentOffset,y=g&&m.parent.childCount===1?v===f.pos:Be.atStart(d).from===h;return!u||!p.type.isTextblock||p.textContent.length||!y||y&&f.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return dl()||Iv()?i:o},addProseMirrorPlugins(){return[new Ve({key:new dt("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const r=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),o=t.some(g=>g.getMeta("preventClearDocument"));if(!r||o)return;const{empty:i,from:s,to:c}=e.selection,a=Be.atStart(e.doc).from,d=Be.atEnd(e.doc).to;if(i||!(s===a&&c===d)||!ml(n.doc))return;const h=n.tr,p=al({state:n,transaction:h}),{commands:m}=new ll({editor:this.editor,state:p});if(m.clearNodes(),!!h.steps.length)return h}})]}}),r2=ft.create({name:"paste",addProseMirrorPlugins(){return[new Ve({key:new dt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),o2=ft.create({name:"tabindex",addProseMirrorPlugins(){return[new Ve({key:new dt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),i2=ft.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=si(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const n=e.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new Ve({key:new dt("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}}),k_=class qs{constructor(e,n,r=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=o}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new qs(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new qs(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new qs(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const o=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=n.isInline,c=this.pos+r+(i?0:1);if(c<0||c>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(c);if(!o&&!s&&a.depth<=this.depth)return;const d=new qs(a,this.editor,o,o||s?n:null);o&&(d.actualDepth=this.depth+1),e.push(d)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,o=this.parent;for(;o&&!r;){if(o.node.type.name===e)if(Object.keys(n).length>0){const i=o.node.attrs,s=Object.keys(n);for(let c=0;c<s.length;c+=1){const a=s[c];if(i[a]!==n[a])break}}else r=o;o=o.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let o=[];if(!this.children||this.children.length===0)return o;const i=Object.keys(n);return this.children.forEach(s=>{r&&o.length>0||(s.node.type.name===e&&i.every(a=>n[a]===s.node.attrs[a])&&o.push(s),!(r&&o.length>0)&&(o=o.concat(s.querySelectorAll(e,n,r))))}),o}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},w_=`.ProseMirror {
|
|
1194
1194
|
position: relative;
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
@@ -1262,7 +1262,7 @@ img.ProseMirror-separator {
|
|
|
1262
1262
|
display: block;
|
|
1263
1263
|
}`;function S_(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute("data-tiptap-style",""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}var A_=class extends u_{constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:o})=>{throw o},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:HI,createMappablePosition:jI},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:o,slice:i,moved:s})=>this.options.onDrop(o,i,s)),this.on("paste",({event:o,slice:i})=>this.options.onPaste(o,i)),this.on("delete",this.options.onDelete);const n=this.createDoc(),r=Av(n,this.options.autofocus);this.editorState=qo.create({doc:n,schema:this.schema,selection:r||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=S_(w_,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,n)=>{if(this.editorView)return this.editorView[n];if(n==="state")return this.editorState;if(n in e)return Reflect.get(e,n);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${n}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,n){const r=Mv(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});return this.view.updateState(o),o}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(e).forEach(i=>{const s=typeof i=="string"?`${i}$`:i.key;r=r.filter(c=>!c.key.startsWith(s))}),n.length===r.length)return;const o=this.state.reconfigure({plugins:r});return this.view.updateState(o),o}createExtensionManager(){var e,n;const o=[...this.options.enableCoreExtensions?[Vv,Zv.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)==null?void 0:e.clipboardTextSerializer)==null?void 0:n.blockSeparator}),Jv,t2,n2,o2,qv,r2,Xv,i2.configure({direction:this.options.textDirection})].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new bl(o,this)}createCommandManager(){this.commandManager=new ll({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=Hu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(n){if(!(n instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(n.message))throw n;this.emit("contentError",{editor:this,error:n,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(r=>r.name!=="collaboration"),this.createExtensionManager()}}),e=Hu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){const{editorProps:n,enableExtensionDispatchTransaction:r}=this.options,o=n.dispatchTransaction||this.dispatchTransaction.bind(this),i=r?this.extensionManager.dispatchTransaction(o):o,s=n.transformPastedHTML,c=this.extensionManager.transformPastedHTML(s);this.editorView=new pv(e,{...n,attributes:{role:"textbox",...n?.attributes},dispatchTransaction:i,transformPastedHTML:c,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.prependClass(),this.injectCSS();const d=this.view.dom;d.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(u=>{var f;return(f=this.capturedTransaction)==null?void 0:f.step(u)});return}const{state:n,transactions:r}=this.state.applyTransaction(e),o=!this.state.selection.eq(n.selection),i=r.includes(e),s=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),!i)return;this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:r.slice(1)}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});const c=r.findLast(u=>u.getMeta("focus")||u.getMeta("blur")),a=c?.getMeta("focus"),d=c?.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:c}),d&&this.emit("blur",{editor:this,event:d.event,transaction:c}),!(e.getMeta("preventUpdate")||!r.some(u=>u.docChanged)||s.doc.eq(n.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:r.slice(1)})}getAttributes(e){return Uv(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return $I(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Wu(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
|
|
1264
1264
|
|
|
1265
|
-
`,textSerializers:r={}}=e||{};return MI(this.state.doc,{blockSeparator:n,textSerializers:{...zv(this.schema),...r}})}get isEmpty(){return ml(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,n;return(n=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?n:!0}$node(e,n){var r;return((r=this.$doc)==null?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)==null?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new k_(n,this)}get $doc(){return this.$pos(0)}};function Cl(t){return new Gv({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Ge(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],c=r[0];if(s){const a=c.search(/\S/),d=n.from+c.indexOf(s),u=d+s.length;if(Ku(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===t.type&&g!==p.mark.type)).filter(p=>p.to>d).length)return null;u<n.to&&i.delete(u,n.to),d>n.from&&i.delete(n.from+a,d);const h=n.from+a+s.length;i.addMark(n.from+a,h,t.type.create(o||{})),i.removeStoredMark(t.type)}},undoable:t.undoable})}function xs(t){return new Gv({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=Ge(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),d=a&&tu(a,t.type,i);if(!d)return null;if(s.wrap(a,d),t.keepMarks&&t.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=t.editor.extensionManager,m=h||f.$to.parentOffset&&f.$from.marks();if(m){const g=m.filter(v=>p.includes(v.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const f=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&Ar(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&s.join(n.from-1)},undoable:t.undoable})}function x_(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var T_={};Fu(T_,{createAtomBlockMarkdownSpec:()=>I_,createBlockMarkdownSpec:()=>__,createInlineMarkdownSpec:()=>s2,parseAttributes:()=>Ju,parseIndentedBlocks:()=>qu,renderNestedMarkdownContent:()=>Vu,serializeAttributes:()=>Xu});function Ju(t){if(!t?.trim())return{};const e={},n=[],r=t.replace(/["']([^"']*)["']/g,d=>(n.push(d),`__QUOTED_${n.length-1}__`)),o=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(o){const d=o.map(u=>u.trim().slice(1));e.class=d.join(" ")}const i=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);i&&(e.id=i[1]);const s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,d,u])=>{var f;const h=parseInt(((f=u.match(/__QUOTED_(\d+)__/))==null?void 0:f[1])||"0",10),p=n[h];p&&(e[d]=p.slice(1,-1))});const a=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return a&&a.split(/\s+/).filter(Boolean).forEach(u=>{u.match(/^[a-zA-Z][\w-]*$/)&&(e[u]=!0)}),e}function Xu(t){if(!t||Object.keys(t).length===0)return"";const e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(r=>e.push(`.${r}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([n,r])=>{n==="class"||n==="id"||(r===!0?e.push(n):r!==!1&&r!=null&&e.push(`${n}="${String(r)}"`))}),e.join(" ")}function I_(t){const{nodeName:e,name:n,parseAttributes:r=Ju,serializeAttributes:o=Xu,defaultAttributes:i={},requiredAttributes:s=[],allowedAttributes:c}=t,a=n||e,d=u=>{if(!c)return u;const f={};return c.forEach(h=>{h in u&&(f[h]=u[h])}),f};return{parseMarkdown:(u,f)=>{const h={...i,...u.attributes};return f.createNode(e,h,[])},markdownTokenizer:{name:e,level:"block",start(u){var f;const h=new RegExp(`^:::${a}(?:\\s|$)`,"m"),p=(f=u.match(h))==null?void 0:f.index;return p!==void 0?p:-1},tokenize(u,f,h){const p=new RegExp(`^:::${a}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),m=u.match(p);if(!m)return;const g=m[1]||"",v=r(g);if(!s.find(b=>!(b in v)))return{type:e,raw:m[0],attributes:v}}},renderMarkdown:u=>{const f=d(u.attrs||{}),h=o(f),p=h?` {${h}}`:"";return`:::${a}${p} :::`}}}function __(t){const{nodeName:e,name:n,getContent:r,parseAttributes:o=Ju,serializeAttributes:i=Xu,defaultAttributes:s={},content:c="block",allowedAttributes:a}=t,d=n||e,u=f=>{if(!a)return f;const h={};return a.forEach(p=>{p in f&&(h[p]=f[p])}),h};return{parseMarkdown:(f,h)=>{let p;if(r){const g=r(f);p=typeof g=="string"?[{type:"text",text:g}]:g}else c==="block"?p=h.parseChildren(f.tokens||[]):p=h.parseInline(f.tokens||[]);const m={...s,...f.attributes};return h.createNode(e,m,p)},markdownTokenizer:{name:e,level:"block",start(f){var h;const p=new RegExp(`^:::${d}`,"m"),m=(h=f.match(p))==null?void 0:h.index;return m!==void 0?m:-1},tokenize(f,h,p){var m;const g=new RegExp(`^:::${d}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),v=f.match(g);if(!v)return;const[y,b=""]=v,E=o(b);let C=1;const w=y.length;let I="";const A=/^:::([\w-]*)(\s.*)?/gm,O=f.slice(w);for(A.lastIndex=0;;){const
|
|
1265
|
+
`,textSerializers:r={}}=e||{};return MI(this.state.doc,{blockSeparator:n,textSerializers:{...zv(this.schema),...r}})}get isEmpty(){return ml(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,n;return(n=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?n:!0}$node(e,n){var r;return((r=this.$doc)==null?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)==null?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new k_(n,this)}get $doc(){return this.$pos(0)}};function Cl(t){return new Gv({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Ge(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],c=r[0];if(s){const a=c.search(/\S/),d=n.from+c.indexOf(s),u=d+s.length;if(Ku(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===t.type&&g!==p.mark.type)).filter(p=>p.to>d).length)return null;u<n.to&&i.delete(u,n.to),d>n.from&&i.delete(n.from+a,d);const h=n.from+a+s.length;i.addMark(n.from+a,h,t.type.create(o||{})),i.removeStoredMark(t.type)}},undoable:t.undoable})}function xs(t){return new Gv({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=Ge(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),d=a&&tu(a,t.type,i);if(!d)return null;if(s.wrap(a,d),t.keepMarks&&t.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=t.editor.extensionManager,m=h||f.$to.parentOffset&&f.$from.marks();if(m){const g=m.filter(v=>p.includes(v.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const f=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&Ar(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&s.join(n.from-1)},undoable:t.undoable})}function x_(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var T_={};Fu(T_,{createAtomBlockMarkdownSpec:()=>I_,createBlockMarkdownSpec:()=>__,createInlineMarkdownSpec:()=>s2,parseAttributes:()=>Ju,parseIndentedBlocks:()=>qu,renderNestedMarkdownContent:()=>Vu,serializeAttributes:()=>Xu});function Ju(t){if(!t?.trim())return{};const e={},n=[],r=t.replace(/["']([^"']*)["']/g,d=>(n.push(d),`__QUOTED_${n.length-1}__`)),o=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(o){const d=o.map(u=>u.trim().slice(1));e.class=d.join(" ")}const i=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);i&&(e.id=i[1]);const s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,d,u])=>{var f;const h=parseInt(((f=u.match(/__QUOTED_(\d+)__/))==null?void 0:f[1])||"0",10),p=n[h];p&&(e[d]=p.slice(1,-1))});const a=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return a&&a.split(/\s+/).filter(Boolean).forEach(u=>{u.match(/^[a-zA-Z][\w-]*$/)&&(e[u]=!0)}),e}function Xu(t){if(!t||Object.keys(t).length===0)return"";const e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(r=>e.push(`.${r}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([n,r])=>{n==="class"||n==="id"||(r===!0?e.push(n):r!==!1&&r!=null&&e.push(`${n}="${String(r)}"`))}),e.join(" ")}function I_(t){const{nodeName:e,name:n,parseAttributes:r=Ju,serializeAttributes:o=Xu,defaultAttributes:i={},requiredAttributes:s=[],allowedAttributes:c}=t,a=n||e,d=u=>{if(!c)return u;const f={};return c.forEach(h=>{h in u&&(f[h]=u[h])}),f};return{parseMarkdown:(u,f)=>{const h={...i,...u.attributes};return f.createNode(e,h,[])},markdownTokenizer:{name:e,level:"block",start(u){var f;const h=new RegExp(`^:::${a}(?:\\s|$)`,"m"),p=(f=u.match(h))==null?void 0:f.index;return p!==void 0?p:-1},tokenize(u,f,h){const p=new RegExp(`^:::${a}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),m=u.match(p);if(!m)return;const g=m[1]||"",v=r(g);if(!s.find(b=>!(b in v)))return{type:e,raw:m[0],attributes:v}}},renderMarkdown:u=>{const f=d(u.attrs||{}),h=o(f),p=h?` {${h}}`:"";return`:::${a}${p} :::`}}}function __(t){const{nodeName:e,name:n,getContent:r,parseAttributes:o=Ju,serializeAttributes:i=Xu,defaultAttributes:s={},content:c="block",allowedAttributes:a}=t,d=n||e,u=f=>{if(!a)return f;const h={};return a.forEach(p=>{p in f&&(h[p]=f[p])}),h};return{parseMarkdown:(f,h)=>{let p;if(r){const g=r(f);p=typeof g=="string"?[{type:"text",text:g}]:g}else c==="block"?p=h.parseChildren(f.tokens||[]):p=h.parseInline(f.tokens||[]);const m={...s,...f.attributes};return h.createNode(e,m,p)},markdownTokenizer:{name:e,level:"block",start(f){var h;const p=new RegExp(`^:::${d}`,"m"),m=(h=f.match(p))==null?void 0:h.index;return m!==void 0?m:-1},tokenize(f,h,p){var m;const g=new RegExp(`^:::${d}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),v=f.match(g);if(!v)return;const[y,b=""]=v,E=o(b);let C=1;const w=y.length;let I="";const A=/^:::([\w-]*)(\s.*)?/gm,O=f.slice(w);for(A.lastIndex=0;;){const K=A.exec(O);if(K===null)break;const B=K.index,F=K[1];if(!((m=K[2])!=null&&m.endsWith(":::"))){if(F)C+=1;else if(C-=1,C===0){const H=O.slice(0,B);I=H.trim();const Z=f.slice(0,w+B+K[0].length);let W=[];if(I)if(c==="block")for(W=p.blockTokens(H),W.forEach(j=>{j.text&&(!j.tokens||j.tokens.length===0)&&(j.tokens=p.inlineTokens(j.text))});W.length>0;){const j=W[W.length-1];if(j.type==="paragraph"&&(!j.text||j.text.trim()===""))W.pop();else break}else W=p.inlineTokens(I);return{type:e,raw:Z,attributes:E,content:I,tokens:W}}}}}},renderMarkdown:(f,h)=>{const p=u(f.attrs||{}),m=i(p),g=m?` {${m}}`:"",v=h.renderChildren(f.content||[],`
|
|
1266
1266
|
|
|
1267
1267
|
`);return`:::${d}${g}
|
|
1268
1268
|
|
|
@@ -1271,7 +1271,7 @@ ${v}
|
|
|
1271
1271
|
:::`}}}function N_(t){if(!t.trim())return{};const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(t);for(;r!==null;){const[,o,i,s]=r;e[o]=i||s,r=n.exec(t)}return e}function O_(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e}="${n}"`).join(" ")}function s2(t){const{nodeName:e,name:n,getContent:r,parseAttributes:o=N_,serializeAttributes:i=O_,defaultAttributes:s={},selfClosing:c=!1,allowedAttributes:a}=t,d=n||e,u=h=>{if(!a)return h;const p={};return a.forEach(m=>{const g=typeof m=="string"?m:m.name,v=typeof m=="string"?void 0:m.skipIfDefault;if(g in h){const y=h[g];if(v!==void 0&&y===v)return;p[g]=y}}),p},f=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(h,p)=>{const m={...s,...h.attributes};if(c)return p.createNode(e,m);const g=r?r(h):h.content||"";return g?p.createNode(e,m,[p.createTextNode(g)]):p.createNode(e,m,[])},markdownTokenizer:{name:e,level:"inline",start(h){const p=c?new RegExp(`\\[${f}\\s*[^\\]]*\\]`):new RegExp(`\\[${f}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${f}\\]`),m=h.match(p),g=m?.index;return g!==void 0?g:-1},tokenize(h,p,m){const g=c?new RegExp(`^\\[${f}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${f}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${f}\\]`),v=h.match(g);if(!v)return;let y="",b="";if(c){const[,C]=v;b=C}else{const[,C,w]=v;b=C,y=w||""}const E=o(b.trim());return{type:e,raw:v[0],content:y.trim(),attributes:E}}},renderMarkdown:h=>{let p="";r?p=r(h):h.content&&h.content.length>0&&(p=h.content.filter(y=>y.type==="text").map(y=>y.text).join(""));const m=u(h.attrs||{}),g=i(m),v=g?` ${g}`:"";return c?`[${d}${v}]`:`[${d}${v}]${p}[/${d}]`}}}function qu(t,e,n){var r,o,i,s;const c=t.split(`
|
|
1272
1272
|
`),a=[];let d="",u=0;const f=e.baseIndentSize||2;for(;u<c.length;){const h=c[u],p=h.match(e.itemPattern);if(!p){if(a.length>0)break;if(h.trim()===""){u+=1,d=`${d}${h}
|
|
1273
1273
|
`;continue}else return}const m=e.extractItemData(p),{indentLevel:g,mainContent:v}=m;d=`${d}${h}
|
|
1274
|
-
`;const y=[v];for(u+=1;u<c.length;){const w=c[u];if(w.trim()===""){const A=c.slice(u+1).findIndex(
|
|
1274
|
+
`;const y=[v];for(u+=1;u<c.length;){const w=c[u];if(w.trim()===""){const A=c.slice(u+1).findIndex(B=>B.trim()!=="");if(A===-1)break;if((((o=(r=c[u+1+A].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:o.length)||0)>g){y.push(w),d=`${d}${w}
|
|
1275
1275
|
`,u+=1;continue}else break}if((((s=(i=w.match(/^(\s*)/))==null?void 0:i[1])==null?void 0:s.length)||0)>g)y.push(w),d=`${d}${w}
|
|
1276
1276
|
`,u+=1;else break}let b;const E=y.slice(1);if(E.length>0){const w=E.map(I=>I.slice(g+f)).join(`
|
|
1277
1277
|
`);w.trim()&&(e.customNestedParser?b=e.customNestedParser(w):b=n.blockTokens(w))}const C=e.createToken(m,b);a.push(C)}if(a.length!==0)return{items:a,raw:d}}function Vu(t,e,n,r){if(!t||!Array.isArray(t.content))return"";const o=typeof n=="function"?n(r):n,[i,...s]=t.content,c=e.renderChildren([i]),a=[`${o}${c}`];return s&&s.length>0&&s.forEach(d=>{const u=e.renderChildren([d]);if(u){const f=u.split(`
|
|
@@ -1280,7 +1280,7 @@ ${v}
|
|
|
1280
1280
|
`)}function M_(t,e,n={}){const{state:r}=e,{doc:o,tr:i}=r,s=t;o.descendants((c,a)=>{const d=i.mapping.map(a),u=i.mapping.map(a)+c.nodeSize;let f=null;if(c.marks.forEach(p=>{if(p!==s)return!1;f=p}),!f)return;let h=!1;if(Object.keys(n).forEach(p=>{n[p]!==f.attrs[p]&&(h=!0)}),h){const p=t.type.create({...t.attrs,...n});i.removeMark(d,u,t.type),i.addMark(d,u,p)}}),i.docChanged&&e.view.dispatch(i)}var Bn=class $3 extends Zu{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new $3(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function Ts(t){return new g_({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const i=Ge(t.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,c=r[r.length-1],a=r[0];let d=n.to;if(c){const u=a.search(/\S/),f=n.from+a.indexOf(c),h=f+c.length;if(Ku(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(v=>v===t.type&&v!==m.mark.type)).filter(m=>m.to>f).length)return null;h<n.to&&s.delete(h,n.to),f>n.from&&s.delete(n.from+u,f),d=n.from+u+c.length,s.addMark(n.from+u,d,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}function a2(t){return l.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var L_=class extends A_{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=a2(this.view.state),this.reactiveExtensionStorage=a2(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),l.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,e){const n=super.registerPlugin(t,e);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(t){const e=super.unregisterPlugin(t);return this.reactiveState&&e&&(this.reactiveState.value=e),e}},D_=l.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=l.ref(),n=l.getCurrentInstance();return l.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&l.nextTick(()=>{var o;if(!e.value||!((o=r.view.dom)!=null&&o.parentNode))return;const i=l.unref(e.value);e.value.append(...r.view.dom.parentNode.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:i}),r.createNodeViews()})}),l.onBeforeUnmount(()=>{const r=t.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:e}},render(){return l.h("div",{ref:t=>{this.rootEl=t}})}});l.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return l.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),l.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return l.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)==null?void 0:e.call(t))}});var P_=(t={})=>{const e=l.shallowRef();return l.onMounted(()=>{e.value=new L_(t)}),l.onBeforeUnmount(()=>{var n,r,o,i;const s=(r=(n=e.value)==null?void 0:n.view.dom)==null?void 0:r.parentNode,c=s?.cloneNode(!0);(o=s?.parentNode)==null||o.replaceChild(c,s),(i=e.value)==null||i.destroy()}),e},B_=class{constructor(t,{props:e={},editor:n}){this.destroyed=!1,this.editor=n,this.component=l.markRaw(t),this.el=document.createElement("div"),this.props=l.reactive(e),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){var t,e,n,r;return(e=(t=this.renderedComponent.vNode)==null?void 0:t.component)!=null&&e.exposed?this.renderedComponent.vNode.component.exposed:(r=(n=this.renderedComponent.vNode)==null?void 0:n.component)==null?void 0:r.proxy}renderComponent(){if(this.destroyed)return this.renderedComponent;let t=l.h(this.component,this.props);return this.editor.appContext&&(t.appContext=this.editor.appContext),typeof document<"u"&&this.el&&l.render(t,this.el),{vNode:t,destroy:()=>{this.el&&l.render(null,this.el),this.el=null,t=null},el:this.el?this.el.firstElementChild:null}}updateProps(t={}){this.destroyed||(Object.entries(t).forEach(([e,n])=>{this.props[e]=n}),this.renderComponent())}destroy(){this.destroyed||(this.destroyed=!0,this.renderedComponent.destroy())}};l.defineComponent({name:"MarkViewContent",props:{as:{type:String,default:"span"}},render(){return l.h(this.as,{style:{whiteSpace:"inherit"},"data-mark-view-content":""})}});var R_=Bn.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
1281
1281
|
|
|
1282
1282
|
`):""}),$_=R_,l2=" ",F_=" ",z_=Bn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Ct(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===l2||r[0].text===F_)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e)=>{if(!t)return"";const n=Array.isArray(t.content)?t.content:[];return n.length===0?l2:e.renderChildren(n)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),U_=z_,H_=Bn.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),j_=H_;const W_="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",K_="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",ef="numeric",tf="ascii",nf="alpha",Is="asciinumeric",_s="alphanumeric",rf="domain",c2="emoji",Y_="scheme",G_="slashscheme",of="whitespace";function Q_(t,e){return t in e||(e[t]=[]),e[t]}function ko(t,e,n){e[ef]&&(e[Is]=!0,e[_s]=!0),e[tf]&&(e[Is]=!0,e[nf]=!0),e[Is]&&(e[_s]=!0),e[nf]&&(e[_s]=!0),e[_s]&&(e[rf]=!0),e[c2]&&(e[rf]=!0);for(const r in e){const o=Q_(r,n);o.indexOf(t)<0&&o.push(t)}}function Z_(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function Gt(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Gt.groups={},Gt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||Gt.groups;let o;return e&&e.j?o=e:(o=new Gt(e),n&&r&&ko(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||Gt.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,c=o.go(t);if(c?(s=new Gt,Object.assign(s.j,c.j),s.jr.push.apply(s.jr,c.jr),s.jd=c.jd,s.t=c.t):s=new Gt,i){if(r)if(s.t&&typeof s.t=="string"){const a=Object.assign(Z_(s.t,r),n);ko(i,a,r)}else n&&ko(i,n,r);s.t=i}return o.j[t]=s,s}};const Pe=(t,e,n,r,o)=>t.ta(e,n,r,o),et=(t,e,n,r,o)=>t.tr(e,n,r,o),d2=(t,e,n,r,o)=>t.ts(e,n,r,o),he=(t,e,n,r,o)=>t.tt(e,n,r,o),or="WORD",sf="UWORD",u2="ASCIINUMERICAL",f2="ALPHANUMERICAL",Ns="LOCALHOST",af="TLD",lf="UTLD",El="SCHEME",ai="SLASH_SCHEME",cf="NUM",df="WS",uf="NL",Os="OPENBRACE",Ms="CLOSEBRACE",kl="OPENBRACKET",wl="CLOSEBRACKET",Sl="OPENPAREN",Al="CLOSEPAREN",xl="OPENANGLEBRACKET",Tl="CLOSEANGLEBRACKET",Il="FULLWIDTHLEFTPAREN",_l="FULLWIDTHRIGHTPAREN",Nl="LEFTCORNERBRACKET",Ol="RIGHTCORNERBRACKET",Ml="LEFTWHITECORNERBRACKET",Ll="RIGHTWHITECORNERBRACKET",Dl="FULLWIDTHLESSTHAN",Pl="FULLWIDTHGREATERTHAN",Bl="AMPERSAND",Rl="APOSTROPHE",$l="ASTERISK",Br="AT",Fl="BACKSLASH",zl="BACKTICK",Ul="CARET",Rr="COLON",ff="COMMA",Hl="DOLLAR",Rn="DOT",jl="EQUALS",hf="EXCLAMATION",ln="HYPHEN",Ls="PERCENT",Wl="PIPE",Kl="PLUS",Yl="POUND",Ds="QUERY",pf="QUOTE",h2="FULLWIDTHMIDDLEDOT",mf="SEMI",$n="SLASH",Ps="TILDE",Gl="UNDERSCORE",p2="EMOJI",Ql="SYM";var m2=Object.freeze({__proto__:null,ALPHANUMERICAL:f2,AMPERSAND:Bl,APOSTROPHE:Rl,ASCIINUMERICAL:u2,ASTERISK:$l,AT:Br,BACKSLASH:Fl,BACKTICK:zl,CARET:Ul,CLOSEANGLEBRACKET:Tl,CLOSEBRACE:Ms,CLOSEBRACKET:wl,CLOSEPAREN:Al,COLON:Rr,COMMA:ff,DOLLAR:Hl,DOT:Rn,EMOJI:p2,EQUALS:jl,EXCLAMATION:hf,FULLWIDTHGREATERTHAN:Pl,FULLWIDTHLEFTPAREN:Il,FULLWIDTHLESSTHAN:Dl,FULLWIDTHMIDDLEDOT:h2,FULLWIDTHRIGHTPAREN:_l,HYPHEN:ln,LEFTCORNERBRACKET:Nl,LEFTWHITECORNERBRACKET:Ml,LOCALHOST:Ns,NL:uf,NUM:cf,OPENANGLEBRACKET:xl,OPENBRACE:Os,OPENBRACKET:kl,OPENPAREN:Sl,PERCENT:Ls,PIPE:Wl,PLUS:Kl,POUND:Yl,QUERY:Ds,QUOTE:pf,RIGHTCORNERBRACKET:Ol,RIGHTWHITECORNERBRACKET:Ll,SCHEME:El,SEMI:mf,SLASH:$n,SLASH_SCHEME:ai,SYM:Ql,TILDE:Ps,TLD:af,UNDERSCORE:Gl,UTLD:lf,UWORD:sf,WORD:or,WS:df});const ir=/[a-z]/,Bs=new RegExp("\\p{L}","u"),gf=new RegExp("\\p{Emoji}","u"),sr=/\d/,vf=/\s/,g2="\r",yf=`
|
|
1283
|
-
`,J_="️",X_="",bf="";let Zl=null,Jl=null;function q_(t=[]){const e={};Gt.groups=e;const n=new Gt;Zl==null&&(Zl=y2(W_)),Jl==null&&(Jl=y2(K_)),he(n,"'",Rl),he(n,"{",Os),he(n,"}",Ms),he(n,"[",kl),he(n,"]",wl),he(n,"(",Sl),he(n,")",Al),he(n,"<",xl),he(n,">",Tl),he(n,"(",Il),he(n,")",_l),he(n,"「",Nl),he(n,"」",Ol),he(n,"『",Ml),he(n,"』",Ll),he(n,"<",Dl),he(n,">",Pl),he(n,"&",Bl),he(n,"*",$l),he(n,"@",Br),he(n,"`",zl),he(n,"^",Ul),he(n,":",Rr),he(n,",",ff),he(n,"$",Hl),he(n,".",Rn),he(n,"=",jl),he(n,"!",hf),he(n,"-",ln),he(n,"%",Ls),he(n,"|",Wl),he(n,"+",Kl),he(n,"#",Yl),he(n,"?",Ds),he(n,'"',pf),he(n,"/",$n),he(n,";",mf),he(n,"~",Ps),he(n,"_",Gl),he(n,"\\",Fl),he(n,"・",h2);const r=et(n,sr,cf,{[ef]:!0});et(r,sr,r);const o=et(r,ir,u2,{[Is]:!0}),i=et(r,Bs,f2,{[_s]:!0}),s=et(n,ir,or,{[tf]:!0});et(s,sr,o),et(s,ir,s),et(o,sr,o),et(o,ir,o);const c=et(n,Bs,sf,{[nf]:!0});et(c,ir),et(c,sr,i),et(c,Bs,c),et(i,sr,i),et(i,ir),et(i,Bs,i);const a=he(n,yf,uf,{[of]:!0}),d=he(n,g2,df,{[of]:!0}),u=et(n,vf,df,{[of]:!0});he(n,bf,u),he(d,yf,a),he(d,bf,u),et(d,vf,u),he(u,g2),he(u,yf),et(u,vf,u),he(u,bf,u);const f=et(n,gf,p2,{[c2]:!0});he(f,"#"),et(f,gf,f),he(f,J_,f);const h=he(f,X_);he(h,"#"),et(h,gf,f);const p=[[ir,s],[sr,o]],m=[[ir,null],[Bs,c],[sr,i]];for(let g=0;g<Zl.length;g++)$r(n,Zl[g],af,or,p);for(let g=0;g<Jl.length;g++)$r(n,Jl[g],lf,sf,m);ko(af,{tld:!0,ascii:!0},e),ko(lf,{utld:!0,alpha:!0},e),$r(n,"file",El,or,p),$r(n,"mailto",El,or,p),$r(n,"http",ai,or,p),$r(n,"https",ai,or,p),$r(n,"ftp",ai,or,p),$r(n,"ftps",ai,or,p),ko(El,{scheme:!0,ascii:!0},e),ko(ai,{slashscheme:!0,ascii:!0},e),t=t.sort((g,v)=>g[0]>v[0]?1:-1);for(let g=0;g<t.length;g++){const v=t[g][0],b=t[g][1]?{[Y_]:!0}:{[G_]:!0};v.indexOf("-")>=0?b[rf]=!0:ir.test(v)?sr.test(v)?b[Is]=!0:b[tf]=!0:b[ef]=!0,d2(n,v,v,b)}return d2(n,"localhost",Ns,{ascii:!0}),n.jd=new Gt(Ql),{start:n,tokens:Object.assign({groups:e},m2)}}function v2(t,e){const n=V_(e.replace(/[A-Z]/g,c=>c.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let c=t,a=null,d=0,u=null,f=-1,h=-1;for(;s<r&&(a=c.go(n[s]));)c=a,c.accepts()?(f=0,h=0,u=c):f>=0&&(f+=n[s].length,h++),d+=n[s].length,i+=n[s].length,s++;i-=f,s-=h,d-=f,o.push({t:u.t,v:e.slice(i-d,i),s:i-d,e:i})}return o}function V_(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function $r(t,e,n,r,o){let i;const s=e.length;for(let c=0;c<s-1;c++){const a=e[c];t.j[a]?i=t.j[a]:(i=new Gt(r),i.jr=o.slice(),t.j[a]=i),t=i}return i=new Gt(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function y2(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const Rs={defaultProtocol:"http",events:null,format:b2,formatHref:b2,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Cf(t,e=null){let n=Object.assign({},Rs);t&&(n=Object.assign(n,t instanceof Cf?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}Cf.prototype={o:Rs,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:Rs[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function b2(t){return t}function C2(t,e){this.t="token",this.v=t,this.tk=e}C2.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=Rs.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},c=t.get("className",n,e),a=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,c&&(s.class=c),a&&(s.target=a),d&&(s.rel=d),u&&Object.assign(s,u),{tagName:o,attributes:s,content:i,eventListeners:f}}};function Xl(t,e){class n extends C2{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const E2=Xl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),k2=Xl("text"),eN=Xl("nl"),ql=Xl("url",{isLink:!0,toHref(t=Rs.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ns&&t[1].t===Rr}}),cn=t=>new Gt(t);function tN({groups:t}){const e=t.domain.concat([Bl,$l,Br,Fl,zl,Ul,Hl,jl,ln,cf,Ls,Wl,Kl,Yl,$n,Ql,Ps,Gl]),n=[Rl,Rr,ff,Rn,hf,Ls,Ds,pf,mf,xl,Tl,Os,Ms,wl,kl,Sl,Al,Il,_l,Nl,Ol,Ml,Ll,Dl,Pl],r=[Bl,Rl,$l,Fl,zl,Ul,Hl,jl,ln,Os,Ms,Ls,Wl,Kl,Yl,Ds,$n,Ql,Ps,Gl],o=cn(),i=he(o,Ps);Pe(i,r,i),Pe(i,t.domain,i);const s=cn(),c=cn(),a=cn();Pe(o,t.domain,s),Pe(o,t.scheme,c),Pe(o,t.slashscheme,a),Pe(s,r,i),Pe(s,t.domain,s);const d=he(s,Br);he(i,Br,d),he(c,Br,d),he(a,Br,d);const u=he(i,Rn);Pe(u,r,i),Pe(u,t.domain,i);const f=cn();Pe(d,t.domain,f),Pe(f,t.domain,f);const h=he(f,Rn);Pe(h,t.domain,f);const p=cn(E2);Pe(h,t.tld,p),Pe(h,t.utld,p),he(d,Ns,p);const m=he(f,ln);he(m,ln,m),Pe(m,t.domain,f),Pe(p,t.domain,f),he(p,Rn,h),he(p,ln,m);const g=he(p,Rr);Pe(g,t.numeric,E2);const v=he(s,ln),y=he(s,Rn);he(v,ln,v),Pe(v,t.domain,s),Pe(y,r,i),Pe(y,t.domain,s);const b=cn(ql);Pe(y,t.tld,b),Pe(y,t.utld,b),Pe(b,t.domain,s),Pe(b,r,i),he(b,Rn,y),he(b,ln,v),he(b,Br,d);const E=he(b,Rr),C=cn(ql);Pe(E,t.numeric,C);const w=cn(ql),I=cn();Pe(w,e,w),Pe(w,n,I),Pe(I,e,w),Pe(I,n,I),he(b,$n,w),he(C,$n,w);const A=he(c,Rr),O=he(a,Rr),
|
|
1283
|
+
`,J_="️",X_="",bf="";let Zl=null,Jl=null;function q_(t=[]){const e={};Gt.groups=e;const n=new Gt;Zl==null&&(Zl=y2(W_)),Jl==null&&(Jl=y2(K_)),he(n,"'",Rl),he(n,"{",Os),he(n,"}",Ms),he(n,"[",kl),he(n,"]",wl),he(n,"(",Sl),he(n,")",Al),he(n,"<",xl),he(n,">",Tl),he(n,"(",Il),he(n,")",_l),he(n,"「",Nl),he(n,"」",Ol),he(n,"『",Ml),he(n,"』",Ll),he(n,"<",Dl),he(n,">",Pl),he(n,"&",Bl),he(n,"*",$l),he(n,"@",Br),he(n,"`",zl),he(n,"^",Ul),he(n,":",Rr),he(n,",",ff),he(n,"$",Hl),he(n,".",Rn),he(n,"=",jl),he(n,"!",hf),he(n,"-",ln),he(n,"%",Ls),he(n,"|",Wl),he(n,"+",Kl),he(n,"#",Yl),he(n,"?",Ds),he(n,'"',pf),he(n,"/",$n),he(n,";",mf),he(n,"~",Ps),he(n,"_",Gl),he(n,"\\",Fl),he(n,"・",h2);const r=et(n,sr,cf,{[ef]:!0});et(r,sr,r);const o=et(r,ir,u2,{[Is]:!0}),i=et(r,Bs,f2,{[_s]:!0}),s=et(n,ir,or,{[tf]:!0});et(s,sr,o),et(s,ir,s),et(o,sr,o),et(o,ir,o);const c=et(n,Bs,sf,{[nf]:!0});et(c,ir),et(c,sr,i),et(c,Bs,c),et(i,sr,i),et(i,ir),et(i,Bs,i);const a=he(n,yf,uf,{[of]:!0}),d=he(n,g2,df,{[of]:!0}),u=et(n,vf,df,{[of]:!0});he(n,bf,u),he(d,yf,a),he(d,bf,u),et(d,vf,u),he(u,g2),he(u,yf),et(u,vf,u),he(u,bf,u);const f=et(n,gf,p2,{[c2]:!0});he(f,"#"),et(f,gf,f),he(f,J_,f);const h=he(f,X_);he(h,"#"),et(h,gf,f);const p=[[ir,s],[sr,o]],m=[[ir,null],[Bs,c],[sr,i]];for(let g=0;g<Zl.length;g++)$r(n,Zl[g],af,or,p);for(let g=0;g<Jl.length;g++)$r(n,Jl[g],lf,sf,m);ko(af,{tld:!0,ascii:!0},e),ko(lf,{utld:!0,alpha:!0},e),$r(n,"file",El,or,p),$r(n,"mailto",El,or,p),$r(n,"http",ai,or,p),$r(n,"https",ai,or,p),$r(n,"ftp",ai,or,p),$r(n,"ftps",ai,or,p),ko(El,{scheme:!0,ascii:!0},e),ko(ai,{slashscheme:!0,ascii:!0},e),t=t.sort((g,v)=>g[0]>v[0]?1:-1);for(let g=0;g<t.length;g++){const v=t[g][0],b=t[g][1]?{[Y_]:!0}:{[G_]:!0};v.indexOf("-")>=0?b[rf]=!0:ir.test(v)?sr.test(v)?b[Is]=!0:b[tf]=!0:b[ef]=!0,d2(n,v,v,b)}return d2(n,"localhost",Ns,{ascii:!0}),n.jd=new Gt(Ql),{start:n,tokens:Object.assign({groups:e},m2)}}function v2(t,e){const n=V_(e.replace(/[A-Z]/g,c=>c.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let c=t,a=null,d=0,u=null,f=-1,h=-1;for(;s<r&&(a=c.go(n[s]));)c=a,c.accepts()?(f=0,h=0,u=c):f>=0&&(f+=n[s].length,h++),d+=n[s].length,i+=n[s].length,s++;i-=f,s-=h,d-=f,o.push({t:u.t,v:e.slice(i-d,i),s:i-d,e:i})}return o}function V_(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function $r(t,e,n,r,o){let i;const s=e.length;for(let c=0;c<s-1;c++){const a=e[c];t.j[a]?i=t.j[a]:(i=new Gt(r),i.jr=o.slice(),t.j[a]=i),t=i}return i=new Gt(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function y2(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const Rs={defaultProtocol:"http",events:null,format:b2,formatHref:b2,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Cf(t,e=null){let n=Object.assign({},Rs);t&&(n=Object.assign(n,t instanceof Cf?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}Cf.prototype={o:Rs,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:Rs[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function b2(t){return t}function C2(t,e){this.t="token",this.v=t,this.tk=e}C2.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=Rs.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},c=t.get("className",n,e),a=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,c&&(s.class=c),a&&(s.target=a),d&&(s.rel=d),u&&Object.assign(s,u),{tagName:o,attributes:s,content:i,eventListeners:f}}};function Xl(t,e){class n extends C2{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const E2=Xl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),k2=Xl("text"),eN=Xl("nl"),ql=Xl("url",{isLink:!0,toHref(t=Rs.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ns&&t[1].t===Rr}}),cn=t=>new Gt(t);function tN({groups:t}){const e=t.domain.concat([Bl,$l,Br,Fl,zl,Ul,Hl,jl,ln,cf,Ls,Wl,Kl,Yl,$n,Ql,Ps,Gl]),n=[Rl,Rr,ff,Rn,hf,Ls,Ds,pf,mf,xl,Tl,Os,Ms,wl,kl,Sl,Al,Il,_l,Nl,Ol,Ml,Ll,Dl,Pl],r=[Bl,Rl,$l,Fl,zl,Ul,Hl,jl,ln,Os,Ms,Ls,Wl,Kl,Yl,Ds,$n,Ql,Ps,Gl],o=cn(),i=he(o,Ps);Pe(i,r,i),Pe(i,t.domain,i);const s=cn(),c=cn(),a=cn();Pe(o,t.domain,s),Pe(o,t.scheme,c),Pe(o,t.slashscheme,a),Pe(s,r,i),Pe(s,t.domain,s);const d=he(s,Br);he(i,Br,d),he(c,Br,d),he(a,Br,d);const u=he(i,Rn);Pe(u,r,i),Pe(u,t.domain,i);const f=cn();Pe(d,t.domain,f),Pe(f,t.domain,f);const h=he(f,Rn);Pe(h,t.domain,f);const p=cn(E2);Pe(h,t.tld,p),Pe(h,t.utld,p),he(d,Ns,p);const m=he(f,ln);he(m,ln,m),Pe(m,t.domain,f),Pe(p,t.domain,f),he(p,Rn,h),he(p,ln,m);const g=he(p,Rr);Pe(g,t.numeric,E2);const v=he(s,ln),y=he(s,Rn);he(v,ln,v),Pe(v,t.domain,s),Pe(y,r,i),Pe(y,t.domain,s);const b=cn(ql);Pe(y,t.tld,b),Pe(y,t.utld,b),Pe(b,t.domain,s),Pe(b,r,i),he(b,Rn,y),he(b,ln,v),he(b,Br,d);const E=he(b,Rr),C=cn(ql);Pe(E,t.numeric,C);const w=cn(ql),I=cn();Pe(w,e,w),Pe(w,n,I),Pe(I,e,w),Pe(I,n,I),he(b,$n,w),he(C,$n,w);const A=he(c,Rr),O=he(a,Rr),K=he(O,$n),B=he(K,$n);Pe(c,t.domain,s),he(c,Rn,y),he(c,ln,v),Pe(a,t.domain,s),he(a,Rn,y),he(a,ln,v),Pe(A,t.domain,w),he(A,$n,w),he(A,Ds,w),Pe(B,t.domain,w),Pe(B,e,w),he(B,$n,w);const F=[[Os,Ms],[kl,wl],[Sl,Al],[xl,Tl],[Il,_l],[Nl,Ol],[Ml,Ll],[Dl,Pl]];for(let H=0;H<F.length;H++){const[Z,W]=F[H],j=he(w,Z);he(I,Z,j),he(j,W,w);const N=cn(ql);Pe(j,e,N);const J=cn();Pe(j,n),Pe(N,e,N),Pe(N,n,J),Pe(J,e,N),Pe(J,n,J),he(N,W,w),he(J,W,w)}return he(o,Ns,b),he(o,uf,eN),{start:o,tokens:m2}}function nN(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let c=t,a=null,d=null,u=0,f=null,h=-1;for(;o<r&&!(a=c.go(n[o].t));)s.push(n[o++]);for(;o<r&&(d=a||c.go(n[o].t));)a=null,c=d,c.accepts()?(h=0,f=c):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(Ef(k2,e,s)),s=[]),o-=h,u-=h;const p=f.t,m=n.slice(o-u,o);i.push(Ef(p,e,m))}}return s.length>0&&i.push(Ef(k2,e,s)),i}function Ef(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const rN=typeof console<"u"&&console&&console.warn||(()=>{}),oN="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Ze={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function iN(){return Gt.groups={},Ze.scanner=null,Ze.parser=null,Ze.tokenQueue=[],Ze.pluginQueue=[],Ze.customSchemes=[],Ze.initialized=!1,Ze}function w2(t,e=!1){if(Ze.initialized&&rN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${oN}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
|
|
1284
1284
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
1285
1285
|
2. Cannot start or end with "-"
|
|
1286
1286
|
3. "-" cannot repeat`);Ze.customSchemes.push([t,e])}function sN(){Ze.scanner=q_(Ze.customSchemes);for(let t=0;t<Ze.tokenQueue.length;t++)Ze.tokenQueue[t][1]({scanner:Ze.scanner});Ze.parser=tN(Ze.scanner.tokens);for(let t=0;t<Ze.pluginQueue.length;t++)Ze.pluginQueue[t][1]({scanner:Ze.scanner,parser:Ze.parser});return Ze.initialized=!0,Ze}function kf(t){return Ze.initialized||sN(),nN(Ze.parser.start,t,v2(Ze.scanner.start,t))}kf.scan=v2;function S2(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new Cf(n),o=kf(t),i=[];for(let s=0;s<o.length;s++){const c=o[s];c.isLink&&(!e||c.t===e)&&r.check(c)&&i.push(c.toFormattedObject(r))}return i}var wf="[\0- -\u2029 ]",aN=new RegExp(wf),lN=new RegExp(`${wf}$`),cN=new RegExp(wf,"g");function dN(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function uN(t){return new Ve({key:new dt("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(d=>d.docChanged)&&!n.doc.eq(r.doc),i=e.some(d=>d.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,c=Ov(n.doc,[...e]);if(Hv(c).forEach(({newRange:d})=>{const u=AI(r.doc,d,p=>p.isTextblock);let f,h;if(u.length>1)f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ");else if(u.length){const p=r.doc.textBetween(d.from,d.to," "," ");if(!lN.test(p))return;f=u[0],h=r.doc.textBetween(f.pos,d.to,void 0," ")}if(f&&h){const p=h.split(aN).filter(Boolean);if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;const v=kf(m).map(y=>y.toObject(t.defaultProtocol));if(!dN(v))return!1;v.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{Ku(y.from,y.to,r.doc).some(b=>b.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function fN(t){return new Ve({key:new dt("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{const a=r.target;if(!a)return!1;const d=t.editor.view.dom;s=a.closest("a"),s&&!d.contains(s)&&(s=null)}if(!s)return!1;let c=!1;if(t.enableClickSelection&&(c=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){const a=Uv(e.state,t.type.name),d=(o=s.href)!=null?o:a.href,u=(i=s.target)!=null?i:a.target;d&&(window.open(d,u),c=!0)}return c}}})}function hN(t){return new Ve({key:new dt("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{shouldAutoLink:o}=t,{state:i}=e,{selection:s}=i,{empty:c}=s;if(c)return!1;let a="";r.content.forEach(u=>{a+=u.textContent});const d=S2(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!d||o!==void 0&&!o(d.value)?!1:t.editor.commands.setMark(t.type,{href:d.href})}}})}function wo(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(cN,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var pN=As.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){w2(t);return}w2(t.scheme,t.optionalSlashes)})},onDestroy(){iN()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!wo(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>{const e=/^[a-z][a-z0-9+.-]*:\/\//i.test(t),n=/^[a-z][a-z0-9+.-]*:/i.test(t);if(e||n&&!t.includes("@"))return!0;const o=(t.includes("@")?t.split("@").pop():t).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(o)||!/\./.test(o))}}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!wo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!wo(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ct(this.options.HTMLAttributes,t),0]:["a",Ct(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n,r,o,i;const s=(r=(n=t.attrs)==null?void 0:n.href)!=null?r:"",c=(i=(o=t.attrs)==null?void 0:o.title)!=null?i:"",a=e.renderChildren(t);return c?`[${a}](${s} "${c}")`:`[${a}](${s})`},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!wo(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:r=>!!wo(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Ts({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,o=S2(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!wo(s,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(i=>{this.options.shouldAutoLink(i.value)&&e.push({text:i.value,data:{href:i.href},index:i.start})})}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(uN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:o=>!!wo(o,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),t.push(fN({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(hN({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),t}}),mN=pN;const gN=mN.extend({addAttributes(){return{...this.parent?.(),title:{default:null,parseHTML:t=>t.getAttribute("title"),renderHTML:t=>({title:t.title})}}}});function vN(t={}){return new Ve({view(e){return new yN(e,t)}})}class yN{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let c=e.nodeBefore,a=e.nodeAfter;if(c||a){let d=this.editorView.nodeDOM(this.cursorPos-(c?c.nodeSize:0));if(d){let u=d.getBoundingClientRect(),f=c?u.bottom:u.top;c&&a&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let c=this.editorView.coordsAtPos(this.cursorPos);r={left:c.left-this.width/2,right:c.left+this.width/2,top:c.top,bottom:c.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,s;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,s=-pageYOffset;else{let c=o.getBoundingClientRect();i=c.left-o.scrollLeft,s=c.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let c=L0(this.editorView.state.doc,s,this.editorView.dragging.slice);c!=null&&(s=c)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}class tt extends Be{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return tt.valid(r)?new tt(r):Be.near(r)}content(){return be.empty}eq(e){return e instanceof tt&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new tt(e.resolve(n.pos))}getBookmark(){return new Sf(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!bN(e)||!CN(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&tt.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let c=e.node(s);if(n>0?e.indexAfter(s)<c.childCount:e.index(s)>0){i=c.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let a=e.doc.resolve(o);if(tt.valid(a))return a}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!Te.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let c=e.doc.resolve(o);if(tt.valid(c))return c}return null}}}tt.prototype.visible=!1,tt.findFrom=tt.findGapCursorFrom,Be.jsonID("gapcursor",tt);class Sf{constructor(e){this.pos=e}map(e){return new Sf(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return tt.valid(n)?new tt(n):Be.near(n)}}function bN(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function CN(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function EN(){return new Ve({props:{decorations:AN,createSelectionBetween(t,e,n){return e.pos==n.pos&&tt.valid(n)?new tt(n):null},handleClick:wN,handleKeyDown:kN,handleDOMEvents:{beforeinput:SN}}})}const kN=Cv({ArrowLeft:Vl("horiz",-1),ArrowRight:Vl("horiz",1),ArrowUp:Vl("vert",-1),ArrowDown:Vl("vert",1)});function Vl(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,c=e>0?s.$to:s.$from,a=s.empty;if(s instanceof Le){if(!i.endOfTextblock(n)||c.depth==0)return!1;a=!1,c=r.doc.resolve(e>0?c.after():c.before())}let d=tt.findGapCursorFrom(c,e,a);return d?(o&&o(r.tr.setSelection(new tt(d))),!0):!1}}function wN(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!tt.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Te.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new tt(r))),!0)}function SN(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof tt))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=ce.empty;for(let s=r.length-1;s>=0;s--)o=ce.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new be(o,0,0));return i.setSelection(Le.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function AN(t){if(!(t.selection instanceof tt))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Xe.create(t.doc,[Dt.widget(t.selection.head,e,{key:"gapcursor"})])}var ec=200,Et=function(){};Et.prototype.append=function(e){return e.length?(e=Et.from(e),!this.length&&e||e.length<ec&&this.leafAppend(e)||this.length<ec&&e.leafPrepend(this)||this.appendInner(e)):this},Et.prototype.prepend=function(e){return e.length?Et.from(e).append(this):this},Et.prototype.appendInner=function(e){return new xN(this,e)},Et.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Et.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Et.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Et.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},Et.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o},Et.from=function(e){return e instanceof Et?e:e&&e.length?new A2(e):Et.empty};var A2=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,c){for(var a=i;a<s;a++)if(o(this.values[a],c+a)===!1)return!1},e.prototype.forEachInvertedInner=function(o,i,s,c){for(var a=i-1;a>=s;a--)if(o(this.values[a],c+a)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=ec)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=ec)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Et);Et.empty=new A2([]);var xN=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,i,s){var c=this.left.length;if(o<c&&this.left.forEachInner(r,o,Math.min(i,c),s)===!1||i>c&&this.right.forEachInner(r,Math.max(o-c,0),Math.min(this.length,i)-c,s+c)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var c=this.left.length;if(o>c&&this.right.forEachInvertedInner(r,o-c,Math.max(i,c)-c,s+c)===!1||i<c&&this.left.forEachInvertedInner(r,Math.min(o,c),i,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var i=this.left.length;return o<=i?this.left.slice(r,o):r>=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(Et);const TN=500;class Sn{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,c,a,d=[],u=[];return this.items.forEach((f,h)=>{if(!f.step){o||(o=this.remapping(r,h+1),i=o.maps.length),i--,u.push(f);return}if(o){u.push(new Fn(f.map));let p=f.step.map(o.slice(i)),m;p&&s.maybeStep(p).doc&&(m=s.mapping.maps[s.mapping.maps.length-1],d.push(new Fn(m,void 0,void 0,d.length+u.length))),i--,m&&o.appendMap(m,i)}else s.maybeStep(f.step);if(f.selection)return c=o?f.selection.map(o.slice(i)):f.selection,a=new Sn(this.items.slice(0,r).append(u.reverse().concat(d)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:s,selection:c}}addTransform(e,n,r,o){let i=[],s=this.eventCount,c=this.items,a=!o&&c.length?c.get(c.length-1):null;for(let u=0;u<e.steps.length;u++){let f=e.steps[u].invert(e.docs[u]),h=new Fn(e.mapping.maps[u],f,n),p;(p=a&&a.merge(h))&&(h=p,u?i.pop():c=c.slice(0,c.length-1)),i.push(h),n&&(s++,n=void 0),o||(a=h)}let d=s-r.depth;return d>_N&&(c=IN(c,d),s-=d),new Sn(c.append(i),s)}remapping(e,n){let r=new as;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new Sn(this.items.append(e.map(n=>new Fn(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,c=this.eventCount;this.items.forEach(h=>{h.selection&&c--},o);let a=n;this.items.forEach(h=>{let p=i.getMirror(--a);if(p==null)return;s=Math.min(s,p);let m=i.maps[p];if(h.step){let g=e.steps[p].invert(e.docs[p]),v=h.selection&&h.selection.map(i.slice(a+1,p));v&&c++,r.push(new Fn(m,g,v))}else r.push(new Fn(m))},o);let d=[];for(let h=n;h<s;h++)d.push(new Fn(i.maps[h]));let u=this.items.slice(0,o).append(d).append(r),f=new Sn(u,c);return f.emptyItemCount()>TN&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,c)=>{if(c>=e)o.push(s),s.selection&&i++;else if(s.step){let a=s.step.map(n.slice(r)),d=a&&a.getMap();if(r--,d&&n.appendMap(d,r),a){let u=s.selection&&s.selection.map(n.slice(r));u&&i++;let f=new Fn(d.invert(),a,u),h,p=o.length-1;(h=o.length&&o[p].merge(f))?o[p]=h:o.push(f)}}else s.map&&r--},this.items.length,0),new Sn(Et.from(o.reverse()),i)}}Sn.empty=new Sn(Et.empty,0);function IN(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class Fn{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Fn(n.getMap().invert(),n,this.selection)}}}class Fr{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const _N=20;function NN(t,e,n,r){let o=n.getMeta(So),i;if(o)return o.historyState;n.getMeta(LN)&&(t=new Fr(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(So))return s.getMeta(So).redo?new Fr(t.done.addTransform(n,void 0,r,tc(e)),t.undone,x2(n.mapping.maps),t.prevTime,t.prevComposition):new Fr(t.done,t.undone.addTransform(n,void 0,r,tc(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let c=n.getMeta("composition"),a=t.prevTime==0||!s&&t.prevComposition!=c&&(t.prevTime<(n.time||0)-r.newGroupDelay||!ON(n,t.prevRanges)),d=s?Af(t.prevRanges,n.mapping):x2(n.mapping.maps);return new Fr(t.done.addTransform(n,a?e.selection.getBookmark():void 0,r,tc(e)),Sn.empty,d,n.time,c??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Fr(t.done.rebased(n,i),t.undone.rebased(n,i),Af(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Fr(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Af(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function ON(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&o>=e[i]&&(n=!0)}),n}function x2(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,o,i,s)=>e.push(i,s));return e}function Af(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function MN(t,e,n){let r=tc(e),o=So.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),c=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),o,r),a=new Fr(n?c:i.remaining,n?i.remaining:c,null,0,-1);return i.transform.setSelection(s).setMeta(So,{redo:n,historyState:a})}let xf=!1,T2=null;function tc(t){let e=t.plugins;if(T2!=e){xf=!1,T2=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){xf=!0;break}}return xf}const So=new dt("history"),LN=new dt("closeHistory");function DN(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Ve({key:So,state:{init(){return new Fr(Sn.empty,Sn.empty,null,0,-1)},apply(e,n,r){return NN(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?_2:r=="historyRedo"?N2:null;return!o||!e.editable?!1:(n.preventDefault(),o(e.state,e.dispatch))}}}})}function I2(t,e){return(n,r)=>{let o=So.getState(n);if(!o||(t?o.undone:o.done).eventCount==0)return!1;if(r){let i=MN(o,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const _2=I2(!1,!0),N2=I2(!0,!0);ft.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new Ve({key:new dt("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const o=this.options.limit;if(o==null||o===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>o){const s=i-o,c=0,a=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`);const d=r.tr.deleteRange(c,a);return t=!0,d}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const o=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||o>r&&i>r&&i<=o)return!0;if(o>r&&i>r&&i>o||!e.getMeta("paste"))return!1;const c=e.selection.$head.pos,a=i-r,d=c-a,u=c;return e.deleteRange(d,u),!(this.storage.characters({node:e.doc})>r)}})]}}),ft.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[vN(this.options)]}}),ft.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Ve({key:new dt("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:o}=e,i=[];if(!n||!r)return Xe.create(t,[]);let s=0;this.options.mode==="deepest"&&t.descendants((a,d)=>{if(a.isText)return;if(!(o>=d&&o<=d+a.nodeSize-1))return!1;s+=1});let c=0;return t.descendants((a,d)=>{if(a.isText||!(o>=d&&o<=d+a.nodeSize-1))return!1;if(c+=1,this.options.mode==="deepest"&&s-c>0||this.options.mode==="shallowest"&&c>1)return this.options.mode==="deepest";i.push(Dt.node(d,d+a.nodeSize,{class:this.options.className}))}),Xe.create(t,i)}}})]}}),ft.create({name:"gapCursor",addProseMirrorPlugins(){return[EN()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Ge(we(t,"allowGapCursor",n)))!=null?e:null}}});var O2="placeholder";function PN(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var BN=ft.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:O2,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${PN(this.options.dataAttribute)}`:`data-${O2}`;return[new Ve({key:new dt("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=n,i=[];if(!r)return null;const s=this.editor.isEmpty;return e.descendants((c,a)=>{const d=o>=a&&o<=a+c.nodeSize,u=!c.isLeaf&&ml(c);if((d||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=Dt.node(a,a+c.nodeSize,{class:f.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:c,pos:a,hasAnchor:d}):this.options.placeholder});i.push(h)}return this.options.includeChildren}),Xe.create(e,i)}}})]}});ft.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new Ve({key:new dt("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||UI(n.selection)||t.view.dragging?null:Xe.create(n.doc,[Dt.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function M2({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}ft.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new dt(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,o])=>o).filter(o=>(this.options.notAfter||[]).concat(n).includes(o.name));return[new Ve({key:e,appendTransaction:(o,i,s)=>{const{doc:c,tr:a,schema:d}=s,u=e.getState(s),f=c.content.size,h=d.nodes[n];if(u)return a.insert(f,h.create())},state:{init:(o,i)=>{const s=i.tr.doc.lastChild;return!M2({node:s,types:r})},apply:(o,i)=>{if(!o.docChanged||o.getMeta("__uniqueIDTransaction"))return i;const s=o.doc.lastChild;return!M2({node:s,types:r})}}})]}}),ft.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>_2(t,e),redo:()=>({state:t,dispatch:e})=>N2(t,e)}},addProseMirrorPlugins(){return[DN(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});var RN=BN,L2=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...r}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,r,n]},$N=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,FN=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,zN=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,UN=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,HN=As.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return L2("strong",{...Ct(this.options.HTMLAttributes,t),children:L2("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Cl({find:$N,type:this.type}),Cl({find:zN,type:this.type})]},addPasteRules(){return[Ts({find:FN,type:this.type}),Ts({find:UN,type:this.type})]}}),jN=HN,WN=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,KN=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,YN=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,GN=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,QN=As.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`*${e.renderChildren(t)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Cl({find:WN,type:this.type}),Cl({find:YN,type:this.type})]},addPasteRules(){return[Ts({find:KN,type:this.type}),Ts({find:GN,type:this.type})]}}),ZN=QN,JN=As.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Ct(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const o=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!o)return;const i=o[2].trim();return{type:"underline",raw:o[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),XN=JN,qN=Object.defineProperty,VN=(t,e)=>{for(var n in e)qN(t,n,{get:e[n],enumerable:!0})},eO="listItem",D2="textStyle",P2=/^\s*([-+*])\s$/,B2=Bn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Ct(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
@@ -1296,12 +1296,12 @@ ${p.slice(d+2)}`,f+=1;else break}e.push({indent:d,number:parseInt(c,10),content:
|
|
|
1296
1296
|
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(aO,this.editor.getAttributes(K2)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=xs({find:Y2,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=xs({find:Y2,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(K2)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),lO=/^\s*(\[([( |x])?\])\s$/,cO=Bn.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Ct(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const o=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return Vu(t,e,o)},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const o=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),c=document.createElement("input"),a=document.createElement("div"),d=f=>{var h,p;c.ariaLabel=((p=(h=this.options.a11y)==null?void 0:h.checkboxLabel)==null?void 0:p.call(h,f,c.checked))||`Task item checkbox for ${f.textContent||"empty task item"}`};d(t),i.contentEditable="false",c.type="checkbox",c.addEventListener("mousedown",f=>f.preventDefault()),c.addEventListener("change",f=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){c.checked=!c.checked;return}const{checked:h}=f.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:p})=>{const m=n();if(typeof m!="number")return!1;const g=p.doc.nodeAt(m);return p.setNodeMarkup(m,void 0,{...g?.attrs,checked:h}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,h)||(c.checked=!c.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,h])=>{o.setAttribute(f,h)}),o.dataset.checked=t.attrs.checked,c.checked=t.attrs.checked,i.append(c,s),o.append(i,a),Object.entries(e).forEach(([f,h])=>{o.setAttribute(f,h)});let u=new Set(Object.keys(e));return{dom:o,contentDOM:a,update:f=>{if(f.type!==this.type)return!1;o.dataset.checked=f.attrs.checked,c.checked=f.attrs.checked,d(f);const h=r.extensionManager.attributes,p=ks(f,h),m=new Set(Object.keys(p)),g=this.options.HTMLAttributes;return u.forEach(v=>{m.has(v)||(v in g?o.setAttribute(v,g[v]):o.removeAttribute(v))}),Object.entries(p).forEach(([v,y])=>{y==null?v in g?o.setAttribute(v,g[v]):o.removeAttribute(v):o.setAttribute(v,y)}),u=m,!0}}}},addInputRules(){return[xs({find:lO,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),dO=Bn.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Ct(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
1297
1297
|
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const s=qu(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:c=>({indentLevel:c[1].length,mainContent:c[4],checked:c[3].toLowerCase()==="x"}),createToken:(c,a)=>({type:"taskItem",raw:"",mainContent:c.mainContent,indentLevel:c.indentLevel,checked:c.checked,text:c.mainContent,tokens:n.inlineTokens(c.mainContent),nestedTokens:a}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(i)},o=qu(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});ft.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(B2.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(R2.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(rO.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(G2.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(cO.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(dO.configure(this.options.taskList)),t}});var uO=R2,fO=B2,hO=G2,pO=Bn.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Ct(this.options.HTMLAttributes,t)]},renderText(){return`
|
|
1298
1298
|
`},renderMarkdown:()=>`
|
|
1299
|
-
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:c}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:d,dispatch:u})=>{if(u&&a&&s){const f=a.filter(h=>c.includes(h.type.name));d.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),mO=pO;function gO(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:c}=t,a=r&&!o,d=x_(n),u=new RegExp(`\\s${d}$`),f=s?"^":"",h=o?"":d,p=a?new RegExp(`${f}${d}.*?(?=\\s${h}|$)`,"gm"):new RegExp(`${f}(?:^)?${d}[^\\s${h}]*`,"gm"),m=((e=c.nodeBefore)==null?void 0:e.isText)&&c.nodeBefore.text;if(!m)return null;const g=c.pos-m.length,v=Array.from(m.matchAll(p)).pop();if(!v||v.input===void 0||v.index===void 0)return null;const y=v.input.slice(Math.max(0,v.index-1),v.index),b=new RegExp(`^[${i?.join("")}\0]?$`).test(y);if(i!==null&&!b)return null;const E=g+v.index;let C=E+v[0].length;return a&&u.test(m.slice(C-1,C+1))&&(v[0]+=" ",C+=1),E<c.pos&&C>=c.pos?{range:{from:E,to:C},query:v[0].slice(n.length),text:v[0]}:null}var vO=new dt("suggestion");function yO({pluginKey:t=vO,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:o=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:c="span",decorationClass:a="suggestion",decorationContent:d="",decorationEmptyClass:u="is-empty",command:f=()=>null,items:h=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:g=gO,shouldShow:v}){let y;const b=p?.(),E=()=>{const A=e.state.selection.$anchor.pos,O=e.view.coordsAtPos(A),{top:W,right:$,bottom:z,left:j}=O;try{return new DOMRect(j,W,$-j,z-W)}catch{return null}},C=(A,O)=>O?()=>{const W=t.getState(e.state),$=W?.decorationId,z=A.dom.querySelector(`[data-decoration-id="${$}"]`);return z?.getBoundingClientRect()||null}:E;function w(A,O){var W;try{const z=t.getState(A.state),j=z?.decorationId?A.dom.querySelector(`[data-decoration-id="${z.decorationId}"]`):null,Z={editor:e,range:z?.range||{from:0,to:0},query:z?.query||null,text:z?.text||null,items:[],command:K=>f({editor:e,range:z?.range||{from:0,to:0},props:K}),decorationNode:j,clientRect:C(A,j)};(W=b?.onExit)==null||W.call(b,Z)}catch{}const $=A.state.tr.setMeta(O,{exit:!0});A.dispatch($)}const I=new Ve({key:t,view(){return{update:async(A,O)=>{var W,$,z,j,Z,K,P;const N=(W=this.key)==null?void 0:W.getState(O),J=($=this.key)==null?void 0:$.getState(A.state),U=N.active&&J.active&&N.range.from!==J.range.from,V=!N.active&&J.active,te=N.active&&!J.active,ae=!V&&!te&&N.query!==J.query,pe=V||U&&ae,me=ae||U,ye=te||U&&ae;if(!pe&&!me&&!ye)return;const Ce=ye&&!pe?N:J,Se=A.dom.querySelector(`[data-decoration-id="${Ce.decorationId}"]`);y={editor:e,range:Ce.range,query:Ce.query,text:Ce.text,items:[],command:ve=>f({editor:e,range:Ce.range,props:ve}),decorationNode:Se,clientRect:C(A,Se)},pe&&((z=b?.onBeforeStart)==null||z.call(b,y)),me&&((j=b?.onBeforeUpdate)==null||j.call(b,y)),(me||pe)&&(y.items=await h({editor:e,query:Ce.query})),ye&&((Z=b?.onExit)==null||Z.call(b,y)),me&&((K=b?.onUpdate)==null||K.call(b,y)),pe&&((P=b?.onStart)==null||P.call(b,y))},destroy:()=>{var A;y&&((A=b?.onExit)==null||A.call(b,y))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(A,O,W,$){const{isEditable:z}=e,{composing:j}=e.view,{selection:Z}=A,{empty:K,from:P}=Z,N={...O},J=A.getMeta(t);if(J&&J.exit)return N.active=!1,N.decorationId=null,N.range={from:0,to:0},N.query=null,N.text=null,N;if(N.composing=j,z&&(K||e.view.composing)){(P<O.range.from||P>O.range.to)&&!j&&!O.composing&&(N.active=!1);const U=g({char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:Z.$from}),V=`id_${Math.floor(Math.random()*4294967295)}`;U&&m({editor:e,state:$,range:U.range,isActive:O.active})&&(!v||v({editor:e,range:U.range,query:U.query,text:U.text,transaction:A}))?(N.active=!0,N.decorationId=O.decorationId?O.decorationId:V,N.range=U.range,N.query=U.query,N.text=U.text):N.active=!1}else N.active=!1;return N.active||(N.decorationId=null,N.range={from:0,to:0},N.query=null,N.text=null),N}},props:{handleKeyDown(A,O){var W,$,z,j;const{active:Z,range:K}=I.getState(A.state);if(!Z)return!1;if(O.key==="Escape"||O.key==="Esc"){const N=I.getState(A.state),J=(W=y?.decorationNode)!=null?W:null,U=J??(N?.decorationId?A.dom.querySelector(`[data-decoration-id="${N.decorationId}"]`):null);if((($=b?.onKeyDown)==null?void 0:$.call(b,{view:A,event:O,range:N.range}))||!1)return!0;const te={editor:e,range:N.range,query:N.query,text:N.text,items:[],command:ae=>f({editor:e,range:N.range,props:ae}),decorationNode:U,clientRect:U?()=>U.getBoundingClientRect()||null:null};return(z=b?.onExit)==null||z.call(b,te),w(A,t),!0}return((j=b?.onKeyDown)==null?void 0:j.call(b,{view:A,event:O,range:K}))||!1},decorations(A){const{active:O,range:W,decorationId:$,query:z}=I.getState(A);if(!O)return null;const j=!z?.length,Z=[a];return j&&Z.push(u),Xe.create(A.doc,[Dt.inline(W.from,W.to,{nodeName:c,class:Z.join(" "),"data-decoration-id":$,"data-decoration-content":d})])}}});return I}function bO({editor:t,overrideSuggestionOptions:e,extensionName:n,char:r="@"}){const o=new dt;return{editor:t,char:r,pluginKey:o,command:({editor:i,range:s,props:c})=>{var a,d,u;const f=i.view.state.selection.$to.nodeAfter;(a=f?.text)!=null&&a.startsWith(" ")&&(s.to+=1),i.chain().focus().insertContentAt(s,[{type:n,attrs:{...c,mentionSuggestionChar:r}},{type:"text",text:" "}]).run(),(u=(d=i.view.dom.ownerDocument.defaultView)==null?void 0:d.getSelection())==null||u.collapseToEnd()},allow:({state:i,range:s})=>{const c=i.doc.resolve(s.from),a=i.schema.nodes[n];return!!c.parent.type.contentMatch.matchType(a)},...e}}function Q2(t){return(t.options.suggestions.length?t.options.suggestions:[t.options.suggestion]).map(e=>bO({editor:t.editor,overrideSuggestionOptions:e,extensionName:t.name,char:e.char}))}function Z2(t,e){const n=Q2(t),r=n.find(o=>o.char===e);return r||(n.length?n[0]:null)}var CO=Bn.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:t,suggestion:e}){var n,r;return`${(n=e?.char)!=null?n:"@"}${(r=t.attrs.label)!=null?r:t.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e,suggestion:n}){var r,o;return["span",Ct(this.HTMLAttributes,t.HTMLAttributes),`${(r=n?.char)!=null?r:"@"}${(o=e.attrs.label)!=null?o:e.attrs.id}`]},suggestions:[],suggestion:{}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}},mentionSuggestionChar:{default:"@",parseHTML:t=>t.getAttribute("data-mention-suggestion-char"),renderHTML:t=>({"data-mention-suggestion-char":t.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){const n=Z2(this,t.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",Ct({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t,suggestion:n})];const r={...this.options};r.HTMLAttributes=Ct({"data-type":this.name},this.options.HTMLAttributes,e);const o=this.options.renderHTML({options:r,node:t,suggestion:n});return typeof o=="string"?["span",Ct({"data-type":this.name},this.options.HTMLAttributes,e),o]:o},...s2({nodeName:"mention",name:"@",selfClosing:!0,allowedAttributes:["id","label",{name:"mentionSuggestionChar",skipIfDefault:"@"}],parseAttributes:t=>{const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(t);for(;r!==null;){const[,o,i,s]=r,c=i??s;e[o==="char"?"mentionSuggestionChar":o]=c,r=n.exec(t)}return e},serializeAttributes:t=>Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e==="mentionSuggestionChar"?"char":e}="${n}"`).join(" ")}),renderText({node:t}){const e={options:this.options,node:t,suggestion:Z2(this,t.attrs.mentionSuggestionChar)};return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(e)):this.options.renderText(e)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:o,anchor:i}=r;if(!o)return!1;let s=new Xn,c=0;return e.doc.nodesBetween(i-1,i,(a,d)=>{if(a.type.name===this.name)return n=!0,s=a,c=d,!1}),n&&t.insertText(this.options.deleteTriggerWithBackspace?"":s.attrs.mentionSuggestionChar,c,c+s.nodeSize),n})}},addProseMirrorPlugins(){return Q2(this).map(yO)}}),EO=CO;const kO={class:"dropdown-menu show"},wO=["onClick"],SO={__name:"BDPlaceholderList",props:{items:Array,command:Function},setup(t,{expose:e}){const n=t,r=l.ref(0);l.watch(()=>n.items,()=>{r.value=0});const o=s=>{const c=n.items[s];c&&n.command(c)};return e({onKeyDown:({event:s})=>{var c;return!((c=n.items)===null||c===void 0)&&c.length?s.key==="ArrowUp"?(r.value=(r.value+n.items.length-1)%n.items.length,!0):s.key==="ArrowDown"?(r.value=(r.value+1)%n.items.length,!0):s.key==="Enter"?(o(r.value),!0):!1:!1}}),(s,c)=>(l.openBlock(),l.createElementBlock("div",kO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,(a,d)=>(l.openBlock(),l.createElementBlock("button",{key:d,class:l.normalizeClass(["dropdown-item",{active:d===r.value}]),onClick:u=>o(d)},l.toDisplayString(a.label),11,wO))),128))]))}},AO=(t=[])=>({items:({query:e})=>t.filter(n=>n.label.toLowerCase().includes(e.toLowerCase())),command:({editor:e,range:n,props:r})=>{e.chain().focus().deleteRange(n).insertContent(`{${r.id}}`).run()},render:()=>{let e=null;return{onStart:n=>{e=new B_(SO,{props:n,editor:n.editor}),e.element&&document.body.appendChild(e.element);const r=n.clientRect?.();if(r&&e.element){const o=e.element;o.style.position="absolute",o.style.left=r.left+"px",o.style.top=r.bottom+"px"}},onUpdate(n){if(e){e.updateProps(n);const r=n.clientRect?.();if(r&&e.element){const o=e.element;o.style.left=r.left+"px",o.style.top=r.bottom+"px"}}},onKeyDown(n){return e?.ref?.onKeyDown?.(n)??!1},onExit(){e&&(e.destroy(),e.element?.remove())}}}}),xO={class:"popover bd-link-input-popover show bd-link-input-bottom"},TO={class:"popover-body"},IO={class:"form-label"},_O={key:0,class:"validation-text"},NO={class:"d-flex gap-2 mt-2"},OO=["disabled"],MO=l.defineComponent({__name:"BDLinkInput",props:{previousUrl:{}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=e,o=l.ref(n.previousUrl??""),i=l.computed(()=>{if(!o.value)return!!n.previousUrl;if(o.value===n.previousUrl)return!1;const u=o.value.trim().toLowerCase();return u.startsWith("http://")||u.startsWith("https://")||u.startsWith("www.")}),s=l.computed(()=>o.value&&o.value===n.previousUrl?"De URL is niet gewijzigd":o.value&&!i.value?"De URL moet beginnen met http://, https:// of www.":""),c=l.computed(()=>n.previousUrl?o.value?"Wijzigen":"Verwijderen":"Toevoegen"),a=()=>r("submit",o.value),d=()=>r("cancel");return(u,f)=>(l.openBlock(),l.createElementBlock("div",xO,[f[2]||(f[2]=l.createElementVNode("div",{class:"popover-header"},"Link beheren",-1)),l.createElementVNode("div",TO,[l.createElementVNode("label",IO,[f[1]||(f[1]=l.createTextVNode(" URL: ",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),type:"text",class:"form-control",placeholder:"https://www.example.com"},null,512),[[l.vModelText,o.value]]),s.value?(l.openBlock(),l.createElementBlock("div",_O,l.toDisplayString(s.value),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",NO,[l.createElementVNode("button",{type:"button",class:"btn btn-primary btn-sm",disabled:!i.value,onClick:a},l.toDisplayString(c.value),9,OO),l.createElementVNode("button",{type:"button",class:"btn btn-secondary btn-sm",onClick:d}," Annuleren ")])])]))}}),zr={BASIC:"basic",FULL:"full",FORMAT:"format"},LO={class:"attachment-list"},DO={class:"attachment-link"},PO={key:1,class:"attachment-no-download"},BO=["href"],Fs=l.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(t,{emit:e}){const n=e,r=o=>{n("delete",o)};return(o,i)=>(l.openBlock(),l.createElementBlock("ul",LO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,s=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:s.CorrelationId},[l.createElementVNode("div",DO,[t.showDelete?(l.openBlock(),l.createBlock(Re,{key:0,variant:"remove",onClick:c=>r(s),"aria-label":"verwijder"},{default:l.withCtx(()=>[l.createVNode(l.unref(_i))]),_:1},8,["onClick"])):l.createCommentVNode("",!0),t.noDownload?(l.openBlock(),l.createElementBlock("div",PO,[l.createVNode(l.unref(pr)),l.createTextVNode(" "+l.toDisplayString(s.Naam.trim()),1)])):(l.openBlock(),l.createElementBlock("a",{key:2,href:s.downloadUrl},[l.createVNode(l.unref(pr)),l.createTextVNode(" "+l.toDisplayString(s.Naam.trim()),1)],8,BO))])]))),128))]))}}),RO={class:"attachment-list"},$O={class:"attachment"},FO=["onClick"],zO=["src","alt"],UO=["onClick"],HO=["href"],jO={class:"btn btn-light download-button-image"},WO=["src","alt"],zs=l.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(t,{emit:e}){const n=t,r=e,o=s=>{r("delete",s)},i=(s,c)=>{s.target&&s.target.className==="img-preview"&&r("show",c)};return(s,c)=>(l.openBlock(),l.createElementBlock("ul",RO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,a=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:a.CorrelationId},[l.createElementVNode("div",$O,[t.showDelete?(l.openBlock(),l.createBlock(Re,{key:0,variant:"remove","aria-label":"verwijder",onClick:l.withModifiers(d=>o(a),["prevent"])},{default:l.withCtx(()=>[l.createVNode(l.unref(_i))]),_:1},8,["onClick"])):l.createCommentVNode("",!0),n.noDownload?(l.openBlock(),l.createElementBlock("div",{key:1,onClick:d=>i(d,a)},[l.createElementVNode("img",{src:a.previewUrl,class:"img-preview",alt:a.altName,loading:"lazy"},null,8,zO)],8,FO)):(l.openBlock(),l.createElementBlock("div",{key:2,onClick:d=>i(d,a)},[n.fastDownload?(l.openBlock(),l.createElementBlock("a",{key:0,href:a.downloadUrl,class:"download-link"},[l.createElementVNode("button",jO,[l.createVNode(l.unref(Pc))])],8,HO)):l.createCommentVNode("",!0),l.createElementVNode("img",{src:a.previewUrl,alt:a.altName,class:"img-preview",loading:"lazy"},null,8,WO)],8,UO))])]))),128))]))}}),KO=t=>t?.map(e=>e.CorrelationId),J2=t=>t.Naam.toLowerCase().endsWith(".png")||t.Naam.toLowerCase().endsWith(".jpg")||t.Naam.toLowerCase().endsWith(".jpeg")||t.Naam.toLowerCase().endsWith(".gif"),YO=(t,e)=>e.DownloadUrl?e.DownloadUrl:e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:e.url?e.url:e.Id?`${t}/Portaal/DownloadBerichtBijlage/${e.Id}`:e.FileId?`${t}/Portaal/DownloadStandardMessageAttachment/${e.StandardAttachmentId}/${e.FileId}`:`${t}/Portaal/DownloadBerichtStagingBijlage/${e.CorrelationId}`,X2=(t,e)=>e.ThumbnailUrl?e.ThumbnailUrl:e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:e.url?e.url:e.Id?`${t}/Portaal/DownloadBerichtBijlageThumbnail/${e.Id}`:e.StandardAttachmentId||e.standardAttachmentId?`${t}/Portaal/DownloadStandardMessageAttachmentThumbnail/${e.StandardAttachmentId}/${e.FileId}`:`${t}/Portaal/DownloadBerichtStagingBijlageThumbnail/${e.CorrelationId}`,GO=(t,e)=>e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:null,QO=(t,e)=>e?J2(t):!J2(t),Ao=(t="",e,n)=>e===void 0?void 0:e.filter(o=>QO(o,n)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!=null?o.CorrelationId.toString():"";return{downloadUrl:YO(t,o),previewUrl:X2(t,o),fullImageUrl:GO(t,o),altName:`${o.Naam}`,...o,CorrelationId:i}});var zt="top",qt="bottom",Vt="right",Ut="left",nc="auto",li=[zt,qt,Vt,Ut],xo="start",ci="end",q2="clippingParents",Nf="viewport",di="popper",V2="reference",Of=li.reduce(function(t,e){return t.concat([e+"-"+xo,e+"-"+ci])},[]),Mf=[].concat(li,[nc]).reduce(function(t,e){return t.concat([e,e+"-"+xo,e+"-"+ci])},[]),e5="beforeRead",t5="read",n5="afterRead",r5="beforeMain",o5="main",i5="afterMain",s5="beforeWrite",a5="write",l5="afterWrite",c5=[e5,t5,n5,r5,o5,i5,s5,a5,l5];function zn(t){return t?(t.nodeName||"").toLowerCase():null}function en(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function To(t){var e=en(t).Element;return t instanceof e||t instanceof Element}function dn(t){var e=en(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Lf(t){if(typeof ShadowRoot>"u")return!1;var e=en(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZO(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!dn(i)||!zn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var c=o[s];c===!1?i.removeAttribute(s):i.setAttribute(s,c===!0?"":c)}))})}function JO(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(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),c=s.reduce(function(a,d){return a[d]="",a},{});!dn(o)||!zn(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const d5={name:"applyStyles",enabled:!0,phase:"write",fn:ZO,effect:JO,requires:["computeStyles"]};function Un(t){return t.split("-")[0]}var Io=Math.max,rc=Math.min,ui=Math.round;function Df(){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 u5(){return!/^((?!chrome|android).)*safari/i.test(Df())}function fi(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&dn(t)&&(o=t.offsetWidth>0&&ui(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&ui(r.height)/t.offsetHeight||1);var s=To(t)?en(t):window,c=s.visualViewport,a=!u5()&&n,d=(r.left+(a&&c?c.offsetLeft:0))/o,u=(r.top+(a&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:d+f,bottom:u+h,left:d,x:d,y:u}}function Pf(t){var e=fi(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function f5(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Lf(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ar(t){return en(t).getComputedStyle(t)}function XO(t){return["table","td","th"].indexOf(zn(t))>=0}function Ur(t){return((To(t)?t.ownerDocument:t.document)||window.document).documentElement}function oc(t){return zn(t)==="html"?t:t.assignedSlot||t.parentNode||(Lf(t)?t.host:null)||Ur(t)}function h5(t){return!dn(t)||ar(t).position==="fixed"?null:t.offsetParent}function qO(t){var e=/firefox/i.test(Df()),n=/Trident/i.test(Df());if(n&&dn(t)){var r=ar(t);if(r.position==="fixed")return null}var o=oc(t);for(Lf(o)&&(o=o.host);dn(o)&&["html","body"].indexOf(zn(o))<0;){var i=ar(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Us(t){for(var e=en(t),n=h5(t);n&&XO(n)&&ar(n).position==="static";)n=h5(n);return n&&(zn(n)==="html"||zn(n)==="body"&&ar(n).position==="static")?e:n||qO(t)||e}function Bf(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Hs(t,e,n){return Io(t,rc(e,n))}function VO(t,e,n){var r=Hs(t,e,n);return r>n?n:r}function p5(){return{top:0,right:0,bottom:0,left:0}}function m5(t){return Object.assign({},p5(),t)}function g5(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var eM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,m5(typeof e!="number"?e:g5(e,li))};function tM(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Un(n.placement),a=Bf(c),d=[Ut,Vt].indexOf(c)>=0,u=d?"height":"width";if(!(!i||!s)){var f=eM(o.padding,n),h=Pf(i),p=a==="y"?zt:Ut,m=a==="y"?qt:Vt,g=n.rects.reference[u]+n.rects.reference[a]-s[a]-n.rects.popper[u],v=s[a]-n.rects.reference[a],y=Us(i),b=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,E=g/2-v/2,C=f[p],w=b-h[u]-f[m],I=b/2-h[u]/2+E,A=Hs(C,I,w),O=a;n.modifiersData[r]=(e={},e[O]=A,e.centerOffset=A-I,e)}}function nM(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||f5(e.elements.popper,o)&&(e.elements.arrow=o))}const v5={name:"arrow",enabled:!0,phase:"main",fn:tM,effect:nM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hi(t){return t.split("-")[1]}var rM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oM(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:ui(n*o)/o||0,y:ui(r*o)/o||0}}function y5(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,c=t.position,a=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,g=m===void 0?0:m,v=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),E=Ut,C=zt,w=window;if(d){var I=Us(n),A="clientHeight",O="clientWidth";if(I===en(n)&&(I=Ur(n),ar(I).position!=="static"&&c==="absolute"&&(A="scrollHeight",O="scrollWidth")),I=I,o===zt||(o===Ut||o===Vt)&&i===ci){C=qt;var W=f&&I===w&&w.visualViewport?w.visualViewport.height:I[A];g-=W-r.height,g*=a?1:-1}if(o===Ut||(o===zt||o===qt)&&i===ci){E=Vt;var $=f&&I===w&&w.visualViewport?w.visualViewport.width:I[O];p-=$-r.width,p*=a?1:-1}}var z=Object.assign({position:c},d&&rM),j=u===!0?oM({x:p,y:g},en(n)):{x:p,y:g};if(p=j.x,g=j.y,a){var Z;return Object.assign({},z,(Z={},Z[C]=b?"0":"",Z[E]=y?"0":"",Z.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Z))}return Object.assign({},z,(e={},e[C]=b?g+"px":"",e[E]=y?p+"px":"",e.transform="",e))}function iM(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,c=n.roundOffsets,a=c===void 0?!0:c,d={placement:Un(e.placement),variation:hi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,y5(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,y5(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const b5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iM,data:{}};var ic={passive:!0};function sM(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,c=s===void 0?!0:s,a=en(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,ic)}),c&&a.addEventListener("resize",n.update,ic),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ic)}),c&&a.removeEventListener("resize",n.update,ic)}}const C5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sM,data:{}};var aM={left:"right",right:"left",bottom:"top",top:"bottom"};function sc(t){return t.replace(/left|right|bottom|top/g,function(e){return aM[e]})}var lM={start:"end",end:"start"};function E5(t){return t.replace(/start|end/g,function(e){return lM[e]})}function Rf(t){var e=en(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function $f(t){return fi(Ur(t)).left+Rf(t).scrollLeft}function cM(t,e){var n=en(t),r=Ur(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,c=0,a=0;if(o){i=o.width,s=o.height;var d=u5();(d||!d&&e==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:c+$f(t),y:a}}function dM(t){var e,n=Ur(t),r=Rf(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+$f(t),a=-r.scrollTop;return ar(o||n).direction==="rtl"&&(c+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:a}}function Ff(t){var e=ar(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function k5(t){return["html","body","#document"].indexOf(zn(t))>=0?t.ownerDocument.body:dn(t)&&Ff(t)?t:k5(oc(t))}function js(t,e){var n;e===void 0&&(e=[]);var r=k5(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=en(r),s=o?[i].concat(i.visualViewport||[],Ff(r)?r:[]):r,c=e.concat(s);return o?c:c.concat(js(oc(s)))}function zf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function uM(t,e){var n=fi(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 w5(t,e,n){return e===Nf?zf(cM(t,n)):To(e)?uM(e,n):zf(dM(Ur(t)))}function fM(t){var e=js(oc(t)),n=["absolute","fixed"].indexOf(ar(t).position)>=0,r=n&&dn(t)?Us(t):t;return To(r)?e.filter(function(o){return To(o)&&f5(o,r)&&zn(o)!=="body"}):[]}function hM(t,e,n,r){var o=e==="clippingParents"?fM(t):[].concat(e),i=[].concat(o,[n]),s=i[0],c=i.reduce(function(a,d){var u=w5(t,d,r);return a.top=Io(u.top,a.top),a.right=rc(u.right,a.right),a.bottom=rc(u.bottom,a.bottom),a.left=Io(u.left,a.left),a},w5(t,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function S5(t){var e=t.reference,n=t.element,r=t.placement,o=r?Un(r):null,i=r?hi(r):null,s=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,a;switch(o){case zt:a={x:s,y:e.y-n.height};break;case qt:a={x:s,y:e.y+e.height};break;case Vt:a={x:e.x+e.width,y:c};break;case Ut:a={x:e.x-n.width,y:c};break;default:a={x:e.x,y:e.y}}var d=o?Bf(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case xo:a[d]=a[d]-(e[u]/2-n[u]/2);break;case ci:a[d]=a[d]+(e[u]/2-n[u]/2);break}}return a}function pi(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,c=n.boundary,a=c===void 0?q2:c,d=n.rootBoundary,u=d===void 0?Nf:d,f=n.elementContext,h=f===void 0?di:f,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,v=g===void 0?0:g,y=m5(typeof v!="number"?v:g5(v,li)),b=h===di?V2:di,E=t.rects.popper,C=t.elements[m?b:h],w=hM(To(C)?C:C.contextElement||Ur(t.elements.popper),a,u,s),I=fi(t.elements.reference),A=S5({reference:I,element:E,placement:o}),O=zf(Object.assign({},E,A)),W=h===di?O:I,$={top:w.top-W.top+y.top,bottom:W.bottom-w.bottom+y.bottom,left:w.left-W.left+y.left,right:W.right-w.right+y.right},z=t.modifiersData.offset;if(h===di&&z){var j=z[o];Object.keys($).forEach(function(Z){var K=[Vt,qt].indexOf(Z)>=0?1:-1,P=[zt,qt].indexOf(Z)>=0?"y":"x";$[Z]+=j[P]*K})}return $}function pM(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,c=n.flipVariations,a=n.allowedAutoPlacements,d=a===void 0?Mf:a,u=hi(r),f=u?c?Of:Of.filter(function(m){return hi(m)===u}):li,h=f.filter(function(m){return d.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,g){return m[g]=pi(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[Un(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function mM(t){if(Un(t)===nc)return[];var e=sc(t);return[E5(t),e,E5(e)]}function gM(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!0:s,a=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,v=e.options.placement,y=Un(v),b=y===v,E=a||(b||!m?[sc(v)]:mM(v)),C=[v].concat(E).reduce(function(ye,Ce){return ye.concat(Un(Ce)===nc?pM(e,{placement:Ce,boundary:u,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:g}):Ce)},[]),w=e.rects.reference,I=e.rects.popper,A=new Map,O=!0,W=C[0],$=0;$<C.length;$++){var z=C[$],j=Un(z),Z=hi(z)===xo,K=[zt,qt].indexOf(j)>=0,P=K?"width":"height",N=pi(e,{placement:z,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),J=K?Z?Vt:Ut:Z?qt:zt;w[P]>I[P]&&(J=sc(J));var U=sc(J),V=[];if(i&&V.push(N[j]<=0),c&&V.push(N[J]<=0,N[U]<=0),V.every(function(ye){return ye})){W=z,O=!1;break}A.set(z,V)}if(O)for(var te=m?3:1,ae=function(Ce){var Se=C.find(function(ve){var M=A.get(ve);if(M)return M.slice(0,Ce).every(function(D){return D})});if(Se)return W=Se,"break"},pe=te;pe>0;pe--){var me=ae(pe);if(me==="break")break}e.placement!==W&&(e.modifiersData[r]._skip=!0,e.placement=W,e.reset=!0)}}const A5={name:"flip",enabled:!0,phase:"main",fn:gM,requiresIfExists:["offset"],data:{_skip:!1}};function x5(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function T5(t){return[zt,Vt,qt,Ut].some(function(e){return t[e]>=0})}function vM(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=pi(e,{elementContext:"reference"}),c=pi(e,{altBoundary:!0}),a=x5(s,r),d=x5(c,o,i),u=T5(a),f=T5(d);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const I5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vM};function yM(t,e,n){var r=Un(t),o=[Ut,zt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],c=i[1];return s=s||0,c=(c||0)*o,[Ut,Vt].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function bM(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=Mf.reduce(function(u,f){return u[f]=yM(f,e.rects,i),u},{}),c=s[e.placement],a=c.x,d=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=s}const _5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bM};function CM(t){var e=t.state,n=t.name;e.modifiersData[n]=S5({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const N5={name:"popperOffsets",enabled:!0,phase:"read",fn:CM,data:{}};function EM(t){return t==="x"?"y":"x"}function kM(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!1:s,a=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,g=m===void 0?0:m,v=pi(e,{boundary:a,rootBoundary:d,padding:f,altBoundary:u}),y=Un(e.placement),b=hi(e.placement),E=!b,C=Bf(y),w=EM(C),I=e.modifiersData.popperOffsets,A=e.rects.reference,O=e.rects.popper,W=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,$=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(I){if(i){var Z,K=C==="y"?zt:Ut,P=C==="y"?qt:Vt,N=C==="y"?"height":"width",J=I[C],U=J+v[K],V=J-v[P],te=p?-O[N]/2:0,ae=b===xo?A[N]:O[N],pe=b===xo?-O[N]:-A[N],me=e.elements.arrow,ye=p&&me?Pf(me):{width:0,height:0},Ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:p5(),Se=Ce[K],ve=Ce[P],M=Hs(0,A[N],ye[N]),D=E?A[N]/2-te-M-Se-$.mainAxis:ae-M-Se-$.mainAxis,_=E?-A[N]/2+te+M+ve+$.mainAxis:pe+M+ve+$.mainAxis,L=e.elements.arrow&&Us(e.elements.arrow),k=L?C==="y"?L.clientTop||0:L.clientLeft||0:0,S=(Z=z?.[C])!=null?Z:0,R=J+D-S-k,H=J+_-S,Y=Hs(p?rc(U,R):U,J,p?Io(V,H):V);I[C]=Y,j[C]=Y-J}if(c){var G,x=C==="x"?zt:Ut,T=C==="x"?qt:Vt,F=I[w],Q=w==="y"?"height":"width",q=F+v[x],ne=F-v[T],se=[zt,Ut].indexOf(y)!==-1,X=(G=z?.[w])!=null?G:0,re=se?q:F-A[Q]-O[Q]-X+$.altAxis,Ae=se?F+A[Q]+O[Q]-X-$.altAxis:ne,Ne=p&&se?VO(re,F,Ae):Hs(p?re:q,F,p?Ae:ne);I[w]=Ne,j[w]=Ne-F}e.modifiersData[r]=j}}const O5={name:"preventOverflow",enabled:!0,phase:"main",fn:kM,requiresIfExists:["offset"]};function wM(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function SM(t){return t===en(t)||!dn(t)?Rf(t):wM(t)}function AM(t){var e=t.getBoundingClientRect(),n=ui(e.width)/t.offsetWidth||1,r=ui(e.height)/t.offsetHeight||1;return n!==1||r!==1}function xM(t,e,n){n===void 0&&(n=!1);var r=dn(e),o=dn(e)&&AM(e),i=Ur(e),s=fi(t,o,n),c={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((zn(e)!=="body"||Ff(i))&&(c=SM(e)),dn(e)?(a=fi(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=$f(i))),{x:s.left+c.scrollLeft-a.x,y:s.top+c.scrollTop-a.y,width:s.width,height:s.height}}function TM(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var a=e.get(c);a&&o(a)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function IM(t){var e=TM(t);return c5.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function _M(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function NM(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var M5={placement:"bottom",modifiers:[],strategy:"absolute"};function L5(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function D5(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?M5:o;return function(c,a,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},M5,i),modifiersData:{},elements:{reference:c,popper:a},attributes:{},styles:{}},f=[],h=!1,p={state:u,setOptions:function(y){var b=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,b),u.scrollParents={reference:To(c)?js(c):c.contextElement?js(c.contextElement):[],popper:js(a)};var E=IM(NM([].concat(r,u.options.modifiers)));return u.orderedModifiers=E.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var y=u.elements,b=y.reference,E=y.popper;if(L5(b,E)){u.rects={reference:xM(b,Us(E),u.options.strategy==="fixed"),popper:Pf(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function($){return u.modifiersData[$.name]=Object.assign({},$.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var w=u.orderedModifiers[C],I=w.fn,A=w.options,O=A===void 0?{}:A,W=w.name;typeof I=="function"&&(u=I({state:u,options:O,name:W,instance:p})||u)}}}},update:_M(function(){return new Promise(function(v){p.forceUpdate(),v(u)})}),destroy:function(){g(),h=!0}};if(!L5(c,a))return p;p.setOptions(d).then(function(v){!h&&d.onFirstUpdate&&d.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var y=v.name,b=v.options,E=b===void 0?{}:b,C=v.effect;if(typeof C=="function"){var w=C({state:u,name:y,instance:p,options:E}),I=function(){};f.push(w||I)}})}function g(){f.forEach(function(v){return v()}),f=[]}return p}}var OM=[C5,N5,b5,d5,_5,A5,O5,v5,I5],Uf=D5({defaultModifiers:OM});const P5=Object.freeze(Object.defineProperty({__proto__:null,afterMain:i5,afterRead:n5,afterWrite:l5,applyStyles:d5,arrow:v5,auto:nc,basePlacements:li,beforeMain:r5,beforeRead:e5,beforeWrite:s5,bottom:qt,clippingParents:q2,computeStyles:b5,createPopper:Uf,detectOverflow:pi,end:ci,eventListeners:C5,flip:A5,hide:I5,left:Ut,main:o5,modifierPhases:c5,offset:_5,placements:Mf,popper:di,popperGenerator:D5,popperOffsets:N5,preventOverflow:O5,read:t5,reference:V2,right:Vt,start:xo,top:zt,variationPlacements:Of,viewport:Nf,write:a5},Symbol.toStringTag,{value:"Module"}));const Hr=new Map,Hf={set(t,e,n){Hr.has(t)||Hr.set(t,new Map);const r=Hr.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return Hr.has(t)&&Hr.get(t).get(e)||null},remove(t,e){if(!Hr.has(t))return;const n=Hr.get(t);n.delete(e),n.size===0&&Hr.delete(t)}},MM=1e6,LM=1e3,jf="transitionend",B5=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),DM=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),PM=t=>{do t+=Math.floor(Math.random()*MM);while(document.getElementById(t));return t},BM=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),o=Number.parseFloat(n);return!r&&!o?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*LM)},R5=t=>{t.dispatchEvent(new Event(jf))},lr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),jr=t=>lr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(B5(t)):null,mi=t=>{if(!lr(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},Wr=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",$5=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?$5(t.parentNode):null},ac=()=>{},Ws=t=>{t.offsetHeight},F5=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Wf=[],RM=t=>{document.readyState==="loading"?(Wf.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Wf)e()}),Wf.push(t)):t()},un=()=>document.documentElement.dir==="rtl",fn=t=>{RM(()=>{const e=F5();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},Qt=(t,e=[],n=t)=>typeof t=="function"?t.call(...e):n,z5=(t,e,n=!0)=>{if(!n){Qt(t);return}const o=BM(e)+5;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(jf,s),Qt(t))};e.addEventListener(jf,s),setTimeout(()=>{i||R5(e)},o)},Kf=(t,e,n,r)=>{const o=t.length;let i=t.indexOf(e);return i===-1?!n&&r?t[o-1]:t[0]:(i+=n?1:-1,r&&(i=(i+o)%o),t[Math.max(0,Math.min(i,o-1))])},$M=/[^.]*(?=\..*)\.|.*/,FM=/\..*/,zM=/::\d+$/,Yf={};let U5=1;const H5={mouseenter:"mouseover",mouseleave:"mouseout"},UM=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function j5(t,e){return e&&`${e}::${U5++}`||t.uidEvent||U5++}function W5(t){const e=j5(t);return t.uidEvent=e,Yf[e]=Yf[e]||{},Yf[e]}function HM(t,e){return function n(r){return Qf(r,{delegateTarget:t}),n.oneOff&&de.off(t,r.type,e),e.apply(t,[r])}}function jM(t,e,n){return function r(o){const i=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const c of i)if(c===s)return Qf(o,{delegateTarget:s}),r.oneOff&&de.off(t,o.type,e,n),n.apply(s,[o])}}function K5(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function Y5(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=Q5(t);return UM.has(i)||(i=t),[r,o,i]}function G5(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=Y5(e,n,r);e in H5&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=W5(t),d=a[c]||(a[c]={}),u=K5(d,s,i?n:null);if(u){u.oneOff=u.oneOff&&o;return}const f=j5(s,e.replace($M,"")),h=i?jM(t,n,s):HM(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,d[f]=h,t.addEventListener(c,h,i)}function Gf(t,e,n,r,o){const i=K5(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function WM(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Gf(t,e,n,s.callable,s.delegationSelector)}function Q5(t){return t=t.replace(FM,""),H5[t]||t}const de={on(t,e,n,r){G5(t,e,n,r,!1)},one(t,e,n,r){G5(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=Y5(e,n,r),c=s!==e,a=W5(t),d=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(d).length)return;Gf(t,a,s,i,o?n:null);return}if(u)for(const f of Object.keys(a))WM(t,a,f,e.slice(1));for(const[f,h]of Object.entries(d)){const p=f.replace(zM,"");(!c||e.includes(p))&&Gf(t,a,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=F5(),o=Q5(e),i=e!==o;let s=null,c=!0,a=!0,d=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());const u=Qf(new Event(e,{bubbles:c,cancelable:!0}),n);return d&&u.preventDefault(),a&&t.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Qf(t,e={}){for(const[n,r]of Object.entries(e))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}function Z5(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Zf(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const cr={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Zf(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Zf(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1),e[o]=Z5(t.dataset[r])}return e},getDataAttribute(t,e){return Z5(t.getAttribute(`data-bs-${Zf(e)}`))}};class Ks{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=lr(n)?cr.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...lr(n)?cr.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[r,o]of Object.entries(n)){const i=e[r],s=lr(i)?"element":DM(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const KM="5.3.8";class An extends Ks{constructor(e,n){super(),e=jr(e),e&&(this._element=e,this._config=this._getConfig(n),Hf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Hf.remove(this._element,this.constructor.DATA_KEY),de.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){z5(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Hf.get(jr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return KM}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Jf=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return e?e.split(",").map(n=>B5(n)).join(","):null},xe={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!Wr(n)&&mi(n))},getSelectorFromElement(t){const e=Jf(t);return e&&xe.findOne(e)?e:null},getElementFromSelector(t){const e=Jf(t);return e?xe.findOne(e):null},getMultipleElementsFromSelector(t){const e=Jf(t);return e?xe.find(e):[]}},lc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;de.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Wr(this))return;const i=xe.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},YM="alert",J5=".bs.alert",GM=`close${J5}`,QM=`closed${J5}`,ZM="fade",JM="show";class cc extends An{static get NAME(){return YM}close(){if(de.trigger(this._element,GM).defaultPrevented)return;this._element.classList.remove(JM);const n=this._element.classList.contains(ZM);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),de.trigger(this._element,QM),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=cc.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}lc(cc,"close"),fn(cc);const XM="button",qM=".bs.button",VM=".data-api",eL="active",X5='[data-bs-toggle="button"]',tL=`click${qM}${VM}`;class dc extends An{static get NAME(){return XM}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(eL))}static jQueryInterface(e){return this.each(function(){const n=dc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}de.on(document,tL,X5,t=>{t.preventDefault();const e=t.target.closest(X5);dc.getOrCreateInstance(e).toggle()}),fn(dc);const nL="swipe",gi=".bs.swipe",rL=`touchstart${gi}`,oL=`touchmove${gi}`,iL=`touchend${gi}`,sL=`pointerdown${gi}`,aL=`pointerup${gi}`,lL="touch",cL="pen",dL="pointer-event",uL=40,fL={endCallback:null,leftCallback:null,rightCallback:null},hL={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class uc extends Ks{constructor(e,n){super(),this._element=e,!(!e||!uc.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return fL}static get DefaultType(){return hL}static get NAME(){return nL}dispose(){de.off(this._element,gi)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Qt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=uL)return;const n=e/this._deltaX;this._deltaX=0,n&&Qt(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(de.on(this._element,sL,e=>this._start(e)),de.on(this._element,aL,e=>this._end(e)),this._element.classList.add(dL)):(de.on(this._element,rL,e=>this._start(e)),de.on(this._element,oL,e=>this._move(e)),de.on(this._element,iL,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===cL||e.pointerType===lL)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const pL="carousel",Kr=".bs.carousel",q5=".data-api",mL="ArrowLeft",gL="ArrowRight",vL=500,Ys="next",vi="prev",yi="left",fc="right",yL=`slide${Kr}`,Xf=`slid${Kr}`,bL=`keydown${Kr}`,CL=`mouseenter${Kr}`,EL=`mouseleave${Kr}`,kL=`dragstart${Kr}`,wL=`load${Kr}${q5}`,SL=`click${Kr}${q5}`,V5="carousel",hc="active",AL="slide",xL="carousel-item-end",TL="carousel-item-start",IL="carousel-item-next",_L="carousel-item-prev",ey=".active",ty=".carousel-item",NL=ey+ty,OL=".carousel-item img",ML=".carousel-indicators",LL="[data-bs-slide], [data-bs-slide-to]",DL='[data-bs-ride="carousel"]',PL={[mL]:fc,[gL]:yi},BL={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},RL={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Gs extends An{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=xe.findOne(ML,this._element),this._addEventListeners(),this._config.ride===V5&&this.cycle()}static get Default(){return BL}static get DefaultType(){return RL}static get NAME(){return pL}next(){this._slide(Ys)}nextWhenVisible(){!document.hidden&&mi(this._element)&&this.next()}prev(){this._slide(vi)}pause(){this._isSliding&&R5(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){de.one(this._element,Xf,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){de.one(this._element,Xf,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Ys:vi;this._slide(o,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&de.on(this._element,bL,e=>this._keydown(e)),this._config.pause==="hover"&&(de.on(this._element,CL,()=>this.pause()),de.on(this._element,EL,()=>this._maybeEnableCycle())),this._config.touch&&uc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of xe.find(OL,this._element))de.on(r,kL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(yi)),rightCallback:()=>this._slide(this._directionToOrder(fc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),vL+this._config.interval))}};this._swipeHelper=new uc(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=PL[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=xe.findOne(ey,this._indicatorsElement);n.classList.remove(hc),n.removeAttribute("aria-current");const r=xe.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(hc),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),o=e===Ys,i=n||Kf(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>de.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(yL).defaultPrevented||!r||!i)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?TL:xL,f=o?IL:_L;i.classList.add(f),Ws(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(hc),r.classList.remove(hc,f,u),this._isSliding=!1,c(Xf)};this._queueCallback(h,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(AL)}_getActive(){return xe.findOne(NL,this._element)}_getItems(){return xe.find(ty,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return un()?e===yi?vi:Ys:e===yi?Ys:vi}_orderToDirection(e){return un()?e===vi?yi:fc:e===vi?fc:yi}static jQueryInterface(e){return this.each(function(){const n=Gs.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,SL,LL,function(t){const e=xe.getElementFromSelector(this);if(!e||!e.classList.contains(V5))return;t.preventDefault();const n=Gs.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(cr.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),de.on(window,wL,()=>{const t=xe.find(DL);for(const e of t)Gs.getOrCreateInstance(e)}),fn(Gs);const $L="collapse",Qs=".bs.collapse",FL=".data-api",zL=`show${Qs}`,UL=`shown${Qs}`,HL=`hide${Qs}`,jL=`hidden${Qs}`,WL=`click${Qs}${FL}`,qf="show",bi="collapse",pc="collapsing",KL="collapsed",YL=`:scope .${bi} .${bi}`,GL="collapse-horizontal",QL="width",ZL="height",JL=".collapse.show, .collapse.collapsing",Vf='[data-bs-toggle="collapse"]',XL={parent:null,toggle:!0},qL={parent:"(null|element)",toggle:"boolean"};class Zs extends An{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=xe.find(Vf);for(const o of r){const i=xe.getSelectorFromElement(o),s=xe.find(i).filter(c=>c===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return XL}static get DefaultType(){return qL}static get NAME(){return $L}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(JL).filter(c=>c!==this._element).map(c=>Zs.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||de.trigger(this._element,zL).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(bi),this._element.classList.add(pc),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(pc),this._element.classList.add(bi,qf),this._element.style[r]="",de.trigger(this._element,UL)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||de.trigger(this._element,HL).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,Ws(this._element),this._element.classList.add(pc),this._element.classList.remove(bi,qf);for(const o of this._triggerArray){const i=xe.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(pc),this._element.classList.add(bi),de.trigger(this._element,jL)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(qf)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=jr(e.parent),e}_getDimension(){return this._element.classList.contains(GL)?QL:ZL}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Vf);for(const n of e){const r=xe.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=xe.find(YL,this._config.parent);return xe.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(KL,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=Zs.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}de.on(document,WL,Vf,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of xe.getMultipleElementsFromSelector(this))Zs.getOrCreateInstance(e,{toggle:!1}).toggle()}),fn(Zs);const ny="dropdown",_o=".bs.dropdown",eh=".data-api",VL="Escape",ry="Tab",eD="ArrowUp",oy="ArrowDown",tD=2,nD=`hide${_o}`,rD=`hidden${_o}`,oD=`show${_o}`,iD=`shown${_o}`,iy=`click${_o}${eh}`,sy=`keydown${_o}${eh}`,sD=`keyup${_o}${eh}`,Ci="show",aD="dropup",lD="dropend",cD="dropstart",dD="dropup-center",uD="dropdown-center",No='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',fD=`${No}.${Ci}`,mc=".dropdown-menu",hD=".navbar",pD=".navbar-nav",mD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",gD=un()?"top-end":"top-start",vD=un()?"top-start":"top-end",yD=un()?"bottom-end":"bottom-start",bD=un()?"bottom-start":"bottom-end",CD=un()?"left-start":"right-start",ED=un()?"right-start":"left-start",kD="top",wD="bottom",SD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},AD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Hn extends An{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=xe.next(this._element,mc)[0]||xe.prev(this._element,mc)[0]||xe.findOne(mc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return SD}static get DefaultType(){return AD}static get NAME(){return ny}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Wr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!de.trigger(this._element,oD,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(pD))for(const r of[].concat(...document.body.children))de.on(r,"mouseover",ac);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ci),this._element.classList.add(Ci),de.trigger(this._element,iD,e)}}hide(){if(Wr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!de.trigger(this._element,nD,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))de.off(r,"mouseover",ac);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ci),this._element.classList.remove(Ci),this._element.setAttribute("aria-expanded","false"),cr.removeDataAttribute(this._menu,"popper"),de.trigger(this._element,rD,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!lr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${ny.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof P5>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:lr(this._config.reference)?e=jr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=Uf(e,this._menu,n)}_isShown(){return this._menu.classList.contains(Ci)}_getPlacement(){const e=this._parent;if(e.classList.contains(lD))return CD;if(e.classList.contains(cD))return ED;if(e.classList.contains(dD))return kD;if(e.classList.contains(uD))return wD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(aD)?n?vD:gD:n?bD:yD}_detectNavbar(){return this._element.closest(hD)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(cr.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Qt(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:n}){const r=xe.find(mD,this._menu).filter(o=>mi(o));r.length&&Kf(r,n,e===oy,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Hn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===tD||e.type==="keyup"&&e.key!==ry)return;const n=xe.find(fD);for(const r of n){const o=Hn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===ry||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const c={relatedTarget:o._element};e.type==="click"&&(c.clickEvent=e),o._completeHide(c)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===VL,o=[eD,oy].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches(No)?this:xe.prev(this,No)[0]||xe.next(this,No)[0]||xe.findOne(No,e.delegateTarget.parentNode),s=Hn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}de.on(document,sy,No,Hn.dataApiKeydownHandler),de.on(document,sy,mc,Hn.dataApiKeydownHandler),de.on(document,iy,Hn.clearMenus),de.on(document,sD,Hn.clearMenus),de.on(document,iy,No,function(t){t.preventDefault(),Hn.getOrCreateInstance(this).toggle()}),fn(Hn);const ay="backdrop",xD="fade",ly="show",cy=`mousedown.bs.${ay}`,TD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ID={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class dy extends Ks{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return TD}static get DefaultType(){return ID}static get NAME(){return ay}show(e){if(!this._config.isVisible){Qt(e);return}this._append();const n=this._getElement();this._config.isAnimated&&Ws(n),n.classList.add(ly),this._emulateAnimation(()=>{Qt(e)})}hide(e){if(!this._config.isVisible){Qt(e);return}this._getElement().classList.remove(ly),this._emulateAnimation(()=>{this.dispose(),Qt(e)})}dispose(){this._isAppended&&(de.off(this._element,cy),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(xD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=jr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),de.on(e,cy,()=>{Qt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){z5(e,this._getElement(),this._config.isAnimated)}}const _D="focustrap",gc=".bs.focustrap",ND=`focusin${gc}`,OD=`keydown.tab${gc}`,MD="Tab",LD="forward",uy="backward",DD={autofocus:!0,trapElement:null},PD={autofocus:"boolean",trapElement:"element"};class fy extends Ks{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return DD}static get DefaultType(){return PD}static get NAME(){return _D}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),de.off(document,gc),de.on(document,ND,e=>this._handleFocusin(e)),de.on(document,OD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,de.off(document,gc))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=xe.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===uy?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===MD&&(this._lastTabNavDirection=e.shiftKey?uy:LD)}}const hy=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",py=".sticky-top",vc="padding-right",my="margin-right";class th{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,vc,n=>n+e),this._setElementAttributes(hy,vc,n=>n+e),this._setElementAttributes(py,my,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,vc),this._resetElementAttributes(hy,vc),this._resetElementAttributes(py,my)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,n);const c=window.getComputedStyle(s).getPropertyValue(n);s.style.setProperty(n,`${r(Number.parseFloat(c))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&cr.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=cr.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}cr.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(lr(e)){n(e);return}for(const r of xe.find(e,this._element))n(r)}}const BD="modal",hn=".bs.modal",RD=".data-api",$D="Escape",FD=`hide${hn}`,zD=`hidePrevented${hn}`,gy=`hidden${hn}`,vy=`show${hn}`,UD=`shown${hn}`,HD=`resize${hn}`,jD=`click.dismiss${hn}`,WD=`mousedown.dismiss${hn}`,KD=`keydown.dismiss${hn}`,YD=`click${hn}${RD}`,yy="modal-open",GD="fade",by="show",nh="modal-static",QD=".modal.show",ZD=".modal-dialog",JD=".modal-body",XD='[data-bs-toggle="modal"]',qD={backdrop:!0,focus:!0,keyboard:!0},VD={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Yr extends An{constructor(e,n){super(e,n),this._dialog=xe.findOne(ZD,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new th,this._addEventListeners()}static get Default(){return qD}static get DefaultType(){return VD}static get NAME(){return BD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||de.trigger(this._element,vy,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(yy),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||de.trigger(this._element,FD).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(by),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){de.off(window,hn),de.off(this._dialog,hn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new dy({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fy({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=xe.findOne(JD,this._dialog);n&&(n.scrollTop=0),Ws(this._element),this._element.classList.add(by);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,de.trigger(this._element,UD,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){de.on(this._element,KD,e=>{if(e.key===$D){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),de.on(window,HD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),de.on(this._element,WD,e=>{de.one(this._element,jD,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(yy),this._resetAdjustments(),this._scrollBar.reset(),de.trigger(this._element,gy)})}_isAnimated(){return this._element.classList.contains(GD)}_triggerBackdropTransition(){if(de.trigger(this._element,zD).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(nh)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(nh),this._queueCallback(()=>{this._element.classList.remove(nh),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const o=un()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=un()?"paddingRight":"paddingLeft";this._element.style[o]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=Yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}de.on(document,YD,XD,function(t){const e=xe.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),de.one(e,vy,o=>{o.defaultPrevented||de.one(e,gy,()=>{mi(this)&&this.focus()})});const n=xe.findOne(QD);n&&Yr.getInstance(n).hide(),Yr.getOrCreateInstance(e).toggle(this)}),lc(Yr),fn(Yr);const eP="offcanvas",dr=".bs.offcanvas",Cy=".data-api",tP=`load${dr}${Cy}`,nP="Escape",Ey="show",ky="showing",wy="hiding",rP="offcanvas-backdrop",Sy=".offcanvas.show",oP=`show${dr}`,iP=`shown${dr}`,sP=`hide${dr}`,Ay=`hidePrevented${dr}`,xy=`hidden${dr}`,aP=`resize${dr}`,lP=`click${dr}${Cy}`,cP=`keydown.dismiss${dr}`,dP='[data-bs-toggle="offcanvas"]',uP={backdrop:!0,keyboard:!0,scroll:!1},fP={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Gr extends An{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return uP}static get DefaultType(){return fP}static get NAME(){return eP}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||de.trigger(this._element,oP,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new th().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ky);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ey),this._element.classList.remove(ky),de.trigger(this._element,iP,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||de.trigger(this._element,sP).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(wy),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ey,wy),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new th().reset(),de.trigger(this._element,xy)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){de.trigger(this._element,Ay);return}this.hide()},n=!!this._config.backdrop;return new dy({className:rP,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new fy({trapElement:this._element})}_addEventListeners(){de.on(this._element,cP,e=>{if(e.key===nP){if(this._config.keyboard){this.hide();return}de.trigger(this._element,Ay)}})}static jQueryInterface(e){return this.each(function(){const n=Gr.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}de.on(document,lP,dP,function(t){const e=xe.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wr(this))return;de.one(e,xy,()=>{mi(this)&&this.focus()});const n=xe.findOne(Sy);n&&n!==e&&Gr.getInstance(n).hide(),Gr.getOrCreateInstance(e).toggle(this)}),de.on(window,tP,()=>{for(const t of xe.find(Sy))Gr.getOrCreateInstance(t).show()}),de.on(window,aP,()=>{for(const t of xe.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Gr.getOrCreateInstance(t).hide()}),lc(Gr),fn(Gr);const Ty={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},hP=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),pP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,mP=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?hP.has(n)?!!pP.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function gP(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const o=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const c=s.nodeName.toLowerCase();if(!Object.keys(e).includes(c)){s.remove();continue}const a=[].concat(...s.attributes),d=[].concat(e["*"]||[],e[c]||[]);for(const u of a)mP(u,d)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const vP="TemplateFactory",yP={allowList:Ty,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},bP={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},CP={entry:"(string|element|function|null)",selector:"(string|element)"};class EP extends Ks{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return yP}static get DefaultType(){return bP}static get NAME(){return vP}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},CP)}_setContent(e,n,r){const o=xe.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(lr(n)){this._putElementInTemplate(jr(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?gP(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Qt(e,[void 0,this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const kP="tooltip",wP=new Set(["sanitize","allowList","sanitizeFn"]),rh="fade",SP="modal",yc="show",AP=".tooltip-inner",Iy=`.${SP}`,_y="hide.bs.modal",Js="hover",oh="focus",ih="click",xP="manual",TP="hide",IP="hidden",_P="show",NP="shown",OP="inserted",MP="click",LP="focusin",DP="focusout",PP="mouseenter",BP="mouseleave",RP={AUTO:"auto",TOP:"top",RIGHT:un()?"left":"right",BOTTOM:"bottom",LEFT:un()?"right":"left"},$P={allowList:Ty,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},FP={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class jn extends An{constructor(e,n){if(typeof P5>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return $P}static get DefaultType(){return FP}static get NAME(){return kP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),de.off(this._element.closest(Iy),_y,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=de.trigger(this._element,this.constructor.eventName(_P)),r=($5(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),de.trigger(this._element,this.constructor.eventName(OP))),this._popper=this._createPopper(o),o.classList.add(yc),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))de.on(c,"mouseover",ac);const s=()=>{de.trigger(this._element,this.constructor.eventName(NP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||de.trigger(this._element,this.constructor.eventName(TP)).defaultPrevented)return;if(this._getTipElement().classList.remove(yc),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))de.off(o,"mouseover",ac);this._activeTrigger[ih]=!1,this._activeTrigger[oh]=!1,this._activeTrigger[Js]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),de.trigger(this._element,this.constructor.eventName(IP)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(rh,yc),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=PM(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(rh),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new EP({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[AP]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(rh)}_isShown(){return this.tip&&this.tip.classList.contains(yc)}_createPopper(e){const n=Qt(this._config.placement,[this,e,this._element]),r=RP[n.toUpperCase()];return Uf(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return Qt(e,[this._element,this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...Qt(this._config.popperConfig,[void 0,n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")de.on(this._element,this.constructor.eventName(MP),this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[ih]=!(o._isShown()&&o._activeTrigger[ih]),o.toggle()});else if(n!==xP){const r=n===Js?this.constructor.eventName(PP):this.constructor.eventName(LP),o=n===Js?this.constructor.eventName(BP):this.constructor.eventName(DP);de.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?oh:Js]=!0,s._enter()}),de.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?oh:Js]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},de.on(this._element.closest(Iy),_y,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=cr.getDataAttributes(this._element);for(const r of Object.keys(n))wP.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:jr(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(e[n]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=jn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}fn(jn);const zP="popover",UP=".popover-header",HP=".popover-body",jP={...jn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},WP={...jn.DefaultType,content:"(null|string|element|function)"};class Oo extends jn{static get Default(){return jP}static get DefaultType(){return WP}static get NAME(){return zP}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[UP]:this._getTitle(),[HP]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=Oo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}fn(Oo);const KP="scrollspy",sh=".bs.scrollspy",YP=".data-api",GP=`activate${sh}`,Ny=`click${sh}`,QP=`load${sh}${YP}`,ZP="dropdown-item",Ei="active",JP='[data-bs-spy="scroll"]',ah="[href]",XP=".nav, .list-group",Oy=".nav-link",qP=`${Oy}, .nav-item > ${Oy}, .list-group-item`,VP=".dropdown",eB=".dropdown-toggle",tB={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},nB={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class bc extends An{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return tB}static get DefaultType(){return nB}static get NAME(){return KP}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=jr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(de.off(this._config.target,Ny),de.on(this._config.target,Ny,ah,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,o=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const c=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&c){if(r(s),!o)return;continue}!i&&!c&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=xe.find(ah,this._config.target);for(const n of e){if(!n.hash||Wr(n))continue;const r=xe.findOne(decodeURI(n.hash),this._element);mi(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ei),this._activateParents(e),de.trigger(this._element,GP,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(ZP)){xe.findOne(eB,e.closest(VP)).classList.add(Ei);return}for(const n of xe.parents(e,XP))for(const r of xe.prev(n,qP))r.classList.add(Ei)}_clearActiveClass(e){e.classList.remove(Ei);const n=xe.find(`${ah}.${Ei}`,e);for(const r of n)r.classList.remove(Ei)}static jQueryInterface(e){return this.each(function(){const n=bc.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(window,QP,()=>{for(const t of xe.find(JP))bc.getOrCreateInstance(t)}),fn(bc);const rB="tab",Mo=".bs.tab",oB=`hide${Mo}`,iB=`hidden${Mo}`,sB=`show${Mo}`,aB=`shown${Mo}`,lB=`click${Mo}`,cB=`keydown${Mo}`,dB=`load${Mo}`,uB="ArrowLeft",My="ArrowRight",fB="ArrowUp",Ly="ArrowDown",lh="Home",Dy="End",Lo="active",Py="fade",ch="show",hB="dropdown",By=".dropdown-toggle",pB=".dropdown-menu",dh=`:not(${By})`,mB='.list-group, .nav, [role="tablist"]',gB=".nav-item, .list-group-item",vB=`.nav-link${dh}, .list-group-item${dh}, [role="tab"]${dh}`,Ry='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',uh=`${vB}, ${Ry}`,yB=`.${Lo}[data-bs-toggle="tab"], .${Lo}[data-bs-toggle="pill"], .${Lo}[data-bs-toggle="list"]`;class ki extends An{constructor(e){super(e),this._parent=this._element.closest(mB),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),de.on(this._element,cB,n=>this._keydown(n)))}static get NAME(){return rB}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?de.trigger(n,oB,{relatedTarget:e}):null;de.trigger(e,sB,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Lo),this._activate(xe.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(ch);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),de.trigger(e,aB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Py))}_deactivate(e,n){if(!e)return;e.classList.remove(Lo),e.blur(),this._deactivate(xe.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(ch);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),de.trigger(e,iB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Py))}_keydown(e){if(![uB,My,fB,Ly,lh,Dy].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(o=>!Wr(o));let r;if([lh,Dy].includes(e.key))r=n[e.key===lh?0:n.length-1];else{const o=[My,Ly].includes(e.key);r=Kf(n,e.target,o,!0)}r&&(r.focus({preventScroll:!0}),ki.getOrCreateInstance(r).show())}_getChildren(){return xe.find(uh,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=xe.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(hB))return;const o=(i,s)=>{const c=xe.findOne(i,r);c&&c.classList.toggle(s,n)};o(By,Lo),o(pB,ch),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Lo)}_getInnerElement(e){return e.matches(uh)?e:xe.findOne(uh,e)}_getOuterElement(e){return e.closest(gB)||e}static jQueryInterface(e){return this.each(function(){const n=ki.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,lB,Ry,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Wr(this)&&ki.getOrCreateInstance(this).show()}),de.on(window,dB,()=>{for(const t of xe.find(yB))ki.getOrCreateInstance(t)}),fn(ki);const bB="toast",Qr=".bs.toast",CB=`mouseover${Qr}`,EB=`mouseout${Qr}`,kB=`focusin${Qr}`,wB=`focusout${Qr}`,SB=`hide${Qr}`,AB=`hidden${Qr}`,xB=`show${Qr}`,TB=`shown${Qr}`,IB="fade",$y="hide",Cc="show",Ec="showing",_B={animation:"boolean",autohide:"boolean",delay:"number"},NB={animation:!0,autohide:!0,delay:5e3};class wi extends An{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return NB}static get DefaultType(){return _B}static get NAME(){return bB}show(){if(de.trigger(this._element,xB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(IB);const n=()=>{this._element.classList.remove(Ec),de.trigger(this._element,TB),this._maybeScheduleHide()};this._element.classList.remove($y),Ws(this._element),this._element.classList.add(Cc,Ec),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||de.trigger(this._element,SB).defaultPrevented)return;const n=()=>{this._element.classList.add($y),this._element.classList.remove(Ec,Cc),de.trigger(this._element,AB)};this._element.classList.add(Ec),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Cc),super.dispose()}isShown(){return this._element.classList.contains(Cc)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){de.on(this._element,CB,e=>this._onInteraction(e,!0)),de.on(this._element,EB,e=>this._onInteraction(e,!1)),de.on(this._element,kB,e=>this._onInteraction(e,!0)),de.on(this._element,wB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=wi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}lc(wi),fn(wi);function Fy(t,e){return e.value||t.getAttribute("title")||""}const Do={mounted:(t,e)=>{const n=Fy(t,e);n&&t.setAttribute("title",n),new jn(t)},updated:(t,e)=>{const n=jn.getInstance(t);n&&n.dispose();const r=Fy(t,e);r&&t.setAttribute("title",r),new jn(t)},unmounted:t=>{const e=jn.getInstance(t);e&&e.dispose()}},OB={key:0,class:"pills-list__wrapper"},MB={class:"pills-list__ul"},LB={class:"bd-markdown-editor__menu-bottom"},DB={key:1,class:"vr"},zy=l.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:zr.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:""},tokens:{default:[]},modelValue:{}},emits:["update:modelValue","upload","action"],setup(t,{emit:e}){const n=t,r=e,o=()=>{r("upload")},i=eo(n,"modelValue",r),s=[$_,U_,j_,EO.configure({HTMLAttributes:{class:"mention"},suggestion:{...AO(n.tokens||[]),char:"{",allowSpaces:!0}}),RN.configure({placeholder:n.placeholder}),mO,gN.configure({openOnClick:!1,validate:P=>/^(https?:\/\/|www\.)/i.test(P)})];(n.variant===zr.FULL||n.variant===zr.FORMAT)&&s.push(jN,ZN,XN,uO,fO,hO);const c=P_({content:i.value,extensions:s,onUpdate:({editor:P})=>{const{view:N,state:J}=P,{from:U,to:V}=N.state.selection;if(J.doc.textBetween(U-1,V,"")==" "&&P.getAttributes("link").href!=null&&P.chain().setTextSelection({from:U-1,to:V}).toggleLink({href:P.getAttributes("link").href}).setTextSelection({from:V,to:V}).run(),P.getText().trim()===""){r("update:modelValue","");return}r("update:modelValue",P.getHTML())}});l.watch(()=>n.modelValue,P=>{c.value.getHTML()!==P&&c.value.commands.setContent(P,!0,{preserveWhitespace:"full"})});const a=l.computed(()=>n.state===!1?"is-invalid":null),d=l.computed(()=>b("bold")),u=l.computed(()=>b("italic")),f=l.computed(()=>b("underline")),h=l.computed(()=>b("bulletList")),p=l.computed(()=>b("orderedList")),m=l.computed(()=>b("link")),g=l.computed(()=>n.variant===zr.FULL||n.variant===zr.FORMAT),v=l.computed(()=>n.variant===zr.FULL),y=l.computed(()=>n.variant===zr.FULL||n.variant===zr.BASIC||!n.variant),b=P=>c.value&&c.value.isActive(P)?"active":null,E=l.computed(()=>n.files&&n.files.length>0?Ao(n.apiUrl,n.files,!1):null),C=l.computed(()=>n.files&&n.files.length>0?Ao(n.apiUrl,n.files,!0):null),w=P=>{r("action",{name:"delete-attachment",obj:P})},I=P=>{r("action",{name:"image-attachment",obj:P})},A=l.computed(()=>{if(!c.value)return!1;const{from:P,to:N}=c.value.state.selection;return P!==N}),O=l.computed(()=>A.value?"Voeg een link toe":"Selecteer eerst tekst"),W=l.ref(!1),$=l.ref(""),z=l.ref(null),j=()=>{$.value=c.value.getAttributes("link").href||"",W.value=!0},Z=P=>{if(W.value=!1,!P){c.value.chain().focus().unsetLink().run();return}/^www\./i.test(P)&&(P=`https://${P}`),c.value.chain().focus().toggleLink({href:P}).run()},K=()=>{W.value=!1};return(P,N)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:l.normalizeClass(["bd-markdown-editor",a.value])},[l.createVNode(l.unref(D_),{editor:l.unref(c)},null,8,["editor"]),t.pills?(l.openBlock(),l.createElementBlock("div",OB,[l.createElementVNode("ul",MB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.pills,(J,U)=>(l.openBlock(),l.createElementBlock("li",{key:U,class:"pills-list__li"},[l.createVNode(Na,l.mergeProps({ref_for:!0},J),null,16)]))),128))])])):l.createCommentVNode("",!0),l.renderSlot(P.$slots,"default"),E.value?(l.openBlock(),l.createBlock(Fs,{key:1,files:E.value,"no-download":!0,"show-delete":!0,onDelete:w},null,8,["files"])):l.createCommentVNode("",!0),C.value?(l.openBlock(),l.createBlock(zs,{key:2,files:C.value,"no-download":!0,"show-delete":!0,"fast-download":!1,onDelete:w,onShow:I},null,8,["files"])):l.createCommentVNode("",!0),l.createElementVNode("div",LB,[y.value?(l.openBlock(),l.createBlock(Re,{key:0,variant:"light",type:"button",onClick:o},{default:l.withCtx(()=>[l.createVNode(l.unref(pr))]),_:1})):l.createCommentVNode("",!0),v.value?(l.openBlock(),l.createElementBlock("div",DB)):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:2,variant:"light",type:"button",class:l.normalizeClass(d.value),onClick:N[0]||(N[0]=J=>l.unref(c).chain().focus().toggleBold().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Ic))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:3,variant:"light",type:"button",class:l.normalizeClass(u.value),onClick:N[1]||(N[1]=J=>l.unref(c).chain().focus().toggleItalic().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(zc))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:4,variant:"light",type:"button",class:l.normalizeClass(f.value),onClick:N[2]||(N[2]=J=>l.unref(c).chain().focus().toggleUnderline().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Gc))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:5,variant:"light",type:"button",class:l.normalizeClass(h.value),onClick:N[3]||(N[3]=J=>l.unref(c).chain().focus().toggleBulletList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(_c))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:6,variant:"light",type:"button",class:l.normalizeClass(p.value),onClick:N[4]||(N[4]=J=>l.unref(c).chain().focus().toggleOrderedList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Hc))]),_:1},8,["class"])):l.createCommentVNode("",!0),l.withDirectives((l.openBlock(),l.createElementBlock("span",null,[g.value?(l.openBlock(),l.createBlock(Re,{key:0,ref_key:"linkButton",ref:z,variant:"light",type:"button",class:l.normalizeClass(m.value),onClick:j,disabled:!A.value},{default:l.withCtx(()=>[l.createVNode(l.unref(oa))]),_:1},8,["class","disabled"])):l.createCommentVNode("",!0)])),[[l.unref(Do),O.value]])]),W.value?(l.openBlock(),l.createBlock(MO,{key:3,previousUrl:$.value,onSubmit:Z,onCancel:K},null,8,["previousUrl"])):l.createCommentVNode("",!0)],2),l.createVNode(Ta,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),PB={class:"header"},BB={class:"icon-close-wrapper"},RB={class:"navbar"},$B={class:"nav navbar-nav w-100"},FB={class:"nav-item"},zB={class:"nav-item"},fh=l.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=e,r=t,o=l.computed(()=>({active:r.active===!0,inactive:r.active===!1})),i=()=>n("hide"),s=()=>n("signout");return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-mobile-menu",o.value])},[l.createElementVNode("div",PB,[a[0]||(a[0]=l.createElementVNode("div",null,"Menu",-1)),l.createElementVNode("div",BB,[l.createVNode(na,{onClick:i})])]),l.createElementVNode("nav",RB,[l.createElementVNode("ul",$B,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.options,d=>(l.openBlock(),l.createElementBlock("li",FB,[l.createVNode(qr,l.mergeProps({class:"nav-link"},{ref_for:!0},d,{onClick:i}),null,16)]))),256)),l.renderSlot(c.$slots,"special-options"),l.createElementVNode("li",zB,[l.createVNode(qr,{class:"nav-link",text:"Uitloggen",onClick:s})])])])],2))}}),UB={class:"bd-user"},HB={class:"bd-user__information"},jB={class:"text-break"},WB={class:"overflow-x-hidden"},Uy=l.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(t){const e=t,n=l.computed(()=>typeof e.details=="string"?e.details:e.details?.join(" • "));return(r,o)=>(l.openBlock(),l.createElementBlock("div",UB,[e.hideImage?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Ni,l.mergeProps({key:0},e.img,{size:"sm"}),null,16)),l.createElementVNode("div",HB,[l.createElementVNode("header",null,[l.createElementVNode("h5",jB,l.toDisplayString(e.name),1),l.renderSlot(r.$slots,"header-extra")]),l.createElementVNode("span",WB,l.toDisplayString(n.value),1)])]))}}),KB={class:"bd-chat-cloud-card"},YB={class:"bd-chat-cloud-card__header"},GB={class:"bd-chat-cloud-card__body"},QB=["innerHTML"],ZB={class:"bd-chat-cloud-card__footer"},JB={key:0,class:"pills-list__wrapper"},XB={class:"pills-list__ul"},Hy=l.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},username:{default:null},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0},apiUrl:{default:""}},emits:["show-attachment","action"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>n.isSender?"sender":_e),i=l.computed(()=>Ao(n.apiUrl,n.files,!1)),s=l.computed(()=>Ao(n.apiUrl,n.files,!0)),c=()=>{r("action","copy-message")},a=d=>{r("show-attachment",d)};return(d,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-chat-cloud",o.value])},[l.createVNode(Ni,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),l.createElementVNode("div",KB,[l.createElementVNode("div",YB,[l.renderSlot(d.$slots,"header",{},()=>[l.createTextVNode(l.toDisplayString(t.headerTitle),1)]),l.createVNode(Re,{variant:"outline-primary-dark",size:"sm",onClick:c},{default:l.withCtx(()=>[...u[0]||(u[0]=[l.createTextVNode(" kopieer ",-1)])]),_:1})]),l.createElementVNode("div",GB,[l.renderSlot(d.$slots,"body",{},()=>[l.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,QB)])]),l.createElementVNode("div",ZB,[l.renderSlot(d.$slots,"footer",{},()=>[t.pills?(l.openBlock(),l.createElementBlock("div",JB,[l.createElementVNode("ul",XB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.pills,(f,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"pills-list__li"},[l.createVNode(Na,l.mergeProps({ref_for:!0},f),null,16)]))),128))])])):l.createCommentVNode("",!0),i.value&&i.value.length>0?(l.openBlock(),l.createBlock(Fs,{key:1,files:i.value},null,8,["files"])):l.createCommentVNode("",!0),s.value&&s.value.length>0?(l.openBlock(),l.createBlock(zs,{key:2,"fast-download":!0,files:s.value,onShow:a},null,8,["files"])):l.createCommentVNode("",!0)])])])],2))}}),qB=l.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=e,o=l.ref(n.sortDesc),i=()=>{n.active&&(o.value=!o.value)},s=()=>{if(!n.active)return;const a=o.value?"sortDesc":"sortAsc";r(a)},c=l.computed(()=>({"bd-table-sort":!0,active:n.active}));return l.watch(()=>n.active,(a,d)=>{a&&!d&&(o.value=!1,r("sortAsc"))}),s(),(a,d)=>(l.openBlock(),l.createElementBlock("th",{class:l.normalizeClass(c.value),onClick:d[0]||(d[0]=u=>{i(),s()})},[l.createElementVNode("span",null,l.toDisplayString(n.label),1),n.active&&!o.value?(l.openBlock(),l.createBlock(l.unref(jc),{key:0})):n.active&&o.value?(l.openBlock(),l.createBlock(l.unref(Wc),{key:1})):(l.openBlock(),l.createBlock(l.unref(Kc),{key:2}))],2))}}),VB={class:"bd-table"},eR={key:0,class:"table"},tR={key:1},nR={key:2},rR=["onClick"],oR={key:0},iR={key:1,class:"empty-text"},jy=l.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=l.ref(r.items),s=l.ref(r.sortBy),c=h=>s.value=h,a=(h,p,m)=>{const g=p[h],v=m[h];if(g==null)return 1;if(v==null)return-1;const y=g.toString(),b=v.toString();return y.localeCompare(b,void 0,{numeric:!0})},d=h=>{i.value=i.value.sort((m,g)=>a(h,m,g)),o("sort-changed",{sortBy:h,sortDesc:!1})},u=h=>{i.value=i.value.sort((m,g)=>a(h,g,m)),o("sort-changed",{sortBy:h,sortDesc:!0})},f=()=>{i.value=r.items};return l.watch(()=>r.items,h=>{i.value=h}),e({Refresh:f}),(h,p)=>(l.openBlock(),l.createElementBlock("div",VB,[r.items&&r.items.length>0?(l.openBlock(),l.createElementBlock("table",eR,[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.fields,m=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[m.isVisible?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[m.sortable?(l.openBlock(),l.createBlock(qB,{key:0,label:m.label,active:m.key==s.value,sortDesc:r.sortDesc,onClick:g=>c(m.key),onSortAsc:g=>d(m.key),onSortDesc:g=>u(m.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):h.$slots.hasOwnProperty(`header_${m.key}`)?(l.openBlock(),l.createElementBlock("th",tR,[l.renderSlot(h.$slots,`header_${m.key}`)])):(l.openBlock(),l.createElementBlock("th",nR,l.toDisplayString(m.label),1))],64)):l.createCommentVNode("",!0)],64))),256))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,m=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(m)),onClick:g=>o("row-click",m)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,g=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[g.isVisible?(l.openBlock(),l.createElementBlock("td",oR,[h.$slots.hasOwnProperty(g.key)?l.renderSlot(h.$slots,g.key,{key:0,row:m,item:m,value:m[g.key]}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(m[g.key]),1)],64))])):l.createCommentVNode("",!0)],64))),256))],10,rR))),256))])])):(l.openBlock(),l.createElementBlock("p",iR,l.toDisplayString(r.emptyText),1))]))}}),sR=["id"],aR={key:0,class:"toast-body__title"},lR={class:"actions"},cR=["textContent"],dR=["textContent"],uR={class:"icon-wrapper"},fR=["textContent"],hR=["textContent"],Wy=3e4,Ky=5e3,Yy=l.defineComponent({__name:"BDVideoCallToast",props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:["reject-video-call","accept-video-call"],setup(t,{emit:e}){const n=t,r=e;let o=l.ref(!1),i=l.ref(!1),s=null,c=null;const a=l.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),d=l.computed(()=>o.value?[o.value?"is-handled":_e,i.value?"is-handled--success":_e,n.canceled?"is-handled--canceled":_e].join(" "):_e),u=l.computed(()=>n.canceled?n.localization.videoCallCanceled:i.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),f=l.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:i.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));l.watch(()=>n.canceled,()=>{o.value=!0});const h=()=>{const E=a.value,C=document.querySelector(`#${E}`);if(C){C.addEventListener("hide.bs.toast",b);var w={autohide:!0,delay:Wy+Ky};c=wi.getOrCreateInstance(C,w),c.show(),s=window.setTimeout(p,Wy)}};l.onMounted(h);const p=()=>{o.value||g()},m=()=>{g(),y()},g=()=>{o.value||(o.value=!0,r("reject-video-call",n.id))},v=()=>{o.value=!0,i.value=!0,r("accept-video-call",n.id),y()},y=()=>{window.clearTimeout(s),window.setTimeout(()=>c.hide(),Ky)},b=()=>{o.value=!1,i.value=!1};return(E,C)=>(l.openBlock(),l.createElementBlock("div",{id:a.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[l.unref(o)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",aR,l.toDisplayString(n.localization.incomingVideoCall),1)),l.createElementVNode("div",{class:l.normalizeClass(["toast-body__main",d.value])},[l.unref(o)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",uR,[l.createVNode(ea)]),l.createElementVNode("div",null,[l.createElementVNode("p",{textContent:l.toDisplayString(u.value),class:"title"},null,8,fR),l.createElementVNode("p",{textContent:l.toDisplayString(f.value)},null,8,hR)])],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(zd,{value:t.contactInfoReceiver},null,8,["value"]),l.createElementVNode("div",lR,[l.createVNode(Re,{variant:"danger",class:"text-center",onClick:m},{default:l.withCtx(()=>[l.createVNode(Nc),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.rejectVideoCall)},null,8,cR)]),_:1}),l.createVNode(Re,{variant:"success",class:"text-center",onClick:v},{default:l.withCtx(()=>[l.createVNode(ea),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.acceptVideoCall)},null,8,dR)]),_:1})])],64))],2)],8,sR))}}),hh=l.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:sa.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(t){const e=t,{uniqueIdentifier:n}=zo(),r=`__BD__DROPDOWN__${n.value}`,o=l.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=l.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=l.computed(()=>({"aria-labelledby":r})),c=l.ref(),a=l.ref(),d=()=>{c.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(l.openBlock(),l.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=l.withModifiers(()=>{},["stop"]))},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.toggleTag),l.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(e.text),1)]),_:1},16)),l.createElementVNode("ul",l.mergeProps({ref_key:"dropdownMenu",ref:c,class:["dropdown-menu",i.value]},s.value,{onClick:d}),[l.renderSlot(u.$slots,"default")],16)]))}}),pR={class:"row bd-header"},mR={class:"col logo-mix"},gR=["src"],vR={key:1,class:"col header-options"},yR={class:"col bd-btn-settings"},bR={key:2},ph=l.defineComponent({__name:"BDHeader",props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:["click-logo","signout"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>{let f=[];return n.isEmbedded||(n.headerOptions&&(f=f.concat(n.headerOptions)),n.dropdownOptions&&(f=f.concat(n.dropdownOptions))),f}),i=l.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),s=l.ref(void 0),c=()=>{n.isEmbedded||r("click-logo")},a=()=>r("signout"),d=()=>s.value=!0,u=()=>s.value=!1;return(f,h)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("nav",pR,[l.createElementVNode("div",mR,[l.createVNode(Ac,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:c}),n.organizationLogoSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,gR)):l.createCommentVNode("",!0)]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:d},[h[0]||(h[0]=l.createElementVNode("div",null,"Menu",-1)),l.createVNode(Uc)])),i.value?(l.openBlock(),l.createElementBlock("div",vR,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.headerOptions,p=>(l.openBlock(),l.createBlock(Re,{class:"btn-header",to:p.to,variant:"neutral"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.text),1)]),_:2},1032,["to"]))),256))])):l.createCommentVNode("",!0),l.createElementVNode("div",yR,[n.isEmbedded?l.createCommentVNode("",!0):l.renderSlot(f.$slots,"profile-side",{key:0}),n.profileImageSrc?(l.openBlock(),l.createBlock(Ni,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):l.createCommentVNode("",!0),n.isEmbedded?(l.openBlock(),l.createElementBlock("span",bR,l.toDisplayString(n.dropdownMenuTitle),1)):l.createCommentVNode("",!0),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(hh,{key:3,text:n.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.dropdownOptions,(p,m)=>(l.openBlock(),l.createBlock(Ra,l.mergeProps({key:m},{ref_for:!0},p),null,16))),128)),n.hasLogoutOption?(l.openBlock(),l.createBlock(Ra,{key:0,text:"Uitloggen",onClick:a})):l.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(fh,{key:0,active:s.value,options:o.value,onHide:u,onSignout:a},{"special-options":l.withCtx(()=>[l.renderSlot(f.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),CR="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20height='800px'%20width='800px'%20viewBox='0%200%20800%20800'%20fill='none'%20version='1.1'%20id='svg2'%20sodipodi:docname='bell-icon.svg'%20inkscape:version='1.4.2%20(ebf0e94,%202025-05-08)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3csodipodi:namedview%20id='namedview2'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='0.93902601'%20inkscape:cx='361.01236'%20inkscape:cy='425.44082'%20inkscape:window-width='2323'%20inkscape:window-height='1321'%20inkscape:window-x='69'%20inkscape:window-y='-9'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg2'%20inkscape:lockguides='false'%20/%3e%3cpath%20fill='%23394156'%20d='m%20574.7134,517.70839%20c%20-43.02343,-19.42958%20-40.33991,-92.03173%20-40.37166,-94.13603%20l%20-0.86403,-55.08622%20c%20-0.84452,-53.84263%20-32.76289,-101.01787%20-79.52261,-120.73389%20-0.10055,-27.68538%20-26.24787,-50.17713%20-53.95375,-50.17713%20-27.70655,0%20-53.8532,22.49307%20-53.95442,50.17581%20-46.75774,19.71601%20-77.67395,68.62166%20-78.65724,122.46193%20l%20-0.86403,47.31%20c%20-0.0304,2.1043%201.78773,80.75463%20-41.23703,100.1842%20-4.90122,2.21412%20-7.59494,12.9473%20-6.46175,18.20508%201.13187,5.25843%203.98237,14.4119%209.36122,14.4119%20h%20110.87115%20c%202.23595,12.30035%208.05205,23.74336%2016.94754,33.01196%2011.8148,12.30961%2027.4393,19.08888%2043.99257,19.08888%2016.5546,0%2032.1791,-6.77927%2043.99258,-19.08888%208.89681,-9.26925%2014.71291,-20.71294%2016.94754,-33.01196%20h%20110.87115%20c%205.37885,0%208.22869,-9.1528%209.36189,-14.4119%201.13449,-5.25778%20-1.55789,-15.9903%20-6.45912,-18.20375%20z%20m%20-65.45742,-27.74178%20c%204.52282,13.71204%207.25707,16.20673%2016.33845,27.66562%20l%20-250.39475,-0.79275%20c%209.08005,-11.45756%2010.3714,-13.15885%2014.89422,-26.87287%20z%20M%20400.00135,224.00622%20c%2012.53255,0%2019.53015,4.82252%2022.8457,16.30126%20-8.54159,-1.77156%20-13.78747,-2.70563%20-22.8457,-2.70563%20-9.05823,0%20-14.30412,0.93341%20-22.84569,2.70563%203.3162,-11.47808%2010.31381,-16.30126%2022.84569,-16.30126%20z%20m%20-103.58848,199.63494%201.79933,-54.2217%20c%201.96022,-59.06989%2042.68543,-96.67497%20101.78915,-96.67497%2059.10373,0%2099.89499,35.80359%20101.78916,94.87564%20l%201.79933,56.1143%20c%200.0152,1.71731%201.47422,12.5683%201.23243,34.7862%20H%20295.17778%20c%200.71894,-22.23906%201.22119,-33.1218%201.23509,-34.87947%20z%20m%20103.58848,148.96978%20c%20-17.42517,0%20-25.43558,-5.58015%20-30.31694,-22.28624%20h%2060.63257%20c%20-4.88138,16.70609%20-12.88914,22.28624%20-30.31563,22.28624%20z'%20id='path1'%20style='stroke-width:0.899666;stroke-dasharray:none'%20sodipodi:nodetypes='ccscscscccsccsccscccccccscscscsssccccsccs'%20/%3e%3cpath%20fill='%23394156'%20d='m%20397.96944,283.33669%20c%20-49.41855,0%20-89.62361,40.20373%20-89.62361,89.62161%200,6.34354%205.14286,11.4864%2011.48639,11.4864%206.34355,0%2011.48641,-5.14286%2011.48641,-11.4864%200,-36.75076%2029.89938,-66.64948%2066.65148,-66.64948%206.34353,0%2011.48639,-5.14285%2011.48639,-11.4864%20-6.6e-4,-6.3442%20-5.14353,-11.48573%20-11.48706,-11.48573%20z'%20id='path2'%20style='stroke-width:0.904712;stroke-dasharray:none'%20sodipodi:nodetypes='ssssscs'%20/%3e%3c/svg%3e",Gy=async(t,e)=>{const n=t+e,o=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(i)).map(c=>c.toString(16).padStart(2,"0")).join("")};function mh(){const t=()=>new Promise(n=>{if(document.readyState==="complete")return n();window.addEventListener("load",()=>n(),{once:!0})});return{OnWindowLoaded:n=>{l.onMounted(()=>t().then(n))}}}const ER=(t,e,n)=>{const{OnWindowLoaded:r}=mh(),o="lkj298fhGGJihge",i=l.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const d=s(),u=localStorage.getItem(t),f=JSON.parse(u)||[],h=await Gy(d,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const d=s(),u=await Gy(d,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(u)||(h.push(u),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function Qy(t){const{OnWindowLoaded:e}=mh();let n;const r=()=>{n=document.addEventListener("click",i=>{if(!i||!i.target)return;let s=null;if(i.target instanceof Element&&(s=i.target.closest(".popover")),s)return;const c=Oo.getInstance(t.value);c&&c.hide()})};l.onMounted(r);const o=()=>{if(t?.value==null)return;Oo.getInstance(t.value)||new Oo(t.value)};e(o),l.watch(t,o),l.onUnmounted(()=>{if(t?.value!=null){const i=Oo.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const kR=["data-bs-title","data-bs-content"],wR=["title"],SR={key:0,class:"number-circle",textContent:1},AR=l.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>e.getNotification?.linkUrl,{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=ER("notificationsRead",e.userId,n),i=l.ref();Qy(i);const s=l.computed(()=>{const u=e.getNotification;if(!u)return!1;const{isActive:f,startDate:h,endDate:p}=u;if(!f)return!1;const m=new Date(h),g=new Date(p),v=new Date;return v>=m&&v<=g}),c=l.computed(()=>e.getNotification?.tooltip),a=l.computed(()=>e.getNotification?.title),d=l.computed(()=>{const u=e.getNotification;if(!u)return"";const{text:f,linkUrl:h,linkText:p}=u;return`
|
|
1299
|
+
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:c}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:d,dispatch:u})=>{if(u&&a&&s){const f=a.filter(h=>c.includes(h.type.name));d.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),mO=pO;function gO(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:c}=t,a=r&&!o,d=x_(n),u=new RegExp(`\\s${d}$`),f=s?"^":"",h=o?"":d,p=a?new RegExp(`${f}${d}.*?(?=\\s${h}|$)`,"gm"):new RegExp(`${f}(?:^)?${d}[^\\s${h}]*`,"gm"),m=((e=c.nodeBefore)==null?void 0:e.isText)&&c.nodeBefore.text;if(!m)return null;const g=c.pos-m.length,v=Array.from(m.matchAll(p)).pop();if(!v||v.input===void 0||v.index===void 0)return null;const y=v.input.slice(Math.max(0,v.index-1),v.index),b=new RegExp(`^[${i?.join("")}\0]?$`).test(y);if(i!==null&&!b)return null;const E=g+v.index;let C=E+v[0].length;return a&&u.test(m.slice(C-1,C+1))&&(v[0]+=" ",C+=1),E<c.pos&&C>=c.pos?{range:{from:E,to:C},query:v[0].slice(n.length),text:v[0]}:null}var vO=new dt("suggestion");function yO({pluginKey:t=vO,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:o=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:c="span",decorationClass:a="suggestion",decorationContent:d="",decorationEmptyClass:u="is-empty",command:f=()=>null,items:h=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:g=gO,shouldShow:v}){let y;const b=p?.(),E=()=>{const A=e.state.selection.$anchor.pos,O=e.view.coordsAtPos(A),{top:K,right:B,bottom:F,left:H}=O;try{return new DOMRect(H,K,B-H,F-K)}catch{return null}},C=(A,O)=>O?()=>{const K=t.getState(e.state),B=K?.decorationId,F=A.dom.querySelector(`[data-decoration-id="${B}"]`);return F?.getBoundingClientRect()||null}:E;function w(A,O){var K;try{const F=t.getState(A.state),H=F?.decorationId?A.dom.querySelector(`[data-decoration-id="${F.decorationId}"]`):null,Z={editor:e,range:F?.range||{from:0,to:0},query:F?.query||null,text:F?.text||null,items:[],command:W=>f({editor:e,range:F?.range||{from:0,to:0},props:W}),decorationNode:H,clientRect:C(A,H)};(K=b?.onExit)==null||K.call(b,Z)}catch{}const B=A.state.tr.setMeta(O,{exit:!0});A.dispatch(B)}const I=new Ve({key:t,view(){return{update:async(A,O)=>{var K,B,F,H,Z,W,j;const N=(K=this.key)==null?void 0:K.getState(O),J=(B=this.key)==null?void 0:B.getState(A.state),z=N.active&&J.active&&N.range.from!==J.range.from,V=!N.active&&J.active,te=N.active&&!J.active,ae=!V&&!te&&N.query!==J.query,pe=V||z&&ae,me=ae||z,ye=te||z&&ae;if(!pe&&!me&&!ye)return;const Ce=ye&&!pe?N:J,Se=A.dom.querySelector(`[data-decoration-id="${Ce.decorationId}"]`);y={editor:e,range:Ce.range,query:Ce.query,text:Ce.text,items:[],command:ve=>f({editor:e,range:Ce.range,props:ve}),decorationNode:Se,clientRect:C(A,Se)},pe&&((F=b?.onBeforeStart)==null||F.call(b,y)),me&&((H=b?.onBeforeUpdate)==null||H.call(b,y)),(me||pe)&&(y.items=await h({editor:e,query:Ce.query})),ye&&((Z=b?.onExit)==null||Z.call(b,y)),me&&((W=b?.onUpdate)==null||W.call(b,y)),pe&&((j=b?.onStart)==null||j.call(b,y))},destroy:()=>{var A;y&&((A=b?.onExit)==null||A.call(b,y))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(A,O,K,B){const{isEditable:F}=e,{composing:H}=e.view,{selection:Z}=A,{empty:W,from:j}=Z,N={...O},J=A.getMeta(t);if(J&&J.exit)return N.active=!1,N.decorationId=null,N.range={from:0,to:0},N.query=null,N.text=null,N;if(N.composing=H,F&&(W||e.view.composing)){(j<O.range.from||j>O.range.to)&&!H&&!O.composing&&(N.active=!1);const z=g({char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:Z.$from}),V=`id_${Math.floor(Math.random()*4294967295)}`;z&&m({editor:e,state:B,range:z.range,isActive:O.active})&&(!v||v({editor:e,range:z.range,query:z.query,text:z.text,transaction:A}))?(N.active=!0,N.decorationId=O.decorationId?O.decorationId:V,N.range=z.range,N.query=z.query,N.text=z.text):N.active=!1}else N.active=!1;return N.active||(N.decorationId=null,N.range={from:0,to:0},N.query=null,N.text=null),N}},props:{handleKeyDown(A,O){var K,B,F,H;const{active:Z,range:W}=I.getState(A.state);if(!Z)return!1;if(O.key==="Escape"||O.key==="Esc"){const N=I.getState(A.state),J=(K=y?.decorationNode)!=null?K:null,z=J??(N?.decorationId?A.dom.querySelector(`[data-decoration-id="${N.decorationId}"]`):null);if(((B=b?.onKeyDown)==null?void 0:B.call(b,{view:A,event:O,range:N.range}))||!1)return!0;const te={editor:e,range:N.range,query:N.query,text:N.text,items:[],command:ae=>f({editor:e,range:N.range,props:ae}),decorationNode:z,clientRect:z?()=>z.getBoundingClientRect()||null:null};return(F=b?.onExit)==null||F.call(b,te),w(A,t),!0}return((H=b?.onKeyDown)==null?void 0:H.call(b,{view:A,event:O,range:W}))||!1},decorations(A){const{active:O,range:K,decorationId:B,query:F}=I.getState(A);if(!O)return null;const H=!F?.length,Z=[a];return H&&Z.push(u),Xe.create(A.doc,[Dt.inline(K.from,K.to,{nodeName:c,class:Z.join(" "),"data-decoration-id":B,"data-decoration-content":d})])}}});return I}function bO({editor:t,overrideSuggestionOptions:e,extensionName:n,char:r="@"}){const o=new dt;return{editor:t,char:r,pluginKey:o,command:({editor:i,range:s,props:c})=>{var a,d,u;const f=i.view.state.selection.$to.nodeAfter;(a=f?.text)!=null&&a.startsWith(" ")&&(s.to+=1),i.chain().focus().insertContentAt(s,[{type:n,attrs:{...c,mentionSuggestionChar:r}},{type:"text",text:" "}]).run(),(u=(d=i.view.dom.ownerDocument.defaultView)==null?void 0:d.getSelection())==null||u.collapseToEnd()},allow:({state:i,range:s})=>{const c=i.doc.resolve(s.from),a=i.schema.nodes[n];return!!c.parent.type.contentMatch.matchType(a)},...e}}function Q2(t){return(t.options.suggestions.length?t.options.suggestions:[t.options.suggestion]).map(e=>bO({editor:t.editor,overrideSuggestionOptions:e,extensionName:t.name,char:e.char}))}function Z2(t,e){const n=Q2(t),r=n.find(o=>o.char===e);return r||(n.length?n[0]:null)}var CO=Bn.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:t,suggestion:e}){var n,r;return`${(n=e?.char)!=null?n:"@"}${(r=t.attrs.label)!=null?r:t.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e,suggestion:n}){var r,o;return["span",Ct(this.HTMLAttributes,t.HTMLAttributes),`${(r=n?.char)!=null?r:"@"}${(o=e.attrs.label)!=null?o:e.attrs.id}`]},suggestions:[],suggestion:{}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}},mentionSuggestionChar:{default:"@",parseHTML:t=>t.getAttribute("data-mention-suggestion-char"),renderHTML:t=>({"data-mention-suggestion-char":t.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){const n=Z2(this,t.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",Ct({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t,suggestion:n})];const r={...this.options};r.HTMLAttributes=Ct({"data-type":this.name},this.options.HTMLAttributes,e);const o=this.options.renderHTML({options:r,node:t,suggestion:n});return typeof o=="string"?["span",Ct({"data-type":this.name},this.options.HTMLAttributes,e),o]:o},...s2({nodeName:"mention",name:"@",selfClosing:!0,allowedAttributes:["id","label",{name:"mentionSuggestionChar",skipIfDefault:"@"}],parseAttributes:t=>{const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(t);for(;r!==null;){const[,o,i,s]=r,c=i??s;e[o==="char"?"mentionSuggestionChar":o]=c,r=n.exec(t)}return e},serializeAttributes:t=>Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e==="mentionSuggestionChar"?"char":e}="${n}"`).join(" ")}),renderText({node:t}){const e={options:this.options,node:t,suggestion:Z2(this,t.attrs.mentionSuggestionChar)};return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(e)):this.options.renderText(e)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:o,anchor:i}=r;if(!o)return!1;let s=new Xn,c=0;return e.doc.nodesBetween(i-1,i,(a,d)=>{if(a.type.name===this.name)return n=!0,s=a,c=d,!1}),n&&t.insertText(this.options.deleteTriggerWithBackspace?"":s.attrs.mentionSuggestionChar,c,c+s.nodeSize),n})}},addProseMirrorPlugins(){return Q2(this).map(yO)}}),EO=CO;const kO={class:"dropdown-menu show"},wO=["onClick"],SO={__name:"BDPlaceholderList",props:{items:Array,command:Function},setup(t,{expose:e}){const n=t,r=l.ref(0);l.watch(()=>n.items,()=>{r.value=0});const o=s=>{const c=n.items[s];c&&n.command(c)};return e({onKeyDown:({event:s})=>{var c;return!((c=n.items)===null||c===void 0)&&c.length?s.key==="ArrowUp"?(r.value=(r.value+n.items.length-1)%n.items.length,!0):s.key==="ArrowDown"?(r.value=(r.value+1)%n.items.length,!0):s.key==="Enter"?(o(r.value),!0):!1:!1}}),(s,c)=>(l.openBlock(),l.createElementBlock("div",kO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,(a,d)=>(l.openBlock(),l.createElementBlock("button",{key:d,class:l.normalizeClass(["dropdown-item",{active:d===r.value}]),onClick:u=>o(d)},l.toDisplayString(a.label),11,wO))),128))]))}},AO=(t=[],e)=>({items:({query:n})=>t.filter(r=>r.label.toLowerCase().includes(n.toLowerCase())),command:({editor:n,range:r,props:o})=>{n.chain().focus().deleteRange(r).insertContent(`{${o.id}}`).run()},render:()=>{let n=null;const r=o=>{const i=o.clientRect?.(),s=e?.value;if(!i||!s||!n?.element)return;const c=s.getBoundingClientRect(),a=i.left-c.left+s.scrollLeft,d=i.bottom-c.top+s.scrollTop,u=n.element;u.classList.add("placeholder-tokens-menu"),u.style.position="absolute",u.style.left=`${Math.round(a)}px`,u.style.top=`${Math.round(d)}px`};return{onStart:o=>{n=new B_(SO,{props:o,editor:o.editor});const i=e?.value;i&&n.element&&i.appendChild(n.element),r(o)},onUpdate(o){n&&n.updateProps(o),r(o)},onKeyDown(o){return n?.ref?.onKeyDown?.(o)??!1},onExit(){n&&(n.destroy(),n.element?.remove())}}}}),xO={class:"popover bd-link-input-popover show bd-link-input-bottom"},TO={class:"popover-body"},IO={class:"form-label"},_O={key:0,class:"validation-text"},NO={class:"d-flex gap-2 mt-2"},OO=["disabled"],MO=l.defineComponent({__name:"BDLinkInput",props:{previousUrl:{}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=e,o=l.ref(n.previousUrl??""),i=l.computed(()=>{if(!o.value)return!!n.previousUrl;if(o.value===n.previousUrl)return!1;const u=o.value.trim().toLowerCase();return u.startsWith("http://")||u.startsWith("https://")||u.startsWith("www.")}),s=l.computed(()=>o.value&&o.value===n.previousUrl?"De URL is niet gewijzigd":o.value&&!i.value?"De URL moet beginnen met http://, https:// of www.":""),c=l.computed(()=>n.previousUrl?o.value?"Wijzigen":"Verwijderen":"Toevoegen"),a=()=>r("submit",o.value),d=()=>r("cancel");return(u,f)=>(l.openBlock(),l.createElementBlock("div",xO,[f[2]||(f[2]=l.createElementVNode("div",{class:"popover-header"},"Link beheren",-1)),l.createElementVNode("div",TO,[l.createElementVNode("label",IO,[f[1]||(f[1]=l.createTextVNode(" URL: ",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),type:"text",class:"form-control",placeholder:"https://www.example.com"},null,512),[[l.vModelText,o.value]]),s.value?(l.openBlock(),l.createElementBlock("div",_O,l.toDisplayString(s.value),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",NO,[l.createElementVNode("button",{type:"button",class:"btn btn-primary btn-sm",disabled:!i.value,onClick:a},l.toDisplayString(c.value),9,OO),l.createElementVNode("button",{type:"button",class:"btn btn-secondary btn-sm",onClick:d}," Annuleren ")])])]))}}),zr={BASIC:"basic",FULL:"full",FORMAT:"format"},LO={class:"attachment-list"},DO={class:"attachment-link"},PO={key:1,class:"attachment-no-download"},BO=["href"],Fs=l.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(t,{emit:e}){const n=e,r=o=>{n("delete",o)};return(o,i)=>(l.openBlock(),l.createElementBlock("ul",LO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,s=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:s.CorrelationId},[l.createElementVNode("div",DO,[t.showDelete?(l.openBlock(),l.createBlock(Re,{key:0,variant:"remove",onClick:c=>r(s),"aria-label":"verwijder"},{default:l.withCtx(()=>[l.createVNode(l.unref(_i))]),_:1},8,["onClick"])):l.createCommentVNode("",!0),t.noDownload?(l.openBlock(),l.createElementBlock("div",PO,[l.createVNode(l.unref(pr)),l.createTextVNode(" "+l.toDisplayString(s.Naam.trim()),1)])):(l.openBlock(),l.createElementBlock("a",{key:2,href:s.downloadUrl},[l.createVNode(l.unref(pr)),l.createTextVNode(" "+l.toDisplayString(s.Naam.trim()),1)],8,BO))])]))),128))]))}}),RO={class:"attachment-list"},$O={class:"attachment"},FO=["onClick"],zO=["src","alt"],UO=["onClick"],HO=["href"],jO={class:"btn btn-light download-button-image"},WO=["src","alt"],zs=l.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(t,{emit:e}){const n=t,r=e,o=s=>{r("delete",s)},i=(s,c)=>{s.target&&s.target.className==="img-preview"&&r("show",c)};return(s,c)=>(l.openBlock(),l.createElementBlock("ul",RO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,a=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:a.CorrelationId},[l.createElementVNode("div",$O,[t.showDelete?(l.openBlock(),l.createBlock(Re,{key:0,variant:"remove","aria-label":"verwijder",onClick:l.withModifiers(d=>o(a),["prevent"])},{default:l.withCtx(()=>[l.createVNode(l.unref(_i))]),_:1},8,["onClick"])):l.createCommentVNode("",!0),n.noDownload?(l.openBlock(),l.createElementBlock("div",{key:1,onClick:d=>i(d,a)},[l.createElementVNode("img",{src:a.previewUrl,class:"img-preview",alt:a.altName,loading:"lazy"},null,8,zO)],8,FO)):(l.openBlock(),l.createElementBlock("div",{key:2,onClick:d=>i(d,a)},[n.fastDownload?(l.openBlock(),l.createElementBlock("a",{key:0,href:a.downloadUrl,class:"download-link"},[l.createElementVNode("button",jO,[l.createVNode(l.unref(Pc))])],8,HO)):l.createCommentVNode("",!0),l.createElementVNode("img",{src:a.previewUrl,alt:a.altName,class:"img-preview",loading:"lazy"},null,8,WO)],8,UO))])]))),128))]))}}),KO=t=>t?.map(e=>e.CorrelationId),J2=t=>t.Naam.toLowerCase().endsWith(".png")||t.Naam.toLowerCase().endsWith(".jpg")||t.Naam.toLowerCase().endsWith(".jpeg")||t.Naam.toLowerCase().endsWith(".gif"),YO=(t,e)=>e.DownloadUrl?e.DownloadUrl:e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:e.url?e.url:e.Id?`${t}/Portaal/DownloadBerichtBijlage/${e.Id}`:e.FileId?`${t}/Portaal/DownloadStandardMessageAttachment/${e.StandardAttachmentId}/${e.FileId}`:`${t}/Portaal/DownloadBerichtStagingBijlage/${e.CorrelationId}`,X2=(t,e)=>e.ThumbnailUrl?e.ThumbnailUrl:e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:e.url?e.url:e.Id?`${t}/Portaal/DownloadBerichtBijlageThumbnail/${e.Id}`:e.StandardAttachmentId||e.standardAttachmentId?`${t}/Portaal/DownloadStandardMessageAttachmentThumbnail/${e.StandardAttachmentId}/${e.FileId}`:`${t}/Portaal/DownloadBerichtStagingBijlageThumbnail/${e.CorrelationId}`,GO=(t,e)=>e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:null,QO=(t,e)=>e?J2(t):!J2(t),Ao=(t="",e,n)=>e===void 0?void 0:e.filter(o=>QO(o,n)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!=null?o.CorrelationId.toString():"";return{downloadUrl:YO(t,o),previewUrl:X2(t,o),fullImageUrl:GO(t,o),altName:`${o.Naam}`,...o,CorrelationId:i}});var zt="top",qt="bottom",Vt="right",Ut="left",nc="auto",li=[zt,qt,Vt,Ut],xo="start",ci="end",q2="clippingParents",Nf="viewport",di="popper",V2="reference",Of=li.reduce(function(t,e){return t.concat([e+"-"+xo,e+"-"+ci])},[]),Mf=[].concat(li,[nc]).reduce(function(t,e){return t.concat([e,e+"-"+xo,e+"-"+ci])},[]),e5="beforeRead",t5="read",n5="afterRead",r5="beforeMain",o5="main",i5="afterMain",s5="beforeWrite",a5="write",l5="afterWrite",c5=[e5,t5,n5,r5,o5,i5,s5,a5,l5];function zn(t){return t?(t.nodeName||"").toLowerCase():null}function en(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function To(t){var e=en(t).Element;return t instanceof e||t instanceof Element}function dn(t){var e=en(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Lf(t){if(typeof ShadowRoot>"u")return!1;var e=en(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZO(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!dn(i)||!zn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var c=o[s];c===!1?i.removeAttribute(s):i.setAttribute(s,c===!0?"":c)}))})}function JO(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(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),c=s.reduce(function(a,d){return a[d]="",a},{});!dn(o)||!zn(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const d5={name:"applyStyles",enabled:!0,phase:"write",fn:ZO,effect:JO,requires:["computeStyles"]};function Un(t){return t.split("-")[0]}var Io=Math.max,rc=Math.min,ui=Math.round;function Df(){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 u5(){return!/^((?!chrome|android).)*safari/i.test(Df())}function fi(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&dn(t)&&(o=t.offsetWidth>0&&ui(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&ui(r.height)/t.offsetHeight||1);var s=To(t)?en(t):window,c=s.visualViewport,a=!u5()&&n,d=(r.left+(a&&c?c.offsetLeft:0))/o,u=(r.top+(a&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:d+f,bottom:u+h,left:d,x:d,y:u}}function Pf(t){var e=fi(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function f5(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Lf(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ar(t){return en(t).getComputedStyle(t)}function XO(t){return["table","td","th"].indexOf(zn(t))>=0}function Ur(t){return((To(t)?t.ownerDocument:t.document)||window.document).documentElement}function oc(t){return zn(t)==="html"?t:t.assignedSlot||t.parentNode||(Lf(t)?t.host:null)||Ur(t)}function h5(t){return!dn(t)||ar(t).position==="fixed"?null:t.offsetParent}function qO(t){var e=/firefox/i.test(Df()),n=/Trident/i.test(Df());if(n&&dn(t)){var r=ar(t);if(r.position==="fixed")return null}var o=oc(t);for(Lf(o)&&(o=o.host);dn(o)&&["html","body"].indexOf(zn(o))<0;){var i=ar(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Us(t){for(var e=en(t),n=h5(t);n&&XO(n)&&ar(n).position==="static";)n=h5(n);return n&&(zn(n)==="html"||zn(n)==="body"&&ar(n).position==="static")?e:n||qO(t)||e}function Bf(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Hs(t,e,n){return Io(t,rc(e,n))}function VO(t,e,n){var r=Hs(t,e,n);return r>n?n:r}function p5(){return{top:0,right:0,bottom:0,left:0}}function m5(t){return Object.assign({},p5(),t)}function g5(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var eM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,m5(typeof e!="number"?e:g5(e,li))};function tM(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Un(n.placement),a=Bf(c),d=[Ut,Vt].indexOf(c)>=0,u=d?"height":"width";if(!(!i||!s)){var f=eM(o.padding,n),h=Pf(i),p=a==="y"?zt:Ut,m=a==="y"?qt:Vt,g=n.rects.reference[u]+n.rects.reference[a]-s[a]-n.rects.popper[u],v=s[a]-n.rects.reference[a],y=Us(i),b=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,E=g/2-v/2,C=f[p],w=b-h[u]-f[m],I=b/2-h[u]/2+E,A=Hs(C,I,w),O=a;n.modifiersData[r]=(e={},e[O]=A,e.centerOffset=A-I,e)}}function nM(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||f5(e.elements.popper,o)&&(e.elements.arrow=o))}const v5={name:"arrow",enabled:!0,phase:"main",fn:tM,effect:nM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hi(t){return t.split("-")[1]}var rM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oM(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:ui(n*o)/o||0,y:ui(r*o)/o||0}}function y5(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,c=t.position,a=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,g=m===void 0?0:m,v=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),E=Ut,C=zt,w=window;if(d){var I=Us(n),A="clientHeight",O="clientWidth";if(I===en(n)&&(I=Ur(n),ar(I).position!=="static"&&c==="absolute"&&(A="scrollHeight",O="scrollWidth")),I=I,o===zt||(o===Ut||o===Vt)&&i===ci){C=qt;var K=f&&I===w&&w.visualViewport?w.visualViewport.height:I[A];g-=K-r.height,g*=a?1:-1}if(o===Ut||(o===zt||o===qt)&&i===ci){E=Vt;var B=f&&I===w&&w.visualViewport?w.visualViewport.width:I[O];p-=B-r.width,p*=a?1:-1}}var F=Object.assign({position:c},d&&rM),H=u===!0?oM({x:p,y:g},en(n)):{x:p,y:g};if(p=H.x,g=H.y,a){var Z;return Object.assign({},F,(Z={},Z[C]=b?"0":"",Z[E]=y?"0":"",Z.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Z))}return Object.assign({},F,(e={},e[C]=b?g+"px":"",e[E]=y?p+"px":"",e.transform="",e))}function iM(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,c=n.roundOffsets,a=c===void 0?!0:c,d={placement:Un(e.placement),variation:hi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,y5(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,y5(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const b5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iM,data:{}};var ic={passive:!0};function sM(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,c=s===void 0?!0:s,a=en(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,ic)}),c&&a.addEventListener("resize",n.update,ic),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ic)}),c&&a.removeEventListener("resize",n.update,ic)}}const C5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sM,data:{}};var aM={left:"right",right:"left",bottom:"top",top:"bottom"};function sc(t){return t.replace(/left|right|bottom|top/g,function(e){return aM[e]})}var lM={start:"end",end:"start"};function E5(t){return t.replace(/start|end/g,function(e){return lM[e]})}function Rf(t){var e=en(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function $f(t){return fi(Ur(t)).left+Rf(t).scrollLeft}function cM(t,e){var n=en(t),r=Ur(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,c=0,a=0;if(o){i=o.width,s=o.height;var d=u5();(d||!d&&e==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:c+$f(t),y:a}}function dM(t){var e,n=Ur(t),r=Rf(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+$f(t),a=-r.scrollTop;return ar(o||n).direction==="rtl"&&(c+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:a}}function Ff(t){var e=ar(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function k5(t){return["html","body","#document"].indexOf(zn(t))>=0?t.ownerDocument.body:dn(t)&&Ff(t)?t:k5(oc(t))}function js(t,e){var n;e===void 0&&(e=[]);var r=k5(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=en(r),s=o?[i].concat(i.visualViewport||[],Ff(r)?r:[]):r,c=e.concat(s);return o?c:c.concat(js(oc(s)))}function zf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function uM(t,e){var n=fi(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 w5(t,e,n){return e===Nf?zf(cM(t,n)):To(e)?uM(e,n):zf(dM(Ur(t)))}function fM(t){var e=js(oc(t)),n=["absolute","fixed"].indexOf(ar(t).position)>=0,r=n&&dn(t)?Us(t):t;return To(r)?e.filter(function(o){return To(o)&&f5(o,r)&&zn(o)!=="body"}):[]}function hM(t,e,n,r){var o=e==="clippingParents"?fM(t):[].concat(e),i=[].concat(o,[n]),s=i[0],c=i.reduce(function(a,d){var u=w5(t,d,r);return a.top=Io(u.top,a.top),a.right=rc(u.right,a.right),a.bottom=rc(u.bottom,a.bottom),a.left=Io(u.left,a.left),a},w5(t,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function S5(t){var e=t.reference,n=t.element,r=t.placement,o=r?Un(r):null,i=r?hi(r):null,s=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,a;switch(o){case zt:a={x:s,y:e.y-n.height};break;case qt:a={x:s,y:e.y+e.height};break;case Vt:a={x:e.x+e.width,y:c};break;case Ut:a={x:e.x-n.width,y:c};break;default:a={x:e.x,y:e.y}}var d=o?Bf(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case xo:a[d]=a[d]-(e[u]/2-n[u]/2);break;case ci:a[d]=a[d]+(e[u]/2-n[u]/2);break}}return a}function pi(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,c=n.boundary,a=c===void 0?q2:c,d=n.rootBoundary,u=d===void 0?Nf:d,f=n.elementContext,h=f===void 0?di:f,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,v=g===void 0?0:g,y=m5(typeof v!="number"?v:g5(v,li)),b=h===di?V2:di,E=t.rects.popper,C=t.elements[m?b:h],w=hM(To(C)?C:C.contextElement||Ur(t.elements.popper),a,u,s),I=fi(t.elements.reference),A=S5({reference:I,element:E,placement:o}),O=zf(Object.assign({},E,A)),K=h===di?O:I,B={top:w.top-K.top+y.top,bottom:K.bottom-w.bottom+y.bottom,left:w.left-K.left+y.left,right:K.right-w.right+y.right},F=t.modifiersData.offset;if(h===di&&F){var H=F[o];Object.keys(B).forEach(function(Z){var W=[Vt,qt].indexOf(Z)>=0?1:-1,j=[zt,qt].indexOf(Z)>=0?"y":"x";B[Z]+=H[j]*W})}return B}function pM(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,c=n.flipVariations,a=n.allowedAutoPlacements,d=a===void 0?Mf:a,u=hi(r),f=u?c?Of:Of.filter(function(m){return hi(m)===u}):li,h=f.filter(function(m){return d.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,g){return m[g]=pi(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[Un(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function mM(t){if(Un(t)===nc)return[];var e=sc(t);return[E5(t),e,E5(e)]}function gM(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!0:s,a=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,v=e.options.placement,y=Un(v),b=y===v,E=a||(b||!m?[sc(v)]:mM(v)),C=[v].concat(E).reduce(function(ye,Ce){return ye.concat(Un(Ce)===nc?pM(e,{placement:Ce,boundary:u,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:g}):Ce)},[]),w=e.rects.reference,I=e.rects.popper,A=new Map,O=!0,K=C[0],B=0;B<C.length;B++){var F=C[B],H=Un(F),Z=hi(F)===xo,W=[zt,qt].indexOf(H)>=0,j=W?"width":"height",N=pi(e,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),J=W?Z?Vt:Ut:Z?qt:zt;w[j]>I[j]&&(J=sc(J));var z=sc(J),V=[];if(i&&V.push(N[H]<=0),c&&V.push(N[J]<=0,N[z]<=0),V.every(function(ye){return ye})){K=F,O=!1;break}A.set(F,V)}if(O)for(var te=m?3:1,ae=function(Ce){var Se=C.find(function(ve){var M=A.get(ve);if(M)return M.slice(0,Ce).every(function(D){return D})});if(Se)return K=Se,"break"},pe=te;pe>0;pe--){var me=ae(pe);if(me==="break")break}e.placement!==K&&(e.modifiersData[r]._skip=!0,e.placement=K,e.reset=!0)}}const A5={name:"flip",enabled:!0,phase:"main",fn:gM,requiresIfExists:["offset"],data:{_skip:!1}};function x5(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function T5(t){return[zt,Vt,qt,Ut].some(function(e){return t[e]>=0})}function vM(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=pi(e,{elementContext:"reference"}),c=pi(e,{altBoundary:!0}),a=x5(s,r),d=x5(c,o,i),u=T5(a),f=T5(d);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const I5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vM};function yM(t,e,n){var r=Un(t),o=[Ut,zt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],c=i[1];return s=s||0,c=(c||0)*o,[Ut,Vt].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function bM(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=Mf.reduce(function(u,f){return u[f]=yM(f,e.rects,i),u},{}),c=s[e.placement],a=c.x,d=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=s}const _5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bM};function CM(t){var e=t.state,n=t.name;e.modifiersData[n]=S5({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const N5={name:"popperOffsets",enabled:!0,phase:"read",fn:CM,data:{}};function EM(t){return t==="x"?"y":"x"}function kM(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!1:s,a=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,g=m===void 0?0:m,v=pi(e,{boundary:a,rootBoundary:d,padding:f,altBoundary:u}),y=Un(e.placement),b=hi(e.placement),E=!b,C=Bf(y),w=EM(C),I=e.modifiersData.popperOffsets,A=e.rects.reference,O=e.rects.popper,K=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,B=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(I){if(i){var Z,W=C==="y"?zt:Ut,j=C==="y"?qt:Vt,N=C==="y"?"height":"width",J=I[C],z=J+v[W],V=J-v[j],te=p?-O[N]/2:0,ae=b===xo?A[N]:O[N],pe=b===xo?-O[N]:-A[N],me=e.elements.arrow,ye=p&&me?Pf(me):{width:0,height:0},Ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:p5(),Se=Ce[W],ve=Ce[j],M=Hs(0,A[N],ye[N]),D=E?A[N]/2-te-M-Se-B.mainAxis:ae-M-Se-B.mainAxis,_=E?-A[N]/2+te+M+ve+B.mainAxis:pe+M+ve+B.mainAxis,L=e.elements.arrow&&Us(e.elements.arrow),k=L?C==="y"?L.clientTop||0:L.clientLeft||0:0,S=(Z=F?.[C])!=null?Z:0,R=J+D-S-k,U=J+_-S,Y=Hs(p?rc(z,R):z,J,p?Io(V,U):V);I[C]=Y,H[C]=Y-J}if(c){var G,x=C==="x"?zt:Ut,T=C==="x"?qt:Vt,$=I[w],Q=w==="y"?"height":"width",q=$+v[x],ne=$-v[T],se=[zt,Ut].indexOf(y)!==-1,X=(G=F?.[w])!=null?G:0,re=se?q:$-A[Q]-O[Q]-X+B.altAxis,Ae=se?$+A[Q]+O[Q]-X-B.altAxis:ne,Ne=p&&se?VO(re,$,Ae):Hs(p?re:q,$,p?Ae:ne);I[w]=Ne,H[w]=Ne-$}e.modifiersData[r]=H}}const O5={name:"preventOverflow",enabled:!0,phase:"main",fn:kM,requiresIfExists:["offset"]};function wM(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function SM(t){return t===en(t)||!dn(t)?Rf(t):wM(t)}function AM(t){var e=t.getBoundingClientRect(),n=ui(e.width)/t.offsetWidth||1,r=ui(e.height)/t.offsetHeight||1;return n!==1||r!==1}function xM(t,e,n){n===void 0&&(n=!1);var r=dn(e),o=dn(e)&&AM(e),i=Ur(e),s=fi(t,o,n),c={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((zn(e)!=="body"||Ff(i))&&(c=SM(e)),dn(e)?(a=fi(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=$f(i))),{x:s.left+c.scrollLeft-a.x,y:s.top+c.scrollTop-a.y,width:s.width,height:s.height}}function TM(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var a=e.get(c);a&&o(a)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function IM(t){var e=TM(t);return c5.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function _M(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function NM(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var M5={placement:"bottom",modifiers:[],strategy:"absolute"};function L5(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function D5(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?M5:o;return function(c,a,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},M5,i),modifiersData:{},elements:{reference:c,popper:a},attributes:{},styles:{}},f=[],h=!1,p={state:u,setOptions:function(y){var b=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,b),u.scrollParents={reference:To(c)?js(c):c.contextElement?js(c.contextElement):[],popper:js(a)};var E=IM(NM([].concat(r,u.options.modifiers)));return u.orderedModifiers=E.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var y=u.elements,b=y.reference,E=y.popper;if(L5(b,E)){u.rects={reference:xM(b,Us(E),u.options.strategy==="fixed"),popper:Pf(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(B){return u.modifiersData[B.name]=Object.assign({},B.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var w=u.orderedModifiers[C],I=w.fn,A=w.options,O=A===void 0?{}:A,K=w.name;typeof I=="function"&&(u=I({state:u,options:O,name:K,instance:p})||u)}}}},update:_M(function(){return new Promise(function(v){p.forceUpdate(),v(u)})}),destroy:function(){g(),h=!0}};if(!L5(c,a))return p;p.setOptions(d).then(function(v){!h&&d.onFirstUpdate&&d.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var y=v.name,b=v.options,E=b===void 0?{}:b,C=v.effect;if(typeof C=="function"){var w=C({state:u,name:y,instance:p,options:E}),I=function(){};f.push(w||I)}})}function g(){f.forEach(function(v){return v()}),f=[]}return p}}var OM=[C5,N5,b5,d5,_5,A5,O5,v5,I5],Uf=D5({defaultModifiers:OM});const P5=Object.freeze(Object.defineProperty({__proto__:null,afterMain:i5,afterRead:n5,afterWrite:l5,applyStyles:d5,arrow:v5,auto:nc,basePlacements:li,beforeMain:r5,beforeRead:e5,beforeWrite:s5,bottom:qt,clippingParents:q2,computeStyles:b5,createPopper:Uf,detectOverflow:pi,end:ci,eventListeners:C5,flip:A5,hide:I5,left:Ut,main:o5,modifierPhases:c5,offset:_5,placements:Mf,popper:di,popperGenerator:D5,popperOffsets:N5,preventOverflow:O5,read:t5,reference:V2,right:Vt,start:xo,top:zt,variationPlacements:Of,viewport:Nf,write:a5},Symbol.toStringTag,{value:"Module"}));const Hr=new Map,Hf={set(t,e,n){Hr.has(t)||Hr.set(t,new Map);const r=Hr.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return Hr.has(t)&&Hr.get(t).get(e)||null},remove(t,e){if(!Hr.has(t))return;const n=Hr.get(t);n.delete(e),n.size===0&&Hr.delete(t)}},MM=1e6,LM=1e3,jf="transitionend",B5=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),DM=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),PM=t=>{do t+=Math.floor(Math.random()*MM);while(document.getElementById(t));return t},BM=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),o=Number.parseFloat(n);return!r&&!o?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*LM)},R5=t=>{t.dispatchEvent(new Event(jf))},lr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),jr=t=>lr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(B5(t)):null,mi=t=>{if(!lr(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},Wr=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",$5=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?$5(t.parentNode):null},ac=()=>{},Ws=t=>{t.offsetHeight},F5=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Wf=[],RM=t=>{document.readyState==="loading"?(Wf.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Wf)e()}),Wf.push(t)):t()},un=()=>document.documentElement.dir==="rtl",fn=t=>{RM(()=>{const e=F5();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},Qt=(t,e=[],n=t)=>typeof t=="function"?t.call(...e):n,z5=(t,e,n=!0)=>{if(!n){Qt(t);return}const o=BM(e)+5;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(jf,s),Qt(t))};e.addEventListener(jf,s),setTimeout(()=>{i||R5(e)},o)},Kf=(t,e,n,r)=>{const o=t.length;let i=t.indexOf(e);return i===-1?!n&&r?t[o-1]:t[0]:(i+=n?1:-1,r&&(i=(i+o)%o),t[Math.max(0,Math.min(i,o-1))])},$M=/[^.]*(?=\..*)\.|.*/,FM=/\..*/,zM=/::\d+$/,Yf={};let U5=1;const H5={mouseenter:"mouseover",mouseleave:"mouseout"},UM=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function j5(t,e){return e&&`${e}::${U5++}`||t.uidEvent||U5++}function W5(t){const e=j5(t);return t.uidEvent=e,Yf[e]=Yf[e]||{},Yf[e]}function HM(t,e){return function n(r){return Qf(r,{delegateTarget:t}),n.oneOff&&de.off(t,r.type,e),e.apply(t,[r])}}function jM(t,e,n){return function r(o){const i=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const c of i)if(c===s)return Qf(o,{delegateTarget:s}),r.oneOff&&de.off(t,o.type,e,n),n.apply(s,[o])}}function K5(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function Y5(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=Q5(t);return UM.has(i)||(i=t),[r,o,i]}function G5(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=Y5(e,n,r);e in H5&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=W5(t),d=a[c]||(a[c]={}),u=K5(d,s,i?n:null);if(u){u.oneOff=u.oneOff&&o;return}const f=j5(s,e.replace($M,"")),h=i?jM(t,n,s):HM(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,d[f]=h,t.addEventListener(c,h,i)}function Gf(t,e,n,r,o){const i=K5(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function WM(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Gf(t,e,n,s.callable,s.delegationSelector)}function Q5(t){return t=t.replace(FM,""),H5[t]||t}const de={on(t,e,n,r){G5(t,e,n,r,!1)},one(t,e,n,r){G5(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=Y5(e,n,r),c=s!==e,a=W5(t),d=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(d).length)return;Gf(t,a,s,i,o?n:null);return}if(u)for(const f of Object.keys(a))WM(t,a,f,e.slice(1));for(const[f,h]of Object.entries(d)){const p=f.replace(zM,"");(!c||e.includes(p))&&Gf(t,a,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=F5(),o=Q5(e),i=e!==o;let s=null,c=!0,a=!0,d=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());const u=Qf(new Event(e,{bubbles:c,cancelable:!0}),n);return d&&u.preventDefault(),a&&t.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Qf(t,e={}){for(const[n,r]of Object.entries(e))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}function Z5(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Zf(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const cr={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Zf(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Zf(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1),e[o]=Z5(t.dataset[r])}return e},getDataAttribute(t,e){return Z5(t.getAttribute(`data-bs-${Zf(e)}`))}};class Ks{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=lr(n)?cr.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...lr(n)?cr.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[r,o]of Object.entries(n)){const i=e[r],s=lr(i)?"element":DM(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const KM="5.3.8";class An extends Ks{constructor(e,n){super(),e=jr(e),e&&(this._element=e,this._config=this._getConfig(n),Hf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Hf.remove(this._element,this.constructor.DATA_KEY),de.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){z5(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Hf.get(jr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return KM}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Jf=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return e?e.split(",").map(n=>B5(n)).join(","):null},xe={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!Wr(n)&&mi(n))},getSelectorFromElement(t){const e=Jf(t);return e&&xe.findOne(e)?e:null},getElementFromSelector(t){const e=Jf(t);return e?xe.findOne(e):null},getMultipleElementsFromSelector(t){const e=Jf(t);return e?xe.find(e):[]}},lc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;de.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Wr(this))return;const i=xe.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},YM="alert",J5=".bs.alert",GM=`close${J5}`,QM=`closed${J5}`,ZM="fade",JM="show";class cc extends An{static get NAME(){return YM}close(){if(de.trigger(this._element,GM).defaultPrevented)return;this._element.classList.remove(JM);const n=this._element.classList.contains(ZM);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),de.trigger(this._element,QM),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=cc.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}lc(cc,"close"),fn(cc);const XM="button",qM=".bs.button",VM=".data-api",eL="active",X5='[data-bs-toggle="button"]',tL=`click${qM}${VM}`;class dc extends An{static get NAME(){return XM}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(eL))}static jQueryInterface(e){return this.each(function(){const n=dc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}de.on(document,tL,X5,t=>{t.preventDefault();const e=t.target.closest(X5);dc.getOrCreateInstance(e).toggle()}),fn(dc);const nL="swipe",gi=".bs.swipe",rL=`touchstart${gi}`,oL=`touchmove${gi}`,iL=`touchend${gi}`,sL=`pointerdown${gi}`,aL=`pointerup${gi}`,lL="touch",cL="pen",dL="pointer-event",uL=40,fL={endCallback:null,leftCallback:null,rightCallback:null},hL={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class uc extends Ks{constructor(e,n){super(),this._element=e,!(!e||!uc.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return fL}static get DefaultType(){return hL}static get NAME(){return nL}dispose(){de.off(this._element,gi)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Qt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=uL)return;const n=e/this._deltaX;this._deltaX=0,n&&Qt(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(de.on(this._element,sL,e=>this._start(e)),de.on(this._element,aL,e=>this._end(e)),this._element.classList.add(dL)):(de.on(this._element,rL,e=>this._start(e)),de.on(this._element,oL,e=>this._move(e)),de.on(this._element,iL,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===cL||e.pointerType===lL)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const pL="carousel",Kr=".bs.carousel",q5=".data-api",mL="ArrowLeft",gL="ArrowRight",vL=500,Ys="next",vi="prev",yi="left",fc="right",yL=`slide${Kr}`,Xf=`slid${Kr}`,bL=`keydown${Kr}`,CL=`mouseenter${Kr}`,EL=`mouseleave${Kr}`,kL=`dragstart${Kr}`,wL=`load${Kr}${q5}`,SL=`click${Kr}${q5}`,V5="carousel",hc="active",AL="slide",xL="carousel-item-end",TL="carousel-item-start",IL="carousel-item-next",_L="carousel-item-prev",ey=".active",ty=".carousel-item",NL=ey+ty,OL=".carousel-item img",ML=".carousel-indicators",LL="[data-bs-slide], [data-bs-slide-to]",DL='[data-bs-ride="carousel"]',PL={[mL]:fc,[gL]:yi},BL={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},RL={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Gs extends An{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=xe.findOne(ML,this._element),this._addEventListeners(),this._config.ride===V5&&this.cycle()}static get Default(){return BL}static get DefaultType(){return RL}static get NAME(){return pL}next(){this._slide(Ys)}nextWhenVisible(){!document.hidden&&mi(this._element)&&this.next()}prev(){this._slide(vi)}pause(){this._isSliding&&R5(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){de.one(this._element,Xf,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){de.one(this._element,Xf,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Ys:vi;this._slide(o,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&de.on(this._element,bL,e=>this._keydown(e)),this._config.pause==="hover"&&(de.on(this._element,CL,()=>this.pause()),de.on(this._element,EL,()=>this._maybeEnableCycle())),this._config.touch&&uc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of xe.find(OL,this._element))de.on(r,kL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(yi)),rightCallback:()=>this._slide(this._directionToOrder(fc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),vL+this._config.interval))}};this._swipeHelper=new uc(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=PL[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=xe.findOne(ey,this._indicatorsElement);n.classList.remove(hc),n.removeAttribute("aria-current");const r=xe.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(hc),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),o=e===Ys,i=n||Kf(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>de.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(yL).defaultPrevented||!r||!i)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?TL:xL,f=o?IL:_L;i.classList.add(f),Ws(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(hc),r.classList.remove(hc,f,u),this._isSliding=!1,c(Xf)};this._queueCallback(h,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(AL)}_getActive(){return xe.findOne(NL,this._element)}_getItems(){return xe.find(ty,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return un()?e===yi?vi:Ys:e===yi?Ys:vi}_orderToDirection(e){return un()?e===vi?yi:fc:e===vi?fc:yi}static jQueryInterface(e){return this.each(function(){const n=Gs.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,SL,LL,function(t){const e=xe.getElementFromSelector(this);if(!e||!e.classList.contains(V5))return;t.preventDefault();const n=Gs.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(cr.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),de.on(window,wL,()=>{const t=xe.find(DL);for(const e of t)Gs.getOrCreateInstance(e)}),fn(Gs);const $L="collapse",Qs=".bs.collapse",FL=".data-api",zL=`show${Qs}`,UL=`shown${Qs}`,HL=`hide${Qs}`,jL=`hidden${Qs}`,WL=`click${Qs}${FL}`,qf="show",bi="collapse",pc="collapsing",KL="collapsed",YL=`:scope .${bi} .${bi}`,GL="collapse-horizontal",QL="width",ZL="height",JL=".collapse.show, .collapse.collapsing",Vf='[data-bs-toggle="collapse"]',XL={parent:null,toggle:!0},qL={parent:"(null|element)",toggle:"boolean"};class Zs extends An{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=xe.find(Vf);for(const o of r){const i=xe.getSelectorFromElement(o),s=xe.find(i).filter(c=>c===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return XL}static get DefaultType(){return qL}static get NAME(){return $L}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(JL).filter(c=>c!==this._element).map(c=>Zs.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||de.trigger(this._element,zL).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(bi),this._element.classList.add(pc),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(pc),this._element.classList.add(bi,qf),this._element.style[r]="",de.trigger(this._element,UL)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||de.trigger(this._element,HL).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,Ws(this._element),this._element.classList.add(pc),this._element.classList.remove(bi,qf);for(const o of this._triggerArray){const i=xe.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(pc),this._element.classList.add(bi),de.trigger(this._element,jL)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(qf)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=jr(e.parent),e}_getDimension(){return this._element.classList.contains(GL)?QL:ZL}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Vf);for(const n of e){const r=xe.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=xe.find(YL,this._config.parent);return xe.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(KL,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=Zs.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}de.on(document,WL,Vf,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of xe.getMultipleElementsFromSelector(this))Zs.getOrCreateInstance(e,{toggle:!1}).toggle()}),fn(Zs);const ny="dropdown",_o=".bs.dropdown",eh=".data-api",VL="Escape",ry="Tab",eD="ArrowUp",oy="ArrowDown",tD=2,nD=`hide${_o}`,rD=`hidden${_o}`,oD=`show${_o}`,iD=`shown${_o}`,iy=`click${_o}${eh}`,sy=`keydown${_o}${eh}`,sD=`keyup${_o}${eh}`,Ci="show",aD="dropup",lD="dropend",cD="dropstart",dD="dropup-center",uD="dropdown-center",No='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',fD=`${No}.${Ci}`,mc=".dropdown-menu",hD=".navbar",pD=".navbar-nav",mD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",gD=un()?"top-end":"top-start",vD=un()?"top-start":"top-end",yD=un()?"bottom-end":"bottom-start",bD=un()?"bottom-start":"bottom-end",CD=un()?"left-start":"right-start",ED=un()?"right-start":"left-start",kD="top",wD="bottom",SD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},AD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Hn extends An{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=xe.next(this._element,mc)[0]||xe.prev(this._element,mc)[0]||xe.findOne(mc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return SD}static get DefaultType(){return AD}static get NAME(){return ny}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Wr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!de.trigger(this._element,oD,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(pD))for(const r of[].concat(...document.body.children))de.on(r,"mouseover",ac);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ci),this._element.classList.add(Ci),de.trigger(this._element,iD,e)}}hide(){if(Wr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!de.trigger(this._element,nD,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))de.off(r,"mouseover",ac);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ci),this._element.classList.remove(Ci),this._element.setAttribute("aria-expanded","false"),cr.removeDataAttribute(this._menu,"popper"),de.trigger(this._element,rD,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!lr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${ny.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof P5>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:lr(this._config.reference)?e=jr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=Uf(e,this._menu,n)}_isShown(){return this._menu.classList.contains(Ci)}_getPlacement(){const e=this._parent;if(e.classList.contains(lD))return CD;if(e.classList.contains(cD))return ED;if(e.classList.contains(dD))return kD;if(e.classList.contains(uD))return wD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(aD)?n?vD:gD:n?bD:yD}_detectNavbar(){return this._element.closest(hD)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(cr.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Qt(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:n}){const r=xe.find(mD,this._menu).filter(o=>mi(o));r.length&&Kf(r,n,e===oy,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Hn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===tD||e.type==="keyup"&&e.key!==ry)return;const n=xe.find(fD);for(const r of n){const o=Hn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===ry||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const c={relatedTarget:o._element};e.type==="click"&&(c.clickEvent=e),o._completeHide(c)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===VL,o=[eD,oy].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches(No)?this:xe.prev(this,No)[0]||xe.next(this,No)[0]||xe.findOne(No,e.delegateTarget.parentNode),s=Hn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}de.on(document,sy,No,Hn.dataApiKeydownHandler),de.on(document,sy,mc,Hn.dataApiKeydownHandler),de.on(document,iy,Hn.clearMenus),de.on(document,sD,Hn.clearMenus),de.on(document,iy,No,function(t){t.preventDefault(),Hn.getOrCreateInstance(this).toggle()}),fn(Hn);const ay="backdrop",xD="fade",ly="show",cy=`mousedown.bs.${ay}`,TD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ID={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class dy extends Ks{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return TD}static get DefaultType(){return ID}static get NAME(){return ay}show(e){if(!this._config.isVisible){Qt(e);return}this._append();const n=this._getElement();this._config.isAnimated&&Ws(n),n.classList.add(ly),this._emulateAnimation(()=>{Qt(e)})}hide(e){if(!this._config.isVisible){Qt(e);return}this._getElement().classList.remove(ly),this._emulateAnimation(()=>{this.dispose(),Qt(e)})}dispose(){this._isAppended&&(de.off(this._element,cy),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(xD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=jr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),de.on(e,cy,()=>{Qt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){z5(e,this._getElement(),this._config.isAnimated)}}const _D="focustrap",gc=".bs.focustrap",ND=`focusin${gc}`,OD=`keydown.tab${gc}`,MD="Tab",LD="forward",uy="backward",DD={autofocus:!0,trapElement:null},PD={autofocus:"boolean",trapElement:"element"};class fy extends Ks{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return DD}static get DefaultType(){return PD}static get NAME(){return _D}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),de.off(document,gc),de.on(document,ND,e=>this._handleFocusin(e)),de.on(document,OD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,de.off(document,gc))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=xe.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===uy?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===MD&&(this._lastTabNavDirection=e.shiftKey?uy:LD)}}const hy=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",py=".sticky-top",vc="padding-right",my="margin-right";class th{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,vc,n=>n+e),this._setElementAttributes(hy,vc,n=>n+e),this._setElementAttributes(py,my,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,vc),this._resetElementAttributes(hy,vc),this._resetElementAttributes(py,my)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,n);const c=window.getComputedStyle(s).getPropertyValue(n);s.style.setProperty(n,`${r(Number.parseFloat(c))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&cr.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=cr.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}cr.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(lr(e)){n(e);return}for(const r of xe.find(e,this._element))n(r)}}const BD="modal",hn=".bs.modal",RD=".data-api",$D="Escape",FD=`hide${hn}`,zD=`hidePrevented${hn}`,gy=`hidden${hn}`,vy=`show${hn}`,UD=`shown${hn}`,HD=`resize${hn}`,jD=`click.dismiss${hn}`,WD=`mousedown.dismiss${hn}`,KD=`keydown.dismiss${hn}`,YD=`click${hn}${RD}`,yy="modal-open",GD="fade",by="show",nh="modal-static",QD=".modal.show",ZD=".modal-dialog",JD=".modal-body",XD='[data-bs-toggle="modal"]',qD={backdrop:!0,focus:!0,keyboard:!0},VD={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Yr extends An{constructor(e,n){super(e,n),this._dialog=xe.findOne(ZD,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new th,this._addEventListeners()}static get Default(){return qD}static get DefaultType(){return VD}static get NAME(){return BD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||de.trigger(this._element,vy,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(yy),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||de.trigger(this._element,FD).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(by),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){de.off(window,hn),de.off(this._dialog,hn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new dy({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fy({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=xe.findOne(JD,this._dialog);n&&(n.scrollTop=0),Ws(this._element),this._element.classList.add(by);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,de.trigger(this._element,UD,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){de.on(this._element,KD,e=>{if(e.key===$D){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),de.on(window,HD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),de.on(this._element,WD,e=>{de.one(this._element,jD,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(yy),this._resetAdjustments(),this._scrollBar.reset(),de.trigger(this._element,gy)})}_isAnimated(){return this._element.classList.contains(GD)}_triggerBackdropTransition(){if(de.trigger(this._element,zD).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(nh)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(nh),this._queueCallback(()=>{this._element.classList.remove(nh),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const o=un()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=un()?"paddingRight":"paddingLeft";this._element.style[o]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=Yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}de.on(document,YD,XD,function(t){const e=xe.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),de.one(e,vy,o=>{o.defaultPrevented||de.one(e,gy,()=>{mi(this)&&this.focus()})});const n=xe.findOne(QD);n&&Yr.getInstance(n).hide(),Yr.getOrCreateInstance(e).toggle(this)}),lc(Yr),fn(Yr);const eP="offcanvas",dr=".bs.offcanvas",Cy=".data-api",tP=`load${dr}${Cy}`,nP="Escape",Ey="show",ky="showing",wy="hiding",rP="offcanvas-backdrop",Sy=".offcanvas.show",oP=`show${dr}`,iP=`shown${dr}`,sP=`hide${dr}`,Ay=`hidePrevented${dr}`,xy=`hidden${dr}`,aP=`resize${dr}`,lP=`click${dr}${Cy}`,cP=`keydown.dismiss${dr}`,dP='[data-bs-toggle="offcanvas"]',uP={backdrop:!0,keyboard:!0,scroll:!1},fP={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Gr extends An{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return uP}static get DefaultType(){return fP}static get NAME(){return eP}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||de.trigger(this._element,oP,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new th().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ky);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ey),this._element.classList.remove(ky),de.trigger(this._element,iP,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||de.trigger(this._element,sP).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(wy),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ey,wy),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new th().reset(),de.trigger(this._element,xy)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){de.trigger(this._element,Ay);return}this.hide()},n=!!this._config.backdrop;return new dy({className:rP,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new fy({trapElement:this._element})}_addEventListeners(){de.on(this._element,cP,e=>{if(e.key===nP){if(this._config.keyboard){this.hide();return}de.trigger(this._element,Ay)}})}static jQueryInterface(e){return this.each(function(){const n=Gr.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}de.on(document,lP,dP,function(t){const e=xe.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wr(this))return;de.one(e,xy,()=>{mi(this)&&this.focus()});const n=xe.findOne(Sy);n&&n!==e&&Gr.getInstance(n).hide(),Gr.getOrCreateInstance(e).toggle(this)}),de.on(window,tP,()=>{for(const t of xe.find(Sy))Gr.getOrCreateInstance(t).show()}),de.on(window,aP,()=>{for(const t of xe.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Gr.getOrCreateInstance(t).hide()}),lc(Gr),fn(Gr);const Ty={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},hP=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),pP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,mP=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?hP.has(n)?!!pP.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function gP(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const o=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const c=s.nodeName.toLowerCase();if(!Object.keys(e).includes(c)){s.remove();continue}const a=[].concat(...s.attributes),d=[].concat(e["*"]||[],e[c]||[]);for(const u of a)mP(u,d)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const vP="TemplateFactory",yP={allowList:Ty,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},bP={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},CP={entry:"(string|element|function|null)",selector:"(string|element)"};class EP extends Ks{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return yP}static get DefaultType(){return bP}static get NAME(){return vP}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},CP)}_setContent(e,n,r){const o=xe.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(lr(n)){this._putElementInTemplate(jr(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?gP(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Qt(e,[void 0,this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const kP="tooltip",wP=new Set(["sanitize","allowList","sanitizeFn"]),rh="fade",SP="modal",yc="show",AP=".tooltip-inner",Iy=`.${SP}`,_y="hide.bs.modal",Js="hover",oh="focus",ih="click",xP="manual",TP="hide",IP="hidden",_P="show",NP="shown",OP="inserted",MP="click",LP="focusin",DP="focusout",PP="mouseenter",BP="mouseleave",RP={AUTO:"auto",TOP:"top",RIGHT:un()?"left":"right",BOTTOM:"bottom",LEFT:un()?"right":"left"},$P={allowList:Ty,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},FP={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class jn extends An{constructor(e,n){if(typeof P5>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return $P}static get DefaultType(){return FP}static get NAME(){return kP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),de.off(this._element.closest(Iy),_y,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=de.trigger(this._element,this.constructor.eventName(_P)),r=($5(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),de.trigger(this._element,this.constructor.eventName(OP))),this._popper=this._createPopper(o),o.classList.add(yc),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))de.on(c,"mouseover",ac);const s=()=>{de.trigger(this._element,this.constructor.eventName(NP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||de.trigger(this._element,this.constructor.eventName(TP)).defaultPrevented)return;if(this._getTipElement().classList.remove(yc),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))de.off(o,"mouseover",ac);this._activeTrigger[ih]=!1,this._activeTrigger[oh]=!1,this._activeTrigger[Js]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),de.trigger(this._element,this.constructor.eventName(IP)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(rh,yc),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=PM(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(rh),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new EP({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[AP]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(rh)}_isShown(){return this.tip&&this.tip.classList.contains(yc)}_createPopper(e){const n=Qt(this._config.placement,[this,e,this._element]),r=RP[n.toUpperCase()];return Uf(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return Qt(e,[this._element,this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...Qt(this._config.popperConfig,[void 0,n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")de.on(this._element,this.constructor.eventName(MP),this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[ih]=!(o._isShown()&&o._activeTrigger[ih]),o.toggle()});else if(n!==xP){const r=n===Js?this.constructor.eventName(PP):this.constructor.eventName(LP),o=n===Js?this.constructor.eventName(BP):this.constructor.eventName(DP);de.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?oh:Js]=!0,s._enter()}),de.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?oh:Js]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},de.on(this._element.closest(Iy),_y,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=cr.getDataAttributes(this._element);for(const r of Object.keys(n))wP.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:jr(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(e[n]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=jn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}fn(jn);const zP="popover",UP=".popover-header",HP=".popover-body",jP={...jn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},WP={...jn.DefaultType,content:"(null|string|element|function)"};class Oo extends jn{static get Default(){return jP}static get DefaultType(){return WP}static get NAME(){return zP}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[UP]:this._getTitle(),[HP]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=Oo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}fn(Oo);const KP="scrollspy",sh=".bs.scrollspy",YP=".data-api",GP=`activate${sh}`,Ny=`click${sh}`,QP=`load${sh}${YP}`,ZP="dropdown-item",Ei="active",JP='[data-bs-spy="scroll"]',ah="[href]",XP=".nav, .list-group",Oy=".nav-link",qP=`${Oy}, .nav-item > ${Oy}, .list-group-item`,VP=".dropdown",eB=".dropdown-toggle",tB={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},nB={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class bc extends An{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return tB}static get DefaultType(){return nB}static get NAME(){return KP}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=jr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(de.off(this._config.target,Ny),de.on(this._config.target,Ny,ah,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,o=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const c=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&c){if(r(s),!o)return;continue}!i&&!c&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=xe.find(ah,this._config.target);for(const n of e){if(!n.hash||Wr(n))continue;const r=xe.findOne(decodeURI(n.hash),this._element);mi(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ei),this._activateParents(e),de.trigger(this._element,GP,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(ZP)){xe.findOne(eB,e.closest(VP)).classList.add(Ei);return}for(const n of xe.parents(e,XP))for(const r of xe.prev(n,qP))r.classList.add(Ei)}_clearActiveClass(e){e.classList.remove(Ei);const n=xe.find(`${ah}.${Ei}`,e);for(const r of n)r.classList.remove(Ei)}static jQueryInterface(e){return this.each(function(){const n=bc.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(window,QP,()=>{for(const t of xe.find(JP))bc.getOrCreateInstance(t)}),fn(bc);const rB="tab",Mo=".bs.tab",oB=`hide${Mo}`,iB=`hidden${Mo}`,sB=`show${Mo}`,aB=`shown${Mo}`,lB=`click${Mo}`,cB=`keydown${Mo}`,dB=`load${Mo}`,uB="ArrowLeft",My="ArrowRight",fB="ArrowUp",Ly="ArrowDown",lh="Home",Dy="End",Lo="active",Py="fade",ch="show",hB="dropdown",By=".dropdown-toggle",pB=".dropdown-menu",dh=`:not(${By})`,mB='.list-group, .nav, [role="tablist"]',gB=".nav-item, .list-group-item",vB=`.nav-link${dh}, .list-group-item${dh}, [role="tab"]${dh}`,Ry='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',uh=`${vB}, ${Ry}`,yB=`.${Lo}[data-bs-toggle="tab"], .${Lo}[data-bs-toggle="pill"], .${Lo}[data-bs-toggle="list"]`;class ki extends An{constructor(e){super(e),this._parent=this._element.closest(mB),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),de.on(this._element,cB,n=>this._keydown(n)))}static get NAME(){return rB}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?de.trigger(n,oB,{relatedTarget:e}):null;de.trigger(e,sB,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Lo),this._activate(xe.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(ch);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),de.trigger(e,aB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Py))}_deactivate(e,n){if(!e)return;e.classList.remove(Lo),e.blur(),this._deactivate(xe.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(ch);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),de.trigger(e,iB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Py))}_keydown(e){if(![uB,My,fB,Ly,lh,Dy].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(o=>!Wr(o));let r;if([lh,Dy].includes(e.key))r=n[e.key===lh?0:n.length-1];else{const o=[My,Ly].includes(e.key);r=Kf(n,e.target,o,!0)}r&&(r.focus({preventScroll:!0}),ki.getOrCreateInstance(r).show())}_getChildren(){return xe.find(uh,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=xe.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(hB))return;const o=(i,s)=>{const c=xe.findOne(i,r);c&&c.classList.toggle(s,n)};o(By,Lo),o(pB,ch),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Lo)}_getInnerElement(e){return e.matches(uh)?e:xe.findOne(uh,e)}_getOuterElement(e){return e.closest(gB)||e}static jQueryInterface(e){return this.each(function(){const n=ki.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,lB,Ry,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Wr(this)&&ki.getOrCreateInstance(this).show()}),de.on(window,dB,()=>{for(const t of xe.find(yB))ki.getOrCreateInstance(t)}),fn(ki);const bB="toast",Qr=".bs.toast",CB=`mouseover${Qr}`,EB=`mouseout${Qr}`,kB=`focusin${Qr}`,wB=`focusout${Qr}`,SB=`hide${Qr}`,AB=`hidden${Qr}`,xB=`show${Qr}`,TB=`shown${Qr}`,IB="fade",$y="hide",Cc="show",Ec="showing",_B={animation:"boolean",autohide:"boolean",delay:"number"},NB={animation:!0,autohide:!0,delay:5e3};class wi extends An{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return NB}static get DefaultType(){return _B}static get NAME(){return bB}show(){if(de.trigger(this._element,xB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(IB);const n=()=>{this._element.classList.remove(Ec),de.trigger(this._element,TB),this._maybeScheduleHide()};this._element.classList.remove($y),Ws(this._element),this._element.classList.add(Cc,Ec),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||de.trigger(this._element,SB).defaultPrevented)return;const n=()=>{this._element.classList.add($y),this._element.classList.remove(Ec,Cc),de.trigger(this._element,AB)};this._element.classList.add(Ec),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Cc),super.dispose()}isShown(){return this._element.classList.contains(Cc)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){de.on(this._element,CB,e=>this._onInteraction(e,!0)),de.on(this._element,EB,e=>this._onInteraction(e,!1)),de.on(this._element,kB,e=>this._onInteraction(e,!0)),de.on(this._element,wB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=wi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}lc(wi),fn(wi);function Fy(t,e){return e.value||t.getAttribute("title")||""}const Do={mounted:(t,e)=>{const n=Fy(t,e);n&&t.setAttribute("title",n),new jn(t)},updated:(t,e)=>{const n=jn.getInstance(t);n&&n.dispose();const r=Fy(t,e);r&&t.setAttribute("title",r),new jn(t)},unmounted:t=>{const e=jn.getInstance(t);e&&e.dispose()}},OB={key:0,class:"pills-list__wrapper"},MB={class:"pills-list__ul"},LB={class:"bd-markdown-editor__menu-bottom"},DB={key:1,class:"vr"},zy=l.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:zr.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:""},tokens:{default:[]},modelValue:{}},emits:["update:modelValue","upload","action"],setup(t,{emit:e}){const n=t,r=e,o=()=>{r("upload")},i=l.ref(null),s=eo(n,"modelValue",r),c=[$_,U_,j_,EO.configure({HTMLAttributes:{class:"mention"},suggestion:{...AO(n.tokens||[],i),char:"{",allowSpaces:!0}}),RN.configure({placeholder:n.placeholder}),mO,gN.configure({openOnClick:!1,validate:N=>/^(https?:\/\/|www\.)/i.test(N)})];(n.variant===zr.FULL||n.variant===zr.FORMAT)&&c.push(jN,ZN,XN,uO,fO,hO);const a=P_({content:s.value,extensions:c,onUpdate:({editor:N})=>{const{view:J,state:z}=N,{from:V,to:te}=J.state.selection;if(z.doc.textBetween(V-1,te,"")==" "&&N.getAttributes("link").href!=null&&N.chain().setTextSelection({from:V-1,to:te}).toggleLink({href:N.getAttributes("link").href}).setTextSelection({from:te,to:te}).run(),N.getText().trim()===""){r("update:modelValue","");return}r("update:modelValue",N.getHTML())}});l.watch(()=>n.modelValue,N=>{a.value.getHTML()!==N&&a.value.commands.setContent(N,!0,{preserveWhitespace:"full"})});const d=l.computed(()=>n.state===!1?"is-invalid":null),u=l.computed(()=>E("bold")),f=l.computed(()=>E("italic")),h=l.computed(()=>E("underline")),p=l.computed(()=>E("bulletList")),m=l.computed(()=>E("orderedList")),g=l.computed(()=>E("link")),v=l.computed(()=>n.variant===zr.FULL||n.variant===zr.FORMAT),y=l.computed(()=>n.variant===zr.FULL),b=l.computed(()=>n.variant===zr.FULL||n.variant===zr.BASIC||!n.variant),E=N=>a.value&&a.value.isActive(N)?"active":null,C=l.computed(()=>n.files&&n.files.length>0?Ao(n.apiUrl,n.files,!1):null),w=l.computed(()=>n.files&&n.files.length>0?Ao(n.apiUrl,n.files,!0):null),I=N=>{r("action",{name:"delete-attachment",obj:N})},A=N=>{r("action",{name:"image-attachment",obj:N})},O=l.computed(()=>{if(!a.value)return!1;const{from:N,to:J}=a.value.state.selection;return N!==J}),K=l.computed(()=>O.value?"Voeg een link toe":"Selecteer eerst tekst"),B=l.ref(!1),F=l.ref(""),H=l.ref(null),Z=()=>{F.value=a.value.getAttributes("link").href||"",B.value=!0},W=N=>{if(B.value=!1,!N){a.value.chain().focus().unsetLink().run();return}/^www\./i.test(N)&&(N=`https://${N}`),a.value.chain().focus().toggleLink({href:N}).run()},j=()=>{B.value=!1};return(N,J)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:l.normalizeClass(["bd-markdown-editor",d.value]),ref_key:"wrapperRef",ref:i},[l.createVNode(l.unref(D_),{editor:l.unref(a)},null,8,["editor"]),t.pills?(l.openBlock(),l.createElementBlock("div",OB,[l.createElementVNode("ul",MB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.pills,(z,V)=>(l.openBlock(),l.createElementBlock("li",{key:V,class:"pills-list__li"},[l.createVNode(Na,l.mergeProps({ref_for:!0},z),null,16)]))),128))])])):l.createCommentVNode("",!0),l.renderSlot(N.$slots,"default"),C.value?(l.openBlock(),l.createBlock(Fs,{key:1,files:C.value,"no-download":!0,"show-delete":!0,onDelete:I},null,8,["files"])):l.createCommentVNode("",!0),w.value?(l.openBlock(),l.createBlock(zs,{key:2,files:w.value,"no-download":!0,"show-delete":!0,"fast-download":!1,onDelete:I,onShow:A},null,8,["files"])):l.createCommentVNode("",!0),l.createElementVNode("div",LB,[b.value?(l.openBlock(),l.createBlock(Re,{key:0,variant:"light",type:"button",onClick:o},{default:l.withCtx(()=>[l.createVNode(l.unref(pr))]),_:1})):l.createCommentVNode("",!0),y.value?(l.openBlock(),l.createElementBlock("div",DB)):l.createCommentVNode("",!0),v.value?(l.openBlock(),l.createBlock(Re,{key:2,variant:"light",type:"button",class:l.normalizeClass(u.value),onClick:J[0]||(J[0]=z=>l.unref(a).chain().focus().toggleBold().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Ic))]),_:1},8,["class"])):l.createCommentVNode("",!0),v.value?(l.openBlock(),l.createBlock(Re,{key:3,variant:"light",type:"button",class:l.normalizeClass(f.value),onClick:J[1]||(J[1]=z=>l.unref(a).chain().focus().toggleItalic().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(zc))]),_:1},8,["class"])):l.createCommentVNode("",!0),v.value?(l.openBlock(),l.createBlock(Re,{key:4,variant:"light",type:"button",class:l.normalizeClass(h.value),onClick:J[2]||(J[2]=z=>l.unref(a).chain().focus().toggleUnderline().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Gc))]),_:1},8,["class"])):l.createCommentVNode("",!0),v.value?(l.openBlock(),l.createBlock(Re,{key:5,variant:"light",type:"button",class:l.normalizeClass(p.value),onClick:J[3]||(J[3]=z=>l.unref(a).chain().focus().toggleBulletList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(_c))]),_:1},8,["class"])):l.createCommentVNode("",!0),v.value?(l.openBlock(),l.createBlock(Re,{key:6,variant:"light",type:"button",class:l.normalizeClass(m.value),onClick:J[4]||(J[4]=z=>l.unref(a).chain().focus().toggleOrderedList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Hc))]),_:1},8,["class"])):l.createCommentVNode("",!0),l.withDirectives((l.openBlock(),l.createElementBlock("span",null,[v.value?(l.openBlock(),l.createBlock(Re,{key:0,ref_key:"linkButton",ref:H,variant:"light",type:"button",class:l.normalizeClass(g.value),onClick:Z,disabled:!O.value},{default:l.withCtx(()=>[l.createVNode(l.unref(oa))]),_:1},8,["class","disabled"])):l.createCommentVNode("",!0)])),[[l.unref(Do),K.value]])]),B.value?(l.openBlock(),l.createBlock(MO,{key:3,previousUrl:F.value,onSubmit:W,onCancel:j},null,8,["previousUrl"])):l.createCommentVNode("",!0)],2),l.createVNode(Ta,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),PB={class:"header"},BB={class:"icon-close-wrapper"},RB={class:"navbar"},$B={class:"nav navbar-nav w-100"},FB={class:"nav-item"},zB={class:"nav-item"},fh=l.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=e,r=t,o=l.computed(()=>({active:r.active===!0,inactive:r.active===!1})),i=()=>n("hide"),s=()=>n("signout");return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-mobile-menu",o.value])},[l.createElementVNode("div",PB,[a[0]||(a[0]=l.createElementVNode("div",null,"Menu",-1)),l.createElementVNode("div",BB,[l.createVNode(na,{onClick:i})])]),l.createElementVNode("nav",RB,[l.createElementVNode("ul",$B,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.options,d=>(l.openBlock(),l.createElementBlock("li",FB,[l.createVNode(qr,l.mergeProps({class:"nav-link"},{ref_for:!0},d,{onClick:i}),null,16)]))),256)),l.renderSlot(c.$slots,"special-options"),l.createElementVNode("li",zB,[l.createVNode(qr,{class:"nav-link",text:"Uitloggen",onClick:s})])])])],2))}}),UB={class:"bd-user"},HB={class:"bd-user__information"},jB={class:"text-break"},WB={class:"overflow-x-hidden"},Uy=l.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(t){const e=t,n=l.computed(()=>typeof e.details=="string"?e.details:e.details?.join(" • "));return(r,o)=>(l.openBlock(),l.createElementBlock("div",UB,[e.hideImage?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Ni,l.mergeProps({key:0},e.img,{size:"sm"}),null,16)),l.createElementVNode("div",HB,[l.createElementVNode("header",null,[l.createElementVNode("h5",jB,l.toDisplayString(e.name),1),l.renderSlot(r.$slots,"header-extra")]),l.createElementVNode("span",WB,l.toDisplayString(n.value),1)])]))}}),KB={class:"bd-chat-cloud-card"},YB={class:"bd-chat-cloud-card__header"},GB={class:"bd-chat-cloud-card__body"},QB=["innerHTML"],ZB={class:"bd-chat-cloud-card__footer"},JB={key:0,class:"pills-list__wrapper"},XB={class:"pills-list__ul"},Hy=l.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},username:{default:null},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0},apiUrl:{default:""}},emits:["show-attachment","action"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>n.isSender?"sender":_e),i=l.computed(()=>Ao(n.apiUrl,n.files,!1)),s=l.computed(()=>Ao(n.apiUrl,n.files,!0)),c=()=>{r("action","copy-message")},a=d=>{r("show-attachment",d)};return(d,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-chat-cloud",o.value])},[l.createVNode(Ni,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),l.createElementVNode("div",KB,[l.createElementVNode("div",YB,[l.renderSlot(d.$slots,"header",{},()=>[l.createTextVNode(l.toDisplayString(t.headerTitle),1)]),l.createVNode(Re,{variant:"outline-primary-dark",size:"sm",onClick:c},{default:l.withCtx(()=>[...u[0]||(u[0]=[l.createTextVNode(" kopieer ",-1)])]),_:1})]),l.createElementVNode("div",GB,[l.renderSlot(d.$slots,"body",{},()=>[l.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,QB)])]),l.createElementVNode("div",ZB,[l.renderSlot(d.$slots,"footer",{},()=>[t.pills?(l.openBlock(),l.createElementBlock("div",JB,[l.createElementVNode("ul",XB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.pills,(f,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"pills-list__li"},[l.createVNode(Na,l.mergeProps({ref_for:!0},f),null,16)]))),128))])])):l.createCommentVNode("",!0),i.value&&i.value.length>0?(l.openBlock(),l.createBlock(Fs,{key:1,files:i.value},null,8,["files"])):l.createCommentVNode("",!0),s.value&&s.value.length>0?(l.openBlock(),l.createBlock(zs,{key:2,"fast-download":!0,files:s.value,onShow:a},null,8,["files"])):l.createCommentVNode("",!0)])])])],2))}}),qB=l.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=e,o=l.ref(n.sortDesc),i=()=>{n.active&&(o.value=!o.value)},s=()=>{if(!n.active)return;const a=o.value?"sortDesc":"sortAsc";r(a)},c=l.computed(()=>({"bd-table-sort":!0,active:n.active}));return l.watch(()=>n.active,(a,d)=>{a&&!d&&(o.value=!1,r("sortAsc"))}),s(),(a,d)=>(l.openBlock(),l.createElementBlock("th",{class:l.normalizeClass(c.value),onClick:d[0]||(d[0]=u=>{i(),s()})},[l.createElementVNode("span",null,l.toDisplayString(n.label),1),n.active&&!o.value?(l.openBlock(),l.createBlock(l.unref(jc),{key:0})):n.active&&o.value?(l.openBlock(),l.createBlock(l.unref(Wc),{key:1})):(l.openBlock(),l.createBlock(l.unref(Kc),{key:2}))],2))}}),VB={class:"bd-table"},eR={key:0,class:"table"},tR={key:1},nR={key:2},rR=["onClick"],oR={key:0},iR={key:1,class:"empty-text"},jy=l.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=l.ref(r.items),s=l.ref(r.sortBy),c=h=>s.value=h,a=(h,p,m)=>{const g=p[h],v=m[h];if(g==null)return 1;if(v==null)return-1;const y=g.toString(),b=v.toString();return y.localeCompare(b,void 0,{numeric:!0})},d=h=>{i.value=i.value.sort((m,g)=>a(h,m,g)),o("sort-changed",{sortBy:h,sortDesc:!1})},u=h=>{i.value=i.value.sort((m,g)=>a(h,g,m)),o("sort-changed",{sortBy:h,sortDesc:!0})},f=()=>{i.value=r.items};return l.watch(()=>r.items,h=>{i.value=h}),e({Refresh:f}),(h,p)=>(l.openBlock(),l.createElementBlock("div",VB,[r.items&&r.items.length>0?(l.openBlock(),l.createElementBlock("table",eR,[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.fields,m=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[m.isVisible?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[m.sortable?(l.openBlock(),l.createBlock(qB,{key:0,label:m.label,active:m.key==s.value,sortDesc:r.sortDesc,onClick:g=>c(m.key),onSortAsc:g=>d(m.key),onSortDesc:g=>u(m.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):h.$slots.hasOwnProperty(`header_${m.key}`)?(l.openBlock(),l.createElementBlock("th",tR,[l.renderSlot(h.$slots,`header_${m.key}`)])):(l.openBlock(),l.createElementBlock("th",nR,l.toDisplayString(m.label),1))],64)):l.createCommentVNode("",!0)],64))),256))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,m=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(m)),onClick:g=>o("row-click",m)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,g=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[g.isVisible?(l.openBlock(),l.createElementBlock("td",oR,[h.$slots.hasOwnProperty(g.key)?l.renderSlot(h.$slots,g.key,{key:0,row:m,item:m,value:m[g.key]}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(m[g.key]),1)],64))])):l.createCommentVNode("",!0)],64))),256))],10,rR))),256))])])):(l.openBlock(),l.createElementBlock("p",iR,l.toDisplayString(r.emptyText),1))]))}}),sR=["id"],aR={key:0,class:"toast-body__title"},lR={class:"actions"},cR=["textContent"],dR=["textContent"],uR={class:"icon-wrapper"},fR=["textContent"],hR=["textContent"],Wy=3e4,Ky=5e3,Yy=l.defineComponent({__name:"BDVideoCallToast",props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:["reject-video-call","accept-video-call"],setup(t,{emit:e}){const n=t,r=e;let o=l.ref(!1),i=l.ref(!1),s=null,c=null;const a=l.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),d=l.computed(()=>o.value?[o.value?"is-handled":_e,i.value?"is-handled--success":_e,n.canceled?"is-handled--canceled":_e].join(" "):_e),u=l.computed(()=>n.canceled?n.localization.videoCallCanceled:i.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),f=l.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:i.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));l.watch(()=>n.canceled,()=>{o.value=!0});const h=()=>{const E=a.value,C=document.querySelector(`#${E}`);if(C){C.addEventListener("hide.bs.toast",b);var w={autohide:!0,delay:Wy+Ky};c=wi.getOrCreateInstance(C,w),c.show(),s=window.setTimeout(p,Wy)}};l.onMounted(h);const p=()=>{o.value||g()},m=()=>{g(),y()},g=()=>{o.value||(o.value=!0,r("reject-video-call",n.id))},v=()=>{o.value=!0,i.value=!0,r("accept-video-call",n.id),y()},y=()=>{window.clearTimeout(s),window.setTimeout(()=>c.hide(),Ky)},b=()=>{o.value=!1,i.value=!1};return(E,C)=>(l.openBlock(),l.createElementBlock("div",{id:a.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[l.unref(o)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",aR,l.toDisplayString(n.localization.incomingVideoCall),1)),l.createElementVNode("div",{class:l.normalizeClass(["toast-body__main",d.value])},[l.unref(o)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",uR,[l.createVNode(ea)]),l.createElementVNode("div",null,[l.createElementVNode("p",{textContent:l.toDisplayString(u.value),class:"title"},null,8,fR),l.createElementVNode("p",{textContent:l.toDisplayString(f.value)},null,8,hR)])],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(zd,{value:t.contactInfoReceiver},null,8,["value"]),l.createElementVNode("div",lR,[l.createVNode(Re,{variant:"danger",class:"text-center",onClick:m},{default:l.withCtx(()=>[l.createVNode(Nc),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.rejectVideoCall)},null,8,cR)]),_:1}),l.createVNode(Re,{variant:"success",class:"text-center",onClick:v},{default:l.withCtx(()=>[l.createVNode(ea),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.acceptVideoCall)},null,8,dR)]),_:1})])],64))],2)],8,sR))}}),hh=l.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:sa.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(t){const e=t,{uniqueIdentifier:n}=zo(),r=`__BD__DROPDOWN__${n.value}`,o=l.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=l.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=l.computed(()=>({"aria-labelledby":r})),c=l.ref(),a=l.ref(),d=()=>{c.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(l.openBlock(),l.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=l.withModifiers(()=>{},["stop"]))},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.toggleTag),l.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(e.text),1)]),_:1},16)),l.createElementVNode("ul",l.mergeProps({ref_key:"dropdownMenu",ref:c,class:["dropdown-menu",i.value]},s.value,{onClick:d}),[l.renderSlot(u.$slots,"default")],16)]))}}),pR={class:"row bd-header"},mR={class:"col logo-mix"},gR=["src"],vR={key:1,class:"col header-options"},yR={class:"col bd-btn-settings"},bR={key:2},ph=l.defineComponent({__name:"BDHeader",props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:["click-logo","signout"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>{let f=[];return n.isEmbedded||(n.headerOptions&&(f=f.concat(n.headerOptions)),n.dropdownOptions&&(f=f.concat(n.dropdownOptions))),f}),i=l.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),s=l.ref(void 0),c=()=>{n.isEmbedded||r("click-logo")},a=()=>r("signout"),d=()=>s.value=!0,u=()=>s.value=!1;return(f,h)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("nav",pR,[l.createElementVNode("div",mR,[l.createVNode(Ac,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:c}),n.organizationLogoSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,gR)):l.createCommentVNode("",!0)]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:d},[h[0]||(h[0]=l.createElementVNode("div",null,"Menu",-1)),l.createVNode(Uc)])),i.value?(l.openBlock(),l.createElementBlock("div",vR,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.headerOptions,p=>(l.openBlock(),l.createBlock(Re,{class:"btn-header",to:p.to,variant:"neutral"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.text),1)]),_:2},1032,["to"]))),256))])):l.createCommentVNode("",!0),l.createElementVNode("div",yR,[n.isEmbedded?l.createCommentVNode("",!0):l.renderSlot(f.$slots,"profile-side",{key:0}),n.profileImageSrc?(l.openBlock(),l.createBlock(Ni,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):l.createCommentVNode("",!0),n.isEmbedded?(l.openBlock(),l.createElementBlock("span",bR,l.toDisplayString(n.dropdownMenuTitle),1)):l.createCommentVNode("",!0),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(hh,{key:3,text:n.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.dropdownOptions,(p,m)=>(l.openBlock(),l.createBlock(Ra,l.mergeProps({key:m},{ref_for:!0},p),null,16))),128)),n.hasLogoutOption?(l.openBlock(),l.createBlock(Ra,{key:0,text:"Uitloggen",onClick:a})):l.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(fh,{key:0,active:s.value,options:o.value,onHide:u,onSignout:a},{"special-options":l.withCtx(()=>[l.renderSlot(f.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),CR="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20height='800px'%20width='800px'%20viewBox='0%200%20800%20800'%20fill='none'%20version='1.1'%20id='svg2'%20sodipodi:docname='bell-icon.svg'%20inkscape:version='1.4.2%20(ebf0e94,%202025-05-08)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3csodipodi:namedview%20id='namedview2'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='0.93902601'%20inkscape:cx='361.01236'%20inkscape:cy='425.44082'%20inkscape:window-width='2323'%20inkscape:window-height='1321'%20inkscape:window-x='69'%20inkscape:window-y='-9'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg2'%20inkscape:lockguides='false'%20/%3e%3cpath%20fill='%23394156'%20d='m%20574.7134,517.70839%20c%20-43.02343,-19.42958%20-40.33991,-92.03173%20-40.37166,-94.13603%20l%20-0.86403,-55.08622%20c%20-0.84452,-53.84263%20-32.76289,-101.01787%20-79.52261,-120.73389%20-0.10055,-27.68538%20-26.24787,-50.17713%20-53.95375,-50.17713%20-27.70655,0%20-53.8532,22.49307%20-53.95442,50.17581%20-46.75774,19.71601%20-77.67395,68.62166%20-78.65724,122.46193%20l%20-0.86403,47.31%20c%20-0.0304,2.1043%201.78773,80.75463%20-41.23703,100.1842%20-4.90122,2.21412%20-7.59494,12.9473%20-6.46175,18.20508%201.13187,5.25843%203.98237,14.4119%209.36122,14.4119%20h%20110.87115%20c%202.23595,12.30035%208.05205,23.74336%2016.94754,33.01196%2011.8148,12.30961%2027.4393,19.08888%2043.99257,19.08888%2016.5546,0%2032.1791,-6.77927%2043.99258,-19.08888%208.89681,-9.26925%2014.71291,-20.71294%2016.94754,-33.01196%20h%20110.87115%20c%205.37885,0%208.22869,-9.1528%209.36189,-14.4119%201.13449,-5.25778%20-1.55789,-15.9903%20-6.45912,-18.20375%20z%20m%20-65.45742,-27.74178%20c%204.52282,13.71204%207.25707,16.20673%2016.33845,27.66562%20l%20-250.39475,-0.79275%20c%209.08005,-11.45756%2010.3714,-13.15885%2014.89422,-26.87287%20z%20M%20400.00135,224.00622%20c%2012.53255,0%2019.53015,4.82252%2022.8457,16.30126%20-8.54159,-1.77156%20-13.78747,-2.70563%20-22.8457,-2.70563%20-9.05823,0%20-14.30412,0.93341%20-22.84569,2.70563%203.3162,-11.47808%2010.31381,-16.30126%2022.84569,-16.30126%20z%20m%20-103.58848,199.63494%201.79933,-54.2217%20c%201.96022,-59.06989%2042.68543,-96.67497%20101.78915,-96.67497%2059.10373,0%2099.89499,35.80359%20101.78916,94.87564%20l%201.79933,56.1143%20c%200.0152,1.71731%201.47422,12.5683%201.23243,34.7862%20H%20295.17778%20c%200.71894,-22.23906%201.22119,-33.1218%201.23509,-34.87947%20z%20m%20103.58848,148.96978%20c%20-17.42517,0%20-25.43558,-5.58015%20-30.31694,-22.28624%20h%2060.63257%20c%20-4.88138,16.70609%20-12.88914,22.28624%20-30.31563,22.28624%20z'%20id='path1'%20style='stroke-width:0.899666;stroke-dasharray:none'%20sodipodi:nodetypes='ccscscscccsccsccscccccccscscscsssccccsccs'%20/%3e%3cpath%20fill='%23394156'%20d='m%20397.96944,283.33669%20c%20-49.41855,0%20-89.62361,40.20373%20-89.62361,89.62161%200,6.34354%205.14286,11.4864%2011.48639,11.4864%206.34355,0%2011.48641,-5.14286%2011.48641,-11.4864%200,-36.75076%2029.89938,-66.64948%2066.65148,-66.64948%206.34353,0%2011.48639,-5.14285%2011.48639,-11.4864%20-6.6e-4,-6.3442%20-5.14353,-11.48573%20-11.48706,-11.48573%20z'%20id='path2'%20style='stroke-width:0.904712;stroke-dasharray:none'%20sodipodi:nodetypes='ssssscs'%20/%3e%3c/svg%3e",Gy=async(t,e)=>{const n=t+e,o=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(i)).map(c=>c.toString(16).padStart(2,"0")).join("")};function mh(){const t=()=>new Promise(n=>{if(document.readyState==="complete")return n();window.addEventListener("load",()=>n(),{once:!0})});return{OnWindowLoaded:n=>{l.onMounted(()=>t().then(n))}}}const ER=(t,e,n)=>{const{OnWindowLoaded:r}=mh(),o="lkj298fhGGJihge",i=l.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const d=s(),u=localStorage.getItem(t),f=JSON.parse(u)||[],h=await Gy(d,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const d=s(),u=await Gy(d,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(u)||(h.push(u),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function Qy(t){const{OnWindowLoaded:e}=mh();let n;const r=()=>{n=document.addEventListener("click",i=>{if(!i||!i.target)return;let s=null;if(i.target instanceof Element&&(s=i.target.closest(".popover")),s)return;const c=Oo.getInstance(t.value);c&&c.hide()})};l.onMounted(r);const o=()=>{if(t?.value==null)return;Oo.getInstance(t.value)||new Oo(t.value)};e(o),l.watch(t,o),l.onUnmounted(()=>{if(t?.value!=null){const i=Oo.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const kR=["data-bs-title","data-bs-content"],wR=["title"],SR={key:0,class:"number-circle",textContent:1},AR=l.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>e.getNotification?.linkUrl,{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=ER("notificationsRead",e.userId,n),i=l.ref();Qy(i);const s=l.computed(()=>{const u=e.getNotification;if(!u)return!1;const{isActive:f,startDate:h,endDate:p}=u;if(!f)return!1;const m=new Date(h),g=new Date(p),v=new Date;return v>=m&&v<=g}),c=l.computed(()=>e.getNotification?.tooltip),a=l.computed(()=>e.getNotification?.title),d=l.computed(()=>{const u=e.getNotification;if(!u)return"";const{text:f,linkUrl:h,linkText:p}=u;return`
|
|
1300
1300
|
<p>${f}</p>
|
|
1301
1301
|
<a href='${h}' target='_blank'>${p}</a>
|
|
1302
|
-
`});return(u,f)=>s.value?(l.openBlock(),l.createElementBlock("a",{key:0,ref_key:"notificationButton",ref:i,tabindex:"0",class:"bd-notification-button",role:"button","data-bs-toggle":"popover","data-bs-placement":"bottom","data-bs-title":a.value,"data-bs-content":d.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>l.unref(o)&&l.unref(o)(...h))},[l.withDirectives(l.createElementVNode("img",{src:CR,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,wR),[[l.unref(Do)]]),l.unref(r)?(l.openBlock(),l.createElementBlock("div",SR)):l.createCommentVNode("",!0)],8,kR)):l.createCommentVNode("",!0)}}),xR={class:"profile-side"},TR=["href"],IR={class:"nav-item"},_R=["textContent"],Zy=l.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const{t:e}=Ot(),n=t,r=l.computed(()=>e("practitionerHeader.academyTooltip")),o=l.computed(()=>e("practitionerHeader.academyMenuItem"));return(i,s)=>(l.openBlock(),l.createBlock(ph,null,l.createSlots({"profile-side":l.withCtx(()=>[l.createElementVNode("div",xR,[l.createVNode(AR,{"user-id":n.userId,"get-notification":n.getNotification},null,8,["user-id","get-notification"]),n.academyUrl?(l.openBlock(),l.createElementBlock("a",{key:0,href:n.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[l.withDirectives(l.createVNode(l.unref(Vs),{title:r.value},null,8,["title"]),[[l.unref(Do)]])],8,TR)):l.createCommentVNode("",!0)])]),_:2},[n.academyUrl?{name:"mobile-menu-special-options",fn:l.withCtx(()=>[l.createElementVNode("li",IR,[l.createVNode(qr,{class:"nav-link",to:n.academyUrl},{default:l.withCtx(()=>[l.createVNode(l.unref(Vs)),l.createElementVNode("span",{textContent:l.toDisplayString(o.value)},null,8,_R)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),NR={class:"modal-dialog"},OR={class:"modal-content"},MR={class:"modal-header"},LR={class:"modal-title"},DR=["src"],PR={class:"modal-body"},BR={key:0,class:"modal-footer"},RR=["disabled"],xn=l.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>`modal bd-modal modal-${n.size}`),i=()=>r("submit"),s=()=>r("cancel");return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(o.value),tabindex:"-1"},[l.createElementVNode("div",NR,[l.createElementVNode("div",OR,[l.createElementVNode("div",MR,[l.createElementVNode("h2",LR,[n.titleImage?(l.openBlock(),l.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,DR)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(n.title),1)]),l.renderSlot(c.$slots,"modal-header-space-between"),n.hideCloseButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:s},[a[0]||(a[0]=l.createElementVNode("span",null,"Sluiten",-1)),l.createVNode(l.unref(na))]))]),l.createElementVNode("div",PR,[l.renderSlot(c.$slots,"default")]),t.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",BR,[n.hideFooterSubmitButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:i},l.toDisplayString(n.submitButtonTitle),9,RR)),l.renderSlot(c.$slots,"buttons"),n.hideFooterCancelButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:s,"aria-label":"Annuleren"},l.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),Po=t=>{const e=l.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=Yr.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${t}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(t);if(o instanceof HTMLElement){const i=Yr.getInstance(o);i&&i.hide()}}}};function Xs(t=void 0){const e=c=>i("Succesvol",c,Yo.SUCCESS),n=c=>i("Waarschuwing",c,Yo.WARNING),r=c=>i("Informatie",c,Yo.INFO),o=c=>i("Mislukt",c,Yo.DANGER);function i(c,a,d){const u=`toast-${Ep()}`,f={id:u,variant:d,title:c,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=l.h($d,f),g=l.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${u}`);v&&(wi.getOrCreateInstance(v,t).show(),s(v))}function s(c){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const d=new MutationObserver(a),u={attributes:!0};d.observe(c,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:$R}=Xs();function gh(t){const e=l.ref(null),n=(a,d="serverErrors")=>{let u=[];if(Array.isArray(a?.response?.data)?u=a.response.data.filter(f=>_a(f.ErrorMessage)&&f.ErrorMessage!==_e):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,_a(d))e.value=u;else if(Array.isArray(d)){let f=e.value;for(let h=0;h<d.length;h++)h===d.length-1?f[d[h]]=u:f=f[d[h]]}r(a),s(e)},r=a=>{if(t==null)return;const u=new URL(a.request.responseURL).pathname;if(u in t.error){const f=t.error[u];f&&$R(f)}},o=l.ref(null),i=l.ref(""),s=a=>{Zw(a.value)?o.value=a.value.map(d=>_a(d)?d:d.ErrorMessage):_a(a.value)&&(i.value=a.value)};function c(){e.value=null,o.value=null,i.value=_e}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const FR={key:0},zR={key:1},UR={class:"bd-form-field"},HR={class:"bd-form-field"},Jy=l.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(t,{expose:e,emit:n}){const{showSuccessToast:r,showWarningToast:o}=Xs(),{serverErrors:i,errorMessages:s,errorMessageText:c,MapServerErrors:a,ResetServerErrors:d}=gh(null),{closeModal:u}=Po("phone-number-edit-modal"),f=t,h=n;let p=_e;const m=l.ref(),g=l.ref(null),v=l.ref(),y=l.ref(),b=l.ref(null),E=l.computed(()=>y.value==null||y.value==""),C=()=>{if(g.value=null,d(),!m.value||m.value==p){g.value=!1;return}const $={newPhonenumber:m.value};f.startPhoneNumberUpdate($).then(I).catch(a)},w=()=>{if(!y.value){b.value=!1;return}const $={requestIdentifier:v.value,token:y.value};f.confirmPhoneNumberUpdate($).then(A).catch(a)},I=$=>{g.value=null,r(f.confirmationCodeSentText),v.value=$.data.RequestIdentifier},A=()=>{h("setPhoneNumber",m.value),r(f.editSuccessText),u(),g.value=null,b.value=null},O=$=>{p=$,m.value=p,g.value=null,v.value=void 0,y.value=void 0,b.value=null},W=()=>{O(p),d(),o(f.editCanceledText)};return e({Reset:O}),($,z)=>(l.openBlock(),l.createBlock(xn,{id:"phone-number-edit-modal",class:l.normalizeClass(l.unref(_e)),title:f.modalTitle,submitButtonTitle:f.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:l.unref(i),errorMessages:l.unref(s),errorMessageText:l.unref(c),onSubmit:w,onCancel:W},{default:l.withCtx(()=>[l.unref(c)||l.unref(s)?(l.openBlock(),l.createBlock(Vr,{key:0,variant:"danger"},{default:l.withCtx(()=>[l.unref(s)?(l.openBlock(),l.createElementBlock("div",FR,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),(j,Z)=>(l.openBlock(),l.createElementBlock("li",{key:Z},[l.createVNode(mr),l.createElementVNode("span",null,l.toDisplayString(j),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",zR,l.toDisplayString(l.unref(c)),1))]),_:1})):l.createCommentVNode("",!0),l.createElementVNode("div",UR,[l.createVNode(Cr,{id:"form-input-phone-number",label:f.phoneNumberLabel,modelValue:m.value,"onUpdate:modelValue":z[0]||(z[0]=j=>m.value=j),state:g.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":f.phoneNumberUnchangedText},{default:l.withCtx(()=>[l.createVNode(Re,{textContent:l.toDisplayString(f.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:C},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),l.createVNode(Re,{textContent:l.toDisplayString(f.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:C},null,8,["textContent"])]),l.createElementVNode("div",HR,[v.value?(l.openBlock(),l.createBlock(Cr,{key:0,label:f.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":z[1]||(z[1]=j=>y.value=j),state:b.value,"invalid-feedback-text":f.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):l.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}}),Xy=(t,e,n,r,o,i)=>{const s=l.ref(null),c=l.ref(null),a=l.ref(!1),d=l.ref(null),{showModal:u,closeModal:f}=Po("session-time-out-modal"),h=l.computed(()=>s.value&&t?t-(s.value+1):0),p=l.computed(()=>c.value?60-c.value:0),m=l.computed(()=>a.value),g=()=>{d.value=setInterval(y,1e3),r(d.value)},v=()=>{d.value&&clearInterval(d.value)},y=()=>{s.value=Kt().diff(n(),"m"),c.value=Kt().subtract(s.value,"m").diff(n(),"s");const O=t??Number.MAX_SAFE_INTEGER,W=e??0;s.value>=O?(a.value=!0,u(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=b):s.value>=O-W?u():f()},b=O=>{O.stopPropagation(),C()},E=()=>{o(),v(),s.value=null,c.value=null,g()},C=()=>{v(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},w=()=>{a.value?C():E()},I=()=>{C()},A=()=>{a.value?C():f()};return l.onMounted(()=>{const O=document.getElementById("session-time-out-modal");O&&O.addEventListener("hidden.bs.modal",w),v(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:I,OnSubmit:A}},qy=l.defineComponent({__name:"BDSessionTimeOutModal",props:["expiredTitle","expiredMessage","expiredButtonText","almostExpiredTitle","almostExpiredMessage","almostExpiredButtonText","almostExpiredCancelButtonText","threshold","warningThreshold","getTime","setTaskId","setNewTime","logout","hideCancelButton"],setup(t){const e=t,{IsExpired:n,Minutes:r,Seconds:o,OnLogOut:i,OnSubmit:s}=Xy(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),c=l.computed(()=>n.value?e.expiredTitle:e.almostExpiredTitle),a=l.computed(()=>n.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),d=l.computed(()=>e.hideCancelButton||n.value),u=l.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(l.openBlock(),l.createBlock(xn,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":d.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":u.value,size:"md",onSubmit:l.unref(s),onCancel:l.unref(i)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}}),Vy={__name:"BDConfirmationModal",props:["modalId","modalTitle","description","submitButtonText","cancelButtonText"],setup(t,{expose:e}){const n=t,{closeModal:r,showModal:o}=Po(n.modalId);let i=l.ref(null);e({Confirm:()=>Qw(this,void 0,void 0,function*(){return o(),new Promise(d=>i.value=d)})});const c=()=>{r(),i.value(!0)},a=()=>i.value(!1);return(d,u)=>(l.openBlock(),l.createBlock(xn,{id:n.modalId,title:n.modalTitle,"submit-button-title":n.submitButtonText,"close-button-title":n.cancelButtonText,"hide-close-button":!0,size:"md",onSubmit:c,onCancel:a},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(n.description),1)]),_:1},8,["id","title","submit-button-title","close-button-title"]))}},e3={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Ot(),r=l.ref(!1),o=l.ref(!1),i=e,s=()=>i("update:isConcluded",r.value),c=()=>i("update:isUnread",o.value);return(a,d)=>(l.openBlock(),l.createBlock(xn,{id:"assign-conversation-modal",title:l.unref(n)("assignConversationModal.title"),submitButtonTitle:l.unref(n)("assignConversationModal.submitButton")},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"body"),l.createVNode(ts,null,{default:l.withCtx(()=>[l.createVNode(Er,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=u=>r.value=u),onChange:s},{default:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(n)("assignConversationModal.conclude")),1),l.withDirectives((l.openBlock(),l.createBlock(Re,{variant:"placeholder",class:"btn-tooltip",title:l.unref(n)("assignConversationModal.concludeTooltip")},{default:l.withCtx(()=>[l.createVNode(mr)]),_:1},8,["title"])),[[l.unref(Do)]])]),_:1},8,["modelValue"])]),_:1}),l.createVNode(ts,null,{default:l.withCtx(()=>[l.createVNode(Er,{modelValue:o.value,"onUpdate:modelValue":d[1]||(d[1]=u=>o.value=u),onChange:c},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("assignConversationModal.makeUnread")),1)]),_:1},8,["modelValue"])]),_:1}),l.renderSlot(a.$slots,"footer")]),_:3},8,["title","submitButtonTitle"]))}},t3=l.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const{closeModal:n}=Po("attachment-upload-modal"),{t:r}=Ot(),o=t,i=e,s=()=>{i("on-submit",a.value),a.value=[],n()},c=()=>{i("cancel"),a.value=[]},a=l.ref([]),d=l.computed(()=>r("attachmentUploadModal.title")),u=l.computed(()=>r("attachmentUploadModal.submitButton")),f=l.computed(()=>r("attachmentUploadModal.infoMessage")),h=l.computed(()=>r("attachmentUploadModal.addAttachmentButton")),p=l.computed(()=>r("attachmentUploadModal.errorMessage")),m=l.computed(()=>r("attachmentUploadModal.fileTooBigErrorMessage")),g=l.computed(()=>r("attachmentUploadModal.fileSizeExceededMessage"));return(v,y)=>(l.openBlock(),l.createBlock(xn,{id:"attachment-upload-modal",title:d.value,"submit-button-title":u.value,onSubmit:s,onCancel:c},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(f.value),1),l.createVNode(Kd,{modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=b=>a.value=b),"button-text":h.value,"error-message":p.value,multiple:!0,"file-size-exceeded-message":m.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:o.dropzoneUrl,tag:"div",token:o.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),l.createElementVNode("p",null,l.toDisplayString(g.value),1),l.renderSlot(v.$slots,"default")]),_:3},8,["title","submit-button-title"]))}});var jR=Object.defineProperty,WR=Object.defineProperties,KR=Object.getOwnPropertyDescriptors,n3=Object.getOwnPropertySymbols,YR=Object.prototype.hasOwnProperty,GR=Object.prototype.propertyIsEnumerable,r3=(t,e,n)=>e in t?jR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Si=(t,e)=>{for(var n in e||(e={}))YR.call(e,n)&&r3(t,n,e[n]);if(n3)for(var n of n3(e))GR.call(e,n)&&r3(t,n,e[n]);return t},o3=(t,e)=>WR(t,KR(e));const QR={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:o,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},ZR={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},JR={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},vh=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},XR={},qR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},VR=l.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),e$=[VR];function t$(t,e){return l.openBlock(),l.createElementBlock("svg",qR,e$)}const n$=vh(XR,[["render",t$]]),r$={},o$={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},i$=l.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),s$=[i$];function a$(t,e){return l.openBlock(),l.createElementBlock("svg",o$,s$)}const l$=vh(r$,[["render",a$]]),i3={Deselect:n$,OpenIndicator:l$},c$={mounted(t,{instance:e}){if(e.appendToBody){const{height:n,top:r,left:o,width:i}=e.$refs.toggle.getBoundingClientRect();let s=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;t.unbindPosition=e.calculatePosition(t,e,{width:i+"px",left:s+o+"px",top:c+r+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:e}){e.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function d$(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let u$=0;function f$(){return++u$}const h$={components:Si({},i3),directives:{appendToBody:c$},mixins:[QR,ZR,JR],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
|
|
1302
|
+
`});return(u,f)=>s.value?(l.openBlock(),l.createElementBlock("a",{key:0,ref_key:"notificationButton",ref:i,tabindex:"0",class:"bd-notification-button",role:"button","data-bs-toggle":"popover","data-bs-placement":"bottom","data-bs-title":a.value,"data-bs-content":d.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>l.unref(o)&&l.unref(o)(...h))},[l.withDirectives(l.createElementVNode("img",{src:CR,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,wR),[[l.unref(Do)]]),l.unref(r)?(l.openBlock(),l.createElementBlock("div",SR)):l.createCommentVNode("",!0)],8,kR)):l.createCommentVNode("",!0)}}),xR={class:"profile-side"},TR=["href"],IR={class:"nav-item"},_R=["textContent"],Zy=l.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const{t:e}=Ot(),n=t,r=l.computed(()=>e("practitionerHeader.academyTooltip")),o=l.computed(()=>e("practitionerHeader.academyMenuItem"));return(i,s)=>(l.openBlock(),l.createBlock(ph,null,l.createSlots({"profile-side":l.withCtx(()=>[l.createElementVNode("div",xR,[l.createVNode(AR,{"user-id":n.userId,"get-notification":n.getNotification},null,8,["user-id","get-notification"]),n.academyUrl?(l.openBlock(),l.createElementBlock("a",{key:0,href:n.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[l.withDirectives(l.createVNode(l.unref(Vs),{title:r.value},null,8,["title"]),[[l.unref(Do)]])],8,TR)):l.createCommentVNode("",!0)])]),_:2},[n.academyUrl?{name:"mobile-menu-special-options",fn:l.withCtx(()=>[l.createElementVNode("li",IR,[l.createVNode(qr,{class:"nav-link",to:n.academyUrl},{default:l.withCtx(()=>[l.createVNode(l.unref(Vs)),l.createElementVNode("span",{textContent:l.toDisplayString(o.value)},null,8,_R)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),NR={class:"modal-dialog"},OR={class:"modal-content"},MR={class:"modal-header"},LR={class:"modal-title"},DR=["src"],PR={class:"modal-body"},BR={key:0,class:"modal-footer"},RR=["disabled"],xn=l.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>`modal bd-modal modal-${n.size}`),i=()=>r("submit"),s=()=>r("cancel");return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(o.value),tabindex:"-1"},[l.createElementVNode("div",NR,[l.createElementVNode("div",OR,[l.createElementVNode("div",MR,[l.createElementVNode("h2",LR,[n.titleImage?(l.openBlock(),l.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,DR)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(n.title),1)]),l.renderSlot(c.$slots,"modal-header-space-between"),n.hideCloseButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:s},[a[0]||(a[0]=l.createElementVNode("span",null,"Sluiten",-1)),l.createVNode(l.unref(na))]))]),l.createElementVNode("div",PR,[l.renderSlot(c.$slots,"default")]),t.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",BR,[n.hideFooterSubmitButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:i},l.toDisplayString(n.submitButtonTitle),9,RR)),l.renderSlot(c.$slots,"buttons"),n.hideFooterCancelButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:s,"aria-label":"Annuleren"},l.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),Po=t=>{const e=l.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=Yr.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${t}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(t);if(o instanceof HTMLElement){const i=Yr.getInstance(o);i&&i.hide()}}}};function Xs(t=void 0){const e=c=>i("Succesvol",c,Yo.SUCCESS),n=c=>i("Waarschuwing",c,Yo.WARNING),r=c=>i("Informatie",c,Yo.INFO),o=c=>i("Mislukt",c,Yo.DANGER);function i(c,a,d){const u=`toast-${Ep()}`,f={id:u,variant:d,title:c,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=l.h($d,f),g=l.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${u}`);v&&(wi.getOrCreateInstance(v,t).show(),s(v))}function s(c){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const d=new MutationObserver(a),u={attributes:!0};d.observe(c,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:$R}=Xs();function gh(t){const e=l.ref(null),n=(a,d="serverErrors")=>{let u=[];if(Array.isArray(a?.response?.data)?u=a.response.data.filter(f=>_a(f.ErrorMessage)&&f.ErrorMessage!==_e):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,_a(d))e.value=u;else if(Array.isArray(d)){let f=e.value;for(let h=0;h<d.length;h++)h===d.length-1?f[d[h]]=u:f=f[d[h]]}r(a),s(e)},r=a=>{if(t==null)return;const u=new URL(a.request.responseURL).pathname;if(u in t.error){const f=t.error[u];f&&$R(f)}},o=l.ref(null),i=l.ref(""),s=a=>{Zw(a.value)?o.value=a.value.map(d=>_a(d)?d:d.ErrorMessage):_a(a.value)&&(i.value=a.value)};function c(){e.value=null,o.value=null,i.value=_e}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const FR={key:0},zR={key:1},UR={class:"bd-form-field"},HR={class:"bd-form-field"},Jy=l.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(t,{expose:e,emit:n}){const{showSuccessToast:r,showWarningToast:o}=Xs(),{serverErrors:i,errorMessages:s,errorMessageText:c,MapServerErrors:a,ResetServerErrors:d}=gh(null),{closeModal:u}=Po("phone-number-edit-modal"),f=t,h=n;let p=_e;const m=l.ref(),g=l.ref(null),v=l.ref(),y=l.ref(),b=l.ref(null),E=l.computed(()=>y.value==null||y.value==""),C=()=>{if(g.value=null,d(),!m.value||m.value==p){g.value=!1;return}const B={newPhonenumber:m.value};f.startPhoneNumberUpdate(B).then(I).catch(a)},w=()=>{if(!y.value){b.value=!1;return}const B={requestIdentifier:v.value,token:y.value};f.confirmPhoneNumberUpdate(B).then(A).catch(a)},I=B=>{g.value=null,r(f.confirmationCodeSentText),v.value=B.data.RequestIdentifier},A=()=>{h("setPhoneNumber",m.value),r(f.editSuccessText),u(),g.value=null,b.value=null},O=B=>{p=B,m.value=p,g.value=null,v.value=void 0,y.value=void 0,b.value=null},K=()=>{O(p),d(),o(f.editCanceledText)};return e({Reset:O}),(B,F)=>(l.openBlock(),l.createBlock(xn,{id:"phone-number-edit-modal",class:l.normalizeClass(l.unref(_e)),title:f.modalTitle,submitButtonTitle:f.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:l.unref(i),errorMessages:l.unref(s),errorMessageText:l.unref(c),onSubmit:w,onCancel:K},{default:l.withCtx(()=>[l.unref(c)||l.unref(s)?(l.openBlock(),l.createBlock(Vr,{key:0,variant:"danger"},{default:l.withCtx(()=>[l.unref(s)?(l.openBlock(),l.createElementBlock("div",FR,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),(H,Z)=>(l.openBlock(),l.createElementBlock("li",{key:Z},[l.createVNode(mr),l.createElementVNode("span",null,l.toDisplayString(H),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",zR,l.toDisplayString(l.unref(c)),1))]),_:1})):l.createCommentVNode("",!0),l.createElementVNode("div",UR,[l.createVNode(Cr,{id:"form-input-phone-number",label:f.phoneNumberLabel,modelValue:m.value,"onUpdate:modelValue":F[0]||(F[0]=H=>m.value=H),state:g.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":f.phoneNumberUnchangedText},{default:l.withCtx(()=>[l.createVNode(Re,{textContent:l.toDisplayString(f.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:C},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),l.createVNode(Re,{textContent:l.toDisplayString(f.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:C},null,8,["textContent"])]),l.createElementVNode("div",HR,[v.value?(l.openBlock(),l.createBlock(Cr,{key:0,label:f.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":F[1]||(F[1]=H=>y.value=H),state:b.value,"invalid-feedback-text":f.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):l.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}}),Xy=(t,e,n,r,o,i)=>{const s=l.ref(null),c=l.ref(null),a=l.ref(!1),d=l.ref(null),{showModal:u,closeModal:f}=Po("session-time-out-modal"),h=l.computed(()=>s.value&&t?t-(s.value+1):0),p=l.computed(()=>c.value?60-c.value:0),m=l.computed(()=>a.value),g=()=>{d.value=setInterval(y,1e3),r(d.value)},v=()=>{d.value&&clearInterval(d.value)},y=()=>{s.value=Kt().diff(n(),"m"),c.value=Kt().subtract(s.value,"m").diff(n(),"s");const O=t??Number.MAX_SAFE_INTEGER,K=e??0;s.value>=O?(a.value=!0,u(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=b):s.value>=O-K?u():f()},b=O=>{O.stopPropagation(),C()},E=()=>{o(),v(),s.value=null,c.value=null,g()},C=()=>{v(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},w=()=>{a.value?C():E()},I=()=>{C()},A=()=>{a.value?C():f()};return l.onMounted(()=>{const O=document.getElementById("session-time-out-modal");O&&O.addEventListener("hidden.bs.modal",w),v(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:I,OnSubmit:A}},qy=l.defineComponent({__name:"BDSessionTimeOutModal",props:["expiredTitle","expiredMessage","expiredButtonText","almostExpiredTitle","almostExpiredMessage","almostExpiredButtonText","almostExpiredCancelButtonText","threshold","warningThreshold","getTime","setTaskId","setNewTime","logout","hideCancelButton"],setup(t){const e=t,{IsExpired:n,Minutes:r,Seconds:o,OnLogOut:i,OnSubmit:s}=Xy(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),c=l.computed(()=>n.value?e.expiredTitle:e.almostExpiredTitle),a=l.computed(()=>n.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),d=l.computed(()=>e.hideCancelButton||n.value),u=l.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(l.openBlock(),l.createBlock(xn,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":d.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":u.value,size:"md",onSubmit:l.unref(s),onCancel:l.unref(i)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}}),Vy={__name:"BDConfirmationModal",props:["modalId","modalTitle","description","submitButtonText","cancelButtonText"],setup(t,{expose:e}){const n=t,{closeModal:r,showModal:o}=Po(n.modalId);let i=l.ref(null);e({Confirm:()=>Qw(this,void 0,void 0,function*(){return o(),new Promise(d=>i.value=d)})});const c=()=>{r(),i.value(!0)},a=()=>i.value(!1);return(d,u)=>(l.openBlock(),l.createBlock(xn,{id:n.modalId,title:n.modalTitle,"submit-button-title":n.submitButtonText,"close-button-title":n.cancelButtonText,"hide-close-button":!0,size:"md",onSubmit:c,onCancel:a},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(n.description),1)]),_:1},8,["id","title","submit-button-title","close-button-title"]))}},e3={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Ot(),r=l.ref(!1),o=l.ref(!1),i=e,s=()=>i("update:isConcluded",r.value),c=()=>i("update:isUnread",o.value);return(a,d)=>(l.openBlock(),l.createBlock(xn,{id:"assign-conversation-modal",title:l.unref(n)("assignConversationModal.title"),submitButtonTitle:l.unref(n)("assignConversationModal.submitButton")},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"body"),l.createVNode(ts,null,{default:l.withCtx(()=>[l.createVNode(Er,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=u=>r.value=u),onChange:s},{default:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(n)("assignConversationModal.conclude")),1),l.withDirectives((l.openBlock(),l.createBlock(Re,{variant:"placeholder",class:"btn-tooltip",title:l.unref(n)("assignConversationModal.concludeTooltip")},{default:l.withCtx(()=>[l.createVNode(mr)]),_:1},8,["title"])),[[l.unref(Do)]])]),_:1},8,["modelValue"])]),_:1}),l.createVNode(ts,null,{default:l.withCtx(()=>[l.createVNode(Er,{modelValue:o.value,"onUpdate:modelValue":d[1]||(d[1]=u=>o.value=u),onChange:c},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("assignConversationModal.makeUnread")),1)]),_:1},8,["modelValue"])]),_:1}),l.renderSlot(a.$slots,"footer")]),_:3},8,["title","submitButtonTitle"]))}},t3=l.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const{closeModal:n}=Po("attachment-upload-modal"),{t:r}=Ot(),o=t,i=e,s=()=>{i("on-submit",a.value),a.value=[],n()},c=()=>{i("cancel"),a.value=[]},a=l.ref([]),d=l.computed(()=>r("attachmentUploadModal.title")),u=l.computed(()=>r("attachmentUploadModal.submitButton")),f=l.computed(()=>r("attachmentUploadModal.infoMessage")),h=l.computed(()=>r("attachmentUploadModal.addAttachmentButton")),p=l.computed(()=>r("attachmentUploadModal.errorMessage")),m=l.computed(()=>r("attachmentUploadModal.fileTooBigErrorMessage")),g=l.computed(()=>r("attachmentUploadModal.fileSizeExceededMessage"));return(v,y)=>(l.openBlock(),l.createBlock(xn,{id:"attachment-upload-modal",title:d.value,"submit-button-title":u.value,onSubmit:s,onCancel:c},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(f.value),1),l.createVNode(Kd,{modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=b=>a.value=b),"button-text":h.value,"error-message":p.value,multiple:!0,"file-size-exceeded-message":m.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:o.dropzoneUrl,tag:"div",token:o.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),l.createElementVNode("p",null,l.toDisplayString(g.value),1),l.renderSlot(v.$slots,"default")]),_:3},8,["title","submit-button-title"]))}});var jR=Object.defineProperty,WR=Object.defineProperties,KR=Object.getOwnPropertyDescriptors,n3=Object.getOwnPropertySymbols,YR=Object.prototype.hasOwnProperty,GR=Object.prototype.propertyIsEnumerable,r3=(t,e,n)=>e in t?jR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Si=(t,e)=>{for(var n in e||(e={}))YR.call(e,n)&&r3(t,n,e[n]);if(n3)for(var n of n3(e))GR.call(e,n)&&r3(t,n,e[n]);return t},o3=(t,e)=>WR(t,KR(e));const QR={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:o,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},ZR={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},JR={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},vh=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},XR={},qR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},VR=l.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),e$=[VR];function t$(t,e){return l.openBlock(),l.createElementBlock("svg",qR,e$)}const n$=vh(XR,[["render",t$]]),r$={},o$={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},i$=l.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),s$=[i$];function a$(t,e){return l.openBlock(),l.createElementBlock("svg",o$,s$)}const l$=vh(r$,[["render",a$]]),i3={Deselect:n$,OpenIndicator:l$},c$={mounted(t,{instance:e}){if(e.appendToBody){const{height:n,top:r,left:o,width:i}=e.$refs.toggle.getBoundingClientRect();let s=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;t.unbindPosition=e.calculatePosition(t,e,{width:i+"px",left:s+o+"px",top:c+r+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:e}){e.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function d$(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let u$=0;function f$(){return++u$}const h$={components:Si({},i3),directives:{appendToBody:c$},mixins:[QR,ZR,JR],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
|
|
1303
1303
|
https://vue-select.org/api/props.html#getoptionlabel`):t}},getOptionKey:{type:Function,default(t){if(typeof t!="object")return t;try{return t.hasOwnProperty("id")?t.id:d$(t)}catch(e){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
|
1304
|
-
https://vue-select.org/api/props.html#getoptionkey`,t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,e,n){return(e||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,e){return t.filter(n=>{let r=this.getOptionLabel(n);return typeof r=="number"&&(r=r.toString()),this.filterBy(n,r,e)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:e}){return t&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,e)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,e,{width:n,top:r,left:o}){t.style.top=r,t.style.left=o,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:e,mutableLoading:n}){return t?!1:e&&!n}},uid:{type:[String,Number],default:()=>f$()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:Si({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:o3(Si({},t),{deselect:this.deselect}),footer:o3(Si({},t),{deselect:this.deselect})}},childComponents(){return Si(Si({},i3),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||e.unshift(n)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,e){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(e=>this.reduce(e)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const e=t.target!==this.searchEl;e&&t.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(r=>r.contains(t.target)||r===t.target)){t.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(e=>this.optionComparator(e,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue(t){const e=r=>JSON.stringify(this.reduce(r))===JSON.stringify(t),n=[...this.options,...this.pushedTags].filter(e);return n.length===1?n[0]:n.find(r=>this.optionComparator(r,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(e=>this.optionComparator(e,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const e=o=>(o.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:o=>this.maybeDeleteValue(),9:o=>this.onTab(),27:o=>this.onEscape(),38:o=>(o.preventDefault(),this.typeAheadUp()),40:o=>(o.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(o=>n[o]=e);const r=this.mapKeydown(n,this);if(typeof r[t.keyCode]=="function")return r[t.keyCode](t)}}},p$=["dir"],m$=["id","aria-expanded","aria-owns"],g$={ref:"selectedOptions",class:"vs__selected-options"},v$=["disabled","title","aria-label","onClick"],y$={ref:"actions",class:"vs__actions"},b$=["disabled"],C$={class:"vs__spinner"},E$=["id"],k$=["id","aria-selected","onMouseover","onClick"],w$={key:0,class:"vs__no-options"},S$=l.createTextVNode(" Sorry, no matching options. "),A$=["id"];function x$(t,e,n,r,o,i){const s=l.resolveDirective("append-to-body");return l.openBlock(),l.createElementBlock("div",{dir:n.dir,class:l.normalizeClass(["v-select",i.stateClasses])},[l.renderSlot(t.$slots,"header",l.normalizeProps(l.guardReactiveProps(i.scope.header))),l.createElementVNode("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=c=>i.toggleDropdown(c))},[l.createElementVNode("div",g$,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.selectedValue,(c,a)=>l.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(c),deselect:i.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(l.openBlock(),l.createElementBlock("span",{key:n.getOptionKey(c),class:"vs__selected"},[l.renderSlot(t.$slots,"selected-option",l.normalizeProps(l.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[l.createTextVNode(l.toDisplayString(n.getOptionLabel(c)),1)]),n.multiple?(l.openBlock(),l.createElementBlock("button",{key:0,ref_for:!0,ref:d=>o.deselectButtons[a]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:d=>i.deselect(c)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,v$)):l.createCommentVNode("",!0)]))])),256)),l.renderSlot(t.$slots,"search",l.normalizeProps(l.guardReactiveProps(i.scope.search)),()=>[l.createElementVNode("input",l.mergeProps({class:"vs__search"},i.scope.search.attributes,l.toHandlers(i.scope.search.events)),null,16)])],512),l.createElementVNode("div",y$,[l.withDirectives(l.createElementVNode("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...c)=>i.clearSelection&&i.clearSelection(...c))},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,b$),[[l.vShow,i.showClearButton]]),l.renderSlot(t.$slots,"open-indicator",l.normalizeProps(l.guardReactiveProps(i.scope.openIndicator)),()=>[n.noDrop?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.OpenIndicator),l.normalizeProps(l.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),l.renderSlot(t.$slots,"spinner",l.normalizeProps(l.guardReactiveProps(i.scope.spinner)),()=>[l.withDirectives(l.createElementVNode("div",C$,"Loading...",512),[[l.vShow,t.mutableLoading]])])],512)],40,m$),l.createVNode(l.Transition,{name:n.transition},{default:l.withCtx(()=>[i.dropdownOpen?l.withDirectives((l.openBlock(),l.createElementBlock("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=l.withModifiers((...c)=>i.onMousedown&&i.onMousedown(...c),["prevent"])),onMouseup:e[3]||(e[3]=(...c)=>i.onMouseUp&&i.onMouseUp(...c))},[l.renderSlot(t.$slots,"list-header",l.normalizeProps(l.guardReactiveProps(i.scope.listHeader))),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.filteredOptions,(c,a)=>(l.openBlock(),l.createElementBlock("li",{id:`vs${n.uid}__option-${a}`,key:n.getOptionKey(c),role:"option",class:l.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(c)&&a===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(c),"vs__dropdown-option--highlight":a===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(c)}]),"aria-selected":a===t.typeAheadPointer?!0:null,onMouseover:d=>n.selectable(c)?t.typeAheadPointer=a:null,onClick:l.withModifiers(d=>n.selectable(c)?i.select(c):null,["prevent","stop"])},[l.renderSlot(t.$slots,"option",l.normalizeProps(l.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[l.createTextVNode(l.toDisplayString(n.getOptionLabel(c)),1)])],42,k$))),128)),i.filteredOptions.length===0?(l.openBlock(),l.createElementBlock("li",w$,[l.renderSlot(t.$slots,"no-options",l.normalizeProps(l.guardReactiveProps(i.scope.noOptions)),()=>[S$])])):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"list-footer",l.normalizeProps(l.guardReactiveProps(i.scope.listFooter)))],40,E$)),[[s]]):(l.openBlock(),l.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,A$))]),_:3},8,["name"]),l.renderSlot(t.$slots,"footer",l.normalizeProps(l.guardReactiveProps(i.scope.footer)))],10,p$)}const T$=vh(h$,[["render",x$]]),I$=t=>typeof t=="number",_$=12,N$=["textContent"],O$=["textContent"],M$={key:0,class:"content-library-card__body"},L$=["textContent"],D$={key:1},kc=l.defineComponent({__name:"BDContentLibraryCard",props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:["on-insert"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.computed(()=>`Open ${r.provider} in nieuw venster`),s=()=>{o("on-insert",r.itemId)},c=()=>{window.open(r.uri,"_blank","noopener,noreferrer")};return(a,d)=>(l.openBlock(),l.createElementBlock("article",{class:l.normalizeClass(["content-library-card",r.cardClass])},[l.createElementVNode("header",null,[l.renderSlot(a.$slots,"header",{},()=>[l.createElementVNode("h6",{textContent:l.toDisplayString(r.title)},null,8,N$),r.subtitle?(l.openBlock(),l.createElementBlock("small",{key:0,textContent:l.toDisplayString(r.subtitle)},null,8,O$)):l.createCommentVNode("",!0)])]),r.showBody?(l.openBlock(),l.createElementBlock("div",M$,[l.renderSlot(a.$slots,"default",{},()=>[l.createElementVNode("p",{textContent:l.toDisplayString(r.description),class:"content-library-card__description"},null,8,L$)])])):l.createCommentVNode("",!0),r.showFooter?(l.openBlock(),l.createElementBlock("footer",D$,[l.renderSlot(a.$slots,"footer",{},()=>[l.createVNode(Re,{variant:"secondary",onClick:s},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryCard.insert")),1)]),_:1}),l.createVNode(Re,{title:i.value,variant:"icon",onClick:c},{default:l.withCtx(()=>[l.createVNode(Rc)]),_:1},8,["title"])])])):l.createCommentVNode("",!0)],2))}}),P$=l.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(l.openBlock(),l.createBlock(kc,l.normalizeProps(l.guardReactiveProps(t.item)),null,16))}}),B$={class:"content-library-card-image__titles"},R$=["textContent"],$$=["textContent"],F$=["src"],z$=l.defineComponent({__name:"BDContentLibraryCardImage",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>{const{itemId:r,uri:o,title:i,provider:s}=e.item;return{itemId:r,uri:o,title:i,provider:s}});return(r,o)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:l.withCtx(()=>[l.createElementVNode("div",B$,[l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,R$),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.subtitle)},null,8,$$)]),l.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,F$)]),_:1},16))}}),U$=l.defineComponent({__name:"BDContentLibraryCardTitle",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>{const{itemId:r,title:o,subtitle:i,uri:s,provider:c}=e.item;return{itemId:r,title:o,subtitle:i,uri:s,provider:c}});return(r,o)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),s3=t=>t.replace(/<\/?[^>]+(>|$)/g,_e),a3=t=>t.replace(/<li>/g," ").replace(/<(br|\/p)>/g," \r"),H$=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),j$={class:"content-library-card-message-template__tag"},W$=["textContent"],K$=["textContent"],Y$=["textContent"],G$=["id"],Q$=["innerHTML"],Z$={class:"collapsed-hide"},J$={class:"collapsed-show"},X$={key:2,class:"edit-btn-group"},q$={key:3,class:"attachment-occurence"},V$={class:"number-icon"},eF=l.defineComponent({__name:"BDContentLibraryCardMessageTemplate",props:{item:{type:Object,required:!0},variant:{type:String,default:"insert",validator(t){return["insert","edit","shared"].includes(t)}},apiUrl:{type:String,default:""}},emits:["on-insert","show-attachment","on-change","delete"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.ref(null),s=l.ref(!1),c=l.ref(!1),a=l.computed(()=>`collapse-preview-${r.item.itemId}`),d=l.computed(()=>Pm(r.item.files)?null:r.item.files.length),u=l.computed(()=>r.variant==="insert"),f=l.computed(()=>r.variant==="edit"),h=l.computed(()=>r.variant==="shared"),p=l.computed(()=>c.value?_e:"content-library-card-not-collapsable"),m=l.computed(()=>r.item.text?H$(r.item.text):_e),g=l.computed(()=>Ao(r.apiUrl,r.item.files,!1)),v=l.computed(()=>Ao(r.apiUrl,r.item.files,!0)),y=()=>{i.value&&(c.value=s.value||i.value.scrollHeight>i.value.clientHeight||r.item.files&&r.item.files.length>0)},b=()=>{o("on-insert",r.item.itemId)},E=I=>{o("show-attachment",I)},C=()=>{o("on-change",r.item.itemId)},w=()=>{o("delete",r.item.itemId)};return l.watch(()=>r.item,()=>{i.value&&l.nextTick().then(()=>{y()})},{immediate:!0,deep:!0}),l.onMounted(()=>{l.nextTick(()=>{y()})}),(I,A)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(t.item,{cardClass:`content-library-card-message-template ${p.value}`,onOnInsert:b}),{header:l.withCtx(()=>[l.createElementVNode("div",j$,[l.createElementVNode("span",{textContent:l.toDisplayString(t.item.category)},null,8,W$)]),l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,K$),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.practitionerName)},null,8,Y$)]),footer:l.withCtx(()=>[u.value?(l.openBlock(),l.createBlock(Re,{key:0,variant:"secondary",onClick:b},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):l.createCommentVNode("",!0),h.value?l.withDirectives((l.openBlock(),l.createBlock(Re,{key:1,variant:"icon",title:l.unref(n)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:l.withCtx(()=>[l.createVNode(Fc)]),_:1},8,["title"])),[[l.unref(Do)]]):l.createCommentVNode("",!0),f.value?(l.openBlock(),l.createElementBlock("div",X$,[l.createVNode(Re,{title:l.unref(n)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:C},{default:l.withCtx(()=>[l.createVNode(Bc)]),_:1},8,["title"]),l.createVNode(Re,{title:l.unref(n)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:w},{default:l.withCtx(()=>[l.createVNode(Dc)]),_:1},8,["title"])])):l.createCommentVNode("",!0),d.value?(l.openBlock(),l.createElementBlock("div",q$,[l.createVNode(pr),l.createElementVNode("div",V$,l.toDisplayString(d.value),1)])):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createElementVNode("div",{id:a.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:i},[l.createElementVNode("p",{class:"message-text",innerHTML:m.value},null,8,Q$),t.item.files?(l.openBlock(),l.createBlock(Fs,{key:0,"no-download":!0,files:g.value},null,8,["files"])):l.createCommentVNode("",!0),t.item.files?(l.openBlock(),l.createBlock(zs,{key:1,"no-download":!0,files:v.value,onShow:E},null,8,["files"])):l.createCommentVNode("",!0)],8,G$),c.value?(l.openBlock(),l.createBlock(Re,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${a.value}`},{default:l.withCtx(()=>[l.createElementVNode("span",Z$,l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.collapseOpen")),1),l.createElementVNode("span",J$,l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):l.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),tF={class:"content-library-overview"},nF=ge({__name:"BDContentLibraryOverview",props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:["on-insert","on-change","delete","show-attachment"],setup(t,{emit:e}){const{t:n}=Ot(),r={BDContentLibraryCardBasic:P$,BDContentLibraryCardImage:z$,BDContentLibraryCardTitle:U$,BDContentLibraryCardMessageTemplate:eF},o=t,i=e,s=l.computed(()=>Pm(o.items)),c=l.computed(()=>Math.floor(_$/o.cols)),a=h=>{i("on-insert",h)},d=h=>{i("on-change",h)},u=h=>{i("delete",h)},f=h=>{i("show-attachment",h)};return(h,p)=>(l.openBlock(),l.createElementBlock("div",tF,[l.createVNode(vn,null,{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(It,{key:0,sm:12},{default:l.withCtx(()=>[l.createVNode(Vr,{show:""},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,m=>(l.openBlock(),l.createBlock(It,{class:"card-container",key:m.itemId,sm:12,md:6,lg:c.value},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(r[m.componentToRender]),l.mergeProps({ref_for:!0},m,{item:m,onOnInsert:a,onOnChange:d,onDelete:u,onShowAttachment:f}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},[["__scopeId","data-v-de8a1bfb"]]),rF={class:"content-library-template"},oF={class:"number-of-messages"},iF=["src"],sF=["src"],aF=["id"],lF={class:"collapse-button-container"},cF={class:"collapsed-show"},dF={class:"collapsed-hide"},yh=l.defineComponent({__name:"BDContentLibraryTemplate",props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["create","on-insert","on-change","delete","update","on-input","show-attachment","provider-changed"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.ref(r.modelValue);l.watch(()=>r.modelValue,K=>{i.value=K},{immediate:!0,deep:!0});const s=l.computed(()=>r.modelValue?.provider?.SupportsSearch?n("contentLibraryTemplate.searchPlaceholderSearch"):n("contentLibraryTemplate.searchPlaceholder")),c=l.computed(()=>Fd(r.providerSelectOptions)&&r.providerSelectOptions.length>1),a=l.computed(()=>r.provider&&Fd(r.provider.items)?r.provider.items:[]),d=l.computed(()=>r.provider&&Fd(r.provider.filters)),u=l.computed(()=>{let K=0;return r.provider&&I$(r.provider.totalNumber)&&(K=r.provider.totalNumber),K===1?`${K} ${n("contentLibraryTemplate.message")}`:`${K} ${n("contentLibraryTemplate.messages")}`}),f=l.computed(()=>r.provider&&r.provider.pageSize&&r.provider.totalNumber&&r.provider.pageSize<=r.provider.totalNumber),h=l.computed(()=>r.provider&&r.provider.totalNumber?r.provider.totalNumber:0),p=l.computed(()=>d.value?9:12),m=l.computed(()=>r.provider&&!d.value?3:2),g=l.computed(()=>r.showAddButton||c.value),v=l.computed(()=>({md:3,lg:3})),y=l.computed(()=>({md:9,lg:9})),b=l.computed(()=>({sm:12,md:12,lg:c.value?7:8,"offset-lg":g.value?0:3,"offset-md":g.value?0:3})),E=l.computed(()=>({sm:12,md:g.value?6:3,lg:c.value?5:4})),C=K=>K.replace(/\s/g,"-"),w=()=>{o("create")},I=K=>{o("on-insert",K)},A=K=>{o("on-change",K)},O=K=>{o("delete",K)},W=()=>{o("update","category")},$=()=>{i.value.currentPage=1,o("on-input",i.value)},z=()=>{o("on-input",i.value)},j=K=>{o("show-attachment",K)},Z=K=>{o("provider-changed",K.value)};return(K,P)=>(l.openBlock(),l.createElementBlock("div",rF,[l.createVNode(vn,null,{default:l.withCtx(()=>[l.createVNode(It,l.mergeProps(v.value,{class:"content-library-header content-library-header__messages"}),{default:l.withCtx(()=>[l.createElementVNode("span",oF,l.toDisplayString(u.value),1),t.showAddButton?(l.openBlock(),l.createBlock(Re,{key:0,class:"d-md-none",onClick:w},{default:l.withCtx(()=>[l.createVNode(ia),l.createTextVNode(" "+l.toDisplayString(l.unref(n)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16),l.createVNode(It,l.mergeProps(y.value,{class:"content-library-header"}),{default:l.withCtx(()=>[l.createVNode(vn,null,{default:l.withCtx(()=>[l.createVNode(It,l.mergeProps(b.value,{class:"search-block"}),{default:l.withCtx(()=>[l.createVNode(Cr,{type:"text",modelValue:i.value.searchTerm,"onUpdate:modelValue":P[0]||(P[0]=N=>i.value.searchTerm=N),placeholder:s.value,delayTimeMs:500,class:"search-input",onInput:$,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),t.showAddButton?(l.openBlock(),l.createBlock(It,l.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:l.withCtx(()=>[t.showAddButton?(l.openBlock(),l.createBlock(Re,{key:0,onClick:w},{default:l.withCtx(()=>[l.createVNode(ia),l.createTextVNode(" "+l.toDisplayString(l.unref(n)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16)):l.createCommentVNode("",!0),c.value?(l.openBlock(),l.createBlock(It,l.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:l.withCtx(()=>[l.createVNode(l.unref(T$),{modelValue:i.value.provider,"onUpdate:modelValue":P[1]||(P[1]=N=>i.value.provider=N),options:t.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":Z},{"open-indicator":l.withCtx(({attributes:N})=>[l.createElementVNode("span",l.normalizeProps(l.guardReactiveProps(N)),[l.createVNode(ta)],16)]),option:l.withCtx(({icon:N,label:J,img:U})=>[N?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(N),{key:0})):l.createCommentVNode("",!0),U?(l.openBlock(),l.createElementBlock("img",{key:1,src:U},null,8,iF)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(J),1)]),"selected-option":l.withCtx(({icon:N,label:J,img:U})=>[N?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(N),{key:0})):l.createCommentVNode("",!0),U?(l.openBlock(),l.createElementBlock("img",{key:1,src:U},null,8,sF)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(J),1)]),_:1},8,["modelValue","options"])]),_:1},16)):l.createCommentVNode("",!0)]),_:1})]),_:1},16),d.value?(l.openBlock(),l.createBlock(It,{key:0,md:12,lg:3,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(Jc,{title:"Filter","show-on":"md","collapse-on":"md"},{body:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.provider.filters,(N,J)=>(l.openBlock(),l.createBlock(ts,{key:N.label,label:N.label},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(N.options,(U,V)=>(l.openBlock(),l.createBlock(Er,{modelValue:i.value.selectedFilters,"onUpdate:modelValue":P[2]||(P[2]=te=>i.value.selectedFilters=te),key:V,value:`${N.id}-${U.item}`,onChange:$},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.name),1)]),_:2},1032,["modelValue","value"]))),128)),N.moreOptions?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",{id:`collapse-${C(N.label)}`,class:"collapse"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(N.moreOptions,(U,V)=>(l.openBlock(),l.createBlock(Er,{modelValue:i.value.selectedFilters,"onUpdate:modelValue":P[3]||(P[3]=te=>i.value.selectedFilters=te),key:V,value:`${N.id}-${U.item}`,onChange:$},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,aF),l.createElementVNode("div",lF,[l.createVNode(Re,{class:l.normalizeClass(["collapse-button collapsed",{"collapse-button-last":t.provider.filters.length-1===J}]),variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${C(N.label)}`},{default:l.withCtx(()=>[l.createVNode(xc,{class:"collapsed-show"}),l.createElementVNode("span",cF,l.toDisplayString(l.unref(n)("contentLibraryTemplate.more")),1),l.createVNode(Tc,{class:"collapsed-hide"}),l.createElementVNode("span",dF,l.toDisplayString(l.unref(n)("contentLibraryTemplate.less")),1)]),_:1},8,["class","data-bs-target"])])],64)):l.createCommentVNode("",!0),N.label==="Categorieën"&&t.editCategory?(l.openBlock(),l.createBlock(Re,{key:1,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:W},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):l.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(It,{md:12,lg:p.value,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(nF,{items:a.value,cols:m.value,onOnInsert:I,onOnChange:A,onDelete:O,onShowAttachment:j},null,8,["items","cols"]),l.createVNode(vn,{class:"content-library-pagination"},{default:l.withCtx(()=>[f.value?(l.openBlock(),l.createBlock(Rd,{key:0,modelValue:i.value.currentPage,"onUpdate:modelValue":P[4]||(P[4]=N=>i.value.currentPage=N),totalRows:h.value,rowsPerPage:t.provider.pageSize,onClick:z,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):l.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),l3={__name:"BDContentLibraryModal",props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:["on-insert","cancel","show-attachment","shown","provider-changed"],setup(t,{emit:e}){const{closeModal:n}=Po("content-library-modal"),r=t,o=e,i=l.ref(r.modelValue),s=l.computed(()=>{var p,m,g;return(g=(m=(p=r.modelValue)===null||p===void 0?void 0:p.provider)===null||m===void 0?void 0:m.img)!==null&&g!==void 0?g:null}),c=l.computed(()=>{var p,m,g;return(g=(m=(p=r.modelValue)===null||p===void 0?void 0:p.provider)===null||m===void 0?void 0:m.label)!==null&&g!==void 0?g:_e});l.watch(()=>r.modelValue,p=>{i.value=p},{immediate:!0,deep:!0});const a=p=>{n(),o("on-insert",p)},d=()=>{o("cancel")},u=p=>{o("show-attachment",p)},f=()=>{o("shown")},h=p=>{o("provider-changed",p)};return(p,m)=>(l.openBlock(),l.createBlock(xn,{id:"content-library-modal","title-image":s.value,title:c.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:d,onShown:f},{default:l.withCtx(()=>[l.createVNode(yh,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=g=>i.value=g),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:a,onShowAttachment:u,onProviderChanged:h},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};var uF=Object.defineProperty,fF=(t,e,n)=>e in t?uF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,c3=(t,e,n)=>(fF(t,typeof e!="symbol"?e+"":e,n),n);class hF{constructor(){c3(this,"seed",0),c3(this,"data",new Map)}id(){return Date.now().toString(26)+this.seed++}add(e,n=this.id()){return this.data.set(n,e),n}get(e){return this.data.get(e)}delete(e){this.delete(e)}}const pF="Failed to copy value to clipboard. Unknown type.",mF={asString(t){if(t==null)return console.warn("Clipboard input is empty"),"";if(typeof t!="string")try{return JSON.stringify(t)}catch(e){return console.warn(pF,e),""}return t}},gF="position:fixed; pointer-events:none; z-index:-9999; opacity:0;",vF={createTextarea(t){const e=document.createElement("textarea");return e.addEventListener("focusin",n=>{n.stopPropagation()}),e.value=t,e.setAttribute("readonly",""),e.style.cssText=gF,e}},Ai={async requestClipboardPermission(){return navigator.permissions.query({name:"clipboard-write"})},async writeClipboard(t){return(await Ai.requestClipboardPermission()).state==="granted"?(await navigator.clipboard.writeText(t),!0):!1},writeClipboardExecCommand(t){const e=vF.createTextarea(t);if(document.body.appendChild(e),navigator.userAgent.match(/ipad|ipod|iphone/i)){e.contentEditable="true",e.readOnly=!0;const r=document.createRange();r.selectNodeContents(e);const o=window.getSelection();o&&(o.removeAllRanges(),o.addRange(r),e.setSelectionRange(0,999999))}else e.select();const n=document.execCommand("copy");return document.body.removeChild(e),n},async copy(t){const e=typeof t=="function"?t():t,n=mF.asString(e);if(Ai.writeClipboardExecCommand(n))return!0;await Ai.writeClipboard(n)}};new hF;const{showSuccessToast:bh}=Xs(),yF=(t,e,n)=>{const r=`${e}
|
|
1304
|
+
https://vue-select.org/api/props.html#getoptionkey`,t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,e,n){return(e||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,e){return t.filter(n=>{let r=this.getOptionLabel(n);return typeof r=="number"&&(r=r.toString()),this.filterBy(n,r,e)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:e}){return t&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,e)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,e,{width:n,top:r,left:o}){t.style.top=r,t.style.left=o,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:e,mutableLoading:n}){return t?!1:e&&!n}},uid:{type:[String,Number],default:()=>f$()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:Si({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:o3(Si({},t),{deselect:this.deselect}),footer:o3(Si({},t),{deselect:this.deselect})}},childComponents(){return Si(Si({},i3),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||e.unshift(n)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,e){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(e=>this.reduce(e)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const e=t.target!==this.searchEl;e&&t.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(r=>r.contains(t.target)||r===t.target)){t.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(e=>this.optionComparator(e,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue(t){const e=r=>JSON.stringify(this.reduce(r))===JSON.stringify(t),n=[...this.options,...this.pushedTags].filter(e);return n.length===1?n[0]:n.find(r=>this.optionComparator(r,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(e=>this.optionComparator(e,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const e=o=>(o.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:o=>this.maybeDeleteValue(),9:o=>this.onTab(),27:o=>this.onEscape(),38:o=>(o.preventDefault(),this.typeAheadUp()),40:o=>(o.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(o=>n[o]=e);const r=this.mapKeydown(n,this);if(typeof r[t.keyCode]=="function")return r[t.keyCode](t)}}},p$=["dir"],m$=["id","aria-expanded","aria-owns"],g$={ref:"selectedOptions",class:"vs__selected-options"},v$=["disabled","title","aria-label","onClick"],y$={ref:"actions",class:"vs__actions"},b$=["disabled"],C$={class:"vs__spinner"},E$=["id"],k$=["id","aria-selected","onMouseover","onClick"],w$={key:0,class:"vs__no-options"},S$=l.createTextVNode(" Sorry, no matching options. "),A$=["id"];function x$(t,e,n,r,o,i){const s=l.resolveDirective("append-to-body");return l.openBlock(),l.createElementBlock("div",{dir:n.dir,class:l.normalizeClass(["v-select",i.stateClasses])},[l.renderSlot(t.$slots,"header",l.normalizeProps(l.guardReactiveProps(i.scope.header))),l.createElementVNode("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=c=>i.toggleDropdown(c))},[l.createElementVNode("div",g$,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.selectedValue,(c,a)=>l.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(c),deselect:i.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(l.openBlock(),l.createElementBlock("span",{key:n.getOptionKey(c),class:"vs__selected"},[l.renderSlot(t.$slots,"selected-option",l.normalizeProps(l.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[l.createTextVNode(l.toDisplayString(n.getOptionLabel(c)),1)]),n.multiple?(l.openBlock(),l.createElementBlock("button",{key:0,ref_for:!0,ref:d=>o.deselectButtons[a]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:d=>i.deselect(c)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,v$)):l.createCommentVNode("",!0)]))])),256)),l.renderSlot(t.$slots,"search",l.normalizeProps(l.guardReactiveProps(i.scope.search)),()=>[l.createElementVNode("input",l.mergeProps({class:"vs__search"},i.scope.search.attributes,l.toHandlers(i.scope.search.events)),null,16)])],512),l.createElementVNode("div",y$,[l.withDirectives(l.createElementVNode("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...c)=>i.clearSelection&&i.clearSelection(...c))},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,b$),[[l.vShow,i.showClearButton]]),l.renderSlot(t.$slots,"open-indicator",l.normalizeProps(l.guardReactiveProps(i.scope.openIndicator)),()=>[n.noDrop?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.OpenIndicator),l.normalizeProps(l.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),l.renderSlot(t.$slots,"spinner",l.normalizeProps(l.guardReactiveProps(i.scope.spinner)),()=>[l.withDirectives(l.createElementVNode("div",C$,"Loading...",512),[[l.vShow,t.mutableLoading]])])],512)],40,m$),l.createVNode(l.Transition,{name:n.transition},{default:l.withCtx(()=>[i.dropdownOpen?l.withDirectives((l.openBlock(),l.createElementBlock("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=l.withModifiers((...c)=>i.onMousedown&&i.onMousedown(...c),["prevent"])),onMouseup:e[3]||(e[3]=(...c)=>i.onMouseUp&&i.onMouseUp(...c))},[l.renderSlot(t.$slots,"list-header",l.normalizeProps(l.guardReactiveProps(i.scope.listHeader))),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.filteredOptions,(c,a)=>(l.openBlock(),l.createElementBlock("li",{id:`vs${n.uid}__option-${a}`,key:n.getOptionKey(c),role:"option",class:l.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(c)&&a===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(c),"vs__dropdown-option--highlight":a===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(c)}]),"aria-selected":a===t.typeAheadPointer?!0:null,onMouseover:d=>n.selectable(c)?t.typeAheadPointer=a:null,onClick:l.withModifiers(d=>n.selectable(c)?i.select(c):null,["prevent","stop"])},[l.renderSlot(t.$slots,"option",l.normalizeProps(l.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[l.createTextVNode(l.toDisplayString(n.getOptionLabel(c)),1)])],42,k$))),128)),i.filteredOptions.length===0?(l.openBlock(),l.createElementBlock("li",w$,[l.renderSlot(t.$slots,"no-options",l.normalizeProps(l.guardReactiveProps(i.scope.noOptions)),()=>[S$])])):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"list-footer",l.normalizeProps(l.guardReactiveProps(i.scope.listFooter)))],40,E$)),[[s]]):(l.openBlock(),l.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,A$))]),_:3},8,["name"]),l.renderSlot(t.$slots,"footer",l.normalizeProps(l.guardReactiveProps(i.scope.footer)))],10,p$)}const T$=vh(h$,[["render",x$]]),I$=t=>typeof t=="number",_$=12,N$=["textContent"],O$=["textContent"],M$={key:0,class:"content-library-card__body"},L$=["textContent"],D$={key:1},kc=l.defineComponent({__name:"BDContentLibraryCard",props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:["on-insert"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.computed(()=>`Open ${r.provider} in nieuw venster`),s=()=>{o("on-insert",r.itemId)},c=()=>{window.open(r.uri,"_blank","noopener,noreferrer")};return(a,d)=>(l.openBlock(),l.createElementBlock("article",{class:l.normalizeClass(["content-library-card",r.cardClass])},[l.createElementVNode("header",null,[l.renderSlot(a.$slots,"header",{},()=>[l.createElementVNode("h6",{textContent:l.toDisplayString(r.title)},null,8,N$),r.subtitle?(l.openBlock(),l.createElementBlock("small",{key:0,textContent:l.toDisplayString(r.subtitle)},null,8,O$)):l.createCommentVNode("",!0)])]),r.showBody?(l.openBlock(),l.createElementBlock("div",M$,[l.renderSlot(a.$slots,"default",{},()=>[l.createElementVNode("p",{textContent:l.toDisplayString(r.description),class:"content-library-card__description"},null,8,L$)])])):l.createCommentVNode("",!0),r.showFooter?(l.openBlock(),l.createElementBlock("footer",D$,[l.renderSlot(a.$slots,"footer",{},()=>[l.createVNode(Re,{variant:"secondary",onClick:s},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryCard.insert")),1)]),_:1}),l.createVNode(Re,{title:i.value,variant:"icon",onClick:c},{default:l.withCtx(()=>[l.createVNode(Rc)]),_:1},8,["title"])])])):l.createCommentVNode("",!0)],2))}}),P$=l.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(l.openBlock(),l.createBlock(kc,l.normalizeProps(l.guardReactiveProps(t.item)),null,16))}}),B$={class:"content-library-card-image__titles"},R$=["textContent"],$$=["textContent"],F$=["src"],z$=l.defineComponent({__name:"BDContentLibraryCardImage",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>{const{itemId:r,uri:o,title:i,provider:s}=e.item;return{itemId:r,uri:o,title:i,provider:s}});return(r,o)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:l.withCtx(()=>[l.createElementVNode("div",B$,[l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,R$),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.subtitle)},null,8,$$)]),l.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,F$)]),_:1},16))}}),U$=l.defineComponent({__name:"BDContentLibraryCardTitle",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>{const{itemId:r,title:o,subtitle:i,uri:s,provider:c}=e.item;return{itemId:r,title:o,subtitle:i,uri:s,provider:c}});return(r,o)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),s3=t=>t.replace(/<\/?[^>]+(>|$)/g,_e),a3=t=>t.replace(/<li>/g," ").replace(/<(br|\/p)>/g," \r"),H$=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),j$={class:"content-library-card-message-template__tag"},W$=["textContent"],K$=["textContent"],Y$=["textContent"],G$=["id"],Q$=["innerHTML"],Z$={class:"collapsed-hide"},J$={class:"collapsed-show"},X$={key:2,class:"edit-btn-group"},q$={key:3,class:"attachment-occurence"},V$={class:"number-icon"},eF=l.defineComponent({__name:"BDContentLibraryCardMessageTemplate",props:{item:{type:Object,required:!0},variant:{type:String,default:"insert",validator(t){return["insert","edit","shared"].includes(t)}},apiUrl:{type:String,default:""}},emits:["on-insert","show-attachment","on-change","delete"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.ref(null),s=l.ref(!1),c=l.ref(!1),a=l.computed(()=>`collapse-preview-${r.item.itemId}`),d=l.computed(()=>Pm(r.item.files)?null:r.item.files.length),u=l.computed(()=>r.variant==="insert"),f=l.computed(()=>r.variant==="edit"),h=l.computed(()=>r.variant==="shared"),p=l.computed(()=>c.value?_e:"content-library-card-not-collapsable"),m=l.computed(()=>r.item.text?H$(r.item.text):_e),g=l.computed(()=>Ao(r.apiUrl,r.item.files,!1)),v=l.computed(()=>Ao(r.apiUrl,r.item.files,!0)),y=()=>{i.value&&(c.value=s.value||i.value.scrollHeight>i.value.clientHeight||r.item.files&&r.item.files.length>0)},b=()=>{o("on-insert",r.item.itemId)},E=I=>{o("show-attachment",I)},C=()=>{o("on-change",r.item.itemId)},w=()=>{o("delete",r.item.itemId)};return l.watch(()=>r.item,()=>{i.value&&l.nextTick().then(()=>{y()})},{immediate:!0,deep:!0}),l.onMounted(()=>{l.nextTick(()=>{y()})}),(I,A)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(t.item,{cardClass:`content-library-card-message-template ${p.value}`,onOnInsert:b}),{header:l.withCtx(()=>[l.createElementVNode("div",j$,[l.createElementVNode("span",{textContent:l.toDisplayString(t.item.category)},null,8,W$)]),l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,K$),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.practitionerName)},null,8,Y$)]),footer:l.withCtx(()=>[u.value?(l.openBlock(),l.createBlock(Re,{key:0,variant:"secondary",onClick:b},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):l.createCommentVNode("",!0),h.value?l.withDirectives((l.openBlock(),l.createBlock(Re,{key:1,variant:"icon",title:l.unref(n)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:l.withCtx(()=>[l.createVNode(Fc)]),_:1},8,["title"])),[[l.unref(Do)]]):l.createCommentVNode("",!0),f.value?(l.openBlock(),l.createElementBlock("div",X$,[l.createVNode(Re,{title:l.unref(n)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:C},{default:l.withCtx(()=>[l.createVNode(Bc)]),_:1},8,["title"]),l.createVNode(Re,{title:l.unref(n)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:w},{default:l.withCtx(()=>[l.createVNode(Dc)]),_:1},8,["title"])])):l.createCommentVNode("",!0),d.value?(l.openBlock(),l.createElementBlock("div",q$,[l.createVNode(pr),l.createElementVNode("div",V$,l.toDisplayString(d.value),1)])):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createElementVNode("div",{id:a.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:i},[l.createElementVNode("p",{class:"message-text",innerHTML:m.value},null,8,Q$),t.item.files?(l.openBlock(),l.createBlock(Fs,{key:0,"no-download":!0,files:g.value},null,8,["files"])):l.createCommentVNode("",!0),t.item.files?(l.openBlock(),l.createBlock(zs,{key:1,"no-download":!0,files:v.value,onShow:E},null,8,["files"])):l.createCommentVNode("",!0)],8,G$),c.value?(l.openBlock(),l.createBlock(Re,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${a.value}`},{default:l.withCtx(()=>[l.createElementVNode("span",Z$,l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.collapseOpen")),1),l.createElementVNode("span",J$,l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):l.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),tF={class:"content-library-overview"},nF=ge({__name:"BDContentLibraryOverview",props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:["on-insert","on-change","delete","show-attachment"],setup(t,{emit:e}){const{t:n}=Ot(),r={BDContentLibraryCardBasic:P$,BDContentLibraryCardImage:z$,BDContentLibraryCardTitle:U$,BDContentLibraryCardMessageTemplate:eF},o=t,i=e,s=l.computed(()=>Pm(o.items)),c=l.computed(()=>Math.floor(_$/o.cols)),a=h=>{i("on-insert",h)},d=h=>{i("on-change",h)},u=h=>{i("delete",h)},f=h=>{i("show-attachment",h)};return(h,p)=>(l.openBlock(),l.createElementBlock("div",tF,[l.createVNode(vn,null,{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(It,{key:0,sm:12},{default:l.withCtx(()=>[l.createVNode(Vr,{show:""},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,m=>(l.openBlock(),l.createBlock(It,{class:"card-container",key:m.itemId,sm:12,md:6,lg:c.value},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(r[m.componentToRender]),l.mergeProps({ref_for:!0},m,{item:m,onOnInsert:a,onOnChange:d,onDelete:u,onShowAttachment:f}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},[["__scopeId","data-v-de8a1bfb"]]),rF={class:"content-library-template"},oF={class:"number-of-messages"},iF=["src"],sF=["src"],aF=["id"],lF={class:"collapse-button-container"},cF={class:"collapsed-show"},dF={class:"collapsed-hide"},yh=l.defineComponent({__name:"BDContentLibraryTemplate",props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["create","on-insert","on-change","delete","update","on-input","show-attachment","provider-changed"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.ref(r.modelValue);l.watch(()=>r.modelValue,W=>{i.value=W},{immediate:!0,deep:!0});const s=l.computed(()=>r.modelValue?.provider?.SupportsSearch?n("contentLibraryTemplate.searchPlaceholderSearch"):n("contentLibraryTemplate.searchPlaceholder")),c=l.computed(()=>Fd(r.providerSelectOptions)&&r.providerSelectOptions.length>1),a=l.computed(()=>r.provider&&Fd(r.provider.items)?r.provider.items:[]),d=l.computed(()=>r.provider&&Fd(r.provider.filters)),u=l.computed(()=>{let W=0;return r.provider&&I$(r.provider.totalNumber)&&(W=r.provider.totalNumber),W===1?`${W} ${n("contentLibraryTemplate.message")}`:`${W} ${n("contentLibraryTemplate.messages")}`}),f=l.computed(()=>r.provider&&r.provider.pageSize&&r.provider.totalNumber&&r.provider.pageSize<=r.provider.totalNumber),h=l.computed(()=>r.provider&&r.provider.totalNumber?r.provider.totalNumber:0),p=l.computed(()=>d.value?9:12),m=l.computed(()=>r.provider&&!d.value?3:2),g=l.computed(()=>r.showAddButton||c.value),v=l.computed(()=>({md:3,lg:3})),y=l.computed(()=>({md:9,lg:9})),b=l.computed(()=>({sm:12,md:12,lg:c.value?7:8,"offset-lg":g.value?0:3,"offset-md":g.value?0:3})),E=l.computed(()=>({sm:12,md:g.value?6:3,lg:c.value?5:4})),C=W=>W.replace(/\s/g,"-"),w=()=>{o("create")},I=W=>{o("on-insert",W)},A=W=>{o("on-change",W)},O=W=>{o("delete",W)},K=()=>{o("update","category")},B=()=>{i.value.currentPage=1,o("on-input",i.value)},F=()=>{o("on-input",i.value)},H=W=>{o("show-attachment",W)},Z=W=>{o("provider-changed",W.value)};return(W,j)=>(l.openBlock(),l.createElementBlock("div",rF,[l.createVNode(vn,null,{default:l.withCtx(()=>[l.createVNode(It,l.mergeProps(v.value,{class:"content-library-header content-library-header__messages"}),{default:l.withCtx(()=>[l.createElementVNode("span",oF,l.toDisplayString(u.value),1),t.showAddButton?(l.openBlock(),l.createBlock(Re,{key:0,class:"d-md-none",onClick:w},{default:l.withCtx(()=>[l.createVNode(ia),l.createTextVNode(" "+l.toDisplayString(l.unref(n)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16),l.createVNode(It,l.mergeProps(y.value,{class:"content-library-header"}),{default:l.withCtx(()=>[l.createVNode(vn,null,{default:l.withCtx(()=>[l.createVNode(It,l.mergeProps(b.value,{class:"search-block"}),{default:l.withCtx(()=>[l.createVNode(Cr,{type:"text",modelValue:i.value.searchTerm,"onUpdate:modelValue":j[0]||(j[0]=N=>i.value.searchTerm=N),placeholder:s.value,delayTimeMs:500,class:"search-input",onInput:B,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),t.showAddButton?(l.openBlock(),l.createBlock(It,l.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:l.withCtx(()=>[t.showAddButton?(l.openBlock(),l.createBlock(Re,{key:0,onClick:w},{default:l.withCtx(()=>[l.createVNode(ia),l.createTextVNode(" "+l.toDisplayString(l.unref(n)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16)):l.createCommentVNode("",!0),c.value?(l.openBlock(),l.createBlock(It,l.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:l.withCtx(()=>[l.createVNode(l.unref(T$),{modelValue:i.value.provider,"onUpdate:modelValue":j[1]||(j[1]=N=>i.value.provider=N),options:t.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":Z},{"open-indicator":l.withCtx(({attributes:N})=>[l.createElementVNode("span",l.normalizeProps(l.guardReactiveProps(N)),[l.createVNode(ta)],16)]),option:l.withCtx(({icon:N,label:J,img:z})=>[N?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(N),{key:0})):l.createCommentVNode("",!0),z?(l.openBlock(),l.createElementBlock("img",{key:1,src:z},null,8,iF)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(J),1)]),"selected-option":l.withCtx(({icon:N,label:J,img:z})=>[N?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(N),{key:0})):l.createCommentVNode("",!0),z?(l.openBlock(),l.createElementBlock("img",{key:1,src:z},null,8,sF)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(J),1)]),_:1},8,["modelValue","options"])]),_:1},16)):l.createCommentVNode("",!0)]),_:1})]),_:1},16),d.value?(l.openBlock(),l.createBlock(It,{key:0,md:12,lg:3,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(Jc,{title:"Filter","show-on":"md","collapse-on":"md"},{body:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.provider.filters,(N,J)=>(l.openBlock(),l.createBlock(ts,{key:N.label,label:N.label},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(N.options,(z,V)=>(l.openBlock(),l.createBlock(Er,{modelValue:i.value.selectedFilters,"onUpdate:modelValue":j[2]||(j[2]=te=>i.value.selectedFilters=te),key:V,value:`${N.id}-${z.item}`,onChange:B},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(z.name),1)]),_:2},1032,["modelValue","value"]))),128)),N.moreOptions?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",{id:`collapse-${C(N.label)}`,class:"collapse"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(N.moreOptions,(z,V)=>(l.openBlock(),l.createBlock(Er,{modelValue:i.value.selectedFilters,"onUpdate:modelValue":j[3]||(j[3]=te=>i.value.selectedFilters=te),key:V,value:`${N.id}-${z.item}`,onChange:B},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(z.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,aF),l.createElementVNode("div",lF,[l.createVNode(Re,{class:l.normalizeClass(["collapse-button collapsed",{"collapse-button-last":t.provider.filters.length-1===J}]),variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${C(N.label)}`},{default:l.withCtx(()=>[l.createVNode(xc,{class:"collapsed-show"}),l.createElementVNode("span",cF,l.toDisplayString(l.unref(n)("contentLibraryTemplate.more")),1),l.createVNode(Tc,{class:"collapsed-hide"}),l.createElementVNode("span",dF,l.toDisplayString(l.unref(n)("contentLibraryTemplate.less")),1)]),_:1},8,["class","data-bs-target"])])],64)):l.createCommentVNode("",!0),N.label==="Categorieën"&&t.editCategory?(l.openBlock(),l.createBlock(Re,{key:1,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:K},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):l.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(It,{md:12,lg:p.value,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(nF,{items:a.value,cols:m.value,onOnInsert:I,onOnChange:A,onDelete:O,onShowAttachment:H},null,8,["items","cols"]),l.createVNode(vn,{class:"content-library-pagination"},{default:l.withCtx(()=>[f.value?(l.openBlock(),l.createBlock(Rd,{key:0,modelValue:i.value.currentPage,"onUpdate:modelValue":j[4]||(j[4]=N=>i.value.currentPage=N),totalRows:h.value,rowsPerPage:t.provider.pageSize,onClick:F,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):l.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),l3={__name:"BDContentLibraryModal",props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:["on-insert","cancel","show-attachment","shown","provider-changed"],setup(t,{emit:e}){const{closeModal:n}=Po("content-library-modal"),r=t,o=e,i=l.ref(r.modelValue),s=l.computed(()=>{var p,m,g;return(g=(m=(p=r.modelValue)===null||p===void 0?void 0:p.provider)===null||m===void 0?void 0:m.img)!==null&&g!==void 0?g:null}),c=l.computed(()=>{var p,m,g;return(g=(m=(p=r.modelValue)===null||p===void 0?void 0:p.provider)===null||m===void 0?void 0:m.label)!==null&&g!==void 0?g:_e});l.watch(()=>r.modelValue,p=>{i.value=p},{immediate:!0,deep:!0});const a=p=>{n(),o("on-insert",p)},d=()=>{o("cancel")},u=p=>{o("show-attachment",p)},f=()=>{o("shown")},h=p=>{o("provider-changed",p)};return(p,m)=>(l.openBlock(),l.createBlock(xn,{id:"content-library-modal","title-image":s.value,title:c.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:d,onShown:f},{default:l.withCtx(()=>[l.createVNode(yh,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=g=>i.value=g),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:a,onShowAttachment:u,onProviderChanged:h},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};var uF=Object.defineProperty,fF=(t,e,n)=>e in t?uF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,c3=(t,e,n)=>(fF(t,typeof e!="symbol"?e+"":e,n),n);class hF{constructor(){c3(this,"seed",0),c3(this,"data",new Map)}id(){return Date.now().toString(26)+this.seed++}add(e,n=this.id()){return this.data.set(n,e),n}get(e){return this.data.get(e)}delete(e){this.delete(e)}}const pF="Failed to copy value to clipboard. Unknown type.",mF={asString(t){if(t==null)return console.warn("Clipboard input is empty"),"";if(typeof t!="string")try{return JSON.stringify(t)}catch(e){return console.warn(pF,e),""}return t}},gF="position:fixed; pointer-events:none; z-index:-9999; opacity:0;",vF={createTextarea(t){const e=document.createElement("textarea");return e.addEventListener("focusin",n=>{n.stopPropagation()}),e.value=t,e.setAttribute("readonly",""),e.style.cssText=gF,e}},Ai={async requestClipboardPermission(){return navigator.permissions.query({name:"clipboard-write"})},async writeClipboard(t){return(await Ai.requestClipboardPermission()).state==="granted"?(await navigator.clipboard.writeText(t),!0):!1},writeClipboardExecCommand(t){const e=vF.createTextarea(t);if(document.body.appendChild(e),navigator.userAgent.match(/ipad|ipod|iphone/i)){e.contentEditable="true",e.readOnly=!0;const r=document.createRange();r.selectNodeContents(e);const o=window.getSelection();o&&(o.removeAllRanges(),o.addRange(r),e.setSelectionRange(0,999999))}else e.select();const n=document.execCommand("copy");return document.body.removeChild(e),n},async copy(t){const e=typeof t=="function"?t():t,n=mF.asString(e);if(Ai.writeClipboardExecCommand(n))return!0;await Ai.writeClipboard(n)}};new hF;const{showSuccessToast:bh}=Xs(),yF=(t,e,n)=>{const r=`${e}
|
|
1305
1305
|
${t.AfzenderNaam}: \r${t.Datum} \r${s3(a3(t.Tekst))}`;Ai.copy(r).then(()=>bh(n))},d3=(t,e,n)=>{const r=t.filter(i=>i.selected).map(i=>`${i.AfzenderNaam}: \r${i.Datum}\r${s3(a3(i.Tekst))}`).join(`
|
|
1306
1306
|
-----------------------
|
|
1307
1307
|
`),o=`${e}
|